2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="src/msgfmt.c"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 gl_use_threads_default=
747 gl_fnmatch_required=POSIX
748 gl_getopt_required=POSIX
749 gl_getopt_required=POSIX
750 enable_option_checking=no
751 ac_subst_vars='gtpotests_LTLIBOBJS
785 HAVE_GLOBAL_SYMBOL_PIPE
791 GETTEXTLIB_EXPORTS_FLAGS
799 HAVE_LANGINFO_CODESET
801 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
808 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE
809 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE
810 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE
811 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE
812 POSIX_SPAWN_PORTED_FALSE
813 POSIX_SPAWN_PORTED_TRUE
819 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
825 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
827 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
828 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
829 LIBUNISTRING_UNIWIDTH_H
830 LIBUNISTRING_UNITYPES_H
831 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
832 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
833 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE
834 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE
835 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
836 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
837 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE
838 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE
839 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE
840 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE
841 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE
842 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE
843 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE
844 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE
845 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE
846 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE
847 LIBUNISTRING_UNISTR_H
849 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
851 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE
852 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE
853 LIBUNISTRING_UNINAME_H
854 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE
855 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE
856 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE
857 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE
858 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE
859 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE
860 LIBUNISTRING_UNILBRK_H
861 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE
862 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE
863 LIBUNISTRING_UNICONV_H
864 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
865 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
866 TIME_H_DEFINES_STRUCT_TIMESPEC
867 NEXT_AS_FIRST_DIRECTIVE_TIME_H
885 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
887 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
890 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
897 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
901 HAVE_STRUCT_SOCKADDR_STORAGE
917 NEXT_AS_FIRST_DIRECTIVE_STRING_H
920 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
922 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
933 HAVE_SIGNED_SIG_ATOMIC_T
936 BITSIZEOF_SIG_ATOMIC_T
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
946 HAVE_UNSIGNED_LONG_LONG_INT
950 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
954 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H
956 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
958 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
959 HAVE_STRUCT_SIGACTION_SA_SIGACTION
963 HAVE_POSIX_SIGNALBLOCKING
966 GNULIB_SIGNAL_H_SIGPIPE
968 HAVE_STRUCT_SCHED_PARAM
970 NEXT_AS_FIRST_DIRECTIVE_SCHED_H
973 RELOCATABLE_BUILD_DIR
975 RELOCATABLE_CONFIG_H_DIR
976 RELOCATABLE_LIBRARY_PATH
977 RELOCATABLE_VIA_LD_FALSE
978 RELOCATABLE_VIA_LD_TRUE
983 HAVE_POSIX_SPAWN_FILE_ACTIONS_T
984 HAVE_POSIX_SPAWNATTR_T
986 GNULIB_POSIX_SPAWNATTR_DESTROY
987 GNULIB_POSIX_SPAWNATTR_SETSIGMASK
988 GNULIB_POSIX_SPAWNATTR_GETSIGMASK
989 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT
990 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT
991 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY
992 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY
993 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM
994 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM
995 GNULIB_POSIX_SPAWNATTR_SETPGROUP
996 GNULIB_POSIX_SPAWNATTR_GETPGROUP
997 GNULIB_POSIX_SPAWNATTR_SETFLAGS
998 GNULIB_POSIX_SPAWNATTR_GETFLAGS
999 GNULIB_POSIX_SPAWNATTR_INIT
1000 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY
1001 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
1002 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
1003 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
1004 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
1009 APPLE_UNIVERSAL_BUILD
1144 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1147 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1155 LOCALCHARSET_TESTS_ENVIRONMENT
1156 INCLUDED_LIBXML_FALSE
1157 INCLUDED_LIBXML_TRUE
1166 INCLUDED_LIBCROCO_FALSE
1167 INCLUDED_LIBCROCO_TRUE
1171 INCLUDED_LIBGLIB_FALSE
1172 INCLUDED_LIBGLIB_TRUE
1177 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1183 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1185 REPLACE_GETTIMEOFDAY
1192 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1201 REPLACE_STDIO_WRITE_FUNCS
1210 REPLACE_OBSTACK_PRINTF
1232 HAVE_DECL_OBSTACK_PRINTF
1236 GNULIB_VSPRINTF_POSIX
1238 GNULIB_VPRINTF_POSIX
1240 GNULIB_VFPRINTF_POSIX
1245 GNULIB_STDIO_H_SIGPIPE
1246 GNULIB_SPRINTF_POSIX
1258 GNULIB_OBSTACK_PRINTF_POSIX
1259 GNULIB_OBSTACK_PRINTF
1271 GNULIB_FPRINTF_POSIX
1279 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1281 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1298 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1300 PRAGMA_SYSTEM_HEADER
1301 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1303 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1304 UNISTD_H_HAVE_WINSOCK2_H
1330 HAVE_DECL_GETUSERSHELL
1331 HAVE_DECL_GETPAGESIZE
1332 HAVE_DECL_GETLOGIN_R
1367 GNULIB_UNISTD_H_SIGPIPE
1368 GNULIB_UNISTD_H_GETOPT
1389 GNULIB_GETDTABLESIZE
1390 GNULIB_GETDOMAINNAME
1409 REPLACE_CANONICALIZE_FILE_NAME
1413 HAVE_STRUCT_RANDOM_DATA
1431 HAVE_DECL_GETLOADAVG
1432 HAVE_CANONICALIZE_FILE_NAME
1443 GNULIB_REALLOC_POSIX
1456 GNULIB_CANONICALIZE_FILE_NAME
1463 GL_COND_LIBTOOL_FALSE
1464 GL_COND_LIBTOOL_TRUE
1471 INTL_LIBTOOL_SUFFIX_PREFIX
1477 USE_INCLUDED_LIBINTL
1478 BUILD_INCLUDED_LIBINTL
1488 INTL_DEFAULT_VERBOSITY
1506 XGETTEXT_EXTRA_OPTIONS
1514 GETTEXT_MACRO_VERSION
1617 AM_DEFAULT_VERBOSITY
1626 INSTALL_STRIP_PROGRAM
1668 program_transform_name
1679 ac_subst_files='relocatable_sh'
1681 enable_option_checking
1683 enable_dependency_tracking
1697 with_libiconv_prefix
1698 with_included_gettext
1702 with_libglib_20_prefix
1703 with_included_libcroco
1704 with_libcroco_06_prefix
1705 with_included_libunistring
1706 with_libunistring_prefix
1707 with_included_libxml
1713 with_libncurses_prefix
1714 with_libtermcap_prefix
1715 with_libxcurses_prefix
1716 with_libcurses_prefix
1718 with_libexpat_prefix
1724 ac_precious_vars='build_alias
1743 ac_subdirs_all='examples'
1745 # Initialize some variables set by options.
1747 ac_init_version=false
1748 ac_unrecognized_opts=
1749 ac_unrecognized_sep=
1750 # The variables have the same names as the options, with
1751 # dashes changed to underlines.
1752 cache_file=/dev/null
1759 program_transform_name=s,x,x,
1767 # Installation directory options.
1768 # These are left unexpanded so users can "make install exec_prefix=/foo"
1769 # and all the variables that are supposed to be based on exec_prefix
1770 # by default will actually change.
1771 # Use braces instead of parens because sh, perl, etc. also accept them.
1772 # (The list follows the same order as the GNU Coding Standards.)
1773 bindir='${exec_prefix}/bin'
1774 sbindir='${exec_prefix}/sbin'
1775 libexecdir='${exec_prefix}/libexec'
1776 datarootdir='${prefix}/share'
1777 datadir='${datarootdir}'
1778 sysconfdir='${prefix}/etc'
1779 sharedstatedir='${prefix}/com'
1780 localstatedir='${prefix}/var'
1781 includedir='${prefix}/include'
1782 oldincludedir='/usr/include'
1783 docdir='${datarootdir}/doc/${PACKAGE}'
1784 infodir='${datarootdir}/info'
1789 libdir='${exec_prefix}/lib'
1790 localedir='${datarootdir}/locale'
1791 mandir='${datarootdir}/man'
1797 # If the previous option needs an argument, assign it.
1798 if test -n "$ac_prev"; then
1799 eval $ac_prev=\$ac_option
1805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1809 # Accept the important Cygnus configure options, so we can diagnose typos.
1811 case $ac_dashdash$ac_option in
1815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1818 bindir=$ac_optarg ;;
1820 -build | --build | --buil | --bui | --bu)
1821 ac_prev=build_alias ;;
1822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1823 build_alias=$ac_optarg ;;
1825 -cache-file | --cache-file | --cache-fil | --cache-fi \
1826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1827 ac_prev=cache_file ;;
1828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1830 cache_file=$ac_optarg ;;
1832 --config-cache | -C)
1833 cache_file=config.cache ;;
1835 -datadir | --datadir | --datadi | --datad)
1837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1838 datadir=$ac_optarg ;;
1840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1841 | --dataroo | --dataro | --datar)
1842 ac_prev=datarootdir ;;
1843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1845 datarootdir=$ac_optarg ;;
1847 -disable-* | --disable-*)
1848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1849 # Reject names that are not valid shell variable names.
1850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1851 as_fn_error "invalid feature name: $ac_useropt"
1852 ac_useropt_orig=$ac_useropt
1853 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1854 case $ac_user_opts in
1856 "enable_$ac_useropt"
1858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1859 ac_unrecognized_sep=', ';;
1861 eval enable_$ac_useropt=no ;;
1863 -docdir | --docdir | --docdi | --doc | --do)
1865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1866 docdir=$ac_optarg ;;
1868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1871 dvidir=$ac_optarg ;;
1873 -enable-* | --enable-*)
1874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1875 # Reject names that are not valid shell variable names.
1876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1877 as_fn_error "invalid feature name: $ac_useropt"
1878 ac_useropt_orig=$ac_useropt
1879 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
1880 case $ac_user_opts in
1882 "enable_$ac_useropt"
1884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1885 ac_unrecognized_sep=', ';;
1887 eval enable_$ac_useropt=\$ac_optarg ;;
1889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1891 | --exec | --exe | --ex)
1892 ac_prev=exec_prefix ;;
1893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1895 | --exec=* | --exe=* | --ex=*)
1896 exec_prefix=$ac_optarg ;;
1898 -gas | --gas | --ga | --g)
1899 # Obsolete; use --with-gas.
1902 -help | --help | --hel | --he | -h)
1903 ac_init_help=long ;;
1904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1905 ac_init_help=recursive ;;
1906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1907 ac_init_help=short ;;
1909 -host | --host | --hos | --ho)
1910 ac_prev=host_alias ;;
1911 -host=* | --host=* | --hos=* | --ho=*)
1912 host_alias=$ac_optarg ;;
1914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1918 htmldir=$ac_optarg ;;
1920 -includedir | --includedir | --includedi | --included | --include \
1921 | --includ | --inclu | --incl | --inc)
1922 ac_prev=includedir ;;
1923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1924 | --includ=* | --inclu=* | --incl=* | --inc=*)
1925 includedir=$ac_optarg ;;
1927 -infodir | --infodir | --infodi | --infod | --info | --inf)
1929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1930 infodir=$ac_optarg ;;
1932 -libdir | --libdir | --libdi | --libd)
1934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1935 libdir=$ac_optarg ;;
1937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1938 | --libexe | --libex | --libe)
1939 ac_prev=libexecdir ;;
1940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1941 | --libexe=* | --libex=* | --libe=*)
1942 libexecdir=$ac_optarg ;;
1944 -localedir | --localedir | --localedi | --localed | --locale)
1945 ac_prev=localedir ;;
1946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1947 localedir=$ac_optarg ;;
1949 -localstatedir | --localstatedir | --localstatedi | --localstated \
1950 | --localstate | --localstat | --localsta | --localst | --locals)
1951 ac_prev=localstatedir ;;
1952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1954 localstatedir=$ac_optarg ;;
1956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1959 mandir=$ac_optarg ;;
1961 -nfp | --nfp | --nf)
1962 # Obsolete; use --without-fp.
1965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1966 | --no-cr | --no-c | -n)
1969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1975 | --oldin | --oldi | --old | --ol | --o)
1976 ac_prev=oldincludedir ;;
1977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1980 oldincludedir=$ac_optarg ;;
1982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1985 prefix=$ac_optarg ;;
1987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1988 | --program-pre | --program-pr | --program-p)
1989 ac_prev=program_prefix ;;
1990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1992 program_prefix=$ac_optarg ;;
1994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1995 | --program-suf | --program-su | --program-s)
1996 ac_prev=program_suffix ;;
1997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1999 program_suffix=$ac_optarg ;;
2001 -program-transform-name | --program-transform-name \
2002 | --program-transform-nam | --program-transform-na \
2003 | --program-transform-n | --program-transform- \
2004 | --program-transform | --program-transfor \
2005 | --program-transfo | --program-transf \
2006 | --program-trans | --program-tran \
2007 | --progr-tra | --program-tr | --program-t)
2008 ac_prev=program_transform_name ;;
2009 -program-transform-name=* | --program-transform-name=* \
2010 | --program-transform-nam=* | --program-transform-na=* \
2011 | --program-transform-n=* | --program-transform-=* \
2012 | --program-transform=* | --program-transfor=* \
2013 | --program-transfo=* | --program-transf=* \
2014 | --program-trans=* | --program-tran=* \
2015 | --progr-tra=* | --program-tr=* | --program-t=*)
2016 program_transform_name=$ac_optarg ;;
2018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2021 pdfdir=$ac_optarg ;;
2023 -psdir | --psdir | --psdi | --psd | --ps)
2025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2036 sbindir=$ac_optarg ;;
2038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2040 | --sharedst | --shareds | --shared | --share | --shar \
2042 ac_prev=sharedstatedir ;;
2043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2047 sharedstatedir=$ac_optarg ;;
2049 -site | --site | --sit)
2051 -site=* | --site=* | --sit=*)
2054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2057 srcdir=$ac_optarg ;;
2059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2060 | --syscon | --sysco | --sysc | --sys | --sy)
2061 ac_prev=sysconfdir ;;
2062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2064 sysconfdir=$ac_optarg ;;
2066 -target | --target | --targe | --targ | --tar | --ta | --t)
2067 ac_prev=target_alias ;;
2068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2069 target_alias=$ac_optarg ;;
2071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2074 -version | --version | --versio | --versi | --vers | -V)
2075 ac_init_version=: ;;
2078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2079 # Reject names that are not valid shell variable names.
2080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2081 as_fn_error "invalid package name: $ac_useropt"
2082 ac_useropt_orig=$ac_useropt
2083 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
2084 case $ac_user_opts in
2088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2089 ac_unrecognized_sep=', ';;
2091 eval with_$ac_useropt=\$ac_optarg ;;
2093 -without-* | --without-*)
2094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2095 # Reject names that are not valid shell variable names.
2096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2097 as_fn_error "invalid package name: $ac_useropt"
2098 ac_useropt_orig=$ac_useropt
2099 ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'`
2100 case $ac_user_opts in
2104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2105 ac_unrecognized_sep=', ';;
2107 eval with_$ac_useropt=no ;;
2110 # Obsolete; use --with-x.
2113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2114 | --x-incl | --x-inc | --x-in | --x-i)
2115 ac_prev=x_includes ;;
2116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2118 x_includes=$ac_optarg ;;
2120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2122 ac_prev=x_libraries ;;
2123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2125 x_libraries=$ac_optarg ;;
2127 -*) as_fn_error "unrecognized option: \`$ac_option'
2128 Try \`$0 --help' for more information."
2132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2133 # Reject names that are not valid shell variable names.
2134 case $ac_envvar in #(
2135 '' | [0-9]* | *[!_$as_cr_alnum]* )
2136 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2138 eval $ac_envvar=\$ac_optarg
2139 export $ac_envvar ;;
2142 # FIXME: should be removed in autoconf 3.0.
2143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2152 if test -n "$ac_prev"; then
2153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2154 as_fn_error "missing argument to $ac_option"
2157 if test -n "$ac_unrecognized_opts"; then
2158 case $enable_option_checking in
2160 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2165 # Check all directory arguments for consistency.
2166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2167 datadir sysconfdir sharedstatedir localstatedir includedir \
2168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2169 libdir localedir mandir
2171 eval ac_val=\$$ac_var
2172 # Remove trailing slashes.
2175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2176 eval $ac_var=\$ac_val;;
2178 # Be sure to have absolute directory names.
2180 [\\/$]* | ?:[\\/]* ) continue;;
2181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2183 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2186 # There might be people who depend on the old broken behavior: `$host'
2187 # used to hold the argument of --host etc.
2188 # FIXME: To remove some day.
2191 target=$target_alias
2193 # FIXME: To remove some day.
2194 if test "x$host_alias" != x; then
2195 if test "x$build_alias" = x; then
2196 cross_compiling=maybe
2197 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2198 If a cross compiler is detected then cross compile mode will be used." >&2
2199 elif test "x$build_alias" != "x$host_alias"; then
2205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2207 test "$silent" = yes && exec 6>/dev/null
2210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2211 ac_ls_di=`ls -di .` &&
2212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2213 as_fn_error "working directory cannot be determined"
2214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2215 as_fn_error "pwd does not report name of working directory"
2218 # Find the source files, if location was not specified.
2219 if test -z "$srcdir"; then
2220 ac_srcdir_defaulted=yes
2221 # Try the directory containing this script, then the parent directory.
2222 ac_confdir=`$as_dirname -- "$as_myself" ||
2223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2224 X"$as_myself" : 'X\(//\)[^/]' \| \
2225 X"$as_myself" : 'X\(//\)$' \| \
2226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2227 $as_echo X"$as_myself" |
2228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2246 if test ! -r "$srcdir/$ac_unique_file"; then
2250 ac_srcdir_defaulted=no
2252 if test ! -r "$srcdir/$ac_unique_file"; then
2253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2254 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2260 # When building in place, set srcdir=.
2261 if test "$ac_abs_confdir" = "$ac_pwd"; then
2264 # Remove unnecessary trailing slashes from srcdir.
2265 # Double slashes in file names in object file debugging info
2266 # mess up M-x gdb in Emacs.
2268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2270 for ac_var in $ac_precious_vars; do
2271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2272 eval ac_env_${ac_var}_value=\$${ac_var}
2273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2278 # Report the --help message.
2280 if test "$ac_init_help" = "long"; then
2281 # Omit some internal or obsolete options to make the list less imposing.
2282 # This message is too long to be a string in the A/UX 3.1 sh.
2284 \`configure' configures this package to adapt to many kinds of systems.
2286 Usage: $0 [OPTION]... [VAR=VALUE]...
2288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2289 VAR=VALUE. See below for descriptions of some of the useful variables.
2291 Defaults for the options are specified in brackets.
2294 -h, --help display this help and exit
2295 --help=short display options specific to this package
2296 --help=recursive display the short help of all the included packages
2297 -V, --version display version information and exit
2298 -q, --quiet, --silent do not print \`checking...' messages
2299 --cache-file=FILE cache test results in FILE [disabled]
2300 -C, --config-cache alias for \`--cache-file=config.cache'
2301 -n, --no-create do not create output files
2302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2304 Installation directories:
2305 --prefix=PREFIX install architecture-independent files in PREFIX
2306 [$ac_default_prefix]
2307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2310 By default, \`make install' will install all the files in
2311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2313 for instance \`--prefix=\$HOME'.
2315 For better control, use the options below.
2317 Fine tuning of the installation directories:
2318 --bindir=DIR user executables [EPREFIX/bin]
2319 --sbindir=DIR system admin executables [EPREFIX/sbin]
2320 --libexecdir=DIR program executables [EPREFIX/libexec]
2321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2324 --libdir=DIR object code libraries [EPREFIX/lib]
2325 --includedir=DIR C header files [PREFIX/include]
2326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2329 --infodir=DIR info documentation [DATAROOTDIR/info]
2330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2331 --mandir=DIR man documentation [DATAROOTDIR/man]
2332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2333 --htmldir=DIR html documentation [DOCDIR]
2334 --dvidir=DIR dvi documentation [DOCDIR]
2335 --pdfdir=DIR pdf documentation [DOCDIR]
2336 --psdir=DIR ps documentation [DOCDIR]
2342 --program-prefix=PREFIX prepend PREFIX to installed program names
2343 --program-suffix=SUFFIX append SUFFIX to installed program names
2344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2347 --build=BUILD configure for building on BUILD [guessed]
2348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2352 if test -n "$ac_init_help"; then
2357 --disable-option-checking ignore unrecognized --enable/--with options
2358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2360 --enable-silent-rules less verbose build output (undo: `make V=1')
2361 --disable-silent-rules verbose build output (undo: `make V=0')
2362 --disable-dependency-tracking speeds up one-time build
2363 --enable-dependency-tracking do not reject slow dependency extractors
2364 --disable-java do not build Java sources
2365 --disable-native-java do not compile Java to native executables
2366 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono)
2367 --enable-threads={posix|solaris|pth|win32}
2368 specify multithreading API
2369 --disable-threads build without multithread safety
2370 --enable-shared[=PKGS] build shared libraries [default=yes]
2371 --enable-static[=PKGS] build static libraries [default=yes]
2372 --enable-fast-install[=PKGS]
2373 optimize for fast installation [default=yes]
2374 --disable-libtool-lock avoid locking (might break parallel builds)
2375 --disable-nls do not use Native Language Support
2376 --disable-rpath do not hardcode runtime library paths
2377 --disable-acl do not support ACLs
2378 --disable-openmp do not use OpenMP
2379 --enable-relocatable install a package that can be moved in the file
2381 --disable-largefile omit support for large files
2382 --disable-curses do not use libncurses, libtermcap even if they exist
2385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2387 --with-pic try to use only PIC/non-PIC objects [default=use
2389 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2390 --with-gnu-ld assume the C compiler uses GNU ld default=no
2391 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2392 --without-libpth-prefix don't search for libpth in includedir and libdir
2393 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2394 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2395 --with-included-gettext use the GNU gettext library included here
2396 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2397 --without-libintl-prefix don't search for libintl in includedir and libdir
2398 --with-included-glib use the glib2 included here
2399 --with-libglib-2.0-prefix[=DIR] search for libglib-2.0 in DIR/include and DIR/lib
2400 --without-libglib-2.0-prefix don't search for libglib-2.0 in includedir and libdir
2401 --with-included-libcroco use the libcroco included here
2402 --with-libcroco-0.6-prefix[=DIR] search for libcroco-0.6 in DIR/include and DIR/lib
2403 --without-libcroco-0.6-prefix don't search for libcroco-0.6 in includedir and libdir
2404 --with-included-libunistring use the libunistring parts included here
2405 --with-libunistring-prefix[=DIR] search for libunistring in DIR/include and DIR/lib
2406 --without-libunistring-prefix don't search for libunistring in includedir and libdir
2407 --with-included-libxml use the libxml2 included here
2408 --with-libxml2-prefix[=DIR] search for libxml2 in DIR/include and DIR/lib
2409 --without-libxml2-prefix don't search for libxml2 in includedir and libdir
2410 --with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib
2411 --without-libncurses-prefix don't search for libncurses in includedir and libdir
2412 --with-libtermcap-prefix[=DIR] search for libtermcap in DIR/include and DIR/lib
2413 --without-libtermcap-prefix don't search for libtermcap in includedir and libdir
2414 --with-libxcurses-prefix[=DIR] search for libxcurses in DIR/include and DIR/lib
2415 --without-libxcurses-prefix don't search for libxcurses in includedir and libdir
2416 --with-libcurses-prefix[=DIR] search for libcurses in DIR/include and DIR/lib
2417 --without-libcurses-prefix don't search for libcurses in includedir and libdir
2418 --without-included-regex
2419 don't compile regex; this is the default on systems
2420 with recent-enough versions of the GNU C Library
2421 (use with caution on other systems).
2422 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
2423 --without-libexpat-prefix don't search for libexpat in includedir and libdir
2424 --with-lispdir override the default lisp directory
2425 --without-emacs do not use Emacs, don't install po-mode
2426 --without-git don't use git to compress the infrastructure archive
2427 --with-cvs use cvs to compress the infrastructure archive
2430 Some influential environment variables:
2431 CC C compiler command
2432 CFLAGS C compiler flags
2433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2434 nonstandard directory <lib dir>
2435 LIBS libraries to pass to the linker, e.g. -l<library>
2436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2437 you have headers in a nonstandard directory <include dir>
2438 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2439 the first program found out of: `bison -y', `byacc', `yacc'.
2440 YFLAGS The list of arguments that will be passed by default to $YACC.
2441 This script will default YFLAGS to the empty string to avoid a
2442 default value of `-d' given by some make applications.
2443 GCJ Java native code compiler command
2444 GCJFLAGS Java native code compiler flags
2446 EMACS the Emacs editor command
2448 the Emacs library search path
2449 CXX C++ compiler command
2450 CXXFLAGS C++ compiler flags
2451 CXXCPP C++ preprocessor
2453 Use these variables to override the choices made by `configure' or to help
2454 it to find libraries and programs with nonstandard names/locations.
2456 Report bugs to the package provider.
2461 if test "$ac_init_help" = "recursive"; then
2462 # If there are subdirs, report their specific --help.
2463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2464 test -d "$ac_dir" ||
2465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2473 # A ".." for each directory in $ac_dir_suffix.
2474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2475 case $ac_top_builddir_sub in
2476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2480 ac_abs_top_builddir=$ac_pwd
2481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2482 # for backward compatibility:
2483 ac_top_builddir=$ac_top_build_prefix
2486 .) # We are building in place.
2488 ac_top_srcdir=$ac_top_builddir_sub
2489 ac_abs_top_srcdir=$ac_pwd ;;
2490 [\\/]* | ?:[\\/]* ) # Absolute name.
2491 ac_srcdir=$srcdir$ac_dir_suffix;
2492 ac_top_srcdir=$srcdir
2493 ac_abs_top_srcdir=$srcdir ;;
2495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2496 ac_top_srcdir=$ac_top_build_prefix$srcdir
2497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2501 cd "$ac_dir" || { ac_status=$?; continue; }
2502 # Check for guested configure.
2503 if test -f "$ac_srcdir/configure.gnu"; then
2505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2506 elif test -f "$ac_srcdir/configure"; then
2508 $SHELL "$ac_srcdir/configure" --help=recursive
2510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2512 cd "$ac_pwd" || { ac_status=$?; break; }
2516 test -n "$ac_init_help" && exit $ac_status
2517 if $ac_init_version; then
2520 generated by GNU Autoconf 2.65
2522 Copyright (C) 2009 Free Software Foundation, Inc.
2523 This configure script is free software; the Free Software Foundation
2524 gives unlimited permission to copy, distribute and modify it.
2529 ## ------------------------ ##
2530 ## Autoconf initialization. ##
2531 ## ------------------------ ##
2533 # ac_fn_c_try_compile LINENO
2534 # --------------------------
2535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_c_try_compile ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 rm -f conftest.$ac_objext
2540 if { { ac_try="$ac_compile"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_compile") 2>conftest.err
2549 if test -s conftest.err; then
2550 grep -v '^ *+' conftest.err >conftest.er1
2551 cat conftest.er1 >&5
2552 mv -f conftest.er1 conftest.err
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && {
2556 test -z "$ac_c_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest.$ac_objext; then :
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 as_fn_set_status $ac_retval
2569 } # ac_fn_c_try_compile
2571 # ac_fn_c_try_cpp LINENO
2572 # ----------------------
2573 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 if { { ac_try="$ac_cpp conftest.$ac_ext"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2586 if test -s conftest.err; then
2587 grep -v '^ *+' conftest.err >conftest.er1
2588 cat conftest.er1 >&5
2589 mv -f conftest.er1 conftest.err
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } >/dev/null && {
2593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604 as_fn_set_status $ac_retval
2608 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2609 # -------------------------------------------------------
2610 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2611 # the include files in INCLUDES and setting the cache variable VAR
2613 ac_fn_c_check_header_mongrel ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2618 $as_echo_n "checking for $2... " >&6; }
2619 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2620 $as_echo_n "(cached) " >&6
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2626 # Is the header compilable?
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2628 $as_echo_n "checking $2 usability... " >&6; }
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635 ac_header_compiler=yes
2637 ac_header_compiler=no
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2641 $as_echo "$ac_header_compiler" >&6; }
2643 # Is the header present?
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2645 $as_echo_n "checking $2 presence... " >&6; }
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2650 if ac_fn_c_try_cpp "$LINENO"; then :
2651 ac_header_preproc=yes
2653 ac_header_preproc=no
2655 rm -f conftest.err conftest.$ac_ext
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2657 $as_echo "$ac_header_preproc" >&6; }
2659 # So? What about this header?
2660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2663 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2669 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2671 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2673 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2675 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2681 $as_echo_n "checking for $2... " >&6; }
2682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2683 $as_echo_n "(cached) " >&6
2685 eval "$3=\$ac_header_compiler"
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 } # ac_fn_c_check_header_mongrel
2695 # ac_fn_c_try_run LINENO
2696 # ----------------------
2697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2698 # that executables *can* be run.
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 if { { ac_try="$ac_link"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708 $as_echo "$ac_try_echo"; } >&5
2709 (eval "$ac_link") 2>&5
2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2713 { { case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_try") 2>&5
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; }; }; then :
2725 $as_echo "$as_me: program exited with status $ac_status" >&5
2726 $as_echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 ac_retval=$ac_status
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 as_fn_set_status $ac_retval
2737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2738 # -------------------------------------------------------
2739 # Tests whether HEADER exists and can be compiled using the include files in
2740 # INCLUDES, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_compile ()
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2754 if ac_fn_c_try_compile "$LINENO"; then :
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763 $as_echo "$ac_res" >&6; }
2764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2766 } # ac_fn_c_check_header_compile
2768 # ac_fn_c_try_link LINENO
2769 # -----------------------
2770 # Try to link conftest.$ac_ext, and return whether this succeeded.
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 rm -f conftest.$ac_objext conftest$ac_exeext
2775 if { { ac_try="$ac_link"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link") 2>conftest.err
2784 if test -s conftest.err; then
2785 grep -v '^ *+' conftest.err >conftest.er1
2786 cat conftest.er1 >&5
2787 mv -f conftest.er1 conftest.err
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest$ac_exeext && {
2794 test "$cross_compiling" = yes ||
2795 $as_test_x conftest$ac_exeext
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2806 # interfere with the next link command; also delete a directory that is
2807 # left behind by Apple's compiler. We do this before executing the actions.
2808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2810 as_fn_set_status $ac_retval
2812 } # ac_fn_c_try_link
2814 # ac_fn_c_check_func LINENO FUNC VAR
2815 # ----------------------------------
2816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2817 ac_fn_c_check_func ()
2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2821 $as_echo_n "checking for $2... " >&6; }
2822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2823 $as_echo_n "(cached) " >&6
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2829 #define $2 innocuous_$2
2831 /* System header to define __stub macros and hopefully few prototypes,
2832 which can conflict with char $2 (); below.
2833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2834 <limits.h> exists even on freestanding compilers. */
2837 # include <limits.h>
2839 # include <assert.h>
2844 /* Override any GCC internal prototype to avoid an error.
2845 Use char because int might match the return type of a GCC
2846 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined __stub_$2 || defined __stub___$2
2866 if ac_fn_c_try_link "$LINENO"; then :
2871 rm -f core conftest.err conftest.$ac_objext \
2872 conftest$ac_exeext conftest.$ac_ext
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2876 $as_echo "$ac_res" >&6; }
2877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2879 } # ac_fn_c_check_func
2881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2882 # -------------------------------------------
2883 # Tests whether TYPE exists after having included INCLUDES, setting cache
2884 # variable VAR accordingly.
2885 ac_fn_c_check_type ()
2887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2889 $as_echo_n "checking for $2... " >&6; }
2890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2891 $as_echo_n "(cached) " >&6
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2906 if ac_fn_c_try_compile "$LINENO"; then :
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h. */
2919 if ac_fn_c_try_compile "$LINENO"; then :
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2933 } # ac_fn_c_check_type
2935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2936 # --------------------------------------------
2937 # Tries to find the compile-time value of EXPR in a program that includes
2938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2940 ac_fn_c_compute_int ()
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 if test "$cross_compiling" = yes; then
2944 # Depending upon the size, compute the lo and hi bounds.
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2951 static int test_array [1 - 2 * !(($2) >= 0)];
2958 if ac_fn_c_try_compile "$LINENO"; then :
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975 ac_hi=$ac_mid; break
2977 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2978 if test $ac_lo -le $ac_mid; then
2982 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2993 static int test_array [1 - 2 * !(($2) < 0)];
3000 if ac_fn_c_try_compile "$LINENO"; then :
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3009 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017 ac_lo=$ac_mid; break
3019 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3020 if test $ac_mid -le $ac_hi; then
3024 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 # Binary search between lo and hi bounds.
3035 while test "x$ac_lo" != "x$ac_hi"; do
3036 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3050 if ac_fn_c_try_compile "$LINENO"; then :
3053 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3065 static long int longval () { return $2; }
3066 static unsigned long int ulongval () { return $2; }
3073 FILE *f = fopen ("conftest.val", "w");
3078 long int i = longval ();
3081 fprintf (f, "%ld", i);
3085 unsigned long int i = ulongval ();
3088 fprintf (f, "%lu", i);
3090 /* Do not output a trailing newline, as this causes \r\n confusion
3091 on some platforms. */
3092 return ferror (f) || fclose (f) != 0;
3098 if ac_fn_c_try_run "$LINENO"; then :
3099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3104 conftest.$ac_objext conftest.beam conftest.$ac_ext
3108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3109 as_fn_set_status $ac_retval
3111 } # ac_fn_c_compute_int
3113 # ac_fn_c_check_decl LINENO SYMBOL VAR
3114 # ------------------------------------
3115 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
3116 ac_fn_c_check_decl ()
3118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
3120 $as_echo_n "checking whether $2 is declared... " >&6; }
3121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3122 $as_echo_n "(cached) " >&6
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3138 if ac_fn_c_try_compile "$LINENO"; then :
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3147 $as_echo "$ac_res" >&6; }
3148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3150 } # ac_fn_c_check_decl
3152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3153 # ----------------------------------------------------
3154 # Tries to find if the field MEMBER exists in type AGGR, after including
3155 # INCLUDES, setting cache variable VAR accordingly.
3156 ac_fn_c_check_member ()
3158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3160 $as_echo_n "checking for $2.$3... " >&6; }
3161 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
3162 $as_echo_n "(cached) " >&6
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3177 if ac_fn_c_try_compile "$LINENO"; then :
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3187 if (sizeof ac_aggr.$3)
3193 if ac_fn_c_try_compile "$LINENO"; then :
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3204 $as_echo "$ac_res" >&6; }
3205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3207 } # ac_fn_c_check_member
3209 # ac_fn_cxx_try_compile LINENO
3210 # ----------------------------
3211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3212 ac_fn_cxx_try_compile ()
3214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3215 rm -f conftest.$ac_objext
3216 if { { ac_try="$ac_compile"
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_compile") 2>conftest.err
3225 if test -s conftest.err; then
3226 grep -v '^ *+' conftest.err >conftest.er1
3227 cat conftest.er1 >&5
3228 mv -f conftest.er1 conftest.err
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; } && {
3232 test -z "$ac_cxx_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then :
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3243 as_fn_set_status $ac_retval
3245 } # ac_fn_cxx_try_compile
3247 # ac_fn_cxx_try_cpp LINENO
3248 # ------------------------
3249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3250 ac_fn_cxx_try_cpp ()
3252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3253 if { { ac_try="$ac_cpp conftest.$ac_ext"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3262 if test -s conftest.err; then
3263 grep -v '^ *+' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 mv -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; } >/dev/null && {
3269 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3270 test ! -s conftest.err
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3280 as_fn_set_status $ac_retval
3282 } # ac_fn_cxx_try_cpp
3284 # ac_fn_cxx_try_link LINENO
3285 # -------------------------
3286 # Try to link conftest.$ac_ext, and return whether this succeeded.
3287 ac_fn_cxx_try_link ()
3289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3290 rm -f conftest.$ac_objext conftest$ac_exeext
3291 if { { ac_try="$ac_link"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link") 2>conftest.err
3300 if test -s conftest.err; then
3301 grep -v '^ *+' conftest.err >conftest.er1
3302 cat conftest.er1 >&5
3303 mv -f conftest.er1 conftest.err
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; } && {
3307 test -z "$ac_cxx_werror_flag" ||
3308 test ! -s conftest.err
3309 } && test -s conftest$ac_exeext && {
3310 test "$cross_compiling" = yes ||
3311 $as_test_x conftest$ac_exeext
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3321 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3322 # interfere with the next link command; also delete a directory that is
3323 # left behind by Apple's compiler. We do this before executing the actions.
3324 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3325 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3326 as_fn_set_status $ac_retval
3328 } # ac_fn_cxx_try_link
3329 cat >config.log <<_ACEOF
3330 This file contains any messages produced by compilers while
3331 running configure, to aid debugging if configure makes a mistake.
3333 It was created by $as_me, which was
3334 generated by GNU Autoconf 2.65. Invocation command line was
3346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3353 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3355 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3356 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3358 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3359 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3360 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3361 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 $as_echo "PATH: $as_dir"
3386 # Keep a trace of the command line.
3387 # Strip out --no-create and --no-recursion so they do not pile up.
3388 # Strip out --silent because we don't want to record it for future runs.
3389 # Also quote any args containing shell meta-characters.
3390 # Make two passes to allow for proper duplicate-argument suppression.
3394 ac_must_keep_next=false
3400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3402 | -silent | --silent | --silen | --sile | --sil)
3405 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3408 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3410 as_fn_append ac_configure_args1 " '$ac_arg'"
3411 if test $ac_must_keep_next = true; then
3412 ac_must_keep_next=false # Got value, back to normal.
3415 *=* | --config-cache | -C | -disable-* | --disable-* \
3416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3418 | -with-* | --with-* | -without-* | --without-* | --x)
3419 case "$ac_configure_args0 " in
3420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3423 -* ) ac_must_keep_next=true ;;
3426 as_fn_append ac_configure_args " '$ac_arg'"
3431 { ac_configure_args0=; unset ac_configure_args0;}
3432 { ac_configure_args1=; unset ac_configure_args1;}
3434 # When interrupted or exit'd, cleanup temporary files, and complete
3435 # config.log. We remove comments because anyway the quotes in there
3436 # would cause problems or look ugly.
3437 # WARNING: Use '\'' to represent an apostrophe within the trap.
3438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3439 trap 'exit_status=$?
3440 # Save into config.log some information that might help in debugging.
3445 ## ---------------- ##
3446 ## Cache variables. ##
3447 ## ---------------- ##
3450 # The following way of writing the cache mishandles newlines in values,
3452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3453 eval ac_val=\$$ac_var
3457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3461 _ | IFS | as_nl) ;; #(
3462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3463 *) { eval $ac_var=; unset $ac_var;} ;;
3468 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3469 *${as_nl}ac_space=\ *)
3471 "s/'\''/'\''\\\\'\'''\''/g;
3472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3483 ## ----------------- ##
3484 ## Output variables. ##
3485 ## ----------------- ##
3488 for ac_var in $ac_subst_vars
3490 eval ac_val=\$$ac_var
3492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3494 $as_echo "$ac_var='\''$ac_val'\''"
3498 if test -n "$ac_subst_files"; then
3500 ## ------------------- ##
3501 ## File substitutions. ##
3502 ## ------------------- ##
3505 for ac_var in $ac_subst_files
3507 eval ac_val=\$$ac_var
3509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3511 $as_echo "$ac_var='\''$ac_val'\''"
3516 if test -s confdefs.h; then
3526 test "$ac_signal" != 0 &&
3527 $as_echo "$as_me: caught signal $ac_signal"
3528 $as_echo "$as_me: exit $exit_status"
3530 rm -f core *.core core.conftest.* &&
3531 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3534 for ac_signal in 1 2 13 15; do
3535 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3539 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3540 rm -f -r conftest* confdefs.h
3542 $as_echo "/* confdefs.h */" > confdefs.h
3544 # Predefined preprocessor variables.
3546 cat >>confdefs.h <<_ACEOF
3547 #define PACKAGE_NAME "$PACKAGE_NAME"
3550 cat >>confdefs.h <<_ACEOF
3551 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3554 cat >>confdefs.h <<_ACEOF
3555 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3558 cat >>confdefs.h <<_ACEOF
3559 #define PACKAGE_STRING "$PACKAGE_STRING"
3562 cat >>confdefs.h <<_ACEOF
3563 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3566 cat >>confdefs.h <<_ACEOF
3567 #define PACKAGE_URL "$PACKAGE_URL"
3571 # Let the site file select an alternate cache file if it wants to.
3572 # Prefer an explicitly selected file to automatically selected ones.
3575 if test -n "$CONFIG_SITE"; then
3576 ac_site_file1=$CONFIG_SITE
3577 elif test "x$prefix" != xNONE; then
3578 ac_site_file1=$prefix/share/config.site
3579 ac_site_file2=$prefix/etc/config.site
3581 ac_site_file1=$ac_default_prefix/share/config.site
3582 ac_site_file2=$ac_default_prefix/etc/config.site
3584 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3586 test "x$ac_site_file" = xNONE && continue
3587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3589 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3590 sed 's/^/| /' "$ac_site_file" >&5
3595 if test -r "$cache_file"; then
3596 # Some versions of bash will fail to source /dev/null (special files
3597 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3598 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3600 $as_echo "$as_me: loading cache $cache_file" >&6;}
3602 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3603 *) . "./$cache_file";;
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3608 $as_echo "$as_me: creating cache $cache_file" >&6;}
3612 gt_needs="$gt_needs need-ngettext"
3613 gl_header_list="$gl_header_list stdlib.h"
3614 gl_header_list="$gl_header_list unistd.h"
3615 gl_header_list="$gl_header_list sys/param.h"
3616 gl_header_list="$gl_header_list string.h"
3617 gl_func_list="$gl_func_list canonicalize_file_name"
3618 gl_func_list="$gl_func_list getcwd"
3619 gl_func_list="$gl_func_list readlink"
3620 gl_func_list="$gl_func_list realpath"
3621 gl_header_list="$gl_header_list utime.h"
3622 gl_func_list="$gl_func_list dup2"
3623 gl_header_list="$gl_header_list errno.h"
3624 gl_func_list="$gl_func_list fcntl"
3625 gl_header_list="$gl_header_list fcntl.h"
3626 gl_header_list="$gl_header_list float.h"
3627 gl_func_list="$gl_func_list btowc"
3628 gl_func_list="$gl_func_list isblank"
3629 gl_func_list="$gl_func_list iswctype"
3630 gl_func_list="$gl_func_list mbsrtowcs"
3631 gl_func_list="$gl_func_list mempcpy"
3632 gl_func_list="$gl_func_list wmemchr"
3633 gl_func_list="$gl_func_list wmemcpy"
3634 gl_func_list="$gl_func_list wmempcpy"
3635 gl_header_list="$gl_header_list wctype.h"
3636 gl_func_list="$gl_func_list getdelim"
3637 gl_func_list="$gl_func_list getdtablesize"
3638 gl_getopt_required=GNU
3639 gl_header_list="$gl_header_list getopt.h"
3640 gl_header_list="$gl_header_list sys/time.h"
3641 gl_func_list="$gl_func_list gettimeofday"
3642 gl_header_list="$gl_header_list iconv.h"
3643 gl_header_list="$gl_header_list libcroco-0.6/libcroco/libcroco-config.h"
3644 gl_header_list="$gl_header_list libxml2/libxml/xmlexports.h"
3645 gl_header_list="$gl_header_list libxml2/libxml/xmlversion.h"
3646 gl_header_list="$gl_header_list stddef.h"
3647 gl_header_list="$gl_header_list xlocale.h"
3648 gl_header_list="$gl_header_list locale.h"
3649 gl_func_list="$gl_func_list lstat"
3650 gl_func_list="$gl_func_list mbsinit"
3651 gl_func_list="$gl_func_list mbrtowc"
3652 gl_func_list="$gl_func_list mbslen"
3653 gl_header_list="$gl_header_list wchar.h"
3654 gl_func_list="$gl_func_list isascii"
3655 gl_header_list="$gl_header_list sys/mman.h"
3656 gl_func_list="$gl_func_list mprotect"
3657 gl_func_list="$gl_func_list memchr"
3658 gl_func_list="$gl_func_list pathconf"
3659 gl_func_list="$gl_func_list select"
3660 gl_func_list="$gl_func_list pipe2"
3661 gl_func_list="$gl_func_list posix_spawn"
3662 gl_func_list="$gl_func_list setenv"
3663 gl_header_list="$gl_header_list sys/socket.h"
3664 gl_header_list="$gl_header_list sched.h"
3665 gl_func_list="$gl_func_list sigaction"
3666 gl_func_list="$gl_func_list sigaltstack"
3667 gl_func_list="$gl_func_list siginterrupt"
3668 gl_header_list="$gl_header_list signal.h"
3669 gl_header_list="$gl_header_list spawn.h"
3670 gl_header_list="$gl_header_list stdarg.h"
3671 gl_header_list="$gl_header_list stdint.h"
3672 gl_header_list="$gl_header_list stdio.h"
3673 gl_func_list="$gl_func_list stpncpy"
3674 gl_header_list="$gl_header_list sys/select.h"
3675 gl_header_list="$gl_header_list sys/stat.h"
3676 gl_header_list="$gl_header_list sys/wait.h"
3677 gl_header_list="$gl_header_list time.h"
3678 gl_func_list="$gl_func_list pipe"
3679 gl_func_list="$gl_func_list vasnprintf"
3680 gl_func_list="$gl_func_list iswcntrl"
3681 gl_func_list="$gl_func_list iswblank"
3682 gl_func_list="$gl_func_list wcwidth"
3683 gl_func_list="$gl_func_list newlocale"
3684 gl_func_list="$gl_func_list symlink"
3685 gl_func_list="$gl_func_list shutdown"
3686 gl_func_list="$gl_func_list wctob"
3687 gl_header_list="$gl_header_list langinfo.h"
3688 gl_func_list="$gl_func_list nl_langinfo"
3689 gl_func_list="$gl_func_list wcscoll"
3690 gl_func_list="$gl_func_list wcrtomb"
3691 gl_func_list="$gl_func_list getrlimit"
3692 gl_func_list="$gl_func_list setrlimit"
3693 gl_func_list="$gl_func_list uselocale"
3694 # Check that the precious variables saved in the cache have kept the same
3696 ac_cache_corrupted=false
3697 for ac_var in $ac_precious_vars; do
3698 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3699 eval ac_new_set=\$ac_env_${ac_var}_set
3700 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3701 eval ac_new_val=\$ac_env_${ac_var}_value
3702 case $ac_old_set,$ac_new_set in
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3705 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3706 ac_cache_corrupted=: ;;
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3709 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3710 ac_cache_corrupted=: ;;
3713 if test "x$ac_old_val" != "x$ac_new_val"; then
3714 # differences in whitespace do not lead to failure.
3715 ac_old_val_w=`echo x $ac_old_val`
3716 ac_new_val_w=`echo x $ac_new_val`
3717 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3719 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3720 ac_cache_corrupted=:
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3723 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3724 eval $ac_var=\$ac_old_val
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3727 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3729 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3732 # Pass precious variables to config.status.
3733 if test "$ac_new_set" = set; then
3735 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3736 *) ac_arg=$ac_var=$ac_new_val ;;
3738 case " $ac_configure_args " in
3739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3740 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3744 if $ac_cache_corrupted; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3748 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3749 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3751 ## -------------------- ##
3752 ## Main body of script. ##
3753 ## -------------------- ##
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3765 for ac_t in install-sh install.sh shtool; do
3766 if test -f "$ac_dir/$ac_t"; then
3768 ac_install_sh="$ac_aux_dir/$ac_t -c"
3773 if test -z "$ac_aux_dir"; then
3774 as_fn_error "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3777 # These three variables are undocumented and unsupported,
3778 # and are intended to be withdrawn in a future Autoconf release.
3779 # They can cause serious problems if a builder's source tree is in a directory
3780 # whose full name contains unusual characters.
3781 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3782 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3783 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3786 . $srcdir/../version.sh
3793 am__api_version='1.11'
3795 # Find a good install program. We prefer a C program (faster),
3796 # so one script is as good as another. But avoid the broken or
3797 # incompatible versions:
3798 # SysV /etc/install, /usr/sbin/install
3799 # SunOS /usr/etc/install
3800 # IRIX /sbin/install
3802 # AmigaOS /C/install, which installs bootblocks on floppy discs
3803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3806 # OS/2's system install, which has a completely different semantic
3807 # ./install, which can be erroneously created by make from ./install.sh.
3808 # Reject install programs that cannot install multiple files.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3810 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3811 if test -z "$INSTALL"; then
3812 if test "${ac_cv_path_install+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 # Account for people who put trailing slashes in PATH elements.
3821 case $as_dir/ in #((
3822 ./ | .// | /[cC]/* | \
3823 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3824 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3827 # OSF1 and SCO ODT 3.0 have their own names for install.
3828 # Don't use installbsd from OSF since it installs stuff as root
3830 for ac_prog in ginstall scoinst install; do
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3833 if test $ac_prog = install &&
3834 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835 # AIX install. It has an incompatible calling convention.
3837 elif test $ac_prog = install &&
3838 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839 # program-specific install script used by HP pwplus--don't use.
3842 rm -rf conftest.one conftest.two conftest.dir
3843 echo one > conftest.one
3844 echo two > conftest.two
3846 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3847 test -s conftest.one && test -s conftest.two &&
3848 test -s conftest.dir/conftest.one &&
3849 test -s conftest.dir/conftest.two
3851 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3864 rm -rf conftest.one conftest.two conftest.dir
3867 if test "${ac_cv_path_install+set}" = set; then
3868 INSTALL=$ac_cv_path_install
3870 # As a last resort, use the slow shell script. Don't cache a
3871 # value for INSTALL within a source directory, because that will
3872 # break other packages using the cache if that directory is
3873 # removed, or if the value is a relative name.
3874 INSTALL=$ac_install_sh
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3878 $as_echo "$INSTALL" >&6; }
3880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881 # It thinks the first close brace ends the variable substitution.
3882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3889 $as_echo_n "checking whether build environment is sane... " >&6; }
3892 echo timestamp > conftest.file
3893 # Reject unsafe characters in $srcdir or the absolute working directory
3894 # name. Accept space and tab only in the latter.
3898 *[\\\"\#\$\&\'\`$am_lf]*)
3899 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3902 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3903 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3906 # Do `set' in a subshell so we don't clobber the current shell's
3907 # arguments. Must try -L first in case configure is actually a
3908 # symlink; some systems play weird games with the mod time of symlinks
3909 # (eg FreeBSD returns the mod time of the symlink's containing
3912 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3913 if test "$*" = "X"; then
3915 set X `ls -t "$srcdir/configure" conftest.file`
3918 if test "$*" != "X $srcdir/configure conftest.file" \
3919 && test "$*" != "X conftest.file $srcdir/configure"; then
3921 # If neither matched, then we have a broken ls. This can happen
3922 # if, for instance, CONFIG_SHELL is bash and it inherits a
3923 # broken ls alias from the environment. This has actually
3924 # happened. Such a system could not be considered "sane".
3925 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3926 alias in your environment" "$LINENO" 5
3929 test "$2" = conftest.file
3935 as_fn_error "newly created file is older than distributed files!
3936 Check your system clock" "$LINENO" 5
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3940 test "$program_prefix" != NONE &&
3941 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3942 # Use a double $ so make ignores it.
3943 test "$program_suffix" != NONE &&
3944 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3945 # Double any \ or $.
3946 # By default was `s,x,x', remove it if useless.
3947 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3948 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3950 # expand $ac_aux_dir to an absolute path
3951 am_aux_dir=`cd $ac_aux_dir && pwd`
3953 if test x"${MISSING+set}" != xset; then
3956 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3958 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3961 # Use eval to expand $SHELL
3962 if eval "$MISSING --run true"; then
3963 am_missing_run="$MISSING --run "
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3967 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3970 if test x"${install_sh}" != xset; then
3973 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3975 install_sh="\${SHELL} $am_aux_dir/install-sh"
3979 # Installed binaries are usually stripped using `strip' when the user
3980 # run `make install-strip'. However `strip' might not be the right
3981 # tool to use in cross-compilation environments, therefore Automake
3982 # will honor the `STRIP' environment variable to overrule this program.
3983 if test "$cross_compiling" != no; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}strip; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if test "${ac_cv_prog_STRIP+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$STRIP"; then
3993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 STRIP=$ac_cv_prog_STRIP
4013 if test -n "$STRIP"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4015 $as_echo "$STRIP" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4023 if test -z "$ac_cv_prog_STRIP"; then
4025 # Extract the first word of "strip", so it can be a program name with args.
4026 set dummy strip; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$ac_ct_STRIP"; then
4033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_STRIP="strip"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4053 if test -n "$ac_ct_STRIP"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4055 $as_echo "$ac_ct_STRIP" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4061 if test "x$ac_ct_STRIP" = x; then
4064 case $cross_compiling:$ac_tool_warned in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068 ac_tool_warned=yes ;;
4073 STRIP="$ac_cv_prog_STRIP"
4077 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4080 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4081 if test -z "$MKDIR_P"; then
4082 if test "${ac_cv_path_mkdir+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in mkdir gmkdir; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4093 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4094 'mkdir (GNU coreutils) '* | \
4095 'mkdir (coreutils) '* | \
4096 'mkdir (fileutils) '4.1*)
4097 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4107 test -d ./--version && rmdir ./--version
4108 if test "${ac_cv_path_mkdir+set}" = set; then
4109 MKDIR_P="$ac_cv_path_mkdir -p"
4111 # As a last resort, use the slow shell script. Don't cache a
4112 # value for MKDIR_P within a source directory, because that will
4113 # break other packages using the cache if that directory is
4114 # removed, or if the value is a relative name.
4115 MKDIR_P="$ac_install_sh -d"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4119 $as_echo "$MKDIR_P" >&6; }
4124 [\\/$]* | ?:[\\/]*) ;;
4125 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4128 for ac_prog in gawk mawk nawk awk
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_AWK+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4137 if test -n "$AWK"; then
4138 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_AWK="$ac_prog"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 if test -n "$AWK"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4160 $as_echo "$AWK" >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4167 test -n "$AWK" && break
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4171 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4173 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4174 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4175 $as_echo_n "(cached) " >&6
4177 cat >conftest.make <<\_ACEOF
4180 @echo '@@@%%%=$(MAKE)=@@@%%%'
4182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4183 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4185 eval ac_cv_prog_make_${ac_make}_set=yes;;
4187 eval ac_cv_prog_make_${ac_make}_set=no;;
4191 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 SET_MAKE="MAKE=${MAKE-make}"
4201 rm -rf .tst 2>/dev/null
4202 mkdir .tst 2>/dev/null
4203 if test -d .tst; then
4208 rmdir .tst 2>/dev/null
4210 # Check whether --enable-silent-rules was given.
4211 if test "${enable_silent_rules+set}" = set; then :
4212 enableval=$enable_silent_rules;
4215 case $enable_silent_rules in
4216 yes) AM_DEFAULT_VERBOSITY=0;;
4217 no) AM_DEFAULT_VERBOSITY=1;;
4218 *) AM_DEFAULT_VERBOSITY=1;;
4224 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4225 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4226 # is not polluted with repeated "-I."
4227 am__isrc=' -I$(srcdir)'
4228 # test to see if srcdir already configured
4229 if test -f $srcdir/config.status; then
4230 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4234 # test whether we have cygpath
4235 if test -z "$CYGPATH_W"; then
4236 if (cygpath --version) >/dev/null 2>/dev/null; then
4237 CYGPATH_W='cygpath -w'
4244 # Define the identity of the package.
4249 # Some tools Automake needs.
4251 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4254 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4257 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4260 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4263 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4265 # We need awk for the "check" target. The system "awk" is bad on
4267 # Always define AMTAR for backward compatibility.
4269 AMTAR=${AMTAR-"${am_missing_run}tar"}
4271 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4277 PACKAGE=gettext-tools
4279 VERSION=$VERSION_NUMBER
4283 cat >>confdefs.h <<_ACEOF
4284 #define PACKAGE "$PACKAGE"
4288 cat >>confdefs.h <<_ACEOF
4289 #define VERSION "$VERSION"
4294 ac_config_headers="$ac_config_headers config.h"
4297 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_CC+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 if test -n "$CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 $as_echo "$CC" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4343 if test -z "$ac_cv_prog_CC"; then
4345 # Extract the first word of "gcc", so it can be a program name with args.
4346 set dummy gcc; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_CC="gcc"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4373 if test -n "$ac_ct_CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4375 $as_echo "$ac_ct_CC" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4381 if test "x$ac_ct_CC" = x; then
4384 case $cross_compiling:$ac_tool_warned in
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4388 ac_tool_warned=yes ;;
4396 if test -z "$CC"; then
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}cc; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CC+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CC="${ac_tool_prefix}cc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4437 if test -z "$CC"; then
4438 # Extract the first word of "cc", so it can be a program name with args.
4439 set dummy cc; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_CC+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$CC"; then
4446 ac_cv_prog_CC="$CC" # Let the user override the test.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4457 ac_prog_rejected=yes
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 if test $ac_prog_rejected = yes; then
4469 # We found a bogon in the path, so make sure we never use it.
4470 set dummy $ac_cv_prog_CC
4472 if test $# != 0; then
4473 # We chose a different compiler from the bogus one.
4474 # However, it has the same basename, so the bogon will be chosen
4475 # first if we set CC to just the basename; use the full file name.
4477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4493 if test -z "$CC"; then
4494 if test -n "$ac_tool_prefix"; then
4495 for ac_prog in cl.exe
4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_CC+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 if test -n "$CC"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4527 $as_echo "$CC" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4534 test -n "$CC" && break
4537 if test -z "$CC"; then
4539 for ac_prog in cl.exe
4541 # Extract the first word of "$ac_prog", so it can be a program name with args.
4542 set dummy $ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$ac_ct_CC"; then
4549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_ac_ct_CC="$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4569 if test -n "$ac_ct_CC"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4571 $as_echo "$ac_ct_CC" >&6; }
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$ac_ct_CC" && break
4581 if test "x$ac_ct_CC" = x; then
4584 case $cross_compiling:$ac_tool_warned in
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4597 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error "no acceptable C compiler found in \$PATH
4600 See \`config.log' for more details." "$LINENO" 5; }
4602 # Provide some information about the compiler.
4603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4606 for ac_option in --version -v -V -qversion; do
4607 { { ac_try="$ac_compiler $ac_option >&5"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 if test -s conftest.err; then
4618 ... rest of stderr output deleted ...
4619 10q' conftest.err >conftest.er1
4620 cat conftest.er1 >&5
4622 rm -f conftest.er1 conftest.err
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4638 ac_clean_files_save=$ac_clean_files
4639 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4640 # Try to create an executable without -o first, disregard a.out.
4641 # It will help us diagnose broken compilers, and finding out an intuition
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4644 $as_echo_n "checking whether the C compiler works... " >&6; }
4645 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4647 # The possible output files:
4648 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4651 for ac_file in $ac_files
4654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4655 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4660 if { { ac_try="$ac_link_default"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_link_default") 2>&5
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }; then :
4671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4674 # so that the user can short-circuit this test for compilers unknown to
4676 for ac_file in $ac_files ''
4678 test -f "$ac_file" || continue
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4683 # We found the default executable, but exeext='' is most
4687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4691 # We set ac_cv_exeext here because the later test for it is not
4692 # safe: cross compilers may not add the suffix if given an `-o'
4693 # argument, so we may need to know it at that point already.
4694 # Even if this section looks crufty: it has the advantage of
4701 test "$ac_cv_exeext" = no && ac_cv_exeext=
4706 if test -z "$ac_file"; then :
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 { as_fn_set_status 77
4715 as_fn_error "C compiler cannot create executables
4716 See \`config.log' for more details." "$LINENO" 5; }; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4719 $as_echo "yes" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4722 $as_echo_n "checking for C compiler default output file name... " >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4724 $as_echo "$ac_file" >&6; }
4725 ac_exeext=$ac_cv_exeext
4727 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4728 ac_clean_files=$ac_clean_files_save
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4730 $as_echo_n "checking for suffix of executables... " >&6; }
4731 if { { ac_try="$ac_link"
4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734 *) ac_try_echo=$ac_try;;
4736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4737 $as_echo "$ac_try_echo"; } >&5
4738 (eval "$ac_link") 2>&5
4740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4741 test $ac_status = 0; }; then :
4742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4744 # work properly (i.e., refer to `conftest.exe'), while it won't with
4746 for ac_file in conftest.exe conftest conftest.*; do
4747 test -f "$ac_file" || continue
4749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error "cannot compute suffix of executables: cannot compile and link
4759 See \`config.log' for more details." "$LINENO" 5; }
4761 rm -f conftest conftest$ac_cv_exeext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4763 $as_echo "$ac_cv_exeext" >&6; }
4765 rm -f conftest.$ac_ext
4766 EXEEXT=$ac_cv_exeext
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4774 FILE *f = fopen ("conftest.out", "w");
4775 return ferror (f) || fclose (f) != 0;
4781 ac_clean_files="$ac_clean_files conftest.out"
4782 # Check that the compiler produces executables we can run. If not, either
4783 # the compiler is broken, or we cross compile.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4785 $as_echo_n "checking whether we are cross compiling... " >&6; }
4786 if test "$cross_compiling" != yes; then
4787 { { ac_try="$ac_link"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793 $as_echo "$ac_try_echo"; } >&5
4794 (eval "$ac_link") 2>&5
4796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797 test $ac_status = 0; }
4798 if { ac_try='./conftest$ac_cv_exeext'
4799 { { case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804 $as_echo "$ac_try_echo"; } >&5
4805 (eval "$ac_try") 2>&5
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; }; then
4811 if test "$cross_compiling" = maybe; then
4814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error "cannot run C compiled programs.
4817 If you meant to cross compile, use \`--host'.
4818 See \`config.log' for more details." "$LINENO" 5; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4823 $as_echo "$cross_compiling" >&6; }
4825 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4826 ac_clean_files=$ac_clean_files_save
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4828 $as_echo_n "checking for suffix of object files... " >&6; }
4829 if test "${ac_cv_objext+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4843 rm -f conftest.o conftest.obj
4844 if { { ac_try="$ac_compile"
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851 (eval "$ac_compile") 2>&5
4853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4854 test $ac_status = 0; }; then :
4855 for ac_file in conftest.o conftest.obj conftest.*; do
4856 test -f "$ac_file" || continue;
4858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4864 $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4869 as_fn_error "cannot compute suffix of object files: cannot compile
4870 See \`config.log' for more details." "$LINENO" 5; }
4872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4875 $as_echo "$ac_cv_objext" >&6; }
4876 OBJEXT=$ac_cv_objext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4880 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4897 if ac_fn_c_try_compile "$LINENO"; then :
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4908 if test $ac_compiler_gnu = yes; then
4913 ac_test_CFLAGS=${CFLAGS+set}
4914 ac_save_CFLAGS=$CFLAGS
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4917 if test "${ac_cv_prog_cc_g+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4920 ac_save_c_werror_flag=$ac_c_werror_flag
4921 ac_c_werror_flag=yes
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4935 if ac_fn_c_try_compile "$LINENO"; then :
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4950 if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_c_werror_flag=$ac_save_c_werror_flag
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4966 if ac_fn_c_try_compile "$LINENO"; then :
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 ac_c_werror_flag=$ac_save_c_werror_flag
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4977 $as_echo "$ac_cv_prog_cc_g" >&6; }
4978 if test "$ac_test_CFLAGS" = set; then
4979 CFLAGS=$ac_save_CFLAGS
4980 elif test $ac_cv_prog_cc_g = yes; then
4981 if test "$GCC" = yes; then
4987 if test "$GCC" = yes; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4995 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4998 ac_cv_prog_cc_c89=no
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5004 #include <sys/types.h>
5005 #include <sys/stat.h>
5006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5007 struct buf { int x; };
5008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5009 static char *e (p, i)
5015 static char *f (char * (*g) (char **, int), char **p, ...)
5020 s = g (p, va_arg (v,int));
5025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5026 function prototypes and stuff, but not '\xHH' hex character constants.
5027 These don't provoke an error unfortunately, instead are silently treated
5028 as 'x'. The following induces an error, until -std is added to get
5029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5030 array size at least. It's necessary to write '\x00'==0 to get something
5031 that's true only with -std. */
5032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5035 inside strings and character constants. */
5037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5039 int test (int i, double x);
5040 struct s1 {int (*f) (int a);};
5041 struct s2 {int (*f) (double a);};
5042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5056 CC="$ac_save_CC $ac_arg"
5057 if ac_fn_c_try_compile "$LINENO"; then :
5058 ac_cv_prog_cc_c89=$ac_arg
5060 rm -f core conftest.err conftest.$ac_objext
5061 test "x$ac_cv_prog_cc_c89" != "xno" && break
5063 rm -f conftest.$ac_ext
5068 case "x$ac_cv_prog_cc_c89" in
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071 $as_echo "none needed" >&6; } ;;
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5074 $as_echo "unsupported" >&6; } ;;
5076 CC="$CC $ac_cv_prog_cc_c89"
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5078 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5080 if test "x$ac_cv_prog_cc_c89" != xno; then :
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 DEPDIR="${am__leading_dot}deps"
5091 ac_config_commands="$ac_config_commands depfiles"
5094 am_make=${MAKE-make}
5095 cat > confinc << 'END'
5097 @echo this is the am__doit target
5100 # If we don't find an include directive, just comment out the code.
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5106 # First try GNU make style include.
5107 echo "include confinc" > confmf
5108 # Ignore all kinds of additional output from `make'.
5109 case `$am_make -s -f confmf 2> /dev/null` in #(
5110 *the\ am__doit\ target*)
5116 # Now try BSD make style include.
5117 if test "$am__include" = "#"; then
5118 echo '.include "confinc"' > confmf
5119 case `$am_make -s -f confmf 2> /dev/null` in #(
5120 *the\ am__doit\ target*)
5121 am__include=.include
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5130 $as_echo "$_am_result" >&6; }
5131 rm -f confinc confmf
5133 # Check whether --enable-dependency-tracking was given.
5134 if test "${enable_dependency_tracking+set}" = set; then :
5135 enableval=$enable_dependency_tracking;
5138 if test "x$enable_dependency_tracking" != xno; then
5139 am_depcomp="$ac_aux_dir/depcomp"
5142 if test "x$enable_dependency_tracking" != xno; then
5152 depcc="$CC" am_compiler_list=
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5155 $as_echo_n "checking dependency style of $depcc... " >&6; }
5156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5160 # We make a subdir and do the tests there. Otherwise we can end up
5161 # making bogus files that we don't know about and never remove. For
5162 # instance it was reported that on HP-UX the gcc test will end up
5163 # making a dummy file named `D' -- because `-MD' means `put the output
5166 # Copy depcomp to subdir because otherwise we won't find it if we're
5167 # using a relative directory.
5168 cp "$am_depcomp" conftest.dir
5170 # We will build objects and dependencies in a subdirectory because
5171 # it helps to detect inapplicable dependency modes. For instance
5172 # both Tru64's cc and ICC support -MD to output dependencies as a
5173 # side effect of compilation, but ICC will put the dependencies in
5174 # the current directory while Tru64 will put them in the object
5178 am_cv_CC_dependencies_compiler_type=none
5179 if test "$am_compiler_list" = ""; then
5180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183 case " $depcc " in #(
5184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5187 for depmode in $am_compiler_list; do
5188 # Setup a source with many dependencies, because some compilers
5189 # like to wrap large dependency lists on column 80 (with \), and
5190 # we should not choose a depcomp mode which is confused by this.
5192 # We need to recreate these files for each test, as the compiler may
5193 # overwrite some of them when testing with obscure command lines.
5194 # This happens at least with the AIX C compiler.
5196 for i in 1 2 3 4 5 6; do
5197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5199 # Solaris 8's {/usr,}/bin/sh.
5200 touch sub/conftst$i.h
5202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5205 # mode. It turns out that the SunPro C++ compiler does not properly
5206 # handle `-M -o', and we need to detect this. Also, some Intel
5207 # versions had trouble with output in subdirs
5208 am__obj=sub/conftest.${OBJEXT-o}
5209 am__minus_obj="-o $am__obj"
5212 # This depmode causes a compiler race in universal mode.
5213 test "$am__universal" = false || continue
5216 # after this tag, mechanisms are not by side-effect, so they'll
5217 # only be used when explicitly requested
5218 if test "x$enable_dependency_tracking" = xyes; then
5224 msvisualcpp | msvcmsys)
5225 # This compiler won't grok `-c -o', but also, the minuso test has
5226 # not run yet. These depmodes are late enough in the game, and
5227 # so weak that their functioning should not be impacted.
5228 am__obj=conftest.${OBJEXT-o}
5233 if depmode=$depmode \
5234 source=sub/conftest.c object=$am__obj \
5235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5237 >/dev/null 2>conftest.err &&
5238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5242 # icc doesn't choke on unknown options, it will just issue warnings
5243 # or remarks (even with -Werror). So we grep stderr for any message
5244 # that says an option was ignored or not supported.
5245 # When given -MP, icc 7.0 and 7.1 complain thusly:
5246 # icc: Command line warning: ignoring option '-M'; no argument required
5247 # The diagnosis changed in icc 8.0:
5248 # icc: Command line remark: option '-MP' not supported
5249 if (grep 'ignoring option' conftest.err ||
5250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5251 am_cv_CC_dependencies_compiler_type=$depmode
5260 am_cv_CC_dependencies_compiler_type=none
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5265 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5266 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5269 test "x$enable_dependency_tracking" != xno \
5270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5272 am__fastdepCC_FALSE='#'
5274 am__fastdepCC_TRUE='#'
5275 am__fastdepCC_FALSE=
5280 for ac_prog in 'bison -y' byacc
5282 # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_prog_YACC+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 if test -n "$YACC"; then
5290 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_YACC="$ac_prog"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 YACC=$ac_cv_prog_YACC
5310 if test -n "$YACC"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5312 $as_echo "$YACC" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5319 test -n "$YACC" && break
5321 test -n "$YACC" || YACC="yacc"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5326 $as_echo_n "checking whether to use Java... " >&6; }
5327 # Check whether --enable-java was given.
5328 if test "${enable_java+set}" = set; then :
5329 enableval=$enable_java; JAVA_CHOICE="$enableval"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5335 $as_echo "$JAVA_CHOICE" >&6; }
5336 if test "$JAVA_CHOICE" = yes; then
5337 # Check whether --enable-native-java was given.
5338 if test "${enable_native_java+set}" = set; then :
5339 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
5351 $as_echo_n "checking for Java to native code compiler... " >&6; }
5352 # Search for the gcj command or use the one provided by the user.
5353 if test -z "$GCJ"; then
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5358 if test "${ac_cv_prog_GCJ+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5361 if test -n "$GCJ"; then
5362 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 if test -n "$GCJ"; then
5390 if test -z "$ac_cv_prog_GCJ"; then
5392 # Extract the first word of "gcj", so it can be a program name with args.
5393 set dummy gcj; ac_word=$2
5395 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_GCJ"; then
5399 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_GCJ="gcj"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
5419 if test -n "$ac_ct_GCJ"; then
5425 if test "x$ac_ct_GCJ" = x; then
5428 case $cross_compiling:$ac_tool_warned in
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5437 GCJ="$ac_cv_prog_GCJ"
5441 # Choose GCJFLAGS or use the one provided by the user.
5442 if test "$GCJ" != none; then
5443 test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
5445 # Check whether the version is ok and it can create executables.
5446 ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
5447 if test "$GCJ" != none \
5448 && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
5450 # See if libgcj.so is well installed and if exception handling works.
5451 cat > conftest.java <<EOF
5452 public class conftest {
5453 public static void main (String[] args) {
5455 java.util.ResourceBundle.getBundle("foobar");
5456 } catch (Exception e) {
5462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
5463 (eval $ac_gcj_link) 2>&5
5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; }
5468 if test $error = 0 && test "$cross_compiling" != yes; then
5469 # Run conftest and catch its exit status, but silently.
5470 error=`./conftest >/dev/null 2>&1; echo $?`
5471 test $error = 0 || error=1
5472 rm -f core conftest.core
5474 rm -f conftest.java conftest$ac_exeext
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
5482 $as_echo "$GCJ" >&6; }
5483 if test "$GCJ" != none; then
5492 if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5506 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5507 # On Suns, sometimes $CPP names a directory.
5508 if test -n "$CPP" && test -d "$CPP"; then
5511 if test -z "$CPP"; then
5512 if test "${ac_cv_prog_CPP+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5515 # Double quotes because CPP needs to be expanded
5516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5519 for ac_c_preproc_warn_flag in '' yes
5521 # Use a header file that comes with gcc, so configuring glibc
5522 # with a fresh cross-compiler works.
5523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 # <limits.h> exists even on freestanding compilers.
5525 # On the NeXT, cc -E runs the code through the compiler's parser,
5526 # not just through cpp. "Syntax error" is here to catch this case.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5530 # include <limits.h>
5532 # include <assert.h>
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5539 # Broken: fails on valid input.
5542 rm -f conftest.err conftest.$ac_ext
5544 # OK, works on sane cases. Now check whether nonexistent headers
5545 # can be detected and how.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <ac_nonexistent.h>
5550 if ac_fn_c_try_cpp "$LINENO"; then :
5551 # Broken: success on invalid input.
5554 # Passes both tests.
5558 rm -f conftest.err conftest.$ac_ext
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then :
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5576 $as_echo "$CPP" >&6; }
5578 for ac_c_preproc_warn_flag in '' yes
5580 # Use a header file that comes with gcc, so configuring glibc
5581 # with a fresh cross-compiler works.
5582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 # <limits.h> exists even on freestanding compilers.
5584 # On the NeXT, cc -E runs the code through the compiler's parser,
5585 # not just through cpp. "Syntax error" is here to catch this case.
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5589 # include <limits.h>
5591 # include <assert.h>
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5598 # Broken: fails on valid input.
5601 rm -f conftest.err conftest.$ac_ext
5603 # OK, works on sane cases. Now check whether nonexistent headers
5604 # can be detected and how.
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #include <ac_nonexistent.h>
5609 if ac_fn_c_try_cpp "$LINENO"; then :
5610 # Broken: success on invalid input.
5613 # Passes both tests.
5617 rm -f conftest.err conftest.$ac_ext
5620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5621 rm -f conftest.err conftest.$ac_ext
5622 if $ac_preproc_ok; then :
5625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5628 See \`config.log' for more details." "$LINENO" 5; }
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5639 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5640 if test "${ac_cv_path_GREP+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
5643 if test -z "$GREP"; then
5644 ac_path_GREP_found=false
5645 # Loop through the user's path and test for each of PROGNAME-LIST
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5650 test -z "$as_dir" && as_dir=.
5651 for ac_prog in grep ggrep; do
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5654 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5655 # Check for GNU ac_path_GREP and select it if it is found.
5656 # Check for GNU $ac_path_GREP
5657 case `"$ac_path_GREP" --version 2>&1` in
5659 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5662 $as_echo_n 0123456789 >"conftest.in"
5665 cat "conftest.in" "conftest.in" >"conftest.tmp"
5666 mv "conftest.tmp" "conftest.in"
5667 cp "conftest.in" "conftest.nl"
5668 $as_echo 'GREP' >> "conftest.nl"
5669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5671 as_fn_arith $ac_count + 1 && ac_count=$as_val
5672 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5673 # Best one so far, save it but keep looking for a better one
5674 ac_cv_path_GREP="$ac_path_GREP"
5675 ac_path_GREP_max=$ac_count
5677 # 10*(2^10) chars as input seems more than enough
5678 test $ac_count -gt 10 && break
5680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5683 $ac_path_GREP_found && break 3
5688 if test -z "$ac_cv_path_GREP"; then
5689 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5692 ac_cv_path_GREP=$GREP
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5697 $as_echo "$ac_cv_path_GREP" >&6; }
5698 GREP="$ac_cv_path_GREP"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5702 $as_echo_n "checking for egrep... " >&6; }
5703 if test "${ac_cv_path_EGREP+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5707 then ac_cv_path_EGREP="$GREP -E"
5709 if test -z "$EGREP"; then
5710 ac_path_EGREP_found=false
5711 # Loop through the user's path and test for each of PROGNAME-LIST
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5716 test -z "$as_dir" && as_dir=.
5717 for ac_prog in egrep; do
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5720 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5721 # Check for GNU ac_path_EGREP and select it if it is found.
5722 # Check for GNU $ac_path_EGREP
5723 case `"$ac_path_EGREP" --version 2>&1` in
5725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5728 $as_echo_n 0123456789 >"conftest.in"
5731 cat "conftest.in" "conftest.in" >"conftest.tmp"
5732 mv "conftest.tmp" "conftest.in"
5733 cp "conftest.in" "conftest.nl"
5734 $as_echo 'EGREP' >> "conftest.nl"
5735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737 as_fn_arith $ac_count + 1 && ac_count=$as_val
5738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5739 # Best one so far, save it but keep looking for a better one
5740 ac_cv_path_EGREP="$ac_path_EGREP"
5741 ac_path_EGREP_max=$ac_count
5743 # 10*(2^10) chars as input seems more than enough
5744 test $ac_count -gt 10 && break
5746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 $ac_path_EGREP_found && break 3
5754 if test -z "$ac_cv_path_EGREP"; then
5755 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5758 ac_cv_path_EGREP=$EGREP
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5764 $as_echo "$ac_cv_path_EGREP" >&6; }
5765 EGREP="$ac_cv_path_EGREP"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5
5770 $as_echo_n "checking for Java virtual machine... " >&6; }
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5774 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780 $EGREP "yes" >/dev/null 2>&1; then :
5781 CLASSPATH_SEPARATOR=';'
5783 CLASSPATH_SEPARATOR=':'
5794 if test -n "$JAVA"; then
5798 # Extract the first word of "gij", so it can be a program name with args.
5799 set dummy gij; ac_word=$2
5801 if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 if test -n "$HAVE_GIJ_IN_PATH"; then
5805 ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
5825 if test -n "$HAVE_GIJ_IN_PATH"; then
5832 # Extract the first word of "java", so it can be a program name with args.
5833 set dummy java; ac_word=$2
5835 if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5838 if test -n "$HAVE_JAVA_IN_PATH"; then
5839 ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
5859 if test -n "$HAVE_JAVA_IN_PATH"; then
5866 # Extract the first word of "jre", so it can be a program name with args.
5867 set dummy jre; ac_word=$2
5869 if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if test -n "$HAVE_JRE_IN_PATH"; then
5873 ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_prog_HAVE_JRE_IN_PATH="yes"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
5893 if test -n "$HAVE_JRE_IN_PATH"; then
5900 # Extract the first word of "jview", so it can be a program name with args.
5901 set dummy jview; ac_word=$2
5903 if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5906 if test -n "$HAVE_JVIEW_IN_PATH"; then
5907 ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
5927 if test -n "$HAVE_JVIEW_IN_PATH"; then
5936 if test -n "$HAVE_GIJ_IN_PATH" \
5937 && gij --version >/dev/null 2>/dev/null \
5942 if test -n "$HAVE_JAVA_IN_PATH" \
5943 && java -version >/dev/null 2>/dev/null \
5948 if test -n "$HAVE_JRE_IN_PATH" \
5949 && (jre >/dev/null 2>/dev/null || test $? = 1) \
5954 if test -n "$HAVE_JVIEW_IN_PATH" \
5955 && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
5967 if test -n "$HAVE_JAVAEXEC"; then
5968 ac_result="$CONF_JAVA"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5973 $as_echo "$ac_result" >&6; }
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5988 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994 $EGREP "yes" >/dev/null 2>&1; then :
5995 CLASSPATH_SEPARATOR=';'
5997 CLASSPATH_SEPARATOR=':'
6002 test -n "$source_version" || {
6003 as_fn_error "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
6005 if test -n "$HAVE_JAVAEXEC"; then
6006 cat > conftestver.java <<EOF
6007 public class conftestver {
6008 public static void main (String[] args) {
6009 System.out.println(System.getProperty("java.specification.version"));
6013 echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!</!=!>"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \
6014 | tr -d '\012\015' \
6015 | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \
6019 echo "$as_me:6019: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
6020 CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
6022 case "$target_version" in
6023 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
6025 target_version=1.1 ;;
6026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
6027 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
6028 target_version=1.1 ;;
6031 target_version="1.1"
6034 case "$source_version" in
6035 1.3) goodcode='class conftest {}'
6036 failcode='class conftestfail { static { assert(true); } }' ;;
6037 1.4) goodcode='class conftest { static { assert(true); } }'
6038 failcode='class conftestfail<T> { T foo() { return null; } }' ;;
6039 1.5) goodcode='class conftest<T> { T foo() { return null; } }'
6040 failcode='class conftestfail syntax error' ;;
6041 *) as_fn_error "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
6043 case "$target_version" in
6044 1.1) cfversion=45 ;;
6045 1.2) cfversion=46 ;;
6046 1.3) cfversion=47 ;;
6047 1.4) cfversion=48 ;;
6048 1.5) cfversion=49 ;;
6049 1.6) cfversion=50 ;;
6050 *) as_fn_error "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
6052 # Function to output the classfile version of a file (8th byte) in decimal.
6053 if od -A x < /dev/null >/dev/null 2>/dev/null; then
6055 func_classfile_version ()
6057 od -A n -t d1 -j 7 -N 1 "$1"
6061 func_classfile_version ()
6063 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
6068 $as_echo_n "checking for Java compiler... " >&6; }
6075 cat > conftestlib.java <<EOF
6076 public class conftestlib {
6077 public static void main (String[] args) {
6081 echo "$goodcode" > conftest.java
6082 echo "$failcode" > conftestfail.java
6083 if test -n "$JAVAC"; then
6084 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
6085 if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6086 rm -f conftest.class
6087 if { echo "$as_me:6087: $JAVAC -d . conftest.java" >&5
6088 $JAVAC -d . conftest.java >&5 2>&1
6090 && test -f conftest.class \
6091 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6092 rm -f conftest.class
6093 rm -f conftestfail.class
6094 if { echo "$as_me:6094: $JAVAC -fsource=$source_version -d . conftest.java" >&5
6095 $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
6097 && test -f conftest.class \
6098 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6099 && { echo "$as_me:6099: $JAVAC -d . conftestfail.java" >&5
6100 $JAVAC -d . conftestfail.java >&5 2>&1
6102 && test -f conftestfail.class \
6103 && ! { echo "$as_me:6103: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
6104 $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6106 CONF_JAVAC="$JAVAC -fsource=$source_version"
6115 rm -f conftest.class
6116 rm -f conftestfail.class
6117 if { echo "$as_me:6117: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6118 $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6120 && test -f conftest.class \
6121 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6122 CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
6128 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6129 rm -f conftest.class
6130 if { echo "$as_me:6130: $JAVAC -d . conftest.java" >&5
6131 $JAVAC -d . conftest.java >&5 2>&1
6133 && test -f conftest.class; then
6139 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6141 rm -f conftest.class
6142 if { echo "$as_me:6142: $JAVAC -d . conftest.java" >&5
6143 $JAVAC -d . conftest.java >&5 2>&1
6145 && test -f conftest.class; then
6148 javac_noassert_works=
6149 rm -f conftest.class
6150 if { echo "$as_me:6150: $JAVAC -fno-assert -d . conftest.java" >&5
6151 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
6153 && test -f conftest.class; then
6154 javac_noassert_works=1
6156 if test -n "$javac_works" && test -n "$javac_noassert_works"; then
6157 rm -f conftestfail.class
6158 if { echo "$as_me:6158: $JAVAC -d . conftestfail.java" >&5
6159 $JAVAC -d . conftestfail.java >&5 2>&1
6161 && test -f conftestfail.class \
6162 && ! { echo "$as_me:6162: $JAVAC -fno-assert -d . conftestfail.java" >&5
6163 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
6168 if test -n "$javac_works"; then
6173 if test -n "$javac_noassert_works"; then
6174 CONF_JAVAC="$JAVAC -fno-assert"
6183 rm -f conftest.class
6184 if { echo "$as_me:6184: $JAVAC -d . conftest.java" >&5
6185 $JAVAC -d . conftest.java >&5 2>&1
6187 && test -f conftest.class \
6188 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6189 rm -f conftest.class
6190 rm -f conftestfail.class
6191 if { echo "$as_me:6191: $JAVAC -source $source_version -d . conftest.java" >&5
6192 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
6194 && test -f conftest.class \
6195 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6196 && { echo "$as_me:6196: $JAVAC -d . conftestfail.java" >&5
6197 $JAVAC -d . conftestfail.java >&5 2>&1
6199 && test -f conftestfail.class \
6200 && ! { echo "$as_me:6200: $JAVAC -source $source_version -d . conftestfail.java" >&5
6201 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
6203 CONF_JAVAC="$JAVAC -source $source_version"
6212 rm -f conftest.class
6213 if { echo "$as_me:6213: $JAVAC -target $target_version -d . conftest.java" >&5
6214 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
6216 && test -f conftest.class \
6217 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6218 rm -f conftest.class
6219 rm -f conftestfail.class
6220 if { echo "$as_me:6220: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6221 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6223 && test -f conftest.class \
6224 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6225 && { echo "$as_me:6225: $JAVAC -target $target_version -d . conftestfail.java" >&5
6226 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
6228 && test -f conftestfail.class \
6229 && ! { echo "$as_me:6229: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
6230 $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6232 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6236 CONF_JAVAC="$JAVAC -target $target_version"
6241 rm -f conftest.class
6242 if { echo "$as_me:6242: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
6243 $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6245 && test -f conftest.class \
6246 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6247 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
6255 if test -z "$HAVE_JAVACOMP"; then
6256 # Extract the first word of "gcj", so it can be a program name with args.
6257 set dummy gcj; ac_word=$2
6259 if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$HAVE_GCJ_IN_PATH"; then
6263 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
6283 if test -n "$HAVE_GCJ_IN_PATH"; then
6290 # Extract the first word of "javac", so it can be a program name with args.
6291 set dummy javac; ac_word=$2
6293 if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$HAVE_JAVAC_IN_PATH"; then
6297 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
6317 if test -n "$HAVE_JAVAC_IN_PATH"; then
6324 # Extract the first word of "jikes", so it can be a program name with args.
6325 set dummy jikes; ac_word=$2
6327 if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6330 if test -n "$HAVE_JIKES_IN_PATH"; then
6331 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
6351 if test -n "$HAVE_JIKES_IN_PATH"; then
6358 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
6359 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
6360 if { echo "$as_me:6360: gcj -C -d . conftestlib.java" >&5
6361 gcj -C -d . conftestlib.java >&5 2>&1
6363 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
6364 rm -f conftest.class
6365 if { echo "$as_me:6365: gcj -C -d . conftest.java" >&5
6366 gcj -C -d . conftest.java >&5 2>&1
6368 && test -f conftest.class \
6369 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6370 rm -f conftest.class
6371 rm -f conftestfail.class
6372 if { echo "$as_me:6372: gcj -C -fsource=$source_version -d . conftest.java" >&5
6373 gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
6375 && test -f conftest.class \
6376 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6377 && { echo "$as_me:6377: gcj -C -d . conftestfail.java" >&5
6378 gcj -C -d . conftestfail.java >&5 2>&1
6380 && test -f conftestfail.class \
6381 && ! { echo "$as_me:6381: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
6382 gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
6384 CONF_JAVAC="gcj -C -fsource=$source_version"
6393 rm -f conftest.class
6394 rm -f conftestfail.class
6395 if { echo "$as_me:6395: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
6396 gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
6398 && test -f conftest.class \
6399 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6400 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
6406 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
6407 rm -f conftest.class
6408 if { echo "$as_me:6408: gcj -C -d . conftest.java" >&5
6409 gcj -C -d . conftest.java >&5 2>&1
6411 && test -f conftest.class; then
6417 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
6418 rm -f conftest.class
6419 if { echo "$as_me:6419: gcj -C -fno-assert -d . conftest.java" >&5
6420 gcj -C -fno-assert -d . conftest.java >&5 2>&1
6422 && test -f conftest.class; then
6423 CONF_JAVAC="gcj -C -fno-assert"
6427 rm -f conftest.class
6428 if { echo "$as_me:6428: gcj -C -d . conftest.java" >&5
6429 gcj -C -d . conftest.java >&5 2>&1
6431 && test -f conftest.class; then
6443 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
6444 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
6445 && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
6446 rm -f conftest.class
6447 if { echo "$as_me:6447: javac -d . conftest.java" >&5
6448 javac -d . conftest.java >&5 2>&1
6450 && test -f conftest.class \
6451 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6452 rm -f conftest.class
6453 rm -f conftestfail.class
6454 if { echo "$as_me:6454: javac -source $source_version -d . conftest.java" >&5
6455 javac -source "$source_version" -d . conftest.java >&5 2>&1
6457 && test -f conftest.class \
6458 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6459 && { echo "$as_me:6459: javac -d . conftestfail.java" >&5
6460 javac -d . conftestfail.java >&5 2>&1
6462 && test -f conftestfail.class \
6463 && ! { echo "$as_me:6463: javac -source $source_version -d . conftestfail.java" >&5
6464 javac -source "$source_version" -d . conftestfail.java >&5 2>&1
6466 CONF_JAVAC="javac -source $source_version"
6475 rm -f conftest.class
6476 if { echo "$as_me:6476: javac -target $target_version -d . conftest.java" >&5
6477 javac -target "$target_version" -d . conftest.java >&5 2>&1
6479 && test -f conftest.class \
6480 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6481 rm -f conftest.class
6482 rm -f conftestfail.class
6483 if { echo "$as_me:6483: javac -target $target_version -source $source_version -d . conftest.java" >&5
6484 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6486 && test -f conftest.class \
6487 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
6488 && { echo "$as_me:6488: javac -target $target_version -d . conftestfail.java" >&5
6489 javac -target "$target_version" -d . conftestfail.java >&5 2>&1
6491 && test -f conftestfail.class \
6492 && ! { echo "$as_me:6492: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
6493 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
6495 CONF_JAVAC="javac -target $target_version -source $source_version"
6499 CONF_JAVAC="javac -target $target_version"
6504 rm -f conftest.class
6505 if { echo "$as_me:6505: javac -target $target_version -source $source_version -d . conftest.java" >&5
6506 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
6508 && test -f conftest.class \
6509 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
6510 CONF_JAVAC="javac -target $target_version -source $source_version"
6518 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
6519 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
6521 # See if the existing CLASSPATH is sufficient to make jikes work.
6523 jikes conftestlib.java >&5 2>&1
6525 rm -f conftestlib.class
6528 if test "$source_version" = 1.3; then
6536 rm -f conftest*.java conftest*.class
6537 if test -n "$HAVE_JAVACOMP"; then
6538 ac_result="$CONF_JAVAC"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6543 $as_echo "$ac_result" >&6; }
6552 # Extract the first word of "jar", so it can be a program name with args.
6553 set dummy jar; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_JAR+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6559 if test -n "$JAR"; then
6560 ac_cv_prog_JAR="$JAR" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_JAR="jar"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 if test -n "$JAR"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
6582 $as_echo "$JAR" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6589 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
6595 if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
6604 $as_echo_n "checking for preferred C# implementation... " >&6; }
6605 # Check whether --enable-csharp was given.
6606 if test "${enable_csharp+set}" = set; then :
6607 enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
6614 $as_echo "$CSHARP_CHOICE" >&6; }
6615 case "$CSHARP_CHOICE" in
6618 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
6623 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
6631 $as_echo_n "checking for C# compiler... " >&6; }
6633 # Extract the first word of "cscc", so it can be a program name with args.
6634 set dummy cscc; ac_word=$2
6636 if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$HAVE_CSCC_IN_PATH"; then
6640 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
6660 if test -n "$HAVE_CSCC_IN_PATH"; then
6667 # Extract the first word of "mcs", so it can be a program name with args.
6668 set dummy mcs; ac_word=$2
6670 if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6673 if test -n "$HAVE_MCS_IN_PATH"; then
6674 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6694 if test -n "$HAVE_MCS_IN_PATH"; then
6701 # Extract the first word of "csc", so it can be a program name with args.
6702 set dummy csc; ac_word=$2
6704 if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6707 if test -n "$HAVE_CSC_IN_PATH"; then
6708 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6728 if test -n "$HAVE_CSC_IN_PATH"; then
6735 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6738 if test -n "$HAVE_CSCC_IN_PATH" \
6739 && cscc --version >/dev/null 2>/dev/null \
6741 # See if pnetlib is well installed.
6742 echo 'class ConfTest { static void Main() { } }' > conftest.cs
6743 cscc -o conftest.exe conftest.cs 2>/dev/null
6745 rm -f conftest.cs conftest.exe
6754 if test -n "$HAVE_MCS_IN_PATH" \
6755 && mcs --version >/dev/null 2>/dev/null \
6756 && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6763 if test -n "$HAVE_CSC_IN_PATH" \
6764 && csc -help >/dev/null 2>/dev/null \
6765 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6779 $as_echo "$ac_result" >&6; }
6783 if test -z "${CSHARPCOMPFLAGS+set}"; then
6784 CSHARPCOMPFLAGS="-O -g"
6788 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5
6798 $as_echo_n "checking for C# program execution engine... " >&6; }
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6802 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808 $EGREP "yes" >/dev/null 2>&1; then :
6809 MONO_PATH_SEPARATOR=';'
6811 MONO_PATH_SEPARATOR=':'
6816 # Extract the first word of "ilrun", so it can be a program name with args.
6817 set dummy ilrun; ac_word=$2
6819 if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 if test -n "$HAVE_ILRUN_IN_PATH"; then
6823 ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
6843 if test -n "$HAVE_ILRUN_IN_PATH"; then
6850 # Extract the first word of "mono", so it can be a program name with args.
6851 set dummy mono; ac_word=$2
6853 if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$HAVE_MONO_IN_PATH"; then
6857 ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_HAVE_MONO_IN_PATH="yes"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
6877 if test -n "$HAVE_MONO_IN_PATH"; then
6884 # Extract the first word of "clix", so it can be a program name with args.
6885 set dummy clix; ac_word=$2
6887 if test "${ac_cv_prog_HAVE_CLIX_IN_PATH+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$HAVE_CLIX_IN_PATH"; then
6891 ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
6911 if test -n "$HAVE_CLIX_IN_PATH"; then
6918 for impl in "$CSHARP_CHOICE" pnet mono no; do
6921 if test -n "$HAVE_ILRUN_IN_PATH" \
6922 && ilrun --version >/dev/null 2>/dev/null \
6923 && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6930 if test -n "$HAVE_MONO_IN_PATH" \
6931 && mono --version >/dev/null 2>/dev/null \
6932 && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6939 if test -n "$HAVE_CLIX_IN_PATH" \
6940 && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
6943 cygwin* | mingw* | pw32*)
6946 darwin* | rhapsody*)
6947 CLIX_PATH_VAR=DYLD_LIBRARY_PATH
6950 CLIX_PATH_VAR=LD_LIBRARY_PATH
6953 eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6966 $as_echo "$ac_result" >&6; }
6975 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
6982 # Make sure we can run config.sub.
6983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6984 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6987 $as_echo_n "checking build system type... " >&6; }
6988 if test "${ac_cv_build+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6991 ac_build_alias=$build_alias
6992 test "x$ac_build_alias" = x &&
6993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6994 test "x$ac_build_alias" = x &&
6995 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6997 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7001 $as_echo "$ac_cv_build" >&6; }
7002 case $ac_cv_build in
7004 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
7007 ac_save_IFS=$IFS; IFS='-'
7013 # Remember, the first character of IFS is used to create $*,
7014 # except with old shells:
7017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7021 $as_echo_n "checking host system type... " >&6; }
7022 if test "${ac_cv_host+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7025 if test "x$host_alias" = x; then
7026 ac_cv_host=$ac_cv_build
7028 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7029 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7034 $as_echo "$ac_cv_host" >&6; }
7037 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7040 ac_save_IFS=$IFS; IFS='-'
7046 # Remember, the first character of IFS is used to create $*,
7047 # except with old shells:
7050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7065 if test -n "$RANLIB"; then
7066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 RANLIB=$ac_cv_prog_RANLIB
7086 if test -n "$RANLIB"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7088 $as_echo "$RANLIB" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7096 if test -z "$ac_cv_prog_RANLIB"; then
7097 ac_ct_RANLIB=$RANLIB
7098 # Extract the first word of "ranlib", so it can be a program name with args.
7099 set dummy ranlib; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$ac_ct_RANLIB"; then
7106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_ac_ct_RANLIB="ranlib"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7126 if test -n "$ac_ct_RANLIB"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7128 $as_echo "$ac_ct_RANLIB" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7134 if test "x$ac_ct_RANLIB" = x; then
7137 case $cross_compiling:$ac_tool_warned in
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7143 RANLIB=$ac_ct_RANLIB
7146 RANLIB="$ac_cv_prog_RANLIB"
7149 if test "x$CC" != xcc; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7151 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7154 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7156 set dummy $CC; ac_cc=`$as_echo "$2" |
7157 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7158 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7159 $as_echo_n "(cached) " >&6
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7172 # Make sure it works both with $CC and with simple cc.
7173 # We do the test twice because some compilers refuse to overwrite an
7174 # existing .o file with -o, though they will create one.
7175 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7177 if { { case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7182 $as_echo "$ac_try_echo"; } >&5
7183 (eval "$ac_try") 2>&5
7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186 test $ac_status = 0; } &&
7187 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7192 $as_echo "$ac_try_echo"; } >&5
7193 (eval "$ac_try") 2>&5
7195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196 test $ac_status = 0; };
7198 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7199 if test "x$CC" != xcc; then
7200 # Test first that cc exists at all.
7201 if { ac_try='cc -c conftest.$ac_ext >&5'
7202 { { case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7207 $as_echo "$ac_try_echo"; } >&5
7208 (eval "$ac_try") 2>&5
7210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; }; }; then
7212 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7214 if { { case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7219 $as_echo "$ac_try_echo"; } >&5
7220 (eval "$ac_try") 2>&5
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; } &&
7224 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7229 $as_echo "$ac_try_echo"; } >&5
7230 (eval "$ac_try") 2>&5
7232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7233 test $ac_status = 0; };
7238 # cc exists but doesn't like -o.
7239 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7244 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7246 rm -f core conftest*
7249 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7251 $as_echo "yes" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7256 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7260 # FIXME: we rely on the cache variable name because
7261 # there is no other way.
7263 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7264 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7265 if test "$am_t" != yes; then
7266 # Losing compiler, so override with the script.
7267 # FIXME: It is wrong to rewrite CC.
7268 # But if we don't then we get into trouble of one sort or another.
7269 # A longer-term fix would be to have automake use am__CC in this case,
7270 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7271 CC="$am_aux_dir/compile $CC"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7276 $as_echo_n "checking for ANSI C header files... " >&6; }
7277 if test "${ac_cv_header_stdc+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7295 if ac_fn_c_try_compile "$LINENO"; then :
7296 ac_cv_header_stdc=yes
7298 ac_cv_header_stdc=no
7300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 if test $ac_cv_header_stdc = yes; then
7303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 $EGREP "memchr" >/dev/null 2>&1; then :
7313 ac_cv_header_stdc=no
7319 if test $ac_cv_header_stdc = yes; then
7320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7327 $EGREP "free" >/dev/null 2>&1; then :
7330 ac_cv_header_stdc=no
7336 if test $ac_cv_header_stdc = yes; then
7337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7338 if test "$cross_compiling" = yes; then :
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7345 #if ((' ' & 0x0FF) == 0x020)
7346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7349 # define ISLOWER(c) \
7350 (('a' <= (c) && (c) <= 'i') \
7351 || ('j' <= (c) && (c) <= 'r') \
7352 || ('s' <= (c) && (c) <= 'z'))
7353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7361 for (i = 0; i < 256; i++)
7362 if (XOR (islower (i), ISLOWER (i))
7363 || toupper (i) != TOUPPER (i))
7368 if ac_fn_c_try_run "$LINENO"; then :
7371 ac_cv_header_stdc=no
7373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7374 conftest.$ac_objext conftest.beam conftest.$ac_ext
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7380 $as_echo "$ac_cv_header_stdc" >&6; }
7381 if test $ac_cv_header_stdc = yes; then
7383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7389 inttypes.h stdint.h unistd.h
7391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7394 eval as_val=\$$as_ac_Header
7395 if test "x$as_val" = x""yes; then :
7396 cat >>confdefs.h <<_ACEOF
7397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7409 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7416 if test "$MINIX" = yes; then
7418 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7421 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7424 $as_echo "#define _MINIX 1" >>confdefs.h
7431 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7438 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7439 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7445 # define __EXTENSIONS__ 1
7446 $ac_includes_default
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_safe_to_define___extensions__=yes
7458 ac_cv_safe_to_define___extensions__=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7463 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7464 test $ac_cv_safe_to_define___extensions__ = yes &&
7465 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7467 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7469 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7471 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7473 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7482 case $ac_cv_prog_cc_stdc in #(
7484 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7487 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7488 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 ac_cv_prog_cc_c99=no
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7496 #include <stdbool.h>
7501 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7502 #define debug(...) fprintf (stderr, __VA_ARGS__)
7503 #define showlist(...) puts (#__VA_ARGS__)
7504 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7506 test_varargs_macros (void)
7511 debug ("X = %d\n", x);
7512 showlist (The first, second, and third items.);
7513 report (x>y, "x is %d but y is %d", x, y);
7516 // Check long long types.
7517 #define BIG64 18446744073709551615ull
7518 #define BIG32 4294967295ul
7519 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7521 your preprocessor is broken;
7525 your preprocessor is broken;
7527 static long long int bignum = -9223372036854775807LL;
7528 static unsigned long long int ubignum = BIG64;
7530 struct incomplete_array
7538 const wchar_t *name;
7542 typedef const char *ccp;
7545 test_restrict (ccp restrict text)
7547 // See if C++-style comments work.
7548 // Iterate through items via the restricted pointer.
7549 // Also check for declarations in for loops.
7550 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7555 // Check varargs and va_copy.
7557 test_varargs (const char *format, ...)
7560 va_start (args, format);
7562 va_copy (args_copy, args);
7573 str = va_arg (args_copy, const char *);
7576 number = va_arg (args_copy, int);
7579 fnumber = va_arg (args_copy, double);
7594 _Bool success = false;
7597 if (test_restrict ("String literal") == 0)
7599 char *restrict newvar = "Another string";
7602 test_varargs ("s, d' f .", "string", 65, 34.234);
7603 test_varargs_macros ();
7605 // Check flexible array members.
7606 struct incomplete_array *ia =
7607 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7609 for (int i = 0; i < ia->datasize; ++i)
7610 ia->data[i] = i * 1.234;
7612 // Check named initializers.
7613 struct named_init ni = {
7615 .name = L"Test wide string",
7616 .average = 543.34343,
7621 int dynamic_array[ni.number];
7622 dynamic_array[ni.number - 1] = 543;
7624 // work around unused variable warnings
7625 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7626 || dynamic_array[ni.number - 1] != 543);
7632 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7634 CC="$ac_save_CC $ac_arg"
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 ac_cv_prog_cc_c99=$ac_arg
7638 rm -f core conftest.err conftest.$ac_objext
7639 test "x$ac_cv_prog_cc_c99" != "xno" && break
7641 rm -f conftest.$ac_ext
7646 case "x$ac_cv_prog_cc_c99" in
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7649 $as_echo "none needed" >&6; } ;;
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7652 $as_echo "unsupported" >&6; } ;;
7654 CC="$CC $ac_cv_prog_cc_c99"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7656 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7658 if test "x$ac_cv_prog_cc_c99" != xno; then :
7659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7662 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7663 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7666 ac_cv_prog_cc_c89=no
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7672 #include <sys/types.h>
7673 #include <sys/stat.h>
7674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7675 struct buf { int x; };
7676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7677 static char *e (p, i)
7683 static char *f (char * (*g) (char **, int), char **p, ...)
7688 s = g (p, va_arg (v,int));
7693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7694 function prototypes and stuff, but not '\xHH' hex character constants.
7695 These don't provoke an error unfortunately, instead are silently treated
7696 as 'x'. The following induces an error, until -std is added to get
7697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7698 array size at least. It's necessary to write '\x00'==0 to get something
7699 that's true only with -std. */
7700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7703 inside strings and character constants. */
7705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7707 int test (int i, double x);
7708 struct s1 {int (*f) (int a);};
7709 struct s2 {int (*f) (double a);};
7710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7724 CC="$ac_save_CC $ac_arg"
7725 if ac_fn_c_try_compile "$LINENO"; then :
7726 ac_cv_prog_cc_c89=$ac_arg
7728 rm -f core conftest.err conftest.$ac_objext
7729 test "x$ac_cv_prog_cc_c89" != "xno" && break
7731 rm -f conftest.$ac_ext
7736 case "x$ac_cv_prog_cc_c89" in
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7739 $as_echo "none needed" >&6; } ;;
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7742 $as_echo "unsupported" >&6; } ;;
7744 CC="$CC $ac_cv_prog_cc_c89"
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7746 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7748 if test "x$ac_cv_prog_cc_c89" != xno; then :
7749 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7751 ac_cv_prog_cc_stdc=no
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7758 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7759 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7763 case $ac_cv_prog_cc_stdc in #(
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7766 $as_echo "unsupported" >&6; } ;; #(
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7769 $as_echo "none needed" >&6; } ;; #(
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7772 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7780 # Check whether --enable-threads was given.
7781 if test "${enable_threads+set}" = set; then :
7782 enableval=$enable_threads; gl_use_threads=$enableval
7784 if test -n "$gl_use_threads_default"; then
7785 gl_use_threads="$gl_use_threads_default"
7788 osf*) gl_use_threads=no ;;
7791 1.[0-5].*) gl_use_threads=no ;;
7792 *) gl_use_threads=yes ;;
7795 *) gl_use_threads=yes ;;
7801 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7802 # For using <pthread.h>:
7805 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7806 # groks <pthread.h>. cc also understands the flag -pthread, but
7807 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7808 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7809 # causes the AC_TRY_LINK test below to succeed unexpectedly,
7810 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7811 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7814 # Some systems optimize for single-threaded programs by default, and
7815 # need special flags to disable these optimizations. For example, the
7816 # definition of 'errno' in <errno.h>.
7818 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7819 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7826 # Code from module acl:
7827 # Code from module acl-tests:
7828 # Code from module alignof:
7829 # Code from module alignof-tests:
7830 # Code from module alloca-opt:
7831 # Code from module alloca-opt-tests:
7832 # Code from module areadlink:
7833 # Code from module areadlink-tests:
7834 # Code from module arg-nonnull:
7835 # Code from module argmatch:
7836 # Code from module argmatch-tests:
7837 # Code from module array-list:
7838 # Code from module array-list-tests:
7839 # Code from module atexit:
7840 # Code from module atexit-tests:
7841 # Code from module backupfile:
7842 # Code from module basename:
7843 # Code from module binary-io:
7844 # Code from module binary-io-tests:
7845 # Code from module bison-i18n:
7846 # Code from module byteswap:
7847 # Code from module byteswap-tests:
7848 # Code from module c++defs:
7849 # Code from module c-ctype:
7850 # Code from module c-ctype-tests:
7851 # Code from module c-strcase:
7852 # Code from module c-strcase-tests:
7853 # Code from module c-strcaseeq:
7854 # Code from module c-strcasestr:
7855 # Code from module c-strcasestr-tests:
7856 # Code from module c-strstr:
7857 # Code from module c-strstr-tests:
7858 # Code from module canonicalize-lgpl:
7859 # Code from module canonicalize-lgpl-tests:
7860 # Code from module classpath:
7861 # Code from module clean-temp:
7862 # Code from module cloexec:
7863 # Code from module cloexec-tests:
7864 # Code from module closeout:
7865 # Code from module concat-filename:
7866 # Code from module configmake:
7867 # Code from module copy-file:
7868 # Code from module copy-file-tests:
7869 # Code from module csharpcomp:
7870 # Code from module csharpcomp-script:
7871 # Code from module csharpexec:
7872 # Code from module csharpexec-script:
7873 # Code from module diffseq:
7874 # Code from module double-slash-root:
7875 # Code from module dup2:
7876 # Code from module dup2-tests:
7877 # Code from module environ:
7878 # Code from module environ-tests:
7879 # Code from module errno:
7880 # Code from module errno-tests:
7881 # Code from module error:
7882 # Code from module error-progname:
7883 # Code from module execute:
7884 # Code from module exitfail:
7885 # Code from module extensions:
7887 # Code from module fatal-signal:
7888 # Code from module fcntl:
7889 # Code from module fcntl-h:
7890 # Code from module fcntl-h-tests:
7891 # Code from module fcntl-tests:
7892 # Code from module fd-ostream:
7893 # Code from module fd-safer-flag:
7894 # Code from module file-ostream:
7895 # Code from module filename:
7896 # Code from module findprog:
7897 # Code from module float:
7898 # Code from module fnmatch:
7899 # Code from module fnmatch-tests:
7900 # Code from module fopen:
7901 # Code from module fopen-tests:
7902 # Code from module fstrcmp:
7903 # Code from module fstrcmp-tests:
7904 # Code from module full-write:
7905 # Code from module fwriteerror:
7906 # Code from module gcd:
7907 # Code from module gcj:
7908 # Code from module getdelim:
7909 # Code from module getdelim-tests:
7910 # Code from module getdtablesize:
7911 # Code from module getdtablesize-tests:
7912 # Code from module getline:
7913 # Code from module getline-tests:
7914 # Code from module getopt-gnu:
7915 # Code from module getopt-posix:
7916 # Code from module getopt-posix-tests:
7917 # Code from module getpagesize:
7918 # Code from module gettext:
7919 # Code from module gettext-h:
7920 # Code from module gettext-tools-misc:
7921 # Code from module gettimeofday:
7922 # Code from module gettimeofday-tests:
7923 # Code from module gperf:
7924 # Code from module hash:
7925 # Code from module havelib:
7926 # Code from module html-ostream:
7927 # Code from module html-styled-ostream:
7928 # Code from module iconv:
7929 # Code from module iconv-h:
7930 # Code from module iconv-h-tests:
7931 # Code from module iconv-tests:
7932 # Code from module iconv_open:
7933 # Code from module ignore-value:
7934 # Code from module include_next:
7935 # Code from module inline:
7936 # Code from module intprops:
7937 # Code from module java:
7938 # Code from module javacomp:
7939 # Code from module javacomp-script:
7940 # Code from module javaexec:
7941 # Code from module javaexec-script:
7942 # Code from module javaversion:
7943 # Code from module libcroco:
7944 # Code from module libglib:
7945 # Code from module libunistring-optional:
7946 # Code from module libxml:
7947 # Code from module linkedhash-list:
7948 # Code from module linkedhash-list-tests:
7949 # Code from module list:
7950 # Code from module localcharset:
7951 # Code from module locale:
7952 # Code from module locale-tests:
7953 # Code from module localename:
7954 # Code from module localename-tests:
7955 # Code from module lock:
7956 # Code from module lock-tests:
7957 # Code from module lstat:
7958 # Code from module lstat-tests:
7959 # Code from module malloc-posix:
7960 # Code from module malloca:
7961 # Code from module malloca-tests:
7962 # Code from module mbchar:
7963 # Code from module mbiter:
7964 # Code from module mbrtowc:
7965 # Code from module mbrtowc-tests:
7966 # Code from module mbsinit:
7967 # Code from module mbsinit-tests:
7968 # Code from module mbslen:
7969 # Code from module mbsrtowcs:
7970 # Code from module mbsrtowcs-tests:
7971 # Code from module mbsstr:
7972 # Code from module mbsstr-tests:
7973 # Code from module mbswidth:
7974 # Code from module mbuiter:
7975 # Code from module memchr:
7976 # Code from module memchr-tests:
7977 # Code from module memmove:
7978 # Code from module memset:
7979 # Code from module minmax:
7980 # Code from module mkdtemp:
7981 # Code from module moo:
7982 # Code from module moo-tests:
7983 # Code from module multiarch:
7984 # Code from module no-c++:
7985 # Code from module obstack:
7986 # Code from module open:
7987 # Code from module open-tests:
7988 # Code from module openmp:
7989 # Code from module ostream:
7990 # Code from module pathmax:
7991 # Code from module pipe:
7992 # Code from module pipe-filter-ii:
7993 # Code from module pipe-filter-ii-tests:
7994 # Code from module pipe-tests:
7995 # Code from module pipe2:
7996 # Code from module pipe2-safer:
7997 # Code from module pipe2-tests:
7998 # Code from module posix_spawn-internal:
7999 # Code from module posix_spawn_file_actions_addclose:
8000 # Code from module posix_spawn_file_actions_adddup2:
8001 # Code from module posix_spawn_file_actions_addopen:
8002 # Code from module posix_spawn_file_actions_destroy:
8003 # Code from module posix_spawn_file_actions_init:
8004 # Code from module posix_spawnattr_destroy:
8005 # Code from module posix_spawnattr_init:
8006 # Code from module posix_spawnattr_setflags:
8007 # Code from module posix_spawnattr_setsigmask:
8008 # Code from module posix_spawnp:
8009 # Code from module posix_spawnp-tests:
8010 # Code from module progname:
8011 # Code from module propername:
8012 # Code from module putenv:
8013 # Code from module quote:
8014 # Code from module quotearg:
8015 # Code from module quotearg-simple:
8016 # Code from module quotearg-simple-tests:
8017 # Code from module rawmemchr:
8018 # Code from module rawmemchr-tests:
8019 # Code from module read-file:
8020 # Code from module read-file-tests:
8021 # Code from module readlink:
8022 # Code from module readlink-tests:
8023 # Code from module realloc-posix:
8024 # Code from module relocatable-prog:
8025 # Code from module relocatable-prog-wrapper:
8026 # Code from module relocatable-script:
8027 # Code from module rmdir:
8028 # Code from module rmdir-tests:
8029 # Code from module safe-read:
8030 # Code from module safe-write:
8031 # Code from module same-inode:
8032 # Code from module sched:
8033 # Code from module sched-tests:
8034 # Code from module setenv:
8035 # Code from module setenv-tests:
8036 # Code from module sh-quote:
8037 # Code from module sigaction:
8038 # Code from module sigaction-tests:
8039 # Code from module signal:
8040 # Code from module signal-tests:
8041 # Code from module sigpipe:
8042 # Code from module sigpipe-tests:
8043 # Code from module sigprocmask:
8044 # Code from module size_max:
8045 # Code from module snprintf:
8046 # Code from module snprintf-tests:
8047 # Code from module spawn:
8048 # Code from module spawn-tests:
8049 # Code from module ssize_t:
8050 # Code from module stat:
8051 # Code from module stat-tests:
8052 # Code from module stdarg:
8054 # Code from module stdbool:
8055 # Code from module stdbool-tests:
8056 # Code from module stddef:
8057 # Code from module stddef-tests:
8058 # Code from module stdint:
8059 # Code from module stdint-tests:
8060 # Code from module stdio:
8061 # Code from module stdio-tests:
8062 # Code from module stdlib:
8063 # Code from module stdlib-tests:
8064 # Code from module stpcpy:
8065 # Code from module stpncpy:
8066 # Code from module strchrnul:
8067 # Code from module strchrnul-tests:
8068 # Code from module strcspn:
8069 # Code from module streq:
8070 # Code from module strerror:
8071 # Code from module strerror-tests:
8072 # Code from module striconv:
8073 # Code from module striconv-tests:
8074 # Code from module striconveh:
8075 # Code from module striconveh-tests:
8076 # Code from module striconveha:
8077 # Code from module striconveha-tests:
8078 # Code from module string:
8079 # Code from module string-tests:
8080 # Code from module strnlen:
8081 # Code from module strnlen1:
8082 # Code from module strpbrk:
8083 # Code from module strstr:
8084 # Code from module strstr-simple:
8085 # Code from module strstr-tests:
8086 # Code from module strtol:
8087 # Code from module strtoul:
8088 # Code from module styled-ostream:
8089 # Code from module symlink:
8090 # Code from module symlink-tests:
8091 # Code from module sys_select:
8092 # Code from module sys_select-tests:
8093 # Code from module sys_socket:
8094 # Code from module sys_socket-tests:
8095 # Code from module sys_stat:
8096 # Code from module sys_stat-tests:
8097 # Code from module sys_time:
8098 # Code from module sys_time-tests:
8099 # Code from module sys_wait:
8100 # Code from module sys_wait-tests:
8101 # Code from module tempname:
8102 # Code from module term-ostream:
8103 # Code from module term-ostream-tests:
8104 # Code from module term-styled-ostream:
8105 # Code from module terminfo:
8106 # Code from module terminfo-h:
8107 # Code from module thread:
8108 # Code from module threadlib:
8112 # Code from module time:
8113 # Code from module time-tests:
8114 # Code from module tls:
8115 # Code from module tls-tests:
8116 # Code from module tmpdir:
8117 # Code from module trim:
8118 # Code from module uniconv/base:
8119 # Code from module uniconv/u8-conv-from-enc:
8120 # Code from module uniconv/u8-conv-from-enc-tests:
8121 # Code from module unilbrk/base:
8122 # Code from module unilbrk/tables:
8123 # Code from module unilbrk/u8-possible-linebreaks:
8124 # Code from module unilbrk/u8-possible-linebreaks-tests:
8125 # Code from module unilbrk/u8-width-linebreaks:
8126 # Code from module unilbrk/u8-width-linebreaks-tests:
8127 # Code from module unilbrk/ulc-common:
8128 # Code from module unilbrk/ulc-width-linebreaks:
8129 # Code from module unilbrk/ulc-width-linebreaks-tests:
8130 # Code from module uniname/base:
8131 # Code from module uniname/uniname:
8132 # Code from module uniname/uniname-tests:
8133 # Code from module unistd:
8134 # Code from module unistd-safer:
8135 # Code from module unistd-safer-tests:
8136 # Code from module unistd-tests:
8137 # Code from module unistr/base:
8138 # Code from module unistr/u16-mbtouc:
8139 # Code from module unistr/u16-mbtouc-tests:
8140 # Code from module unistr/u8-check:
8141 # Code from module unistr/u8-check-tests:
8142 # Code from module unistr/u8-cmp:
8143 # Code from module unistr/u8-cmp-tests:
8144 # Code from module unistr/u8-mblen:
8145 # Code from module unistr/u8-mblen-tests:
8146 # Code from module unistr/u8-mbtouc:
8147 # Code from module unistr/u8-mbtouc-tests:
8148 # Code from module unistr/u8-mbtouc-unsafe:
8149 # Code from module unistr/u8-mbtouc-unsafe-tests:
8150 # Code from module unistr/u8-mbtoucr:
8151 # Code from module unistr/u8-mbtoucr-tests:
8152 # Code from module unistr/u8-prev:
8153 # Code from module unistr/u8-prev-tests:
8154 # Code from module unistr/u8-strlen:
8155 # Code from module unistr/u8-strlen-tests:
8156 # Code from module unistr/u8-uctomb:
8157 # Code from module unistr/u8-uctomb-tests:
8158 # Code from module unitypes:
8159 # Code from module uniwidth/base:
8160 # Code from module uniwidth/width:
8161 # Code from module uniwidth/width-tests:
8162 # Code from module unlocked-io:
8163 # Code from module unsetenv:
8164 # Code from module unsetenv-tests:
8165 # Code from module unused-parameter:
8166 # Code from module vasnprintf:
8167 # Code from module vasnprintf-tests:
8168 # Code from module vasprintf:
8169 # Code from module vasprintf-tests:
8170 # Code from module verify:
8171 # Code from module verify-tests:
8172 # Code from module vsnprintf:
8173 # Code from module vsnprintf-tests:
8174 # Code from module wait-process:
8175 # Code from module warn-on-use:
8176 # Code from module wchar:
8177 # Code from module wchar-tests:
8178 # Code from module wctob:
8179 # Code from module wctype:
8180 # Code from module wctype-tests:
8181 # Code from module wcwidth:
8182 # Code from module wcwidth-tests:
8183 # Code from module write:
8184 # Code from module xalloc:
8185 # Code from module xalloc-die:
8186 # Code from module xalloc-die-tests:
8187 # Code from module xconcat-filename:
8188 # Code from module xerror:
8189 # Code from module xlist:
8190 # Code from module xmalloca:
8191 # Code from module xreadlink:
8192 # Code from module xsetenv:
8193 # Code from module xsize:
8194 # Code from module xstriconv:
8195 # Code from module xstriconveh:
8196 # Code from module xvasprintf:
8197 # Code from module xvasprintf-tests:
8198 # Code from module yield:
8202 # Code from module btowc:
8203 # Code from module c++defs:
8204 # Code from module langinfo:
8205 # Code from module nl_langinfo:
8206 # Code from module regex:
8207 # Code from module warn-on-use:
8208 # Code from module wcrtomb:
8213 # Code from module alloca-opt:
8214 # Code from module arg-nonnull:
8215 # Code from module basename:
8216 # Code from module c++defs:
8217 # Code from module c-ctype:
8218 # Code from module c-strcase:
8219 # Code from module c-strcaseeq:
8220 # Code from module c-strstr:
8221 # Code from module concat-filename:
8222 # Code from module configmake:
8223 # Code from module diffseq:
8224 # Code from module errno:
8225 # Code from module error:
8226 # Code from module error-progname:
8227 # Code from module exitfail:
8228 # Code from module extensions:
8230 # Code from module fcntl-h:
8231 # Code from module file-ostream:
8232 # Code from module filename:
8233 # Code from module float:
8234 # Code from module fopen:
8235 # Code from module fstrcmp:
8236 # Code from module fwriteerror:
8237 # Code from module gcd:
8238 # Code from module getdelim:
8239 # Code from module getline:
8240 # Code from module gettext-h:
8241 # Code from module gperf:
8242 # Code from module hash:
8243 # Code from module havelib:
8244 # Code from module iconv:
8245 # Code from module iconv-h:
8246 # Code from module iconv_open:
8247 # Code from module include_next:
8248 # Code from module inline:
8249 # Code from module intprops:
8250 # Code from module libunistring-optional:
8251 # Code from module localcharset:
8252 # Code from module lock:
8253 # Code from module malloc-posix:
8254 # Code from module malloca:
8255 # Code from module mbrtowc:
8256 # Code from module mbsinit:
8257 # Code from module mbswidth:
8258 # Code from module memchr:
8259 # Code from module minmax:
8260 # Code from module moo:
8261 # Code from module multiarch:
8262 # Code from module obstack:
8263 # Code from module open:
8264 # Code from module ostream:
8265 # Code from module progname:
8266 # Code from module realloc-posix:
8267 # Code from module relocatable-lib:
8268 # Code from module signal:
8269 # Code from module sigpipe:
8270 # Code from module sigprocmask:
8271 # Code from module size_max:
8272 # Code from module stat:
8273 # Code from module stdarg:
8275 # Code from module stdbool:
8276 # Code from module stddef:
8277 # Code from module stdint:
8278 # Code from module stdio:
8279 # Code from module stdlib:
8280 # Code from module stpcpy:
8281 # Code from module streq:
8282 # Code from module strerror:
8283 # Code from module striconv:
8284 # Code from module striconveh:
8285 # Code from module striconveha:
8286 # Code from module string:
8287 # Code from module strstr:
8288 # Code from module strstr-simple:
8289 # Code from module sys_stat:
8290 # Code from module threadlib:
8294 # Code from module time:
8295 # Code from module tls:
8296 # Code from module uniconv/base:
8297 # Code from module uniconv/u8-conv-from-enc:
8298 # Code from module unilbrk/base:
8299 # Code from module unilbrk/tables:
8300 # Code from module unilbrk/u8-possible-linebreaks:
8301 # Code from module unilbrk/u8-width-linebreaks:
8302 # Code from module unilbrk/ulc-common:
8303 # Code from module unilbrk/ulc-width-linebreaks:
8304 # Code from module unistd:
8305 # Code from module unistr/base:
8306 # Code from module unistr/u16-mbtouc:
8307 # Code from module unistr/u8-check:
8308 # Code from module unistr/u8-mblen:
8309 # Code from module unistr/u8-mbtouc:
8310 # Code from module unistr/u8-mbtouc-unsafe:
8311 # Code from module unistr/u8-mbtoucr:
8312 # Code from module unistr/u8-prev:
8313 # Code from module unistr/u8-uctomb:
8314 # Code from module unitypes:
8315 # Code from module uniwidth/base:
8316 # Code from module uniwidth/width:
8317 # Code from module unlocked-io:
8318 # Code from module unused-parameter:
8319 # Code from module vasnprintf:
8320 # Code from module vasprintf:
8321 # Code from module verify:
8322 # Code from module warn-on-use:
8323 # Code from module wchar:
8324 # Code from module wctype:
8325 # Code from module wcwidth:
8326 # Code from module xalloc:
8327 # Code from module xalloc-die:
8328 # Code from module xconcat-filename:
8329 # Code from module xerror:
8330 # Code from module xmalloca:
8331 # Code from module xsize:
8332 # Code from module xstriconv:
8333 # Code from module xvasprintf:
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
8342 $as_echo_n "checking for auto-import of symbols... " >&6; }
8343 if test "${gl_cv_ld_autoimport+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8347 gl_save_LDFLAGS="$LDFLAGS"
8348 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8360 if ac_fn_c_try_link "$LINENO"; then :
8361 gl_cv_ld_autoimport=yes
8363 gl_cv_ld_autoimport=no
8365 rm -f core conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LDFLAGS="$gl_save_LDFLAGS"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
8371 $as_echo "$gl_cv_ld_autoimport" >&6; }
8372 if test $gl_cv_ld_autoimport = yes; then
8373 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8382 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8387 macro_version='2.2.6'
8388 macro_revision='1.3012'
8402 ltmain="$ac_aux_dir/ltmain.sh"
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8405 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8406 if test "${ac_cv_path_SED+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8410 for ac_i in 1 2 3 4 5 6 7; do
8411 ac_script="$ac_script$as_nl$ac_script"
8413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8414 { ac_script=; unset ac_script;}
8415 if test -z "$SED"; then
8416 ac_path_SED_found=false
8417 # Loop through the user's path and test for each of PROGNAME-LIST
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir=.
8423 for ac_prog in sed gsed; do
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8426 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8427 # Check for GNU ac_path_SED and select it if it is found.
8428 # Check for GNU $ac_path_SED
8429 case `"$ac_path_SED" --version 2>&1` in
8431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8434 $as_echo_n 0123456789 >"conftest.in"
8437 cat "conftest.in" "conftest.in" >"conftest.tmp"
8438 mv "conftest.tmp" "conftest.in"
8439 cp "conftest.in" "conftest.nl"
8440 $as_echo '' >> "conftest.nl"
8441 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8443 as_fn_arith $ac_count + 1 && ac_count=$as_val
8444 if test $ac_count -gt ${ac_path_SED_max-0}; then
8445 # Best one so far, save it but keep looking for a better one
8446 ac_cv_path_SED="$ac_path_SED"
8447 ac_path_SED_max=$ac_count
8449 # 10*(2^10) chars as input seems more than enough
8450 test $ac_count -gt 10 && break
8452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8455 $ac_path_SED_found && break 3
8460 if test -z "$ac_cv_path_SED"; then
8461 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8469 $as_echo "$ac_cv_path_SED" >&6; }
8470 SED="$ac_cv_path_SED"
8473 test -z "$SED" && SED=sed
8474 Xsed="$SED -e 1s/^X//"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8487 $as_echo_n "checking for fgrep... " >&6; }
8488 if test "${ac_cv_path_FGREP+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8491 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8492 then ac_cv_path_FGREP="$GREP -F"
8494 if test -z "$FGREP"; then
8495 ac_path_FGREP_found=false
8496 # Loop through the user's path and test for each of PROGNAME-LIST
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8501 test -z "$as_dir" && as_dir=.
8502 for ac_prog in fgrep; do
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8505 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8506 # Check for GNU ac_path_FGREP and select it if it is found.
8507 # Check for GNU $ac_path_FGREP
8508 case `"$ac_path_FGREP" --version 2>&1` in
8510 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8513 $as_echo_n 0123456789 >"conftest.in"
8516 cat "conftest.in" "conftest.in" >"conftest.tmp"
8517 mv "conftest.tmp" "conftest.in"
8518 cp "conftest.in" "conftest.nl"
8519 $as_echo 'FGREP' >> "conftest.nl"
8520 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8522 as_fn_arith $ac_count + 1 && ac_count=$as_val
8523 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8524 # Best one so far, save it but keep looking for a better one
8525 ac_cv_path_FGREP="$ac_path_FGREP"
8526 ac_path_FGREP_max=$ac_count
8528 # 10*(2^10) chars as input seems more than enough
8529 test $ac_count -gt 10 && break
8531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8534 $ac_path_FGREP_found && break 3
8539 if test -z "$ac_cv_path_FGREP"; then
8540 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8543 ac_cv_path_FGREP=$FGREP
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8549 $as_echo "$ac_cv_path_FGREP" >&6; }
8550 FGREP="$ac_cv_path_FGREP"
8553 test -z "$GREP" && GREP=grep
8573 # Check whether --with-gnu-ld was given.
8574 if test "${with_gnu_ld+set}" = set; then :
8575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8581 if test "$GCC" = yes; then
8582 # Check if gcc -print-prog-name=ld gives a path.
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8584 $as_echo_n "checking for ld used by $CC... " >&6; }
8587 # gcc leaves a trailing carriage return which upsets mingw
8588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8593 # Accept absolute paths.
8595 re_direlt='/[^/][^/]*/\.\./'
8596 # Canonicalize the pathname of ld
8597 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8598 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8599 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8601 test -z "$LD" && LD="$ac_prog"
8604 # If it fails, then pretend we aren't using GCC.
8608 # If it is relative, then search for the first ld in PATH.
8612 elif test "$with_gnu_ld" = yes; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8614 $as_echo_n "checking for GNU ld... " >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8617 $as_echo_n "checking for non-GNU ld... " >&6; }
8619 if test "${lt_cv_path_LD+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 if test -z "$LD"; then
8623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8624 for ac_dir in $PATH; do
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8628 lt_cv_path_LD="$ac_dir/$ac_prog"
8629 # Check to see if the program is GNU ld. I'd rather use --version,
8630 # but apparently some variants of GNU ld only accept -v.
8631 # Break only if it was the GNU/non-GNU ld that we prefer.
8632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8633 *GNU* | *'with BFD'*)
8634 test "$with_gnu_ld" != no && break
8637 test "$with_gnu_ld" != yes && break
8644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8649 if test -n "$LD"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8651 $as_echo "$LD" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8656 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8659 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8663 case `$LD -v 2>&1 </dev/null` in
8664 *GNU* | *'with BFD'*)
8665 lt_cv_prog_gnu_ld=yes
8668 lt_cv_prog_gnu_ld=no
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8673 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8674 with_gnu_ld=$lt_cv_prog_gnu_ld
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8685 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8686 if test "${lt_cv_path_NM+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8689 if test -n "$NM"; then
8690 # Let the user override the test.
8693 lt_nm_to_check="${ac_tool_prefix}nm"
8694 if test -n "$ac_tool_prefix" \
8695 && { test "$build" = "$host" \
8696 || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
8698 lt_nm_to_check="$lt_nm_to_check nm"
8700 for lt_tmp_nm in $lt_nm_to_check; do
8701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8704 test -z "$ac_dir" && ac_dir=.
8705 tmp_nm="$ac_dir/$lt_tmp_nm"
8706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8707 # Check to see if the nm accepts a BSD-compat flag.
8708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8709 # nm: unknown option "B" ignored
8710 # Tru64's nm complains that /dev/null is an invalid object file
8711 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8712 */dev/null* | *'Invalid file or object type'*)
8713 lt_cv_path_NM="$tmp_nm -B"
8717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8719 lt_cv_path_NM="$tmp_nm -p"
8723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8724 continue # so that we can try to find one that supports BSD flags
8733 : ${lt_cv_path_NM=no}
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8737 $as_echo "$lt_cv_path_NM" >&6; }
8738 if test "$lt_cv_path_NM" != "no"; then
8741 # Didn't find any BSD compatible name lister, look for dumpbin.
8742 if test -n "$DUMPBIN"; then :
8743 # Let the user override the test.
8745 if test -n "$ac_tool_prefix"; then
8746 for ac_prog in dumpbin "link -dump"
8748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8755 if test -n "$DUMPBIN"; then
8756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 DUMPBIN=$ac_cv_prog_DUMPBIN
8776 if test -n "$DUMPBIN"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8778 $as_echo "$DUMPBIN" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8785 test -n "$DUMPBIN" && break
8788 if test -z "$DUMPBIN"; then
8789 ac_ct_DUMPBIN=$DUMPBIN
8790 for ac_prog in dumpbin "link -dump"
8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
8793 set dummy $ac_prog; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8799 if test -n "$ac_ct_DUMPBIN"; then
8800 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8820 if test -n "$ac_ct_DUMPBIN"; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8822 $as_echo "$ac_ct_DUMPBIN" >&6; }
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8829 test -n "$ac_ct_DUMPBIN" && break
8832 if test "x$ac_ct_DUMPBIN" = x; then
8835 case $cross_compiling:$ac_tool_warned in
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8839 ac_tool_warned=yes ;;
8841 DUMPBIN=$ac_ct_DUMPBIN
8845 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8847 DUMPBIN="$DUMPBIN -symbols"
8855 if test "$DUMPBIN" != ":"; then
8859 test -z "$NM" && NM=nm
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8867 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8868 if test "${lt_cv_nm_interface+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8871 lt_cv_nm_interface="BSD nm"
8872 echo "int some_variable = 0;" > conftest.$ac_ext
8873 (eval echo "\"\$as_me:8873: $ac_compile\"" >&5)
8874 (eval "$ac_compile" 2>conftest.err)
8875 cat conftest.err >&5
8876 (eval echo "\"\$as_me:8876: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8878 cat conftest.err >&5
8879 (eval echo "\"\$as_me:8879: output\"" >&5)
8880 cat conftest.out >&5
8881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8882 lt_cv_nm_interface="MS dumpbin"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8887 $as_echo "$lt_cv_nm_interface" >&6; }
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8890 $as_echo_n "checking whether ln -s works... " >&6; }
8892 if test "$LN_S" = "ln -s"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8894 $as_echo "yes" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8897 $as_echo "no, using $LN_S" >&6; }
8900 # find the maximum length of command line arguments
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8902 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8903 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8911 # On DJGPP, this test can blow up pretty badly due to problems in libc
8912 # (any single argument exceeding 2000 bytes causes a buffer overrun
8913 # during glob expansion). Even if it were fixed, the result of this
8914 # check would be larger than it should be.
8915 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8919 # Under GNU Hurd, this test is not required because there is
8920 # no limit to the length of command line arguments.
8921 # Libtool will interpret -1 as no limit whatsoever
8922 lt_cv_sys_max_cmd_len=-1;
8925 cygwin* | mingw* | cegcc*)
8926 # On Win9x/ME, this test blows up -- it succeeds, but takes
8927 # about 5 minutes as the teststring grows exponentially.
8928 # Worse, since 9x/ME are not pre-emptively multitasking,
8929 # you end up with a "frozen" computer, even though with patience
8930 # the test eventually succeeds (with a max line length of 256k).
8931 # Instead, let's just punt: use the minimum linelength reported by
8932 # all of the supported platforms: 8192 (on NT/2K/XP).
8933 lt_cv_sys_max_cmd_len=8192;
8937 # On AmigaOS with pdksh, this test takes hours, literally.
8938 # So we just punt and use a minimum line length of 8192.
8939 lt_cv_sys_max_cmd_len=8192;
8942 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8943 # This has been around since 386BSD, at least. Likely further.
8944 if test -x /sbin/sysctl; then
8945 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8946 elif test -x /usr/sbin/sysctl; then
8947 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8949 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8951 # And add a safety zone
8952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8957 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8958 lt_cv_sys_max_cmd_len=196608
8962 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8963 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8964 # nice to cause kernel panics so lets avoid the loop below.
8965 # First set a reasonable default.
8966 lt_cv_sys_max_cmd_len=16384
8968 if test -x /sbin/sysconfig; then
8969 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8970 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8975 lt_cv_sys_max_cmd_len=102400
8977 sysv5* | sco5v6* | sysv4.2uw2*)
8978 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8979 if test -n "$kargmax"; then
8980 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8982 lt_cv_sys_max_cmd_len=32768
8986 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8987 if test -n "$lt_cv_sys_max_cmd_len"; then
8988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8991 # Make teststring a little bigger before we do anything with it.
8992 # a 1K string should be a reasonable start.
8993 for i in 1 2 3 4 5 6 7 8 ; do
8994 teststring=$teststring$teststring
8996 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8997 # If test is not a shell built-in, we'll probably end up computing a
8998 # maximum length that is only half of the actual maximum length, but
9000 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9001 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9002 test $i != 17 # 1/2 MB should be enough
9005 teststring=$teststring$teststring
9007 # Only check the string length outside the loop.
9008 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9010 # Add a significant safety factor because C++ compilers can tack on
9011 # massive amounts of additional arguments before passing them to the
9012 # linker. It appears as though 1/2 is a usable value.
9013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9020 if test -n $lt_cv_sys_max_cmd_len ; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9022 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9025 $as_echo "none" >&6; }
9027 max_cmd_len=$lt_cv_sys_max_cmd_len
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9039 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9040 # Try some XSI features
9043 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9045 && eval 'test $(( 1 + 1 )) -eq 2 \
9046 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9049 $as_echo "$xsi_shell" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9053 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9055 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9057 && lt_shell_append=yes
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9059 $as_echo "$lt_shell_append" >&6; }
9062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9072 # test EBCDIC or ASCII
9073 case `echo X|tr X '\101'` in
9074 A) # ASCII based system
9075 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9076 lt_SP2NL='tr \040 \012'
9077 lt_NL2SP='tr \015\012 \040\040'
9079 *) # EBCDIC based system
9080 lt_SP2NL='tr \100 \n'
9081 lt_NL2SP='tr \r\n \100\100'
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9094 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9095 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9096 $as_echo_n "(cached) " >&6
9098 lt_cv_ld_reload_flag='-r'
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9101 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9102 reload_flag=$lt_cv_ld_reload_flag
9103 case $reload_flag in
9105 *) reload_flag=" $reload_flag" ;;
9107 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9110 if test "$GCC" = yes; then
9111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9113 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9126 if test -n "$ac_tool_prefix"; then
9127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9134 if test -n "$OBJDUMP"; then
9135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 OBJDUMP=$ac_cv_prog_OBJDUMP
9155 if test -n "$OBJDUMP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9157 $as_echo "$OBJDUMP" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9165 if test -z "$ac_cv_prog_OBJDUMP"; then
9166 ac_ct_OBJDUMP=$OBJDUMP
9167 # Extract the first word of "objdump", so it can be a program name with args.
9168 set dummy objdump; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9174 if test -n "$ac_ct_OBJDUMP"; then
9175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9195 if test -n "$ac_ct_OBJDUMP"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9197 $as_echo "$ac_ct_OBJDUMP" >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9203 if test "x$ac_ct_OBJDUMP" = x; then
9206 case $cross_compiling:$ac_tool_warned in
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9210 ac_tool_warned=yes ;;
9212 OBJDUMP=$ac_ct_OBJDUMP
9215 OBJDUMP="$ac_cv_prog_OBJDUMP"
9218 test -z "$OBJDUMP" && OBJDUMP=objdump
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9226 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9227 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9230 lt_cv_file_magic_cmd='$MAGIC_CMD'
9231 lt_cv_file_magic_test_file=
9232 lt_cv_deplibs_check_method='unknown'
9233 # Need to set the preceding variable on all platforms that support
9234 # interlibrary dependencies.
9235 # 'none' -- dependencies not supported.
9236 # `unknown' -- same as none, but documents that we really don't know.
9237 # 'pass_all' -- all dependencies passed with no checks.
9238 # 'test_compile' -- check by making test program.
9239 # 'file_magic [[regex]]' -- check by looking for files in library path
9240 # which responds to the $file_magic_cmd with a given extended regex.
9241 # If you have `file' or equivalent on your system and you're not sure
9242 # whether `pass_all' will *always* work, you probably want this one.
9246 lt_cv_deplibs_check_method=pass_all
9250 lt_cv_deplibs_check_method=pass_all
9254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9255 lt_cv_file_magic_cmd='/usr/bin/file -L'
9256 lt_cv_file_magic_test_file=/shlib/libc.so
9260 # func_win32_libid is a shell function defined in ltmain.sh
9261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9262 lt_cv_file_magic_cmd='func_win32_libid'
9266 # Base MSYS/MinGW do not provide the 'file' command needed by
9267 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9268 # unless we find 'file', for example because we are cross-compiling.
9269 if ( file / ) >/dev/null 2>&1; then
9270 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9271 lt_cv_file_magic_cmd='func_win32_libid'
9273 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9274 lt_cv_file_magic_cmd='$OBJDUMP -f'
9279 # use the weaker test based on 'objdump'. See mingw*.
9280 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9281 lt_cv_file_magic_cmd='$OBJDUMP -f'
9284 darwin* | rhapsody*)
9285 lt_cv_deplibs_check_method=pass_all
9288 freebsd* | dragonfly*)
9289 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9292 # Not sure whether the presence of OpenBSD here was a mistake.
9293 # Let's accept both of them until this is cleared up.
9294 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9295 lt_cv_file_magic_cmd=/usr/bin/file
9296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9300 lt_cv_deplibs_check_method=pass_all
9305 lt_cv_deplibs_check_method=pass_all
9308 hpux10.20* | hpux11*)
9309 lt_cv_file_magic_cmd=/usr/bin/file
9312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9313 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9317 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9321 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9327 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9331 irix5* | irix6* | nonstopux*)
9333 *-32|*"-32 ") libmagic=32-bit;;
9334 *-n32|*"-n32 ") libmagic=N32;;
9335 *-64|*"-64 ") libmagic=64-bit;;
9336 *) libmagic=never-match;;
9338 lt_cv_deplibs_check_method=pass_all
9341 # This must be Linux ELF.
9342 linux* | k*bsd*-gnu)
9343 lt_cv_deplibs_check_method=pass_all
9347 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9356 lt_cv_file_magic_cmd=/usr/bin/file
9357 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9361 lt_cv_deplibs_check_method=pass_all
9365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9372 osf3* | osf4* | osf5*)
9373 lt_cv_deplibs_check_method=pass_all
9377 lt_cv_deplibs_check_method=pass_all
9381 lt_cv_deplibs_check_method=pass_all
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9385 lt_cv_deplibs_check_method=pass_all
9389 case $host_vendor in
9391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9395 lt_cv_deplibs_check_method=pass_all
9398 lt_cv_file_magic_cmd='/bin/file'
9399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9402 lt_cv_file_magic_cmd='/bin/file'
9403 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9404 lt_cv_file_magic_test_file=/lib/libc.so
9407 lt_cv_deplibs_check_method=pass_all
9410 lt_cv_deplibs_check_method=pass_all
9416 lt_cv_deplibs_check_method=pass_all
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9422 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9423 file_magic_cmd=$lt_cv_file_magic_cmd
9424 deplibs_check_method=$lt_cv_deplibs_check_method
9425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9438 if test -n "$ac_tool_prefix"; then
9439 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9440 set dummy ${ac_tool_prefix}ar; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if test "${ac_cv_prog_AR+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9446 if test -n "$AR"; then
9447 ac_cv_prog_AR="$AR" # Let the user override the test.
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_prog_AR="${ac_tool_prefix}ar"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 if test -n "$AR"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9469 $as_echo "$AR" >&6; }
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9477 if test -z "$ac_cv_prog_AR"; then
9479 # Extract the first word of "ar", so it can be a program name with args.
9480 set dummy ar; ac_word=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9486 if test -n "$ac_ct_AR"; then
9487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_prog_ac_ct_AR="ar"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9507 if test -n "$ac_ct_AR"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9509 $as_echo "$ac_ct_AR" >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512 $as_echo "no" >&6; }
9515 if test "x$ac_ct_AR" = x; then
9518 case $cross_compiling:$ac_tool_warned in
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9522 ac_tool_warned=yes ;;
9530 test -z "$AR" && AR=ar
9531 test -z "$AR_FLAGS" && AR_FLAGS=cru
9543 if test -n "$ac_tool_prefix"; then
9544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9545 set dummy ${ac_tool_prefix}strip; ac_word=$2
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547 $as_echo_n "checking for $ac_word... " >&6; }
9548 if test "${ac_cv_prog_STRIP+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9551 if test -n "$STRIP"; then
9552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 test -z "$as_dir" && as_dir=.
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 STRIP=$ac_cv_prog_STRIP
9572 if test -n "$STRIP"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9574 $as_echo "$STRIP" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9582 if test -z "$ac_cv_prog_STRIP"; then
9584 # Extract the first word of "strip", so it can be a program name with args.
9585 set dummy strip; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9591 if test -n "$ac_ct_STRIP"; then
9592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_prog_ac_ct_STRIP="strip"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9612 if test -n "$ac_ct_STRIP"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9614 $as_echo "$ac_ct_STRIP" >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9620 if test "x$ac_ct_STRIP" = x; then
9623 case $cross_compiling:$ac_tool_warned in
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9627 ac_tool_warned=yes ;;
9632 STRIP="$ac_cv_prog_STRIP"
9635 test -z "$STRIP" && STRIP=:
9642 if test -n "$ac_tool_prefix"; then
9643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9650 if test -n "$RANLIB"; then
9651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 RANLIB=$ac_cv_prog_RANLIB
9671 if test -n "$RANLIB"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9673 $as_echo "$RANLIB" >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9681 if test -z "$ac_cv_prog_RANLIB"; then
9682 ac_ct_RANLIB=$RANLIB
9683 # Extract the first word of "ranlib", so it can be a program name with args.
9684 set dummy ranlib; ac_word=$2
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9686 $as_echo_n "checking for $ac_word... " >&6; }
9687 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9690 if test -n "$ac_ct_RANLIB"; then
9691 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_prog_ac_ct_RANLIB="ranlib"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9711 if test -n "$ac_ct_RANLIB"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9713 $as_echo "$ac_ct_RANLIB" >&6; }
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9719 if test "x$ac_ct_RANLIB" = x; then
9722 case $cross_compiling:$ac_tool_warned in
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9726 ac_tool_warned=yes ;;
9728 RANLIB=$ac_ct_RANLIB
9731 RANLIB="$ac_cv_prog_RANLIB"
9734 test -z "$RANLIB" && RANLIB=:
9741 # Determine commands to create old-style static archives.
9742 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9743 old_postinstall_cmds='chmod 644 $oldlib'
9744 old_postuninstall_cmds=
9746 if test -n "$RANLIB"; then
9749 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9755 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9791 # If no C compiler was specified, use CC.
9794 # If no C compiler flags were specified, use CFLAGS.
9795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9797 # Allow CC to be a program name with arguments.
9801 # Check for command to grab the raw symbol name followed by C symbol from nm.
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9803 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9804 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9808 # These are sane defaults that work on at least a few old systems.
9809 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9811 # Character class describing NM global symbol codes.
9812 symcode='[BCDEGRST]'
9814 # Regexp to match symbols that can be accessed directly from C.
9815 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9817 # Define system-specific variables.
9822 cygwin* | mingw* | pw32* | cegcc*)
9823 symcode='[ABCDGISTW]'
9826 if test "$host_cpu" = ia64; then
9827 symcode='[ABCDEGRST]'
9831 symcode='[BCDEGRST]'
9834 symcode='[BCDEGQRST]'
9845 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9853 # If we're using GNU nm, then use its standard symbol codes.
9854 case `$NM -V 2>&1` in
9855 *GNU* | *'with BFD'*)
9856 symcode='[ABCDGIRSTW]' ;;
9859 # Transform an extracted symbol line into a proper C declaration.
9860 # Some systems (esp. on ia64) link data and code symbols differently,
9861 # so use this general approach.
9862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9864 # Transform an extracted symbol line into symbol name and symbol address
9865 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9868 # Handle CRLF in mingw tool chain
9872 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9876 # Try without a prefix underscore, then with it.
9877 for ac_symprfx in "" "_"; do
9879 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9880 symxfrm="\\1 $ac_symprfx\\2 \\2"
9882 # Write the raw and C identifiers.
9883 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9884 # Fake it for dumpbin and say T for any non-static function
9885 # and D for any global variable.
9886 # Also find C++ and __fastcall symbols from MSVC++,
9887 # which start with @ or ?.
9888 lt_cv_sys_global_symbol_pipe="$AWK '"\
9889 " {last_section=section; section=\$ 3};"\
9890 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9891 " \$ 0!~/External *\|/{next};"\
9892 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9893 " {if(hide[section]) next};"\
9894 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9895 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9896 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9897 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9898 " ' prfx=^$ac_symprfx"
9900 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9903 # Check to see that the pipe works correctly.
9907 cat > conftest.$ac_ext <<_LT_EOF
9912 void nm_test_func(void);
9913 void nm_test_func(void){}
9917 int main(){nm_test_var='a';nm_test_func();return(0);}
9920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9921 (eval $ac_compile) 2>&5
9923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924 test $ac_status = 0; }; then
9925 # Now try to grab the symbols.
9927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9928 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; } && test -s "$nlist"; then
9932 # Try sorting and uniquifying the output.
9933 if sort "$nlist" | uniq > "$nlist"T; then
9934 mv -f "$nlist"T "$nlist"
9939 # Make sure that we snagged all the symbols we need.
9940 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9941 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9942 cat <<_LT_EOF > conftest.$ac_ext
9948 # Now generate the symbol file.
9949 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9951 cat <<_LT_EOF >> conftest.$ac_ext
9953 /* The mapping between symbol names and symbols. */
9958 lt__PROGRAM__LTX_preloaded_symbols[] =
9960 { "@PROGRAM@", (void *) 0 },
9962 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9963 cat <<\_LT_EOF >> conftest.$ac_ext
9967 /* This works around a problem in FreeBSD linker */
9968 #ifdef FREEBSD_WORKAROUND
9969 static const void *lt_preloaded_setup() {
9970 return lt__PROGRAM__LTX_preloaded_symbols;
9978 # Now try linking the two files.
9979 mv conftest.$ac_objext conftstm.$ac_objext
9980 lt_save_LIBS="$LIBS"
9981 lt_save_CFLAGS="$CFLAGS"
9982 LIBS="conftstm.$ac_objext"
9983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9985 (eval $ac_link) 2>&5
9987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9988 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9991 LIBS="$lt_save_LIBS"
9992 CFLAGS="$lt_save_CFLAGS"
9994 echo "cannot find nm_test_func in $nlist" >&5
9997 echo "cannot find nm_test_var in $nlist" >&5
10000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10003 echo "$progname: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 rm -rf conftest* conftst*
10008 # Do not use the global_symbol_pipe unless it works.
10009 if test "$pipe_works" = yes; then
10012 lt_cv_sys_global_symbol_pipe=
10018 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10019 lt_cv_sys_global_symbol_to_cdecl=
10021 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10023 $as_echo "failed" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10026 $as_echo "ok" >&6; }
10050 # Check whether --enable-libtool-lock was given.
10051 if test "${enable_libtool_lock+set}" = set; then :
10052 enableval=$enable_libtool_lock;
10055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10057 # Some flags need to be propagated to the compiler or linker for good
10061 # Find out which ABI we are using.
10062 echo 'int i;' > conftest.$ac_ext
10063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10064 (eval $ac_compile) 2>&5
10066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10067 test $ac_status = 0; }; then
10068 case `/usr/bin/file conftest.$ac_objext` in
10070 HPUX_IA64_MODE="32"
10073 HPUX_IA64_MODE="64"
10080 # Find out which ABI we are using.
10081 echo '#line 10081 "configure"' > conftest.$ac_ext
10082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10083 (eval $ac_compile) 2>&5
10085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086 test $ac_status = 0; }; then
10087 if test "$lt_cv_prog_gnu_ld" = yes; then
10088 case `/usr/bin/file conftest.$ac_objext` in
10090 LD="${LD-ld} -melf32bsmip"
10093 LD="${LD-ld} -melf32bmipn32"
10096 LD="${LD-ld} -melf64bmip"
10100 case `/usr/bin/file conftest.$ac_objext` in
10116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10118 # Find out which ABI we are using.
10119 echo 'int i;' > conftest.$ac_ext
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10121 (eval $ac_compile) 2>&5
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; }; then
10125 case `/usr/bin/file conftest.o` in
10128 x86_64-*kfreebsd*-gnu)
10129 LD="${LD-ld} -m elf_i386_fbsd"
10132 LD="${LD-ld} -m elf_i386"
10134 ppc64-*linux*|powerpc64-*linux*)
10135 LD="${LD-ld} -m elf32ppclinux"
10138 LD="${LD-ld} -m elf_s390"
10141 LD="${LD-ld} -m elf32_sparc"
10147 x86_64-*kfreebsd*-gnu)
10148 LD="${LD-ld} -m elf_x86_64_fbsd"
10151 LD="${LD-ld} -m elf_x86_64"
10153 ppc*-*linux*|powerpc*-*linux*)
10154 LD="${LD-ld} -m elf64ppc"
10156 s390*-*linux*|s390*-*tpf*)
10157 LD="${LD-ld} -m elf64_s390"
10160 LD="${LD-ld} -m elf64_sparc"
10170 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10171 SAVE_CFLAGS="$CFLAGS"
10172 CFLAGS="$CFLAGS -belf"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10174 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10175 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 lt_cv_cc_needs_belf=yes
10198 lt_cv_cc_needs_belf=no
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10203 ac_cpp='$CPP $CPPFLAGS'
10204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10210 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10213 CFLAGS="$SAVE_CFLAGS"
10217 # Find out which ABI we are using.
10218 echo 'int i;' > conftest.$ac_ext
10219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10220 (eval $ac_compile) 2>&5
10222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223 test $ac_status = 0; }; then
10224 case `/usr/bin/file conftest.o` in
10226 case $lt_cv_prog_gnu_ld in
10227 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10229 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10241 need_locks="$enable_libtool_lock"
10245 rhapsody* | darwin*)
10246 if test -n "$ac_tool_prefix"; then
10247 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10248 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10254 if test -n "$DSYMUTIL"; then
10255 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10275 if test -n "$DSYMUTIL"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10277 $as_echo "$DSYMUTIL" >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10285 if test -z "$ac_cv_prog_DSYMUTIL"; then
10286 ac_ct_DSYMUTIL=$DSYMUTIL
10287 # Extract the first word of "dsymutil", so it can be a program name with args.
10288 set dummy dsymutil; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10294 if test -n "$ac_ct_DSYMUTIL"; then
10295 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10315 if test -n "$ac_ct_DSYMUTIL"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10317 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10323 if test "x$ac_ct_DSYMUTIL" = x; then
10326 case $cross_compiling:$ac_tool_warned in
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10330 ac_tool_warned=yes ;;
10332 DSYMUTIL=$ac_ct_DSYMUTIL
10335 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10338 if test -n "$ac_tool_prefix"; then
10339 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10340 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10346 if test -n "$NMEDIT"; then
10347 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 NMEDIT=$ac_cv_prog_NMEDIT
10367 if test -n "$NMEDIT"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10369 $as_echo "$NMEDIT" >&6; }
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10377 if test -z "$ac_cv_prog_NMEDIT"; then
10378 ac_ct_NMEDIT=$NMEDIT
10379 # Extract the first word of "nmedit", so it can be a program name with args.
10380 set dummy nmedit; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 if test -n "$ac_ct_NMEDIT"; then
10387 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10407 if test -n "$ac_ct_NMEDIT"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10409 $as_echo "$ac_ct_NMEDIT" >&6; }
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10415 if test "x$ac_ct_NMEDIT" = x; then
10418 case $cross_compiling:$ac_tool_warned in
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10422 ac_tool_warned=yes ;;
10424 NMEDIT=$ac_ct_NMEDIT
10427 NMEDIT="$ac_cv_prog_NMEDIT"
10430 if test -n "$ac_tool_prefix"; then
10431 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10432 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if test "${ac_cv_prog_LIPO+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10438 if test -n "$LIPO"; then
10439 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 LIPO=$ac_cv_prog_LIPO
10459 if test -n "$LIPO"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10461 $as_echo "$LIPO" >&6; }
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10469 if test -z "$ac_cv_prog_LIPO"; then
10471 # Extract the first word of "lipo", so it can be a program name with args.
10472 set dummy lipo; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10478 if test -n "$ac_ct_LIPO"; then
10479 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_prog_ac_ct_LIPO="lipo"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10499 if test -n "$ac_ct_LIPO"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10501 $as_echo "$ac_ct_LIPO" >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10507 if test "x$ac_ct_LIPO" = x; then
10510 case $cross_compiling:$ac_tool_warned in
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10514 ac_tool_warned=yes ;;
10519 LIPO="$ac_cv_prog_LIPO"
10522 if test -n "$ac_tool_prefix"; then
10523 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10524 set dummy ${ac_tool_prefix}otool; ac_word=$2
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10526 $as_echo_n "checking for $ac_word... " >&6; }
10527 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10528 $as_echo_n "(cached) " >&6
10530 if test -n "$OTOOL"; then
10531 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10540 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 OTOOL=$ac_cv_prog_OTOOL
10551 if test -n "$OTOOL"; then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10553 $as_echo "$OTOOL" >&6; }
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10561 if test -z "$ac_cv_prog_OTOOL"; then
10563 # Extract the first word of "otool", so it can be a program name with args.
10564 set dummy otool; ac_word=$2
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
10570 if test -n "$ac_ct_OTOOL"; then
10571 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580 ac_cv_prog_ac_ct_OTOOL="otool"
10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10591 if test -n "$ac_ct_OTOOL"; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10593 $as_echo "$ac_ct_OTOOL" >&6; }
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596 $as_echo "no" >&6; }
10599 if test "x$ac_ct_OTOOL" = x; then
10602 case $cross_compiling:$ac_tool_warned in
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10606 ac_tool_warned=yes ;;
10611 OTOOL="$ac_cv_prog_OTOOL"
10614 if test -n "$ac_tool_prefix"; then
10615 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10616 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10622 if test -n "$OTOOL64"; then
10623 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 OTOOL64=$ac_cv_prog_OTOOL64
10643 if test -n "$OTOOL64"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10645 $as_echo "$OTOOL64" >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10653 if test -z "$ac_cv_prog_OTOOL64"; then
10654 ac_ct_OTOOL64=$OTOOL64
10655 # Extract the first word of "otool64", so it can be a program name with args.
10656 set dummy otool64; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10662 if test -n "$ac_ct_OTOOL64"; then
10663 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10669 test -z "$as_dir" && as_dir=.
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10672 ac_cv_prog_ac_ct_OTOOL64="otool64"
10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10683 if test -n "$ac_ct_OTOOL64"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10685 $as_echo "$ac_ct_OTOOL64" >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10691 if test "x$ac_ct_OTOOL64" = x; then
10694 case $cross_compiling:$ac_tool_warned in
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10698 ac_tool_warned=yes ;;
10700 OTOOL64=$ac_ct_OTOOL64
10703 OTOOL64="$ac_cv_prog_OTOOL64"
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10733 $as_echo_n "checking for -single_module linker flag... " >&6; }
10734 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 lt_cv_apple_cc_single_mod=no
10738 if test -z "${LT_MULTI_MODULE}"; then
10739 # By default we will add the -single_module flag. You can override
10740 # by either setting the environment variable LT_MULTI_MODULE
10741 # non-empty at configure time, or by adding -multi_module to the
10743 rm -rf libconftest.dylib*
10744 echo "int foo(void){return 1;}" > conftest.c
10745 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10746 -dynamiclib -Wl,-single_module conftest.c" >&5
10747 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10748 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10750 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10751 lt_cv_apple_cc_single_mod=yes
10753 cat conftest.err >&5
10755 rm -rf libconftest.dylib*
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10760 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10762 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10763 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10766 lt_cv_ld_exported_symbols_list=no
10767 save_LDFLAGS=$LDFLAGS
10768 echo "_main" > conftest.sym
10769 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 lt_cv_ld_exported_symbols_list=yes
10784 lt_cv_ld_exported_symbols_list=no
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LDFLAGS="$save_LDFLAGS"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10792 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10794 rhapsody* | darwin1.[012])
10795 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10797 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10798 darwin*) # darwin 5.x on
10799 # if running on 10.5 or later, the deployment target defaults
10800 # to the OS version, if on x86, and 10.4, the deployment
10801 # target defaults to 10.4. Don't you love it?
10802 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10803 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10804 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10806 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10808 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10812 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10813 _lt_dar_single_mod='$single_module'
10815 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10816 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10818 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10820 if test "$DSYMUTIL" != ":"; then
10821 _lt_dsymutil='~$DSYMUTIL $lib || :'
10828 for ac_header in dlfcn.h
10830 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10832 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_DLFCN_H 1
10844 enable_win32_dll=yes
10847 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10848 if test -n "$ac_tool_prefix"; then
10849 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10850 set dummy ${ac_tool_prefix}as; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if test "${ac_cv_prog_AS+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10856 if test -n "$AS"; then
10857 ac_cv_prog_AS="$AS" # Let the user override the test.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_prog_AS="${ac_tool_prefix}as"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 if test -n "$AS"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10879 $as_echo "$AS" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10887 if test -z "$ac_cv_prog_AS"; then
10889 # Extract the first word of "as", so it can be a program name with args.
10890 set dummy as; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10896 if test -n "$ac_ct_AS"; then
10897 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900 for as_dir in $PATH
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10906 ac_cv_prog_ac_ct_AS="as"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10917 if test -n "$ac_ct_AS"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10919 $as_echo "$ac_ct_AS" >&6; }
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10925 if test "x$ac_ct_AS" = x; then
10928 case $cross_compiling:$ac_tool_warned in
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10932 ac_tool_warned=yes ;;
10937 AS="$ac_cv_prog_AS"
10940 if test -n "$ac_tool_prefix"; then
10941 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10942 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944 $as_echo_n "checking for $ac_word... " >&6; }
10945 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10948 if test -n "$DLLTOOL"; then
10949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 DLLTOOL=$ac_cv_prog_DLLTOOL
10969 if test -n "$DLLTOOL"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10971 $as_echo "$DLLTOOL" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10979 if test -z "$ac_cv_prog_DLLTOOL"; then
10980 ac_ct_DLLTOOL=$DLLTOOL
10981 # Extract the first word of "dlltool", so it can be a program name with args.
10982 set dummy dlltool; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 if test -n "$ac_ct_DLLTOOL"; then
10989 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11009 if test -n "$ac_ct_DLLTOOL"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11011 $as_echo "$ac_ct_DLLTOOL" >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014 $as_echo "no" >&6; }
11017 if test "x$ac_ct_DLLTOOL" = x; then
11020 case $cross_compiling:$ac_tool_warned in
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11024 ac_tool_warned=yes ;;
11026 DLLTOOL=$ac_ct_DLLTOOL
11029 DLLTOOL="$ac_cv_prog_DLLTOOL"
11032 if test -n "$ac_tool_prefix"; then
11033 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11040 if test -n "$OBJDUMP"; then
11041 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 OBJDUMP=$ac_cv_prog_OBJDUMP
11061 if test -n "$OBJDUMP"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11063 $as_echo "$OBJDUMP" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11071 if test -z "$ac_cv_prog_OBJDUMP"; then
11072 ac_ct_OBJDUMP=$OBJDUMP
11073 # Extract the first word of "objdump", so it can be a program name with args.
11074 set dummy objdump; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11080 if test -n "$ac_ct_OBJDUMP"; then
11081 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11101 if test -n "$ac_ct_OBJDUMP"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11103 $as_echo "$ac_ct_OBJDUMP" >&6; }
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11109 if test "x$ac_ct_OBJDUMP" = x; then
11112 case $cross_compiling:$ac_tool_warned in
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11116 ac_tool_warned=yes ;;
11118 OBJDUMP=$ac_ct_OBJDUMP
11121 OBJDUMP="$ac_cv_prog_OBJDUMP"
11127 test -z "$AS" && AS=as
11133 test -z "$DLLTOOL" && DLLTOOL=dlltool
11139 test -z "$OBJDUMP" && OBJDUMP=objdump
11151 # Check whether --enable-shared was given.
11152 if test "${enable_shared+set}" = set; then :
11153 enableval=$enable_shared; p=${PACKAGE-default}
11155 yes) enable_shared=yes ;;
11156 no) enable_shared=no ;;
11159 # Look at the argument we got. We use all the common list separators.
11160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161 for pkg in $enableval; do
11163 if test "X$pkg" = "X$p"; then
11182 # Check whether --enable-static was given.
11183 if test "${enable_static+set}" = set; then :
11184 enableval=$enable_static; p=${PACKAGE-default}
11186 yes) enable_static=yes ;;
11187 no) enable_static=no ;;
11190 # Look at the argument we got. We use all the common list separators.
11191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11192 for pkg in $enableval; do
11194 if test "X$pkg" = "X$p"; then
11214 # Check whether --with-pic was given.
11215 if test "${with_pic+set}" = set; then :
11216 withval=$with_pic; pic_mode="$withval"
11222 test -z "$pic_mode" && pic_mode=default
11230 # Check whether --enable-fast-install was given.
11231 if test "${enable_fast_install+set}" = set; then :
11232 enableval=$enable_fast_install; p=${PACKAGE-default}
11234 yes) enable_fast_install=yes ;;
11235 no) enable_fast_install=no ;;
11237 enable_fast_install=no
11238 # Look at the argument we got. We use all the common list separators.
11239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11240 for pkg in $enableval; do
11242 if test "X$pkg" = "X$p"; then
11243 enable_fast_install=yes
11250 enable_fast_install=yes
11263 # This can be used to rebuild libtool when needed
11264 LIBTOOL_DEPS="$ltmain"
11266 # Always use our own libtool.
11267 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11293 test -z "$LN_S" && LN_S="ln -s"
11308 if test -n "${ZSH_VERSION+set}" ; then
11309 setopt NO_GLOB_SUBST
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11313 $as_echo_n "checking for objdir... " >&6; }
11314 if test "${lt_cv_objdir+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 rm -f .libs 2>/dev/null
11318 mkdir .libs 2>/dev/null
11319 if test -d .libs; then
11322 # MS-DOS does not allow filenames that begin with a dot.
11325 rmdir .libs 2>/dev/null
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11328 $as_echo "$lt_cv_objdir" >&6; }
11329 objdir=$lt_cv_objdir
11335 cat >>confdefs.h <<_ACEOF
11336 #define LT_OBJDIR "$lt_cv_objdir/"
11357 # AIX sometimes has problems with the GCC collect2 program. For some
11358 # reason, if we set the COLLECT_NAMES environment variable, the problems
11359 # vanish in a puff of smoke.
11360 if test "X${COLLECT_NAMES+set}" != Xset; then
11362 export COLLECT_NAMES
11367 # Sed substitution that helps us do robust quoting. It backslashifies
11368 # metacharacters that are still active within double-quoted strings.
11369 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11371 # Same as above, but do not quote variable references.
11372 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11374 # Sed substitution to delay expansion of an escaped shell variable in a
11375 # double_quote_subst'ed string.
11376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11378 # Sed substitution to delay expansion of an escaped single quote.
11379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11381 # Sed substitution to avoid accidental globbing in evaled expressions
11382 no_glob_subst='s/\*/\\\*/g'
11384 # Global variables:
11386 can_build_shared=yes
11388 # All known linkers require a `.a' archive for static linking (except MSVC,
11389 # which needs '.lib').
11392 with_gnu_ld="$lt_cv_prog_gnu_ld"
11395 old_CFLAGS="$CFLAGS"
11397 # Set sane defaults for various variables
11398 test -z "$CC" && CC=cc
11399 test -z "$LTCC" && LTCC=$CC
11400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11401 test -z "$LD" && LD=ld
11402 test -z "$ac_objext" && ac_objext=o
11404 for cc_temp in $compiler""; do
11406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11412 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11415 # Only perform the check for file, if the check method requires it
11416 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11417 case $deplibs_check_method in
11419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11421 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11430 lt_save_MAGIC_CMD="$MAGIC_CMD"
11431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11433 for ac_dir in $ac_dummy; do
11435 test -z "$ac_dir" && ac_dir=.
11436 if test -f $ac_dir/${ac_tool_prefix}file; then
11437 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11438 if test -n "$file_magic_test_file"; then
11439 case $deplibs_check_method in
11441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11442 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11444 $EGREP "$file_magic_regex" > /dev/null; then
11449 *** Warning: the command libtool uses to detect shared libraries,
11450 *** $file_magic_cmd, produces output that libtool cannot recognize.
11451 *** The result is that libtool may fail to recognize shared libraries
11452 *** as such. This will affect the creation of libtool libraries that
11453 *** depend on shared libraries, but programs linked with such libtool
11454 *** libraries will work regardless of this problem. Nevertheless, you
11455 *** may want to report the problem to your system manager and/or to
11456 *** bug-libtool@gnu.org
11466 MAGIC_CMD="$lt_save_MAGIC_CMD"
11471 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11472 if test -n "$MAGIC_CMD"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11474 $as_echo "$MAGIC_CMD" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11484 if test -z "$lt_cv_path_MAGIC_CMD"; then
11485 if test -n "$ac_tool_prefix"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11487 $as_echo_n "checking for file... " >&6; }
11488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
11493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11496 lt_save_MAGIC_CMD="$MAGIC_CMD"
11497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11499 for ac_dir in $ac_dummy; do
11501 test -z "$ac_dir" && ac_dir=.
11502 if test -f $ac_dir/file; then
11503 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11504 if test -n "$file_magic_test_file"; then
11505 case $deplibs_check_method in
11507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11510 $EGREP "$file_magic_regex" > /dev/null; then
11515 *** Warning: the command libtool uses to detect shared libraries,
11516 *** $file_magic_cmd, produces output that libtool cannot recognize.
11517 *** The result is that libtool may fail to recognize shared libraries
11518 *** as such. This will affect the creation of libtool libraries that
11519 *** depend on shared libraries, but programs linked with such libtool
11520 *** libraries will work regardless of this problem. Nevertheless, you
11521 *** may want to report the problem to your system manager and/or to
11522 *** bug-libtool@gnu.org
11532 MAGIC_CMD="$lt_save_MAGIC_CMD"
11537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11538 if test -n "$MAGIC_CMD"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11540 $as_echo "$MAGIC_CMD" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11556 # Use C for the default configuration in the libtool script
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11566 # Source file extension for C test sources.
11569 # Object file extension for compiled C test sources.
11573 # Code to be used in simple compile tests
11574 lt_simple_compile_test_code="int some_variable = 0;"
11576 # Code to be used in simple link tests
11577 lt_simple_link_test_code='int main(){return(0);}'
11585 # If no C compiler was specified, use CC.
11588 # If no C compiler flags were specified, use CFLAGS.
11589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11591 # Allow CC to be a program name with arguments.
11594 # Save the default compiler, since it gets overwritten when the other
11595 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11596 compiler_DEFAULT=$CC
11598 # save warnings/boilerplate of simple test code
11599 ac_outfile=conftest.$ac_objext
11600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11602 _lt_compiler_boilerplate=`cat conftest.err`
11605 ac_outfile=conftest.$ac_objext
11606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11608 _lt_linker_boilerplate=`cat conftest.err`
11613 ## There is no encapsulation within the following macros, do not change
11614 ## the running order or otherwise move them around unless you know exactly
11615 ## what you are doing...
11616 if test -n "$compiler"; then
11618 lt_prog_compiler_no_builtin_flag=
11620 if test "$GCC" = yes; then
11621 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11624 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11625 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11628 lt_cv_prog_compiler_rtti_exceptions=no
11629 ac_outfile=conftest.$ac_objext
11630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11631 lt_compiler_flag="-fno-rtti -fno-exceptions"
11632 # Insert the option either (1) after the last *FLAGS variable, or
11633 # (2) before a word containing "conftest.", or (3) at the end.
11634 # Note that $ac_compile itself does not contain backslashes and begins
11635 # with a dollar sign (not a hyphen), so the echo should work correctly.
11636 # The option is referenced via a variable to avoid confusing sed.
11637 lt_compile=`echo "$ac_compile" | $SED \
11638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11640 -e 's:$: $lt_compiler_flag:'`
11641 (eval echo "\"\$as_me:11641: $lt_compile\"" >&5)
11642 (eval "$lt_compile" 2>conftest.err)
11644 cat conftest.err >&5
11645 echo "$as_me:11645: \$? = $ac_status" >&5
11646 if (exit $ac_status) && test -s "$ac_outfile"; then
11647 # The compiler can only warn and ignore the option if not recognized
11648 # So say no if there are warnings other than the usual output.
11649 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11652 lt_cv_prog_compiler_rtti_exceptions=yes
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11659 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11661 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11662 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11674 lt_prog_compiler_wl=
11675 lt_prog_compiler_pic=
11676 lt_prog_compiler_static=
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11679 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11681 if test "$GCC" = yes; then
11682 lt_prog_compiler_wl='-Wl,'
11683 lt_prog_compiler_static='-static'
11687 # All AIX code is PIC.
11688 if test "$host_cpu" = ia64; then
11689 # AIX 5 now supports IA64 processor
11690 lt_prog_compiler_static='-Bstatic'
11697 # see comment about AmigaOS4 .so support
11698 lt_prog_compiler_pic='-fPIC'
11701 # FIXME: we need at least 68020 code to build shared libraries, but
11702 # adding the `-m68020' flag to GCC prevents building anything better,
11704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11710 # PIC is the default for these OSes.
11713 mingw* | cygwin* | pw32* | os2* | cegcc*)
11714 # This hack is so that the source file can tell whether it is being
11715 # built for inclusion in a dll (and should export symbols for example).
11716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11717 # (--disable-auto-import) libraries
11718 lt_prog_compiler_pic='-DDLL_EXPORT'
11721 darwin* | rhapsody*)
11722 # PIC is the default on this platform
11723 # Common symbols not allowed in MH_DYLIB files
11724 lt_prog_compiler_pic='-fno-common'
11728 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11729 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11730 # sets the default TLS model and affects inlining.
11736 lt_prog_compiler_pic='-fPIC'
11742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11743 # Instead, we relocate shared libraries at runtime.
11747 # Just because we use GCC doesn't mean we suddenly get shared libraries
11748 # on systems that don't support them.
11749 lt_prog_compiler_can_build_shared=no
11754 # QNX uses GNU C++, but need to define -shared option too, otherwise
11755 # it will coredump.
11756 lt_prog_compiler_pic='-fPIC -shared'
11760 if test -d /usr/nec; then
11761 lt_prog_compiler_pic=-Kconform_pic
11766 lt_prog_compiler_pic='-fPIC'
11770 # PORTME Check for flag to pass linker flags through the system compiler.
11773 lt_prog_compiler_wl='-Wl,'
11774 if test "$host_cpu" = ia64; then
11775 # AIX 5 now supports IA64 processor
11776 lt_prog_compiler_static='-Bstatic'
11778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11782 mingw* | cygwin* | pw32* | os2* | cegcc*)
11783 # This hack is so that the source file can tell whether it is being
11784 # built for inclusion in a dll (and should export symbols for example).
11785 lt_prog_compiler_pic='-DDLL_EXPORT'
11788 hpux9* | hpux10* | hpux11*)
11789 lt_prog_compiler_wl='-Wl,'
11790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11791 # not for PA HP-UX.
11797 lt_prog_compiler_pic='+Z'
11800 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11801 lt_prog_compiler_static='${wl}-a ${wl}archive'
11804 irix5* | irix6* | nonstopux*)
11805 lt_prog_compiler_wl='-Wl,'
11806 # PIC (with -KPIC) is the default.
11807 lt_prog_compiler_static='-non_shared'
11810 linux* | k*bsd*-gnu)
11811 case $cc_basename in
11812 # old Intel for x86_64 which still supported -KPIC.
11814 lt_prog_compiler_wl='-Wl,'
11815 lt_prog_compiler_pic='-KPIC'
11816 lt_prog_compiler_static='-static'
11818 # icc used to be incompatible with GCC.
11819 # ICC 10 doesn't accept -KPIC any more.
11821 lt_prog_compiler_wl='-Wl,'
11822 lt_prog_compiler_pic='-fPIC'
11823 lt_prog_compiler_static='-static'
11825 # Lahey Fortran 8.1.
11827 lt_prog_compiler_wl='-Wl,'
11828 lt_prog_compiler_pic='--shared'
11829 lt_prog_compiler_static='--static'
11831 pgcc* | pgf77* | pgf90* | pgf95*)
11832 # Portland Group compilers (*not* the Pentium gcc compiler,
11833 # which looks to be a dead project)
11834 lt_prog_compiler_wl='-Wl,'
11835 lt_prog_compiler_pic='-fpic'
11836 lt_prog_compiler_static='-Bstatic'
11839 lt_prog_compiler_wl='-Wl,'
11840 # All Alpha code is PIC.
11841 lt_prog_compiler_static='-non_shared'
11844 # IBM XL C 8.0/Fortran 10.1 on PPC
11845 lt_prog_compiler_wl='-Wl,'
11846 lt_prog_compiler_pic='-qpic'
11847 lt_prog_compiler_static='-qstaticlink'
11850 case `$CC -V 2>&1 | sed 5q` in
11853 lt_prog_compiler_pic='-KPIC'
11854 lt_prog_compiler_static='-Bstatic'
11855 lt_prog_compiler_wl='-Wl,'
11858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11859 lt_prog_compiler_pic='-KPIC'
11860 lt_prog_compiler_static='-Bstatic'
11861 lt_prog_compiler_wl=''
11869 lt_prog_compiler_pic='-KPIC'
11870 lt_prog_compiler_static='-Bstatic'
11874 # QNX uses GNU C++, but need to define -shared option too, otherwise
11875 # it will coredump.
11876 lt_prog_compiler_pic='-fPIC -shared'
11879 osf3* | osf4* | osf5*)
11880 lt_prog_compiler_wl='-Wl,'
11881 # All OSF/1 code is PIC.
11882 lt_prog_compiler_static='-non_shared'
11886 lt_prog_compiler_static='-non_shared'
11890 lt_prog_compiler_pic='-KPIC'
11891 lt_prog_compiler_static='-Bstatic'
11892 case $cc_basename in
11893 f77* | f90* | f95*)
11894 lt_prog_compiler_wl='-Qoption ld ';;
11896 lt_prog_compiler_wl='-Wl,';;
11901 lt_prog_compiler_wl='-Qoption ld '
11902 lt_prog_compiler_pic='-PIC'
11903 lt_prog_compiler_static='-Bstatic'
11906 sysv4 | sysv4.2uw2* | sysv4.3*)
11907 lt_prog_compiler_wl='-Wl,'
11908 lt_prog_compiler_pic='-KPIC'
11909 lt_prog_compiler_static='-Bstatic'
11913 if test -d /usr/nec ;then
11914 lt_prog_compiler_pic='-Kconform_pic'
11915 lt_prog_compiler_static='-Bstatic'
11919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11920 lt_prog_compiler_wl='-Wl,'
11921 lt_prog_compiler_pic='-KPIC'
11922 lt_prog_compiler_static='-Bstatic'
11926 lt_prog_compiler_wl='-Wl,'
11927 lt_prog_compiler_can_build_shared=no
11931 lt_prog_compiler_pic='-pic'
11932 lt_prog_compiler_static='-Bstatic'
11936 lt_prog_compiler_can_build_shared=no
11942 # For platforms which do not support PIC, -DPIC is meaningless:
11944 lt_prog_compiler_pic=
11947 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11951 $as_echo "$lt_prog_compiler_pic" >&6; }
11959 # Check to make sure the PIC flag actually works.
11961 if test -n "$lt_prog_compiler_pic"; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11964 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11967 lt_cv_prog_compiler_pic_works=no
11968 ac_outfile=conftest.$ac_objext
11969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11970 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11971 # Insert the option either (1) after the last *FLAGS variable, or
11972 # (2) before a word containing "conftest.", or (3) at the end.
11973 # Note that $ac_compile itself does not contain backslashes and begins
11974 # with a dollar sign (not a hyphen), so the echo should work correctly.
11975 # The option is referenced via a variable to avoid confusing sed.
11976 lt_compile=`echo "$ac_compile" | $SED \
11977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11979 -e 's:$: $lt_compiler_flag:'`
11980 (eval echo "\"\$as_me:11980: $lt_compile\"" >&5)
11981 (eval "$lt_compile" 2>conftest.err)
11983 cat conftest.err >&5
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 if (exit $ac_status) && test -s "$ac_outfile"; then
11986 # The compiler can only warn and ignore the option if not recognized
11987 # So say no if there are warnings other than the usual output.
11988 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11991 lt_cv_prog_compiler_pic_works=yes
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11998 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12000 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12001 case $lt_prog_compiler_pic in
12003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12006 lt_prog_compiler_pic=
12007 lt_prog_compiler_can_build_shared=no
12018 # Check to make sure the static flag actually works.
12020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12022 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12023 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 lt_cv_prog_compiler_static_works=no
12027 save_LDFLAGS="$LDFLAGS"
12028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12031 # The linker can only warn and ignore the option if not recognized
12032 # So say no if there are warnings
12033 if test -s conftest.err; then
12034 # Append any errors to the config.log.
12035 cat conftest.err 1>&5
12036 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12038 if diff conftest.exp conftest.er2 >/dev/null; then
12039 lt_cv_prog_compiler_static_works=yes
12042 lt_cv_prog_compiler_static_works=yes
12046 LDFLAGS="$save_LDFLAGS"
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12050 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12052 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12055 lt_prog_compiler_static=
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12066 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12069 lt_cv_prog_compiler_c_o=no
12070 $RM -r conftest 2>/dev/null
12074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12076 lt_compiler_flag="-o out/conftest2.$ac_objext"
12077 # Insert the option either (1) after the last *FLAGS variable, or
12078 # (2) before a word containing "conftest.", or (3) at the end.
12079 # Note that $ac_compile itself does not contain backslashes and begins
12080 # with a dollar sign (not a hyphen), so the echo should work correctly.
12081 lt_compile=`echo "$ac_compile" | $SED \
12082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084 -e 's:$: $lt_compiler_flag:'`
12085 (eval echo "\"\$as_me:12085: $lt_compile\"" >&5)
12086 (eval "$lt_compile" 2>out/conftest.err)
12088 cat out/conftest.err >&5
12089 echo "$as_me:12089: \$? = $ac_status" >&5
12090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12092 # The compiler can only warn and ignore the option if not recognized
12093 # So say no if there are warnings
12094 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12097 lt_cv_prog_compiler_c_o=yes
12102 # SGI C++ compiler will create directory out/ii_files/ for
12103 # template instantiation
12104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12105 $RM out/* && rmdir out
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12120 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12121 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12124 lt_cv_prog_compiler_c_o=no
12125 $RM -r conftest 2>/dev/null
12129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12131 lt_compiler_flag="-o out/conftest2.$ac_objext"
12132 # Insert the option either (1) after the last *FLAGS variable, or
12133 # (2) before a word containing "conftest.", or (3) at the end.
12134 # Note that $ac_compile itself does not contain backslashes and begins
12135 # with a dollar sign (not a hyphen), so the echo should work correctly.
12136 lt_compile=`echo "$ac_compile" | $SED \
12137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12139 -e 's:$: $lt_compiler_flag:'`
12140 (eval echo "\"\$as_me:12140: $lt_compile\"" >&5)
12141 (eval "$lt_compile" 2>out/conftest.err)
12143 cat out/conftest.err >&5
12144 echo "$as_me:12144: \$? = $ac_status" >&5
12145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12147 # The compiler can only warn and ignore the option if not recognized
12148 # So say no if there are warnings
12149 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12152 lt_cv_prog_compiler_c_o=yes
12157 # SGI C++ compiler will create directory out/ii_files/ for
12158 # template instantiation
12159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12160 $RM out/* && rmdir out
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12167 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12172 hard_links="nottested"
12173 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12174 # do not overwrite the value of need_locks provided by the user
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12176 $as_echo_n "checking if we can lock with hard links... " >&6; }
12179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12181 ln conftest.a conftest.b 2>&5 || hard_links=no
12182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12184 $as_echo "$hard_links" >&6; }
12185 if test "$hard_links" = no; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12187 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12203 allow_undefined_flag=
12204 always_export_symbols=no
12206 archive_expsym_cmds=
12207 compiler_needs_object=no
12208 enable_shared_with_static_runtimes=no
12209 export_dynamic_flag_spec=
12210 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12211 hardcode_automatic=no
12213 hardcode_direct_absolute=no
12214 hardcode_libdir_flag_spec=
12215 hardcode_libdir_flag_spec_ld=
12216 hardcode_libdir_separator=
12217 hardcode_minus_L=no
12218 hardcode_shlibpath_var=unsupported
12220 link_all_deplibs=unknown
12222 module_expsym_cmds=
12223 old_archive_from_new_cmds=
12224 old_archive_from_expsyms_cmds=
12225 thread_safe_flag_spec=
12226 whole_archive_flag_spec=
12227 # include_expsyms should be a list of space-separated symbols to be *always*
12228 # included in the symbol list
12230 # exclude_expsyms can be an extended regexp of symbols to exclude
12231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12233 # as well as any symbol that contains `d'.
12234 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12236 # platforms (ab)use it in PIC code, but their linkers get confused if
12237 # the symbol is explicitly referenced. Since portable code cannot
12238 # rely on this symbol name, it's probably fine to never include it in
12239 # preloaded symbol tables.
12240 # Exclude shared library initialization/finalization symbols.
12241 extract_expsyms_cmds=
12244 cygwin* | mingw* | pw32* | cegcc*)
12245 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12246 # When not using gcc, we currently assume that we are using
12247 # Microsoft Visual C++.
12248 if test "$GCC" != yes; then
12253 # we just hope/assume this is gcc and not c89 (= MSVC++)
12262 if test "$with_gnu_ld" = yes; then
12263 # If archive_cmds runs LD, not CC, wlarc should be empty
12266 # Set some defaults for GNU ld with shared library support. These
12267 # are reset later if shared libraries are not supported. Putting them
12268 # here allows them to be overridden if necessary.
12269 runpath_var=LD_RUN_PATH
12270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12271 export_dynamic_flag_spec='${wl}--export-dynamic'
12272 # ancient GNU ld didn't support --whole-archive et. al.
12273 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12274 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12276 whole_archive_flag_spec=
12278 supports_anon_versioning=no
12279 case `$LD -v 2>&1` in
12280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12283 *\ 2.11.*) ;; # other 2.11 versions
12284 *) supports_anon_versioning=yes ;;
12287 # See if GNU ld supports shared libraries.
12290 # On AIX/PPC, the GNU linker is very broken
12291 if test "$host_cpu" != ia64; then
12295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12296 *** to be unable to reliably create shared libraries on AIX.
12297 *** Therefore, libtool is disabling shared libraries support. If you
12298 *** really care for shared libraries, you may want to modify your PATH
12299 *** so that a non-GNU linker is found, and then restart.
12308 # see comment about AmigaOS4 .so support
12309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12310 archive_expsym_cmds=''
12313 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12314 hardcode_libdir_flag_spec='-L$libdir'
12315 hardcode_minus_L=yes
12321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12322 allow_undefined_flag=unsupported
12323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12324 # support --undefined. This deserves some investigation. FIXME
12325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331 cygwin* | mingw* | pw32* | cegcc*)
12332 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12333 # as there is no search path for DLLs.
12334 hardcode_libdir_flag_spec='-L$libdir'
12335 allow_undefined_flag=unsupported
12336 always_export_symbols=no
12337 enable_shared_with_static_runtimes=yes
12338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12340 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12342 # If the export-symbols file already is a .def file (1st line
12343 # is EXPORTS), use it as is; otherwise, prepend...
12344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12345 cp $export_symbols $output_objdir/$soname.def;
12347 echo EXPORTS > $output_objdir/$soname.def;
12348 cat $export_symbols >> $output_objdir/$soname.def;
12350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12358 hardcode_shlibpath_var=no
12359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12360 export_dynamic_flag_spec='${wl}-E'
12361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12362 # Instead, shared libraries are loaded at an image base (0x10000000 by
12363 # default) and relocated if they conflict, which is a slow very memory
12364 # consuming and fragmenting process. To avoid this, we pick a random,
12365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12367 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12368 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12371 gnu* | linux* | tpf* | k*bsd*-gnu)
12373 if test "$host_os" = linux-dietlibc; then
12374 case $cc_basename in
12375 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12378 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12379 && test "$tmp_diet" = no
12382 tmp_sharedflag='-shared'
12383 case $cc_basename,$host_cpu in
12384 pgcc*) # Portland Group C compiler
12385 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12386 tmp_addflag=' $pic_flag'
12388 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12389 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12390 tmp_addflag=' $pic_flag -Mnomain' ;;
12391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12392 tmp_addflag=' -i_dynamic' ;;
12393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12394 tmp_addflag=' -i_dynamic -nofor_main' ;;
12395 ifc* | ifort*) # Intel Fortran compiler
12396 tmp_addflag=' -nofor_main' ;;
12397 lf95*) # Lahey Fortran 8.1
12398 whole_archive_flag_spec=
12399 tmp_sharedflag='--shared' ;;
12400 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12401 tmp_sharedflag='-qmkshrobj'
12404 case `$CC -V 2>&1 | sed 5q` in
12405 *Sun\ C*) # Sun C 5.9
12406 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12407 compiler_needs_object=yes
12408 tmp_sharedflag='-G' ;;
12409 *Sun\ F*) # Sun Fortran 8.3
12410 tmp_sharedflag='-G' ;;
12412 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12414 if test "x$supports_anon_versioning" = xyes; then
12415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12417 echo "local: *; };" >> $output_objdir/$libname.ver~
12418 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12421 case $cc_basename in
12423 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12424 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12425 hardcode_libdir_flag_spec=
12426 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12427 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12428 if test "x$supports_anon_versioning" = xyes; then
12429 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12431 echo "local: *; };" >> $output_objdir/$libname.ver~
12432 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12443 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12457 *** create shared libraries on Solaris systems. Therefore, libtool
12458 *** is disabling shared libraries support. We urge you to upgrade GNU
12459 *** binutils to release 2.9.1 or newer. Another option is to modify
12460 *** your PATH or compiler configuration so that the native linker is
12461 *** used, and then restart.
12464 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12473 case `$LD -v 2>&1` in
12474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12479 *** reliably create shared libraries on SCO systems. Therefore, libtool
12480 *** is disabling shared libraries support. We urge you to upgrade GNU
12481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12482 *** your PATH or compiler configuration so that the native linker is
12483 *** used, and then restart.
12488 # For security reasons, it is highly recommended that you always
12489 # use absolute paths for naming shared libraries, and exclude the
12490 # DT_RUNPATH tag from executables and libraries. But doing so
12491 # requires that you compile everything twice, which is a pain.
12492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12506 hardcode_direct=yes
12507 hardcode_shlibpath_var=no
12511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12520 if test "$ld_shlibs" = no; then
12522 hardcode_libdir_flag_spec=
12523 export_dynamic_flag_spec=
12524 whole_archive_flag_spec=
12527 # PORTME fill in a description of your system's linker (not GNU ld)
12530 allow_undefined_flag=unsupported
12531 always_export_symbols=yes
12532 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12533 # Note: this linker hardcodes the directories in LIBPATH if there
12534 # are no directories specified by -L.
12535 hardcode_minus_L=yes
12536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12537 # Neither direct hardcoding nor static linking is supported with a
12539 hardcode_direct=unsupported
12544 if test "$host_cpu" = ia64; then
12545 # On IA64, the linker does run time linking by default, so we don't
12546 # have to do anything special.
12547 aix_use_runtimelinking=no
12548 exp_sym_flag='-Bexport'
12551 # If we're using GNU nm, then we don't want the "-C" option.
12552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12553 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12554 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12556 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12558 aix_use_runtimelinking=no
12560 # Test if we are trying to use run time linking or normal
12561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12562 # need to do runtime linking.
12563 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12564 for ld_flag in $LDFLAGS; do
12565 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12566 aix_use_runtimelinking=yes
12573 exp_sym_flag='-bexport'
12574 no_entry_flag='-bnoentry'
12577 # When large executables or shared objects are built, AIX ld can
12578 # have problems creating the table of contents. If linking a library
12579 # or program results in "error TOC overflow" add -mminimal-toc to
12580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12584 hardcode_direct=yes
12585 hardcode_direct_absolute=yes
12586 hardcode_libdir_separator=':'
12587 link_all_deplibs=yes
12588 file_list_spec='${wl}-f,'
12590 if test "$GCC" = yes; then
12591 case $host_os in aix4.[012]|aix4.[012].*)
12592 # We only want to do this on AIX 4.2 and lower, the check
12593 # below for broken collect2 doesn't work under 4.3+
12594 collect2name=`${CC} -print-prog-name=collect2`
12595 if test -f "$collect2name" &&
12596 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12598 # We have reworked collect2
12601 # We have old collect2
12602 hardcode_direct=unsupported
12603 # It fails to find uninstalled libraries when the uninstalled
12604 # path is not listed in the libpath. Setting hardcode_minus_L
12605 # to unsupported forces relinking
12606 hardcode_minus_L=yes
12607 hardcode_libdir_flag_spec='-L$libdir'
12608 hardcode_libdir_separator=
12612 shared_flag='-shared'
12613 if test "$aix_use_runtimelinking" = yes; then
12614 shared_flag="$shared_flag "'${wl}-G'
12618 if test "$host_cpu" = ia64; then
12619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12620 # chokes on -Wl,-G. The following line is correct:
12623 if test "$aix_use_runtimelinking" = yes; then
12624 shared_flag='${wl}-G'
12626 shared_flag='${wl}-bM:SRE'
12631 export_dynamic_flag_spec='${wl}-bexpall'
12632 # It seems that -bexpall does not export symbols beginning with
12633 # underscore (_), so it is better to generate a list of symbols to export.
12634 always_export_symbols=yes
12635 if test "$aix_use_runtimelinking" = yes; then
12636 # Warning - without using the other runtime loading flags (-brtl),
12637 # -berok will link without error, but may produce a broken library.
12638 allow_undefined_flag='-berok'
12639 # Determine the default libpath from the value encoded in an
12640 # empty executable.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12652 if ac_fn_c_try_link "$LINENO"; then :
12654 lt_aix_libpath_sed='
12655 /Import File Strings/,/^$/ {
12661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12662 # Check for a 64-bit object if we didn't find anything.
12663 if test -z "$aix_libpath"; then
12664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12672 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12674 if test "$host_cpu" = ia64; then
12675 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12676 allow_undefined_flag="-z nodefs"
12677 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12679 # Determine the default libpath from the value encoded in an
12680 # empty executable.
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12692 if ac_fn_c_try_link "$LINENO"; then :
12694 lt_aix_libpath_sed='
12695 /Import File Strings/,/^$/ {
12701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12702 # Check for a 64-bit object if we didn't find anything.
12703 if test -z "$aix_libpath"; then
12704 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12711 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12712 # Warning - without using the other run time loading flags,
12713 # -berok will link without error, but may produce a broken library.
12714 no_undefined_flag=' ${wl}-bernotok'
12715 allow_undefined_flag=' ${wl}-berok'
12716 # Exported symbols can be pulled into shared objects from archives
12717 whole_archive_flag_spec='$convenience'
12718 archive_cmds_need_lc=yes
12719 # This is similar to how AIX traditionally builds its shared libraries.
12720 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12728 # see comment about AmigaOS4 .so support
12729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12730 archive_expsym_cmds=''
12733 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12734 hardcode_libdir_flag_spec='-L$libdir'
12735 hardcode_minus_L=yes
12741 export_dynamic_flag_spec=-rdynamic
12744 cygwin* | mingw* | pw32* | cegcc*)
12745 # When not using gcc, we currently assume that we are using
12746 # Microsoft Visual C++.
12747 # hardcode_libdir_flag_spec is actually meaningless, as there is
12748 # no search path for DLLs.
12749 hardcode_libdir_flag_spec=' '
12750 allow_undefined_flag=unsupported
12751 # Tell ltmain to make .lib files, not .a files.
12753 # Tell ltmain to make .dll files, not .so files.
12755 # FIXME: Setting linknames here is a bad hack.
12756 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12757 # The linker will automatically build a .lib file if we build a DLL.
12758 old_archive_from_new_cmds='true'
12759 # FIXME: Should let the user specify the lib program.
12760 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12761 fix_srcfile_path='`cygpath -w "$srcfile"`'
12762 enable_shared_with_static_runtimes=yes
12765 darwin* | rhapsody*)
12768 archive_cmds_need_lc=no
12770 hardcode_automatic=yes
12771 hardcode_shlibpath_var=unsupported
12772 whole_archive_flag_spec=''
12773 link_all_deplibs=yes
12774 allow_undefined_flag="$_lt_dar_allow_undefined"
12775 case $cc_basename in
12776 ifort*) _lt_dar_can_shared=yes ;;
12777 *) _lt_dar_can_shared=$GCC ;;
12779 if test "$_lt_dar_can_shared" = "yes"; then
12780 output_verbose_link_cmd=echo
12781 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12782 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12783 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12784 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12794 hardcode_libdir_flag_spec='-L$libdir'
12795 hardcode_shlibpath_var=no
12802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12803 # support. Future versions do this automatically, but an explicit c++rt0.o
12804 # does not break anything, and helps significantly (at the cost of a little
12807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12808 hardcode_libdir_flag_spec='-R$libdir'
12809 hardcode_direct=yes
12810 hardcode_shlibpath_var=no
12813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12816 hardcode_direct=yes
12817 hardcode_minus_L=yes
12818 hardcode_shlibpath_var=no
12821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12822 freebsd* | dragonfly*)
12823 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12824 hardcode_libdir_flag_spec='-R$libdir'
12825 hardcode_direct=yes
12826 hardcode_shlibpath_var=no
12830 if test "$GCC" = yes; then
12831 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12833 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12836 hardcode_libdir_separator=:
12837 hardcode_direct=yes
12839 # hardcode_minus_L: Not really in the search PATH,
12840 # but as the default location of the library.
12841 hardcode_minus_L=yes
12842 export_dynamic_flag_spec='${wl}-E'
12846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12849 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12851 if test "$with_gnu_ld" = no; then
12852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12853 hardcode_libdir_flag_spec_ld='+b $libdir'
12854 hardcode_libdir_separator=:
12855 hardcode_direct=yes
12856 hardcode_direct_absolute=yes
12857 export_dynamic_flag_spec='${wl}-E'
12858 # hardcode_minus_L: Not really in the search PATH,
12859 # but as the default location of the library.
12860 hardcode_minus_L=yes
12865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12868 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12874 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12880 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12890 if test "$with_gnu_ld" = no; then
12891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12892 hardcode_libdir_separator=:
12897 hardcode_shlibpath_var=no
12900 hardcode_direct=yes
12901 hardcode_direct_absolute=yes
12902 export_dynamic_flag_spec='${wl}-E'
12904 # hardcode_minus_L: Not really in the search PATH,
12905 # but as the default location of the library.
12906 hardcode_minus_L=yes
12912 irix5* | irix6* | nonstopux*)
12913 if test "$GCC" = yes; then
12914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12915 # Try to use the -exported_symbol ld option, if it does not
12916 # work, assume that -exports_file does not work either and
12917 # implicitly export all symbols.
12918 save_LDFLAGS="$LDFLAGS"
12919 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LDFLAGS="$save_LDFLAGS"
12932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12935 archive_cmds_need_lc='no'
12936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12937 hardcode_libdir_separator=:
12939 link_all_deplibs=yes
12943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12948 hardcode_libdir_flag_spec='-R$libdir'
12949 hardcode_direct=yes
12950 hardcode_shlibpath_var=no
12954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12955 hardcode_direct=yes
12956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12957 hardcode_libdir_separator=:
12958 hardcode_shlibpath_var=no
12965 if test -f /usr/libexec/ld.so; then
12966 hardcode_direct=yes
12967 hardcode_shlibpath_var=no
12968 hardcode_direct_absolute=yes
12969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12973 export_dynamic_flag_spec='${wl}-E'
12976 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12978 hardcode_libdir_flag_spec='-R$libdir'
12981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12992 hardcode_libdir_flag_spec='-L$libdir'
12993 hardcode_minus_L=yes
12994 allow_undefined_flag=unsupported
12995 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12996 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13000 if test "$GCC" = yes; then
13001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13002 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13004 allow_undefined_flag=' -expect_unresolved \*'
13005 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13007 archive_cmds_need_lc='no'
13008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13009 hardcode_libdir_separator=:
13012 osf4* | osf5*) # as osf3* with the addition of -msym flag
13013 if test "$GCC" = yes; then
13014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13015 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13018 allow_undefined_flag=' -expect_unresolved \*'
13019 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13020 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13021 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13023 # Both c and cxx compiler support -rpath directly
13024 hardcode_libdir_flag_spec='-rpath $libdir'
13026 archive_cmds_need_lc='no'
13027 hardcode_libdir_separator=:
13031 no_undefined_flag=' -z defs'
13032 if test "$GCC" = yes; then
13034 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13036 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13038 case `$CC -V 2>&1` in
13041 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13043 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13047 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13049 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13053 hardcode_libdir_flag_spec='-R$libdir'
13054 hardcode_shlibpath_var=no
13056 solaris2.[0-5] | solaris2.[0-5].*) ;;
13058 # The compiler driver will combine and reorder linker options,
13059 # but understands `-z linker_flag'. GCC discards it without `$wl',
13060 # but is careful enough not to reorder.
13061 # Supported since Solaris 2.6 (maybe 2.5.1?)
13062 if test "$GCC" = yes; then
13063 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13065 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13069 link_all_deplibs=yes
13073 if test "x$host_vendor" = xsequent; then
13074 # Use $CC to link under sequent, because it throws in some extra .o
13075 # files that make .init and .fini sections work.
13076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13080 hardcode_libdir_flag_spec='-L$libdir'
13081 hardcode_direct=yes
13082 hardcode_minus_L=yes
13083 hardcode_shlibpath_var=no
13087 case $host_vendor in
13089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13090 hardcode_direct=yes # is this really true???
13093 ## LD is ld it makes a PLAMLIB
13094 ## CC just makes a GrossModule.
13095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13096 reload_cmds='$CC -r -o $output$reload_objs'
13100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13104 runpath_var='LD_RUN_PATH'
13105 hardcode_shlibpath_var=no
13109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110 hardcode_shlibpath_var=no
13111 export_dynamic_flag_spec='-Bexport'
13115 if test -d /usr/nec; then
13116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13117 hardcode_shlibpath_var=no
13118 runpath_var=LD_RUN_PATH
13119 hardcode_runpath_var=yes
13124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13125 no_undefined_flag='${wl}-z,text'
13126 archive_cmds_need_lc=no
13127 hardcode_shlibpath_var=no
13128 runpath_var='LD_RUN_PATH'
13130 if test "$GCC" = yes; then
13131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 sysv5* | sco3.2v5* | sco5v6*)
13140 # Note: We can NOT use -z defs as we might desire, because we do not
13141 # link with -lc, and that would cause any symbols used from libc to
13142 # always be unresolved, which means just about no library would
13143 # ever link correctly. If we're not using GNU ld we use -z text
13144 # though, which does catch some bad symbols but isn't as heavy-handed
13146 no_undefined_flag='${wl}-z,text'
13147 allow_undefined_flag='${wl}-z,nodefs'
13148 archive_cmds_need_lc=no
13149 hardcode_shlibpath_var=no
13150 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13151 hardcode_libdir_separator=':'
13152 link_all_deplibs=yes
13153 export_dynamic_flag_spec='${wl}-Bexport'
13154 runpath_var='LD_RUN_PATH'
13156 if test "$GCC" = yes; then
13157 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13160 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13167 hardcode_libdir_flag_spec='-L$libdir'
13168 hardcode_shlibpath_var=no
13176 if test x$host_vendor = xsni; then
13178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13179 export_dynamic_flag_spec='${wl}-Blargedynsym'
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13186 $as_echo "$ld_shlibs" >&6; }
13187 test "$ld_shlibs" = no && can_build_shared=no
13189 with_gnu_ld=$with_gnu_ld
13206 # Do we need to explicitly link libc?
13208 case "x$archive_cmds_need_lc" in
13210 # Assume -lc should be added
13211 archive_cmds_need_lc=yes
13213 if test "$enable_shared" = yes && test "$GCC" = yes; then
13214 case $archive_cmds in
13216 # FIXME: we may have to deal with multi-command sequences.
13219 # Test whether the compiler implicitly links with -lc since on some
13220 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13221 # to ld, don't add -lc before -lgcc.
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13223 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13228 (eval $ac_compile) 2>&5
13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 test $ac_status = 0; } 2>conftest.err; then
13234 libobjs=conftest.$ac_objext
13236 wl=$lt_prog_compiler_wl
13237 pic_flag=$lt_prog_compiler_pic
13243 lt_save_allow_undefined_flag=$allow_undefined_flag
13244 allow_undefined_flag=
13245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13246 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }
13251 archive_cmds_need_lc=no
13253 archive_cmds_need_lc=yes
13255 allow_undefined_flag=$lt_save_allow_undefined_flag
13257 cat conftest.err 1>&5
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13261 $as_echo "$archive_cmds_need_lc" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13425 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13427 if test "$GCC" = yes; then
13429 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13430 *) lt_awk_arg="/^libraries:/" ;;
13432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13433 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13434 # if the path contains ";" then we assume it to be the separator
13435 # otherwise default to the standard path separator (i.e. ":") - it is
13436 # assumed that no part of a normal pathname contains ";" but that should
13437 # okay in the real world where ";" in dirpaths is itself problematic.
13438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13442 # Ok, now we have the path, separated by spaces, we can step through it
13443 # and add multilib dir if necessary.
13444 lt_tmp_lt_search_path_spec=
13445 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13446 for lt_sys_path in $lt_search_path_spec; do
13447 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13450 test -d "$lt_sys_path" && \
13451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13454 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13455 BEGIN {RS=" "; FS="/|\n";} {
13458 for (lt_i = NF; lt_i > 0; lt_i--) {
13459 if ($lt_i != "" && $lt_i != ".") {
13460 if ($lt_i == "..") {
13463 if (lt_count == 0) {
13464 lt_foo="/" $lt_i lt_foo;
13471 if (lt_foo != "") { lt_freq[lt_foo]++; }
13472 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13474 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13476 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13478 library_names_spec=
13479 libname_spec='lib$name'
13483 postuninstall_cmds=
13487 shlibpath_overrides_runpath=unknown
13489 dynamic_linker="$host_os ld.so"
13490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13491 need_lib_prefix=unknown
13492 hardcode_into_libs=no
13494 # when you set need_version to no, make sure it does not cause -set_version
13495 # flags to be left without arguments
13496 need_version=unknown
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13502 shlibpath_var=LIBPATH
13504 # AIX 3 has no versioning support, so we append a major version to the name.
13505 soname_spec='${libname}${release}${shared_ext}$major'
13512 hardcode_into_libs=yes
13513 if test "$host_cpu" = ia64; then
13514 # AIX 5 supports IA64
13515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13516 shlibpath_var=LD_LIBRARY_PATH
13518 # With GCC up to 2.95.x, collect2 would create an import file
13519 # for dependence libraries. The import file would start with
13520 # the line `#! .'. This would cause the generated library to
13521 # depend on `.', always an invalid library. This was fixed in
13522 # development snapshots of GCC prior to 3.0.
13524 aix4 | aix4.[01] | aix4.[01].*)
13525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13527 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13530 can_build_shared=no
13534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13535 # soname into executable. Probably we can add versioning support to
13536 # collect2, so additional links can be useful in future.
13537 if test "$aix_use_runtimelinking" = yes; then
13538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13539 # instead of lib<name>.a to let people know that these are not
13540 # typical AIX shared libraries.
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 # We preserve .a as extension for shared libraries through AIX4.2
13544 # and later when we are not doing run time linking.
13545 library_names_spec='${libname}${release}.a $libname.a'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13548 shlibpath_var=LIBPATH
13555 # Since July 2007 AmigaOS4 officially supports .so libraries.
13556 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560 library_names_spec='$libname.ixlibrary $libname.a'
13561 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13562 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13568 library_names_spec='${libname}${shared_ext}'
13569 dynamic_linker="$host_os ld.so"
13570 shlibpath_var=LIBRARY_PATH
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13582 # the default ld.so.conf also contains /usr/contrib/lib and
13583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13584 # libtool to hard-code these into programs
13587 cygwin* | mingw* | pw32* | cegcc*)
13588 version_type=windows
13593 case $GCC,$host_os in
13594 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13595 library_names_spec='$libname.dll.a'
13596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13597 postinstall_cmds='base_file=`basename \${file}`~
13598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13599 dldir=$destdir/`dirname \$dlpath`~
13600 test -d \$dldir || mkdir -p \$dldir~
13601 $install_prog $dir/$dlname \$dldir/$dlname~
13602 chmod a+x \$dldir/$dlname~
13603 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13604 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13607 dlpath=$dir/\$dldll~
13609 shlibpath_overrides_runpath=yes
13613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13618 # MinGW DLLs use traditional 'lib' prefix
13619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13621 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13622 # It is most probably a Windows format PATH printed by
13623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13624 # path with ; separators, and with drive letters. We can handle the
13625 # drive letters (cygwin fileutils understands them), so leave them,
13626 # especially as we might pass files found there to a mingw objdump,
13627 # which wouldn't understand a cygwinified path. Ahh.
13628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13634 # pw32 DLLs use 'pw' prefix rather than 'lib'
13635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13644 dynamic_linker='Win32 ld.exe'
13645 # FIXME: first we should search . and the directory the executable is in
13649 darwin* | rhapsody*)
13650 dynamic_linker="$host_os dyld"
13651 version_type=darwin
13654 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13655 soname_spec='${libname}${release}${major}$shared_ext'
13656 shlibpath_overrides_runpath=yes
13657 shlibpath_var=DYLD_LIBRARY_PATH
13658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13660 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13669 soname_spec='${libname}${release}${shared_ext}$major'
13670 shlibpath_var=LD_LIBRARY_PATH
13677 freebsd* | dragonfly*)
13678 # DragonFly does not have aout. When/if they implement a new
13679 # versioning mechanism, adjust this.
13680 if test -x /usr/bin/objformat; then
13681 objformat=`/usr/bin/objformat`
13684 freebsd[123]*) objformat=aout ;;
13685 *) objformat=elf ;;
13688 version_type=freebsd-$objformat
13689 case $version_type in
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13700 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=yes
13705 freebsd3.[01]* | freebsdelf3.[01]*)
13706 shlibpath_overrides_runpath=yes
13707 hardcode_into_libs=yes
13709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13711 shlibpath_overrides_runpath=no
13712 hardcode_into_libs=yes
13714 *) # from 4.6 on, and DragonFly
13715 shlibpath_overrides_runpath=yes
13716 hardcode_into_libs=yes
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 hardcode_into_libs=yes
13731 hpux9* | hpux10* | hpux11*)
13732 # Give a soname corresponding to the major version so that dld.sl refuses to
13733 # link against other versions.
13740 hardcode_into_libs=yes
13741 dynamic_linker="$host_os dld.so"
13742 shlibpath_var=LD_LIBRARY_PATH
13743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 if test "X$HPUX_IA64_MODE" = X32; then
13747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13755 hardcode_into_libs=yes
13756 dynamic_linker="$host_os dld.sl"
13757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13766 dynamic_linker="$host_os dld.sl"
13767 shlibpath_var=SHLIB_PATH
13768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770 soname_spec='${libname}${release}${shared_ext}$major'
13773 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13774 postinstall_cmds='chmod 555 $lib'
13775 # or fails outright, so override atomically:
13776 install_override_mode=555
13783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13784 soname_spec='${libname}${release}${shared_ext}$major'
13785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13786 shlibpath_var=LD_LIBRARY_PATH
13787 shlibpath_overrides_runpath=no
13788 hardcode_into_libs=yes
13791 irix5* | irix6* | nonstopux*)
13793 nonstopux*) version_type=nonstopux ;;
13795 if test "$lt_cv_prog_gnu_ld" = yes; then
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13806 irix5* | nonstopux*)
13807 libsuff= shlibsuff=
13810 case $LD in # libtool.m4 will add one of these switches to LD
13811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13812 libsuff= shlibsuff= libmagic=32-bit;;
13813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13814 libsuff=32 shlibsuff=N32 libmagic=N32;;
13815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13817 *) libsuff= shlibsuff= libmagic=never-match;;
13821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13822 shlibpath_overrides_runpath=no
13823 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13824 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13825 hardcode_into_libs=yes
13828 # No shared lib support for Linux oldld, aout, or coff.
13829 linux*oldld* | linux*aout* | linux*coff*)
13833 # This must be Linux ELF.
13834 linux* | k*bsd*-gnu)
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 soname_spec='${libname}${release}${shared_ext}$major'
13840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13841 shlibpath_var=LD_LIBRARY_PATH
13842 shlibpath_overrides_runpath=no
13843 # Some binutils ld are patched to set DT_RUNPATH
13844 save_LDFLAGS=$LDFLAGS
13845 save_libdir=$libdir
13846 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13847 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13861 shlibpath_overrides_runpath=yes
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LDFLAGS=$save_LDFLAGS
13867 libdir=$save_libdir
13869 # This implies no fast_install, which is unacceptable.
13870 # Some rework will be needed to allow for fast_install
13871 # before this can be enabled.
13872 hardcode_into_libs=yes
13874 # Append ld.so.conf contents to the search path
13875 if test -f /etc/ld.so.conf; then
13876 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13880 # We used to test for /lib/ld.so.1 and disable shared libraries on
13881 # powerpc, because MkLinux only supported shared libraries with the
13882 # GNU dynamic linker. Since this was broken with cross compilers,
13883 # most powerpc-linux boxes support dynamic linking these days and
13884 # people can always --disable-shared, the test was removed, and we
13885 # assume the GNU/Linux dynamic linker is in use.
13886 dynamic_linker='GNU/Linux ld.so'
13893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13896 dynamic_linker='NetBSD (a.out) ld.so'
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 dynamic_linker='NetBSD ld.elf_so'
13902 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes
13904 hardcode_into_libs=yes
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919 soname_spec='${libname}${release}${shared_ext}$major'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 shlibpath_overrides_runpath=no
13922 hardcode_into_libs=yes
13923 dynamic_linker='ldqnx.so'
13928 sys_lib_dlsearch_path_spec="/usr/lib"
13930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13932 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13933 *) need_version=no ;;
13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13940 openbsd2.[89] | openbsd2.[89].*)
13941 shlibpath_overrides_runpath=no
13944 shlibpath_overrides_runpath=yes
13948 shlibpath_overrides_runpath=yes
13953 libname_spec='$name'
13956 library_names_spec='$libname${shared_ext} $libname.a'
13957 dynamic_linker='OS/2 ld.exe'
13958 shlibpath_var=LIBPATH
13961 osf3* | osf4* | osf5*)
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=yes
13984 hardcode_into_libs=yes
13985 # ldd complains unless libraries are executable
13986 postinstall_cmds='chmod +x $lib'
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13993 shlibpath_var=LD_LIBRARY_PATH
13994 shlibpath_overrides_runpath=yes
13995 if test "$with_gnu_ld" = yes; then
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 case $host_vendor in
14008 shlibpath_overrides_runpath=no
14010 runpath_var=LD_RUN_PATH
14018 shlibpath_overrides_runpath=no
14019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14025 if test -d /usr/nec ;then
14027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14028 soname_spec='$libname${shared_ext}.$major'
14029 shlibpath_var=LD_LIBRARY_PATH
14033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14034 version_type=freebsd-elf
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=yes
14041 hardcode_into_libs=yes
14042 if test "$with_gnu_ld" = yes; then
14043 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14048 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14052 sys_lib_dlsearch_path_spec='/usr/lib'
14056 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 shlibpath_overrides_runpath=no
14063 hardcode_into_libs=yes
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 shlibpath_var=LD_LIBRARY_PATH
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14078 $as_echo "$dynamic_linker" >&6; }
14079 test "$dynamic_linker" = no && can_build_shared=no
14081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14082 if test "$GCC" = yes; then
14083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14086 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14087 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14089 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14090 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14187 if test -n "$hardcode_libdir_flag_spec" ||
14188 test -n "$runpath_var" ||
14189 test "X$hardcode_automatic" = "Xyes" ; then
14191 # We can hardcode non-existent directories.
14192 if test "$hardcode_direct" != no &&
14193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14194 # have to relink, otherwise we might link with an installed library
14195 # when we should be linking with a yet-to-be-installed one
14196 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14197 test "$hardcode_minus_L" != no; then
14198 # Linking always hardcodes the temporary library directory.
14199 hardcode_action=relink
14201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14202 hardcode_action=immediate
14205 # We cannot hardcode anything, or else we can only hardcode existing
14207 hardcode_action=unsupported
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14210 $as_echo "$hardcode_action" >&6; }
14212 if test "$hardcode_action" = relink ||
14213 test "$inherit_rpath" = yes; then
14214 # Fast installation is not supported
14215 enable_fast_install=no
14216 elif test "$shlibpath_overrides_runpath" = yes ||
14217 test "$enable_shared" = no; then
14218 # Fast installation is not necessary
14219 enable_fast_install=needless
14227 if test "x$enable_dlopen" != xyes; then
14228 enable_dlopen=unknown
14229 enable_dlopen_self=unknown
14230 enable_dlopen_self_static=unknown
14237 lt_cv_dlopen="load_add_on"
14239 lt_cv_dlopen_self=yes
14242 mingw* | pw32* | cegcc*)
14243 lt_cv_dlopen="LoadLibrary"
14248 lt_cv_dlopen="dlopen"
14253 # if libdl is installed we need to link against it
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14255 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14259 ac_check_lib_save_LIBS=$LIBS
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14279 if ac_fn_c_try_link "$LINENO"; then :
14280 ac_cv_lib_dl_dlopen=yes
14282 ac_cv_lib_dl_dlopen=no
14284 rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14286 LIBS=$ac_check_lib_save_LIBS
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14290 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14294 lt_cv_dlopen="dyld"
14296 lt_cv_dlopen_self=yes
14303 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14304 if test "x$ac_cv_func_shl_load" = x""yes; then :
14305 lt_cv_dlopen="shl_load"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14308 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14312 ac_check_lib_save_LIBS=$LIBS
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14327 return shl_load ();
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 ac_cv_lib_dld_shl_load=yes
14335 ac_cv_lib_dld_shl_load=no
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14342 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14343 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14344 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14346 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14347 if test "x$ac_cv_func_dlopen" = x""yes; then :
14348 lt_cv_dlopen="dlopen"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14355 ac_check_lib_save_LIBS=$LIBS
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14375 if ac_fn_c_try_link "$LINENO"; then :
14376 ac_cv_lib_dl_dlopen=yes
14378 ac_cv_lib_dl_dlopen=no
14380 rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14386 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14390 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14394 ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-lsvld $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14414 if ac_fn_c_try_link "$LINENO"; then :
14415 ac_cv_lib_svld_dlopen=yes
14417 ac_cv_lib_svld_dlopen=no
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14424 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14425 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14430 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14433 ac_check_lib_save_LIBS=$LIBS
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14448 return dld_link ();
14453 if ac_fn_c_try_link "$LINENO"; then :
14454 ac_cv_lib_dld_dld_link=yes
14456 ac_cv_lib_dld_dld_link=no
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14464 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14465 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14486 if test "x$lt_cv_dlopen" != xno; then
14492 case $lt_cv_dlopen in
14494 save_CPPFLAGS="$CPPFLAGS"
14495 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14497 save_LDFLAGS="$LDFLAGS"
14498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14501 LIBS="$lt_cv_dlopen_libs $LIBS"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14504 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14505 if test "${lt_cv_dlopen_self+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14508 if test "$cross_compiling" = yes; then :
14509 lt_cv_dlopen_self=cross
14511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14512 lt_status=$lt_dlunknown
14513 cat > conftest.$ac_ext <<_LT_EOF
14514 #line 14514 "configure"
14515 #include "confdefs.h"
14524 # define LT_DLGLOBAL RTLD_GLOBAL
14527 # define LT_DLGLOBAL DL_GLOBAL
14529 # define LT_DLGLOBAL 0
14533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14534 find out it does not work in some platform. */
14535 #ifndef LT_DLLAZY_OR_NOW
14537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14540 # define LT_DLLAZY_OR_NOW DL_LAZY
14543 # define LT_DLLAZY_OR_NOW RTLD_NOW
14546 # define LT_DLLAZY_OR_NOW DL_NOW
14548 # define LT_DLLAZY_OR_NOW 0
14555 void fnord() { int i=42;}
14558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14559 int status = $lt_dlunknown;
14563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14565 /* dlclose (self); */
14573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14574 (eval $ac_link) 2>&5
14576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14578 (./conftest; exit; ) >&5 2>/dev/null
14580 case x$lt_status in
14581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14583 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14586 # compilation failed
14587 lt_cv_dlopen_self=no
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14595 $as_echo "$lt_cv_dlopen_self" >&6; }
14597 if test "x$lt_cv_dlopen_self" = xyes; then
14598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14600 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14601 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14604 if test "$cross_compiling" = yes; then :
14605 lt_cv_dlopen_self_static=cross
14607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14608 lt_status=$lt_dlunknown
14609 cat > conftest.$ac_ext <<_LT_EOF
14610 #line 14610 "configure"
14611 #include "confdefs.h"
14620 # define LT_DLGLOBAL RTLD_GLOBAL
14623 # define LT_DLGLOBAL DL_GLOBAL
14625 # define LT_DLGLOBAL 0
14629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14630 find out it does not work in some platform. */
14631 #ifndef LT_DLLAZY_OR_NOW
14633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14636 # define LT_DLLAZY_OR_NOW DL_LAZY
14639 # define LT_DLLAZY_OR_NOW RTLD_NOW
14642 # define LT_DLLAZY_OR_NOW DL_NOW
14644 # define LT_DLLAZY_OR_NOW 0
14651 void fnord() { int i=42;}
14654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14655 int status = $lt_dlunknown;
14659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14660 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14661 /* dlclose (self); */
14669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14670 (eval $ac_link) 2>&5
14672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14674 (./conftest; exit; ) >&5 2>/dev/null
14676 case x$lt_status in
14677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14682 # compilation failed
14683 lt_cv_dlopen_self_static=no
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14694 CPPFLAGS="$save_CPPFLAGS"
14695 LDFLAGS="$save_LDFLAGS"
14700 case $lt_cv_dlopen_self in
14701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14702 *) enable_dlopen_self=unknown ;;
14705 case $lt_cv_dlopen_self_static in
14706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14707 *) enable_dlopen_self_static=unknown ;;
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14731 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735 $as_echo "yes" >&6; }
14737 # FIXME - insert some real tests, host_os isn't really good enough
14740 if test -n "$STRIP" ; then
14741 striplib="$STRIP -x"
14742 old_striplib="$STRIP -S"
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14744 $as_echo "yes" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14768 # Report which library types will actually be built
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14772 $as_echo "$can_build_shared" >&6; }
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14775 $as_echo_n "checking whether to build shared libraries... " >&6; }
14776 test "$can_build_shared" = "no" && enable_shared=no
14778 # On AIX, shared libraries and static libraries use the same namespace, and
14779 # are all built from PIC.
14782 test "$enable_shared" = yes && enable_static=no
14783 if test -n "$RANLIB"; then
14784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14785 postinstall_cmds='$RANLIB $lib'
14790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14791 test "$enable_shared" = yes && enable_static=no
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14796 $as_echo "$enable_shared" >&6; }
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14799 $as_echo_n "checking whether to build static libraries... " >&6; }
14800 # Make sure either enable_shared or enable_static is yes.
14801 test "$enable_shared" = yes || enable_static=yes
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14803 $as_echo "$enable_static" >&6; }
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14829 ac_config_commands="$ac_config_commands libtool"
14834 # Only expand once:
14838 if test -n "$ac_tool_prefix"; then
14839 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14840 set dummy ${ac_tool_prefix}windres; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if test "${ac_cv_prog_RC+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14846 if test -n "$RC"; then
14847 ac_cv_prog_RC="$RC" # Let the user override the test.
14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14850 for as_dir in $PATH
14853 test -z "$as_dir" && as_dir=.
14854 for ac_exec_ext in '' $ac_executable_extensions; do
14855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14856 ac_cv_prog_RC="${ac_tool_prefix}windres"
14857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14867 if test -n "$RC"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14869 $as_echo "$RC" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14877 if test -z "$ac_cv_prog_RC"; then
14879 # Extract the first word of "windres", so it can be a program name with args.
14880 set dummy windres; ac_word=$2
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14882 $as_echo_n "checking for $ac_word... " >&6; }
14883 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14886 if test -n "$ac_ct_RC"; then
14887 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890 for as_dir in $PATH
14893 test -z "$as_dir" && as_dir=.
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14896 ac_cv_prog_ac_ct_RC="windres"
14897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14906 ac_ct_RC=$ac_cv_prog_ac_ct_RC
14907 if test -n "$ac_ct_RC"; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14909 $as_echo "$ac_ct_RC" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 $as_echo "no" >&6; }
14915 if test "x$ac_ct_RC" = x; then
14918 case $cross_compiling:$ac_tool_warned in
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14922 ac_tool_warned=yes ;;
14927 RC="$ac_cv_prog_RC"
14933 # Source file extension for RC test sources.
14936 # Object file extension for compiled RC test sources.
14940 # Code to be used in simple compile tests
14941 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14943 # Code to be used in simple link tests
14944 lt_simple_link_test_code="$lt_simple_compile_test_code"
14946 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14953 # If no C compiler was specified, use CC.
14956 # If no C compiler flags were specified, use CFLAGS.
14957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14959 # Allow CC to be a program name with arguments.
14963 # save warnings/boilerplate of simple test code
14964 ac_outfile=conftest.$ac_objext
14965 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14966 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14967 _lt_compiler_boilerplate=`cat conftest.err`
14970 ac_outfile=conftest.$ac_objext
14971 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14972 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14973 _lt_linker_boilerplate=`cat conftest.err`
14977 # Allow CC to be a program name with arguments.
14984 for cc_temp in $compiler""; do
14986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14992 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14994 lt_cv_prog_compiler_c_o_RC=yes
14996 if test -n "$compiler"; then
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15014 # On Cygwin, without -no-undefined, a warning is emitted and only a static
15015 # library is built.
15016 beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
15022 mingw* | cygwin*) is_woe32=yes ;;
15025 if test $is_woe32 = yes; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15037 $as_echo_n "checking whether NLS is requested... " >&6; }
15038 # Check whether --enable-nls was given.
15039 if test "${enable_nls+set}" = set; then :
15040 enableval=$enable_nls; USE_NLS=$enableval
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15046 $as_echo "$USE_NLS" >&6; }
15051 GETTEXT_MACRO_VERSION=0.18
15056 # Prepare PATH_SEPARATOR.
15057 # The user is always right.
15058 if test "${PATH_SEPARATOR+set}" != set; then
15059 echo "#! /bin/sh" >conf$$.sh
15060 echo "exit 0" >>conf$$.sh
15062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15070 # Find out how to test for executable files. Don't use a zero-byte file,
15071 # as systems may use methods other than mode bits to determine executability.
15072 cat >conf$$.file <<_ASEOF
15076 chmod +x conf$$.file
15077 if test -x conf$$.file >/dev/null 2>&1; then
15078 ac_executable_p="test -x"
15080 ac_executable_p="test -f"
15084 # Extract the first word of "msgfmt", so it can be a program name with args.
15085 set dummy msgfmt; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15087 $as_echo_n "checking for $ac_word... " >&6; }
15088 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15093 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15097 for ac_dir in $PATH; do
15099 test -z "$ac_dir" && ac_dir=.
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15102 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15103 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15104 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15105 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15112 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15116 MSGFMT="$ac_cv_path_MSGFMT"
15117 if test "$MSGFMT" != ":"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15119 $as_echo "$MSGFMT" >&6; }
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15125 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15126 set dummy gmsgfmt; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128 $as_echo_n "checking for $ac_word... " >&6; }
15129 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15130 $as_echo_n "(cached) " >&6
15134 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138 for as_dir in $PATH
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15144 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15152 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15156 GMSGFMT=$ac_cv_path_GMSGFMT
15157 if test -n "$GMSGFMT"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15159 $as_echo "$GMSGFMT" >&6; }
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162 $as_echo "no" >&6; }
15167 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15168 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15169 *) MSGFMT_015=$MSGFMT ;;
15172 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15173 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15174 *) GMSGFMT_015=$GMSGFMT ;;
15179 # Prepare PATH_SEPARATOR.
15180 # The user is always right.
15181 if test "${PATH_SEPARATOR+set}" != set; then
15182 echo "#! /bin/sh" >conf$$.sh
15183 echo "exit 0" >>conf$$.sh
15185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15193 # Find out how to test for executable files. Don't use a zero-byte file,
15194 # as systems may use methods other than mode bits to determine executability.
15195 cat >conf$$.file <<_ASEOF
15199 chmod +x conf$$.file
15200 if test -x conf$$.file >/dev/null 2>&1; then
15201 ac_executable_p="test -x"
15203 ac_executable_p="test -f"
15207 # Extract the first word of "xgettext", so it can be a program name with args.
15208 set dummy xgettext; ac_word=$2
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15210 $as_echo_n "checking for $ac_word... " >&6; }
15211 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15214 case "$XGETTEXT" in
15216 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15219 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15220 for ac_dir in $PATH; do
15222 test -z "$ac_dir" && ac_dir=.
15223 for ac_exec_ext in '' $ac_executable_extensions; do
15224 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15225 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15226 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15227 (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
15228 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15235 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15239 XGETTEXT="$ac_cv_path_XGETTEXT"
15240 if test "$XGETTEXT" != ":"; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15242 $as_echo "$XGETTEXT" >&6; }
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15250 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15251 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15252 *) XGETTEXT_015=$XGETTEXT ;;
15257 # Prepare PATH_SEPARATOR.
15258 # The user is always right.
15259 if test "${PATH_SEPARATOR+set}" != set; then
15260 echo "#! /bin/sh" >conf$$.sh
15261 echo "exit 0" >>conf$$.sh
15263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15271 # Find out how to test for executable files. Don't use a zero-byte file,
15272 # as systems may use methods other than mode bits to determine executability.
15273 cat >conf$$.file <<_ASEOF
15277 chmod +x conf$$.file
15278 if test -x conf$$.file >/dev/null 2>&1; then
15279 ac_executable_p="test -x"
15281 ac_executable_p="test -f"
15285 # Extract the first word of "msgmerge", so it can be a program name with args.
15286 set dummy msgmerge; ac_word=$2
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288 $as_echo_n "checking for $ac_word... " >&6; }
15289 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15292 case "$MSGMERGE" in
15294 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15298 for ac_dir in $PATH; do
15300 test -z "$ac_dir" && ac_dir=.
15301 for ac_exec_ext in '' $ac_executable_extensions; do
15302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15303 echo "$as_me: trying $ac_dir/$ac_word..." >&5
15304 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15305 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15312 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15316 MSGMERGE="$ac_cv_path_MSGMERGE"
15317 if test "$MSGMERGE" != ":"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15319 $as_echo "$MSGMERGE" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15326 test -n "$localedir" || localedir='${datadir}/locale'
15329 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15332 ac_config_commands="$ac_config_commands po-directories"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15337 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15338 if test "${ac_cv_gnu_library_2+set}" = set; then :
15339 $as_echo_n "(cached) " >&6
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15344 #include <features.h>
15345 #ifdef __GNU_LIBRARY__
15346 #if (__GLIBC__ >= 2)
15352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15353 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15354 ac_cv_gnu_library_2=yes
15356 ac_cv_gnu_library_2=no
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15364 $as_echo "$ac_cv_gnu_library_2" >&6; }
15366 GLIBC2="$ac_cv_gnu_library_2"
15373 if test -n "$GCC"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15375 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15376 if test "${gl_cv_cc_vis_werror+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15380 gl_save_CFLAGS="$CFLAGS"
15381 CFLAGS="$CFLAGS -Werror"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15393 if ac_fn_c_try_compile "$LINENO"; then :
15394 gl_cv_cc_vis_werror=yes
15396 gl_cv_cc_vis_werror=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 CFLAGS="$gl_save_CFLAGS"
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15403 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15405 $as_echo_n "checking for simple visibility declarations... " >&6; }
15406 if test "${gl_cv_cc_visibility+set}" = set; then :
15407 $as_echo_n "(cached) " >&6
15410 gl_save_CFLAGS="$CFLAGS"
15411 CFLAGS="$CFLAGS -fvisibility=hidden"
15412 if test $gl_cv_cc_vis_werror = yes; then
15413 CFLAGS="$CFLAGS -Werror"
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15418 extern __attribute__((__visibility__("default"))) int exportedvar;
15419 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15420 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15421 void dummyfunc (void) {}
15430 if ac_fn_c_try_compile "$LINENO"; then :
15431 gl_cv_cc_visibility=yes
15433 gl_cv_cc_visibility=no
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436 CFLAGS="$gl_save_CFLAGS"
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15440 $as_echo "$gl_cv_cc_visibility" >&6; }
15441 if test $gl_cv_cc_visibility = yes; then
15442 CFLAG_VISIBILITY="-fvisibility=hidden"
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15455 $as_echo_n "checking for inline... " >&6; }
15456 if test "${ac_cv_c_inline+set}" = set; then :
15457 $as_echo_n "(cached) " >&6
15460 for ac_kw in inline __inline__ __inline; do
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463 #ifndef __cplusplus
15465 static $ac_kw foo_t static_foo () {return 0; }
15466 $ac_kw foo_t foo () {return 0; }
15470 if ac_fn_c_try_compile "$LINENO"; then :
15471 ac_cv_c_inline=$ac_kw
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 test "$ac_cv_c_inline" != no && break
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15479 $as_echo "$ac_cv_c_inline" >&6; }
15481 case $ac_cv_c_inline in
15484 case $ac_cv_c_inline in
15486 *) ac_val=$ac_cv_c_inline;;
15488 cat >>confdefs.h <<_ACEOF
15489 #ifndef __cplusplus
15490 #define inline $ac_val
15496 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15497 if test "x$ac_cv_type_size_t" = x""yes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define size_t unsigned int
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15509 $as_echo_n "checking for stdint.h... " >&6; }
15510 if test "${gl_cv_header_stdint_h+set}" = set; then :
15511 $as_echo_n "(cached) " >&6
15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15515 #include <sys/types.h>
15516 #include <stdint.h>
15520 uintmax_t i = (uintmax_t) -1; return !i;
15525 if ac_fn_c_try_compile "$LINENO"; then :
15526 gl_cv_header_stdint_h=yes
15528 gl_cv_header_stdint_h=no
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15533 $as_echo "$gl_cv_header_stdint_h" >&6; }
15534 if test $gl_cv_header_stdint_h = yes; then
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STDINT_H_WITH_UINTMAX 1
15542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15543 # for constant arguments. Useless!
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15545 $as_echo_n "checking for working alloca.h... " >&6; }
15546 if test "${ac_cv_working_alloca_h+set}" = set; then :
15547 $as_echo_n "(cached) " >&6
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 #include <alloca.h>
15555 char *p = (char *) alloca (2 * sizeof (int));
15561 if ac_fn_c_try_link "$LINENO"; then :
15562 ac_cv_working_alloca_h=yes
15564 ac_cv_working_alloca_h=no
15566 rm -f core conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15570 $as_echo "$ac_cv_working_alloca_h" >&6; }
15571 if test $ac_cv_working_alloca_h = yes; then
15573 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15578 $as_echo_n "checking for alloca... " >&6; }
15579 if test "${ac_cv_func_alloca_works+set}" = set; then :
15580 $as_echo_n "(cached) " >&6
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15585 # define alloca __builtin_alloca
15588 # include <malloc.h>
15589 # define alloca _alloca
15591 # ifdef HAVE_ALLOCA_H
15592 # include <alloca.h>
15597 # ifndef alloca /* predefined by HP cc +Olibcalls */
15608 char *p = (char *) alloca (1);
15614 if ac_fn_c_try_link "$LINENO"; then :
15615 ac_cv_func_alloca_works=yes
15617 ac_cv_func_alloca_works=no
15619 rm -f core conftest.err conftest.$ac_objext \
15620 conftest$ac_exeext conftest.$ac_ext
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15623 $as_echo "$ac_cv_func_alloca_works" >&6; }
15625 if test $ac_cv_func_alloca_works = yes; then
15627 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15630 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15631 # that cause trouble. Some versions do not even contain alloca or
15632 # contain a buggy version. If you still want to use their alloca,
15633 # use ar to extract alloca.o from them instead of compiling alloca.c.
15635 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15637 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15641 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15642 if test "${ac_cv_os_cray+set}" = set; then :
15643 $as_echo_n "(cached) " >&6
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #if defined CRAY && ! defined CRAY2
15654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15655 $EGREP "webecray" >/dev/null 2>&1; then :
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15664 $as_echo "$ac_cv_os_cray" >&6; }
15665 if test $ac_cv_os_cray = yes; then
15666 for ac_func in _getb67 GETB67 getb67; do
15667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15669 eval as_val=\$$as_ac_var
15670 if test "x$as_val" = x""yes; then :
15672 cat >>confdefs.h <<_ACEOF
15673 #define CRAY_STACKSEG_END $ac_func
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15683 $as_echo_n "checking stack direction for C alloca... " >&6; }
15684 if test "${ac_cv_c_stack_direction+set}" = set; then :
15685 $as_echo_n "(cached) " >&6
15687 if test "$cross_compiling" = yes; then :
15688 ac_cv_c_stack_direction=0
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15692 $ac_includes_default
15694 find_stack_direction ()
15696 static char *addr = 0;
15701 return find_stack_direction ();
15704 return (&dummy > addr) ? 1 : -1;
15710 return find_stack_direction () < 0;
15713 if ac_fn_c_try_run "$LINENO"; then :
15714 ac_cv_c_stack_direction=1
15716 ac_cv_c_stack_direction=-1
15718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15719 conftest.$ac_objext conftest.beam conftest.$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15724 $as_echo "$ac_cv_c_stack_direction" >&6; }
15725 cat >>confdefs.h <<_ACEOF
15726 #define STACK_DIRECTION $ac_cv_c_stack_direction
15736 for ac_header in $gl_header_list
15738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15740 eval as_val=\$$as_ac_Header
15741 if test "x$as_val" = x""yes; then :
15742 cat >>confdefs.h <<_ACEOF
15743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15777 for ac_func in getpagesize
15779 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15780 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_GETPAGESIZE 1
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15789 $as_echo_n "checking for working mmap... " >&6; }
15790 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15791 $as_echo_n "(cached) " >&6
15793 if test "$cross_compiling" = yes; then :
15794 ac_cv_func_mmap_fixed_mapped=no
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 $ac_includes_default
15799 /* malloc might have been renamed as rpl_malloc. */
15802 /* Thanks to Mike Haertel and Jim Avera for this test.
15803 Here is a matrix of mmap possibilities:
15804 mmap private not fixed
15805 mmap private fixed at somewhere currently unmapped
15806 mmap private fixed at somewhere already mapped
15807 mmap shared not fixed
15808 mmap shared fixed at somewhere currently unmapped
15809 mmap shared fixed at somewhere already mapped
15810 For private mappings, we should verify that changes cannot be read()
15811 back from the file, nor mmap's back from the file at a different
15812 address. (There have been systems where private was not correctly
15813 implemented like the infamous i386 svr4.0, and systems where the
15814 VM page cache was not coherent with the file system buffer cache
15815 like early versions of FreeBSD and possibly contemporary NetBSD.)
15816 For shared mappings, we should conversely verify that changes get
15817 propagated back to all the places they're supposed to be.
15819 Grep wants private fixed already mapped.
15820 The main things grep needs to know about mmap are:
15821 * does it exist and is it safe to write into the mmap'd area
15822 * how to use it (BSD variants) */
15825 #include <sys/mman.h>
15827 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15831 /* This mess was copied from the GNU getpagesize.h. */
15832 #ifndef HAVE_GETPAGESIZE
15833 # ifdef _SC_PAGESIZE
15834 # define getpagesize() sysconf(_SC_PAGESIZE)
15835 # else /* no _SC_PAGESIZE */
15836 # ifdef HAVE_SYS_PARAM_H
15837 # include <sys/param.h>
15838 # ifdef EXEC_PAGESIZE
15839 # define getpagesize() EXEC_PAGESIZE
15840 # else /* no EXEC_PAGESIZE */
15842 # define getpagesize() NBPG * CLSIZE
15845 # endif /* no CLSIZE */
15846 # else /* no NBPG */
15848 # define getpagesize() NBPC
15849 # else /* no NBPC */
15851 # define getpagesize() PAGESIZE
15852 # endif /* PAGESIZE */
15853 # endif /* no NBPC */
15854 # endif /* no NBPG */
15855 # endif /* no EXEC_PAGESIZE */
15856 # else /* no HAVE_SYS_PARAM_H */
15857 # define getpagesize() 8192 /* punt totally */
15858 # endif /* no HAVE_SYS_PARAM_H */
15859 # endif /* no _SC_PAGESIZE */
15861 #endif /* no HAVE_GETPAGESIZE */
15866 char *data, *data2, *data3;
15870 pagesize = getpagesize ();
15872 /* First, make a file with some known garbage in it. */
15873 data = (char *) malloc (pagesize);
15876 for (i = 0; i < pagesize; ++i)
15877 *(data + i) = rand ();
15879 fd = creat ("conftest.mmap", 0600);
15882 if (write (fd, data, pagesize) != pagesize)
15886 /* Next, check that the tail of a page is zero-filled. File must have
15887 non-zero length, otherwise we risk SIGBUS for entire page. */
15888 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15892 if (write (fd2, data2, 1) != 1)
15894 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15895 if (data2 == MAP_FAILED)
15897 for (i = 0; i < pagesize; ++i)
15901 if (munmap (data2, pagesize))
15904 /* Next, try to mmap the file at a fixed address which already has
15905 something else allocated at it. If we can, also make sure that
15906 we see the same garbage. */
15907 fd = open ("conftest.mmap", O_RDWR);
15910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15913 for (i = 0; i < pagesize; ++i)
15914 if (*(data + i) != *(data2 + i))
15917 /* Finally, make sure that changes to the mapped area do not
15918 percolate back to the file as seen by read(). (This is a bug on
15919 some variants of i386 svr4.0.) */
15920 for (i = 0; i < pagesize; ++i)
15921 *(data2 + i) = *(data2 + i) + 1;
15922 data3 = (char *) malloc (pagesize);
15925 if (read (fd, data3, pagesize) != pagesize)
15927 for (i = 0; i < pagesize; ++i)
15928 if (*(data + i) != *(data3 + i))
15934 if ac_fn_c_try_run "$LINENO"; then :
15935 ac_cv_func_mmap_fixed_mapped=yes
15937 ac_cv_func_mmap_fixed_mapped=no
15939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15940 conftest.$ac_objext conftest.beam conftest.$ac_ext
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15945 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15946 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15948 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15951 rm -f conftest.mmap conftest.txt
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
15956 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
15957 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
15958 $as_echo_n "(cached) " >&6
15961 gt_cv_int_divbyzero_sigfpe=
15963 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15964 # On MacOS X 10.2 or newer, just assume the same as when cross-
15965 # compiling. If we were to perform the real test, 1 Crash Report
15966 # dialog window would pop up.
15967 case "$host_cpu" in
15968 i[34567]86 | x86_64)
15969 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
15973 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
15974 if test "$cross_compiling" = yes; then :
15976 # Guess based on the CPU.
15977 case "$host_cpu" in
15978 alpha* | i[34567]86 | x86_64 | m68k | s390*)
15979 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15981 gt_cv_int_divbyzero_sigfpe="guessing no";;
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15988 #include <stdlib.h>
15989 #include <signal.h>
15992 sigfpe_handler (int sig)
15994 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
15995 exit (sig != SIGFPE);
16005 signal (SIGFPE, sigfpe_handler);
16006 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
16007 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16008 signal (SIGTRAP, sigfpe_handler);
16010 /* Linux/SPARC yields signal SIGILL. */
16011 #if defined (__sparc__) && defined (__linux__)
16012 signal (SIGILL, sigfpe_handler);
16021 if ac_fn_c_try_run "$LINENO"; then :
16022 gt_cv_int_divbyzero_sigfpe=yes
16024 gt_cv_int_divbyzero_sigfpe=no
16026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16027 conftest.$ac_objext conftest.beam conftest.$ac_ext
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16034 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16035 case "$gt_cv_int_divbyzero_sigfpe" in
16040 cat >>confdefs.h <<_ACEOF
16041 #define INTDIV0_RAISES_SIGFPE $value
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16047 $as_echo_n "checking for inttypes.h... " >&6; }
16048 if test "${gl_cv_header_inttypes_h+set}" = set; then :
16049 $as_echo_n "(cached) " >&6
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <sys/types.h>
16054 #include <inttypes.h>
16058 uintmax_t i = (uintmax_t) -1; return !i;
16063 if ac_fn_c_try_compile "$LINENO"; then :
16064 gl_cv_header_inttypes_h=yes
16066 gl_cv_header_inttypes_h=no
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16071 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16072 if test $gl_cv_header_inttypes_h = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16082 $as_echo_n "checking for unsigned long long int... " >&6; }
16083 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16084 $as_echo_n "(cached) " >&6
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16089 /* For now, do not test the preprocessor; as of 2007 there are too many
16090 implementations with broken preprocessors. Perhaps this can
16091 be revisited in 2012. In the meantime, code should not expect
16092 #if to work with literals wider than 32 bits. */
16093 /* Test literals. */
16094 long long int ll = 9223372036854775807ll;
16095 long long int nll = -9223372036854775807LL;
16096 unsigned long long int ull = 18446744073709551615ULL;
16097 /* Test constant expressions. */
16098 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16100 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16106 /* Test availability of runtime routines for shift and division. */
16107 long long int llmax = 9223372036854775807ll;
16108 unsigned long long int ullmax = 18446744073709551615ull;
16109 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16110 | (llmax / ll) | (llmax % ll)
16111 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16112 | (ullmax / ull) | (ullmax % ull));
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_type_unsigned_long_long_int=yes
16121 ac_cv_type_unsigned_long_long_int=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16127 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16128 if test $ac_cv_type_unsigned_long_long_int = yes; then
16130 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16137 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16139 test $ac_cv_type_unsigned_long_long_int = yes \
16140 && ac_type='unsigned long long' \
16141 || ac_type='unsigned long'
16143 cat >>confdefs.h <<_ACEOF
16144 #define uintmax_t $ac_type
16149 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16154 for ac_header in inttypes.h
16156 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
16158 cat >>confdefs.h <<_ACEOF
16159 #define HAVE_INTTYPES_H 1
16166 if test $ac_cv_header_inttypes_h = yes; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16168 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16169 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175 #include <inttypes.h>
16188 if ac_fn_c_try_compile "$LINENO"; then :
16189 gt_cv_inttypes_pri_broken=no
16191 gt_cv_inttypes_pri_broken=yes
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16197 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16199 if test "$gt_cv_inttypes_pri_broken" = yes; then
16201 cat >>confdefs.h <<_ACEOF
16202 #define PRI_MACROS_BROKEN 1
16205 PRI_MACROS_BROKEN=1
16207 PRI_MACROS_BROKEN=0
16212 if test "X$prefix" = "XNONE"; then
16213 acl_final_prefix="$ac_default_prefix"
16215 acl_final_prefix="$prefix"
16217 if test "X$exec_prefix" = "XNONE"; then
16218 acl_final_exec_prefix='${prefix}'
16220 acl_final_exec_prefix="$exec_prefix"
16222 acl_save_prefix="$prefix"
16223 prefix="$acl_final_prefix"
16224 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16225 prefix="$acl_save_prefix"
16228 # Check whether --with-gnu-ld was given.
16229 if test "${with_gnu_ld+set}" = set; then :
16230 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16235 # Prepare PATH_SEPARATOR.
16236 # The user is always right.
16237 if test "${PATH_SEPARATOR+set}" != set; then
16238 echo "#! /bin/sh" >conf$$.sh
16239 echo "exit 0" >>conf$$.sh
16241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16249 if test "$GCC" = yes; then
16250 # Check if gcc -print-prog-name=ld gives a path.
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16252 $as_echo_n "checking for ld used by GCC... " >&6; }
16255 # gcc leaves a trailing carriage return which upsets mingw
16256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16261 # Accept absolute paths.
16262 [\\/]* | [A-Za-z]:[\\/]*)
16263 re_direlt='/[^/][^/]*/\.\./'
16264 # Canonicalize the path of ld
16265 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16266 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16267 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16269 test -z "$LD" && LD="$ac_prog"
16272 # If it fails, then pretend we aren't using GCC.
16276 # If it is relative, then search for the first ld in PATH.
16277 with_gnu_ld=unknown
16280 elif test "$with_gnu_ld" = yes; then
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16282 $as_echo_n "checking for GNU ld... " >&6; }
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16285 $as_echo_n "checking for non-GNU ld... " >&6; }
16287 if test "${acl_cv_path_LD+set}" = set; then :
16288 $as_echo_n "(cached) " >&6
16290 if test -z "$LD"; then
16291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16292 for ac_dir in $PATH; do
16293 test -z "$ac_dir" && ac_dir=.
16294 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16295 acl_cv_path_LD="$ac_dir/$ac_prog"
16296 # Check to see if the program is GNU ld. I'd rather use --version,
16297 # but apparently some GNU ld's only accept -v.
16298 # Break only if it was the GNU/non-GNU ld that we prefer.
16299 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16300 *GNU* | *'with BFD'*)
16301 test "$with_gnu_ld" != no && break ;;
16303 test "$with_gnu_ld" != yes && break ;;
16309 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16313 LD="$acl_cv_path_LD"
16314 if test -n "$LD"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16316 $as_echo "$LD" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 $as_echo "no" >&6; }
16321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16324 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16325 $as_echo_n "(cached) " >&6
16327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16328 case `$LD -v 2>&1 </dev/null` in
16329 *GNU* | *'with BFD'*)
16330 acl_cv_prog_gnu_ld=yes ;;
16332 acl_cv_prog_gnu_ld=no ;;
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16336 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16337 with_gnu_ld=$acl_cv_prog_gnu_ld
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16343 $as_echo_n "checking for shared library run path origin... " >&6; }
16344 if test "${acl_cv_rpath+set}" = set; then :
16345 $as_echo_n "(cached) " >&6
16348 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16351 rm -f ./conftest.sh
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16356 $as_echo "$acl_cv_rpath" >&6; }
16358 acl_libext="$acl_cv_libext"
16359 acl_shlibext="$acl_cv_shlibext"
16360 acl_libname_spec="$acl_cv_libname_spec"
16361 acl_library_names_spec="$acl_cv_library_names_spec"
16362 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16363 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16364 acl_hardcode_direct="$acl_cv_hardcode_direct"
16365 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16366 # Check whether --enable-rpath was given.
16367 if test "${enable_rpath+set}" = set; then :
16368 enableval=$enable_rpath; :
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16381 $as_echo_n "checking for 64-bit host... " >&6; }
16382 if test "${gl_cv_solaris_64bit+set}" = set; then :
16383 $as_echo_n "(cached) " >&6
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16394 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16395 gl_cv_solaris_64bit=yes
16397 gl_cv_solaris_64bit=no
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16404 $as_echo "$gl_cv_solaris_64bit" >&6; }
16405 if test $gl_cv_solaris_64bit = yes; then
16406 acl_libdirstem=lib/64
16407 case "$host_cpu" in
16408 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16409 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16414 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16415 if test -n "$searchpath"; then
16416 acl_save_IFS="${IFS= }"; IFS=":"
16417 for searchdir in $searchpath; do
16418 if test -d "$searchdir"; then
16419 case "$searchdir" in
16420 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16422 # Better ignore directories of this form. They are misleading.
16424 *) searchdir=`cd "$searchdir" && pwd`
16425 case "$searchdir" in
16426 */lib64 ) acl_libdirstem=lib64 ;;
16431 IFS="$acl_save_IFS"
16435 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16439 gl_threads_api=none
16444 if test "$gl_use_threads" != no; then
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16446 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16447 if test "${gl_cv_have_weak+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 extern void xyzzy ();
16463 if ac_fn_c_try_link "$LINENO"; then :
16464 gl_cv_have_weak=maybe
16466 rm -f core conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
16468 if test $gl_cv_have_weak = maybe; then
16469 if test "$cross_compiling" = yes; then :
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16473 Extensible Linking Format
16477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16478 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16479 gl_cv_have_weak="guessing yes"
16481 gl_cv_have_weak="guessing no"
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16494 return (fputs == NULL);
16497 if ac_fn_c_try_run "$LINENO"; then :
16498 gl_cv_have_weak=yes
16502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16503 conftest.$ac_objext conftest.beam conftest.$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16510 $as_echo "$gl_cv_have_weak" >&6; }
16511 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16512 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16513 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16514 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16515 if test "x$ac_cv_header_pthread_h" = x""yes; then :
16516 gl_have_pthread_h=yes
16518 gl_have_pthread_h=no
16522 if test "$gl_have_pthread_h" = yes; then
16523 # Other possible tests:
16524 # -lpthreads (FSU threads, PCthreads)
16527 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16528 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16529 # the second one only in libpthread, and lock.c needs it.
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532 #include <pthread.h>
16536 pthread_mutex_lock((pthread_mutex_t*)0);
16537 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16542 if ac_fn_c_try_link "$LINENO"; then :
16543 gl_have_pthread=yes
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16548 # since it is defined as a macro on OSF/1.)
16549 if test -n "$gl_have_pthread"; then
16550 # The program links fine without libpthread. But it may actually
16551 # need to link with libpthread in order to create multiple threads.
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16553 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16554 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16557 ac_check_lib_save_LIBS=$LIBS
16558 LIBS="-lpthread $LIBS"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16568 char pthread_kill ();
16572 return pthread_kill ();
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 ac_cv_lib_pthread_pthread_kill=yes
16580 ac_cv_lib_pthread_pthread_kill=no
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16587 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16588 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
16589 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16590 # On Solaris and HP-UX, most pthread functions exist also in libc.
16591 # Therefore pthread_in_use() needs to actually try to create a
16592 # thread: pthread_create from libc will fail, whereas
16593 # pthread_create will actually create a thread.
16597 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16604 # Some library is needed. Try libpthread and libc_r.
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16606 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16607 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
16608 $as_echo_n "(cached) " >&6
16610 ac_check_lib_save_LIBS=$LIBS
16611 LIBS="-lpthread $LIBS"
16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613 /* end confdefs.h. */
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16621 char pthread_kill ();
16625 return pthread_kill ();
16630 if ac_fn_c_try_link "$LINENO"; then :
16631 ac_cv_lib_pthread_pthread_kill=yes
16633 ac_cv_lib_pthread_pthread_kill=no
16635 rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637 LIBS=$ac_check_lib_save_LIBS
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16640 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16641 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
16642 gl_have_pthread=yes
16643 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16644 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16647 if test -z "$gl_have_pthread"; then
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16650 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16651 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
16652 $as_echo_n "(cached) " >&6
16654 ac_check_lib_save_LIBS=$LIBS
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16659 /* Override any GCC internal prototype to avoid an error.
16660 Use char because int might match the return type of a GCC
16661 builtin and then its argument prototype would still apply. */
16665 char pthread_kill ();
16669 return pthread_kill ();
16674 if ac_fn_c_try_link "$LINENO"; then :
16675 ac_cv_lib_c_r_pthread_kill=yes
16677 ac_cv_lib_c_r_pthread_kill=no
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16684 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16685 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
16686 gl_have_pthread=yes
16687 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16688 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16693 if test -n "$gl_have_pthread"; then
16694 gl_threads_api=posix
16696 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16698 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16699 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16701 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16710 if test -z "$gl_have_pthread"; then
16711 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16712 gl_have_solaristhread=
16713 gl_save_LIBS="$LIBS"
16714 LIBS="$LIBS -lthread"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717 #include <thread.h>
16727 if ac_fn_c_try_link "$LINENO"; then :
16728 gl_have_solaristhread=yes
16730 rm -f core conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16732 LIBS="$gl_save_LIBS"
16733 if test -n "$gl_have_solaristhread"; then
16734 gl_threads_api=solaris
16736 LTLIBTHREAD=-lthread
16737 LIBMULTITHREAD="$LIBTHREAD"
16738 LTLIBMULTITHREAD="$LTLIBTHREAD"
16740 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16742 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16744 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16752 if test "$gl_use_threads" = pth; then
16753 gl_save_CPPFLAGS="$CPPFLAGS"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16760 $as_echo_n "checking how to link with libpth... " >&6; }
16761 if test "${ac_cv_libpth_libs+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16774 acl_save_prefix="$prefix"
16775 prefix="$acl_final_prefix"
16776 acl_save_exec_prefix="$exec_prefix"
16777 exec_prefix="$acl_final_exec_prefix"
16779 eval additional_includedir=\"$includedir\"
16780 eval additional_libdir=\"$libdir\"
16782 exec_prefix="$acl_save_exec_prefix"
16783 prefix="$acl_save_prefix"
16786 # Check whether --with-libpth-prefix was given.
16787 if test "${with_libpth_prefix+set}" = set; then :
16788 withval=$with_libpth_prefix;
16789 if test "X$withval" = "Xno"; then
16792 if test "X$withval" = "X"; then
16794 acl_save_prefix="$prefix"
16795 prefix="$acl_final_prefix"
16796 acl_save_exec_prefix="$exec_prefix"
16797 exec_prefix="$acl_final_exec_prefix"
16799 eval additional_includedir=\"$includedir\"
16800 eval additional_libdir=\"$libdir\"
16802 exec_prefix="$acl_save_exec_prefix"
16803 prefix="$acl_save_prefix"
16806 additional_includedir="$withval/include"
16807 additional_libdir="$withval/$acl_libdirstem"
16808 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16809 && ! test -d "$withval/$acl_libdirstem"; then
16810 additional_libdir="$withval/$acl_libdirstem2"
16824 names_already_handled=
16825 names_next_round='pth '
16826 while test -n "$names_next_round"; do
16827 names_this_round="$names_next_round"
16829 for name in $names_this_round; do
16831 for n in $names_already_handled; do
16832 if test "$n" = "$name"; then
16833 already_handled=yes
16837 if test -z "$already_handled"; then
16838 names_already_handled="$names_already_handled $name"
16839 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16840 eval value=\"\$HAVE_LIB$uppername\"
16841 if test -n "$value"; then
16842 if test "$value" = yes; then
16843 eval value=\"\$LIB$uppername\"
16844 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16845 eval value=\"\$LTLIB$uppername\"
16846 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16855 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16856 if test -n "$acl_shlibext"; then
16857 shrext=".$acl_shlibext" # typically: shrext=.so
16861 if test $use_additional = yes; then
16862 dir="$additional_libdir"
16863 if test -n "$acl_shlibext"; then
16864 if test -f "$dir/$libname$shrext"; then
16866 found_so="$dir/$libname$shrext"
16868 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16869 ver=`(cd "$dir" && \
16870 for f in "$libname$shrext".*; do echo "$f"; done \
16871 | sed -e "s,^$libname$shrext\\\\.,," \
16872 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16873 | sed 1q ) 2>/dev/null`
16874 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16876 found_so="$dir/$libname$shrext.$ver"
16879 eval library_names=\"$acl_library_names_spec\"
16880 for f in $library_names; do
16881 if test -f "$dir/$f"; then
16890 if test "X$found_dir" = "X"; then
16891 if test -f "$dir/$libname.$acl_libext"; then
16893 found_a="$dir/$libname.$acl_libext"
16896 if test "X$found_dir" != "X"; then
16897 if test -f "$dir/$libname.la"; then
16898 found_la="$dir/$libname.la"
16902 if test "X$found_dir" = "X"; then
16903 for x in $LDFLAGS $LTLIBPTH; do
16905 acl_save_prefix="$prefix"
16906 prefix="$acl_final_prefix"
16907 acl_save_exec_prefix="$exec_prefix"
16908 exec_prefix="$acl_final_exec_prefix"
16910 exec_prefix="$acl_save_exec_prefix"
16911 prefix="$acl_save_prefix"
16915 dir=`echo "X$x" | sed -e 's/^X-L//'`
16916 if test -n "$acl_shlibext"; then
16917 if test -f "$dir/$libname$shrext"; then
16919 found_so="$dir/$libname$shrext"
16921 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16922 ver=`(cd "$dir" && \
16923 for f in "$libname$shrext".*; do echo "$f"; done \
16924 | sed -e "s,^$libname$shrext\\\\.,," \
16925 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16926 | sed 1q ) 2>/dev/null`
16927 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16929 found_so="$dir/$libname$shrext.$ver"
16932 eval library_names=\"$acl_library_names_spec\"
16933 for f in $library_names; do
16934 if test -f "$dir/$f"; then
16943 if test "X$found_dir" = "X"; then
16944 if test -f "$dir/$libname.$acl_libext"; then
16946 found_a="$dir/$libname.$acl_libext"
16949 if test "X$found_dir" != "X"; then
16950 if test -f "$dir/$libname.la"; then
16951 found_la="$dir/$libname.la"
16956 if test "X$found_dir" != "X"; then
16961 if test "X$found_dir" != "X"; then
16962 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16963 if test "X$found_so" != "X"; then
16964 if test "$enable_rpath" = no \
16965 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16966 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16967 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16970 for x in $ltrpathdirs; do
16971 if test "X$x" = "X$found_dir"; then
16976 if test -z "$haveit"; then
16977 ltrpathdirs="$ltrpathdirs $found_dir"
16979 if test "$acl_hardcode_direct" = yes; then
16980 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16982 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16983 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16985 for x in $rpathdirs; do
16986 if test "X$x" = "X$found_dir"; then
16991 if test -z "$haveit"; then
16992 rpathdirs="$rpathdirs $found_dir"
16996 for x in $LDFLAGS $LIBPTH; do
16998 acl_save_prefix="$prefix"
16999 prefix="$acl_final_prefix"
17000 acl_save_exec_prefix="$exec_prefix"
17001 exec_prefix="$acl_final_exec_prefix"
17003 exec_prefix="$acl_save_exec_prefix"
17004 prefix="$acl_save_prefix"
17006 if test "X$x" = "X-L$found_dir"; then
17011 if test -z "$haveit"; then
17012 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17014 if test "$acl_hardcode_minus_L" != no; then
17015 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17017 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17023 if test "X$found_a" != "X"; then
17024 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17026 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17029 additional_includedir=
17030 case "$found_dir" in
17031 */$acl_libdirstem | */$acl_libdirstem/)
17032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17033 if test "$name" = 'pth'; then
17034 LIBPTH_PREFIX="$basedir"
17036 additional_includedir="$basedir/include"
17038 */$acl_libdirstem2 | */$acl_libdirstem2/)
17039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17040 if test "$name" = 'pth'; then
17041 LIBPTH_PREFIX="$basedir"
17043 additional_includedir="$basedir/include"
17046 if test "X$additional_includedir" != "X"; then
17047 if test "X$additional_includedir" != "X/usr/include"; then
17049 if test "X$additional_includedir" = "X/usr/local/include"; then
17050 if test -n "$GCC"; then
17052 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17056 if test -z "$haveit"; then
17057 for x in $CPPFLAGS $INCPTH; do
17059 acl_save_prefix="$prefix"
17060 prefix="$acl_final_prefix"
17061 acl_save_exec_prefix="$exec_prefix"
17062 exec_prefix="$acl_final_exec_prefix"
17064 exec_prefix="$acl_save_exec_prefix"
17065 prefix="$acl_save_prefix"
17067 if test "X$x" = "X-I$additional_includedir"; then
17072 if test -z "$haveit"; then
17073 if test -d "$additional_includedir"; then
17074 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17080 if test -n "$found_la"; then
17081 save_libdir="$libdir"
17082 case "$found_la" in
17083 */* | *\\*) . "$found_la" ;;
17084 *) . "./$found_la" ;;
17086 libdir="$save_libdir"
17087 for dep in $dependency_libs; do
17090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17091 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17092 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17094 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17095 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17096 if test -n "$GCC"; then
17098 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17102 if test -z "$haveit"; then
17104 for x in $LDFLAGS $LIBPTH; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$additional_libdir"; then
17119 if test -z "$haveit"; then
17120 if test -d "$additional_libdir"; then
17121 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17125 for x in $LDFLAGS $LTLIBPTH; do
17127 acl_save_prefix="$prefix"
17128 prefix="$acl_final_prefix"
17129 acl_save_exec_prefix="$exec_prefix"
17130 exec_prefix="$acl_final_exec_prefix"
17132 exec_prefix="$acl_save_exec_prefix"
17133 prefix="$acl_save_prefix"
17135 if test "X$x" = "X-L$additional_libdir"; then
17140 if test -z "$haveit"; then
17141 if test -d "$additional_libdir"; then
17142 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17150 if test "$enable_rpath" != no; then
17152 for x in $rpathdirs; do
17153 if test "X$x" = "X$dir"; then
17158 if test -z "$haveit"; then
17159 rpathdirs="$rpathdirs $dir"
17162 for x in $ltrpathdirs; do
17163 if test "X$x" = "X$dir"; then
17168 if test -z "$haveit"; then
17169 ltrpathdirs="$ltrpathdirs $dir"
17174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17180 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17181 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17187 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17188 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17194 if test "X$rpathdirs" != "X"; then
17195 if test -n "$acl_hardcode_libdir_separator"; then
17197 for found_dir in $rpathdirs; do
17198 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17200 acl_save_libdir="$libdir"
17202 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17203 libdir="$acl_save_libdir"
17204 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17206 for found_dir in $rpathdirs; do
17207 acl_save_libdir="$libdir"
17208 libdir="$found_dir"
17209 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17210 libdir="$acl_save_libdir"
17211 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17215 if test "X$ltrpathdirs" != "X"; then
17216 for found_dir in $ltrpathdirs; do
17217 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17226 ac_cv_libpth_libs="$LIBPTH"
17227 ac_cv_libpth_ltlibs="$LTLIBPTH"
17228 ac_cv_libpth_cppflags="$INCPTH"
17229 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17233 $as_echo "$ac_cv_libpth_libs" >&6; }
17234 LIBPTH="$ac_cv_libpth_libs"
17235 LTLIBPTH="$ac_cv_libpth_ltlibs"
17236 INCPTH="$ac_cv_libpth_cppflags"
17237 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17239 for element in $INCPTH; do
17241 for x in $CPPFLAGS; do
17243 acl_save_prefix="$prefix"
17244 prefix="$acl_final_prefix"
17245 acl_save_exec_prefix="$exec_prefix"
17246 exec_prefix="$acl_final_exec_prefix"
17248 exec_prefix="$acl_save_exec_prefix"
17249 prefix="$acl_save_prefix"
17251 if test "X$x" = "X$element"; then
17256 if test -z "$haveit"; then
17257 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17269 gl_save_LIBS="$LIBS"
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17282 if ac_fn_c_try_link "$LINENO"; then :
17285 rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS="$gl_save_LIBS"
17288 if test -n "$gl_have_pth"; then
17290 LIBTHREAD="$LIBPTH"
17291 LTLIBTHREAD="$LTLIBPTH"
17292 LIBMULTITHREAD="$LIBTHREAD"
17293 LTLIBMULTITHREAD="$LTLIBTHREAD"
17295 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17297 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17298 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17300 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17307 CPPFLAGS="$gl_save_CPPFLAGS"
17310 if test -z "$gl_have_pthread"; then
17311 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
17312 if { case "$host_os" in
17317 gl_threads_api=win32
17319 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17326 $as_echo_n "checking for multithread API to use... " >&6; }
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17328 $as_echo "$gl_threads_api" >&6; }
17340 if test "$gl_threads_api" = posix; then
17341 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
17342 # pthread_rwlock_* functions.
17343 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17345 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
17347 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17351 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 #include <pthread.h>
17358 #if __FreeBSD__ == 4
17359 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17361 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17368 if ac_fn_c_try_compile "$LINENO"; then :
17370 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392 acl_save_prefix="$prefix"
17393 prefix="$acl_final_prefix"
17394 acl_save_exec_prefix="$exec_prefix"
17395 exec_prefix="$acl_final_exec_prefix"
17397 eval additional_includedir=\"$includedir\"
17398 eval additional_libdir=\"$libdir\"
17400 exec_prefix="$acl_save_exec_prefix"
17401 prefix="$acl_save_prefix"
17404 # Check whether --with-libiconv-prefix was given.
17405 if test "${with_libiconv_prefix+set}" = set; then :
17406 withval=$with_libiconv_prefix;
17407 if test "X$withval" = "Xno"; then
17410 if test "X$withval" = "X"; then
17412 acl_save_prefix="$prefix"
17413 prefix="$acl_final_prefix"
17414 acl_save_exec_prefix="$exec_prefix"
17415 exec_prefix="$acl_final_exec_prefix"
17417 eval additional_includedir=\"$includedir\"
17418 eval additional_libdir=\"$libdir\"
17420 exec_prefix="$acl_save_exec_prefix"
17421 prefix="$acl_save_prefix"
17424 additional_includedir="$withval/include"
17425 additional_libdir="$withval/$acl_libdirstem"
17426 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17427 && ! test -d "$withval/$acl_libdirstem"; then
17428 additional_libdir="$withval/$acl_libdirstem2"
17442 names_already_handled=
17443 names_next_round='iconv '
17444 while test -n "$names_next_round"; do
17445 names_this_round="$names_next_round"
17447 for name in $names_this_round; do
17449 for n in $names_already_handled; do
17450 if test "$n" = "$name"; then
17451 already_handled=yes
17455 if test -z "$already_handled"; then
17456 names_already_handled="$names_already_handled $name"
17457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17458 eval value=\"\$HAVE_LIB$uppername\"
17459 if test -n "$value"; then
17460 if test "$value" = yes; then
17461 eval value=\"\$LIB$uppername\"
17462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17463 eval value=\"\$LTLIB$uppername\"
17464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17473 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17474 if test -n "$acl_shlibext"; then
17475 shrext=".$acl_shlibext" # typically: shrext=.so
17479 if test $use_additional = yes; then
17480 dir="$additional_libdir"
17481 if test -n "$acl_shlibext"; then
17482 if test -f "$dir/$libname$shrext"; then
17484 found_so="$dir/$libname$shrext"
17486 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17487 ver=`(cd "$dir" && \
17488 for f in "$libname$shrext".*; do echo "$f"; done \
17489 | sed -e "s,^$libname$shrext\\\\.,," \
17490 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17491 | sed 1q ) 2>/dev/null`
17492 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17494 found_so="$dir/$libname$shrext.$ver"
17497 eval library_names=\"$acl_library_names_spec\"
17498 for f in $library_names; do
17499 if test -f "$dir/$f"; then
17508 if test "X$found_dir" = "X"; then
17509 if test -f "$dir/$libname.$acl_libext"; then
17511 found_a="$dir/$libname.$acl_libext"
17514 if test "X$found_dir" != "X"; then
17515 if test -f "$dir/$libname.la"; then
17516 found_la="$dir/$libname.la"
17520 if test "X$found_dir" = "X"; then
17521 for x in $LDFLAGS $LTLIBICONV; do
17523 acl_save_prefix="$prefix"
17524 prefix="$acl_final_prefix"
17525 acl_save_exec_prefix="$exec_prefix"
17526 exec_prefix="$acl_final_exec_prefix"
17528 exec_prefix="$acl_save_exec_prefix"
17529 prefix="$acl_save_prefix"
17533 dir=`echo "X$x" | sed -e 's/^X-L//'`
17534 if test -n "$acl_shlibext"; then
17535 if test -f "$dir/$libname$shrext"; then
17537 found_so="$dir/$libname$shrext"
17539 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17540 ver=`(cd "$dir" && \
17541 for f in "$libname$shrext".*; do echo "$f"; done \
17542 | sed -e "s,^$libname$shrext\\\\.,," \
17543 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17544 | sed 1q ) 2>/dev/null`
17545 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17547 found_so="$dir/$libname$shrext.$ver"
17550 eval library_names=\"$acl_library_names_spec\"
17551 for f in $library_names; do
17552 if test -f "$dir/$f"; then
17561 if test "X$found_dir" = "X"; then
17562 if test -f "$dir/$libname.$acl_libext"; then
17564 found_a="$dir/$libname.$acl_libext"
17567 if test "X$found_dir" != "X"; then
17568 if test -f "$dir/$libname.la"; then
17569 found_la="$dir/$libname.la"
17574 if test "X$found_dir" != "X"; then
17579 if test "X$found_dir" != "X"; then
17580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17581 if test "X$found_so" != "X"; then
17582 if test "$enable_rpath" = no \
17583 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17584 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17585 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17588 for x in $ltrpathdirs; do
17589 if test "X$x" = "X$found_dir"; then
17594 if test -z "$haveit"; then
17595 ltrpathdirs="$ltrpathdirs $found_dir"
17597 if test "$acl_hardcode_direct" = yes; then
17598 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17600 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17603 for x in $rpathdirs; do
17604 if test "X$x" = "X$found_dir"; then
17609 if test -z "$haveit"; then
17610 rpathdirs="$rpathdirs $found_dir"
17614 for x in $LDFLAGS $LIBICONV; do
17616 acl_save_prefix="$prefix"
17617 prefix="$acl_final_prefix"
17618 acl_save_exec_prefix="$exec_prefix"
17619 exec_prefix="$acl_final_exec_prefix"
17621 exec_prefix="$acl_save_exec_prefix"
17622 prefix="$acl_save_prefix"
17624 if test "X$x" = "X-L$found_dir"; then
17629 if test -z "$haveit"; then
17630 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17632 if test "$acl_hardcode_minus_L" != no; then
17633 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17635 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17641 if test "X$found_a" != "X"; then
17642 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17644 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17647 additional_includedir=
17648 case "$found_dir" in
17649 */$acl_libdirstem | */$acl_libdirstem/)
17650 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17651 if test "$name" = 'iconv'; then
17652 LIBICONV_PREFIX="$basedir"
17654 additional_includedir="$basedir/include"
17656 */$acl_libdirstem2 | */$acl_libdirstem2/)
17657 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17658 if test "$name" = 'iconv'; then
17659 LIBICONV_PREFIX="$basedir"
17661 additional_includedir="$basedir/include"
17664 if test "X$additional_includedir" != "X"; then
17665 if test "X$additional_includedir" != "X/usr/include"; then
17667 if test "X$additional_includedir" = "X/usr/local/include"; then
17668 if test -n "$GCC"; then
17670 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17674 if test -z "$haveit"; then
17675 for x in $CPPFLAGS $INCICONV; do
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17682 exec_prefix="$acl_save_exec_prefix"
17683 prefix="$acl_save_prefix"
17685 if test "X$x" = "X-I$additional_includedir"; then
17690 if test -z "$haveit"; then
17691 if test -d "$additional_includedir"; then
17692 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17698 if test -n "$found_la"; then
17699 save_libdir="$libdir"
17700 case "$found_la" in
17701 */* | *\\*) . "$found_la" ;;
17702 *) . "./$found_la" ;;
17704 libdir="$save_libdir"
17705 for dep in $dependency_libs; do
17708 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17709 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17710 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17712 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17713 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17714 if test -n "$GCC"; then
17716 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17720 if test -z "$haveit"; then
17722 for x in $LDFLAGS $LIBICONV; do
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17729 exec_prefix="$acl_save_exec_prefix"
17730 prefix="$acl_save_prefix"
17732 if test "X$x" = "X-L$additional_libdir"; then
17737 if test -z "$haveit"; then
17738 if test -d "$additional_libdir"; then
17739 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17743 for x in $LDFLAGS $LTLIBICONV; do
17745 acl_save_prefix="$prefix"
17746 prefix="$acl_final_prefix"
17747 acl_save_exec_prefix="$exec_prefix"
17748 exec_prefix="$acl_final_exec_prefix"
17750 exec_prefix="$acl_save_exec_prefix"
17751 prefix="$acl_save_prefix"
17753 if test "X$x" = "X-L$additional_libdir"; then
17758 if test -z "$haveit"; then
17759 if test -d "$additional_libdir"; then
17760 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17767 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17768 if test "$enable_rpath" != no; then
17770 for x in $rpathdirs; do
17771 if test "X$x" = "X$dir"; then
17776 if test -z "$haveit"; then
17777 rpathdirs="$rpathdirs $dir"
17780 for x in $ltrpathdirs; do
17781 if test "X$x" = "X$dir"; then
17786 if test -z "$haveit"; then
17787 ltrpathdirs="$ltrpathdirs $dir"
17792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17798 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17799 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17805 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17806 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17812 if test "X$rpathdirs" != "X"; then
17813 if test -n "$acl_hardcode_libdir_separator"; then
17815 for found_dir in $rpathdirs; do
17816 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17818 acl_save_libdir="$libdir"
17820 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17821 libdir="$acl_save_libdir"
17822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17824 for found_dir in $rpathdirs; do
17825 acl_save_libdir="$libdir"
17826 libdir="$found_dir"
17827 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17828 libdir="$acl_save_libdir"
17829 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17833 if test "X$ltrpathdirs" != "X"; then
17834 for found_dir in $ltrpathdirs; do
17835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17850 am_save_CPPFLAGS="$CPPFLAGS"
17852 for element in $INCICONV; do
17854 for x in $CPPFLAGS; do
17856 acl_save_prefix="$prefix"
17857 prefix="$acl_final_prefix"
17858 acl_save_exec_prefix="$exec_prefix"
17859 exec_prefix="$acl_final_exec_prefix"
17861 exec_prefix="$acl_save_exec_prefix"
17862 prefix="$acl_save_prefix"
17864 if test "X$x" = "X$element"; then
17869 if test -z "$haveit"; then
17870 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17876 $as_echo_n "checking for iconv... " >&6; }
17877 if test "${am_cv_func_iconv+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17881 am_cv_func_iconv="no, consider installing GNU libiconv"
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #include <stdlib.h>
17890 iconv_t cd = iconv_open("","");
17891 iconv(cd,NULL,NULL,NULL,NULL);
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 am_cv_func_iconv=yes
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 if test "$am_cv_func_iconv" != yes; then
17903 am_save_LIBS="$LIBS"
17904 LIBS="$LIBS $LIBICONV"
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907 #include <stdlib.h>
17912 iconv_t cd = iconv_open("","");
17913 iconv(cd,NULL,NULL,NULL,NULL);
17919 if ac_fn_c_try_link "$LINENO"; then :
17920 am_cv_lib_iconv=yes
17921 am_cv_func_iconv=yes
17923 rm -f core conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS="$am_save_LIBS"
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17930 $as_echo "$am_cv_func_iconv" >&6; }
17931 if test "$am_cv_func_iconv" = yes; then
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17933 $as_echo_n "checking for working iconv... " >&6; }
17934 if test "${am_cv_func_iconv_works+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17938 am_save_LIBS="$LIBS"
17939 if test $am_cv_lib_iconv = yes; then
17940 LIBS="$LIBS $LIBICONV"
17942 if test "$cross_compiling" = yes; then :
17944 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17945 *) am_cv_func_iconv_works="guessing yes" ;;
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17952 #include <string.h>
17955 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17958 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17959 if (cd_utf8_to_88591 != (iconv_t)(-1))
17961 static const char input[] = "\342\202\254"; /* EURO SIGN */
17963 const char *inptr = input;
17964 size_t inbytesleft = strlen (input);
17965 char *outptr = buf;
17966 size_t outbytesleft = sizeof (buf);
17967 size_t res = iconv (cd_utf8_to_88591,
17968 (char **) &inptr, &inbytesleft,
17969 &outptr, &outbytesleft);
17974 /* Test against Solaris 10 bug: Failures are not distinguishable from
17975 successful returns. */
17977 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17978 if (cd_ascii_to_88591 != (iconv_t)(-1))
17980 static const char input[] = "\263";
17982 const char *inptr = input;
17983 size_t inbytesleft = strlen (input);
17984 char *outptr = buf;
17985 size_t outbytesleft = sizeof (buf);
17986 size_t res = iconv (cd_ascii_to_88591,
17987 (char **) &inptr, &inbytesleft,
17988 &outptr, &outbytesleft);
17993 #if 0 /* This bug could be worked around by the caller. */
17994 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17996 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17997 if (cd_88591_to_utf8 != (iconv_t)(-1))
17999 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18001 const char *inptr = input;
18002 size_t inbytesleft = strlen (input);
18003 char *outptr = buf;
18004 size_t outbytesleft = sizeof (buf);
18005 size_t res = iconv (cd_88591_to_utf8,
18006 (char **) &inptr, &inbytesleft,
18007 &outptr, &outbytesleft);
18013 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18015 if (/* Try standardized names. */
18016 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18017 /* Try IRIX, OSF/1 names. */
18018 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18019 /* Try AIX names. */
18020 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18021 /* Try HP-UX names. */
18022 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18027 if ac_fn_c_try_run "$LINENO"; then :
18028 am_cv_func_iconv_works=yes
18030 am_cv_func_iconv_works=no
18032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18033 conftest.$ac_objext conftest.beam conftest.$ac_ext
18036 LIBS="$am_save_LIBS"
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18040 $as_echo "$am_cv_func_iconv_works" >&6; }
18041 case "$am_cv_func_iconv_works" in
18042 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18043 *) am_func_iconv=yes ;;
18046 am_func_iconv=no am_cv_lib_iconv=no
18048 if test "$am_func_iconv" = yes; then
18050 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18053 if test "$am_cv_lib_iconv" = yes; then
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18055 $as_echo_n "checking how to link with libiconv... " >&6; }
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18057 $as_echo "$LIBICONV" >&6; }
18059 CPPFLAGS="$am_save_CPPFLAGS"
18066 if test "$am_cv_func_iconv" = yes; then
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18068 $as_echo_n "checking for iconv declaration... " >&6; }
18069 if test "${am_cv_proto_iconv+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18076 #include <stdlib.h>
18082 #if defined(__STDC__) || defined(__cplusplus)
18083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18096 if ac_fn_c_try_compile "$LINENO"; then :
18097 am_cv_proto_iconv_arg1=""
18099 am_cv_proto_iconv_arg1="const"
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
18105 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18107 $am_cv_proto_iconv" >&5
18109 $am_cv_proto_iconv" >&6; }
18111 cat >>confdefs.h <<_ACEOF
18112 #define ICONV_CONST $am_cv_proto_iconv_arg1
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18131 if ac_fn_c_try_link "$LINENO"; then :
18133 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18136 rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18139 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18143 eval as_val=\$$as_ac_Header
18144 if test "x$as_val" = x""yes; then :
18145 cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18153 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18154 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
18155 argz_stringify argz_next __fsetlocking
18157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18159 eval as_val=\$$as_ac_var
18160 if test "x$as_val" = x""yes; then :
18161 cat >>confdefs.h <<_ACEOF
18162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
18171 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
18172 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18182 #ifndef feof_unlocked
18183 char *p = (char *) feof_unlocked;
18190 if ac_fn_c_try_compile "$LINENO"; then :
18191 ac_cv_have_decl_feof_unlocked=yes
18193 ac_cv_have_decl_feof_unlocked=no
18195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
18198 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
18199 if test $ac_cv_have_decl_feof_unlocked = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
18212 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
18213 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
18214 $as_echo_n "(cached) " >&6
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18223 #ifndef fgets_unlocked
18224 char *p = (char *) fgets_unlocked;
18231 if ac_fn_c_try_compile "$LINENO"; then :
18232 ac_cv_have_decl_fgets_unlocked=yes
18234 ac_cv_have_decl_fgets_unlocked=no
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
18239 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
18240 if test $ac_cv_have_decl_fgets_unlocked = yes; then
18246 cat >>confdefs.h <<_ACEOF
18247 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
18254 for ac_prog in bison
18256 # Extract the first word of "$ac_prog", so it can be a program name with args.
18257 set dummy $ac_prog; ac_word=$2
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18259 $as_echo_n "checking for $ac_word... " >&6; }
18260 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18263 if test -n "$INTLBISON"; then
18264 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18267 for as_dir in $PATH
18270 test -z "$as_dir" && as_dir=.
18271 for ac_exec_ext in '' $ac_executable_extensions; do
18272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18273 ac_cv_prog_INTLBISON="$ac_prog"
18274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18283 INTLBISON=$ac_cv_prog_INTLBISON
18284 if test -n "$INTLBISON"; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18286 $as_echo "$INTLBISON" >&6; }
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18293 test -n "$INTLBISON" && break
18296 if test -z "$INTLBISON"; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18300 $as_echo_n "checking version of bison... " >&6; }
18301 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18302 case $ac_prog_version in
18303 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18304 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
18305 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18306 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18309 $as_echo "$ac_prog_version" >&6; }
18311 if test $ac_verc_fail = yes; then
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18317 $as_echo_n "checking for long long int... " >&6; }
18318 if test "${ac_cv_type_long_long_int+set}" = set; then :
18319 $as_echo_n "(cached) " >&6
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 /* For now, do not test the preprocessor; as of 2007 there are too many
18325 implementations with broken preprocessors. Perhaps this can
18326 be revisited in 2012. In the meantime, code should not expect
18327 #if to work with literals wider than 32 bits. */
18328 /* Test literals. */
18329 long long int ll = 9223372036854775807ll;
18330 long long int nll = -9223372036854775807LL;
18331 unsigned long long int ull = 18446744073709551615ULL;
18332 /* Test constant expressions. */
18333 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18335 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18341 /* Test availability of runtime routines for shift and division. */
18342 long long int llmax = 9223372036854775807ll;
18343 unsigned long long int ullmax = 18446744073709551615ull;
18344 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18345 | (llmax / ll) | (llmax % ll)
18346 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18347 | (ullmax / ull) | (ullmax % ull));
18353 if ac_fn_c_try_link "$LINENO"; then :
18354 if test "$cross_compiling" = yes; then :
18355 ac_cv_type_long_long_int=yes
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18359 #include <limits.h>
18362 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18363 # define LLONG_MAX (HALF - 1 + HALF)
18368 long long int n = 1;
18372 long long int m = n << i;
18375 if (LLONG_MAX / 2 < m)
18383 if ac_fn_c_try_run "$LINENO"; then :
18384 ac_cv_type_long_long_int=yes
18386 ac_cv_type_long_long_int=no
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18389 conftest.$ac_objext conftest.beam conftest.$ac_ext
18393 ac_cv_type_long_long_int=no
18395 rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18399 $as_echo "$ac_cv_type_long_long_int" >&6; }
18400 if test $ac_cv_type_long_long_int = yes; then
18402 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18408 $as_echo_n "checking for wchar_t... " >&6; }
18409 if test "${gt_cv_c_wchar_t+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413 /* end confdefs.h. */
18414 #include <stddef.h>
18415 wchar_t foo = (wchar_t)'\0';
18424 if ac_fn_c_try_compile "$LINENO"; then :
18425 gt_cv_c_wchar_t=yes
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18432 $as_echo "$gt_cv_c_wchar_t" >&6; }
18433 if test $gt_cv_c_wchar_t = yes; then
18435 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18441 $as_echo_n "checking for wint_t... " >&6; }
18442 if test "${gt_cv_c_wint_t+set}" = set; then :
18443 $as_echo_n "(cached) " >&6
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18450 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18451 before <wchar.h>. */
18452 #include <stddef.h>
18456 wint_t foo = (wchar_t)'\0';
18465 if ac_fn_c_try_compile "$LINENO"; then :
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18473 $as_echo "$gt_cv_c_wint_t" >&6; }
18474 if test $gt_cv_c_wint_t = yes; then
18476 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18484 $as_echo_n "checking for intmax_t... " >&6; }
18485 if test "${gt_cv_c_intmax_t+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 #include <stddef.h>
18492 #include <stdlib.h>
18493 #if HAVE_STDINT_H_WITH_UINTMAX
18494 #include <stdint.h>
18496 #if HAVE_INTTYPES_H_WITH_UINTMAX
18497 #include <inttypes.h>
18509 if ac_fn_c_try_compile "$LINENO"; then :
18510 gt_cv_c_intmax_t=yes
18512 gt_cv_c_intmax_t=no
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18517 $as_echo "$gt_cv_c_intmax_t" >&6; }
18518 if test $gt_cv_c_intmax_t = yes; then
18520 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18527 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18528 if test "${gt_cv_func_printf_posix+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18532 if test "$cross_compiling" = yes; then :
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18537 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18543 $EGREP "notposix" >/dev/null 2>&1; then :
18544 gt_cv_func_printf_posix="guessing no"
18546 gt_cv_func_printf_posix="guessing yes"
18552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h. */
18556 #include <string.h>
18557 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18558 dollar expansion (possibly an autoconf bug). */
18559 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18560 static char buf[100];
18563 sprintf (buf, format, 33, 55);
18564 return (strcmp (buf, "55 33") != 0);
18567 if ac_fn_c_try_run "$LINENO"; then :
18568 gt_cv_func_printf_posix=yes
18570 gt_cv_func_printf_posix=no
18572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18573 conftest.$ac_objext conftest.beam conftest.$ac_ext
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18579 $as_echo "$gt_cv_func_printf_posix" >&6; }
18580 case $gt_cv_func_printf_posix in
18583 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18590 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18591 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18595 /* end confdefs.h. */
18597 #include <features.h>
18598 #ifdef __GNU_LIBRARY__
18599 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18606 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18607 ac_cv_gnu_library_2_1=yes
18609 ac_cv_gnu_library_2_1=no
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18617 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18619 GLIBC21="$ac_cv_gnu_library_2_1"
18623 for ac_header in stdint.h
18625 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18626 if test "x$ac_cv_header_stdint_h" = x""yes; then :
18627 cat >>confdefs.h <<_ACEOF
18628 #define HAVE_STDINT_H 1
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18636 $as_echo_n "checking for SIZE_MAX... " >&6; }
18637 if test "${gl_cv_size_max+set}" = set; then :
18638 $as_echo_n "(cached) " >&6
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18645 #include <limits.h>
18647 #include <stdint.h>
18654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18655 $EGREP "Found it" >/dev/null 2>&1; then :
18660 if test -z "$gl_cv_size_max"; then
18661 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
18662 #include <limits.h>"; then :
18665 size_t_bits_minus_1=
18668 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
18674 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18675 if test $fits_in_uint = 1; then
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18678 #include <stddef.h>
18680 extern unsigned long foo;
18690 if ac_fn_c_try_compile "$LINENO"; then :
18693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695 if test $fits_in_uint = 1; then
18696 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18698 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18701 gl_cv_size_max='((size_t)~(size_t)0)'
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18707 $as_echo "$gl_cv_size_max" >&6; }
18708 if test "$gl_cv_size_max" != yes; then
18710 cat >>confdefs.h <<_ACEOF
18711 #define SIZE_MAX $gl_cv_size_max
18720 for ac_header in stdint.h
18722 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18723 if test "x$ac_cv_header_stdint_h" = x""yes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_STDINT_H 1
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
18736 $as_echo_n "checking for working fcntl.h... " >&6; }
18737 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
18738 $as_echo_n "(cached) " >&6
18740 if test "$cross_compiling" = yes; then :
18741 gl_cv_header_working_fcntl_h=cross-compiling
18743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h. */
18745 #include <sys/types.h>
18746 #include <sys/stat.h>
18747 #include <unistd.h>
18750 #define O_NOATIME 0
18753 #define O_NOFOLLOW 0
18755 static int const constants[] =
18757 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18758 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18765 int status = !constants;
18767 static char const sym[] = "conftest.sym";
18768 if (symlink (".", sym) != 0
18769 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
18774 static char const file[] = "confdefs.h";
18775 int fd = open (file, O_RDONLY | O_NOATIME);
18777 struct stat st0, st1;
18779 || fstat (fd, &st0) != 0
18781 || read (fd, &c, 1) != 1
18783 || stat (file, &st1) != 0
18784 || st0.st_atime != st1.st_atime)
18792 if ac_fn_c_try_run "$LINENO"; then :
18793 gl_cv_header_working_fcntl_h=yes
18796 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18797 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18798 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18799 *) gl_cv_header_working_fcntl_h='no';;
18802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18803 conftest.$ac_objext conftest.beam conftest.$ac_ext
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
18808 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
18810 case $gl_cv_header_working_fcntl_h in #(
18811 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18815 cat >>confdefs.h <<_ACEOF
18816 #define HAVE_WORKING_O_NOATIME $ac_val
18820 case $gl_cv_header_working_fcntl_h in #(
18821 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18832 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18833 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
18834 $as_echo_n "(cached) " >&6
18836 gt_save_LIBS="$LIBS"
18837 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839 /* end confdefs.h. */
18840 #include <CoreFoundation/CFPreferences.h>
18844 CFPreferencesCopyAppValue(NULL, NULL)
18849 if ac_fn_c_try_link "$LINENO"; then :
18850 gt_cv_func_CFPreferencesCopyAppValue=yes
18852 gt_cv_func_CFPreferencesCopyAppValue=no
18854 rm -f core conftest.err conftest.$ac_objext \
18855 conftest$ac_exeext conftest.$ac_ext
18856 LIBS="$gt_save_LIBS"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18859 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18860 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18862 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18866 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18867 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
18868 $as_echo_n "(cached) " >&6
18870 gt_save_LIBS="$LIBS"
18871 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 #include <CoreFoundation/CFLocale.h>
18878 CFLocaleCopyCurrent();
18883 if ac_fn_c_try_link "$LINENO"; then :
18884 gt_cv_func_CFLocaleCopyCurrent=yes
18886 gt_cv_func_CFLocaleCopyCurrent=no
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS="$gt_save_LIBS"
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18893 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18894 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18896 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18900 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18901 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18910 case "$enable_silent_rules" in
18911 yes) INTL_DEFAULT_VERBOSITY=0;;
18912 no) INTL_DEFAULT_VERBOSITY=1;;
18913 *) INTL_DEFAULT_VERBOSITY=1;;
18917 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18918 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18922 $as_echo "#define ptrdiff_t long" >>confdefs.h
18927 for ac_header in stddef.h stdlib.h string.h
18929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18931 eval as_val=\$$as_ac_Header
18932 if test "x$as_val" = x""yes; then :
18933 cat >>confdefs.h <<_ACEOF
18934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18941 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
18942 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18946 eval as_val=\$$as_ac_var
18947 if test "x$as_val" = x""yes; then :
18948 cat >>confdefs.h <<_ACEOF
18949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
18958 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18959 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
18960 $as_echo_n "(cached) " >&6
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h. */
18970 char *p = (char *) _snprintf;
18977 if ac_fn_c_try_compile "$LINENO"; then :
18978 ac_cv_have_decl__snprintf=yes
18980 ac_cv_have_decl__snprintf=no
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
18985 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18986 if test $ac_cv_have_decl__snprintf = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_DECL__SNPRINTF $gt_value
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
18999 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19000 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19001 $as_echo_n "(cached) " >&6
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19011 char *p = (char *) _snwprintf;
19018 if ac_fn_c_try_compile "$LINENO"; then :
19019 ac_cv_have_decl__snwprintf=yes
19021 ac_cv_have_decl__snwprintf=no
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19026 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19027 if test $ac_cv_have_decl__snwprintf = yes; then
19033 cat >>confdefs.h <<_ACEOF
19034 #define HAVE_DECL__SNWPRINTF $gt_value
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19041 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19042 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19043 $as_echo_n "(cached) " >&6
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19052 #ifndef getc_unlocked
19053 char *p = (char *) getc_unlocked;
19060 if ac_fn_c_try_compile "$LINENO"; then :
19061 ac_cv_have_decl_getc_unlocked=yes
19063 ac_cv_have_decl_getc_unlocked=no
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19068 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19069 if test $ac_cv_have_decl_getc_unlocked = yes; then
19075 cat >>confdefs.h <<_ACEOF
19076 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19081 case $gt_cv_func_printf_posix in
19082 *yes) HAVE_POSIX_PRINTF=1 ;;
19083 *) HAVE_POSIX_PRINTF=0 ;;
19086 if test "$ac_cv_func_asprintf" = yes; then
19092 if test "$ac_cv_func_snprintf" = yes; then
19098 if test "$ac_cv_func_newlocale" = yes; then
19104 if test "$ac_cv_func_wprintf" = yes; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19113 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19114 if test "${am_cv_langinfo_codeset+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19119 #include <langinfo.h>
19123 char* cs = nl_langinfo(CODESET); return !cs;
19128 if ac_fn_c_try_link "$LINENO"; then :
19129 am_cv_langinfo_codeset=yes
19131 am_cv_langinfo_codeset=no
19133 rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19138 $as_echo "$am_cv_langinfo_codeset" >&6; }
19139 if test $am_cv_langinfo_codeset = yes; then
19141 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19147 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19148 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19149 $as_echo_n "(cached) " >&6
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153 #include <locale.h>
19162 if ac_fn_c_try_link "$LINENO"; then :
19163 gt_cv_val_LC_MESSAGES=yes
19165 gt_cv_val_LC_MESSAGES=no
19167 rm -f core conftest.err conftest.$ac_objext \
19168 conftest$ac_exeext conftest.$ac_ext
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19171 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19172 if test $gt_cv_val_LC_MESSAGES = yes; then
19174 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19179 if test "$enable_shared" = yes; then
19181 mingw* | cygwin*) is_woe32dll=yes ;;
19182 *) is_woe32dll=no ;;
19187 WOE32DLL=$is_woe32dll
19191 mingw* | cygwin*) is_woe32=yes ;;
19196 if test $WOE32 = yes; then
19197 if test -n "$ac_tool_prefix"; then
19198 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19199 set dummy ${ac_tool_prefix}windres; ac_word=$2
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19201 $as_echo_n "checking for $ac_word... " >&6; }
19202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
19203 $as_echo_n "(cached) " >&6
19205 if test -n "$WINDRES"; then
19206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19212 test -z "$as_dir" && as_dir=.
19213 for ac_exec_ext in '' $ac_executable_extensions; do
19214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19215 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19225 WINDRES=$ac_cv_prog_WINDRES
19226 if test -n "$WINDRES"; then
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19228 $as_echo "$WINDRES" >&6; }
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19236 if test -z "$ac_cv_prog_WINDRES"; then
19237 ac_ct_WINDRES=$WINDRES
19238 # Extract the first word of "windres", so it can be a program name with args.
19239 set dummy windres; ac_word=$2
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19241 $as_echo_n "checking for $ac_word... " >&6; }
19242 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
19243 $as_echo_n "(cached) " >&6
19245 if test -n "$ac_ct_WINDRES"; then
19246 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19249 for as_dir in $PATH
19252 test -z "$as_dir" && as_dir=.
19253 for ac_exec_ext in '' $ac_executable_extensions; do
19254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19255 ac_cv_prog_ac_ct_WINDRES="windres"
19256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19265 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19266 if test -n "$ac_ct_WINDRES"; then
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19268 $as_echo "$ac_ct_WINDRES" >&6; }
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271 $as_echo "no" >&6; }
19274 if test "x$ac_ct_WINDRES" = x; then
19277 case $cross_compiling:$ac_tool_warned in
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19281 ac_tool_warned=yes ;;
19283 WINDRES=$ac_ct_WINDRES
19286 WINDRES="$ac_cv_prog_WINDRES"
19292 hpux*) LTLIBC="" ;;
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19323 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19324 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19325 $as_echo_n "(cached) " >&6
19327 gt_save_LIBS="$LIBS"
19328 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331 #include <CoreFoundation/CFPreferences.h>
19335 CFPreferencesCopyAppValue(NULL, NULL)
19340 if ac_fn_c_try_link "$LINENO"; then :
19341 gt_cv_func_CFPreferencesCopyAppValue=yes
19343 gt_cv_func_CFPreferencesCopyAppValue=no
19345 rm -f core conftest.err conftest.$ac_objext \
19346 conftest$ac_exeext conftest.$ac_ext
19347 LIBS="$gt_save_LIBS"
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19350 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19351 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19353 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19357 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19358 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19359 $as_echo_n "(cached) " >&6
19361 gt_save_LIBS="$LIBS"
19362 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19365 #include <CoreFoundation/CFLocale.h>
19369 CFLocaleCopyCurrent();
19374 if ac_fn_c_try_link "$LINENO"; then :
19375 gt_cv_func_CFLocaleCopyCurrent=yes
19377 gt_cv_func_CFLocaleCopyCurrent=no
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381 LIBS="$gt_save_LIBS"
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19384 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19385 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19387 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19392 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19400 BUILD_INCLUDED_LIBINTL=no
19401 USE_INCLUDED_LIBINTL=no
19407 case " $gt_needs " in
19408 *" need-formatstring-macros "*) gt_api_version=3 ;;
19409 *" need-ngettext "*) gt_api_version=2 ;;
19410 *) gt_api_version=1 ;;
19412 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19413 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19415 if test "$USE_NLS" = "yes"; then
19416 gt_use_preinstalled_gnugettext=no
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19419 $as_echo_n "checking whether included gettext is requested... " >&6; }
19421 # Check whether --with-included-gettext was given.
19422 if test "${with_included_gettext+set}" = set; then :
19423 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19425 nls_cv_force_use_gnu_gettext=no
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19429 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19431 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19432 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19435 if test $gt_api_version -ge 3; then
19436 gt_revision_test_code='
19437 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19438 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19440 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19443 gt_revision_test_code=
19445 if test $gt_api_version -ge 2; then
19446 gt_expression_test_code=' + * ngettext ("", "", 0)'
19448 gt_expression_test_code=
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19452 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19453 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
19454 $as_echo_n "(cached) " >&6
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19458 #include <libintl.h>
19459 $gt_revision_test_code
19460 extern int _nl_msg_cat_cntr;
19461 extern int *_nl_domain_bindings;
19465 bindtextdomain ("", "");
19466 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19471 if ac_fn_c_try_link "$LINENO"; then :
19472 eval "$gt_func_gnugettext_libc=yes"
19474 eval "$gt_func_gnugettext_libc=no"
19476 rm -f core conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19479 eval ac_res=\$$gt_func_gnugettext_libc
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19481 $as_echo "$ac_res" >&6; }
19483 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19494 acl_save_prefix="$prefix"
19495 prefix="$acl_final_prefix"
19496 acl_save_exec_prefix="$exec_prefix"
19497 exec_prefix="$acl_final_exec_prefix"
19499 eval additional_includedir=\"$includedir\"
19500 eval additional_libdir=\"$libdir\"
19502 exec_prefix="$acl_save_exec_prefix"
19503 prefix="$acl_save_prefix"
19506 # Check whether --with-libintl-prefix was given.
19507 if test "${with_libintl_prefix+set}" = set; then :
19508 withval=$with_libintl_prefix;
19509 if test "X$withval" = "Xno"; then
19512 if test "X$withval" = "X"; then
19514 acl_save_prefix="$prefix"
19515 prefix="$acl_final_prefix"
19516 acl_save_exec_prefix="$exec_prefix"
19517 exec_prefix="$acl_final_exec_prefix"
19519 eval additional_includedir=\"$includedir\"
19520 eval additional_libdir=\"$libdir\"
19522 exec_prefix="$acl_save_exec_prefix"
19523 prefix="$acl_save_prefix"
19526 additional_includedir="$withval/include"
19527 additional_libdir="$withval/$acl_libdirstem"
19528 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19529 && ! test -d "$withval/$acl_libdirstem"; then
19530 additional_libdir="$withval/$acl_libdirstem2"
19544 names_already_handled=
19545 names_next_round='intl '
19546 while test -n "$names_next_round"; do
19547 names_this_round="$names_next_round"
19549 for name in $names_this_round; do
19551 for n in $names_already_handled; do
19552 if test "$n" = "$name"; then
19553 already_handled=yes
19557 if test -z "$already_handled"; then
19558 names_already_handled="$names_already_handled $name"
19559 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19560 eval value=\"\$HAVE_LIB$uppername\"
19561 if test -n "$value"; then
19562 if test "$value" = yes; then
19563 eval value=\"\$LIB$uppername\"
19564 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19565 eval value=\"\$LTLIB$uppername\"
19566 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19575 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19576 if test -n "$acl_shlibext"; then
19577 shrext=".$acl_shlibext" # typically: shrext=.so
19581 if test $use_additional = yes; then
19582 dir="$additional_libdir"
19583 if test -n "$acl_shlibext"; then
19584 if test -f "$dir/$libname$shrext"; then
19586 found_so="$dir/$libname$shrext"
19588 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19589 ver=`(cd "$dir" && \
19590 for f in "$libname$shrext".*; do echo "$f"; done \
19591 | sed -e "s,^$libname$shrext\\\\.,," \
19592 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19593 | sed 1q ) 2>/dev/null`
19594 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19596 found_so="$dir/$libname$shrext.$ver"
19599 eval library_names=\"$acl_library_names_spec\"
19600 for f in $library_names; do
19601 if test -f "$dir/$f"; then
19610 if test "X$found_dir" = "X"; then
19611 if test -f "$dir/$libname.$acl_libext"; then
19613 found_a="$dir/$libname.$acl_libext"
19616 if test "X$found_dir" != "X"; then
19617 if test -f "$dir/$libname.la"; then
19618 found_la="$dir/$libname.la"
19622 if test "X$found_dir" = "X"; then
19623 for x in $LDFLAGS $LTLIBINTL; do
19625 acl_save_prefix="$prefix"
19626 prefix="$acl_final_prefix"
19627 acl_save_exec_prefix="$exec_prefix"
19628 exec_prefix="$acl_final_exec_prefix"
19630 exec_prefix="$acl_save_exec_prefix"
19631 prefix="$acl_save_prefix"
19635 dir=`echo "X$x" | sed -e 's/^X-L//'`
19636 if test -n "$acl_shlibext"; then
19637 if test -f "$dir/$libname$shrext"; then
19639 found_so="$dir/$libname$shrext"
19641 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19642 ver=`(cd "$dir" && \
19643 for f in "$libname$shrext".*; do echo "$f"; done \
19644 | sed -e "s,^$libname$shrext\\\\.,," \
19645 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19646 | sed 1q ) 2>/dev/null`
19647 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19649 found_so="$dir/$libname$shrext.$ver"
19652 eval library_names=\"$acl_library_names_spec\"
19653 for f in $library_names; do
19654 if test -f "$dir/$f"; then
19663 if test "X$found_dir" = "X"; then
19664 if test -f "$dir/$libname.$acl_libext"; then
19666 found_a="$dir/$libname.$acl_libext"
19669 if test "X$found_dir" != "X"; then
19670 if test -f "$dir/$libname.la"; then
19671 found_la="$dir/$libname.la"
19676 if test "X$found_dir" != "X"; then
19681 if test "X$found_dir" != "X"; then
19682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19683 if test "X$found_so" != "X"; then
19684 if test "$enable_rpath" = no \
19685 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19686 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19687 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19690 for x in $ltrpathdirs; do
19691 if test "X$x" = "X$found_dir"; then
19696 if test -z "$haveit"; then
19697 ltrpathdirs="$ltrpathdirs $found_dir"
19699 if test "$acl_hardcode_direct" = yes; then
19700 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19702 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19703 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19705 for x in $rpathdirs; do
19706 if test "X$x" = "X$found_dir"; then
19711 if test -z "$haveit"; then
19712 rpathdirs="$rpathdirs $found_dir"
19716 for x in $LDFLAGS $LIBINTL; do
19718 acl_save_prefix="$prefix"
19719 prefix="$acl_final_prefix"
19720 acl_save_exec_prefix="$exec_prefix"
19721 exec_prefix="$acl_final_exec_prefix"
19723 exec_prefix="$acl_save_exec_prefix"
19724 prefix="$acl_save_prefix"
19726 if test "X$x" = "X-L$found_dir"; then
19731 if test -z "$haveit"; then
19732 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19734 if test "$acl_hardcode_minus_L" != no; then
19735 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19737 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19743 if test "X$found_a" != "X"; then
19744 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19746 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19749 additional_includedir=
19750 case "$found_dir" in
19751 */$acl_libdirstem | */$acl_libdirstem/)
19752 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19753 if test "$name" = 'intl'; then
19754 LIBINTL_PREFIX="$basedir"
19756 additional_includedir="$basedir/include"
19758 */$acl_libdirstem2 | */$acl_libdirstem2/)
19759 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19760 if test "$name" = 'intl'; then
19761 LIBINTL_PREFIX="$basedir"
19763 additional_includedir="$basedir/include"
19766 if test "X$additional_includedir" != "X"; then
19767 if test "X$additional_includedir" != "X/usr/include"; then
19769 if test "X$additional_includedir" = "X/usr/local/include"; then
19770 if test -n "$GCC"; then
19772 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19776 if test -z "$haveit"; then
19777 for x in $CPPFLAGS $INCINTL; do
19779 acl_save_prefix="$prefix"
19780 prefix="$acl_final_prefix"
19781 acl_save_exec_prefix="$exec_prefix"
19782 exec_prefix="$acl_final_exec_prefix"
19784 exec_prefix="$acl_save_exec_prefix"
19785 prefix="$acl_save_prefix"
19787 if test "X$x" = "X-I$additional_includedir"; then
19792 if test -z "$haveit"; then
19793 if test -d "$additional_includedir"; then
19794 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19800 if test -n "$found_la"; then
19801 save_libdir="$libdir"
19802 case "$found_la" in
19803 */* | *\\*) . "$found_la" ;;
19804 *) . "./$found_la" ;;
19806 libdir="$save_libdir"
19807 for dep in $dependency_libs; do
19810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19811 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19812 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19814 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19815 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19816 if test -n "$GCC"; then
19818 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19822 if test -z "$haveit"; then
19824 for x in $LDFLAGS $LIBINTL; do
19826 acl_save_prefix="$prefix"
19827 prefix="$acl_final_prefix"
19828 acl_save_exec_prefix="$exec_prefix"
19829 exec_prefix="$acl_final_exec_prefix"
19831 exec_prefix="$acl_save_exec_prefix"
19832 prefix="$acl_save_prefix"
19834 if test "X$x" = "X-L$additional_libdir"; then
19839 if test -z "$haveit"; then
19840 if test -d "$additional_libdir"; then
19841 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19845 for x in $LDFLAGS $LTLIBINTL; do
19847 acl_save_prefix="$prefix"
19848 prefix="$acl_final_prefix"
19849 acl_save_exec_prefix="$exec_prefix"
19850 exec_prefix="$acl_final_exec_prefix"
19852 exec_prefix="$acl_save_exec_prefix"
19853 prefix="$acl_save_prefix"
19855 if test "X$x" = "X-L$additional_libdir"; then
19860 if test -z "$haveit"; then
19861 if test -d "$additional_libdir"; then
19862 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19869 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19870 if test "$enable_rpath" != no; then
19872 for x in $rpathdirs; do
19873 if test "X$x" = "X$dir"; then
19878 if test -z "$haveit"; then
19879 rpathdirs="$rpathdirs $dir"
19882 for x in $ltrpathdirs; do
19883 if test "X$x" = "X$dir"; then
19888 if test -z "$haveit"; then
19889 ltrpathdirs="$ltrpathdirs $dir"
19894 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19897 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19900 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19907 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19908 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19914 if test "X$rpathdirs" != "X"; then
19915 if test -n "$acl_hardcode_libdir_separator"; then
19917 for found_dir in $rpathdirs; do
19918 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19920 acl_save_libdir="$libdir"
19922 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19923 libdir="$acl_save_libdir"
19924 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19926 for found_dir in $rpathdirs; do
19927 acl_save_libdir="$libdir"
19928 libdir="$found_dir"
19929 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19930 libdir="$acl_save_libdir"
19931 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19935 if test "X$ltrpathdirs" != "X"; then
19936 for found_dir in $ltrpathdirs; do
19937 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19947 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
19948 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
19949 $as_echo_n "(cached) " >&6
19951 gt_save_CPPFLAGS="$CPPFLAGS"
19952 CPPFLAGS="$CPPFLAGS $INCINTL"
19953 gt_save_LIBS="$LIBS"
19954 LIBS="$LIBS $LIBINTL"
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h. */
19957 #include <libintl.h>
19958 $gt_revision_test_code
19959 extern int _nl_msg_cat_cntr;
19964 const char *_nl_expand_alias (const char *);
19968 bindtextdomain ("", "");
19969 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19974 if ac_fn_c_try_link "$LINENO"; then :
19975 eval "$gt_func_gnugettext_libintl=yes"
19977 eval "$gt_func_gnugettext_libintl=no"
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19982 LIBS="$LIBS $LIBICONV"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19985 #include <libintl.h>
19986 $gt_revision_test_code
19987 extern int _nl_msg_cat_cntr;
19992 const char *_nl_expand_alias (const char *);
19996 bindtextdomain ("", "");
19997 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20002 if ac_fn_c_try_link "$LINENO"; then :
20003 LIBINTL="$LIBINTL $LIBICONV"
20004 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20005 eval "$gt_func_gnugettext_libintl=yes"
20008 rm -f core conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
20011 CPPFLAGS="$gt_save_CPPFLAGS"
20012 LIBS="$gt_save_LIBS"
20014 eval ac_res=\$$gt_func_gnugettext_libintl
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20016 $as_echo "$ac_res" >&6; }
20019 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20020 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20021 && test "$PACKAGE" != gettext-runtime \
20022 && test "$PACKAGE" != gettext-tools; }; then
20023 gt_use_preinstalled_gnugettext=yes
20031 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20032 nls_cv_use_gnu_gettext=yes
20036 if test "$nls_cv_use_gnu_gettext" = "yes"; then
20037 BUILD_INCLUDED_LIBINTL=yes
20038 USE_INCLUDED_LIBINTL=yes
20039 LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
20040 LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
20041 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20045 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20046 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20051 if test -n "$INTL_MACOSX_LIBS"; then
20052 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20053 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20054 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20055 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20059 if test "$gt_use_preinstalled_gnugettext" = "yes" \
20060 || test "$nls_cv_use_gnu_gettext" = "yes"; then
20062 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20070 $as_echo_n "checking whether to use NLS... " >&6; }
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20072 $as_echo "$USE_NLS" >&6; }
20073 if test "$USE_NLS" = "yes"; then
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20075 $as_echo_n "checking where the gettext function comes from... " >&6; }
20076 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20077 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20078 gt_source="external libintl"
20083 gt_source="included intl directory"
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20086 $as_echo "$gt_source" >&6; }
20089 if test "$USE_NLS" = "yes"; then
20091 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20092 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20094 $as_echo_n "checking how to link with libintl... " >&6; }
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20096 $as_echo "$LIBINTL" >&6; }
20098 for element in $INCINTL; do
20100 for x in $CPPFLAGS; do
20102 acl_save_prefix="$prefix"
20103 prefix="$acl_final_prefix"
20104 acl_save_exec_prefix="$exec_prefix"
20105 exec_prefix="$acl_final_exec_prefix"
20107 exec_prefix="$acl_save_exec_prefix"
20108 prefix="$acl_save_prefix"
20110 if test "X$x" = "X$element"; then
20115 if test -z "$haveit"; then
20116 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20123 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20126 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20134 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20135 BUILD_INCLUDED_LIBINTL=yes
20142 nls_cv_header_intl=
20143 nls_cv_header_libgt=
20155 if test "$USE_INCLUDED_LIBINTL" = yes; then
20156 INTLOBJS="\$(GETTOBJS)"
20160 INTL_LIBTOOL_SUFFIX_PREFIX=l
20164 INTLLIBS="$LIBINTL"
20173 if test -z "$USE_NLS"; then
20174 echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
20179 if test "$USE_NLS" = yes; then
20180 if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
20181 BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
20184 if test -n "$BISON_LOCALEDIR"; then
20185 USER_LINGUAS="${LINGUAS-%UNSET%}"
20186 if test -n "$USER_LINGUAS"; then
20191 if test $BISON_USE_NLS = yes; then
20193 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h. */
20202 #ifndef __NO_MATH_INLINES
20203 # define __NO_MATH_INLINES 1 /* for glibc */
20210 x = ceil(x); x = sqrt(x);
20215 if ac_fn_c_try_link "$LINENO"; then :
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220 if test "$MSGMERGE_LIBM" = "?"; then
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20226 #ifndef __NO_MATH_INLINES
20227 # define __NO_MATH_INLINES 1 /* for glibc */
20234 x = ceil(x); x = sqrt(x);
20239 if ac_fn_c_try_link "$LINENO"; then :
20240 MSGMERGE_LIBM="-lm"
20242 rm -f core conftest.err conftest.$ac_objext \
20243 conftest$ac_exeext conftest.$ac_ext
20246 if test "$MSGMERGE_LIBM" = "?"; then
20255 LIBC_FATAL_STDERR_=1
20256 export LIBC_FATAL_STDERR_
20267 for ac_func in $gl_func_list
20269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20271 eval as_val=\$$as_ac_var
20272 if test "x$as_val" = x""yes; then :
20273 cat >>confdefs.h <<_ACEOF
20274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20297 $as_echo_n "checking whether // is distinct from /... " >&6; }
20298 if test "${gl_cv_double_slash_root+set}" = set; then :
20299 $as_echo_n "(cached) " >&6
20301 if test x"$cross_compiling" = xyes ; then
20302 # When cross-compiling, there is no way to tell whether // is special
20303 # short of a list of hosts. However, the only known hosts to date
20304 # that have a distinct // are Apollo DomainOS (too old to port to),
20305 # Cygwin, and z/OS. If anyone knows of another system for which // has
20306 # special semantics and is distinct from /, please report it to
20307 # <bug-gnulib@gnu.org>.
20309 *-cygwin | i370-ibm-openedition)
20310 gl_cv_double_slash_root=yes ;;
20312 # Be optimistic and assume that / and // are the same when we
20314 gl_cv_double_slash_root='unknown, assuming no' ;;
20317 set x `ls -di / // 2>/dev/null`
20318 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20319 gl_cv_double_slash_root=no
20321 gl_cv_double_slash_root=yes
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20326 $as_echo "$gl_cv_double_slash_root" >&6; }
20327 if test "$gl_cv_double_slash_root" = yes; then
20329 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
20347 $as_echo_n "checking whether realpath works... " >&6; }
20348 if test "${gl_cv_func_realpath_works+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20353 if test "$cross_compiling" = yes; then :
20354 gl_cv_func_realpath_works="guessing no"
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20360 #include <stdlib.h>
20366 char *name1 = realpath ("conftest.a", NULL);
20367 char *name2 = realpath ("conftest.b/../conftest.a", NULL);
20368 char *name3 = realpath ("conftest.a/", NULL);
20369 return !(name1 && *name1 == '/' && !name2 && !name3);
20376 if ac_fn_c_try_run "$LINENO"; then :
20377 gl_cv_func_realpath_works=yes
20379 gl_cv_func_realpath_works=no
20381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20382 conftest.$ac_objext conftest.beam conftest.$ac_ext
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20388 $as_echo "$gl_cv_func_realpath_works" >&6; }
20389 if test "$gl_cv_func_realpath_works" = yes; then
20391 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20422 GNULIB_CALLOC_POSIX=0;
20423 GNULIB_CANONICALIZE_FILE_NAME=0;
20424 GNULIB_GETLOADAVG=0;
20425 GNULIB_GETSUBOPT=0;
20427 GNULIB_MALLOC_POSIX=0;
20430 GNULIB_MKOSTEMPS=0;
20436 GNULIB_REALLOC_POSIX=0;
20446 HAVE_CALLOC_POSIX=1;
20447 HAVE_CANONICALIZE_FILE_NAME=1;
20448 HAVE_DECL_GETLOADAVG=1;
20451 HAVE_MALLOC_POSIX=1;
20459 HAVE_REALLOC_POSIX=1;
20466 HAVE_STRUCT_RANDOM_DATA=1;
20467 HAVE_SYS_LOADAVG_H=0;
20470 REPLACE_CANONICALIZE_FILE_NAME=0;
20473 REPLACE_REALPATH=0;
20476 REPLACE_UNSETENV=0;
20489 GNULIB_EUIDACCESS=0;
20490 GNULIB_FACCESSAT=0;
20494 GNULIB_FTRUNCATE=0;
20496 GNULIB_GETDOMAINNAME=0;
20497 GNULIB_GETDTABLESIZE=0;
20498 GNULIB_GETGROUPS=0;
20499 GNULIB_GETHOSTNAME=0;
20501 GNULIB_GETLOGIN_R=0;
20502 GNULIB_GETPAGESIZE=0;
20503 GNULIB_GETUSERSHELL=0;
20512 GNULIB_READLINKAT=0;
20516 GNULIB_SYMLINKAT=0;
20517 GNULIB_TTYNAME_R=0;
20518 GNULIB_UNISTD_H_GETOPT=0;
20519 GNULIB_UNISTD_H_SIGPIPE=0;
20533 HAVE_GETDOMAINNAME=1;
20534 HAVE_GETDTABLESIZE=1;
20536 HAVE_GETHOSTNAME=1;
20538 HAVE_GETPAGESIZE=1;
20553 HAVE_DECL_ENVIRON=1;
20554 HAVE_DECL_GETLOGIN_R=1;
20555 HAVE_DECL_GETPAGESIZE=1;
20556 HAVE_DECL_GETUSERSHELL=1;
20558 HAVE_SYS_PARAM_H=0;
20563 REPLACE_FCHOWNAT=0;
20565 REPLACE_GETGROUPS=0;
20566 REPLACE_GETPAGESIZE=0;
20573 REPLACE_READLINK=0;
20577 REPLACE_TTYNAME_R=0;
20579 REPLACE_UNLINKAT=0;
20582 UNISTD_H_HAVE_WINSOCK2_H=0;
20583 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
20597 $as_echo_n "checking if environ is properly declared... " >&6; }
20598 if test "${gt_cv_var_environ_declaration+set}" = set; then :
20599 $as_echo_n "(cached) " >&6
20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20604 #include <unistd.h>
20605 extern struct { int foo; } environ;
20614 if ac_fn_c_try_compile "$LINENO"; then :
20615 gt_cv_var_environ_declaration=no
20617 gt_cv_var_environ_declaration=yes
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
20623 $as_echo "$gt_cv_var_environ_declaration" >&6; }
20624 if test $gt_cv_var_environ_declaration = yes; then
20626 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
20631 if test $gt_cv_var_environ_declaration != yes; then
20632 HAVE_DECL_ENVIRON=0
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
20638 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
20639 if test "${gl_cv_have_include_next+set}" = set; then :
20640 $as_echo_n "(cached) " >&6
20642 rm -rf conftestd1a conftestd1b conftestd2
20643 mkdir conftestd1a conftestd1b conftestd2
20644 cat <<EOF > conftestd1a/conftest.h
20645 #define DEFINED_IN_CONFTESTD1
20646 #include_next <conftest.h>
20647 #ifdef DEFINED_IN_CONFTESTD2
20650 #error "include_next doesn't work"
20653 cat <<EOF > conftestd1b/conftest.h
20654 #define DEFINED_IN_CONFTESTD1
20656 #include_next <conftest.h>
20657 #ifdef DEFINED_IN_CONFTESTD2
20660 #error "include_next doesn't work"
20663 cat <<EOF > conftestd2/conftest.h
20664 #ifndef DEFINED_IN_CONFTESTD1
20665 #error "include_next test doesn't work"
20667 #define DEFINED_IN_CONFTESTD2
20669 gl_save_CPPFLAGS="$CPPFLAGS"
20670 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20672 /* end confdefs.h. */
20673 #include <conftest.h>
20675 if ac_fn_c_try_compile "$LINENO"; then :
20676 gl_cv_have_include_next=yes
20678 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20681 #include <conftest.h>
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684 gl_cv_have_include_next=buggy
20686 gl_cv_have_include_next=no
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 CPPFLAGS="$gl_save_CPPFLAGS"
20693 rm -rf conftestd1a conftestd1b conftestd2
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
20697 $as_echo "$gl_cv_have_include_next" >&6; }
20698 PRAGMA_SYSTEM_HEADER=
20699 if test $gl_cv_have_include_next = yes; then
20700 INCLUDE_NEXT=include_next
20701 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20702 if test -n "$GCC"; then
20703 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
20706 if test $gl_cv_have_include_next = buggy; then
20707 INCLUDE_NEXT=include
20708 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20710 INCLUDE_NEXT=include
20711 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
20726 $as_echo_n "checking for complete errno.h... " >&6; }
20727 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
20728 $as_echo_n "(cached) " >&6
20731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20732 /* end confdefs.h. */
20735 #if !defined ENOMSG
20741 #if !defined ENOLINK
20744 #if !defined EPROTO
20747 #if !defined EMULTIHOP
20750 #if !defined EBADMSG
20753 #if !defined EOVERFLOW
20756 #if !defined ENOTSUP
20759 #if !defined ESTALE
20762 #if !defined ECANCELED
20767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20768 $EGREP "booboo" >/dev/null 2>&1; then :
20769 gl_cv_header_errno_h_complete=no
20771 gl_cv_header_errno_h_complete=yes
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20778 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20779 if test $gl_cv_header_errno_h_complete = yes; then
20794 if test $gl_cv_have_include_next = yes; then
20795 gl_cv_next_errno_h='<'errno.h'>'
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20798 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20799 if test "${gl_cv_next_errno_h+set}" = set; then :
20800 $as_echo_n "(cached) " >&6
20803 if test $ac_cv_header_errno_h = yes; then
20804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h. */
20810 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20811 *) gl_absname_cpp="$ac_cpp" ;;
20813 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20814 sed -n '\#/errno.h#{
20815 s#.*"\(.*/errno.h\)".*#\1#
20821 gl_cv_next_errno_h='<'errno.h'>'
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20826 $as_echo "$gl_cv_next_errno_h" >&6; }
20828 NEXT_ERRNO_H=$gl_cv_next_errno_h
20830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20832 gl_next_as_first_directive='<'errno.h'>'
20834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20835 gl_next_as_first_directive=$gl_cv_next_errno_h
20837 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20845 if test -n "$ERRNO_H"; then
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20847 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20848 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h. */
20861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20862 $EGREP "yes" >/dev/null 2>&1; then :
20863 gl_cv_header_errno_h_EMULTIHOP=yes
20865 gl_cv_header_errno_h_EMULTIHOP=no
20869 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20873 #define _XOPEN_SOURCE_EXTENDED 1
20880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20881 $EGREP "yes" >/dev/null 2>&1; then :
20882 gl_cv_header_errno_h_EMULTIHOP=hidden
20886 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20887 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
20888 #define _XOPEN_SOURCE_EXTENDED 1
20890 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20892 #include <stdlib.h>
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20902 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20903 case $gl_cv_header_errno_h_EMULTIHOP in
20905 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20908 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20916 if test -n "$ERRNO_H"; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20918 $as_echo_n "checking for ENOLINK value... " >&6; }
20919 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
20920 $as_echo_n "(cached) " >&6
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20933 $EGREP "yes" >/dev/null 2>&1; then :
20934 gl_cv_header_errno_h_ENOLINK=yes
20936 gl_cv_header_errno_h_ENOLINK=no
20940 if test $gl_cv_header_errno_h_ENOLINK = no; then
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20944 #define _XOPEN_SOURCE_EXTENDED 1
20951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20952 $EGREP "yes" >/dev/null 2>&1; then :
20953 gl_cv_header_errno_h_ENOLINK=hidden
20957 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20958 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
20959 #define _XOPEN_SOURCE_EXTENDED 1
20961 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20963 #include <stdlib.h>
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20973 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20974 case $gl_cv_header_errno_h_ENOLINK in
20976 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20979 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20987 if test -n "$ERRNO_H"; then
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20989 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20990 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h. */
21003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21004 $EGREP "yes" >/dev/null 2>&1; then :
21005 gl_cv_header_errno_h_EOVERFLOW=yes
21007 gl_cv_header_errno_h_EOVERFLOW=no
21011 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21015 #define _XOPEN_SOURCE_EXTENDED 1
21022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21023 $EGREP "yes" >/dev/null 2>&1; then :
21024 gl_cv_header_errno_h_EOVERFLOW=hidden
21028 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21029 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
21030 #define _XOPEN_SOURCE_EXTENDED 1
21032 /* The following two lines are a workaround against an autoconf-2.52 bug. */
21034 #include <stdlib.h>
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21044 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21045 case $gl_cv_header_errno_h_EOVERFLOW in
21047 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21050 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21058 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21059 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE_DECL_STRERROR_R $ac_have_decl
21069 for ac_func in strerror_r
21071 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21072 if test "x$ac_cv_func_strerror_r" = x""yes; then :
21073 cat >>confdefs.h <<_ACEOF
21074 #define HAVE_STRERROR_R 1
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21081 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21082 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
21083 $as_echo_n "(cached) " >&6
21086 ac_cv_func_strerror_r_char_p=no
21087 if test $ac_cv_have_decl_strerror_r = yes; then
21088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21090 $ac_includes_default
21096 char x = *strerror_r (0, buf, sizeof buf);
21097 char *p = strerror_r (0, buf, sizeof buf);
21104 if ac_fn_c_try_compile "$LINENO"; then :
21105 ac_cv_func_strerror_r_char_p=yes
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 # strerror_r is not declared. Choose between
21110 # systems that have relatively inaccessible declarations for the
21111 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21112 # former has a strerror_r that returns char*, while the latter
21113 # has a strerror_r that returns `int'.
21114 # This test should segfault on the DEC system.
21115 if test "$cross_compiling" = yes; then :
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 extern char *strerror_r ();
21126 char x = *strerror_r (0, buf, sizeof buf);
21127 return ! isalpha (x);
21132 if ac_fn_c_try_run "$LINENO"; then :
21133 ac_cv_func_strerror_r_char_p=yes
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21136 conftest.$ac_objext conftest.beam conftest.$ac_ext
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21143 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21144 if test $ac_cv_func_strerror_r_char_p = yes; then
21146 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21151 XGETTEXT_EXTRA_OPTIONS=
21153 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21154 if test "x$ac_cv_type_mode_t" = x""yes; then :
21158 cat >>confdefs.h <<_ACEOF
21165 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
21167 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_SIG_ATOMIC_T 1
21176 $as_echo "#define sig_atomic_t int" >>confdefs.h
21202 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
21203 if test "x$ac_cv_func_eaccess" = x""yes; then :
21207 $as_echo "#define eaccess access" >>confdefs.h
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
21220 $as_echo_n "checking for mbstate_t... " >&6; }
21221 if test "${ac_cv_type_mbstate_t+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21226 $ac_includes_default
21227 # include <wchar.h>
21231 mbstate_t x; return sizeof x;
21236 if ac_fn_c_try_compile "$LINENO"; then :
21237 ac_cv_type_mbstate_t=yes
21239 ac_cv_type_mbstate_t=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
21244 $as_echo "$ac_cv_type_mbstate_t" >&6; }
21245 if test $ac_cv_type_mbstate_t = yes; then
21247 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
21251 $as_echo "#define mbstate_t int" >>confdefs.h
21306 GNULIB_FPRINTF_POSIX=0;
21318 GNULIB_OBSTACK_PRINTF=0;
21319 GNULIB_OBSTACK_PRINTF_POSIX=0;
21323 GNULIB_PRINTF_POSIX=0;
21331 GNULIB_SPRINTF_POSIX=0;
21332 GNULIB_STDIO_H_SIGPIPE=0;
21334 GNULIB_VASPRINTF=0;
21337 GNULIB_VFPRINTF_POSIX=0;
21339 GNULIB_VPRINTF_POSIX=0;
21340 GNULIB_VSNPRINTF=0;
21341 GNULIB_VSPRINTF_POSIX=0;
21342 HAVE_DECL_FPURGE=1;
21343 HAVE_DECL_GETDELIM=1;
21344 HAVE_DECL_GETLINE=1;
21345 HAVE_DECL_OBSTACK_PRINTF=1;
21346 HAVE_DECL_SNPRINTF=1;
21347 HAVE_DECL_VSNPRINTF=1;
21365 REPLACE_GETDELIM=0;
21367 REPLACE_OBSTACK_PRINTF=0;
21373 REPLACE_RENAMEAT=0;
21374 REPLACE_SNPRINTF=0;
21376 REPLACE_STDIO_WRITE_FUNCS=0;
21378 REPLACE_VASPRINTF=0;
21379 REPLACE_VDPRINTF=0;
21380 REPLACE_VFPRINTF=0;
21382 REPLACE_VSNPRINTF=0;
21383 REPLACE_VSPRINTF=0;
21386 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
21387 if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
21393 cat >>confdefs.h <<_ACEOF
21394 #define HAVE_DECL_GETDELIM $ac_have_decl
21409 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
21410 if test "x$ac_cv_have_decl_getline" = x""yes; then :
21416 cat >>confdefs.h <<_ACEOF
21417 #define HAVE_DECL_GETLINE $ac_have_decl
21442 if test $gl_cv_have_include_next = yes; then
21443 gl_cv_next_getopt_h='<'getopt.h'>'
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21446 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21447 if test "${gl_cv_next_getopt_h+set}" = set; then :
21448 $as_echo_n "(cached) " >&6
21451 if test $ac_cv_header_getopt_h = yes; then
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21454 #include <getopt.h>
21458 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21459 *) gl_absname_cpp="$ac_cpp" ;;
21461 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21462 sed -n '\#/getopt.h#{
21463 s#.*"\(.*/getopt.h\)".*#\1#
21469 gl_cv_next_getopt_h='<'getopt.h'>'
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21474 $as_echo "$gl_cv_next_getopt_h" >&6; }
21476 NEXT_GETOPT_H=$gl_cv_next_getopt_h
21478 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21480 gl_next_as_first_directive='<'getopt.h'>'
21482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21483 gl_next_as_first_directive=$gl_cv_next_getopt_h
21485 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21496 if test $ac_cv_header_getopt_h = yes; then
21505 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21506 for ac_header in getopt.h
21508 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21509 if test "x$ac_cv_header_getopt_h" = x""yes; then :
21510 cat >>confdefs.h <<_ACEOF
21511 #define HAVE_GETOPT_H 1
21515 gl_replace_getopt=yes
21522 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21523 for ac_func in getopt_long_only
21525 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21526 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
21527 cat >>confdefs.h <<_ACEOF
21528 #define HAVE_GETOPT_LONG_ONLY 1
21532 gl_replace_getopt=yes
21538 if test -z "$gl_replace_getopt"; then
21539 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
21541 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
21547 cat >>confdefs.h <<_ACEOF
21548 #define HAVE_DECL_OPTRESET $ac_have_decl
21550 if test $ac_have_decl = 1; then :
21553 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
21555 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
21561 cat >>confdefs.h <<_ACEOF
21562 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
21570 if test -z "$gl_replace_getopt"; then
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21572 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21573 if test "${gl_cv_func_getopt_posix+set}" = set; then :
21574 $as_echo_n "(cached) " >&6
21577 if test "$cross_compiling" = yes; then :
21579 mingw*) gl_cv_func_getopt_posix="guessing no";;
21580 darwin*) gl_cv_func_getopt_posix="guessing no";;
21581 *) gl_cv_func_getopt_posix="guessing yes";;
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21588 #include <unistd.h>
21589 #include <stdlib.h>
21590 #include <string.h>
21592 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
21593 # define OPTIND_MIN 0
21595 # define OPTIND_MIN 1
21606 argv[argc++] = "program";
21607 argv[argc++] = "-a";
21608 argv[argc++] = "foo";
21609 argv[argc++] = "bar";
21611 optind = OPTIND_MIN;
21614 c = getopt (argc, argv, "ab");
21617 c = getopt (argc, argv, "ab");
21620 if (!(optind == 2))
21623 /* Some internal state exists at this point. */
21629 argv[argc++] = "program";
21630 argv[argc++] = "donald";
21631 argv[argc++] = "-p";
21632 argv[argc++] = "billy";
21633 argv[argc++] = "duck";
21634 argv[argc++] = "-a";
21635 argv[argc++] = "bar";
21637 optind = OPTIND_MIN;
21640 c = getopt (argc, argv, "+abp:q:");
21643 if (!(strcmp (argv[0], "program") == 0))
21645 if (!(strcmp (argv[1], "donald") == 0))
21647 if (!(strcmp (argv[2], "-p") == 0))
21649 if (!(strcmp (argv[3], "billy") == 0))
21651 if (!(strcmp (argv[4], "duck") == 0))
21653 if (!(strcmp (argv[5], "-a") == 0))
21655 if (!(strcmp (argv[6], "bar") == 0))
21657 if (!(optind == 1))
21660 /* Detect MacOS 10.5 bug. */
21662 char *argv[3] = { "program", "-ab", NULL };
21663 optind = OPTIND_MIN;
21665 if (getopt (2, argv, "ab:") != 'a')
21667 if (getopt (2, argv, "ab:") != '?')
21679 if ac_fn_c_try_run "$LINENO"; then :
21680 gl_cv_func_getopt_posix=yes
21682 gl_cv_func_getopt_posix=no
21684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21685 conftest.$ac_objext conftest.beam conftest.$ac_ext
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21691 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21692 case "$gl_cv_func_getopt_posix" in
21693 *no) gl_replace_getopt=yes ;;
21697 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21699 $as_echo_n "checking for working GNU getopt function... " >&6; }
21700 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
21701 $as_echo_n "(cached) " >&6
21703 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21704 # optstring is necessary for programs like m4 that have POSIX-mandated
21705 # semantics for supporting options interspersed with files.
21706 # Also, since getopt_long is a GNU extension, we require optind=0.
21707 gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
21709 export POSIXLY_CORRECT
21710 if test "$cross_compiling" = yes; then :
21711 case $host_os:$ac_cv_have_decl_optreset in
21712 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
21713 *:yes) gl_cv_func_getopt_gnu=no;;
21714 *) gl_cv_func_getopt_gnu=yes;;
21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21720 #include <getopt.h>
21721 #include <stddef.h>
21722 #include <string.h>
21728 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21729 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21730 OSF/1 5.1, Solaris 10. */
21733 myargv[0] = "conftest";
21737 if (getopt (2, myargv, "+a") != '?')
21740 /* This code succeeds on glibc 2.8, mingw,
21741 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21742 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
21744 char *argv[] = { "program", "-p", "foo", "bar", NULL };
21747 if (getopt (4, argv, "p::") != 'p')
21749 if (optarg != NULL)
21751 if (getopt (4, argv, "p::") != -1)
21756 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
21758 char *argv[] = { "program", "foo", "-p", NULL };
21760 if (getopt (3, argv, "-p") != 1)
21762 if (getopt (3, argv, "-p") != 'p')
21765 /* This code fails on glibc 2.11. */
21767 char *argv[] = { "program", "-b", "-a", NULL };
21768 optind = opterr = 0;
21769 if (getopt (3, argv, "+:a:b") != 'b')
21771 if (getopt (3, argv, "+:a:b") != ':')
21780 if ac_fn_c_try_run "$LINENO"; then :
21781 gl_cv_func_getopt_gnu=yes
21783 gl_cv_func_getopt_gnu=no
21785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21786 conftest.$ac_objext conftest.beam conftest.$ac_ext
21789 if test "$gl_had_POSIXLY_CORRECT" != yes; then
21790 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21795 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21796 if test "$gl_cv_func_getopt_gnu" = "no"; then
21797 gl_replace_getopt=yes
21802 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
21803 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_DECL_GETENV $ac_have_decl
21819 if test -n "$gl_replace_getopt"; then :
21825 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21829 GNULIB_UNISTD_H_GETOPT=1
21838 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21848 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21865 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21866 if test "${ac_cv_c_restrict+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
21869 ac_cv_c_restrict=no
21870 # The order here caters to the fact that C++ does not require restrict.
21871 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h. */
21874 typedef int * int_ptr;
21875 int foo (int_ptr $ac_kw ip) {
21882 int * $ac_kw t = s;
21889 if ac_fn_c_try_compile "$LINENO"; then :
21890 ac_cv_c_restrict=$ac_kw
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 test "$ac_cv_c_restrict" != no && break
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21898 $as_echo "$ac_cv_c_restrict" >&6; }
21900 case $ac_cv_c_restrict in
21902 no) $as_echo "#define restrict /**/" >>confdefs.h
21904 *) cat >>confdefs.h <<_ACEOF
21905 #define restrict $ac_cv_c_restrict
21911 GNULIB_GETTIMEOFDAY=0;
21912 HAVE_GETTIMEOFDAY=1;
21913 HAVE_STRUCT_TIMEVAL=1;
21915 REPLACE_GETTIMEOFDAY=0;
21944 if test $gl_cv_have_include_next = yes; then
21945 gl_cv_next_sys_time_h='<'sys/time.h'>'
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
21948 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
21949 if test "${gl_cv_next_sys_time_h+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21953 if test $ac_cv_header_sys_time_h = yes; then
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21956 #include <sys/time.h>
21960 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21961 *) gl_absname_cpp="$ac_cpp" ;;
21963 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21964 sed -n '\#/sys/time.h#{
21965 s#.*"\(.*/sys/time.h\)".*#\1#
21971 gl_cv_next_sys_time_h='<'sys/time.h'>'
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
21976 $as_echo "$gl_cv_next_sys_time_h" >&6; }
21978 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
21980 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21982 gl_next_as_first_directive='<'sys/time.h'>'
21984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21985 gl_next_as_first_directive=$gl_cv_next_sys_time_h
21987 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
21992 if test $ac_cv_header_sys_time_h != yes; then
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
21997 $as_echo_n "checking for struct timeval... " >&6; }
21998 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h. */
22003 #if HAVE_SYS_TIME_H
22004 #include <sys/time.h>
22011 static struct timeval x; x.tv_sec = x.tv_usec;
22016 if ac_fn_c_try_compile "$LINENO"; then :
22017 gl_cv_sys_struct_timeval=yes
22019 gl_cv_sys_struct_timeval=no
22021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22024 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22025 if test $gl_cv_sys_struct_timeval != yes; then
22026 HAVE_STRUCT_TIMEVAL=0
22030 for gl_func in gettimeofday; do
22031 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22033 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22034 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
22035 $as_echo_n "(cached) " >&6
22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h. */
22040 #if HAVE_SYS_TIME_H
22041 # include <sys/time.h>
22054 if ac_fn_c_try_compile "$LINENO"; then :
22055 eval "$as_gl_Symbol=yes"
22057 eval "$as_gl_Symbol=no"
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061 eval ac_res=\$$as_gl_Symbol
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22063 $as_echo "$ac_res" >&6; }
22064 eval as_val=\$$as_gl_Symbol
22065 if test "x$as_val" = x""yes; then :
22066 cat >>confdefs.h <<_ACEOF
22067 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22070 eval ac_cv_have_decl_$gl_func=yes
22085 REPLACE_ICONV_OPEN=0;
22086 REPLACE_ICONV_UTF=0;
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
22096 $as_echo_n "checking whether included glib is requested... " >&6; }
22098 # Check whether --with-included-glib was given.
22099 if test "${with_included_glib+set}" = set; then :
22100 withval=$with_included_glib; gl_cv_libglib_force_included=$withval
22102 gl_cv_libglib_force_included=no
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
22106 $as_echo "$gl_cv_libglib_force_included" >&6; }
22108 gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
22112 if test "$gl_cv_libglib_use_included" != yes; then
22113 if test "${gl_cv_libglib+set}" = set; then :
22114 $as_echo_n "(cached) " >&6
22121 gl_save_LIBS="$LIBS"
22131 acl_save_prefix="$prefix"
22132 prefix="$acl_final_prefix"
22133 acl_save_exec_prefix="$exec_prefix"
22134 exec_prefix="$acl_final_exec_prefix"
22136 eval additional_includedir=\"$includedir\"
22137 eval additional_libdir=\"$libdir\"
22139 exec_prefix="$acl_save_exec_prefix"
22140 prefix="$acl_save_prefix"
22143 # Check whether --with-libglib-2.0-prefix was given.
22144 if test "${with_libglib_20_prefix+set}" = set; then :
22145 withval=$with_libglib_20_prefix;
22146 if test "X$withval" = "Xno"; then
22149 if test "X$withval" = "X"; then
22151 acl_save_prefix="$prefix"
22152 prefix="$acl_final_prefix"
22153 acl_save_exec_prefix="$exec_prefix"
22154 exec_prefix="$acl_final_exec_prefix"
22156 eval additional_includedir=\"$includedir\"
22157 eval additional_libdir=\"$libdir\"
22159 exec_prefix="$acl_save_exec_prefix"
22160 prefix="$acl_save_prefix"
22163 additional_includedir="$withval/include"
22164 additional_libdir="$withval/$acl_libdirstem"
22165 if test "$acl_libdirstem2" != "$acl_libdirstem" \
22166 && ! test -d "$withval/$acl_libdirstem"; then
22167 additional_libdir="$withval/$acl_libdirstem2"
22177 LIBGLIB_2_0_PREFIX=
22181 names_already_handled=
22182 names_next_round='glib-2.0 '
22183 while test -n "$names_next_round"; do
22184 names_this_round="$names_next_round"
22186 for name in $names_this_round; do
22188 for n in $names_already_handled; do
22189 if test "$n" = "$name"; then
22190 already_handled=yes
22194 if test -z "$already_handled"; then
22195 names_already_handled="$names_already_handled $name"
22196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22197 eval value=\"\$HAVE_LIB$uppername\"
22198 if test -n "$value"; then
22199 if test "$value" = yes; then
22200 eval value=\"\$LIB$uppername\"
22201 test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
22202 eval value=\"\$LTLIB$uppername\"
22203 test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
22212 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22213 if test -n "$acl_shlibext"; then
22214 shrext=".$acl_shlibext" # typically: shrext=.so
22218 if test $use_additional = yes; then
22219 dir="$additional_libdir"
22220 if test -n "$acl_shlibext"; then
22221 if test -f "$dir/$libname$shrext"; then
22223 found_so="$dir/$libname$shrext"
22225 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22226 ver=`(cd "$dir" && \
22227 for f in "$libname$shrext".*; do echo "$f"; done \
22228 | sed -e "s,^$libname$shrext\\\\.,," \
22229 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22230 | sed 1q ) 2>/dev/null`
22231 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22233 found_so="$dir/$libname$shrext.$ver"
22236 eval library_names=\"$acl_library_names_spec\"
22237 for f in $library_names; do
22238 if test -f "$dir/$f"; then
22247 if test "X$found_dir" = "X"; then
22248 if test -f "$dir/$libname.$acl_libext"; then
22250 found_a="$dir/$libname.$acl_libext"
22253 if test "X$found_dir" != "X"; then
22254 if test -f "$dir/$libname.la"; then
22255 found_la="$dir/$libname.la"
22259 if test "X$found_dir" = "X"; then
22260 for x in $LDFLAGS $LTLIBGLIB_2_0; do
22262 acl_save_prefix="$prefix"
22263 prefix="$acl_final_prefix"
22264 acl_save_exec_prefix="$exec_prefix"
22265 exec_prefix="$acl_final_exec_prefix"
22267 exec_prefix="$acl_save_exec_prefix"
22268 prefix="$acl_save_prefix"
22272 dir=`echo "X$x" | sed -e 's/^X-L//'`
22273 if test -n "$acl_shlibext"; then
22274 if test -f "$dir/$libname$shrext"; then
22276 found_so="$dir/$libname$shrext"
22278 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22279 ver=`(cd "$dir" && \
22280 for f in "$libname$shrext".*; do echo "$f"; done \
22281 | sed -e "s,^$libname$shrext\\\\.,," \
22282 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22283 | sed 1q ) 2>/dev/null`
22284 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22286 found_so="$dir/$libname$shrext.$ver"
22289 eval library_names=\"$acl_library_names_spec\"
22290 for f in $library_names; do
22291 if test -f "$dir/$f"; then
22300 if test "X$found_dir" = "X"; then
22301 if test -f "$dir/$libname.$acl_libext"; then
22303 found_a="$dir/$libname.$acl_libext"
22306 if test "X$found_dir" != "X"; then
22307 if test -f "$dir/$libname.la"; then
22308 found_la="$dir/$libname.la"
22313 if test "X$found_dir" != "X"; then
22318 if test "X$found_dir" != "X"; then
22319 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
22320 if test "X$found_so" != "X"; then
22321 if test "$enable_rpath" = no \
22322 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22323 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22324 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22327 for x in $ltrpathdirs; do
22328 if test "X$x" = "X$found_dir"; then
22333 if test -z "$haveit"; then
22334 ltrpathdirs="$ltrpathdirs $found_dir"
22336 if test "$acl_hardcode_direct" = yes; then
22337 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22339 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22340 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22342 for x in $rpathdirs; do
22343 if test "X$x" = "X$found_dir"; then
22348 if test -z "$haveit"; then
22349 rpathdirs="$rpathdirs $found_dir"
22353 for x in $LDFLAGS $LIBGLIB_2_0; do
22355 acl_save_prefix="$prefix"
22356 prefix="$acl_final_prefix"
22357 acl_save_exec_prefix="$exec_prefix"
22358 exec_prefix="$acl_final_exec_prefix"
22360 exec_prefix="$acl_save_exec_prefix"
22361 prefix="$acl_save_prefix"
22363 if test "X$x" = "X-L$found_dir"; then
22368 if test -z "$haveit"; then
22369 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
22371 if test "$acl_hardcode_minus_L" != no; then
22372 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
22374 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
22380 if test "X$found_a" != "X"; then
22381 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
22383 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
22386 additional_includedir=
22387 case "$found_dir" in
22388 */$acl_libdirstem | */$acl_libdirstem/)
22389 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22390 if test "$name" = 'glib-2.0'; then
22391 LIBGLIB_2_0_PREFIX="$basedir"
22393 additional_includedir="$basedir/include"
22395 */$acl_libdirstem2 | */$acl_libdirstem2/)
22396 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22397 if test "$name" = 'glib-2.0'; then
22398 LIBGLIB_2_0_PREFIX="$basedir"
22400 additional_includedir="$basedir/include"
22403 if test "X$additional_includedir" != "X"; then
22404 if test "X$additional_includedir" != "X/usr/include"; then
22406 if test "X$additional_includedir" = "X/usr/local/include"; then
22407 if test -n "$GCC"; then
22409 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22413 if test -z "$haveit"; then
22414 for x in $CPPFLAGS $INCGLIB_2_0; do
22416 acl_save_prefix="$prefix"
22417 prefix="$acl_final_prefix"
22418 acl_save_exec_prefix="$exec_prefix"
22419 exec_prefix="$acl_final_exec_prefix"
22421 exec_prefix="$acl_save_exec_prefix"
22422 prefix="$acl_save_prefix"
22424 if test "X$x" = "X-I$additional_includedir"; then
22429 if test -z "$haveit"; then
22430 if test -d "$additional_includedir"; then
22431 INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
22437 if test -n "$found_la"; then
22438 save_libdir="$libdir"
22439 case "$found_la" in
22440 */* | *\\*) . "$found_la" ;;
22441 *) . "./$found_la" ;;
22443 libdir="$save_libdir"
22444 for dep in $dependency_libs; do
22447 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22448 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22449 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22451 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22452 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22453 if test -n "$GCC"; then
22455 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22459 if test -z "$haveit"; then
22461 for x in $LDFLAGS $LIBGLIB_2_0; do
22463 acl_save_prefix="$prefix"
22464 prefix="$acl_final_prefix"
22465 acl_save_exec_prefix="$exec_prefix"
22466 exec_prefix="$acl_final_exec_prefix"
22468 exec_prefix="$acl_save_exec_prefix"
22469 prefix="$acl_save_prefix"
22471 if test "X$x" = "X-L$additional_libdir"; then
22476 if test -z "$haveit"; then
22477 if test -d "$additional_libdir"; then
22478 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
22482 for x in $LDFLAGS $LTLIBGLIB_2_0; do
22484 acl_save_prefix="$prefix"
22485 prefix="$acl_final_prefix"
22486 acl_save_exec_prefix="$exec_prefix"
22487 exec_prefix="$acl_final_exec_prefix"
22489 exec_prefix="$acl_save_exec_prefix"
22490 prefix="$acl_save_prefix"
22492 if test "X$x" = "X-L$additional_libdir"; then
22497 if test -z "$haveit"; then
22498 if test -d "$additional_libdir"; then
22499 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
22506 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22507 if test "$enable_rpath" != no; then
22509 for x in $rpathdirs; do
22510 if test "X$x" = "X$dir"; then
22515 if test -z "$haveit"; then
22516 rpathdirs="$rpathdirs $dir"
22519 for x in $ltrpathdirs; do
22520 if test "X$x" = "X$dir"; then
22525 if test -z "$haveit"; then
22526 ltrpathdirs="$ltrpathdirs $dir"
22531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22537 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
22538 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
22544 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
22545 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
22551 if test "X$rpathdirs" != "X"; then
22552 if test -n "$acl_hardcode_libdir_separator"; then
22554 for found_dir in $rpathdirs; do
22555 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22557 acl_save_libdir="$libdir"
22559 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22560 libdir="$acl_save_libdir"
22561 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
22563 for found_dir in $rpathdirs; do
22564 acl_save_libdir="$libdir"
22565 libdir="$found_dir"
22566 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22567 libdir="$acl_save_libdir"
22568 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
22572 if test "X$ltrpathdirs" != "X"; then
22573 for found_dir in $ltrpathdirs; do
22574 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
22583 LIBS="$gl_save_LIBS $LIBGLIB_2_0"
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h. */
22587 #ifndef G_BEGIN_DECLS
22588 error this glib.h includes a glibconfig.h from a glib version 1.x
22594 g_string_new ("foo");
22599 if ac_fn_c_try_link "$LINENO"; then :
22601 gl_cv_LIBGLIB="$LIBGLIB_2_0"
22602 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22605 rm -f core conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
22607 if test "$gl_cv_libglib" != yes; then
22608 gl_save_CPPFLAGS="$CPPFLAGS"
22609 CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h. */
22613 #ifndef G_BEGIN_DECLS
22614 error this glib.h includes a glibconfig.h from a glib version 1.x
22620 g_string_new ("foo");
22625 if ac_fn_c_try_link "$LINENO"; then :
22627 gl_cv_LIBGLIB="$LIBGLIB_2_0"
22628 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22629 gl_cv_INCGLIB="$INCGLIB_2_0"
22632 rm -f core conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22634 if test "$gl_cv_libglib" != yes; then
22635 if test -n "$LIBGLIB_2_0_PREFIX"; then
22636 CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
22637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h. */
22640 #ifndef G_BEGIN_DECLS
22641 error this glib.h includes a glibconfig.h from a glib version 1.x
22647 g_string_new ("foo");
22652 if ac_fn_c_try_link "$LINENO"; then :
22654 gl_cv_LIBGLIB="$LIBGLIB_2_0"
22655 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
22656 gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
22659 rm -f core conftest.err conftest.$ac_objext \
22660 conftest$ac_exeext conftest.$ac_ext
22663 CPPFLAGS="$gl_save_CPPFLAGS"
22665 LIBS="$gl_save_LIBS"
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
22670 $as_echo_n "checking for glib... " >&6; }
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
22672 $as_echo "$gl_cv_libglib" >&6; }
22673 if test $gl_cv_libglib = yes; then
22674 LIBGLIB="$gl_cv_LIBGLIB"
22675 LTLIBGLIB="$gl_cv_LTLIBGLIB"
22676 INCGLIB="$gl_cv_INCGLIB"
22678 gl_cv_libglib_use_included=yes
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
22685 $as_echo_n "checking whether to use the included glib... " >&6; }
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
22687 $as_echo "$gl_cv_libglib_use_included" >&6; }
22689 if test "$gl_cv_libglib_use_included" = yes; then
22691 LIBGLIB_H="$LIBGLIB_H glib.h"
22692 LIBGLIB_H="$LIBGLIB_H glibconfig.h"
22693 LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
22694 LIBGLIB_H="$LIBGLIB_H glib/glist.h"
22695 LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
22696 LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
22697 LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
22698 LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
22700 for ac_header in unistd.h
22702 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22703 if test "x$ac_cv_header_unistd_h" = x""yes; then :
22704 cat >>confdefs.h <<_ACEOF
22705 #define HAVE_UNISTD_H 1
22717 if test "$gl_cv_libglib_use_included" = yes; then
22718 INCLUDED_LIBGLIB_TRUE=
22719 INCLUDED_LIBGLIB_FALSE='#'
22721 INCLUDED_LIBGLIB_TRUE='#'
22722 INCLUDED_LIBGLIB_FALSE=
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5
22738 $as_echo_n "checking whether included libunistring is requested... " >&6; }
22740 # Check whether --with-included-libunistring was given.
22741 if test "${with_included_libunistring+set}" = set; then :
22742 withval=$with_included_libunistring; gl_libunistring_force_included=$withval
22744 gl_libunistring_force_included=no
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5
22748 $as_echo "$gl_libunistring_force_included" >&6; }
22749 gl_libunistring_use_included="$gl_libunistring_force_included"
22750 if test "$gl_libunistring_use_included" = yes; then
22751 if test -z "$HAVE_LIBUNISTRING"; then
22752 HAVE_LIBUNISTRING=no
22759 if test -n "$LIBICONV"; then
22775 acl_save_prefix="$prefix"
22776 prefix="$acl_final_prefix"
22777 acl_save_exec_prefix="$exec_prefix"
22778 exec_prefix="$acl_final_exec_prefix"
22780 eval additional_includedir=\"$includedir\"
22781 eval additional_libdir=\"$libdir\"
22783 exec_prefix="$acl_save_exec_prefix"
22784 prefix="$acl_save_prefix"
22787 # Check whether --with-libunistring-prefix was given.
22788 if test "${with_libunistring_prefix+set}" = set; then :
22789 withval=$with_libunistring_prefix;
22790 if test "X$withval" = "Xno"; then
22793 if test "X$withval" = "X"; then
22795 acl_save_prefix="$prefix"
22796 prefix="$acl_final_prefix"
22797 acl_save_exec_prefix="$exec_prefix"
22798 exec_prefix="$acl_final_exec_prefix"
22800 eval additional_includedir=\"$includedir\"
22801 eval additional_libdir=\"$libdir\"
22803 exec_prefix="$acl_save_exec_prefix"
22804 prefix="$acl_save_prefix"
22807 additional_includedir="$withval/include"
22808 additional_libdir="$withval/$acl_libdirstem"
22809 if test "$acl_libdirstem2" != "$acl_libdirstem" \
22810 && ! test -d "$withval/$acl_libdirstem"; then
22811 additional_libdir="$withval/$acl_libdirstem2"
22821 LIBUNISTRING_PREFIX=
22825 names_already_handled=
22826 names_next_round='unistring '
22827 while test -n "$names_next_round"; do
22828 names_this_round="$names_next_round"
22830 for name in $names_this_round; do
22832 for n in $names_already_handled; do
22833 if test "$n" = "$name"; then
22834 already_handled=yes
22838 if test -z "$already_handled"; then
22839 names_already_handled="$names_already_handled $name"
22840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22841 eval value=\"\$HAVE_LIB$uppername\"
22842 if test -n "$value"; then
22843 if test "$value" = yes; then
22844 eval value=\"\$LIB$uppername\"
22845 test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
22846 eval value=\"\$LTLIB$uppername\"
22847 test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
22856 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22857 if test -n "$acl_shlibext"; then
22858 shrext=".$acl_shlibext" # typically: shrext=.so
22862 if test $use_additional = yes; then
22863 dir="$additional_libdir"
22864 if test -n "$acl_shlibext"; then
22865 if test -f "$dir/$libname$shrext"; then
22867 found_so="$dir/$libname$shrext"
22869 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22870 ver=`(cd "$dir" && \
22871 for f in "$libname$shrext".*; do echo "$f"; done \
22872 | sed -e "s,^$libname$shrext\\\\.,," \
22873 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22874 | sed 1q ) 2>/dev/null`
22875 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22877 found_so="$dir/$libname$shrext.$ver"
22880 eval library_names=\"$acl_library_names_spec\"
22881 for f in $library_names; do
22882 if test -f "$dir/$f"; then
22891 if test "X$found_dir" = "X"; then
22892 if test -f "$dir/$libname.$acl_libext"; then
22894 found_a="$dir/$libname.$acl_libext"
22897 if test "X$found_dir" != "X"; then
22898 if test -f "$dir/$libname.la"; then
22899 found_la="$dir/$libname.la"
22903 if test "X$found_dir" = "X"; then
22904 for x in $LDFLAGS $LTLIBUNISTRING; do
22906 acl_save_prefix="$prefix"
22907 prefix="$acl_final_prefix"
22908 acl_save_exec_prefix="$exec_prefix"
22909 exec_prefix="$acl_final_exec_prefix"
22911 exec_prefix="$acl_save_exec_prefix"
22912 prefix="$acl_save_prefix"
22916 dir=`echo "X$x" | sed -e 's/^X-L//'`
22917 if test -n "$acl_shlibext"; then
22918 if test -f "$dir/$libname$shrext"; then
22920 found_so="$dir/$libname$shrext"
22922 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22923 ver=`(cd "$dir" && \
22924 for f in "$libname$shrext".*; do echo "$f"; done \
22925 | sed -e "s,^$libname$shrext\\\\.,," \
22926 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22927 | sed 1q ) 2>/dev/null`
22928 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22930 found_so="$dir/$libname$shrext.$ver"
22933 eval library_names=\"$acl_library_names_spec\"
22934 for f in $library_names; do
22935 if test -f "$dir/$f"; then
22944 if test "X$found_dir" = "X"; then
22945 if test -f "$dir/$libname.$acl_libext"; then
22947 found_a="$dir/$libname.$acl_libext"
22950 if test "X$found_dir" != "X"; then
22951 if test -f "$dir/$libname.la"; then
22952 found_la="$dir/$libname.la"
22957 if test "X$found_dir" != "X"; then
22962 if test "X$found_dir" != "X"; then
22963 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
22964 if test "X$found_so" != "X"; then
22965 if test "$enable_rpath" = no \
22966 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22967 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22968 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22971 for x in $ltrpathdirs; do
22972 if test "X$x" = "X$found_dir"; then
22977 if test -z "$haveit"; then
22978 ltrpathdirs="$ltrpathdirs $found_dir"
22980 if test "$acl_hardcode_direct" = yes; then
22981 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22983 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22984 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
22986 for x in $rpathdirs; do
22987 if test "X$x" = "X$found_dir"; then
22992 if test -z "$haveit"; then
22993 rpathdirs="$rpathdirs $found_dir"
22997 for x in $LDFLAGS $LIBUNISTRING; do
22999 acl_save_prefix="$prefix"
23000 prefix="$acl_final_prefix"
23001 acl_save_exec_prefix="$exec_prefix"
23002 exec_prefix="$acl_final_exec_prefix"
23004 exec_prefix="$acl_save_exec_prefix"
23005 prefix="$acl_save_prefix"
23007 if test "X$x" = "X-L$found_dir"; then
23012 if test -z "$haveit"; then
23013 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
23015 if test "$acl_hardcode_minus_L" != no; then
23016 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23018 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23024 if test "X$found_a" != "X"; then
23025 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
23027 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
23030 additional_includedir=
23031 case "$found_dir" in
23032 */$acl_libdirstem | */$acl_libdirstem/)
23033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23034 if test "$name" = 'unistring'; then
23035 LIBUNISTRING_PREFIX="$basedir"
23037 additional_includedir="$basedir/include"
23039 */$acl_libdirstem2 | */$acl_libdirstem2/)
23040 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23041 if test "$name" = 'unistring'; then
23042 LIBUNISTRING_PREFIX="$basedir"
23044 additional_includedir="$basedir/include"
23047 if test "X$additional_includedir" != "X"; then
23048 if test "X$additional_includedir" != "X/usr/include"; then
23050 if test "X$additional_includedir" = "X/usr/local/include"; then
23051 if test -n "$GCC"; then
23053 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23057 if test -z "$haveit"; then
23058 for x in $CPPFLAGS $INCUNISTRING; do
23060 acl_save_prefix="$prefix"
23061 prefix="$acl_final_prefix"
23062 acl_save_exec_prefix="$exec_prefix"
23063 exec_prefix="$acl_final_exec_prefix"
23065 exec_prefix="$acl_save_exec_prefix"
23066 prefix="$acl_save_prefix"
23068 if test "X$x" = "X-I$additional_includedir"; then
23073 if test -z "$haveit"; then
23074 if test -d "$additional_includedir"; then
23075 INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
23081 if test -n "$found_la"; then
23082 save_libdir="$libdir"
23083 case "$found_la" in
23084 */* | *\\*) . "$found_la" ;;
23085 *) . "./$found_la" ;;
23087 libdir="$save_libdir"
23088 for dep in $dependency_libs; do
23091 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23092 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23093 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23095 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23096 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23097 if test -n "$GCC"; then
23099 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23103 if test -z "$haveit"; then
23105 for x in $LDFLAGS $LIBUNISTRING; do
23107 acl_save_prefix="$prefix"
23108 prefix="$acl_final_prefix"
23109 acl_save_exec_prefix="$exec_prefix"
23110 exec_prefix="$acl_final_exec_prefix"
23112 exec_prefix="$acl_save_exec_prefix"
23113 prefix="$acl_save_prefix"
23115 if test "X$x" = "X-L$additional_libdir"; then
23120 if test -z "$haveit"; then
23121 if test -d "$additional_libdir"; then
23122 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
23126 for x in $LDFLAGS $LTLIBUNISTRING; do
23128 acl_save_prefix="$prefix"
23129 prefix="$acl_final_prefix"
23130 acl_save_exec_prefix="$exec_prefix"
23131 exec_prefix="$acl_final_exec_prefix"
23133 exec_prefix="$acl_save_exec_prefix"
23134 prefix="$acl_save_prefix"
23136 if test "X$x" = "X-L$additional_libdir"; then
23141 if test -z "$haveit"; then
23142 if test -d "$additional_libdir"; then
23143 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
23150 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23151 if test "$enable_rpath" != no; then
23153 for x in $rpathdirs; do
23154 if test "X$x" = "X$dir"; then
23159 if test -z "$haveit"; then
23160 rpathdirs="$rpathdirs $dir"
23163 for x in $ltrpathdirs; do
23164 if test "X$x" = "X$dir"; then
23169 if test -z "$haveit"; then
23170 ltrpathdirs="$ltrpathdirs $dir"
23175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23178 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23181 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
23182 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
23188 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23189 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
23195 if test "X$rpathdirs" != "X"; then
23196 if test -n "$acl_hardcode_libdir_separator"; then
23198 for found_dir in $rpathdirs; do
23199 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23201 acl_save_libdir="$libdir"
23203 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23204 libdir="$acl_save_libdir"
23205 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23207 for found_dir in $rpathdirs; do
23208 acl_save_libdir="$libdir"
23209 libdir="$found_dir"
23210 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23211 libdir="$acl_save_libdir"
23212 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23216 if test "X$ltrpathdirs" != "X"; then
23217 for found_dir in $ltrpathdirs; do
23218 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
23228 ac_save_CPPFLAGS="$CPPFLAGS"
23230 for element in $INCUNISTRING; do
23232 for x in $CPPFLAGS; do
23234 acl_save_prefix="$prefix"
23235 prefix="$acl_final_prefix"
23236 acl_save_exec_prefix="$exec_prefix"
23237 exec_prefix="$acl_final_exec_prefix"
23239 exec_prefix="$acl_save_exec_prefix"
23240 prefix="$acl_save_prefix"
23242 if test "X$x" = "X$element"; then
23247 if test -z "$haveit"; then
23248 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
23254 $as_echo_n "checking for libunistring... " >&6; }
23255 if test "${ac_cv_libunistring+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23259 ac_save_LIBS="$LIBS"
23260 case " $LIBUNISTRING" in
23261 *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
23262 *) LIBS="$LIBUNISTRING $LIBS" ;;
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h. */
23266 #include <uniconv.h>
23270 u8_strconv_from_locale((char*)0);
23275 if ac_fn_c_try_link "$LINENO"; then :
23276 ac_cv_libunistring=yes
23278 ac_cv_libunistring='no, trying again together with libiconv'
23280 rm -f core conftest.err conftest.$ac_objext \
23281 conftest$ac_exeext conftest.$ac_ext
23282 LIBS="$ac_save_LIBS"
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
23286 $as_echo "$ac_cv_libunistring" >&6; }
23287 if test "$ac_cv_libunistring" = yes; then
23288 HAVE_LIBUNISTRING=yes
23290 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
23293 $as_echo_n "checking how to link with libunistring... " >&6; }
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
23295 $as_echo "$LIBUNISTRING" >&6; }
23297 HAVE_LIBUNISTRING=no
23298 CPPFLAGS="$ac_save_CPPFLAGS"
23301 LIBUNISTRING_PREFIX=
23310 if test "$ac_cv_libunistring" != yes; then
23311 unset ac_cv_libunistring
23312 glus_save_LIBS="$LIBS"
23313 LIBS="$LIBS $LIBICONV"
23329 acl_save_prefix="$prefix"
23330 prefix="$acl_final_prefix"
23331 acl_save_exec_prefix="$exec_prefix"
23332 exec_prefix="$acl_final_exec_prefix"
23334 eval additional_includedir=\"$includedir\"
23335 eval additional_libdir=\"$libdir\"
23337 exec_prefix="$acl_save_exec_prefix"
23338 prefix="$acl_save_prefix"
23341 # Check whether --with-libunistring-prefix was given.
23342 if test "${with_libunistring_prefix+set}" = set; then :
23343 withval=$with_libunistring_prefix;
23344 if test "X$withval" = "Xno"; then
23347 if test "X$withval" = "X"; then
23349 acl_save_prefix="$prefix"
23350 prefix="$acl_final_prefix"
23351 acl_save_exec_prefix="$exec_prefix"
23352 exec_prefix="$acl_final_exec_prefix"
23354 eval additional_includedir=\"$includedir\"
23355 eval additional_libdir=\"$libdir\"
23357 exec_prefix="$acl_save_exec_prefix"
23358 prefix="$acl_save_prefix"
23361 additional_includedir="$withval/include"
23362 additional_libdir="$withval/$acl_libdirstem"
23363 if test "$acl_libdirstem2" != "$acl_libdirstem" \
23364 && ! test -d "$withval/$acl_libdirstem"; then
23365 additional_libdir="$withval/$acl_libdirstem2"
23375 LIBUNISTRING_PREFIX=
23379 names_already_handled=
23380 names_next_round='unistring '
23381 while test -n "$names_next_round"; do
23382 names_this_round="$names_next_round"
23384 for name in $names_this_round; do
23386 for n in $names_already_handled; do
23387 if test "$n" = "$name"; then
23388 already_handled=yes
23392 if test -z "$already_handled"; then
23393 names_already_handled="$names_already_handled $name"
23394 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23395 eval value=\"\$HAVE_LIB$uppername\"
23396 if test -n "$value"; then
23397 if test "$value" = yes; then
23398 eval value=\"\$LIB$uppername\"
23399 test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
23400 eval value=\"\$LTLIB$uppername\"
23401 test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
23410 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23411 if test -n "$acl_shlibext"; then
23412 shrext=".$acl_shlibext" # typically: shrext=.so
23416 if test $use_additional = yes; then
23417 dir="$additional_libdir"
23418 if test -n "$acl_shlibext"; then
23419 if test -f "$dir/$libname$shrext"; then
23421 found_so="$dir/$libname$shrext"
23423 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23424 ver=`(cd "$dir" && \
23425 for f in "$libname$shrext".*; do echo "$f"; done \
23426 | sed -e "s,^$libname$shrext\\\\.,," \
23427 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23428 | sed 1q ) 2>/dev/null`
23429 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23431 found_so="$dir/$libname$shrext.$ver"
23434 eval library_names=\"$acl_library_names_spec\"
23435 for f in $library_names; do
23436 if test -f "$dir/$f"; then
23445 if test "X$found_dir" = "X"; then
23446 if test -f "$dir/$libname.$acl_libext"; then
23448 found_a="$dir/$libname.$acl_libext"
23451 if test "X$found_dir" != "X"; then
23452 if test -f "$dir/$libname.la"; then
23453 found_la="$dir/$libname.la"
23457 if test "X$found_dir" = "X"; then
23458 for x in $LDFLAGS $LTLIBUNISTRING; do
23460 acl_save_prefix="$prefix"
23461 prefix="$acl_final_prefix"
23462 acl_save_exec_prefix="$exec_prefix"
23463 exec_prefix="$acl_final_exec_prefix"
23465 exec_prefix="$acl_save_exec_prefix"
23466 prefix="$acl_save_prefix"
23470 dir=`echo "X$x" | sed -e 's/^X-L//'`
23471 if test -n "$acl_shlibext"; then
23472 if test -f "$dir/$libname$shrext"; then
23474 found_so="$dir/$libname$shrext"
23476 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23477 ver=`(cd "$dir" && \
23478 for f in "$libname$shrext".*; do echo "$f"; done \
23479 | sed -e "s,^$libname$shrext\\\\.,," \
23480 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23481 | sed 1q ) 2>/dev/null`
23482 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23484 found_so="$dir/$libname$shrext.$ver"
23487 eval library_names=\"$acl_library_names_spec\"
23488 for f in $library_names; do
23489 if test -f "$dir/$f"; then
23498 if test "X$found_dir" = "X"; then
23499 if test -f "$dir/$libname.$acl_libext"; then
23501 found_a="$dir/$libname.$acl_libext"
23504 if test "X$found_dir" != "X"; then
23505 if test -f "$dir/$libname.la"; then
23506 found_la="$dir/$libname.la"
23511 if test "X$found_dir" != "X"; then
23516 if test "X$found_dir" != "X"; then
23517 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
23518 if test "X$found_so" != "X"; then
23519 if test "$enable_rpath" = no \
23520 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23521 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23522 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23525 for x in $ltrpathdirs; do
23526 if test "X$x" = "X$found_dir"; then
23531 if test -z "$haveit"; then
23532 ltrpathdirs="$ltrpathdirs $found_dir"
23534 if test "$acl_hardcode_direct" = yes; then
23535 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23537 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23538 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23540 for x in $rpathdirs; do
23541 if test "X$x" = "X$found_dir"; then
23546 if test -z "$haveit"; then
23547 rpathdirs="$rpathdirs $found_dir"
23551 for x in $LDFLAGS $LIBUNISTRING; do
23553 acl_save_prefix="$prefix"
23554 prefix="$acl_final_prefix"
23555 acl_save_exec_prefix="$exec_prefix"
23556 exec_prefix="$acl_final_exec_prefix"
23558 exec_prefix="$acl_save_exec_prefix"
23559 prefix="$acl_save_prefix"
23561 if test "X$x" = "X-L$found_dir"; then
23566 if test -z "$haveit"; then
23567 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
23569 if test "$acl_hardcode_minus_L" != no; then
23570 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
23572 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23578 if test "X$found_a" != "X"; then
23579 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
23581 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
23584 additional_includedir=
23585 case "$found_dir" in
23586 */$acl_libdirstem | */$acl_libdirstem/)
23587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23588 if test "$name" = 'unistring'; then
23589 LIBUNISTRING_PREFIX="$basedir"
23591 additional_includedir="$basedir/include"
23593 */$acl_libdirstem2 | */$acl_libdirstem2/)
23594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23595 if test "$name" = 'unistring'; then
23596 LIBUNISTRING_PREFIX="$basedir"
23598 additional_includedir="$basedir/include"
23601 if test "X$additional_includedir" != "X"; then
23602 if test "X$additional_includedir" != "X/usr/include"; then
23604 if test "X$additional_includedir" = "X/usr/local/include"; then
23605 if test -n "$GCC"; then
23607 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23611 if test -z "$haveit"; then
23612 for x in $CPPFLAGS $INCUNISTRING; do
23614 acl_save_prefix="$prefix"
23615 prefix="$acl_final_prefix"
23616 acl_save_exec_prefix="$exec_prefix"
23617 exec_prefix="$acl_final_exec_prefix"
23619 exec_prefix="$acl_save_exec_prefix"
23620 prefix="$acl_save_prefix"
23622 if test "X$x" = "X-I$additional_includedir"; then
23627 if test -z "$haveit"; then
23628 if test -d "$additional_includedir"; then
23629 INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
23635 if test -n "$found_la"; then
23636 save_libdir="$libdir"
23637 case "$found_la" in
23638 */* | *\\*) . "$found_la" ;;
23639 *) . "./$found_la" ;;
23641 libdir="$save_libdir"
23642 for dep in $dependency_libs; do
23645 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23646 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23647 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23649 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23650 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23651 if test -n "$GCC"; then
23653 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23657 if test -z "$haveit"; then
23659 for x in $LDFLAGS $LIBUNISTRING; do
23661 acl_save_prefix="$prefix"
23662 prefix="$acl_final_prefix"
23663 acl_save_exec_prefix="$exec_prefix"
23664 exec_prefix="$acl_final_exec_prefix"
23666 exec_prefix="$acl_save_exec_prefix"
23667 prefix="$acl_save_prefix"
23669 if test "X$x" = "X-L$additional_libdir"; then
23674 if test -z "$haveit"; then
23675 if test -d "$additional_libdir"; then
23676 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
23680 for x in $LDFLAGS $LTLIBUNISTRING; do
23682 acl_save_prefix="$prefix"
23683 prefix="$acl_final_prefix"
23684 acl_save_exec_prefix="$exec_prefix"
23685 exec_prefix="$acl_final_exec_prefix"
23687 exec_prefix="$acl_save_exec_prefix"
23688 prefix="$acl_save_prefix"
23690 if test "X$x" = "X-L$additional_libdir"; then
23695 if test -z "$haveit"; then
23696 if test -d "$additional_libdir"; then
23697 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
23704 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23705 if test "$enable_rpath" != no; then
23707 for x in $rpathdirs; do
23708 if test "X$x" = "X$dir"; then
23713 if test -z "$haveit"; then
23714 rpathdirs="$rpathdirs $dir"
23717 for x in $ltrpathdirs; do
23718 if test "X$x" = "X$dir"; then
23723 if test -z "$haveit"; then
23724 ltrpathdirs="$ltrpathdirs $dir"
23729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23732 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23735 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
23736 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
23742 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
23743 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
23749 if test "X$rpathdirs" != "X"; then
23750 if test -n "$acl_hardcode_libdir_separator"; then
23752 for found_dir in $rpathdirs; do
23753 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23755 acl_save_libdir="$libdir"
23757 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23758 libdir="$acl_save_libdir"
23759 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23761 for found_dir in $rpathdirs; do
23762 acl_save_libdir="$libdir"
23763 libdir="$found_dir"
23764 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23765 libdir="$acl_save_libdir"
23766 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
23770 if test "X$ltrpathdirs" != "X"; then
23771 for found_dir in $ltrpathdirs; do
23772 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
23782 ac_save_CPPFLAGS="$CPPFLAGS"
23784 for element in $INCUNISTRING; do
23786 for x in $CPPFLAGS; do
23788 acl_save_prefix="$prefix"
23789 prefix="$acl_final_prefix"
23790 acl_save_exec_prefix="$exec_prefix"
23791 exec_prefix="$acl_final_exec_prefix"
23793 exec_prefix="$acl_save_exec_prefix"
23794 prefix="$acl_save_prefix"
23796 if test "X$x" = "X$element"; then
23801 if test -z "$haveit"; then
23802 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
23808 $as_echo_n "checking for libunistring... " >&6; }
23809 if test "${ac_cv_libunistring+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23813 ac_save_LIBS="$LIBS"
23814 case " $LIBUNISTRING" in
23815 *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
23816 *) LIBS="$LIBUNISTRING $LIBS" ;;
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23820 #include <uniconv.h>
23824 u8_strconv_from_locale((char*)0);
23829 if ac_fn_c_try_link "$LINENO"; then :
23830 ac_cv_libunistring=yes
23832 ac_cv_libunistring='no, consider installing GNU libunistring'
23834 rm -f core conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
23836 LIBS="$ac_save_LIBS"
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
23840 $as_echo "$ac_cv_libunistring" >&6; }
23841 if test "$ac_cv_libunistring" = yes; then
23842 HAVE_LIBUNISTRING=yes
23844 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
23847 $as_echo_n "checking how to link with libunistring... " >&6; }
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
23849 $as_echo "$LIBUNISTRING" >&6; }
23851 HAVE_LIBUNISTRING=no
23852 CPPFLAGS="$ac_save_CPPFLAGS"
23855 LIBUNISTRING_PREFIX=
23864 if test -n "$LIBUNISTRING"; then
23865 LIBUNISTRING="$LIBUNISTRING $LIBICONV"
23866 LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
23868 LIBS="$glus_save_LIBS"
23886 acl_save_prefix="$prefix"
23887 prefix="$acl_final_prefix"
23888 acl_save_exec_prefix="$exec_prefix"
23889 exec_prefix="$acl_final_exec_prefix"
23891 eval additional_includedir=\"$includedir\"
23892 eval additional_libdir=\"$libdir\"
23894 exec_prefix="$acl_save_exec_prefix"
23895 prefix="$acl_save_prefix"
23898 # Check whether --with-libunistring-prefix was given.
23899 if test "${with_libunistring_prefix+set}" = set; then :
23900 withval=$with_libunistring_prefix;
23901 if test "X$withval" = "Xno"; then
23904 if test "X$withval" = "X"; then
23906 acl_save_prefix="$prefix"
23907 prefix="$acl_final_prefix"
23908 acl_save_exec_prefix="$exec_prefix"
23909 exec_prefix="$acl_final_exec_prefix"
23911 eval additional_includedir=\"$includedir\"
23912 eval additional_libdir=\"$libdir\"
23914 exec_prefix="$acl_save_exec_prefix"
23915 prefix="$acl_save_prefix"
23918 additional_includedir="$withval/include"
23919 additional_libdir="$withval/$acl_libdirstem"
23920 if test "$acl_libdirstem2" != "$acl_libdirstem" \
23921 && ! test -d "$withval/$acl_libdirstem"; then
23922 additional_libdir="$withval/$acl_libdirstem2"
23932 LIBUNISTRING_PREFIX=
23936 names_already_handled=
23937 names_next_round='unistring '
23938 while test -n "$names_next_round"; do
23939 names_this_round="$names_next_round"
23941 for name in $names_this_round; do
23943 for n in $names_already_handled; do
23944 if test "$n" = "$name"; then
23945 already_handled=yes
23949 if test -z "$already_handled"; then
23950 names_already_handled="$names_already_handled $name"
23951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23952 eval value=\"\$HAVE_LIB$uppername\"
23953 if test -n "$value"; then
23954 if test "$value" = yes; then
23955 eval value=\"\$LIB$uppername\"
23956 test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value"
23957 eval value=\"\$LTLIB$uppername\"
23958 test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value"
23967 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23968 if test -n "$acl_shlibext"; then
23969 shrext=".$acl_shlibext" # typically: shrext=.so
23973 if test $use_additional = yes; then
23974 dir="$additional_libdir"
23975 if test -n "$acl_shlibext"; then
23976 if test -f "$dir/$libname$shrext"; then
23978 found_so="$dir/$libname$shrext"
23980 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23981 ver=`(cd "$dir" && \
23982 for f in "$libname$shrext".*; do echo "$f"; done \
23983 | sed -e "s,^$libname$shrext\\\\.,," \
23984 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23985 | sed 1q ) 2>/dev/null`
23986 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23988 found_so="$dir/$libname$shrext.$ver"
23991 eval library_names=\"$acl_library_names_spec\"
23992 for f in $library_names; do
23993 if test -f "$dir/$f"; then
24002 if test "X$found_dir" = "X"; then
24003 if test -f "$dir/$libname.$acl_libext"; then
24005 found_a="$dir/$libname.$acl_libext"
24008 if test "X$found_dir" != "X"; then
24009 if test -f "$dir/$libname.la"; then
24010 found_la="$dir/$libname.la"
24014 if test "X$found_dir" = "X"; then
24015 for x in $LDFLAGS $LTLIBUNISTRING; do
24017 acl_save_prefix="$prefix"
24018 prefix="$acl_final_prefix"
24019 acl_save_exec_prefix="$exec_prefix"
24020 exec_prefix="$acl_final_exec_prefix"
24022 exec_prefix="$acl_save_exec_prefix"
24023 prefix="$acl_save_prefix"
24027 dir=`echo "X$x" | sed -e 's/^X-L//'`
24028 if test -n "$acl_shlibext"; then
24029 if test -f "$dir/$libname$shrext"; then
24031 found_so="$dir/$libname$shrext"
24033 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24034 ver=`(cd "$dir" && \
24035 for f in "$libname$shrext".*; do echo "$f"; done \
24036 | sed -e "s,^$libname$shrext\\\\.,," \
24037 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24038 | sed 1q ) 2>/dev/null`
24039 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24041 found_so="$dir/$libname$shrext.$ver"
24044 eval library_names=\"$acl_library_names_spec\"
24045 for f in $library_names; do
24046 if test -f "$dir/$f"; then
24055 if test "X$found_dir" = "X"; then
24056 if test -f "$dir/$libname.$acl_libext"; then
24058 found_a="$dir/$libname.$acl_libext"
24061 if test "X$found_dir" != "X"; then
24062 if test -f "$dir/$libname.la"; then
24063 found_la="$dir/$libname.la"
24068 if test "X$found_dir" != "X"; then
24073 if test "X$found_dir" != "X"; then
24074 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name"
24075 if test "X$found_so" != "X"; then
24076 if test "$enable_rpath" = no \
24077 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
24078 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
24079 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24082 for x in $ltrpathdirs; do
24083 if test "X$x" = "X$found_dir"; then
24088 if test -z "$haveit"; then
24089 ltrpathdirs="$ltrpathdirs $found_dir"
24091 if test "$acl_hardcode_direct" = yes; then
24092 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24094 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24095 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24097 for x in $rpathdirs; do
24098 if test "X$x" = "X$found_dir"; then
24103 if test -z "$haveit"; then
24104 rpathdirs="$rpathdirs $found_dir"
24108 for x in $LDFLAGS $LIBUNISTRING; do
24110 acl_save_prefix="$prefix"
24111 prefix="$acl_final_prefix"
24112 acl_save_exec_prefix="$exec_prefix"
24113 exec_prefix="$acl_final_exec_prefix"
24115 exec_prefix="$acl_save_exec_prefix"
24116 prefix="$acl_save_prefix"
24118 if test "X$x" = "X-L$found_dir"; then
24123 if test -z "$haveit"; then
24124 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir"
24126 if test "$acl_hardcode_minus_L" != no; then
24127 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so"
24129 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
24135 if test "X$found_a" != "X"; then
24136 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a"
24138 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name"
24141 additional_includedir=
24142 case "$found_dir" in
24143 */$acl_libdirstem | */$acl_libdirstem/)
24144 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24145 if test "$name" = 'unistring'; then
24146 LIBUNISTRING_PREFIX="$basedir"
24148 additional_includedir="$basedir/include"
24150 */$acl_libdirstem2 | */$acl_libdirstem2/)
24151 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
24152 if test "$name" = 'unistring'; then
24153 LIBUNISTRING_PREFIX="$basedir"
24155 additional_includedir="$basedir/include"
24158 if test "X$additional_includedir" != "X"; then
24159 if test "X$additional_includedir" != "X/usr/include"; then
24161 if test "X$additional_includedir" = "X/usr/local/include"; then
24162 if test -n "$GCC"; then
24164 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24168 if test -z "$haveit"; then
24169 for x in $CPPFLAGS $INCUNISTRING; do
24171 acl_save_prefix="$prefix"
24172 prefix="$acl_final_prefix"
24173 acl_save_exec_prefix="$exec_prefix"
24174 exec_prefix="$acl_final_exec_prefix"
24176 exec_prefix="$acl_save_exec_prefix"
24177 prefix="$acl_save_prefix"
24179 if test "X$x" = "X-I$additional_includedir"; then
24184 if test -z "$haveit"; then
24185 if test -d "$additional_includedir"; then
24186 INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir"
24192 if test -n "$found_la"; then
24193 save_libdir="$libdir"
24194 case "$found_la" in
24195 */* | *\\*) . "$found_la" ;;
24196 *) . "./$found_la" ;;
24198 libdir="$save_libdir"
24199 for dep in $dependency_libs; do
24202 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24203 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
24204 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
24206 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
24207 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
24208 if test -n "$GCC"; then
24210 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24214 if test -z "$haveit"; then
24216 for x in $LDFLAGS $LIBUNISTRING; do
24218 acl_save_prefix="$prefix"
24219 prefix="$acl_final_prefix"
24220 acl_save_exec_prefix="$exec_prefix"
24221 exec_prefix="$acl_final_exec_prefix"
24223 exec_prefix="$acl_save_exec_prefix"
24224 prefix="$acl_save_prefix"
24226 if test "X$x" = "X-L$additional_libdir"; then
24231 if test -z "$haveit"; then
24232 if test -d "$additional_libdir"; then
24233 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir"
24237 for x in $LDFLAGS $LTLIBUNISTRING; do
24239 acl_save_prefix="$prefix"
24240 prefix="$acl_final_prefix"
24241 acl_save_exec_prefix="$exec_prefix"
24242 exec_prefix="$acl_final_exec_prefix"
24244 exec_prefix="$acl_save_exec_prefix"
24245 prefix="$acl_save_prefix"
24247 if test "X$x" = "X-L$additional_libdir"; then
24252 if test -z "$haveit"; then
24253 if test -d "$additional_libdir"; then
24254 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir"
24261 dir=`echo "X$dep" | sed -e 's/^X-R//'`
24262 if test "$enable_rpath" != no; then
24264 for x in $rpathdirs; do
24265 if test "X$x" = "X$dir"; then
24270 if test -z "$haveit"; then
24271 rpathdirs="$rpathdirs $dir"
24274 for x in $ltrpathdirs; do
24275 if test "X$x" = "X$dir"; then
24280 if test -z "$haveit"; then
24281 ltrpathdirs="$ltrpathdirs $dir"
24286 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24289 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24292 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep"
24293 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep"
24299 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name"
24300 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name"
24306 if test "X$rpathdirs" != "X"; then
24307 if test -n "$acl_hardcode_libdir_separator"; then
24309 for found_dir in $rpathdirs; do
24310 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24312 acl_save_libdir="$libdir"
24314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
24315 libdir="$acl_save_libdir"
24316 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
24318 for found_dir in $rpathdirs; do
24319 acl_save_libdir="$libdir"
24320 libdir="$found_dir"
24321 eval flag=\"$acl_hardcode_libdir_flag_spec\"
24322 libdir="$acl_save_libdir"
24323 LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag"
24327 if test "X$ltrpathdirs" != "X"; then
24328 for found_dir in $ltrpathdirs; do
24329 LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir"
24339 ac_save_CPPFLAGS="$CPPFLAGS"
24341 for element in $INCUNISTRING; do
24343 for x in $CPPFLAGS; do
24345 acl_save_prefix="$prefix"
24346 prefix="$acl_final_prefix"
24347 acl_save_exec_prefix="$exec_prefix"
24348 exec_prefix="$acl_final_exec_prefix"
24350 exec_prefix="$acl_save_exec_prefix"
24351 prefix="$acl_save_prefix"
24353 if test "X$x" = "X$element"; then
24358 if test -z "$haveit"; then
24359 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5
24365 $as_echo_n "checking for libunistring... " >&6; }
24366 if test "${ac_cv_libunistring+set}" = set; then :
24367 $as_echo_n "(cached) " >&6
24370 ac_save_LIBS="$LIBS"
24371 case " $LIBUNISTRING" in
24372 *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;;
24373 *) LIBS="$LIBUNISTRING $LIBS" ;;
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24377 #include <uniconv.h>
24381 u8_strconv_from_locale((char*)0);
24386 if ac_fn_c_try_link "$LINENO"; then :
24387 ac_cv_libunistring=yes
24389 ac_cv_libunistring='no, consider installing GNU libunistring'
24391 rm -f core conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
24393 LIBS="$ac_save_LIBS"
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5
24397 $as_echo "$ac_cv_libunistring" >&6; }
24398 if test "$ac_cv_libunistring" = yes; then
24399 HAVE_LIBUNISTRING=yes
24401 $as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5
24404 $as_echo_n "checking how to link with libunistring... " >&6; }
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5
24406 $as_echo "$LIBUNISTRING" >&6; }
24408 HAVE_LIBUNISTRING=no
24409 CPPFLAGS="$ac_save_CPPFLAGS"
24412 LIBUNISTRING_PREFIX=
24422 if test $HAVE_LIBUNISTRING = yes; then
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5
24424 $as_echo_n "checking for libunistring version... " >&6; }
24425 if test "${gl_cv_libunistring_version+set}" = set; then :
24426 $as_echo_n "(cached) " >&6
24428 if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion" "#include <unistring/version.h>"; then :
24432 if test $gl_libunistring_hexversion = 9; then
24433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h. */
24435 #include <unistring/cdefs.h>
24444 if ac_fn_c_try_compile "$LINENO"; then :
24445 gl_cv_libunistring_version092=true
24447 gl_cv_libunistring_version092=false
24449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
24450 if $gl_cv_libunistring_version092; then
24452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h. */
24454 #include <unistr.h>
24457 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24458 *) gl_absname_cpp="$ac_cpp" ;;
24460 gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24461 sed -n '\#/unistr.h#{
24462 s#.*"\(.*/unistr.h\)".*#\1#
24468 if test -n "$gl_cv_absolute_unistr_h" \
24469 && grep 'Copy no more than N units of SRC to DEST. Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then
24470 gl_libunistring_hexversion=2307
24472 gl_libunistring_hexversion=2306
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24477 #include <unicase.h>
24478 casing_suffix_context_t ct;
24487 if ac_fn_c_try_compile "$LINENO"; then :
24488 gl_cv_libunistring_version091=true
24490 gl_cv_libunistring_version091=false
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493 if $gl_cv_libunistring_version091; then
24494 gl_libunistring_hexversion=2305
24496 gl_libunistring_hexversion=2304
24500 gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536`
24501 gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256`
24502 gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256`
24503 gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor"
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5
24507 $as_echo "$gl_cv_libunistring_version" >&6; }
24508 LIBUNISTRING_VERSION="$gl_cv_libunistring_version"
24511 if test $HAVE_LIBUNISTRING = no; then
24512 gl_libunistring_use_included=yes
24530 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
24531 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
24537 cat >>confdefs.h <<_ACEOF
24538 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
24543 GNULIB_DUPLOCALE=0;
24545 REPLACE_DUPLOCALE=0;
24560 if test $gt_cv_c_wchar_t = no; then
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24565 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24566 if test "${gl_cv_decl_null_works+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24570 /* end confdefs.h. */
24571 #include <stddef.h>
24572 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24582 if ac_fn_c_try_compile "$LINENO"; then :
24583 gl_cv_decl_null_works=yes
24585 gl_cv_decl_null_works=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24590 $as_echo "$gl_cv_decl_null_works" >&6; }
24591 if test $gl_cv_decl_null_works = no; then
24595 if test -n "$STDDEF_H"; then
24608 if test $gl_cv_have_include_next = yes; then
24609 gl_cv_next_stddef_h='<'stddef.h'>'
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24612 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24613 if test "${gl_cv_next_stddef_h+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24617 if test $ac_cv_header_stddef_h = yes; then
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24620 #include <stddef.h>
24624 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24625 *) gl_absname_cpp="$ac_cpp" ;;
24627 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24628 sed -n '\#/stddef.h#{
24629 s#.*"\(.*/stddef.h\)".*#\1#
24635 gl_cv_next_stddef_h='<'stddef.h'>'
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24640 $as_echo "$gl_cv_next_stddef_h" >&6; }
24642 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24644 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24645 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24646 gl_next_as_first_directive='<'stddef.h'>'
24648 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24649 gl_next_as_first_directive=$gl_cv_next_stddef_h
24651 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24679 GNULIB_UTIMENSAT=0;
24693 REPLACE_FUTIMENS=0;
24699 REPLACE_UTIMENSAT=0;
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
24707 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
24708 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24711 rm -f conftest.sym conftest.file
24712 echo >conftest.file
24713 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24714 if test "$cross_compiling" = yes; then :
24715 ac_cv_func_lstat_dereferences_slashed_symlink=no
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h. */
24719 $ac_includes_default
24724 /* Linux will dereference the symlink and fail, as required by POSIX.
24725 That is better in the sense that it means we will not
24726 have to compile and use the lstat wrapper. */
24727 return lstat ("conftest.sym/", &sbuf) == 0;
24732 if ac_fn_c_try_run "$LINENO"; then :
24733 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24735 ac_cv_func_lstat_dereferences_slashed_symlink=no
24737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738 conftest.$ac_objext conftest.beam conftest.$ac_ext
24742 # If the `ln -s' command failed, then we probably don't even
24743 # have an lstat function.
24744 ac_cv_func_lstat_dereferences_slashed_symlink=no
24746 rm -f conftest.sym conftest.file
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24750 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24752 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24754 cat >>confdefs.h <<_ACEOF
24755 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24759 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
24768 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
24774 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
24775 if test "${gl_cv_func_malloc_posix+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24780 /* end confdefs.h. */
24785 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24793 if ac_fn_c_try_compile "$LINENO"; then :
24794 gl_cv_func_malloc_posix=yes
24796 gl_cv_func_malloc_posix=no
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24802 $as_echo "$gl_cv_func_malloc_posix" >&6; }
24805 for ac_header in stdlib.h
24807 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24808 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
24809 cat >>confdefs.h <<_ACEOF
24810 #define HAVE_STDLIB_H 1
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24818 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24819 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24822 if test "$cross_compiling" = yes; then :
24823 ac_cv_func_malloc_0_nonnull=no
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h. */
24827 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24828 # include <stdlib.h>
24836 return ! malloc (0);
24841 if ac_fn_c_try_run "$LINENO"; then :
24842 ac_cv_func_malloc_0_nonnull=yes
24844 ac_cv_func_malloc_0_nonnull=no
24846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24847 conftest.$ac_objext conftest.beam conftest.$ac_ext
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24852 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24853 if test $ac_cv_func_malloc_0_nonnull = yes; then :
24854 gl_cv_func_malloc_0_nonnull=1
24856 gl_cv_func_malloc_0_nonnull=0
24860 cat >>confdefs.h <<_ACEOF
24861 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
24867 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
24868 if test "${ac_cv_func_mbrtowc+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h. */
24878 char const s[] = "";
24881 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
24886 if ac_fn_c_try_link "$LINENO"; then :
24887 ac_cv_func_mbrtowc=yes
24889 ac_cv_func_mbrtowc=no
24891 rm -f core conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
24895 $as_echo "$ac_cv_func_mbrtowc" >&6; }
24896 if test $ac_cv_func_mbrtowc = yes; then
24898 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
24908 GNULIB_MBSRTOWCS=0;
24909 GNULIB_MBSNRTOWCS=0;
24911 GNULIB_WCSRTOMBS=0;
24912 GNULIB_WCSNRTOMBS=0;
24924 HAVE_DECL_WCWIDTH=1;
24925 REPLACE_MBSTATE_T=0;
24931 REPLACE_MBSRTOWCS=0;
24932 REPLACE_MBSNRTOWCS=0;
24934 REPLACE_WCSRTOMBS=0;
24935 REPLACE_WCSNRTOMBS=0;
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
24952 $as_echo_n "checking for a traditional japanese locale... " >&6; }
24953 if test "${gt_cv_locale_ja+set}" = set; then :
24954 $as_echo_n "(cached) " >&6
24957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h. */
24960 #include <locale.h>
24962 #if HAVE_LANGINFO_CODESET
24963 # include <langinfo.h>
24965 #include <stdlib.h>
24966 #include <string.h>
24972 /* Check whether the given locale name is recognized by the system. */
24973 if (setlocale (LC_ALL, "") == NULL) return 1;
24974 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24975 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24976 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24977 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24978 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24979 some unit tests fail. */
24980 #if HAVE_LANGINFO_CODESET
24982 const char *cs = nl_langinfo (CODESET);
24983 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
24988 /* On Cygwin, avoid locale names without encoding suffix, because the
24989 locale_charset() function relies on the encoding suffix. Note that
24990 LC_ALL is set on the command line. */
24991 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24993 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
24994 on Cygwin 1.5.x. */
24995 if (MB_CUR_MAX == 1)
24997 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24998 This excludes the UTF-8 encoding. */
24999 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25000 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
25001 for (p = buf; *p != '\0'; p++)
25002 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
25008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25009 (eval $ac_link) 2>&5
25011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012 test $ac_status = 0; } && test -s conftest$ac_exeext; then
25013 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25014 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25015 # configure script would override the LC_ALL setting. Likewise for
25016 # LC_CTYPE, which is also set at the beginning of the configure script.
25017 # Test for the AIX locale name.
25018 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25019 gt_cv_locale_ja=ja_JP
25021 # Test for the locale name with explicit encoding suffix.
25022 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25023 gt_cv_locale_ja=ja_JP.EUC-JP
25025 # Test for the HP-UX, OSF/1, NetBSD locale name.
25026 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25027 gt_cv_locale_ja=ja_JP.eucJP
25029 # Test for the IRIX, FreeBSD locale name.
25030 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25031 gt_cv_locale_ja=ja_JP.EUC
25033 # Test for the Solaris 7 locale name.
25034 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25037 # Special test for NetBSD 1.6.
25038 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
25039 gt_cv_locale_ja=ja_JP.eucJP
25042 gt_cv_locale_ja=none
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
25054 $as_echo "$gt_cv_locale_ja" >&6; }
25055 LOCALE_JA=$gt_cv_locale_ja
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
25062 $as_echo_n "checking for a transitional chinese locale... " >&6; }
25063 if test "${gt_cv_locale_zh_CN+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25068 /* end confdefs.h. */
25070 #include <locale.h>
25071 #include <stdlib.h>
25073 #if HAVE_LANGINFO_CODESET
25074 # include <langinfo.h>
25076 #include <stdlib.h>
25077 #include <string.h>
25083 /* Check whether the given locale name is recognized by the system. */
25084 if (setlocale (LC_ALL, "") == NULL) return 1;
25085 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
25086 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
25087 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
25088 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
25089 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
25090 some unit tests fail. */
25091 #if HAVE_LANGINFO_CODESET
25093 const char *cs = nl_langinfo (CODESET);
25094 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
25099 /* On Cygwin, avoid locale names without encoding suffix, because the
25100 locale_charset() function relies on the encoding suffix. Note that
25101 LC_ALL is set on the command line. */
25102 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
25104 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
25105 This excludes the UTF-8 encoding. */
25106 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25107 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
25108 for (p = buf; *p != '\0'; p++)
25109 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
25111 /* Check whether a typical GB18030 multibyte sequence is recognized as a
25112 single wide character. This excludes the GB2312 and GBK encodings. */
25113 if (mblen ("\203\062\332\066", 5) != 4)
25119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25120 (eval $ac_link) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; } && test -s conftest$ac_exeext; then
25124 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25125 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25126 # configure script would override the LC_ALL setting. Likewise for
25127 # LC_CTYPE, which is also set at the beginning of the configure script.
25128 # Test for the locale name without encoding suffix.
25129 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25130 gt_cv_locale_zh_CN=zh_CN
25132 # Test for the locale name with explicit encoding suffix.
25133 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25134 gt_cv_locale_zh_CN=zh_CN.GB18030
25137 gt_cv_locale_zh_CN=none
25141 # If there was a link error, due to mblen(), the system is so old that
25142 # it certainly doesn't have a chinese locale.
25143 gt_cv_locale_zh_CN=none
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
25149 $as_echo "$gt_cv_locale_zh_CN" >&6; }
25150 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
25156 $as_echo_n "checking for a french Unicode locale... " >&6; }
25157 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h. */
25164 #include <locale.h>
25166 #if HAVE_LANGINFO_CODESET
25167 # include <langinfo.h>
25169 #include <stdlib.h>
25170 #include <string.h>
25174 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
25175 imitates locale dependent behaviour by looking at the environment
25176 variables, and all locales use the UTF-8 encoding. */
25177 #if !(defined __BEOS__ || defined __HAIKU__)
25178 /* Check whether the given locale name is recognized by the system. */
25179 if (setlocale (LC_ALL, "") == NULL) return 1;
25180 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
25181 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
25182 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
25183 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
25184 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
25185 some unit tests fail. */
25186 # if HAVE_LANGINFO_CODESET
25188 const char *cs = nl_langinfo (CODESET);
25189 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
25194 /* On Cygwin, avoid locale names without encoding suffix, because the
25195 locale_charset() function relies on the encoding suffix. Note that
25196 LC_ALL is set on the command line. */
25197 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
25199 /* Check whether in the abbreviation of the second month, the second
25200 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
25201 two bytes long, with UTF-8 encoding. */
25202 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
25203 if (strftime (buf, sizeof (buf), "%b", &t) < 4
25204 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
25207 /* Check whether the decimal separator is a comma.
25208 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
25209 are nl_langinfo(RADIXCHAR) are both ".". */
25210 if (localeconv () ->decimal_point[0] != ',') return 1;
25215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25216 (eval $ac_link) 2>&5
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; } && test -s conftest$ac_exeext; then
25220 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
25221 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
25222 # configure script would override the LC_ALL setting. Likewise for
25223 # LC_CTYPE, which is also set at the beginning of the configure script.
25224 # Test for the usual locale name.
25225 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25226 gt_cv_locale_fr_utf8=fr_FR
25228 # Test for the locale name with explicit encoding suffix.
25229 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25230 gt_cv_locale_fr_utf8=fr_FR.UTF-8
25232 # Test for the Solaris 7 locale name.
25233 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
25234 gt_cv_locale_fr_utf8=fr.UTF-8
25237 gt_cv_locale_fr_utf8=none
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
25246 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
25247 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
25255 GNULIB_RAWMEMCHR=0;
25258 GNULIB_STRCHRNUL=0;
25266 GNULIB_STRCASESTR=0;
25273 GNULIB_MBSCASECMP=0;
25274 GNULIB_MBSNCASECMP=0;
25275 GNULIB_MBSPCASECMP=0;
25276 GNULIB_MBSCASESTR=0;
25283 GNULIB_STRSIGNAL=0;
25284 GNULIB_STRVERSCMP=0;
25287 HAVE_DECL_MEMMEM=1;
25289 HAVE_DECL_MEMRCHR=1;
25294 HAVE_DECL_STRDUP=1;
25295 HAVE_DECL_STRNDUP=1;
25296 HAVE_DECL_STRNLEN=1;
25300 HAVE_DECL_STRTOK_R=1;
25301 HAVE_DECL_STRSIGNAL=1;
25308 REPLACE_STRCASESTR=0;
25309 REPLACE_STRERROR=0;
25313 REPLACE_STRSIGNAL=0;
25314 REPLACE_STRTOK_R=0;
25315 UNDEFINE_STRTOK_R=0;
25354 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25355 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25356 # irrelevant for anonymous mappings.
25357 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25358 if test "x$ac_cv_func_mmap" = x""yes; then :
25365 # Try to allow MAP_ANONYMOUS.
25366 gl_have_mmap_anonymous=no
25367 if test $gl_have_mmap = yes; then
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25369 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25373 #include <sys/mman.h>
25374 #ifdef MAP_ANONYMOUS
25375 I cant identify this map.
25379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25380 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
25381 gl_have_mmap_anonymous=yes
25385 if test $gl_have_mmap_anonymous != yes; then
25386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387 /* end confdefs.h. */
25389 #include <sys/mman.h>
25391 I cant identify this map.
25395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25396 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
25398 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25400 gl_have_mmap_anonymous=yes
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25406 $as_echo "$gl_have_mmap_anonymous" >&6; }
25407 if test $gl_have_mmap_anonymous = yes; then
25409 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25437 if test $ac_cv_func_memchr = yes; then
25438 # Detect platform-specific bugs in some versions of glibc:
25439 # memchr should not dereference anything with length 0
25440 # http://bugzilla.redhat.com/499689
25441 # memchr should not dereference overestimated length after a match
25442 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
25443 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
25444 # Assume that memchr works on platforms that lack mprotect.
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
25446 $as_echo_n "checking whether memchr works... " >&6; }
25447 if test "${gl_cv_func_memchr_works+set}" = set; then :
25448 $as_echo_n "(cached) " >&6
25450 if test "$cross_compiling" = yes; then :
25451 gl_cv_func_memchr_works="guessing no"
25453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25454 /* end confdefs.h. */
25456 #include <string.h>
25457 #if HAVE_SYS_MMAN_H
25458 # include <fcntl.h>
25459 # include <unistd.h>
25460 # include <sys/types.h>
25461 # include <sys/mman.h>
25463 # define MAP_FILE 0
25471 char *fence = NULL;
25472 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
25473 # if HAVE_MAP_ANONYMOUS
25474 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
25476 # else /* !HAVE_MAP_ANONYMOUS */
25477 const int flags = MAP_FILE | MAP_PRIVATE;
25478 int fd = open ("/dev/zero", O_RDONLY, 0666);
25482 int pagesize = getpagesize ();
25484 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
25486 if (two_pages != (char *)(-1)
25487 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
25488 fence = two_pages + pagesize;
25493 if (memchr (fence, 0, 0))
25495 strcpy (fence - 9, "12345678");
25496 if (memchr (fence - 9, 0, 79) != fence - 1)
25505 if ac_fn_c_try_run "$LINENO"; then :
25506 gl_cv_func_memchr_works=yes
25508 gl_cv_func_memchr_works=no
25510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25511 conftest.$ac_objext conftest.beam conftest.$ac_ext
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
25516 $as_echo "$gl_cv_func_memchr_works" >&6; }
25517 if test "$gl_cv_func_memchr_works" != yes; then
25523 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
25532 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
25535 for ac_header in bp-sym.h
25537 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25538 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
25539 cat >>confdefs.h <<_ACEOF
25540 #define HAVE_BP_SYM_H 1
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
25555 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
25556 if test "${gl_cv_minmax_in_limits_h+set}" = set; then :
25557 $as_echo_n "(cached) " >&6
25559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25560 /* end confdefs.h. */
25561 #include <limits.h>
25562 int x = MIN (42, 17);
25571 if ac_fn_c_try_compile "$LINENO"; then :
25572 gl_cv_minmax_in_limits_h=yes
25574 gl_cv_minmax_in_limits_h=no
25576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
25579 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
25580 if test $gl_cv_minmax_in_limits_h = yes; then
25582 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
25592 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
25593 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 #include <sys/param.h>
25599 int x = MIN (42, 17);
25608 if ac_fn_c_try_compile "$LINENO"; then :
25609 gl_cv_minmax_in_sys_param_h=yes
25611 gl_cv_minmax_in_sys_param_h=no
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
25616 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
25617 if test $gl_cv_minmax_in_sys_param_h = yes; then
25619 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
25627 gl_cv_c_multiarch=no
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25630 #ifndef __APPLE_CC__
25631 not a universal capable compiler
25636 if ac_fn_c_try_compile "$LINENO"; then :
25640 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
25641 if test -n "$prev"; then
25643 i?86 | x86_64 | ppc | ppc64)
25644 if test -z "$arch" || test "$arch" = "$word"; then
25647 gl_cv_c_multiarch=yes
25653 if test "x$word" = "x-arch"; then
25660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 if test $gl_cv_c_multiarch = yes; then
25663 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25665 APPLE_UNIVERSAL_BUILD=1
25667 APPLE_UNIVERSAL_BUILD=0
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
25674 $as_echo_n "checking for promoted mode_t type... " >&6; }
25675 if test "${gl_cv_promoted_mode_t+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680 /* end confdefs.h. */
25681 #include <sys/types.h>
25685 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
25690 if ac_fn_c_try_compile "$LINENO"; then :
25691 gl_cv_promoted_mode_t='int'
25693 gl_cv_promoted_mode_t='mode_t'
25695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
25699 $as_echo "$gl_cv_promoted_mode_t" >&6; }
25701 cat >>confdefs.h <<_ACEOF
25702 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
25722 GNULIB_POSIX_SPAWN=0;
25723 GNULIB_POSIX_SPAWNP=0;
25724 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;
25725 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0;
25726 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;
25727 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;
25728 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;
25729 GNULIB_POSIX_SPAWNATTR_INIT=0;
25730 GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;
25731 GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;
25732 GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;
25733 GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;
25734 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;
25735 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;
25736 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;
25737 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;
25738 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;
25739 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;
25740 GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;
25741 GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;
25742 GNULIB_POSIX_SPAWNATTR_DESTROY=0;
25743 HAVE_POSIX_SPAWN=1;
25744 HAVE_POSIX_SPAWNATTR_T=1;
25745 HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
25747 REPLACE_POSIX_SPAWN=0;
25764 if test $ac_cv_func_posix_spawn != yes; then
25771 if test $ac_cv_func_posix_spawn = yes; then
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5
25775 $as_echo_n "checking whether posix_spawn works... " >&6; }
25776 if test "${gl_cv_func_posix_spawn_works+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25779 if test $cross_compiling = no; then
25780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h. */
25785 #include <signal.h>
25787 #include <stdbool.h>
25789 #include <stdlib.h>
25790 #include <string.h>
25791 #include <unistd.h>
25792 #include <sys/types.h>
25793 #include <sys/wait.h>
25795 extern char **environ;
25797 #ifndef STDIN_FILENO
25798 # define STDIN_FILENO 0
25800 #ifndef STDOUT_FILENO
25801 # define STDOUT_FILENO 1
25803 #ifndef STDERR_FILENO
25804 # define STDERR_FILENO 2
25808 # define WTERMSIG(x) ((x) & 0x7f)
25811 # define WIFEXITED(x) (WTERMSIG (x) == 0)
25813 #ifndef WEXITSTATUS
25814 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
25817 #define CHILD_PROGRAM_FILENAME "/non/exist/ent"
25822 if (0 <= fd && fd <= 2)
25824 int f = fd_safer (dup (fd));
25837 char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL };
25839 sigset_t blocked_signals;
25840 sigset_t fatal_signal_set;
25841 posix_spawn_file_actions_t actions;
25842 bool actions_allocated;
25843 posix_spawnattr_t attrs;
25844 bool attrs_allocated;
25850 setvbuf (stdout, NULL, _IOFBF, 0);
25851 puts ("This should be seen only once.");
25852 if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0)
25854 perror ("cannot create pipe");
25857 sigprocmask (SIG_SETMASK, NULL, &blocked_signals);
25858 sigemptyset (&fatal_signal_set);
25859 sigaddset (&fatal_signal_set, SIGINT);
25860 sigaddset (&fatal_signal_set, SIGTERM);
25861 sigaddset (&fatal_signal_set, SIGHUP);
25862 sigaddset (&fatal_signal_set, SIGPIPE);
25863 sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL);
25864 actions_allocated = false;
25865 attrs_allocated = false;
25866 if ((err = posix_spawn_file_actions_init (&actions)) != 0
25867 || (actions_allocated = true,
25868 (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0
25869 || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0
25870 || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0
25871 || (err = posix_spawnattr_init (&attrs)) != 0
25872 || (attrs_allocated = true,
25873 (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0
25874 || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0)
25875 || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0))
25877 if (actions_allocated)
25878 posix_spawn_file_actions_destroy (&actions);
25879 if (attrs_allocated)
25880 posix_spawnattr_destroy (&attrs);
25881 sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
25887 perror ("subprocess failed");
25891 posix_spawn_file_actions_destroy (&actions);
25892 posix_spawnattr_destroy (&attrs);
25893 sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
25897 while (waitpid (child, &status, 0) != child)
25899 if (!WIFEXITED (status))
25901 fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
25904 exitstatus = WEXITSTATUS (status);
25905 if (exitstatus != 127)
25907 fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
25914 if ac_fn_c_try_link "$LINENO"; then :
25915 if test -s conftest$ac_exeext \
25916 && ./conftest$ac_exeext > conftest.out \
25917 && echo 'This should be seen only once.' > conftest.ok \
25918 && cmp conftest.out conftest.ok > /dev/null; then
25919 gl_cv_func_posix_spawn_works=yes
25921 gl_cv_func_posix_spawn_works=no
25924 gl_cv_func_posix_spawn_works=no
25926 rm -f core conftest.err conftest.$ac_objext \
25927 conftest$ac_exeext conftest.$ac_ext
25928 if test $gl_cv_func_posix_spawn_works = yes; then
25929 if test "$cross_compiling" = yes; then :
25930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25932 as_fn_error "cannot run test program while cross compiling
25933 See \`config.log' for more details." "$LINENO" 5; }
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h. */
25938 /* Test whether posix_spawn_file_actions_addopen supports filename arguments
25939 that contain special characters such as '*'. */
25943 #include <signal.h>
25945 #include <stdbool.h>
25947 #include <string.h>
25948 #include <unistd.h>
25949 #include <sys/types.h>
25950 #include <sys/wait.h>
25952 extern char **environ;
25954 #ifndef STDIN_FILENO
25955 # define STDIN_FILENO 0
25957 #ifndef STDOUT_FILENO
25958 # define STDOUT_FILENO 1
25960 #ifndef STDERR_FILENO
25961 # define STDERR_FILENO 2
25965 # define WTERMSIG(x) ((x) & 0x7f)
25968 # define WIFEXITED(x) (WTERMSIG (x) == 0)
25970 #ifndef WEXITSTATUS
25971 # define WEXITSTATUS(x) (((x) >> 8) & 0xff)
25974 #define CHILD_PROGRAM_FILENAME "conftest"
25975 #define DATA_FILENAME "conftest%=*#?"
25981 char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL };
25982 posix_spawn_file_actions_t actions;
25983 bool actions_allocated;
25989 /* Create a data file with specific contents. */
25990 fp = fopen (DATA_FILENAME, "wb");
25993 perror ("cannot create data file");
25996 fwrite ("Halle Potta", 1, 11, fp);
25997 if (fflush (fp) || fclose (fp))
25999 perror ("cannot prepare data file");
26003 /* Avoid reading from our stdin, as it could block. */
26004 freopen ("/dev/null", "rb", stdin);
26006 /* Test whether posix_spawn_file_actions_addopen with this file name
26007 actually works, but spawning a child that reads from this file. */
26008 actions_allocated = false;
26009 if ((err = posix_spawn_file_actions_init (&actions)) != 0
26010 || (actions_allocated = true,
26011 (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0
26012 || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0))
26014 if (actions_allocated)
26015 posix_spawn_file_actions_destroy (&actions);
26017 perror ("subprocess failed");
26020 posix_spawn_file_actions_destroy (&actions);
26022 while (waitpid (child, &status, 0) != child)
26024 if (!WIFEXITED (status))
26026 fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status);
26029 exitstatus = WEXITSTATUS (status);
26030 if (exitstatus != 0)
26032 fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus);
26043 /* See if reading from STDIN_FILENO yields the expected contents. */
26044 if (fread (buf, 1, sizeof (buf), stdin) == 11
26045 && memcmp (buf, "Halle Potta", 11) == 0)
26052 cleanup_then_die (int sig)
26054 /* Clean up data file. */
26055 unlink (DATA_FILENAME);
26057 /* Re-raise the signal and die from it. */
26058 signal (sig, SIG_DFL);
26063 main (int argc, char *argv[])
26067 if (!(argc > 1 && strcmp (argv[1], "-child") == 0))
26069 /* This is the parent process. */
26070 signal (SIGINT, cleanup_then_die);
26071 signal (SIGTERM, cleanup_then_die);
26073 signal (SIGHUP, cleanup_then_die);
26076 exitstatus = parent_main ();
26080 /* This is the child process. */
26082 exitstatus = child_main ();
26084 unlink (DATA_FILENAME);
26089 if ac_fn_c_try_run "$LINENO"; then :
26092 gl_cv_func_posix_spawn_works=no
26094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26095 conftest.$ac_objext conftest.beam conftest.$ac_ext
26101 aix*) gl_cv_func_posix_spawn_works="guessing no";;
26102 *) gl_cv_func_posix_spawn_works="guessing yes";;
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5
26108 $as_echo "$gl_cv_func_posix_spawn_works" >&6; }
26110 case "$gl_cv_func_posix_spawn_works" in
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5
26113 $as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; }
26114 if test "${gl_cv_func_spawnattr_setschedpolicy+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26118 /* end confdefs.h. */
26121 #if POSIX_SPAWN_SETSCHEDULER
26122 POSIX scheduling supported
26126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26127 $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
26128 gl_cv_func_spawnattr_setschedpolicy=yes
26130 gl_cv_func_spawnattr_setschedpolicy=no
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5
26137 $as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; }
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5
26139 $as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; }
26140 if test "${gl_cv_func_spawnattr_setschedparam+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144 /* end confdefs.h. */
26147 #if POSIX_SPAWN_SETSCHEDPARAM
26148 POSIX scheduling supported
26152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26153 $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then :
26154 gl_cv_func_spawnattr_setschedparam=yes
26156 gl_cv_func_spawnattr_setschedparam=no
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5
26163 $as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; }
26165 *) REPLACE_POSIX_SPAWN=1 ;;
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
26171 $as_echo_n "checking for shared library path variable... " >&6; }
26172 if test "${acl_cv_libpath+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26177 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
26179 rm -f ./conftest.sh
26180 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
26184 $as_echo "$acl_cv_libpath" >&6; }
26185 shlibpath_var="$acl_cv_shlibpath_var"
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
26189 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
26190 # Check whether --enable-relocatable was given.
26191 if test "${enable_relocatable+set}" = set; then :
26192 enableval=$enable_relocatable; if test "$enableval" != no; then
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
26204 $as_echo "$RELOCATABLE" >&6; }
26208 if test "X$prefix" = "XNONE"; then
26209 reloc_final_prefix="$ac_default_prefix"
26211 reloc_final_prefix="$prefix"
26214 cat >>confdefs.h <<_ACEOF
26215 #define INSTALLPREFIX "${reloc_final_prefix}"
26218 if test $RELOCATABLE = yes; then
26220 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
26230 use_elf_origin_trick=no
26231 if test $RELOCATABLE = yes; then
26232 # --enable-relocatable implies --disable-rpath
26234 for ac_header in mach-o/dyld.h
26236 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
26237 if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then :
26238 cat >>confdefs.h <<_ACEOF
26239 #define HAVE_MACH_O_DYLD_H 1
26246 for ac_func in _NSGetExecutablePath
26248 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
26249 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
26250 cat >>confdefs.h <<_ACEOF
26251 #define HAVE__NSGETEXECUTABLEPATH 1
26258 mingw*) is_noop=yes ;;
26259 linux*) use_elf_origin_trick=yes ;;
26261 if test $is_noop = yes; then
26262 RELOCATABLE_LDFLAGS=:
26265 if test $use_elf_origin_trick = yes; then
26266 case "$ac_aux_dir" in
26267 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
26268 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
26270 RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
26273 INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
26275 case "$ac_aux_dir" in
26276 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
26277 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
26282 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
26283 RELOCATABLE_VIA_LD_TRUE=
26284 RELOCATABLE_VIA_LD_FALSE='#'
26286 RELOCATABLE_VIA_LD_TRUE='#'
26287 RELOCATABLE_VIA_LD_FALSE=
26297 RELOCATABLE_STRIP=':'
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
26312 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
26313 if test "${ac_cv_win_or_dos+set}" = set; then :
26314 $as_echo_n "(cached) " >&6
26317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318 /* end confdefs.h. */
26324 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
26325 neither MSDOS nor Windows
26331 if ac_fn_c_try_compile "$LINENO"; then :
26332 ac_cv_win_or_dos=yes
26334 ac_cv_win_or_dos=no
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
26340 $as_echo "$ac_cv_win_or_dos" >&6; }
26342 if test x"$ac_cv_win_or_dos" = xyes; then
26343 ac_fs_accepts_drive_letter_prefix=1
26344 ac_fs_backslash_is_file_name_separator=1
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
26346 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
26347 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
26348 $as_echo_n "(cached) " >&6
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h. */
26358 #if defined __CYGWIN__
26359 drive letters are always absolute
26365 if ac_fn_c_try_compile "$LINENO"; then :
26366 ac_cv_drive_letter_can_be_relative=yes
26368 ac_cv_drive_letter_can_be_relative=no
26370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
26374 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
26375 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
26376 ac_fs_drive_letter_can_be_relative=1
26378 ac_fs_drive_letter_can_be_relative=0
26381 ac_fs_accepts_drive_letter_prefix=0
26382 ac_fs_backslash_is_file_name_separator=0
26383 ac_fs_drive_letter_can_be_relative=0
26387 cat >>confdefs.h <<_ACEOF
26388 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
26395 cat >>confdefs.h <<_ACEOF
26396 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
26401 cat >>confdefs.h <<_ACEOF
26402 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26408 $as_echo_n "checking for ssize_t... " >&6; }
26409 if test "${gt_cv_ssize_t+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h. */
26414 #include <sys/types.h>
26418 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26424 if ac_fn_c_try_compile "$LINENO"; then :
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26432 $as_echo "$gt_cv_ssize_t" >&6; }
26433 if test $gt_cv_ssize_t = no; then
26435 $as_echo "#define ssize_t int" >>confdefs.h
26445 GNULIB_SIGNAL_H_SIGPIPE=0;
26446 GNULIB_SIGPROCMASK=0;
26447 GNULIB_SIGACTION=0;
26448 HAVE_POSIX_SIGNALBLOCKING=1;
26452 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26454 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26463 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26464 if test "${ac_cv_type_uid_t+set}" = set; then :
26465 $as_echo_n "(cached) " >&6
26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h. */
26469 #include <sys/types.h>
26472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26473 $EGREP "uid_t" >/dev/null 2>&1; then :
26474 ac_cv_type_uid_t=yes
26476 ac_cv_type_uid_t=no
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26482 $as_echo "$ac_cv_type_uid_t" >&6; }
26483 if test $ac_cv_type_uid_t = no; then
26485 $as_echo "#define uid_t int" >>confdefs.h
26488 $as_echo "#define gid_t int" >>confdefs.h
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
26510 $as_echo_n "checking for SIGPIPE... " >&6; }
26511 if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then :
26512 $as_echo_n "(cached) " >&6
26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26516 /* end confdefs.h. */
26518 #include <signal.h>
26519 #if !defined SIGPIPE
26524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26525 $EGREP "booboo" >/dev/null 2>&1; then :
26526 gl_cv_header_signal_h_SIGPIPE=no
26528 gl_cv_header_signal_h_SIGPIPE=yes
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
26535 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
26538 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
26539 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
26545 cat >>confdefs.h <<_ACEOF
26546 #define HAVE_DECL_SNPRINTF $ac_have_decl
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26561 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
26562 if test "${ac_cv_header_stdbool_h+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h. */
26568 #include <stdbool.h>
26570 "error: bool is not defined"
26573 "error: false is not defined"
26576 "error: false is not 0"
26579 "error: true is not defined"
26582 "error: true is not 1"
26584 #ifndef __bool_true_false_are_defined
26585 "error: __bool_true_false_are_defined is not defined"
26588 struct s { _Bool s: 1; _Bool t; } s;
26590 char a[true == 1 ? 1 : -1];
26591 char b[false == 0 ? 1 : -1];
26592 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
26593 char d[(bool) 0.5 == true ? 1 : -1];
26595 char f[(_Bool) 0.0 == false ? 1 : -1];
26597 char h[sizeof (_Bool)];
26598 char i[sizeof s.t];
26599 enum { j = false, k = true, l = false * true, m = true * 256 };
26601 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
26602 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
26603 #if defined __xlc__ || defined __GNUC__
26604 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
26605 reported by James Lemley on 2005-10-05; see
26606 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
26607 This test is not quite right, since xlc is allowed to
26608 reject this program, as the initializer for xlcbug is
26609 not one of the forms that C requires support for.
26610 However, doing the test right would require a run-time
26611 test, and that would make cross-compilation harder.
26612 Let us hope that IBM fixes the xlc bug, and also adds
26613 support for this kind of constant expression. In the
26614 meantime, this test will reject xlc, which is OK, since
26615 our stdbool.h substitute should suffice. We also test
26616 this with GCC, where it should work, to detect more
26617 quickly whether someone messes up the test in the
26619 char digs[] = "0123456789";
26620 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
26622 /* Catch a bug in an HP-UX C compiler. See
26623 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26624 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26635 /* Refer to every declared value, to avoid compiler optimizations. */
26636 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
26637 + !m + !n + !o + !p + !q + !pq);
26643 if ac_fn_c_try_compile "$LINENO"; then :
26644 ac_cv_header_stdbool_h=yes
26646 ac_cv_header_stdbool_h=no
26648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26651 $as_echo "$ac_cv_header_stdbool_h" >&6; }
26652 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26653 if test "x$ac_cv_type__Bool" = x""yes; then :
26655 cat >>confdefs.h <<_ACEOF
26656 #define HAVE__BOOL 1
26662 if test $ac_cv_header_stdbool_h = yes; then
26664 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
26674 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
26675 if test "${gl_cv_prog_as_underscore+set}" = set; then :
26676 $as_echo_n "(cached) " >&6
26678 cat > conftest.c <<EOF
26680 extern "C" int foo (void);
26682 int foo(void) { return 0; }
26684 # Look for the assembly language name in the .s file.
26685 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
26686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26687 (eval $ac_try) 2>&5
26689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26690 test $ac_status = 0; }; } >/dev/null 2>&1
26691 if grep _foo conftest.s >/dev/null ; then
26692 gl_cv_prog_as_underscore=yes
26694 gl_cv_prog_as_underscore=no
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
26700 $as_echo "$gl_cv_prog_as_underscore" >&6; }
26701 if test $gl_cv_prog_as_underscore = yes; then
26702 USER_LABEL_PREFIX=_
26707 cat >>confdefs.h <<_ACEOF
26708 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
26711 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
26739 if test $gl_cv_have_include_next = yes; then
26740 gl_cv_next_string_h='<'string.h'>'
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
26743 $as_echo_n "checking absolute name of <string.h>... " >&6; }
26744 if test "${gl_cv_next_string_h+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26748 if test $ac_cv_header_string_h = yes; then
26749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26750 /* end confdefs.h. */
26751 #include <string.h>
26755 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26756 *) gl_absname_cpp="$ac_cpp" ;;
26758 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26759 sed -n '\#/string.h#{
26760 s#.*"\(.*/string.h\)".*#\1#
26766 gl_cv_next_string_h='<'string.h'>'
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
26771 $as_echo "$gl_cv_next_string_h" >&6; }
26773 NEXT_STRING_H=$gl_cv_next_string_h
26775 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26777 gl_next_as_first_directive='<'string.h'>'
26779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26780 gl_next_as_first_directive=$gl_cv_next_string_h
26782 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
26788 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
26789 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26792 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
26793 $as_echo_n "(cached) " >&6
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h. */
26797 #include <string.h>
26808 if ac_fn_c_try_compile "$LINENO"; then :
26809 eval "$as_gl_Symbol=yes"
26811 eval "$as_gl_Symbol=no"
26813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815 eval ac_res=\$$as_gl_Symbol
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26817 $as_echo "$ac_res" >&6; }
26818 eval as_val=\$$as_gl_Symbol
26819 if test "x$as_val" = x""yes; then :
26820 cat >>confdefs.h <<_ACEOF
26821 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26824 eval ac_cv_have_decl_$gl_func=yes
26830 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
26831 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
26837 cat >>confdefs.h <<_ACEOF
26838 #define HAVE_DECL_STRNLEN $ac_have_decl
26845 if test "$gl_cv_func_memchr_works" != yes; then
26855 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
26864 GNULIB_GETPEERNAME=0;
26865 GNULIB_GETSOCKNAME=0;
26866 GNULIB_GETSOCKOPT=0;
26872 GNULIB_SETSOCKOPT=0;
26875 HAVE_STRUCT_SOCKADDR_STORAGE=1;
26876 HAVE_SA_FAMILY_T=1;
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
26884 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
26885 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
26886 $as_echo_n "(cached) " >&6
26889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26890 /* end confdefs.h. */
26891 #include <sys/socket.h>
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901 gl_cv_header_sys_socket_h_selfcontained=yes
26903 gl_cv_header_sys_socket_h_selfcontained=no
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
26909 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
26910 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
26911 for ac_func in shutdown
26913 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
26914 if test "x$ac_cv_func_shutdown" = x""yes; then :
26915 cat >>confdefs.h <<_ACEOF
26916 #define HAVE_SHUTDOWN 1
26922 if test $ac_cv_func_shutdown = yes; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
26924 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
26925 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
26926 $as_echo_n "(cached) " >&6
26929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26930 /* end confdefs.h. */
26931 #include <sys/socket.h>
26935 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
26940 if ac_fn_c_try_compile "$LINENO"; then :
26941 gl_cv_header_sys_socket_h_shut=yes
26943 gl_cv_header_sys_socket_h_shut=no
26945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
26949 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
26950 if test $gl_cv_header_sys_socket_h_shut = no; then
26951 SYS_SOCKET_H='sys/socket.h'
26955 # We need to check for ws2tcpip.h now.
26969 if test $gl_cv_have_include_next = yes; then
26970 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
26973 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
26974 if test "${gl_cv_next_sys_socket_h+set}" = set; then :
26975 $as_echo_n "(cached) " >&6
26978 if test $ac_cv_header_sys_socket_h = yes; then
26979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h. */
26981 #include <sys/socket.h>
26985 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26986 *) gl_absname_cpp="$ac_cpp" ;;
26988 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26989 sed -n '\#/sys/socket.h#{
26990 s#.*"\(.*/sys/socket.h\)".*#\1#
26996 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
27001 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
27003 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
27005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27007 gl_next_as_first_directive='<'sys/socket.h'>'
27009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27010 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
27012 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
27016 if test $ac_cv_header_sys_socket_h = yes; then
27017 HAVE_SYS_SOCKET_H=1
27020 HAVE_SYS_SOCKET_H=0
27021 for ac_header in ws2tcpip.h
27023 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
27024 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
27025 cat >>confdefs.h <<_ACEOF
27026 #define HAVE_WS2TCPIP_H 1
27033 if test $ac_cv_header_ws2tcpip_h = yes; then
27042 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27043 /* sys/types.h is not needed according to POSIX, but the
27044 sys/socket.h in i386-unknown-freebsd4.10 and
27045 powerpc-apple-darwin5.5 required it. */
27046 #include <sys/types.h>
27047 #ifdef HAVE_SYS_SOCKET_H
27048 #include <sys/socket.h>
27050 #ifdef HAVE_WS2TCPIP_H
27051 #include <ws2tcpip.h>
27055 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
27057 cat >>confdefs.h <<_ACEOF
27058 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
27063 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
27064 /* sys/types.h is not needed according to POSIX, but the
27065 sys/socket.h in i386-unknown-freebsd4.10 and
27066 powerpc-apple-darwin5.5 required it. */
27067 #include <sys/types.h>
27068 #ifdef HAVE_SYS_SOCKET_H
27069 #include <sys/socket.h>
27071 #ifdef HAVE_WS2TCPIP_H
27072 #include <ws2tcpip.h>
27076 if test "x$ac_cv_type_sa_family_t" = x""yes; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define HAVE_SA_FAMILY_T 1
27085 if test $ac_cv_type_struct_sockaddr_storage = no; then
27086 HAVE_STRUCT_SOCKADDR_STORAGE=0
27088 if test $ac_cv_type_sa_family_t = no; then
27101 if test $ac_cv_header_sys_socket_h != yes; then
27102 for ac_header in winsock2.h
27104 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27105 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27106 cat >>confdefs.h <<_ACEOF
27107 #define HAVE_WINSOCK2_H 1
27115 if test "$ac_cv_header_winsock2_h" = yes; then
27117 UNISTD_H_HAVE_WINSOCK2_H=1
27118 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27126 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
27127 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27129 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27130 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
27131 $as_echo_n "(cached) " >&6
27133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27134 /* end confdefs.h. */
27136 /* Some systems require prerequisite headers. */
27137 #include <sys/types.h>
27138 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
27139 # include <sys/time.h>
27141 #include <sys/select.h>
27152 if ac_fn_c_try_compile "$LINENO"; then :
27153 eval "$as_gl_Symbol=yes"
27155 eval "$as_gl_Symbol=no"
27157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 eval ac_res=\$$as_gl_Symbol
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27161 $as_echo "$ac_res" >&6; }
27162 eval as_val=\$$as_gl_Symbol
27163 if test "x$as_val" = x""yes; then :
27164 cat >>confdefs.h <<_ACEOF
27165 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27168 eval ac_cv_have_decl_$gl_func=yes
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
27183 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
27184 if test "${ac_cv_header_stat_broken+set}" = set; then :
27185 $as_echo_n "(cached) " >&6
27187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27188 /* end confdefs.h. */
27189 #include <sys/types.h>
27190 #include <sys/stat.h>
27192 #if defined S_ISBLK && defined S_IFDIR
27193 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27196 #if defined S_ISBLK && defined S_IFCHR
27197 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27200 #if defined S_ISLNK && defined S_IFREG
27201 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27204 #if defined S_ISSOCK && defined S_IFREG
27205 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27209 if ac_fn_c_try_compile "$LINENO"; then :
27210 ac_cv_header_stat_broken=no
27212 ac_cv_header_stat_broken=yes
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
27217 $as_echo "$ac_cv_header_stat_broken" >&6; }
27218 if test $ac_cv_header_stat_broken = yes; then
27220 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
27236 # Check whether --enable-largefile was given.
27237 if test "${enable_largefile+set}" = set; then :
27238 enableval=$enable_largefile;
27241 if test "$enable_largefile" != no; then
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
27244 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
27245 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
27246 $as_echo_n "(cached) " >&6
27248 ac_cv_sys_largefile_CC=no
27249 if test "$GCC" != yes; then
27252 # IRIX 6.2 and later do not support large files by default,
27253 # so use the C compiler's -n32 option if that helps.
27254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27255 /* end confdefs.h. */
27256 #include <sys/types.h>
27257 /* Check that off_t can represent 2**63 - 1 correctly.
27258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
27259 since some C++ compilers masquerading as C compilers
27260 incorrectly reject 9223372036854775807. */
27261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27263 && LARGE_OFF_T % 2147483647 == 1)
27273 if ac_fn_c_try_compile "$LINENO"; then :
27276 rm -f core conftest.err conftest.$ac_objext
27278 if ac_fn_c_try_compile "$LINENO"; then :
27279 ac_cv_sys_largefile_CC=' -n32'; break
27281 rm -f core conftest.err conftest.$ac_objext
27285 rm -f conftest.$ac_ext
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
27289 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
27290 if test "$ac_cv_sys_largefile_CC" != no; then
27291 CC=$CC$ac_cv_sys_largefile_CC
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27295 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
27296 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
27297 $as_echo_n "(cached) " >&6
27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301 /* end confdefs.h. */
27302 #include <sys/types.h>
27303 /* Check that off_t can represent 2**63 - 1 correctly.
27304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
27305 since some C++ compilers masquerading as C compilers
27306 incorrectly reject 9223372036854775807. */
27307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27309 && LARGE_OFF_T % 2147483647 == 1)
27319 if ac_fn_c_try_compile "$LINENO"; then :
27320 ac_cv_sys_file_offset_bits=no; break
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324 /* end confdefs.h. */
27325 #define _FILE_OFFSET_BITS 64
27326 #include <sys/types.h>
27327 /* Check that off_t can represent 2**63 - 1 correctly.
27328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
27329 since some C++ compilers masquerading as C compilers
27330 incorrectly reject 9223372036854775807. */
27331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27333 && LARGE_OFF_T % 2147483647 == 1)
27343 if ac_fn_c_try_compile "$LINENO"; then :
27344 ac_cv_sys_file_offset_bits=64; break
27346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27347 ac_cv_sys_file_offset_bits=unknown
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
27352 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
27353 case $ac_cv_sys_file_offset_bits in #(
27356 cat >>confdefs.h <<_ACEOF
27357 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27362 if test $ac_cv_sys_file_offset_bits = unknown; then
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
27364 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
27365 if test "${ac_cv_sys_large_files+set}" = set; then :
27366 $as_echo_n "(cached) " >&6
27369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27370 /* end confdefs.h. */
27371 #include <sys/types.h>
27372 /* Check that off_t can represent 2**63 - 1 correctly.
27373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
27374 since some C++ compilers masquerading as C compilers
27375 incorrectly reject 9223372036854775807. */
27376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27378 && LARGE_OFF_T % 2147483647 == 1)
27388 if ac_fn_c_try_compile "$LINENO"; then :
27389 ac_cv_sys_large_files=no; break
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h. */
27394 #define _LARGE_FILES 1
27395 #include <sys/types.h>
27396 /* Check that off_t can represent 2**63 - 1 correctly.
27397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
27398 since some C++ compilers masquerading as C compilers
27399 incorrectly reject 9223372036854775807. */
27400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
27401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
27402 && LARGE_OFF_T % 2147483647 == 1)
27412 if ac_fn_c_try_compile "$LINENO"; then :
27413 ac_cv_sys_large_files=1; break
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 ac_cv_sys_large_files=unknown
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
27421 $as_echo "$ac_cv_sys_large_files" >&6; }
27422 case $ac_cv_sys_large_files in #(
27425 cat >>confdefs.h <<_ACEOF
27426 #define _LARGE_FILES $ac_cv_sys_large_files
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5
27436 $as_echo_n "checking whether curses libraries may be used... " >&6; }
27437 # Check whether --enable-curses was given.
27438 if test "${enable_curses+set}" = set; then :
27439 enableval=$enable_curses; gl_curses_allowed="$enableval"
27441 gl_curses_allowed=yes
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5
27445 $as_echo "$gl_curses_allowed" >&6; }
27454 if test "$gl_curses_allowed" != no; then
27465 acl_save_prefix="$prefix"
27466 prefix="$acl_final_prefix"
27467 acl_save_exec_prefix="$exec_prefix"
27468 exec_prefix="$acl_final_exec_prefix"
27470 eval additional_includedir=\"$includedir\"
27471 eval additional_libdir=\"$libdir\"
27473 exec_prefix="$acl_save_exec_prefix"
27474 prefix="$acl_save_prefix"
27477 # Check whether --with-libncurses-prefix was given.
27478 if test "${with_libncurses_prefix+set}" = set; then :
27479 withval=$with_libncurses_prefix;
27480 if test "X$withval" = "Xno"; then
27483 if test "X$withval" = "X"; then
27485 acl_save_prefix="$prefix"
27486 prefix="$acl_final_prefix"
27487 acl_save_exec_prefix="$exec_prefix"
27488 exec_prefix="$acl_final_exec_prefix"
27490 eval additional_includedir=\"$includedir\"
27491 eval additional_libdir=\"$libdir\"
27493 exec_prefix="$acl_save_exec_prefix"
27494 prefix="$acl_save_prefix"
27497 additional_includedir="$withval/include"
27498 additional_libdir="$withval/$acl_libdirstem"
27499 if test "$acl_libdirstem2" != "$acl_libdirstem" \
27500 && ! test -d "$withval/$acl_libdirstem"; then
27501 additional_libdir="$withval/$acl_libdirstem2"
27515 names_already_handled=
27516 names_next_round='ncurses '
27517 while test -n "$names_next_round"; do
27518 names_this_round="$names_next_round"
27520 for name in $names_this_round; do
27522 for n in $names_already_handled; do
27523 if test "$n" = "$name"; then
27524 already_handled=yes
27528 if test -z "$already_handled"; then
27529 names_already_handled="$names_already_handled $name"
27530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27531 eval value=\"\$HAVE_LIB$uppername\"
27532 if test -n "$value"; then
27533 if test "$value" = yes; then
27534 eval value=\"\$LIB$uppername\"
27535 test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
27536 eval value=\"\$LTLIB$uppername\"
27537 test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
27546 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
27547 if test -n "$acl_shlibext"; then
27548 shrext=".$acl_shlibext" # typically: shrext=.so
27552 if test $use_additional = yes; then
27553 dir="$additional_libdir"
27554 if test -n "$acl_shlibext"; then
27555 if test -f "$dir/$libname$shrext"; then
27557 found_so="$dir/$libname$shrext"
27559 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27560 ver=`(cd "$dir" && \
27561 for f in "$libname$shrext".*; do echo "$f"; done \
27562 | sed -e "s,^$libname$shrext\\\\.,," \
27563 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27564 | sed 1q ) 2>/dev/null`
27565 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27567 found_so="$dir/$libname$shrext.$ver"
27570 eval library_names=\"$acl_library_names_spec\"
27571 for f in $library_names; do
27572 if test -f "$dir/$f"; then
27581 if test "X$found_dir" = "X"; then
27582 if test -f "$dir/$libname.$acl_libext"; then
27584 found_a="$dir/$libname.$acl_libext"
27587 if test "X$found_dir" != "X"; then
27588 if test -f "$dir/$libname.la"; then
27589 found_la="$dir/$libname.la"
27593 if test "X$found_dir" = "X"; then
27594 for x in $LDFLAGS $LTLIBNCURSES; do
27596 acl_save_prefix="$prefix"
27597 prefix="$acl_final_prefix"
27598 acl_save_exec_prefix="$exec_prefix"
27599 exec_prefix="$acl_final_exec_prefix"
27601 exec_prefix="$acl_save_exec_prefix"
27602 prefix="$acl_save_prefix"
27606 dir=`echo "X$x" | sed -e 's/^X-L//'`
27607 if test -n "$acl_shlibext"; then
27608 if test -f "$dir/$libname$shrext"; then
27610 found_so="$dir/$libname$shrext"
27612 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
27613 ver=`(cd "$dir" && \
27614 for f in "$libname$shrext".*; do echo "$f"; done \
27615 | sed -e "s,^$libname$shrext\\\\.,," \
27616 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
27617 | sed 1q ) 2>/dev/null`
27618 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
27620 found_so="$dir/$libname$shrext.$ver"
27623 eval library_names=\"$acl_library_names_spec\"
27624 for f in $library_names; do
27625 if test -f "$dir/$f"; then
27634 if test "X$found_dir" = "X"; then
27635 if test -f "$dir/$libname.$acl_libext"; then
27637 found_a="$dir/$libname.$acl_libext"
27640 if test "X$found_dir" != "X"; then
27641 if test -f "$dir/$libname.la"; then
27642 found_la="$dir/$libname.la"
27647 if test "X$found_dir" != "X"; then
27652 if test "X$found_dir" != "X"; then
27653 LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
27654 if test "X$found_so" != "X"; then
27655 if test "$enable_rpath" = no \
27656 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
27657 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
27658 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27661 for x in $ltrpathdirs; do
27662 if test "X$x" = "X$found_dir"; then
27667 if test -z "$haveit"; then
27668 ltrpathdirs="$ltrpathdirs $found_dir"
27670 if test "$acl_hardcode_direct" = yes; then
27671 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27673 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
27674 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27676 for x in $rpathdirs; do
27677 if test "X$x" = "X$found_dir"; then
27682 if test -z "$haveit"; then
27683 rpathdirs="$rpathdirs $found_dir"
27687 for x in $LDFLAGS $LIBNCURSES; do
27689 acl_save_prefix="$prefix"
27690 prefix="$acl_final_prefix"
27691 acl_save_exec_prefix="$exec_prefix"
27692 exec_prefix="$acl_final_exec_prefix"
27694 exec_prefix="$acl_save_exec_prefix"
27695 prefix="$acl_save_prefix"
27697 if test "X$x" = "X-L$found_dir"; then
27702 if test -z "$haveit"; then
27703 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
27705 if test "$acl_hardcode_minus_L" != no; then
27706 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
27708 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
27714 if test "X$found_a" != "X"; then
27715 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
27717 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
27720 additional_includedir=
27721 case "$found_dir" in
27722 */$acl_libdirstem | */$acl_libdirstem/)
27723 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27724 if test "$name" = 'ncurses'; then
27725 LIBNCURSES_PREFIX="$basedir"
27727 additional_includedir="$basedir/include"
27729 */$acl_libdirstem2 | */$acl_libdirstem2/)
27730 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
27731 if test "$name" = 'ncurses'; then
27732 LIBNCURSES_PREFIX="$basedir"
27734 additional_includedir="$basedir/include"
27737 if test "X$additional_includedir" != "X"; then
27738 if test "X$additional_includedir" != "X/usr/include"; then
27740 if test "X$additional_includedir" = "X/usr/local/include"; then
27741 if test -n "$GCC"; then
27743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27747 if test -z "$haveit"; then
27748 for x in $CPPFLAGS $INCNCURSES; do
27750 acl_save_prefix="$prefix"
27751 prefix="$acl_final_prefix"
27752 acl_save_exec_prefix="$exec_prefix"
27753 exec_prefix="$acl_final_exec_prefix"
27755 exec_prefix="$acl_save_exec_prefix"
27756 prefix="$acl_save_prefix"
27758 if test "X$x" = "X-I$additional_includedir"; then
27763 if test -z "$haveit"; then
27764 if test -d "$additional_includedir"; then
27765 INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
27771 if test -n "$found_la"; then
27772 save_libdir="$libdir"
27773 case "$found_la" in
27774 */* | *\\*) . "$found_la" ;;
27775 *) . "./$found_la" ;;
27777 libdir="$save_libdir"
27778 for dep in $dependency_libs; do
27781 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27782 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
27783 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
27785 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
27786 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
27787 if test -n "$GCC"; then
27789 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27793 if test -z "$haveit"; then
27795 for x in $LDFLAGS $LIBNCURSES; do
27797 acl_save_prefix="$prefix"
27798 prefix="$acl_final_prefix"
27799 acl_save_exec_prefix="$exec_prefix"
27800 exec_prefix="$acl_final_exec_prefix"
27802 exec_prefix="$acl_save_exec_prefix"
27803 prefix="$acl_save_prefix"
27805 if test "X$x" = "X-L$additional_libdir"; then
27810 if test -z "$haveit"; then
27811 if test -d "$additional_libdir"; then
27812 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
27816 for x in $LDFLAGS $LTLIBNCURSES; do
27818 acl_save_prefix="$prefix"
27819 prefix="$acl_final_prefix"
27820 acl_save_exec_prefix="$exec_prefix"
27821 exec_prefix="$acl_final_exec_prefix"
27823 exec_prefix="$acl_save_exec_prefix"
27824 prefix="$acl_save_prefix"
27826 if test "X$x" = "X-L$additional_libdir"; then
27831 if test -z "$haveit"; then
27832 if test -d "$additional_libdir"; then
27833 LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
27840 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27841 if test "$enable_rpath" != no; then
27843 for x in $rpathdirs; do
27844 if test "X$x" = "X$dir"; then
27849 if test -z "$haveit"; then
27850 rpathdirs="$rpathdirs $dir"
27853 for x in $ltrpathdirs; do
27854 if test "X$x" = "X$dir"; then
27859 if test -z "$haveit"; then
27860 ltrpathdirs="$ltrpathdirs $dir"
27865 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27868 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27871 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
27872 LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
27878 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
27879 LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
27885 if test "X$rpathdirs" != "X"; then
27886 if test -n "$acl_hardcode_libdir_separator"; then
27888 for found_dir in $rpathdirs; do
27889 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
27891 acl_save_libdir="$libdir"
27893 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27894 libdir="$acl_save_libdir"
27895 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
27897 for found_dir in $rpathdirs; do
27898 acl_save_libdir="$libdir"
27899 libdir="$found_dir"
27900 eval flag=\"$acl_hardcode_libdir_flag_spec\"
27901 libdir="$acl_save_libdir"
27902 LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
27906 if test "X$ltrpathdirs" != "X"; then
27907 for found_dir in $ltrpathdirs; do
27908 LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
27927 acl_save_prefix="$prefix"
27928 prefix="$acl_final_prefix"
27929 acl_save_exec_prefix="$exec_prefix"
27930 exec_prefix="$acl_final_exec_prefix"
27932 eval additional_includedir=\"$includedir\"
27933 eval additional_libdir=\"$libdir\"
27935 exec_prefix="$acl_save_exec_prefix"
27936 prefix="$acl_save_prefix"
27939 # Check whether --with-libtermcap-prefix was given.
27940 if test "${with_libtermcap_prefix+set}" = set; then :
27941 withval=$with_libtermcap_prefix;
27942 if test "X$withval" = "Xno"; then
27945 if test "X$withval" = "X"; then
27947 acl_save_prefix="$prefix"
27948 prefix="$acl_final_prefix"
27949 acl_save_exec_prefix="$exec_prefix"
27950 exec_prefix="$acl_final_exec_prefix"
27952 eval additional_includedir=\"$includedir\"
27953 eval additional_libdir=\"$libdir\"
27955 exec_prefix="$acl_save_exec_prefix"
27956 prefix="$acl_save_prefix"
27959 additional_includedir="$withval/include"
27960 additional_libdir="$withval/$acl_libdirstem"
27961 if test "$acl_libdirstem2" != "$acl_libdirstem" \
27962 && ! test -d "$withval/$acl_libdirstem"; then
27963 additional_libdir="$withval/$acl_libdirstem2"
27977 names_already_handled=
27978 names_next_round='termcap '
27979 while test -n "$names_next_round"; do
27980 names_this_round="$names_next_round"
27982 for name in $names_this_round; do
27984 for n in $names_already_handled; do
27985 if test "$n" = "$name"; then
27986 already_handled=yes
27990 if test -z "$already_handled"; then
27991 names_already_handled="$names_already_handled $name"
27992 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27993 eval value=\"\$HAVE_LIB$uppername\"
27994 if test -n "$value"; then
27995 if test "$value" = yes; then
27996 eval value=\"\$LIB$uppername\"
27997 test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
27998 eval value=\"\$LTLIB$uppername\"
27999 test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
28008 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
28009 if test -n "$acl_shlibext"; then
28010 shrext=".$acl_shlibext" # typically: shrext=.so
28014 if test $use_additional = yes; then
28015 dir="$additional_libdir"
28016 if test -n "$acl_shlibext"; then
28017 if test -f "$dir/$libname$shrext"; then
28019 found_so="$dir/$libname$shrext"
28021 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28022 ver=`(cd "$dir" && \
28023 for f in "$libname$shrext".*; do echo "$f"; done \
28024 | sed -e "s,^$libname$shrext\\\\.,," \
28025 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28026 | sed 1q ) 2>/dev/null`
28027 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28029 found_so="$dir/$libname$shrext.$ver"
28032 eval library_names=\"$acl_library_names_spec\"
28033 for f in $library_names; do
28034 if test -f "$dir/$f"; then
28043 if test "X$found_dir" = "X"; then
28044 if test -f "$dir/$libname.$acl_libext"; then
28046 found_a="$dir/$libname.$acl_libext"
28049 if test "X$found_dir" != "X"; then
28050 if test -f "$dir/$libname.la"; then
28051 found_la="$dir/$libname.la"
28055 if test "X$found_dir" = "X"; then
28056 for x in $LDFLAGS $LTLIBTERMCAP; do
28058 acl_save_prefix="$prefix"
28059 prefix="$acl_final_prefix"
28060 acl_save_exec_prefix="$exec_prefix"
28061 exec_prefix="$acl_final_exec_prefix"
28063 exec_prefix="$acl_save_exec_prefix"
28064 prefix="$acl_save_prefix"
28068 dir=`echo "X$x" | sed -e 's/^X-L//'`
28069 if test -n "$acl_shlibext"; then
28070 if test -f "$dir/$libname$shrext"; then
28072 found_so="$dir/$libname$shrext"
28074 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28075 ver=`(cd "$dir" && \
28076 for f in "$libname$shrext".*; do echo "$f"; done \
28077 | sed -e "s,^$libname$shrext\\\\.,," \
28078 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28079 | sed 1q ) 2>/dev/null`
28080 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28082 found_so="$dir/$libname$shrext.$ver"
28085 eval library_names=\"$acl_library_names_spec\"
28086 for f in $library_names; do
28087 if test -f "$dir/$f"; then
28096 if test "X$found_dir" = "X"; then
28097 if test -f "$dir/$libname.$acl_libext"; then
28099 found_a="$dir/$libname.$acl_libext"
28102 if test "X$found_dir" != "X"; then
28103 if test -f "$dir/$libname.la"; then
28104 found_la="$dir/$libname.la"
28109 if test "X$found_dir" != "X"; then
28114 if test "X$found_dir" != "X"; then
28115 LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
28116 if test "X$found_so" != "X"; then
28117 if test "$enable_rpath" = no \
28118 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28119 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28120 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28123 for x in $ltrpathdirs; do
28124 if test "X$x" = "X$found_dir"; then
28129 if test -z "$haveit"; then
28130 ltrpathdirs="$ltrpathdirs $found_dir"
28132 if test "$acl_hardcode_direct" = yes; then
28133 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28135 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28136 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28138 for x in $rpathdirs; do
28139 if test "X$x" = "X$found_dir"; then
28144 if test -z "$haveit"; then
28145 rpathdirs="$rpathdirs $found_dir"
28149 for x in $LDFLAGS $LIBTERMCAP; do
28151 acl_save_prefix="$prefix"
28152 prefix="$acl_final_prefix"
28153 acl_save_exec_prefix="$exec_prefix"
28154 exec_prefix="$acl_final_exec_prefix"
28156 exec_prefix="$acl_save_exec_prefix"
28157 prefix="$acl_save_prefix"
28159 if test "X$x" = "X-L$found_dir"; then
28164 if test -z "$haveit"; then
28165 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
28167 if test "$acl_hardcode_minus_L" != no; then
28168 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
28170 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
28176 if test "X$found_a" != "X"; then
28177 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
28179 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
28182 additional_includedir=
28183 case "$found_dir" in
28184 */$acl_libdirstem | */$acl_libdirstem/)
28185 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28186 if test "$name" = 'termcap'; then
28187 LIBTERMCAP_PREFIX="$basedir"
28189 additional_includedir="$basedir/include"
28191 */$acl_libdirstem2 | */$acl_libdirstem2/)
28192 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28193 if test "$name" = 'termcap'; then
28194 LIBTERMCAP_PREFIX="$basedir"
28196 additional_includedir="$basedir/include"
28199 if test "X$additional_includedir" != "X"; then
28200 if test "X$additional_includedir" != "X/usr/include"; then
28202 if test "X$additional_includedir" = "X/usr/local/include"; then
28203 if test -n "$GCC"; then
28205 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28209 if test -z "$haveit"; then
28210 for x in $CPPFLAGS $INCTERMCAP; do
28212 acl_save_prefix="$prefix"
28213 prefix="$acl_final_prefix"
28214 acl_save_exec_prefix="$exec_prefix"
28215 exec_prefix="$acl_final_exec_prefix"
28217 exec_prefix="$acl_save_exec_prefix"
28218 prefix="$acl_save_prefix"
28220 if test "X$x" = "X-I$additional_includedir"; then
28225 if test -z "$haveit"; then
28226 if test -d "$additional_includedir"; then
28227 INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
28233 if test -n "$found_la"; then
28234 save_libdir="$libdir"
28235 case "$found_la" in
28236 */* | *\\*) . "$found_la" ;;
28237 *) . "./$found_la" ;;
28239 libdir="$save_libdir"
28240 for dep in $dependency_libs; do
28243 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28244 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28245 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28247 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28248 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28249 if test -n "$GCC"; then
28251 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28255 if test -z "$haveit"; then
28257 for x in $LDFLAGS $LIBTERMCAP; do
28259 acl_save_prefix="$prefix"
28260 prefix="$acl_final_prefix"
28261 acl_save_exec_prefix="$exec_prefix"
28262 exec_prefix="$acl_final_exec_prefix"
28264 exec_prefix="$acl_save_exec_prefix"
28265 prefix="$acl_save_prefix"
28267 if test "X$x" = "X-L$additional_libdir"; then
28272 if test -z "$haveit"; then
28273 if test -d "$additional_libdir"; then
28274 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
28278 for x in $LDFLAGS $LTLIBTERMCAP; do
28280 acl_save_prefix="$prefix"
28281 prefix="$acl_final_prefix"
28282 acl_save_exec_prefix="$exec_prefix"
28283 exec_prefix="$acl_final_exec_prefix"
28285 exec_prefix="$acl_save_exec_prefix"
28286 prefix="$acl_save_prefix"
28288 if test "X$x" = "X-L$additional_libdir"; then
28293 if test -z "$haveit"; then
28294 if test -d "$additional_libdir"; then
28295 LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
28302 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28303 if test "$enable_rpath" != no; then
28305 for x in $rpathdirs; do
28306 if test "X$x" = "X$dir"; then
28311 if test -z "$haveit"; then
28312 rpathdirs="$rpathdirs $dir"
28315 for x in $ltrpathdirs; do
28316 if test "X$x" = "X$dir"; then
28321 if test -z "$haveit"; then
28322 ltrpathdirs="$ltrpathdirs $dir"
28327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28333 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
28334 LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
28340 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
28341 LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
28347 if test "X$rpathdirs" != "X"; then
28348 if test -n "$acl_hardcode_libdir_separator"; then
28350 for found_dir in $rpathdirs; do
28351 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28353 acl_save_libdir="$libdir"
28355 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28356 libdir="$acl_save_libdir"
28357 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
28359 for found_dir in $rpathdirs; do
28360 acl_save_libdir="$libdir"
28361 libdir="$found_dir"
28362 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28363 libdir="$acl_save_libdir"
28364 LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
28368 if test "X$ltrpathdirs" != "X"; then
28369 for found_dir in $ltrpathdirs; do
28370 LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
28389 acl_save_prefix="$prefix"
28390 prefix="$acl_final_prefix"
28391 acl_save_exec_prefix="$exec_prefix"
28392 exec_prefix="$acl_final_exec_prefix"
28394 eval additional_includedir=\"$includedir\"
28395 eval additional_libdir=\"$libdir\"
28397 exec_prefix="$acl_save_exec_prefix"
28398 prefix="$acl_save_prefix"
28401 # Check whether --with-libxcurses-prefix was given.
28402 if test "${with_libxcurses_prefix+set}" = set; then :
28403 withval=$with_libxcurses_prefix;
28404 if test "X$withval" = "Xno"; then
28407 if test "X$withval" = "X"; then
28409 acl_save_prefix="$prefix"
28410 prefix="$acl_final_prefix"
28411 acl_save_exec_prefix="$exec_prefix"
28412 exec_prefix="$acl_final_exec_prefix"
28414 eval additional_includedir=\"$includedir\"
28415 eval additional_libdir=\"$libdir\"
28417 exec_prefix="$acl_save_exec_prefix"
28418 prefix="$acl_save_prefix"
28421 additional_includedir="$withval/include"
28422 additional_libdir="$withval/$acl_libdirstem"
28423 if test "$acl_libdirstem2" != "$acl_libdirstem" \
28424 && ! test -d "$withval/$acl_libdirstem"; then
28425 additional_libdir="$withval/$acl_libdirstem2"
28439 names_already_handled=
28440 names_next_round='xcurses '
28441 while test -n "$names_next_round"; do
28442 names_this_round="$names_next_round"
28444 for name in $names_this_round; do
28446 for n in $names_already_handled; do
28447 if test "$n" = "$name"; then
28448 already_handled=yes
28452 if test -z "$already_handled"; then
28453 names_already_handled="$names_already_handled $name"
28454 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28455 eval value=\"\$HAVE_LIB$uppername\"
28456 if test -n "$value"; then
28457 if test "$value" = yes; then
28458 eval value=\"\$LIB$uppername\"
28459 test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
28460 eval value=\"\$LTLIB$uppername\"
28461 test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
28470 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
28471 if test -n "$acl_shlibext"; then
28472 shrext=".$acl_shlibext" # typically: shrext=.so
28476 if test $use_additional = yes; then
28477 dir="$additional_libdir"
28478 if test -n "$acl_shlibext"; then
28479 if test -f "$dir/$libname$shrext"; then
28481 found_so="$dir/$libname$shrext"
28483 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28484 ver=`(cd "$dir" && \
28485 for f in "$libname$shrext".*; do echo "$f"; done \
28486 | sed -e "s,^$libname$shrext\\\\.,," \
28487 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28488 | sed 1q ) 2>/dev/null`
28489 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28491 found_so="$dir/$libname$shrext.$ver"
28494 eval library_names=\"$acl_library_names_spec\"
28495 for f in $library_names; do
28496 if test -f "$dir/$f"; then
28505 if test "X$found_dir" = "X"; then
28506 if test -f "$dir/$libname.$acl_libext"; then
28508 found_a="$dir/$libname.$acl_libext"
28511 if test "X$found_dir" != "X"; then
28512 if test -f "$dir/$libname.la"; then
28513 found_la="$dir/$libname.la"
28517 if test "X$found_dir" = "X"; then
28518 for x in $LDFLAGS $LTLIBXCURSES; do
28520 acl_save_prefix="$prefix"
28521 prefix="$acl_final_prefix"
28522 acl_save_exec_prefix="$exec_prefix"
28523 exec_prefix="$acl_final_exec_prefix"
28525 exec_prefix="$acl_save_exec_prefix"
28526 prefix="$acl_save_prefix"
28530 dir=`echo "X$x" | sed -e 's/^X-L//'`
28531 if test -n "$acl_shlibext"; then
28532 if test -f "$dir/$libname$shrext"; then
28534 found_so="$dir/$libname$shrext"
28536 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28537 ver=`(cd "$dir" && \
28538 for f in "$libname$shrext".*; do echo "$f"; done \
28539 | sed -e "s,^$libname$shrext\\\\.,," \
28540 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28541 | sed 1q ) 2>/dev/null`
28542 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28544 found_so="$dir/$libname$shrext.$ver"
28547 eval library_names=\"$acl_library_names_spec\"
28548 for f in $library_names; do
28549 if test -f "$dir/$f"; then
28558 if test "X$found_dir" = "X"; then
28559 if test -f "$dir/$libname.$acl_libext"; then
28561 found_a="$dir/$libname.$acl_libext"
28564 if test "X$found_dir" != "X"; then
28565 if test -f "$dir/$libname.la"; then
28566 found_la="$dir/$libname.la"
28571 if test "X$found_dir" != "X"; then
28576 if test "X$found_dir" != "X"; then
28577 LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
28578 if test "X$found_so" != "X"; then
28579 if test "$enable_rpath" = no \
28580 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
28581 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
28582 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28585 for x in $ltrpathdirs; do
28586 if test "X$x" = "X$found_dir"; then
28591 if test -z "$haveit"; then
28592 ltrpathdirs="$ltrpathdirs $found_dir"
28594 if test "$acl_hardcode_direct" = yes; then
28595 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28597 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
28598 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28600 for x in $rpathdirs; do
28601 if test "X$x" = "X$found_dir"; then
28606 if test -z "$haveit"; then
28607 rpathdirs="$rpathdirs $found_dir"
28611 for x in $LDFLAGS $LIBXCURSES; do
28613 acl_save_prefix="$prefix"
28614 prefix="$acl_final_prefix"
28615 acl_save_exec_prefix="$exec_prefix"
28616 exec_prefix="$acl_final_exec_prefix"
28618 exec_prefix="$acl_save_exec_prefix"
28619 prefix="$acl_save_prefix"
28621 if test "X$x" = "X-L$found_dir"; then
28626 if test -z "$haveit"; then
28627 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
28629 if test "$acl_hardcode_minus_L" != no; then
28630 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
28632 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
28638 if test "X$found_a" != "X"; then
28639 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
28641 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
28644 additional_includedir=
28645 case "$found_dir" in
28646 */$acl_libdirstem | */$acl_libdirstem/)
28647 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28648 if test "$name" = 'xcurses'; then
28649 LIBXCURSES_PREFIX="$basedir"
28651 additional_includedir="$basedir/include"
28653 */$acl_libdirstem2 | */$acl_libdirstem2/)
28654 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
28655 if test "$name" = 'xcurses'; then
28656 LIBXCURSES_PREFIX="$basedir"
28658 additional_includedir="$basedir/include"
28661 if test "X$additional_includedir" != "X"; then
28662 if test "X$additional_includedir" != "X/usr/include"; then
28664 if test "X$additional_includedir" = "X/usr/local/include"; then
28665 if test -n "$GCC"; then
28667 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28671 if test -z "$haveit"; then
28672 for x in $CPPFLAGS $INCXCURSES; do
28674 acl_save_prefix="$prefix"
28675 prefix="$acl_final_prefix"
28676 acl_save_exec_prefix="$exec_prefix"
28677 exec_prefix="$acl_final_exec_prefix"
28679 exec_prefix="$acl_save_exec_prefix"
28680 prefix="$acl_save_prefix"
28682 if test "X$x" = "X-I$additional_includedir"; then
28687 if test -z "$haveit"; then
28688 if test -d "$additional_includedir"; then
28689 INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
28695 if test -n "$found_la"; then
28696 save_libdir="$libdir"
28697 case "$found_la" in
28698 */* | *\\*) . "$found_la" ;;
28699 *) . "./$found_la" ;;
28701 libdir="$save_libdir"
28702 for dep in $dependency_libs; do
28705 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28706 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
28707 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
28709 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
28710 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
28711 if test -n "$GCC"; then
28713 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28717 if test -z "$haveit"; then
28719 for x in $LDFLAGS $LIBXCURSES; do
28721 acl_save_prefix="$prefix"
28722 prefix="$acl_final_prefix"
28723 acl_save_exec_prefix="$exec_prefix"
28724 exec_prefix="$acl_final_exec_prefix"
28726 exec_prefix="$acl_save_exec_prefix"
28727 prefix="$acl_save_prefix"
28729 if test "X$x" = "X-L$additional_libdir"; then
28734 if test -z "$haveit"; then
28735 if test -d "$additional_libdir"; then
28736 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
28740 for x in $LDFLAGS $LTLIBXCURSES; do
28742 acl_save_prefix="$prefix"
28743 prefix="$acl_final_prefix"
28744 acl_save_exec_prefix="$exec_prefix"
28745 exec_prefix="$acl_final_exec_prefix"
28747 exec_prefix="$acl_save_exec_prefix"
28748 prefix="$acl_save_prefix"
28750 if test "X$x" = "X-L$additional_libdir"; then
28755 if test -z "$haveit"; then
28756 if test -d "$additional_libdir"; then
28757 LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
28764 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28765 if test "$enable_rpath" != no; then
28767 for x in $rpathdirs; do
28768 if test "X$x" = "X$dir"; then
28773 if test -z "$haveit"; then
28774 rpathdirs="$rpathdirs $dir"
28777 for x in $ltrpathdirs; do
28778 if test "X$x" = "X$dir"; then
28783 if test -z "$haveit"; then
28784 ltrpathdirs="$ltrpathdirs $dir"
28789 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28795 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
28796 LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
28802 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
28803 LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
28809 if test "X$rpathdirs" != "X"; then
28810 if test -n "$acl_hardcode_libdir_separator"; then
28812 for found_dir in $rpathdirs; do
28813 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
28815 acl_save_libdir="$libdir"
28817 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28818 libdir="$acl_save_libdir"
28819 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
28821 for found_dir in $rpathdirs; do
28822 acl_save_libdir="$libdir"
28823 libdir="$found_dir"
28824 eval flag=\"$acl_hardcode_libdir_flag_spec\"
28825 libdir="$acl_save_libdir"
28826 LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
28830 if test "X$ltrpathdirs" != "X"; then
28831 for found_dir in $ltrpathdirs; do
28832 LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
28851 acl_save_prefix="$prefix"
28852 prefix="$acl_final_prefix"
28853 acl_save_exec_prefix="$exec_prefix"
28854 exec_prefix="$acl_final_exec_prefix"
28856 eval additional_includedir=\"$includedir\"
28857 eval additional_libdir=\"$libdir\"
28859 exec_prefix="$acl_save_exec_prefix"
28860 prefix="$acl_save_prefix"
28863 # Check whether --with-libcurses-prefix was given.
28864 if test "${with_libcurses_prefix+set}" = set; then :
28865 withval=$with_libcurses_prefix;
28866 if test "X$withval" = "Xno"; then
28869 if test "X$withval" = "X"; then
28871 acl_save_prefix="$prefix"
28872 prefix="$acl_final_prefix"
28873 acl_save_exec_prefix="$exec_prefix"
28874 exec_prefix="$acl_final_exec_prefix"
28876 eval additional_includedir=\"$includedir\"
28877 eval additional_libdir=\"$libdir\"
28879 exec_prefix="$acl_save_exec_prefix"
28880 prefix="$acl_save_prefix"
28883 additional_includedir="$withval/include"
28884 additional_libdir="$withval/$acl_libdirstem"
28885 if test "$acl_libdirstem2" != "$acl_libdirstem" \
28886 && ! test -d "$withval/$acl_libdirstem"; then
28887 additional_libdir="$withval/$acl_libdirstem2"
28901 names_already_handled=
28902 names_next_round='curses '
28903 while test -n "$names_next_round"; do
28904 names_this_round="$names_next_round"
28906 for name in $names_this_round; do
28908 for n in $names_already_handled; do
28909 if test "$n" = "$name"; then
28910 already_handled=yes
28914 if test -z "$already_handled"; then
28915 names_already_handled="$names_already_handled $name"
28916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28917 eval value=\"\$HAVE_LIB$uppername\"
28918 if test -n "$value"; then
28919 if test "$value" = yes; then
28920 eval value=\"\$LIB$uppername\"
28921 test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
28922 eval value=\"\$LTLIB$uppername\"
28923 test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
28932 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
28933 if test -n "$acl_shlibext"; then
28934 shrext=".$acl_shlibext" # typically: shrext=.so
28938 if test $use_additional = yes; then
28939 dir="$additional_libdir"
28940 if test -n "$acl_shlibext"; then
28941 if test -f "$dir/$libname$shrext"; then
28943 found_so="$dir/$libname$shrext"
28945 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28946 ver=`(cd "$dir" && \
28947 for f in "$libname$shrext".*; do echo "$f"; done \
28948 | sed -e "s,^$libname$shrext\\\\.,," \
28949 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
28950 | sed 1q ) 2>/dev/null`
28951 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
28953 found_so="$dir/$libname$shrext.$ver"
28956 eval library_names=\"$acl_library_names_spec\"
28957 for f in $library_names; do
28958 if test -f "$dir/$f"; then
28967 if test "X$found_dir" = "X"; then
28968 if test -f "$dir/$libname.$acl_libext"; then
28970 found_a="$dir/$libname.$acl_libext"
28973 if test "X$found_dir" != "X"; then
28974 if test -f "$dir/$libname.la"; then
28975 found_la="$dir/$libname.la"
28979 if test "X$found_dir" = "X"; then
28980 for x in $LDFLAGS $LTLIBCURSES; do
28982 acl_save_prefix="$prefix"
28983 prefix="$acl_final_prefix"
28984 acl_save_exec_prefix="$exec_prefix"
28985 exec_prefix="$acl_final_exec_prefix"
28987 exec_prefix="$acl_save_exec_prefix"
28988 prefix="$acl_save_prefix"
28992 dir=`echo "X$x" | sed -e 's/^X-L//'`
28993 if test -n "$acl_shlibext"; then
28994 if test -f "$dir/$libname$shrext"; then
28996 found_so="$dir/$libname$shrext"
28998 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
28999 ver=`(cd "$dir" && \
29000 for f in "$libname$shrext".*; do echo "$f"; done \
29001 | sed -e "s,^$libname$shrext\\\\.,," \
29002 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29003 | sed 1q ) 2>/dev/null`
29004 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29006 found_so="$dir/$libname$shrext.$ver"
29009 eval library_names=\"$acl_library_names_spec\"
29010 for f in $library_names; do
29011 if test -f "$dir/$f"; then
29020 if test "X$found_dir" = "X"; then
29021 if test -f "$dir/$libname.$acl_libext"; then
29023 found_a="$dir/$libname.$acl_libext"
29026 if test "X$found_dir" != "X"; then
29027 if test -f "$dir/$libname.la"; then
29028 found_la="$dir/$libname.la"
29033 if test "X$found_dir" != "X"; then
29038 if test "X$found_dir" != "X"; then
29039 LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
29040 if test "X$found_so" != "X"; then
29041 if test "$enable_rpath" = no \
29042 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
29043 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
29044 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29047 for x in $ltrpathdirs; do
29048 if test "X$x" = "X$found_dir"; then
29053 if test -z "$haveit"; then
29054 ltrpathdirs="$ltrpathdirs $found_dir"
29056 if test "$acl_hardcode_direct" = yes; then
29057 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29059 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
29060 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29062 for x in $rpathdirs; do
29063 if test "X$x" = "X$found_dir"; then
29068 if test -z "$haveit"; then
29069 rpathdirs="$rpathdirs $found_dir"
29073 for x in $LDFLAGS $LIBCURSES; do
29075 acl_save_prefix="$prefix"
29076 prefix="$acl_final_prefix"
29077 acl_save_exec_prefix="$exec_prefix"
29078 exec_prefix="$acl_final_exec_prefix"
29080 exec_prefix="$acl_save_exec_prefix"
29081 prefix="$acl_save_prefix"
29083 if test "X$x" = "X-L$found_dir"; then
29088 if test -z "$haveit"; then
29089 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
29091 if test "$acl_hardcode_minus_L" != no; then
29092 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
29094 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
29100 if test "X$found_a" != "X"; then
29101 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
29103 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
29106 additional_includedir=
29107 case "$found_dir" in
29108 */$acl_libdirstem | */$acl_libdirstem/)
29109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29110 if test "$name" = 'curses'; then
29111 LIBCURSES_PREFIX="$basedir"
29113 additional_includedir="$basedir/include"
29115 */$acl_libdirstem2 | */$acl_libdirstem2/)
29116 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
29117 if test "$name" = 'curses'; then
29118 LIBCURSES_PREFIX="$basedir"
29120 additional_includedir="$basedir/include"
29123 if test "X$additional_includedir" != "X"; then
29124 if test "X$additional_includedir" != "X/usr/include"; then
29126 if test "X$additional_includedir" = "X/usr/local/include"; then
29127 if test -n "$GCC"; then
29129 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29133 if test -z "$haveit"; then
29134 for x in $CPPFLAGS $INCCURSES; do
29136 acl_save_prefix="$prefix"
29137 prefix="$acl_final_prefix"
29138 acl_save_exec_prefix="$exec_prefix"
29139 exec_prefix="$acl_final_exec_prefix"
29141 exec_prefix="$acl_save_exec_prefix"
29142 prefix="$acl_save_prefix"
29144 if test "X$x" = "X-I$additional_includedir"; then
29149 if test -z "$haveit"; then
29150 if test -d "$additional_includedir"; then
29151 INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
29157 if test -n "$found_la"; then
29158 save_libdir="$libdir"
29159 case "$found_la" in
29160 */* | *\\*) . "$found_la" ;;
29161 *) . "./$found_la" ;;
29163 libdir="$save_libdir"
29164 for dep in $dependency_libs; do
29167 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29168 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
29169 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
29171 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
29172 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
29173 if test -n "$GCC"; then
29175 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29179 if test -z "$haveit"; then
29181 for x in $LDFLAGS $LIBCURSES; do
29183 acl_save_prefix="$prefix"
29184 prefix="$acl_final_prefix"
29185 acl_save_exec_prefix="$exec_prefix"
29186 exec_prefix="$acl_final_exec_prefix"
29188 exec_prefix="$acl_save_exec_prefix"
29189 prefix="$acl_save_prefix"
29191 if test "X$x" = "X-L$additional_libdir"; then
29196 if test -z "$haveit"; then
29197 if test -d "$additional_libdir"; then
29198 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
29202 for x in $LDFLAGS $LTLIBCURSES; do
29204 acl_save_prefix="$prefix"
29205 prefix="$acl_final_prefix"
29206 acl_save_exec_prefix="$exec_prefix"
29207 exec_prefix="$acl_final_exec_prefix"
29209 exec_prefix="$acl_save_exec_prefix"
29210 prefix="$acl_save_prefix"
29212 if test "X$x" = "X-L$additional_libdir"; then
29217 if test -z "$haveit"; then
29218 if test -d "$additional_libdir"; then
29219 LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
29226 dir=`echo "X$dep" | sed -e 's/^X-R//'`
29227 if test "$enable_rpath" != no; then
29229 for x in $rpathdirs; do
29230 if test "X$x" = "X$dir"; then
29235 if test -z "$haveit"; then
29236 rpathdirs="$rpathdirs $dir"
29239 for x in $ltrpathdirs; do
29240 if test "X$x" = "X$dir"; then
29245 if test -z "$haveit"; then
29246 ltrpathdirs="$ltrpathdirs $dir"
29251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29254 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29257 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
29258 LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
29264 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
29265 LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
29271 if test "X$rpathdirs" != "X"; then
29272 if test -n "$acl_hardcode_libdir_separator"; then
29274 for found_dir in $rpathdirs; do
29275 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29277 acl_save_libdir="$libdir"
29279 eval flag=\"$acl_hardcode_libdir_flag_spec\"
29280 libdir="$acl_save_libdir"
29281 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
29283 for found_dir in $rpathdirs; do
29284 acl_save_libdir="$libdir"
29285 libdir="$found_dir"
29286 eval flag=\"$acl_hardcode_libdir_flag_spec\"
29287 libdir="$acl_save_libdir"
29288 LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
29292 if test "X$ltrpathdirs" != "X"; then
29293 for found_dir in $ltrpathdirs; do
29294 LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5
29325 $as_echo_n "checking where terminfo library functions come from... " >&6; }
29326 if test "${gl_cv_terminfo+set}" = set; then :
29327 $as_echo_n "(cached) " >&6
29330 gl_cv_terminfo="not found, consider installing GNU ncurses"
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29337 int setupterm (const char *, int, int *);
29342 int tigetnum (const char *);
29347 int tigetflag (const char *);
29352 const char * tigetstr (const char *);
29357 return setupterm ("xterm", 0, (int *)0)
29358 + tigetnum ("colors")
29359 + tigetflag ("hc") + * tigetstr("oc");
29364 if ac_fn_c_try_link "$LINENO"; then :
29365 gl_cv_terminfo=libc
29367 rm -f core conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
29369 if test "$gl_cv_terminfo" != libc; then
29370 gl_save_LIBS="$LIBS"
29371 LIBS="$LIBS $LIBNCURSES"
29372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29373 /* end confdefs.h. */
29378 int setupterm (const char *, int, int *);
29383 int tigetnum (const char *);
29388 int tigetflag (const char *);
29393 const char * tigetstr (const char *);
29398 return setupterm ("xterm", 0, (int *)0)
29399 + tigetnum ("colors")
29400 + tigetflag ("hc") + * tigetstr("oc");
29405 if ac_fn_c_try_link "$LINENO"; then :
29406 gl_cv_terminfo=libncurses
29408 rm -f core conftest.err conftest.$ac_objext \
29409 conftest$ac_exeext conftest.$ac_ext
29410 LIBS="$gl_save_LIBS"
29411 if test "$gl_cv_terminfo" != libncurses; then
29412 gl_save_LIBS="$LIBS"
29413 LIBS="$LIBS $LIBTERMCAP"
29414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29415 /* end confdefs.h. */
29420 int setupterm (const char *, int, int *);
29425 int tigetnum (const char *);
29430 int tigetflag (const char *);
29435 const char * tigetstr (const char *);
29440 return setupterm ("xterm", 0, (int *)0)
29441 + tigetnum ("colors")
29442 + tigetflag ("hc") + * tigetstr("oc");
29447 if ac_fn_c_try_link "$LINENO"; then :
29448 gl_cv_terminfo=libtermcap
29450 rm -f core conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29452 LIBS="$gl_save_LIBS"
29453 if test "$gl_cv_terminfo" != libtermcap; then
29454 gl_save_LIBS="$LIBS"
29455 LIBS="$LIBS $LIBXCURSES"
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h. */
29462 int setupterm (const char *, int, int *);
29467 int tigetnum (const char *);
29472 int tigetflag (const char *);
29477 const char * tigetstr (const char *);
29482 return setupterm ("xterm", 0, (int *)0)
29483 + tigetnum ("colors")
29484 + tigetflag ("hc") + * tigetstr("oc");
29489 if ac_fn_c_try_link "$LINENO"; then :
29490 gl_cv_terminfo=libxcurses
29492 rm -f core conftest.err conftest.$ac_objext \
29493 conftest$ac_exeext conftest.$ac_ext
29494 LIBS="$gl_save_LIBS"
29495 if test "$gl_cv_terminfo" != libxcurses; then
29496 gl_save_LIBS="$LIBS"
29497 LIBS="$LIBS $LIBCURSES"
29498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29499 /* end confdefs.h. */
29504 int setupterm (const char *, int, int *);
29509 int tigetnum (const char *);
29514 int tigetflag (const char *);
29519 const char * tigetstr (const char *);
29524 return setupterm ("xterm", 0, (int *)0)
29525 + tigetnum ("colors")
29526 + tigetflag ("hc") + * tigetstr("oc");
29531 if ac_fn_c_try_link "$LINENO"; then :
29532 gl_cv_terminfo=libcurses
29534 rm -f core conftest.err conftest.$ac_objext \
29535 conftest$ac_exeext conftest.$ac_ext
29536 LIBS="$gl_save_LIBS"
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5
29544 $as_echo "$gl_cv_terminfo" >&6; }
29545 case "$gl_cv_terminfo" in
29552 LIBTERMINFO="$LIBNCURSES"
29553 LTLIBTERMINFO="$LTLIBNCURSES"
29554 INCTERMINFO="$INCNCURSES"
29557 LIBTERMINFO="$LIBTERMCAP"
29558 LTLIBTERMINFO="$LTLIBTERMCAP"
29559 INCTERMINFO="$INCTERMCAP"
29562 LIBTERMINFO="$LIBXCURSES"
29563 LTLIBTERMINFO="$LTLIBXCURSES"
29564 INCTERMINFO="$INCXCURSES"
29567 LIBTERMINFO="$LIBCURSES"
29568 LTLIBTERMINFO="$LTLIBCURSES"
29569 INCTERMINFO="$INCCURSES"
29572 case "$gl_cv_terminfo" in
29573 libc | libncurses | libtermcap | libxcurses | libcurses)
29575 $as_echo "#define HAVE_TERMINFO 1" >>confdefs.h
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5
29580 $as_echo_n "checking where termcap library functions come from... " >&6; }
29581 if test "${gl_cv_termcap+set}" = set; then :
29582 $as_echo_n "(cached) " >&6
29585 gl_cv_termcap="not found, consider installing GNU ncurses"
29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29592 int tgetent (char *, const char *);
29597 return tgetent ((char *) 0, "xterm");
29602 if ac_fn_c_try_link "$LINENO"; then :
29605 rm -f core conftest.err conftest.$ac_objext \
29606 conftest$ac_exeext conftest.$ac_ext
29607 if test "$gl_cv_termcap" != libc; then
29608 gl_save_LIBS="$LIBS"
29609 LIBS="$LIBS $LIBNCURSES"
29610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29611 /* end confdefs.h. */
29616 int tgetent (char *, const char *);
29621 return tgetent ((char *) 0, "xterm");
29626 if ac_fn_c_try_link "$LINENO"; then :
29627 gl_cv_termcap=libncurses
29629 rm -f core conftest.err conftest.$ac_objext \
29630 conftest$ac_exeext conftest.$ac_ext
29631 LIBS="$gl_save_LIBS"
29632 if test "$gl_cv_termcap" != libncurses; then
29633 gl_save_LIBS="$LIBS"
29634 LIBS="$LIBS $LIBTERMCAP"
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h. */
29641 int tgetent (char *, const char *);
29646 return tgetent ((char *) 0, "xterm");
29651 if ac_fn_c_try_link "$LINENO"; then :
29652 gl_cv_termcap=libtermcap
29654 rm -f core conftest.err conftest.$ac_objext \
29655 conftest$ac_exeext conftest.$ac_ext
29656 LIBS="$gl_save_LIBS"
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5
29662 $as_echo "$gl_cv_termcap" >&6; }
29663 case "$gl_cv_termcap" in
29670 LIBTERMINFO="$LIBNCURSES"
29671 LTLIBTERMINFO="$LTLIBNCURSES"
29672 INCTERMINFO="$INCNCURSES"
29675 LIBTERMINFO="$LIBTERMCAP"
29676 LTLIBTERMINFO="$LTLIBTERMCAP"
29677 INCTERMINFO="$INCTERMCAP"
29680 case "$gl_cv_termcap" in
29681 libc | libncurses | libtermcap)
29683 $as_echo "#define HAVE_TERMCAP 1" >>confdefs.h
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5
29694 $as_echo_n "checking for tparam... " >&6; }
29695 if test "${gl_cv_terminfo_tparam+set}" = set; then :
29696 $as_echo_n "(cached) " >&6
29699 gl_save_LIBS="$LIBS"
29700 LIBS="$LIBS $LIBTERMINFO"
29701 gl_save_CPPFLAGS="$CPPFLAGS"
29702 CPPFLAGS="$CPPFLAGS $INCTERMINFO"
29703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29704 /* end confdefs.h. */
29709 char * tparam (const char *, void *, int, ...);
29715 return tparam ("\033\133%dm", &buf, 1, 8);
29720 if ac_fn_c_try_link "$LINENO"; then :
29721 gl_cv_terminfo_tparam=yes
29723 gl_cv_terminfo_tparam=no
29725 rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext conftest.$ac_ext
29727 CPPFLAGS="$gl_save_CPPFLAGS"
29728 LIBS="$gl_save_LIBS"
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5
29732 $as_echo "$gl_cv_terminfo_tparam" >&6; }
29733 if test $gl_cv_terminfo_tparam = yes; then
29735 $as_echo "#define HAVE_TPARAM 1" >>confdefs.h
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5
29739 $as_echo_n "checking for tparm... " >&6; }
29740 if test "${gl_cv_terminfo_tparm+set}" = set; then :
29741 $as_echo_n "(cached) " >&6
29744 gl_save_LIBS="$LIBS"
29745 LIBS="$LIBS $LIBTERMINFO"
29746 gl_save_CPPFLAGS="$CPPFLAGS"
29747 CPPFLAGS="$CPPFLAGS $INCTERMINFO"
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h. */
29754 char * tparm (const char *, ...);
29759 return tparm ("\033\133%dm", 8);
29764 if ac_fn_c_try_link "$LINENO"; then :
29765 gl_cv_terminfo_tparm=yes
29767 gl_cv_terminfo_tparm=no
29769 rm -f core conftest.err conftest.$ac_objext \
29770 conftest$ac_exeext conftest.$ac_ext
29771 CPPFLAGS="$gl_save_CPPFLAGS"
29772 LIBS="$gl_save_LIBS"
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5
29776 $as_echo "$gl_cv_terminfo_tparm" >&6; }
29781 GNULIB_NANOSLEEP=0;
29785 HAVE_LOCALTIME_R=1;
29789 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
29790 REPLACE_MKTIME=GNULIB_PORTCHECK;
29791 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
29792 REPLACE_TIMEGM=GNULIB_PORTCHECK;
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
29808 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
29809 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
29810 $as_echo_n "(cached) " >&6
29812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29813 /* end confdefs.h. */
29819 static struct timespec x; x.tv_sec = x.tv_nsec;
29824 if ac_fn_c_try_compile "$LINENO"; then :
29825 gl_cv_sys_struct_timespec_in_time_h=yes
29827 gl_cv_sys_struct_timespec_in_time_h=no
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
29832 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
29834 TIME_H_DEFINES_STRUCT_TIMESPEC=0
29835 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
29836 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
29837 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
29838 TIME_H_DEFINES_STRUCT_TIMESPEC=1
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
29841 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
29842 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
29843 $as_echo_n "(cached) " >&6
29845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29846 /* end confdefs.h. */
29847 #include <sys/time.h>
29852 static struct timespec x; x.tv_sec = x.tv_nsec;
29857 if ac_fn_c_try_compile "$LINENO"; then :
29858 gl_cv_sys_struct_timespec_in_sys_time_h=yes
29860 gl_cv_sys_struct_timespec_in_sys_time_h=no
29862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
29865 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
29866 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
29867 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
29870 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
29871 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
29872 $as_echo_n "(cached) " >&6
29874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29875 /* end confdefs.h. */
29876 #include <pthread.h>
29881 static struct timespec x; x.tv_sec = x.tv_nsec;
29886 if ac_fn_c_try_compile "$LINENO"; then :
29887 gl_cv_sys_struct_timespec_in_pthread_h=yes
29889 gl_cv_sys_struct_timespec_in_pthread_h=no
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
29894 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
29895 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
29896 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
29919 if test $gl_cv_have_include_next = yes; then
29920 gl_cv_next_time_h='<'time.h'>'
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
29923 $as_echo_n "checking absolute name of <time.h>... " >&6; }
29924 if test "${gl_cv_next_time_h+set}" = set; then :
29925 $as_echo_n "(cached) " >&6
29928 if test $ac_cv_header_time_h = yes; then
29929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29930 /* end confdefs.h. */
29935 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29936 *) gl_absname_cpp="$ac_cpp" ;;
29938 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29939 sed -n '\#/time.h#{
29940 s#.*"\(.*/time.h\)".*#\1#
29946 gl_cv_next_time_h='<'time.h'>'
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
29951 $as_echo "$gl_cv_next_time_h" >&6; }
29953 NEXT_TIME_H=$gl_cv_next_time_h
29955 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29957 gl_next_as_first_directive='<'time.h'>'
29959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29960 gl_next_as_first_directive=$gl_cv_next_time_h
29962 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
29974 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
29979 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
29984 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
29991 if test "$HAVE_LIBUNISTRING" = yes; then
29992 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
29993 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
29994 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
30003 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
30004 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
30010 cat >>confdefs.h <<_ACEOF
30011 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
30016 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
30017 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
30023 cat >>confdefs.h <<_ACEOF
30024 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
30029 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
30030 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
30036 cat >>confdefs.h <<_ACEOF
30037 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
30042 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
30043 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
30049 cat >>confdefs.h <<_ACEOF
30050 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
30055 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
30056 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
30062 cat >>confdefs.h <<_ACEOF
30063 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
30068 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
30069 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
30075 cat >>confdefs.h <<_ACEOF
30076 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
30081 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
30082 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
30088 cat >>confdefs.h <<_ACEOF
30089 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
30094 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
30095 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
30101 cat >>confdefs.h <<_ACEOF
30102 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
30107 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
30108 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
30114 cat >>confdefs.h <<_ACEOF
30115 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
30120 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
30121 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
30127 cat >>confdefs.h <<_ACEOF
30128 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
30133 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
30134 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
30140 cat >>confdefs.h <<_ACEOF
30141 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
30146 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
30147 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
30153 cat >>confdefs.h <<_ACEOF
30154 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
30167 $as_echo_n "checking for intmax_t... " >&6; }
30168 if test "${gt_cv_c_intmax_t+set}" = set; then :
30169 $as_echo_n "(cached) " >&6
30171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30172 /* end confdefs.h. */
30174 #include <stddef.h>
30175 #include <stdlib.h>
30176 #if HAVE_STDINT_H_WITH_UINTMAX
30177 #include <stdint.h>
30179 #if HAVE_INTTYPES_H_WITH_UINTMAX
30180 #include <inttypes.h>
30186 intmax_t x = -1; return !x;
30191 if ac_fn_c_try_compile "$LINENO"; then :
30192 gt_cv_c_intmax_t=yes
30194 gt_cv_c_intmax_t=no
30196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
30199 $as_echo "$gt_cv_c_intmax_t" >&6; }
30200 if test $gt_cv_c_intmax_t = yes; then
30202 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
30206 test $ac_cv_type_long_long_int = yes \
30207 && ac_type='long long' \
30210 cat >>confdefs.h <<_ACEOF
30211 #define intmax_t $ac_type
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
30219 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
30220 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
30221 $as_echo_n "(cached) " >&6
30224 if test "$cross_compiling" = yes; then :
30227 # Guess yes on glibc systems.
30228 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30229 # Guess yes on FreeBSD >= 5.
30230 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
30231 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30232 # Guess yes on MacOS X >= 10.3.
30233 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
30234 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30235 # Guess yes on OpenBSD >= 3.9.
30236 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
30237 gl_cv_func_snprintf_retval_c99="guessing no";;
30238 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30239 # Guess yes on Solaris >= 2.6.
30240 solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
30241 solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30242 # Guess yes on AIX >= 4.
30243 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
30244 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30245 # Guess yes on NetBSD >= 3.
30246 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
30247 gl_cv_func_snprintf_retval_c99="guessing no";;
30248 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30249 # Guess yes on BeOS.
30250 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
30251 # If we don't know, assume the worst.
30252 *) gl_cv_func_snprintf_retval_c99="guessing no";;
30256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30257 /* end confdefs.h. */
30260 #include <string.h>
30261 static char buf[100];
30264 strcpy (buf, "ABCDEF");
30265 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
30270 if ac_fn_c_try_run "$LINENO"; then :
30271 gl_cv_func_snprintf_retval_c99=yes
30273 gl_cv_func_snprintf_retval_c99=no
30275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30276 conftest.$ac_objext conftest.beam conftest.$ac_ext
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
30282 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
30290 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
30292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30294 eval as_val=\$$as_ac_var
30295 if test "x$as_val" = x""yes; then :
30296 cat >>confdefs.h <<_ACEOF
30297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30303 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
30305 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
30311 cat >>confdefs.h <<_ACEOF
30312 #define HAVE_DECL__SNPRINTF $ac_have_decl
30316 case "$gl_cv_func_snprintf_retval_c99" in
30319 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
30325 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
30326 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
30332 cat >>confdefs.h <<_ACEOF
30333 #define HAVE_DECL_VSNPRINTF $ac_have_decl
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
30339 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
30340 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
30341 $as_echo_n "(cached) " >&6
30343 gl_cv_header_wchar_h_correct_inline=yes
30344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30345 /* end confdefs.h. */
30347 #define wcstod renamed_wcstod
30349 extern int zero (void);
30350 int main () { return zero(); }
30353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
30354 (eval $ac_compile) 2>&5
30356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30357 test $ac_status = 0; }; then
30358 mv conftest.$ac_objext conftest1.$ac_objext
30359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30360 /* end confdefs.h. */
30362 #define wcstod renamed_wcstod
30364 int zero (void) { return 0; }
30367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
30368 (eval $ac_compile) 2>&5
30370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30371 test $ac_status = 0; }; then
30372 mv conftest.$ac_objext conftest2.$ac_objext
30373 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
30376 gl_cv_header_wchar_h_correct_inline=no
30380 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
30384 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
30385 if test $gl_cv_header_wchar_h_correct_inline = no; then
30386 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
30387 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
30388 C99 mode. You have four options:
30389 - Add the flag -fgnu89-inline to CC and reconfigure, or
30390 - Fix your include files, using parts of
30391 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
30392 - Use a gcc version older than 4.3, or
30393 - Don't use the flags -std=c99 or -std=gnu99.
30394 Configuration aborted." "$LINENO" 5
30413 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
30414 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
30420 cat >>confdefs.h <<_ACEOF
30421 #define HAVE_DECL_ALARM $ac_have_decl
30447 GL_COND_LIBTOOL_TRUE=
30448 GL_COND_LIBTOOL_FALSE='#'
30450 GL_COND_LIBTOOL_TRUE='#'
30451 GL_COND_LIBTOOL_FALSE=
30454 gl_cond_libtool=true
30455 gl_m4_base='gnulib-m4'
30465 gl_source_base='gnulib-lib'
30466 # Code from module acl:
30468 # Check whether --enable-acl was given.
30469 if test "${enable_acl+set}" = set; then :
30470 enableval=$enable_acl;
30479 if test "x$enable_acl" != "xno"; then
30480 for ac_header in sys/acl.h
30482 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
30483 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
30484 cat >>confdefs.h <<_ACEOF
30485 #define HAVE_SYS_ACL_H 1
30492 if test $ac_cv_header_sys_acl_h = yes; then
30495 if test $use_acl = 0; then
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
30497 $as_echo_n "checking for library containing acl_get_file... " >&6; }
30498 if test "${ac_cv_search_acl_get_file+set}" = set; then :
30499 $as_echo_n "(cached) " >&6
30501 ac_func_search_save_LIBS=$LIBS
30502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30503 /* end confdefs.h. */
30505 /* Override any GCC internal prototype to avoid an error.
30506 Use char because int might match the return type of a GCC
30507 builtin and then its argument prototype would still apply. */
30511 char acl_get_file ();
30515 return acl_get_file ();
30520 for ac_lib in '' acl pacl; do
30521 if test -z "$ac_lib"; then
30522 ac_res="none required"
30525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30527 if ac_fn_c_try_link "$LINENO"; then :
30528 ac_cv_search_acl_get_file=$ac_res
30530 rm -f core conftest.err conftest.$ac_objext \
30532 if test "${ac_cv_search_acl_get_file+set}" = set; then :
30536 if test "${ac_cv_search_acl_get_file+set}" = set; then :
30539 ac_cv_search_acl_get_file=no
30541 rm conftest.$ac_ext
30542 LIBS=$ac_func_search_save_LIBS
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
30545 $as_echo "$ac_cv_search_acl_get_file" >&6; }
30546 ac_res=$ac_cv_search_acl_get_file
30547 if test "$ac_res" != no; then :
30548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30549 if test "$ac_cv_search_acl_get_file" != "none required"; then
30550 LIB_ACL=$ac_cv_search_acl_get_file
30552 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
30553 acl_free acl_from_mode acl_from_text \
30554 acl_delete_def_file acl_extended_file \
30555 acl_delete_fd_np acl_delete_file_np \
30556 acl_copy_ext_native acl_create_entry_np \
30557 acl_to_short_text acl_free_text
30559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30561 eval as_val=\$$as_ac_var
30562 if test "x$as_val" = x""yes; then :
30563 cat >>confdefs.h <<_ACEOF
30564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30570 # If the acl_get_file bug is detected, don't enable the ACL support.
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
30573 $as_echo_n "checking for working acl_get_file... " >&6; }
30574 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
30575 $as_echo_n "(cached) " >&6
30577 if test "$cross_compiling" = yes; then :
30578 gl_cv_func_working_acl_get_file=cross-compiling
30580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30581 /* end confdefs.h. */
30582 #include <sys/types.h>
30583 #include <sys/acl.h>
30589 return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
30590 && errno == ENOENT);
30595 if ac_fn_c_try_run "$LINENO"; then :
30596 gl_cv_func_working_acl_get_file=yes
30598 gl_cv_func_working_acl_get_file=no
30600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30601 conftest.$ac_objext conftest.beam conftest.$ac_ext
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
30606 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
30608 if test $gl_cv_func_working_acl_get_file = yes; then :
30612 if test $use_acl = 1; then
30613 for ac_header in acl/libacl.h
30615 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
30616 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
30617 cat >>confdefs.h <<_ACEOF
30618 #define HAVE_ACL_LIBACL_H 1
30633 for ac_func in acl_entries
30635 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
30636 if test "x$ac_cv_func_acl_entries" = x""yes; then :
30637 cat >>confdefs.h <<_ACEOF
30638 #define HAVE_ACL_ENTRIES 1
30643 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
30650 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
30651 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
30652 $as_echo_n "(cached) " >&6
30654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30655 /* end confdefs.h. */
30656 #include <sys/types.h>
30657 #include <sys/acl.h>
30658 int type = ACL_FIRST_ENTRY;
30660 if ac_fn_c_try_compile "$LINENO"; then :
30661 gl_cv_acl_ACL_FIRST_ENTRY=yes
30663 gl_cv_acl_ACL_FIRST_ENTRY=no
30665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
30668 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
30669 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
30671 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
30675 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
30676 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
30677 $as_echo_n "(cached) " >&6
30679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30680 /* end confdefs.h. */
30681 #include <sys/types.h>
30682 #include <sys/acl.h>
30683 int type = ACL_TYPE_EXTENDED;
30685 if ac_fn_c_try_compile "$LINENO"; then :
30686 gl_cv_acl_ACL_TYPE_EXTENDED=yes
30688 gl_cv_acl_ACL_TYPE_EXTENDED=no
30690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
30693 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
30694 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
30696 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
30707 if test $use_acl = 0; then
30710 ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"
30711 if test "x$ac_cv_func_acl" = x""yes; then :
30712 cat >>confdefs.h <<_ACEOF
30719 if test $ac_cv_func_acl = yes; then
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
30721 $as_echo_n "checking for library containing acl_trivial... " >&6; }
30722 if test "${ac_cv_search_acl_trivial+set}" = set; then :
30723 $as_echo_n "(cached) " >&6
30725 ac_func_search_save_LIBS=$LIBS
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h. */
30729 /* Override any GCC internal prototype to avoid an error.
30730 Use char because int might match the return type of a GCC
30731 builtin and then its argument prototype would still apply. */
30735 char acl_trivial ();
30739 return acl_trivial ();
30744 for ac_lib in '' sec; do
30745 if test -z "$ac_lib"; then
30746 ac_res="none required"
30749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30751 if ac_fn_c_try_link "$LINENO"; then :
30752 ac_cv_search_acl_trivial=$ac_res
30754 rm -f core conftest.err conftest.$ac_objext \
30756 if test "${ac_cv_search_acl_trivial+set}" = set; then :
30760 if test "${ac_cv_search_acl_trivial+set}" = set; then :
30763 ac_cv_search_acl_trivial=no
30765 rm conftest.$ac_ext
30766 LIBS=$ac_func_search_save_LIBS
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
30769 $as_echo "$ac_cv_search_acl_trivial" >&6; }
30770 ac_res=$ac_cv_search_acl_trivial
30771 if test "$ac_res" != no; then :
30772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30773 if test "$ac_cv_search_acl_trivial" != "none required"; then
30774 LIB_ACL=$ac_cv_search_acl_trivial
30779 for ac_func in acl_trivial
30781 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
30782 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
30783 cat >>confdefs.h <<_ACEOF
30784 #define HAVE_ACL_TRIVIAL 1
30794 if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then
30795 for ac_func in getacl
30797 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
30798 if test "x$ac_cv_func_getacl" = x""yes; then :
30799 cat >>confdefs.h <<_ACEOF
30800 #define HAVE_GETACL 1
30806 if test $ac_cv_func_getacl = yes; then
30811 if test $use_acl = 0; then
30812 for ac_func in aclx_get
30814 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30815 if test "x$ac_cv_func_aclx_get" = x""yes; then :
30816 cat >>confdefs.h <<_ACEOF
30817 #define HAVE_ACLX_GET 1
30823 if test $ac_cv_func_aclx_get = yes; then
30828 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
30829 for ac_func in statacl
30831 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
30832 if test "x$ac_cv_func_statacl" = x""yes; then :
30833 cat >>confdefs.h <<_ACEOF
30834 #define HAVE_STATACL 1
30840 if test $ac_cv_func_statacl = yes; then
30847 if test "x$enable_acl$use_acl" = "xyes0"; then
30848 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
30849 elif test "x$enable_acl$use_acl" = "xauto0"; then
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
30851 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5
30853 $as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;}
30858 cat >>confdefs.h <<_ACEOF
30859 #define USE_ACL $use_acl
30865 # Code from module alignof:
30866 # Code from module alloca-opt:
30872 if test $ac_cv_func_alloca_works = no; then
30888 # Define an additional variable used in the Makefile substitution.
30890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30891 /* end confdefs.h. */
30893 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
30898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30899 $EGREP "Need own alloca" >/dev/null 2>&1; then :
30908 # Code from module areadlink:
30909 # Code from module arg-nonnull:
30910 # Code from module argmatch:
30920 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
30923 # Code from module array-list:
30924 # Code from module atexit:
30934 for ac_func in atexit
30936 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
30937 if test "x$ac_cv_func_atexit" = x""yes; then :
30938 cat >>confdefs.h <<_ACEOF
30939 #define HAVE_ATEXIT 1
30944 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30950 if test $ac_cv_func_atexit = no; then
30956 # Code from module backupfile:
30958 for ac_header in dirent.h string.h
30960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30962 eval as_val=\$$as_ac_Header
30963 if test "x$as_val" = x""yes; then :
30964 cat >>confdefs.h <<_ACEOF
30965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
30973 $as_echo_n "checking for long file names... " >&6; }
30974 if test "${ac_cv_sys_long_file_names+set}" = set; then :
30975 $as_echo_n "(cached) " >&6
30977 ac_cv_sys_long_file_names=yes
30978 # Test for long file names in all the places we know might matter:
30979 # . the current directory, where building will happen
30980 # $prefix/lib where we will be installing things
30981 # $exec_prefix/lib likewise
30982 # $TMPDIR if set, where it might want to write temporary files
30983 # /tmp where it might want to write temporary files
30984 # /var/tmp likewise
30985 # /usr/tmp likewise
30986 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
30987 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
30988 # in the usual case where exec_prefix is '${prefix}'.
30990 . | /* | ?:[\\/]*) ;; #(
30993 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
30994 ac_xdir=$ac_dir/cf$$
30995 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
30996 ac_tf1=$ac_xdir/conftest9012345
30997 ac_tf2=$ac_xdir/conftest9012346
30998 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
30999 ac_cv_sys_long_file_names=no
31000 rm -f -r "$ac_xdir" 2>/dev/null
31001 test $ac_cv_sys_long_file_names = no && break
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
31005 $as_echo "$ac_cv_sys_long_file_names" >&6; }
31006 if test $ac_cv_sys_long_file_names = yes; then
31008 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
31012 for ac_func in pathconf
31014 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
31015 if test "x$ac_cv_func_pathconf" = x""yes; then :
31016 cat >>confdefs.h <<_ACEOF
31017 #define HAVE_PATHCONF 1
31023 for ac_header in string.h unistd.h
31025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31026 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31027 eval as_val=\$$as_ac_Header
31028 if test "x$as_val" = x""yes; then :
31029 cat >>confdefs.h <<_ACEOF
31030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31038 # Code from module basename:
31039 # Code from module binary-io:
31040 # Code from module bison-i18n:
31042 if test -z "$USE_NLS"; then
31043 echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
31048 if test "$USE_NLS" = yes; then
31049 if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
31050 BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
31053 if test -n "$BISON_LOCALEDIR"; then
31054 USER_LINGUAS="${LINGUAS-%UNSET%}"
31055 if test -n "$USER_LINGUAS"; then
31060 if test $BISON_USE_NLS = yes; then
31062 $as_echo "#define YYENABLE_NLS 1" >>confdefs.h
31066 # Code from module byteswap:
31068 for ac_header in byteswap.h
31070 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
31071 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
31072 cat >>confdefs.h <<_ACEOF
31073 #define HAVE_BYTESWAP_H 1
31080 BYTESWAP_H='byteswap.h'
31088 # Code from module c++defs:
31089 # Code from module c-ctype:
31090 # Code from module c-strcase:
31091 # Code from module c-strcaseeq:
31092 # Code from module c-strcasestr:
31093 # Code from module c-strstr:
31094 # Code from module canonicalize-lgpl:
31097 if test $ac_cv_func_canonicalize_file_name = no; then
31098 HAVE_CANONICALIZE_FILE_NAME=0
31107 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
31109 if test $ac_cv_func_realpath = no; then
31111 elif test "$gl_cv_func_realpath_works" != yes; then
31114 elif test "$gl_cv_func_realpath_works" != yes; then
31123 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
31126 REPLACE_CANONICALIZE_FILE_NAME=1
31131 cat >>confdefs.h <<_ACEOF
31132 #define GNULIB_CANONICALIZE_LGPL 1
31139 GNULIB_CANONICALIZE_FILE_NAME=1
31143 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
31154 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
31158 # Code from module classpath:
31159 # Code from module clean-temp:
31161 $as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h
31163 # Code from module cloexec:
31173 gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
31178 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
31181 # Code from module closeout:
31182 # Code from module concat-filename:
31183 # Code from module configmake:
31184 # Code from module copy-file:
31196 for ac_func in chown utime utimes
31198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31200 eval as_val=\$$as_ac_var
31201 if test "x$as_val" = x""yes; then :
31202 cat >>confdefs.h <<_ACEOF
31203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31210 # Code from module csharpcomp:
31211 # Code from module csharpcomp-script:
31213 ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
31215 # Code from module csharpexec:
31216 # Code from module csharpexec-script:
31217 # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
31218 ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
31220 # Code from module diffseq:
31221 # Code from module double-slash-root:
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
31225 $as_echo_n "checking whether // is distinct from /... " >&6; }
31226 if test "${gl_cv_double_slash_root+set}" = set; then :
31227 $as_echo_n "(cached) " >&6
31229 if test x"$cross_compiling" = xyes ; then
31230 # When cross-compiling, there is no way to tell whether // is special
31231 # short of a list of hosts. However, the only known hosts to date
31232 # that have a distinct // are Apollo DomainOS (too old to port to),
31233 # Cygwin, and z/OS. If anyone knows of another system for which // has
31234 # special semantics and is distinct from /, please report it to
31235 # <bug-gnulib@gnu.org>.
31237 *-cygwin | i370-ibm-openedition)
31238 gl_cv_double_slash_root=yes ;;
31240 # Be optimistic and assume that / and // are the same when we
31242 gl_cv_double_slash_root='unknown, assuming no' ;;
31245 set x `ls -di / // 2>/dev/null`
31246 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
31247 gl_cv_double_slash_root=no
31249 gl_cv_double_slash_root=yes
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
31254 $as_echo "$gl_cv_double_slash_root" >&6; }
31255 if test "$gl_cv_double_slash_root" = yes; then
31257 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
31261 # Code from module dup2:
31272 if test $ac_cv_func_dup2 = no; then
31282 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
31286 $as_echo_n "checking whether dup2 works... " >&6; }
31287 if test "${gl_cv_func_dup2_works+set}" = set; then :
31288 $as_echo_n "(cached) " >&6
31290 if test "$cross_compiling" = yes; then :
31292 mingw*) # on this platform, dup2 always returns 0 for success
31293 gl_cv_func_dup2_works=no;;
31294 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
31295 gl_cv_func_dup2_works=no;;
31296 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
31297 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
31298 gl_cv_func_dup2_works=no;;
31299 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
31300 gl_cv_func_dup2_works=no;;
31301 *) gl_cv_func_dup2_works=yes;;
31304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31305 /* end confdefs.h. */
31307 #include <unistd.h>
31312 if (dup2 (1, 1) == 0)
31315 if (dup2 (0, 0) != -1)
31317 /* Many gnulib modules require POSIX conformance of EBADF. */
31318 if (dup2 (1, 1000000) == -1 && errno != EBADF)
31327 if ac_fn_c_try_run "$LINENO"; then :
31328 gl_cv_func_dup2_works=yes
31330 gl_cv_func_dup2_works=no
31332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31333 conftest.$ac_objext conftest.beam conftest.$ac_ext
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
31339 $as_echo "$gl_cv_func_dup2_works" >&6; }
31340 if test "$gl_cv_func_dup2_works" = no; then
31343 if test $ac_cv_func_dup2 = yes; then
31354 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
31367 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
31371 # Code from module environ:
31380 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
31384 # Code from module errno:
31386 # Code from module error:
31400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
31401 $as_echo_n "checking for error_at_line... " >&6; }
31402 if test "${ac_cv_lib_error_at_line+set}" = set; then :
31403 $as_echo_n "(cached) " >&6
31405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31406 /* end confdefs.h. */
31411 error_at_line (0, 0, "", 0, "an error occurred");
31416 if ac_fn_c_try_link "$LINENO"; then :
31417 ac_cv_lib_error_at_line=yes
31419 ac_cv_lib_error_at_line=no
31421 rm -f core conftest.err conftest.$ac_objext \
31422 conftest$ac_exeext conftest.$ac_ext
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
31425 $as_echo "$ac_cv_lib_error_at_line" >&6; }
31426 if test $ac_cv_lib_error_at_line = no; then
31435 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
31447 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
31451 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
31453 # Code from module error-progname:
31454 # Code from module execute:
31459 # Code from module exitfail:
31460 # Code from module extensions:
31461 # Code from module fatal-signal:
31476 # Code from module fcntl:
31488 if test $ac_cv_func_fcntl = no; then
31498 if test $ac_cv_func_fcntl = no; then
31511 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
31516 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
31517 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
31518 $as_echo_n "(cached) " >&6
31520 if test "$cross_compiling" = yes; then :
31521 # Guess that it works on glibc systems
31522 case $host_os in #((
31523 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
31524 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
31527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h. */
31535 return fcntl (0, F_DUPFD, -1) != -1;
31541 if ac_fn_c_try_run "$LINENO"; then :
31542 gl_cv_func_fcntl_f_dupfd_works=yes
31544 gl_cv_func_fcntl_f_dupfd_works=no
31546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31547 conftest.$ac_objext conftest.beam conftest.$ac_ext
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
31552 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
31553 case $gl_cv_func_fcntl_f_dupfd_works in
31564 if test $ac_cv_func_fcntl = no; then
31577 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31581 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
31586 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
31587 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
31588 $as_echo_n "(cached) " >&6
31590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31591 /* end confdefs.h. */
31594 #ifndef F_DUPFD_CLOEXEC
31606 if ac_fn_c_try_compile "$LINENO"; then :
31607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31608 /* end confdefs.h. */
31611 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
31612 it to support the semantics on older kernels that failed with EINVAL. */
31624 if ac_fn_c_try_compile "$LINENO"; then :
31625 gl_cv_func_fcntl_f_dupfd_cloexec=yes
31627 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
31629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31631 gl_cv_func_fcntl_f_dupfd_cloexec=no
31633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
31636 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
31637 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
31647 if test $ac_cv_func_fcntl = no; then
31660 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
31673 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
31677 # Code from module fcntl-h:
31693 if test $gl_cv_have_include_next = yes; then
31694 gl_cv_next_fcntl_h='<'fcntl.h'>'
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
31697 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
31698 if test "${gl_cv_next_fcntl_h+set}" = set; then :
31699 $as_echo_n "(cached) " >&6
31702 if test $ac_cv_header_fcntl_h = yes; then
31703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31704 /* end confdefs.h. */
31709 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31710 *) gl_absname_cpp="$ac_cpp" ;;
31712 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31713 sed -n '\#/fcntl.h#{
31714 s#.*"\(.*/fcntl.h\)".*#\1#
31720 gl_cv_next_fcntl_h='<'fcntl.h'>'
31724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
31725 $as_echo "$gl_cv_next_fcntl_h" >&6; }
31727 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
31729 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31731 gl_next_as_first_directive='<'fcntl.h'>'
31733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31734 gl_next_as_first_directive=$gl_cv_next_fcntl_h
31736 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
31742 for gl_func in fcntl openat; do
31743 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31745 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31746 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
31747 $as_echo_n "(cached) " >&6
31749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31750 /* end confdefs.h. */
31762 if ac_fn_c_try_compile "$LINENO"; then :
31763 eval "$as_gl_Symbol=yes"
31765 eval "$as_gl_Symbol=no"
31767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31769 eval ac_res=\$$as_gl_Symbol
31770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31771 $as_echo "$ac_res" >&6; }
31772 eval as_val=\$$as_gl_Symbol
31773 if test "x$as_val" = x""yes; then :
31774 cat >>confdefs.h <<_ACEOF
31775 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31778 eval ac_cv_have_decl_$gl_func=yes
31783 # Code from module fd-ostream:
31784 # Code from module fd-safer-flag:
31787 cat >>confdefs.h <<_ACEOF
31788 #define GNULIB_FD_SAFER_FLAG 1
31792 # Code from module file-ostream:
31793 # Code from module filename:
31794 # Code from module findprog:
31805 # Code from module float:
31825 if test $gl_cv_have_include_next = yes; then
31826 gl_cv_next_float_h='<'float.h'>'
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
31829 $as_echo_n "checking absolute name of <float.h>... " >&6; }
31830 if test "${gl_cv_next_float_h+set}" = set; then :
31831 $as_echo_n "(cached) " >&6
31834 if test $ac_cv_header_float_h = yes; then
31835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31836 /* end confdefs.h. */
31841 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31842 *) gl_absname_cpp="$ac_cpp" ;;
31844 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31845 sed -n '\#/float.h#{
31846 s#.*"\(.*/float.h\)".*#\1#
31852 gl_cv_next_float_h='<'float.h'>'
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
31857 $as_echo "$gl_cv_next_float_h" >&6; }
31859 NEXT_FLOAT_H=$gl_cv_next_float_h
31861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31863 gl_next_as_first_directive='<'float.h'>'
31865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31866 gl_next_as_first_directive=$gl_cv_next_float_h
31868 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
31876 # Code from module fnmatch:
31883 gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
31884 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
31886 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
31887 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
31888 $as_echo_n "(cached) " >&6
31890 if test $gl_fnmatch_required = GNU; then
31891 gl_fnmatch_gnu_start=
31892 gl_fnmatch_gnu_end=
31894 gl_fnmatch_gnu_start='#if 0'
31895 gl_fnmatch_gnu_end='#endif'
31897 if test "$cross_compiling" = yes; then :
31898 eval "$gl_fnmatch_cache_var=\"guessing no\""
31900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h. */
31902 #include <fnmatch.h>
31904 y (char const *pattern, char const *string, int flags)
31906 return fnmatch (pattern, string, flags) == 0;
31909 n (char const *pattern, char const *string, int flags)
31911 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
31917 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
31918 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
31919 static char const A_1[] = { 'A' - 1, 0 };
31920 static char const A01[] = { 'A' + 1, 0 };
31921 static char const a_1[] = { 'a' - 1, 0 };
31922 static char const a01[] = { 'a' + 1, 0 };
31923 static char const bs_1[] = { '\\\\' - 1, 0 };
31924 static char const bs01[] = { '\\\\' + 1, 0 };
31927 && y ("a*", "abc", 0)
31928 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
31929 && y ("a\\\\bc", "abc", 0)
31930 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
31931 && y ("*x", ".x", 0)
31932 && n ("*x", ".x", FNM_PERIOD)
31933 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
31934 && y (apat, "\\\\", 0) && y (apat, "a", 0)
31935 && n (Apat, A_1, 0) == ('A' < '\\\\')
31936 && n (apat, a_1, 0) == ('a' < '\\\\')
31937 && y (Apat, A01, 0) == ('A' < '\\\\')
31938 && y (apat, a01, 0) == ('a' < '\\\\')
31939 && y (Apat, bs_1, 0) == ('A' < '\\\\')
31940 && y (apat, bs_1, 0) == ('a' < '\\\\')
31941 && n (Apat, bs01, 0) == ('A' < '\\\\')
31942 && n (apat, bs01, 0) == ('a' < '\\\\')
31943 $gl_fnmatch_gnu_start
31944 && y ("xxXX", "xXxX", FNM_CASEFOLD)
31945 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
31946 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
31947 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
31948 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
31949 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
31950 $gl_fnmatch_gnu_end
31957 if ac_fn_c_try_run "$LINENO"; then :
31958 eval "$gl_fnmatch_cache_var=yes"
31960 eval "$gl_fnmatch_cache_var=no"
31962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31963 conftest.$ac_objext conftest.beam conftest.$ac_ext
31968 eval ac_res=\$$gl_fnmatch_cache_var
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31970 $as_echo "$ac_res" >&6; }
31971 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
31972 if test "$gl_fnmatch_result" = yes; then
31973 rm -f "$gl_source_base/fnmatch.h"
31975 FNMATCH_H=fnmatch.h
31984 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31987 cat >>confdefs.h <<_ACEOF
31988 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31992 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31994 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
32000 cat >>confdefs.h <<_ACEOF
32001 #define HAVE_DECL_ISBLANK $ac_have_decl
32042 # Code from module fopen:
32049 gl_cv_func_fopen_slash="guessing no"
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
32053 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
32054 if test "${gl_cv_func_fopen_slash+set}" = set; then :
32055 $as_echo_n "(cached) " >&6
32058 if test "$cross_compiling" = yes; then :
32061 solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;;
32062 hpux*) gl_cv_func_fopen_slash="guessing no" ;;
32063 *) gl_cv_func_fopen_slash="guessing yes" ;;
32067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068 /* end confdefs.h. */
32070 #include <stddef.h>
32074 return fopen ("conftest.sl/", "w") != NULL;
32077 if ac_fn_c_try_run "$LINENO"; then :
32078 gl_cv_func_fopen_slash=yes
32080 gl_cv_func_fopen_slash=no
32082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32083 conftest.$ac_objext conftest.beam conftest.$ac_ext
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
32090 $as_echo "$gl_cv_func_fopen_slash" >&6; }
32093 case "$gl_cv_func_fopen_slash" in
32096 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
32101 if test $REPLACE_FOPEN = 1; then
32110 gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
32124 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
32128 # Code from module fstrcmp:
32129 # Code from module full-write:
32130 # Code from module fwriteerror:
32133 cat >>confdefs.h <<_ACEOF
32134 #define GNULIB_FWRITEERROR 1
32138 # Code from module gcd:
32139 # Code from module gcj:
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5
32145 $as_echo_n "checking for Java to native code compiler... " >&6; }
32146 # Search for the gcj command or use the one provided by the user.
32147 if test -z "$GCJ"; then
32148 if test -n "$ac_tool_prefix"; then
32149 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
32150 set dummy ${ac_tool_prefix}gcj; ac_word=$2
32152 if test "${ac_cv_prog_GCJ+set}" = set; then :
32153 $as_echo_n "(cached) " >&6
32155 if test -n "$GCJ"; then
32156 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
32158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32159 for as_dir in $PATH
32162 test -z "$as_dir" && as_dir=.
32163 for ac_exec_ext in '' $ac_executable_extensions; do
32164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32165 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
32166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32175 GCJ=$ac_cv_prog_GCJ
32176 if test -n "$GCJ"; then
32184 if test -z "$ac_cv_prog_GCJ"; then
32186 # Extract the first word of "gcj", so it can be a program name with args.
32187 set dummy gcj; ac_word=$2
32189 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
32190 $as_echo_n "(cached) " >&6
32192 if test -n "$ac_ct_GCJ"; then
32193 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
32195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32196 for as_dir in $PATH
32199 test -z "$as_dir" && as_dir=.
32200 for ac_exec_ext in '' $ac_executable_extensions; do
32201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32202 ac_cv_prog_ac_ct_GCJ="gcj"
32203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32212 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
32213 if test -n "$ac_ct_GCJ"; then
32219 if test "x$ac_ct_GCJ" = x; then
32222 case $cross_compiling:$ac_tool_warned in
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32226 ac_tool_warned=yes ;;
32231 GCJ="$ac_cv_prog_GCJ"
32235 # Choose GCJFLAGS or use the one provided by the user.
32236 if test "$GCJ" != none; then
32237 test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
32239 # Check whether the version is ok and it can create executables.
32240 ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
32241 if test "$GCJ" != none \
32242 && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
32244 # See if libgcj.so is well installed and if exception handling works.
32245 cat > conftest.java <<EOF
32246 public class conftest {
32247 public static void main (String[] args) {
32249 java.util.ResourceBundle.getBundle("foobar");
32250 } catch (Exception e) {
32256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5
32257 (eval $ac_gcj_link) 2>&5
32259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32260 test $ac_status = 0; }
32262 if test $error = 0 && test "$cross_compiling" != yes; then
32263 # Run conftest and catch its exit status, but silently.
32264 error=`./conftest >/dev/null 2>&1; echo $?`
32265 test $error = 0 || error=1
32266 rm -f core conftest.core
32268 rm -f conftest.java conftest$ac_exeext
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
32276 $as_echo "$GCJ" >&6; }
32277 if test "$GCJ" != none; then
32286 # Code from module getdelim:
32307 if test $ac_cv_func_getdelim = yes; then
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32309 $as_echo_n "checking for working getdelim function... " >&6; }
32310 if test "${gl_cv_func_working_getdelim+set}" = set; then :
32311 $as_echo_n "(cached) " >&6
32313 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32314 if test "$cross_compiling" = yes; then :
32315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32316 /* end confdefs.h. */
32318 #include <features.h>
32319 #ifdef __GNU_LIBRARY__
32320 #if (__GLIBC__ >= 2)
32326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32327 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32328 gl_cv_func_working_getdelim=yes
32330 gl_cv_func_working_getdelim=no
32336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32337 /* end confdefs.h. */
32339 # include <stdio.h>
32340 # include <stdlib.h>
32341 # include <string.h>
32344 FILE *in = fopen ("./conftest.data", "r");
32348 /* Test result for a NULL buffer and a zero size.
32349 Based on a test program from Karl Heuer. */
32352 int len = getdelim (&line, &siz, '\n', in);
32353 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32357 /* Test result for a NULL buffer and a non-zero size.
32358 This crashes on FreeBSD 8.0. */
32360 size_t siz = (size_t)(~0) / 4;
32361 if (getdelim (&line, &siz, '\n', in) == -1)
32368 if ac_fn_c_try_run "$LINENO"; then :
32369 gl_cv_func_working_getdelim=yes
32371 gl_cv_func_working_getdelim=no
32373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32374 conftest.$ac_objext conftest.beam conftest.$ac_ext
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32379 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32381 gl_cv_func_working_getdelim=no
32384 if test $ac_cv_have_decl_getdelim = no; then
32385 HAVE_DECL_GETDELIM=0
32388 if test $gl_cv_func_working_getdelim = no; then
32389 if test $ac_cv_func_getdelim = yes; then
32400 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32403 for ac_func in flockfile funlockfile
32405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32407 eval as_val=\$$as_ac_var
32408 if test "x$as_val" = x""yes; then :
32409 cat >>confdefs.h <<_ACEOF
32410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32416 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32417 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
32423 cat >>confdefs.h <<_ACEOF
32424 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32437 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
32441 # Code from module getdtablesize:
32451 if test $ac_cv_func_getdtablesize != yes; then
32452 HAVE_GETDTABLESIZE=0
32461 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
32468 GNULIB_GETDTABLESIZE=1
32472 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
32476 # Code from module getline:
32490 gl_getline_needs_run_time_check=no
32491 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
32492 if test "x$ac_cv_func_getline" = x""yes; then :
32493 gl_getline_needs_run_time_check=yes
32495 am_cv_func_working_getline=no
32498 if test $gl_getline_needs_run_time_check = yes; then
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
32500 $as_echo_n "checking for working getline function... " >&6; }
32501 if test "${am_cv_func_working_getline+set}" = set; then :
32502 $as_echo_n "(cached) " >&6
32504 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32505 if test "$cross_compiling" = yes; then :
32506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32507 /* end confdefs.h. */
32509 #include <features.h>
32510 #ifdef __GNU_LIBRARY__
32511 #if (__GLIBC__ >= 2)
32517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32518 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32519 am_cv_func_working_getline=yes
32521 am_cv_func_working_getline=no
32527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32528 /* end confdefs.h. */
32530 # include <stdio.h>
32531 # include <stdlib.h>
32532 # include <string.h>
32535 FILE *in = fopen ("./conftest.data", "r");
32539 /* Test result for a NULL buffer and a zero size.
32540 Based on a test program from Karl Heuer. */
32543 int len = getline (&line, &siz, in);
32544 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32548 /* Test result for a NULL buffer and a non-zero size.
32549 This crashes on FreeBSD 8.0. */
32551 size_t siz = (size_t)(~0) / 4;
32552 if (getline (&line, &siz, in) == -1)
32559 if ac_fn_c_try_run "$LINENO"; then :
32560 am_cv_func_working_getline=yes
32562 am_cv_func_working_getline=no
32564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32565 conftest.$ac_objext conftest.beam conftest.$ac_ext
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
32570 $as_echo "$am_cv_func_working_getline" >&6; }
32573 if test $ac_cv_have_decl_getline = no; then
32574 HAVE_DECL_GETLINE=0
32577 if test $am_cv_func_working_getline = no; then
32587 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
32611 if test $ac_cv_func_getdelim = yes; then
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32613 $as_echo_n "checking for working getdelim function... " >&6; }
32614 if test "${gl_cv_func_working_getdelim+set}" = set; then :
32615 $as_echo_n "(cached) " >&6
32617 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32618 if test "$cross_compiling" = yes; then :
32619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32620 /* end confdefs.h. */
32622 #include <features.h>
32623 #ifdef __GNU_LIBRARY__
32624 #if (__GLIBC__ >= 2)
32630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32631 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32632 gl_cv_func_working_getdelim=yes
32634 gl_cv_func_working_getdelim=no
32640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641 /* end confdefs.h. */
32643 # include <stdio.h>
32644 # include <stdlib.h>
32645 # include <string.h>
32648 FILE *in = fopen ("./conftest.data", "r");
32652 /* Test result for a NULL buffer and a zero size.
32653 Based on a test program from Karl Heuer. */
32656 int len = getdelim (&line, &siz, '\n', in);
32657 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32661 /* Test result for a NULL buffer and a non-zero size.
32662 This crashes on FreeBSD 8.0. */
32664 size_t siz = (size_t)(~0) / 4;
32665 if (getdelim (&line, &siz, '\n', in) == -1)
32672 if ac_fn_c_try_run "$LINENO"; then :
32673 gl_cv_func_working_getdelim=yes
32675 gl_cv_func_working_getdelim=no
32677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32678 conftest.$ac_objext conftest.beam conftest.$ac_ext
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32683 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32685 gl_cv_func_working_getdelim=no
32688 if test $ac_cv_have_decl_getdelim = no; then
32689 HAVE_DECL_GETDELIM=0
32692 if test $gl_cv_func_working_getdelim = no; then
32693 if test $ac_cv_func_getdelim = yes; then
32704 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32707 for ac_func in flockfile funlockfile
32709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32711 eval as_val=\$$as_ac_var
32712 if test "x$as_val" = x""yes; then :
32713 cat >>confdefs.h <<_ACEOF
32714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32720 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32721 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
32727 cat >>confdefs.h <<_ACEOF
32728 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32744 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
32748 # Code from module getopt-gnu:
32756 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
32759 # Code from module getopt-posix:
32765 if test -n "$gl_replace_getopt"; then :
32771 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
32775 GNULIB_UNISTD_H_GETOPT=1
32784 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32794 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32810 # Code from module gettext:
32812 # Code from module gettext-h:
32815 # Code from module gettext-tools-misc:
32816 # Code from module gettimeofday:
32829 gl_gettimeofday_timezone=void
32830 if test $ac_cv_func_gettimeofday != yes; then
32831 HAVE_GETTIMEOFDAY=0
32840 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
32843 for ac_header in sys/timeb.h
32845 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
32846 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
32847 cat >>confdefs.h <<_ACEOF
32848 #define HAVE_SYS_TIMEB_H 1
32855 for ac_func in _ftime
32857 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
32858 if test "x$ac_cv_func__ftime" = x""yes; then :
32859 cat >>confdefs.h <<_ACEOF
32860 #define HAVE__FTIME 1
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
32872 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
32873 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
32874 $as_echo_n "(cached) " >&6
32876 if test "$cross_compiling" = yes; then :
32877 gl_cv_func_gettimeofday_clobber=yes
32879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32880 /* end confdefs.h. */
32881 #include <string.h>
32882 #include <sys/time.h>
32884 #include <stdlib.h>
32892 struct tm saved_lt;
32894 lt = localtime (&t);
32896 gettimeofday (&tv, NULL);
32897 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
32903 if ac_fn_c_try_run "$LINENO"; then :
32904 gl_cv_func_gettimeofday_clobber=no
32906 gl_cv_func_gettimeofday_clobber=yes
32908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32909 conftest.$ac_objext conftest.beam conftest.$ac_ext
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
32914 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
32916 if test $gl_cv_func_gettimeofday_clobber = yes; then
32917 REPLACE_GETTIMEOFDAY=1
32927 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
32930 for ac_header in sys/timeb.h
32932 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
32933 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
32934 cat >>confdefs.h <<_ACEOF
32935 #define HAVE_SYS_TIMEB_H 1
32942 for ac_func in _ftime
32944 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
32945 if test "x$ac_cv_func__ftime" = x""yes; then :
32946 cat >>confdefs.h <<_ACEOF
32947 #define HAVE__FTIME 1
32955 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
32958 $as_echo "#define localtime rpl_localtime" >>confdefs.h
32962 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
32967 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
32968 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
32969 $as_echo_n "(cached) " >&6
32971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32972 /* end confdefs.h. */
32973 #include <sys/time.h>
32975 int gettimeofday (struct timeval *restrict, void *restrict);
32980 /* glibc uses struct timezone * rather than the POSIX void *
32981 if _GNU_SOURCE is defined. However, since the only portable
32982 use of gettimeofday uses NULL as the second parameter, and
32983 since the glibc definition is actually more typesafe, it is
32984 not worth wrapping this to get a compliant signature. */
32985 int (*f) (struct timeval *restrict, void *restrict)
32988 return !(x | c.tv_sec | c.tv_usec);
32994 if ac_fn_c_try_compile "$LINENO"; then :
32995 gl_cv_func_gettimeofday_posix_signature=yes
32997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32998 /* end confdefs.h. */
32999 #include <sys/time.h>
33000 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
33010 if ac_fn_c_try_compile "$LINENO"; then :
33011 gl_cv_func_gettimeofday_posix_signature=almost
33013 gl_cv_func_gettimeofday_posix_signature=no
33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
33020 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
33021 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
33022 gl_gettimeofday_timezone='struct timezone'
33023 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
33024 REPLACE_GETTIMEOFDAY=1
33033 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
33036 for ac_header in sys/timeb.h
33038 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
33039 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
33040 cat >>confdefs.h <<_ACEOF
33041 #define HAVE_SYS_TIMEB_H 1
33048 for ac_func in _ftime
33050 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
33051 if test "x$ac_cv_func__ftime" = x""yes; then :
33052 cat >>confdefs.h <<_ACEOF
33053 #define HAVE__FTIME 1
33063 cat >>confdefs.h <<_ACEOF
33064 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
33071 GNULIB_GETTIMEOFDAY=1
33075 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
33079 # Code from module gperf:
33080 # Code from module hash:
33081 # Code from module havelib:
33082 # Code from module html-ostream:
33083 # Code from module html-styled-ostream:
33084 # Code from module iconv:
33086 # Code from module iconv-h:
33102 if test $gl_cv_have_include_next = yes; then
33103 gl_cv_next_iconv_h='<'iconv.h'>'
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
33106 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
33107 if test "${gl_cv_next_iconv_h+set}" = set; then :
33108 $as_echo_n "(cached) " >&6
33111 if test $ac_cv_header_iconv_h = yes; then
33112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33113 /* end confdefs.h. */
33118 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33119 *) gl_absname_cpp="$ac_cpp" ;;
33121 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33122 sed -n '\#/iconv.h#{
33123 s#.*"\(.*/iconv.h\)".*#\1#
33129 gl_cv_next_iconv_h='<'iconv.h'>'
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
33134 $as_echo "$gl_cv_next_iconv_h" >&6; }
33136 NEXT_ICONV_H=$gl_cv_next_iconv_h
33138 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33140 gl_next_as_first_directive='<'iconv.h'>'
33142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33143 gl_next_as_first_directive=$gl_cv_next_iconv_h
33145 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
33150 # Code from module iconv_open:
33155 if test "$am_cv_func_iconv" = yes; then
33160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33161 /* end confdefs.h. */
33164 #if defined _LIBICONV_VERSION || defined __GLIBC__
33169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33170 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
33171 gl_func_iconv_gnu=yes
33173 gl_func_iconv_gnu=no
33177 if test $gl_func_iconv_gnu = no; then
33180 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
33181 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
33182 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
33183 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
33184 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
33186 if test -n "$iconv_flavor"; then
33188 cat >>confdefs.h <<_ACEOF
33189 #define ICONV_FLAVOR $iconv_flavor
33197 REPLACE_ICONV_OPEN=1
33206 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
33213 # Code from module include_next:
33214 # Code from module inline:
33217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
33218 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
33219 if test "${gl_cv_c_inline_effective+set}" = set; then :
33220 $as_echo_n "(cached) " >&6
33222 if test $ac_cv_c_inline = no; then
33223 gl_cv_c_inline_effective=no
33225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33226 /* end confdefs.h. */
33231 #ifdef __NO_INLINE__
33232 #error "inline is not effective"
33238 if ac_fn_c_try_compile "$LINENO"; then :
33239 gl_cv_c_inline_effective=yes
33241 gl_cv_c_inline_effective=no
33243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
33248 $as_echo "$gl_cv_c_inline_effective" >&6; }
33249 if test $gl_cv_c_inline_effective = yes; then
33251 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
33255 # Code from module intprops:
33256 # Code from module java:
33258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
33259 $as_echo_n "checking whether to use Java... " >&6; }
33260 # Check whether --enable-java was given.
33261 if test "${enable_java+set}" = set; then :
33262 enableval=$enable_java; JAVA_CHOICE="$enableval"
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
33268 $as_echo "$JAVA_CHOICE" >&6; }
33269 if test "$JAVA_CHOICE" = yes; then
33270 # Check whether --enable-native-java was given.
33271 if test "${enable_native_java+set}" = set; then :
33272 enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
33278 # Code from module javacomp:
33279 # Code from module javacomp-script:
33280 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
33281 ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
33283 # Code from module javaexec:
33284 # Code from module javaexec-script:
33285 # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
33286 ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
33288 # Code from module javaversion:
33289 # Code from module libcroco:
33293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5
33294 $as_echo_n "checking whether included libcroco is requested... " >&6; }
33296 # Check whether --with-included-libcroco was given.
33297 if test "${with_included_libcroco+set}" = set; then :
33298 withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
33300 gl_cv_libcroco_force_included=no
33303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5
33304 $as_echo "$gl_cv_libcroco_force_included" >&6; }
33306 gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
33310 if test "$gl_cv_libcroco_use_included" != yes; then
33311 if test "${gl_cv_libcroco+set}" = set; then :
33312 $as_echo_n "(cached) " >&6
33319 gl_save_LIBS="$LIBS"
33329 acl_save_prefix="$prefix"
33330 prefix="$acl_final_prefix"
33331 acl_save_exec_prefix="$exec_prefix"
33332 exec_prefix="$acl_final_exec_prefix"
33334 eval additional_includedir=\"$includedir\"
33335 eval additional_libdir=\"$libdir\"
33337 exec_prefix="$acl_save_exec_prefix"
33338 prefix="$acl_save_prefix"
33341 # Check whether --with-libcroco-0.6-prefix was given.
33342 if test "${with_libcroco_06_prefix+set}" = set; then :
33343 withval=$with_libcroco_06_prefix;
33344 if test "X$withval" = "Xno"; then
33347 if test "X$withval" = "X"; then
33349 acl_save_prefix="$prefix"
33350 prefix="$acl_final_prefix"
33351 acl_save_exec_prefix="$exec_prefix"
33352 exec_prefix="$acl_final_exec_prefix"
33354 eval additional_includedir=\"$includedir\"
33355 eval additional_libdir=\"$libdir\"
33357 exec_prefix="$acl_save_exec_prefix"
33358 prefix="$acl_save_prefix"
33361 additional_includedir="$withval/include"
33362 additional_libdir="$withval/$acl_libdirstem"
33363 if test "$acl_libdirstem2" != "$acl_libdirstem" \
33364 && ! test -d "$withval/$acl_libdirstem"; then
33365 additional_libdir="$withval/$acl_libdirstem2"
33375 LIBCROCO_0_6_PREFIX=
33379 names_already_handled=
33380 names_next_round='croco-0.6 glib-2.0'
33381 while test -n "$names_next_round"; do
33382 names_this_round="$names_next_round"
33384 for name in $names_this_round; do
33386 for n in $names_already_handled; do
33387 if test "$n" = "$name"; then
33388 already_handled=yes
33392 if test -z "$already_handled"; then
33393 names_already_handled="$names_already_handled $name"
33394 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33395 eval value=\"\$HAVE_LIB$uppername\"
33396 if test -n "$value"; then
33397 if test "$value" = yes; then
33398 eval value=\"\$LIB$uppername\"
33399 test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
33400 eval value=\"\$LTLIB$uppername\"
33401 test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
33410 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
33411 if test -n "$acl_shlibext"; then
33412 shrext=".$acl_shlibext" # typically: shrext=.so
33416 if test $use_additional = yes; then
33417 dir="$additional_libdir"
33418 if test -n "$acl_shlibext"; then
33419 if test -f "$dir/$libname$shrext"; then
33421 found_so="$dir/$libname$shrext"
33423 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33424 ver=`(cd "$dir" && \
33425 for f in "$libname$shrext".*; do echo "$f"; done \
33426 | sed -e "s,^$libname$shrext\\\\.,," \
33427 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33428 | sed 1q ) 2>/dev/null`
33429 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33431 found_so="$dir/$libname$shrext.$ver"
33434 eval library_names=\"$acl_library_names_spec\"
33435 for f in $library_names; do
33436 if test -f "$dir/$f"; then
33445 if test "X$found_dir" = "X"; then
33446 if test -f "$dir/$libname.$acl_libext"; then
33448 found_a="$dir/$libname.$acl_libext"
33451 if test "X$found_dir" != "X"; then
33452 if test -f "$dir/$libname.la"; then
33453 found_la="$dir/$libname.la"
33457 if test "X$found_dir" = "X"; then
33458 for x in $LDFLAGS $LTLIBCROCO_0_6; do
33460 acl_save_prefix="$prefix"
33461 prefix="$acl_final_prefix"
33462 acl_save_exec_prefix="$exec_prefix"
33463 exec_prefix="$acl_final_exec_prefix"
33465 exec_prefix="$acl_save_exec_prefix"
33466 prefix="$acl_save_prefix"
33470 dir=`echo "X$x" | sed -e 's/^X-L//'`
33471 if test -n "$acl_shlibext"; then
33472 if test -f "$dir/$libname$shrext"; then
33474 found_so="$dir/$libname$shrext"
33476 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
33477 ver=`(cd "$dir" && \
33478 for f in "$libname$shrext".*; do echo "$f"; done \
33479 | sed -e "s,^$libname$shrext\\\\.,," \
33480 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
33481 | sed 1q ) 2>/dev/null`
33482 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
33484 found_so="$dir/$libname$shrext.$ver"
33487 eval library_names=\"$acl_library_names_spec\"
33488 for f in $library_names; do
33489 if test -f "$dir/$f"; then
33498 if test "X$found_dir" = "X"; then
33499 if test -f "$dir/$libname.$acl_libext"; then
33501 found_a="$dir/$libname.$acl_libext"
33504 if test "X$found_dir" != "X"; then
33505 if test -f "$dir/$libname.la"; then
33506 found_la="$dir/$libname.la"
33511 if test "X$found_dir" != "X"; then
33516 if test "X$found_dir" != "X"; then
33517 LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
33518 if test "X$found_so" != "X"; then
33519 if test "$enable_rpath" = no \
33520 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
33521 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
33522 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33525 for x in $ltrpathdirs; do
33526 if test "X$x" = "X$found_dir"; then
33531 if test -z "$haveit"; then
33532 ltrpathdirs="$ltrpathdirs $found_dir"
33534 if test "$acl_hardcode_direct" = yes; then
33535 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33537 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
33538 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33540 for x in $rpathdirs; do
33541 if test "X$x" = "X$found_dir"; then
33546 if test -z "$haveit"; then
33547 rpathdirs="$rpathdirs $found_dir"
33551 for x in $LDFLAGS $LIBCROCO_0_6; do
33553 acl_save_prefix="$prefix"
33554 prefix="$acl_final_prefix"
33555 acl_save_exec_prefix="$exec_prefix"
33556 exec_prefix="$acl_final_exec_prefix"
33558 exec_prefix="$acl_save_exec_prefix"
33559 prefix="$acl_save_prefix"
33561 if test "X$x" = "X-L$found_dir"; then
33566 if test -z "$haveit"; then
33567 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
33569 if test "$acl_hardcode_minus_L" != no; then
33570 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
33572 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
33578 if test "X$found_a" != "X"; then
33579 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
33581 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
33584 additional_includedir=
33585 case "$found_dir" in
33586 */$acl_libdirstem | */$acl_libdirstem/)
33587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33588 if test "$name" = 'croco-0.6'; then
33589 LIBCROCO_0_6_PREFIX="$basedir"
33591 additional_includedir="$basedir/include"
33593 */$acl_libdirstem2 | */$acl_libdirstem2/)
33594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
33595 if test "$name" = 'croco-0.6'; then
33596 LIBCROCO_0_6_PREFIX="$basedir"
33598 additional_includedir="$basedir/include"
33601 if test "X$additional_includedir" != "X"; then
33602 if test "X$additional_includedir" != "X/usr/include"; then
33604 if test "X$additional_includedir" = "X/usr/local/include"; then
33605 if test -n "$GCC"; then
33607 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33611 if test -z "$haveit"; then
33612 for x in $CPPFLAGS $INCCROCO_0_6; do
33614 acl_save_prefix="$prefix"
33615 prefix="$acl_final_prefix"
33616 acl_save_exec_prefix="$exec_prefix"
33617 exec_prefix="$acl_final_exec_prefix"
33619 exec_prefix="$acl_save_exec_prefix"
33620 prefix="$acl_save_prefix"
33622 if test "X$x" = "X-I$additional_includedir"; then
33627 if test -z "$haveit"; then
33628 if test -d "$additional_includedir"; then
33629 INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
33635 if test -n "$found_la"; then
33636 save_libdir="$libdir"
33637 case "$found_la" in
33638 */* | *\\*) . "$found_la" ;;
33639 *) . "./$found_la" ;;
33641 libdir="$save_libdir"
33642 for dep in $dependency_libs; do
33645 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33646 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
33647 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
33649 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
33650 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
33651 if test -n "$GCC"; then
33653 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33657 if test -z "$haveit"; then
33659 for x in $LDFLAGS $LIBCROCO_0_6; do
33661 acl_save_prefix="$prefix"
33662 prefix="$acl_final_prefix"
33663 acl_save_exec_prefix="$exec_prefix"
33664 exec_prefix="$acl_final_exec_prefix"
33666 exec_prefix="$acl_save_exec_prefix"
33667 prefix="$acl_save_prefix"
33669 if test "X$x" = "X-L$additional_libdir"; then
33674 if test -z "$haveit"; then
33675 if test -d "$additional_libdir"; then
33676 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
33680 for x in $LDFLAGS $LTLIBCROCO_0_6; do
33682 acl_save_prefix="$prefix"
33683 prefix="$acl_final_prefix"
33684 acl_save_exec_prefix="$exec_prefix"
33685 exec_prefix="$acl_final_exec_prefix"
33687 exec_prefix="$acl_save_exec_prefix"
33688 prefix="$acl_save_prefix"
33690 if test "X$x" = "X-L$additional_libdir"; then
33695 if test -z "$haveit"; then
33696 if test -d "$additional_libdir"; then
33697 LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
33704 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33705 if test "$enable_rpath" != no; then
33707 for x in $rpathdirs; do
33708 if test "X$x" = "X$dir"; then
33713 if test -z "$haveit"; then
33714 rpathdirs="$rpathdirs $dir"
33717 for x in $ltrpathdirs; do
33718 if test "X$x" = "X$dir"; then
33723 if test -z "$haveit"; then
33724 ltrpathdirs="$ltrpathdirs $dir"
33729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33732 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33735 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
33736 LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
33742 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
33743 LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
33749 if test "X$rpathdirs" != "X"; then
33750 if test -n "$acl_hardcode_libdir_separator"; then
33752 for found_dir in $rpathdirs; do
33753 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
33755 acl_save_libdir="$libdir"
33757 eval flag=\"$acl_hardcode_libdir_flag_spec\"
33758 libdir="$acl_save_libdir"
33759 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
33761 for found_dir in $rpathdirs; do
33762 acl_save_libdir="$libdir"
33763 libdir="$found_dir"
33764 eval flag=\"$acl_hardcode_libdir_flag_spec\"
33765 libdir="$acl_save_libdir"
33766 LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
33770 if test "X$ltrpathdirs" != "X"; then
33771 for found_dir in $ltrpathdirs; do
33772 LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
33781 LIBS="$gl_save_LIBS $LIBCROCO_0_6"
33782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33783 /* end confdefs.h. */
33784 #include <libcroco-config.h>
33788 const char *version = LIBCROCO_VERSION; return !version;
33793 if ac_fn_c_try_link "$LINENO"; then :
33795 gl_cv_LIBCROCO="$LIBCROCO_0_6"
33796 gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33799 rm -f core conftest.err conftest.$ac_objext \
33800 conftest$ac_exeext conftest.$ac_ext
33801 if test "$gl_cv_libcroco" != yes; then
33802 gl_save_CPPFLAGS="$CPPFLAGS"
33803 CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
33804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33805 /* end confdefs.h. */
33806 #include <libcroco-config.h>
33810 const char *version = LIBCROCO_VERSION; return !version;
33815 if ac_fn_c_try_link "$LINENO"; then :
33817 gl_cv_LIBCROCO="$LIBCROCO_0_6"
33818 gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33819 gl_cv_INCCROCO="$INCCROCO_0_6"
33822 rm -f core conftest.err conftest.$ac_objext \
33823 conftest$ac_exeext conftest.$ac_ext
33824 if test "$gl_cv_libcroco" != yes; then
33825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33826 /* end confdefs.h. */
33827 #include <libcroco-0.6/libcroco/libcroco-config.h>
33831 const char *version = LIBCROCO_VERSION; return !version;
33836 if ac_fn_c_try_link "$LINENO"; then :
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
33839 $as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
33840 if test "${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+set}" = set; then :
33841 $as_echo_n "(cached) " >&6
33849 if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
33851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33852 /* end confdefs.h. */
33853 #include <libcroco-0.6/libcroco/libcroco-config.h>
33856 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33857 *) gl_absname_cpp="$ac_cpp" ;;
33859 gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33860 sed -n '\#/libcroco-0.6/libcroco/libcroco-config.h#{
33861 s#.*"\(.*/libcroco-0.6/libcroco/libcroco-config.h\)".*#\1#
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
33871 $as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
33872 cat >>confdefs.h <<_ACEOF
33873 #define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
33877 libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
33878 if test -d "$libcroco_include_dir"; then
33880 gl_cv_LIBCROCO="$LIBCROCO_0_6"
33881 gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
33882 gl_cv_INCCROCO="-I$libcroco_include_dir"
33886 rm -f core conftest.err conftest.$ac_objext \
33887 conftest$ac_exeext conftest.$ac_ext
33889 CPPFLAGS="$gl_save_CPPFLAGS"
33891 LIBS="$gl_save_LIBS"
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5
33896 $as_echo_n "checking for libcroco... " >&6; }
33897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5
33898 $as_echo "$gl_cv_libcroco" >&6; }
33899 if test $gl_cv_libcroco = yes; then
33900 LIBCROCO="$gl_cv_LIBCROCO"
33901 LTLIBCROCO="$gl_cv_LTLIBCROCO"
33902 INCCROCO="$gl_cv_INCCROCO"
33904 gl_cv_libcroco_use_included=yes
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5
33911 $as_echo_n "checking whether to use the included libcroco... " >&6; }
33912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5
33913 $as_echo "$gl_cv_libcroco_use_included" >&6; }
33915 if test "$gl_cv_libcroco_use_included" = yes; then
33916 INCLUDED_LIBCROCO_TRUE=
33917 INCLUDED_LIBCROCO_FALSE='#'
33919 INCLUDED_LIBCROCO_TRUE='#'
33920 INCLUDED_LIBCROCO_FALSE=
33924 # Code from module libglib:
33926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5
33927 $as_echo_n "checking whether included glib is requested... " >&6; }
33929 # Check whether --with-included-glib was given.
33930 if test "${with_included_glib+set}" = set; then :
33931 withval=$with_included_glib; gl_cv_libglib_force_included=$withval
33933 gl_cv_libglib_force_included=no
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5
33937 $as_echo "$gl_cv_libglib_force_included" >&6; }
33939 gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
33943 if test "$gl_cv_libglib_use_included" != yes; then
33944 if test "${gl_cv_libglib+set}" = set; then :
33945 $as_echo_n "(cached) " >&6
33952 gl_save_LIBS="$LIBS"
33962 acl_save_prefix="$prefix"
33963 prefix="$acl_final_prefix"
33964 acl_save_exec_prefix="$exec_prefix"
33965 exec_prefix="$acl_final_exec_prefix"
33967 eval additional_includedir=\"$includedir\"
33968 eval additional_libdir=\"$libdir\"
33970 exec_prefix="$acl_save_exec_prefix"
33971 prefix="$acl_save_prefix"
33974 # Check whether --with-libglib-2.0-prefix was given.
33975 if test "${with_libglib_20_prefix+set}" = set; then :
33976 withval=$with_libglib_20_prefix;
33977 if test "X$withval" = "Xno"; then
33980 if test "X$withval" = "X"; then
33982 acl_save_prefix="$prefix"
33983 prefix="$acl_final_prefix"
33984 acl_save_exec_prefix="$exec_prefix"
33985 exec_prefix="$acl_final_exec_prefix"
33987 eval additional_includedir=\"$includedir\"
33988 eval additional_libdir=\"$libdir\"
33990 exec_prefix="$acl_save_exec_prefix"
33991 prefix="$acl_save_prefix"
33994 additional_includedir="$withval/include"
33995 additional_libdir="$withval/$acl_libdirstem"
33996 if test "$acl_libdirstem2" != "$acl_libdirstem" \
33997 && ! test -d "$withval/$acl_libdirstem"; then
33998 additional_libdir="$withval/$acl_libdirstem2"
34008 LIBGLIB_2_0_PREFIX=
34012 names_already_handled=
34013 names_next_round='glib-2.0 '
34014 while test -n "$names_next_round"; do
34015 names_this_round="$names_next_round"
34017 for name in $names_this_round; do
34019 for n in $names_already_handled; do
34020 if test "$n" = "$name"; then
34021 already_handled=yes
34025 if test -z "$already_handled"; then
34026 names_already_handled="$names_already_handled $name"
34027 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34028 eval value=\"\$HAVE_LIB$uppername\"
34029 if test -n "$value"; then
34030 if test "$value" = yes; then
34031 eval value=\"\$LIB$uppername\"
34032 test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
34033 eval value=\"\$LTLIB$uppername\"
34034 test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
34043 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
34044 if test -n "$acl_shlibext"; then
34045 shrext=".$acl_shlibext" # typically: shrext=.so
34049 if test $use_additional = yes; then
34050 dir="$additional_libdir"
34051 if test -n "$acl_shlibext"; then
34052 if test -f "$dir/$libname$shrext"; then
34054 found_so="$dir/$libname$shrext"
34056 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34057 ver=`(cd "$dir" && \
34058 for f in "$libname$shrext".*; do echo "$f"; done \
34059 | sed -e "s,^$libname$shrext\\\\.,," \
34060 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34061 | sed 1q ) 2>/dev/null`
34062 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34064 found_so="$dir/$libname$shrext.$ver"
34067 eval library_names=\"$acl_library_names_spec\"
34068 for f in $library_names; do
34069 if test -f "$dir/$f"; then
34078 if test "X$found_dir" = "X"; then
34079 if test -f "$dir/$libname.$acl_libext"; then
34081 found_a="$dir/$libname.$acl_libext"
34084 if test "X$found_dir" != "X"; then
34085 if test -f "$dir/$libname.la"; then
34086 found_la="$dir/$libname.la"
34090 if test "X$found_dir" = "X"; then
34091 for x in $LDFLAGS $LTLIBGLIB_2_0; do
34093 acl_save_prefix="$prefix"
34094 prefix="$acl_final_prefix"
34095 acl_save_exec_prefix="$exec_prefix"
34096 exec_prefix="$acl_final_exec_prefix"
34098 exec_prefix="$acl_save_exec_prefix"
34099 prefix="$acl_save_prefix"
34103 dir=`echo "X$x" | sed -e 's/^X-L//'`
34104 if test -n "$acl_shlibext"; then
34105 if test -f "$dir/$libname$shrext"; then
34107 found_so="$dir/$libname$shrext"
34109 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34110 ver=`(cd "$dir" && \
34111 for f in "$libname$shrext".*; do echo "$f"; done \
34112 | sed -e "s,^$libname$shrext\\\\.,," \
34113 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34114 | sed 1q ) 2>/dev/null`
34115 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34117 found_so="$dir/$libname$shrext.$ver"
34120 eval library_names=\"$acl_library_names_spec\"
34121 for f in $library_names; do
34122 if test -f "$dir/$f"; then
34131 if test "X$found_dir" = "X"; then
34132 if test -f "$dir/$libname.$acl_libext"; then
34134 found_a="$dir/$libname.$acl_libext"
34137 if test "X$found_dir" != "X"; then
34138 if test -f "$dir/$libname.la"; then
34139 found_la="$dir/$libname.la"
34144 if test "X$found_dir" != "X"; then
34149 if test "X$found_dir" != "X"; then
34150 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
34151 if test "X$found_so" != "X"; then
34152 if test "$enable_rpath" = no \
34153 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34154 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34155 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34158 for x in $ltrpathdirs; do
34159 if test "X$x" = "X$found_dir"; then
34164 if test -z "$haveit"; then
34165 ltrpathdirs="$ltrpathdirs $found_dir"
34167 if test "$acl_hardcode_direct" = yes; then
34168 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34170 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34171 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34173 for x in $rpathdirs; do
34174 if test "X$x" = "X$found_dir"; then
34179 if test -z "$haveit"; then
34180 rpathdirs="$rpathdirs $found_dir"
34184 for x in $LDFLAGS $LIBGLIB_2_0; do
34186 acl_save_prefix="$prefix"
34187 prefix="$acl_final_prefix"
34188 acl_save_exec_prefix="$exec_prefix"
34189 exec_prefix="$acl_final_exec_prefix"
34191 exec_prefix="$acl_save_exec_prefix"
34192 prefix="$acl_save_prefix"
34194 if test "X$x" = "X-L$found_dir"; then
34199 if test -z "$haveit"; then
34200 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
34202 if test "$acl_hardcode_minus_L" != no; then
34203 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34205 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34211 if test "X$found_a" != "X"; then
34212 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
34214 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
34217 additional_includedir=
34218 case "$found_dir" in
34219 */$acl_libdirstem | */$acl_libdirstem/)
34220 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34221 if test "$name" = 'glib-2.0'; then
34222 LIBGLIB_2_0_PREFIX="$basedir"
34224 additional_includedir="$basedir/include"
34226 */$acl_libdirstem2 | */$acl_libdirstem2/)
34227 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34228 if test "$name" = 'glib-2.0'; then
34229 LIBGLIB_2_0_PREFIX="$basedir"
34231 additional_includedir="$basedir/include"
34234 if test "X$additional_includedir" != "X"; then
34235 if test "X$additional_includedir" != "X/usr/include"; then
34237 if test "X$additional_includedir" = "X/usr/local/include"; then
34238 if test -n "$GCC"; then
34240 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34244 if test -z "$haveit"; then
34245 for x in $CPPFLAGS $INCGLIB_2_0; do
34247 acl_save_prefix="$prefix"
34248 prefix="$acl_final_prefix"
34249 acl_save_exec_prefix="$exec_prefix"
34250 exec_prefix="$acl_final_exec_prefix"
34252 exec_prefix="$acl_save_exec_prefix"
34253 prefix="$acl_save_prefix"
34255 if test "X$x" = "X-I$additional_includedir"; then
34260 if test -z "$haveit"; then
34261 if test -d "$additional_includedir"; then
34262 INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
34268 if test -n "$found_la"; then
34269 save_libdir="$libdir"
34270 case "$found_la" in
34271 */* | *\\*) . "$found_la" ;;
34272 *) . "./$found_la" ;;
34274 libdir="$save_libdir"
34275 for dep in $dependency_libs; do
34278 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34279 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34280 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34282 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34283 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34284 if test -n "$GCC"; then
34286 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34290 if test -z "$haveit"; then
34292 for x in $LDFLAGS $LIBGLIB_2_0; do
34294 acl_save_prefix="$prefix"
34295 prefix="$acl_final_prefix"
34296 acl_save_exec_prefix="$exec_prefix"
34297 exec_prefix="$acl_final_exec_prefix"
34299 exec_prefix="$acl_save_exec_prefix"
34300 prefix="$acl_save_prefix"
34302 if test "X$x" = "X-L$additional_libdir"; then
34307 if test -z "$haveit"; then
34308 if test -d "$additional_libdir"; then
34309 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
34313 for x in $LDFLAGS $LTLIBGLIB_2_0; do
34315 acl_save_prefix="$prefix"
34316 prefix="$acl_final_prefix"
34317 acl_save_exec_prefix="$exec_prefix"
34318 exec_prefix="$acl_final_exec_prefix"
34320 exec_prefix="$acl_save_exec_prefix"
34321 prefix="$acl_save_prefix"
34323 if test "X$x" = "X-L$additional_libdir"; then
34328 if test -z "$haveit"; then
34329 if test -d "$additional_libdir"; then
34330 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
34337 dir=`echo "X$dep" | sed -e 's/^X-R//'`
34338 if test "$enable_rpath" != no; then
34340 for x in $rpathdirs; do
34341 if test "X$x" = "X$dir"; then
34346 if test -z "$haveit"; then
34347 rpathdirs="$rpathdirs $dir"
34350 for x in $ltrpathdirs; do
34351 if test "X$x" = "X$dir"; then
34356 if test -z "$haveit"; then
34357 ltrpathdirs="$ltrpathdirs $dir"
34362 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34365 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34368 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
34369 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
34375 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34376 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
34382 if test "X$rpathdirs" != "X"; then
34383 if test -n "$acl_hardcode_libdir_separator"; then
34385 for found_dir in $rpathdirs; do
34386 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34388 acl_save_libdir="$libdir"
34390 eval flag=\"$acl_hardcode_libdir_flag_spec\"
34391 libdir="$acl_save_libdir"
34392 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34394 for found_dir in $rpathdirs; do
34395 acl_save_libdir="$libdir"
34396 libdir="$found_dir"
34397 eval flag=\"$acl_hardcode_libdir_flag_spec\"
34398 libdir="$acl_save_libdir"
34399 LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34403 if test "X$ltrpathdirs" != "X"; then
34404 for found_dir in $ltrpathdirs; do
34405 LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
34414 LIBS="$gl_save_LIBS $LIBGLIB_2_0"
34415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34416 /* end confdefs.h. */
34418 #ifndef G_BEGIN_DECLS
34419 error this glib.h includes a glibconfig.h from a glib version 1.x
34425 g_string_new ("foo");
34430 if ac_fn_c_try_link "$LINENO"; then :
34432 gl_cv_LIBGLIB="$LIBGLIB_2_0"
34433 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34436 rm -f core conftest.err conftest.$ac_objext \
34437 conftest$ac_exeext conftest.$ac_ext
34438 if test "$gl_cv_libglib" != yes; then
34439 gl_save_CPPFLAGS="$CPPFLAGS"
34440 CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
34441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34442 /* end confdefs.h. */
34444 #ifndef G_BEGIN_DECLS
34445 error this glib.h includes a glibconfig.h from a glib version 1.x
34451 g_string_new ("foo");
34456 if ac_fn_c_try_link "$LINENO"; then :
34458 gl_cv_LIBGLIB="$LIBGLIB_2_0"
34459 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34460 gl_cv_INCGLIB="$INCGLIB_2_0"
34463 rm -f core conftest.err conftest.$ac_objext \
34464 conftest$ac_exeext conftest.$ac_ext
34465 if test "$gl_cv_libglib" != yes; then
34466 if test -n "$LIBGLIB_2_0_PREFIX"; then
34467 CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34469 /* end confdefs.h. */
34471 #ifndef G_BEGIN_DECLS
34472 error this glib.h includes a glibconfig.h from a glib version 1.x
34478 g_string_new ("foo");
34483 if ac_fn_c_try_link "$LINENO"; then :
34485 gl_cv_LIBGLIB="$LIBGLIB_2_0"
34486 gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34487 gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34490 rm -f core conftest.err conftest.$ac_objext \
34491 conftest$ac_exeext conftest.$ac_ext
34494 CPPFLAGS="$gl_save_CPPFLAGS"
34496 LIBS="$gl_save_LIBS"
34500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5
34501 $as_echo_n "checking for glib... " >&6; }
34502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5
34503 $as_echo "$gl_cv_libglib" >&6; }
34504 if test $gl_cv_libglib = yes; then
34505 LIBGLIB="$gl_cv_LIBGLIB"
34506 LTLIBGLIB="$gl_cv_LTLIBGLIB"
34507 INCGLIB="$gl_cv_INCGLIB"
34509 gl_cv_libglib_use_included=yes
34515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5
34516 $as_echo_n "checking whether to use the included glib... " >&6; }
34517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5
34518 $as_echo "$gl_cv_libglib_use_included" >&6; }
34520 if test "$gl_cv_libglib_use_included" = yes; then
34522 LIBGLIB_H="$LIBGLIB_H glib.h"
34523 LIBGLIB_H="$LIBGLIB_H glibconfig.h"
34524 LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
34525 LIBGLIB_H="$LIBGLIB_H glib/glist.h"
34526 LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
34527 LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
34528 LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
34529 LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
34531 for ac_header in unistd.h
34533 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
34534 if test "x$ac_cv_header_unistd_h" = x""yes; then :
34535 cat >>confdefs.h <<_ACEOF
34536 #define HAVE_UNISTD_H 1
34548 if test "$gl_cv_libglib_use_included" = yes; then
34549 INCLUDED_LIBGLIB_TRUE=
34550 INCLUDED_LIBGLIB_FALSE='#'
34552 INCLUDED_LIBGLIB_TRUE='#'
34553 INCLUDED_LIBGLIB_FALSE=
34557 # Code from module libunistring-optional:
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
34562 $as_echo_n "checking whether to use the included libunistring... " >&6; }
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
34564 $as_echo "$gl_libunistring_use_included" >&6; }
34566 # Code from module libxml:
34570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5
34571 $as_echo_n "checking whether included libxml is requested... " >&6; }
34573 # Check whether --with-included-libxml was given.
34574 if test "${with_included_libxml+set}" = set; then :
34575 withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
34577 gl_cv_libxml_force_included=no
34580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5
34581 $as_echo "$gl_cv_libxml_force_included" >&6; }
34583 gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
34587 if test "$gl_cv_libxml_use_included" != yes; then
34588 if test "${gl_cv_libxml+set}" = set; then :
34589 $as_echo_n "(cached) " >&6
34596 gl_save_LIBS="$LIBS"
34597 LIBS="$LIBS $LIBICONV"
34607 acl_save_prefix="$prefix"
34608 prefix="$acl_final_prefix"
34609 acl_save_exec_prefix="$exec_prefix"
34610 exec_prefix="$acl_final_exec_prefix"
34612 eval additional_includedir=\"$includedir\"
34613 eval additional_libdir=\"$libdir\"
34615 exec_prefix="$acl_save_exec_prefix"
34616 prefix="$acl_save_prefix"
34619 # Check whether --with-libxml2-prefix was given.
34620 if test "${with_libxml2_prefix+set}" = set; then :
34621 withval=$with_libxml2_prefix;
34622 if test "X$withval" = "Xno"; then
34625 if test "X$withval" = "X"; then
34627 acl_save_prefix="$prefix"
34628 prefix="$acl_final_prefix"
34629 acl_save_exec_prefix="$exec_prefix"
34630 exec_prefix="$acl_final_exec_prefix"
34632 eval additional_includedir=\"$includedir\"
34633 eval additional_libdir=\"$libdir\"
34635 exec_prefix="$acl_save_exec_prefix"
34636 prefix="$acl_save_prefix"
34639 additional_includedir="$withval/include"
34640 additional_libdir="$withval/$acl_libdirstem"
34641 if test "$acl_libdirstem2" != "$acl_libdirstem" \
34642 && ! test -d "$withval/$acl_libdirstem"; then
34643 additional_libdir="$withval/$acl_libdirstem2"
34657 names_already_handled=
34658 names_next_round='xml2 '
34659 while test -n "$names_next_round"; do
34660 names_this_round="$names_next_round"
34662 for name in $names_this_round; do
34664 for n in $names_already_handled; do
34665 if test "$n" = "$name"; then
34666 already_handled=yes
34670 if test -z "$already_handled"; then
34671 names_already_handled="$names_already_handled $name"
34672 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34673 eval value=\"\$HAVE_LIB$uppername\"
34674 if test -n "$value"; then
34675 if test "$value" = yes; then
34676 eval value=\"\$LIB$uppername\"
34677 test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
34678 eval value=\"\$LTLIB$uppername\"
34679 test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
34688 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
34689 if test -n "$acl_shlibext"; then
34690 shrext=".$acl_shlibext" # typically: shrext=.so
34694 if test $use_additional = yes; then
34695 dir="$additional_libdir"
34696 if test -n "$acl_shlibext"; then
34697 if test -f "$dir/$libname$shrext"; then
34699 found_so="$dir/$libname$shrext"
34701 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34702 ver=`(cd "$dir" && \
34703 for f in "$libname$shrext".*; do echo "$f"; done \
34704 | sed -e "s,^$libname$shrext\\\\.,," \
34705 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34706 | sed 1q ) 2>/dev/null`
34707 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34709 found_so="$dir/$libname$shrext.$ver"
34712 eval library_names=\"$acl_library_names_spec\"
34713 for f in $library_names; do
34714 if test -f "$dir/$f"; then
34723 if test "X$found_dir" = "X"; then
34724 if test -f "$dir/$libname.$acl_libext"; then
34726 found_a="$dir/$libname.$acl_libext"
34729 if test "X$found_dir" != "X"; then
34730 if test -f "$dir/$libname.la"; then
34731 found_la="$dir/$libname.la"
34735 if test "X$found_dir" = "X"; then
34736 for x in $LDFLAGS $LTLIBXML2; do
34738 acl_save_prefix="$prefix"
34739 prefix="$acl_final_prefix"
34740 acl_save_exec_prefix="$exec_prefix"
34741 exec_prefix="$acl_final_exec_prefix"
34743 exec_prefix="$acl_save_exec_prefix"
34744 prefix="$acl_save_prefix"
34748 dir=`echo "X$x" | sed -e 's/^X-L//'`
34749 if test -n "$acl_shlibext"; then
34750 if test -f "$dir/$libname$shrext"; then
34752 found_so="$dir/$libname$shrext"
34754 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34755 ver=`(cd "$dir" && \
34756 for f in "$libname$shrext".*; do echo "$f"; done \
34757 | sed -e "s,^$libname$shrext\\\\.,," \
34758 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34759 | sed 1q ) 2>/dev/null`
34760 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34762 found_so="$dir/$libname$shrext.$ver"
34765 eval library_names=\"$acl_library_names_spec\"
34766 for f in $library_names; do
34767 if test -f "$dir/$f"; then
34776 if test "X$found_dir" = "X"; then
34777 if test -f "$dir/$libname.$acl_libext"; then
34779 found_a="$dir/$libname.$acl_libext"
34782 if test "X$found_dir" != "X"; then
34783 if test -f "$dir/$libname.la"; then
34784 found_la="$dir/$libname.la"
34789 if test "X$found_dir" != "X"; then
34794 if test "X$found_dir" != "X"; then
34795 LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
34796 if test "X$found_so" != "X"; then
34797 if test "$enable_rpath" = no \
34798 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
34799 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
34800 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34803 for x in $ltrpathdirs; do
34804 if test "X$x" = "X$found_dir"; then
34809 if test -z "$haveit"; then
34810 ltrpathdirs="$ltrpathdirs $found_dir"
34812 if test "$acl_hardcode_direct" = yes; then
34813 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34815 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34816 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34818 for x in $rpathdirs; do
34819 if test "X$x" = "X$found_dir"; then
34824 if test -z "$haveit"; then
34825 rpathdirs="$rpathdirs $found_dir"
34829 for x in $LDFLAGS $LIBXML2; do
34831 acl_save_prefix="$prefix"
34832 prefix="$acl_final_prefix"
34833 acl_save_exec_prefix="$exec_prefix"
34834 exec_prefix="$acl_final_exec_prefix"
34836 exec_prefix="$acl_save_exec_prefix"
34837 prefix="$acl_save_prefix"
34839 if test "X$x" = "X-L$found_dir"; then
34844 if test -z "$haveit"; then
34845 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
34847 if test "$acl_hardcode_minus_L" != no; then
34848 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
34850 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
34856 if test "X$found_a" != "X"; then
34857 LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
34859 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
34862 additional_includedir=
34863 case "$found_dir" in
34864 */$acl_libdirstem | */$acl_libdirstem/)
34865 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34866 if test "$name" = 'xml2'; then
34867 LIBXML2_PREFIX="$basedir"
34869 additional_includedir="$basedir/include"
34871 */$acl_libdirstem2 | */$acl_libdirstem2/)
34872 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
34873 if test "$name" = 'xml2'; then
34874 LIBXML2_PREFIX="$basedir"
34876 additional_includedir="$basedir/include"
34879 if test "X$additional_includedir" != "X"; then
34880 if test "X$additional_includedir" != "X/usr/include"; then
34882 if test "X$additional_includedir" = "X/usr/local/include"; then
34883 if test -n "$GCC"; then
34885 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34889 if test -z "$haveit"; then
34890 for x in $CPPFLAGS $INCXML2; do
34892 acl_save_prefix="$prefix"
34893 prefix="$acl_final_prefix"
34894 acl_save_exec_prefix="$exec_prefix"
34895 exec_prefix="$acl_final_exec_prefix"
34897 exec_prefix="$acl_save_exec_prefix"
34898 prefix="$acl_save_prefix"
34900 if test "X$x" = "X-I$additional_includedir"; then
34905 if test -z "$haveit"; then
34906 if test -d "$additional_includedir"; then
34907 INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
34913 if test -n "$found_la"; then
34914 save_libdir="$libdir"
34915 case "$found_la" in
34916 */* | *\\*) . "$found_la" ;;
34917 *) . "./$found_la" ;;
34919 libdir="$save_libdir"
34920 for dep in $dependency_libs; do
34923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34924 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
34925 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
34927 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
34928 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
34929 if test -n "$GCC"; then
34931 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34935 if test -z "$haveit"; then
34937 for x in $LDFLAGS $LIBXML2; do
34939 acl_save_prefix="$prefix"
34940 prefix="$acl_final_prefix"
34941 acl_save_exec_prefix="$exec_prefix"
34942 exec_prefix="$acl_final_exec_prefix"
34944 exec_prefix="$acl_save_exec_prefix"
34945 prefix="$acl_save_prefix"
34947 if test "X$x" = "X-L$additional_libdir"; then
34952 if test -z "$haveit"; then
34953 if test -d "$additional_libdir"; then
34954 LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
34958 for x in $LDFLAGS $LTLIBXML2; do
34960 acl_save_prefix="$prefix"
34961 prefix="$acl_final_prefix"
34962 acl_save_exec_prefix="$exec_prefix"
34963 exec_prefix="$acl_final_exec_prefix"
34965 exec_prefix="$acl_save_exec_prefix"
34966 prefix="$acl_save_prefix"
34968 if test "X$x" = "X-L$additional_libdir"; then
34973 if test -z "$haveit"; then
34974 if test -d "$additional_libdir"; then
34975 LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
34982 dir=`echo "X$dep" | sed -e 's/^X-R//'`
34983 if test "$enable_rpath" != no; then
34985 for x in $rpathdirs; do
34986 if test "X$x" = "X$dir"; then
34991 if test -z "$haveit"; then
34992 rpathdirs="$rpathdirs $dir"
34995 for x in $ltrpathdirs; do
34996 if test "X$x" = "X$dir"; then
35001 if test -z "$haveit"; then
35002 ltrpathdirs="$ltrpathdirs $dir"
35007 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
35010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
35013 LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
35014 LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
35020 LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
35021 LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
35027 if test "X$rpathdirs" != "X"; then
35028 if test -n "$acl_hardcode_libdir_separator"; then
35030 for found_dir in $rpathdirs; do
35031 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
35033 acl_save_libdir="$libdir"
35035 eval flag=\"$acl_hardcode_libdir_flag_spec\"
35036 libdir="$acl_save_libdir"
35037 LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
35039 for found_dir in $rpathdirs; do
35040 acl_save_libdir="$libdir"
35041 libdir="$found_dir"
35042 eval flag=\"$acl_hardcode_libdir_flag_spec\"
35043 libdir="$acl_save_libdir"
35044 LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
35048 if test "X$ltrpathdirs" != "X"; then
35049 for found_dir in $ltrpathdirs; do
35050 LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
35059 LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
35060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35061 /* end confdefs.h. */
35062 #include <libxml/xmlversion.h>
35066 xmlCheckVersion (0);
35071 if ac_fn_c_try_link "$LINENO"; then :
35073 gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35074 gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35077 rm -f core conftest.err conftest.$ac_objext \
35078 conftest$ac_exeext conftest.$ac_ext
35079 if test "$gl_cv_libxml" != yes; then
35080 gl_save_CPPFLAGS="$CPPFLAGS"
35081 CPPFLAGS="$CPPFLAGS $INCXML2"
35082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35083 /* end confdefs.h. */
35084 #include <libxml/xmlversion.h>
35088 xmlCheckVersion (0);
35093 if ac_fn_c_try_link "$LINENO"; then :
35095 gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35096 gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35097 gl_cv_INCXML="$INCXML2"
35100 rm -f core conftest.err conftest.$ac_objext \
35101 conftest$ac_exeext conftest.$ac_ext
35102 if test "$gl_cv_libxml" != yes; then
35103 libxml2_include_dir=
35104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35105 /* end confdefs.h. */
35106 #include <libxml2/libxml/xmlexports.h>
35108 if ac_fn_c_try_cpp "$LINENO"; then :
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlexports.h>" >&5
35111 $as_echo_n "checking absolute name of <libxml2/libxml/xmlexports.h>... " >&6; }
35112 if test "${gl_cv_absolute_libxml2_libxml_xmlexports_h+set}" = set; then :
35113 $as_echo_n "(cached) " >&6
35121 if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then
35123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35124 /* end confdefs.h. */
35125 #include <libxml2/libxml/xmlexports.h>
35128 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35129 *) gl_absname_cpp="$ac_cpp" ;;
35131 gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35132 sed -n '\#/libxml2/libxml/xmlexports.h#{
35133 s#.*"\(.*/libxml2/libxml/xmlexports.h\)".*#\1#
35142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5
35143 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; }
35144 cat >>confdefs.h <<_ACEOF
35145 #define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h"
35149 libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'`
35152 rm -f conftest.err conftest.$ac_ext
35153 if test -z "$libxml2_include_dir"; then
35154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35155 /* end confdefs.h. */
35156 #include <libxml2/libxml/xmlversion.h>
35158 if ac_fn_c_try_cpp "$LINENO"; then :
35160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
35161 $as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
35162 if test "${gl_cv_absolute_libxml2_libxml_xmlversion_h+set}" = set; then :
35163 $as_echo_n "(cached) " >&6
35171 if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
35173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35174 /* end confdefs.h. */
35175 #include <libxml2/libxml/xmlversion.h>
35178 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35179 *) gl_absname_cpp="$ac_cpp" ;;
35181 gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35182 sed -n '\#/libxml2/libxml/xmlversion.h#{
35183 s#.*"\(.*/libxml2/libxml/xmlversion.h\)".*#\1#
35192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
35193 $as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
35194 cat >>confdefs.h <<_ACEOF
35195 #define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
35199 libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
35202 rm -f conftest.err conftest.$ac_ext
35204 if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
35205 CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
35206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35207 /* end confdefs.h. */
35208 #include <libxml/xmlversion.h>
35212 xmlCheckVersion (0);
35217 if ac_fn_c_try_link "$LINENO"; then :
35219 gl_cv_LIBXML="$LIBXML2 $LIBICONV"
35220 gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
35221 gl_cv_INCXML="-I$libxml2_include_dir"
35224 rm -f core conftest.err conftest.$ac_objext \
35225 conftest$ac_exeext conftest.$ac_ext
35228 CPPFLAGS="$gl_save_CPPFLAGS"
35230 LIBS="$gl_save_LIBS"
35234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5
35235 $as_echo_n "checking for libxml... " >&6; }
35236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5
35237 $as_echo "$gl_cv_libxml" >&6; }
35238 if test $gl_cv_libxml = yes; then
35239 LIBXML="$gl_cv_LIBXML"
35240 LTLIBXML="$gl_cv_LTLIBXML"
35241 INCXML="$gl_cv_INCXML"
35243 gl_cv_libxml_use_included=yes
35249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5
35250 $as_echo_n "checking whether to use the included libxml... " >&6; }
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5
35252 $as_echo "$gl_cv_libxml_use_included" >&6; }
35254 if test "$gl_cv_libxml_use_included" = yes; then
35256 LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
35257 LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
35258 LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
35259 LIBXML_H="$LIBXML_H libxml/SAX2.h"
35260 LIBXML_H="$LIBXML_H libxml/SAX.h"
35261 LIBXML_H="$LIBXML_H libxml/c14n.h"
35262 LIBXML_H="$LIBXML_H libxml/catalog.h"
35263 LIBXML_H="$LIBXML_H libxml/chvalid.h"
35264 LIBXML_H="$LIBXML_H libxml/debugXML.h"
35265 LIBXML_H="$LIBXML_H libxml/dict.h"
35266 LIBXML_H="$LIBXML_H libxml/encoding.h"
35267 LIBXML_H="$LIBXML_H libxml/entities.h"
35268 LIBXML_H="$LIBXML_H libxml/globals.h"
35269 LIBXML_H="$LIBXML_H libxml/hash.h"
35270 LIBXML_H="$LIBXML_H libxml/list.h"
35271 LIBXML_H="$LIBXML_H libxml/nanoftp.h"
35272 LIBXML_H="$LIBXML_H libxml/nanohttp.h"
35273 LIBXML_H="$LIBXML_H libxml/parser.h"
35274 LIBXML_H="$LIBXML_H libxml/parserInternals.h"
35275 LIBXML_H="$LIBXML_H libxml/pattern.h"
35276 LIBXML_H="$LIBXML_H libxml/relaxng.h"
35277 LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
35278 LIBXML_H="$LIBXML_H libxml/schematron.h"
35279 LIBXML_H="$LIBXML_H libxml/threads.h"
35280 LIBXML_H="$LIBXML_H libxml/tree.h"
35281 LIBXML_H="$LIBXML_H libxml/uri.h"
35282 LIBXML_H="$LIBXML_H libxml/valid.h"
35283 LIBXML_H="$LIBXML_H libxml/xinclude.h"
35284 LIBXML_H="$LIBXML_H libxml/xlink.h"
35285 LIBXML_H="$LIBXML_H libxml/xmlIO.h"
35286 LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
35287 LIBXML_H="$LIBXML_H libxml/xmlerror.h"
35288 LIBXML_H="$LIBXML_H libxml/xmlexports.h"
35289 LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
35290 LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
35291 LIBXML_H="$LIBXML_H libxml/xmlreader.h"
35292 LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
35293 LIBXML_H="$LIBXML_H libxml/xmlsave.h"
35294 LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
35295 LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
35296 LIBXML_H="$LIBXML_H libxml/xmlstring.h"
35297 LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
35298 LIBXML_H="$LIBXML_H libxml/xmlversion.h"
35299 LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
35300 LIBXML_H="$LIBXML_H libxml/xpath.h"
35301 LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
35302 LIBXML_H="$LIBXML_H libxml/xpointer.h"
35303 for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
35304 fcntl.h float.h limits.h malloc.h math.h netdb.h \
35305 netinet/in.h signal.h stdlib.h string.h \
35306 strings.h sys/select.h sys/socket.h sys/stat.h \
35307 sys/time.h sys/types.h time.h unistd.h
35309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
35311 eval as_val=\$$as_ac_Header
35312 if test "x$as_val" = x""yes; then :
35313 cat >>confdefs.h <<_ACEOF
35314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35321 for ac_header in arpa/nameser.h
35323 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "
35324 #if HAVE_SYS_TYPES_H
35325 # include <sys/types.h>
35329 if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
35330 cat >>confdefs.h <<_ACEOF
35331 #define HAVE_ARPA_NAMESER_H 1
35338 for ac_header in resolv.h
35340 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
35341 #if HAVE_SYS_TYPES_H
35342 # include <sys/types.h>
35344 #if HAVE_NETINET_IN_H
35345 # include <netinet/in.h>
35347 #if HAVE_ARPA_NAMESER_H
35348 # include <arpa/nameser.h>
35352 if test "x$ac_cv_header_resolv_h" = x""yes; then :
35353 cat >>confdefs.h <<_ACEOF
35354 #define HAVE_RESOLV_H 1
35361 for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
35363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35365 eval as_val=\$$as_ac_var
35366 if test "x$as_val" = x""yes; then :
35367 cat >>confdefs.h <<_ACEOF
35368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35375 $as_echo "#define VA_COPY va_copy" >>confdefs.h
35382 if test "$gl_cv_libxml_use_included" = yes; then
35383 INCLUDED_LIBXML_TRUE=
35384 INCLUDED_LIBXML_FALSE='#'
35386 INCLUDED_LIBXML_TRUE='#'
35387 INCLUDED_LIBXML_FALSE=
35391 # Code from module linkedhash-list:
35392 # Code from module list:
35396 # Code from module localcharset:
35411 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
35413 # Code from module locale:
35421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
35422 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
35423 if test "${gl_cv_header_locale_h_posix2001+set}" = set; then :
35424 $as_echo_n "(cached) " >&6
35426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35427 /* end confdefs.h. */
35428 #include <locale.h>
35429 int x = LC_MESSAGES;
35438 if ac_fn_c_try_compile "$LINENO"; then :
35439 gl_cv_header_locale_h_posix2001=yes
35441 gl_cv_header_locale_h_posix2001=no
35443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
35446 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
35455 if test $ac_cv_header_xlocale_h = yes; then
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
35458 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
35459 if test "${gl_cv_header_locale_has_locale_t+set}" = set; then :
35460 $as_echo_n "(cached) " >&6
35462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35463 /* end confdefs.h. */
35464 #include <locale.h>
35474 if ac_fn_c_try_compile "$LINENO"; then :
35475 gl_cv_header_locale_has_locale_t=yes
35477 gl_cv_header_locale_has_locale_t=no
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
35483 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
35484 if test $gl_cv_header_locale_has_locale_t = yes; then
35485 gl_cv_header_locale_h_needs_xlocale_h=no
35487 gl_cv_header_locale_h_needs_xlocale_h=yes
35491 gl_cv_header_locale_h_needs_xlocale_h=no
35507 if test $gl_cv_have_include_next = yes; then
35508 gl_cv_next_locale_h='<'locale.h'>'
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
35511 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
35512 if test "${gl_cv_next_locale_h+set}" = set; then :
35513 $as_echo_n "(cached) " >&6
35516 if test $ac_cv_header_locale_h = yes; then
35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35518 /* end confdefs.h. */
35519 #include <locale.h>
35523 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35524 *) gl_absname_cpp="$ac_cpp" ;;
35526 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35527 sed -n '\#/locale.h#{
35528 s#.*"\(.*/locale.h\)".*#\1#
35534 gl_cv_next_locale_h='<'locale.h'>'
35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
35539 $as_echo "$gl_cv_next_locale_h" >&6; }
35541 NEXT_LOCALE_H=$gl_cv_next_locale_h
35543 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35545 gl_next_as_first_directive='<'locale.h'>'
35547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35548 gl_next_as_first_directive=$gl_cv_next_locale_h
35550 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
35555 if test -n "$STDDEF_H" \
35556 || test $gl_cv_header_locale_h_posix2001 = no \
35557 || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then
35564 for gl_func in duplocale; do
35565 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35567 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35568 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
35569 $as_echo_n "(cached) " >&6
35571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35572 /* end confdefs.h. */
35573 #include <locale.h>
35574 /* Some systems provide declarations in a non-standard header. */
35576 # include <xlocale.h>
35588 if ac_fn_c_try_compile "$LINENO"; then :
35589 eval "$as_gl_Symbol=yes"
35591 eval "$as_gl_Symbol=no"
35593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35595 eval ac_res=\$$as_gl_Symbol
35596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35597 $as_echo "$ac_res" >&6; }
35598 eval as_val=\$$as_gl_Symbol
35599 if test "x$as_val" = x""yes; then :
35600 cat >>confdefs.h <<_ACEOF
35601 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35604 eval ac_cv_have_decl_$gl_func=yes
35609 # Code from module localename:
35613 for ac_func in setlocale uselocale
35615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35617 eval as_val=\$$as_ac_var
35618 if test "x$as_val" = x""yes; then :
35619 cat >>confdefs.h <<_ACEOF
35620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35627 # Code from module lock:
35630 if test "$gl_threads_api" = posix; then
35631 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
35632 # pthread_rwlock_* functions.
35633 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
35635 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
35637 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
35641 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
35642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35643 /* end confdefs.h. */
35644 #include <pthread.h>
35648 #if __FreeBSD__ == 4
35649 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
35651 int x = (int)PTHREAD_MUTEX_RECURSIVE;
35658 if ac_fn_c_try_compile "$LINENO"; then :
35660 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
35663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35669 # Code from module lstat:
35679 if test $ac_cv_func_lstat = yes; then
35681 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
35684 # Prerequisites of lib/lstat.c.
35697 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
35701 # Code from module malloc-posix:
35704 if test $gl_cv_func_malloc_posix = yes; then
35705 HAVE_MALLOC_POSIX=1
35707 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
35718 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
35720 HAVE_MALLOC_POSIX=0
35727 GNULIB_MALLOC_POSIX=1
35731 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
35735 # Code from module malloca:
35740 # Code from module mbchar:
35745 # Code from module mbiter:
35752 # Code from module mbrtowc:
35775 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35780 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35781 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
35782 $as_echo_n "(cached) " >&6
35786 # Guess no on AIX and OSF/1.
35787 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35788 # Guess yes otherwise.
35789 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35791 if test $LOCALE_JA != none; then
35792 if test "$cross_compiling" = yes; then :
35795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35796 /* end confdefs.h. */
35798 #include <locale.h>
35799 #include <string.h>
35803 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35805 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35809 memset (&state, '\0', sizeof (mbstate_t));
35810 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35811 if (mbsinit (&state))
35817 if ac_fn_c_try_run "$LINENO"; then :
35818 gl_cv_func_mbrtowc_incomplete_state=yes
35820 gl_cv_func_mbrtowc_incomplete_state=no
35822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35823 conftest.$ac_objext conftest.beam conftest.$ac_ext
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35830 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35836 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35837 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
35838 $as_echo_n "(cached) " >&6
35842 # Guess no on Solaris 8.
35843 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35844 # Guess yes otherwise.
35845 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35847 if test $LOCALE_ZH_CN != none; then
35848 if test "$cross_compiling" = yes; then :
35851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35852 /* end confdefs.h. */
35854 #include <locale.h>
35855 #include <stdlib.h>
35856 #include <string.h>
35860 /* This fails on Solaris 8:
35861 mbrtowc returns 2, and sets wc to 0x00F0.
35862 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
35863 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35865 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35869 memset (&state, '\0', sizeof (mbstate_t));
35870 if (mbrtowc (&wc, input + 3, 6, &state) != 4
35871 && mbtowc (&wc, input + 3, 6) == 4)
35877 if ac_fn_c_try_run "$LINENO"; then :
35878 gl_cv_func_mbrtowc_sanitycheck=yes
35880 gl_cv_func_mbrtowc_sanitycheck=no
35882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35883 conftest.$ac_objext conftest.beam conftest.$ac_ext
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35890 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35892 REPLACE_MBSTATE_T=0
35893 case "$gl_cv_func_mbrtowc_incomplete_state" in
35895 *) REPLACE_MBSTATE_T=1 ;;
35897 case "$gl_cv_func_mbrtowc_sanitycheck" in
35899 *) REPLACE_MBSTATE_T=1 ;;
35902 REPLACE_MBSTATE_T=1
35904 if test $REPLACE_MBSTATE_T = 1; then
35918 if test $ac_cv_func_mbrtowc = no; then
35921 if test $REPLACE_MBSTATE_T = 1; then
35927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
35928 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
35929 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
35930 $as_echo_n "(cached) " >&6
35934 # Guess no on OSF/1.
35935 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
35936 # Guess yes otherwise.
35937 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
35939 if test $LOCALE_FR_UTF8 != none; then
35940 if test "$cross_compiling" = yes; then :
35943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35944 /* end confdefs.h. */
35946 #include <locale.h>
35947 #include <string.h>
35951 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35957 memset (&state, '\0', sizeof (mbstate_t));
35958 wc = (wchar_t) 0xBADFACE;
35959 mbrtowc (&wc, NULL, 5, &state);
35960 /* Check that wc was not modified. */
35961 if (wc != (wchar_t) 0xBADFACE)
35967 if ac_fn_c_try_run "$LINENO"; then :
35968 gl_cv_func_mbrtowc_null_arg=yes
35970 gl_cv_func_mbrtowc_null_arg=no
35972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35973 conftest.$ac_objext conftest.beam conftest.$ac_ext
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
35980 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
35986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
35987 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
35988 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
35989 $as_echo_n "(cached) " >&6
35993 # Guess no on HP-UX and Solaris.
35994 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
35995 # Guess yes otherwise.
35996 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
35998 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
35999 if test "$cross_compiling" = yes; then :
36002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36003 /* end confdefs.h. */
36005 #include <locale.h>
36006 #include <string.h>
36010 /* This fails on Solaris. */
36011 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36013 char input[] = "B\303\274\303\237er"; /* "Büßer" */
36017 memset (&state, '\0', sizeof (mbstate_t));
36018 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36021 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
36025 /* This fails on HP-UX 11.11. */
36026 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36028 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36032 memset (&state, '\0', sizeof (mbstate_t));
36033 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36036 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
36043 if ac_fn_c_try_run "$LINENO"; then :
36044 gl_cv_func_mbrtowc_retval=yes
36046 gl_cv_func_mbrtowc_retval=no
36048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36049 conftest.$ac_objext conftest.beam conftest.$ac_ext
36055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
36056 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
36061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
36062 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
36063 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
36064 $as_echo_n "(cached) " >&6
36068 # Guess no on Solaris 8 and 9.
36069 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
36070 # Guess yes otherwise.
36071 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
36073 if test $LOCALE_ZH_CN != none; then
36074 if test "$cross_compiling" = yes; then :
36077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36078 /* end confdefs.h. */
36080 #include <locale.h>
36081 #include <string.h>
36085 /* This fails on Solaris 8 and 9. */
36086 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36091 memset (&state, '\0', sizeof (mbstate_t));
36092 if (mbrtowc (&wc, "", 1, &state) != 0)
36098 if ac_fn_c_try_run "$LINENO"; then :
36099 gl_cv_func_mbrtowc_nul_retval=yes
36101 gl_cv_func_mbrtowc_nul_retval=no
36103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36104 conftest.$ac_objext conftest.beam conftest.$ac_ext
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
36111 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
36113 case "$gl_cv_func_mbrtowc_null_arg" in
36116 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
36121 case "$gl_cv_func_mbrtowc_retval" in
36124 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
36129 case "$gl_cv_func_mbrtowc_nul_retval" in
36132 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
36139 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
36151 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
36165 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
36169 # Code from module mbsinit:
36192 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
36197 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
36198 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
36199 $as_echo_n "(cached) " >&6
36203 # Guess no on AIX and OSF/1.
36204 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
36205 # Guess yes otherwise.
36206 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
36208 if test $LOCALE_JA != none; then
36209 if test "$cross_compiling" = yes; then :
36212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36213 /* end confdefs.h. */
36215 #include <locale.h>
36216 #include <string.h>
36220 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36222 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36226 memset (&state, '\0', sizeof (mbstate_t));
36227 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36228 if (mbsinit (&state))
36234 if ac_fn_c_try_run "$LINENO"; then :
36235 gl_cv_func_mbrtowc_incomplete_state=yes
36237 gl_cv_func_mbrtowc_incomplete_state=no
36239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36240 conftest.$ac_objext conftest.beam conftest.$ac_ext
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
36247 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
36252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
36253 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
36254 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
36255 $as_echo_n "(cached) " >&6
36259 # Guess no on Solaris 8.
36260 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
36261 # Guess yes otherwise.
36262 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
36264 if test $LOCALE_ZH_CN != none; then
36265 if test "$cross_compiling" = yes; then :
36268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36269 /* end confdefs.h. */
36271 #include <locale.h>
36272 #include <stdlib.h>
36273 #include <string.h>
36277 /* This fails on Solaris 8:
36278 mbrtowc returns 2, and sets wc to 0x00F0.
36279 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
36280 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36282 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
36286 memset (&state, '\0', sizeof (mbstate_t));
36287 if (mbrtowc (&wc, input + 3, 6, &state) != 4
36288 && mbtowc (&wc, input + 3, 6) == 4)
36294 if ac_fn_c_try_run "$LINENO"; then :
36295 gl_cv_func_mbrtowc_sanitycheck=yes
36297 gl_cv_func_mbrtowc_sanitycheck=no
36299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36300 conftest.$ac_objext conftest.beam conftest.$ac_ext
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
36307 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
36309 REPLACE_MBSTATE_T=0
36310 case "$gl_cv_func_mbrtowc_incomplete_state" in
36312 *) REPLACE_MBSTATE_T=1 ;;
36314 case "$gl_cv_func_mbrtowc_sanitycheck" in
36316 *) REPLACE_MBSTATE_T=1 ;;
36319 REPLACE_MBSTATE_T=1
36321 if test $REPLACE_MBSTATE_T = 1; then
36335 if test $ac_cv_func_mbsinit = no; then
36338 if test $REPLACE_MBSTATE_T = 1; then
36342 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
36354 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
36368 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
36372 # Code from module mbslen:
36382 if test $ac_cv_func_mbslen = yes; then
36395 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
36399 # Code from module mbsrtowcs:
36422 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
36426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
36427 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
36428 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
36429 $as_echo_n "(cached) " >&6
36433 # Guess no on AIX and OSF/1.
36434 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
36435 # Guess yes otherwise.
36436 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
36438 if test $LOCALE_JA != none; then
36439 if test "$cross_compiling" = yes; then :
36442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36443 /* end confdefs.h. */
36445 #include <locale.h>
36446 #include <string.h>
36450 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36452 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
36456 memset (&state, '\0', sizeof (mbstate_t));
36457 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
36458 if (mbsinit (&state))
36464 if ac_fn_c_try_run "$LINENO"; then :
36465 gl_cv_func_mbrtowc_incomplete_state=yes
36467 gl_cv_func_mbrtowc_incomplete_state=no
36469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36470 conftest.$ac_objext conftest.beam conftest.$ac_ext
36476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
36477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
36483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
36484 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
36485 $as_echo_n "(cached) " >&6
36489 # Guess no on Solaris 8.
36490 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
36491 # Guess yes otherwise.
36492 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
36494 if test $LOCALE_ZH_CN != none; then
36495 if test "$cross_compiling" = yes; then :
36498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36499 /* end confdefs.h. */
36501 #include <locale.h>
36502 #include <stdlib.h>
36503 #include <string.h>
36507 /* This fails on Solaris 8:
36508 mbrtowc returns 2, and sets wc to 0x00F0.
36509 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
36510 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36512 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
36516 memset (&state, '\0', sizeof (mbstate_t));
36517 if (mbrtowc (&wc, input + 3, 6, &state) != 4
36518 && mbtowc (&wc, input + 3, 6) == 4)
36524 if ac_fn_c_try_run "$LINENO"; then :
36525 gl_cv_func_mbrtowc_sanitycheck=yes
36527 gl_cv_func_mbrtowc_sanitycheck=no
36529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36530 conftest.$ac_objext conftest.beam conftest.$ac_ext
36536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
36537 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
36539 REPLACE_MBSTATE_T=0
36540 case "$gl_cv_func_mbrtowc_incomplete_state" in
36542 *) REPLACE_MBSTATE_T=1 ;;
36544 case "$gl_cv_func_mbrtowc_sanitycheck" in
36546 *) REPLACE_MBSTATE_T=1 ;;
36549 REPLACE_MBSTATE_T=1
36551 if test $REPLACE_MBSTATE_T = 1; then
36565 if test $ac_cv_func_mbsrtowcs = no; then
36568 if test $REPLACE_MBSTATE_T = 1; then
36569 REPLACE_MBSRTOWCS=1
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
36577 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
36578 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
36579 $as_echo_n "(cached) " >&6
36583 # Guess no on HP-UX and Solaris.
36584 hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
36585 # Guess yes otherwise.
36586 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
36588 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
36589 if test "$cross_compiling" = yes; then :
36592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36593 /* end confdefs.h. */
36595 #include <locale.h>
36596 #include <string.h>
36600 /* Test whether the function works when started with a conversion state
36601 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
36602 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
36604 const char input[] = "B\303\274\303\237er";
36607 memset (&state, '\0', sizeof (mbstate_t));
36608 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
36609 if (!mbsinit (&state))
36611 const char *src = input + 2;
36612 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
36616 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
36618 const char input[] = "<\306\374\313\334\270\354>";
36621 memset (&state, '\0', sizeof (mbstate_t));
36622 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
36623 if (!mbsinit (&state))
36625 const char *src = input + 4;
36626 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
36630 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
36632 const char input[] = "B\250\271\201\060\211\070er";
36635 memset (&state, '\0', sizeof (mbstate_t));
36636 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
36637 if (!mbsinit (&state))
36639 const char *src = input + 2;
36640 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
36647 if ac_fn_c_try_run "$LINENO"; then :
36648 gl_cv_func_mbsrtowcs_works=yes
36650 gl_cv_func_mbsrtowcs_works=no
36652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36653 conftest.$ac_objext conftest.beam conftest.$ac_ext
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
36660 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
36662 case "$gl_cv_func_mbsrtowcs_works" in
36664 *) REPLACE_MBSRTOWCS=1 ;;
36668 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
36680 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
36690 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
36704 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
36708 # Code from module mbsstr:
36716 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
36720 # Code from module mbswidth:
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
36741 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
36742 if test "${ac_cv_have_decl_mbswidth+set}" = set; then :
36743 $as_echo_n "(cached) " >&6
36745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36746 /* end confdefs.h. */
36748 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
36750 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
36751 before <wchar.h>. */
36752 #include <stddef.h>
36761 char *p = (char *) mbswidth;
36768 if ac_fn_c_try_compile "$LINENO"; then :
36769 ac_cv_have_decl_mbswidth=yes
36771 ac_cv_have_decl_mbswidth=no
36773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
36776 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
36777 if test $ac_cv_have_decl_mbswidth = yes; then
36783 cat >>confdefs.h <<_ACEOF
36784 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
36791 $as_echo_n "checking for mbstate_t... " >&6; }
36792 if test "${ac_cv_type_mbstate_t+set}" = set; then :
36793 $as_echo_n "(cached) " >&6
36795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36796 /* end confdefs.h. */
36797 $ac_includes_default
36798 # include <wchar.h>
36802 mbstate_t x; return sizeof x;
36807 if ac_fn_c_try_compile "$LINENO"; then :
36808 ac_cv_type_mbstate_t=yes
36810 ac_cv_type_mbstate_t=no
36812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
36815 $as_echo "$ac_cv_type_mbstate_t" >&6; }
36816 if test $ac_cv_type_mbstate_t = yes; then
36818 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
36822 $as_echo "#define mbstate_t int" >>confdefs.h
36827 # Code from module mbuiter:
36834 # Code from module memchr:
36843 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
36847 # Code from module memmove:
36857 for ac_func in memmove
36859 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
36860 if test "x$ac_cv_func_memmove" = x""yes; then :
36861 cat >>confdefs.h <<_ACEOF
36862 #define HAVE_MEMMOVE 1
36867 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36873 if test $ac_cv_func_memmove = no; then
36879 # Code from module memset:
36889 for ac_func in memset
36891 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
36892 if test "x$ac_cv_func_memset" = x""yes; then :
36893 cat >>confdefs.h <<_ACEOF
36894 #define HAVE_MEMSET 1
36899 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36905 if test $ac_cv_func_memset = no; then
36911 # Code from module minmax:
36915 # Code from module mkdtemp:
36926 for ac_func in mkdtemp
36928 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
36929 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
36930 cat >>confdefs.h <<_ACEOF
36931 #define HAVE_MKDTEMP 1
36936 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36942 if test $ac_cv_func_mkdtemp = no; then
36955 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
36959 # Code from module moo:
36962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
36963 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
36964 if test "${gl_cv_c_cplusplus+set}" = set; then :
36965 $as_echo_n "(cached) " >&6
36967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36968 /* end confdefs.h. */
36975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36976 $EGREP "Is c++" >/dev/null 2>&1; then :
36977 gl_cv_c_cplusplus=yes
36979 gl_cv_c_cplusplus=no
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
36985 $as_echo "$gl_cv_c_cplusplus" >&6; }
36986 if test $gl_cv_c_cplusplus = yes; then
36988 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
36992 # Code from module multiarch:
36994 # Code from module no-c++:
36997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36998 /* end confdefs.h. */
37000 #if defined __GNUC__ && defined __cplusplus
37005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37006 $EGREP "Is g++" >/dev/null 2>&1; then :
37013 # Code from module obstack:
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
37027 $as_echo_n "checking for obstacks... " >&6; }
37028 if test "${ac_cv_func_obstack+set}" = set; then :
37029 $as_echo_n "(cached) " >&6
37031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37032 /* end confdefs.h. */
37033 $ac_includes_default
37034 #include "obstack.h"
37038 struct obstack mem;
37039 #define obstack_chunk_alloc malloc
37040 #define obstack_chunk_free free
37041 obstack_init (&mem);
37042 obstack_free (&mem, 0);
37047 if ac_fn_c_try_link "$LINENO"; then :
37048 ac_cv_func_obstack=yes
37050 ac_cv_func_obstack=no
37052 rm -f core conftest.err conftest.$ac_objext \
37053 conftest$ac_exeext conftest.$ac_ext
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
37056 $as_echo "$ac_cv_func_obstack" >&6; }
37057 if test $ac_cv_func_obstack = yes; then
37059 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
37070 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
37074 # Code from module open:
37090 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
37108 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
37109 if test "${gl_cv_func_open_slash+set}" = set; then :
37110 $as_echo_n "(cached) " >&6
37112 # Assume that if we have lstat, we can also check symlinks.
37113 if test $ac_cv_func_lstat = yes; then
37115 ln -s conftest.tmp conftest.lnk
37117 if test "$cross_compiling" = yes; then :
37120 freebsd*) gl_cv_func_open_slash="guessing no" ;;
37121 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
37122 hpux*) gl_cv_func_open_slash="guessing no" ;;
37123 *) gl_cv_func_open_slash="guessing yes" ;;
37127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37128 /* end confdefs.h. */
37132 # include <unistd.h>
37137 if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
37139 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
37142 if ac_fn_c_try_run "$LINENO"; then :
37143 gl_cv_func_open_slash=yes
37145 gl_cv_func_open_slash=no
37147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37148 conftest.$ac_objext conftest.beam conftest.$ac_ext
37151 rm -f conftest.sl conftest.tmp conftest.lnk
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
37155 $as_echo "$gl_cv_func_open_slash" >&6; }
37156 case "$gl_cv_func_open_slash" in
37159 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
37172 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37192 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
37196 # Code from module openmp:
37199 # Check whether --enable-openmp was given.
37200 if test "${enable_openmp+set}" = set; then :
37201 enableval=$enable_openmp;
37204 if test "$enable_openmp" != no; then
37205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
37206 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
37207 if test "${ac_cv_prog_c_openmp+set}" = set; then :
37208 $as_echo_n "(cached) " >&6
37210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37211 /* end confdefs.h. */
37217 int main () { return omp_get_num_threads (); }
37220 if ac_fn_c_try_link "$LINENO"; then :
37221 ac_cv_prog_c_openmp='none needed'
37223 ac_cv_prog_c_openmp='unsupported'
37224 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
37225 ac_save_CFLAGS=$CFLAGS
37226 CFLAGS="$CFLAGS $ac_option"
37227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37228 /* end confdefs.h. */
37234 int main () { return omp_get_num_threads (); }
37237 if ac_fn_c_try_link "$LINENO"; then :
37238 ac_cv_prog_c_openmp=$ac_option
37240 rm -f core conftest.err conftest.$ac_objext \
37241 conftest$ac_exeext conftest.$ac_ext
37242 CFLAGS=$ac_save_CFLAGS
37243 if test "$ac_cv_prog_c_openmp" != unsupported; then
37248 rm -f core conftest.err conftest.$ac_objext \
37249 conftest$ac_exeext conftest.$ac_ext
37251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
37252 $as_echo "$ac_cv_prog_c_openmp" >&6; }
37253 case $ac_cv_prog_c_openmp in #(
37254 "none needed" | unsupported)
37257 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
37262 # Code from module ostream:
37263 # Code from module pathmax:
37280 # Code from module pipe:
37285 # Code from module pipe-filter-ii:
37294 # Code from module pipe2:
37307 if test $ac_cv_func_pipe2 != yes; then
37318 $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
37322 # Code from module pipe2-safer:
37325 cat >>confdefs.h <<_ACEOF
37326 #define GNULIB_PIPE2_SAFER 1
37330 # Code from module posix_spawn-internal:
37331 # Code from module posix_spawn_file_actions_addclose:
37335 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37347 gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext"
37353 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1
37357 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h
37361 # Code from module posix_spawn_file_actions_adddup2:
37365 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37377 gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext"
37383 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1
37387 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h
37391 # Code from module posix_spawn_file_actions_addopen:
37395 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37407 gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext"
37413 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1
37417 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h
37421 # Code from module posix_spawn_file_actions_destroy:
37425 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37437 gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext"
37443 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1
37447 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h
37451 # Code from module posix_spawn_file_actions_init:
37455 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37467 gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext"
37473 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1
37477 $as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h
37481 # Code from module posix_spawnattr_destroy:
37485 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37497 gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext"
37503 GNULIB_POSIX_SPAWNATTR_DESTROY=1
37507 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h
37511 # Code from module posix_spawnattr_init:
37515 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37527 gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext"
37533 GNULIB_POSIX_SPAWNATTR_INIT=1
37537 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h
37541 # Code from module posix_spawnattr_setflags:
37545 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37557 gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext"
37563 GNULIB_POSIX_SPAWNATTR_SETFLAGS=1
37567 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h
37571 # Code from module posix_spawnattr_setsigmask:
37575 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37587 gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext"
37593 GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1
37597 $as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
37601 # Code from module posix_spawnp:
37605 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
37617 gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext"
37628 gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext"
37630 for ac_header in paths.h
37632 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
37633 if test "x$ac_cv_header_paths_h" = x""yes; then :
37634 cat >>confdefs.h <<_ACEOF
37635 #define HAVE_PATHS_H 1
37642 for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork
37644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37646 eval as_val=\$$as_ac_var
37647 if test "x$as_val" = x""yes; then :
37648 cat >>confdefs.h <<_ACEOF
37649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37660 GNULIB_POSIX_SPAWNP=1
37664 $as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h
37668 # Code from module progname:
37669 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
37671 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
37677 cat >>confdefs.h <<_ACEOF
37678 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
37681 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
37683 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
37689 cat >>confdefs.h <<_ACEOF
37690 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
37693 # Code from module propername:
37696 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
37700 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
37702 # Code from module quote:
37705 # Code from module quotearg:
37708 # Code from module quotearg-simple:
37709 # Code from module rawmemchr:
37722 for ac_func in rawmemchr
37724 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
37725 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
37726 cat >>confdefs.h <<_ACEOF
37727 #define HAVE_RAWMEMCHR 1
37732 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37738 if test $ac_cv_func_rawmemchr = no; then
37750 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
37754 # Code from module readlink:
37764 if test $ac_cv_func_readlink = no; then
37774 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
37781 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37782 if test "${gl_cv_decl_readlink_works+set}" = set; then :
37783 $as_echo_n "(cached) " >&6
37785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37786 /* end confdefs.h. */
37787 #include <unistd.h>
37788 /* Cause compilation failure if original declaration has wrong type. */
37789 ssize_t readlink (const char *, char *, size_t);
37798 if ac_fn_c_try_compile "$LINENO"; then :
37799 gl_cv_decl_readlink_works=yes
37801 gl_cv_decl_readlink_works=no
37803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
37806 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
37808 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37809 if test "${gl_cv_func_readlink_works+set}" = set; then :
37810 $as_echo_n "(cached) " >&6
37812 # We have readlink, so assume ln -s works.
37813 ln -s conftest.no-such conftest.link
37814 ln -s conftest.link conftest.lnk2
37815 if test "$cross_compiling" = yes; then :
37816 gl_cv_func_readlink_works="guessing no"
37818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37819 /* end confdefs.h. */
37820 #include <unistd.h>
37826 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37831 if ac_fn_c_try_run "$LINENO"; then :
37832 gl_cv_func_readlink_works=yes
37834 gl_cv_func_readlink_works=no
37836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37837 conftest.$ac_objext conftest.beam conftest.$ac_ext
37840 rm -f conftest.link conftest.lnk2
37842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
37843 $as_echo "$gl_cv_func_readlink_works" >&6; }
37844 if test "$gl_cv_func_readlink_works" != yes; then
37846 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
37857 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37859 elif test "$gl_cv_decl_readlink_works" != yes; then
37869 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37881 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
37885 # Code from module realloc-posix:
37888 if test $gl_cv_func_malloc_posix = yes; then
37889 HAVE_REALLOC_POSIX=1
37891 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
37902 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37904 HAVE_REALLOC_POSIX=0
37911 GNULIB_REALLOC_POSIX=1
37915 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
37919 # Code from module relocatable-prog:
37924 if test $RELOCATABLE = yes; then
37933 gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
37937 if test $RELOCATABLE = yes; then
37946 gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
37949 : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
37950 RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
37951 RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
37953 # Code from module relocatable-prog-wrapper:
38007 if test $ac_cv_func_setenv = no; then
38010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
38011 $as_echo_n "checking whether setenv validates arguments... " >&6; }
38012 if test "${gl_cv_func_setenv_works+set}" = set; then :
38013 $as_echo_n "(cached) " >&6
38015 if test "$cross_compiling" = yes; then :
38016 gl_cv_func_setenv_works="guessing no"
38018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38019 /* end confdefs.h. */
38021 #include <stdlib.h>
38023 #include <string.h>
38029 if (setenv ("", "", 0) != -1) return 1;
38030 if (errno != EINVAL) return 2;
38031 if (setenv ("a", "=", 1) != 0) return 3;
38032 if (strcmp (getenv ("a"), "=") != 0) return 4;
38038 if ac_fn_c_try_run "$LINENO"; then :
38039 gl_cv_func_setenv_works=yes
38041 gl_cv_func_setenv_works=no
38043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38044 conftest.$ac_objext conftest.beam conftest.$ac_ext
38048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
38049 $as_echo "$gl_cv_func_setenv_works" >&6; }
38050 if test "$gl_cv_func_setenv_works" != yes; then
38060 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38074 for ac_header in search.h
38076 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
38077 if test "x$ac_cv_header_search_h" = x""yes; then :
38078 cat >>confdefs.h <<_ACEOF
38079 #define HAVE_SEARCH_H 1
38086 for ac_func in tsearch
38088 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
38089 if test "x$ac_cv_func_tsearch" = x""yes; then :
38090 cat >>confdefs.h <<_ACEOF
38091 #define HAVE_TSEARCH 1
38102 if test -z "$ERRNO_H"; then
38103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
38104 $as_echo_n "checking for working strerror function... " >&6; }
38105 if test "${gl_cv_func_working_strerror+set}" = set; then :
38106 $as_echo_n "(cached) " >&6
38108 if test "$cross_compiling" = yes; then :
38109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38110 /* end confdefs.h. */
38111 #include <string.h>
38116 return !*strerror (-2);
38121 if ac_fn_c_try_compile "$LINENO"; then :
38122 gl_cv_func_working_strerror=yes
38124 gl_cv_func_working_strerror=no
38126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130 /* end confdefs.h. */
38131 #include <string.h>
38136 return !*strerror (-2);
38141 if ac_fn_c_try_run "$LINENO"; then :
38142 gl_cv_func_working_strerror=yes
38144 gl_cv_func_working_strerror=no
38146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38147 conftest.$ac_objext conftest.beam conftest.$ac_ext
38152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
38153 $as_echo "$gl_cv_func_working_strerror" >&6; }
38154 if test $gl_cv_func_working_strerror = no; then
38160 if test $REPLACE_STRERROR = 1; then
38162 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
38163 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
38169 cat >>confdefs.h <<_ACEOF
38170 #define HAVE_DECL_STRERROR $ac_have_decl
38180 if test $ac_cv_header_sys_socket_h != yes; then
38181 for ac_header in winsock2.h
38183 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38184 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
38185 cat >>confdefs.h <<_ACEOF
38186 #define HAVE_WINSOCK2_H 1
38197 # Code from module relocatable-script:
38199 relocatable_sh=$ac_aux_dir/relocatable.sh.in
38201 # Code from module rmdir:
38205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
38206 $as_echo_n "checking whether rmdir works... " >&6; }
38207 if test "${gl_cv_func_rmdir_works+set}" = set; then :
38208 $as_echo_n "(cached) " >&6
38211 touch conftest.file
38212 if test "$cross_compiling" = yes; then :
38213 gl_cv_func_rmdir_works="guessing no"
38215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38216 /* end confdefs.h. */
38219 #include <unistd.h>
38224 return !rmdir ("conftest.file/") || errno != ENOTDIR
38225 || !rmdir ("conftest.dir/./");
38230 if ac_fn_c_try_run "$LINENO"; then :
38231 gl_cv_func_rmdir_works=yes
38233 gl_cv_func_rmdir_works=no
38235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38236 conftest.$ac_objext conftest.beam conftest.$ac_ext
38239 rm -rf conftest.dir conftest.file
38241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
38242 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38243 if test x"$gl_cv_func_rmdir_works" != xyes; then
38253 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38264 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
38268 # Code from module safe-read:
38278 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
38285 # Code from module safe-write:
38295 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
38304 # Code from module sched:
38306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h. */
38310 struct sched_param a;
38311 int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
38321 if ac_fn_c_try_compile "$LINENO"; then :
38338 if test $gl_cv_have_include_next = yes; then
38339 gl_cv_next_sched_h='<'sched.h'>'
38341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5
38342 $as_echo_n "checking absolute name of <sched.h>... " >&6; }
38343 if test "${gl_cv_next_sched_h+set}" = set; then :
38344 $as_echo_n "(cached) " >&6
38347 if test $ac_cv_header_sched_h = yes; then
38348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38349 /* end confdefs.h. */
38354 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38355 *) gl_absname_cpp="$ac_cpp" ;;
38357 gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38358 sed -n '\#/sched.h#{
38359 s#.*"\(.*/sched.h\)".*#\1#
38365 gl_cv_next_sched_h='<'sched.h'>'
38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5
38370 $as_echo "$gl_cv_next_sched_h" >&6; }
38372 NEXT_SCHED_H=$gl_cv_next_sched_h
38374 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38376 gl_next_as_first_directive='<'sched.h'>'
38378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38379 gl_next_as_first_directive=$gl_cv_next_sched_h
38381 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive
38393 if test $ac_cv_header_sched_h = yes; then
38400 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <sched.h>
38402 if test "x$ac_cv_type_struct_sched_param" = x""yes; then :
38403 HAVE_STRUCT_SCHED_PARAM=1
38405 HAVE_STRUCT_SCHED_PARAM=0
38411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38414 # Code from module setenv:
38417 if test $HAVE_SETENV$REPLACE_SETENV != 10; then
38426 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38437 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
38441 # Code from module sh-quote:
38442 # Code from module sigaction:
38452 if test $ac_cv_func_sigaction = yes; then
38453 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
38455 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = x""yes; then :
38457 cat >>confdefs.h <<_ACEOF
38458 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
38464 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
38465 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
38477 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
38494 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
38495 #include <signal.h>
38498 if test "x$ac_cv_type_siginfo_t" = x""yes; then :
38500 cat >>confdefs.h <<_ACEOF
38501 #define HAVE_SIGINFO_T 1
38507 if test $ac_cv_type_siginfo_t = no; then
38520 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
38524 # Code from module signal:
38539 if test $gl_cv_have_include_next = yes; then
38540 gl_cv_next_signal_h='<'signal.h'>'
38542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
38543 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
38544 if test "${gl_cv_next_signal_h+set}" = set; then :
38545 $as_echo_n "(cached) " >&6
38548 if test $ac_cv_header_signal_h = yes; then
38549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38550 /* end confdefs.h. */
38551 #include <signal.h>
38555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38556 *) gl_absname_cpp="$ac_cpp" ;;
38558 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38559 sed -n '\#/signal.h#{
38560 s#.*"\(.*/signal.h\)".*#\1#
38566 gl_cv_next_signal_h='<'signal.h'>'
38570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
38571 $as_echo "$gl_cv_next_signal_h" >&6; }
38573 NEXT_SIGNAL_H=$gl_cv_next_signal_h
38575 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38576 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38577 gl_next_as_first_directive='<'signal.h'>'
38579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38580 gl_next_as_first_directive=$gl_cv_next_signal_h
38582 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
38586 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
38587 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
38588 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
38589 #include <signal.h>
38592 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
38595 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
38601 for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
38602 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38604 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38605 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
38606 $as_echo_n "(cached) " >&6
38608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38609 /* end confdefs.h. */
38610 #include <signal.h>
38621 if ac_fn_c_try_compile "$LINENO"; then :
38622 eval "$as_gl_Symbol=yes"
38624 eval "$as_gl_Symbol=no"
38626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38628 eval ac_res=\$$as_gl_Symbol
38629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38630 $as_echo "$ac_res" >&6; }
38631 eval as_val=\$$as_gl_Symbol
38632 if test "x$as_val" = x""yes; then :
38633 cat >>confdefs.h <<_ACEOF
38634 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38637 eval ac_cv_have_decl_$gl_func=yes
38642 # Code from module sigpipe:
38648 cat >>confdefs.h <<_ACEOF
38649 #define GNULIB_SIGPIPE 1
38654 GNULIB_SIGNAL_H_SIGPIPE=1
38656 GNULIB_STDIO_H_SIGPIPE=1
38658 GNULIB_UNISTD_H_SIGPIPE=1
38659 # Code from module sigprocmask:
38663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38664 /* end confdefs.h. */
38665 #include <signal.h>
38668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38669 $EGREP "sigset_t" >/dev/null 2>&1; then :
38672 signals_not_posix=1
38676 if test -z "$signals_not_posix"; then
38677 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
38678 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
38679 gl_cv_func_sigprocmask=1
38683 if test -z "$gl_cv_func_sigprocmask"; then
38684 HAVE_POSIX_SIGNALBLOCKING=0
38693 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
38697 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
38698 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
38699 #include <sys/types.h>
38701 if test "x$ac_cv_type_sigset_t" = x""yes; then :
38703 cat >>confdefs.h <<_ACEOF
38704 #define HAVE_SIGSET_T 1
38707 gl_cv_type_sigset_t=yes
38709 gl_cv_type_sigset_t=no
38712 if test $gl_cv_type_sigset_t != yes; then
38722 GNULIB_SIGPROCMASK=1
38726 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
38730 # Code from module size_max:
38732 for ac_header in stdint.h
38734 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
38735 if test "x$ac_cv_header_stdint_h" = x""yes; then :
38736 cat >>confdefs.h <<_ACEOF
38737 #define HAVE_STDINT_H 1
38744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
38745 $as_echo_n "checking for SIZE_MAX... " >&6; }
38746 if test "${gl_cv_size_max+set}" = set; then :
38747 $as_echo_n "(cached) " >&6
38751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38752 /* end confdefs.h. */
38754 #include <limits.h>
38756 #include <stdint.h>
38763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38764 $EGREP "Found it" >/dev/null 2>&1; then :
38769 if test -z "$gl_cv_size_max"; then
38770 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
38771 #include <limits.h>"; then :
38774 size_t_bits_minus_1=
38777 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
38783 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
38784 if test $fits_in_uint = 1; then
38785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h. */
38787 #include <stddef.h>
38789 extern unsigned long foo;
38799 if ac_fn_c_try_compile "$LINENO"; then :
38802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38804 if test $fits_in_uint = 1; then
38805 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
38807 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
38810 gl_cv_size_max='((size_t)~(size_t)0)'
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
38816 $as_echo "$gl_cv_size_max" >&6; }
38817 if test "$gl_cv_size_max" != yes; then
38819 cat >>confdefs.h <<_ACEOF
38820 #define SIZE_MAX $gl_cv_size_max
38826 # Code from module snprintf:
38829 gl_cv_func_snprintf_usable=no
38830 for ac_func in snprintf
38832 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
38833 if test "x$ac_cv_func_snprintf" = x""yes; then :
38834 cat >>confdefs.h <<_ACEOF
38835 #define HAVE_SNPRINTF 1
38841 if test $ac_cv_func_snprintf = yes; then
38844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
38845 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
38846 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
38847 $as_echo_n "(cached) " >&6
38850 if test "$cross_compiling" = yes; then :
38851 gl_cv_func_snprintf_size1="guessing yes"
38853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38854 /* end confdefs.h. */
38859 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
38860 snprintf (buf, 1, "%d", 12345);
38861 return buf[1] != 'E';
38864 if ac_fn_c_try_run "$LINENO"; then :
38865 gl_cv_func_snprintf_size1=yes
38867 gl_cv_func_snprintf_size1=no
38869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38870 conftest.$ac_objext conftest.beam conftest.$ac_ext
38875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
38876 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
38878 case "$gl_cv_func_snprintf_size1" in
38880 gl_cv_func_snprintf_usable=yes
38884 if test $gl_cv_func_snprintf_usable = no; then
38895 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
38897 if test $ac_cv_func_snprintf = yes; then
38910 if test $ac_cv_have_decl_snprintf = no; then
38911 HAVE_DECL_SNPRINTF=0
38921 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
38925 # Code from module spawn:
38941 if test $gl_cv_have_include_next = yes; then
38942 gl_cv_next_spawn_h='<'spawn.h'>'
38944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <spawn.h>" >&5
38945 $as_echo_n "checking absolute name of <spawn.h>... " >&6; }
38946 if test "${gl_cv_next_spawn_h+set}" = set; then :
38947 $as_echo_n "(cached) " >&6
38950 if test $ac_cv_header_spawn_h = yes; then
38951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38952 /* end confdefs.h. */
38957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38958 *) gl_absname_cpp="$ac_cpp" ;;
38960 gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38961 sed -n '\#/spawn.h#{
38962 s#.*"\(.*/spawn.h\)".*#\1#
38968 gl_cv_next_spawn_h='<'spawn.h'>'
38972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5
38973 $as_echo "$gl_cv_next_spawn_h" >&6; }
38975 NEXT_SPAWN_H=$gl_cv_next_spawn_h
38977 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38978 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38979 gl_next_as_first_directive='<'spawn.h'>'
38981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38982 gl_next_as_first_directive=$gl_cv_next_spawn_h
38984 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive
38996 if test $ac_cv_header_spawn_h = yes; then
38998 ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" "
39002 if test "x$ac_cv_type_posix_spawnattr_t" = x""yes; then :
39004 cat >>confdefs.h <<_ACEOF
39005 #define HAVE_POSIX_SPAWNATTR_T 1
39010 HAVE_POSIX_SPAWNATTR_T=0
39013 ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" "
39017 if test "x$ac_cv_type_posix_spawn_file_actions_t" = x""yes; then :
39019 cat >>confdefs.h <<_ACEOF
39020 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1
39025 HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
39030 HAVE_POSIX_SPAWNATTR_T=0
39031 HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
39043 for gl_func in posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault posix_spawnattr_getsigmask posix_spawnattr_setsigmask posix_spawnattr_getflags posix_spawnattr_setflags posix_spawnattr_getpgroup posix_spawnattr_setpgroup posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy posix_spawnattr_getschedparam posix_spawnattr_setschedparam posix_spawn_file_actions_init posix_spawn_file_actions_destroy posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose posix_spawn_file_actions_adddup2; do
39044 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
39045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
39046 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
39047 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
39048 $as_echo_n "(cached) " >&6
39050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39051 /* end confdefs.h. */
39063 if ac_fn_c_try_compile "$LINENO"; then :
39064 eval "$as_gl_Symbol=yes"
39066 eval "$as_gl_Symbol=no"
39068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39070 eval ac_res=\$$as_gl_Symbol
39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39072 $as_echo "$ac_res" >&6; }
39073 eval as_val=\$$as_gl_Symbol
39074 if test "x$as_val" = x""yes; then :
39075 cat >>confdefs.h <<_ACEOF
39076 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
39079 eval ac_cv_have_decl_$gl_func=yes
39084 # Code from module ssize_t:
39086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
39087 $as_echo_n "checking for ssize_t... " >&6; }
39088 if test "${gt_cv_ssize_t+set}" = set; then :
39089 $as_echo_n "(cached) " >&6
39091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39092 /* end confdefs.h. */
39093 #include <sys/types.h>
39097 int x = sizeof (ssize_t *) + sizeof (ssize_t);
39103 if ac_fn_c_try_compile "$LINENO"; then :
39108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
39111 $as_echo "$gt_cv_ssize_t" >&6; }
39112 if test $gt_cv_ssize_t = no; then
39114 $as_echo "#define ssize_t int" >>confdefs.h
39118 # Code from module stat:
39129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
39130 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
39131 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
39132 $as_echo_n "(cached) " >&6
39134 if test "$cross_compiling" = yes; then :
39136 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
39137 *) gl_cv_func_stat_dir_slash="guessing yes";;
39140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39141 /* end confdefs.h. */
39142 #include <sys/stat.h>
39147 struct stat st; return stat (".", &st) != stat ("./", &st);
39152 if ac_fn_c_try_run "$LINENO"; then :
39153 gl_cv_func_stat_dir_slash=yes
39155 gl_cv_func_stat_dir_slash=no
39157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39158 conftest.$ac_objext conftest.beam conftest.$ac_ext
39162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
39163 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
39164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
39165 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
39166 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
39167 $as_echo_n "(cached) " >&6
39170 # Assume that if we have lstat, we can also check symlinks.
39171 if test $ac_cv_func_lstat = yes; then
39172 ln -s conftest.tmp conftest.lnk
39174 if test "$cross_compiling" = yes; then :
39175 gl_cv_func_stat_file_slash="guessing no"
39177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39178 /* end confdefs.h. */
39179 #include <sys/stat.h>
39185 if (!stat ("conftest.tmp/", &st)) return 1;
39187 if (!stat ("conftest.lnk/", &st)) return 2;
39194 if ac_fn_c_try_run "$LINENO"; then :
39195 gl_cv_func_stat_file_slash=yes
39197 gl_cv_func_stat_file_slash=no
39199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39200 conftest.$ac_objext conftest.beam conftest.$ac_ext
39203 rm -f conftest.tmp conftest.lnk
39205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
39206 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
39207 case $gl_cv_func_stat_dir_slash in
39208 *no) REPLACE_STAT=1
39210 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
39213 case $gl_cv_func_stat_file_slash in
39214 *no) REPLACE_STAT=1
39216 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
39219 if test $REPLACE_STAT = 1; then
39228 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
39240 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39244 # Code from module stdarg:
39247 NEXT_STDARG_H='<stdarg.h>';
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
39249 $as_echo_n "checking for va_copy... " >&6; }
39250 if test "${gl_cv_func_va_copy+set}" = set; then :
39251 $as_echo_n "(cached) " >&6
39254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39255 /* end confdefs.h. */
39256 #include <stdarg.h>
39262 void (*func) (va_list, va_list) = va_copy;
39269 if ac_fn_c_try_compile "$LINENO"; then :
39270 gl_cv_func_va_copy=yes
39272 gl_cv_func_va_copy=no
39274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
39278 $as_echo "$gl_cv_func_va_copy" >&6; }
39279 if test $gl_cv_func_va_copy = no; then
39280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39281 /* end confdefs.h. */
39282 #if defined _AIX && !defined __GNUC__
39287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39288 $EGREP "vaccine" >/dev/null 2>&1; then :
39295 if test $gl_aixcc = yes; then
39309 if test $gl_cv_have_include_next = yes; then
39310 gl_cv_next_stdarg_h='<'stdarg.h'>'
39312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
39313 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
39314 if test "${gl_cv_next_stdarg_h+set}" = set; then :
39315 $as_echo_n "(cached) " >&6
39318 if test $ac_cv_header_stdarg_h = yes; then
39319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39320 /* end confdefs.h. */
39321 #include <stdarg.h>
39325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39326 *) gl_absname_cpp="$ac_cpp" ;;
39328 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39329 sed -n '\#/stdarg.h#{
39330 s#.*"\(.*/stdarg.h\)".*#\1#
39336 gl_cv_next_stdarg_h='<'stdarg.h'>'
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
39341 $as_echo "$gl_cv_next_stdarg_h" >&6; }
39343 NEXT_STDARG_H=$gl_cv_next_stdarg_h
39345 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39347 gl_next_as_first_directive='<'stdarg.h'>'
39349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39350 gl_next_as_first_directive=$gl_cv_next_stdarg_h
39352 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
39356 if test "$gl_cv_next_stdarg_h" = '""'; then
39357 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
39358 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
39362 saved_as_echo_n="$as_echo_n"
39364 if test "${gl_cv_func___va_copy+set}" = set; then :
39365 $as_echo_n "(cached) " >&6
39368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39369 /* end confdefs.h. */
39370 #include <stdarg.h>
39383 if ac_fn_c_try_compile "$LINENO"; then :
39384 gl_cv_func___va_copy=yes
39386 gl_cv_func___va_copy=no
39388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39391 as_echo_n="$saved_as_echo_n"
39393 if test $gl_cv_func___va_copy = yes; then
39395 $as_echo "#define va_copy __va_copy" >>confdefs.h
39400 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
39406 # Code from module stdbool:
39410 # Define two additional variables used in the Makefile substitution.
39412 if test "$ac_cv_header_stdbool_h" = yes; then
39415 STDBOOL_H='stdbool.h'
39419 if test "$ac_cv_type__Bool" = yes; then
39426 # Code from module stddef:
39430 if test $gt_cv_c_wchar_t = no; then
39434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
39435 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
39436 if test "${gl_cv_decl_null_works+set}" = set; then :
39437 $as_echo_n "(cached) " >&6
39439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39440 /* end confdefs.h. */
39441 #include <stddef.h>
39442 int test[2 * (sizeof NULL == sizeof (void *)) -1];
39452 if ac_fn_c_try_compile "$LINENO"; then :
39453 gl_cv_decl_null_works=yes
39455 gl_cv_decl_null_works=no
39457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
39460 $as_echo "$gl_cv_decl_null_works" >&6; }
39461 if test $gl_cv_decl_null_works = no; then
39465 if test -n "$STDDEF_H"; then
39478 if test $gl_cv_have_include_next = yes; then
39479 gl_cv_next_stddef_h='<'stddef.h'>'
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
39482 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
39483 if test "${gl_cv_next_stddef_h+set}" = set; then :
39484 $as_echo_n "(cached) " >&6
39487 if test $ac_cv_header_stddef_h = yes; then
39488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39489 /* end confdefs.h. */
39490 #include <stddef.h>
39494 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39495 *) gl_absname_cpp="$ac_cpp" ;;
39497 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39498 sed -n '\#/stddef.h#{
39499 s#.*"\(.*/stddef.h\)".*#\1#
39505 gl_cv_next_stddef_h='<'stddef.h'>'
39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
39510 $as_echo "$gl_cv_next_stddef_h" >&6; }
39512 NEXT_STDDEF_H=$gl_cv_next_stddef_h
39514 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39516 gl_next_as_first_directive='<'stddef.h'>'
39518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39519 gl_next_as_first_directive=$gl_cv_next_stddef_h
39521 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
39527 # Code from module stdint:
39531 if test $ac_cv_type_long_long_int = yes; then
39532 HAVE_LONG_LONG_INT=1
39534 HAVE_LONG_LONG_INT=0
39538 if test $ac_cv_type_unsigned_long_long_int = yes; then
39539 HAVE_UNSIGNED_LONG_LONG_INT=1
39541 HAVE_UNSIGNED_LONG_LONG_INT=0
39545 if test $ac_cv_header_inttypes_h = yes; then
39552 if test $ac_cv_header_sys_types_h = yes; then
39571 if test $gl_cv_have_include_next = yes; then
39572 gl_cv_next_stdint_h='<'stdint.h'>'
39574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
39575 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
39576 if test "${gl_cv_next_stdint_h+set}" = set; then :
39577 $as_echo_n "(cached) " >&6
39580 if test $ac_cv_header_stdint_h = yes; then
39581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39582 /* end confdefs.h. */
39583 #include <stdint.h>
39587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39588 *) gl_absname_cpp="$ac_cpp" ;;
39590 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39591 sed -n '\#/stdint.h#{
39592 s#.*"\(.*/stdint.h\)".*#\1#
39598 gl_cv_next_stdint_h='<'stdint.h'>'
39602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
39603 $as_echo "$gl_cv_next_stdint_h" >&6; }
39605 NEXT_STDINT_H=$gl_cv_next_stdint_h
39607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39609 gl_next_as_first_directive='<'stdint.h'>'
39611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39612 gl_next_as_first_directive=$gl_cv_next_stdint_h
39614 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
39618 if test $ac_cv_header_stdint_h = yes; then
39625 if test $ac_cv_header_stdint_h = yes; then
39626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
39627 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
39628 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
39629 $as_echo_n "(cached) " >&6
39631 gl_cv_header_working_stdint_h=no
39632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39633 /* end confdefs.h. */
39636 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39637 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39638 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39639 #include <stdint.h>
39640 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
39641 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
39642 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
39646 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39647 included before <wchar.h>. */
39648 #include <stddef.h>
39649 #include <signal.h>
39651 # include <stdio.h>
39653 # include <wchar.h>
39658 int8_t a1 = INT8_MAX;
39659 int8_t a1min = INT8_MIN;
39662 int16_t a2 = INT16_MAX;
39663 int16_t a2min = INT16_MIN;
39666 int32_t a3 = INT32_MAX;
39667 int32_t a3min = INT32_MIN;
39670 int64_t a4 = INT64_MAX;
39671 int64_t a4min = INT64_MIN;
39674 uint8_t b1 = UINT8_MAX;
39676 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
39679 uint16_t b2 = UINT16_MAX;
39682 uint32_t b3 = UINT32_MAX;
39685 uint64_t b4 = UINT64_MAX;
39687 int_least8_t c1 = INT8_C (0x7f);
39688 int_least8_t c1max = INT_LEAST8_MAX;
39689 int_least8_t c1min = INT_LEAST8_MIN;
39690 int_least16_t c2 = INT16_C (0x7fff);
39691 int_least16_t c2max = INT_LEAST16_MAX;
39692 int_least16_t c2min = INT_LEAST16_MIN;
39693 int_least32_t c3 = INT32_C (0x7fffffff);
39694 int_least32_t c3max = INT_LEAST32_MAX;
39695 int_least32_t c3min = INT_LEAST32_MIN;
39696 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
39697 int_least64_t c4max = INT_LEAST64_MAX;
39698 int_least64_t c4min = INT_LEAST64_MIN;
39699 uint_least8_t d1 = UINT8_C (0xff);
39700 uint_least8_t d1max = UINT_LEAST8_MAX;
39701 uint_least16_t d2 = UINT16_C (0xffff);
39702 uint_least16_t d2max = UINT_LEAST16_MAX;
39703 uint_least32_t d3 = UINT32_C (0xffffffff);
39704 uint_least32_t d3max = UINT_LEAST32_MAX;
39705 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
39706 uint_least64_t d4max = UINT_LEAST64_MAX;
39707 int_fast8_t e1 = INT_FAST8_MAX;
39708 int_fast8_t e1min = INT_FAST8_MIN;
39709 int_fast16_t e2 = INT_FAST16_MAX;
39710 int_fast16_t e2min = INT_FAST16_MIN;
39711 int_fast32_t e3 = INT_FAST32_MAX;
39712 int_fast32_t e3min = INT_FAST32_MIN;
39713 int_fast64_t e4 = INT_FAST64_MAX;
39714 int_fast64_t e4min = INT_FAST64_MIN;
39715 uint_fast8_t f1 = UINT_FAST8_MAX;
39716 uint_fast16_t f2 = UINT_FAST16_MAX;
39717 uint_fast32_t f3 = UINT_FAST32_MAX;
39718 uint_fast64_t f4 = UINT_FAST64_MAX;
39720 intptr_t g = INTPTR_MAX;
39721 intptr_t gmin = INTPTR_MIN;
39724 uintptr_t h = UINTPTR_MAX;
39726 intmax_t i = INTMAX_MAX;
39727 uintmax_t j = UINTMAX_MAX;
39729 #include <limits.h> /* for CHAR_BIT */
39730 #define TYPE_MINIMUM(t) \
39731 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
39732 #define TYPE_MAXIMUM(t) \
39733 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
39736 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
39737 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
39739 /* Detect bug in FreeBSD 6.0 / ia64. */
39740 int check_SIG_ATOMIC:
39741 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
39742 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
39744 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
39746 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
39747 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
39749 /* Detect bug in mingw. */
39751 WINT_MIN == TYPE_MINIMUM (wint_t)
39752 && WINT_MAX == TYPE_MAXIMUM (wint_t)
39755 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
39757 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39758 int check_UINT16_C:
39759 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39761 /* Detect bugs in OpenBSD 3.9 stdint.h. */
39763 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39766 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39769 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39772 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39774 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39775 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39776 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39777 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39778 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39779 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39780 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39781 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39782 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39783 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39784 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39795 if ac_fn_c_try_compile "$LINENO"; then :
39796 if test "$cross_compiling" = yes; then :
39797 gl_cv_header_working_stdint_h=yes
39800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39801 /* end confdefs.h. */
39804 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39805 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39806 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39807 #include <stdint.h>
39810 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39811 included before <wchar.h>. */
39812 #include <stddef.h>
39813 #include <signal.h>
39815 # include <stdio.h>
39817 # include <wchar.h>
39822 #include <string.h>
39823 #define MVAL(macro) MVAL1(macro)
39824 #define MVAL1(expression) #expression
39825 static const char *macro_values[] =
39859 for (mv = macro_values; *mv != NULL; mv++)
39861 const char *value = *mv;
39862 /* Test whether it looks like a cast expression. */
39863 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
39864 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
39865 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
39866 || strncmp (value, "((int)"/*)*/, 6) == 0
39867 || strncmp (value, "((signed short)"/*)*/, 15) == 0
39868 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
39877 if ac_fn_c_try_run "$LINENO"; then :
39878 gl_cv_header_working_stdint_h=yes
39880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39881 conftest.$ac_objext conftest.beam conftest.$ac_ext
39886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
39890 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39892 if test "$gl_cv_header_working_stdint_h" = yes; then
39895 for ac_header in sys/inttypes.h sys/bitypes.h
39897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39899 eval as_val=\$$as_ac_Header
39900 if test "x$as_val" = x""yes; then :
39901 cat >>confdefs.h <<_ACEOF
39902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39909 if test $ac_cv_header_sys_inttypes_h = yes; then
39910 HAVE_SYS_INTTYPES_H=1
39912 HAVE_SYS_INTTYPES_H=0
39915 if test $ac_cv_header_sys_bitypes_h = yes; then
39916 HAVE_SYS_BITYPES_H=1
39918 HAVE_SYS_BITYPES_H=0
39932 if test $APPLE_UNIVERSAL_BUILD = 0; then
39935 for gltype in ptrdiff_t size_t ; do
39936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
39937 $as_echo_n "checking for bit size of $gltype... " >&6; }
39938 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
39939 $as_echo_n "(cached) " >&6
39941 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
39942 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39943 included before <wchar.h>. */
39944 #include <stddef.h>
39945 #include <signal.h>
39947 # include <stdio.h>
39949 # include <wchar.h>
39952 #include <limits.h>"; then :
39958 eval gl_cv_bitsizeof_${gltype}=\$result
39961 eval ac_res=\$gl_cv_bitsizeof_${gltype}
39962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
39963 $as_echo "$ac_res" >&6; }
39964 eval result=\$gl_cv_bitsizeof_${gltype}
39965 if test $result = unknown; then
39968 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
39969 cat >>confdefs.h <<_ACEOF
39970 #define BITSIZEOF_${GLTYPE} $result
39973 eval BITSIZEOF_${GLTYPE}=\$result
39980 for gltype in sig_atomic_t wchar_t wint_t ; do
39981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
39982 $as_echo_n "checking for bit size of $gltype... " >&6; }
39983 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
39984 $as_echo_n "(cached) " >&6
39986 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
39987 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39988 included before <wchar.h>. */
39989 #include <stddef.h>
39990 #include <signal.h>
39992 # include <stdio.h>
39994 # include <wchar.h>
39997 #include <limits.h>"; then :
40003 eval gl_cv_bitsizeof_${gltype}=\$result
40006 eval ac_res=\$gl_cv_bitsizeof_${gltype}
40007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40008 $as_echo "$ac_res" >&6; }
40009 eval result=\$gl_cv_bitsizeof_${gltype}
40010 if test $result = unknown; then
40013 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40014 cat >>confdefs.h <<_ACEOF
40015 #define BITSIZEOF_${GLTYPE} $result
40018 eval BITSIZEOF_${GLTYPE}=\$result
40024 for gltype in sig_atomic_t wchar_t wint_t ; do
40025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
40026 $as_echo_n "checking whether $gltype is signed... " >&6; }
40027 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
40028 $as_echo_n "(cached) " >&6
40030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40031 /* end confdefs.h. */
40033 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40034 included before <wchar.h>. */
40035 #include <stddef.h>
40036 #include <signal.h>
40038 # include <stdio.h>
40040 # include <wchar.h>
40043 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40052 if ac_fn_c_try_compile "$LINENO"; then :
40057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40058 eval gl_cv_type_${gltype}_signed=\$result
40061 eval ac_res=\$gl_cv_type_${gltype}_signed
40062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40063 $as_echo "$ac_res" >&6; }
40064 eval result=\$gl_cv_type_${gltype}_signed
40065 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40066 if test "$result" = yes; then
40067 cat >>confdefs.h <<_ACEOF
40068 #define HAVE_SIGNED_${GLTYPE} 1
40071 eval HAVE_SIGNED_${GLTYPE}=1
40073 eval HAVE_SIGNED_${GLTYPE}=0
40078 gl_cv_type_ptrdiff_t_signed=yes
40079 gl_cv_type_size_t_signed=no
40080 if test $APPLE_UNIVERSAL_BUILD = 0; then
40083 for gltype in ptrdiff_t size_t ; do
40084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
40085 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40086 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
40087 $as_echo_n "(cached) " >&6
40089 eval gl_cv_type_${gltype}_suffix=no
40090 eval result=\$gl_cv_type_${gltype}_signed
40091 if test "$result" = yes; then
40096 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40098 '') gltype1='int';;
40099 l) gltype1='long int';;
40100 ll) gltype1='long long int';;
40101 i64) gltype1='__int64';;
40102 u) gltype1='unsigned int';;
40103 ul) gltype1='unsigned long int';;
40104 ull) gltype1='unsigned long long int';;
40105 ui64)gltype1='unsigned __int64';;
40107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108 /* end confdefs.h. */
40110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40111 included before <wchar.h>. */
40112 #include <stddef.h>
40113 #include <signal.h>
40115 # include <stdio.h>
40117 # include <wchar.h>
40120 extern $gltype foo;
40121 extern $gltype1 foo;
40130 if ac_fn_c_try_compile "$LINENO"; then :
40131 eval gl_cv_type_${gltype}_suffix=\$glsuf
40133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40134 eval result=\$gl_cv_type_${gltype}_suffix
40135 test "$result" != no && break
40138 eval ac_res=\$gl_cv_type_${gltype}_suffix
40139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40140 $as_echo "$ac_res" >&6; }
40141 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40142 eval result=\$gl_cv_type_${gltype}_suffix
40143 test "$result" = no && result=
40144 eval ${GLTYPE}_SUFFIX=\$result
40145 cat >>confdefs.h <<_ACEOF
40146 #define ${GLTYPE}_SUFFIX $result
40155 for gltype in sig_atomic_t wchar_t wint_t ; do
40156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
40157 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40158 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
40159 $as_echo_n "(cached) " >&6
40161 eval gl_cv_type_${gltype}_suffix=no
40162 eval result=\$gl_cv_type_${gltype}_signed
40163 if test "$result" = yes; then
40168 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40170 '') gltype1='int';;
40171 l) gltype1='long int';;
40172 ll) gltype1='long long int';;
40173 i64) gltype1='__int64';;
40174 u) gltype1='unsigned int';;
40175 ul) gltype1='unsigned long int';;
40176 ull) gltype1='unsigned long long int';;
40177 ui64)gltype1='unsigned __int64';;
40179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40180 /* end confdefs.h. */
40182 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40183 included before <wchar.h>. */
40184 #include <stddef.h>
40185 #include <signal.h>
40187 # include <stdio.h>
40189 # include <wchar.h>
40192 extern $gltype foo;
40193 extern $gltype1 foo;
40202 if ac_fn_c_try_compile "$LINENO"; then :
40203 eval gl_cv_type_${gltype}_suffix=\$glsuf
40205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40206 eval result=\$gl_cv_type_${gltype}_suffix
40207 test "$result" != no && break
40210 eval ac_res=\$gl_cv_type_${gltype}_suffix
40211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40212 $as_echo "$ac_res" >&6; }
40213 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40214 eval result=\$gl_cv_type_${gltype}_suffix
40215 test "$result" = no && result=
40216 eval ${GLTYPE}_SUFFIX=\$result
40217 cat >>confdefs.h <<_ACEOF
40218 #define ${GLTYPE}_SUFFIX $result
40229 # Code from module stdio:
40246 if test $gl_cv_have_include_next = yes; then
40247 gl_cv_next_stdio_h='<'stdio.h'>'
40249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
40250 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40251 if test "${gl_cv_next_stdio_h+set}" = set; then :
40252 $as_echo_n "(cached) " >&6
40255 if test $ac_cv_header_stdio_h = yes; then
40256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40257 /* end confdefs.h. */
40262 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40263 *) gl_absname_cpp="$ac_cpp" ;;
40265 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40266 sed -n '\#/stdio.h#{
40267 s#.*"\(.*/stdio.h\)".*#\1#
40273 gl_cv_next_stdio_h='<'stdio.h'>'
40277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
40278 $as_echo "$gl_cv_next_stdio_h" >&6; }
40280 NEXT_STDIO_H=$gl_cv_next_stdio_h
40282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40284 gl_next_as_first_directive='<'stdio.h'>'
40286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40287 gl_next_as_first_directive=$gl_cv_next_stdio_h
40289 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
40307 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
40308 REPLACE_STDIO_WRITE_FUNCS=1
40317 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
40323 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
40324 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40326 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40327 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
40328 $as_echo_n "(cached) " >&6
40330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40331 /* end confdefs.h. */
40343 if ac_fn_c_try_compile "$LINENO"; then :
40344 eval "$as_gl_Symbol=yes"
40346 eval "$as_gl_Symbol=no"
40348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40350 eval ac_res=\$$as_gl_Symbol
40351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40352 $as_echo "$ac_res" >&6; }
40353 eval as_val=\$$as_gl_Symbol
40354 if test "x$as_val" = x""yes; then :
40355 cat >>confdefs.h <<_ACEOF
40356 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40359 eval ac_cv_have_decl_$gl_func=yes
40364 # Code from module stdlib:
40379 if test $gl_cv_have_include_next = yes; then
40380 gl_cv_next_stdlib_h='<'stdlib.h'>'
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
40383 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40384 if test "${gl_cv_next_stdlib_h+set}" = set; then :
40385 $as_echo_n "(cached) " >&6
40388 if test $ac_cv_header_stdlib_h = yes; then
40389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40390 /* end confdefs.h. */
40391 #include <stdlib.h>
40395 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40396 *) gl_absname_cpp="$ac_cpp" ;;
40398 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40399 sed -n '\#/stdlib.h#{
40400 s#.*"\(.*/stdlib.h\)".*#\1#
40406 gl_cv_next_stdlib_h='<'stdlib.h'>'
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
40411 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40413 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40417 gl_next_as_first_directive='<'stdlib.h'>'
40419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40420 gl_next_as_first_directive=$gl_cv_next_stdlib_h
40422 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40426 for ac_header in random.h
40428 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
40430 if test "x$ac_cv_header_random_h" = x""yes; then :
40431 cat >>confdefs.h <<_ACEOF
40432 #define HAVE_RANDOM_H 1
40439 if test $ac_cv_header_random_h = yes; then
40445 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
40447 # include <random.h>
40451 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
40453 cat >>confdefs.h <<_ACEOF
40454 #define HAVE_STRUCT_RANDOM_DATA 1
40459 HAVE_STRUCT_RANDOM_DATA=0
40464 for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
40465 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40467 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40468 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
40469 $as_echo_n "(cached) " >&6
40471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40472 /* end confdefs.h. */
40473 #include <stdlib.h>
40474 #if HAVE_SYS_LOADAVG_H
40475 # include <sys/loadavg.h>
40478 # include <random.h>
40490 if ac_fn_c_try_compile "$LINENO"; then :
40491 eval "$as_gl_Symbol=yes"
40493 eval "$as_gl_Symbol=no"
40495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40497 eval ac_res=\$$as_gl_Symbol
40498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40499 $as_echo "$ac_res" >&6; }
40500 eval as_val=\$$as_gl_Symbol
40501 if test "x$as_val" = x""yes; then :
40502 cat >>confdefs.h <<_ACEOF
40503 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40506 eval ac_cv_have_decl_$gl_func=yes
40511 # Code from module stpcpy:
40526 for ac_func in stpcpy
40528 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
40529 if test "x$ac_cv_func_stpcpy" = x""yes; then :
40530 cat >>confdefs.h <<_ACEOF
40531 #define HAVE_STPCPY 1
40536 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40542 if test $ac_cv_func_stpcpy = no; then
40556 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
40560 # Code from module stpncpy:
40576 if test $ac_cv_func_stpncpy = yes; then
40577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5
40578 $as_echo_n "checking for working stpncpy... " >&6; }
40579 if test "${gl_cv_func_stpncpy+set}" = set; then :
40580 $as_echo_n "(cached) " >&6
40583 if test "$cross_compiling" = yes; then :
40584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40585 /* end confdefs.h. */
40587 #include <features.h>
40588 #ifdef __GNU_LIBRARY__
40589 Thanks for using GNU
40593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40594 $EGREP "Thanks for using GNU" >/dev/null 2>&1; then :
40595 gl_cv_func_stpncpy=yes
40597 gl_cv_func_stpncpy=no
40603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40604 /* end confdefs.h. */
40606 #include <stdlib.h>
40607 #include <string.h> /* for strcpy */
40608 /* The stpncpy prototype is missing in <string.h> on AIX 4. */
40609 extern char *stpncpy (char *dest, const char *src, size_t n);
40611 const char *src = "Hello";
40613 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here. */
40614 strcpy (dest, "\377\377\377\377\377\377");
40615 if (stpncpy (dest, src, 2) != dest + 2) exit(1);
40616 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here. */
40617 strcpy (dest, "\377\377\377\377\377\377");
40618 if (stpncpy (dest, src, 5) != dest + 5) exit(1);
40619 /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here. */
40620 strcpy (dest, "\377\377\377\377\377\377");
40621 if (stpncpy (dest, src, 7) != dest + 5) exit(1);
40626 if ac_fn_c_try_run "$LINENO"; then :
40627 gl_cv_func_stpncpy=yes
40629 gl_cv_func_stpncpy=no
40631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40632 conftest.$ac_objext conftest.beam conftest.$ac_ext
40637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5
40638 $as_echo "$gl_cv_func_stpncpy" >&6; }
40639 if test $gl_cv_func_stpncpy = yes; then
40641 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h
40653 gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
40669 gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
40683 $as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h
40687 # Code from module strchrnul:
40700 for ac_func in strchrnul
40702 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
40703 if test "x$ac_cv_func_strchrnul" = x""yes; then :
40704 cat >>confdefs.h <<_ACEOF
40705 #define HAVE_STRCHRNUL 1
40710 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40716 if test $ac_cv_func_strchrnul = no; then
40728 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
40732 # Code from module strcspn:
40742 for ac_func in strcspn
40744 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
40745 if test "x$ac_cv_func_strcspn" = x""yes; then :
40746 cat >>confdefs.h <<_ACEOF
40747 #define HAVE_STRCSPN 1
40752 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40758 if test $ac_cv_func_strcspn = no; then
40762 # Code from module streq:
40763 # Code from module strerror:
40766 if test $REPLACE_STRERROR = 1; then
40775 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
40778 cat >>confdefs.h <<_ACEOF
40779 #define REPLACE_STRERROR $REPLACE_STRERROR
40791 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
40795 # Code from module striconv:
40796 if test $gl_cond_libtool = false; then
40797 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
40798 gl_libdeps="$gl_libdeps $LIBICONV"
40800 # Code from module striconveh:
40801 if test $gl_cond_libtool = false; then
40802 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
40803 gl_libdeps="$gl_libdeps $LIBICONV"
40805 # Code from module striconveha:
40806 # Code from module string:
40810 # Code from module strnlen:
40823 if test $ac_cv_have_decl_strnlen = no; then
40824 HAVE_DECL_STRNLEN=0
40826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
40827 $as_echo_n "checking for working strnlen... " >&6; }
40828 if test "${ac_cv_func_strnlen_working+set}" = set; then :
40829 $as_echo_n "(cached) " >&6
40831 if test "$cross_compiling" = yes; then :
40832 ac_cv_func_strnlen_working=no
40834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40835 /* end confdefs.h. */
40836 $ac_includes_default
40842 #define S_LEN (sizeof S - 1)
40844 /* At least one implementation is buggy: that of AIX 4.3 would
40845 give strnlen (S, 1) == 3. */
40848 for (i = 0; i < S_LEN + 1; ++i)
40850 int expected = i <= S_LEN ? i : S_LEN;
40851 if (strnlen (S, i) != expected)
40860 if ac_fn_c_try_run "$LINENO"; then :
40861 ac_cv_func_strnlen_working=yes
40863 ac_cv_func_strnlen_working=no
40865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40866 conftest.$ac_objext conftest.beam conftest.$ac_ext
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
40871 $as_echo "$ac_cv_func_strnlen_working" >&6; }
40872 test $ac_cv_func_strnlen_working = no &&
40880 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
40883 if test $ac_cv_func_strnlen_working = no; then
40887 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
40896 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
40908 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
40912 # Code from module strnlen1:
40913 # Code from module strpbrk:
40924 for ac_func in strpbrk
40926 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
40927 if test "x$ac_cv_func_strpbrk" = x""yes; then :
40928 cat >>confdefs.h <<_ACEOF
40929 #define HAVE_STRPBRK 1
40934 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40940 if test $ac_cv_func_strpbrk = no; then
40952 $as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h
40956 # Code from module strstr:
40959 if test $REPLACE_STRSTR = 0; then
40960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
40961 $as_echo_n "checking whether strstr works in linear time... " >&6; }
40962 if test "${gl_cv_func_strstr_linear+set}" = set; then :
40963 $as_echo_n "(cached) " >&6
40965 if test "$cross_compiling" = yes; then :
40966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40967 /* end confdefs.h. */
40969 #include <features.h>
40970 #ifdef __GNU_LIBRARY__
40971 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
40976 #include <cygwin/version.h>
40977 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
40983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40984 $EGREP "Lucky user" >/dev/null 2>&1; then :
40985 gl_cv_func_strstr_linear=yes
40987 gl_cv_func_strstr_linear="guessing no"
40993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40994 /* end confdefs.h. */
40996 #include <signal.h> /* for signal */
40997 #include <string.h> /* for memmem */
40998 #include <stdlib.h> /* for malloc */
40999 #include <unistd.h> /* for alarm */
41004 size_t m = 1000000;
41005 char *haystack = (char *) malloc (2 * m + 2);
41006 char *needle = (char *) malloc (m + 2);
41008 /* Failure to compile this test due to missing alarm is okay,
41009 since all such platforms (mingw) also have quadratic strstr. */
41010 signal (SIGALRM, SIG_DFL);
41012 /* Check for quadratic performance. */
41013 if (haystack && needle)
41015 memset (haystack, 'A', 2 * m);
41016 haystack[2 * m] = 'B';
41017 haystack[2 * m + 1] = 0;
41018 memset (needle, 'A', m);
41021 result = strstr (haystack, needle);
41028 if ac_fn_c_try_run "$LINENO"; then :
41029 gl_cv_func_strstr_linear=yes
41031 gl_cv_func_strstr_linear=no
41033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41034 conftest.$ac_objext conftest.beam conftest.$ac_ext
41039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
41040 $as_echo "$gl_cv_func_strstr_linear" >&6; }
41041 if test "$gl_cv_func_strstr_linear" != yes; then
41045 if test $REPLACE_STRSTR = 1; then
41054 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
41058 # Code from module strstr-simple:
41062 if test "$gl_cv_func_memchr_works" != yes; then
41072 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
41083 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
41087 # Code from module strtol:
41097 for ac_func in strtol
41099 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
41100 if test "x$ac_cv_func_strtol" = x""yes; then :
41101 cat >>confdefs.h <<_ACEOF
41102 #define HAVE_STRTOL 1
41107 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41114 # Code from module strtoul:
41124 for ac_func in strtoul
41126 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
41127 if test "x$ac_cv_func_strtoul" = x""yes; then :
41128 cat >>confdefs.h <<_ACEOF
41129 #define HAVE_STRTOUL 1
41134 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41141 # Code from module styled-ostream:
41142 # Code from module sys_select:
41146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
41147 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
41148 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
41149 $as_echo_n "(cached) " >&6
41152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41153 /* end confdefs.h. */
41154 #include <sys/select.h>
41163 if ac_fn_c_try_compile "$LINENO"; then :
41164 gl_cv_header_sys_select_h_selfcontained=yes
41166 gl_cv_header_sys_select_h_selfcontained=no
41168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41169 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
41170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41171 /* end confdefs.h. */
41172 #include <sys/select.h>
41176 int memset; int bzero;
41182 if ac_fn_c_try_compile "$LINENO"; then :
41183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41184 /* end confdefs.h. */
41185 #include <sys/select.h>
41191 #define memset nonexistent_memset
41192 extern void *memset (void *, int, unsigned long);
41194 #define bzero nonexistent_bzero
41195 extern void bzero (void *, unsigned long);
41204 if ac_fn_c_try_link "$LINENO"; then :
41207 gl_cv_header_sys_select_h_selfcontained=no
41209 rm -f core conftest.err conftest.$ac_objext \
41210 conftest$ac_exeext conftest.$ac_ext
41213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
41218 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
41238 if test $gl_cv_have_include_next = yes; then
41239 gl_cv_next_sys_select_h='<'sys/select.h'>'
41241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
41242 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
41243 if test "${gl_cv_next_sys_select_h+set}" = set; then :
41244 $as_echo_n "(cached) " >&6
41247 if test $ac_cv_header_sys_select_h = yes; then
41248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41249 /* end confdefs.h. */
41250 #include <sys/select.h>
41254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41255 *) gl_absname_cpp="$ac_cpp" ;;
41257 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41258 sed -n '\#/sys/select.h#{
41259 s#.*"\(.*/sys/select.h\)".*#\1#
41265 gl_cv_next_sys_select_h='<'sys/select.h'>'
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
41270 $as_echo "$gl_cv_next_sys_select_h" >&6; }
41272 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
41274 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41276 gl_next_as_first_directive='<'sys/select.h'>'
41278 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41279 gl_next_as_first_directive=$gl_cv_next_sys_select_h
41281 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
41285 if test $ac_cv_header_sys_select_h = yes; then
41286 HAVE_SYS_SELECT_H=1
41288 HAVE_SYS_SELECT_H=0
41301 if test $ac_cv_header_sys_socket_h != yes; then
41302 for ac_header in winsock2.h
41304 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41305 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
41306 cat >>confdefs.h <<_ACEOF
41307 #define HAVE_WINSOCK2_H 1
41315 if test "$ac_cv_header_winsock2_h" = yes; then
41317 UNISTD_H_HAVE_WINSOCK2_H=1
41318 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41326 for gl_func in select; do
41327 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41329 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41330 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41331 $as_echo_n "(cached) " >&6
41333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334 /* end confdefs.h. */
41336 /* Some systems require prerequisite headers. */
41337 #include <sys/types.h>
41338 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
41339 # include <sys/time.h>
41341 #include <sys/select.h>
41352 if ac_fn_c_try_compile "$LINENO"; then :
41353 eval "$as_gl_Symbol=yes"
41355 eval "$as_gl_Symbol=no"
41357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41359 eval ac_res=\$$as_gl_Symbol
41360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41361 $as_echo "$ac_res" >&6; }
41362 eval as_val=\$$as_gl_Symbol
41363 if test "x$as_val" = x""yes; then :
41364 cat >>confdefs.h <<_ACEOF
41365 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41368 eval ac_cv_have_decl_$gl_func=yes
41374 # Code from module sys_socket:
41379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
41380 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
41381 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then :
41382 $as_echo_n "(cached) " >&6
41385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41386 /* end confdefs.h. */
41387 #include <sys/socket.h>
41396 if ac_fn_c_try_compile "$LINENO"; then :
41397 gl_cv_header_sys_socket_h_selfcontained=yes
41399 gl_cv_header_sys_socket_h_selfcontained=no
41401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
41405 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
41406 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
41407 for ac_func in shutdown
41409 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
41410 if test "x$ac_cv_func_shutdown" = x""yes; then :
41411 cat >>confdefs.h <<_ACEOF
41412 #define HAVE_SHUTDOWN 1
41418 if test $ac_cv_func_shutdown = yes; then
41419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
41420 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
41421 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then :
41422 $as_echo_n "(cached) " >&6
41425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41426 /* end confdefs.h. */
41427 #include <sys/socket.h>
41431 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
41436 if ac_fn_c_try_compile "$LINENO"; then :
41437 gl_cv_header_sys_socket_h_shut=yes
41439 gl_cv_header_sys_socket_h_shut=no
41441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
41445 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
41446 if test $gl_cv_header_sys_socket_h_shut = no; then
41447 SYS_SOCKET_H='sys/socket.h'
41451 # We need to check for ws2tcpip.h now.
41465 if test $gl_cv_have_include_next = yes; then
41466 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
41469 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
41470 if test "${gl_cv_next_sys_socket_h+set}" = set; then :
41471 $as_echo_n "(cached) " >&6
41474 if test $ac_cv_header_sys_socket_h = yes; then
41475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41476 /* end confdefs.h. */
41477 #include <sys/socket.h>
41481 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41482 *) gl_absname_cpp="$ac_cpp" ;;
41484 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41485 sed -n '\#/sys/socket.h#{
41486 s#.*"\(.*/sys/socket.h\)".*#\1#
41492 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
41497 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
41499 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
41501 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41503 gl_next_as_first_directive='<'sys/socket.h'>'
41505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41506 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
41508 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
41512 if test $ac_cv_header_sys_socket_h = yes; then
41513 HAVE_SYS_SOCKET_H=1
41516 HAVE_SYS_SOCKET_H=0
41517 for ac_header in ws2tcpip.h
41519 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
41520 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
41521 cat >>confdefs.h <<_ACEOF
41522 #define HAVE_WS2TCPIP_H 1
41529 if test $ac_cv_header_ws2tcpip_h = yes; then
41538 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
41539 /* sys/types.h is not needed according to POSIX, but the
41540 sys/socket.h in i386-unknown-freebsd4.10 and
41541 powerpc-apple-darwin5.5 required it. */
41542 #include <sys/types.h>
41543 #ifdef HAVE_SYS_SOCKET_H
41544 #include <sys/socket.h>
41546 #ifdef HAVE_WS2TCPIP_H
41547 #include <ws2tcpip.h>
41551 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
41553 cat >>confdefs.h <<_ACEOF
41554 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
41559 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
41560 /* sys/types.h is not needed according to POSIX, but the
41561 sys/socket.h in i386-unknown-freebsd4.10 and
41562 powerpc-apple-darwin5.5 required it. */
41563 #include <sys/types.h>
41564 #ifdef HAVE_SYS_SOCKET_H
41565 #include <sys/socket.h>
41567 #ifdef HAVE_WS2TCPIP_H
41568 #include <ws2tcpip.h>
41572 if test "x$ac_cv_type_sa_family_t" = x""yes; then :
41574 cat >>confdefs.h <<_ACEOF
41575 #define HAVE_SA_FAMILY_T 1
41581 if test $ac_cv_type_struct_sockaddr_storage = no; then
41582 HAVE_STRUCT_SOCKADDR_STORAGE=0
41584 if test $ac_cv_type_sa_family_t = no; then
41597 if test $ac_cv_header_sys_socket_h != yes; then
41598 for ac_header in winsock2.h
41600 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41601 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
41602 cat >>confdefs.h <<_ACEOF
41603 #define HAVE_WINSOCK2_H 1
41611 if test "$ac_cv_header_winsock2_h" = yes; then
41613 UNISTD_H_HAVE_WINSOCK2_H=1
41614 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41622 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
41623 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41625 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41626 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41627 $as_echo_n "(cached) " >&6
41629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41630 /* end confdefs.h. */
41632 /* Some systems require prerequisite headers. */
41633 #include <sys/types.h>
41634 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
41635 # include <sys/time.h>
41637 #include <sys/select.h>
41648 if ac_fn_c_try_compile "$LINENO"; then :
41649 eval "$as_gl_Symbol=yes"
41651 eval "$as_gl_Symbol=no"
41653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41655 eval ac_res=\$$as_gl_Symbol
41656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41657 $as_echo "$ac_res" >&6; }
41658 eval as_val=\$$as_gl_Symbol
41659 if test "x$as_val" = x""yes; then :
41660 cat >>confdefs.h <<_ACEOF
41661 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41664 eval ac_cv_have_decl_$gl_func=yes
41670 # Code from module sys_stat:
41690 if test $gl_cv_have_include_next = yes; then
41691 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
41693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
41694 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
41695 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
41696 $as_echo_n "(cached) " >&6
41699 if test $ac_cv_header_sys_stat_h = yes; then
41700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41701 /* end confdefs.h. */
41702 #include <sys/stat.h>
41706 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41707 *) gl_absname_cpp="$ac_cpp" ;;
41709 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41710 sed -n '\#/sys/stat.h#{
41711 s#.*"\(.*/sys/stat.h\)".*#\1#
41717 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
41721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
41722 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
41724 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
41726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41728 gl_next_as_first_directive='<'sys/stat.h'>'
41730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41731 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
41733 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
41738 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
41739 #include <sys/stat.h>
41741 if test "x$ac_cv_type_nlink_t" = x""yes; then :
41745 $as_echo "#define nlink_t int" >>confdefs.h
41751 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
41752 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41754 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41755 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
41756 $as_echo_n "(cached) " >&6
41758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41759 /* end confdefs.h. */
41760 #include <sys/stat.h>
41771 if ac_fn_c_try_compile "$LINENO"; then :
41772 eval "$as_gl_Symbol=yes"
41774 eval "$as_gl_Symbol=no"
41776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41778 eval ac_res=\$$as_gl_Symbol
41779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41780 $as_echo "$ac_res" >&6; }
41781 eval as_val=\$$as_gl_Symbol
41782 if test "x$as_val" = x""yes; then :
41783 cat >>confdefs.h <<_ACEOF
41784 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41787 eval ac_cv_have_decl_$gl_func=yes
41793 # Code from module sys_time:
41798 # Code from module sys_wait:
41814 if test $gl_cv_have_include_next = yes; then
41815 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
41817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
41818 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
41819 if test "${gl_cv_next_sys_wait_h+set}" = set; then :
41820 $as_echo_n "(cached) " >&6
41823 if test $ac_cv_header_sys_wait_h = yes; then
41824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41825 /* end confdefs.h. */
41826 #include <sys/wait.h>
41830 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41831 *) gl_absname_cpp="$ac_cpp" ;;
41833 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41834 sed -n '\#/sys/wait.h#{
41835 s#.*"\(.*/sys/wait.h\)".*#\1#
41841 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
41845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
41846 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
41848 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
41850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41852 gl_next_as_first_directive='<'sys/wait.h'>'
41854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41855 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
41857 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
41863 # Code from module tempname:
41875 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
41881 # Code from module term-ostream:
41885 # Code from module term-styled-ostream:
41886 # Code from module terminfo:
41889 if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
41898 gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
41901 case "$gl_cv_terminfo" in
41903 case "$gl_cv_termcap" in
41913 gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
41920 # Code from module terminfo-h:
41921 # Code from module threadlib:
41926 # Code from module time:
41930 # Code from module tls:
41934 # Code from module tmpdir:
41936 for ac_func in __secure_getenv
41938 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
41939 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
41940 cat >>confdefs.h <<_ACEOF
41941 #define HAVE___SECURE_GETENV 1
41948 # Code from module trim:
41949 # Code from module uniconv/base:
41952 if { test "$HAVE_LIBUNISTRING" != yes \
41957 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
41958 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
41959 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
41960 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
41961 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
41971 LIBUNISTRING_UNICONV_H='uniconv.h'
41973 LIBUNISTRING_UNICONV_H=
41977 # Code from module uniconv/u8-conv-from-enc:
41980 if { test "$HAVE_LIBUNISTRING" != yes \
41985 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
41986 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
41987 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
41988 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
41989 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
41999 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
42000 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
42002 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
42003 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
42007 # Code from module unilbrk/base:
42010 if { test "$HAVE_LIBUNISTRING" != yes \
42015 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42016 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42017 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42018 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42019 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42029 LIBUNISTRING_UNILBRK_H='unilbrk.h'
42031 LIBUNISTRING_UNILBRK_H=
42035 # Code from module unilbrk/tables:
42037 # Code from module unilbrk/u8-possible-linebreaks:
42040 if { test "$HAVE_LIBUNISTRING" != yes \
42045 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42046 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42047 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42048 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42049 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42059 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
42060 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
42062 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
42063 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
42067 # Code from module unilbrk/u8-width-linebreaks:
42070 if { test "$HAVE_LIBUNISTRING" != yes \
42075 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42076 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42077 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42078 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42079 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42089 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
42090 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
42092 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
42093 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
42097 # Code from module unilbrk/ulc-common:
42098 # Code from module unilbrk/ulc-width-linebreaks:
42101 if { test "$HAVE_LIBUNISTRING" != yes \
42106 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42107 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42108 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42109 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42110 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42120 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
42121 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
42123 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
42124 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
42128 # Code from module uniname/base:
42131 if { test "$HAVE_LIBUNISTRING" != yes \
42136 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42137 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42138 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42139 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42140 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42150 LIBUNISTRING_UNINAME_H='uniname.h'
42152 LIBUNISTRING_UNINAME_H=
42156 # Code from module uniname/uniname:
42159 if { test "$HAVE_LIBUNISTRING" != yes \
42164 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42165 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42166 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42167 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42168 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42178 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE=
42179 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#'
42181 LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#'
42182 LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE=
42186 # Code from module unistd:
42203 if test $gl_cv_have_include_next = yes; then
42204 gl_cv_next_unistd_h='<'unistd.h'>'
42206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
42207 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
42208 if test "${gl_cv_next_unistd_h+set}" = set; then :
42209 $as_echo_n "(cached) " >&6
42212 if test $ac_cv_header_unistd_h = yes; then
42213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42214 /* end confdefs.h. */
42215 #include <unistd.h>
42219 aix*) gl_absname_cpp="$ac_cpp -C" ;;
42220 *) gl_absname_cpp="$ac_cpp" ;;
42222 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42223 sed -n '\#/unistd.h#{
42224 s#.*"\(.*/unistd.h\)".*#\1#
42230 gl_cv_next_unistd_h='<'unistd.h'>'
42234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
42235 $as_echo "$gl_cv_next_unistd_h" >&6; }
42237 NEXT_UNISTD_H=$gl_cv_next_unistd_h
42239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42241 gl_next_as_first_directive='<'unistd.h'>'
42243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42244 gl_next_as_first_directive=$gl_cv_next_unistd_h
42246 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
42258 if test $ac_cv_header_unistd_h = yes; then
42266 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
42267 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42269 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42270 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
42271 $as_echo_n "(cached) " >&6
42273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42274 /* end confdefs.h. */
42275 #include <unistd.h>
42276 /* Some systems declare various items in the wrong headers. */
42278 # include <fcntl.h>
42279 # include <stdio.h>
42280 # include <stdlib.h>
42281 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
42295 if ac_fn_c_try_compile "$LINENO"; then :
42296 eval "$as_gl_Symbol=yes"
42298 eval "$as_gl_Symbol=no"
42300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42302 eval ac_res=\$$as_gl_Symbol
42303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42304 $as_echo "$ac_res" >&6; }
42305 eval as_val=\$$as_gl_Symbol
42306 if test "x$as_val" = x""yes; then :
42307 cat >>confdefs.h <<_ACEOF
42308 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42311 eval ac_cv_have_decl_$gl_func=yes
42316 # Code from module unistd-safer:
42333 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
42343 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
42353 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
42356 # Code from module unistr/base:
42359 if { test "$HAVE_LIBUNISTRING" != yes \
42364 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42365 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42366 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42367 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42368 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
42378 LIBUNISTRING_UNISTR_H='unistr.h'
42380 LIBUNISTRING_UNISTR_H=
42384 # Code from module unistr/u16-mbtouc:
42387 cat >>confdefs.h <<_ACEOF
42388 #define GNULIB_UNISTR_U16_MBTOUC 1
42394 if { test "$HAVE_LIBUNISTRING" != yes \
42399 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42400 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42401 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42402 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42403 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42413 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
42414 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
42416 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
42417 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
42421 # Code from module unistr/u8-check:
42424 if { test "$HAVE_LIBUNISTRING" != yes \
42429 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42430 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42431 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42432 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42433 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42443 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
42444 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
42446 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
42447 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
42451 # Code from module unistr/u8-mblen:
42454 if { test "$HAVE_LIBUNISTRING" != yes \
42459 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42460 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42461 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42462 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42463 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42473 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
42474 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
42476 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
42477 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
42481 # Code from module unistr/u8-mbtouc:
42484 cat >>confdefs.h <<_ACEOF
42485 #define GNULIB_UNISTR_U8_MBTOUC 1
42491 if { test "$HAVE_LIBUNISTRING" != yes \
42496 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42497 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42498 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42499 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42500 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42510 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
42511 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
42513 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
42514 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
42518 # Code from module unistr/u8-mbtouc-unsafe:
42521 cat >>confdefs.h <<_ACEOF
42522 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
42528 if { test "$HAVE_LIBUNISTRING" != yes \
42533 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42534 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42535 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42536 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42537 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42547 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
42548 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
42550 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
42551 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
42555 # Code from module unistr/u8-mbtoucr:
42558 cat >>confdefs.h <<_ACEOF
42559 #define GNULIB_UNISTR_U8_MBTOUCR 1
42565 if { test "$HAVE_LIBUNISTRING" != yes \
42570 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42571 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42572 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42573 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42574 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42584 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
42585 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
42587 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
42588 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
42592 # Code from module unistr/u8-prev:
42595 if { test "$HAVE_LIBUNISTRING" != yes \
42600 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42601 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42602 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42603 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42604 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42614 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
42615 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
42617 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
42618 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
42622 # Code from module unistr/u8-uctomb:
42625 cat >>confdefs.h <<_ACEOF
42626 #define GNULIB_UNISTR_U8_UCTOMB 1
42632 if { test "$HAVE_LIBUNISTRING" != yes \
42637 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42638 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42639 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42640 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42641 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42651 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
42652 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
42654 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
42655 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
42659 # Code from module unitypes:
42662 if { test "$HAVE_LIBUNISTRING" != yes \
42667 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42668 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42669 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42670 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42671 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42681 LIBUNISTRING_UNITYPES_H='unitypes.h'
42683 LIBUNISTRING_UNITYPES_H=
42687 # Code from module uniwidth/base:
42690 if { test "$HAVE_LIBUNISTRING" != yes \
42695 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42696 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42697 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42698 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42699 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42709 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
42711 LIBUNISTRING_UNIWIDTH_H=
42715 # Code from module uniwidth/width:
42718 if { test "$HAVE_LIBUNISTRING" != yes \
42723 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
42724 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
42725 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
42726 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
42727 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
42737 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
42738 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
42740 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
42741 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
42745 # Code from module unlocked-io:
42748 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
42845 # Code from module unsetenv:
42848 for ac_func in unsetenv
42850 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
42851 if test "x$ac_cv_func_unsetenv" = x""yes; then :
42852 cat >>confdefs.h <<_ACEOF
42853 #define HAVE_UNSETENV 1
42859 if test $ac_cv_func_unsetenv = no; then
42869 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
42883 $as_echo_n "checking for unsetenv() return type... " >&6; }
42884 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
42885 $as_echo_n "(cached) " >&6
42887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42888 /* end confdefs.h. */
42889 #include <stdlib.h>
42894 #if defined(__STDC__) || defined(__cplusplus)
42895 int unsetenv (const char *name);
42908 if ac_fn_c_try_compile "$LINENO"; then :
42909 gt_cv_func_unsetenv_ret='int'
42911 gt_cv_func_unsetenv_ret='void'
42913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
42916 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
42917 if test $gt_cv_func_unsetenv_ret = 'void'; then
42919 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
42930 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv works on duplicates" >&5
42935 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
42936 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
42937 $as_echo_n "(cached) " >&6
42939 if test "$cross_compiling" = yes; then :
42940 gl_cv_func_unsetenv_works="guessing no"
42942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42943 /* end confdefs.h. */
42945 #include <stdlib.h>
42951 char entry[] = "b=2";
42952 if (putenv ((char *) "a=1")) return 1;
42953 if (putenv (entry)) return 2;
42956 if (getenv ("a")) return 3;
42962 if ac_fn_c_try_run "$LINENO"; then :
42963 gl_cv_func_unsetenv_works=yes
42965 gl_cv_func_unsetenv_works=no
42967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42968 conftest.$ac_objext conftest.beam conftest.$ac_ext
42972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
42973 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
42974 if test "$gl_cv_func_unsetenv_works" != yes; then
42984 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42996 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
43000 # Code from module unused-parameter:
43001 # Code from module vasnprintf:
43010 if test $ac_cv_func_vasnprintf = no; then
43027 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
43037 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
43047 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
43057 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
43059 if test $ac_cv_func_vasnprintf = yes; then
43061 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
43074 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
43075 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
43079 $as_echo "#define ptrdiff_t long" >>confdefs.h
43092 # Code from module vasprintf:
43094 for ac_func in vasprintf
43096 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
43097 if test "x$ac_cv_func_vasprintf" = x""yes; then :
43098 cat >>confdefs.h <<_ACEOF
43099 #define HAVE_VASPRINTF 1
43105 if test $ac_cv_func_vasprintf = no; then
43115 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
43125 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
43128 if test $ac_cv_func_vasprintf = yes; then
43129 REPLACE_VASPRINTF=1
43150 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
43156 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
43160 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
43162 # Code from module verify:
43163 # Code from module vsnprintf:
43166 gl_cv_func_vsnprintf_usable=no
43167 for ac_func in vsnprintf
43169 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
43170 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
43171 cat >>confdefs.h <<_ACEOF
43172 #define HAVE_VSNPRINTF 1
43178 if test $ac_cv_func_vsnprintf = yes; then
43181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
43182 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
43183 if test "${gl_cv_func_snprintf_size1+set}" = set; then :
43184 $as_echo_n "(cached) " >&6
43187 if test "$cross_compiling" = yes; then :
43188 gl_cv_func_snprintf_size1="guessing yes"
43190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43191 /* end confdefs.h. */
43196 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
43197 snprintf (buf, 1, "%d", 12345);
43198 return buf[1] != 'E';
43201 if ac_fn_c_try_run "$LINENO"; then :
43202 gl_cv_func_snprintf_size1=yes
43204 gl_cv_func_snprintf_size1=no
43206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43207 conftest.$ac_objext conftest.beam conftest.$ac_ext
43212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
43213 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
43215 case "$gl_cv_func_snprintf_size1" in
43217 gl_cv_func_vsnprintf_usable=yes
43221 if test $gl_cv_func_vsnprintf_usable = no; then
43232 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
43234 if test $ac_cv_func_vsnprintf = yes; then
43235 REPLACE_VSNPRINTF=1
43247 if test $ac_cv_have_decl_vsnprintf = no; then
43248 HAVE_DECL_VSNPRINTF=0
43258 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
43262 # Code from module wait-process:
43266 for ac_func in waitid
43268 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
43269 if test "x$ac_cv_func_waitid" = x""yes; then :
43270 cat >>confdefs.h <<_ACEOF
43271 #define HAVE_WAITID 1
43279 for ac_func in waitpid
43281 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
43282 if test "x$ac_cv_func_waitpid" = x""yes; then :
43283 cat >>confdefs.h <<_ACEOF
43284 #define HAVE_WAITPID 1
43290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
43291 $as_echo_n "checking for union wait... " >&6; }
43292 if test "${gt_cv_union_wait+set}" = set; then :
43293 $as_echo_n "(cached) " >&6
43295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43296 /* end confdefs.h. */
43297 #include <sys/types.h>
43298 #include <sys/wait.h>
43302 union wait status; int pid; pid = wait (&status);
43304 /* Some POSIXoid systems have both the new-style macros and the old
43305 union wait type, and they do not work together. If union wait
43306 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
43307 if (WEXITSTATUS (status) != 0) pid = -1;
43309 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
43310 -- blow chunks here --
43313 #ifdef HAVE_WAITPID
43314 /* Make sure union wait works with waitpid. */
43315 pid = waitpid (-1, &status, 0);
43322 if ac_fn_c_try_link "$LINENO"; then :
43323 gt_cv_union_wait=yes
43325 gt_cv_union_wait=no
43327 rm -f core conftest.err conftest.$ac_objext \
43328 conftest$ac_exeext conftest.$ac_ext
43331 if test "$gt_cv_union_wait" = yes; then
43333 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
43336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5
43337 $as_echo "$gt_cv_union_wait" >&6; }
43339 # Code from module warn-on-use:
43340 # Code from module wchar:
43363 if test $gl_cv_have_include_next = yes; then
43364 gl_cv_next_wchar_h='<'wchar.h'>'
43366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
43367 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
43368 if test "${gl_cv_next_wchar_h+set}" = set; then :
43369 $as_echo_n "(cached) " >&6
43372 if test $ac_cv_header_wchar_h = yes; then
43373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43374 /* end confdefs.h. */
43379 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43380 *) gl_absname_cpp="$ac_cpp" ;;
43382 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43383 sed -n '\#/wchar.h#{
43384 s#.*"\(.*/wchar.h\)".*#\1#
43390 gl_cv_next_wchar_h='<'wchar.h'>'
43394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
43395 $as_echo "$gl_cv_next_wchar_h" >&6; }
43397 NEXT_WCHAR_H=$gl_cv_next_wchar_h
43399 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43401 gl_next_as_first_directive='<'wchar.h'>'
43403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43404 gl_next_as_first_directive=$gl_cv_next_wchar_h
43406 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
43410 if test $ac_cv_header_wchar_h = yes; then
43418 if test $gt_cv_c_wint_t = yes; then
43426 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
43427 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43429 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43430 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
43431 $as_echo_n "(cached) " >&6
43433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43434 /* end confdefs.h. */
43436 /* Some systems require additional headers. */
43438 # include <stddef.h>
43439 # include <stdio.h>
43453 if ac_fn_c_try_compile "$LINENO"; then :
43454 eval "$as_gl_Symbol=yes"
43456 eval "$as_gl_Symbol=no"
43458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43460 eval ac_res=\$$as_gl_Symbol
43461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
43462 $as_echo "$ac_res" >&6; }
43463 eval as_val=\$$as_gl_Symbol
43464 if test "x$as_val" = x""yes; then :
43465 cat >>confdefs.h <<_ACEOF
43466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43469 eval ac_cv_have_decl_$gl_func=yes
43474 # Code from module wctype:
43485 if test $ac_cv_func_iswcntrl = yes; then
43498 if test $ac_cv_func_iswblank = yes; then
43514 if test $gt_cv_c_wint_t = yes; then
43521 if test $ac_cv_header_wctype_h = yes; then
43522 if test $ac_cv_func_iswcntrl = yes; then
43523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
43524 $as_echo_n "checking whether iswcntrl works... " >&6; }
43525 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
43526 $as_echo_n "(cached) " >&6
43529 if test "$cross_compiling" = yes; then :
43530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43531 /* end confdefs.h. */
43532 #include <stdlib.h>
43533 #if __GNU_LIBRARY__ == 1
43534 Linux libc5 i18n is broken.
43544 if ac_fn_c_try_compile "$LINENO"; then :
43545 gl_cv_func_iswcntrl_works=yes
43547 gl_cv_func_iswcntrl_works=no
43549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43553 /* end confdefs.h. */
43555 #include <stddef.h>
43559 #include <wctype.h>
43560 int main () { return iswprint ('x') == 0; }
43562 if ac_fn_c_try_run "$LINENO"; then :
43563 gl_cv_func_iswcntrl_works=yes
43565 gl_cv_func_iswcntrl_works=no
43567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43568 conftest.$ac_objext conftest.beam conftest.$ac_ext
43573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
43574 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
43588 if test $gl_cv_have_include_next = yes; then
43589 gl_cv_next_wctype_h='<'wctype.h'>'
43591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
43592 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
43593 if test "${gl_cv_next_wctype_h+set}" = set; then :
43594 $as_echo_n "(cached) " >&6
43597 if test $ac_cv_header_wctype_h = yes; then
43598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43599 /* end confdefs.h. */
43600 #include <wctype.h>
43604 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43605 *) gl_absname_cpp="$ac_cpp" ;;
43607 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43608 sed -n '\#/wctype.h#{
43609 s#.*"\(.*/wctype.h\)".*#\1#
43615 gl_cv_next_wctype_h='<'wctype.h'>'
43619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
43620 $as_echo "$gl_cv_next_wctype_h" >&6; }
43622 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
43624 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43625 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43626 gl_next_as_first_directive='<'wctype.h'>'
43628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43629 gl_next_as_first_directive=$gl_cv_next_wctype_h
43631 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
43641 if test "$gl_cv_func_iswcntrl_works" = no; then
43648 # Code from module wcwidth:
43672 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
43673 /* AIX 3.2.5 declares wcwidth in <string.h>. */
43674 #include <string.h>
43675 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43677 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
43678 before <wchar.h>. */
43679 #include <stddef.h>
43685 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
43691 cat >>confdefs.h <<_ACEOF
43692 #define HAVE_DECL_WCWIDTH $ac_have_decl
43695 if test $ac_cv_have_decl_wcwidth != yes; then
43696 HAVE_DECL_WCWIDTH=0
43699 if test $ac_cv_func_wcwidth = yes; then
43700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
43701 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
43702 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
43703 $as_echo_n "(cached) " >&6
43706 if test "$cross_compiling" = yes; then :
43709 # Guess yes on glibc systems.
43710 *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
43711 *) gl_cv_func_wcwidth_works="guessing no";;
43715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43716 /* end confdefs.h. */
43718 #include <locale.h>
43719 /* AIX 3.2.5 declares wcwidth in <string.h>. */
43720 #include <string.h>
43721 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43723 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
43724 before <wchar.h>. */
43725 #include <stddef.h>
43729 #if !HAVE_DECL_WCWIDTH
43731 # ifdef __cplusplus
43738 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
43739 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
43744 if ac_fn_c_try_run "$LINENO"; then :
43745 gl_cv_func_wcwidth_works=yes
43747 gl_cv_func_wcwidth_works=no
43749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43750 conftest.$ac_objext conftest.beam conftest.$ac_ext
43755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
43756 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
43757 case "$gl_cv_func_wcwidth_works" in
43759 *no) REPLACE_WCWIDTH=1 ;;
43762 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
43771 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
43774 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
43775 || test $HAVE_DECL_WCWIDTH = 0; then
43788 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
43792 # Code from module write:
43799 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
43809 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
43821 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
43825 # Code from module xalloc:
43826 # Code from module xalloc-die:
43827 # Code from module xconcat-filename:
43828 # Code from module xerror:
43829 # Code from module xlist:
43833 # Code from module xmalloca:
43834 # Code from module xreadlink:
43835 # Code from module xsetenv:
43836 # Code from module xsize:
43840 for ac_header in stdint.h
43842 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
43843 if test "x$ac_cv_header_stdint_h" = x""yes; then :
43844 cat >>confdefs.h <<_ACEOF
43845 #define HAVE_STDINT_H 1
43853 # Code from module xstriconv:
43854 # Code from module xstriconveh:
43855 # Code from module xvasprintf:
43861 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
43863 # End of code from modules
43884 gl_source_base='gnulib-tests'
43885 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
43887 gl_module_indicator_condition=$gltests_WITNESS
43899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
43900 $as_echo_n "checking for a traditional french locale... " >&6; }
43901 if test "${gt_cv_locale_fr+set}" = set; then :
43902 $as_echo_n "(cached) " >&6
43905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43906 /* end confdefs.h. */
43908 #include <locale.h>
43910 #if HAVE_LANGINFO_CODESET
43911 # include <langinfo.h>
43913 #include <stdlib.h>
43914 #include <string.h>
43918 /* Check whether the given locale name is recognized by the system. */
43919 if (setlocale (LC_ALL, "") == NULL) return 1;
43920 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
43921 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
43922 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
43923 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
43924 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
43925 some unit tests fail. */
43926 #if HAVE_LANGINFO_CODESET
43928 const char *cs = nl_langinfo (CODESET);
43929 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
43934 /* On Cygwin, avoid locale names without encoding suffix, because the
43935 locale_charset() function relies on the encoding suffix. Note that
43936 LC_ALL is set on the command line. */
43937 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
43939 /* Check whether in the abbreviation of the second month, the second
43940 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
43941 one byte long. This excludes the UTF-8 encoding. */
43942 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
43943 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
43944 /* Check whether the decimal separator is a comma.
43945 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
43946 are nl_langinfo(RADIXCHAR) are both ".". */
43947 if (localeconv () ->decimal_point[0] != ',') return 1;
43952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
43953 (eval $ac_link) 2>&5
43955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43956 test $ac_status = 0; } && test -s conftest$ac_exeext; then
43957 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
43958 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
43959 # configure script would override the LC_ALL setting. Likewise for
43960 # LC_CTYPE, which is also set at the beginning of the configure script.
43961 # Test for the usual locale name.
43962 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43963 gt_cv_locale_fr=fr_FR
43965 # Test for the locale name with explicit encoding suffix.
43966 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43967 gt_cv_locale_fr=fr_FR.ISO-8859-1
43969 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
43970 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43971 gt_cv_locale_fr=fr_FR.ISO8859-1
43973 # Test for the HP-UX locale name.
43974 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43975 gt_cv_locale_fr=fr_FR.iso88591
43977 # Test for the Solaris 7 locale name.
43978 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
43982 gt_cv_locale_fr=none
43992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
43993 $as_echo "$gt_cv_locale_fr" >&6; }
43994 LOCALE_FR=$gt_cv_locale_fr
43999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5
44000 $as_echo_n "checking for a turkish Unicode locale... " >&6; }
44001 if test "${gt_cv_locale_tr_utf8+set}" = set; then :
44002 $as_echo_n "(cached) " >&6
44005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44006 /* end confdefs.h. */
44008 #include <locale.h>
44010 #if HAVE_LANGINFO_CODESET
44011 # include <langinfo.h>
44013 #include <stdlib.h>
44014 #include <string.h>
44018 /* On BeOS, locales are not implemented in libc. Rather, libintl
44019 imitates locale dependent behaviour by looking at the environment
44020 variables, and all locales use the UTF-8 encoding. But BeOS does not
44021 implement the Turkish upper-/lowercase mappings. Therefore, let this
44022 program return 1 on BeOS. */
44023 /* Check whether the given locale name is recognized by the system. */
44024 if (setlocale (LC_ALL, "") == NULL) return 1;
44025 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44026 On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
44027 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44028 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44029 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44030 some unit tests fail. */
44031 #if HAVE_LANGINFO_CODESET
44033 const char *cs = nl_langinfo (CODESET);
44034 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44039 /* On Cygwin, avoid locale names without encoding suffix, because the
44040 locale_charset() function relies on the encoding suffix. Note that
44041 LC_ALL is set on the command line. */
44042 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44044 /* Check whether in the abbreviation of the eighth month, the second
44045 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
44046 two bytes long, with UTF-8 encoding. */
44047 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
44048 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44049 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
44051 /* Check whether the upper-/lowercase mappings are as expected for
44053 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
44054 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
44060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44061 (eval $ac_link) 2>&5
44063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44064 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44065 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44066 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44067 # configure script would override the LC_ALL setting. Likewise for
44068 # LC_CTYPE, which is also set at the beginning of the configure script.
44069 # Test for the usual locale name.
44070 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44071 gt_cv_locale_tr_utf8=tr_TR
44073 # Test for the locale name with explicit encoding suffix.
44074 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44075 gt_cv_locale_tr_utf8=tr_TR.UTF-8
44077 # Test for the Solaris 7 locale name.
44078 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44079 gt_cv_locale_tr_utf8=tr.UTF-8
44082 gt_cv_locale_tr_utf8=none
44087 gt_cv_locale_tr_utf8=none
44092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5
44093 $as_echo "$gt_cv_locale_tr_utf8" >&6; }
44094 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
44100 for ac_func in getpagesize
44102 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
44103 if test "x$ac_cv_func_getpagesize" = x""yes; then :
44104 cat >>confdefs.h <<_ACEOF
44105 #define HAVE_GETPAGESIZE 1
44111 if test $ac_cv_func_getpagesize = no; then
44113 for ac_header in OS.h
44115 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
44116 if test "x$ac_cv_header_OS_h" = x""yes; then :
44117 cat >>confdefs.h <<_ACEOF
44118 #define HAVE_OS_H 1
44125 if test $ac_cv_header_OS_h = yes; then
44128 for ac_header in sys/param.h
44130 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
44131 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
44132 cat >>confdefs.h <<_ACEOF
44133 #define HAVE_SYS_PARAM_H 1
44140 if test $ac_cv_header_sys_param_h = yes; then
44146 REPLACE_GETPAGESIZE=1
44155 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
44159 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
44160 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then :
44163 HAVE_DECL_GETPAGESIZE=0
44170 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
44174 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
44196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44197 $as_echo_n "checking for a traditional french locale... " >&6; }
44198 if test "${gt_cv_locale_fr+set}" = set; then :
44199 $as_echo_n "(cached) " >&6
44202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44203 /* end confdefs.h. */
44205 #include <locale.h>
44207 #if HAVE_LANGINFO_CODESET
44208 # include <langinfo.h>
44210 #include <stdlib.h>
44211 #include <string.h>
44215 /* Check whether the given locale name is recognized by the system. */
44216 if (setlocale (LC_ALL, "") == NULL) return 1;
44217 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44218 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44219 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44220 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44221 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44222 some unit tests fail. */
44223 #if HAVE_LANGINFO_CODESET
44225 const char *cs = nl_langinfo (CODESET);
44226 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44231 /* On Cygwin, avoid locale names without encoding suffix, because the
44232 locale_charset() function relies on the encoding suffix. Note that
44233 LC_ALL is set on the command line. */
44234 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44236 /* Check whether in the abbreviation of the second month, the second
44237 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44238 one byte long. This excludes the UTF-8 encoding. */
44239 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44240 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44241 /* Check whether the decimal separator is a comma.
44242 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44243 are nl_langinfo(RADIXCHAR) are both ".". */
44244 if (localeconv () ->decimal_point[0] != ',') return 1;
44249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44250 (eval $ac_link) 2>&5
44252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44253 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44254 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44255 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44256 # configure script would override the LC_ALL setting. Likewise for
44257 # LC_CTYPE, which is also set at the beginning of the configure script.
44258 # Test for the usual locale name.
44259 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44260 gt_cv_locale_fr=fr_FR
44262 # Test for the locale name with explicit encoding suffix.
44263 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44264 gt_cv_locale_fr=fr_FR.ISO-8859-1
44266 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44267 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44268 gt_cv_locale_fr=fr_FR.ISO8859-1
44270 # Test for the HP-UX locale name.
44271 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44272 gt_cv_locale_fr=fr_FR.iso88591
44274 # Test for the Solaris 7 locale name.
44275 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44279 gt_cv_locale_fr=none
44289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44290 $as_echo "$gt_cv_locale_fr" >&6; }
44291 LOCALE_FR=$gt_cv_locale_fr
44296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44297 $as_echo_n "checking for a french Unicode locale... " >&6; }
44298 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44299 $as_echo_n "(cached) " >&6
44302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44303 /* end confdefs.h. */
44305 #include <locale.h>
44307 #if HAVE_LANGINFO_CODESET
44308 # include <langinfo.h>
44310 #include <stdlib.h>
44311 #include <string.h>
44315 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44316 imitates locale dependent behaviour by looking at the environment
44317 variables, and all locales use the UTF-8 encoding. */
44318 #if !(defined __BEOS__ || defined __HAIKU__)
44319 /* Check whether the given locale name is recognized by the system. */
44320 if (setlocale (LC_ALL, "") == NULL) return 1;
44321 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44322 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44323 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44324 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44325 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44326 some unit tests fail. */
44327 # if HAVE_LANGINFO_CODESET
44329 const char *cs = nl_langinfo (CODESET);
44330 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44335 /* On Cygwin, avoid locale names without encoding suffix, because the
44336 locale_charset() function relies on the encoding suffix. Note that
44337 LC_ALL is set on the command line. */
44338 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44340 /* Check whether in the abbreviation of the second month, the second
44341 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44342 two bytes long, with UTF-8 encoding. */
44343 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44344 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44345 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44348 /* Check whether the decimal separator is a comma.
44349 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44350 are nl_langinfo(RADIXCHAR) are both ".". */
44351 if (localeconv () ->decimal_point[0] != ',') return 1;
44356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44357 (eval $ac_link) 2>&5
44359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44360 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44361 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44362 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44363 # configure script would override the LC_ALL setting. Likewise for
44364 # LC_CTYPE, which is also set at the beginning of the configure script.
44365 # Test for the usual locale name.
44366 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44367 gt_cv_locale_fr_utf8=fr_FR
44369 # Test for the locale name with explicit encoding suffix.
44370 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44371 gt_cv_locale_fr_utf8=fr_FR.UTF-8
44373 # Test for the Solaris 7 locale name.
44374 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44375 gt_cv_locale_fr_utf8=fr.UTF-8
44378 gt_cv_locale_fr_utf8=none
44386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44387 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44388 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
44395 $as_echo_n "checking for a traditional japanese locale... " >&6; }
44396 if test "${gt_cv_locale_ja+set}" = set; then :
44397 $as_echo_n "(cached) " >&6
44400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44401 /* end confdefs.h. */
44403 #include <locale.h>
44405 #if HAVE_LANGINFO_CODESET
44406 # include <langinfo.h>
44408 #include <stdlib.h>
44409 #include <string.h>
44415 /* Check whether the given locale name is recognized by the system. */
44416 if (setlocale (LC_ALL, "") == NULL) return 1;
44417 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44418 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44419 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44420 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44421 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44422 some unit tests fail. */
44423 #if HAVE_LANGINFO_CODESET
44425 const char *cs = nl_langinfo (CODESET);
44426 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44431 /* On Cygwin, avoid locale names without encoding suffix, because the
44432 locale_charset() function relies on the encoding suffix. Note that
44433 LC_ALL is set on the command line. */
44434 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44436 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
44437 on Cygwin 1.5.x. */
44438 if (MB_CUR_MAX == 1)
44440 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44441 This excludes the UTF-8 encoding. */
44442 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44443 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44444 for (p = buf; *p != '\0'; p++)
44445 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44452 (eval $ac_link) 2>&5
44454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44455 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44456 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44457 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44458 # configure script would override the LC_ALL setting. Likewise for
44459 # LC_CTYPE, which is also set at the beginning of the configure script.
44460 # Test for the AIX locale name.
44461 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44462 gt_cv_locale_ja=ja_JP
44464 # Test for the locale name with explicit encoding suffix.
44465 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44466 gt_cv_locale_ja=ja_JP.EUC-JP
44468 # Test for the HP-UX, OSF/1, NetBSD locale name.
44469 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44470 gt_cv_locale_ja=ja_JP.eucJP
44472 # Test for the IRIX, FreeBSD locale name.
44473 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44474 gt_cv_locale_ja=ja_JP.EUC
44476 # Test for the Solaris 7 locale name.
44477 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44480 # Special test for NetBSD 1.6.
44481 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
44482 gt_cv_locale_ja=ja_JP.eucJP
44485 gt_cv_locale_ja=none
44496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
44497 $as_echo "$gt_cv_locale_ja" >&6; }
44498 LOCALE_JA=$gt_cv_locale_ja
44504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
44505 $as_echo_n "checking for a transitional chinese locale... " >&6; }
44506 if test "${gt_cv_locale_zh_CN+set}" = set; then :
44507 $as_echo_n "(cached) " >&6
44510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44511 /* end confdefs.h. */
44513 #include <locale.h>
44514 #include <stdlib.h>
44516 #if HAVE_LANGINFO_CODESET
44517 # include <langinfo.h>
44519 #include <stdlib.h>
44520 #include <string.h>
44526 /* Check whether the given locale name is recognized by the system. */
44527 if (setlocale (LC_ALL, "") == NULL) return 1;
44528 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44529 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44530 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44531 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44532 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44533 some unit tests fail. */
44534 #if HAVE_LANGINFO_CODESET
44536 const char *cs = nl_langinfo (CODESET);
44537 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44542 /* On Cygwin, avoid locale names without encoding suffix, because the
44543 locale_charset() function relies on the encoding suffix. Note that
44544 LC_ALL is set on the command line. */
44545 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44547 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44548 This excludes the UTF-8 encoding. */
44549 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44550 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44551 for (p = buf; *p != '\0'; p++)
44552 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44554 /* Check whether a typical GB18030 multibyte sequence is recognized as a
44555 single wide character. This excludes the GB2312 and GBK encodings. */
44556 if (mblen ("\203\062\332\066", 5) != 4)
44562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44563 (eval $ac_link) 2>&5
44565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44566 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44567 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44568 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44569 # configure script would override the LC_ALL setting. Likewise for
44570 # LC_CTYPE, which is also set at the beginning of the configure script.
44571 # Test for the locale name without encoding suffix.
44572 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44573 gt_cv_locale_zh_CN=zh_CN
44575 # Test for the locale name with explicit encoding suffix.
44576 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44577 gt_cv_locale_zh_CN=zh_CN.GB18030
44580 gt_cv_locale_zh_CN=none
44584 # If there was a link error, due to mblen(), the system is so old that
44585 # it certainly doesn't have a chinese locale.
44586 gt_cv_locale_zh_CN=none
44591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
44592 $as_echo "$gt_cv_locale_zh_CN" >&6; }
44593 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
44598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44599 $as_echo_n "checking for a french Unicode locale... " >&6; }
44600 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44601 $as_echo_n "(cached) " >&6
44604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44605 /* end confdefs.h. */
44607 #include <locale.h>
44609 #if HAVE_LANGINFO_CODESET
44610 # include <langinfo.h>
44612 #include <stdlib.h>
44613 #include <string.h>
44617 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44618 imitates locale dependent behaviour by looking at the environment
44619 variables, and all locales use the UTF-8 encoding. */
44620 #if !(defined __BEOS__ || defined __HAIKU__)
44621 /* Check whether the given locale name is recognized by the system. */
44622 if (setlocale (LC_ALL, "") == NULL) return 1;
44623 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44624 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44625 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44626 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44627 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44628 some unit tests fail. */
44629 # if HAVE_LANGINFO_CODESET
44631 const char *cs = nl_langinfo (CODESET);
44632 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44637 /* On Cygwin, avoid locale names without encoding suffix, because the
44638 locale_charset() function relies on the encoding suffix. Note that
44639 LC_ALL is set on the command line. */
44640 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44642 /* Check whether in the abbreviation of the second month, the second
44643 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44644 two bytes long, with UTF-8 encoding. */
44645 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44646 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44647 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44650 /* Check whether the decimal separator is a comma.
44651 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44652 are nl_langinfo(RADIXCHAR) are both ".". */
44653 if (localeconv () ->decimal_point[0] != ',') return 1;
44658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44659 (eval $ac_link) 2>&5
44661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44662 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44663 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44664 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44665 # configure script would override the LC_ALL setting. Likewise for
44666 # LC_CTYPE, which is also set at the beginning of the configure script.
44667 # Test for the usual locale name.
44668 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44669 gt_cv_locale_fr_utf8=fr_FR
44671 # Test for the locale name with explicit encoding suffix.
44672 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44673 gt_cv_locale_fr_utf8=fr_FR.UTF-8
44675 # Test for the Solaris 7 locale name.
44676 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44677 gt_cv_locale_fr_utf8=fr.UTF-8
44680 gt_cv_locale_fr_utf8=none
44688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44689 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44690 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
44697 $as_echo_n "checking for a traditional french locale... " >&6; }
44698 if test "${gt_cv_locale_fr+set}" = set; then :
44699 $as_echo_n "(cached) " >&6
44702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44703 /* end confdefs.h. */
44705 #include <locale.h>
44707 #if HAVE_LANGINFO_CODESET
44708 # include <langinfo.h>
44710 #include <stdlib.h>
44711 #include <string.h>
44715 /* Check whether the given locale name is recognized by the system. */
44716 if (setlocale (LC_ALL, "") == NULL) return 1;
44717 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44718 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44719 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44720 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44721 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44722 some unit tests fail. */
44723 #if HAVE_LANGINFO_CODESET
44725 const char *cs = nl_langinfo (CODESET);
44726 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44731 /* On Cygwin, avoid locale names without encoding suffix, because the
44732 locale_charset() function relies on the encoding suffix. Note that
44733 LC_ALL is set on the command line. */
44734 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44736 /* Check whether in the abbreviation of the second month, the second
44737 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
44738 one byte long. This excludes the UTF-8 encoding. */
44739 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44740 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
44741 /* Check whether the decimal separator is a comma.
44742 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44743 are nl_langinfo(RADIXCHAR) are both ".". */
44744 if (localeconv () ->decimal_point[0] != ',') return 1;
44749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44750 (eval $ac_link) 2>&5
44752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44753 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44754 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44755 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44756 # configure script would override the LC_ALL setting. Likewise for
44757 # LC_CTYPE, which is also set at the beginning of the configure script.
44758 # Test for the usual locale name.
44759 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44760 gt_cv_locale_fr=fr_FR
44762 # Test for the locale name with explicit encoding suffix.
44763 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44764 gt_cv_locale_fr=fr_FR.ISO-8859-1
44766 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
44767 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44768 gt_cv_locale_fr=fr_FR.ISO8859-1
44770 # Test for the HP-UX locale name.
44771 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44772 gt_cv_locale_fr=fr_FR.iso88591
44774 # Test for the Solaris 7 locale name.
44775 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44779 gt_cv_locale_fr=none
44789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
44790 $as_echo "$gt_cv_locale_fr" >&6; }
44791 LOCALE_FR=$gt_cv_locale_fr
44796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
44797 $as_echo_n "checking for a french Unicode locale... " >&6; }
44798 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
44799 $as_echo_n "(cached) " >&6
44802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44803 /* end confdefs.h. */
44805 #include <locale.h>
44807 #if HAVE_LANGINFO_CODESET
44808 # include <langinfo.h>
44810 #include <stdlib.h>
44811 #include <string.h>
44815 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
44816 imitates locale dependent behaviour by looking at the environment
44817 variables, and all locales use the UTF-8 encoding. */
44818 #if !(defined __BEOS__ || defined __HAIKU__)
44819 /* Check whether the given locale name is recognized by the system. */
44820 if (setlocale (LC_ALL, "") == NULL) return 1;
44821 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44822 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44823 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44824 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44825 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44826 some unit tests fail. */
44827 # if HAVE_LANGINFO_CODESET
44829 const char *cs = nl_langinfo (CODESET);
44830 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44835 /* On Cygwin, avoid locale names without encoding suffix, because the
44836 locale_charset() function relies on the encoding suffix. Note that
44837 LC_ALL is set on the command line. */
44838 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44840 /* Check whether in the abbreviation of the second month, the second
44841 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
44842 two bytes long, with UTF-8 encoding. */
44843 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44844 if (strftime (buf, sizeof (buf), "%b", &t) < 4
44845 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
44848 /* Check whether the decimal separator is a comma.
44849 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
44850 are nl_langinfo(RADIXCHAR) are both ".". */
44851 if (localeconv () ->decimal_point[0] != ',') return 1;
44856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44857 (eval $ac_link) 2>&5
44859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44860 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44861 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44862 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44863 # configure script would override the LC_ALL setting. Likewise for
44864 # LC_CTYPE, which is also set at the beginning of the configure script.
44865 # Test for the usual locale name.
44866 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44867 gt_cv_locale_fr_utf8=fr_FR
44869 # Test for the locale name with explicit encoding suffix.
44870 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44871 gt_cv_locale_fr_utf8=fr_FR.UTF-8
44873 # Test for the Solaris 7 locale name.
44874 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44875 gt_cv_locale_fr_utf8=fr.UTF-8
44878 gt_cv_locale_fr_utf8=none
44886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
44887 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
44888 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
44894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
44895 $as_echo_n "checking for a traditional japanese locale... " >&6; }
44896 if test "${gt_cv_locale_ja+set}" = set; then :
44897 $as_echo_n "(cached) " >&6
44900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44901 /* end confdefs.h. */
44903 #include <locale.h>
44905 #if HAVE_LANGINFO_CODESET
44906 # include <langinfo.h>
44908 #include <stdlib.h>
44909 #include <string.h>
44915 /* Check whether the given locale name is recognized by the system. */
44916 if (setlocale (LC_ALL, "") == NULL) return 1;
44917 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
44918 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
44919 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
44920 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
44921 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
44922 some unit tests fail. */
44923 #if HAVE_LANGINFO_CODESET
44925 const char *cs = nl_langinfo (CODESET);
44926 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
44931 /* On Cygwin, avoid locale names without encoding suffix, because the
44932 locale_charset() function relies on the encoding suffix. Note that
44933 LC_ALL is set on the command line. */
44934 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
44936 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
44937 on Cygwin 1.5.x. */
44938 if (MB_CUR_MAX == 1)
44940 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
44941 This excludes the UTF-8 encoding. */
44942 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
44943 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
44944 for (p = buf; *p != '\0'; p++)
44945 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
44951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
44952 (eval $ac_link) 2>&5
44954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44955 test $ac_status = 0; } && test -s conftest$ac_exeext; then
44956 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
44957 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
44958 # configure script would override the LC_ALL setting. Likewise for
44959 # LC_CTYPE, which is also set at the beginning of the configure script.
44960 # Test for the AIX locale name.
44961 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44962 gt_cv_locale_ja=ja_JP
44964 # Test for the locale name with explicit encoding suffix.
44965 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44966 gt_cv_locale_ja=ja_JP.EUC-JP
44968 # Test for the HP-UX, OSF/1, NetBSD locale name.
44969 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44970 gt_cv_locale_ja=ja_JP.eucJP
44972 # Test for the IRIX, FreeBSD locale name.
44973 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44974 gt_cv_locale_ja=ja_JP.EUC
44976 # Test for the Solaris 7 locale name.
44977 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
44980 # Special test for NetBSD 1.6.
44981 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
44982 gt_cv_locale_ja=ja_JP.eucJP
44985 gt_cv_locale_ja=none
44996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
44997 $as_echo "$gt_cv_locale_ja" >&6; }
44998 LOCALE_JA=$gt_cv_locale_ja
45004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
45005 $as_echo_n "checking for a transitional chinese locale... " >&6; }
45006 if test "${gt_cv_locale_zh_CN+set}" = set; then :
45007 $as_echo_n "(cached) " >&6
45010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45011 /* end confdefs.h. */
45013 #include <locale.h>
45014 #include <stdlib.h>
45016 #if HAVE_LANGINFO_CODESET
45017 # include <langinfo.h>
45019 #include <stdlib.h>
45020 #include <string.h>
45026 /* Check whether the given locale name is recognized by the system. */
45027 if (setlocale (LC_ALL, "") == NULL) return 1;
45028 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45029 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45030 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45031 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45032 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45033 some unit tests fail. */
45034 #if HAVE_LANGINFO_CODESET
45036 const char *cs = nl_langinfo (CODESET);
45037 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45042 /* On Cygwin, avoid locale names without encoding suffix, because the
45043 locale_charset() function relies on the encoding suffix. Note that
45044 LC_ALL is set on the command line. */
45045 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45047 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
45048 This excludes the UTF-8 encoding. */
45049 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45050 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
45051 for (p = buf; *p != '\0'; p++)
45052 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
45054 /* Check whether a typical GB18030 multibyte sequence is recognized as a
45055 single wide character. This excludes the GB2312 and GBK encodings. */
45056 if (mblen ("\203\062\332\066", 5) != 4)
45062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45063 (eval $ac_link) 2>&5
45065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45066 test $ac_status = 0; } && test -s conftest$ac_exeext; then
45067 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45068 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45069 # configure script would override the LC_ALL setting. Likewise for
45070 # LC_CTYPE, which is also set at the beginning of the configure script.
45071 # Test for the locale name without encoding suffix.
45072 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45073 gt_cv_locale_zh_CN=zh_CN
45075 # Test for the locale name with explicit encoding suffix.
45076 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45077 gt_cv_locale_zh_CN=zh_CN.GB18030
45080 gt_cv_locale_zh_CN=none
45084 # If there was a link error, due to mblen(), the system is so old that
45085 # it certainly doesn't have a chinese locale.
45086 gt_cv_locale_zh_CN=none
45091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
45092 $as_echo "$gt_cv_locale_zh_CN" >&6; }
45093 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
45098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
45099 $as_echo_n "checking for a french Unicode locale... " >&6; }
45100 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
45101 $as_echo_n "(cached) " >&6
45104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45105 /* end confdefs.h. */
45107 #include <locale.h>
45109 #if HAVE_LANGINFO_CODESET
45110 # include <langinfo.h>
45112 #include <stdlib.h>
45113 #include <string.h>
45117 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
45118 imitates locale dependent behaviour by looking at the environment
45119 variables, and all locales use the UTF-8 encoding. */
45120 #if !(defined __BEOS__ || defined __HAIKU__)
45121 /* Check whether the given locale name is recognized by the system. */
45122 if (setlocale (LC_ALL, "") == NULL) return 1;
45123 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45124 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45125 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45126 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45127 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45128 some unit tests fail. */
45129 # if HAVE_LANGINFO_CODESET
45131 const char *cs = nl_langinfo (CODESET);
45132 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45137 /* On Cygwin, avoid locale names without encoding suffix, because the
45138 locale_charset() function relies on the encoding suffix. Note that
45139 LC_ALL is set on the command line. */
45140 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45142 /* Check whether in the abbreviation of the second month, the second
45143 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
45144 two bytes long, with UTF-8 encoding. */
45145 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45146 if (strftime (buf, sizeof (buf), "%b", &t) < 4
45147 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
45150 /* Check whether the decimal separator is a comma.
45151 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
45152 are nl_langinfo(RADIXCHAR) are both ".". */
45153 if (localeconv () ->decimal_point[0] != ',') return 1;
45158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45159 (eval $ac_link) 2>&5
45161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45162 test $ac_status = 0; } && test -s conftest$ac_exeext; then
45163 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45164 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45165 # configure script would override the LC_ALL setting. Likewise for
45166 # LC_CTYPE, which is also set at the beginning of the configure script.
45167 # Test for the usual locale name.
45168 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45169 gt_cv_locale_fr_utf8=fr_FR
45171 # Test for the locale name with explicit encoding suffix.
45172 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45173 gt_cv_locale_fr_utf8=fr_FR.UTF-8
45175 # Test for the Solaris 7 locale name.
45176 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45177 gt_cv_locale_fr_utf8=fr.UTF-8
45180 gt_cv_locale_fr_utf8=none
45188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
45189 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
45190 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
45196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
45197 $as_echo_n "checking for a transitional chinese locale... " >&6; }
45198 if test "${gt_cv_locale_zh_CN+set}" = set; then :
45199 $as_echo_n "(cached) " >&6
45202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45203 /* end confdefs.h. */
45205 #include <locale.h>
45206 #include <stdlib.h>
45208 #if HAVE_LANGINFO_CODESET
45209 # include <langinfo.h>
45211 #include <stdlib.h>
45212 #include <string.h>
45218 /* Check whether the given locale name is recognized by the system. */
45219 if (setlocale (LC_ALL, "") == NULL) return 1;
45220 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
45221 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
45222 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
45223 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
45224 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
45225 some unit tests fail. */
45226 #if HAVE_LANGINFO_CODESET
45228 const char *cs = nl_langinfo (CODESET);
45229 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
45234 /* On Cygwin, avoid locale names without encoding suffix, because the
45235 locale_charset() function relies on the encoding suffix. Note that
45236 LC_ALL is set on the command line. */
45237 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
45239 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
45240 This excludes the UTF-8 encoding. */
45241 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
45242 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
45243 for (p = buf; *p != '\0'; p++)
45244 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
45246 /* Check whether a typical GB18030 multibyte sequence is recognized as a
45247 single wide character. This excludes the GB2312 and GBK encodings. */
45248 if (mblen ("\203\062\332\066", 5) != 4)
45254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
45255 (eval $ac_link) 2>&5
45257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45258 test $ac_status = 0; } && test -s conftest$ac_exeext; then
45259 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
45260 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
45261 # configure script would override the LC_ALL setting. Likewise for
45262 # LC_CTYPE, which is also set at the beginning of the configure script.
45263 # Test for the locale name without encoding suffix.
45264 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45265 gt_cv_locale_zh_CN=zh_CN
45267 # Test for the locale name with explicit encoding suffix.
45268 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
45269 gt_cv_locale_zh_CN=zh_CN.GB18030
45272 gt_cv_locale_zh_CN=none
45276 # If there was a link error, due to mblen(), the system is so old that
45277 # it certainly doesn't have a chinese locale.
45278 gt_cv_locale_zh_CN=none
45283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
45284 $as_echo "$gt_cv_locale_zh_CN" >&6; }
45285 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
45288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45289 /* end confdefs.h. */
45291 #if defined _MSC_VER || defined __MINGW32__
45296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45297 $EGREP "notposix" >/dev/null 2>&1; then :
45298 posix_spawn_ported=no
45300 posix_spawn_ported=yes
45304 if test $posix_spawn_ported = yes; then
45305 POSIX_SPAWN_PORTED_TRUE=
45306 POSIX_SPAWN_PORTED_FALSE='#'
45308 POSIX_SPAWN_PORTED_TRUE='#'
45309 POSIX_SPAWN_PORTED_FALSE=
45314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
45315 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
45316 if test "${gl_cv_func_svid_putenv+set}" = set; then :
45317 $as_echo_n "(cached) " >&6
45319 if test "$cross_compiling" = yes; then :
45320 gl_cv_func_svid_putenv=no
45322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45323 /* end confdefs.h. */
45324 $ac_includes_default
45329 /* Put it in env. */
45330 if (putenv ("CONFTEST_putenv=val"))
45333 /* Try to remove it. */
45334 if (putenv ("CONFTEST_putenv"))
45337 /* Make sure it was deleted. */
45338 if (getenv ("CONFTEST_putenv") != 0)
45347 if ac_fn_c_try_run "$LINENO"; then :
45348 gl_cv_func_svid_putenv=yes
45350 gl_cv_func_svid_putenv=no
45352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45353 conftest.$ac_objext conftest.beam conftest.$ac_ext
45358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
45359 $as_echo "$gl_cv_func_svid_putenv" >&6; }
45360 if test $gl_cv_func_svid_putenv = no; then
45370 gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext"
45377 GNULIB_PUTENV=$gl_module_indicator_condition
45381 $as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h
45394 gltests_LIBOBJS="$gltests_LIBOBJS read-file.$ac_objext"
45399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
45400 $as_echo_n "checking for wchar_t... " >&6; }
45401 if test "${gt_cv_c_wchar_t+set}" = set; then :
45402 $as_echo_n "(cached) " >&6
45404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45405 /* end confdefs.h. */
45406 #include <stddef.h>
45407 wchar_t foo = (wchar_t)'\0';
45416 if ac_fn_c_try_compile "$LINENO"; then :
45417 gt_cv_c_wchar_t=yes
45421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
45424 $as_echo "$gt_cv_c_wchar_t" >&6; }
45425 if test $gt_cv_c_wchar_t = yes; then
45427 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
45432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
45433 $as_echo_n "checking for wint_t... " >&6; }
45434 if test "${gt_cv_c_wint_t+set}" = set; then :
45435 $as_echo_n "(cached) " >&6
45437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45438 /* end confdefs.h. */
45440 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45442 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45443 before <wchar.h>. */
45444 #include <stddef.h>
45448 wint_t foo = (wchar_t)'\0';
45457 if ac_fn_c_try_compile "$LINENO"; then :
45462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
45465 $as_echo "$gt_cv_c_wint_t" >&6; }
45466 if test $gt_cv_c_wint_t = yes; then
45468 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
45485 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
45486 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
45487 # irrelevant for anonymous mappings.
45488 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
45489 if test "x$ac_cv_func_mmap" = x""yes; then :
45496 # Try to allow MAP_ANONYMOUS.
45497 gl_have_mmap_anonymous=no
45498 if test $gl_have_mmap = yes; then
45499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
45500 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
45501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45502 /* end confdefs.h. */
45504 #include <sys/mman.h>
45505 #ifdef MAP_ANONYMOUS
45506 I cant identify this map.
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45512 gl_have_mmap_anonymous=yes
45516 if test $gl_have_mmap_anonymous != yes; then
45517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45518 /* end confdefs.h. */
45520 #include <sys/mman.h>
45522 I cant identify this map.
45526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45527 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45529 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
45531 gl_have_mmap_anonymous=yes
45536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
45537 $as_echo "$gl_have_mmap_anonymous" >&6; }
45538 if test $gl_have_mmap_anonymous = yes; then
45540 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
45568 if test $ac_cv_func_symlink = no; then
45578 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
45581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
45582 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
45583 if test "${gl_cv_func_symlink_works+set}" = set; then :
45584 $as_echo_n "(cached) " >&6
45586 if test "$cross_compiling" = yes; then :
45587 gl_cv_func_symlink_works="guessing no"
45589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45590 /* end confdefs.h. */
45591 #include <unistd.h>
45596 if (!symlink ("a", "conftest.link/")) return 1;
45597 if (symlink ("conftest.f", "conftest.lnk2")) return 2;
45598 if (!symlink ("a", "conftest.lnk2/")) return 3;
45603 if ac_fn_c_try_run "$LINENO"; then :
45604 gl_cv_func_symlink_works=yes
45606 gl_cv_func_symlink_works=no
45608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45609 conftest.$ac_objext conftest.beam conftest.$ac_ext
45612 rm -f conftest.f conftest.link conftest.lnk2
45614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
45615 $as_echo "$gl_cv_func_symlink_works" >&6; }
45616 if test "$gl_cv_func_symlink_works" != yes; then
45626 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext"
45634 GNULIB_SYMLINK=$gl_module_indicator_condition
45638 $as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h
45653 if test $gl_threads_api = posix; then
45654 gl_save_LIBS="$LIBS"
45655 LIBS="$LIBS $LIBMULTITHREAD"
45656 for ac_func in pthread_atfork
45658 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork"
45659 if test "x$ac_cv_func_pthread_atfork" = x""yes; then :
45660 cat >>confdefs.h <<_ACEOF
45661 #define HAVE_PTHREAD_ATFORK 1
45667 LIBS="$gl_save_LIBS"
45672 if { test "$HAVE_LIBUNISTRING" != yes \
45677 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
45678 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
45679 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
45680 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
45681 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
45691 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE=
45692 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#'
45694 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#'
45695 LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE=
45705 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
45706 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
45707 # irrelevant for anonymous mappings.
45708 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
45709 if test "x$ac_cv_func_mmap" = x""yes; then :
45716 # Try to allow MAP_ANONYMOUS.
45717 gl_have_mmap_anonymous=no
45718 if test $gl_have_mmap = yes; then
45719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
45720 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
45721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45722 /* end confdefs.h. */
45724 #include <sys/mman.h>
45725 #ifdef MAP_ANONYMOUS
45726 I cant identify this map.
45730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45731 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45732 gl_have_mmap_anonymous=yes
45736 if test $gl_have_mmap_anonymous != yes; then
45737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45738 /* end confdefs.h. */
45740 #include <sys/mman.h>
45742 I cant identify this map.
45746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45747 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
45749 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
45751 gl_have_mmap_anonymous=yes
45756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
45757 $as_echo "$gl_have_mmap_anonymous" >&6; }
45758 if test $gl_have_mmap_anonymous = yes; then
45760 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
45781 if { test "$HAVE_LIBUNISTRING" != yes \
45786 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
45787 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
45788 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
45789 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
45790 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
45800 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE=
45801 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#'
45803 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#'
45804 LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE=
45818 if test $ac_cv_func_wctob = no; then
45831 gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
45840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5
45841 $as_echo_n "checking whether wctob works... " >&6; }
45842 if test "${gl_cv_func_wctob_works+set}" = set; then :
45843 $as_echo_n "(cached) " >&6
45847 # Guess no on Solaris <= 9 and Cygwin.
45848 solaris2.[1-9] | solaris2.[1-9].* | cygwin*)
45849 gl_cv_func_wctob_works="guessing no" ;;
45850 # Guess yes otherwise.
45851 *) gl_cv_func_wctob_works="guessing yes" ;;
45855 if test "$cross_compiling" = yes; then :
45858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45859 /* end confdefs.h. */
45861 #include <locale.h>
45864 register long global __asm__ ("%ebx");
45868 setlocale (LC_ALL, "en_US.UTF-8");
45870 global = 0x12345678;
45871 if (wctob (0x00FC) != -1)
45873 if (global != 0x12345678)
45878 if ac_fn_c_try_run "$LINENO"; then :
45881 gl_cv_func_wctob_works=no
45883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45884 conftest.$ac_objext conftest.beam conftest.$ac_ext
45889 if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then
45890 if test "$cross_compiling" = yes; then :
45893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45894 /* end confdefs.h. */
45896 #include <locale.h>
45897 #include <string.h>
45901 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
45905 if (mbtowc (&wc, "\374", 1) == 1)
45906 if (wctob (wc) != (unsigned char) '\374')
45912 if ac_fn_c_try_run "$LINENO"; then :
45913 gl_cv_func_wctob_works=yes
45915 gl_cv_func_wctob_works=no
45917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45918 conftest.$ac_objext conftest.beam conftest.$ac_ext
45924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5
45925 $as_echo "$gl_cv_func_wctob_works" >&6; }
45926 case "$gl_cv_func_wctob_works" in
45928 *) REPLACE_WCTOB=1 ;;
45930 if test $REPLACE_WCTOB = 1; then
45942 gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext"
45949 ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" "
45950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45952 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45953 before <wchar.h>. */
45954 #include <stddef.h>
45960 if test "x$ac_cv_have_decl_wctob" = x""yes; then :
45966 cat >>confdefs.h <<_ACEOF
45967 #define HAVE_DECL_WCTOB $ac_have_decl
45970 if test $ac_cv_have_decl_wctob != yes; then
45982 GNULIB_WCTOB=$gl_module_indicator_condition
45986 $as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h
45993 if test $gl_threads_api = posix; then
45994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
45995 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
45996 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
45997 $as_echo_n "(cached) " >&6
45999 ac_check_lib_save_LIBS=$LIBS
46001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46002 /* end confdefs.h. */
46004 /* Override any GCC internal prototype to avoid an error.
46005 Use char because int might match the return type of a GCC
46006 builtin and then its argument prototype would still apply. */
46010 char sched_yield ();
46014 return sched_yield ();
46019 if ac_fn_c_try_link "$LINENO"; then :
46020 ac_cv_lib_rt_sched_yield=yes
46022 ac_cv_lib_rt_sched_yield=no
46024 rm -f core conftest.err conftest.$ac_objext \
46025 conftest$ac_exeext conftest.$ac_ext
46026 LIBS=$ac_check_lib_save_LIBS
46028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
46029 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
46030 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
46033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
46034 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
46035 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
46036 $as_echo_n "(cached) " >&6
46038 ac_check_lib_save_LIBS=$LIBS
46039 LIBS="-lposix4 $LIBS"
46040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46041 /* end confdefs.h. */
46043 /* Override any GCC internal prototype to avoid an error.
46044 Use char because int might match the return type of a GCC
46045 builtin and then its argument prototype would still apply. */
46049 char sched_yield ();
46053 return sched_yield ();
46058 if ac_fn_c_try_link "$LINENO"; then :
46059 ac_cv_lib_posix4_sched_yield=yes
46061 ac_cv_lib_posix4_sched_yield=no
46063 rm -f core conftest.err conftest.$ac_objext \
46064 conftest$ac_exeext conftest.$ac_ext
46065 LIBS=$ac_check_lib_save_LIBS
46067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
46068 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
46069 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
46088 LIBTESTS_LIBDEPS="$gltests_libdeps"
46092 GNULIB_NL_LANGINFO=0;
46093 HAVE_NL_LANGINFO=1;
46094 REPLACE_NL_LANGINFO=0;
46118 GL_COND_LIBTOOL_TRUE=
46119 GL_COND_LIBTOOL_FALSE='#'
46121 GL_COND_LIBTOOL_TRUE='#'
46122 GL_COND_LIBTOOL_FALSE=
46125 gl_cond_libtool=false
46128 gl_m4_base='libgrep/gnulib-m4'
46138 gl_source_base='libgrep'
46139 # Code from module btowc:
46152 if test $ac_cv_func_btowc = no; then
46159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
46160 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
46161 if test "${gl_cv_func_btowc_nul+set}" = set; then :
46162 $as_echo_n "(cached) " >&6
46165 if test "$cross_compiling" = yes; then :
46168 # Guess no on Cygwin.
46169 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
46170 # Guess yes otherwise.
46171 *) gl_cv_func_btowc_nul="guessing yes" ;;
46175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46176 /* end confdefs.h. */
46179 #include <string.h>
46183 if (btowc ('\0') != 0)
46188 if ac_fn_c_try_run "$LINENO"; then :
46189 gl_cv_func_btowc_nul=yes
46191 gl_cv_func_btowc_nul=no
46193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46194 conftest.$ac_objext conftest.beam conftest.$ac_ext
46199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
46200 $as_echo "$gl_cv_func_btowc_nul" >&6; }
46202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
46203 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
46204 if test "${gl_cv_func_btowc_eof+set}" = set; then :
46205 $as_echo_n "(cached) " >&6
46209 # Guess no on IRIX.
46210 irix*) gl_cv_func_btowc_eof="guessing no" ;;
46211 # Guess yes otherwise.
46212 *) gl_cv_func_btowc_eof="guessing yes" ;;
46214 if test $LOCALE_FR != none; then
46215 if test "$cross_compiling" = yes; then :
46218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46219 /* end confdefs.h. */
46221 #include <locale.h>
46223 #include <string.h>
46227 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
46229 if (btowc (EOF) != WEOF)
46235 if ac_fn_c_try_run "$LINENO"; then :
46236 gl_cv_func_btowc_eof=yes
46238 gl_cv_func_btowc_eof=no
46240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46241 conftest.$ac_objext conftest.beam conftest.$ac_ext
46247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
46248 $as_echo "$gl_cv_func_btowc_eof" >&6; }
46250 case "$gl_cv_func_btowc_nul" in
46252 *) REPLACE_BTOWC=1 ;;
46254 case "$gl_cv_func_btowc_eof" in
46256 *) REPLACE_BTOWC=1 ;;
46259 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
46271 grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext"
46285 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
46289 # Code from module c++defs:
46290 # Code from module langinfo:
46308 if test $gl_cv_have_include_next = yes; then
46309 gl_cv_next_langinfo_h='<'langinfo.h'>'
46311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
46312 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
46313 if test "${gl_cv_next_langinfo_h+set}" = set; then :
46314 $as_echo_n "(cached) " >&6
46317 if test $ac_cv_header_langinfo_h = yes; then
46318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46319 /* end confdefs.h. */
46320 #include <langinfo.h>
46324 aix*) gl_absname_cpp="$ac_cpp -C" ;;
46325 *) gl_absname_cpp="$ac_cpp" ;;
46327 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
46328 sed -n '\#/langinfo.h#{
46329 s#.*"\(.*/langinfo.h\)".*#\1#
46335 gl_cv_next_langinfo_h='<'langinfo.h'>'
46339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
46340 $as_echo "$gl_cv_next_langinfo_h" >&6; }
46342 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
46344 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
46345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
46346 gl_next_as_first_directive='<'langinfo.h'>'
46348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
46349 gl_next_as_first_directive=$gl_cv_next_langinfo_h
46351 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
46356 HAVE_LANGINFO_CODESET=0
46357 HAVE_LANGINFO_ERA=0
46365 if test $ac_cv_header_langinfo_h = yes; then
46367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
46368 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
46369 if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
46370 $as_echo_n "(cached) " >&6
46372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46373 /* end confdefs.h. */
46374 #include <langinfo.h>
46385 if ac_fn_c_try_compile "$LINENO"; then :
46386 gl_cv_header_langinfo_codeset=yes
46388 gl_cv_header_langinfo_codeset=no
46390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
46394 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
46395 if test $gl_cv_header_langinfo_codeset = yes; then
46396 HAVE_LANGINFO_CODESET=1
46398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
46399 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
46400 if test "${gl_cv_header_langinfo_era+set}" = set; then :
46401 $as_echo_n "(cached) " >&6
46403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46404 /* end confdefs.h. */
46405 #include <langinfo.h>
46416 if ac_fn_c_try_compile "$LINENO"; then :
46417 gl_cv_header_langinfo_era=yes
46419 gl_cv_header_langinfo_era=no
46421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
46425 $as_echo "$gl_cv_header_langinfo_era" >&6; }
46426 if test $gl_cv_header_langinfo_era = yes; then
46427 HAVE_LANGINFO_ERA=1
46437 for gl_func in nl_langinfo; do
46438 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
46439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
46440 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
46441 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
46442 $as_echo_n "(cached) " >&6
46444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46445 /* end confdefs.h. */
46446 #include <langinfo.h>
46457 if ac_fn_c_try_compile "$LINENO"; then :
46458 eval "$as_gl_Symbol=yes"
46460 eval "$as_gl_Symbol=no"
46462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46464 eval ac_res=\$$as_gl_Symbol
46465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46466 $as_echo "$ac_res" >&6; }
46467 eval as_val=\$$as_gl_Symbol
46468 if test "x$as_val" = x""yes; then :
46469 cat >>confdefs.h <<_ACEOF
46470 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
46473 eval ac_cv_have_decl_$gl_func=yes
46478 # Code from module nl_langinfo:
46489 if test $ac_cv_func_nl_langinfo = yes; then
46490 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
46493 REPLACE_NL_LANGINFO=1
46495 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
46505 grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
46518 grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext"
46525 GNULIB_NL_LANGINFO=1
46529 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
46533 # Code from module regex:
46544 # Check whether --with-included-regex was given.
46545 if test "${with_included_regex+set}" = set; then :
46546 withval=$with_included_regex;
46550 case $with_included_regex in #(
46551 yes|no) ac_use_included_regex=$with_included_regex
46554 # If the system regex support is good enough that it passes the
46555 # following run test, then default to *not* using the included regex.c.
46556 # If cross compiling, assume the test would fail and use the included
46558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
46559 $as_echo_n "checking for working re_compile_pattern... " >&6; }
46560 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
46561 $as_echo_n "(cached) " >&6
46563 if test "$cross_compiling" = yes; then :
46564 gl_cv_func_re_compile_pattern_working=no
46566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46567 /* end confdefs.h. */
46568 $ac_includes_default
46570 #include <locale.h>
46572 #include <limits.h>
46578 static struct re_pattern_buffer regex;
46579 unsigned char folded_chars[UCHAR_MAX + 1];
46582 struct re_registers regs;
46585 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
46586 This test needs valgrind to catch the bug on Debian
46587 GNU/Linux 3.1 x86, but it might catch the bug better
46588 on other platforms and it shouldn't hurt to try the
46590 if (setlocale (LC_ALL, "en_US.UTF-8"))
46592 static char const pat[] = "insert into";
46593 static char const data[] =
46594 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
46595 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
46597 memset (®ex, 0, sizeof regex);
46598 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
46601 if (re_search (®ex, data, sizeof data - 1,
46602 0, sizeof data - 1, ®s)
46605 if (! setlocale (LC_ALL, "C"))
46610 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
46611 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
46612 memset (®ex, 0, sizeof regex);
46613 s = re_compile_pattern ("a[^x]b", 6, ®ex);
46617 /* This should fail, but succeeds for glibc-2.5. */
46618 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
46621 /* This regular expression is from Spencer ere test number 75
46623 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
46624 memset (®ex, 0, sizeof regex);
46625 for (i = 0; i <= UCHAR_MAX; i++)
46626 folded_chars[i] = i;
46627 regex.translate = folded_chars;
46628 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
46629 /* This should fail with _Invalid character class name_ error. */
46633 /* Ensure that [b-a] is diagnosed as invalid, when
46634 using RE_NO_EMPTY_RANGES. */
46635 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
46636 memset (®ex, 0, sizeof regex);
46637 s = re_compile_pattern ("a[b-a]", 6, ®ex);
46641 /* This should succeed, but does not for glibc-2.1.3. */
46642 memset (®ex, 0, sizeof regex);
46643 s = re_compile_pattern ("{1", 2, ®ex);
46648 /* The following example is derived from a problem report
46649 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
46650 memset (®ex, 0, sizeof regex);
46651 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
46655 /* This should match, but does not for glibc-2.2.1. */
46656 if (re_match (®ex, "an", 2, 0, ®s) != 2)
46659 memset (®ex, 0, sizeof regex);
46660 s = re_compile_pattern ("x", 1, ®ex);
46664 /* glibc-2.2.93 does not work with a negative RANGE argument. */
46665 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
46668 /* The version of regex.c in older versions of gnulib
46669 ignored RE_ICASE. Detect that problem too. */
46670 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
46671 memset (®ex, 0, sizeof regex);
46672 s = re_compile_pattern ("x", 1, ®ex);
46676 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
46679 /* Catch a bug reported by Vin Shelton in
46680 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
46682 re_set_syntax (RE_SYNTAX_POSIX_BASIC
46683 & ~RE_CONTEXT_INVALID_DUP
46684 & ~RE_NO_EMPTY_RANGES);
46685 memset (®ex, 0, sizeof regex);
46686 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
46690 /* REG_STARTEND was added to glibc on 2004-01-15.
46691 Reject older versions. */
46692 if (! REG_STARTEND)
46695 /* Reject hosts whose regoff_t values are too narrow.
46696 These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
46698 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
46699 || sizeof (regoff_t) < sizeof (ssize_t))
46707 if ac_fn_c_try_run "$LINENO"; then :
46708 gl_cv_func_re_compile_pattern_working=yes
46710 gl_cv_func_re_compile_pattern_working=no
46712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46713 conftest.$ac_objext conftest.beam conftest.$ac_ext
46717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
46718 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
46719 case $gl_cv_func_re_compile_pattern_working in #(
46720 yes) ac_use_included_regex=no;; #(
46721 no) ac_use_included_regex=yes;;
46724 *) as_fn_error "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
46728 if test $ac_use_included_regex = yes; then
46730 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
46733 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
46736 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
46739 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
46742 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
46745 $as_echo "#define re_search rpl_re_search" >>confdefs.h
46748 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
46751 $as_echo "#define re_match rpl_re_match" >>confdefs.h
46754 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
46757 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
46760 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
46763 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
46766 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
46769 $as_echo "#define regexec rpl_regexec" >>confdefs.h
46772 $as_echo "#define regerror rpl_regerror" >>confdefs.h
46775 $as_echo "#define regfree rpl_regfree" >>confdefs.h
46785 grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext"
46792 for ac_header in libintl.h
46794 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
46795 if test "x$ac_cv_header_libintl_h" = x""yes; then :
46796 cat >>confdefs.h <<_ACEOF
46797 #define HAVE_LIBINTL_H 1
46817 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
46819 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
46825 cat >>confdefs.h <<_ACEOF
46826 #define HAVE_DECL_ISBLANK $ac_have_decl
46832 # Code from module warn-on-use:
46833 # Code from module wcrtomb:
46856 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
46860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
46861 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
46862 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
46863 $as_echo_n "(cached) " >&6
46867 # Guess no on AIX and OSF/1.
46868 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
46869 # Guess yes otherwise.
46870 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
46872 if test $LOCALE_JA != none; then
46873 if test "$cross_compiling" = yes; then :
46876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46877 /* end confdefs.h. */
46879 #include <locale.h>
46880 #include <string.h>
46884 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
46886 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
46890 memset (&state, '\0', sizeof (mbstate_t));
46891 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
46892 if (mbsinit (&state))
46898 if ac_fn_c_try_run "$LINENO"; then :
46899 gl_cv_func_mbrtowc_incomplete_state=yes
46901 gl_cv_func_mbrtowc_incomplete_state=no
46903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46904 conftest.$ac_objext conftest.beam conftest.$ac_ext
46910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
46911 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
46916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
46917 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
46918 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
46919 $as_echo_n "(cached) " >&6
46923 # Guess no on Solaris 8.
46924 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
46925 # Guess yes otherwise.
46926 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
46928 if test $LOCALE_ZH_CN != none; then
46929 if test "$cross_compiling" = yes; then :
46932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46933 /* end confdefs.h. */
46935 #include <locale.h>
46936 #include <stdlib.h>
46937 #include <string.h>
46941 /* This fails on Solaris 8:
46942 mbrtowc returns 2, and sets wc to 0x00F0.
46943 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
46944 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
46946 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
46950 memset (&state, '\0', sizeof (mbstate_t));
46951 if (mbrtowc (&wc, input + 3, 6, &state) != 4
46952 && mbtowc (&wc, input + 3, 6) == 4)
46958 if ac_fn_c_try_run "$LINENO"; then :
46959 gl_cv_func_mbrtowc_sanitycheck=yes
46961 gl_cv_func_mbrtowc_sanitycheck=no
46963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46964 conftest.$ac_objext conftest.beam conftest.$ac_ext
46970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
46971 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
46973 REPLACE_MBSTATE_T=0
46974 case "$gl_cv_func_mbrtowc_incomplete_state" in
46976 *) REPLACE_MBSTATE_T=1 ;;
46978 case "$gl_cv_func_mbrtowc_sanitycheck" in
46980 *) REPLACE_MBSTATE_T=1 ;;
46983 REPLACE_MBSTATE_T=1
46985 if test $REPLACE_MBSTATE_T = 1; then
46999 if test $ac_cv_func_wcrtomb = no; then
47002 if test $REPLACE_MBSTATE_T = 1; then
47010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
47011 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
47012 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
47013 $as_echo_n "(cached) " >&6
47017 # Guess no on AIX 4, OSF/1 and Solaris.
47018 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
47019 # Guess yes otherwise.
47020 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
47022 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
47023 if test "$cross_compiling" = yes; then :
47026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47027 /* end confdefs.h. */
47029 #include <locale.h>
47031 #include <string.h>
47035 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
47037 if (wcrtomb (NULL, 0, NULL) != 1)
47040 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
47042 if (wcrtomb (NULL, 0, NULL) != 1)
47045 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
47047 if (wcrtomb (NULL, 0, NULL) != 1)
47050 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
47052 if (wcrtomb (NULL, 0, NULL) != 1)
47058 if ac_fn_c_try_run "$LINENO"; then :
47059 gl_cv_func_wcrtomb_retval=yes
47061 gl_cv_func_wcrtomb_retval=no
47063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47064 conftest.$ac_objext conftest.beam conftest.$ac_ext
47070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
47071 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
47072 case "$gl_cv_func_wcrtomb_retval" in
47074 *) REPLACE_WCRTOMB=1 ;;
47078 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
47090 grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext"
47104 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
47108 # Code from module dummy:
47109 # End of code from modules
47130 gl_source_base='tests'
47131 grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
47133 gl_module_indicator_condition=$grgltests_WITNESS
47143 LIBGREP_LIBDEPS="$gl_libdeps"
47145 LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
47150 GL_COND_LIBTOOL_TRUE=
47151 GL_COND_LIBTOOL_FALSE='#'
47153 GL_COND_LIBTOOL_TRUE='#'
47154 GL_COND_LIBTOOL_FALSE=
47157 gl_cond_libtool=true
47158 gl_m4_base='libgettextpo/gnulib-m4'
47168 gl_source_base='libgettextpo'
47169 # Code from module alloca-opt:
47175 if test $ac_cv_func_alloca_works = no; then
47191 # Define an additional variable used in the Makefile substitution.
47193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47194 /* end confdefs.h. */
47196 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
47201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47202 $EGREP "Need own alloca" >/dev/null 2>&1; then :
47211 # Code from module arg-nonnull:
47212 # Code from module basename:
47213 # Code from module c++defs:
47214 # Code from module c-ctype:
47215 # Code from module c-strcase:
47216 # Code from module c-strcaseeq:
47217 # Code from module c-strstr:
47218 # Code from module concat-filename:
47219 # Code from module configmake:
47220 # Code from module diffseq:
47221 # Code from module errno:
47223 # Code from module error:
47237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
47238 $as_echo_n "checking for error_at_line... " >&6; }
47239 if test "${ac_cv_lib_error_at_line+set}" = set; then :
47240 $as_echo_n "(cached) " >&6
47242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47243 /* end confdefs.h. */
47248 error_at_line (0, 0, "", 0, "an error occurred");
47253 if ac_fn_c_try_link "$LINENO"; then :
47254 ac_cv_lib_error_at_line=yes
47256 ac_cv_lib_error_at_line=no
47258 rm -f core conftest.err conftest.$ac_objext \
47259 conftest$ac_exeext conftest.$ac_ext
47261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
47262 $as_echo "$ac_cv_lib_error_at_line" >&6; }
47263 if test $ac_cv_lib_error_at_line = no; then
47272 gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
47284 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
47288 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
47290 # Code from module error-progname:
47291 # Code from module exitfail:
47292 # Code from module extensions:
47293 # Code from module fcntl-h:
47309 if test $gl_cv_have_include_next = yes; then
47310 gl_cv_next_fcntl_h='<'fcntl.h'>'
47312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
47313 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
47314 if test "${gl_cv_next_fcntl_h+set}" = set; then :
47315 $as_echo_n "(cached) " >&6
47318 if test $ac_cv_header_fcntl_h = yes; then
47319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47320 /* end confdefs.h. */
47325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
47326 *) gl_absname_cpp="$ac_cpp" ;;
47328 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47329 sed -n '\#/fcntl.h#{
47330 s#.*"\(.*/fcntl.h\)".*#\1#
47336 gl_cv_next_fcntl_h='<'fcntl.h'>'
47340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
47341 $as_echo "$gl_cv_next_fcntl_h" >&6; }
47343 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
47345 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47346 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47347 gl_next_as_first_directive='<'fcntl.h'>'
47349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47350 gl_next_as_first_directive=$gl_cv_next_fcntl_h
47352 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
47358 for gl_func in fcntl openat; do
47359 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
47360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
47361 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
47362 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
47363 $as_echo_n "(cached) " >&6
47365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47366 /* end confdefs.h. */
47378 if ac_fn_c_try_compile "$LINENO"; then :
47379 eval "$as_gl_Symbol=yes"
47381 eval "$as_gl_Symbol=no"
47383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47385 eval ac_res=\$$as_gl_Symbol
47386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47387 $as_echo "$ac_res" >&6; }
47388 eval as_val=\$$as_gl_Symbol
47389 if test "x$as_val" = x""yes; then :
47390 cat >>confdefs.h <<_ACEOF
47391 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
47394 eval ac_cv_have_decl_$gl_func=yes
47399 # Code from module file-ostream:
47400 # Code from module filename:
47401 # Code from module float:
47421 if test $gl_cv_have_include_next = yes; then
47422 gl_cv_next_float_h='<'float.h'>'
47424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
47425 $as_echo_n "checking absolute name of <float.h>... " >&6; }
47426 if test "${gl_cv_next_float_h+set}" = set; then :
47427 $as_echo_n "(cached) " >&6
47430 if test $ac_cv_header_float_h = yes; then
47431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47432 /* end confdefs.h. */
47437 aix*) gl_absname_cpp="$ac_cpp -C" ;;
47438 *) gl_absname_cpp="$ac_cpp" ;;
47440 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47441 sed -n '\#/float.h#{
47442 s#.*"\(.*/float.h\)".*#\1#
47448 gl_cv_next_float_h='<'float.h'>'
47452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
47453 $as_echo "$gl_cv_next_float_h" >&6; }
47455 NEXT_FLOAT_H=$gl_cv_next_float_h
47457 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47458 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47459 gl_next_as_first_directive='<'float.h'>'
47461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47462 gl_next_as_first_directive=$gl_cv_next_float_h
47464 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
47472 # Code from module fopen:
47479 gl_cv_func_fopen_slash="guessing no"
47482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
47483 $as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; }
47484 if test "${gl_cv_func_fopen_slash+set}" = set; then :
47485 $as_echo_n "(cached) " >&6
47488 if test "$cross_compiling" = yes; then :
47491 solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;;
47492 hpux*) gl_cv_func_fopen_slash="guessing no" ;;
47493 *) gl_cv_func_fopen_slash="guessing yes" ;;
47497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47498 /* end confdefs.h. */
47500 #include <stddef.h>
47504 return fopen ("conftest.sl/", "w") != NULL;
47507 if ac_fn_c_try_run "$LINENO"; then :
47508 gl_cv_func_fopen_slash=yes
47510 gl_cv_func_fopen_slash=no
47512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47513 conftest.$ac_objext conftest.beam conftest.$ac_ext
47519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
47520 $as_echo "$gl_cv_func_fopen_slash" >&6; }
47523 case "$gl_cv_func_fopen_slash" in
47526 $as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
47531 if test $REPLACE_FOPEN = 1; then
47540 gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
47554 $as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
47558 # Code from module fstrcmp:
47559 # Code from module fwriteerror:
47562 cat >>confdefs.h <<_ACEOF
47563 #define GNULIB_FWRITEERROR 1
47567 # Code from module gcd:
47568 # Code from module getdelim:
47589 if test $ac_cv_func_getdelim = yes; then
47590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
47591 $as_echo_n "checking for working getdelim function... " >&6; }
47592 if test "${gl_cv_func_working_getdelim+set}" = set; then :
47593 $as_echo_n "(cached) " >&6
47595 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47596 if test "$cross_compiling" = yes; then :
47597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47598 /* end confdefs.h. */
47600 #include <features.h>
47601 #ifdef __GNU_LIBRARY__
47602 #if (__GLIBC__ >= 2)
47608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47609 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47610 gl_cv_func_working_getdelim=yes
47612 gl_cv_func_working_getdelim=no
47618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47619 /* end confdefs.h. */
47621 # include <stdio.h>
47622 # include <stdlib.h>
47623 # include <string.h>
47626 FILE *in = fopen ("./conftest.data", "r");
47630 /* Test result for a NULL buffer and a zero size.
47631 Based on a test program from Karl Heuer. */
47634 int len = getdelim (&line, &siz, '\n', in);
47635 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47639 /* Test result for a NULL buffer and a non-zero size.
47640 This crashes on FreeBSD 8.0. */
47642 size_t siz = (size_t)(~0) / 4;
47643 if (getdelim (&line, &siz, '\n', in) == -1)
47650 if ac_fn_c_try_run "$LINENO"; then :
47651 gl_cv_func_working_getdelim=yes
47653 gl_cv_func_working_getdelim=no
47655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47656 conftest.$ac_objext conftest.beam conftest.$ac_ext
47660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
47661 $as_echo "$gl_cv_func_working_getdelim" >&6; }
47663 gl_cv_func_working_getdelim=no
47666 if test $ac_cv_have_decl_getdelim = no; then
47667 HAVE_DECL_GETDELIM=0
47670 if test $gl_cv_func_working_getdelim = no; then
47671 if test $ac_cv_func_getdelim = yes; then
47682 gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
47685 for ac_func in flockfile funlockfile
47687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47689 eval as_val=\$$as_ac_var
47690 if test "x$as_val" = x""yes; then :
47691 cat >>confdefs.h <<_ACEOF
47692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47698 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
47699 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
47705 cat >>confdefs.h <<_ACEOF
47706 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
47719 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
47723 # Code from module getline:
47737 gl_getline_needs_run_time_check=no
47738 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
47739 if test "x$ac_cv_func_getline" = x""yes; then :
47740 gl_getline_needs_run_time_check=yes
47742 am_cv_func_working_getline=no
47745 if test $gl_getline_needs_run_time_check = yes; then
47746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
47747 $as_echo_n "checking for working getline function... " >&6; }
47748 if test "${am_cv_func_working_getline+set}" = set; then :
47749 $as_echo_n "(cached) " >&6
47751 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47752 if test "$cross_compiling" = yes; then :
47753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47754 /* end confdefs.h. */
47756 #include <features.h>
47757 #ifdef __GNU_LIBRARY__
47758 #if (__GLIBC__ >= 2)
47764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47765 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47766 am_cv_func_working_getline=yes
47768 am_cv_func_working_getline=no
47774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47775 /* end confdefs.h. */
47777 # include <stdio.h>
47778 # include <stdlib.h>
47779 # include <string.h>
47782 FILE *in = fopen ("./conftest.data", "r");
47786 /* Test result for a NULL buffer and a zero size.
47787 Based on a test program from Karl Heuer. */
47790 int len = getline (&line, &siz, in);
47791 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47795 /* Test result for a NULL buffer and a non-zero size.
47796 This crashes on FreeBSD 8.0. */
47798 size_t siz = (size_t)(~0) / 4;
47799 if (getline (&line, &siz, in) == -1)
47806 if ac_fn_c_try_run "$LINENO"; then :
47807 am_cv_func_working_getline=yes
47809 am_cv_func_working_getline=no
47811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47812 conftest.$ac_objext conftest.beam conftest.$ac_ext
47816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
47817 $as_echo "$am_cv_func_working_getline" >&6; }
47820 if test $ac_cv_have_decl_getline = no; then
47821 HAVE_DECL_GETLINE=0
47824 if test $am_cv_func_working_getline = no; then
47834 gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
47858 if test $ac_cv_func_getdelim = yes; then
47859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
47860 $as_echo_n "checking for working getdelim function... " >&6; }
47861 if test "${gl_cv_func_working_getdelim+set}" = set; then :
47862 $as_echo_n "(cached) " >&6
47864 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
47865 if test "$cross_compiling" = yes; then :
47866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47867 /* end confdefs.h. */
47869 #include <features.h>
47870 #ifdef __GNU_LIBRARY__
47871 #if (__GLIBC__ >= 2)
47877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47878 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
47879 gl_cv_func_working_getdelim=yes
47881 gl_cv_func_working_getdelim=no
47887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47888 /* end confdefs.h. */
47890 # include <stdio.h>
47891 # include <stdlib.h>
47892 # include <string.h>
47895 FILE *in = fopen ("./conftest.data", "r");
47899 /* Test result for a NULL buffer and a zero size.
47900 Based on a test program from Karl Heuer. */
47903 int len = getdelim (&line, &siz, '\n', in);
47904 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
47908 /* Test result for a NULL buffer and a non-zero size.
47909 This crashes on FreeBSD 8.0. */
47911 size_t siz = (size_t)(~0) / 4;
47912 if (getdelim (&line, &siz, '\n', in) == -1)
47919 if ac_fn_c_try_run "$LINENO"; then :
47920 gl_cv_func_working_getdelim=yes
47922 gl_cv_func_working_getdelim=no
47924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47925 conftest.$ac_objext conftest.beam conftest.$ac_ext
47929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
47930 $as_echo "$gl_cv_func_working_getdelim" >&6; }
47932 gl_cv_func_working_getdelim=no
47935 if test $ac_cv_have_decl_getdelim = no; then
47936 HAVE_DECL_GETDELIM=0
47939 if test $gl_cv_func_working_getdelim = no; then
47940 if test $ac_cv_func_getdelim = yes; then
47951 gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext"
47954 for ac_func in flockfile funlockfile
47956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47958 eval as_val=\$$as_ac_var
47959 if test "x$as_val" = x""yes; then :
47960 cat >>confdefs.h <<_ACEOF
47961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47967 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
47968 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
47974 cat >>confdefs.h <<_ACEOF
47975 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
47991 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
47995 # Code from module gettext-h:
47998 # Code from module gperf:
47999 # Code from module hash:
48000 # Code from module havelib:
48001 # Code from module iconv:
48003 # Code from module iconv-h:
48019 if test $gl_cv_have_include_next = yes; then
48020 gl_cv_next_iconv_h='<'iconv.h'>'
48022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
48023 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
48024 if test "${gl_cv_next_iconv_h+set}" = set; then :
48025 $as_echo_n "(cached) " >&6
48028 if test $ac_cv_header_iconv_h = yes; then
48029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48030 /* end confdefs.h. */
48035 aix*) gl_absname_cpp="$ac_cpp -C" ;;
48036 *) gl_absname_cpp="$ac_cpp" ;;
48038 gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48039 sed -n '\#/iconv.h#{
48040 s#.*"\(.*/iconv.h\)".*#\1#
48046 gl_cv_next_iconv_h='<'iconv.h'>'
48050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
48051 $as_echo "$gl_cv_next_iconv_h" >&6; }
48053 NEXT_ICONV_H=$gl_cv_next_iconv_h
48055 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48057 gl_next_as_first_directive='<'iconv.h'>'
48059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48060 gl_next_as_first_directive=$gl_cv_next_iconv_h
48062 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
48067 # Code from module iconv_open:
48072 if test "$am_cv_func_iconv" = yes; then
48077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48078 /* end confdefs.h. */
48081 #if defined _LIBICONV_VERSION || defined __GLIBC__
48086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48087 $EGREP "gnu_iconv" >/dev/null 2>&1; then :
48088 gl_func_iconv_gnu=yes
48090 gl_func_iconv_gnu=no
48094 if test $gl_func_iconv_gnu = no; then
48097 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;;
48098 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
48099 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
48100 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;;
48101 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
48103 if test -n "$iconv_flavor"; then
48105 cat >>confdefs.h <<_ACEOF
48106 #define ICONV_FLAVOR $iconv_flavor
48114 REPLACE_ICONV_OPEN=1
48123 gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
48130 # Code from module include_next:
48131 # Code from module inline:
48134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
48135 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
48136 if test "${gl_cv_c_inline_effective+set}" = set; then :
48137 $as_echo_n "(cached) " >&6
48139 if test $ac_cv_c_inline = no; then
48140 gl_cv_c_inline_effective=no
48142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48143 /* end confdefs.h. */
48148 #ifdef __NO_INLINE__
48149 #error "inline is not effective"
48155 if ac_fn_c_try_compile "$LINENO"; then :
48156 gl_cv_c_inline_effective=yes
48158 gl_cv_c_inline_effective=no
48160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
48165 $as_echo "$gl_cv_c_inline_effective" >&6; }
48166 if test $gl_cv_c_inline_effective = yes; then
48168 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
48172 # Code from module intprops:
48173 # Code from module libunistring-optional:
48177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5
48178 $as_echo_n "checking whether to use the included libunistring... " >&6; }
48179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5
48180 $as_echo "$gl_libunistring_use_included" >&6; }
48182 # Code from module localcharset:
48197 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
48199 # Code from module lock:
48202 if test "$gl_threads_api" = posix; then
48203 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
48204 # pthread_rwlock_* functions.
48205 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
48207 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
48209 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
48213 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
48214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48215 /* end confdefs.h. */
48216 #include <pthread.h>
48220 #if __FreeBSD__ == 4
48221 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
48223 int x = (int)PTHREAD_MUTEX_RECURSIVE;
48230 if ac_fn_c_try_compile "$LINENO"; then :
48232 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
48235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48241 # Code from module malloc-posix:
48244 if test $gl_cv_func_malloc_posix = yes; then
48245 HAVE_MALLOC_POSIX=1
48247 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
48258 gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
48260 HAVE_MALLOC_POSIX=0
48267 GNULIB_MALLOC_POSIX=1
48271 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
48275 # Code from module malloca:
48280 # Code from module mbrtowc:
48303 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
48308 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48309 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
48310 $as_echo_n "(cached) " >&6
48314 # Guess no on AIX and OSF/1.
48315 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48316 # Guess yes otherwise.
48317 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48319 if test $LOCALE_JA != none; then
48320 if test "$cross_compiling" = yes; then :
48323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48324 /* end confdefs.h. */
48326 #include <locale.h>
48327 #include <string.h>
48331 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48333 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48337 memset (&state, '\0', sizeof (mbstate_t));
48338 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48339 if (mbsinit (&state))
48345 if ac_fn_c_try_run "$LINENO"; then :
48346 gl_cv_func_mbrtowc_incomplete_state=yes
48348 gl_cv_func_mbrtowc_incomplete_state=no
48350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48351 conftest.$ac_objext conftest.beam conftest.$ac_ext
48357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48358 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
48364 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48365 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
48366 $as_echo_n "(cached) " >&6
48370 # Guess no on Solaris 8.
48371 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48372 # Guess yes otherwise.
48373 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48375 if test $LOCALE_ZH_CN != none; then
48376 if test "$cross_compiling" = yes; then :
48379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48380 /* end confdefs.h. */
48382 #include <locale.h>
48383 #include <stdlib.h>
48384 #include <string.h>
48388 /* This fails on Solaris 8:
48389 mbrtowc returns 2, and sets wc to 0x00F0.
48390 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
48391 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48393 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48397 memset (&state, '\0', sizeof (mbstate_t));
48398 if (mbrtowc (&wc, input + 3, 6, &state) != 4
48399 && mbtowc (&wc, input + 3, 6) == 4)
48405 if ac_fn_c_try_run "$LINENO"; then :
48406 gl_cv_func_mbrtowc_sanitycheck=yes
48408 gl_cv_func_mbrtowc_sanitycheck=no
48410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48411 conftest.$ac_objext conftest.beam conftest.$ac_ext
48417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48418 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48420 REPLACE_MBSTATE_T=0
48421 case "$gl_cv_func_mbrtowc_incomplete_state" in
48423 *) REPLACE_MBSTATE_T=1 ;;
48425 case "$gl_cv_func_mbrtowc_sanitycheck" in
48427 *) REPLACE_MBSTATE_T=1 ;;
48430 REPLACE_MBSTATE_T=1
48432 if test $REPLACE_MBSTATE_T = 1; then
48446 if test $ac_cv_func_mbrtowc = no; then
48449 if test $REPLACE_MBSTATE_T = 1; then
48455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
48456 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
48457 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
48458 $as_echo_n "(cached) " >&6
48462 # Guess no on OSF/1.
48463 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
48464 # Guess yes otherwise.
48465 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
48467 if test $LOCALE_FR_UTF8 != none; then
48468 if test "$cross_compiling" = yes; then :
48471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48472 /* end confdefs.h. */
48474 #include <locale.h>
48475 #include <string.h>
48479 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48485 memset (&state, '\0', sizeof (mbstate_t));
48486 wc = (wchar_t) 0xBADFACE;
48487 mbrtowc (&wc, NULL, 5, &state);
48488 /* Check that wc was not modified. */
48489 if (wc != (wchar_t) 0xBADFACE)
48495 if ac_fn_c_try_run "$LINENO"; then :
48496 gl_cv_func_mbrtowc_null_arg=yes
48498 gl_cv_func_mbrtowc_null_arg=no
48500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48501 conftest.$ac_objext conftest.beam conftest.$ac_ext
48507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
48508 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
48514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
48515 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
48516 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
48517 $as_echo_n "(cached) " >&6
48521 # Guess no on HP-UX and Solaris.
48522 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
48523 # Guess yes otherwise.
48524 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
48526 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
48527 if test "$cross_compiling" = yes; then :
48530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48531 /* end confdefs.h. */
48533 #include <locale.h>
48534 #include <string.h>
48538 /* This fails on Solaris. */
48539 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
48541 char input[] = "B\303\274\303\237er"; /* "Büßer" */
48545 memset (&state, '\0', sizeof (mbstate_t));
48546 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48549 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
48553 /* This fails on HP-UX 11.11. */
48554 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48556 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48560 memset (&state, '\0', sizeof (mbstate_t));
48561 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48564 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
48571 if ac_fn_c_try_run "$LINENO"; then :
48572 gl_cv_func_mbrtowc_retval=yes
48574 gl_cv_func_mbrtowc_retval=no
48576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48577 conftest.$ac_objext conftest.beam conftest.$ac_ext
48583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
48584 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
48589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
48590 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
48591 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
48592 $as_echo_n "(cached) " >&6
48596 # Guess no on Solaris 8 and 9.
48597 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
48598 # Guess yes otherwise.
48599 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
48601 if test $LOCALE_ZH_CN != none; then
48602 if test "$cross_compiling" = yes; then :
48605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48606 /* end confdefs.h. */
48608 #include <locale.h>
48609 #include <string.h>
48613 /* This fails on Solaris 8 and 9. */
48614 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48619 memset (&state, '\0', sizeof (mbstate_t));
48620 if (mbrtowc (&wc, "", 1, &state) != 0)
48626 if ac_fn_c_try_run "$LINENO"; then :
48627 gl_cv_func_mbrtowc_nul_retval=yes
48629 gl_cv_func_mbrtowc_nul_retval=no
48631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48632 conftest.$ac_objext conftest.beam conftest.$ac_ext
48638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
48639 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
48641 case "$gl_cv_func_mbrtowc_null_arg" in
48644 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
48649 case "$gl_cv_func_mbrtowc_retval" in
48652 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
48657 case "$gl_cv_func_mbrtowc_nul_retval" in
48660 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
48667 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
48679 gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext"
48693 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
48697 # Code from module mbsinit:
48720 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
48724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
48725 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
48726 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
48727 $as_echo_n "(cached) " >&6
48731 # Guess no on AIX and OSF/1.
48732 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
48733 # Guess yes otherwise.
48734 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
48736 if test $LOCALE_JA != none; then
48737 if test "$cross_compiling" = yes; then :
48740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48741 /* end confdefs.h. */
48743 #include <locale.h>
48744 #include <string.h>
48748 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
48750 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
48754 memset (&state, '\0', sizeof (mbstate_t));
48755 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
48756 if (mbsinit (&state))
48762 if ac_fn_c_try_run "$LINENO"; then :
48763 gl_cv_func_mbrtowc_incomplete_state=yes
48765 gl_cv_func_mbrtowc_incomplete_state=no
48767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48768 conftest.$ac_objext conftest.beam conftest.$ac_ext
48774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
48775 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
48780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
48781 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
48782 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
48783 $as_echo_n "(cached) " >&6
48787 # Guess no on Solaris 8.
48788 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
48789 # Guess yes otherwise.
48790 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
48792 if test $LOCALE_ZH_CN != none; then
48793 if test "$cross_compiling" = yes; then :
48796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48797 /* end confdefs.h. */
48799 #include <locale.h>
48800 #include <stdlib.h>
48801 #include <string.h>
48805 /* This fails on Solaris 8:
48806 mbrtowc returns 2, and sets wc to 0x00F0.
48807 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
48808 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
48810 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
48814 memset (&state, '\0', sizeof (mbstate_t));
48815 if (mbrtowc (&wc, input + 3, 6, &state) != 4
48816 && mbtowc (&wc, input + 3, 6) == 4)
48822 if ac_fn_c_try_run "$LINENO"; then :
48823 gl_cv_func_mbrtowc_sanitycheck=yes
48825 gl_cv_func_mbrtowc_sanitycheck=no
48827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48828 conftest.$ac_objext conftest.beam conftest.$ac_ext
48834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
48835 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
48837 REPLACE_MBSTATE_T=0
48838 case "$gl_cv_func_mbrtowc_incomplete_state" in
48840 *) REPLACE_MBSTATE_T=1 ;;
48842 case "$gl_cv_func_mbrtowc_sanitycheck" in
48844 *) REPLACE_MBSTATE_T=1 ;;
48847 REPLACE_MBSTATE_T=1
48849 if test $REPLACE_MBSTATE_T = 1; then
48863 if test $ac_cv_func_mbsinit = no; then
48866 if test $REPLACE_MBSTATE_T = 1; then
48870 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
48882 gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext"
48896 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
48900 # Code from module mbswidth:
48920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
48921 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
48922 if test "${ac_cv_have_decl_mbswidth+set}" = set; then :
48923 $as_echo_n "(cached) " >&6
48925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48926 /* end confdefs.h. */
48928 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
48930 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
48931 before <wchar.h>. */
48932 #include <stddef.h>
48941 char *p = (char *) mbswidth;
48948 if ac_fn_c_try_compile "$LINENO"; then :
48949 ac_cv_have_decl_mbswidth=yes
48951 ac_cv_have_decl_mbswidth=no
48953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
48956 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
48957 if test $ac_cv_have_decl_mbswidth = yes; then
48963 cat >>confdefs.h <<_ACEOF
48964 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
48970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
48971 $as_echo_n "checking for mbstate_t... " >&6; }
48972 if test "${ac_cv_type_mbstate_t+set}" = set; then :
48973 $as_echo_n "(cached) " >&6
48975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48976 /* end confdefs.h. */
48977 $ac_includes_default
48978 # include <wchar.h>
48982 mbstate_t x; return sizeof x;
48987 if ac_fn_c_try_compile "$LINENO"; then :
48988 ac_cv_type_mbstate_t=yes
48990 ac_cv_type_mbstate_t=no
48992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
48995 $as_echo "$ac_cv_type_mbstate_t" >&6; }
48996 if test $ac_cv_type_mbstate_t = yes; then
48998 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
49002 $as_echo "#define mbstate_t int" >>confdefs.h
49007 # Code from module memchr:
49016 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
49020 # Code from module minmax:
49024 # Code from module moo:
49027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5
49028 $as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
49029 if test "${gl_cv_c_cplusplus+set}" = set; then :
49030 $as_echo_n "(cached) " >&6
49032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49033 /* end confdefs.h. */
49040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49041 $EGREP "Is c++" >/dev/null 2>&1; then :
49042 gl_cv_c_cplusplus=yes
49044 gl_cv_c_cplusplus=no
49049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5
49050 $as_echo "$gl_cv_c_cplusplus" >&6; }
49051 if test $gl_cv_c_cplusplus = yes; then
49053 $as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h
49057 # Code from module multiarch:
49059 # Code from module obstack:
49072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
49073 $as_echo_n "checking for obstacks... " >&6; }
49074 if test "${ac_cv_func_obstack+set}" = set; then :
49075 $as_echo_n "(cached) " >&6
49077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49078 /* end confdefs.h. */
49079 $ac_includes_default
49080 #include "obstack.h"
49084 struct obstack mem;
49085 #define obstack_chunk_alloc malloc
49086 #define obstack_chunk_free free
49087 obstack_init (&mem);
49088 obstack_free (&mem, 0);
49093 if ac_fn_c_try_link "$LINENO"; then :
49094 ac_cv_func_obstack=yes
49096 ac_cv_func_obstack=no
49098 rm -f core conftest.err conftest.$ac_objext \
49099 conftest$ac_exeext conftest.$ac_ext
49101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
49102 $as_echo "$ac_cv_func_obstack" >&6; }
49103 if test $ac_cv_func_obstack = yes; then
49105 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
49116 gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
49120 # Code from module open:
49136 gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
49153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
49154 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
49155 if test "${gl_cv_func_open_slash+set}" = set; then :
49156 $as_echo_n "(cached) " >&6
49158 # Assume that if we have lstat, we can also check symlinks.
49159 if test $ac_cv_func_lstat = yes; then
49161 ln -s conftest.tmp conftest.lnk
49163 if test "$cross_compiling" = yes; then :
49166 freebsd*) gl_cv_func_open_slash="guessing no" ;;
49167 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
49168 hpux*) gl_cv_func_open_slash="guessing no" ;;
49169 *) gl_cv_func_open_slash="guessing yes" ;;
49173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49174 /* end confdefs.h. */
49178 # include <unistd.h>
49183 if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
49185 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
49188 if ac_fn_c_try_run "$LINENO"; then :
49189 gl_cv_func_open_slash=yes
49191 gl_cv_func_open_slash=no
49193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49194 conftest.$ac_objext conftest.beam conftest.$ac_ext
49197 rm -f conftest.sl conftest.tmp conftest.lnk
49200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
49201 $as_echo "$gl_cv_func_open_slash" >&6; }
49202 case "$gl_cv_func_open_slash" in
49205 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
49218 gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext"
49238 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
49242 # Code from module ostream:
49243 # Code from module progname:
49244 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
49246 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
49252 cat >>confdefs.h <<_ACEOF
49253 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
49256 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
49258 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
49264 cat >>confdefs.h <<_ACEOF
49265 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
49268 # Code from module realloc-posix:
49271 if test $gl_cv_func_malloc_posix = yes; then
49272 HAVE_REALLOC_POSIX=1
49274 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
49285 gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
49287 HAVE_REALLOC_POSIX=0
49294 GNULIB_REALLOC_POSIX=1
49298 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
49302 # Code from module relocatable-lib:
49305 if test $RELOCATABLE = yes; then
49314 gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
49318 # Code from module signal:
49333 if test $gl_cv_have_include_next = yes; then
49334 gl_cv_next_signal_h='<'signal.h'>'
49336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
49337 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
49338 if test "${gl_cv_next_signal_h+set}" = set; then :
49339 $as_echo_n "(cached) " >&6
49342 if test $ac_cv_header_signal_h = yes; then
49343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49344 /* end confdefs.h. */
49345 #include <signal.h>
49349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
49350 *) gl_absname_cpp="$ac_cpp" ;;
49352 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49353 sed -n '\#/signal.h#{
49354 s#.*"\(.*/signal.h\)".*#\1#
49360 gl_cv_next_signal_h='<'signal.h'>'
49364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
49365 $as_echo "$gl_cv_next_signal_h" >&6; }
49367 NEXT_SIGNAL_H=$gl_cv_next_signal_h
49369 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49371 gl_next_as_first_directive='<'signal.h'>'
49373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49374 gl_next_as_first_directive=$gl_cv_next_signal_h
49376 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
49380 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
49381 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
49382 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
49383 #include <signal.h>
49386 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
49389 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
49395 for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
49396 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
49397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
49398 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
49399 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
49400 $as_echo_n "(cached) " >&6
49402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49403 /* end confdefs.h. */
49404 #include <signal.h>
49415 if ac_fn_c_try_compile "$LINENO"; then :
49416 eval "$as_gl_Symbol=yes"
49418 eval "$as_gl_Symbol=no"
49420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49422 eval ac_res=\$$as_gl_Symbol
49423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49424 $as_echo "$ac_res" >&6; }
49425 eval as_val=\$$as_gl_Symbol
49426 if test "x$as_val" = x""yes; then :
49427 cat >>confdefs.h <<_ACEOF
49428 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
49431 eval ac_cv_have_decl_$gl_func=yes
49436 # Code from module sigpipe:
49442 cat >>confdefs.h <<_ACEOF
49443 #define GNULIB_SIGPIPE 1
49448 GNULIB_SIGNAL_H_SIGPIPE=1
49450 GNULIB_STDIO_H_SIGPIPE=1
49452 GNULIB_UNISTD_H_SIGPIPE=1
49453 # Code from module sigprocmask:
49457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49458 /* end confdefs.h. */
49459 #include <signal.h>
49462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49463 $EGREP "sigset_t" >/dev/null 2>&1; then :
49466 signals_not_posix=1
49470 if test -z "$signals_not_posix"; then
49471 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
49472 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
49473 gl_cv_func_sigprocmask=1
49477 if test -z "$gl_cv_func_sigprocmask"; then
49478 HAVE_POSIX_SIGNALBLOCKING=0
49487 gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext"
49491 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
49492 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
49493 #include <sys/types.h>
49495 if test "x$ac_cv_type_sigset_t" = x""yes; then :
49497 cat >>confdefs.h <<_ACEOF
49498 #define HAVE_SIGSET_T 1
49501 gl_cv_type_sigset_t=yes
49503 gl_cv_type_sigset_t=no
49506 if test $gl_cv_type_sigset_t != yes; then
49516 GNULIB_SIGPROCMASK=1
49520 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
49524 # Code from module size_max:
49526 for ac_header in stdint.h
49528 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
49529 if test "x$ac_cv_header_stdint_h" = x""yes; then :
49530 cat >>confdefs.h <<_ACEOF
49531 #define HAVE_STDINT_H 1
49538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
49539 $as_echo_n "checking for SIZE_MAX... " >&6; }
49540 if test "${gl_cv_size_max+set}" = set; then :
49541 $as_echo_n "(cached) " >&6
49545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49546 /* end confdefs.h. */
49548 #include <limits.h>
49550 #include <stdint.h>
49557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49558 $EGREP "Found it" >/dev/null 2>&1; then :
49563 if test -z "$gl_cv_size_max"; then
49564 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
49565 #include <limits.h>"; then :
49568 size_t_bits_minus_1=
49571 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
49577 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
49578 if test $fits_in_uint = 1; then
49579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49580 /* end confdefs.h. */
49581 #include <stddef.h>
49583 extern unsigned long foo;
49593 if ac_fn_c_try_compile "$LINENO"; then :
49596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49598 if test $fits_in_uint = 1; then
49599 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
49601 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
49604 gl_cv_size_max='((size_t)~(size_t)0)'
49609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
49610 $as_echo "$gl_cv_size_max" >&6; }
49611 if test "$gl_cv_size_max" != yes; then
49613 cat >>confdefs.h <<_ACEOF
49614 #define SIZE_MAX $gl_cv_size_max
49620 # Code from module stat:
49631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
49632 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
49633 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
49634 $as_echo_n "(cached) " >&6
49636 if test "$cross_compiling" = yes; then :
49638 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
49639 *) gl_cv_func_stat_dir_slash="guessing yes";;
49642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49643 /* end confdefs.h. */
49644 #include <sys/stat.h>
49649 struct stat st; return stat (".", &st) != stat ("./", &st);
49654 if ac_fn_c_try_run "$LINENO"; then :
49655 gl_cv_func_stat_dir_slash=yes
49657 gl_cv_func_stat_dir_slash=no
49659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49660 conftest.$ac_objext conftest.beam conftest.$ac_ext
49664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
49665 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
49666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
49667 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
49668 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
49669 $as_echo_n "(cached) " >&6
49672 # Assume that if we have lstat, we can also check symlinks.
49673 if test $ac_cv_func_lstat = yes; then
49674 ln -s conftest.tmp conftest.lnk
49676 if test "$cross_compiling" = yes; then :
49677 gl_cv_func_stat_file_slash="guessing no"
49679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49680 /* end confdefs.h. */
49681 #include <sys/stat.h>
49687 if (!stat ("conftest.tmp/", &st)) return 1;
49689 if (!stat ("conftest.lnk/", &st)) return 2;
49696 if ac_fn_c_try_run "$LINENO"; then :
49697 gl_cv_func_stat_file_slash=yes
49699 gl_cv_func_stat_file_slash=no
49701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49702 conftest.$ac_objext conftest.beam conftest.$ac_ext
49705 rm -f conftest.tmp conftest.lnk
49707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
49708 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
49709 case $gl_cv_func_stat_dir_slash in
49710 *no) REPLACE_STAT=1
49712 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
49715 case $gl_cv_func_stat_file_slash in
49716 *no) REPLACE_STAT=1
49718 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
49721 if test $REPLACE_STAT = 1; then
49730 gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext"
49742 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
49746 # Code from module stdarg:
49749 NEXT_STDARG_H='<stdarg.h>';
49750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
49751 $as_echo_n "checking for va_copy... " >&6; }
49752 if test "${gl_cv_func_va_copy+set}" = set; then :
49753 $as_echo_n "(cached) " >&6
49756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49757 /* end confdefs.h. */
49758 #include <stdarg.h>
49764 void (*func) (va_list, va_list) = va_copy;
49771 if ac_fn_c_try_compile "$LINENO"; then :
49772 gl_cv_func_va_copy=yes
49774 gl_cv_func_va_copy=no
49776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
49780 $as_echo "$gl_cv_func_va_copy" >&6; }
49781 if test $gl_cv_func_va_copy = no; then
49782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49783 /* end confdefs.h. */
49784 #if defined _AIX && !defined __GNUC__
49789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49790 $EGREP "vaccine" >/dev/null 2>&1; then :
49797 if test $gl_aixcc = yes; then
49811 if test $gl_cv_have_include_next = yes; then
49812 gl_cv_next_stdarg_h='<'stdarg.h'>'
49814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
49815 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
49816 if test "${gl_cv_next_stdarg_h+set}" = set; then :
49817 $as_echo_n "(cached) " >&6
49820 if test $ac_cv_header_stdarg_h = yes; then
49821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49822 /* end confdefs.h. */
49823 #include <stdarg.h>
49827 aix*) gl_absname_cpp="$ac_cpp -C" ;;
49828 *) gl_absname_cpp="$ac_cpp" ;;
49830 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
49831 sed -n '\#/stdarg.h#{
49832 s#.*"\(.*/stdarg.h\)".*#\1#
49838 gl_cv_next_stdarg_h='<'stdarg.h'>'
49842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
49843 $as_echo "$gl_cv_next_stdarg_h" >&6; }
49845 NEXT_STDARG_H=$gl_cv_next_stdarg_h
49847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
49848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
49849 gl_next_as_first_directive='<'stdarg.h'>'
49851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
49852 gl_next_as_first_directive=$gl_cv_next_stdarg_h
49854 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
49858 if test "$gl_cv_next_stdarg_h" = '""'; then
49859 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
49860 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
49864 saved_as_echo_n="$as_echo_n"
49866 if test "${gl_cv_func___va_copy+set}" = set; then :
49867 $as_echo_n "(cached) " >&6
49870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49871 /* end confdefs.h. */
49872 #include <stdarg.h>
49885 if ac_fn_c_try_compile "$LINENO"; then :
49886 gl_cv_func___va_copy=yes
49888 gl_cv_func___va_copy=no
49890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49893 as_echo_n="$saved_as_echo_n"
49895 if test $gl_cv_func___va_copy = yes; then
49897 $as_echo "#define va_copy __va_copy" >>confdefs.h
49902 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
49908 # Code from module stdbool:
49912 # Define two additional variables used in the Makefile substitution.
49914 if test "$ac_cv_header_stdbool_h" = yes; then
49917 STDBOOL_H='stdbool.h'
49921 if test "$ac_cv_type__Bool" = yes; then
49928 # Code from module stddef:
49932 if test $gt_cv_c_wchar_t = no; then
49936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
49937 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
49938 if test "${gl_cv_decl_null_works+set}" = set; then :
49939 $as_echo_n "(cached) " >&6
49941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49942 /* end confdefs.h. */
49943 #include <stddef.h>
49944 int test[2 * (sizeof NULL == sizeof (void *)) -1];
49954 if ac_fn_c_try_compile "$LINENO"; then :
49955 gl_cv_decl_null_works=yes
49957 gl_cv_decl_null_works=no
49959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
49962 $as_echo "$gl_cv_decl_null_works" >&6; }
49963 if test $gl_cv_decl_null_works = no; then
49967 if test -n "$STDDEF_H"; then
49980 if test $gl_cv_have_include_next = yes; then
49981 gl_cv_next_stddef_h='<'stddef.h'>'
49983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
49984 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
49985 if test "${gl_cv_next_stddef_h+set}" = set; then :
49986 $as_echo_n "(cached) " >&6
49989 if test $ac_cv_header_stddef_h = yes; then
49990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49991 /* end confdefs.h. */
49992 #include <stddef.h>
49996 aix*) gl_absname_cpp="$ac_cpp -C" ;;
49997 *) gl_absname_cpp="$ac_cpp" ;;
49999 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50000 sed -n '\#/stddef.h#{
50001 s#.*"\(.*/stddef.h\)".*#\1#
50007 gl_cv_next_stddef_h='<'stddef.h'>'
50011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
50012 $as_echo "$gl_cv_next_stddef_h" >&6; }
50014 NEXT_STDDEF_H=$gl_cv_next_stddef_h
50016 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50018 gl_next_as_first_directive='<'stddef.h'>'
50020 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50021 gl_next_as_first_directive=$gl_cv_next_stddef_h
50023 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
50029 # Code from module stdint:
50033 if test $ac_cv_type_long_long_int = yes; then
50034 HAVE_LONG_LONG_INT=1
50036 HAVE_LONG_LONG_INT=0
50040 if test $ac_cv_type_unsigned_long_long_int = yes; then
50041 HAVE_UNSIGNED_LONG_LONG_INT=1
50043 HAVE_UNSIGNED_LONG_LONG_INT=0
50047 if test $ac_cv_header_inttypes_h = yes; then
50054 if test $ac_cv_header_sys_types_h = yes; then
50073 if test $gl_cv_have_include_next = yes; then
50074 gl_cv_next_stdint_h='<'stdint.h'>'
50076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
50077 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
50078 if test "${gl_cv_next_stdint_h+set}" = set; then :
50079 $as_echo_n "(cached) " >&6
50082 if test $ac_cv_header_stdint_h = yes; then
50083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50084 /* end confdefs.h. */
50085 #include <stdint.h>
50089 aix*) gl_absname_cpp="$ac_cpp -C" ;;
50090 *) gl_absname_cpp="$ac_cpp" ;;
50092 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50093 sed -n '\#/stdint.h#{
50094 s#.*"\(.*/stdint.h\)".*#\1#
50100 gl_cv_next_stdint_h='<'stdint.h'>'
50104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
50105 $as_echo "$gl_cv_next_stdint_h" >&6; }
50107 NEXT_STDINT_H=$gl_cv_next_stdint_h
50109 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50111 gl_next_as_first_directive='<'stdint.h'>'
50113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50114 gl_next_as_first_directive=$gl_cv_next_stdint_h
50116 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
50120 if test $ac_cv_header_stdint_h = yes; then
50127 if test $ac_cv_header_stdint_h = yes; then
50128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
50129 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
50130 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
50131 $as_echo_n "(cached) " >&6
50133 gl_cv_header_working_stdint_h=no
50134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50135 /* end confdefs.h. */
50138 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
50139 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
50140 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
50141 #include <stdint.h>
50142 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
50143 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
50144 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
50148 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50149 included before <wchar.h>. */
50150 #include <stddef.h>
50151 #include <signal.h>
50153 # include <stdio.h>
50155 # include <wchar.h>
50160 int8_t a1 = INT8_MAX;
50161 int8_t a1min = INT8_MIN;
50164 int16_t a2 = INT16_MAX;
50165 int16_t a2min = INT16_MIN;
50168 int32_t a3 = INT32_MAX;
50169 int32_t a3min = INT32_MIN;
50172 int64_t a4 = INT64_MAX;
50173 int64_t a4min = INT64_MIN;
50176 uint8_t b1 = UINT8_MAX;
50178 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
50181 uint16_t b2 = UINT16_MAX;
50184 uint32_t b3 = UINT32_MAX;
50187 uint64_t b4 = UINT64_MAX;
50189 int_least8_t c1 = INT8_C (0x7f);
50190 int_least8_t c1max = INT_LEAST8_MAX;
50191 int_least8_t c1min = INT_LEAST8_MIN;
50192 int_least16_t c2 = INT16_C (0x7fff);
50193 int_least16_t c2max = INT_LEAST16_MAX;
50194 int_least16_t c2min = INT_LEAST16_MIN;
50195 int_least32_t c3 = INT32_C (0x7fffffff);
50196 int_least32_t c3max = INT_LEAST32_MAX;
50197 int_least32_t c3min = INT_LEAST32_MIN;
50198 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
50199 int_least64_t c4max = INT_LEAST64_MAX;
50200 int_least64_t c4min = INT_LEAST64_MIN;
50201 uint_least8_t d1 = UINT8_C (0xff);
50202 uint_least8_t d1max = UINT_LEAST8_MAX;
50203 uint_least16_t d2 = UINT16_C (0xffff);
50204 uint_least16_t d2max = UINT_LEAST16_MAX;
50205 uint_least32_t d3 = UINT32_C (0xffffffff);
50206 uint_least32_t d3max = UINT_LEAST32_MAX;
50207 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
50208 uint_least64_t d4max = UINT_LEAST64_MAX;
50209 int_fast8_t e1 = INT_FAST8_MAX;
50210 int_fast8_t e1min = INT_FAST8_MIN;
50211 int_fast16_t e2 = INT_FAST16_MAX;
50212 int_fast16_t e2min = INT_FAST16_MIN;
50213 int_fast32_t e3 = INT_FAST32_MAX;
50214 int_fast32_t e3min = INT_FAST32_MIN;
50215 int_fast64_t e4 = INT_FAST64_MAX;
50216 int_fast64_t e4min = INT_FAST64_MIN;
50217 uint_fast8_t f1 = UINT_FAST8_MAX;
50218 uint_fast16_t f2 = UINT_FAST16_MAX;
50219 uint_fast32_t f3 = UINT_FAST32_MAX;
50220 uint_fast64_t f4 = UINT_FAST64_MAX;
50222 intptr_t g = INTPTR_MAX;
50223 intptr_t gmin = INTPTR_MIN;
50226 uintptr_t h = UINTPTR_MAX;
50228 intmax_t i = INTMAX_MAX;
50229 uintmax_t j = UINTMAX_MAX;
50231 #include <limits.h> /* for CHAR_BIT */
50232 #define TYPE_MINIMUM(t) \
50233 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
50234 #define TYPE_MAXIMUM(t) \
50235 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
50238 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
50239 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
50241 /* Detect bug in FreeBSD 6.0 / ia64. */
50242 int check_SIG_ATOMIC:
50243 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
50244 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
50246 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
50248 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
50249 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
50251 /* Detect bug in mingw. */
50253 WINT_MIN == TYPE_MINIMUM (wint_t)
50254 && WINT_MAX == TYPE_MAXIMUM (wint_t)
50257 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
50259 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
50260 int check_UINT16_C:
50261 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
50263 /* Detect bugs in OpenBSD 3.9 stdint.h. */
50265 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
50268 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
50271 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
50274 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
50276 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
50277 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
50278 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
50279 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
50280 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
50281 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
50282 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
50283 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
50284 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
50285 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
50286 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
50297 if ac_fn_c_try_compile "$LINENO"; then :
50298 if test "$cross_compiling" = yes; then :
50299 gl_cv_header_working_stdint_h=yes
50302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50303 /* end confdefs.h. */
50306 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
50307 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
50308 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
50309 #include <stdint.h>
50312 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50313 included before <wchar.h>. */
50314 #include <stddef.h>
50315 #include <signal.h>
50317 # include <stdio.h>
50319 # include <wchar.h>
50324 #include <string.h>
50325 #define MVAL(macro) MVAL1(macro)
50326 #define MVAL1(expression) #expression
50327 static const char *macro_values[] =
50361 for (mv = macro_values; *mv != NULL; mv++)
50363 const char *value = *mv;
50364 /* Test whether it looks like a cast expression. */
50365 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
50366 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
50367 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
50368 || strncmp (value, "((int)"/*)*/, 6) == 0
50369 || strncmp (value, "((signed short)"/*)*/, 15) == 0
50370 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
50379 if ac_fn_c_try_run "$LINENO"; then :
50380 gl_cv_header_working_stdint_h=yes
50382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50383 conftest.$ac_objext conftest.beam conftest.$ac_ext
50388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
50392 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
50394 if test "$gl_cv_header_working_stdint_h" = yes; then
50397 for ac_header in sys/inttypes.h sys/bitypes.h
50399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50401 eval as_val=\$$as_ac_Header
50402 if test "x$as_val" = x""yes; then :
50403 cat >>confdefs.h <<_ACEOF
50404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50411 if test $ac_cv_header_sys_inttypes_h = yes; then
50412 HAVE_SYS_INTTYPES_H=1
50414 HAVE_SYS_INTTYPES_H=0
50417 if test $ac_cv_header_sys_bitypes_h = yes; then
50418 HAVE_SYS_BITYPES_H=1
50420 HAVE_SYS_BITYPES_H=0
50434 if test $APPLE_UNIVERSAL_BUILD = 0; then
50437 for gltype in ptrdiff_t size_t ; do
50438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
50439 $as_echo_n "checking for bit size of $gltype... " >&6; }
50440 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
50441 $as_echo_n "(cached) " >&6
50443 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
50444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50445 included before <wchar.h>. */
50446 #include <stddef.h>
50447 #include <signal.h>
50449 # include <stdio.h>
50451 # include <wchar.h>
50454 #include <limits.h>"; then :
50460 eval gl_cv_bitsizeof_${gltype}=\$result
50463 eval ac_res=\$gl_cv_bitsizeof_${gltype}
50464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50465 $as_echo "$ac_res" >&6; }
50466 eval result=\$gl_cv_bitsizeof_${gltype}
50467 if test $result = unknown; then
50470 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50471 cat >>confdefs.h <<_ACEOF
50472 #define BITSIZEOF_${GLTYPE} $result
50475 eval BITSIZEOF_${GLTYPE}=\$result
50482 for gltype in sig_atomic_t wchar_t wint_t ; do
50483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
50484 $as_echo_n "checking for bit size of $gltype... " >&6; }
50485 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
50486 $as_echo_n "(cached) " >&6
50488 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
50489 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50490 included before <wchar.h>. */
50491 #include <stddef.h>
50492 #include <signal.h>
50494 # include <stdio.h>
50496 # include <wchar.h>
50499 #include <limits.h>"; then :
50505 eval gl_cv_bitsizeof_${gltype}=\$result
50508 eval ac_res=\$gl_cv_bitsizeof_${gltype}
50509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50510 $as_echo "$ac_res" >&6; }
50511 eval result=\$gl_cv_bitsizeof_${gltype}
50512 if test $result = unknown; then
50515 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50516 cat >>confdefs.h <<_ACEOF
50517 #define BITSIZEOF_${GLTYPE} $result
50520 eval BITSIZEOF_${GLTYPE}=\$result
50526 for gltype in sig_atomic_t wchar_t wint_t ; do
50527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
50528 $as_echo_n "checking whether $gltype is signed... " >&6; }
50529 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
50530 $as_echo_n "(cached) " >&6
50532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50533 /* end confdefs.h. */
50535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50536 included before <wchar.h>. */
50537 #include <stddef.h>
50538 #include <signal.h>
50540 # include <stdio.h>
50542 # include <wchar.h>
50545 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
50554 if ac_fn_c_try_compile "$LINENO"; then :
50559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50560 eval gl_cv_type_${gltype}_signed=\$result
50563 eval ac_res=\$gl_cv_type_${gltype}_signed
50564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50565 $as_echo "$ac_res" >&6; }
50566 eval result=\$gl_cv_type_${gltype}_signed
50567 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50568 if test "$result" = yes; then
50569 cat >>confdefs.h <<_ACEOF
50570 #define HAVE_SIGNED_${GLTYPE} 1
50573 eval HAVE_SIGNED_${GLTYPE}=1
50575 eval HAVE_SIGNED_${GLTYPE}=0
50580 gl_cv_type_ptrdiff_t_signed=yes
50581 gl_cv_type_size_t_signed=no
50582 if test $APPLE_UNIVERSAL_BUILD = 0; then
50585 for gltype in ptrdiff_t size_t ; do
50586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
50587 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
50588 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
50589 $as_echo_n "(cached) " >&6
50591 eval gl_cv_type_${gltype}_suffix=no
50592 eval result=\$gl_cv_type_${gltype}_signed
50593 if test "$result" = yes; then
50598 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
50600 '') gltype1='int';;
50601 l) gltype1='long int';;
50602 ll) gltype1='long long int';;
50603 i64) gltype1='__int64';;
50604 u) gltype1='unsigned int';;
50605 ul) gltype1='unsigned long int';;
50606 ull) gltype1='unsigned long long int';;
50607 ui64)gltype1='unsigned __int64';;
50609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50610 /* end confdefs.h. */
50612 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50613 included before <wchar.h>. */
50614 #include <stddef.h>
50615 #include <signal.h>
50617 # include <stdio.h>
50619 # include <wchar.h>
50622 extern $gltype foo;
50623 extern $gltype1 foo;
50632 if ac_fn_c_try_compile "$LINENO"; then :
50633 eval gl_cv_type_${gltype}_suffix=\$glsuf
50635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50636 eval result=\$gl_cv_type_${gltype}_suffix
50637 test "$result" != no && break
50640 eval ac_res=\$gl_cv_type_${gltype}_suffix
50641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50642 $as_echo "$ac_res" >&6; }
50643 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50644 eval result=\$gl_cv_type_${gltype}_suffix
50645 test "$result" = no && result=
50646 eval ${GLTYPE}_SUFFIX=\$result
50647 cat >>confdefs.h <<_ACEOF
50648 #define ${GLTYPE}_SUFFIX $result
50657 for gltype in sig_atomic_t wchar_t wint_t ; do
50658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
50659 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
50660 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
50661 $as_echo_n "(cached) " >&6
50663 eval gl_cv_type_${gltype}_suffix=no
50664 eval result=\$gl_cv_type_${gltype}_signed
50665 if test "$result" = yes; then
50670 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
50672 '') gltype1='int';;
50673 l) gltype1='long int';;
50674 ll) gltype1='long long int';;
50675 i64) gltype1='__int64';;
50676 u) gltype1='unsigned int';;
50677 ul) gltype1='unsigned long int';;
50678 ull) gltype1='unsigned long long int';;
50679 ui64)gltype1='unsigned __int64';;
50681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50682 /* end confdefs.h. */
50684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50685 included before <wchar.h>. */
50686 #include <stddef.h>
50687 #include <signal.h>
50689 # include <stdio.h>
50691 # include <wchar.h>
50694 extern $gltype foo;
50695 extern $gltype1 foo;
50704 if ac_fn_c_try_compile "$LINENO"; then :
50705 eval gl_cv_type_${gltype}_suffix=\$glsuf
50707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50708 eval result=\$gl_cv_type_${gltype}_suffix
50709 test "$result" != no && break
50712 eval ac_res=\$gl_cv_type_${gltype}_suffix
50713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50714 $as_echo "$ac_res" >&6; }
50715 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
50716 eval result=\$gl_cv_type_${gltype}_suffix
50717 test "$result" = no && result=
50718 eval ${GLTYPE}_SUFFIX=\$result
50719 cat >>confdefs.h <<_ACEOF
50720 #define ${GLTYPE}_SUFFIX $result
50731 # Code from module stdio:
50748 if test $gl_cv_have_include_next = yes; then
50749 gl_cv_next_stdio_h='<'stdio.h'>'
50751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
50752 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
50753 if test "${gl_cv_next_stdio_h+set}" = set; then :
50754 $as_echo_n "(cached) " >&6
50757 if test $ac_cv_header_stdio_h = yes; then
50758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50759 /* end confdefs.h. */
50764 aix*) gl_absname_cpp="$ac_cpp -C" ;;
50765 *) gl_absname_cpp="$ac_cpp" ;;
50767 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50768 sed -n '\#/stdio.h#{
50769 s#.*"\(.*/stdio.h\)".*#\1#
50775 gl_cv_next_stdio_h='<'stdio.h'>'
50779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
50780 $as_echo "$gl_cv_next_stdio_h" >&6; }
50782 NEXT_STDIO_H=$gl_cv_next_stdio_h
50784 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50786 gl_next_as_first_directive='<'stdio.h'>'
50788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50789 gl_next_as_first_directive=$gl_cv_next_stdio_h
50791 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
50809 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
50810 REPLACE_STDIO_WRITE_FUNCS=1
50819 gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext"
50825 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
50826 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50828 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50829 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
50830 $as_echo_n "(cached) " >&6
50832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50833 /* end confdefs.h. */
50845 if ac_fn_c_try_compile "$LINENO"; then :
50846 eval "$as_gl_Symbol=yes"
50848 eval "$as_gl_Symbol=no"
50850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50852 eval ac_res=\$$as_gl_Symbol
50853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
50854 $as_echo "$ac_res" >&6; }
50855 eval as_val=\$$as_gl_Symbol
50856 if test "x$as_val" = x""yes; then :
50857 cat >>confdefs.h <<_ACEOF
50858 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50861 eval ac_cv_have_decl_$gl_func=yes
50866 # Code from module stdlib:
50881 if test $gl_cv_have_include_next = yes; then
50882 gl_cv_next_stdlib_h='<'stdlib.h'>'
50884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
50885 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
50886 if test "${gl_cv_next_stdlib_h+set}" = set; then :
50887 $as_echo_n "(cached) " >&6
50890 if test $ac_cv_header_stdlib_h = yes; then
50891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50892 /* end confdefs.h. */
50893 #include <stdlib.h>
50897 aix*) gl_absname_cpp="$ac_cpp -C" ;;
50898 *) gl_absname_cpp="$ac_cpp" ;;
50900 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50901 sed -n '\#/stdlib.h#{
50902 s#.*"\(.*/stdlib.h\)".*#\1#
50908 gl_cv_next_stdlib_h='<'stdlib.h'>'
50912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
50913 $as_echo "$gl_cv_next_stdlib_h" >&6; }
50915 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
50917 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50919 gl_next_as_first_directive='<'stdlib.h'>'
50921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50922 gl_next_as_first_directive=$gl_cv_next_stdlib_h
50924 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
50928 for ac_header in random.h
50930 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
50932 if test "x$ac_cv_header_random_h" = x""yes; then :
50933 cat >>confdefs.h <<_ACEOF
50934 #define HAVE_RANDOM_H 1
50941 if test $ac_cv_header_random_h = yes; then
50947 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
50949 # include <random.h>
50953 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
50955 cat >>confdefs.h <<_ACEOF
50956 #define HAVE_STRUCT_RANDOM_DATA 1
50961 HAVE_STRUCT_RANDOM_DATA=0
50966 for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
50967 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
50969 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50970 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
50971 $as_echo_n "(cached) " >&6
50973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50974 /* end confdefs.h. */
50975 #include <stdlib.h>
50976 #if HAVE_SYS_LOADAVG_H
50977 # include <sys/loadavg.h>
50980 # include <random.h>
50992 if ac_fn_c_try_compile "$LINENO"; then :
50993 eval "$as_gl_Symbol=yes"
50995 eval "$as_gl_Symbol=no"
50997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50999 eval ac_res=\$$as_gl_Symbol
51000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51001 $as_echo "$ac_res" >&6; }
51002 eval as_val=\$$as_gl_Symbol
51003 if test "x$as_val" = x""yes; then :
51004 cat >>confdefs.h <<_ACEOF
51005 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51008 eval ac_cv_have_decl_$gl_func=yes
51013 # Code from module stpcpy:
51028 for ac_func in stpcpy
51030 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
51031 if test "x$ac_cv_func_stpcpy" = x""yes; then :
51032 cat >>confdefs.h <<_ACEOF
51033 #define HAVE_STPCPY 1
51038 gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
51044 if test $ac_cv_func_stpcpy = no; then
51058 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
51062 # Code from module streq:
51063 # Code from module strerror:
51066 if test $REPLACE_STRERROR = 1; then
51075 gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
51078 cat >>confdefs.h <<_ACEOF
51079 #define REPLACE_STRERROR $REPLACE_STRERROR
51091 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
51095 # Code from module striconv:
51096 if test $gl_cond_libtool = false; then
51097 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51098 gl_libdeps="$gl_libdeps $LIBICONV"
51100 # Code from module striconveh:
51101 if test $gl_cond_libtool = false; then
51102 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
51103 gl_libdeps="$gl_libdeps $LIBICONV"
51105 # Code from module striconveha:
51106 # Code from module string:
51110 # Code from module strstr:
51113 if test $REPLACE_STRSTR = 0; then
51114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
51115 $as_echo_n "checking whether strstr works in linear time... " >&6; }
51116 if test "${gl_cv_func_strstr_linear+set}" = set; then :
51117 $as_echo_n "(cached) " >&6
51119 if test "$cross_compiling" = yes; then :
51120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51121 /* end confdefs.h. */
51123 #include <features.h>
51124 #ifdef __GNU_LIBRARY__
51125 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
51130 #include <cygwin/version.h>
51131 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
51137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51138 $EGREP "Lucky user" >/dev/null 2>&1; then :
51139 gl_cv_func_strstr_linear=yes
51141 gl_cv_func_strstr_linear="guessing no"
51147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51148 /* end confdefs.h. */
51150 #include <signal.h> /* for signal */
51151 #include <string.h> /* for memmem */
51152 #include <stdlib.h> /* for malloc */
51153 #include <unistd.h> /* for alarm */
51158 size_t m = 1000000;
51159 char *haystack = (char *) malloc (2 * m + 2);
51160 char *needle = (char *) malloc (m + 2);
51162 /* Failure to compile this test due to missing alarm is okay,
51163 since all such platforms (mingw) also have quadratic strstr. */
51164 signal (SIGALRM, SIG_DFL);
51166 /* Check for quadratic performance. */
51167 if (haystack && needle)
51169 memset (haystack, 'A', 2 * m);
51170 haystack[2 * m] = 'B';
51171 haystack[2 * m + 1] = 0;
51172 memset (needle, 'A', m);
51175 result = strstr (haystack, needle);
51182 if ac_fn_c_try_run "$LINENO"; then :
51183 gl_cv_func_strstr_linear=yes
51185 gl_cv_func_strstr_linear=no
51187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51188 conftest.$ac_objext conftest.beam conftest.$ac_ext
51193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
51194 $as_echo "$gl_cv_func_strstr_linear" >&6; }
51195 if test "$gl_cv_func_strstr_linear" != yes; then
51199 if test $REPLACE_STRSTR = 1; then
51208 gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
51212 # Code from module strstr-simple:
51216 if test "$gl_cv_func_memchr_works" != yes; then
51226 gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext"
51237 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
51241 # Code from module sys_stat:
51261 if test $gl_cv_have_include_next = yes; then
51262 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
51264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
51265 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
51266 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
51267 $as_echo_n "(cached) " >&6
51270 if test $ac_cv_header_sys_stat_h = yes; then
51271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51272 /* end confdefs.h. */
51273 #include <sys/stat.h>
51277 aix*) gl_absname_cpp="$ac_cpp -C" ;;
51278 *) gl_absname_cpp="$ac_cpp" ;;
51280 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51281 sed -n '\#/sys/stat.h#{
51282 s#.*"\(.*/sys/stat.h\)".*#\1#
51288 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
51292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
51293 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
51295 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
51297 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51299 gl_next_as_first_directive='<'sys/stat.h'>'
51301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51302 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
51304 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
51309 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
51310 #include <sys/stat.h>
51312 if test "x$ac_cv_type_nlink_t" = x""yes; then :
51316 $as_echo "#define nlink_t int" >>confdefs.h
51322 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
51323 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51325 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51326 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
51327 $as_echo_n "(cached) " >&6
51329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51330 /* end confdefs.h. */
51331 #include <sys/stat.h>
51342 if ac_fn_c_try_compile "$LINENO"; then :
51343 eval "$as_gl_Symbol=yes"
51345 eval "$as_gl_Symbol=no"
51347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51349 eval ac_res=\$$as_gl_Symbol
51350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51351 $as_echo "$ac_res" >&6; }
51352 eval as_val=\$$as_gl_Symbol
51353 if test "x$as_val" = x""yes; then :
51354 cat >>confdefs.h <<_ACEOF
51355 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51358 eval ac_cv_have_decl_$gl_func=yes
51364 # Code from module threadlib:
51369 # Code from module time:
51373 # Code from module tls:
51377 # Code from module uniconv/base:
51380 if { test "$HAVE_LIBUNISTRING" != yes \
51385 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51386 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51387 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51388 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51389 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51399 LIBUNISTRING_UNICONV_H='uniconv.h'
51401 LIBUNISTRING_UNICONV_H=
51405 # Code from module uniconv/u8-conv-from-enc:
51408 if { test "$HAVE_LIBUNISTRING" != yes \
51413 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51414 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51415 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51416 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51417 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51427 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE=
51428 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#'
51430 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#'
51431 LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE=
51435 # Code from module unilbrk/base:
51438 if { test "$HAVE_LIBUNISTRING" != yes \
51443 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51444 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51445 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51446 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51447 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51457 LIBUNISTRING_UNILBRK_H='unilbrk.h'
51459 LIBUNISTRING_UNILBRK_H=
51463 # Code from module unilbrk/tables:
51465 # Code from module unilbrk/u8-possible-linebreaks:
51468 if { test "$HAVE_LIBUNISTRING" != yes \
51473 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51474 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51475 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51476 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51477 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51487 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE=
51488 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#'
51490 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#'
51491 LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE=
51495 # Code from module unilbrk/u8-width-linebreaks:
51498 if { test "$HAVE_LIBUNISTRING" != yes \
51503 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51504 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51505 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51506 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51507 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51517 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE=
51518 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#'
51520 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#'
51521 LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE=
51525 # Code from module unilbrk/ulc-common:
51526 # Code from module unilbrk/ulc-width-linebreaks:
51529 if { test "$HAVE_LIBUNISTRING" != yes \
51534 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51535 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51536 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51537 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51538 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51548 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE=
51549 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#'
51551 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#'
51552 LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE=
51556 # Code from module unistd:
51573 if test $gl_cv_have_include_next = yes; then
51574 gl_cv_next_unistd_h='<'unistd.h'>'
51576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
51577 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
51578 if test "${gl_cv_next_unistd_h+set}" = set; then :
51579 $as_echo_n "(cached) " >&6
51582 if test $ac_cv_header_unistd_h = yes; then
51583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51584 /* end confdefs.h. */
51585 #include <unistd.h>
51589 aix*) gl_absname_cpp="$ac_cpp -C" ;;
51590 *) gl_absname_cpp="$ac_cpp" ;;
51592 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
51593 sed -n '\#/unistd.h#{
51594 s#.*"\(.*/unistd.h\)".*#\1#
51600 gl_cv_next_unistd_h='<'unistd.h'>'
51604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
51605 $as_echo "$gl_cv_next_unistd_h" >&6; }
51607 NEXT_UNISTD_H=$gl_cv_next_unistd_h
51609 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
51610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
51611 gl_next_as_first_directive='<'unistd.h'>'
51613 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
51614 gl_next_as_first_directive=$gl_cv_next_unistd_h
51616 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
51628 if test $ac_cv_header_unistd_h = yes; then
51636 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
51637 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
51638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
51639 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
51640 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
51641 $as_echo_n "(cached) " >&6
51643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51644 /* end confdefs.h. */
51645 #include <unistd.h>
51646 /* Some systems declare various items in the wrong headers. */
51648 # include <fcntl.h>
51649 # include <stdio.h>
51650 # include <stdlib.h>
51651 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
51665 if ac_fn_c_try_compile "$LINENO"; then :
51666 eval "$as_gl_Symbol=yes"
51668 eval "$as_gl_Symbol=no"
51670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51672 eval ac_res=\$$as_gl_Symbol
51673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
51674 $as_echo "$ac_res" >&6; }
51675 eval as_val=\$$as_gl_Symbol
51676 if test "x$as_val" = x""yes; then :
51677 cat >>confdefs.h <<_ACEOF
51678 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51681 eval ac_cv_have_decl_$gl_func=yes
51686 # Code from module unistr/base:
51689 if { test "$HAVE_LIBUNISTRING" != yes \
51694 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51695 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51696 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51697 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51698 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
51708 LIBUNISTRING_UNISTR_H='unistr.h'
51710 LIBUNISTRING_UNISTR_H=
51714 # Code from module unistr/u16-mbtouc:
51717 cat >>confdefs.h <<_ACEOF
51718 #define GNULIB_UNISTR_U16_MBTOUC 1
51724 if { test "$HAVE_LIBUNISTRING" != yes \
51729 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51730 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51731 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51732 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51733 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51743 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE=
51744 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#'
51746 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#'
51747 LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE=
51751 # Code from module unistr/u8-check:
51754 if { test "$HAVE_LIBUNISTRING" != yes \
51759 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51760 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51761 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51762 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51763 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51773 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE=
51774 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#'
51776 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#'
51777 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE=
51781 # Code from module unistr/u8-mblen:
51784 if { test "$HAVE_LIBUNISTRING" != yes \
51789 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51790 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51791 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51792 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51793 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51803 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE=
51804 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#'
51806 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#'
51807 LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE=
51811 # Code from module unistr/u8-mbtouc:
51814 cat >>confdefs.h <<_ACEOF
51815 #define GNULIB_UNISTR_U8_MBTOUC 1
51821 if { test "$HAVE_LIBUNISTRING" != yes \
51826 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51827 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51828 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51829 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51830 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51840 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE=
51841 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#'
51843 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#'
51844 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE=
51848 # Code from module unistr/u8-mbtouc-unsafe:
51851 cat >>confdefs.h <<_ACEOF
51852 #define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
51858 if { test "$HAVE_LIBUNISTRING" != yes \
51863 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51864 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51865 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51866 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51867 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51877 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE=
51878 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#'
51880 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#'
51881 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE=
51885 # Code from module unistr/u8-mbtoucr:
51888 cat >>confdefs.h <<_ACEOF
51889 #define GNULIB_UNISTR_U8_MBTOUCR 1
51895 if { test "$HAVE_LIBUNISTRING" != yes \
51900 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51901 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51902 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51903 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51904 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51914 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
51915 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
51917 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
51918 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
51922 # Code from module unistr/u8-prev:
51925 if { test "$HAVE_LIBUNISTRING" != yes \
51930 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51931 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51932 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51933 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51934 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51944 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE=
51945 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#'
51947 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#'
51948 LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE=
51952 # Code from module unistr/u8-uctomb:
51955 cat >>confdefs.h <<_ACEOF
51956 #define GNULIB_UNISTR_U8_UCTOMB 1
51962 if { test "$HAVE_LIBUNISTRING" != yes \
51967 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51968 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51969 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
51970 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
51971 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
51981 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
51982 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
51984 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
51985 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
51989 # Code from module unitypes:
51992 if { test "$HAVE_LIBUNISTRING" != yes \
51997 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
51998 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
51999 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52000 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52001 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52011 LIBUNISTRING_UNITYPES_H='unitypes.h'
52013 LIBUNISTRING_UNITYPES_H=
52017 # Code from module uniwidth/base:
52020 if { test "$HAVE_LIBUNISTRING" != yes \
52025 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52026 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52027 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52028 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52029 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52039 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
52041 LIBUNISTRING_UNIWIDTH_H=
52045 # Code from module uniwidth/width:
52048 if { test "$HAVE_LIBUNISTRING" != yes \
52053 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
52054 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
52055 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
52056 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
52057 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
52067 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
52068 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
52070 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
52071 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
52075 # Code from module unlocked-io:
52078 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
52175 # Code from module unused-parameter:
52176 # Code from module vasnprintf:
52185 if test $ac_cv_func_vasnprintf = no; then
52202 gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext"
52212 gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext"
52222 gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext"
52232 gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext"
52234 if test $ac_cv_func_vasnprintf = yes; then
52236 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
52249 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
52250 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
52254 $as_echo "#define ptrdiff_t long" >>confdefs.h
52267 # Code from module vasprintf:
52269 for ac_func in vasprintf
52271 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
52272 if test "x$ac_cv_func_vasprintf" = x""yes; then :
52273 cat >>confdefs.h <<_ACEOF
52274 #define HAVE_VASPRINTF 1
52280 if test $ac_cv_func_vasprintf = no; then
52290 gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
52300 gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext"
52303 if test $ac_cv_func_vasprintf = yes; then
52304 REPLACE_VASPRINTF=1
52325 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
52331 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
52335 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
52337 # Code from module verify:
52338 # Code from module warn-on-use:
52339 # Code from module wchar:
52362 if test $gl_cv_have_include_next = yes; then
52363 gl_cv_next_wchar_h='<'wchar.h'>'
52365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
52366 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
52367 if test "${gl_cv_next_wchar_h+set}" = set; then :
52368 $as_echo_n "(cached) " >&6
52371 if test $ac_cv_header_wchar_h = yes; then
52372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52373 /* end confdefs.h. */
52378 aix*) gl_absname_cpp="$ac_cpp -C" ;;
52379 *) gl_absname_cpp="$ac_cpp" ;;
52381 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52382 sed -n '\#/wchar.h#{
52383 s#.*"\(.*/wchar.h\)".*#\1#
52389 gl_cv_next_wchar_h='<'wchar.h'>'
52393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
52394 $as_echo "$gl_cv_next_wchar_h" >&6; }
52396 NEXT_WCHAR_H=$gl_cv_next_wchar_h
52398 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52400 gl_next_as_first_directive='<'wchar.h'>'
52402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52403 gl_next_as_first_directive=$gl_cv_next_wchar_h
52405 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
52409 if test $ac_cv_header_wchar_h = yes; then
52417 if test $gt_cv_c_wint_t = yes; then
52425 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
52426 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
52427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
52428 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
52429 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
52430 $as_echo_n "(cached) " >&6
52432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52433 /* end confdefs.h. */
52435 /* Some systems require additional headers. */
52437 # include <stddef.h>
52438 # include <stdio.h>
52452 if ac_fn_c_try_compile "$LINENO"; then :
52453 eval "$as_gl_Symbol=yes"
52455 eval "$as_gl_Symbol=no"
52457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52459 eval ac_res=\$$as_gl_Symbol
52460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
52461 $as_echo "$ac_res" >&6; }
52462 eval as_val=\$$as_gl_Symbol
52463 if test "x$as_val" = x""yes; then :
52464 cat >>confdefs.h <<_ACEOF
52465 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
52468 eval ac_cv_have_decl_$gl_func=yes
52473 # Code from module wctype:
52484 if test $ac_cv_func_iswcntrl = yes; then
52497 if test $ac_cv_func_iswblank = yes; then
52513 if test $gt_cv_c_wint_t = yes; then
52520 if test $ac_cv_header_wctype_h = yes; then
52521 if test $ac_cv_func_iswcntrl = yes; then
52522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
52523 $as_echo_n "checking whether iswcntrl works... " >&6; }
52524 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
52525 $as_echo_n "(cached) " >&6
52528 if test "$cross_compiling" = yes; then :
52529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52530 /* end confdefs.h. */
52531 #include <stdlib.h>
52532 #if __GNU_LIBRARY__ == 1
52533 Linux libc5 i18n is broken.
52543 if ac_fn_c_try_compile "$LINENO"; then :
52544 gl_cv_func_iswcntrl_works=yes
52546 gl_cv_func_iswcntrl_works=no
52548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52552 /* end confdefs.h. */
52554 #include <stddef.h>
52558 #include <wctype.h>
52559 int main () { return iswprint ('x') == 0; }
52561 if ac_fn_c_try_run "$LINENO"; then :
52562 gl_cv_func_iswcntrl_works=yes
52564 gl_cv_func_iswcntrl_works=no
52566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52567 conftest.$ac_objext conftest.beam conftest.$ac_ext
52572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
52573 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
52587 if test $gl_cv_have_include_next = yes; then
52588 gl_cv_next_wctype_h='<'wctype.h'>'
52590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
52591 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
52592 if test "${gl_cv_next_wctype_h+set}" = set; then :
52593 $as_echo_n "(cached) " >&6
52596 if test $ac_cv_header_wctype_h = yes; then
52597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52598 /* end confdefs.h. */
52599 #include <wctype.h>
52603 aix*) gl_absname_cpp="$ac_cpp -C" ;;
52604 *) gl_absname_cpp="$ac_cpp" ;;
52606 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
52607 sed -n '\#/wctype.h#{
52608 s#.*"\(.*/wctype.h\)".*#\1#
52614 gl_cv_next_wctype_h='<'wctype.h'>'
52618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
52619 $as_echo "$gl_cv_next_wctype_h" >&6; }
52621 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
52623 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
52624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
52625 gl_next_as_first_directive='<'wctype.h'>'
52627 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
52628 gl_next_as_first_directive=$gl_cv_next_wctype_h
52630 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
52640 if test "$gl_cv_func_iswcntrl_works" = no; then
52647 # Code from module wcwidth:
52671 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
52672 /* AIX 3.2.5 declares wcwidth in <string.h>. */
52673 #include <string.h>
52674 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
52676 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
52677 before <wchar.h>. */
52678 #include <stddef.h>
52684 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then :
52690 cat >>confdefs.h <<_ACEOF
52691 #define HAVE_DECL_WCWIDTH $ac_have_decl
52694 if test $ac_cv_have_decl_wcwidth != yes; then
52695 HAVE_DECL_WCWIDTH=0
52698 if test $ac_cv_func_wcwidth = yes; then
52699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
52700 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
52701 if test "${gl_cv_func_wcwidth_works+set}" = set; then :
52702 $as_echo_n "(cached) " >&6
52705 if test "$cross_compiling" = yes; then :
52708 # Guess yes on glibc systems.
52709 *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
52710 *) gl_cv_func_wcwidth_works="guessing no";;
52714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52715 /* end confdefs.h. */
52717 #include <locale.h>
52718 /* AIX 3.2.5 declares wcwidth in <string.h>. */
52719 #include <string.h>
52720 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
52722 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
52723 before <wchar.h>. */
52724 #include <stddef.h>
52728 #if !HAVE_DECL_WCWIDTH
52730 # ifdef __cplusplus
52737 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
52738 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
52743 if ac_fn_c_try_run "$LINENO"; then :
52744 gl_cv_func_wcwidth_works=yes
52746 gl_cv_func_wcwidth_works=no
52748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52749 conftest.$ac_objext conftest.beam conftest.$ac_ext
52754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
52755 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
52756 case "$gl_cv_func_wcwidth_works" in
52758 *no) REPLACE_WCWIDTH=1 ;;
52761 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
52770 gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
52773 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
52774 || test $HAVE_DECL_WCWIDTH = 0; then
52787 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
52791 # Code from module xalloc:
52792 # Code from module xalloc-die:
52793 # Code from module xconcat-filename:
52794 # Code from module xerror:
52795 # Code from module xmalloca:
52796 # Code from module xsize:
52800 for ac_header in stdint.h
52802 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
52803 if test "x$ac_cv_header_stdint_h" = x""yes; then :
52804 cat >>confdefs.h <<_ACEOF
52805 #define HAVE_STDINT_H 1
52813 # Code from module xstriconv:
52814 # Code from module xvasprintf:
52820 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
52822 # End of code from modules
52843 gl_source_base='tests'
52844 gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
52846 gl_module_indicator_condition=$gtpotests_WITNESS
52858 for ac_header in pwd.h
52860 ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
52861 if test "x$ac_cv_header_pwd_h" = x""yes; then :
52862 cat >>confdefs.h <<_ACEOF
52863 #define HAVE_PWD_H 1
52871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
52872 $as_echo_n "checking for inline... " >&6; }
52873 if test "${ac_cv_c_inline+set}" = set; then :
52874 $as_echo_n "(cached) " >&6
52877 for ac_kw in inline __inline__ __inline; do
52878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52879 /* end confdefs.h. */
52880 #ifndef __cplusplus
52882 static $ac_kw foo_t static_foo () {return 0; }
52883 $ac_kw foo_t foo () {return 0; }
52887 if ac_fn_c_try_compile "$LINENO"; then :
52888 ac_cv_c_inline=$ac_kw
52890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52891 test "$ac_cv_c_inline" != no && break
52895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
52896 $as_echo "$ac_cv_c_inline" >&6; }
52898 case $ac_cv_c_inline in
52901 case $ac_cv_c_inline in
52903 *) ac_val=$ac_cv_c_inline;;
52905 cat >>confdefs.h <<_ACEOF
52906 #ifndef __cplusplus
52907 #define inline $ac_val
52914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
52915 $as_echo_n "checking for unsigned long long int... " >&6; }
52916 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
52917 $as_echo_n "(cached) " >&6
52919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52920 /* end confdefs.h. */
52922 /* For now, do not test the preprocessor; as of 2007 there are too many
52923 implementations with broken preprocessors. Perhaps this can
52924 be revisited in 2012. In the meantime, code should not expect
52925 #if to work with literals wider than 32 bits. */
52926 /* Test literals. */
52927 long long int ll = 9223372036854775807ll;
52928 long long int nll = -9223372036854775807LL;
52929 unsigned long long int ull = 18446744073709551615ULL;
52930 /* Test constant expressions. */
52931 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
52933 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
52939 /* Test availability of runtime routines for shift and division. */
52940 long long int llmax = 9223372036854775807ll;
52941 unsigned long long int ullmax = 18446744073709551615ull;
52942 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
52943 | (llmax / ll) | (llmax % ll)
52944 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
52945 | (ullmax / ull) | (ullmax % ull));
52951 if ac_fn_c_try_link "$LINENO"; then :
52952 ac_cv_type_unsigned_long_long_int=yes
52954 ac_cv_type_unsigned_long_long_int=no
52956 rm -f core conftest.err conftest.$ac_objext \
52957 conftest$ac_exeext conftest.$ac_ext
52959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
52960 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
52961 if test $ac_cv_type_unsigned_long_long_int = yes; then
52963 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
52967 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
52968 if test "x$ac_cv_type_size_t" = x""yes; then :
52972 cat >>confdefs.h <<_ACEOF
52973 #define size_t unsigned int
52978 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
52979 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
52981 cat >>confdefs.h <<_ACEOF
52982 #define HAVE_PTRDIFF_T 1
52989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
52990 $as_echo_n "checking for ssize_t... " >&6; }
52991 if test "${gt_cv_ssize_t+set}" = set; then :
52992 $as_echo_n "(cached) " >&6
52994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52995 /* end confdefs.h. */
52996 #include <sys/types.h>
53000 int x = sizeof (ssize_t *) + sizeof (ssize_t);
53006 if ac_fn_c_try_compile "$LINENO"; then :
53011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
53014 $as_echo "$gt_cv_ssize_t" >&6; }
53015 if test $gt_cv_ssize_t = no; then
53017 $as_echo "#define ssize_t int" >>confdefs.h
53021 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
53022 if test "x$ac_cv_type_pid_t" = x""yes; then :
53026 cat >>confdefs.h <<_ACEOF
53033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
53034 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
53035 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
53036 $as_echo_n "(cached) " >&6
53038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53039 /* end confdefs.h. */
53041 #include <features.h>
53042 #ifdef __GNU_LIBRARY__
53043 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
53049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53050 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
53051 ac_cv_gnu_library_2_1=yes
53053 ac_cv_gnu_library_2_1=no
53060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
53061 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
53063 GLIBC21="$ac_cv_gnu_library_2_1"
53066 if test $GLIBC21 = yes; then
53067 ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include <xlocale.h>
53069 if test "x$ac_cv_member_struct___locale_struct___names" = x""yes; then :
53071 cat >>confdefs.h <<_ACEOF
53072 #define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
53080 for ac_func in select
53082 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
53083 if test "x$ac_cv_func_select" = x""yes; then :
53084 cat >>confdefs.h <<_ACEOF
53085 #define HAVE_SELECT 1
53091 for ac_header in vfork.h
53093 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
53094 if test "x$ac_cv_header_vfork_h" = x""yes; then :
53095 cat >>confdefs.h <<_ACEOF
53096 #define HAVE_VFORK_H 1
53103 for ac_func in fork vfork
53105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
53107 eval as_val=\$$as_ac_var
53108 if test "x$as_val" = x""yes; then :
53109 cat >>confdefs.h <<_ACEOF
53110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53116 if test "x$ac_cv_func_fork" = xyes; then
53117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
53118 $as_echo_n "checking for working fork... " >&6; }
53119 if test "${ac_cv_func_fork_works+set}" = set; then :
53120 $as_echo_n "(cached) " >&6
53122 if test "$cross_compiling" = yes; then :
53123 ac_cv_func_fork_works=cross
53125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53126 /* end confdefs.h. */
53127 $ac_includes_default
53132 /* By Ruediger Kuhlmann. */
53133 return fork () < 0;
53139 if ac_fn_c_try_run "$LINENO"; then :
53140 ac_cv_func_fork_works=yes
53142 ac_cv_func_fork_works=no
53144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53145 conftest.$ac_objext conftest.beam conftest.$ac_ext
53149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
53150 $as_echo "$ac_cv_func_fork_works" >&6; }
53153 ac_cv_func_fork_works=$ac_cv_func_fork
53155 if test "x$ac_cv_func_fork_works" = xcross; then
53157 *-*-amigaos* | *-*-msdosdjgpp*)
53158 # Override, as these systems have only a dummy fork() stub
53159 ac_cv_func_fork_works=no
53162 ac_cv_func_fork_works=yes
53165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
53166 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
53168 ac_cv_func_vfork_works=$ac_cv_func_vfork
53169 if test "x$ac_cv_func_vfork" = xyes; then
53170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
53171 $as_echo_n "checking for working vfork... " >&6; }
53172 if test "${ac_cv_func_vfork_works+set}" = set; then :
53173 $as_echo_n "(cached) " >&6
53175 if test "$cross_compiling" = yes; then :
53176 ac_cv_func_vfork_works=cross
53178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53179 /* end confdefs.h. */
53180 /* Thanks to Paul Eggert for this test. */
53181 $ac_includes_default
53182 #include <sys/wait.h>
53183 #ifdef HAVE_VFORK_H
53184 # include <vfork.h>
53186 /* On some sparc systems, changes by the child to local and incoming
53187 argument registers are propagated back to the parent. The compiler
53188 is told about this with #include <vfork.h>, but some compilers
53189 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
53190 static variable whose address is put into a register that is
53191 clobbered by the vfork. */
53194 sparc_address_test (int arg)
53196 sparc_address_test (arg) int arg;
53199 static pid_t child;
53217 pid_t parent = getpid ();
53220 sparc_address_test (0);
53225 /* Here is another test for sparc vfork register problems. This
53226 test uses lots of local variables, at least as many local
53227 variables as main has allocated so far including compiler
53228 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
53229 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
53230 reuse the register of parent for one of the local variables,
53231 since it will think that parent can't possibly be used any more
53232 in this routine. Assigning to the local variable will thus
53233 munge parent in the parent process. */
53235 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
53236 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
53237 /* Convince the compiler that p..p7 are live; otherwise, it might
53238 use the same hardware register for all 8 local variables. */
53239 if (p != p1 || p != p2 || p != p3 || p != p4
53240 || p != p5 || p != p6 || p != p7)
53243 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
53244 from child file descriptors. If the child closes a descriptor
53245 before it execs or exits, this munges the parent's descriptor
53246 as well. Test for this by closing stdout in the child. */
53247 _exit(close(fileno(stdout)) != 0);
53252 while (wait(&status) != child)
53255 /* Was there some problem with vforking? */
53258 /* Did the child fail? (This shouldn't happen.) */
53261 /* Did the vfork/compiler bug occur? */
53262 || parent != getpid()
53264 /* Did the file descriptor bug occur? */
53265 || fstat(fileno(stdout), &st) != 0
53270 if ac_fn_c_try_run "$LINENO"; then :
53271 ac_cv_func_vfork_works=yes
53273 ac_cv_func_vfork_works=no
53275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53276 conftest.$ac_objext conftest.beam conftest.$ac_ext
53280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
53281 $as_echo "$ac_cv_func_vfork_works" >&6; }
53284 if test "x$ac_cv_func_fork_works" = xcross; then
53285 ac_cv_func_vfork_works=$ac_cv_func_vfork
53286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
53287 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
53290 if test "x$ac_cv_func_vfork_works" = xyes; then
53292 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
53296 $as_echo "#define vfork fork" >>confdefs.h
53299 if test "x$ac_cv_func_fork_works" = xyes; then
53301 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
53306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5
53307 $as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
53308 if test "${gt_cv_siginfo_t+set}" = set; then :
53309 $as_echo_n "(cached) " >&6
53311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53312 /* end confdefs.h. */
53314 #include <signal.h>
53319 struct sigaction action;
53321 action.sa_flags = SA_SIGINFO;
53322 action.sa_sigaction = (void *) 0;
53328 if ac_fn_c_try_compile "$LINENO"; then :
53329 gt_cv_siginfo_t=yes
53333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5
53336 $as_echo "$gt_cv_siginfo_t" >&6; }
53337 if test $gt_cv_siginfo_t = yes; then
53339 $as_echo "#define HAVE_SIGINFO 1" >>confdefs.h
53344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5
53345 $as_echo_n "checking for setlocale declaration... " >&6; }
53346 if test "${gt_cv_proto_setlocale+set}" = set; then :
53347 $as_echo_n "(cached) " >&6
53350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53351 /* end confdefs.h. */
53353 #include <stdlib.h>
53354 #include <locale.h>
53359 #if defined(__STDC__) || defined(__cplusplus)
53360 char *setlocale (int category, char *locale);
53373 if ac_fn_c_try_compile "$LINENO"; then :
53374 gt_cv_proto_setlocale_arg1=""
53376 gt_cv_proto_setlocale_arg1="const"
53378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53379 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
53382 gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
53383 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
53384 $gt_cv_proto_setlocale" >&5
53386 $gt_cv_proto_setlocale" >&6; }
53388 cat >>confdefs.h <<_ACEOF
53389 #define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
53394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
53395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
53396 if test "${ac_cv_c_bigendian+set}" = set; then :
53397 $as_echo_n "(cached) " >&6
53399 ac_cv_c_bigendian=unknown
53400 # See if we're dealing with a universal compiler.
53401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53402 /* end confdefs.h. */
53403 #ifndef __APPLE_CC__
53404 not a universal capable compiler
53409 if ac_fn_c_try_compile "$LINENO"; then :
53411 # Check for potential -arch flags. It is not universal unless
53412 # there are at least two -arch flags with different values.
53415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
53416 if test -n "$ac_prev"; then
53418 i?86 | x86_64 | ppc | ppc64)
53419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
53422 ac_cv_c_bigendian=universal
53428 elif test "x$ac_word" = "x-arch"; then
53433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53434 if test $ac_cv_c_bigendian = unknown; then
53435 # See if sys/param.h defines the BYTE_ORDER macro.
53436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53437 /* end confdefs.h. */
53438 #include <sys/types.h>
53439 #include <sys/param.h>
53444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
53445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
53447 bogus endian macros
53454 if ac_fn_c_try_compile "$LINENO"; then :
53455 # It does; now see whether it defined to BIG_ENDIAN or not.
53456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53457 /* end confdefs.h. */
53458 #include <sys/types.h>
53459 #include <sys/param.h>
53464 #if BYTE_ORDER != BIG_ENDIAN
53472 if ac_fn_c_try_compile "$LINENO"; then :
53473 ac_cv_c_bigendian=yes
53475 ac_cv_c_bigendian=no
53477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53481 if test $ac_cv_c_bigendian = unknown; then
53482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
53483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53484 /* end confdefs.h. */
53485 #include <limits.h>
53490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
53491 bogus endian macros
53498 if ac_fn_c_try_compile "$LINENO"; then :
53499 # It does; now see whether it defined to _BIG_ENDIAN or not.
53500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53501 /* end confdefs.h. */
53502 #include <limits.h>
53507 #ifndef _BIG_ENDIAN
53515 if ac_fn_c_try_compile "$LINENO"; then :
53516 ac_cv_c_bigendian=yes
53518 ac_cv_c_bigendian=no
53520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53524 if test $ac_cv_c_bigendian = unknown; then
53525 # Compile a test program.
53526 if test "$cross_compiling" = yes; then :
53527 # Try to guess by grepping values from an object file.
53528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53529 /* end confdefs.h. */
53530 short int ascii_mm[] =
53531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
53532 short int ascii_ii[] =
53533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
53534 int use_ascii (int i) {
53535 return ascii_mm[i] + ascii_ii[i];
53537 short int ebcdic_ii[] =
53538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
53539 short int ebcdic_mm[] =
53540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
53541 int use_ebcdic (int i) {
53542 return ebcdic_mm[i] + ebcdic_ii[i];
53549 return use_ascii (foo) == use_ebcdic (foo);
53554 if ac_fn_c_try_compile "$LINENO"; then :
53555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
53556 ac_cv_c_bigendian=yes
53558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
53559 if test "$ac_cv_c_bigendian" = unknown; then
53560 ac_cv_c_bigendian=no
53562 # finding both strings is unlikely to happen, but who knows?
53563 ac_cv_c_bigendian=unknown
53567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53570 /* end confdefs.h. */
53571 $ac_includes_default
53576 /* Are we little or big endian? From Harbison&Steele. */
53580 char c[sizeof (long int)];
53583 return u.c[sizeof (long int) - 1] == 1;
53589 if ac_fn_c_try_run "$LINENO"; then :
53590 ac_cv_c_bigendian=no
53592 ac_cv_c_bigendian=yes
53594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53595 conftest.$ac_objext conftest.beam conftest.$ac_ext
53600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
53601 $as_echo "$ac_cv_c_bigendian" >&6; }
53602 case $ac_cv_c_bigendian in #(
53608 endianness=universal
53611 echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
53612 echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
53616 if test $endianness != universal; then
53618 cat >>confdefs.h <<_ACEOF
53619 #define ENDIANNESS $endianness
53626 for ac_header in arpa/inet.h
53628 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
53629 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
53630 cat >>confdefs.h <<_ACEOF
53631 #define HAVE_ARPA_INET_H 1
53638 for ac_func in gethostname gethostbyname inet_ntop
53640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
53642 eval as_val=\$$as_ac_var
53643 if test "x$as_val" = x""yes; then :
53644 cat >>confdefs.h <<_ACEOF
53645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
53653 $as_echo_n "checking for IPv6 sockets... " >&6; }
53654 if test "${gt_cv_socket_ipv6+set}" = set; then :
53655 $as_echo_n "(cached) " >&6
53658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53659 /* end confdefs.h. */
53661 #include <sys/types.h>
53662 #include <sys/socket.h>
53663 #include <netinet/in.h>
53667 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
53672 if ac_fn_c_try_compile "$LINENO"; then :
53673 gt_cv_socket_ipv6=yes
53675 gt_cv_socket_ipv6=no
53677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5
53682 $as_echo "$gt_cv_socket_ipv6" >&6; }
53683 if test $gt_cv_socket_ipv6 = yes; then
53685 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
53690 if test "$enable_shared" = yes; then
53692 mingw* | cygwin*) is_woe32dll=yes ;;
53693 *) is_woe32dll=no ;;
53698 if test $is_woe32dll = yes; then
53706 if test $is_woe32dll = yes; then
53708 $as_echo "#define WOE32DLL 1" >>confdefs.h
53712 if test -n "$GETOPT_H"; then
53713 GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT"
53715 GETTEXTLIB_EXPORTS_FLAGS=
53725 $as_echo "#define DYNLOAD_LIBEXPAT 1" >>confdefs.h
53748 acl_save_prefix="$prefix"
53749 prefix="$acl_final_prefix"
53750 acl_save_exec_prefix="$exec_prefix"
53751 exec_prefix="$acl_final_exec_prefix"
53753 eval additional_includedir=\"$includedir\"
53754 eval additional_libdir=\"$libdir\"
53756 exec_prefix="$acl_save_exec_prefix"
53757 prefix="$acl_save_prefix"
53760 # Check whether --with-libexpat-prefix was given.
53761 if test "${with_libexpat_prefix+set}" = set; then :
53762 withval=$with_libexpat_prefix;
53763 if test "X$withval" = "Xno"; then
53766 if test "X$withval" = "X"; then
53768 acl_save_prefix="$prefix"
53769 prefix="$acl_final_prefix"
53770 acl_save_exec_prefix="$exec_prefix"
53771 exec_prefix="$acl_final_exec_prefix"
53773 eval additional_includedir=\"$includedir\"
53774 eval additional_libdir=\"$libdir\"
53776 exec_prefix="$acl_save_exec_prefix"
53777 prefix="$acl_save_prefix"
53780 additional_includedir="$withval/include"
53781 additional_libdir="$withval/$acl_libdirstem"
53782 if test "$acl_libdirstem2" != "$acl_libdirstem" \
53783 && ! test -d "$withval/$acl_libdirstem"; then
53784 additional_libdir="$withval/$acl_libdirstem2"
53798 names_already_handled=
53799 names_next_round='expat '
53800 while test -n "$names_next_round"; do
53801 names_this_round="$names_next_round"
53803 for name in $names_this_round; do
53805 for n in $names_already_handled; do
53806 if test "$n" = "$name"; then
53807 already_handled=yes
53811 if test -z "$already_handled"; then
53812 names_already_handled="$names_already_handled $name"
53813 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
53814 eval value=\"\$HAVE_LIB$uppername\"
53815 if test -n "$value"; then
53816 if test "$value" = yes; then
53817 eval value=\"\$LIB$uppername\"
53818 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
53819 eval value=\"\$LTLIB$uppername\"
53820 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
53829 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
53830 if test -n "$acl_shlibext"; then
53831 shrext=".$acl_shlibext" # typically: shrext=.so
53835 if test $use_additional = yes; then
53836 dir="$additional_libdir"
53837 if test -n "$acl_shlibext"; then
53838 if test -f "$dir/$libname$shrext"; then
53840 found_so="$dir/$libname$shrext"
53842 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53843 ver=`(cd "$dir" && \
53844 for f in "$libname$shrext".*; do echo "$f"; done \
53845 | sed -e "s,^$libname$shrext\\\\.,," \
53846 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53847 | sed 1q ) 2>/dev/null`
53848 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53850 found_so="$dir/$libname$shrext.$ver"
53853 eval library_names=\"$acl_library_names_spec\"
53854 for f in $library_names; do
53855 if test -f "$dir/$f"; then
53864 if test "X$found_dir" = "X"; then
53865 if test -f "$dir/$libname.$acl_libext"; then
53867 found_a="$dir/$libname.$acl_libext"
53870 if test "X$found_dir" != "X"; then
53871 if test -f "$dir/$libname.la"; then
53872 found_la="$dir/$libname.la"
53876 if test "X$found_dir" = "X"; then
53877 for x in $LDFLAGS $LTLIBEXPAT; do
53879 acl_save_prefix="$prefix"
53880 prefix="$acl_final_prefix"
53881 acl_save_exec_prefix="$exec_prefix"
53882 exec_prefix="$acl_final_exec_prefix"
53884 exec_prefix="$acl_save_exec_prefix"
53885 prefix="$acl_save_prefix"
53889 dir=`echo "X$x" | sed -e 's/^X-L//'`
53890 if test -n "$acl_shlibext"; then
53891 if test -f "$dir/$libname$shrext"; then
53893 found_so="$dir/$libname$shrext"
53895 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53896 ver=`(cd "$dir" && \
53897 for f in "$libname$shrext".*; do echo "$f"; done \
53898 | sed -e "s,^$libname$shrext\\\\.,," \
53899 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53900 | sed 1q ) 2>/dev/null`
53901 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53903 found_so="$dir/$libname$shrext.$ver"
53906 eval library_names=\"$acl_library_names_spec\"
53907 for f in $library_names; do
53908 if test -f "$dir/$f"; then
53917 if test "X$found_dir" = "X"; then
53918 if test -f "$dir/$libname.$acl_libext"; then
53920 found_a="$dir/$libname.$acl_libext"
53923 if test "X$found_dir" != "X"; then
53924 if test -f "$dir/$libname.la"; then
53925 found_la="$dir/$libname.la"
53930 if test "X$found_dir" != "X"; then
53935 if test "X$found_dir" != "X"; then
53936 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
53937 if test "X$found_so" != "X"; then
53938 if test "$enable_rpath" = no \
53939 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
53940 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
53941 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53944 for x in $ltrpathdirs; do
53945 if test "X$x" = "X$found_dir"; then
53950 if test -z "$haveit"; then
53951 ltrpathdirs="$ltrpathdirs $found_dir"
53953 if test "$acl_hardcode_direct" = yes; then
53954 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53956 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53957 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53959 for x in $rpathdirs; do
53960 if test "X$x" = "X$found_dir"; then
53965 if test -z "$haveit"; then
53966 rpathdirs="$rpathdirs $found_dir"
53970 for x in $LDFLAGS $LIBEXPAT; do
53972 acl_save_prefix="$prefix"
53973 prefix="$acl_final_prefix"
53974 acl_save_exec_prefix="$exec_prefix"
53975 exec_prefix="$acl_final_exec_prefix"
53977 exec_prefix="$acl_save_exec_prefix"
53978 prefix="$acl_save_prefix"
53980 if test "X$x" = "X-L$found_dir"; then
53985 if test -z "$haveit"; then
53986 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
53988 if test "$acl_hardcode_minus_L" != no; then
53989 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
53991 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
53997 if test "X$found_a" != "X"; then
53998 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
54000 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
54003 additional_includedir=
54004 case "$found_dir" in
54005 */$acl_libdirstem | */$acl_libdirstem/)
54006 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
54007 if test "$name" = 'expat'; then
54008 LIBEXPAT_PREFIX="$basedir"
54010 additional_includedir="$basedir/include"
54012 */$acl_libdirstem2 | */$acl_libdirstem2/)
54013 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
54014 if test "$name" = 'expat'; then
54015 LIBEXPAT_PREFIX="$basedir"
54017 additional_includedir="$basedir/include"
54020 if test "X$additional_includedir" != "X"; then
54021 if test "X$additional_includedir" != "X/usr/include"; then
54023 if test "X$additional_includedir" = "X/usr/local/include"; then
54024 if test -n "$GCC"; then
54026 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54030 if test -z "$haveit"; then
54031 for x in $CPPFLAGS $INCEXPAT; do
54033 acl_save_prefix="$prefix"
54034 prefix="$acl_final_prefix"
54035 acl_save_exec_prefix="$exec_prefix"
54036 exec_prefix="$acl_final_exec_prefix"
54038 exec_prefix="$acl_save_exec_prefix"
54039 prefix="$acl_save_prefix"
54041 if test "X$x" = "X-I$additional_includedir"; then
54046 if test -z "$haveit"; then
54047 if test -d "$additional_includedir"; then
54048 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
54054 if test -n "$found_la"; then
54055 save_libdir="$libdir"
54056 case "$found_la" in
54057 */* | *\\*) . "$found_la" ;;
54058 *) . "./$found_la" ;;
54060 libdir="$save_libdir"
54061 for dep in $dependency_libs; do
54064 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
54065 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
54066 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
54068 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
54069 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
54070 if test -n "$GCC"; then
54072 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
54076 if test -z "$haveit"; then
54078 for x in $LDFLAGS $LIBEXPAT; do
54080 acl_save_prefix="$prefix"
54081 prefix="$acl_final_prefix"
54082 acl_save_exec_prefix="$exec_prefix"
54083 exec_prefix="$acl_final_exec_prefix"
54085 exec_prefix="$acl_save_exec_prefix"
54086 prefix="$acl_save_prefix"
54088 if test "X$x" = "X-L$additional_libdir"; then
54093 if test -z "$haveit"; then
54094 if test -d "$additional_libdir"; then
54095 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
54099 for x in $LDFLAGS $LTLIBEXPAT; do
54101 acl_save_prefix="$prefix"
54102 prefix="$acl_final_prefix"
54103 acl_save_exec_prefix="$exec_prefix"
54104 exec_prefix="$acl_final_exec_prefix"
54106 exec_prefix="$acl_save_exec_prefix"
54107 prefix="$acl_save_prefix"
54109 if test "X$x" = "X-L$additional_libdir"; then
54114 if test -z "$haveit"; then
54115 if test -d "$additional_libdir"; then
54116 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
54123 dir=`echo "X$dep" | sed -e 's/^X-R//'`
54124 if test "$enable_rpath" != no; then
54126 for x in $rpathdirs; do
54127 if test "X$x" = "X$dir"; then
54132 if test -z "$haveit"; then
54133 rpathdirs="$rpathdirs $dir"
54136 for x in $ltrpathdirs; do
54137 if test "X$x" = "X$dir"; then
54142 if test -z "$haveit"; then
54143 ltrpathdirs="$ltrpathdirs $dir"
54148 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54154 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
54155 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
54161 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
54162 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
54168 if test "X$rpathdirs" != "X"; then
54169 if test -n "$acl_hardcode_libdir_separator"; then
54171 for found_dir in $rpathdirs; do
54172 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54174 acl_save_libdir="$libdir"
54176 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54177 libdir="$acl_save_libdir"
54178 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
54180 for found_dir in $rpathdirs; do
54181 acl_save_libdir="$libdir"
54182 libdir="$found_dir"
54183 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54184 libdir="$acl_save_libdir"
54185 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
54189 if test "X$ltrpathdirs" != "X"; then
54190 for found_dir in $ltrpathdirs; do
54191 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
54201 ac_save_CPPFLAGS="$CPPFLAGS"
54203 for element in $INCEXPAT; do
54205 for x in $CPPFLAGS; do
54207 acl_save_prefix="$prefix"
54208 prefix="$acl_final_prefix"
54209 acl_save_exec_prefix="$exec_prefix"
54210 exec_prefix="$acl_final_exec_prefix"
54212 exec_prefix="$acl_save_exec_prefix"
54213 prefix="$acl_save_prefix"
54215 if test "X$x" = "X$element"; then
54220 if test -z "$haveit"; then
54221 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
54227 $as_echo_n "checking for libexpat... " >&6; }
54228 if test "${ac_cv_libexpat+set}" = set; then :
54229 $as_echo_n "(cached) " >&6
54232 ac_save_LIBS="$LIBS"
54233 case " $LIBEXPAT" in
54234 *" -l"*) LIBS="$LIBS $LIBEXPAT" ;;
54235 *) LIBS="$LIBEXPAT $LIBS" ;;
54237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54238 /* end confdefs.h. */
54243 XML_ExpatVersion();
54248 if ac_fn_c_try_link "$LINENO"; then :
54251 ac_cv_libexpat='no'
54253 rm -f core conftest.err conftest.$ac_objext \
54254 conftest$ac_exeext conftest.$ac_ext
54255 LIBS="$ac_save_LIBS"
54258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
54259 $as_echo "$ac_cv_libexpat" >&6; }
54260 if test "$ac_cv_libexpat" = yes; then
54263 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
54265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
54266 $as_echo_n "checking how to link with libexpat... " >&6; }
54267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
54268 $as_echo "$LIBEXPAT" >&6; }
54271 CPPFLAGS="$ac_save_CPPFLAGS"
54286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
54287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
54288 if test "${lt_cv_path_NM+set}" = set; then :
54289 $as_echo_n "(cached) " >&6
54291 if test -n "$NM"; then
54292 # Let the user override the test.
54293 lt_cv_path_NM="$NM"
54295 lt_nm_to_check="${ac_tool_prefix}nm"
54296 if test -n "$ac_tool_prefix" \
54297 && { test "$build" = "$host" \
54298 || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
54300 lt_nm_to_check="$lt_nm_to_check nm"
54302 for lt_tmp_nm in $lt_nm_to_check; do
54303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
54304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
54306 test -z "$ac_dir" && ac_dir=.
54307 tmp_nm="$ac_dir/$lt_tmp_nm"
54308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
54309 # Check to see if the nm accepts a BSD-compat flag.
54310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
54311 # nm: unknown option "B" ignored
54312 # Tru64's nm complains that /dev/null is an invalid object file
54313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
54314 */dev/null* | *'Invalid file or object type'*)
54315 lt_cv_path_NM="$tmp_nm -B"
54319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
54321 lt_cv_path_NM="$tmp_nm -p"
54325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
54326 continue # so that we can try to find one that supports BSD flags
54335 : ${lt_cv_path_NM=no}
54338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
54339 $as_echo "$lt_cv_path_NM" >&6; }
54340 if test "$lt_cv_path_NM" != "no"; then
54341 NM="$lt_cv_path_NM"
54343 # Didn't find any BSD compatible name lister, look for dumpbin.
54344 if test -n "$DUMPBIN"; then :
54345 # Let the user override the test.
54347 if test -n "$ac_tool_prefix"; then
54348 for ac_prog in dumpbin "link -dump"
54350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54353 $as_echo_n "checking for $ac_word... " >&6; }
54354 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
54355 $as_echo_n "(cached) " >&6
54357 if test -n "$DUMPBIN"; then
54358 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
54360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54361 for as_dir in $PATH
54364 test -z "$as_dir" && as_dir=.
54365 for ac_exec_ext in '' $ac_executable_extensions; do
54366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54367 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
54368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54377 DUMPBIN=$ac_cv_prog_DUMPBIN
54378 if test -n "$DUMPBIN"; then
54379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
54380 $as_echo "$DUMPBIN" >&6; }
54382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54383 $as_echo "no" >&6; }
54387 test -n "$DUMPBIN" && break
54390 if test -z "$DUMPBIN"; then
54391 ac_ct_DUMPBIN=$DUMPBIN
54392 for ac_prog in dumpbin "link -dump"
54394 # Extract the first word of "$ac_prog", so it can be a program name with args.
54395 set dummy $ac_prog; ac_word=$2
54396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54397 $as_echo_n "checking for $ac_word... " >&6; }
54398 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
54399 $as_echo_n "(cached) " >&6
54401 if test -n "$ac_ct_DUMPBIN"; then
54402 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
54404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54405 for as_dir in $PATH
54408 test -z "$as_dir" && as_dir=.
54409 for ac_exec_ext in '' $ac_executable_extensions; do
54410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54411 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
54412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54421 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
54422 if test -n "$ac_ct_DUMPBIN"; then
54423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
54424 $as_echo "$ac_ct_DUMPBIN" >&6; }
54426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54427 $as_echo "no" >&6; }
54431 test -n "$ac_ct_DUMPBIN" && break
54434 if test "x$ac_ct_DUMPBIN" = x; then
54437 case $cross_compiling:$ac_tool_warned in
54439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
54440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
54441 ac_tool_warned=yes ;;
54443 DUMPBIN=$ac_ct_DUMPBIN
54447 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
54449 DUMPBIN="$DUMPBIN -symbols"
54457 if test "$DUMPBIN" != ":"; then
54461 test -z "$NM" && NM=nm
54465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
54466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
54467 if test "${lt_cv_nm_interface+set}" = set; then :
54468 $as_echo_n "(cached) " >&6
54470 lt_cv_nm_interface="BSD nm"
54471 echo "int some_variable = 0;" > conftest.$ac_ext
54472 (eval echo "\"\$as_me:54472: $ac_compile\"" >&5)
54473 (eval "$ac_compile" 2>conftest.err)
54474 cat conftest.err >&5
54475 (eval echo "\"\$as_me:54475: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
54476 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
54477 cat conftest.err >&5
54478 (eval echo "\"\$as_me:54478: output\"" >&5)
54479 cat conftest.out >&5
54480 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
54481 lt_cv_nm_interface="MS dumpbin"
54485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
54486 $as_echo "$lt_cv_nm_interface" >&6; }
54488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
54489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
54490 if test "${ac_cv_path_SED+set}" = set; then :
54491 $as_echo_n "(cached) " >&6
54493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
54494 for ac_i in 1 2 3 4 5 6 7; do
54495 ac_script="$ac_script$as_nl$ac_script"
54497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
54498 { ac_script=; unset ac_script;}
54499 if test -z "$SED"; then
54500 ac_path_SED_found=false
54501 # Loop through the user's path and test for each of PROGNAME-LIST
54502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54503 for as_dir in $PATH
54506 test -z "$as_dir" && as_dir=.
54507 for ac_prog in sed gsed; do
54508 for ac_exec_ext in '' $ac_executable_extensions; do
54509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
54510 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
54511 # Check for GNU ac_path_SED and select it if it is found.
54512 # Check for GNU $ac_path_SED
54513 case `"$ac_path_SED" --version 2>&1` in
54515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
54518 $as_echo_n 0123456789 >"conftest.in"
54521 cat "conftest.in" "conftest.in" >"conftest.tmp"
54522 mv "conftest.tmp" "conftest.in"
54523 cp "conftest.in" "conftest.nl"
54524 $as_echo '' >> "conftest.nl"
54525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
54526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
54527 as_fn_arith $ac_count + 1 && ac_count=$as_val
54528 if test $ac_count -gt ${ac_path_SED_max-0}; then
54529 # Best one so far, save it but keep looking for a better one
54530 ac_cv_path_SED="$ac_path_SED"
54531 ac_path_SED_max=$ac_count
54533 # 10*(2^10) chars as input seems more than enough
54534 test $ac_count -gt 10 && break
54536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
54539 $ac_path_SED_found && break 3
54544 if test -z "$ac_cv_path_SED"; then
54545 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
54548 ac_cv_path_SED=$SED
54552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
54553 $as_echo "$ac_cv_path_SED" >&6; }
54554 SED="$ac_cv_path_SED"
54561 # Check for command to grab the raw symbol name followed by C symbol from nm.
54562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
54563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
54564 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
54565 $as_echo_n "(cached) " >&6
54568 # These are sane defaults that work on at least a few old systems.
54569 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
54571 # Character class describing NM global symbol codes.
54572 symcode='[BCDEGRST]'
54574 # Regexp to match symbols that can be accessed directly from C.
54575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
54577 # Transform an extracted symbol line into a proper C declaration
54578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
54580 # Transform an extracted symbol line into symbol name and symbol address
54581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
54583 # Define system-specific variables.
54588 cygwin* | mingw* | pw32*)
54589 symcode='[ABCDGISTW]'
54591 hpux*) # Its linker distinguishes data from code symbols
54592 if test "$host_cpu" = ia64; then
54593 symcode='[ABCDEGRST]'
54595 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
54596 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
54598 linux* | k*bsd*-gnu)
54599 if test "$host_cpu" = ia64; then
54600 symcode='[ABCDGIRSTW]'
54601 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
54602 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
54605 irix* | nonstopux*)
54606 symcode='[BCDEGRST]'
54609 symcode='[BCDEGQRST]'
54620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
54628 # Handle CRLF in mingw tool chain
54632 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
54636 # If we're using GNU nm, then use its standard symbol codes.
54637 case `$NM -V 2>&1` in
54638 *GNU* | *'with BFD'*)
54639 symcode='[ABCDGIRSTW]' ;;
54642 # Try without a prefix undercore, then with it.
54643 for ac_symprfx in "" "_"; do
54645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
54646 symxfrm="\\1 $ac_symprfx\\2 \\2"
54648 # Write the raw and C identifiers.
54649 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
54651 # Check to see that the pipe works correctly.
54655 cat > conftest.$ac_ext <<EOF
54660 void nm_test_func(){}
54664 int main(){nm_test_var='a';nm_test_func();return(0);}
54667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
54668 (eval $ac_compile) 2>&5
54670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54671 test $ac_status = 0; }; then
54672 # Now try to grab the symbols.
54674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
54675 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
54677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54678 test $ac_status = 0; } && test -s "$nlist"; then
54679 # Try sorting and uniquifying the output.
54680 if sort "$nlist" | uniq > "$nlist"T; then
54681 mv -f "$nlist"T "$nlist"
54686 # Make sure that we snagged all the symbols we need.
54687 if grep ' nm_test_var$' "$nlist" >/dev/null; then
54688 if grep ' nm_test_func$' "$nlist" >/dev/null; then
54689 cat <<EOF > conftest.$ac_ext
54695 # Now generate the symbol file.
54696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
54698 cat <<EOF >> conftest.$ac_ext
54699 #if defined (__STDC__) && __STDC__
54700 # define lt_ptr_t void *
54702 # define lt_ptr_t char *
54706 /* The mapping between symbol names and symbols. */
54711 lt_preloaded_symbols[] =
54714 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
54715 cat <<\EOF >> conftest.$ac_ext
54723 # Now try linking the two files.
54724 mv conftest.$ac_objext conftstm.$ac_objext
54725 lt_save_LIBS="$LIBS"
54726 lt_save_CFLAGS="$CFLAGS"
54727 LIBS="conftstm.$ac_objext"
54728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
54729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
54730 (eval $ac_link) 2>&5
54732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
54736 LIBS="$lt_save_LIBS"
54737 CFLAGS="$lt_save_CFLAGS"
54739 echo "cannot find nm_test_func in $nlist" >&5
54742 echo "cannot find nm_test_var in $nlist" >&5
54745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
54748 echo "$progname: failed program was:" >&5
54749 cat conftest.$ac_ext >&5
54751 rm -rf conftest* conftst*
54753 # Do not use the global_symbol_pipe unless it works.
54754 if test "$pipe_works" = yes; then
54757 lt_cv_sys_global_symbol_pipe=
54763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
54764 lt_cv_sys_global_symbol_to_cdecl=
54766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
54767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
54768 $as_echo "failed" >&6; }
54770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
54771 $as_echo "ok" >&6; }
54776 GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
54778 if test -n "$GLOBAL_SYMBOL_PIPE"; then
54779 HAVE_GLOBAL_SYMBOL_PIPE=1
54781 HAVE_GLOBAL_SYMBOL_PIPE=
54786 # If set to t, that means we are running in a shell under Emacs.
54787 # If you have an Emacs named "t", then use the full path.
54788 test x"$EMACS" = xt && EMACS=
54789 for ac_prog in emacs xemacs
54791 # Extract the first word of "$ac_prog", so it can be a program name with args.
54792 set dummy $ac_prog; ac_word=$2
54793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54794 $as_echo_n "checking for $ac_word... " >&6; }
54795 if test "${ac_cv_prog_EMACS+set}" = set; then :
54796 $as_echo_n "(cached) " >&6
54798 if test -n "$EMACS"; then
54799 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
54801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54802 for as_dir in $PATH
54805 test -z "$as_dir" && as_dir=.
54806 for ac_exec_ext in '' $ac_executable_extensions; do
54807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54808 ac_cv_prog_EMACS="$ac_prog"
54809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54818 EMACS=$ac_cv_prog_EMACS
54819 if test -n "$EMACS"; then
54820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
54821 $as_echo "$EMACS" >&6; }
54823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54824 $as_echo "no" >&6; }
54828 test -n "$EMACS" && break
54830 test -n "$EMACS" || EMACS="no"
54835 # Check whether --with-lispdir was given.
54836 if test "${with_lispdir+set}" = set; then :
54837 withval=$with_lispdir; lispdir="$withval"
54838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
54839 $as_echo_n "checking where .elc files should go... " >&6; }
54840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
54841 $as_echo "$lispdir" >&6; }
54844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
54845 $as_echo_n "checking where .elc files should go... " >&6; }
54846 if test "${am_cv_lispdir+set}" = set; then :
54847 $as_echo_n "(cached) " >&6
54850 if test $EMACS != "no"; then
54851 if test x${lispdir+set} != xset; then
54852 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
54853 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
54854 # which is non-obvious for non-emacs users.
54855 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
54856 # emacsen earlier and avoid running this altogether.
54857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
54858 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
54860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54861 test $ac_status = 0; }
54862 am_cv_lispdir=`sed -n \
54864 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
54865 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
54870 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
54873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
54874 $as_echo "$am_cv_lispdir" >&6; }
54875 lispdir="$am_cv_lispdir"
54882 # Check whether --with-emacs was given.
54883 if test "${with_emacs+set}" = set; then :
54884 withval=$with_emacs; gt_use_emacs=$withval
54889 if test "$EMACS" != no; then
54890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5
54891 $as_echo_n "checking whether Emacs support is requested... " >&6; }
54892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5
54893 $as_echo "$gt_use_emacs" >&6; }
54894 if test "$gt_use_emacs" = no; then
54899 aclocaldir='${datadir}/aclocal'
54903 # Check whether --with-git was given.
54904 if test "${with_git+set}" = set; then :
54905 withval=$with_git; gt_use_git=$withval
54911 # Check whether --with-cvs was given.
54912 if test "${with_cvs+set}" = set; then :
54913 withval=$with_cvs; gt_use_cvs=$withval
54918 # The CVS format is deprecated, because "cvs init" does not work in all
54920 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-05/msg00003.html>)
54921 # and we are not allowed to distribute the cvs infrastructure files ourselves
54922 # (see <http://lists.gnu.org/archive/html/bug-cvs/2010-06/msg00011.html>).
54923 if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then
54924 # --with-git is specified. Even if --with-cvs is also specified, we use the
54928 if test "$gt_use_cvs" != no; then
54929 # --with-cvs is specified.
54932 # Neither --with-git nor --with-cvs is specified.
54933 if test "$gt_use_git" != no \
54934 && (git --version) >/dev/null 2>&1 \
54935 && { case `git --version | sed -e 's/^[^0-9]*//'` in
54936 0.* | 1.[0-5].*) false ;;
54940 # --without-git is not specified, and the git program exists
54941 # in version 1.6 or newer. Use git format.
54944 # --without-git is specified, or the git program is missing.
54951 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
54952 # Extract the first word of "dvips", so it can be a program name with args.
54953 set dummy dvips; ac_word=$2
54954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54955 $as_echo_n "checking for $ac_word... " >&6; }
54956 if test "${ac_cv_path_DVIPS+set}" = set; then :
54957 $as_echo_n "(cached) " >&6
54961 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
54964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54965 for as_dir in $PATH
54968 test -z "$as_dir" && as_dir=.
54969 for ac_exec_ext in '' $ac_executable_extensions; do
54970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54971 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
54972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54979 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
54983 DVIPS=$ac_cv_path_DVIPS
54984 if test -n "$DVIPS"; then
54985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
54986 $as_echo "$DVIPS" >&6; }
54988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54989 $as_echo "no" >&6; }
54993 # Extract the first word of "texi2pdf", so it can be a program name with args.
54994 set dummy texi2pdf; ac_word=$2
54995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54996 $as_echo_n "checking for $ac_word... " >&6; }
54997 if test "${ac_cv_path_TEXI2PDF+set}" = set; then :
54998 $as_echo_n "(cached) " >&6
55002 ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
55005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55006 for as_dir in $PATH
55009 test -z "$as_dir" && as_dir=.
55010 for ac_exec_ext in '' $ac_executable_extensions; do
55011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55012 ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
55013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55020 test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
55024 TEXI2PDF=$ac_cv_path_TEXI2PDF
55025 if test -n "$TEXI2PDF"; then
55026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
55027 $as_echo "$TEXI2PDF" >&6; }
55029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55030 $as_echo "no" >&6; }
55034 # Extract the first word of "perl", so it can be a program name with args.
55035 set dummy perl; ac_word=$2
55036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55037 $as_echo_n "checking for $ac_word... " >&6; }
55038 if test "${ac_cv_path_PERL+set}" = set; then :
55039 $as_echo_n "(cached) " >&6
55043 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
55046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55047 for as_dir in $PATH
55050 test -z "$as_dir" && as_dir=.
55051 for ac_exec_ext in '' $ac_executable_extensions; do
55052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55053 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
55054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55061 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
55065 PERL=$ac_cv_path_PERL
55066 if test -n "$PERL"; then
55067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
55068 $as_echo "$PERL" >&6; }
55070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55071 $as_echo "no" >&6; }
55076 CROSS_COMPILING=$cross_compiling
55080 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
55082 # Extract the first word of "$ac_prog", so it can be a program name with args.
55083 set dummy $ac_prog; ac_word=$2
55084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55085 $as_echo_n "checking for $ac_word... " >&6; }
55086 if test "${ac_cv_prog_CXX+set}" = set; then :
55087 $as_echo_n "(cached) " >&6
55089 if test -n "$CXX"; then
55090 ac_cv_prog_CXX="$CXX" # Let the user override the test.
55092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55093 for as_dir in $PATH
55096 test -z "$as_dir" && as_dir=.
55097 for ac_exec_ext in '' $ac_executable_extensions; do
55098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55099 ac_cv_prog_CXX="$ac_prog"
55100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55109 CXX=$ac_cv_prog_CXX
55110 if test -n "$CXX"; then
55111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
55112 $as_echo "$CXX" >&6; }
55114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55115 $as_echo "no" >&6; }
55119 test -n "$CXX" && break
55121 test -n "$CXX" || CXX=":"
55123 if test "$CXX" != ":"; then
55124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
55125 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
55127 ac_cpp='$CXXCPP $CPPFLAGS'
55128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55134 echo 'int main () { return 0; }' > conftest.$ac_ext
55135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55136 (eval $ac_link) 2>&5
55138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55139 test $ac_status = 0; } && test -s conftest$ac_exeext; then
55140 ac_cv_prog_cxx_works=yes
55141 if (./conftest; exit) 2>/dev/null; then
55142 ac_cv_prog_cxx_cross=no
55144 ac_cv_prog_cxx_cross=yes
55147 ac_cv_prog_cxx_works=no
55151 ac_cpp='$CPP $CPPFLAGS'
55152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_works" >&5
55157 $as_echo "$ac_cv_prog_cxx_works" >&6; }
55158 if test $ac_cv_prog_cxx_works = no; then
55161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
55162 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
55164 ac_cpp='$CXXCPP $CPPFLAGS'
55165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55169 cat <<EOF > conftest.$ac_ext
55170 #include <iostream>
55171 namespace test { using namespace std; }
55173 int main () { return 0; }
55175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55176 (eval $ac_link) 2>&5
55178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55179 test $ac_status = 0; } && test -s conftest$ac_exeext; then
55180 gt_cv_prog_cxx_namespaces=yes
55182 gt_cv_prog_cxx_namespaces=no
55186 ac_cpp='$CPP $CPPFLAGS'
55187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_prog_cxx_namespaces" >&5
55192 $as_echo "$gt_cv_prog_cxx_namespaces" >&6; }
55193 if test $gt_cv_prog_cxx_namespaces = no; then
55202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
55203 $as_echo_n "checking for a traditional french locale... " >&6; }
55204 if test "${gt_cv_locale_fr+set}" = set; then :
55205 $as_echo_n "(cached) " >&6
55208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55209 /* end confdefs.h. */
55211 #include <locale.h>
55213 #if HAVE_LANGINFO_CODESET
55214 # include <langinfo.h>
55216 #include <stdlib.h>
55217 #include <string.h>
55221 /* Check whether the given locale name is recognized by the system. */
55222 if (setlocale (LC_ALL, "") == NULL) return 1;
55223 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55224 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55225 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55226 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55227 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55228 some unit tests fail. */
55229 #if HAVE_LANGINFO_CODESET
55231 const char *cs = nl_langinfo (CODESET);
55232 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55237 /* On Cygwin, avoid locale names without encoding suffix, because the
55238 locale_charset() function relies on the encoding suffix. Note that
55239 LC_ALL is set on the command line. */
55240 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55242 /* Check whether in the abbreviation of the second month, the second
55243 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
55244 one byte long. This excludes the UTF-8 encoding. */
55245 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55246 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
55247 /* Check whether the decimal separator is a comma.
55248 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55249 are nl_langinfo(RADIXCHAR) are both ".". */
55250 if (localeconv () ->decimal_point[0] != ',') return 1;
55255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55256 (eval $ac_link) 2>&5
55258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55259 test $ac_status = 0; } && test -s conftest$ac_exeext; then
55260 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55261 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55262 # configure script would override the LC_ALL setting. Likewise for
55263 # LC_CTYPE, which is also set at the beginning of the configure script.
55264 # Test for the usual locale name.
55265 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55266 gt_cv_locale_fr=fr_FR
55268 # Test for the locale name with explicit encoding suffix.
55269 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55270 gt_cv_locale_fr=fr_FR.ISO-8859-1
55272 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
55273 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55274 gt_cv_locale_fr=fr_FR.ISO8859-1
55276 # Test for the HP-UX locale name.
55277 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55278 gt_cv_locale_fr=fr_FR.iso88591
55280 # Test for the Solaris 7 locale name.
55281 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55285 gt_cv_locale_fr=none
55295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
55296 $as_echo "$gt_cv_locale_fr" >&6; }
55297 LOCALE_FR=$gt_cv_locale_fr
55302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
55303 $as_echo_n "checking for a french Unicode locale... " >&6; }
55304 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
55305 $as_echo_n "(cached) " >&6
55308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55309 /* end confdefs.h. */
55311 #include <locale.h>
55313 #if HAVE_LANGINFO_CODESET
55314 # include <langinfo.h>
55316 #include <stdlib.h>
55317 #include <string.h>
55321 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
55322 imitates locale dependent behaviour by looking at the environment
55323 variables, and all locales use the UTF-8 encoding. */
55324 #if !(defined __BEOS__ || defined __HAIKU__)
55325 /* Check whether the given locale name is recognized by the system. */
55326 if (setlocale (LC_ALL, "") == NULL) return 1;
55327 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55328 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55329 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55330 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55331 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55332 some unit tests fail. */
55333 # if HAVE_LANGINFO_CODESET
55335 const char *cs = nl_langinfo (CODESET);
55336 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55341 /* On Cygwin, avoid locale names without encoding suffix, because the
55342 locale_charset() function relies on the encoding suffix. Note that
55343 LC_ALL is set on the command line. */
55344 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55346 /* Check whether in the abbreviation of the second month, the second
55347 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
55348 two bytes long, with UTF-8 encoding. */
55349 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55350 if (strftime (buf, sizeof (buf), "%b", &t) < 4
55351 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
55354 /* Check whether the decimal separator is a comma.
55355 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
55356 are nl_langinfo(RADIXCHAR) are both ".". */
55357 if (localeconv () ->decimal_point[0] != ',') return 1;
55362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55363 (eval $ac_link) 2>&5
55365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55366 test $ac_status = 0; } && test -s conftest$ac_exeext; then
55367 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55368 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55369 # configure script would override the LC_ALL setting. Likewise for
55370 # LC_CTYPE, which is also set at the beginning of the configure script.
55371 # Test for the usual locale name.
55372 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55373 gt_cv_locale_fr_utf8=fr_FR
55375 # Test for the locale name with explicit encoding suffix.
55376 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55377 gt_cv_locale_fr_utf8=fr_FR.UTF-8
55379 # Test for the Solaris 7 locale name.
55380 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55381 gt_cv_locale_fr_utf8=fr.UTF-8
55384 gt_cv_locale_fr_utf8=none
55392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
55393 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
55394 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
55400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
55401 $as_echo_n "checking for a traditional japanese locale... " >&6; }
55402 if test "${gt_cv_locale_ja+set}" = set; then :
55403 $as_echo_n "(cached) " >&6
55406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55407 /* end confdefs.h. */
55409 #include <locale.h>
55411 #if HAVE_LANGINFO_CODESET
55412 # include <langinfo.h>
55414 #include <stdlib.h>
55415 #include <string.h>
55421 /* Check whether the given locale name is recognized by the system. */
55422 if (setlocale (LC_ALL, "") == NULL) return 1;
55423 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
55424 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
55425 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
55426 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
55427 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
55428 some unit tests fail. */
55429 #if HAVE_LANGINFO_CODESET
55431 const char *cs = nl_langinfo (CODESET);
55432 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
55437 /* On Cygwin, avoid locale names without encoding suffix, because the
55438 locale_charset() function relies on the encoding suffix. Note that
55439 LC_ALL is set on the command line. */
55440 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
55442 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
55443 on Cygwin 1.5.x. */
55444 if (MB_CUR_MAX == 1)
55446 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
55447 This excludes the UTF-8 encoding. */
55448 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
55449 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
55450 for (p = buf; *p != '\0'; p++)
55451 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
55457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55458 (eval $ac_link) 2>&5
55460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55461 test $ac_status = 0; } && test -s conftest$ac_exeext; then
55462 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
55463 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
55464 # configure script would override the LC_ALL setting. Likewise for
55465 # LC_CTYPE, which is also set at the beginning of the configure script.
55466 # Test for the AIX locale name.
55467 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55468 gt_cv_locale_ja=ja_JP
55470 # Test for the locale name with explicit encoding suffix.
55471 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55472 gt_cv_locale_ja=ja_JP.EUC-JP
55474 # Test for the HP-UX, OSF/1, NetBSD locale name.
55475 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55476 gt_cv_locale_ja=ja_JP.eucJP
55478 # Test for the IRIX, FreeBSD locale name.
55479 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55480 gt_cv_locale_ja=ja_JP.EUC
55482 # Test for the Solaris 7 locale name.
55483 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
55486 # Special test for NetBSD 1.6.
55487 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
55488 gt_cv_locale_ja=ja_JP.eucJP
55491 gt_cv_locale_ja=none
55502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
55503 $as_echo "$gt_cv_locale_ja" >&6; }
55504 LOCALE_JA=$gt_cv_locale_ja
55540 ac_cpp='$CXXCPP $CPPFLAGS'
55541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55544 if test -z "$CXX"; then
55545 if test -n "$CCC"; then
55548 if test -n "$ac_tool_prefix"; then
55549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
55551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
55552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
55553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55554 $as_echo_n "checking for $ac_word... " >&6; }
55555 if test "${ac_cv_prog_CXX+set}" = set; then :
55556 $as_echo_n "(cached) " >&6
55558 if test -n "$CXX"; then
55559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
55561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55562 for as_dir in $PATH
55565 test -z "$as_dir" && as_dir=.
55566 for ac_exec_ext in '' $ac_executable_extensions; do
55567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
55569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55578 CXX=$ac_cv_prog_CXX
55579 if test -n "$CXX"; then
55580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
55581 $as_echo "$CXX" >&6; }
55583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55584 $as_echo "no" >&6; }
55588 test -n "$CXX" && break
55591 if test -z "$CXX"; then
55593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
55595 # Extract the first word of "$ac_prog", so it can be a program name with args.
55596 set dummy $ac_prog; ac_word=$2
55597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55598 $as_echo_n "checking for $ac_word... " >&6; }
55599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
55600 $as_echo_n "(cached) " >&6
55602 if test -n "$ac_ct_CXX"; then
55603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
55605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55606 for as_dir in $PATH
55609 test -z "$as_dir" && as_dir=.
55610 for ac_exec_ext in '' $ac_executable_extensions; do
55611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
55612 ac_cv_prog_ac_ct_CXX="$ac_prog"
55613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
55623 if test -n "$ac_ct_CXX"; then
55624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
55625 $as_echo "$ac_ct_CXX" >&6; }
55627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55628 $as_echo "no" >&6; }
55632 test -n "$ac_ct_CXX" && break
55635 if test "x$ac_ct_CXX" = x; then
55638 case $cross_compiling:$ac_tool_warned in
55640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
55641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
55642 ac_tool_warned=yes ;;
55650 # Provide some information about the compiler.
55651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
55654 for ac_option in --version -v -V -qversion; do
55655 { { ac_try="$ac_compiler $ac_option >&5"
55656 case "(($ac_try" in
55657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55658 *) ac_try_echo=$ac_try;;
55660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
55661 $as_echo "$ac_try_echo"; } >&5
55662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
55664 if test -s conftest.err; then
55666 ... rest of stderr output deleted ...
55667 10q' conftest.err >conftest.er1
55668 cat conftest.er1 >&5
55670 rm -f conftest.er1 conftest.err
55671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55672 test $ac_status = 0; }
55675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
55676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
55677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
55678 $as_echo_n "(cached) " >&6
55680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55681 /* end confdefs.h. */
55694 if ac_fn_cxx_try_compile "$LINENO"; then :
55695 ac_compiler_gnu=yes
55699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
55703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
55704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
55705 if test $ac_compiler_gnu = yes; then
55710 ac_test_CXXFLAGS=${CXXFLAGS+set}
55711 ac_save_CXXFLAGS=$CXXFLAGS
55712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
55713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
55714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
55715 $as_echo_n "(cached) " >&6
55717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
55718 ac_cxx_werror_flag=yes
55719 ac_cv_prog_cxx_g=no
55721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55722 /* end confdefs.h. */
55732 if ac_fn_cxx_try_compile "$LINENO"; then :
55733 ac_cv_prog_cxx_g=yes
55736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55737 /* end confdefs.h. */
55747 if ac_fn_cxx_try_compile "$LINENO"; then :
55750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
55752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55753 /* end confdefs.h. */
55763 if ac_fn_cxx_try_compile "$LINENO"; then :
55764 ac_cv_prog_cxx_g=yes
55766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
55773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
55774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
55775 if test "$ac_test_CXXFLAGS" = set; then
55776 CXXFLAGS=$ac_save_CXXFLAGS
55777 elif test $ac_cv_prog_cxx_g = yes; then
55778 if test "$GXX" = yes; then
55784 if test "$GXX" = yes; then
55791 ac_cpp='$CPP $CPPFLAGS'
55792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
55796 depcc="$CXX" am_compiler_list=
55798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
55799 $as_echo_n "checking dependency style of $depcc... " >&6; }
55800 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
55801 $as_echo_n "(cached) " >&6
55803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
55804 # We make a subdir and do the tests there. Otherwise we can end up
55805 # making bogus files that we don't know about and never remove. For
55806 # instance it was reported that on HP-UX the gcc test will end up
55807 # making a dummy file named `D' -- because `-MD' means `put the output
55810 # Copy depcomp to subdir because otherwise we won't find it if we're
55811 # using a relative directory.
55812 cp "$am_depcomp" conftest.dir
55814 # We will build objects and dependencies in a subdirectory because
55815 # it helps to detect inapplicable dependency modes. For instance
55816 # both Tru64's cc and ICC support -MD to output dependencies as a
55817 # side effect of compilation, but ICC will put the dependencies in
55818 # the current directory while Tru64 will put them in the object
55822 am_cv_CXX_dependencies_compiler_type=none
55823 if test "$am_compiler_list" = ""; then
55824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
55826 am__universal=false
55827 case " $depcc " in #(
55828 *\ -arch\ *\ -arch\ *) am__universal=true ;;
55831 for depmode in $am_compiler_list; do
55832 # Setup a source with many dependencies, because some compilers
55833 # like to wrap large dependency lists on column 80 (with \), and
55834 # we should not choose a depcomp mode which is confused by this.
55836 # We need to recreate these files for each test, as the compiler may
55837 # overwrite some of them when testing with obscure command lines.
55838 # This happens at least with the AIX C compiler.
55840 for i in 1 2 3 4 5 6; do
55841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
55842 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
55843 # Solaris 8's {/usr,}/bin/sh.
55844 touch sub/conftst$i.h
55846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
55848 # We check with `-c' and `-o' for the sake of the "dashmstdout"
55849 # mode. It turns out that the SunPro C++ compiler does not properly
55850 # handle `-M -o', and we need to detect this. Also, some Intel
55851 # versions had trouble with output in subdirs
55852 am__obj=sub/conftest.${OBJEXT-o}
55853 am__minus_obj="-o $am__obj"
55856 # This depmode causes a compiler race in universal mode.
55857 test "$am__universal" = false || continue
55860 # after this tag, mechanisms are not by side-effect, so they'll
55861 # only be used when explicitly requested
55862 if test "x$enable_dependency_tracking" = xyes; then
55868 msvisualcpp | msvcmsys)
55869 # This compiler won't grok `-c -o', but also, the minuso test has
55870 # not run yet. These depmodes are late enough in the game, and
55871 # so weak that their functioning should not be impacted.
55872 am__obj=conftest.${OBJEXT-o}
55877 if depmode=$depmode \
55878 source=sub/conftest.c object=$am__obj \
55879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
55880 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
55881 >/dev/null 2>conftest.err &&
55882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
55883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
55884 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
55885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
55886 # icc doesn't choke on unknown options, it will just issue warnings
55887 # or remarks (even with -Werror). So we grep stderr for any message
55888 # that says an option was ignored or not supported.
55889 # When given -MP, icc 7.0 and 7.1 complain thusly:
55890 # icc: Command line warning: ignoring option '-M'; no argument required
55891 # The diagnosis changed in icc 8.0:
55892 # icc: Command line remark: option '-MP' not supported
55893 if (grep 'ignoring option' conftest.err ||
55894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
55895 am_cv_CXX_dependencies_compiler_type=$depmode
55902 rm -rf conftest.dir
55904 am_cv_CXX_dependencies_compiler_type=none
55908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
55909 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
55910 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
55913 test "x$enable_dependency_tracking" != xno \
55914 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
55915 am__fastdepCXX_TRUE=
55916 am__fastdepCXX_FALSE='#'
55918 am__fastdepCXX_TRUE='#'
55919 am__fastdepCXX_FALSE=
55923 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
55924 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
55925 (test "X$CXX" != "Xg++"))) ; then
55927 ac_cpp='$CXXCPP $CPPFLAGS'
55928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
55931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
55932 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
55933 if test -z "$CXXCPP"; then
55934 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
55935 $as_echo_n "(cached) " >&6
55937 # Double quotes because CXXCPP needs to be expanded
55938 for CXXCPP in "$CXX -E" "/lib/cpp"
55940 ac_preproc_ok=false
55941 for ac_cxx_preproc_warn_flag in '' yes
55943 # Use a header file that comes with gcc, so configuring glibc
55944 # with a fresh cross-compiler works.
55945 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55946 # <limits.h> exists even on freestanding compilers.
55947 # On the NeXT, cc -E runs the code through the compiler's parser,
55948 # not just through cpp. "Syntax error" is here to catch this case.
55949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55950 /* end confdefs.h. */
55952 # include <limits.h>
55954 # include <assert.h>
55958 if ac_fn_cxx_try_cpp "$LINENO"; then :
55961 # Broken: fails on valid input.
55964 rm -f conftest.err conftest.$ac_ext
55966 # OK, works on sane cases. Now check whether nonexistent headers
55967 # can be detected and how.
55968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55969 /* end confdefs.h. */
55970 #include <ac_nonexistent.h>
55972 if ac_fn_cxx_try_cpp "$LINENO"; then :
55973 # Broken: success on invalid input.
55976 # Passes both tests.
55980 rm -f conftest.err conftest.$ac_ext
55983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
55984 rm -f conftest.err conftest.$ac_ext
55985 if $ac_preproc_ok; then :
55990 ac_cv_prog_CXXCPP=$CXXCPP
55993 CXXCPP=$ac_cv_prog_CXXCPP
55995 ac_cv_prog_CXXCPP=$CXXCPP
55997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
55998 $as_echo "$CXXCPP" >&6; }
55999 ac_preproc_ok=false
56000 for ac_cxx_preproc_warn_flag in '' yes
56002 # Use a header file that comes with gcc, so configuring glibc
56003 # with a fresh cross-compiler works.
56004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56005 # <limits.h> exists even on freestanding compilers.
56006 # On the NeXT, cc -E runs the code through the compiler's parser,
56007 # not just through cpp. "Syntax error" is here to catch this case.
56008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56009 /* end confdefs.h. */
56011 # include <limits.h>
56013 # include <assert.h>
56017 if ac_fn_cxx_try_cpp "$LINENO"; then :
56020 # Broken: fails on valid input.
56023 rm -f conftest.err conftest.$ac_ext
56025 # OK, works on sane cases. Now check whether nonexistent headers
56026 # can be detected and how.
56027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56028 /* end confdefs.h. */
56029 #include <ac_nonexistent.h>
56031 if ac_fn_cxx_try_cpp "$LINENO"; then :
56032 # Broken: success on invalid input.
56035 # Passes both tests.
56039 rm -f conftest.err conftest.$ac_ext
56042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
56043 rm -f conftest.err conftest.$ac_ext
56044 if $ac_preproc_ok; then :
56047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
56048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56049 _lt_caught_CXX_error=yes; }
56053 ac_cpp='$CPP $CPPFLAGS'
56054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
56059 _lt_caught_CXX_error=yes
56066 ac_cpp='$CXXCPP $CPPFLAGS'
56067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
56068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
56069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
56071 archive_cmds_need_lc_CXX=no
56072 allow_undefined_flag_CXX=
56073 always_export_symbols_CXX=no
56074 archive_expsym_cmds_CXX=
56075 compiler_needs_object_CXX=no
56076 export_dynamic_flag_spec_CXX=
56077 hardcode_direct_CXX=no
56078 hardcode_direct_absolute_CXX=no
56079 hardcode_libdir_flag_spec_CXX=
56080 hardcode_libdir_flag_spec_ld_CXX=
56081 hardcode_libdir_separator_CXX=
56082 hardcode_minus_L_CXX=no
56083 hardcode_shlibpath_var_CXX=unsupported
56084 hardcode_automatic_CXX=no
56085 inherit_rpath_CXX=no
56087 module_expsym_cmds_CXX=
56088 link_all_deplibs_CXX=unknown
56089 old_archive_cmds_CXX=$old_archive_cmds
56090 no_undefined_flag_CXX=
56091 whole_archive_flag_spec_CXX=
56092 enable_shared_with_static_runtimes_CXX=no
56094 # Source file extension for C++ test sources.
56097 # Object file extension for compiled C++ test sources.
56101 # No sense in running all these tests if we already determined that
56102 # the CXX compiler isn't working. Some variables (like enable_shared)
56103 # are currently assumed to apply to all compilers on this platform,
56104 # and will be corrupted by setting them based on a non-working compiler.
56105 if test "$_lt_caught_CXX_error" != yes; then
56106 # Code to be used in simple compile tests
56107 lt_simple_compile_test_code="int some_variable = 0;"
56109 # Code to be used in simple link tests
56110 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
56112 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
56119 # If no C compiler was specified, use CC.
56122 # If no C compiler flags were specified, use CFLAGS.
56123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
56125 # Allow CC to be a program name with arguments.
56129 # save warnings/boilerplate of simple test code
56130 ac_outfile=conftest.$ac_objext
56131 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
56132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
56133 _lt_compiler_boilerplate=`cat conftest.err`
56136 ac_outfile=conftest.$ac_objext
56137 echo "$lt_simple_link_test_code" >conftest.$ac_ext
56138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
56139 _lt_linker_boilerplate=`cat conftest.err`
56143 # Allow CC to be a program name with arguments.
56148 lt_save_with_gnu_ld=$with_gnu_ld
56149 lt_save_path_LD=$lt_cv_path_LD
56150 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
56151 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
56153 $as_unset lt_cv_prog_gnu_ld
56155 if test -n "${lt_cv_path_LDCXX+set}"; then
56156 lt_cv_path_LD=$lt_cv_path_LDCXX
56158 $as_unset lt_cv_path_LD
56160 test -z "${LDCXX+set}" || LD=$LDCXX
56164 for cc_temp in $compiler""; do
56166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
56167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
56172 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
56175 if test -n "$compiler"; then
56176 # We don't want -fno-exception when compiling C++ code, so set the
56177 # no_builtin_flag separately
56178 if test "$GXX" = yes; then
56179 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
56181 lt_prog_compiler_no_builtin_flag_CXX=
56184 if test "$GXX" = yes; then
56185 # Set up default GNU C++ configuration
56189 # Check whether --with-gnu-ld was given.
56190 if test "${with_gnu_ld+set}" = set; then :
56191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
56197 if test "$GCC" = yes; then
56198 # Check if gcc -print-prog-name=ld gives a path.
56199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
56200 $as_echo_n "checking for ld used by $CC... " >&6; }
56203 # gcc leaves a trailing carriage return which upsets mingw
56204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
56206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
56209 # Accept absolute paths.
56211 re_direlt='/[^/][^/]*/\.\./'
56212 # Canonicalize the pathname of ld
56213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
56214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
56215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
56217 test -z "$LD" && LD="$ac_prog"
56220 # If it fails, then pretend we aren't using GCC.
56224 # If it is relative, then search for the first ld in PATH.
56225 with_gnu_ld=unknown
56228 elif test "$with_gnu_ld" = yes; then
56229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
56230 $as_echo_n "checking for GNU ld... " >&6; }
56232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
56233 $as_echo_n "checking for non-GNU ld... " >&6; }
56235 if test "${lt_cv_path_LD+set}" = set; then :
56236 $as_echo_n "(cached) " >&6
56238 if test -z "$LD"; then
56239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
56240 for ac_dir in $PATH; do
56242 test -z "$ac_dir" && ac_dir=.
56243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
56244 lt_cv_path_LD="$ac_dir/$ac_prog"
56245 # Check to see if the program is GNU ld. I'd rather use --version,
56246 # but apparently some variants of GNU ld only accept -v.
56247 # Break only if it was the GNU/non-GNU ld that we prefer.
56248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
56249 *GNU* | *'with BFD'*)
56250 test "$with_gnu_ld" != no && break
56253 test "$with_gnu_ld" != yes && break
56260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
56264 LD="$lt_cv_path_LD"
56265 if test -n "$LD"; then
56266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
56267 $as_echo "$LD" >&6; }
56269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56270 $as_echo "no" >&6; }
56272 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
56273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
56274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
56275 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
56276 $as_echo_n "(cached) " >&6
56278 # I'd rather use --version here, but apparently some GNU lds only accept -v.
56279 case `$LD -v 2>&1 </dev/null` in
56280 *GNU* | *'with BFD'*)
56281 lt_cv_prog_gnu_ld=yes
56284 lt_cv_prog_gnu_ld=no
56288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
56289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
56290 with_gnu_ld=$lt_cv_prog_gnu_ld
56298 # Check if GNU C++ uses GNU ld as the underlying linker, since the
56299 # archiving commands below assume that GNU ld is being used.
56300 if test "$with_gnu_ld" = yes; then
56301 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56302 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56307 # If archive_cmds runs LD, not CC, wlarc should be empty
56308 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
56309 # investigate it a little bit more. (MM)
56312 # ancient GNU ld didn't support --whole-archive et. al.
56313 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
56314 $GREP 'no-whole-archive' > /dev/null; then
56315 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
56317 whole_archive_flag_spec_CXX=
56323 # A generic and very simple default shared library creation
56324 # command for GNU C++ for the case where it uses the native
56325 # linker, instead of GNU ld. If possible, this setting should
56326 # overridden to take advantage of the native linker features on
56327 # the platform it is being used on.
56328 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
56331 # Commands to make compiler produce verbose output that lists
56332 # what "hidden" libraries, object files and flags are used when
56333 # linking a shared library.
56334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
56342 # PORTME: fill in a description of your system's C++ link characteristics
56343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
56344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
56348 # FIXME: insert proper C++ library support
56352 if test "$host_cpu" = ia64; then
56353 # On IA64, the linker does run time linking by default, so we don't
56354 # have to do anything special.
56355 aix_use_runtimelinking=no
56356 exp_sym_flag='-Bexport'
56359 aix_use_runtimelinking=no
56361 # Test if we are trying to use run time linking or normal
56362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
56363 # need to do runtime linking.
56364 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
56365 for ld_flag in $LDFLAGS; do
56368 aix_use_runtimelinking=yes
56376 exp_sym_flag='-bexport'
56377 no_entry_flag='-bnoentry'
56380 # When large executables or shared objects are built, AIX ld can
56381 # have problems creating the table of contents. If linking a library
56382 # or program results in "error TOC overflow" add -mminimal-toc to
56383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
56384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
56386 archive_cmds_CXX=''
56387 hardcode_direct_CXX=yes
56388 hardcode_direct_absolute_CXX=yes
56389 hardcode_libdir_separator_CXX=':'
56390 link_all_deplibs_CXX=yes
56391 file_list_spec_CXX='${wl}-f,'
56393 if test "$GXX" = yes; then
56394 case $host_os in aix4.[012]|aix4.[012].*)
56395 # We only want to do this on AIX 4.2 and lower, the check
56396 # below for broken collect2 doesn't work under 4.3+
56397 collect2name=`${CC} -print-prog-name=collect2`
56398 if test -f "$collect2name" &&
56399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
56401 # We have reworked collect2
56404 # We have old collect2
56405 hardcode_direct_CXX=unsupported
56406 # It fails to find uninstalled libraries when the uninstalled
56407 # path is not listed in the libpath. Setting hardcode_minus_L
56408 # to unsupported forces relinking
56409 hardcode_minus_L_CXX=yes
56410 hardcode_libdir_flag_spec_CXX='-L$libdir'
56411 hardcode_libdir_separator_CXX=
56414 shared_flag='-shared'
56415 if test "$aix_use_runtimelinking" = yes; then
56416 shared_flag="$shared_flag "'${wl}-G'
56420 if test "$host_cpu" = ia64; then
56421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
56422 # chokes on -Wl,-G. The following line is correct:
56425 if test "$aix_use_runtimelinking" = yes; then
56426 shared_flag='${wl}-G'
56428 shared_flag='${wl}-bM:SRE'
56433 export_dynamic_flag_spec_CXX='${wl}-bexpall'
56434 # It seems that -bexpall does not export symbols beginning with
56435 # underscore (_), so it is better to generate a list of symbols to
56437 always_export_symbols_CXX=yes
56438 if test "$aix_use_runtimelinking" = yes; then
56439 # Warning - without using the other runtime loading flags (-brtl),
56440 # -berok will link without error, but may produce a broken library.
56441 allow_undefined_flag_CXX='-berok'
56442 # Determine the default libpath from the value encoded in an empty
56444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56445 /* end confdefs.h. */
56455 if ac_fn_cxx_try_link "$LINENO"; then :
56457 lt_aix_libpath_sed='
56458 /Import File Strings/,/^$/ {
56464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56465 # Check for a 64-bit object if we didn't find anything.
56466 if test -z "$aix_libpath"; then
56467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56470 rm -f core conftest.err conftest.$ac_objext \
56471 conftest$ac_exeext conftest.$ac_ext
56472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
56474 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
56476 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
56478 if test "$host_cpu" = ia64; then
56479 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
56480 allow_undefined_flag_CXX="-z nodefs"
56481 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
56483 # Determine the default libpath from the value encoded in an
56484 # empty executable.
56485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56486 /* end confdefs.h. */
56496 if ac_fn_cxx_try_link "$LINENO"; then :
56498 lt_aix_libpath_sed='
56499 /Import File Strings/,/^$/ {
56505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56506 # Check for a 64-bit object if we didn't find anything.
56507 if test -z "$aix_libpath"; then
56508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
56511 rm -f core conftest.err conftest.$ac_objext \
56512 conftest$ac_exeext conftest.$ac_ext
56513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
56515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
56516 # Warning - without using the other run time loading flags,
56517 # -berok will link without error, but may produce a broken library.
56518 no_undefined_flag_CXX=' ${wl}-bernotok'
56519 allow_undefined_flag_CXX=' ${wl}-berok'
56520 # Exported symbols can be pulled into shared objects from archives
56521 whole_archive_flag_spec_CXX='$convenience'
56522 archive_cmds_need_lc_CXX=yes
56523 # This is similar to how AIX traditionally builds its shared
56525 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
56531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
56532 allow_undefined_flag_CXX=unsupported
56533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
56534 # support --undefined. This deserves some investigation. FIXME
56535 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56542 case $cc_basename in
56544 # FIXME: insert proper C++ library support
56550 cygwin* | mingw* | pw32* | cegcc*)
56551 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
56552 # as there is no search path for DLLs.
56553 hardcode_libdir_flag_spec_CXX='-L$libdir'
56554 allow_undefined_flag_CXX=unsupported
56555 always_export_symbols_CXX=no
56556 enable_shared_with_static_runtimes_CXX=yes
56558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
56559 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56560 # If the export-symbols file already is a .def file (1st line
56561 # is EXPORTS), use it as is; otherwise, prepend...
56562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
56563 cp $export_symbols $output_objdir/$soname.def;
56565 echo EXPORTS > $output_objdir/$soname.def;
56566 cat $export_symbols >> $output_objdir/$soname.def;
56568 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56573 darwin* | rhapsody*)
56576 archive_cmds_need_lc_CXX=no
56577 hardcode_direct_CXX=no
56578 hardcode_automatic_CXX=yes
56579 hardcode_shlibpath_var_CXX=unsupported
56580 whole_archive_flag_spec_CXX=''
56581 link_all_deplibs_CXX=yes
56582 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
56583 case $cc_basename in
56584 ifort*) _lt_dar_can_shared=yes ;;
56585 *) _lt_dar_can_shared=$GCC ;;
56587 if test "$_lt_dar_can_shared" = "yes"; then
56588 output_verbose_link_cmd=echo
56589 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
56590 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
56591 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
56592 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
56593 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
56594 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
56595 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
56605 case $cc_basename in
56607 # FIXME: insert proper C++ library support
56611 # Green Hills C++ Compiler
56612 # FIXME: insert proper C++ library support
56616 # FIXME: insert proper C++ library support
56623 # C++ shared libraries reported to be fairly broken before
56629 archive_cmds_need_lc_CXX=no
56632 freebsd* | dragonfly*)
56633 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
56642 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
56643 hardcode_libdir_separator_CXX=:
56644 export_dynamic_flag_spec_CXX='${wl}-E'
56645 hardcode_direct_CXX=yes
56646 hardcode_minus_L_CXX=yes # Not in the search PATH,
56647 # but as the default
56648 # location of the library.
56650 case $cc_basename in
56652 # FIXME: insert proper C++ library support
56656 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
56657 # Commands to make compiler produce verbose output that lists
56658 # what "hidden" libraries, object files and flags are used when
56659 # linking a shared library.
56661 # There doesn't appear to be a way to prevent this compiler from
56662 # explicitly linking system object files so we need to strip them
56663 # from the output so that they don't get included in the library
56665 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56668 if test "$GXX" = yes; then
56669 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
56671 # FIXME: insert proper C++ library support
56679 if test $with_gnu_ld = no; then
56680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
56681 hardcode_libdir_separator_CXX=:
56687 export_dynamic_flag_spec_CXX='${wl}-E'
56693 hardcode_direct_CXX=no
56694 hardcode_shlibpath_var_CXX=no
56697 hardcode_direct_CXX=yes
56698 hardcode_direct_absolute_CXX=yes
56699 hardcode_minus_L_CXX=yes # Not in the search PATH,
56700 # but as the default
56701 # location of the library.
56705 case $cc_basename in
56707 # FIXME: insert proper C++ library support
56713 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56716 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56719 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56722 # Commands to make compiler produce verbose output that lists
56723 # what "hidden" libraries, object files and flags are used when
56724 # linking a shared library.
56726 # There doesn't appear to be a way to prevent this compiler from
56727 # explicitly linking system object files so we need to strip them
56728 # from the output so that they don't get included in the library
56730 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56733 if test "$GXX" = yes; then
56734 if test $with_gnu_ld = no; then
56737 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56740 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56743 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56748 # FIXME: insert proper C++ library support
56756 hardcode_direct_CXX=no
56757 hardcode_shlibpath_var_CXX=no
56758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56759 export_dynamic_flag_spec_CXX='${wl}-E'
56760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
56761 # Instead, shared libraries are loaded at an image base (0x10000000 by
56762 # default) and relocated if they conflict, which is a slow very memory
56763 # consuming and fragmenting process. To avoid this, we pick a random,
56764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
56765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
56766 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
56767 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
56770 case $cc_basename in
56773 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
56775 # Archives containing C++ object files must be created using
56776 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
56777 # necessary to make sure instantiated templates are included
56779 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
56782 if test "$GXX" = yes; then
56783 if test "$with_gnu_ld" = no; then
56784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
56786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
56789 link_all_deplibs_CXX=yes
56792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56793 hardcode_libdir_separator_CXX=:
56794 inherit_rpath_CXX=yes
56797 linux* | k*bsd*-gnu)
56798 case $cc_basename in
56800 # Kuck and Associates, Inc. (KAI) C++ Compiler
56802 # KCC will only create a shared library if the output file
56803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
56804 # to its proper name (with version) after linking.
56805 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
56806 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
56807 # Commands to make compiler produce verbose output that lists
56808 # what "hidden" libraries, object files and flags are used when
56809 # linking a shared library.
56811 # There doesn't appear to be a way to prevent this compiler from
56812 # explicitly linking system object files so we need to strip them
56813 # from the output so that they don't get included in the library
56815 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56817 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56820 # Archives containing C++ object files must be created using
56821 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
56822 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
56827 # version 8.0 and above of icpc choke on multiply defined symbols
56828 # if we add $predep_objects and $postdep_objects, however 7.1 and
56829 # earlier do not add the objects themselves.
56830 case `$CC -V 2>&1` in
56832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56833 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56835 *) # Version 8.0 or newer
56838 ia64*) tmp_idyn=' -i_dynamic';;
56840 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56841 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
56844 archive_cmds_need_lc_CXX=no
56845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56847 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
56850 # Portland Group C++ compiler
56852 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
56853 prelink_cmds_CXX='tpldir=Template.dir~
56855 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
56856 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
56857 old_archive_cmds_CXX='tpldir=Template.dir~
56859 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
56860 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
56862 archive_cmds_CXX='tpldir=Template.dir~
56864 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
56865 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
56866 archive_expsym_cmds_CXX='tpldir=Template.dir~
56868 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
56869 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
56871 *) # Version 6 will use weak symbols
56872 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
56873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
56877 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
56878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56879 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
56883 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
56884 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
56886 runpath_var=LD_RUN_PATH
56887 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
56888 hardcode_libdir_separator_CXX=:
56890 # Commands to make compiler produce verbose output that lists
56891 # what "hidden" libraries, object files and flags are used when
56892 # linking a shared library.
56894 # There doesn't appear to be a way to prevent this compiler from
56895 # explicitly linking system object files so we need to strip them
56896 # from the output so that they don't get included in the library
56898 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
56901 # IBM XL 8.0 on PPC, with GNU ld
56902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
56903 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
56904 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56905 if test "x$supports_anon_versioning" = xyes; then
56906 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
56907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
56908 echo "local: *; };" >> $output_objdir/$libname.ver~
56909 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
56913 case `$CC -V 2>&1 | sed 5q` in
56916 no_undefined_flag_CXX=' -zdefs'
56917 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
56918 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
56919 hardcode_libdir_flag_spec_CXX='-R$libdir'
56920 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
56921 compiler_needs_object_CXX=yes
56923 # Not sure whether something based on
56924 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
56926 output_verbose_link_cmd='echo'
56928 # Archives containing C++ object files must be created using
56929 # "CC -xar", where "CC" is the Sun C++ compiler. This is
56930 # necessary to make sure instantiated templates are included
56932 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
56940 # FIXME: insert proper C++ library support
56945 # FIXME: insert proper C++ library support
56950 case $cc_basename in
56952 # FIXME: insert proper C++ library support
56956 # FIXME: insert proper C++ library support
56963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
56964 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
56966 hardcode_libdir_flag_spec_CXX='-R$libdir'
56967 hardcode_direct_CXX=yes
56968 hardcode_shlibpath_var_CXX=no
56970 # Workaround some broken pre-1.5 toolchains
56971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
56979 # C++ shared libraries are fairly broken
56984 if test -f /usr/libexec/ld.so; then
56985 hardcode_direct_CXX=yes
56986 hardcode_shlibpath_var_CXX=no
56987 hardcode_direct_absolute_CXX=yes
56988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
56989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
56990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
56991 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
56992 export_dynamic_flag_spec_CXX='${wl}-E'
56993 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
56995 output_verbose_link_cmd=echo
57001 osf3* | osf4* | osf5*)
57002 case $cc_basename in
57004 # Kuck and Associates, Inc. (KAI) C++ Compiler
57006 # KCC will only create a shared library if the output file
57007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
57008 # to its proper name (with version) after linking.
57009 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
57011 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
57012 hardcode_libdir_separator_CXX=:
57014 # Archives containing C++ object files must be created using
57015 # the KAI C++ compiler.
57017 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
57018 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
57022 # Rational C++ 2.4.1
57023 # FIXME: insert proper C++ library support
57029 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
57030 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
57031 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
57034 allow_undefined_flag_CXX=' -expect_unresolved \*'
57035 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
57036 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
57037 echo "-hidden">> $lib.exp~
57038 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
57040 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
57044 hardcode_libdir_separator_CXX=:
57046 # Commands to make compiler produce verbose output that lists
57047 # what "hidden" libraries, object files and flags are used when
57048 # linking a shared library.
57050 # There doesn't appear to be a way to prevent this compiler from
57051 # explicitly linking system object files so we need to strip them
57052 # from the output so that they don't get included in the library
57054 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
57057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
57058 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
57061 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
57064 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
57068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
57069 hardcode_libdir_separator_CXX=:
57071 # Commands to make compiler produce verbose output that lists
57072 # what "hidden" libraries, object files and flags are used when
57073 # linking a shared library.
57074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57077 # FIXME: insert proper C++ library support
57085 # FIXME: insert proper C++ library support
57090 case $cc_basename in
57093 # FIXME: insert proper C++ library support
57098 # FIXME: insert proper C++ library support
57102 # FIXME: insert proper C++ library support
57109 case $cc_basename in
57111 # Sun C++ 4.2, 5.x and Centerline C++
57112 archive_cmds_need_lc_CXX=yes
57113 no_undefined_flag_CXX=' -zdefs'
57114 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57115 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57116 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57118 hardcode_libdir_flag_spec_CXX='-R$libdir'
57119 hardcode_shlibpath_var_CXX=no
57121 solaris2.[0-5] | solaris2.[0-5].*) ;;
57123 # The compiler driver will combine and reorder linker options,
57124 # but understands `-z linker_flag'.
57125 # Supported since Solaris 2.6 (maybe 2.5.1?)
57126 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
57129 link_all_deplibs_CXX=yes
57131 output_verbose_link_cmd='echo'
57133 # Archives containing C++ object files must be created using
57134 # "CC -xar", where "CC" is the Sun C++ compiler. This is
57135 # necessary to make sure instantiated templates are included
57137 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
57140 # Green Hills C++ Compiler
57141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57143 # The C++ compiler must be used to create the archive.
57144 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
57147 # GNU C++ compiler with Solaris linker
57148 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
57149 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
57150 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
57151 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57153 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57155 # Commands to make compiler produce verbose output that lists
57156 # what "hidden" libraries, object files and flags are used when
57157 # linking a shared library.
57158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57160 # g++ 2.7 appears to require `-G' NOT `-shared' on this
57162 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
57163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
57164 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
57166 # Commands to make compiler produce verbose output that lists
57167 # what "hidden" libraries, object files and flags are used when
57168 # linking a shared library.
57169 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
57172 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
57174 solaris2.[0-5] | solaris2.[0-5].*) ;;
57176 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
57184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
57185 no_undefined_flag_CXX='${wl}-z,text'
57186 archive_cmds_need_lc_CXX=no
57187 hardcode_shlibpath_var_CXX=no
57188 runpath_var='LD_RUN_PATH'
57190 case $cc_basename in
57192 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57196 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57197 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57202 sysv5* | sco3.2v5* | sco5v6*)
57203 # Note: We can NOT use -z defs as we might desire, because we do not
57204 # link with -lc, and that would cause any symbols used from libc to
57205 # always be unresolved, which means just about no library would
57206 # ever link correctly. If we're not using GNU ld we use -z text
57207 # though, which does catch some bad symbols but isn't as heavy-handed
57209 no_undefined_flag_CXX='${wl}-z,text'
57210 allow_undefined_flag_CXX='${wl}-z,nodefs'
57211 archive_cmds_need_lc_CXX=no
57212 hardcode_shlibpath_var_CXX=no
57213 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
57214 hardcode_libdir_separator_CXX=':'
57215 link_all_deplibs_CXX=yes
57216 export_dynamic_flag_spec_CXX='${wl}-Bexport'
57217 runpath_var='LD_RUN_PATH'
57219 case $cc_basename in
57221 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57222 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57225 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57226 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
57232 case $cc_basename in
57234 # NonStop-UX NCC 3.20
57235 # FIXME: insert proper C++ library support
57239 # FIXME: insert proper C++ library support
57246 # FIXME: insert proper C++ library support
57251 # FIXME: insert proper C++ library support
57256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
57257 $as_echo "$ld_shlibs_CXX" >&6; }
57258 test "$ld_shlibs_CXX" = no && can_build_shared=no
57264 ## There is no encapsulation within the following macros, do not change
57265 ## the running order or otherwise move them around unless you know exactly
57266 ## what you are doing...
57267 # Dependencies to place before and after the object being linked:
57268 predep_objects_CXX=
57269 postdep_objects_CXX=
57272 compiler_lib_search_path_CXX=
57274 cat > conftest.$ac_ext <<_LT_EOF
57278 Foo (void) { a = 0; }
57284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
57285 (eval $ac_compile) 2>&5
57287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57288 test $ac_status = 0; }; then
57289 # Parse the compiler output and extract the necessary
57290 # objects, libraries and library flags.
57292 # Sentinel used to keep track of whether or not we are before
57293 # the conftest object file.
57294 pre_test_object_deps_done=no
57296 for p in `eval "$output_verbose_link_cmd"`; do
57300 # Some compilers place space between "-{L,R}" and the path.
57301 # Remove the space.
57302 if test $p = "-L" ||
57303 test $p = "-R"; then
57310 if test "$pre_test_object_deps_done" = no; then
57313 # Internal compiler library paths should come after those
57314 # provided the user. The postdeps already come after the
57315 # user supplied libs so there is no need to process them.
57316 if test -z "$compiler_lib_search_path_CXX"; then
57317 compiler_lib_search_path_CXX="${prev}${p}"
57319 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
57322 # The "-l" case would never come before the object being
57323 # linked, so don't bother handling this case.
57326 if test -z "$postdeps_CXX"; then
57327 postdeps_CXX="${prev}${p}"
57329 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
57335 # This assumes that the test object file only shows up
57336 # once in the compiler output.
57337 if test "$p" = "conftest.$objext"; then
57338 pre_test_object_deps_done=yes
57342 if test "$pre_test_object_deps_done" = no; then
57343 if test -z "$predep_objects_CXX"; then
57344 predep_objects_CXX="$p"
57346 predep_objects_CXX="$predep_objects_CXX $p"
57349 if test -z "$postdep_objects_CXX"; then
57350 postdep_objects_CXX="$p"
57352 postdep_objects_CXX="$postdep_objects_CXX $p"
57357 *) ;; # Ignore the rest.
57365 echo "libtool.m4: error: problem compiling CXX test program"
57368 $RM -f confest.$objext
57370 # PORTME: override above test on systems where it is broken
57373 # Interix 3.5 installs completely hosed .la files for C++, so rather than
57374 # hack all around it, let's just trust "g++" to DTRT.
57375 predep_objects_CXX=
57376 postdep_objects_CXX=
57381 case `$CC -V 2>&1 | sed 5q` in
57385 # The more standards-conforming stlport4 library is
57386 # incompatible with the Cstd library. Avoid specifying
57387 # it if it's in CXXFLAGS. Ignore libCrun as
57388 # -library=stlport4 depends on it.
57389 case " $CXX $CXXFLAGS " in
57390 *" -library=stlport4 "*)
57391 solaris_use_stlport4=yes
57395 if test "$solaris_use_stlport4" != yes; then
57396 postdeps_CXX='-library=Cstd -library=Crun'
57403 case $cc_basename in
57405 # The more standards-conforming stlport4 library is
57406 # incompatible with the Cstd library. Avoid specifying
57407 # it if it's in CXXFLAGS. Ignore libCrun as
57408 # -library=stlport4 depends on it.
57409 case " $CXX $CXXFLAGS " in
57410 *" -library=stlport4 "*)
57411 solaris_use_stlport4=yes
57415 # Adding this requires a known-good setup of shared libraries for
57416 # Sun compiler versions before 5.6, else PIC objects from an old
57417 # archive will be linked into the output, leading to subtle bugs.
57418 if test "$solaris_use_stlport4" != yes; then
57419 postdeps_CXX='-library=Cstd -library=Crun'
57427 case " $postdeps_CXX " in
57428 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
57430 compiler_lib_search_dirs_CXX=
57431 if test -n "${compiler_lib_search_path_CXX}"; then
57432 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
57465 lt_prog_compiler_wl_CXX=
57466 lt_prog_compiler_pic_CXX=
57467 lt_prog_compiler_static_CXX=
57469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
57470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
57472 # C++ specific cases for pic, static, wl, etc.
57473 if test "$GXX" = yes; then
57474 lt_prog_compiler_wl_CXX='-Wl,'
57475 lt_prog_compiler_static_CXX='-static'
57479 # All AIX code is PIC.
57480 if test "$host_cpu" = ia64; then
57481 # AIX 5 now supports IA64 processor
57482 lt_prog_compiler_static_CXX='-Bstatic'
57489 # see comment about AmigaOS4 .so support
57490 lt_prog_compiler_pic_CXX='-fPIC'
57493 # FIXME: we need at least 68020 code to build shared libraries, but
57494 # adding the `-m68020' flag to GCC prevents building anything better,
57496 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
57501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
57502 # PIC is the default for these OSes.
57504 mingw* | cygwin* | os2* | pw32* | cegcc*)
57505 # This hack is so that the source file can tell whether it is being
57506 # built for inclusion in a dll (and should export symbols for example).
57507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
57508 # (--disable-auto-import) libraries
57509 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
57511 darwin* | rhapsody*)
57512 # PIC is the default on this platform
57513 # Common symbols not allowed in MH_DYLIB files
57514 lt_prog_compiler_pic_CXX='-fno-common'
57517 # DJGPP does not support shared libraries at all
57518 lt_prog_compiler_pic_CXX=
57521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
57522 # Instead, we relocate shared libraries at runtime.
57525 if test -d /usr/nec; then
57526 lt_prog_compiler_pic_CXX=-Kconform_pic
57530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
57531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
57532 # sets the default TLS model and affects inlining.
57537 lt_prog_compiler_pic_CXX='-fPIC'
57542 # QNX uses GNU C++, but need to define -shared option too, otherwise
57543 # it will coredump.
57544 lt_prog_compiler_pic_CXX='-fPIC -shared'
57547 lt_prog_compiler_pic_CXX='-fPIC'
57553 # All AIX code is PIC.
57554 if test "$host_cpu" = ia64; then
57555 # AIX 5 now supports IA64 processor
57556 lt_prog_compiler_static_CXX='-Bstatic'
57558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
57562 case $cc_basename in
57564 # Green Hills C++ Compiler
57565 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
57570 case $cc_basename in
57572 lt_prog_compiler_pic_CXX='-KPIC'
57575 # Green Hills C++ Compiler
57576 lt_prog_compiler_pic_CXX='-pic'
57582 freebsd* | dragonfly*)
57583 # FreeBSD uses GNU C++
57585 hpux9* | hpux10* | hpux11*)
57586 case $cc_basename in
57588 lt_prog_compiler_wl_CXX='-Wl,'
57589 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
57590 if test "$host_cpu" != ia64; then
57591 lt_prog_compiler_pic_CXX='+Z'
57595 lt_prog_compiler_wl_CXX='-Wl,'
57596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
57602 lt_prog_compiler_pic_CXX='+Z'
57611 # This is c89, which is MS Visual C++ (no shared libs)
57612 # Anyone wants to do a port?
57614 irix5* | irix6* | nonstopux*)
57615 case $cc_basename in
57617 lt_prog_compiler_wl_CXX='-Wl,'
57618 lt_prog_compiler_static_CXX='-non_shared'
57619 # CC pic flag -KPIC is the default.
57625 linux* | k*bsd*-gnu)
57626 case $cc_basename in
57629 lt_prog_compiler_wl_CXX='--backend -Wl,'
57630 lt_prog_compiler_pic_CXX='-fPIC'
57633 # old Intel C++ for x86_64 which still supported -KPIC.
57634 lt_prog_compiler_wl_CXX='-Wl,'
57635 lt_prog_compiler_pic_CXX='-KPIC'
57636 lt_prog_compiler_static_CXX='-static'
57639 # Intel C++, used to be incompatible with GCC.
57640 # ICC 10 doesn't accept -KPIC any more.
57641 lt_prog_compiler_wl_CXX='-Wl,'
57642 lt_prog_compiler_pic_CXX='-fPIC'
57643 lt_prog_compiler_static_CXX='-static'
57646 # Portland Group C++ compiler
57647 lt_prog_compiler_wl_CXX='-Wl,'
57648 lt_prog_compiler_pic_CXX='-fpic'
57649 lt_prog_compiler_static_CXX='-Bstatic'
57653 # Make sure the PIC flag is empty. It appears that all Alpha
57654 # Linux and Compaq Tru64 Unix objects are PIC.
57655 lt_prog_compiler_pic_CXX=
57656 lt_prog_compiler_static_CXX='-non_shared'
57659 # IBM XL 8.0 on PPC
57660 lt_prog_compiler_wl_CXX='-Wl,'
57661 lt_prog_compiler_pic_CXX='-qpic'
57662 lt_prog_compiler_static_CXX='-qstaticlink'
57665 case `$CC -V 2>&1 | sed 5q` in
57668 lt_prog_compiler_pic_CXX='-KPIC'
57669 lt_prog_compiler_static_CXX='-Bstatic'
57670 lt_prog_compiler_wl_CXX='-Qoption ld '
57681 case $cc_basename in
57683 lt_prog_compiler_pic_CXX='-W c,exportall'
57692 # QNX uses GNU C++, but need to define -shared option too, otherwise
57693 # it will coredump.
57694 lt_prog_compiler_pic_CXX='-fPIC -shared'
57696 osf3* | osf4* | osf5*)
57697 case $cc_basename in
57699 lt_prog_compiler_wl_CXX='--backend -Wl,'
57702 # Rational C++ 2.4.1
57703 lt_prog_compiler_pic_CXX='-pic'
57706 # Digital/Compaq C++
57707 lt_prog_compiler_wl_CXX='-Wl,'
57708 # Make sure the PIC flag is empty. It appears that all Alpha
57709 # Linux and Compaq Tru64 Unix objects are PIC.
57710 lt_prog_compiler_pic_CXX=
57711 lt_prog_compiler_static_CXX='-non_shared'
57720 case $cc_basename in
57722 # Sun C++ 4.2, 5.x and Centerline C++
57723 lt_prog_compiler_pic_CXX='-KPIC'
57724 lt_prog_compiler_static_CXX='-Bstatic'
57725 lt_prog_compiler_wl_CXX='-Qoption ld '
57728 # Green Hills C++ Compiler
57729 lt_prog_compiler_pic_CXX='-PIC'
57736 case $cc_basename in
57739 lt_prog_compiler_pic_CXX='-pic'
57740 lt_prog_compiler_static_CXX='-Bstatic'
57744 lt_prog_compiler_pic_CXX='-pic'
57750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
57751 case $cc_basename in
57753 lt_prog_compiler_wl_CXX='-Wl,'
57754 lt_prog_compiler_pic_CXX='-KPIC'
57755 lt_prog_compiler_static_CXX='-Bstatic'
57760 case $cc_basename in
57762 # NonStop-UX NCC 3.20
57763 lt_prog_compiler_pic_CXX='-KPIC'
57772 lt_prog_compiler_can_build_shared_CXX=no
57778 # For platforms which do not support PIC, -DPIC is meaningless:
57780 lt_prog_compiler_pic_CXX=
57783 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
57786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
57787 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
57792 # Check to make sure the PIC flag actually works.
57794 if test -n "$lt_prog_compiler_pic_CXX"; then
57795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
57796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
57797 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
57798 $as_echo_n "(cached) " >&6
57800 lt_cv_prog_compiler_pic_works_CXX=no
57801 ac_outfile=conftest.$ac_objext
57802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
57804 # Insert the option either (1) after the last *FLAGS variable, or
57805 # (2) before a word containing "conftest.", or (3) at the end.
57806 # Note that $ac_compile itself does not contain backslashes and begins
57807 # with a dollar sign (not a hyphen), so the echo should work correctly.
57808 # The option is referenced via a variable to avoid confusing sed.
57809 lt_compile=`echo "$ac_compile" | $SED \
57810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57812 -e 's:$: $lt_compiler_flag:'`
57813 (eval echo "\"\$as_me:57813: $lt_compile\"" >&5)
57814 (eval "$lt_compile" 2>conftest.err)
57816 cat conftest.err >&5
57817 echo "$as_me:57817: \$? = $ac_status" >&5
57818 if (exit $ac_status) && test -s "$ac_outfile"; then
57819 # The compiler can only warn and ignore the option if not recognized
57820 # So say no if there are warnings other than the usual output.
57821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
57822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
57823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
57824 lt_cv_prog_compiler_pic_works_CXX=yes
57830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
57831 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
57833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
57834 case $lt_prog_compiler_pic_CXX in
57836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
57839 lt_prog_compiler_pic_CXX=
57840 lt_prog_compiler_can_build_shared_CXX=no
57848 # Check to make sure the static flag actually works.
57850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
57851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
57852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
57853 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
57854 $as_echo_n "(cached) " >&6
57856 lt_cv_prog_compiler_static_works_CXX=no
57857 save_LDFLAGS="$LDFLAGS"
57858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
57859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
57860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
57861 # The linker can only warn and ignore the option if not recognized
57862 # So say no if there are warnings
57863 if test -s conftest.err; then
57864 # Append any errors to the config.log.
57865 cat conftest.err 1>&5
57866 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
57867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
57868 if diff conftest.exp conftest.er2 >/dev/null; then
57869 lt_cv_prog_compiler_static_works_CXX=yes
57872 lt_cv_prog_compiler_static_works_CXX=yes
57876 LDFLAGS="$save_LDFLAGS"
57879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
57880 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
57882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
57885 lt_prog_compiler_static_CXX=
57891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
57892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
57893 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
57894 $as_echo_n "(cached) " >&6
57896 lt_cv_prog_compiler_c_o_CXX=no
57897 $RM -r conftest 2>/dev/null
57901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57903 lt_compiler_flag="-o out/conftest2.$ac_objext"
57904 # Insert the option either (1) after the last *FLAGS variable, or
57905 # (2) before a word containing "conftest.", or (3) at the end.
57906 # Note that $ac_compile itself does not contain backslashes and begins
57907 # with a dollar sign (not a hyphen), so the echo should work correctly.
57908 lt_compile=`echo "$ac_compile" | $SED \
57909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57911 -e 's:$: $lt_compiler_flag:'`
57912 (eval echo "\"\$as_me:57912: $lt_compile\"" >&5)
57913 (eval "$lt_compile" 2>out/conftest.err)
57915 cat out/conftest.err >&5
57916 echo "$as_me:57916: \$? = $ac_status" >&5
57917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
57919 # The compiler can only warn and ignore the option if not recognized
57920 # So say no if there are warnings
57921 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
57922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
57923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
57924 lt_cv_prog_compiler_c_o_CXX=yes
57929 # SGI C++ compiler will create directory out/ii_files/ for
57930 # template instantiation
57931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
57932 $RM out/* && rmdir out
57938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
57939 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
57943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
57944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
57945 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
57946 $as_echo_n "(cached) " >&6
57948 lt_cv_prog_compiler_c_o_CXX=no
57949 $RM -r conftest 2>/dev/null
57953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57955 lt_compiler_flag="-o out/conftest2.$ac_objext"
57956 # Insert the option either (1) after the last *FLAGS variable, or
57957 # (2) before a word containing "conftest.", or (3) at the end.
57958 # Note that $ac_compile itself does not contain backslashes and begins
57959 # with a dollar sign (not a hyphen), so the echo should work correctly.
57960 lt_compile=`echo "$ac_compile" | $SED \
57961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
57962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
57963 -e 's:$: $lt_compiler_flag:'`
57964 (eval echo "\"\$as_me:57964: $lt_compile\"" >&5)
57965 (eval "$lt_compile" 2>out/conftest.err)
57967 cat out/conftest.err >&5
57968 echo "$as_me:57968: \$? = $ac_status" >&5
57969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
57971 # The compiler can only warn and ignore the option if not recognized
57972 # So say no if there are warnings
57973 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
57974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
57975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
57976 lt_cv_prog_compiler_c_o_CXX=yes
57981 # SGI C++ compiler will create directory out/ii_files/ for
57982 # template instantiation
57983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
57984 $RM out/* && rmdir out
57990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
57991 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
57996 hard_links="nottested"
57997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
57998 # do not overwrite the value of need_locks provided by the user
57999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
58000 $as_echo_n "checking if we can lock with hard links... " >&6; }
58003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
58005 ln conftest.a conftest.b 2>&5 || hard_links=no
58006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
58007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
58008 $as_echo "$hard_links" >&6; }
58009 if test "$hard_links" = no; then
58010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
58011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
58020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
58021 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
58023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
58026 # If we're using GNU nm, then we don't want the "-C" option.
58027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
58028 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
58029 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58031 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58035 export_symbols_cmds_CXX="$ltdll_cmds"
58037 cygwin* | mingw* | cegcc*)
58038 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
58041 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
58044 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
58046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
58047 $as_echo "$ld_shlibs_CXX" >&6; }
58048 test "$ld_shlibs_CXX" = no && can_build_shared=no
58050 with_gnu_ld_CXX=$with_gnu_ld
58058 # Do we need to explicitly link libc?
58060 case "x$archive_cmds_need_lc_CXX" in
58062 # Assume -lc should be added
58063 archive_cmds_need_lc_CXX=yes
58065 if test "$enable_shared" = yes && test "$GCC" = yes; then
58066 case $archive_cmds_CXX in
58068 # FIXME: we may have to deal with multi-command sequences.
58071 # Test whether the compiler implicitly links with -lc since on some
58072 # systems, -lgcc has to come before -lc. If gcc already passes -lc
58073 # to ld, don't add -lc before -lgcc.
58074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
58075 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
58077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
58079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
58080 (eval $ac_compile) 2>&5
58082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58083 test $ac_status = 0; } 2>conftest.err; then
58086 libobjs=conftest.$ac_objext
58088 wl=$lt_prog_compiler_wl_CXX
58089 pic_flag=$lt_prog_compiler_pic_CXX
58095 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
58096 allow_undefined_flag_CXX=
58097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
58098 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
58100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58101 test $ac_status = 0; }
58103 archive_cmds_need_lc_CXX=no
58105 archive_cmds_need_lc_CXX=yes
58107 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
58109 cat conftest.err 1>&5
58112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
58113 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
58183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
58184 $as_echo_n "checking dynamic linker characteristics... " >&6; }
58186 library_names_spec=
58187 libname_spec='lib$name'
58191 postuninstall_cmds=
58195 shlibpath_overrides_runpath=unknown
58197 dynamic_linker="$host_os ld.so"
58198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
58199 need_lib_prefix=unknown
58200 hardcode_into_libs=no
58202 # when you set need_version to no, make sure it does not cause -set_version
58203 # flags to be left without arguments
58204 need_version=unknown
58209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
58210 shlibpath_var=LIBPATH
58212 # AIX 3 has no versioning support, so we append a major version to the name.
58213 soname_spec='${libname}${release}${shared_ext}$major'
58220 hardcode_into_libs=yes
58221 if test "$host_cpu" = ia64; then
58222 # AIX 5 supports IA64
58223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
58224 shlibpath_var=LD_LIBRARY_PATH
58226 # With GCC up to 2.95.x, collect2 would create an import file
58227 # for dependence libraries. The import file would start with
58228 # the line `#! .'. This would cause the generated library to
58229 # depend on `.', always an invalid library. This was fixed in
58230 # development snapshots of GCC prior to 3.0.
58232 aix4 | aix4.[01] | aix4.[01].*)
58233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
58235 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
58238 can_build_shared=no
58242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
58243 # soname into executable. Probably we can add versioning support to
58244 # collect2, so additional links can be useful in future.
58245 if test "$aix_use_runtimelinking" = yes; then
58246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
58247 # instead of lib<name>.a to let people know that these are not
58248 # typical AIX shared libraries.
58249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58251 # We preserve .a as extension for shared libraries through AIX4.2
58252 # and later when we are not doing run time linking.
58253 library_names_spec='${libname}${release}.a $libname.a'
58254 soname_spec='${libname}${release}${shared_ext}$major'
58256 shlibpath_var=LIBPATH
58263 # Since July 2007 AmigaOS4 officially supports .so libraries.
58264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
58265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58268 library_names_spec='$libname.ixlibrary $libname.a'
58269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
58270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
58276 library_names_spec='${libname}${shared_ext}'
58277 dynamic_linker="$host_os ld.so"
58278 shlibpath_var=LIBRARY_PATH
58284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58285 soname_spec='${libname}${release}${shared_ext}$major'
58286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
58287 shlibpath_var=LD_LIBRARY_PATH
58288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
58289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
58290 # the default ld.so.conf also contains /usr/contrib/lib and
58291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
58292 # libtool to hard-code these into programs
58295 cygwin* | mingw* | pw32* | cegcc*)
58296 version_type=windows
58301 case $GCC,$host_os in
58302 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
58303 library_names_spec='$libname.dll.a'
58304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
58305 postinstall_cmds='base_file=`basename \${file}`~
58306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
58307 dldir=$destdir/`dirname \$dlpath`~
58308 test -d \$dldir || mkdir -p \$dldir~
58309 $install_prog $dir/$dlname \$dldir/$dlname~
58310 chmod a+x \$dldir/$dlname~
58311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
58312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
58314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
58315 dlpath=$dir/\$dldll~
58317 shlibpath_overrides_runpath=yes
58321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
58322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
58326 # MinGW DLLs use traditional 'lib' prefix
58327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58328 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
58329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
58330 # It is most probably a Windows format PATH printed by
58331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
58332 # path with ; separators, and with drive letters. We can handle the
58333 # drive letters (cygwin fileutils understands them), so leave them,
58334 # especially as we might pass files found there to a mingw objdump,
58335 # which wouldn't understand a cygwinified path. Ahh.
58336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
58338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
58342 # pw32 DLLs use 'pw' prefix rather than 'lib'
58343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
58349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
58352 dynamic_linker='Win32 ld.exe'
58353 # FIXME: first we should search . and the directory the executable is in
58357 darwin* | rhapsody*)
58358 dynamic_linker="$host_os dyld"
58359 version_type=darwin
58362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
58363 soname_spec='${libname}${release}${major}$shared_ext'
58364 shlibpath_overrides_runpath=yes
58365 shlibpath_var=DYLD_LIBRARY_PATH
58366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
58368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
58375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
58376 soname_spec='${libname}${release}${shared_ext}$major'
58377 shlibpath_var=LD_LIBRARY_PATH
58384 freebsd* | dragonfly*)
58385 # DragonFly does not have aout. When/if they implement a new
58386 # versioning mechanism, adjust this.
58387 if test -x /usr/bin/objformat; then
58388 objformat=`/usr/bin/objformat`
58391 freebsd[123]*) objformat=aout ;;
58392 *) objformat=elf ;;
58395 version_type=freebsd-$objformat
58396 case $version_type in
58398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
58403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
58407 shlibpath_var=LD_LIBRARY_PATH
58410 shlibpath_overrides_runpath=yes
58412 freebsd3.[01]* | freebsdelf3.[01]*)
58413 shlibpath_overrides_runpath=yes
58414 hardcode_into_libs=yes
58416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
58417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
58418 shlibpath_overrides_runpath=no
58419 hardcode_into_libs=yes
58421 *) # from 4.6 on, and DragonFly
58422 shlibpath_overrides_runpath=yes
58423 hardcode_into_libs=yes
58432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
58433 soname_spec='${libname}${release}${shared_ext}$major'
58434 shlibpath_var=LD_LIBRARY_PATH
58435 hardcode_into_libs=yes
58438 hpux9* | hpux10* | hpux11*)
58439 # Give a soname corresponding to the major version so that dld.sl refuses to
58440 # link against other versions.
58447 hardcode_into_libs=yes
58448 dynamic_linker="$host_os dld.so"
58449 shlibpath_var=LD_LIBRARY_PATH
58450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
58451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58452 soname_spec='${libname}${release}${shared_ext}$major'
58453 if test "X$HPUX_IA64_MODE" = X32; then
58454 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
58456 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
58458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
58462 hardcode_into_libs=yes
58463 dynamic_linker="$host_os dld.sl"
58464 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
58465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
58466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58467 soname_spec='${libname}${release}${shared_ext}$major'
58468 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
58469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
58473 dynamic_linker="$host_os dld.sl"
58474 shlibpath_var=SHLIB_PATH
58475 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
58476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58477 soname_spec='${libname}${release}${shared_ext}$major'
58480 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
58481 postinstall_cmds='chmod 555 $lib'
58482 # or fails outright, so override atomically:
58483 install_override_mode=555
58490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
58491 soname_spec='${libname}${release}${shared_ext}$major'
58492 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
58493 shlibpath_var=LD_LIBRARY_PATH
58494 shlibpath_overrides_runpath=no
58495 hardcode_into_libs=yes
58498 irix5* | irix6* | nonstopux*)
58500 nonstopux*) version_type=nonstopux ;;
58502 if test "$lt_cv_prog_gnu_ld" = yes; then
58510 soname_spec='${libname}${release}${shared_ext}$major'
58511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
58513 irix5* | nonstopux*)
58514 libsuff= shlibsuff=
58517 case $LD in # libtool.m4 will add one of these switches to LD
58518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
58519 libsuff= shlibsuff= libmagic=32-bit;;
58520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
58521 libsuff=32 shlibsuff=N32 libmagic=N32;;
58522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
58523 libsuff=64 shlibsuff=64 libmagic=64-bit;;
58524 *) libsuff= shlibsuff= libmagic=never-match;;
58528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
58529 shlibpath_overrides_runpath=no
58530 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
58531 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
58532 hardcode_into_libs=yes
58535 # No shared lib support for Linux oldld, aout, or coff.
58536 linux*oldld* | linux*aout* | linux*coff*)
58540 # This must be Linux ELF.
58541 linux* | k*bsd*-gnu)
58545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58546 soname_spec='${libname}${release}${shared_ext}$major'
58547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
58548 shlibpath_var=LD_LIBRARY_PATH
58549 shlibpath_overrides_runpath=no
58550 # Some binutils ld are patched to set DT_RUNPATH
58551 save_LDFLAGS=$LDFLAGS
58552 save_libdir=$libdir
58553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
58554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
58555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58556 /* end confdefs.h. */
58566 if ac_fn_cxx_try_link "$LINENO"; then :
58567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
58568 shlibpath_overrides_runpath=yes
58571 rm -f core conftest.err conftest.$ac_objext \
58572 conftest$ac_exeext conftest.$ac_ext
58573 LDFLAGS=$save_LDFLAGS
58574 libdir=$save_libdir
58576 # This implies no fast_install, which is unacceptable.
58577 # Some rework will be needed to allow for fast_install
58578 # before this can be enabled.
58579 hardcode_into_libs=yes
58581 # Append ld.so.conf contents to the search path
58582 if test -f /etc/ld.so.conf; then
58583 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
58584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
58587 # We used to test for /lib/ld.so.1 and disable shared libraries on
58588 # powerpc, because MkLinux only supported shared libraries with the
58589 # GNU dynamic linker. Since this was broken with cross compilers,
58590 # most powerpc-linux boxes support dynamic linking these days and
58591 # people can always --disable-shared, the test was removed, and we
58592 # assume the GNU/Linux dynamic linker is in use.
58593 dynamic_linker='GNU/Linux ld.so'
58600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
58601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
58603 dynamic_linker='NetBSD (a.out) ld.so'
58605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
58606 soname_spec='${libname}${release}${shared_ext}$major'
58607 dynamic_linker='NetBSD ld.elf_so'
58609 shlibpath_var=LD_LIBRARY_PATH
58610 shlibpath_overrides_runpath=yes
58611 hardcode_into_libs=yes
58616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58617 shlibpath_var=LD_LIBRARY_PATH
58618 shlibpath_overrides_runpath=yes
58625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58626 soname_spec='${libname}${release}${shared_ext}$major'
58627 shlibpath_var=LD_LIBRARY_PATH
58628 shlibpath_overrides_runpath=no
58629 hardcode_into_libs=yes
58630 dynamic_linker='ldqnx.so'
58635 sys_lib_dlsearch_path_spec="/usr/lib"
58637 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
58639 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
58640 *) need_version=no ;;
58642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
58644 shlibpath_var=LD_LIBRARY_PATH
58645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
58647 openbsd2.[89] | openbsd2.[89].*)
58648 shlibpath_overrides_runpath=no
58651 shlibpath_overrides_runpath=yes
58655 shlibpath_overrides_runpath=yes
58660 libname_spec='$name'
58663 library_names_spec='$libname${shared_ext} $libname.a'
58664 dynamic_linker='OS/2 ld.exe'
58665 shlibpath_var=LIBPATH
58668 osf3* | osf4* | osf5*)
58672 soname_spec='${libname}${release}${shared_ext}$major'
58673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58674 shlibpath_var=LD_LIBRARY_PATH
58675 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
58676 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
58687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58688 soname_spec='${libname}${release}${shared_ext}$major'
58689 shlibpath_var=LD_LIBRARY_PATH
58690 shlibpath_overrides_runpath=yes
58691 hardcode_into_libs=yes
58692 # ldd complains unless libraries are executable
58693 postinstall_cmds='chmod +x $lib'
58698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
58699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
58700 shlibpath_var=LD_LIBRARY_PATH
58701 shlibpath_overrides_runpath=yes
58702 if test "$with_gnu_ld" = yes; then
58710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58711 soname_spec='${libname}${release}${shared_ext}$major'
58712 shlibpath_var=LD_LIBRARY_PATH
58713 case $host_vendor in
58715 shlibpath_overrides_runpath=no
58717 runpath_var=LD_RUN_PATH
58725 shlibpath_overrides_runpath=no
58726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
58732 if test -d /usr/nec ;then
58734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
58735 soname_spec='$libname${shared_ext}.$major'
58736 shlibpath_var=LD_LIBRARY_PATH
58740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
58741 version_type=freebsd-elf
58744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
58745 soname_spec='${libname}${release}${shared_ext}$major'
58746 shlibpath_var=LD_LIBRARY_PATH
58747 shlibpath_overrides_runpath=yes
58748 hardcode_into_libs=yes
58749 if test "$with_gnu_ld" = yes; then
58750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
58752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
58755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
58759 sys_lib_dlsearch_path_spec='/usr/lib'
58763 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
58767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58768 shlibpath_var=LD_LIBRARY_PATH
58769 shlibpath_overrides_runpath=no
58770 hardcode_into_libs=yes
58775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
58776 soname_spec='${libname}${release}${shared_ext}$major'
58777 shlibpath_var=LD_LIBRARY_PATH
58784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
58785 $as_echo "$dynamic_linker" >&6; }
58786 test "$dynamic_linker" = no && can_build_shared=no
58788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
58789 if test "$GCC" = yes; then
58790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
58793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
58794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
58796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
58797 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
58837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
58838 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
58839 hardcode_action_CXX=
58840 if test -n "$hardcode_libdir_flag_spec_CXX" ||
58841 test -n "$runpath_var_CXX" ||
58842 test "X$hardcode_automatic_CXX" = "Xyes" ; then
58844 # We can hardcode non-existent directories.
58845 if test "$hardcode_direct_CXX" != no &&
58846 # If the only mechanism to avoid hardcoding is shlibpath_var, we
58847 # have to relink, otherwise we might link with an installed library
58848 # when we should be linking with a yet-to-be-installed one
58849 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
58850 test "$hardcode_minus_L_CXX" != no; then
58851 # Linking always hardcodes the temporary library directory.
58852 hardcode_action_CXX=relink
58854 # We can link without hardcoding, and we can hardcode nonexisting dirs.
58855 hardcode_action_CXX=immediate
58858 # We cannot hardcode anything, or else we can only hardcode existing
58860 hardcode_action_CXX=unsupported
58862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
58863 $as_echo "$hardcode_action_CXX" >&6; }
58865 if test "$hardcode_action_CXX" = relink ||
58866 test "$inherit_rpath_CXX" = yes; then
58867 # Fast installation is not supported
58868 enable_fast_install=no
58869 elif test "$shlibpath_overrides_runpath" = yes ||
58870 test "$enable_shared" = no; then
58871 # Fast installation is not necessary
58872 enable_fast_install=needless
58881 fi # test -n "$compiler"
58887 with_gnu_ld=$lt_save_with_gnu_ld
58888 lt_cv_path_LDCXX=$lt_cv_path_LD
58889 lt_cv_path_LD=$lt_save_path_LD
58890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
58891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
58892 fi # test "$_lt_caught_CXX_error" != yes
58895 ac_cpp='$CPP $CPPFLAGS'
58896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
58902 if test "${enable_libasprintf+set}" = set; then
58903 if test "$enable_libasprintf" != no; then
58904 TESTLIBASPRINTF=yes
58909 TESTLIBASPRINTF=yes
58911 if test "$CXX" = ":"; then
58916 test -d intl || mkdir intl
58917 echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
58918 cat > intl/ChangeLog.inst <<EOF
58919 $RELEASE_DATE GNU <bug-gnu-gettext@gnu.org>
58921 * Version $VERSION released.
58927 subdirs="$subdirs examples"
58930 ac_config_files="$ac_config_files Makefile"
58933 ac_config_files="$ac_config_files doc/Makefile"
58936 ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
58939 ac_config_files="$ac_config_files gnulib-lib/Makefile"
58942 ac_config_files="$ac_config_files libgrep/Makefile"
58945 ac_config_files="$ac_config_files src/Makefile"
58947 ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
58950 ac_config_files="$ac_config_files libgettextpo/Makefile"
58952 ac_config_files="$ac_config_files libgettextpo/exported.sh"
58955 ac_config_files="$ac_config_files po/Makefile.in"
58958 ac_config_files="$ac_config_files projects/Makefile"
58961 ac_config_files="$ac_config_files styles/Makefile"
58964 ac_config_files="$ac_config_files misc/Makefile"
58966 ac_config_files="$ac_config_files misc/gettextize"
58968 ac_config_files="$ac_config_files misc/autopoint"
58970 ac_config_files="$ac_config_files misc/convert-archive"
58973 ac_config_files="$ac_config_files man/Makefile"
58975 ac_config_files="$ac_config_files man/x-to-1"
58978 ac_config_files="$ac_config_files m4/Makefile"
58981 ac_config_files="$ac_config_files tests/Makefile"
58984 ac_config_files="$ac_config_files gnulib-tests/Makefile"
58987 cat >confcache <<\_ACEOF
58988 # This file is a shell script that caches the results of configure
58989 # tests run on this system so they can be shared between configure
58990 # scripts and configure runs, see configure's option --config-cache.
58991 # It is not useful on other systems. If it contains results you don't
58992 # want to keep, you may remove or edit it.
58994 # config.status only pays attention to the cache file if you give it
58995 # the --recheck option to rerun configure.
58997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
58998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
58999 # following values.
59003 # The following way of writing the cache mishandles newlines in values,
59004 # but we know of no workaround that is simple, portable, and efficient.
59005 # So, we kill variables containing newlines.
59006 # Ultrix sh set writes to stderr and can't be redirected directly,
59007 # and sets the high bit in the cache file unless we assign to the vars.
59009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
59010 eval ac_val=\$$ac_var
59014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
59015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
59018 _ | IFS | as_nl) ;; #(
59019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
59020 *) { eval $ac_var=; unset $ac_var;} ;;
59026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
59027 *${as_nl}ac_space=\ *)
59028 # `set' does not quote correctly, so add quotes: double-quote
59029 # substitution turns \\\\ into \\, and sed turns \\ into \.
59032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59035 # `set' quotes correctly as required by POSIX, so do not add quotes.
59036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
59045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
59050 if test -w "$cache_file"; then
59051 test "x$cache_file" != "x/dev/null" &&
59052 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
59053 $as_echo "$as_me: updating cache $cache_file" >&6;}
59054 cat confcache >$cache_file
59056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
59057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
59062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
59063 # Let make expand exec_prefix.
59064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
59066 DEFS=-DHAVE_CONFIG_H
59070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
59071 # 1. Remove the extension, and $U if already installed.
59072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
59073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
59074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
59075 # will be set to the directory where LIBOBJS objects are built.
59076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
59077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
59079 LIBOBJS=$ac_libobjs
59081 LTLIBOBJS=$ac_ltlibobjs
59084 if test -n "$EXEEXT"; then
59086 am__EXEEXT_FALSE='#'
59088 am__EXEEXT_TRUE='#'
59092 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
59093 as_fn_error "conditional \"AMDEP\" was never defined.
59094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
59097 as_fn_error "conditional \"am__fastdepCC\" was never defined.
59098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59100 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
59101 as_fn_error "conditional \"WOE32\" was never defined.
59102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59104 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59105 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59108 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
59109 as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined.
59110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59112 if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
59113 as_fn_error "conditional \"INCLUDED_LIBCROCO\" was never defined.
59114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59116 if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
59117 as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined.
59118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59120 if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
59121 as_fn_error "conditional \"INCLUDED_LIBXML\" was never defined.
59122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59124 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
59125 as_fn_error "conditional \"RELOCATABLE_VIA_LD\" was never defined.
59126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59128 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
59129 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
59130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59132 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
59133 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
59134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59136 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
59137 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
59138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59140 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
59141 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
59142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59144 if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then
59145 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined.
59146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59148 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
59149 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
59150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59152 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
59153 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
59154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59156 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
59157 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
59158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59160 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
59161 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
59162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59164 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
59165 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
59166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59168 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
59169 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
59170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59172 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
59173 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
59174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59176 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
59177 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
59178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59180 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
59181 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
59182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59187 if test -n "$gl_LIBOBJS"; then
59188 # Remove the extension.
59189 sed_drop_objext='s/\.o$//;s/\.obj$//'
59190 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59191 gl_libobjs="$gl_libobjs $i.$ac_objext"
59192 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
59195 gl_LIBOBJS=$gl_libobjs
59197 gl_LTLIBOBJS=$gl_ltlibobjs
59200 if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then
59201 as_fn_error "conditional \"POSIX_SPAWN_PORTED\" was never defined.
59202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59204 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then
59205 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined.
59206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59208 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then
59209 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined.
59210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59215 if test -n "$gltests_LIBOBJS"; then
59216 # Remove the extension.
59217 sed_drop_objext='s/\.o$//;s/\.obj$//'
59218 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59219 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
59220 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
59223 gltests_LIBOBJS=$gltests_libobjs
59225 gltests_LTLIBOBJS=$gltests_ltlibobjs
59228 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59229 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59235 if test -n "$grgl_LIBOBJS"; then
59236 # Remove the extension.
59237 sed_drop_objext='s/\.o$//;s/\.obj$//'
59238 for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59239 grgl_libobjs="$grgl_libobjs $i.$ac_objext"
59240 grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
59243 grgl_LIBOBJS=$grgl_libobjs
59245 grgl_LTLIBOBJS=$grgl_ltlibobjs
59250 grgltests_ltlibobjs=
59251 if test -n "$grgltests_LIBOBJS"; then
59252 # Remove the extension.
59253 sed_drop_objext='s/\.o$//;s/\.obj$//'
59254 for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59255 grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
59256 grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
59259 grgltests_LIBOBJS=$grgltests_libobjs
59261 grgltests_LTLIBOBJS=$grgltests_ltlibobjs
59264 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
59265 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
59266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59268 if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then
59269 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined.
59270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59272 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then
59273 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined.
59274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59276 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then
59277 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined.
59278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59280 if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then
59281 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined.
59282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59284 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then
59285 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined.
59286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59288 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then
59289 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined.
59290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59292 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then
59293 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined.
59294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59296 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then
59297 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined.
59298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59300 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then
59301 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined.
59302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59304 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
59305 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
59306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59308 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then
59309 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined.
59310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59312 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
59313 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
59314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59316 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
59317 as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
59318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59323 if test -n "$gtpo_LIBOBJS"; then
59324 # Remove the extension.
59325 sed_drop_objext='s/\.o$//;s/\.obj$//'
59326 for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59327 gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
59328 gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
59331 gtpo_LIBOBJS=$gtpo_libobjs
59333 gtpo_LTLIBOBJS=$gtpo_ltlibobjs
59338 gtpotests_ltlibobjs=
59339 if test -n "$gtpotests_LIBOBJS"; then
59340 # Remove the extension.
59341 sed_drop_objext='s/\.o$//;s/\.obj$//'
59342 for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
59343 gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
59344 gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
59347 gtpotests_LIBOBJS=$gtpotests_libobjs
59349 gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs
59352 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
59353 as_fn_error "conditional \"WOE32DLL\" was never defined.
59354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59356 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
59357 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
59358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
59361 : ${CONFIG_STATUS=./config.status}
59363 ac_clean_files_save=$ac_clean_files
59364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
59365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
59366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
59368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
59370 # Generated by $as_me.
59371 # Run this file to recreate the current configuration.
59372 # Compiler output produced by configure, useful for debugging
59373 # configure, is in config.log if it exists.
59376 ac_cs_recheck=false
59379 SHELL=\${CONFIG_SHELL-$SHELL}
59382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
59383 ## -------------------- ##
59384 ## M4sh Initialization. ##
59385 ## -------------------- ##
59387 # Be more Bourne compatible
59388 DUALCASE=1; export DUALCASE # for MKS sh
59389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
59392 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
59393 # is contrary to our usage. Disable this feature.
59394 alias -g '${1+"$@"}'='"$@"'
59395 setopt NO_GLOB_SUBST
59397 case `(set -o) 2>/dev/null` in #(
59409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
59410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
59411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
59412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
59413 # Prefer a ksh shell builtin over an external printf program on Solaris,
59414 # but without wasting forks for bash or zsh.
59415 if test -z "$BASH_VERSION$ZSH_VERSION" \
59416 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
59417 as_echo='print -r --'
59418 as_echo_n='print -rn --'
59419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
59420 as_echo='printf %s\n'
59421 as_echo_n='printf %s'
59423 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59424 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59425 as_echo_n='/usr/ucb/echo -n'
59427 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59428 as_echo_n_body='eval
59432 expr "X$arg" : "X\\(.*\\)$as_nl";
59433 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
59435 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
59437 export as_echo_n_body
59438 as_echo_n='sh -c $as_echo_n_body as_echo'
59440 export as_echo_body
59441 as_echo='sh -c $as_echo_body as_echo'
59444 # The user is always right.
59445 if test "${PATH_SEPARATOR+set}" != set; then
59447 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
59448 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
59455 # We need space, tab and new line, in precisely that order. Quoting is
59456 # there to prevent editors from complaining about space-tab.
59457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
59458 # splitting by setting IFS to empty value.)
59461 # Find who we are. Look in the path if we contain no directory separator.
59463 *[\\/]* ) as_myself=$0 ;;
59464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59465 for as_dir in $PATH
59468 test -z "$as_dir" && as_dir=.
59469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
59475 # We did not find ourselves, most probably we were run as `sh COMMAND'
59476 # in which case we are not to be found in the path.
59477 if test "x$as_myself" = x; then
59480 if test ! -f "$as_myself"; then
59481 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
59485 # Unset variables that we do not need and which cause bugs (e.g. in
59486 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
59487 # suppresses any "Segmentation fault" message there. '((' could
59488 # trigger a bug in pdksh 5.2.14.
59489 for as_var in BASH_ENV ENV MAIL MAILPATH
59490 do eval test x\${$as_var+set} = xset \
59491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
59507 # as_fn_error ERROR [LINENO LOG_FD]
59508 # ---------------------------------
59509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
59510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
59511 # script with status $?, using 1 if that was 0.
59514 as_status=$?; test $as_status -eq 0 && as_status=1
59516 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
59517 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
59519 $as_echo "$as_me: error: $1" >&2
59520 as_fn_exit $as_status
59524 # as_fn_set_status STATUS
59525 # -----------------------
59526 # Set $? to STATUS, without forking.
59527 as_fn_set_status ()
59530 } # as_fn_set_status
59532 # as_fn_exit STATUS
59533 # -----------------
59534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
59538 as_fn_set_status $1
59544 # Portably unset VAR.
59547 { eval $1=; unset $1;}
59549 as_unset=as_fn_unset
59550 # as_fn_append VAR VALUE
59551 # ----------------------
59552 # Append the text in VALUE to the end of the definition contained in VAR. Take
59553 # advantage of any shell optimizations that allow amortized linear growth over
59554 # repeated appends, instead of the typical quadratic growth present in naive
59556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
59557 eval 'as_fn_append ()
59568 # as_fn_arith ARG...
59569 # ------------------
59570 # Perform arithmetic evaluation on the ARGs, and store the result in the
59571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
59572 # must be portable across $(()) and expr.
59573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
59574 eval 'as_fn_arith ()
59581 as_val=`expr "$@" || test $? -eq 1`
59586 if expr a : '\(a\)' >/dev/null 2>&1 &&
59587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
59593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59594 as_basename=basename
59599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
59605 as_me=`$as_basename -- "$0" ||
59606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
59607 X"$0" : 'X\(//\)$' \| \
59608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
59610 sed '/^.*\/\([^/][^/]*\)\/*$/{
59624 # Avoid depending upon Character Ranges.
59625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
59626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59628 as_cr_digits='0123456789'
59629 as_cr_alnum=$as_cr_Letters$as_cr_digits
59631 ECHO_C= ECHO_N= ECHO_T=
59632 case `echo -n x` in #(((((
59634 case `echo 'xy\c'` in
59635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
59637 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
59644 rm -f conf$$ conf$$.exe conf$$.file
59645 if test -d conf$$.dir; then
59646 rm -f conf$$.dir/conf$$.file
59649 mkdir conf$$.dir 2>/dev/null
59651 if (echo >conf$$.file) 2>/dev/null; then
59652 if ln -s conf$$.file conf$$ 2>/dev/null; then
59654 # ... but there are two gotchas:
59655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
59656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
59657 # In both cases, we have to default to `cp -p'.
59658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
59660 elif ln conf$$.file conf$$ 2>/dev/null; then
59668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
59669 rmdir conf$$.dir 2>/dev/null
59674 # Create "$as_dir" as a directory, including parents if necessary.
59679 -*) as_dir=./$as_dir;;
59681 test -d "$as_dir" || eval $as_mkdir_p || {
59685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
59686 *) as_qdir=$as_dir;;
59688 as_dirs="'$as_qdir' $as_dirs"
59689 as_dir=`$as_dirname -- "$as_dir" ||
59690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59691 X"$as_dir" : 'X\(//\)[^/]' \| \
59692 X"$as_dir" : 'X\(//\)$' \| \
59693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59694 $as_echo X"$as_dir" |
59695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59699 /^X\(\/\/\)[^/].*/{
59712 test -d "$as_dir" && break
59714 test -z "$as_dirs" || eval "mkdir $as_dirs"
59715 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
59719 if mkdir -p . 2>/dev/null; then
59720 as_mkdir_p='mkdir -p "$as_dir"'
59722 test -d ./-p && rmdir ./-p
59726 if test -x / >/dev/null 2>&1; then
59727 as_test_x='test -x'
59729 if ls -dL / >/dev/null 2>&1; then
59736 if test -d "$1"; then
59742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
59743 ???[sx]*):;;*)false;;esac;fi
59747 as_executable_p=$as_test_x
59749 # Sed expression to map a string onto a valid CPP name.
59750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
59752 # Sed expression to map a string onto a valid variable name.
59753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59757 ## ----------------------------------- ##
59758 ## Main body of $CONFIG_STATUS script. ##
59759 ## ----------------------------------- ##
59761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
59763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59764 # Save the log message, to keep $0 and so on meaningful, and to
59765 # report actual input values of CONFIG_FILES etc. instead of their
59766 # values after options handling.
59768 This file was extended by gettext-tools $as_me, which was
59769 generated by GNU Autoconf 2.65. Invocation command line was
59771 CONFIG_FILES = $CONFIG_FILES
59772 CONFIG_HEADERS = $CONFIG_HEADERS
59773 CONFIG_LINKS = $CONFIG_LINKS
59774 CONFIG_COMMANDS = $CONFIG_COMMANDS
59777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
59782 case $ac_config_files in *"
59783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
59786 case $ac_config_headers in *"
59787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
59791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59792 # Files that config.status was made for.
59793 config_files="$ac_config_files"
59794 config_headers="$ac_config_headers"
59795 config_commands="$ac_config_commands"
59799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59801 \`$as_me' instantiates files and other configuration actions
59802 from templates according to the current configuration. Unless the files
59803 and actions are specified as TAGs, all are instantiated by default.
59805 Usage: $0 [OPTION]... [TAG]...
59807 -h, --help print this help, then exit
59808 -V, --version print version number and configuration settings, then exit
59809 --config print configuration, then exit
59810 -q, --quiet, --silent
59811 do not print progress messages
59812 -d, --debug don't remove temporary files
59813 --recheck update $as_me by reconfiguring in the same conditions
59814 --file=FILE[:TEMPLATE]
59815 instantiate the configuration file FILE
59816 --header=FILE[:TEMPLATE]
59817 instantiate the configuration header FILE
59819 Configuration files:
59822 Configuration headers:
59825 Configuration commands:
59828 Report bugs to the package provider."
59831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
59834 gettext-tools config.status
59835 configured by $0, generated by GNU Autoconf 2.65,
59836 with options \\"\$ac_cs_config\\"
59838 Copyright (C) 2009 Free Software Foundation, Inc.
59839 This config.status script is free software; the Free Software Foundation
59840 gives unlimited permission to copy, distribute and modify it."
59847 test -n "\$AWK" || AWK=awk
59850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59851 # The default lists apply if the user does not specify any file.
59857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
59858 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
59869 # Handling of the options.
59870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
59872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
59873 $as_echo "$ac_cs_version"; exit ;;
59874 --config | --confi | --conf | --con | --co | --c )
59875 $as_echo "$ac_cs_config"; exit ;;
59876 --debug | --debu | --deb | --de | --d | -d )
59878 --file | --fil | --fi | --f )
59881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59883 as_fn_append CONFIG_FILES " '$ac_optarg'"
59884 ac_need_defaults=false;;
59885 --header | --heade | --head | --hea )
59888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
59891 ac_need_defaults=false;;
59893 # Conflict between --help and --header
59894 as_fn_error "ambiguous option: \`$1'
59895 Try \`$0 --help' for more information.";;
59896 --help | --hel | -h )
59897 $as_echo "$ac_cs_usage"; exit ;;
59898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
59899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
59902 # This is an error.
59903 -*) as_fn_error "unrecognized option: \`$1'
59904 Try \`$0 --help' for more information." ;;
59906 *) as_fn_append ac_config_targets " $1"
59907 ac_need_defaults=false ;;
59913 ac_configure_extra_args=
59915 if $ac_cs_silent; then
59917 ac_configure_extra_args="$ac_configure_extra_args --silent"
59921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59922 if \$ac_cs_recheck; then
59923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
59926 CONFIG_SHELL='$SHELL'
59927 export CONFIG_SHELL
59932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59937 ## Running $as_me. ##
59943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59947 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
59950 # The HP-UX ksh and POSIX shell print the target directory to stdout
59951 # if CDPATH is set.
59952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
59954 sed_quote_subst='$sed_quote_subst'
59955 double_quote_subst='$double_quote_subst'
59956 delay_variable_subst='$delay_variable_subst'
59957 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
59958 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
59959 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
59960 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
59961 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
59962 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
59963 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
59964 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
59965 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
59966 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
59967 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
59968 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
59969 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
59970 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
59971 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
59972 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
59973 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
59974 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
59975 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
59976 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
59977 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
59978 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
59979 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
59980 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
59981 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
59982 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
59983 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
59984 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
59985 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
59986 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
59987 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59988 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
59989 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
59990 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
59991 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
59992 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
59993 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
59994 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59995 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59996 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
59997 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
59998 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
59999 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
60000 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
60001 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
60002 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
60003 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
60004 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
60005 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
60006 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
60007 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
60008 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
60009 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
60010 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
60011 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
60012 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
60013 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
60014 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
60015 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
60016 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
60017 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
60018 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
60019 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
60020 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
60021 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60022 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60023 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
60024 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
60025 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60026 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60027 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
60028 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60029 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60030 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60031 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60032 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60033 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60034 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
60035 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
60036 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
60037 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
60038 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
60039 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
60040 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
60041 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
60042 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
60043 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60044 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
60045 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
60046 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
60047 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
60048 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
60049 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60050 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
60051 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
60052 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60053 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
60054 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
60055 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
60056 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
60057 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
60058 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60059 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
60060 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
60061 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
60062 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
60063 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
60064 install_override_mode='`$ECHO "X$install_override_mode" | $Xsed -e "$delay_single_quote_subst"`'
60065 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60066 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60067 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
60068 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
60069 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
60070 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
60071 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
60072 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
60073 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
60074 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
60075 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
60076 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
60077 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
60078 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
60079 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
60080 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
60081 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
60082 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
60083 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
60084 LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`'
60085 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60086 old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60087 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60088 compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`'
60089 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60090 GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`'
60091 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60092 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60093 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60094 lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`'
60095 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60096 lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`'
60097 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60098 lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`'
60099 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60100 lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`'
60101 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60102 archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`'
60103 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60104 enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`'
60105 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60106 export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60107 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60108 whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60109 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60110 compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`'
60111 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60112 old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60113 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60114 old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60115 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60116 archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60117 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60118 archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60119 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60120 module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60121 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60122 module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60123 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60124 with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
60125 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60126 allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60127 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60128 no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`'
60129 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60130 hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60131 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60132 hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`'
60133 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60134 hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`'
60135 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60136 hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`'
60137 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60138 hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`'
60139 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60140 hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`'
60141 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60142 hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`'
60143 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60144 hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`'
60145 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60146 inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`'
60147 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60148 link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`'
60149 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60150 fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
60151 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60152 always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`'
60153 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60154 export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60155 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60156 exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
60157 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60158 include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`'
60159 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60160 prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`'
60161 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60162 file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`'
60163 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60164 hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`'
60165 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60166 compiler_lib_search_dirs_RC='`$ECHO "X$compiler_lib_search_dirs_RC" | $Xsed -e "$delay_single_quote_subst"`'
60167 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60168 predep_objects_RC='`$ECHO "X$predep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`'
60169 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60170 postdep_objects_RC='`$ECHO "X$postdep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`'
60171 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60172 predeps_RC='`$ECHO "X$predeps_RC" | $Xsed -e "$delay_single_quote_subst"`'
60173 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60174 postdeps_RC='`$ECHO "X$postdeps_RC" | $Xsed -e "$delay_single_quote_subst"`'
60175 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60176 compiler_lib_search_path_RC='`$ECHO "X$compiler_lib_search_path_RC" | $Xsed -e "$delay_single_quote_subst"`'
60177 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
60180 LTCFLAGS='$LTCFLAGS'
60181 compiler='$compiler_DEFAULT'
60183 # Quote evaled strings.
60194 deplibs_check_method \
60203 lt_cv_sys_global_symbol_pipe \
60204 lt_cv_sys_global_symbol_to_cdecl \
60205 lt_cv_sys_global_symbol_to_c_name_address \
60206 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
60209 lt_prog_compiler_no_builtin_flag \
60210 lt_prog_compiler_wl \
60211 lt_prog_compiler_pic \
60212 lt_prog_compiler_static \
60213 lt_cv_prog_compiler_c_o \
60221 export_dynamic_flag_spec \
60222 whole_archive_flag_spec \
60223 compiler_needs_object \
60225 allow_undefined_flag \
60226 no_undefined_flag \
60227 hardcode_libdir_flag_spec \
60228 hardcode_libdir_flag_spec_ld \
60229 hardcode_libdir_separator \
60234 variables_saved_for_relink \
60236 library_names_spec \
60238 install_override_mode \
60242 compiler_lib_search_dirs \
60247 compiler_lib_search_path \
60252 lt_prog_compiler_no_builtin_flag_RC \
60253 lt_prog_compiler_no_builtin_flag_CXX \
60254 lt_prog_compiler_wl_RC \
60255 lt_prog_compiler_wl_CXX \
60256 lt_prog_compiler_pic_RC \
60257 lt_prog_compiler_pic_CXX \
60258 lt_prog_compiler_static_RC \
60259 lt_prog_compiler_static_CXX \
60260 lt_cv_prog_compiler_c_o_RC \
60261 lt_cv_prog_compiler_c_o_CXX \
60262 export_dynamic_flag_spec_RC \
60263 export_dynamic_flag_spec_CXX \
60264 whole_archive_flag_spec_RC \
60265 whole_archive_flag_spec_CXX \
60266 compiler_needs_object_RC \
60267 compiler_needs_object_CXX \
60270 allow_undefined_flag_RC \
60271 allow_undefined_flag_CXX \
60272 no_undefined_flag_RC \
60273 no_undefined_flag_CXX \
60274 hardcode_libdir_flag_spec_RC \
60275 hardcode_libdir_flag_spec_CXX \
60276 hardcode_libdir_flag_spec_ld_RC \
60277 hardcode_libdir_flag_spec_ld_CXX \
60278 hardcode_libdir_separator_RC \
60279 hardcode_libdir_separator_CXX \
60280 fix_srcfile_path_RC \
60281 fix_srcfile_path_CXX \
60282 exclude_expsyms_RC \
60283 exclude_expsyms_CXX \
60284 include_expsyms_RC \
60285 include_expsyms_CXX \
60286 file_list_spec_RC \
60287 file_list_spec_CXX \
60288 compiler_lib_search_dirs_RC \
60289 compiler_lib_search_dirs_CXX \
60290 predep_objects_RC \
60291 predep_objects_CXX \
60292 postdep_objects_RC \
60293 postdep_objects_CXX \
60298 compiler_lib_search_path_RC \
60299 compiler_lib_search_path_CXX; do
60300 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
60301 *[\\\\\\\`\\"\\\$]*)
60302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
60305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
60310 # Double-quote double-evaled strings.
60311 for var in reload_cmds \
60312 old_postinstall_cmds \
60313 old_postuninstall_cmds \
60315 extract_expsyms_cmds \
60316 old_archive_from_new_cmds \
60317 old_archive_from_expsyms_cmds \
60319 archive_expsym_cmds \
60321 module_expsym_cmds \
60322 export_symbols_cmds \
60325 postuninstall_cmds \
60327 sys_lib_search_path_spec \
60328 sys_lib_dlsearch_path_spec \
60329 old_archive_cmds_RC \
60330 old_archive_cmds_CXX \
60331 old_archive_from_new_cmds_RC \
60332 old_archive_from_new_cmds_CXX \
60333 old_archive_from_expsyms_cmds_RC \
60334 old_archive_from_expsyms_cmds_CXX \
60337 archive_expsym_cmds_RC \
60338 archive_expsym_cmds_CXX \
60341 module_expsym_cmds_RC \
60342 module_expsym_cmds_CXX \
60343 export_symbols_cmds_RC \
60344 export_symbols_cmds_CXX \
60346 prelink_cmds_CXX; do
60347 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
60348 *[\\\\\\\`\\"\\\$]*)
60349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
60352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
60357 # Fix-up fallback echo if it was mangled by the above quoting rules.
60359 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
60363 ac_aux_dir='$ac_aux_dir'
60364 xsi_shell='$xsi_shell'
60365 lt_shell_append='$lt_shell_append'
60367 # See if we are running on zsh, and set the options which allow our
60368 # commands through without removal of \ escapes INIT.
60369 if test -n "\${ZSH_VERSION+set}" ; then
60370 setopt NO_GLOB_SUBST
60376 TIMESTAMP='$TIMESTAMP'
60386 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
60387 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
60388 # from automake < 1.5.
60389 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
60390 # Capture the value of LINGUAS because we need it to compute CATALOGS.
60391 LINGUAS="${LINGUAS-%UNSET%}"
60396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60398 # Handling of arguments.
60399 for ac_config_target in $ac_config_targets
60401 case $ac_config_target in
60402 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
60403 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
60404 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
60405 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
60406 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
60407 "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
60408 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
60409 "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
60410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
60411 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
60412 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
60413 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
60414 "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
60415 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
60416 "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
60417 "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
60418 "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
60419 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
60420 "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
60421 "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
60422 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
60423 "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
60424 "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
60425 "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;;
60426 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
60427 "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
60428 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
60429 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
60430 "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
60432 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
60437 # If the user did not use the arguments to specify the items to instantiate,
60438 # then the envvar interface is used. Set only those that are not.
60439 # We use the long form for the default assignment because of an extremely
60440 # bizarre bug on SunOS 4.1.3.
60441 if $ac_need_defaults; then
60442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
60443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
60444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
60447 # Have a temporary directory for convenience. Make it in the build tree
60448 # simply because there is no reason against having it here, and in addition,
60449 # creating and moving files from /tmp can sometimes cause problems.
60450 # Hook for its removal unless debugging.
60451 # Note that there is a small window in which the directory will not be cleaned:
60452 # after its creation but before its name has been assigned to `$tmp'.
60456 trap 'exit_status=$?
60457 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
60459 trap 'as_fn_exit 1' 1 2 13 15
60461 # Create a (secure) tmp directory for tmp files.
60464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
60465 test -n "$tmp" && test -d "$tmp"
60468 tmp=./conf$$-$RANDOM
60469 (umask 077 && mkdir "$tmp")
60470 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
60472 # Set up the scripts for CONFIG_FILES section.
60473 # No need to generate them if there are no CONFIG_FILES.
60474 # This happens for instance with `./config.status config.h'.
60475 if test -n "$CONFIG_FILES"; then
60477 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
60478 ac_cs_awk_getline=:
60479 ac_cs_awk_pipe_init=
60480 ac_cs_awk_read_file='
60481 while ((getline aline < (F[key])) > 0)
60484 ac_cs_awk_pipe_fini=
60486 ac_cs_awk_getline=false
60487 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
60488 ac_cs_awk_read_file='
60490 print "cat " F[key] " &&"
60491 '$ac_cs_awk_pipe_init
60492 # The final `:' finishes the AND list.
60493 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
60495 ac_cr=`echo X | tr X '\015'`
60496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
60497 # But we know of no other shell where ac_cr would be empty at this
60498 # point, so we can use a bashism as a fallback.
60499 if test "x$ac_cr" = x; then
60500 eval ac_cr=\$\'\\r\'
60502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
60503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
60506 ac_cs_awk_cr=$ac_cr
60509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
60512 # Create commands to substitute file output variables.
60514 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
60515 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
60516 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
60519 } >conf$$files.sh &&
60520 . ./conf$$files.sh ||
60521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60522 rm -f conf$$files.sh
60525 echo "cat >conf$$subs.awk <<_ACEOF" &&
60526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
60528 } >conf$$subs.sh ||
60529 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
60532 for ac_last_try in false false false false false :; do
60533 . ./conf$$subs.sh ||
60534 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
60537 if test $ac_delim_n = $ac_delim_num; then
60539 elif $ac_last_try; then
60540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
60542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
60545 rm -f conf$$subs.sh
60547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60548 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
60552 s/^/S["/; s/!.*/"]=/
60562 s/\(.\{148\}\)..*/\1/
60564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
60569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
60576 s/\(.\{148\}\)..*/\1/
60578 s/["\\]/\\&/g; s/^/"/; s/$/"/
60582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
60587 ' <conf$$subs.awk | sed '
60592 ' >>$CONFIG_STATUS || ac_write_fail=1
60593 rm -f conf$$subs.awk
60594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60596 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
60597 for (key in S) S_is_set[key] = 1
60599 \$ac_cs_awk_pipe_init
60603 nfields = split(line, field, "@")
60605 len = length(field[1])
60606 for (i = 2; i < nfields; i++) {
60608 keylen = length(key)
60609 if (S_is_set[key]) {
60611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
60612 len += length(value) + length(field[++i])
60617 if (nfields == 3 && !substed) {
60619 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
60620 \$ac_cs_awk_read_file
60626 \$ac_cs_awk_pipe_fini
60629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
60631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
60634 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
60635 || as_fn_error "could not setup config files machinery" "$LINENO" 5
60638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
60639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
60640 # trailing colons and then remove the whole line if VPATH becomes empty
60641 # (actually we leave an empty line to preserve line numbers).
60642 if test "x$srcdir" = x.; then
60643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
60644 s/:*\$(srcdir):*/:/
60645 s/:*\${srcdir}:*/:/
60647 s/^\([^=]*=[ ]*\):*/\1/
60653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60654 fi # test -n "$CONFIG_FILES"
60656 # Set up the scripts for CONFIG_HEADERS section.
60657 # No need to generate them if there are no CONFIG_HEADERS.
60658 # This happens for instance with `./config.status Makefile'.
60659 if test -n "$CONFIG_HEADERS"; then
60660 cat >"$tmp/defines.awk" <<\_ACAWK ||
60664 # Transform confdefs.h into an awk script `defines.awk', embedded as
60665 # here-document in config.status, that substitutes the proper values into
60666 # config.h.in to produce config.h.
60668 # Create a delimiter string that does not exist in confdefs.h, to ease
60669 # handling of long lines.
60671 for ac_last_try in false false :; do
60672 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
60673 if test -z "$ac_t"; then
60675 elif $ac_last_try; then
60676 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
60678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
60682 # For the awk script, D is an array of macro values keyed by name,
60683 # likewise P contains macro parameters if any. Preserve backslash
60684 # newline sequences.
60686 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
60688 s/.\{148\}/&'"$ac_delim"'/g
60691 s/^[ ]*#[ ]*define[ ][ ]*/ /
60698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
60700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
60704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
60705 D["\1"]=" \3\\\\\\n"\\/p
60707 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
60712 s/.\{148\}/&'"$ac_delim"'/g
60717 s/["\\]/\\&/g; s/^/"/; s/$/"/p
60720 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
60722 ' <confdefs.h | sed '
60723 s/'"$ac_delim"'/"\\\
60724 "/g' >>$CONFIG_STATUS || ac_write_fail=1
60726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60727 for (key in D) D_is_set[key] = 1
60730 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
60732 split(line, arg, " ")
60733 if (arg[1] == "#") {
60737 defundef = substr(arg[1], 2)
60740 split(mac1, mac2, "(") #)
60742 prefix = substr(line, 1, index(line, defundef) - 1)
60743 if (D_is_set[macro]) {
60744 # Preserve the white space surrounding the "#".
60745 print prefix "define", macro P[macro] D[macro]
60748 # Replace #undef with comments. This is necessary, for example,
60749 # in the case of _POSIX_SOURCE, which is predefined and required
60750 # on some systems where configure will not decide to define it.
60751 if (defundef == "undef") {
60752 print "/*", prefix defundef, macro, "*/"
60760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60761 as_fn_error "could not setup config headers machinery" "$LINENO" 5
60762 fi # test -n "$CONFIG_HEADERS"
60765 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
60770 :[FHLC]) ac_mode=$ac_tag; continue;;
60772 case $ac_mode$ac_tag in
60774 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
60775 :[FH]-) ac_tag=-:-;;
60776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
60793 -) ac_f="$tmp/stdin";;
60794 *) # Look for the file first in the build tree, then in the source tree
60795 # (if the path is not absolute). The absolute path cannot be DOS-style,
60796 # because $ac_f cannot contain `:'.
60800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
60802 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
60804 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
60805 as_fn_append ac_file_inputs " '$ac_f'"
60808 # Let's still pretend it is `configure' which instantiates (i.e., don't
60809 # use $as_me), people would be surprised to read:
60810 # /* config.h. Generated by config.status. */
60811 configure_input='Generated from '`
60812 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
60814 if test x"$ac_file" != x-; then
60815 configure_input="$ac_file. $configure_input"
60816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
60817 $as_echo "$as_me: creating $ac_file" >&6;}
60819 # Neutralize special characters interpreted by sed in replacement strings.
60820 case $configure_input in #(
60821 *\&* | *\|* | *\\* )
60822 ac_sed_conf_input=`$as_echo "$configure_input" |
60823 sed 's/[\\\\&|]/\\\\&/g'`;; #(
60824 *) ac_sed_conf_input=$configure_input;;
60828 *:-:* | *:-) cat >"$tmp/stdin" \
60829 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
60834 ac_dir=`$as_dirname -- "$ac_file" ||
60835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60836 X"$ac_file" : 'X\(//\)[^/]' \| \
60837 X"$ac_file" : 'X\(//\)$' \| \
60838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
60839 $as_echo X"$ac_file" |
60840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60844 /^X\(\/\/\)[^/].*/{
60857 as_dir="$ac_dir"; as_fn_mkdir_p
60861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
60863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
60864 # A ".." for each directory in $ac_dir_suffix.
60865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
60866 case $ac_top_builddir_sub in
60867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
60868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
60871 ac_abs_top_builddir=$ac_pwd
60872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
60873 # for backward compatibility:
60874 ac_top_builddir=$ac_top_build_prefix
60877 .) # We are building in place.
60879 ac_top_srcdir=$ac_top_builddir_sub
60880 ac_abs_top_srcdir=$ac_pwd ;;
60881 [\\/]* | ?:[\\/]* ) # Absolute name.
60882 ac_srcdir=$srcdir$ac_dir_suffix;
60883 ac_top_srcdir=$srcdir
60884 ac_abs_top_srcdir=$srcdir ;;
60885 *) # Relative name.
60886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
60887 ac_top_srcdir=$ac_top_build_prefix$srcdir
60888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
60890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
60900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
60901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
60903 ac_MKDIR_P=$MKDIR_P
60905 [\\/$]* | ?:[\\/]* ) ;;
60906 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
60910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60911 # If the template does not know about datarootdir, expand it.
60912 # FIXME: This hack should be removed a few years after 2.60.
60913 ac_datarootdir_hack=; ac_datarootdir_seen=
60924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
60925 *datarootdir*) ac_datarootdir_seen=yes;;
60926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
60927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
60928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
60930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60931 ac_datarootdir_hack='
60932 s&@datadir@&$datadir&g
60933 s&@docdir@&$docdir&g
60934 s&@infodir@&$infodir&g
60935 s&@localedir@&$localedir&g
60936 s&@mandir@&$mandir&g
60937 s&\\\${datarootdir}&$datarootdir&g' ;;
60941 # Neutralize VPATH when `$srcdir' = `.'.
60942 # Shell code in configure.ac might set extrasub.
60943 # FIXME: do we really want to maintain this feature?
60944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60945 ac_sed_extra="$ac_vpsub
60948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
60951 s|@configure_input@|$ac_sed_conf_input|;t t
60952 s&@top_builddir@&$ac_top_builddir_sub&;t t
60953 s&@top_build_prefix@&$ac_top_build_prefix&;t t
60954 s&@srcdir@&$ac_srcdir&;t t
60955 s&@abs_srcdir@&$ac_abs_srcdir&;t t
60956 s&@top_srcdir@&$ac_top_srcdir&;t t
60957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
60958 s&@builddir@&$ac_builddir&;t t
60959 s&@abs_builddir@&$ac_abs_builddir&;t t
60960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
60961 s&@INSTALL@&$ac_INSTALL&;t t
60962 s&@MKDIR_P@&$ac_MKDIR_P&;t t
60963 $ac_datarootdir_hack
60965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
60966 if $ac_cs_awk_getline; then
60967 $AWK -f "$tmp/subs.awk"
60969 $AWK -f "$tmp/subs.awk" | $SHELL
60971 || as_fn_error "could not create $ac_file" "$LINENO" 5
60973 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
60974 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
60975 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
60976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60977 which seems to be undefined. Please make sure it is defined." >&5
60978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
60979 which seems to be undefined. Please make sure it is defined." >&2;}
60983 -) cat "$tmp/out" && rm -f "$tmp/out";;
60984 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
60986 || as_fn_error "could not create $ac_file" "$LINENO" 5
60992 if test x"$ac_file" != x-; then
60994 $as_echo "/* $configure_input */" \
60995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
60996 } >"$tmp/config.h" \
60997 || as_fn_error "could not create $ac_file" "$LINENO" 5
60998 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
60999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
61000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
61003 mv "$tmp/config.h" "$ac_file" \
61004 || as_fn_error "could not create $ac_file" "$LINENO" 5
61007 $as_echo "/* $configure_input */" \
61008 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
61009 || as_fn_error "could not create -" "$LINENO" 5
61011 # Compute "$ac_file"'s index in $config_headers.
61014 for _am_header in $config_headers :; do
61015 case $_am_header in
61016 $_am_arg | $_am_arg:* )
61019 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
61022 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
61023 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61024 X"$_am_arg" : 'X\(//\)[^/]' \| \
61025 X"$_am_arg" : 'X\(//\)$' \| \
61026 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
61027 $as_echo X"$_am_arg" |
61028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61032 /^X\(\/\/\)[^/].*/{
61044 s/.*/./; q'`/stamp-h$_am_stamp_count
61047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
61048 $as_echo "$as_me: executing $ac_file commands" >&6;}
61053 case $ac_file$ac_mode in
61054 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
61055 # Autoconf 2.62 quotes --file arguments for eval, but not when files
61056 # are listed without --file. Let's play safe and only enable the eval
61057 # if we detect the quoting.
61058 case $CONFIG_FILES in
61059 *\'*) eval set x "$CONFIG_FILES" ;;
61060 *) set x $CONFIG_FILES ;;
61065 # Strip MF so we end up with the name of the file.
61066 mf=`echo "$mf" | sed -e 's/:.*$//'`
61067 # Check whether this is an Automake generated Makefile or not.
61068 # We used to match only the files named `Makefile.in', but
61069 # some people rename them; so instead we look at the file content.
61070 # Grep'ing the first line is not enough: some people post-process
61071 # each Makefile.in and add a new line on top of each file to say so.
61072 # Grep'ing the whole file is not good either: AIX grep has a line
61073 # limit of 2048, but all sed's we know have understand at least 4000.
61074 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
61075 dirpart=`$as_dirname -- "$mf" ||
61076 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61077 X"$mf" : 'X\(//\)[^/]' \| \
61078 X"$mf" : 'X\(//\)$' \| \
61079 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
61081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61085 /^X\(\/\/\)[^/].*/{
61101 # Extract the definition of DEPDIR, am__include, and am__quote
61102 # from the Makefile without running `make'.
61103 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
61104 test -z "$DEPDIR" && continue
61105 am__include=`sed -n 's/^am__include = //p' < "$mf"`
61106 test -z "am__include" && continue
61107 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
61108 # When using ansi2knr, U may be empty or an underscore; expand it
61109 U=`sed -n 's/^U = //p' < "$mf"`
61110 # Find all dependency output files, they are included files with
61111 # $(DEPDIR) in their names. We invoke sed twice because it is the
61112 # simplest approach to changing $(DEPDIR) to its actual value in the
61114 for file in `sed -n "
61115 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
61116 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
61117 # Make sure the directory exists.
61118 test -f "$dirpart/$file" && continue
61119 fdir=`$as_dirname -- "$file" ||
61120 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
61121 X"$file" : 'X\(//\)[^/]' \| \
61122 X"$file" : 'X\(//\)$' \| \
61123 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
61124 $as_echo X"$file" |
61125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
61129 /^X\(\/\/\)[^/].*/{
61142 as_dir=$dirpart/$fdir; as_fn_mkdir_p
61143 # echo "creating $dirpart/$file"
61144 echo '# dummy' > "$dirpart/$file"
61151 # See if we are running on zsh, and set the options which allow our
61152 # commands through without removal of \ escapes.
61153 if test -n "${ZSH_VERSION+set}" ; then
61154 setopt NO_GLOB_SUBST
61157 cfgfile="${ofile}T"
61158 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
61161 cat <<_LT_EOF >> "$cfgfile"
61164 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
61165 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
61166 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
61167 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
61169 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
61170 # 2006, 2007, 2008 Free Software Foundation, Inc.
61171 # Written by Gordon Matzigkeit, 1996
61173 # This file is part of GNU Libtool.
61175 # GNU Libtool is free software; you can redistribute it and/or
61176 # modify it under the terms of the GNU General Public License as
61177 # published by the Free Software Foundation; either version 2 of
61178 # the License, or (at your option) any later version.
61180 # As a special exception to the GNU General Public License,
61181 # if you distribute this file as part of a program or library that
61182 # is built using GNU Libtool, you may include this file under the
61183 # same distribution terms that you use for the rest of that program.
61185 # GNU Libtool is distributed in the hope that it will be useful,
61186 # but WITHOUT ANY WARRANTY; without even the implied warranty of
61187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61188 # GNU General Public License for more details.
61190 # You should have received a copy of the GNU General Public License
61191 # along with GNU Libtool; see the file COPYING. If not, a copy
61192 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
61193 # obtained by writing to the Free Software Foundation, Inc.,
61194 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
61197 # The names of the tagged configurations supported by this script.
61198 available_tags="RC CXX "
61200 # ### BEGIN LIBTOOL CONFIG
61202 # Which release of libtool.m4 was used?
61203 macro_version=$macro_version
61204 macro_revision=$macro_revision
61206 # Assembler program.
61209 # DLL creation program.
61212 # Object dumper program.
61215 # Whether or not to build shared libraries.
61216 build_libtool_libs=$enable_shared
61218 # Whether or not to build static libraries.
61219 build_old_libs=$enable_static
61221 # What type of objects to build.
61224 # Whether or not to optimize for fast installation.
61225 fast_install=$enable_fast_install
61228 host_alias=$host_alias
61232 # The build system.
61233 build_alias=$build_alias
61237 # A sed program that does not truncate output.
61240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
61241 Xsed="\$SED -e 1s/^X//"
61243 # A grep program that handles long lines.
61249 # A literal string matcher.
61252 # A BSD- or MS-compatible name lister.
61255 # Whether we need soft or hard links.
61258 # What is the maximum length of a command?
61259 max_cmd_len=$max_cmd_len
61261 # Object file suffix (normally "o").
61264 # Executable file suffix (normally "").
61267 # whether the shell understands "unset".
61270 # turn spaces into newlines.
61273 # turn newlines into spaces.
61276 # How to create reloadable object files.
61277 reload_flag=$lt_reload_flag
61278 reload_cmds=$lt_reload_cmds
61280 # Method to check whether dependent libraries are shared objects.
61281 deplibs_check_method=$lt_deplibs_check_method
61283 # Command to use when deplibs_check_method == "file_magic".
61284 file_magic_cmd=$lt_file_magic_cmd
61288 AR_FLAGS=$lt_AR_FLAGS
61290 # A symbol stripping program.
61293 # Commands used to install an old-style archive.
61295 old_postinstall_cmds=$lt_old_postinstall_cmds
61296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
61301 # LTCC compiler flags.
61302 LTCFLAGS=$lt_CFLAGS
61304 # Take the output of nm and produce a listing of raw symbols and C names.
61305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
61307 # Transform the output of nm in a proper C declaration.
61308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
61310 # Transform the output of nm in a C name address pair.
61311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
61313 # Transform the output of nm in a C name address pair when lib prefix is needed.
61314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
61316 # The name of the directory that contains temporary libtool files.
61319 # Shell to use when invoking shell scripts.
61322 # An echo program that does not interpret backslashes.
61325 # Used to examine libraries when file_magic_cmd begins with "file".
61326 MAGIC_CMD=$MAGIC_CMD
61328 # Must we lock files when doing compilation?
61329 need_locks=$lt_need_locks
61331 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
61332 DSYMUTIL=$lt_DSYMUTIL
61334 # Tool to change global to local symbols on Mac OS X.
61337 # Tool to manipulate fat objects and archives on Mac OS X.
61340 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
61343 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
61344 OTOOL64=$lt_OTOOL64
61346 # Old archive suffix (normally "a").
61349 # Shared library suffix (normally ".so").
61350 shrext_cmds=$lt_shrext_cmds
61352 # The commands to extract the exported symbol list from a shared archive.
61353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
61355 # Variables whose values should be saved in libtool wrapper scripts and
61356 # restored at link time.
61357 variables_saved_for_relink=$lt_variables_saved_for_relink
61359 # Do we need the "lib" prefix for modules?
61360 need_lib_prefix=$need_lib_prefix
61362 # Do we need a version for libraries?
61363 need_version=$need_version
61365 # Library versioning type.
61366 version_type=$version_type
61368 # Shared library runtime path variable.
61369 runpath_var=$runpath_var
61371 # Shared library path variable.
61372 shlibpath_var=$shlibpath_var
61374 # Is shlibpath searched before the hard-coded library search path?
61375 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
61377 # Format of library name prefix.
61378 libname_spec=$lt_libname_spec
61380 # List of archive names. First name is the real one, the rest are links.
61381 # The last name is the one that the linker finds with -lNAME
61382 library_names_spec=$lt_library_names_spec
61384 # The coded name of the library, if different from the real name.
61385 soname_spec=$lt_soname_spec
61387 # Permission mode override for installation of shared libraries.
61388 install_override_mode=$lt_install_override_mode
61390 # Command to use after installation of a shared archive.
61391 postinstall_cmds=$lt_postinstall_cmds
61393 # Command to use after uninstallation of a shared archive.
61394 postuninstall_cmds=$lt_postuninstall_cmds
61396 # Commands used to finish a libtool library installation in a directory.
61397 finish_cmds=$lt_finish_cmds
61399 # As "finish_cmds", except a single script fragment to be evaled but
61401 finish_eval=$lt_finish_eval
61403 # Whether we should hardcode library paths into libraries.
61404 hardcode_into_libs=$hardcode_into_libs
61406 # Compile-time system search path for libraries.
61407 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
61409 # Run-time system search path for libraries.
61410 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
61412 # Whether dlopen is supported.
61413 dlopen_support=$enable_dlopen
61415 # Whether dlopen of programs is supported.
61416 dlopen_self=$enable_dlopen_self
61418 # Whether dlopen of statically linked programs is supported.
61419 dlopen_self_static=$enable_dlopen_self_static
61421 # Commands to strip libraries.
61422 old_striplib=$lt_old_striplib
61423 striplib=$lt_striplib
61426 # The linker used to build libraries.
61429 # Commands used to build an old-style archive.
61430 old_archive_cmds=$lt_old_archive_cmds
61432 # A language specific compiler.
61435 # Is the compiler the GNU compiler?
61438 # Compiler flag to turn off builtin functions.
61439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
61441 # How to pass a linker flag through the compiler.
61442 wl=$lt_lt_prog_compiler_wl
61444 # Additional compiler flags for building library objects.
61445 pic_flag=$lt_lt_prog_compiler_pic
61447 # Compiler flag to prevent dynamic linking.
61448 link_static_flag=$lt_lt_prog_compiler_static
61450 # Does compiler simultaneously support -c and -o options?
61451 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
61453 # Whether or not to add -lc for building shared libraries.
61454 build_libtool_need_lc=$archive_cmds_need_lc
61456 # Whether or not to disallow shared libs when runtime libs are static.
61457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
61459 # Compiler flag to allow reflexive dlopens.
61460 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
61462 # Compiler flag to generate shared objects directly from archives.
61463 whole_archive_flag_spec=$lt_whole_archive_flag_spec
61465 # Whether the compiler copes with passing no objects directly.
61466 compiler_needs_object=$lt_compiler_needs_object
61468 # Create an old-style archive from a shared archive.
61469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
61471 # Create a temporary old-style archive to link instead of a shared archive.
61472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
61474 # Commands used to build a shared archive.
61475 archive_cmds=$lt_archive_cmds
61476 archive_expsym_cmds=$lt_archive_expsym_cmds
61478 # Commands used to build a loadable module if different from building
61479 # a shared archive.
61480 module_cmds=$lt_module_cmds
61481 module_expsym_cmds=$lt_module_expsym_cmds
61483 # Whether we are building with GNU ld or not.
61484 with_gnu_ld=$lt_with_gnu_ld
61486 # Flag that allows shared libraries with undefined symbols to be built.
61487 allow_undefined_flag=$lt_allow_undefined_flag
61489 # Flag that enforces no undefined symbols.
61490 no_undefined_flag=$lt_no_undefined_flag
61492 # Flag to hardcode \$libdir into a binary during linking.
61493 # This must work even if \$libdir does not exist
61494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
61496 # If ld is used when linking, flag to hardcode \$libdir into a binary
61497 # during linking. This must work even if \$libdir does not exist.
61498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
61500 # Whether we need a single "-rpath" flag with a separated argument.
61501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
61503 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61504 # DIR into the resulting binary.
61505 hardcode_direct=$hardcode_direct
61507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61508 # DIR into the resulting binary and the resulting library dependency is
61509 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
61510 # library is relocated.
61511 hardcode_direct_absolute=$hardcode_direct_absolute
61513 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
61514 # into the resulting binary.
61515 hardcode_minus_L=$hardcode_minus_L
61517 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
61518 # into the resulting binary.
61519 hardcode_shlibpath_var=$hardcode_shlibpath_var
61521 # Set to "yes" if building a shared library automatically hardcodes DIR
61522 # into the library and all subsequent libraries and executables linked
61524 hardcode_automatic=$hardcode_automatic
61526 # Set to yes if linker adds runtime paths of dependent libraries
61527 # to runtime path list.
61528 inherit_rpath=$inherit_rpath
61530 # Whether libtool must link a program against all its dependency libraries.
61531 link_all_deplibs=$link_all_deplibs
61533 # Fix the shell variable \$srcfile for the compiler.
61534 fix_srcfile_path=$lt_fix_srcfile_path
61536 # Set to "yes" if exported symbols are required.
61537 always_export_symbols=$always_export_symbols
61539 # The commands to list exported symbols.
61540 export_symbols_cmds=$lt_export_symbols_cmds
61542 # Symbols that should not be listed in the preloaded symbols.
61543 exclude_expsyms=$lt_exclude_expsyms
61545 # Symbols that must always be exported.
61546 include_expsyms=$lt_include_expsyms
61548 # Commands necessary for linking programs (against libraries) with templates.
61549 prelink_cmds=$lt_prelink_cmds
61551 # Specify filename containing input files.
61552 file_list_spec=$lt_file_list_spec
61554 # How to hardcode a shared library path into an executable.
61555 hardcode_action=$hardcode_action
61557 # The directories searched by this compiler when creating a shared library.
61558 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
61560 # Dependencies to place before and after the objects being linked to
61561 # create a shared library.
61562 predep_objects=$lt_predep_objects
61563 postdep_objects=$lt_postdep_objects
61564 predeps=$lt_predeps
61565 postdeps=$lt_postdeps
61567 # The library search path used internally by the compiler when linking
61568 # a shared library.
61569 compiler_lib_search_path=$lt_compiler_lib_search_path
61571 # ### END LIBTOOL CONFIG
61577 cat <<\_LT_EOF >> "$cfgfile"
61578 # AIX sometimes has problems with the GCC collect2 program. For some
61579 # reason, if we set the COLLECT_NAMES environment variable, the problems
61580 # vanish in a puff of smoke.
61581 if test "X${COLLECT_NAMES+set}" != Xset; then
61583 export COLLECT_NAMES
61590 ltmain="$ac_aux_dir/ltmain.sh"
61593 # We use sed instead of cat because bash on DJGPP gets confused if
61594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
61595 # text mode, it properly converts lines to CR/LF. This bash problem
61596 # is reportedly fixed, but why not run on old versions too?
61597 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
61598 || (rm -f "$cfgfile"; exit 1)
61602 cat << \_LT_EOF >> "$cfgfile"
61604 # func_dirname file append nondir_replacement
61605 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
61606 # otherwise set result to NONDIR_REPLACEMENT.
61610 */*) func_dirname_result="${1%/*}${2}" ;;
61611 * ) func_dirname_result="${3}" ;;
61615 # func_basename file
61618 func_basename_result="${1##*/}"
61621 # func_dirname_and_basename file append nondir_replacement
61622 # perform func_basename and func_dirname in a single function
61624 # dirname: Compute the dirname of FILE. If nonempty,
61625 # add APPEND to the result, otherwise set result
61626 # to NONDIR_REPLACEMENT.
61627 # value returned in "$func_dirname_result"
61628 # basename: Compute filename of FILE.
61629 # value retuned in "$func_basename_result"
61630 # Implementation must be kept synchronized with func_dirname
61631 # and func_basename. For efficiency, we do not delegate to
61632 # those functions but instead duplicate the functionality here.
61633 func_dirname_and_basename ()
61636 */*) func_dirname_result="${1%/*}${2}" ;;
61637 * ) func_dirname_result="${3}" ;;
61639 func_basename_result="${1##*/}"
61642 # func_stripname prefix suffix name
61643 # strip PREFIX and SUFFIX off of NAME.
61644 # PREFIX and SUFFIX must not contain globbing or regex special
61645 # characters, hashes, percent signs, but SUFFIX may contain a leading
61646 # dot (in which case that matches only a dot).
61649 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
61650 # positional parameters, so assign one to ordinary parameter first.
61651 func_stripname_result=${3}
61652 func_stripname_result=${func_stripname_result#"${1}"}
61653 func_stripname_result=${func_stripname_result%"${2}"}
61659 func_opt_split_opt=${1%%=*}
61660 func_opt_split_arg=${1#*=}
61667 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
61668 *) func_lo2o_result=${1} ;;
61672 # func_xform libobj-or-source
61675 func_xform_result=${1%.*}.lo
61678 # func_arith arithmetic-term...
61681 func_arith_result=$(( $* ))
61685 # STRING may not start with a hyphen.
61688 func_len_result=${#1}
61693 *) # Bourne compatible functions.
61694 cat << \_LT_EOF >> "$cfgfile"
61696 # func_dirname file append nondir_replacement
61697 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
61698 # otherwise set result to NONDIR_REPLACEMENT.
61701 # Extract subdirectory from the argument.
61702 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
61703 if test "X$func_dirname_result" = "X${1}"; then
61704 func_dirname_result="${3}"
61706 func_dirname_result="$func_dirname_result${2}"
61710 # func_basename file
61713 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
61717 # func_stripname prefix suffix name
61718 # strip PREFIX and SUFFIX off of NAME.
61719 # PREFIX and SUFFIX must not contain globbing or regex special
61720 # characters, hashes, percent signs, but SUFFIX may contain a leading
61721 # dot (in which case that matches only a dot).
61722 # func_strip_suffix prefix name
61726 .*) func_stripname_result=`$ECHO "X${3}" \
61727 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
61728 *) func_stripname_result=`$ECHO "X${3}" \
61729 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
61734 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
61735 my_sed_long_arg='1s/^-[^=]*=//'
61740 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
61741 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
61747 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
61750 # func_xform libobj-or-source
61753 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
61756 # func_arith arithmetic-term...
61759 func_arith_result=`expr "$@"`
61763 # STRING may not start with a hyphen.
61766 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
61772 case $lt_shell_append in
61774 cat << \_LT_EOF >> "$cfgfile"
61776 # func_append var value
61777 # Append VALUE to the end of shell variable VAR.
61785 cat << \_LT_EOF >> "$cfgfile"
61787 # func_append var value
61788 # Append VALUE to the end of shell variable VAR.
61799 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
61800 || (rm -f "$cfgfile"; exit 1)
61802 mv -f "$cfgfile" "$ofile" ||
61803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
61807 cat <<_LT_EOF >> "$ofile"
61809 # ### BEGIN LIBTOOL TAG CONFIG: RC
61811 # The linker used to build libraries.
61814 # Commands used to build an old-style archive.
61815 old_archive_cmds=$lt_old_archive_cmds_RC
61817 # A language specific compiler.
61820 # Is the compiler the GNU compiler?
61823 # Compiler flag to turn off builtin functions.
61824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
61826 # How to pass a linker flag through the compiler.
61827 wl=$lt_lt_prog_compiler_wl_RC
61829 # Additional compiler flags for building library objects.
61830 pic_flag=$lt_lt_prog_compiler_pic_RC
61832 # Compiler flag to prevent dynamic linking.
61833 link_static_flag=$lt_lt_prog_compiler_static_RC
61835 # Does compiler simultaneously support -c and -o options?
61836 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
61838 # Whether or not to add -lc for building shared libraries.
61839 build_libtool_need_lc=$archive_cmds_need_lc_RC
61841 # Whether or not to disallow shared libs when runtime libs are static.
61842 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
61844 # Compiler flag to allow reflexive dlopens.
61845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
61847 # Compiler flag to generate shared objects directly from archives.
61848 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
61850 # Whether the compiler copes with passing no objects directly.
61851 compiler_needs_object=$lt_compiler_needs_object_RC
61853 # Create an old-style archive from a shared archive.
61854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
61856 # Create a temporary old-style archive to link instead of a shared archive.
61857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
61859 # Commands used to build a shared archive.
61860 archive_cmds=$lt_archive_cmds_RC
61861 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
61863 # Commands used to build a loadable module if different from building
61864 # a shared archive.
61865 module_cmds=$lt_module_cmds_RC
61866 module_expsym_cmds=$lt_module_expsym_cmds_RC
61868 # Whether we are building with GNU ld or not.
61869 with_gnu_ld=$lt_with_gnu_ld_RC
61871 # Flag that allows shared libraries with undefined symbols to be built.
61872 allow_undefined_flag=$lt_allow_undefined_flag_RC
61874 # Flag that enforces no undefined symbols.
61875 no_undefined_flag=$lt_no_undefined_flag_RC
61877 # Flag to hardcode \$libdir into a binary during linking.
61878 # This must work even if \$libdir does not exist
61879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
61881 # If ld is used when linking, flag to hardcode \$libdir into a binary
61882 # during linking. This must work even if \$libdir does not exist.
61883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
61885 # Whether we need a single "-rpath" flag with a separated argument.
61886 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
61888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61889 # DIR into the resulting binary.
61890 hardcode_direct=$hardcode_direct_RC
61892 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
61893 # DIR into the resulting binary and the resulting library dependency is
61894 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
61895 # library is relocated.
61896 hardcode_direct_absolute=$hardcode_direct_absolute_RC
61898 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
61899 # into the resulting binary.
61900 hardcode_minus_L=$hardcode_minus_L_RC
61902 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
61903 # into the resulting binary.
61904 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
61906 # Set to "yes" if building a shared library automatically hardcodes DIR
61907 # into the library and all subsequent libraries and executables linked
61909 hardcode_automatic=$hardcode_automatic_RC
61911 # Set to yes if linker adds runtime paths of dependent libraries
61912 # to runtime path list.
61913 inherit_rpath=$inherit_rpath_RC
61915 # Whether libtool must link a program against all its dependency libraries.
61916 link_all_deplibs=$link_all_deplibs_RC
61918 # Fix the shell variable \$srcfile for the compiler.
61919 fix_srcfile_path=$lt_fix_srcfile_path_RC
61921 # Set to "yes" if exported symbols are required.
61922 always_export_symbols=$always_export_symbols_RC
61924 # The commands to list exported symbols.
61925 export_symbols_cmds=$lt_export_symbols_cmds_RC
61927 # Symbols that should not be listed in the preloaded symbols.
61928 exclude_expsyms=$lt_exclude_expsyms_RC
61930 # Symbols that must always be exported.
61931 include_expsyms=$lt_include_expsyms_RC
61933 # Commands necessary for linking programs (against libraries) with templates.
61934 prelink_cmds=$lt_prelink_cmds_RC
61936 # Specify filename containing input files.
61937 file_list_spec=$lt_file_list_spec_RC
61939 # How to hardcode a shared library path into an executable.
61940 hardcode_action=$hardcode_action_RC
61942 # The directories searched by this compiler when creating a shared library.
61943 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
61945 # Dependencies to place before and after the objects being linked to
61946 # create a shared library.
61947 predep_objects=$lt_predep_objects_RC
61948 postdep_objects=$lt_postdep_objects_RC
61949 predeps=$lt_predeps_RC
61950 postdeps=$lt_postdeps_RC
61952 # The library search path used internally by the compiler when linking
61953 # a shared library.
61954 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
61956 # ### END LIBTOOL TAG CONFIG: RC
61960 cat <<_LT_EOF >> "$ofile"
61962 # ### BEGIN LIBTOOL TAG CONFIG: CXX
61964 # The linker used to build libraries.
61967 # Commands used to build an old-style archive.
61968 old_archive_cmds=$lt_old_archive_cmds_CXX
61970 # A language specific compiler.
61971 CC=$lt_compiler_CXX
61973 # Is the compiler the GNU compiler?
61976 # Compiler flag to turn off builtin functions.
61977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
61979 # How to pass a linker flag through the compiler.
61980 wl=$lt_lt_prog_compiler_wl_CXX
61982 # Additional compiler flags for building library objects.
61983 pic_flag=$lt_lt_prog_compiler_pic_CXX
61985 # Compiler flag to prevent dynamic linking.
61986 link_static_flag=$lt_lt_prog_compiler_static_CXX
61988 # Does compiler simultaneously support -c and -o options?
61989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
61991 # Whether or not to add -lc for building shared libraries.
61992 build_libtool_need_lc=$archive_cmds_need_lc_CXX
61994 # Whether or not to disallow shared libs when runtime libs are static.
61995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
61997 # Compiler flag to allow reflexive dlopens.
61998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
62000 # Compiler flag to generate shared objects directly from archives.
62001 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
62003 # Whether the compiler copes with passing no objects directly.
62004 compiler_needs_object=$lt_compiler_needs_object_CXX
62006 # Create an old-style archive from a shared archive.
62007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
62009 # Create a temporary old-style archive to link instead of a shared archive.
62010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
62012 # Commands used to build a shared archive.
62013 archive_cmds=$lt_archive_cmds_CXX
62014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
62016 # Commands used to build a loadable module if different from building
62017 # a shared archive.
62018 module_cmds=$lt_module_cmds_CXX
62019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
62021 # Whether we are building with GNU ld or not.
62022 with_gnu_ld=$lt_with_gnu_ld_CXX
62024 # Flag that allows shared libraries with undefined symbols to be built.
62025 allow_undefined_flag=$lt_allow_undefined_flag_CXX
62027 # Flag that enforces no undefined symbols.
62028 no_undefined_flag=$lt_no_undefined_flag_CXX
62030 # Flag to hardcode \$libdir into a binary during linking.
62031 # This must work even if \$libdir does not exist
62032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
62034 # If ld is used when linking, flag to hardcode \$libdir into a binary
62035 # during linking. This must work even if \$libdir does not exist.
62036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
62038 # Whether we need a single "-rpath" flag with a separated argument.
62039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
62041 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
62042 # DIR into the resulting binary.
62043 hardcode_direct=$hardcode_direct_CXX
62045 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
62046 # DIR into the resulting binary and the resulting library dependency is
62047 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
62048 # library is relocated.
62049 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
62051 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
62052 # into the resulting binary.
62053 hardcode_minus_L=$hardcode_minus_L_CXX
62055 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
62056 # into the resulting binary.
62057 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
62059 # Set to "yes" if building a shared library automatically hardcodes DIR
62060 # into the library and all subsequent libraries and executables linked
62062 hardcode_automatic=$hardcode_automatic_CXX
62064 # Set to yes if linker adds runtime paths of dependent libraries
62065 # to runtime path list.
62066 inherit_rpath=$inherit_rpath_CXX
62068 # Whether libtool must link a program against all its dependency libraries.
62069 link_all_deplibs=$link_all_deplibs_CXX
62071 # Fix the shell variable \$srcfile for the compiler.
62072 fix_srcfile_path=$lt_fix_srcfile_path_CXX
62074 # Set to "yes" if exported symbols are required.
62075 always_export_symbols=$always_export_symbols_CXX
62077 # The commands to list exported symbols.
62078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
62080 # Symbols that should not be listed in the preloaded symbols.
62081 exclude_expsyms=$lt_exclude_expsyms_CXX
62083 # Symbols that must always be exported.
62084 include_expsyms=$lt_include_expsyms_CXX
62086 # Commands necessary for linking programs (against libraries) with templates.
62087 prelink_cmds=$lt_prelink_cmds_CXX
62089 # Specify filename containing input files.
62090 file_list_spec=$lt_file_list_spec_CXX
62092 # How to hardcode a shared library path into an executable.
62093 hardcode_action=$hardcode_action_CXX
62095 # The directories searched by this compiler when creating a shared library.
62096 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
62098 # Dependencies to place before and after the objects being linked to
62099 # create a shared library.
62100 predep_objects=$lt_predep_objects_CXX
62101 postdep_objects=$lt_postdep_objects_CXX
62102 predeps=$lt_predeps_CXX
62103 postdeps=$lt_postdeps_CXX
62105 # The library search path used internally by the compiler when linking
62106 # a shared library.
62107 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
62109 # ### END LIBTOOL TAG CONFIG: CXX
62113 "po-directories":C)
62114 for ac_file in $CONFIG_FILES; do
62115 # Support "outfile[:infile[:infile...]]"
62117 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
62119 # PO directories have a Makefile.in generated from Makefile.in.in.
62120 case "$ac_file" in */Makefile.in)
62121 # Adjust a relative srcdir.
62122 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
62123 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
62124 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
62125 # In autoconf-2.13 it is called $ac_given_srcdir.
62126 # In autoconf-2.50 it is called $srcdir.
62127 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
62128 case "$ac_given_srcdir" in
62129 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
62130 /*) top_srcdir="$ac_given_srcdir" ;;
62131 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
62133 # Treat a directory as a PO directory if and only if it has a
62134 # POTFILES.in file. This allows packages to have multiple PO
62135 # directories under different names or in different locations.
62136 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
62137 rm -f "$ac_dir/POTFILES"
62138 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
62139 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
62140 POMAKEFILEDEPS="POTFILES.in"
62141 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
62142 # on $ac_dir but don't depend on user-specified configuration
62144 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
62145 # The LINGUAS file contains the set of available languages.
62146 if test -n "$OBSOLETE_ALL_LINGUAS"; then
62147 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
62149 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
62150 # Hide the ALL_LINGUAS assigment from automake < 1.5.
62151 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
62152 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
62154 # The set of available languages was given in configure.in.
62155 # Hide the ALL_LINGUAS assigment from automake < 1.5.
62156 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
62159 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
62160 # Compute UPDATEPOFILES
62161 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
62162 # Compute DUMMYPOFILES
62163 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
62165 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
62166 case "$ac_given_srcdir" in
62168 *) srcdirpre='$(srcdir)/' ;;
62174 for lang in $ALL_LINGUAS; do
62175 POFILES="$POFILES $srcdirpre$lang.po"
62176 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
62177 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
62178 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
62180 # CATALOGS depends on both $ac_dir and the user's LINGUAS
62181 # environment variable.
62183 if test -n "$ALL_LINGUAS"; then
62184 for presentlang in $ALL_LINGUAS; do
62186 if test "%UNSET%" != "$LINGUAS"; then
62187 desiredlanguages="$LINGUAS"
62189 desiredlanguages="$ALL_LINGUAS"
62191 for desiredlang in $desiredlanguages; do
62192 # Use the presentlang catalog if desiredlang is
62193 # a. equal to presentlang, or
62194 # b. a variant of presentlang (because in this case,
62195 # presentlang can be used as a fallback for messages
62196 # which are not translated in the desiredlang catalog).
62197 case "$desiredlang" in
62198 "$presentlang"*) useit=yes;;
62201 if test $useit = yes; then
62202 INST_LINGUAS="$INST_LINGUAS $presentlang"
62207 if test -n "$INST_LINGUAS"; then
62208 for lang in $INST_LINGUAS; do
62209 CATALOGS="$CATALOGS $lang.gmo"
62212 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
62213 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"
62214 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
62215 if test -f "$f"; then
62217 *.orig | *.bak | *~) ;;
62218 *) cat "$f" >> "$ac_dir/Makefile" ;;
62227 # Change srcdir variable so that it points to ../gettext-runtime/intl.
62228 sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
62229 -e 's|^VPATH =.*$||' \
62230 < intl/Makefile > intl/Makefile.tmp
62231 mv intl/Makefile.tmp intl/Makefile
62233 "misc/gettextize":F) chmod a+x misc/gettextize ;;
62234 "misc/autopoint":F) chmod a+x misc/autopoint ;;
62235 "misc/convert-archive":F) chmod a+x misc/convert-archive ;;
62237 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
62238 mv $ac_file.tmp $ac_file
62247 ac_clean_files=$ac_clean_files_save
62249 test $ac_write_fail = 0 ||
62250 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
62253 # configure is writing to config.log, and then calls config.status.
62254 # config.status does its own redirection, appending to config.log.
62255 # Unfortunately, on DOS this fails, as config.log is still kept open
62256 # by configure, so config.status won't be able to write to it; its
62257 # output is simply discarded. So we exec the FD to /dev/null,
62258 # effectively closing config.log, so it can be properly (re)opened and
62259 # appended to by config.status. When coming back to configure, we
62260 # need to make the FD available again.
62261 if test "$no_create" != yes; then
62263 ac_config_status_args=
62264 test "$silent" = yes &&
62265 ac_config_status_args="$ac_config_status_args --quiet"
62267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
62269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
62270 # would make configure fail if this is the last instruction.
62271 $ac_cs_success || as_fn_exit $?
62275 # CONFIG_SUBDIRS section.
62277 if test "$no_recursion" != yes; then
62279 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
62280 # so they do not pile up.
62281 ac_sub_configure_args=
62283 eval "set x $ac_configure_args"
62287 if test -n "$ac_prev"; then
62292 -cache-file | --cache-file | --cache-fil | --cache-fi \
62293 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
62294 ac_prev=cache_file ;;
62295 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
62296 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
62299 --config-cache | -C)
62301 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
62303 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
62305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
62307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
62309 --disable-option-checking)
62313 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
62315 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
62319 # Always prepend --prefix to ensure using the same prefix
62320 # in subdir configurations.
62321 ac_arg="--prefix=$prefix"
62323 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
62325 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
62328 if test "$silent" = yes; then
62329 ac_sub_configure_args="--silent $ac_sub_configure_args"
62332 # Always prepend --disable-option-checking to silence warnings, since
62333 # different subdirs can have different --enable and --with options.
62334 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
62337 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
62339 # Do not complain, so a configure script can configure whichever
62340 # parts of a large source tree are present.
62341 test -d "$srcdir/$ac_dir" || continue
62343 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
62344 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
62345 $as_echo "$ac_msg" >&6
62346 as_dir="$ac_dir"; as_fn_mkdir_p
62350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
62352 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
62353 # A ".." for each directory in $ac_dir_suffix.
62354 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
62355 case $ac_top_builddir_sub in
62356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
62357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
62360 ac_abs_top_builddir=$ac_pwd
62361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
62362 # for backward compatibility:
62363 ac_top_builddir=$ac_top_build_prefix
62366 .) # We are building in place.
62368 ac_top_srcdir=$ac_top_builddir_sub
62369 ac_abs_top_srcdir=$ac_pwd ;;
62370 [\\/]* | ?:[\\/]* ) # Absolute name.
62371 ac_srcdir=$srcdir$ac_dir_suffix;
62372 ac_top_srcdir=$srcdir
62373 ac_abs_top_srcdir=$srcdir ;;
62374 *) # Relative name.
62375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
62376 ac_top_srcdir=$ac_top_build_prefix$srcdir
62377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
62379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
62384 # Check for guested configure; otherwise get Cygnus style configure.
62385 if test -f "$ac_srcdir/configure.gnu"; then
62386 ac_sub_configure=$ac_srcdir/configure.gnu
62387 elif test -f "$ac_srcdir/configure"; then
62388 ac_sub_configure=$ac_srcdir/configure
62389 elif test -f "$ac_srcdir/configure.in"; then
62390 # This should be Cygnus configure.
62391 ac_sub_configure=$ac_aux_dir/configure
62393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
62394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
62398 # The recursion is here.
62399 if test -n "$ac_sub_configure"; then
62400 # Make the cache file name correct relative to the subdirectory.
62401 case $cache_file in
62402 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
62403 *) # Relative name.
62404 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
62407 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
62408 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
62409 # The eval makes quoting arguments work.
62410 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
62411 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
62412 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
62418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
62419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
62420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}