1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for GNU Texinfo 6.8. 4# 5# Report bugs to <bug-texinfo@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: bug-texinfo@gnu.org about your system, including any 272$0: error possibly output before this message. Then install 273$0: a modern shell, or manually run the script under such a 274$0: shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316# as_fn_nop 317# --------- 318# Do nothing but, unlike ":", preserve the value of $?. 319as_fn_nop () 320{ 321 return $? 322} 323as_nop=as_fn_nop 324 325# as_fn_mkdir_p 326# ------------- 327# Create "$as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 341 as_dirs="'$as_qdir' $as_dirs" 342 as_dir=`$as_dirname -- "$as_dir" || 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \ 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 347printf "%s\n" X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} # as_fn_mkdir_p 372 373# as_fn_executable_p FILE 374# ----------------------- 375# Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 378 test -f "$1" && test -x "$1" 379} # as_fn_executable_p 380# as_fn_append VAR VALUE 381# ---------------------- 382# Append the text in VALUE to the end of the definition contained in VAR. Take 383# advantage of any shell optimizations that allow amortized linear growth over 384# repeated appends, instead of the typical quadratic growth present in naive 385# implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 387then : 388 eval 'as_fn_append () 389 { 390 eval $1+=\$2 391 }' 392else $as_nop 393 as_fn_append () 394 { 395 eval $1=\$$1\$2 396 } 397fi # as_fn_append 398 399# as_fn_arith ARG... 400# ------------------ 401# Perform arithmetic evaluation on the ARGs, and store the result in the 402# global $as_val. Take advantage of shells that can avoid forks. The arguments 403# must be portable across $(()) and expr. 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 405then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else $as_nop 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417# as_fn_nop 418# --------- 419# Do nothing but, unlike ":", preserve the value of $?. 420as_fn_nop () 421{ 422 return $? 423} 424as_nop=as_fn_nop 425 426# as_fn_error STATUS ERROR [LINENO LOG_FD] 427# ---------------------------------------- 428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 430# script with STATUS, using 1 if that was 0. 431as_fn_error () 432{ 433 as_status=$1; test $as_status -eq 0 && as_status=1 434 if test "$4"; then 435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 fi 438 printf "%s\n" "$as_me: error: $2" >&2 439 as_fn_exit $as_status 440} # as_fn_error 441 442if expr a : '\(a\)' >/dev/null 2>&1 && 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 444 as_expr=expr 445else 446 as_expr=false 447fi 448 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 450 as_basename=basename 451else 452 as_basename=false 453fi 454 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 456 as_dirname=dirname 457else 458 as_dirname=false 459fi 460 461as_me=`$as_basename -- "$0" || 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 463 X"$0" : 'X\(//\)$' \| \ 464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 465printf "%s\n" X/"$0" | 466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 467 s//\1/ 468 q 469 } 470 /^X\/\(\/\/\)$/{ 471 s//\1/ 472 q 473 } 474 /^X\/\(\/\).*/{ 475 s//\1/ 476 q 477 } 478 s/.*/./; q'` 479 480# Avoid depending upon Character Ranges. 481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 484as_cr_digits='0123456789' 485as_cr_alnum=$as_cr_Letters$as_cr_digits 486 487 488 as_lineno_1=$LINENO as_lineno_1a=$LINENO 489 as_lineno_2=$LINENO as_lineno_2a=$LINENO 490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 493 sed -n ' 494 p 495 /[$]LINENO/= 496 ' <$as_myself | 497 sed ' 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 560 # In both cases, we have to default to `cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590 591test -n "$DJDIR" || exec 7<&0 </dev/null 592exec 6>&1 593 594# Name of the host. 595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 596# so uname gets run too. 597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 598 599# 600# Initializations. 601# 602ac_default_prefix=/usr/local 603ac_clean_files= 604ac_config_libobj_dir=. 605LIBOBJS= 606cross_compiling=no 607subdirs= 608MFLAGS= 609MAKEFLAGS= 610 611# Identity of this package. 612PACKAGE_NAME='GNU Texinfo' 613PACKAGE_TARNAME='texinfo' 614PACKAGE_VERSION='6.8' 615PACKAGE_STRING='GNU Texinfo 6.8' 616PACKAGE_BUGREPORT='bug-texinfo@gnu.org' 617PACKAGE_URL='https://www.gnu.org/software/texinfo/' 618 619ac_unique_file="info/info.c" 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652gl_use_threads_default= 653gl_use_winpthreads_default= 654ac_func_c_list= 655gl_getopt_required=POSIX 656gt_needs= 657ac_subst_vars='gltests_LTLIBOBJS 658gltests_LIBOBJS 659gl_LTLIBOBJS 660gl_LIBOBJS 661am__EXEEXT_FALSE 662am__EXEEXT_TRUE 663LTLIBOBJS 664LIBOBJS 665HOST_IS_WINDOWS_FALSE 666HOST_IS_WINDOWS_TRUE 667POD_SIMPLE_TEXINFO_TESTS_FALSE 668POD_SIMPLE_TEXINFO_TESTS_TRUE 669BUILD_PERL_API_TEXI_FALSE 670BUILD_PERL_API_TEXI_TRUE 671TP_TESTS_FALSE 672TP_TESTS_TRUE 673PROVE 674HAVE_MODERNIZR_FALSE 675HAVE_MODERNIZR_TRUE 676MODERNIZR 677HAVE_UGLIFYJS_FALSE 678HAVE_UGLIFYJS_TRUE 679UGLIFYJS 680HAVE_TYPESCRIPT_FALSE 681HAVE_TYPESCRIPT_TRUE 682TSC 683HAVE_ESLINT_FALSE 684HAVE_ESLINT_TRUE 685ESLINT 686DISABLE_XS_FALSE 687DISABLE_XS_TRUE 688enable_xs 689USE_EXTERNAL_LIBINTL 690POSUB 691INTLLIBS 692INTL_MACOSX_LIBS 693XGETTEXT_EXTRA_OPTIONS 694MSGMERGE_FOR_MSGFMT_OPTION 695MSGMERGE 696XGETTEXT_015 697XGETTEXT 698GMSGFMT_015 699GMSGFMT 700MSGFMT 701GETTEXT_MACRO_VERSION 702USE_NLS 703SED 704USE_EXTERNAL_UNIDECODE 705USE_UNICODE 706USE_EXTERNAL_EASTASIANWIDTH 707INSTALL_WARNINGS_FALSE 708INSTALL_WARNINGS_TRUE 709HAVE_TERMLIBS_FALSE 710HAVE_TERMLIBS_TRUE 711TERMLIBS 712TOOLS_ONLY_FALSE 713TOOLS_ONLY_TRUE 714native_tools 715have_ptys_FALSE 716have_ptys_TRUE 717DIFF_A_OPTION 718DIFF_U_OPTION 719MKINSTALLDIRS 720LN_S 721POD2MAN 722HELP2MAN 723LIBGNU_LTLIBDEPS 724LIBGNU_LIBDEPS 725gltests_WITNESS 726gl_GNULIB_ENABLED_xsize_FALSE 727gl_GNULIB_ENABLED_xsize_TRUE 728gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE 729gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE 730gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE 731gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE 732gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE 733gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE 734gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE 735gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE 736gl_GNULIB_ENABLED_wcrtomb_FALSE 737gl_GNULIB_ENABLED_wcrtomb_TRUE 738gl_GNULIB_ENABLED_vasnprintf_FALSE 739gl_GNULIB_ENABLED_vasnprintf_TRUE 740gl_GNULIB_ENABLED_time_FALSE 741gl_GNULIB_ENABLED_time_TRUE 742gl_GNULIB_ENABLED_threadlib_FALSE 743gl_GNULIB_ENABLED_threadlib_TRUE 744gl_GNULIB_ENABLED_sys_stat_FALSE 745gl_GNULIB_ENABLED_sys_stat_TRUE 746gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_FALSE 747gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_TRUE 748gl_GNULIB_ENABLED_strstr_FALSE 749gl_GNULIB_ENABLED_strstr_TRUE 750gl_GNULIB_ENABLED_strndup_FALSE 751gl_GNULIB_ENABLED_strndup_TRUE 752gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE 753gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE 754gl_GNULIB_ENABLED_stpcpy_FALSE 755gl_GNULIB_ENABLED_stpcpy_TRUE 756gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_FALSE 757gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_TRUE 758gl_GNULIB_ENABLED_stat_FALSE 759gl_GNULIB_ENABLED_stat_TRUE 760gl_GNULIB_ENABLED_size_max_FALSE 761gl_GNULIB_ENABLED_size_max_TRUE 762gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_FALSE 763gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE 764gl_GNULIB_ENABLED_pathmax_FALSE 765gl_GNULIB_ENABLED_pathmax_TRUE 766gl_GNULIB_ENABLED_nl_langinfo_FALSE 767gl_GNULIB_ENABLED_nl_langinfo_TRUE 768gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_FALSE 769gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_TRUE 770gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_FALSE 771gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_TRUE 772gl_GNULIB_ENABLED_mempcpy_FALSE 773gl_GNULIB_ENABLED_mempcpy_TRUE 774gl_GNULIB_ENABLED_mbtowc_FALSE 775gl_GNULIB_ENABLED_mbtowc_TRUE 776gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_FALSE 777gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_TRUE 778gl_GNULIB_ENABLED_lock_FALSE 779gl_GNULIB_ENABLED_lock_TRUE 780gl_GNULIB_ENABLED_localeconv_FALSE 781gl_GNULIB_ENABLED_localeconv_TRUE 782gl_GNULIB_ENABLED_locale_FALSE 783gl_GNULIB_ENABLED_locale_TRUE 784gl_GNULIB_ENABLED_localcharset_FALSE 785gl_GNULIB_ENABLED_localcharset_TRUE 786gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE 787gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE 788gl_GNULIB_ENABLED_langinfo_FALSE 789gl_GNULIB_ENABLED_langinfo_TRUE 790gl_GNULIB_ENABLED_intprops_FALSE 791gl_GNULIB_ENABLED_intprops_TRUE 792gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_FALSE 793gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE 794gl_GNULIB_ENABLED_getdtablesize_FALSE 795gl_GNULIB_ENABLED_getdtablesize_TRUE 796gl_GNULIB_ENABLED_fstat_FALSE 797gl_GNULIB_ENABLED_fstat_TRUE 798gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE 799gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE 800gl_GNULIB_ENABLED_fcntl_FALSE 801gl_GNULIB_ENABLED_fcntl_TRUE 802gl_GNULIB_ENABLED_dynarray_FALSE 803gl_GNULIB_ENABLED_dynarray_TRUE 804gl_GNULIB_ENABLED_dup2_FALSE 805gl_GNULIB_ENABLED_dup2_TRUE 806gl_GNULIB_ENABLED_close_FALSE 807gl_GNULIB_ENABLED_close_TRUE 808gl_GNULIB_ENABLED_cloexec_FALSE 809gl_GNULIB_ENABLED_cloexec_TRUE 810gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_FALSE 811gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_TRUE 812gl_GNULIB_ENABLED_btowc_FALSE 813gl_GNULIB_ENABLED_btowc_TRUE 814gl_GNULIB_ENABLED_attribute_FALSE 815gl_GNULIB_ENABLED_attribute_TRUE 816TIME_H_DEFINES_TIME_UTC 817UNISTD_H_DEFINES_STRUCT_TIMESPEC 818PTHREAD_H_DEFINES_STRUCT_TIMESPEC 819SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 820TIME_H_DEFINES_STRUCT_TIMESPEC 821NEXT_AS_FIRST_DIRECTIVE_TIME_H 822NEXT_TIME_H 823REPLACE_LOCALTIME 824REPLACE_GMTIME 825GNULIB_GETTIMEOFDAY 826REPLACE_TZSET 827REPLACE_TIMEGM 828REPLACE_STRFTIME 829REPLACE_NANOSLEEP 830REPLACE_MKTIME 831REPLACE_LOCALTIME_R 832REPLACE_CTIME 833HAVE_TIMEZONE_T 834HAVE_TIMESPEC_GET 835HAVE_TIMEGM 836HAVE_STRPTIME 837HAVE_NANOSLEEP 838HAVE_DECL_LOCALTIME_R 839GNULIB_MDA_TZSET 840GNULIB_TZSET 841GNULIB_TIME_RZ 842GNULIB_TIME_R 843GNULIB_TIMESPEC_GET 844GNULIB_TIMEGM 845GNULIB_STRPTIME 846GNULIB_STRFTIME 847GNULIB_NANOSLEEP 848GNULIB_LOCALTIME 849GNULIB_MKTIME 850GNULIB_CTIME 851LIB_NL_LANGINFO 852LTLIBMULTITHREAD 853LIBMULTITHREAD 854LTLIBTHREAD 855LIBTHREAD 856LIBSTDTHREAD 857NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 858NEXT_LOCALE_H 859HAVE_XLOCALE_H 860LOCALENAME_ENHANCE_LOCALE_FUNCS 861REPLACE_STRUCT_LCONV 862REPLACE_FREELOCALE 863REPLACE_DUPLOCALE 864REPLACE_NEWLOCALE 865REPLACE_SETLOCALE 866REPLACE_LOCALECONV 867HAVE_FREELOCALE 868HAVE_DUPLOCALE 869HAVE_NEWLOCALE 870GNULIB_LOCALENAME 871GNULIB_DUPLOCALE 872GNULIB_SETLOCALE_NULL 873GNULIB_SETLOCALE 874GNULIB_LOCALECONV 875LOCALCHARSET_TESTS_ENVIRONMENT 876HAVE_LANGINFO_YESEXPR 877HAVE_LANGINFO_ERA 878HAVE_LANGINFO_ALTMON 879HAVE_LANGINFO_T_FMT_AMPM 880HAVE_LANGINFO_CODESET 881HAVE_LANGINFO_H 882NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 883NEXT_LANGINFO_H 884REPLACE_NL_LANGINFO 885HAVE_NL_LANGINFO 886GNULIB_NL_LANGINFO 887LIB_HARD_LOCALE 888LIB_SETLOCALE_NULL 889WINDOWS_64_BIT_ST_SIZE 890WINDOWS_STAT_TIMESPEC 891NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 892NEXT_SYS_STAT_H 893REPLACE_UTIMENSAT 894REPLACE_STAT 895REPLACE_MKNODAT 896REPLACE_MKNOD 897REPLACE_MKFIFOAT 898REPLACE_MKFIFO 899REPLACE_MKDIR 900REPLACE_LSTAT 901REPLACE_FUTIMENS 902REPLACE_FSTATAT 903REPLACE_FSTAT 904REPLACE_FCHMODAT 905HAVE_UTIMENSAT 906HAVE_MKNODAT 907HAVE_MKNOD 908HAVE_MKFIFOAT 909HAVE_MKFIFO 910HAVE_MKDIRAT 911HAVE_LSTAT 912HAVE_LCHMOD 913HAVE_GETUMASK 914HAVE_FUTIMENS 915HAVE_FSTATAT 916HAVE_FCHMODAT 917GNULIB_MDA_UMASK 918GNULIB_MDA_MKDIR 919GNULIB_MDA_CHMOD 920GNULIB_OVERRIDES_STRUCT_STAT 921GNULIB_UTIMENSAT 922GNULIB_STAT 923GNULIB_MKNODAT 924GNULIB_MKNOD 925GNULIB_MKFIFOAT 926GNULIB_MKFIFO 927GNULIB_MKDIRAT 928GNULIB_MKDIR 929GNULIB_LSTAT 930GNULIB_LCHMOD 931GNULIB_GETUMASK 932GNULIB_FUTIMENS 933GNULIB_FSTATAT 934GNULIB_FSTAT 935GNULIB_FCHMODAT 936HAVE_WINSOCK2_H 937HAVE_MSVC_INVALID_PARAMETER_HANDLER 938HAVE_FEATURES_H 939NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 940NEXT_WCHAR_H 941LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE 942LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE 943LIBUNISTRING_UNIWIDTH_H 944LIBUNISTRING_UNITYPES_H 945HAVE_UNISTD_H 946NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 947NEXT_UNISTD_H 948WINDOWS_STAT_INODES 949WINDOWS_64_BIT_OFF_T 950NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 951NEXT_SYS_TYPES_H 952HAVE_STRINGS_H 953NEXT_AS_FIRST_DIRECTIVE_STRINGS_H 954NEXT_STRINGS_H 955NEXT_AS_FIRST_DIRECTIVE_STRING_H 956NEXT_STRING_H 957HAVE_DECL_STRNCASECMP 958HAVE_STRCASECMP 959HAVE_FFS 960GNULIB_FFS 961NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 962NEXT_STDLIB_H 963REPLACE_WCTOMB 964REPLACE_UNSETENV 965REPLACE_STRTOLD 966REPLACE_STRTOD 967REPLACE_SETSTATE 968REPLACE_SETENV 969REPLACE_REALPATH 970REPLACE_REALLOC 971REPLACE_RANDOM_R 972REPLACE_RANDOM 973REPLACE_QSORT_R 974REPLACE_PUTENV 975REPLACE_PTSNAME_R 976REPLACE_PTSNAME 977REPLACE_POSIX_MEMALIGN 978REPLACE_MKSTEMP 979REPLACE_MBTOWC 980REPLACE_MALLOC 981REPLACE_INITSTATE 982REPLACE_FREE 983REPLACE_CANONICALIZE_FILE_NAME 984REPLACE_CALLOC 985REPLACE_ALIGNED_ALLOC 986HAVE_DECL_UNSETENV 987HAVE_UNLOCKPT 988HAVE_SYS_LOADAVG_H 989HAVE_STRUCT_RANDOM_DATA 990HAVE_STRTOULL 991HAVE_STRTOLL 992HAVE_STRTOLD 993HAVE_STRTOD 994HAVE_DECL_SETSTATE 995HAVE_SETSTATE 996HAVE_DECL_SETENV 997HAVE_SETENV 998HAVE_SECURE_GETENV 999HAVE_RPMATCH 1000HAVE_REALPATH 1001HAVE_REALLOCARRAY 1002HAVE_RANDOM_R 1003HAVE_RANDOM_H 1004HAVE_RANDOM 1005HAVE_QSORT_R 1006HAVE_PTSNAME_R 1007HAVE_PTSNAME 1008HAVE_POSIX_OPENPT 1009HAVE_POSIX_MEMALIGN 1010HAVE_MKSTEMPS 1011HAVE_MKSTEMP 1012HAVE_MKOSTEMPS 1013HAVE_MKOSTEMP 1014HAVE_MKDTEMP 1015HAVE_MBTOWC 1016HAVE_DECL_INITSTATE 1017HAVE_INITSTATE 1018HAVE_GRANTPT 1019HAVE_GETSUBOPT 1020HAVE_DECL_GETLOADAVG 1021HAVE_DECL_GCVT 1022HAVE_DECL_FCVT 1023HAVE_DECL_ECVT 1024HAVE_CANONICALIZE_FILE_NAME 1025HAVE_ATOLL 1026HAVE_ALIGNED_ALLOC 1027HAVE__EXIT 1028GNULIB_MDA_PUTENV 1029GNULIB_MDA_MKTEMP 1030GNULIB_MDA_GCVT 1031GNULIB_MDA_FCVT 1032GNULIB_MDA_ECVT 1033GNULIB_WCTOMB 1034GNULIB_UNSETENV 1035GNULIB_UNLOCKPT 1036GNULIB_SYSTEM_POSIX 1037GNULIB_STRTOULL 1038GNULIB_STRTOLL 1039GNULIB_STRTOLD 1040GNULIB_STRTOD 1041GNULIB_SETENV 1042GNULIB_SECURE_GETENV 1043GNULIB_RPMATCH 1044GNULIB_REALPATH 1045GNULIB_REALLOC_POSIX 1046GNULIB_REALLOCARRAY 1047GNULIB_RANDOM_R 1048GNULIB_RANDOM 1049GNULIB_QSORT_R 1050GNULIB_PUTENV 1051GNULIB_PTSNAME_R 1052GNULIB_PTSNAME 1053GNULIB_POSIX_OPENPT 1054GNULIB_POSIX_MEMALIGN 1055GNULIB_MKSTEMPS 1056GNULIB_MKSTEMP 1057GNULIB_MKOSTEMPS 1058GNULIB_MKOSTEMP 1059GNULIB_MKDTEMP 1060GNULIB_MBTOWC 1061GNULIB_MALLOC_POSIX 1062GNULIB_GRANTPT 1063GNULIB_GETSUBOPT 1064GNULIB_GETLOADAVG 1065GNULIB_FREE_POSIX 1066GNULIB_CANONICALIZE_FILE_NAME 1067GNULIB_CALLOC_POSIX 1068GNULIB_ATOLL 1069GNULIB_ALIGNED_ALLOC 1070GNULIB__EXIT 1071NEXT_AS_FIRST_DIRECTIVE_STDIO_H 1072NEXT_STDIO_H 1073REPLACE_VSPRINTF 1074REPLACE_VSNPRINTF 1075REPLACE_VPRINTF 1076REPLACE_VFPRINTF 1077REPLACE_VDPRINTF 1078REPLACE_VASPRINTF 1079REPLACE_TMPFILE 1080REPLACE_STDIO_WRITE_FUNCS 1081REPLACE_STDIO_READ_FUNCS 1082REPLACE_SPRINTF 1083REPLACE_SNPRINTF 1084REPLACE_RENAMEAT 1085REPLACE_RENAME 1086REPLACE_REMOVE 1087REPLACE_PRINTF 1088REPLACE_POPEN 1089REPLACE_PERROR 1090REPLACE_OBSTACK_PRINTF 1091REPLACE_GETLINE 1092REPLACE_GETDELIM 1093REPLACE_FTELLO 1094REPLACE_FTELL 1095REPLACE_FSEEKO 1096REPLACE_FSEEK 1097REPLACE_FREOPEN 1098REPLACE_FPURGE 1099REPLACE_FPRINTF 1100REPLACE_FOPEN 1101REPLACE_FFLUSH 1102REPLACE_FDOPEN 1103REPLACE_FCLOSE 1104REPLACE_DPRINTF 1105HAVE_VDPRINTF 1106HAVE_VASPRINTF 1107HAVE_RENAMEAT 1108HAVE_POPEN 1109HAVE_PCLOSE 1110HAVE_FTELLO 1111HAVE_FSEEKO 1112HAVE_DPRINTF 1113HAVE_DECL_VSNPRINTF 1114HAVE_DECL_SNPRINTF 1115HAVE_DECL_OBSTACK_PRINTF 1116HAVE_DECL_GETLINE 1117HAVE_DECL_GETDELIM 1118HAVE_DECL_FTELLO 1119HAVE_DECL_FSEEKO 1120HAVE_DECL_FPURGE 1121HAVE_DECL_FCLOSEALL 1122GNULIB_MDA_TEMPNAM 1123GNULIB_MDA_PUTW 1124GNULIB_MDA_GETW 1125GNULIB_MDA_FILENO 1126GNULIB_MDA_FDOPEN 1127GNULIB_MDA_FCLOSEALL 1128GNULIB_VSPRINTF_POSIX 1129GNULIB_VSNPRINTF 1130GNULIB_VPRINTF_POSIX 1131GNULIB_VPRINTF 1132GNULIB_VFPRINTF_POSIX 1133GNULIB_VFPRINTF 1134GNULIB_VDPRINTF 1135GNULIB_VSCANF 1136GNULIB_VFSCANF 1137GNULIB_VASPRINTF 1138GNULIB_TMPFILE 1139GNULIB_STDIO_H_SIGPIPE 1140GNULIB_STDIO_H_NONBLOCKING 1141GNULIB_SPRINTF_POSIX 1142GNULIB_SNPRINTF 1143GNULIB_SCANF 1144GNULIB_RENAMEAT 1145GNULIB_RENAME 1146GNULIB_REMOVE 1147GNULIB_PUTS 1148GNULIB_PUTCHAR 1149GNULIB_PUTC 1150GNULIB_PRINTF_POSIX 1151GNULIB_PRINTF 1152GNULIB_POPEN 1153GNULIB_PERROR 1154GNULIB_PCLOSE 1155GNULIB_OBSTACK_PRINTF_POSIX 1156GNULIB_OBSTACK_PRINTF 1157GNULIB_GETLINE 1158GNULIB_GETDELIM 1159GNULIB_GETCHAR 1160GNULIB_GETC 1161GNULIB_FWRITE 1162GNULIB_FTELLO 1163GNULIB_FTELL 1164GNULIB_FSEEKO 1165GNULIB_FSEEK 1166GNULIB_FSCANF 1167GNULIB_FREOPEN 1168GNULIB_FREAD 1169GNULIB_FPUTS 1170GNULIB_FPUTC 1171GNULIB_FPURGE 1172GNULIB_FPRINTF_POSIX 1173GNULIB_FPRINTF 1174GNULIB_FOPEN 1175GNULIB_FGETS 1176GNULIB_FGETC 1177GNULIB_FFLUSH 1178GNULIB_FDOPEN 1179GNULIB_FCLOSE 1180GNULIB_DPRINTF 1181NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1182NEXT_STDDEF_H 1183GL_GENERATE_STDDEF_H_FALSE 1184GL_GENERATE_STDDEF_H_TRUE 1185STDDEF_H 1186HAVE_WCHAR_T 1187HAVE_MAX_ALIGN_T 1188REPLACE_NULL 1189HAVE__BOOL 1190GL_GENERATE_STDBOOL_H_FALSE 1191GL_GENERATE_STDBOOL_H_TRUE 1192STDBOOL_H 1193GL_GENERATE_STDARG_H_FALSE 1194GL_GENERATE_STDARG_H_TRUE 1195STDARG_H 1196NEXT_AS_FIRST_DIRECTIVE_STDARG_H 1197NEXT_STDARG_H 1198UNDEFINE_STRTOK_R 1199REPLACE_STRSIGNAL 1200REPLACE_STRERRORNAME_NP 1201REPLACE_STRERROR_R 1202REPLACE_STRERROR 1203REPLACE_STRTOK_R 1204REPLACE_STRCASESTR 1205REPLACE_STRSTR 1206REPLACE_STRNLEN 1207REPLACE_STRNDUP 1208REPLACE_STRNCAT 1209REPLACE_STRDUP 1210REPLACE_STRCHRNUL 1211REPLACE_STPNCPY 1212REPLACE_MEMMEM 1213REPLACE_MEMCHR 1214REPLACE_FFSLL 1215HAVE_STRVERSCMP 1216HAVE_DECL_STRSIGNAL 1217HAVE_SIGDESCR_NP 1218HAVE_SIGABBREV_NP 1219HAVE_STRERRORNAME_NP 1220HAVE_DECL_STRERROR_R 1221HAVE_DECL_STRTOK_R 1222HAVE_STRCASESTR 1223HAVE_STRSEP 1224HAVE_STRPBRK 1225HAVE_DECL_STRNLEN 1226HAVE_DECL_STRNDUP 1227HAVE_DECL_STRDUP 1228HAVE_STRCHRNUL 1229HAVE_STPNCPY 1230HAVE_STPCPY 1231HAVE_RAWMEMCHR 1232HAVE_DECL_MEMRCHR 1233HAVE_MEMPCPY 1234HAVE_DECL_MEMMEM 1235HAVE_FFSLL 1236HAVE_FFSL 1237HAVE_EXPLICIT_BZERO 1238GNULIB_MDA_STRDUP 1239GNULIB_MDA_MEMCCPY 1240HAVE_MBSLEN 1241GNULIB_STRVERSCMP 1242GNULIB_STRSIGNAL 1243GNULIB_SIGDESCR_NP 1244GNULIB_SIGABBREV_NP 1245GNULIB_STRERRORNAME_NP 1246GNULIB_STRERROR_R 1247GNULIB_STRERROR 1248GNULIB_MBSTOK_R 1249GNULIB_MBSSEP 1250GNULIB_MBSSPN 1251GNULIB_MBSPBRK 1252GNULIB_MBSCSPN 1253GNULIB_MBSCASESTR 1254GNULIB_MBSPCASECMP 1255GNULIB_MBSNCASECMP 1256GNULIB_MBSCASECMP 1257GNULIB_MBSSTR 1258GNULIB_MBSRCHR 1259GNULIB_MBSCHR 1260GNULIB_MBSNLEN 1261GNULIB_MBSLEN 1262GNULIB_STRTOK_R 1263GNULIB_STRCASESTR 1264GNULIB_STRSTR 1265GNULIB_STRSEP 1266GNULIB_STRPBRK 1267GNULIB_STRNLEN 1268GNULIB_STRNDUP 1269GNULIB_STRNCAT 1270GNULIB_STRDUP 1271GNULIB_STRCHRNUL 1272GNULIB_STPNCPY 1273GNULIB_STPCPY 1274GNULIB_RAWMEMCHR 1275GNULIB_MEMRCHR 1276GNULIB_MEMPCPY 1277GNULIB_MEMMEM 1278GNULIB_MEMCHR 1279GNULIB_FFSLL 1280GNULIB_FFSL 1281GNULIB_EXPLICIT_BZERO 1282HAVE_VISIBILITY 1283CFLAG_VISIBILITY 1284LIB_MBRTOWC 1285LIB_SCHED_YIELD 1286LIBPMULTITHREAD 1287LIBPTHREAD 1288REPLACE_WCSTOK 1289REPLACE_WCSFTIME 1290REPLACE_WCSWIDTH 1291REPLACE_WCWIDTH 1292REPLACE_WCSNRTOMBS 1293REPLACE_WCSRTOMBS 1294REPLACE_WCRTOMB 1295REPLACE_MBSNRTOWCS 1296REPLACE_MBSRTOWCS 1297REPLACE_MBRLEN 1298REPLACE_MBRTOWC 1299REPLACE_MBSINIT 1300REPLACE_WCTOB 1301REPLACE_BTOWC 1302REPLACE_MBSTATE_T 1303HAVE_DECL_WCWIDTH 1304HAVE_DECL_WCSDUP 1305HAVE_DECL_WCTOB 1306HAVE_WCSFTIME 1307HAVE_WCSWIDTH 1308HAVE_WCSTOK 1309HAVE_WCSSTR 1310HAVE_WCSPBRK 1311HAVE_WCSSPN 1312HAVE_WCSCSPN 1313HAVE_WCSRCHR 1314HAVE_WCSCHR 1315HAVE_WCSDUP 1316HAVE_WCSXFRM 1317HAVE_WCSCOLL 1318HAVE_WCSNCASECMP 1319HAVE_WCSCASECMP 1320HAVE_WCSNCMP 1321HAVE_WCSCMP 1322HAVE_WCSNCAT 1323HAVE_WCSCAT 1324HAVE_WCPNCPY 1325HAVE_WCSNCPY 1326HAVE_WCPCPY 1327HAVE_WCSCPY 1328HAVE_WCSNLEN 1329HAVE_WCSLEN 1330HAVE_WMEMSET 1331HAVE_WMEMPCPY 1332HAVE_WMEMMOVE 1333HAVE_WMEMCPY 1334HAVE_WMEMCMP 1335HAVE_WMEMCHR 1336HAVE_WCSNRTOMBS 1337HAVE_WCSRTOMBS 1338HAVE_WCRTOMB 1339HAVE_MBSNRTOWCS 1340HAVE_MBSRTOWCS 1341HAVE_MBRLEN 1342HAVE_MBRTOWC 1343HAVE_MBSINIT 1344HAVE_BTOWC 1345GNULIB_MDA_WCSDUP 1346GNULIB_WCSFTIME 1347GNULIB_WCSWIDTH 1348GNULIB_WCSTOK 1349GNULIB_WCSSTR 1350GNULIB_WCSPBRK 1351GNULIB_WCSSPN 1352GNULIB_WCSCSPN 1353GNULIB_WCSRCHR 1354GNULIB_WCSCHR 1355GNULIB_WCSDUP 1356GNULIB_WCSXFRM 1357GNULIB_WCSCOLL 1358GNULIB_WCSNCASECMP 1359GNULIB_WCSCASECMP 1360GNULIB_WCSNCMP 1361GNULIB_WCSCMP 1362GNULIB_WCSNCAT 1363GNULIB_WCSCAT 1364GNULIB_WCPNCPY 1365GNULIB_WCSNCPY 1366GNULIB_WCPCPY 1367GNULIB_WCSCPY 1368GNULIB_WCSNLEN 1369GNULIB_WCSLEN 1370GNULIB_WMEMSET 1371GNULIB_WMEMPCPY 1372GNULIB_WMEMMOVE 1373GNULIB_WMEMCPY 1374GNULIB_WMEMCMP 1375GNULIB_WMEMCHR 1376GNULIB_WCWIDTH 1377GNULIB_WCSNRTOMBS 1378GNULIB_WCSRTOMBS 1379GNULIB_WCRTOMB 1380GNULIB_MBSNRTOWCS 1381GNULIB_MBSRTOWCS 1382GNULIB_MBRLEN 1383GNULIB_MBRTOWC 1384GNULIB_MBSINIT 1385GNULIB_WCTOB 1386GNULIB_BTOWC 1387LOCALE_ZH_CN 1388LOCALE_FR_UTF8 1389LOCALE_JA 1390LOCALE_FR 1391REPLACE_TOWLOWER 1392REPLACE_ISWCNTRL 1393HAVE_WCTYPE_H 1394NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 1395NEXT_WCTYPE_H 1396HAVE_CRTDEFS_H 1397HAVE_WINT_T 1398HAVE_ISWCNTRL 1399REPLACE_ISWXDIGIT 1400REPLACE_ISWDIGIT 1401REPLACE_ISWBLANK 1402HAVE_WCTRANS_T 1403HAVE_WCTYPE_T 1404HAVE_ISWBLANK 1405GNULIB_TOWCTRANS 1406GNULIB_WCTRANS 1407GNULIB_ISWCTYPE 1408GNULIB_WCTYPE 1409GNULIB_ISWXDIGIT 1410GNULIB_ISWDIGIT 1411GNULIB_ISWBLANK 1412NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 1413NEXT_INTTYPES_H 1414UINT64_MAX_EQ_ULONG_MAX 1415UINT32_MAX_LT_UINTMAX_MAX 1416PRIPTR_PREFIX 1417INT64_MAX_EQ_LONG_MAX 1418INT32_MAX_LT_INTMAX_MAX 1419REPLACE_STRTOUMAX 1420REPLACE_STRTOIMAX 1421HAVE_IMAXDIV_T 1422HAVE_DECL_STRTOUMAX 1423HAVE_DECL_STRTOIMAX 1424HAVE_DECL_IMAXDIV 1425HAVE_DECL_IMAXABS 1426GNULIB_STRTOUMAX 1427GNULIB_STRTOIMAX 1428GNULIB_IMAXDIV 1429GNULIB_IMAXABS 1430GL_GENERATE_STDINT_H_FALSE 1431GL_GENERATE_STDINT_H_TRUE 1432STDINT_H 1433HAVE_SYS_INTTYPES_H 1434HAVE_SYS_BITYPES_H 1435HAVE_C99_STDINT_H 1436WINT_T_SUFFIX 1437WCHAR_T_SUFFIX 1438SIG_ATOMIC_T_SUFFIX 1439SIZE_T_SUFFIX 1440PTRDIFF_T_SUFFIX 1441HAVE_SIGNED_WINT_T 1442HAVE_SIGNED_WCHAR_T 1443HAVE_SIGNED_SIG_ATOMIC_T 1444BITSIZEOF_WINT_T 1445BITSIZEOF_WCHAR_T 1446BITSIZEOF_SIG_ATOMIC_T 1447BITSIZEOF_SIZE_T 1448BITSIZEOF_PTRDIFF_T 1449APPLE_UNIVERSAL_BUILD 1450HAVE_STDINT_H 1451NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1452NEXT_STDINT_H 1453HAVE_SYS_TYPES_H 1454HAVE_INTTYPES_H 1455HAVE_WCHAR_H 1456GNULIB_OVERRIDES_WINT_T 1457GL_GENERATE_LIMITS_H_FALSE 1458GL_GENERATE_LIMITS_H_TRUE 1459LIMITS_H 1460NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1461NEXT_LIMITS_H 1462LTLIBICONV 1463LIBICONV 1464LTLIBINTL 1465LIBINTL 1466GNULIB_GL_UNISTD_H_GETOPT 1467GETOPT_CDEFS_H 1468GETOPT_H 1469HAVE_SYS_CDEFS_H 1470HAVE_GETOPT_H 1471NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1472NEXT_GETOPT_H 1473UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1474UNISTD_H_HAVE_WINSOCK2_H 1475UNISTD_H_HAVE_SYS_RANDOM_H 1476REPLACE_WRITE 1477REPLACE_USLEEP 1478REPLACE_UNLINKAT 1479REPLACE_UNLINK 1480REPLACE_TTYNAME_R 1481REPLACE_TRUNCATE 1482REPLACE_SYMLINKAT 1483REPLACE_SYMLINK 1484REPLACE_SLEEP 1485REPLACE_RMDIR 1486REPLACE_READLINKAT 1487REPLACE_READLINK 1488REPLACE_READ 1489REPLACE_PWRITE 1490REPLACE_PREAD 1491REPLACE_LSEEK 1492REPLACE_LINKAT 1493REPLACE_LINK 1494REPLACE_LCHOWN 1495REPLACE_ISATTY 1496REPLACE_GETPASS 1497REPLACE_GETPAGESIZE 1498REPLACE_GETGROUPS 1499REPLACE_GETLOGIN_R 1500REPLACE_GETDTABLESIZE 1501REPLACE_GETDOMAINNAME 1502REPLACE_GETCWD 1503REPLACE_FTRUNCATE 1504REPLACE_FCHOWNAT 1505REPLACE_FACCESSAT 1506REPLACE_EXECVPE 1507REPLACE_EXECVP 1508REPLACE_EXECVE 1509REPLACE_EXECV 1510REPLACE_EXECLP 1511REPLACE_EXECLE 1512REPLACE_EXECL 1513REPLACE_DUP2 1514REPLACE_DUP 1515REPLACE_CLOSE 1516REPLACE_CHOWN 1517REPLACE_ACCESS 1518HAVE_SYS_PARAM_H 1519HAVE_OS_H 1520HAVE_DECL_TTYNAME_R 1521HAVE_DECL_TRUNCATE 1522HAVE_DECL_SETHOSTNAME 1523HAVE_DECL_GETUSERSHELL 1524HAVE_DECL_GETPAGESIZE 1525HAVE_DECL_GETLOGIN_R 1526HAVE_DECL_GETLOGIN 1527HAVE_DECL_GETDOMAINNAME 1528HAVE_DECL_FDATASYNC 1529HAVE_DECL_FCHDIR 1530HAVE_DECL_EXECVPE 1531HAVE_DECL_ENVIRON 1532HAVE_USLEEP 1533HAVE_UNLINKAT 1534HAVE_SYMLINKAT 1535HAVE_SYMLINK 1536HAVE_SLEEP 1537HAVE_SETHOSTNAME 1538HAVE_READLINKAT 1539HAVE_READLINK 1540HAVE_PWRITE 1541HAVE_PREAD 1542HAVE_PIPE2 1543HAVE_PIPE 1544HAVE_LINKAT 1545HAVE_LINK 1546HAVE_LCHOWN 1547HAVE_GROUP_MEMBER 1548HAVE_GETPASS 1549HAVE_GETPAGESIZE 1550HAVE_GETLOGIN 1551HAVE_GETHOSTNAME 1552HAVE_GETGROUPS 1553HAVE_GETENTROPY 1554HAVE_GETDTABLESIZE 1555HAVE_FTRUNCATE 1556HAVE_FSYNC 1557HAVE_FDATASYNC 1558HAVE_FCHOWNAT 1559HAVE_FCHDIR 1560HAVE_FACCESSAT 1561HAVE_EXECVPE 1562HAVE_EUIDACCESS 1563HAVE_DUP3 1564HAVE_COPY_FILE_RANGE 1565HAVE_CHOWN 1566GNULIB_MDA_WRITE 1567GNULIB_MDA_UNLINK 1568GNULIB_MDA_SWAB 1569GNULIB_MDA_RMDIR 1570GNULIB_MDA_READ 1571GNULIB_MDA_LSEEK 1572GNULIB_MDA_ISATTY 1573GNULIB_MDA_GETPID 1574GNULIB_MDA_GETCWD 1575GNULIB_MDA_EXECVPE 1576GNULIB_MDA_EXECVP 1577GNULIB_MDA_EXECVE 1578GNULIB_MDA_EXECV 1579GNULIB_MDA_EXECLP 1580GNULIB_MDA_EXECLE 1581GNULIB_MDA_EXECL 1582GNULIB_MDA_DUP2 1583GNULIB_MDA_DUP 1584GNULIB_MDA_CLOSE 1585GNULIB_MDA_CHDIR 1586GNULIB_MDA_ACCESS 1587GNULIB_WRITE 1588GNULIB_USLEEP 1589GNULIB_UNLINKAT 1590GNULIB_UNLINK 1591GNULIB_UNISTD_H_SIGPIPE 1592GNULIB_UNISTD_H_NONBLOCKING 1593GNULIB_TTYNAME_R 1594GNULIB_TRUNCATE 1595GNULIB_SYMLINKAT 1596GNULIB_SYMLINK 1597GNULIB_SLEEP 1598GNULIB_SETHOSTNAME 1599GNULIB_RMDIR 1600GNULIB_READLINKAT 1601GNULIB_READLINK 1602GNULIB_READ 1603GNULIB_PWRITE 1604GNULIB_PREAD 1605GNULIB_PIPE2 1606GNULIB_PIPE 1607GNULIB_LSEEK 1608GNULIB_LINKAT 1609GNULIB_LINK 1610GNULIB_LCHOWN 1611GNULIB_ISATTY 1612GNULIB_GROUP_MEMBER 1613GNULIB_GETUSERSHELL 1614GNULIB_GETPASS 1615GNULIB_GETPAGESIZE 1616GNULIB_GETOPT_POSIX 1617GNULIB_GETLOGIN_R 1618GNULIB_GETLOGIN 1619GNULIB_GETHOSTNAME 1620GNULIB_GETGROUPS 1621GNULIB_GETENTROPY 1622GNULIB_GETDTABLESIZE 1623GNULIB_GETDOMAINNAME 1624GNULIB_GETCWD 1625GNULIB_FTRUNCATE 1626GNULIB_FSYNC 1627GNULIB_FDATASYNC 1628GNULIB_FCHOWNAT 1629GNULIB_FCHDIR 1630GNULIB_FACCESSAT 1631GNULIB_EXECVPE 1632GNULIB_EXECVP 1633GNULIB_EXECVE 1634GNULIB_EXECV 1635GNULIB_EXECLP 1636GNULIB_EXECLE 1637GNULIB_EXECL 1638GNULIB_EUIDACCESS 1639GNULIB_ENVIRON 1640GNULIB_DUP3 1641GNULIB_DUP2 1642GNULIB_DUP 1643GNULIB_COPY_FILE_RANGE 1644GNULIB_CLOSE 1645GNULIB_CHOWN 1646GNULIB_CHDIR 1647GNULIB_ACCESS 1648REPLACE_ITOLD 1649GL_GENERATE_FLOAT_H_FALSE 1650GL_GENERATE_FLOAT_H_TRUE 1651FLOAT_H 1652NEXT_AS_FIRST_DIRECTIVE_FLOAT_H 1653NEXT_FLOAT_H 1654NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1655NEXT_FCNTL_H 1656REPLACE_OPENAT 1657REPLACE_OPEN 1658REPLACE_FCNTL 1659REPLACE_CREAT 1660HAVE_OPENAT 1661HAVE_FCNTL 1662GNULIB_MDA_OPEN 1663GNULIB_MDA_CREAT 1664GNULIB_OPENAT 1665GNULIB_OPEN 1666GNULIB_NONBLOCKING 1667GNULIB_FCNTL 1668GNULIB_CREAT 1669EOVERFLOW_VALUE 1670EOVERFLOW_HIDDEN 1671ENOLINK_VALUE 1672ENOLINK_HIDDEN 1673EMULTIHOP_VALUE 1674EMULTIHOP_HIDDEN 1675GL_GENERATE_ERRNO_H_FALSE 1676GL_GENERATE_ERRNO_H_TRUE 1677ERRNO_H 1678NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1679NEXT_ERRNO_H 1680PRAGMA_COLUMNS 1681PRAGMA_SYSTEM_HEADER 1682INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1683INCLUDE_NEXT 1684GL_GENERATE_ARGZ_H_FALSE 1685GL_GENERATE_ARGZ_H_TRUE 1686ARGZ_H 1687HAVE_ALLOCA_H 1688GL_GENERATE_ALLOCA_H_FALSE 1689GL_GENERATE_ALLOCA_H_TRUE 1690ALLOCA_H 1691ALLOCA 1692GL_COND_LIBTOOL_FALSE 1693GL_COND_LIBTOOL_TRUE 1694RANLIB 1695ARFLAGS 1696AR 1697EGREP 1698GREP 1699CPP 1700host_os 1701host_vendor 1702host_cpu 1703host 1704build_os 1705build_vendor 1706build_cpu 1707build 1708am__fastdepCC_FALSE 1709am__fastdepCC_TRUE 1710CCDEPMODE 1711am__nodep 1712AMDEPBACKSLASH 1713AMDEP_FALSE 1714AMDEP_TRUE 1715am__include 1716DEPDIR 1717OBJEXT 1718EXEEXT 1719ac_ct_CC 1720CPPFLAGS 1721LDFLAGS 1722CFLAGS 1723CC 1724GAWK 1725TI_AWK 1726PERL_EXT_CC 1727PERL_EXT_LDFLAGS 1728PERL_EXT_CPPFLAGS 1729PERL_EXT_CFLAGS 1730PERL 1731PACKAGE_DATE 1732TEXINFO_DTD_VERSION 1733AM_BACKSLASH 1734AM_DEFAULT_VERBOSITY 1735AM_DEFAULT_V 1736AM_V 1737am__untar 1738am__tar 1739AMTAR 1740am__leading_dot 1741SET_MAKE 1742AWK 1743mkdir_p 1744MKDIR_P 1745INSTALL_STRIP_PROGRAM 1746STRIP 1747install_sh 1748MAKEINFO 1749AUTOHEADER 1750AUTOMAKE 1751AUTOCONF 1752ACLOCAL 1753VERSION 1754PACKAGE 1755CYGPATH_W 1756am__isrc 1757INSTALL_DATA 1758INSTALL_SCRIPT 1759INSTALL_PROGRAM 1760target_alias 1761host_alias 1762build_alias 1763LIBS 1764ECHO_T 1765ECHO_N 1766ECHO_C 1767DEFS 1768mandir 1769localedir 1770libdir 1771psdir 1772pdfdir 1773dvidir 1774htmldir 1775infodir 1776docdir 1777oldincludedir 1778includedir 1779runstatedir 1780localstatedir 1781sharedstatedir 1782sysconfdir 1783datadir 1784datarootdir 1785libexecdir 1786sbindir 1787bindir 1788program_transform_name 1789prefix 1790exec_prefix 1791PACKAGE_URL 1792PACKAGE_BUGREPORT 1793PACKAGE_STRING 1794PACKAGE_VERSION 1795PACKAGE_TARNAME 1796PACKAGE_NAME 1797PATH_SEPARATOR 1798SHELL 1799am__quote' 1800ac_subst_files='' 1801ac_user_opts=' 1802enable_option_checking 1803enable_silent_rules 1804enable_dependency_tracking 1805enable_largefile 1806enable_threads 1807enable_cross_guesses 1808with_gnu_ld 1809enable_rpath 1810with_libiconv_prefix 1811with_included_regex 1812enable_multiplatform 1813enable_install_warnings 1814with_external_Unicode_EastAsianWidth 1815with_external_Text_Unidecode 1816enable_nls 1817with_libintl_prefix 1818with_external_libintl_perl 1819enable_perl_xs 1820enable_tp_tests 1821enable_perl_api_texi_build 1822enable_pod_simple_texinfo_tests 1823' 1824 ac_precious_vars='build_alias 1825host_alias 1826target_alias 1827PERL 1828PERL_EXT_CFLAGS 1829PERL_EXT_CPPFLAGS 1830PERL_EXT_LDFLAGS 1831PERL_EXT_CC 1832CC 1833CFLAGS 1834LDFLAGS 1835LIBS 1836CPPFLAGS 1837CPP' 1838 1839 1840# Initialize some variables set by options. 1841ac_init_help= 1842ac_init_version=false 1843ac_unrecognized_opts= 1844ac_unrecognized_sep= 1845# The variables have the same names as the options, with 1846# dashes changed to underlines. 1847cache_file=/dev/null 1848exec_prefix=NONE 1849no_create= 1850no_recursion= 1851prefix=NONE 1852program_prefix=NONE 1853program_suffix=NONE 1854program_transform_name=s,x,x, 1855silent= 1856site= 1857srcdir= 1858verbose= 1859x_includes=NONE 1860x_libraries=NONE 1861 1862# Installation directory options. 1863# These are left unexpanded so users can "make install exec_prefix=/foo" 1864# and all the variables that are supposed to be based on exec_prefix 1865# by default will actually change. 1866# Use braces instead of parens because sh, perl, etc. also accept them. 1867# (The list follows the same order as the GNU Coding Standards.) 1868bindir='${exec_prefix}/bin' 1869sbindir='${exec_prefix}/sbin' 1870libexecdir='${exec_prefix}/libexec' 1871datarootdir='${prefix}/share' 1872datadir='${datarootdir}' 1873sysconfdir='${prefix}/etc' 1874sharedstatedir='${prefix}/com' 1875localstatedir='${prefix}/var' 1876runstatedir='${localstatedir}/run' 1877includedir='${prefix}/include' 1878oldincludedir='/usr/include' 1879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1880infodir='${datarootdir}/info' 1881htmldir='${docdir}' 1882dvidir='${docdir}' 1883pdfdir='${docdir}' 1884psdir='${docdir}' 1885libdir='${exec_prefix}/lib' 1886localedir='${datarootdir}/locale' 1887mandir='${datarootdir}/man' 1888 1889ac_prev= 1890ac_dashdash= 1891for ac_option 1892do 1893 # If the previous option needs an argument, assign it. 1894 if test -n "$ac_prev"; then 1895 eval $ac_prev=\$ac_option 1896 ac_prev= 1897 continue 1898 fi 1899 1900 case $ac_option in 1901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1902 *=) ac_optarg= ;; 1903 *) ac_optarg=yes ;; 1904 esac 1905 1906 case $ac_dashdash$ac_option in 1907 --) 1908 ac_dashdash=yes ;; 1909 1910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1911 ac_prev=bindir ;; 1912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1913 bindir=$ac_optarg ;; 1914 1915 -build | --build | --buil | --bui | --bu) 1916 ac_prev=build_alias ;; 1917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1918 build_alias=$ac_optarg ;; 1919 1920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1922 ac_prev=cache_file ;; 1923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1925 cache_file=$ac_optarg ;; 1926 1927 --config-cache | -C) 1928 cache_file=config.cache ;; 1929 1930 -datadir | --datadir | --datadi | --datad) 1931 ac_prev=datadir ;; 1932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1933 datadir=$ac_optarg ;; 1934 1935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1936 | --dataroo | --dataro | --datar) 1937 ac_prev=datarootdir ;; 1938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1940 datarootdir=$ac_optarg ;; 1941 1942 -disable-* | --disable-*) 1943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1944 # Reject names that are not valid shell variable names. 1945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1946 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1947 ac_useropt_orig=$ac_useropt 1948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1949 case $ac_user_opts in 1950 *" 1951"enable_$ac_useropt" 1952"*) ;; 1953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1954 ac_unrecognized_sep=', ';; 1955 esac 1956 eval enable_$ac_useropt=no ;; 1957 1958 -docdir | --docdir | --docdi | --doc | --do) 1959 ac_prev=docdir ;; 1960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1961 docdir=$ac_optarg ;; 1962 1963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1964 ac_prev=dvidir ;; 1965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1966 dvidir=$ac_optarg ;; 1967 1968 -enable-* | --enable-*) 1969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1970 # Reject names that are not valid shell variable names. 1971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1972 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1973 ac_useropt_orig=$ac_useropt 1974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1975 case $ac_user_opts in 1976 *" 1977"enable_$ac_useropt" 1978"*) ;; 1979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1980 ac_unrecognized_sep=', ';; 1981 esac 1982 eval enable_$ac_useropt=\$ac_optarg ;; 1983 1984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1986 | --exec | --exe | --ex) 1987 ac_prev=exec_prefix ;; 1988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1990 | --exec=* | --exe=* | --ex=*) 1991 exec_prefix=$ac_optarg ;; 1992 1993 -gas | --gas | --ga | --g) 1994 # Obsolete; use --with-gas. 1995 with_gas=yes ;; 1996 1997 -help | --help | --hel | --he | -h) 1998 ac_init_help=long ;; 1999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 2000 ac_init_help=recursive ;; 2001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 2002 ac_init_help=short ;; 2003 2004 -host | --host | --hos | --ho) 2005 ac_prev=host_alias ;; 2006 -host=* | --host=* | --hos=* | --ho=*) 2007 host_alias=$ac_optarg ;; 2008 2009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 2010 ac_prev=htmldir ;; 2011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 2012 | --ht=*) 2013 htmldir=$ac_optarg ;; 2014 2015 -includedir | --includedir | --includedi | --included | --include \ 2016 | --includ | --inclu | --incl | --inc) 2017 ac_prev=includedir ;; 2018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2019 | --includ=* | --inclu=* | --incl=* | --inc=*) 2020 includedir=$ac_optarg ;; 2021 2022 -infodir | --infodir | --infodi | --infod | --info | --inf) 2023 ac_prev=infodir ;; 2024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2025 infodir=$ac_optarg ;; 2026 2027 -libdir | --libdir | --libdi | --libd) 2028 ac_prev=libdir ;; 2029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2030 libdir=$ac_optarg ;; 2031 2032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2033 | --libexe | --libex | --libe) 2034 ac_prev=libexecdir ;; 2035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2036 | --libexe=* | --libex=* | --libe=*) 2037 libexecdir=$ac_optarg ;; 2038 2039 -localedir | --localedir | --localedi | --localed | --locale) 2040 ac_prev=localedir ;; 2041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 2042 localedir=$ac_optarg ;; 2043 2044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2045 | --localstate | --localstat | --localsta | --localst | --locals) 2046 ac_prev=localstatedir ;; 2047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 2048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 2049 localstatedir=$ac_optarg ;; 2050 2051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 2052 ac_prev=mandir ;; 2053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 2054 mandir=$ac_optarg ;; 2055 2056 -nfp | --nfp | --nf) 2057 # Obsolete; use --without-fp. 2058 with_fp=no ;; 2059 2060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 2061 | --no-cr | --no-c | -n) 2062 no_create=yes ;; 2063 2064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 2065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 2066 no_recursion=yes ;; 2067 2068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 2069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 2070 | --oldin | --oldi | --old | --ol | --o) 2071 ac_prev=oldincludedir ;; 2072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 2073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 2074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 2075 oldincludedir=$ac_optarg ;; 2076 2077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 2078 ac_prev=prefix ;; 2079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 2080 prefix=$ac_optarg ;; 2081 2082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 2083 | --program-pre | --program-pr | --program-p) 2084 ac_prev=program_prefix ;; 2085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 2086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 2087 program_prefix=$ac_optarg ;; 2088 2089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 2090 | --program-suf | --program-su | --program-s) 2091 ac_prev=program_suffix ;; 2092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 2093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 2094 program_suffix=$ac_optarg ;; 2095 2096 -program-transform-name | --program-transform-name \ 2097 | --program-transform-nam | --program-transform-na \ 2098 | --program-transform-n | --program-transform- \ 2099 | --program-transform | --program-transfor \ 2100 | --program-transfo | --program-transf \ 2101 | --program-trans | --program-tran \ 2102 | --progr-tra | --program-tr | --program-t) 2103 ac_prev=program_transform_name ;; 2104 -program-transform-name=* | --program-transform-name=* \ 2105 | --program-transform-nam=* | --program-transform-na=* \ 2106 | --program-transform-n=* | --program-transform-=* \ 2107 | --program-transform=* | --program-transfor=* \ 2108 | --program-transfo=* | --program-transf=* \ 2109 | --program-trans=* | --program-tran=* \ 2110 | --progr-tra=* | --program-tr=* | --program-t=*) 2111 program_transform_name=$ac_optarg ;; 2112 2113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 2114 ac_prev=pdfdir ;; 2115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 2116 pdfdir=$ac_optarg ;; 2117 2118 -psdir | --psdir | --psdi | --psd | --ps) 2119 ac_prev=psdir ;; 2120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 2121 psdir=$ac_optarg ;; 2122 2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2124 | -silent | --silent | --silen | --sile | --sil) 2125 silent=yes ;; 2126 2127 -runstatedir | --runstatedir | --runstatedi | --runstated \ 2128 | --runstate | --runstat | --runsta | --runst | --runs \ 2129 | --run | --ru | --r) 2130 ac_prev=runstatedir ;; 2131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 2132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 2133 | --run=* | --ru=* | --r=*) 2134 runstatedir=$ac_optarg ;; 2135 2136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 2137 ac_prev=sbindir ;; 2138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 2139 | --sbi=* | --sb=*) 2140 sbindir=$ac_optarg ;; 2141 2142 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 2143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 2144 | --sharedst | --shareds | --shared | --share | --shar \ 2145 | --sha | --sh) 2146 ac_prev=sharedstatedir ;; 2147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 2148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 2149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 2150 | --sha=* | --sh=*) 2151 sharedstatedir=$ac_optarg ;; 2152 2153 -site | --site | --sit) 2154 ac_prev=site ;; 2155 -site=* | --site=* | --sit=*) 2156 site=$ac_optarg ;; 2157 2158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 2159 ac_prev=srcdir ;; 2160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 2161 srcdir=$ac_optarg ;; 2162 2163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 2164 | --syscon | --sysco | --sysc | --sys | --sy) 2165 ac_prev=sysconfdir ;; 2166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 2167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 2168 sysconfdir=$ac_optarg ;; 2169 2170 -target | --target | --targe | --targ | --tar | --ta | --t) 2171 ac_prev=target_alias ;; 2172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 2173 target_alias=$ac_optarg ;; 2174 2175 -v | -verbose | --verbose | --verbos | --verbo | --verb) 2176 verbose=yes ;; 2177 2178 -version | --version | --versio | --versi | --vers | -V) 2179 ac_init_version=: ;; 2180 2181 -with-* | --with-*) 2182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 2183 # Reject names that are not valid shell variable names. 2184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2185 as_fn_error $? "invalid package name: \`$ac_useropt'" 2186 ac_useropt_orig=$ac_useropt 2187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2188 case $ac_user_opts in 2189 *" 2190"with_$ac_useropt" 2191"*) ;; 2192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2193 ac_unrecognized_sep=', ';; 2194 esac 2195 eval with_$ac_useropt=\$ac_optarg ;; 2196 2197 -without-* | --without-*) 2198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 2199 # Reject names that are not valid shell variable names. 2200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2201 as_fn_error $? "invalid package name: \`$ac_useropt'" 2202 ac_useropt_orig=$ac_useropt 2203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2204 case $ac_user_opts in 2205 *" 2206"with_$ac_useropt" 2207"*) ;; 2208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2209 ac_unrecognized_sep=', ';; 2210 esac 2211 eval with_$ac_useropt=no ;; 2212 2213 --x) 2214 # Obsolete; use --with-x. 2215 with_x=yes ;; 2216 2217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 2218 | --x-incl | --x-inc | --x-in | --x-i) 2219 ac_prev=x_includes ;; 2220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 2221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 2222 x_includes=$ac_optarg ;; 2223 2224 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 2225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 2226 ac_prev=x_libraries ;; 2227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 2228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 2229 x_libraries=$ac_optarg ;; 2230 2231 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2232Try \`$0 --help' for more information" 2233 ;; 2234 2235 *=*) 2236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2237 # Reject names that are not valid shell variable names. 2238 case $ac_envvar in #( 2239 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2241 esac 2242 eval $ac_envvar=\$ac_optarg 2243 export $ac_envvar ;; 2244 2245 *) 2246 # FIXME: should be removed in autoconf 3.0. 2247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 2248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 2250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 2251 ;; 2252 2253 esac 2254done 2255 2256if test -n "$ac_prev"; then 2257 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2258 as_fn_error $? "missing argument to $ac_option" 2259fi 2260 2261if test -n "$ac_unrecognized_opts"; then 2262 case $enable_option_checking in 2263 no) ;; 2264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2266 esac 2267fi 2268 2269# Check all directory arguments for consistency. 2270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2271 datadir sysconfdir sharedstatedir localstatedir includedir \ 2272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2273 libdir localedir mandir runstatedir 2274do 2275 eval ac_val=\$$ac_var 2276 # Remove trailing slashes. 2277 case $ac_val in 2278 */ ) 2279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2280 eval $ac_var=\$ac_val;; 2281 esac 2282 # Be sure to have absolute directory names. 2283 case $ac_val in 2284 [\\/$]* | ?:[\\/]* ) continue;; 2285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2286 esac 2287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2288done 2289 2290# There might be people who depend on the old broken behavior: `$host' 2291# used to hold the argument of --host etc. 2292# FIXME: To remove some day. 2293build=$build_alias 2294host=$host_alias 2295target=$target_alias 2296 2297# FIXME: To remove some day. 2298if test "x$host_alias" != x; then 2299 if test "x$build_alias" = x; then 2300 cross_compiling=maybe 2301 elif test "x$build_alias" != "x$host_alias"; then 2302 cross_compiling=yes 2303 fi 2304fi 2305 2306ac_tool_prefix= 2307test -n "$host_alias" && ac_tool_prefix=$host_alias- 2308 2309test "$silent" = yes && exec 6>/dev/null 2310 2311 2312ac_pwd=`pwd` && test -n "$ac_pwd" && 2313ac_ls_di=`ls -di .` && 2314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2315 as_fn_error $? "working directory cannot be determined" 2316test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2317 as_fn_error $? "pwd does not report name of working directory" 2318 2319 2320# Find the source files, if location was not specified. 2321if test -z "$srcdir"; then 2322 ac_srcdir_defaulted=yes 2323 # Try the directory containing this script, then the parent directory. 2324 ac_confdir=`$as_dirname -- "$as_myself" || 2325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2326 X"$as_myself" : 'X\(//\)[^/]' \| \ 2327 X"$as_myself" : 'X\(//\)$' \| \ 2328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2329printf "%s\n" X"$as_myself" | 2330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2331 s//\1/ 2332 q 2333 } 2334 /^X\(\/\/\)[^/].*/{ 2335 s//\1/ 2336 q 2337 } 2338 /^X\(\/\/\)$/{ 2339 s//\1/ 2340 q 2341 } 2342 /^X\(\/\).*/{ 2343 s//\1/ 2344 q 2345 } 2346 s/.*/./; q'` 2347 srcdir=$ac_confdir 2348 if test ! -r "$srcdir/$ac_unique_file"; then 2349 srcdir=.. 2350 fi 2351else 2352 ac_srcdir_defaulted=no 2353fi 2354if test ! -r "$srcdir/$ac_unique_file"; then 2355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2357fi 2358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2359ac_abs_confdir=`( 2360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2361 pwd)` 2362# When building in place, set srcdir=. 2363if test "$ac_abs_confdir" = "$ac_pwd"; then 2364 srcdir=. 2365fi 2366# Remove unnecessary trailing slashes from srcdir. 2367# Double slashes in file names in object file debugging info 2368# mess up M-x gdb in Emacs. 2369case $srcdir in 2370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2371esac 2372for ac_var in $ac_precious_vars; do 2373 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2374 eval ac_env_${ac_var}_value=\$${ac_var} 2375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2376 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2377done 2378 2379# 2380# Report the --help message. 2381# 2382if test "$ac_init_help" = "long"; then 2383 # Omit some internal or obsolete options to make the list less imposing. 2384 # This message is too long to be a string in the A/UX 3.1 sh. 2385 cat <<_ACEOF 2386\`configure' configures GNU Texinfo 6.8 to adapt to many kinds of systems. 2387 2388Usage: $0 [OPTION]... [VAR=VALUE]... 2389 2390To assign environment variables (e.g., CC, CFLAGS...), specify them as 2391VAR=VALUE. See below for descriptions of some of the useful variables. 2392 2393Defaults for the options are specified in brackets. 2394 2395Configuration: 2396 -h, --help display this help and exit 2397 --help=short display options specific to this package 2398 --help=recursive display the short help of all the included packages 2399 -V, --version display version information and exit 2400 -q, --quiet, --silent do not print \`checking ...' messages 2401 --cache-file=FILE cache test results in FILE [disabled] 2402 -C, --config-cache alias for \`--cache-file=config.cache' 2403 -n, --no-create do not create output files 2404 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2405 2406Installation directories: 2407 --prefix=PREFIX install architecture-independent files in PREFIX 2408 [$ac_default_prefix] 2409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2410 [PREFIX] 2411 2412By default, \`make install' will install all the files in 2413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2414an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2415for instance \`--prefix=\$HOME'. 2416 2417For better control, use the options below. 2418 2419Fine tuning of the installation directories: 2420 --bindir=DIR user executables [EPREFIX/bin] 2421 --sbindir=DIR system admin executables [EPREFIX/sbin] 2422 --libexecdir=DIR program executables [EPREFIX/libexec] 2423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2425 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2427 --libdir=DIR object code libraries [EPREFIX/lib] 2428 --includedir=DIR C header files [PREFIX/include] 2429 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2432 --infodir=DIR info documentation [DATAROOTDIR/info] 2433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2434 --mandir=DIR man documentation [DATAROOTDIR/man] 2435 --docdir=DIR documentation root [DATAROOTDIR/doc/texinfo] 2436 --htmldir=DIR html documentation [DOCDIR] 2437 --dvidir=DIR dvi documentation [DOCDIR] 2438 --pdfdir=DIR pdf documentation [DOCDIR] 2439 --psdir=DIR ps documentation [DOCDIR] 2440_ACEOF 2441 2442 cat <<\_ACEOF 2443 2444Program names: 2445 --program-prefix=PREFIX prepend PREFIX to installed program names 2446 --program-suffix=SUFFIX append SUFFIX to installed program names 2447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2448 2449System types: 2450 --build=BUILD configure for building on BUILD [guessed] 2451 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2452_ACEOF 2453fi 2454 2455if test -n "$ac_init_help"; then 2456 case $ac_init_help in 2457 short | recursive ) echo "Configuration of GNU Texinfo 6.8:";; 2458 esac 2459 cat <<\_ACEOF 2460 2461Optional Features: 2462 --disable-option-checking ignore unrecognized --enable/--with options 2463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2465 --enable-silent-rules less verbose build output (undo: "make V=1") 2466 --disable-silent-rules verbose build output (undo: "make V=0") 2467 --enable-dependency-tracking 2468 do not reject slow dependency extractors 2469 --disable-dependency-tracking 2470 speeds up one-time build 2471 --disable-largefile omit support for large files 2472 --enable-threads={isoc|posix|isoc+posix|windows} 2473 specify multithreading API 2474 --disable-threads build without multithread safety 2475 --enable-cross-guesses={conservative|risky} 2476 specify policy for cross-compilation guesses 2477 --disable-rpath do not hardcode runtime library paths 2478 --enable-multiplatform put executables into bin/PLATFORM and libraries into 2479 lib/PLATFORM 2480 --disable-install-warnings omit make install warnings about TeX files 2481 --disable-nls do not use Native Language Support 2482 --enable-perl-xs build Perl XS modules for speed (default: check) 2483 --enable-tp-tests run the parser and converters testsuite (default: 2484 detected) 2485 --enable-perl-api-texi-build 2486 build the perl api texinfo files (default: detected) 2487 --enable-pod-simple-texinfo-tests 2488 run the parser and converters testsuite (default: 2489 detected) 2490 2491Optional Packages: 2492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2495 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2496 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2497 --without-included-regex 2498 don't compile regex; this is the default on systems 2499 with recent-enough versions of the GNU C Library 2500 (use with caution on other systems). 2501 --with-external-Unicode-EastAsianWidth 2502 use external Unicode-EastAsianWidth (default: no) 2503 --with-external-Text-Unidecode 2504 use external Text::Unidecode (default: no) 2505 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2506 --without-libintl-prefix don't search for libintl in includedir and libdir 2507 --with-external-libintl-perl 2508 use external libintl-perl (default: no) 2509 2510Some influential environment variables: 2511 PERL The path to the 'perl' executable. 2512 PERL_EXT_CFLAGS 2513 Compiler flags for a Perl extension 2514 PERL_EXT_CPPFLAGS 2515 C preprocessor flags for a Perl extension 2516 PERL_EXT_LDFLAGS 2517 Linker flags for a Perl extension 2518 PERL_EXT_CC Compiler for a Perl extension 2519 CC C compiler command 2520 CFLAGS C compiler flags 2521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2522 nonstandard directory <lib dir> 2523 LIBS libraries to pass to the linker, e.g. -l<library> 2524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2525 you have headers in a nonstandard directory <include dir> 2526 CPP C preprocessor 2527 2528Use these variables to override the choices made by `configure' or to help 2529it to find libraries and programs with nonstandard names/locations. 2530 2531Report bugs to <bug-texinfo@gnu.org>. 2532GNU Texinfo home page: <https://www.gnu.org/software/texinfo/>. 2533General help using GNU software: <https://www.gnu.org/gethelp/>. 2534_ACEOF 2535ac_status=$? 2536fi 2537 2538if test "$ac_init_help" = "recursive"; then 2539 # If there are subdirs, report their specific --help. 2540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2541 test -d "$ac_dir" || 2542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2543 continue 2544 ac_builddir=. 2545 2546case "$ac_dir" in 2547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2548*) 2549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2550 # A ".." for each directory in $ac_dir_suffix. 2551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2552 case $ac_top_builddir_sub in 2553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2555 esac ;; 2556esac 2557ac_abs_top_builddir=$ac_pwd 2558ac_abs_builddir=$ac_pwd$ac_dir_suffix 2559# for backward compatibility: 2560ac_top_builddir=$ac_top_build_prefix 2561 2562case $srcdir in 2563 .) # We are building in place. 2564 ac_srcdir=. 2565 ac_top_srcdir=$ac_top_builddir_sub 2566 ac_abs_top_srcdir=$ac_pwd ;; 2567 [\\/]* | ?:[\\/]* ) # Absolute name. 2568 ac_srcdir=$srcdir$ac_dir_suffix; 2569 ac_top_srcdir=$srcdir 2570 ac_abs_top_srcdir=$srcdir ;; 2571 *) # Relative name. 2572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2573 ac_top_srcdir=$ac_top_build_prefix$srcdir 2574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2575esac 2576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2577 2578 cd "$ac_dir" || { ac_status=$?; continue; } 2579 # Check for configure.gnu first; this name is used for a wrapper for 2580 # Metaconfig's "Configure" on case-insensitive file systems. 2581 if test -f "$ac_srcdir/configure.gnu"; then 2582 echo && 2583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2584 elif test -f "$ac_srcdir/configure"; then 2585 echo && 2586 $SHELL "$ac_srcdir/configure" --help=recursive 2587 else 2588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2589 fi || ac_status=$? 2590 cd "$ac_pwd" || { ac_status=$?; break; } 2591 done 2592fi 2593 2594test -n "$ac_init_help" && exit $ac_status 2595if $ac_init_version; then 2596 cat <<\_ACEOF 2597GNU Texinfo configure 6.8 2598generated by GNU Autoconf 2.71 2599 2600Copyright (C) 2021 Free Software Foundation, Inc. 2601This configure script is free software; the Free Software Foundation 2602gives unlimited permission to copy, distribute and modify it. 2603_ACEOF 2604 exit 2605fi 2606 2607## ------------------------ ## 2608## Autoconf initialization. ## 2609## ------------------------ ## 2610 2611# ac_fn_c_try_compile LINENO 2612# -------------------------- 2613# Try to compile conftest.$ac_ext, and return whether this succeeded. 2614ac_fn_c_try_compile () 2615{ 2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2617 rm -f conftest.$ac_objext conftest.beam 2618 if { { ac_try="$ac_compile" 2619case "(($ac_try" in 2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2621 *) ac_try_echo=$ac_try;; 2622esac 2623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2624printf "%s\n" "$ac_try_echo"; } >&5 2625 (eval "$ac_compile") 2>conftest.err 2626 ac_status=$? 2627 if test -s conftest.err; then 2628 grep -v '^ *+' conftest.err >conftest.er1 2629 cat conftest.er1 >&5 2630 mv -f conftest.er1 conftest.err 2631 fi 2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2633 test $ac_status = 0; } && { 2634 test -z "$ac_c_werror_flag" || 2635 test ! -s conftest.err 2636 } && test -s conftest.$ac_objext 2637then : 2638 ac_retval=0 2639else $as_nop 2640 printf "%s\n" "$as_me: failed program was:" >&5 2641sed 's/^/| /' conftest.$ac_ext >&5 2642 2643 ac_retval=1 2644fi 2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2646 as_fn_set_status $ac_retval 2647 2648} # ac_fn_c_try_compile 2649 2650# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2651# ------------------------------------------------------- 2652# Tests whether HEADER exists and can be compiled using the include files in 2653# INCLUDES, setting the cache variable VAR accordingly. 2654ac_fn_c_check_header_compile () 2655{ 2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2658printf %s "checking for $2... " >&6; } 2659if eval test \${$3+y} 2660then : 2661 printf %s "(cached) " >&6 2662else $as_nop 2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2664/* end confdefs.h. */ 2665$4 2666#include <$2> 2667_ACEOF 2668if ac_fn_c_try_compile "$LINENO" 2669then : 2670 eval "$3=yes" 2671else $as_nop 2672 eval "$3=no" 2673fi 2674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2675fi 2676eval ac_res=\$$3 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2678printf "%s\n" "$ac_res" >&6; } 2679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2680 2681} # ac_fn_c_check_header_compile 2682 2683# ac_fn_c_try_cpp LINENO 2684# ---------------------- 2685# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2686ac_fn_c_try_cpp () 2687{ 2688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2689 if { { ac_try="$ac_cpp conftest.$ac_ext" 2690case "(($ac_try" in 2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2692 *) ac_try_echo=$ac_try;; 2693esac 2694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2695printf "%s\n" "$ac_try_echo"; } >&5 2696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2697 ac_status=$? 2698 if test -s conftest.err; then 2699 grep -v '^ *+' conftest.err >conftest.er1 2700 cat conftest.er1 >&5 2701 mv -f conftest.er1 conftest.err 2702 fi 2703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2704 test $ac_status = 0; } > conftest.i && { 2705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2706 test ! -s conftest.err 2707 } 2708then : 2709 ac_retval=0 2710else $as_nop 2711 printf "%s\n" "$as_me: failed program was:" >&5 2712sed 's/^/| /' conftest.$ac_ext >&5 2713 2714 ac_retval=1 2715fi 2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2717 as_fn_set_status $ac_retval 2718 2719} # ac_fn_c_try_cpp 2720 2721# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2722# ------------------------------------------- 2723# Tests whether TYPE exists after having included INCLUDES, setting cache 2724# variable VAR accordingly. 2725ac_fn_c_check_type () 2726{ 2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2729printf %s "checking for $2... " >&6; } 2730if eval test \${$3+y} 2731then : 2732 printf %s "(cached) " >&6 2733else $as_nop 2734 eval "$3=no" 2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2736/* end confdefs.h. */ 2737$4 2738int 2739main (void) 2740{ 2741if (sizeof ($2)) 2742 return 0; 2743 ; 2744 return 0; 2745} 2746_ACEOF 2747if ac_fn_c_try_compile "$LINENO" 2748then : 2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2750/* end confdefs.h. */ 2751$4 2752int 2753main (void) 2754{ 2755if (sizeof (($2))) 2756 return 0; 2757 ; 2758 return 0; 2759} 2760_ACEOF 2761if ac_fn_c_try_compile "$LINENO" 2762then : 2763 2764else $as_nop 2765 eval "$3=yes" 2766fi 2767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2768fi 2769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2770fi 2771eval ac_res=\$$3 2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2773printf "%s\n" "$ac_res" >&6; } 2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2775 2776} # ac_fn_c_check_type 2777 2778# ac_fn_c_try_link LINENO 2779# ----------------------- 2780# Try to link conftest.$ac_ext, and return whether this succeeded. 2781ac_fn_c_try_link () 2782{ 2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2784 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2785 if { { ac_try="$ac_link" 2786case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789esac 2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2791printf "%s\n" "$ac_try_echo"; } >&5 2792 (eval "$ac_link") 2>conftest.err 2793 ac_status=$? 2794 if test -s conftest.err; then 2795 grep -v '^ *+' conftest.err >conftest.er1 2796 cat conftest.er1 >&5 2797 mv -f conftest.er1 conftest.err 2798 fi 2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2800 test $ac_status = 0; } && { 2801 test -z "$ac_c_werror_flag" || 2802 test ! -s conftest.err 2803 } && test -s conftest$ac_exeext && { 2804 test "$cross_compiling" = yes || 2805 test -x conftest$ac_exeext 2806 } 2807then : 2808 ac_retval=0 2809else $as_nop 2810 printf "%s\n" "$as_me: failed program was:" >&5 2811sed 's/^/| /' conftest.$ac_ext >&5 2812 2813 ac_retval=1 2814fi 2815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2817 # interfere with the next link command; also delete a directory that is 2818 # left behind by Apple's compiler. We do this before executing the actions. 2819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2821 as_fn_set_status $ac_retval 2822 2823} # ac_fn_c_try_link 2824 2825# ac_fn_c_try_run LINENO 2826# ---------------------- 2827# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2828# executables *can* be run. 2829ac_fn_c_try_run () 2830{ 2831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2832 if { { ac_try="$ac_link" 2833case "(($ac_try" in 2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2835 *) ac_try_echo=$ac_try;; 2836esac 2837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2838printf "%s\n" "$ac_try_echo"; } >&5 2839 (eval "$ac_link") 2>&5 2840 ac_status=$? 2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2842 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2843 { { case "(($ac_try" in 2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2845 *) ac_try_echo=$ac_try;; 2846esac 2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2848printf "%s\n" "$ac_try_echo"; } >&5 2849 (eval "$ac_try") 2>&5 2850 ac_status=$? 2851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2852 test $ac_status = 0; }; } 2853then : 2854 ac_retval=0 2855else $as_nop 2856 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2857 printf "%s\n" "$as_me: failed program was:" >&5 2858sed 's/^/| /' conftest.$ac_ext >&5 2859 2860 ac_retval=$ac_status 2861fi 2862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2864 as_fn_set_status $ac_retval 2865 2866} # ac_fn_c_try_run 2867 2868# ac_fn_c_check_func LINENO FUNC VAR 2869# ---------------------------------- 2870# Tests whether FUNC exists, setting the cache variable VAR accordingly 2871ac_fn_c_check_func () 2872{ 2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2875printf %s "checking for $2... " >&6; } 2876if eval test \${$3+y} 2877then : 2878 printf %s "(cached) " >&6 2879else $as_nop 2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2881/* end confdefs.h. */ 2882/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2883 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2884#define $2 innocuous_$2 2885 2886/* System header to define __stub macros and hopefully few prototypes, 2887 which can conflict with char $2 (); below. */ 2888 2889#include <limits.h> 2890#undef $2 2891 2892/* Override any GCC internal prototype to avoid an error. 2893 Use char because int might match the return type of a GCC 2894 builtin and then its argument prototype would still apply. */ 2895#ifdef __cplusplus 2896extern "C" 2897#endif 2898char $2 (); 2899/* The GNU C library defines this for functions which it implements 2900 to always fail with ENOSYS. Some functions are actually named 2901 something starting with __ and the normal name is an alias. */ 2902#if defined __stub_$2 || defined __stub___$2 2903choke me 2904#endif 2905 2906int 2907main (void) 2908{ 2909return $2 (); 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914if ac_fn_c_try_link "$LINENO" 2915then : 2916 eval "$3=yes" 2917else $as_nop 2918 eval "$3=no" 2919fi 2920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2921 conftest$ac_exeext conftest.$ac_ext 2922fi 2923eval ac_res=\$$3 2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2925printf "%s\n" "$ac_res" >&6; } 2926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2927 2928} # ac_fn_c_check_func 2929 2930# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2931# -------------------------------------------- 2932# Tries to find the compile-time value of EXPR in a program that includes 2933# INCLUDES, setting VAR accordingly. Returns whether the value could be 2934# computed 2935ac_fn_c_compute_int () 2936{ 2937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2938 if test "$cross_compiling" = yes; then 2939 # Depending upon the size, compute the lo and hi bounds. 2940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2941/* end confdefs.h. */ 2942$4 2943int 2944main (void) 2945{ 2946static int test_array [1 - 2 * !(($2) >= 0)]; 2947test_array [0] = 0; 2948return test_array [0]; 2949 2950 ; 2951 return 0; 2952} 2953_ACEOF 2954if ac_fn_c_try_compile "$LINENO" 2955then : 2956 ac_lo=0 ac_mid=0 2957 while :; do 2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2959/* end confdefs.h. */ 2960$4 2961int 2962main (void) 2963{ 2964static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2965test_array [0] = 0; 2966return test_array [0]; 2967 2968 ; 2969 return 0; 2970} 2971_ACEOF 2972if ac_fn_c_try_compile "$LINENO" 2973then : 2974 ac_hi=$ac_mid; break 2975else $as_nop 2976 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2977 if test $ac_lo -le $ac_mid; then 2978 ac_lo= ac_hi= 2979 break 2980 fi 2981 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2982fi 2983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2984 done 2985else $as_nop 2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2987/* end confdefs.h. */ 2988$4 2989int 2990main (void) 2991{ 2992static int test_array [1 - 2 * !(($2) < 0)]; 2993test_array [0] = 0; 2994return test_array [0]; 2995 2996 ; 2997 return 0; 2998} 2999_ACEOF 3000if ac_fn_c_try_compile "$LINENO" 3001then : 3002 ac_hi=-1 ac_mid=-1 3003 while :; do 3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3005/* end confdefs.h. */ 3006$4 3007int 3008main (void) 3009{ 3010static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3011test_array [0] = 0; 3012return test_array [0]; 3013 3014 ; 3015 return 0; 3016} 3017_ACEOF 3018if ac_fn_c_try_compile "$LINENO" 3019then : 3020 ac_lo=$ac_mid; break 3021else $as_nop 3022 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3023 if test $ac_mid -le $ac_hi; then 3024 ac_lo= ac_hi= 3025 break 3026 fi 3027 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3028fi 3029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3030 done 3031else $as_nop 3032 ac_lo= ac_hi= 3033fi 3034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3035fi 3036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3037# Binary search between lo and hi bounds. 3038while test "x$ac_lo" != "x$ac_hi"; do 3039 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3041/* end confdefs.h. */ 3042$4 3043int 3044main (void) 3045{ 3046static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3047test_array [0] = 0; 3048return test_array [0]; 3049 3050 ; 3051 return 0; 3052} 3053_ACEOF 3054if ac_fn_c_try_compile "$LINENO" 3055then : 3056 ac_hi=$ac_mid 3057else $as_nop 3058 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3059fi 3060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3061done 3062case $ac_lo in #(( 3063?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3064'') ac_retval=1 ;; 3065esac 3066 else 3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3068/* end confdefs.h. */ 3069$4 3070static long int longval (void) { return $2; } 3071static unsigned long int ulongval (void) { return $2; } 3072#include <stdio.h> 3073#include <stdlib.h> 3074int 3075main (void) 3076{ 3077 3078 FILE *f = fopen ("conftest.val", "w"); 3079 if (! f) 3080 return 1; 3081 if (($2) < 0) 3082 { 3083 long int i = longval (); 3084 if (i != ($2)) 3085 return 1; 3086 fprintf (f, "%ld", i); 3087 } 3088 else 3089 { 3090 unsigned long int i = ulongval (); 3091 if (i != ($2)) 3092 return 1; 3093 fprintf (f, "%lu", i); 3094 } 3095 /* Do not output a trailing newline, as this causes \r\n confusion 3096 on some platforms. */ 3097 return ferror (f) || fclose (f) != 0; 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103if ac_fn_c_try_run "$LINENO" 3104then : 3105 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3106else $as_nop 3107 ac_retval=1 3108fi 3109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3110 conftest.$ac_objext conftest.beam conftest.$ac_ext 3111rm -f conftest.val 3112 3113 fi 3114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3115 as_fn_set_status $ac_retval 3116 3117} # ac_fn_c_compute_int 3118 3119# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 3120# ------------------------------------------------------------------ 3121# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3122# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 3123ac_fn_check_decl () 3124{ 3125 ac_save_ac_compile="$ac_compile" 3126 if test -n "$ac_compile_for_check_decl"; then 3127 ac_compile="$ac_compile_for_check_decl" 3128 fi 3129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3130 as_decl_name=`echo $2|sed 's/ *(.*//'` 3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3132printf %s "checking whether $as_decl_name is declared... " >&6; } 3133if eval test \${$3+y} 3134then : 3135 printf %s "(cached) " >&6 3136else $as_nop 3137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3138 eval ac_save_FLAGS=\$$6 3139 as_fn_append $6 " $5" 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3141/* end confdefs.h. */ 3142$4 3143int 3144main (void) 3145{ 3146#ifndef $as_decl_name 3147#ifdef __cplusplus 3148 (void) $as_decl_use; 3149#else 3150 (void) $as_decl_name; 3151#endif 3152#endif 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158if ac_fn_c_try_compile "$LINENO" 3159then : 3160 eval "$3=yes" 3161else $as_nop 3162 eval "$3=no" 3163fi 3164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3165 eval $6=\$ac_save_FLAGS 3166 3167fi 3168eval ac_res=\$$3 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3170printf "%s\n" "$ac_res" >&6; } 3171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3172 ac_compile="$ac_save_ac_compile" 3173 3174} # ac_fn_check_decl 3175 3176# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3177# ---------------------------------------------------- 3178# Tries to find if the field MEMBER exists in type AGGR, after including 3179# INCLUDES, setting cache variable VAR accordingly. 3180ac_fn_c_check_member () 3181{ 3182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3184printf %s "checking for $2.$3... " >&6; } 3185if eval test \${$4+y} 3186then : 3187 printf %s "(cached) " >&6 3188else $as_nop 3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191$5 3192int 3193main (void) 3194{ 3195static $2 ac_aggr; 3196if (ac_aggr.$3) 3197return 0; 3198 ; 3199 return 0; 3200} 3201_ACEOF 3202if ac_fn_c_try_compile "$LINENO" 3203then : 3204 eval "$4=yes" 3205else $as_nop 3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3207/* end confdefs.h. */ 3208$5 3209int 3210main (void) 3211{ 3212static $2 ac_aggr; 3213if (sizeof ac_aggr.$3) 3214return 0; 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219if ac_fn_c_try_compile "$LINENO" 3220then : 3221 eval "$4=yes" 3222else $as_nop 3223 eval "$4=no" 3224fi 3225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3226fi 3227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3228fi 3229eval ac_res=\$$4 3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3231printf "%s\n" "$ac_res" >&6; } 3232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3233 3234} # ac_fn_c_check_member 3235ac_configure_args_raw= 3236for ac_arg 3237do 3238 case $ac_arg in 3239 *\'*) 3240 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3241 esac 3242 as_fn_append ac_configure_args_raw " '$ac_arg'" 3243done 3244 3245case $ac_configure_args_raw in 3246 *$as_nl*) 3247 ac_safe_unquote= ;; 3248 *) 3249 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3250 ac_unsafe_a="$ac_unsafe_z#~" 3251 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3252 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3253esac 3254 3255cat >config.log <<_ACEOF 3256This file contains any messages produced by compilers while 3257running configure, to aid debugging if configure makes a mistake. 3258 3259It was created by GNU Texinfo $as_me 6.8, which was 3260generated by GNU Autoconf 2.71. Invocation command line was 3261 3262 $ $0$ac_configure_args_raw 3263 3264_ACEOF 3265exec 5>>config.log 3266{ 3267cat <<_ASUNAME 3268## --------- ## 3269## Platform. ## 3270## --------- ## 3271 3272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3273uname -m = `(uname -m) 2>/dev/null || echo unknown` 3274uname -r = `(uname -r) 2>/dev/null || echo unknown` 3275uname -s = `(uname -s) 2>/dev/null || echo unknown` 3276uname -v = `(uname -v) 2>/dev/null || echo unknown` 3277 3278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3279/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3280 3281/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3282/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3284/usr/bin/hostinfow = `(/usr/bin/hostinfow) 2>/dev/null || echo unknown` 3285/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3286/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3287/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3288 3289_ASUNAME 3290 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 case $as_dir in #((( 3296 '') as_dir=./ ;; 3297 */) ;; 3298 *) as_dir=$as_dir/ ;; 3299 esac 3300 printf "%s\n" "PATH: $as_dir" 3301 done 3302IFS=$as_save_IFS 3303 3304} >&5 3305 3306cat >&5 <<_ACEOF 3307 3308 3309## ----------- ## 3310## Core tests. ## 3311## ----------- ## 3312 3313_ACEOF 3314 3315 3316# Keep a trace of the command line. 3317# Strip out --no-create and --no-recursion so they do not pile up. 3318# Strip out --silent because we don't want to record it for future runs. 3319# Also quote any args containing shell meta-characters. 3320# Make two passes to allow for proper duplicate-argument suppression. 3321ac_configure_args= 3322ac_configure_args0= 3323ac_configure_args1= 3324ac_must_keep_next=false 3325for ac_pass in 1 2 3326do 3327 for ac_arg 3328 do 3329 case $ac_arg in 3330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3332 | -silent | --silent | --silen | --sile | --sil) 3333 continue ;; 3334 *\'*) 3335 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3336 esac 3337 case $ac_pass in 3338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3339 2) 3340 as_fn_append ac_configure_args1 " '$ac_arg'" 3341 if test $ac_must_keep_next = true; then 3342 ac_must_keep_next=false # Got value, back to normal. 3343 else 3344 case $ac_arg in 3345 *=* | --config-cache | -C | -disable-* | --disable-* \ 3346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3348 | -with-* | --with-* | -without-* | --without-* | --x) 3349 case "$ac_configure_args0 " in 3350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3351 esac 3352 ;; 3353 -* ) ac_must_keep_next=true ;; 3354 esac 3355 fi 3356 as_fn_append ac_configure_args " '$ac_arg'" 3357 ;; 3358 esac 3359 done 3360done 3361{ ac_configure_args0=; unset ac_configure_args0;} 3362{ ac_configure_args1=; unset ac_configure_args1;} 3363 3364# When interrupted or exit'd, cleanup temporary files, and complete 3365# config.log. We remove comments because anyway the quotes in there 3366# would cause problems or look ugly. 3367# WARNING: Use '\'' to represent an apostrophe within the trap. 3368# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3369trap 'exit_status=$? 3370 # Sanitize IFS. 3371 IFS=" "" $as_nl" 3372 # Save into config.log some information that might help in debugging. 3373 { 3374 echo 3375 3376 printf "%s\n" "## ---------------- ## 3377## Cache variables. ## 3378## ---------------- ##" 3379 echo 3380 # The following way of writing the cache mishandles newlines in values, 3381( 3382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3383 eval ac_val=\$$ac_var 3384 case $ac_val in #( 3385 *${as_nl}*) 3386 case $ac_var in #( 3387 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3388printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3389 esac 3390 case $ac_var in #( 3391 _ | IFS | as_nl) ;; #( 3392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3393 *) { eval $ac_var=; unset $ac_var;} ;; 3394 esac ;; 3395 esac 3396 done 3397 (set) 2>&1 | 3398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3399 *${as_nl}ac_space=\ *) 3400 sed -n \ 3401 "s/'\''/'\''\\\\'\'''\''/g; 3402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3403 ;; #( 3404 *) 3405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3406 ;; 3407 esac | 3408 sort 3409) 3410 echo 3411 3412 printf "%s\n" "## ----------------- ## 3413## Output variables. ## 3414## ----------------- ##" 3415 echo 3416 for ac_var in $ac_subst_vars 3417 do 3418 eval ac_val=\$$ac_var 3419 case $ac_val in 3420 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3421 esac 3422 printf "%s\n" "$ac_var='\''$ac_val'\''" 3423 done | sort 3424 echo 3425 3426 if test -n "$ac_subst_files"; then 3427 printf "%s\n" "## ------------------- ## 3428## File substitutions. ## 3429## ------------------- ##" 3430 echo 3431 for ac_var in $ac_subst_files 3432 do 3433 eval ac_val=\$$ac_var 3434 case $ac_val in 3435 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3436 esac 3437 printf "%s\n" "$ac_var='\''$ac_val'\''" 3438 done | sort 3439 echo 3440 fi 3441 3442 if test -s confdefs.h; then 3443 printf "%s\n" "## ----------- ## 3444## confdefs.h. ## 3445## ----------- ##" 3446 echo 3447 cat confdefs.h 3448 echo 3449 fi 3450 test "$ac_signal" != 0 && 3451 printf "%s\n" "$as_me: caught signal $ac_signal" 3452 printf "%s\n" "$as_me: exit $exit_status" 3453 } >&5 3454 rm -f core *.core core.conftest.* && 3455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3456 exit $exit_status 3457' 0 3458for ac_signal in 1 2 13 15; do 3459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3460done 3461ac_signal=0 3462 3463# confdefs.h avoids OS command line length limits that DEFS can exceed. 3464rm -f -r conftest* confdefs.h 3465 3466printf "%s\n" "/* confdefs.h */" > confdefs.h 3467 3468# Predefined preprocessor variables. 3469 3470printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3471 3472printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3473 3474printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3475 3476printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3477 3478printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3479 3480printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3481 3482 3483# Let the site file select an alternate cache file if it wants to. 3484# Prefer an explicitly selected file to automatically selected ones. 3485if test -n "$CONFIG_SITE"; then 3486 ac_site_files="$CONFIG_SITE" 3487elif test "x$prefix" != xNONE; then 3488 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3489else 3490 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3491fi 3492 3493for ac_site_file in $ac_site_files 3494do 3495 case $ac_site_file in #( 3496 */*) : 3497 ;; #( 3498 *) : 3499 ac_site_file=./$ac_site_file ;; 3500esac 3501 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3503printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3504 sed 's/^/| /' "$ac_site_file" >&5 3505 . "$ac_site_file" \ 3506 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error $? "failed to load site script $ac_site_file 3509See \`config.log' for more details" "$LINENO" 5; } 3510 fi 3511done 3512 3513if test -r "$cache_file"; then 3514 # Some versions of bash will fail to source /dev/null (special files 3515 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3516 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3518printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3519 case $cache_file in 3520 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3521 *) . "./$cache_file";; 3522 esac 3523 fi 3524else 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3526printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3527 >$cache_file 3528fi 3529 3530# Test code for whether the C compiler supports C89 (global declarations) 3531ac_c_conftest_c89_globals=' 3532/* Does the compiler advertise C89 conformance? 3533 Do not test the value of __STDC__, because some compilers set it to 0 3534 while being otherwise adequately conformant. */ 3535#if !defined __STDC__ 3536# error "Compiler does not advertise C89 conformance" 3537#endif 3538 3539#include <stddef.h> 3540#include <stdarg.h> 3541struct stat; 3542/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3543struct buf { int x; }; 3544struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3545static char *e (p, i) 3546 char **p; 3547 int i; 3548{ 3549 return p[i]; 3550} 3551static char *f (char * (*g) (char **, int), char **p, ...) 3552{ 3553 char *s; 3554 va_list v; 3555 va_start (v,p); 3556 s = g (p, va_arg (v,int)); 3557 va_end (v); 3558 return s; 3559} 3560 3561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3562 function prototypes and stuff, but not \xHH hex character constants. 3563 These do not provoke an error unfortunately, instead are silently treated 3564 as an "x". The following induces an error, until -std is added to get 3565 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3566 array size at least. It is necessary to write \x00 == 0 to get something 3567 that is true only with -std. */ 3568int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3569 3570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3571 inside strings and character constants. */ 3572#define FOO(x) '\''x'\'' 3573int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3574 3575int test (int i, double x); 3576struct s1 {int (*f) (int a);}; 3577struct s2 {int (*f) (double a);}; 3578int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3579 int, int);' 3580 3581# Test code for whether the C compiler supports C89 (body of main). 3582ac_c_conftest_c89_main=' 3583ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3584' 3585 3586# Test code for whether the C compiler supports C99 (global declarations) 3587ac_c_conftest_c99_globals=' 3588// Does the compiler advertise C99 conformance? 3589#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3590# error "Compiler does not advertise C99 conformance" 3591#endif 3592 3593#include <stdbool.h> 3594extern int puts (const char *); 3595extern int printf (const char *, ...); 3596extern int dprintf (int, const char *, ...); 3597extern void *malloc (size_t); 3598 3599// Check varargs macros. These examples are taken from C99 6.10.3.5. 3600// dprintf is used instead of fprintf to avoid needing to declare 3601// FILE and stderr. 3602#define debug(...) dprintf (2, __VA_ARGS__) 3603#define showlist(...) puts (#__VA_ARGS__) 3604#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3605static void 3606test_varargs_macros (void) 3607{ 3608 int x = 1234; 3609 int y = 5678; 3610 debug ("Flag"); 3611 debug ("X = %d\n", x); 3612 showlist (The first, second, and third items.); 3613 report (x>y, "x is %d but y is %d", x, y); 3614} 3615 3616// Check long long types. 3617#define BIG64 18446744073709551615ull 3618#define BIG32 4294967295ul 3619#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3620#if !BIG_OK 3621 #error "your preprocessor is broken" 3622#endif 3623#if BIG_OK 3624#else 3625 #error "your preprocessor is broken" 3626#endif 3627static long long int bignum = -9223372036854775807LL; 3628static unsigned long long int ubignum = BIG64; 3629 3630struct incomplete_array 3631{ 3632 int datasize; 3633 double data[]; 3634}; 3635 3636struct named_init { 3637 int number; 3638 const wchar_t *name; 3639 double average; 3640}; 3641 3642typedef const char *ccp; 3643 3644static inline int 3645test_restrict (ccp restrict text) 3646{ 3647 // See if C++-style comments work. 3648 // Iterate through items via the restricted pointer. 3649 // Also check for declarations in for loops. 3650 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3651 continue; 3652 return 0; 3653} 3654 3655// Check varargs and va_copy. 3656static bool 3657test_varargs (const char *format, ...) 3658{ 3659 va_list args; 3660 va_start (args, format); 3661 va_list args_copy; 3662 va_copy (args_copy, args); 3663 3664 const char *str = ""; 3665 int number = 0; 3666 float fnumber = 0; 3667 3668 while (*format) 3669 { 3670 switch (*format++) 3671 { 3672 case '\''s'\'': // string 3673 str = va_arg (args_copy, const char *); 3674 break; 3675 case '\''d'\'': // int 3676 number = va_arg (args_copy, int); 3677 break; 3678 case '\''f'\'': // float 3679 fnumber = va_arg (args_copy, double); 3680 break; 3681 default: 3682 break; 3683 } 3684 } 3685 va_end (args_copy); 3686 va_end (args); 3687 3688 return *str && number && fnumber; 3689} 3690' 3691 3692# Test code for whether the C compiler supports C99 (body of main). 3693ac_c_conftest_c99_main=' 3694 // Check bool. 3695 _Bool success = false; 3696 success |= (argc != 0); 3697 3698 // Check restrict. 3699 if (test_restrict ("String literal") == 0) 3700 success = true; 3701 char *restrict newvar = "Another string"; 3702 3703 // Check varargs. 3704 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3705 test_varargs_macros (); 3706 3707 // Check flexible array members. 3708 struct incomplete_array *ia = 3709 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3710 ia->datasize = 10; 3711 for (int i = 0; i < ia->datasize; ++i) 3712 ia->data[i] = i * 1.234; 3713 3714 // Check named initializers. 3715 struct named_init ni = { 3716 .number = 34, 3717 .name = L"Test wide string", 3718 .average = 543.34343, 3719 }; 3720 3721 ni.number = 58; 3722 3723 int dynamic_array[ni.number]; 3724 dynamic_array[0] = argv[0][0]; 3725 dynamic_array[ni.number - 1] = 543; 3726 3727 // work around unused variable warnings 3728 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3729 || dynamic_array[ni.number - 1] != 543); 3730' 3731 3732# Test code for whether the C compiler supports C11 (global declarations) 3733ac_c_conftest_c11_globals=' 3734// Does the compiler advertise C11 conformance? 3735#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3736# error "Compiler does not advertise C11 conformance" 3737#endif 3738 3739// Check _Alignas. 3740char _Alignas (double) aligned_as_double; 3741char _Alignas (0) no_special_alignment; 3742extern char aligned_as_int; 3743char _Alignas (0) _Alignas (int) aligned_as_int; 3744 3745// Check _Alignof. 3746enum 3747{ 3748 int_alignment = _Alignof (int), 3749 int_array_alignment = _Alignof (int[100]), 3750 char_alignment = _Alignof (char) 3751}; 3752_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3753 3754// Check _Noreturn. 3755int _Noreturn does_not_return (void) { for (;;) continue; } 3756 3757// Check _Static_assert. 3758struct test_static_assert 3759{ 3760 int x; 3761 _Static_assert (sizeof (int) <= sizeof (long int), 3762 "_Static_assert does not work in struct"); 3763 long int y; 3764}; 3765 3766// Check UTF-8 literals. 3767#define u8 syntax error! 3768char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3769 3770// Check duplicate typedefs. 3771typedef long *long_ptr; 3772typedef long int *long_ptr; 3773typedef long_ptr long_ptr; 3774 3775// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3776struct anonymous 3777{ 3778 union { 3779 struct { int i; int j; }; 3780 struct { int k; long int l; } w; 3781 }; 3782 int m; 3783} v1; 3784' 3785 3786# Test code for whether the C compiler supports C11 (body of main). 3787ac_c_conftest_c11_main=' 3788 _Static_assert ((offsetof (struct anonymous, i) 3789 == offsetof (struct anonymous, w.k)), 3790 "Anonymous union alignment botch"); 3791 v1.i = 2; 3792 v1.w.k = 5; 3793 ok |= v1.i != 5; 3794' 3795 3796# Test code for whether the C compiler supports C11 (complete). 3797ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3798${ac_c_conftest_c99_globals} 3799${ac_c_conftest_c11_globals} 3800 3801int 3802main (int argc, char **argv) 3803{ 3804 int ok = 0; 3805 ${ac_c_conftest_c89_main} 3806 ${ac_c_conftest_c99_main} 3807 ${ac_c_conftest_c11_main} 3808 return ok; 3809} 3810" 3811 3812# Test code for whether the C compiler supports C99 (complete). 3813ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3814${ac_c_conftest_c99_globals} 3815 3816int 3817main (int argc, char **argv) 3818{ 3819 int ok = 0; 3820 ${ac_c_conftest_c89_main} 3821 ${ac_c_conftest_c99_main} 3822 return ok; 3823} 3824" 3825 3826# Test code for whether the C compiler supports C89 (complete). 3827ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3828 3829int 3830main (int argc, char **argv) 3831{ 3832 int ok = 0; 3833 ${ac_c_conftest_c89_main} 3834 return ok; 3835} 3836" 3837 3838as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3839as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3840as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3841as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3842as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3843as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3844as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3845as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3846as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3847as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3848as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3849as_fn_append ac_func_c_list " symlink HAVE_SYMLINK" 3850gl_getopt_required=GNU 3851as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H" 3852as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" 3853as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME" 3854as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME" 3855as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" 3856as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL" 3857as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" 3858as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H" 3859as_fn_append ac_func_c_list " iswblank HAVE_ISWBLANK" 3860as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H" 3861as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT" 3862as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC" 3863as_fn_append ac_func_c_list " mbslen HAVE_MBSLEN" 3864as_fn_append ac_func_c_list " isascii HAVE_ISASCII" 3865as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" 3866as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT" 3867as_fn_append ac_func_c_list " lstat HAVE_LSTAT" 3868as_fn_append ac_header_c_list " malloc.h malloc_h HAVE_MALLOC_H" 3869as_fn_append ac_func_c_list " isblank HAVE_ISBLANK" 3870as_fn_append ac_func_c_list " iswctype HAVE_ISWCTYPE" 3871as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H" 3872as_fn_append ac_func_c_list " wcwidth HAVE_WCWIDTH" 3873as_fn_append ac_func_c_list " btowc HAVE_BTOWC" 3874as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" 3875as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" 3876as_fn_append ac_func_c_list " fcntl HAVE_FCNTL" 3877as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" 3878as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H" 3879as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H" 3880as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO" 3881as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 3882as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 3883as_fn_append ac_func_c_list " strndup HAVE_STRNDUP" 3884as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF" 3885as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF" 3886as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB" 3887gt_needs="$gt_needs " 3888 3889# Auxiliary files required by this configure script. 3890ac_aux_files="config.rpath config.guess config.sub compile tap-driver.sh missing install-sh" 3891 3892# Locations in which to look for auxiliary files. 3893ac_aux_dir_candidates="${srcdir}/build-aux" 3894 3895# Search for a directory containing all of the required auxiliary files, 3896# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3897# If we don't find one directory that contains all the files we need, 3898# we report the set of missing files from the *first* directory in 3899# $ac_aux_dir_candidates and give up. 3900ac_missing_aux_files="" 3901ac_first_candidate=: 3902printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904as_found=false 3905for as_dir in $ac_aux_dir_candidates 3906do 3907 IFS=$as_save_IFS 3908 case $as_dir in #((( 3909 '') as_dir=./ ;; 3910 */) ;; 3911 *) as_dir=$as_dir/ ;; 3912 esac 3913 as_found=: 3914 3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3916 ac_aux_dir_found=yes 3917 ac_install_sh= 3918 for ac_aux in $ac_aux_files 3919 do 3920 # As a special case, if "install-sh" is required, that requirement 3921 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3922 # and $ac_install_sh is set appropriately for whichever one is found. 3923 if test x"$ac_aux" = x"install-sh" 3924 then 3925 if test -f "${as_dir}install-sh"; then 3926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3927 ac_install_sh="${as_dir}install-sh -c" 3928 elif test -f "${as_dir}install.sh"; then 3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3930 ac_install_sh="${as_dir}install.sh -c" 3931 elif test -f "${as_dir}shtool"; then 3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3933 ac_install_sh="${as_dir}shtool install -c" 3934 else 3935 ac_aux_dir_found=no 3936 if $ac_first_candidate; then 3937 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3938 else 3939 break 3940 fi 3941 fi 3942 else 3943 if test -f "${as_dir}${ac_aux}"; then 3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3945 else 3946 ac_aux_dir_found=no 3947 if $ac_first_candidate; then 3948 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3949 else 3950 break 3951 fi 3952 fi 3953 fi 3954 done 3955 if test "$ac_aux_dir_found" = yes; then 3956 ac_aux_dir="$as_dir" 3957 break 3958 fi 3959 ac_first_candidate=false 3960 3961 as_found=false 3962done 3963IFS=$as_save_IFS 3964if $as_found 3965then : 3966 3967else $as_nop 3968 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3969fi 3970 3971 3972# These three variables are undocumented and unsupported, 3973# and are intended to be withdrawn in a future Autoconf release. 3974# They can cause serious problems if a builder's source tree is in a directory 3975# whose full name contains unusual characters. 3976if test -f "${ac_aux_dir}config.guess"; then 3977 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3978fi 3979if test -f "${ac_aux_dir}config.sub"; then 3980 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3981fi 3982if test -f "$ac_aux_dir/configure"; then 3983 ac_configure="$SHELL ${ac_aux_dir}configure" 3984fi 3985 3986# Check that the precious variables saved in the cache have kept the same 3987# value. 3988ac_cache_corrupted=false 3989for ac_var in $ac_precious_vars; do 3990 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3991 eval ac_new_set=\$ac_env_${ac_var}_set 3992 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3993 eval ac_new_val=\$ac_env_${ac_var}_value 3994 case $ac_old_set,$ac_new_set in 3995 set,) 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3997printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3998 ac_cache_corrupted=: ;; 3999 ,set) 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 4001printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 4002 ac_cache_corrupted=: ;; 4003 ,);; 4004 *) 4005 if test "x$ac_old_val" != "x$ac_new_val"; then 4006 # differences in whitespace do not lead to failure. 4007 ac_old_val_w=`echo x $ac_old_val` 4008 ac_new_val_w=`echo x $ac_new_val` 4009 if test "$ac_old_val_w" != "$ac_new_val_w"; then 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 4011printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 4012 ac_cache_corrupted=: 4013 else 4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 4015printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 4016 eval $ac_var=\$ac_old_val 4017 fi 4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 4019printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 4021printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 4022 fi;; 4023 esac 4024 # Pass precious variables to config.status. 4025 if test "$ac_new_set" = set; then 4026 case $ac_new_val in 4027 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 4028 *) ac_arg=$ac_var=$ac_new_val ;; 4029 esac 4030 case " $ac_configure_args " in 4031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 4032 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 4033 esac 4034 fi 4035done 4036if $ac_cache_corrupted; then 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4038printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 4040printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 4041 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 4042 and start over" "$LINENO" 5 4043fi 4044## -------------------- ## 4045## Main body of script. ## 4046## -------------------- ## 4047 4048ac_ext=c 4049ac_cpp='$CPP $CPPFLAGS' 4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4052ac_compiler_gnu=$ac_cv_c_compiler_gnu 4053 4054 4055 4056 4057am__api_version='1.16' 4058 4059 4060 4061 # Find a good install program. We prefer a C program (faster), 4062# so one script is as good as another. But avoid the broken or 4063# incompatible versions: 4064# SysV /etc/install, /usr/sbin/install 4065# SunOS /usr/etc/install 4066# IRIX /sbin/install 4067# AIX /bin/install 4068# AmigaOS /C/install, which installs bootblocks on floppy discs 4069# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4070# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4071# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4072# OS/2's system install, which has a completely different semantic 4073# ./install, which can be erroneously created by make from ./install.sh. 4074# Reject install programs that cannot install multiple files. 4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4076printf %s "checking for a BSD-compatible install... " >&6; } 4077if test -z "$INSTALL"; then 4078if test ${ac_cv_path_install+y} 4079then : 4080 printf %s "(cached) " >&6 4081else $as_nop 4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4083for as_dir in $PATH 4084do 4085 IFS=$as_save_IFS 4086 case $as_dir in #((( 4087 '') as_dir=./ ;; 4088 */) ;; 4089 *) as_dir=$as_dir/ ;; 4090 esac 4091 # Account for fact that we put trailing slashes in our PATH walk. 4092case $as_dir in #(( 4093 ./ | /[cC]/* | \ 4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4095 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4096 /usr/ucb/* ) ;; 4097 *) 4098 # OSF1 and SCO ODT 3.0 have their own names for install. 4099 # Don't use installbsd from OSF since it installs stuff as root 4100 # by default. 4101 for ac_prog in ginstall scoinst install; do 4102 for ac_exec_ext in '' $ac_executable_extensions; do 4103 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4104 if test $ac_prog = install && 4105 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4106 # AIX install. It has an incompatible calling convention. 4107 : 4108 elif test $ac_prog = install && 4109 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4110 # program-specific install script used by HP pwplus--don't use. 4111 : 4112 else 4113 rm -rf conftest.one conftest.two conftest.dir 4114 echo one > conftest.one 4115 echo two > conftest.two 4116 mkdir conftest.dir 4117 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4118 test -s conftest.one && test -s conftest.two && 4119 test -s conftest.dir/conftest.one && 4120 test -s conftest.dir/conftest.two 4121 then 4122 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4123 break 3 4124 fi 4125 fi 4126 fi 4127 done 4128 done 4129 ;; 4130esac 4131 4132 done 4133IFS=$as_save_IFS 4134 4135rm -rf conftest.one conftest.two conftest.dir 4136 4137fi 4138 if test ${ac_cv_path_install+y}; then 4139 INSTALL=$ac_cv_path_install 4140 else 4141 # As a last resort, use the slow shell script. Don't cache a 4142 # value for INSTALL within a source directory, because that will 4143 # break other packages using the cache if that directory is 4144 # removed, or if the value is a relative name. 4145 INSTALL=$ac_install_sh 4146 fi 4147fi 4148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4149printf "%s\n" "$INSTALL" >&6; } 4150 4151# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4152# It thinks the first close brace ends the variable substitution. 4153test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4154 4155test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4156 4157test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4158 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4160printf %s "checking whether build environment is sane... " >&6; } 4161# Reject unsafe characters in $srcdir or the absolute working directory 4162# name. Accept space and tab only in the latter. 4163am_lf=' 4164' 4165case `pwd` in 4166 *[\\\"\#\$\&\'\`$am_lf]*) 4167 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4168esac 4169case $srcdir in 4170 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4171 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4172esac 4173 4174# Do 'set' in a subshell so we don't clobber the current shell's 4175# arguments. Must try -L first in case configure is actually a 4176# symlink; some systems play weird games with the mod time of symlinks 4177# (eg FreeBSD returns the mod time of the symlink's containing 4178# directory). 4179if ( 4180 am_has_slept=no 4181 for am_try in 1 2; do 4182 echo "timestamp, slept: $am_has_slept" > conftest.file 4183 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4184 if test "$*" = "X"; then 4185 # -L didn't work. 4186 set X `ls -t "$srcdir/configure" conftest.file` 4187 fi 4188 if test "$*" != "X $srcdir/configure conftest.file" \ 4189 && test "$*" != "X conftest.file $srcdir/configure"; then 4190 4191 # If neither matched, then we have a broken ls. This can happen 4192 # if, for instance, CONFIG_SHELL is bash and it inherits a 4193 # broken ls alias from the environment. This has actually 4194 # happened. Such a system could not be considered "sane". 4195 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4196 alias in your environment" "$LINENO" 5 4197 fi 4198 if test "$2" = conftest.file || test $am_try -eq 2; then 4199 break 4200 fi 4201 # Just in case. 4202 sleep 1 4203 am_has_slept=yes 4204 done 4205 test "$2" = conftest.file 4206 ) 4207then 4208 # Ok. 4209 : 4210else 4211 as_fn_error $? "newly created file is older than distributed files! 4212Check your system clock" "$LINENO" 5 4213fi 4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4215printf "%s\n" "yes" >&6; } 4216# If we didn't sleep, we still need to ensure time stamps of config.status and 4217# generated files are strictly newer. 4218am_sleep_pid= 4219if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4220 ( sleep 1 ) & 4221 am_sleep_pid=$! 4222fi 4223 4224rm -f conftest.file 4225 4226test "$program_prefix" != NONE && 4227 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4228# Use a double $ so make ignores it. 4229test "$program_suffix" != NONE && 4230 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4231# Double any \ or $. 4232# By default was `s,x,x', remove it if useless. 4233ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4234program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4235 4236 4237# Expand $ac_aux_dir to an absolute path. 4238am_aux_dir=`cd "$ac_aux_dir" && pwd` 4239 4240 4241 if test x"${MISSING+set}" != xset; then 4242 MISSING="\${SHELL} '$am_aux_dir/missing'" 4243fi 4244# Use eval to expand $SHELL 4245if eval "$MISSING --is-lightweight"; then 4246 am_missing_run="$MISSING " 4247else 4248 am_missing_run= 4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4250printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4251fi 4252 4253if test x"${install_sh+set}" != xset; then 4254 case $am_aux_dir in 4255 *\ * | *\ *) 4256 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4257 *) 4258 install_sh="\${SHELL} $am_aux_dir/install-sh" 4259 esac 4260fi 4261 4262# Installed binaries are usually stripped using 'strip' when the user 4263# run "make install-strip". However 'strip' might not be the right 4264# tool to use in cross-compilation environments, therefore Automake 4265# will honor the 'STRIP' environment variable to overrule this program. 4266if test "$cross_compiling" != no; then 4267 if test -n "$ac_tool_prefix"; then 4268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4269set dummy ${ac_tool_prefix}strip; ac_word=$2 4270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4271printf %s "checking for $ac_word... " >&6; } 4272if test ${ac_cv_prog_STRIP+y} 4273then : 4274 printf %s "(cached) " >&6 4275else $as_nop 4276 if test -n "$STRIP"; then 4277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4278else 4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4280for as_dir in $PATH 4281do 4282 IFS=$as_save_IFS 4283 case $as_dir in #((( 4284 '') as_dir=./ ;; 4285 */) ;; 4286 *) as_dir=$as_dir/ ;; 4287 esac 4288 for ac_exec_ext in '' $ac_executable_extensions; do 4289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4290 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4292 break 2 4293 fi 4294done 4295 done 4296IFS=$as_save_IFS 4297 4298fi 4299fi 4300STRIP=$ac_cv_prog_STRIP 4301if test -n "$STRIP"; then 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4303printf "%s\n" "$STRIP" >&6; } 4304else 4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4306printf "%s\n" "no" >&6; } 4307fi 4308 4309 4310fi 4311if test -z "$ac_cv_prog_STRIP"; then 4312 ac_ct_STRIP=$STRIP 4313 # Extract the first word of "strip", so it can be a program name with args. 4314set dummy strip; ac_word=$2 4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4316printf %s "checking for $ac_word... " >&6; } 4317if test ${ac_cv_prog_ac_ct_STRIP+y} 4318then : 4319 printf %s "(cached) " >&6 4320else $as_nop 4321 if test -n "$ac_ct_STRIP"; then 4322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4323else 4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4325for as_dir in $PATH 4326do 4327 IFS=$as_save_IFS 4328 case $as_dir in #((( 4329 '') as_dir=./ ;; 4330 */) ;; 4331 *) as_dir=$as_dir/ ;; 4332 esac 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4335 ac_cv_prog_ac_ct_STRIP="strip" 4336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4337 break 2 4338 fi 4339done 4340 done 4341IFS=$as_save_IFS 4342 4343fi 4344fi 4345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4346if test -n "$ac_ct_STRIP"; then 4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4348printf "%s\n" "$ac_ct_STRIP" >&6; } 4349else 4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4351printf "%s\n" "no" >&6; } 4352fi 4353 4354 if test "x$ac_ct_STRIP" = x; then 4355 STRIP=":" 4356 else 4357 case $cross_compiling:$ac_tool_warned in 4358yes:) 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4360printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4361ac_tool_warned=yes ;; 4362esac 4363 STRIP=$ac_ct_STRIP 4364 fi 4365else 4366 STRIP="$ac_cv_prog_STRIP" 4367fi 4368 4369fi 4370INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4371 4372 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4374printf %s "checking for a race-free mkdir -p... " >&6; } 4375if test -z "$MKDIR_P"; then 4376 if test ${ac_cv_path_mkdir+y} 4377then : 4378 printf %s "(cached) " >&6 4379else $as_nop 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4382do 4383 IFS=$as_save_IFS 4384 case $as_dir in #((( 4385 '') as_dir=./ ;; 4386 */) ;; 4387 *) as_dir=$as_dir/ ;; 4388 esac 4389 for ac_prog in mkdir gmkdir; do 4390 for ac_exec_ext in '' $ac_executable_extensions; do 4391 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4392 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4393 'mkdir ('*'coreutils) '* | \ 4394 'BusyBox '* | \ 4395 'mkdir (fileutils) '4.1*) 4396 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4397 break 3;; 4398 esac 4399 done 4400 done 4401 done 4402IFS=$as_save_IFS 4403 4404fi 4405 4406 test -d ./--version && rmdir ./--version 4407 if test ${ac_cv_path_mkdir+y}; then 4408 MKDIR_P="$ac_cv_path_mkdir -p" 4409 else 4410 # As a last resort, use the slow shell script. Don't cache a 4411 # value for MKDIR_P within a source directory, because that will 4412 # break other packages using the cache if that directory is 4413 # removed, or if the value is a relative name. 4414 MKDIR_P="$ac_install_sh -d" 4415 fi 4416fi 4417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4418printf "%s\n" "$MKDIR_P" >&6; } 4419 4420for ac_prog in gawk mawk nawk awk 4421do 4422 # Extract the first word of "$ac_prog", so it can be a program name with args. 4423set dummy $ac_prog; ac_word=$2 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4425printf %s "checking for $ac_word... " >&6; } 4426if test ${ac_cv_prog_AWK+y} 4427then : 4428 printf %s "(cached) " >&6 4429else $as_nop 4430 if test -n "$AWK"; then 4431 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4432else 4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 case $as_dir in #((( 4438 '') as_dir=./ ;; 4439 */) ;; 4440 *) as_dir=$as_dir/ ;; 4441 esac 4442 for ac_exec_ext in '' $ac_executable_extensions; do 4443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4444 ac_cv_prog_AWK="$ac_prog" 4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4446 break 2 4447 fi 4448done 4449 done 4450IFS=$as_save_IFS 4451 4452fi 4453fi 4454AWK=$ac_cv_prog_AWK 4455if test -n "$AWK"; then 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4457printf "%s\n" "$AWK" >&6; } 4458else 4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4460printf "%s\n" "no" >&6; } 4461fi 4462 4463 4464 test -n "$AWK" && break 4465done 4466 4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4468printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4469set x ${MAKE-make} 4470ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4471if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4472then : 4473 printf %s "(cached) " >&6 4474else $as_nop 4475 cat >conftest.make <<\_ACEOF 4476SHELL = /bin/sh 4477all: 4478 @echo '@@@%%%=$(MAKE)=@@@%%%' 4479_ACEOF 4480# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4481case `${MAKE-make} -f conftest.make 2>/dev/null` in 4482 *@@@%%%=?*=@@@%%%*) 4483 eval ac_cv_prog_make_${ac_make}_set=yes;; 4484 *) 4485 eval ac_cv_prog_make_${ac_make}_set=no;; 4486esac 4487rm -f conftest.make 4488fi 4489if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4491printf "%s\n" "yes" >&6; } 4492 SET_MAKE= 4493else 4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4495printf "%s\n" "no" >&6; } 4496 SET_MAKE="MAKE=${MAKE-make}" 4497fi 4498 4499rm -rf .tst 2>/dev/null 4500mkdir .tst 2>/dev/null 4501if test -d .tst; then 4502 am__leading_dot=. 4503else 4504 am__leading_dot=_ 4505fi 4506rmdir .tst 2>/dev/null 4507 4508# Check whether --enable-silent-rules was given. 4509if test ${enable_silent_rules+y} 4510then : 4511 enableval=$enable_silent_rules; 4512fi 4513 4514case $enable_silent_rules in # ((( 4515 yes) AM_DEFAULT_VERBOSITY=0;; 4516 no) AM_DEFAULT_VERBOSITY=1;; 4517 *) AM_DEFAULT_VERBOSITY=1;; 4518esac 4519am_make=${MAKE-make} 4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4521printf %s "checking whether $am_make supports nested variables... " >&6; } 4522if test ${am_cv_make_support_nested_variables+y} 4523then : 4524 printf %s "(cached) " >&6 4525else $as_nop 4526 if printf "%s\n" 'TRUE=$(BAR$(V)) 4527BAR0=false 4528BAR1=true 4529V=1 4530am__doit: 4531 @$(TRUE) 4532.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4533 am_cv_make_support_nested_variables=yes 4534else 4535 am_cv_make_support_nested_variables=no 4536fi 4537fi 4538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4539printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4540if test $am_cv_make_support_nested_variables = yes; then 4541 AM_V='$(V)' 4542 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4543else 4544 AM_V=$AM_DEFAULT_VERBOSITY 4545 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4546fi 4547AM_BACKSLASH='\' 4548 4549if test "`cd $srcdir && pwd`" != "`pwd`"; then 4550 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4551 # is not polluted with repeated "-I." 4552 am__isrc=' -I$(srcdir)' 4553 # test to see if srcdir already configured 4554 if test -f $srcdir/config.status; then 4555 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4556 fi 4557fi 4558 4559# test whether we have cygpath 4560if test -z "$CYGPATH_W"; then 4561 if (cygpath --version) >/dev/null 2>/dev/null; then 4562 CYGPATH_W='cygpath -w' 4563 else 4564 CYGPATH_W=echo 4565 fi 4566fi 4567 4568 4569# Define the identity of the package. 4570 PACKAGE='texinfo' 4571 VERSION='6.8' 4572 4573 4574printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4575 4576 4577printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4578 4579# Some tools Automake needs. 4580 4581ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4582 4583 4584AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4585 4586 4587AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4588 4589 4590AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4591 4592 4593MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4594 4595# For better backward compatibility. To be removed once Automake 1.9.x 4596# dies out for good. For more background, see: 4597# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4598# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4599mkdir_p='$(MKDIR_P)' 4600 4601# We need awk for the "check" target (and possibly the TAP driver). The 4602# system "awk" is bad on some platforms. 4603# Always define AMTAR for backward compatibility. Yes, it's still used 4604# in the wild :-( We should find a proper way to deprecate it ... 4605AMTAR='$${TAR-tar}' 4606 4607 4608# We'll loop over all known methods to create a tar archive until one works. 4609_am_tools='gnutar plaintar pax cpio none' 4610 4611# The POSIX 1988 'ustar' format is defined with fixed-size fields. 4612 # There is notably a 21 bits limit for the UID and the GID. In fact, 4613 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4614 # and bug#13588). 4615 am_max_uid=2097151 # 2^21 - 1 4616 am_max_gid=$am_max_uid 4617 # The $UID and $GID variables are not portable, so we need to resort 4618 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4619 # below are definitely unexpected, so allow the users to see them 4620 # (that is, avoid stderr redirection). 4621 am_uid=`id -u || echo unknown` 4622 am_gid=`id -g || echo unknown` 4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4624printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4625 if test $am_uid -le $am_max_uid; then 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4627printf "%s\n" "yes" >&6; } 4628 else 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4630printf "%s\n" "no" >&6; } 4631 _am_tools=none 4632 fi 4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4634printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4635 if test $am_gid -le $am_max_gid; then 4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4637printf "%s\n" "yes" >&6; } 4638 else 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640printf "%s\n" "no" >&6; } 4641 _am_tools=none 4642 fi 4643 4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4645printf %s "checking how to create a ustar tar archive... " >&6; } 4646 4647 # Go ahead even if we have the value already cached. We do so because we 4648 # need to set the values for the 'am__tar' and 'am__untar' variables. 4649 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4650 4651 for _am_tool in $_am_tools; do 4652 case $_am_tool in 4653 gnutar) 4654 for _am_tar in tar gnutar gtar; do 4655 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4656 ($_am_tar --version) >&5 2>&5 4657 ac_status=$? 4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4659 (exit $ac_status); } && break 4660 done 4661 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4662 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4663 am__untar="$_am_tar -xf -" 4664 ;; 4665 plaintar) 4666 # Must skip GNU tar: if it does not support --format= it doesn't create 4667 # ustar tarball either. 4668 (tar --version) >/dev/null 2>&1 && continue 4669 am__tar='tar chf - "$$tardir"' 4670 am__tar_='tar chf - "$tardir"' 4671 am__untar='tar xf -' 4672 ;; 4673 pax) 4674 am__tar='pax -L -x ustar -w "$$tardir"' 4675 am__tar_='pax -L -x ustar -w "$tardir"' 4676 am__untar='pax -r' 4677 ;; 4678 cpio) 4679 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4680 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4681 am__untar='cpio -i -H ustar -d' 4682 ;; 4683 none) 4684 am__tar=false 4685 am__tar_=false 4686 am__untar=false 4687 ;; 4688 esac 4689 4690 # If the value was cached, stop now. We just wanted to have am__tar 4691 # and am__untar set. 4692 test -n "${am_cv_prog_tar_ustar}" && break 4693 4694 # tar/untar a dummy directory, and stop if the command works. 4695 rm -rf conftest.dir 4696 mkdir conftest.dir 4697 echo GrepMe > conftest.dir/file 4698 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4699 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4700 ac_status=$? 4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } 4703 rm -rf conftest.dir 4704 if test -s conftest.tar; then 4705 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4706 ($am__untar <conftest.tar) >&5 2>&5 4707 ac_status=$? 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); } 4710 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4711 (cat conftest.dir/file) >&5 2>&5 4712 ac_status=$? 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); } 4715 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4716 fi 4717 done 4718 rm -rf conftest.dir 4719 4720 if test ${am_cv_prog_tar_ustar+y} 4721then : 4722 printf %s "(cached) " >&6 4723else $as_nop 4724 am_cv_prog_tar_ustar=$_am_tool 4725fi 4726 4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4728printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4729 4730 4731 4732 4733 4734 4735# POSIX will say in a future version that running "rm -f" with no argument 4736# is OK; and we want to be able to make that assumption in our Makefile 4737# recipes. So use an aggressive probe to check that the usage we want is 4738# actually supported "in the wild" to an acceptable degree. 4739# See automake bug#10828. 4740# To make any issue more visible, cause the running configure to be aborted 4741# by default if the 'rm' program in use doesn't match our expectations; the 4742# user can still override this though. 4743if rm -f && rm -fr && rm -rf; then : OK; else 4744 cat >&2 <<'END' 4745Oops! 4746 4747Your 'rm' program seems unable to run without file operands specified 4748on the command line, even when the '-f' option is present. This is contrary 4749to the behaviour of most rm programs out there, and not conforming with 4750the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4751 4752Please tell bug-automake@gnu.org about your system, including the value 4753of your $PATH and any error possibly output before this message. This 4754can help us improve future automake versions. 4755 4756END 4757 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4758 echo 'Configuration will proceed anyway, since you have set the' >&2 4759 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4760 echo >&2 4761 else 4762 cat >&2 <<'END' 4763Aborting the configuration process, to ensure you take notice of the issue. 4764 4765You can download and install GNU coreutils to get an 'rm' implementation 4766that behaves properly: <https://www.gnu.org/software/coreutils/>. 4767 4768If you want to complete the configuration process using your problematic 4769'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4770to "yes", and re-run configure. 4771 4772END 4773 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4774 fi 4775fi 4776 4777 4778# Where to generate output; srcdir location. 4779ac_config_headers="$ac_config_headers config.h:config.in" 4780 4781 4782# TexinfoXML DTD (./util/texinfo.dtd) version: 4783# manually set this to the next version number rather than 4784# $PACKAGE_VERSION, as soon as the DTD is modified, and perhaps put the 4785# file on the web, too. Several reasons: 4786# 1. To avoid using a DTD from the Internet that wouldn't be in sync; 4787# 2. To avoid unnnecessary changes in XML output file headers, in 4788# test results for instance. 4789# 3. It may be kept as is in case there were no change in the DTD 4790# between releases. This is rare, but has happened. 4791# 4792TEXINFO_DTD_VERSION=6.8 4793 4794 4795# Package date. 4796PACKAGE_DATE=`${SHELL} "$srcdir"/build-aux/mdate-sh "$srcdir"/configure.ac` 4797 4798 4799# We need Perl 4800 4801# Extract the first word of "perl", so it can be a program name with args. 4802set dummy perl; ac_word=$2 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4804printf %s "checking for $ac_word... " >&6; } 4805if test ${ac_cv_path_PERL+y} 4806then : 4807 printf %s "(cached) " >&6 4808else $as_nop 4809 case $PERL in 4810 [\\/]* | ?:[\\/]*) 4811 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4812 ;; 4813 *) 4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4815for as_dir in $PATH 4816do 4817 IFS=$as_save_IFS 4818 case $as_dir in #((( 4819 '') as_dir=./ ;; 4820 */) ;; 4821 *) as_dir=$as_dir/ ;; 4822 esac 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4825 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829done 4830 done 4831IFS=$as_save_IFS 4832 4833 ;; 4834esac 4835fi 4836PERL=$ac_cv_path_PERL 4837if test -n "$PERL"; then 4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4839printf "%s\n" "$PERL" >&6; } 4840else 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842printf "%s\n" "no" >&6; } 4843fi 4844 4845 4846if test -z "$PERL"; then 4847 as_fn_error $? "perl not found; Texinfo requires Perl. 4848If you have perl installed somewhere not in PATH, 4849specify where it is using 4850 ./configure PERL=/path/to/perl 4851" "$LINENO" 5 4852fi 4853 4854# User variables for a Perl XS extension, which may be different, for 4855# example if the Perl interpreter being used was compiled with a 4856# different compiler. Also in tp/Texinfo/XS/configure.ac. 4857 4858 4859 4860 4861 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Perl version and modules" >&5 4863printf %s "checking Perl version and modules... " >&6; } 4864if $PERL -e "use 5.007_003; use Encode; use Data::Dumper" >/dev/null 2>&1; then 4865 perl_version_requirement='yes' 4866else 4867 perl_version_requirement='no' 4868fi 4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perl_version_requirement" >&5 4870printf "%s\n" "$perl_version_requirement" >&6; } 4871if test z"$perl_version_requirement" = 'zno' ; then 4872 as_fn_error $? "perl >= 5.7.3 with Encode and Data::Dumper required by Texinfo." "$LINENO" 5 4873fi 4874 4875 4876 4877 4878 4879# awk for texindex. 4880# don't use AC_PROG_AWK because this prefers gawk, which is much slower 4881# than mawk for texindex and texi2dvi 4882for ac_prog in awk mawk gawk 4883do 4884 # Extract the first word of "$ac_prog", so it can be a program name with args. 4885set dummy $ac_prog; ac_word=$2 4886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4887printf %s "checking for $ac_word... " >&6; } 4888if test ${ac_cv_prog_TI_AWK+y} 4889then : 4890 printf %s "(cached) " >&6 4891else $as_nop 4892 if test -n "$TI_AWK"; then 4893 ac_cv_prog_TI_AWK="$TI_AWK" # Let the user override the test. 4894else 4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896for as_dir in $PATH 4897do 4898 IFS=$as_save_IFS 4899 case $as_dir in #((( 4900 '') as_dir=./ ;; 4901 */) ;; 4902 *) as_dir=$as_dir/ ;; 4903 esac 4904 for ac_exec_ext in '' $ac_executable_extensions; do 4905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4906 ac_cv_prog_TI_AWK="$ac_prog" 4907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4908 break 2 4909 fi 4910done 4911 done 4912IFS=$as_save_IFS 4913 4914fi 4915fi 4916TI_AWK=$ac_cv_prog_TI_AWK 4917if test -n "$TI_AWK"; then 4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TI_AWK" >&5 4919printf "%s\n" "$TI_AWK" >&6; } 4920else 4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922printf "%s\n" "no" >&6; } 4923fi 4924 4925 4926 test -n "$TI_AWK" && break 4927done 4928 4929if test -z "$TI_AWK"; then 4930 as_fn_error $? "awk not found" "$LINENO" 5 4931fi 4932 4933# for generating texindex.awk 4934 4935GAWK=${GAWK-"${am_missing_run}gawk"} 4936 4937 4938# Checks for programs. 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948ac_ext=c 4949ac_cpp='$CPP $CPPFLAGS' 4950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4952ac_compiler_gnu=$ac_cv_c_compiler_gnu 4953if test -n "$ac_tool_prefix"; then 4954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4955set dummy ${ac_tool_prefix}gcc; ac_word=$2 4956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4957printf %s "checking for $ac_word... " >&6; } 4958if test ${ac_cv_prog_CC+y} 4959then : 4960 printf %s "(cached) " >&6 4961else $as_nop 4962 if test -n "$CC"; then 4963 ac_cv_prog_CC="$CC" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 case $as_dir in #((( 4970 '') as_dir=./ ;; 4971 */) ;; 4972 *) as_dir=$as_dir/ ;; 4973 esac 4974 for ac_exec_ext in '' $ac_executable_extensions; do 4975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4976 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4978 break 2 4979 fi 4980done 4981 done 4982IFS=$as_save_IFS 4983 4984fi 4985fi 4986CC=$ac_cv_prog_CC 4987if test -n "$CC"; then 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4989printf "%s\n" "$CC" >&6; } 4990else 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992printf "%s\n" "no" >&6; } 4993fi 4994 4995 4996fi 4997if test -z "$ac_cv_prog_CC"; then 4998 ac_ct_CC=$CC 4999 # Extract the first word of "gcc", so it can be a program name with args. 5000set dummy gcc; ac_word=$2 5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002printf %s "checking for $ac_word... " >&6; } 5003if test ${ac_cv_prog_ac_ct_CC+y} 5004then : 5005 printf %s "(cached) " >&6 5006else $as_nop 5007 if test -n "$ac_ct_CC"; then 5008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5009else 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH 5012do 5013 IFS=$as_save_IFS 5014 case $as_dir in #((( 5015 '') as_dir=./ ;; 5016 */) ;; 5017 *) as_dir=$as_dir/ ;; 5018 esac 5019 for ac_exec_ext in '' $ac_executable_extensions; do 5020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5021 ac_cv_prog_ac_ct_CC="gcc" 5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5023 break 2 5024 fi 5025done 5026 done 5027IFS=$as_save_IFS 5028 5029fi 5030fi 5031ac_ct_CC=$ac_cv_prog_ac_ct_CC 5032if test -n "$ac_ct_CC"; then 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5034printf "%s\n" "$ac_ct_CC" >&6; } 5035else 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5037printf "%s\n" "no" >&6; } 5038fi 5039 5040 if test "x$ac_ct_CC" = x; then 5041 CC="" 5042 else 5043 case $cross_compiling:$ac_tool_warned in 5044yes:) 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5046printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5047ac_tool_warned=yes ;; 5048esac 5049 CC=$ac_ct_CC 5050 fi 5051else 5052 CC="$ac_cv_prog_CC" 5053fi 5054 5055if test -z "$CC"; then 5056 if test -n "$ac_tool_prefix"; then 5057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5058set dummy ${ac_tool_prefix}cc; ac_word=$2 5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5060printf %s "checking for $ac_word... " >&6; } 5061if test ${ac_cv_prog_CC+y} 5062then : 5063 printf %s "(cached) " >&6 5064else $as_nop 5065 if test -n "$CC"; then 5066 ac_cv_prog_CC="$CC" # Let the user override the test. 5067else 5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069for as_dir in $PATH 5070do 5071 IFS=$as_save_IFS 5072 case $as_dir in #((( 5073 '') as_dir=./ ;; 5074 */) ;; 5075 *) as_dir=$as_dir/ ;; 5076 esac 5077 for ac_exec_ext in '' $ac_executable_extensions; do 5078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5079 ac_cv_prog_CC="${ac_tool_prefix}cc" 5080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5081 break 2 5082 fi 5083done 5084 done 5085IFS=$as_save_IFS 5086 5087fi 5088fi 5089CC=$ac_cv_prog_CC 5090if test -n "$CC"; then 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5092printf "%s\n" "$CC" >&6; } 5093else 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5095printf "%s\n" "no" >&6; } 5096fi 5097 5098 5099 fi 5100fi 5101if test -z "$CC"; then 5102 # Extract the first word of "cc", so it can be a program name with args. 5103set dummy cc; ac_word=$2 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5105printf %s "checking for $ac_word... " >&6; } 5106if test ${ac_cv_prog_CC+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 if test -n "$CC"; then 5111 ac_cv_prog_CC="$CC" # Let the user override the test. 5112else 5113 ac_prog_rejected=no 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5115for as_dir in $PATH 5116do 5117 IFS=$as_save_IFS 5118 case $as_dir in #((( 5119 '') as_dir=./ ;; 5120 */) ;; 5121 *) as_dir=$as_dir/ ;; 5122 esac 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5125 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5126 ac_prog_rejected=yes 5127 continue 5128 fi 5129 ac_cv_prog_CC="cc" 5130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5131 break 2 5132 fi 5133done 5134 done 5135IFS=$as_save_IFS 5136 5137if test $ac_prog_rejected = yes; then 5138 # We found a bogon in the path, so make sure we never use it. 5139 set dummy $ac_cv_prog_CC 5140 shift 5141 if test $# != 0; then 5142 # We chose a different compiler from the bogus one. 5143 # However, it has the same basename, so the bogon will be chosen 5144 # first if we set CC to just the basename; use the full file name. 5145 shift 5146 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5147 fi 5148fi 5149fi 5150fi 5151CC=$ac_cv_prog_CC 5152if test -n "$CC"; then 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5154printf "%s\n" "$CC" >&6; } 5155else 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5157printf "%s\n" "no" >&6; } 5158fi 5159 5160 5161fi 5162if test -z "$CC"; then 5163 if test -n "$ac_tool_prefix"; then 5164 for ac_prog in cl.exe 5165 do 5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169printf %s "checking for $ac_word... " >&6; } 5170if test ${ac_cv_prog_CC+y} 5171then : 5172 printf %s "(cached) " >&6 5173else $as_nop 5174 if test -n "$CC"; then 5175 ac_cv_prog_CC="$CC" # Let the user override the test. 5176else 5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5178for as_dir in $PATH 5179do 5180 IFS=$as_save_IFS 5181 case $as_dir in #((( 5182 '') as_dir=./ ;; 5183 */) ;; 5184 *) as_dir=$as_dir/ ;; 5185 esac 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198CC=$ac_cv_prog_CC 5199if test -n "$CC"; then 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5201printf "%s\n" "$CC" >&6; } 5202else 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204printf "%s\n" "no" >&6; } 5205fi 5206 5207 5208 test -n "$CC" && break 5209 done 5210fi 5211if test -z "$CC"; then 5212 ac_ct_CC=$CC 5213 for ac_prog in cl.exe 5214do 5215 # Extract the first word of "$ac_prog", so it can be a program name with args. 5216set dummy $ac_prog; ac_word=$2 5217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5218printf %s "checking for $ac_word... " >&6; } 5219if test ${ac_cv_prog_ac_ct_CC+y} 5220then : 5221 printf %s "(cached) " >&6 5222else $as_nop 5223 if test -n "$ac_ct_CC"; then 5224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5225else 5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5227for as_dir in $PATH 5228do 5229 IFS=$as_save_IFS 5230 case $as_dir in #((( 5231 '') as_dir=./ ;; 5232 */) ;; 5233 *) as_dir=$as_dir/ ;; 5234 esac 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5237 ac_cv_prog_ac_ct_CC="$ac_prog" 5238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5239 break 2 5240 fi 5241done 5242 done 5243IFS=$as_save_IFS 5244 5245fi 5246fi 5247ac_ct_CC=$ac_cv_prog_ac_ct_CC 5248if test -n "$ac_ct_CC"; then 5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5250printf "%s\n" "$ac_ct_CC" >&6; } 5251else 5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253printf "%s\n" "no" >&6; } 5254fi 5255 5256 5257 test -n "$ac_ct_CC" && break 5258done 5259 5260 if test "x$ac_ct_CC" = x; then 5261 CC="" 5262 else 5263 case $cross_compiling:$ac_tool_warned in 5264yes:) 5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5267ac_tool_warned=yes ;; 5268esac 5269 CC=$ac_ct_CC 5270 fi 5271fi 5272 5273fi 5274if test -z "$CC"; then 5275 if test -n "$ac_tool_prefix"; then 5276 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5277set dummy ${ac_tool_prefix}clang; ac_word=$2 5278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5279printf %s "checking for $ac_word... " >&6; } 5280if test ${ac_cv_prog_CC+y} 5281then : 5282 printf %s "(cached) " >&6 5283else $as_nop 5284 if test -n "$CC"; then 5285 ac_cv_prog_CC="$CC" # Let the user override the test. 5286else 5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 case $as_dir in #((( 5292 '') as_dir=./ ;; 5293 */) ;; 5294 *) as_dir=$as_dir/ ;; 5295 esac 5296 for ac_exec_ext in '' $ac_executable_extensions; do 5297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5298 ac_cv_prog_CC="${ac_tool_prefix}clang" 5299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5300 break 2 5301 fi 5302done 5303 done 5304IFS=$as_save_IFS 5305 5306fi 5307fi 5308CC=$ac_cv_prog_CC 5309if test -n "$CC"; then 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5311printf "%s\n" "$CC" >&6; } 5312else 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5314printf "%s\n" "no" >&6; } 5315fi 5316 5317 5318fi 5319if test -z "$ac_cv_prog_CC"; then 5320 ac_ct_CC=$CC 5321 # Extract the first word of "clang", so it can be a program name with args. 5322set dummy clang; ac_word=$2 5323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324printf %s "checking for $ac_word... " >&6; } 5325if test ${ac_cv_prog_ac_ct_CC+y} 5326then : 5327 printf %s "(cached) " >&6 5328else $as_nop 5329 if test -n "$ac_ct_CC"; then 5330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5331else 5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333for as_dir in $PATH 5334do 5335 IFS=$as_save_IFS 5336 case $as_dir in #((( 5337 '') as_dir=./ ;; 5338 */) ;; 5339 *) as_dir=$as_dir/ ;; 5340 esac 5341 for ac_exec_ext in '' $ac_executable_extensions; do 5342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5343 ac_cv_prog_ac_ct_CC="clang" 5344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5345 break 2 5346 fi 5347done 5348 done 5349IFS=$as_save_IFS 5350 5351fi 5352fi 5353ac_ct_CC=$ac_cv_prog_ac_ct_CC 5354if test -n "$ac_ct_CC"; then 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5356printf "%s\n" "$ac_ct_CC" >&6; } 5357else 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5359printf "%s\n" "no" >&6; } 5360fi 5361 5362 if test "x$ac_ct_CC" = x; then 5363 CC="" 5364 else 5365 case $cross_compiling:$ac_tool_warned in 5366yes:) 5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5368printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5369ac_tool_warned=yes ;; 5370esac 5371 CC=$ac_ct_CC 5372 fi 5373else 5374 CC="$ac_cv_prog_CC" 5375fi 5376 5377fi 5378 5379 5380test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5381printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5382as_fn_error $? "no acceptable C compiler found in \$PATH 5383See \`config.log' for more details" "$LINENO" 5; } 5384 5385# Provide some information about the compiler. 5386printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5387set X $ac_compile 5388ac_compiler=$2 5389for ac_option in --version -v -V -qversion -version; do 5390 { { ac_try="$ac_compiler $ac_option >&5" 5391case "(($ac_try" in 5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5393 *) ac_try_echo=$ac_try;; 5394esac 5395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5396printf "%s\n" "$ac_try_echo"; } >&5 5397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5398 ac_status=$? 5399 if test -s conftest.err; then 5400 sed '10a\ 5401... rest of stderr output deleted ... 5402 10q' conftest.err >conftest.er1 5403 cat conftest.er1 >&5 5404 fi 5405 rm -f conftest.er1 conftest.err 5406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5407 test $ac_status = 0; } 5408done 5409 5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412 5413int 5414main (void) 5415{ 5416 5417 ; 5418 return 0; 5419} 5420_ACEOF 5421ac_clean_files_save=$ac_clean_files 5422ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5423# Try to create an executable without -o first, disregard a.out. 5424# It will help us diagnose broken compilers, and finding out an intuition 5425# of exeext. 5426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5427printf %s "checking whether the C compiler works... " >&6; } 5428ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5429 5430# The possible output files: 5431ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5432 5433ac_rmfiles= 5434for ac_file in $ac_files 5435do 5436 case $ac_file in 5437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5438 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5439 esac 5440done 5441rm -f $ac_rmfiles 5442 5443if { { ac_try="$ac_link_default" 5444case "(($ac_try" in 5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5446 *) ac_try_echo=$ac_try;; 5447esac 5448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5449printf "%s\n" "$ac_try_echo"; } >&5 5450 (eval "$ac_link_default") 2>&5 5451 ac_status=$? 5452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5453 test $ac_status = 0; } 5454then : 5455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5456# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5457# in a Makefile. We should not override ac_cv_exeext if it was cached, 5458# so that the user can short-circuit this test for compilers unknown to 5459# Autoconf. 5460for ac_file in $ac_files '' 5461do 5462 test -f "$ac_file" || continue 5463 case $ac_file in 5464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5465 ;; 5466 [ab].out ) 5467 # We found the default executable, but exeext='' is most 5468 # certainly right. 5469 break;; 5470 *.* ) 5471 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5472 then :; else 5473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5474 fi 5475 # We set ac_cv_exeext here because the later test for it is not 5476 # safe: cross compilers may not add the suffix if given an `-o' 5477 # argument, so we may need to know it at that point already. 5478 # Even if this section looks crufty: it has the advantage of 5479 # actually working. 5480 break;; 5481 * ) 5482 break;; 5483 esac 5484done 5485test "$ac_cv_exeext" = no && ac_cv_exeext= 5486 5487else $as_nop 5488 ac_file='' 5489fi 5490if test -z "$ac_file" 5491then : 5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5493printf "%s\n" "no" >&6; } 5494printf "%s\n" "$as_me: failed program was:" >&5 5495sed 's/^/| /' conftest.$ac_ext >&5 5496 5497{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5499as_fn_error 77 "C compiler cannot create executables 5500See \`config.log' for more details" "$LINENO" 5; } 5501else $as_nop 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5503printf "%s\n" "yes" >&6; } 5504fi 5505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5506printf %s "checking for C compiler default output file name... " >&6; } 5507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5508printf "%s\n" "$ac_file" >&6; } 5509ac_exeext=$ac_cv_exeext 5510 5511rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5512ac_clean_files=$ac_clean_files_save 5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5514printf %s "checking for suffix of executables... " >&6; } 5515if { { ac_try="$ac_link" 5516case "(($ac_try" in 5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5518 *) ac_try_echo=$ac_try;; 5519esac 5520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5521printf "%s\n" "$ac_try_echo"; } >&5 5522 (eval "$ac_link") 2>&5 5523 ac_status=$? 5524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5525 test $ac_status = 0; } 5526then : 5527 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5528# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5529# work properly (i.e., refer to `conftest.exe'), while it won't with 5530# `rm'. 5531for ac_file in conftest.exe conftest conftest.*; do 5532 test -f "$ac_file" || continue 5533 case $ac_file in 5534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5536 break;; 5537 * ) break;; 5538 esac 5539done 5540else $as_nop 5541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5542printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5543as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5544See \`config.log' for more details" "$LINENO" 5; } 5545fi 5546rm -f conftest conftest$ac_cv_exeext 5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5548printf "%s\n" "$ac_cv_exeext" >&6; } 5549 5550rm -f conftest.$ac_ext 5551EXEEXT=$ac_cv_exeext 5552ac_exeext=$EXEEXT 5553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555#include <stdio.h> 5556int 5557main (void) 5558{ 5559FILE *f = fopen ("conftest.out", "w"); 5560 return ferror (f) || fclose (f) != 0; 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566ac_clean_files="$ac_clean_files conftest.out" 5567# Check that the compiler produces executables we can run. If not, either 5568# the compiler is broken, or we cross compile. 5569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5570printf %s "checking whether we are cross compiling... " >&6; } 5571if test "$cross_compiling" != yes; then 5572 { { ac_try="$ac_link" 5573case "(($ac_try" in 5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5575 *) ac_try_echo=$ac_try;; 5576esac 5577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5578printf "%s\n" "$ac_try_echo"; } >&5 5579 (eval "$ac_link") 2>&5 5580 ac_status=$? 5581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5582 test $ac_status = 0; } 5583 if { ac_try='./conftest$ac_cv_exeext' 5584 { { case "(($ac_try" in 5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5586 *) ac_try_echo=$ac_try;; 5587esac 5588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5589printf "%s\n" "$ac_try_echo"; } >&5 5590 (eval "$ac_try") 2>&5 5591 ac_status=$? 5592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5593 test $ac_status = 0; }; }; then 5594 cross_compiling=no 5595 else 5596 if test "$cross_compiling" = maybe; then 5597 cross_compiling=yes 5598 else 5599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5600printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5601as_fn_error 77 "cannot run C compiled programs. 5602If you meant to cross compile, use \`--host'. 5603See \`config.log' for more details" "$LINENO" 5; } 5604 fi 5605 fi 5606fi 5607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5608printf "%s\n" "$cross_compiling" >&6; } 5609 5610rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5611ac_clean_files=$ac_clean_files_save 5612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5613printf %s "checking for suffix of object files... " >&6; } 5614if test ${ac_cv_objext+y} 5615then : 5616 printf %s "(cached) " >&6 5617else $as_nop 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620 5621int 5622main (void) 5623{ 5624 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629rm -f conftest.o conftest.obj 5630if { { ac_try="$ac_compile" 5631case "(($ac_try" in 5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5633 *) ac_try_echo=$ac_try;; 5634esac 5635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5636printf "%s\n" "$ac_try_echo"; } >&5 5637 (eval "$ac_compile") 2>&5 5638 ac_status=$? 5639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5640 test $ac_status = 0; } 5641then : 5642 for ac_file in conftest.o conftest.obj conftest.*; do 5643 test -f "$ac_file" || continue; 5644 case $ac_file in 5645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5647 break;; 5648 esac 5649done 5650else $as_nop 5651 printf "%s\n" "$as_me: failed program was:" >&5 5652sed 's/^/| /' conftest.$ac_ext >&5 5653 5654{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5656as_fn_error $? "cannot compute suffix of object files: cannot compile 5657See \`config.log' for more details" "$LINENO" 5; } 5658fi 5659rm -f conftest.$ac_cv_objext conftest.$ac_ext 5660fi 5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5662printf "%s\n" "$ac_cv_objext" >&6; } 5663OBJEXT=$ac_cv_objext 5664ac_objext=$OBJEXT 5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5666printf %s "checking whether the compiler supports GNU C... " >&6; } 5667if test ${ac_cv_c_compiler_gnu+y} 5668then : 5669 printf %s "(cached) " >&6 5670else $as_nop 5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672/* end confdefs.h. */ 5673 5674int 5675main (void) 5676{ 5677#ifndef __GNUC__ 5678 choke me 5679#endif 5680 5681 ; 5682 return 0; 5683} 5684_ACEOF 5685if ac_fn_c_try_compile "$LINENO" 5686then : 5687 ac_compiler_gnu=yes 5688else $as_nop 5689 ac_compiler_gnu=no 5690fi 5691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5692ac_cv_c_compiler_gnu=$ac_compiler_gnu 5693 5694fi 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5696printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5697ac_compiler_gnu=$ac_cv_c_compiler_gnu 5698 5699if test $ac_compiler_gnu = yes; then 5700 GCC=yes 5701else 5702 GCC= 5703fi 5704ac_test_CFLAGS=${CFLAGS+y} 5705ac_save_CFLAGS=$CFLAGS 5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5707printf %s "checking whether $CC accepts -g... " >&6; } 5708if test ${ac_cv_prog_cc_g+y} 5709then : 5710 printf %s "(cached) " >&6 5711else $as_nop 5712 ac_save_c_werror_flag=$ac_c_werror_flag 5713 ac_c_werror_flag=yes 5714 ac_cv_prog_cc_g=no 5715 CFLAGS="-g" 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718 5719int 5720main (void) 5721{ 5722 5723 ; 5724 return 0; 5725} 5726_ACEOF 5727if ac_fn_c_try_compile "$LINENO" 5728then : 5729 ac_cv_prog_cc_g=yes 5730else $as_nop 5731 CFLAGS="" 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734 5735int 5736main (void) 5737{ 5738 5739 ; 5740 return 0; 5741} 5742_ACEOF 5743if ac_fn_c_try_compile "$LINENO" 5744then : 5745 5746else $as_nop 5747 ac_c_werror_flag=$ac_save_c_werror_flag 5748 CFLAGS="-g" 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751 5752int 5753main (void) 5754{ 5755 5756 ; 5757 return 0; 5758} 5759_ACEOF 5760if ac_fn_c_try_compile "$LINENO" 5761then : 5762 ac_cv_prog_cc_g=yes 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5765fi 5766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5769 ac_c_werror_flag=$ac_save_c_werror_flag 5770fi 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5772printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5773if test $ac_test_CFLAGS; then 5774 CFLAGS=$ac_save_CFLAGS 5775elif test $ac_cv_prog_cc_g = yes; then 5776 if test "$GCC" = yes; then 5777 CFLAGS="-g -O2" 5778 else 5779 CFLAGS="-g" 5780 fi 5781else 5782 if test "$GCC" = yes; then 5783 CFLAGS="-O2" 5784 else 5785 CFLAGS= 5786 fi 5787fi 5788ac_prog_cc_stdc=no 5789if test x$ac_prog_cc_stdc = xno 5790then : 5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5792printf %s "checking for $CC option to enable C11 features... " >&6; } 5793if test ${ac_cv_prog_cc_c11+y} 5794then : 5795 printf %s "(cached) " >&6 5796else $as_nop 5797 ac_cv_prog_cc_c11=no 5798ac_save_CC=$CC 5799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801$ac_c_conftest_c11_program 5802_ACEOF 5803for ac_arg in '' -std=gnu11 5804do 5805 CC="$ac_save_CC $ac_arg" 5806 if ac_fn_c_try_compile "$LINENO" 5807then : 5808 ac_cv_prog_cc_c11=$ac_arg 5809fi 5810rm -f core conftest.err conftest.$ac_objext conftest.beam 5811 test "x$ac_cv_prog_cc_c11" != "xno" && break 5812done 5813rm -f conftest.$ac_ext 5814CC=$ac_save_CC 5815fi 5816 5817if test "x$ac_cv_prog_cc_c11" = xno 5818then : 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5820printf "%s\n" "unsupported" >&6; } 5821else $as_nop 5822 if test "x$ac_cv_prog_cc_c11" = x 5823then : 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5825printf "%s\n" "none needed" >&6; } 5826else $as_nop 5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5828printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5829 CC="$CC $ac_cv_prog_cc_c11" 5830fi 5831 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5832 ac_prog_cc_stdc=c11 5833fi 5834fi 5835if test x$ac_prog_cc_stdc = xno 5836then : 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5838printf %s "checking for $CC option to enable C99 features... " >&6; } 5839if test ${ac_cv_prog_cc_c99+y} 5840then : 5841 printf %s "(cached) " >&6 5842else $as_nop 5843 ac_cv_prog_cc_c99=no 5844ac_save_CC=$CC 5845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847$ac_c_conftest_c99_program 5848_ACEOF 5849for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5850do 5851 CC="$ac_save_CC $ac_arg" 5852 if ac_fn_c_try_compile "$LINENO" 5853then : 5854 ac_cv_prog_cc_c99=$ac_arg 5855fi 5856rm -f core conftest.err conftest.$ac_objext conftest.beam 5857 test "x$ac_cv_prog_cc_c99" != "xno" && break 5858done 5859rm -f conftest.$ac_ext 5860CC=$ac_save_CC 5861fi 5862 5863if test "x$ac_cv_prog_cc_c99" = xno 5864then : 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5866printf "%s\n" "unsupported" >&6; } 5867else $as_nop 5868 if test "x$ac_cv_prog_cc_c99" = x 5869then : 5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5871printf "%s\n" "none needed" >&6; } 5872else $as_nop 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5874printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5875 CC="$CC $ac_cv_prog_cc_c99" 5876fi 5877 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5878 ac_prog_cc_stdc=c99 5879fi 5880fi 5881if test x$ac_prog_cc_stdc = xno 5882then : 5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5884printf %s "checking for $CC option to enable C89 features... " >&6; } 5885if test ${ac_cv_prog_cc_c89+y} 5886then : 5887 printf %s "(cached) " >&6 5888else $as_nop 5889 ac_cv_prog_cc_c89=no 5890ac_save_CC=$CC 5891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893$ac_c_conftest_c89_program 5894_ACEOF 5895for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5896do 5897 CC="$ac_save_CC $ac_arg" 5898 if ac_fn_c_try_compile "$LINENO" 5899then : 5900 ac_cv_prog_cc_c89=$ac_arg 5901fi 5902rm -f core conftest.err conftest.$ac_objext conftest.beam 5903 test "x$ac_cv_prog_cc_c89" != "xno" && break 5904done 5905rm -f conftest.$ac_ext 5906CC=$ac_save_CC 5907fi 5908 5909if test "x$ac_cv_prog_cc_c89" = xno 5910then : 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5912printf "%s\n" "unsupported" >&6; } 5913else $as_nop 5914 if test "x$ac_cv_prog_cc_c89" = x 5915then : 5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5917printf "%s\n" "none needed" >&6; } 5918else $as_nop 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5920printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5921 CC="$CC $ac_cv_prog_cc_c89" 5922fi 5923 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5924 ac_prog_cc_stdc=c89 5925fi 5926fi 5927 5928ac_ext=c 5929ac_cpp='$CPP $CPPFLAGS' 5930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5932ac_compiler_gnu=$ac_cv_c_compiler_gnu 5933 5934 5935 ac_ext=c 5936ac_cpp='$CPP $CPPFLAGS' 5937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5939ac_compiler_gnu=$ac_cv_c_compiler_gnu 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5941printf %s "checking whether $CC understands -c and -o together... " >&6; } 5942if test ${am_cv_prog_cc_c_o+y} 5943then : 5944 printf %s "(cached) " >&6 5945else $as_nop 5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948 5949int 5950main (void) 5951{ 5952 5953 ; 5954 return 0; 5955} 5956_ACEOF 5957 # Make sure it works both with $CC and with simple cc. 5958 # Following AC_PROG_CC_C_O, we do the test twice because some 5959 # compilers refuse to overwrite an existing .o file with -o, 5960 # though they will create one. 5961 am_cv_prog_cc_c_o=yes 5962 for am_i in 1 2; do 5963 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5964 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5965 ac_status=$? 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } \ 5968 && test -f conftest2.$ac_objext; then 5969 : OK 5970 else 5971 am_cv_prog_cc_c_o=no 5972 break 5973 fi 5974 done 5975 rm -f core conftest* 5976 unset am_i 5977fi 5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5979printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5980if test "$am_cv_prog_cc_c_o" != yes; then 5981 # Losing compiler, so override with the script. 5982 # FIXME: It is wrong to rewrite CC. 5983 # But if we don't then we get into trouble of one sort or another. 5984 # A longer-term fix would be to have automake use am__CC in this case, 5985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5986 CC="$am_aux_dir/compile $CC" 5987fi 5988ac_ext=c 5989ac_cpp='$CPP $CPPFLAGS' 5990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5992ac_compiler_gnu=$ac_cv_c_compiler_gnu 5993 5994 5995 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 5997printf %s "checking whether the compiler is clang... " >&6; } 5998if test ${gl_cv_compiler_clang+y} 5999then : 6000 printf %s "(cached) " >&6 6001else $as_nop 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004 6005 #ifdef __clang__ 6006 barfbarf 6007 #endif 6008 6009int 6010main (void) 6011{ 6012 6013 ; 6014 return 0; 6015} 6016 6017_ACEOF 6018if ac_fn_c_try_compile "$LINENO" 6019then : 6020 gl_cv_compiler_clang=no 6021else $as_nop 6022 gl_cv_compiler_clang=yes 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6025 6026fi 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 6028printf "%s\n" "$gl_cv_compiler_clang" >&6; } 6029 6030 6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 6032printf %s "checking for compiler option needed when checking for declarations... " >&6; } 6033if test ${gl_cv_compiler_check_decl_option+y} 6034then : 6035 printf %s "(cached) " >&6 6036else $as_nop 6037 if test $gl_cv_compiler_clang = yes; then 6038 save_ac_compile="$ac_compile" 6039 ac_compile="$ac_compile -Werror=implicit-function-declaration" 6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6041/* end confdefs.h. */ 6042 6043int 6044main (void) 6045{ 6046 6047 ; 6048 return 0; 6049} 6050_ACEOF 6051if ac_fn_c_try_compile "$LINENO" 6052then : 6053 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' 6054else $as_nop 6055 gl_cv_compiler_check_decl_option=none 6056fi 6057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6058 ac_compile="$save_ac_compile" 6059 else 6060 gl_cv_compiler_check_decl_option=none 6061 fi 6062 6063fi 6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 6065printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } 6066 if test "x$gl_cv_compiler_check_decl_option" != xnone; then 6067 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" 6068 else 6069 ac_compile_for_check_decl="$ac_compile" 6070 fi 6071 6072DEPDIR="${am__leading_dot}deps" 6073 6074ac_config_commands="$ac_config_commands depfiles" 6075 6076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6077printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6078cat > confinc.mk << 'END' 6079am__doit: 6080 @echo this is the am__doit target >confinc.out 6081.PHONY: am__doit 6082END 6083am__include="#" 6084am__quote= 6085# BSD make does it like this. 6086echo '.include "confinc.mk" # ignored' > confmf.BSD 6087# Other make implementations (GNU, Solaris 10, AIX) do it like this. 6088echo 'include confinc.mk # ignored' > confmf.GNU 6089_am_result=no 6090for s in GNU BSD; do 6091 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6092 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6093 ac_status=$? 6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6095 (exit $ac_status); } 6096 case $?:`cat confinc.out 2>/dev/null` in #( 6097 '0:this is the am__doit target') : 6098 case $s in #( 6099 BSD) : 6100 am__include='.include' am__quote='"' ;; #( 6101 *) : 6102 am__include='include' am__quote='' ;; 6103esac ;; #( 6104 *) : 6105 ;; 6106esac 6107 if test "$am__include" != "#"; then 6108 _am_result="yes ($s style)" 6109 break 6110 fi 6111done 6112rm -f confinc.* confmf.* 6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 6114printf "%s\n" "${_am_result}" >&6; } 6115 6116# Check whether --enable-dependency-tracking was given. 6117if test ${enable_dependency_tracking+y} 6118then : 6119 enableval=$enable_dependency_tracking; 6120fi 6121 6122if test "x$enable_dependency_tracking" != xno; then 6123 am_depcomp="$ac_aux_dir/depcomp" 6124 AMDEPBACKSLASH='\' 6125 am__nodep='_no' 6126fi 6127 if test "x$enable_dependency_tracking" != xno; then 6128 AMDEP_TRUE= 6129 AMDEP_FALSE='#' 6130else 6131 AMDEP_TRUE='#' 6132 AMDEP_FALSE= 6133fi 6134 6135 6136 6137depcc="$CC" am_compiler_list= 6138 6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6140printf %s "checking dependency style of $depcc... " >&6; } 6141if test ${am_cv_CC_dependencies_compiler_type+y} 6142then : 6143 printf %s "(cached) " >&6 6144else $as_nop 6145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6146 # We make a subdir and do the tests there. Otherwise we can end up 6147 # making bogus files that we don't know about and never remove. For 6148 # instance it was reported that on HP-UX the gcc test will end up 6149 # making a dummy file named 'D' -- because '-MD' means "put the output 6150 # in D". 6151 rm -rf conftest.dir 6152 mkdir conftest.dir 6153 # Copy depcomp to subdir because otherwise we won't find it if we're 6154 # using a relative directory. 6155 cp "$am_depcomp" conftest.dir 6156 cd conftest.dir 6157 # We will build objects and dependencies in a subdirectory because 6158 # it helps to detect inapplicable dependency modes. For instance 6159 # both Tru64's cc and ICC support -MD to output dependencies as a 6160 # side effect of compilation, but ICC will put the dependencies in 6161 # the current directory while Tru64 will put them in the object 6162 # directory. 6163 mkdir sub 6164 6165 am_cv_CC_dependencies_compiler_type=none 6166 if test "$am_compiler_list" = ""; then 6167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6168 fi 6169 am__universal=false 6170 case " $depcc " in #( 6171 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6172 esac 6173 6174 for depmode in $am_compiler_list; do 6175 # Setup a source with many dependencies, because some compilers 6176 # like to wrap large dependency lists on column 80 (with \), and 6177 # we should not choose a depcomp mode which is confused by this. 6178 # 6179 # We need to recreate these files for each test, as the compiler may 6180 # overwrite some of them when testing with obscure command lines. 6181 # This happens at least with the AIX C compiler. 6182 : > sub/conftest.c 6183 for i in 1 2 3 4 5 6; do 6184 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6185 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6186 # Solaris 10 /bin/sh. 6187 echo '/* dummy */' > sub/conftst$i.h 6188 done 6189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6190 6191 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6192 # mode. It turns out that the SunPro C++ compiler does not properly 6193 # handle '-M -o', and we need to detect this. Also, some Intel 6194 # versions had trouble with output in subdirs. 6195 am__obj=sub/conftest.${OBJEXT-o} 6196 am__minus_obj="-o $am__obj" 6197 case $depmode in 6198 gcc) 6199 # This depmode causes a compiler race in universal mode. 6200 test "$am__universal" = false || continue 6201 ;; 6202 nosideeffect) 6203 # After this tag, mechanisms are not by side-effect, so they'll 6204 # only be used when explicitly requested. 6205 if test "x$enable_dependency_tracking" = xyes; then 6206 continue 6207 else 6208 break 6209 fi 6210 ;; 6211 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6212 # This compiler won't grok '-c -o', but also, the minuso test has 6213 # not run yet. These depmodes are late enough in the game, and 6214 # so weak that their functioning should not be impacted. 6215 am__obj=conftest.${OBJEXT-o} 6216 am__minus_obj= 6217 ;; 6218 none) break ;; 6219 esac 6220 if depmode=$depmode \ 6221 source=sub/conftest.c object=$am__obj \ 6222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6224 >/dev/null 2>conftest.err && 6225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6229 # icc doesn't choke on unknown options, it will just issue warnings 6230 # or remarks (even with -Werror). So we grep stderr for any message 6231 # that says an option was ignored or not supported. 6232 # When given -MP, icc 7.0 and 7.1 complain thusly: 6233 # icc: Command line warning: ignoring option '-M'; no argument required 6234 # The diagnosis changed in icc 8.0: 6235 # icc: Command line remark: option '-MP' not supported 6236 if (grep 'ignoring option' conftest.err || 6237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6238 am_cv_CC_dependencies_compiler_type=$depmode 6239 break 6240 fi 6241 fi 6242 done 6243 6244 cd .. 6245 rm -rf conftest.dir 6246else 6247 am_cv_CC_dependencies_compiler_type=none 6248fi 6249 6250fi 6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6252printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6254 6255 if 6256 test "x$enable_dependency_tracking" != xno \ 6257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6258 am__fastdepCC_TRUE= 6259 am__fastdepCC_FALSE='#' 6260else 6261 am__fastdepCC_TRUE='#' 6262 am__fastdepCC_FALSE= 6263fi 6264 6265 6266 6267# Since we use gnulib: gl_EARLY must be called as soon as possible after 6268# the C compiler is checked. The others could be later, but we just 6269# keep everything together. 6270 6271ac_header= ac_cache= 6272for ac_item in $ac_header_c_list 6273do 6274 if test $ac_cache; then 6275 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6276 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6277 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6278 fi 6279 ac_header= ac_cache= 6280 elif test $ac_header; then 6281 ac_cache=$ac_item 6282 else 6283 ac_header=$ac_item 6284 fi 6285done 6286 6287 6288 6289 6290 6291 6292 6293 6294if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6295then : 6296 6297printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6298 6299fi 6300 6301 6302 6303 6304 6305 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6307printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6308if test ${ac_cv_safe_to_define___extensions__+y} 6309then : 6310 printf %s "(cached) " >&6 6311else $as_nop 6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314 6315# define __EXTENSIONS__ 1 6316 $ac_includes_default 6317int 6318main (void) 6319{ 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO" 6326then : 6327 ac_cv_safe_to_define___extensions__=yes 6328else $as_nop 6329 ac_cv_safe_to_define___extensions__=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6332fi 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6334printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 6335 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6337printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6338if test ${ac_cv_should_define__xopen_source+y} 6339then : 6340 printf %s "(cached) " >&6 6341else $as_nop 6342 ac_cv_should_define__xopen_source=no 6343 if test $ac_cv_header_wchar_h = yes 6344then : 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347 6348 #include <wchar.h> 6349 mbstate_t x; 6350int 6351main (void) 6352{ 6353 6354 ; 6355 return 0; 6356} 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO" 6359then : 6360 6361else $as_nop 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364 6365 #define _XOPEN_SOURCE 500 6366 #include <wchar.h> 6367 mbstate_t x; 6368int 6369main (void) 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO" 6377then : 6378 ac_cv_should_define__xopen_source=yes 6379fi 6380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6381fi 6382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6383fi 6384fi 6385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6386printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6387 6388 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6389 6390 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6391 6392 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6393 6394 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6395 6396 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6397 6398 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6399 6400 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6401 6402 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6403 6404 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6405 6406 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6407 6408 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6409 6410 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6411 6412 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6413 6414 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6415 6416 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6417 6418 if test $ac_cv_header_minix_config_h = yes 6419then : 6420 MINIX=yes 6421 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6422 6423 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6424 6425 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6426 6427else $as_nop 6428 MINIX= 6429fi 6430 if test $ac_cv_safe_to_define___extensions__ = yes 6431then : 6432 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6433 6434fi 6435 if test $ac_cv_should_define__xopen_source = yes 6436then : 6437 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6438 6439fi 6440 6441 6442 6443 # Make sure we can run config.sub. 6444$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6445 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6446 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6448printf %s "checking build system type... " >&6; } 6449if test ${ac_cv_build+y} 6450then : 6451 printf %s "(cached) " >&6 6452else $as_nop 6453 ac_build_alias=$build_alias 6454test "x$ac_build_alias" = x && 6455 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6456test "x$ac_build_alias" = x && 6457 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6458ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6459 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6460 6461fi 6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6463printf "%s\n" "$ac_cv_build" >&6; } 6464case $ac_cv_build in 6465*-*-*) ;; 6466*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6467esac 6468build=$ac_cv_build 6469ac_save_IFS=$IFS; IFS='-' 6470set x $ac_cv_build 6471shift 6472build_cpu=$1 6473build_vendor=$2 6474shift; shift 6475# Remember, the first character of IFS is used to create $*, 6476# except with old shells: 6477build_os=$* 6478IFS=$ac_save_IFS 6479case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6480 6481 6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6483printf %s "checking host system type... " >&6; } 6484if test ${ac_cv_host+y} 6485then : 6486 printf %s "(cached) " >&6 6487else $as_nop 6488 if test "x$host_alias" = x; then 6489 ac_cv_host=$ac_cv_build 6490else 6491 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6492 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6493fi 6494 6495fi 6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6497printf "%s\n" "$ac_cv_host" >&6; } 6498case $ac_cv_host in 6499*-*-*) ;; 6500*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6501esac 6502host=$ac_cv_host 6503ac_save_IFS=$IFS; IFS='-' 6504set x $ac_cv_host 6505shift 6506host_cpu=$1 6507host_vendor=$2 6508shift; shift 6509# Remember, the first character of IFS is used to create $*, 6510# except with old shells: 6511host_os=$* 6512IFS=$ac_save_IFS 6513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6514 6515 6516 6517 6518 6519 6520 case "$host_os" in 6521 openbsd*) 6522 6523printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h 6524 6525 ;; 6526 esac 6527 6528ac_ext=c 6529ac_cpp='$CPP $CPPFLAGS' 6530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6532ac_compiler_gnu=$ac_cv_c_compiler_gnu 6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6534printf %s "checking how to run the C preprocessor... " >&6; } 6535# On Suns, sometimes $CPP names a directory. 6536if test -n "$CPP" && test -d "$CPP"; then 6537 CPP= 6538fi 6539if test -z "$CPP"; then 6540 if test ${ac_cv_prog_CPP+y} 6541then : 6542 printf %s "(cached) " >&6 6543else $as_nop 6544 # Double quotes because $CC needs to be expanded 6545 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6546 do 6547 ac_preproc_ok=false 6548for ac_c_preproc_warn_flag in '' yes 6549do 6550 # Use a header file that comes with gcc, so configuring glibc 6551 # with a fresh cross-compiler works. 6552 # On the NeXT, cc -E runs the code through the compiler's parser, 6553 # not just through cpp. "Syntax error" is here to catch this case. 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556#include <limits.h> 6557 Syntax error 6558_ACEOF 6559if ac_fn_c_try_cpp "$LINENO" 6560then : 6561 6562else $as_nop 6563 # Broken: fails on valid input. 6564continue 6565fi 6566rm -f conftest.err conftest.i conftest.$ac_ext 6567 6568 # OK, works on sane cases. Now check whether nonexistent headers 6569 # can be detected and how. 6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572#include <ac_nonexistent.h> 6573_ACEOF 6574if ac_fn_c_try_cpp "$LINENO" 6575then : 6576 # Broken: success on invalid input. 6577continue 6578else $as_nop 6579 # Passes both tests. 6580ac_preproc_ok=: 6581break 6582fi 6583rm -f conftest.err conftest.i conftest.$ac_ext 6584 6585done 6586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6587rm -f conftest.i conftest.err conftest.$ac_ext 6588if $ac_preproc_ok 6589then : 6590 break 6591fi 6592 6593 done 6594 ac_cv_prog_CPP=$CPP 6595 6596fi 6597 CPP=$ac_cv_prog_CPP 6598else 6599 ac_cv_prog_CPP=$CPP 6600fi 6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6602printf "%s\n" "$CPP" >&6; } 6603ac_preproc_ok=false 6604for ac_c_preproc_warn_flag in '' yes 6605do 6606 # Use a header file that comes with gcc, so configuring glibc 6607 # with a fresh cross-compiler works. 6608 # On the NeXT, cc -E runs the code through the compiler's parser, 6609 # not just through cpp. "Syntax error" is here to catch this case. 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612#include <limits.h> 6613 Syntax error 6614_ACEOF 6615if ac_fn_c_try_cpp "$LINENO" 6616then : 6617 6618else $as_nop 6619 # Broken: fails on valid input. 6620continue 6621fi 6622rm -f conftest.err conftest.i conftest.$ac_ext 6623 6624 # OK, works on sane cases. Now check whether nonexistent headers 6625 # can be detected and how. 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628#include <ac_nonexistent.h> 6629_ACEOF 6630if ac_fn_c_try_cpp "$LINENO" 6631then : 6632 # Broken: success on invalid input. 6633continue 6634else $as_nop 6635 # Passes both tests. 6636ac_preproc_ok=: 6637break 6638fi 6639rm -f conftest.err conftest.i conftest.$ac_ext 6640 6641done 6642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6643rm -f conftest.i conftest.err conftest.$ac_ext 6644if $ac_preproc_ok 6645then : 6646 6647else $as_nop 6648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6649printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6650as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6651See \`config.log' for more details" "$LINENO" 5; } 6652fi 6653 6654ac_ext=c 6655ac_cpp='$CPP $CPPFLAGS' 6656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6658ac_compiler_gnu=$ac_cv_c_compiler_gnu 6659 6660 6661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6662printf %s "checking for grep that handles long lines and -e... " >&6; } 6663if test ${ac_cv_path_GREP+y} 6664then : 6665 printf %s "(cached) " >&6 6666else $as_nop 6667 if test -z "$GREP"; then 6668 ac_path_GREP_found=false 6669 # Loop through the user's path and test for each of PROGNAME-LIST 6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6672do 6673 IFS=$as_save_IFS 6674 case $as_dir in #((( 6675 '') as_dir=./ ;; 6676 */) ;; 6677 *) as_dir=$as_dir/ ;; 6678 esac 6679 for ac_prog in grep ggrep 6680 do 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6683 as_fn_executable_p "$ac_path_GREP" || continue 6684# Check for GNU ac_path_GREP and select it if it is found. 6685 # Check for GNU $ac_path_GREP 6686case `"$ac_path_GREP" --version 2>&1` in 6687*GNU*) 6688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6689*) 6690 ac_count=0 6691 printf %s 0123456789 >"conftest.in" 6692 while : 6693 do 6694 cat "conftest.in" "conftest.in" >"conftest.tmp" 6695 mv "conftest.tmp" "conftest.in" 6696 cp "conftest.in" "conftest.nl" 6697 printf "%s\n" 'GREP' >> "conftest.nl" 6698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6700 as_fn_arith $ac_count + 1 && ac_count=$as_val 6701 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6702 # Best one so far, save it but keep looking for a better one 6703 ac_cv_path_GREP="$ac_path_GREP" 6704 ac_path_GREP_max=$ac_count 6705 fi 6706 # 10*(2^10) chars as input seems more than enough 6707 test $ac_count -gt 10 && break 6708 done 6709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6710esac 6711 6712 $ac_path_GREP_found && break 3 6713 done 6714 done 6715 done 6716IFS=$as_save_IFS 6717 if test -z "$ac_cv_path_GREP"; then 6718 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6719 fi 6720else 6721 ac_cv_path_GREP=$GREP 6722fi 6723 6724fi 6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6726printf "%s\n" "$ac_cv_path_GREP" >&6; } 6727 GREP="$ac_cv_path_GREP" 6728 6729 6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6731printf %s "checking for egrep... " >&6; } 6732if test ${ac_cv_path_EGREP+y} 6733then : 6734 printf %s "(cached) " >&6 6735else $as_nop 6736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6737 then ac_cv_path_EGREP="$GREP -E" 6738 else 6739 if test -z "$EGREP"; then 6740 ac_path_EGREP_found=false 6741 # Loop through the user's path and test for each of PROGNAME-LIST 6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6744do 6745 IFS=$as_save_IFS 6746 case $as_dir in #((( 6747 '') as_dir=./ ;; 6748 */) ;; 6749 *) as_dir=$as_dir/ ;; 6750 esac 6751 for ac_prog in egrep 6752 do 6753 for ac_exec_ext in '' $ac_executable_extensions; do 6754 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6755 as_fn_executable_p "$ac_path_EGREP" || continue 6756# Check for GNU ac_path_EGREP and select it if it is found. 6757 # Check for GNU $ac_path_EGREP 6758case `"$ac_path_EGREP" --version 2>&1` in 6759*GNU*) 6760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6761*) 6762 ac_count=0 6763 printf %s 0123456789 >"conftest.in" 6764 while : 6765 do 6766 cat "conftest.in" "conftest.in" >"conftest.tmp" 6767 mv "conftest.tmp" "conftest.in" 6768 cp "conftest.in" "conftest.nl" 6769 printf "%s\n" 'EGREP' >> "conftest.nl" 6770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6772 as_fn_arith $ac_count + 1 && ac_count=$as_val 6773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6774 # Best one so far, save it but keep looking for a better one 6775 ac_cv_path_EGREP="$ac_path_EGREP" 6776 ac_path_EGREP_max=$ac_count 6777 fi 6778 # 10*(2^10) chars as input seems more than enough 6779 test $ac_count -gt 10 && break 6780 done 6781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6782esac 6783 6784 $ac_path_EGREP_found && break 3 6785 done 6786 done 6787 done 6788IFS=$as_save_IFS 6789 if test -z "$ac_cv_path_EGREP"; then 6790 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6791 fi 6792else 6793 ac_cv_path_EGREP=$EGREP 6794fi 6795 6796 fi 6797fi 6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6799printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6800 EGREP="$ac_cv_path_EGREP" 6801 6802 6803 6804 6805 6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 6807printf %s "checking for Minix Amsterdam compiler... " >&6; } 6808if test ${gl_cv_c_amsterdam_compiler+y} 6809then : 6810 printf %s "(cached) " >&6 6811else $as_nop 6812 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816#ifdef __ACK__ 6817Amsterdam 6818#endif 6819 6820_ACEOF 6821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6822 $EGREP "Amsterdam" >/dev/null 2>&1 6823then : 6824 gl_cv_c_amsterdam_compiler=yes 6825else $as_nop 6826 gl_cv_c_amsterdam_compiler=no 6827fi 6828rm -rf conftest* 6829 6830 6831fi 6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 6833printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } 6834 6835 if test $gl_cv_c_amsterdam_compiler = yes; then 6836 if test -z "$AR"; then 6837 AR='cc -c.a' 6838 fi 6839 if test -z "$ARFLAGS"; then 6840 ARFLAGS='-o' 6841 fi 6842 else 6843 : 6844 fi 6845 6846 if test -n "$ac_tool_prefix"; then 6847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6848set dummy ${ac_tool_prefix}ar; ac_word=$2 6849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850printf %s "checking for $ac_word... " >&6; } 6851if test ${ac_cv_prog_AR+y} 6852then : 6853 printf %s "(cached) " >&6 6854else $as_nop 6855 if test -n "$AR"; then 6856 ac_cv_prog_AR="$AR" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 case $as_dir in #((( 6863 '') as_dir=./ ;; 6864 */) ;; 6865 *) as_dir=$as_dir/ ;; 6866 esac 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6869 ac_cv_prog_AR="${ac_tool_prefix}ar" 6870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879AR=$ac_cv_prog_AR 6880if test -n "$AR"; then 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6882printf "%s\n" "$AR" >&6; } 6883else 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885printf "%s\n" "no" >&6; } 6886fi 6887 6888 6889fi 6890if test -z "$ac_cv_prog_AR"; then 6891 ac_ct_AR=$AR 6892 # Extract the first word of "ar", so it can be a program name with args. 6893set dummy ar; ac_word=$2 6894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895printf %s "checking for $ac_word... " >&6; } 6896if test ${ac_cv_prog_ac_ct_AR+y} 6897then : 6898 printf %s "(cached) " >&6 6899else $as_nop 6900 if test -n "$ac_ct_AR"; then 6901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 case $as_dir in #((( 6908 '') as_dir=./ ;; 6909 */) ;; 6910 *) as_dir=$as_dir/ ;; 6911 esac 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_ac_ct_AR="ar" 6915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_AR=$ac_cv_prog_ac_ct_AR 6925if test -n "$ac_ct_AR"; then 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6927printf "%s\n" "$ac_ct_AR" >&6; } 6928else 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930printf "%s\n" "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_AR" = x; then 6934 AR="ar" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 AR=$ac_ct_AR 6943 fi 6944else 6945 AR="$ac_cv_prog_AR" 6946fi 6947 6948 if test -z "$ARFLAGS"; then 6949 ARFLAGS='cr' 6950 fi 6951 6952 6953 6954 if test -z "$RANLIB"; then 6955 if test $gl_cv_c_amsterdam_compiler = yes; then 6956 RANLIB=':' 6957 else 6958 if test -n "$ac_tool_prefix"; then 6959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6960set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6962printf %s "checking for $ac_word... " >&6; } 6963if test ${ac_cv_prog_RANLIB+y} 6964then : 6965 printf %s "(cached) " >&6 6966else $as_nop 6967 if test -n "$RANLIB"; then 6968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 case $as_dir in #((( 6975 '') as_dir=./ ;; 6976 */) ;; 6977 *) as_dir=$as_dir/ ;; 6978 esac 6979 for ac_exec_ext in '' $ac_executable_extensions; do 6980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6983 break 2 6984 fi 6985done 6986 done 6987IFS=$as_save_IFS 6988 6989fi 6990fi 6991RANLIB=$ac_cv_prog_RANLIB 6992if test -n "$RANLIB"; then 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6994printf "%s\n" "$RANLIB" >&6; } 6995else 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6997printf "%s\n" "no" >&6; } 6998fi 6999 7000 7001fi 7002if test -z "$ac_cv_prog_RANLIB"; then 7003 ac_ct_RANLIB=$RANLIB 7004 # Extract the first word of "ranlib", so it can be a program name with args. 7005set dummy ranlib; ac_word=$2 7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7007printf %s "checking for $ac_word... " >&6; } 7008if test ${ac_cv_prog_ac_ct_RANLIB+y} 7009then : 7010 printf %s "(cached) " >&6 7011else $as_nop 7012 if test -n "$ac_ct_RANLIB"; then 7013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7014else 7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016for as_dir in $PATH 7017do 7018 IFS=$as_save_IFS 7019 case $as_dir in #((( 7020 '') as_dir=./ ;; 7021 */) ;; 7022 *) as_dir=$as_dir/ ;; 7023 esac 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7026 ac_cv_prog_ac_ct_RANLIB="ranlib" 7027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030done 7031 done 7032IFS=$as_save_IFS 7033 7034fi 7035fi 7036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7037if test -n "$ac_ct_RANLIB"; then 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7039printf "%s\n" "$ac_ct_RANLIB" >&6; } 7040else 7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7042printf "%s\n" "no" >&6; } 7043fi 7044 7045 if test "x$ac_ct_RANLIB" = x; then 7046 RANLIB=":" 7047 else 7048 case $cross_compiling:$ac_tool_warned in 7049yes:) 7050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7051printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7052ac_tool_warned=yes ;; 7053esac 7054 RANLIB=$ac_ct_RANLIB 7055 fi 7056else 7057 RANLIB="$ac_cv_prog_RANLIB" 7058fi 7059 7060 fi 7061 fi 7062 7063 7064 7065# Check whether --enable-largefile was given. 7066if test ${enable_largefile+y} 7067then : 7068 enableval=$enable_largefile; 7069fi 7070 7071if test "$enable_largefile" != no; then 7072 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7074printf %s "checking for special C compiler options needed for large files... " >&6; } 7075if test ${ac_cv_sys_largefile_CC+y} 7076then : 7077 printf %s "(cached) " >&6 7078else $as_nop 7079 ac_cv_sys_largefile_CC=no 7080 if test "$GCC" != yes; then 7081 ac_save_CC=$CC 7082 while :; do 7083 # IRIX 6.2 and later do not support large files by default, 7084 # so use the C compiler's -n32 option if that helps. 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087#include <sys/types.h> 7088 /* Check that off_t can represent 2**63 - 1 correctly. 7089 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7090 since some C++ compilers masquerading as C compilers 7091 incorrectly reject 9223372036854775807. */ 7092#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7094 && LARGE_OFF_T % 2147483647 == 1) 7095 ? 1 : -1]; 7096int 7097main (void) 7098{ 7099 7100 ; 7101 return 0; 7102} 7103_ACEOF 7104 if ac_fn_c_try_compile "$LINENO" 7105then : 7106 break 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.beam 7109 CC="$CC -n32" 7110 if ac_fn_c_try_compile "$LINENO" 7111then : 7112 ac_cv_sys_largefile_CC=' -n32'; break 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.beam 7115 break 7116 done 7117 CC=$ac_save_CC 7118 rm -f conftest.$ac_ext 7119 fi 7120fi 7121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7122printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 7123 if test "$ac_cv_sys_largefile_CC" != no; then 7124 CC=$CC$ac_cv_sys_largefile_CC 7125 fi 7126 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7128printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7129if test ${ac_cv_sys_file_offset_bits+y} 7130then : 7131 printf %s "(cached) " >&6 7132else $as_nop 7133 while :; do 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136#include <sys/types.h> 7137 /* Check that off_t can represent 2**63 - 1 correctly. 7138 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7139 since some C++ compilers masquerading as C compilers 7140 incorrectly reject 9223372036854775807. */ 7141#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7143 && LARGE_OFF_T % 2147483647 == 1) 7144 ? 1 : -1]; 7145int 7146main (void) 7147{ 7148 7149 ; 7150 return 0; 7151} 7152_ACEOF 7153if ac_fn_c_try_compile "$LINENO" 7154then : 7155 ac_cv_sys_file_offset_bits=no; break 7156fi 7157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160#define _FILE_OFFSET_BITS 64 7161#include <sys/types.h> 7162 /* Check that off_t can represent 2**63 - 1 correctly. 7163 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7164 since some C++ compilers masquerading as C compilers 7165 incorrectly reject 9223372036854775807. */ 7166#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7168 && LARGE_OFF_T % 2147483647 == 1) 7169 ? 1 : -1]; 7170int 7171main (void) 7172{ 7173 7174 ; 7175 return 0; 7176} 7177_ACEOF 7178if ac_fn_c_try_compile "$LINENO" 7179then : 7180 ac_cv_sys_file_offset_bits=64; break 7181fi 7182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7183 ac_cv_sys_file_offset_bits=unknown 7184 break 7185done 7186fi 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7188printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 7189case $ac_cv_sys_file_offset_bits in #( 7190 no | unknown) ;; 7191 *) 7192printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 7193;; 7194esac 7195rm -rf conftest* 7196 if test $ac_cv_sys_file_offset_bits = unknown; then 7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7198printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 7199if test ${ac_cv_sys_large_files+y} 7200then : 7201 printf %s "(cached) " >&6 7202else $as_nop 7203 while :; do 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206#include <sys/types.h> 7207 /* Check that off_t can represent 2**63 - 1 correctly. 7208 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7209 since some C++ compilers masquerading as C compilers 7210 incorrectly reject 9223372036854775807. */ 7211#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7213 && LARGE_OFF_T % 2147483647 == 1) 7214 ? 1 : -1]; 7215int 7216main (void) 7217{ 7218 7219 ; 7220 return 0; 7221} 7222_ACEOF 7223if ac_fn_c_try_compile "$LINENO" 7224then : 7225 ac_cv_sys_large_files=no; break 7226fi 7227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230#define _LARGE_FILES 1 7231#include <sys/types.h> 7232 /* Check that off_t can represent 2**63 - 1 correctly. 7233 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7234 since some C++ compilers masquerading as C compilers 7235 incorrectly reject 9223372036854775807. */ 7236#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7238 && LARGE_OFF_T % 2147483647 == 1) 7239 ? 1 : -1]; 7240int 7241main (void) 7242{ 7243 7244 ; 7245 return 0; 7246} 7247_ACEOF 7248if ac_fn_c_try_compile "$LINENO" 7249then : 7250 ac_cv_sys_large_files=1; break 7251fi 7252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7253 ac_cv_sys_large_files=unknown 7254 break 7255done 7256fi 7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7258printf "%s\n" "$ac_cv_sys_large_files" >&6; } 7259case $ac_cv_sys_large_files in #( 7260 no | unknown) ;; 7261 *) 7262printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 7263;; 7264esac 7265rm -rf conftest* 7266 fi 7267fi 7268 7269 7270 7271 7272 7273 7274 7275 # Check whether --enable-threads was given. 7276if test ${enable_threads+y} 7277then : 7278 enableval=$enable_threads; gl_use_threads=$enableval 7279else $as_nop 7280 if test -n "$gl_use_threads_default"; then 7281 gl_use_threads="$gl_use_threads_default" 7282 else 7283 case "$host_os" in 7284 osf*) gl_use_threads=no ;; 7285 cygwin*) 7286 case `uname -r` in 7287 1.[0-5].*) gl_use_threads=no ;; 7288 *) gl_use_threads=yes ;; 7289 esac 7290 ;; 7291 mingw*) 7292 case "$gl_use_winpthreads_default" in 7293 yes) gl_use_threads=posix ;; 7294 no) gl_use_threads=windows ;; 7295 *) gl_use_threads=yes ;; 7296 esac 7297 ;; 7298 *) gl_use_threads=yes ;; 7299 esac 7300 fi 7301 7302fi 7303 7304 if test "$gl_use_threads" = yes \ 7305 || test "$gl_use_threads" = isoc \ 7306 || test "$gl_use_threads" = posix \ 7307 || test "$gl_use_threads" = isoc+posix; then 7308 # For using <threads.h> or <pthread.h>: 7309 7310 7311 if test -z "$gl_anythreadlib_early_done"; then 7312 case "$host_os" in 7313 osf*) 7314 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7315 # groks <pthread.h>. cc also understands the flag -pthread, but 7316 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7317 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7318 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7319 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7320 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7321 ;; 7322 esac 7323 # Some systems optimize for single-threaded programs by default, and 7324 # need special flags to disable these optimizations. For example, the 7325 # definition of 'errno' in <errno.h>. 7326 case "$host_os" in 7327 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7328 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7329 esac 7330 gl_anythreadlib_early_done=done 7331 fi 7332 7333 fi 7334 7335 7336 7337 # Pre-early section. 7338 7339 7340 7341 7342 # Code from module absolute-header: 7343 # Code from module alloca-opt: 7344 # Code from module argz: 7345 # Code from module attribute: 7346 # Code from module basename-lgpl: 7347 # Code from module btowc: 7348 # Code from module builtin-expect: 7349 # Code from module c99: 7350 # Code from module cloexec: 7351 # Code from module close: 7352 # Code from module double-slash-root: 7353 # Code from module dup2: 7354 # Code from module dynarray: 7355 # Code from module errno: 7356 # Code from module error: 7357 # Code from module exitfail: 7358 # Code from module extensions: 7359 # Code from module extern-inline: 7360 # Code from module fcntl: 7361 # Code from module fcntl-h: 7362 # Code from module fd-hook: 7363 # Code from module filename: 7364 # Code from module float: 7365 # Code from module fstat: 7366 # Code from module getdtablesize: 7367 # Code from module getopt-gnu: 7368 # Code from module getopt-posix: 7369 # Code from module getprogname: 7370 # Code from module gettext-h: 7371 # Code from module hard-locale: 7372 # Code from module havelib: 7373 # Code from module iconv: 7374 # Code from module include_next: 7375 # Code from module intprops: 7376 # Code from module inttypes-incomplete: 7377 # Code from module iswblank: 7378 # Code from module iswdigit: 7379 # Code from module iswxdigit: 7380 # Code from module langinfo: 7381 # Code from module largefile: 7382 7383 # Code from module libc-config: 7384 # Code from module limits-h: 7385 # Code from module localcharset: 7386 # Code from module locale: 7387 # Code from module localeconv: 7388 # Code from module lock: 7389 # Code from module malloc-posix: 7390 # Code from module malloca: 7391 # Code from module mbchar: 7392 # Code from module mbiter: 7393 # Code from module mbrtowc: 7394 # Code from module mbscasecmp: 7395 # Code from module mbschr: 7396 # Code from module mbsinit: 7397 # Code from module mbslen: 7398 # Code from module mbsncasecmp: 7399 # Code from module mbsstr: 7400 # Code from module mbswidth: 7401 # Code from module mbtowc: 7402 # Code from module mbuiter: 7403 # Code from module memchr: 7404 # Code from module mempcpy: 7405 # Code from module memrchr: 7406 # Code from module msvc-inval: 7407 # Code from module msvc-nothrow: 7408 # Code from module multiarch: 7409 # Code from module nl_langinfo: 7410 # Code from module nocrash: 7411 # Code from module open: 7412 # Code from module pathmax: 7413 # Code from module regex: 7414 # Code from module setlocale-null: 7415 # Code from module size_max: 7416 # Code from module snippet/_Noreturn: 7417 # Code from module snippet/arg-nonnull: 7418 # Code from module snippet/c++defs: 7419 # Code from module snippet/warn-on-use: 7420 # Code from module ssize_t: 7421 # Code from module stat: 7422 # Code from module stat-time: 7423 # Code from module std-gnu11: 7424 # Code from module stdarg: 7425 7426 7427 7428 # Code from module stdbool: 7429 # Code from module stddef: 7430 # Code from module stdint: 7431 # Code from module stdio: 7432 # Code from module stdlib: 7433 # Code from module stpcpy: 7434 # Code from module strcase: 7435 # Code from module strcasestr: 7436 # Code from module strcasestr-simple: 7437 # Code from module strdup-posix: 7438 # Code from module streq: 7439 # Code from module strerror: 7440 # Code from module strerror-override: 7441 # Code from module string: 7442 # Code from module strings: 7443 # Code from module strndup: 7444 # Code from module strnlen: 7445 # Code from module strnlen1: 7446 # Code from module strstr: 7447 # Code from module strstr-simple: 7448 # Code from module sys_stat: 7449 # Code from module sys_types: 7450 # Code from module threadlib: 7451 7452 7453 7454 # Code from module time: 7455 # Code from module unistd: 7456 # Code from module unitypes: 7457 # Code from module uniwidth/base: 7458 # Code from module uniwidth/width: 7459 # Code from module vasnprintf: 7460 # Code from module vasprintf: 7461 # Code from module verify: 7462 # Code from module wchar: 7463 # Code from module wcrtomb: 7464 # Code from module wctype-h: 7465 # Code from module wcwidth: 7466 # Code from module windows-mutex: 7467 # Code from module windows-once: 7468 # Code from module windows-recmutex: 7469 # Code from module windows-rwlock: 7470 # Code from module xalloc: 7471 # Code from module xalloc-die: 7472 # Code from module xalloc-oversized: 7473 # Code from module xsize: 7474 7475 7476# Rest of Gnulib. 7477 7478 7479 7480 7481 7482 7483 7484 7485 # Check whether --enable-cross-guesses was given. 7486if test ${enable_cross_guesses+y} 7487then : 7488 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 7490printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} 7491 enableval=conservative 7492 fi 7493 gl_cross_guesses="$enableval" 7494else $as_nop 7495 gl_cross_guesses=conservative 7496fi 7497 7498 if test $gl_cross_guesses = risky; then 7499 gl_cross_guess_normal="guessing yes" 7500 gl_cross_guess_inverted="guessing no" 7501 else 7502 gl_cross_guess_normal="guessing no" 7503 gl_cross_guess_inverted="guessing yes" 7504 fi 7505 LIBC_FATAL_STDERR_=1 7506 export LIBC_FATAL_STDERR_ 7507 7508 7509ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7510if test "x$ac_cv_type_size_t" = xyes 7511then : 7512 7513else $as_nop 7514 7515printf "%s\n" "#define size_t unsigned int" >>confdefs.h 7516 7517fi 7518 7519# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7520# for constant arguments. Useless! 7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 7522printf %s "checking for working alloca.h... " >&6; } 7523if test ${ac_cv_working_alloca_h+y} 7524then : 7525 printf %s "(cached) " >&6 7526else $as_nop 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529#include <alloca.h> 7530int 7531main (void) 7532{ 7533char *p = (char *) alloca (2 * sizeof (int)); 7534 if (p) return 0; 7535 ; 7536 return 0; 7537} 7538_ACEOF 7539if ac_fn_c_try_link "$LINENO" 7540then : 7541 ac_cv_working_alloca_h=yes 7542else $as_nop 7543 ac_cv_working_alloca_h=no 7544fi 7545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7546 conftest$ac_exeext conftest.$ac_ext 7547fi 7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7549printf "%s\n" "$ac_cv_working_alloca_h" >&6; } 7550if test $ac_cv_working_alloca_h = yes; then 7551 7552printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 7553 7554fi 7555 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 7557printf %s "checking for alloca... " >&6; } 7558if test ${ac_cv_func_alloca_works+y} 7559then : 7560 printf %s "(cached) " >&6 7561else $as_nop 7562 if test $ac_cv_working_alloca_h = yes; then 7563 ac_cv_func_alloca_works=yes 7564else 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7566/* end confdefs.h. */ 7567#include <stdlib.h> 7568#include <stddef.h> 7569#ifndef alloca 7570# ifdef __GNUC__ 7571# define alloca __builtin_alloca 7572# elif defined _MSC_VER 7573# include <malloc.h> 7574# define alloca _alloca 7575# else 7576# ifdef __cplusplus 7577extern "C" 7578# endif 7579void *alloca (size_t); 7580# endif 7581#endif 7582 7583int 7584main (void) 7585{ 7586char *p = (char *) alloca (1); 7587 if (p) return 0; 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592if ac_fn_c_try_link "$LINENO" 7593then : 7594 ac_cv_func_alloca_works=yes 7595else $as_nop 7596 ac_cv_func_alloca_works=no 7597fi 7598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7599 conftest$ac_exeext conftest.$ac_ext 7600fi 7601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 7602printf "%s\n" "$ac_cv_func_alloca_works" >&6; } 7603fi 7604 7605if test $ac_cv_func_alloca_works = yes; then 7606 7607printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 7608 7609else 7610 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7611# that cause trouble. Some versions do not even contain alloca or 7612# contain a buggy version. If you still want to use their alloca, 7613# use ar to extract alloca.o from them instead of compiling alloca.c. 7614 7615 7616 7617 7618 7619ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7620 7621printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h 7622 7623 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7625printf %s "checking stack direction for C alloca... " >&6; } 7626if test ${ac_cv_c_stack_direction+y} 7627then : 7628 printf %s "(cached) " >&6 7629else $as_nop 7630 if test "$cross_compiling" = yes 7631then : 7632 ac_cv_c_stack_direction=0 7633else $as_nop 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636$ac_includes_default 7637int 7638find_stack_direction (int *addr, int depth) 7639{ 7640 int dir, dummy = 0; 7641 if (! addr) 7642 addr = &dummy; 7643 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 7644 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 7645 return dir + dummy; 7646} 7647 7648int 7649main (int argc, char **argv) 7650{ 7651 return find_stack_direction (0, argc + !argv + 20) < 0; 7652} 7653_ACEOF 7654if ac_fn_c_try_run "$LINENO" 7655then : 7656 ac_cv_c_stack_direction=1 7657else $as_nop 7658 ac_cv_c_stack_direction=-1 7659fi 7660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7661 conftest.$ac_objext conftest.beam conftest.$ac_ext 7662fi 7663 7664fi 7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7666printf "%s\n" "$ac_cv_c_stack_direction" >&6; } 7667printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h 7668 7669 7670fi 7671 7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 7673printf %s "checking for C/C++ restrict keyword... " >&6; } 7674if test ${ac_cv_c_restrict+y} 7675then : 7676 printf %s "(cached) " >&6 7677else $as_nop 7678 ac_cv_c_restrict=no 7679 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 7680 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 7681 # Put 'restrict' last, because C++ lacks it. 7682 for ac_kw in __restrict__ __restrict _Restrict restrict; do 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684/* end confdefs.h. */ 7685typedef int *int_ptr; 7686 int foo (int_ptr $ac_kw ip) { return ip[0]; } 7687 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 7688 int bar (int ip[$ac_kw]) { return ip[0]; } 7689 7690int 7691main (void) 7692{ 7693int s[1]; 7694 int *$ac_kw t = s; 7695 t[0] = 0; 7696 return foo (t) + bar (t); 7697 7698 ; 7699 return 0; 7700} 7701_ACEOF 7702if ac_fn_c_try_compile "$LINENO" 7703then : 7704 ac_cv_c_restrict=$ac_kw 7705fi 7706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7707 test "$ac_cv_c_restrict" != no && break 7708 done 7709 7710fi 7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 7712printf "%s\n" "$ac_cv_c_restrict" >&6; } 7713 7714 case $ac_cv_c_restrict in 7715 restrict) ;; 7716 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 7717 ;; 7718 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 7719 ;; 7720 esac 7721 7722 7723 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 7725printf %s "checking whether the preprocessor supports include_next... " >&6; } 7726if test ${gl_cv_have_include_next+y} 7727then : 7728 printf %s "(cached) " >&6 7729else $as_nop 7730 rm -rf conftestd1a conftestd1b conftestd2 7731 mkdir conftestd1a conftestd1b conftestd2 7732 cat <<EOF > conftestd1a/conftest.h 7733#define DEFINED_IN_CONFTESTD1 7734#include_next <conftest.h> 7735#ifdef DEFINED_IN_CONFTESTD2 7736int foo; 7737#else 7738#error "include_next doesn't work" 7739#endif 7740EOF 7741 cat <<EOF > conftestd1b/conftest.h 7742#define DEFINED_IN_CONFTESTD1 7743#include <stdio.h> 7744#include_next <conftest.h> 7745#ifdef DEFINED_IN_CONFTESTD2 7746int foo; 7747#else 7748#error "include_next doesn't work" 7749#endif 7750EOF 7751 cat <<EOF > conftestd2/conftest.h 7752#ifndef DEFINED_IN_CONFTESTD1 7753#error "include_next test doesn't work" 7754#endif 7755#define DEFINED_IN_CONFTESTD2 7756EOF 7757 gl_save_CPPFLAGS="$CPPFLAGS" 7758 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761#include <conftest.h> 7762_ACEOF 7763if ac_fn_c_try_compile "$LINENO" 7764then : 7765 gl_cv_have_include_next=yes 7766else $as_nop 7767 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769/* end confdefs.h. */ 7770#include <conftest.h> 7771_ACEOF 7772if ac_fn_c_try_compile "$LINENO" 7773then : 7774 gl_cv_have_include_next=buggy 7775else $as_nop 7776 gl_cv_have_include_next=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7779 7780fi 7781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7782 CPPFLAGS="$gl_save_CPPFLAGS" 7783 rm -rf conftestd1a conftestd1b conftestd2 7784 7785fi 7786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 7787printf "%s\n" "$gl_cv_have_include_next" >&6; } 7788 PRAGMA_SYSTEM_HEADER= 7789 if test $gl_cv_have_include_next = yes; then 7790 INCLUDE_NEXT=include_next 7791 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 7792 if test -n "$GCC"; then 7793 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 7794 fi 7795 else 7796 if test $gl_cv_have_include_next = buggy; then 7797 INCLUDE_NEXT=include 7798 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 7799 else 7800 INCLUDE_NEXT=include 7801 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 7802 fi 7803 fi 7804 7805 7806 7807 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 7809printf %s "checking whether source code line length is unlimited... " >&6; } 7810if test ${gl_cv_source_line_length_unlimited+y} 7811then : 7812 printf %s "(cached) " >&6 7813else $as_nop 7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7815/* end confdefs.h. */ 7816 7817#ifdef __TANDEM 7818choke me 7819#endif 7820 7821_ACEOF 7822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7823 $EGREP "choke me" >/dev/null 2>&1 7824then : 7825 gl_cv_source_line_length_unlimited=no 7826else $as_nop 7827 gl_cv_source_line_length_unlimited=yes 7828fi 7829rm -rf conftest* 7830 7831 7832fi 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 7834printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } 7835 if test $gl_cv_source_line_length_unlimited = no; then 7836 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 7837 else 7838 PRAGMA_COLUMNS= 7839 fi 7840 7841 7842 7843 7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 7845printf %s "checking for complete errno.h... " >&6; } 7846if test ${gl_cv_header_errno_h_complete+y} 7847then : 7848 printf %s "(cached) " >&6 7849else $as_nop 7850 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854#include <errno.h> 7855#if !defined ETXTBSY 7856booboo 7857#endif 7858#if !defined ENOMSG 7859booboo 7860#endif 7861#if !defined EIDRM 7862booboo 7863#endif 7864#if !defined ENOLINK 7865booboo 7866#endif 7867#if !defined EPROTO 7868booboo 7869#endif 7870#if !defined EMULTIHOP 7871booboo 7872#endif 7873#if !defined EBADMSG 7874booboo 7875#endif 7876#if !defined EOVERFLOW 7877booboo 7878#endif 7879#if !defined ENOTSUP 7880booboo 7881#endif 7882#if !defined ENETRESET 7883booboo 7884#endif 7885#if !defined ECONNABORTED 7886booboo 7887#endif 7888#if !defined ESTALE 7889booboo 7890#endif 7891#if !defined EDQUOT 7892booboo 7893#endif 7894#if !defined ECANCELED 7895booboo 7896#endif 7897#if !defined EOWNERDEAD 7898booboo 7899#endif 7900#if !defined ENOTRECOVERABLE 7901booboo 7902#endif 7903#if !defined EILSEQ 7904booboo 7905#endif 7906 7907_ACEOF 7908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7909 $EGREP "booboo" >/dev/null 2>&1 7910then : 7911 gl_cv_header_errno_h_complete=no 7912else $as_nop 7913 gl_cv_header_errno_h_complete=yes 7914fi 7915rm -rf conftest* 7916 7917 7918fi 7919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 7920printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; } 7921 if test $gl_cv_header_errno_h_complete = yes; then 7922 ERRNO_H='' 7923 else 7924 7925 7926 7927 7928 7929 7930 7931 7932 if test $gl_cv_have_include_next = yes; then 7933 gl_cv_next_errno_h='<'errno.h'>' 7934 else 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 7936printf %s "checking absolute name of <errno.h>... " >&6; } 7937if test ${gl_cv_next_errno_h+y} 7938then : 7939 printf %s "(cached) " >&6 7940else $as_nop 7941 7942 7943 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946#include <errno.h> 7947_ACEOF 7948 case "$host_os" in 7949 aix*) gl_absname_cpp="$ac_cpp -C" ;; 7950 *) gl_absname_cpp="$ac_cpp" ;; 7951 esac 7952 7953 case "$host_os" in 7954 mingw*) 7955 gl_dirsep_regex='[/\\]' 7956 ;; 7957 *) 7958 gl_dirsep_regex='\/' 7959 ;; 7960 esac 7961 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 7962 gl_header_literal_regex=`echo 'errno.h' \ 7963 | sed -e "$gl_make_literal_regex_sed"` 7964 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 7965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 7966 s|^/[^/]|//&| 7967 p 7968 q 7969 }' 7970 7971 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 7972 sed -n "$gl_absolute_header_sed"` 7973 7974 gl_header=$gl_cv_absolute_errno_h 7975 gl_cv_next_errno_h='"'$gl_header'"' 7976 7977 7978fi 7979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 7980printf "%s\n" "$gl_cv_next_errno_h" >&6; } 7981 fi 7982 NEXT_ERRNO_H=$gl_cv_next_errno_h 7983 7984 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 7985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 7986 gl_next_as_first_directive='<'errno.h'>' 7987 else 7988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 7989 gl_next_as_first_directive=$gl_cv_next_errno_h 7990 fi 7991 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 7992 7993 7994 7995 7996 ERRNO_H='errno.h' 7997 fi 7998 7999 if test -n "$ERRNO_H"; then 8000 GL_GENERATE_ERRNO_H_TRUE= 8001 GL_GENERATE_ERRNO_H_FALSE='#' 8002else 8003 GL_GENERATE_ERRNO_H_TRUE='#' 8004 GL_GENERATE_ERRNO_H_FALSE= 8005fi 8006 8007 8008 if test -n "$ERRNO_H"; then 8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 8010printf %s "checking for EMULTIHOP value... " >&6; } 8011if test ${gl_cv_header_errno_h_EMULTIHOP+y} 8012then : 8013 printf %s "(cached) " >&6 8014else $as_nop 8015 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018 8019#include <errno.h> 8020#ifdef EMULTIHOP 8021yes 8022#endif 8023 8024_ACEOF 8025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8026 $EGREP "yes" >/dev/null 2>&1 8027then : 8028 gl_cv_header_errno_h_EMULTIHOP=yes 8029else $as_nop 8030 gl_cv_header_errno_h_EMULTIHOP=no 8031fi 8032rm -rf conftest* 8033 8034 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8036/* end confdefs.h. */ 8037 8038#define _XOPEN_SOURCE_EXTENDED 1 8039#include <errno.h> 8040#ifdef EMULTIHOP 8041yes 8042#endif 8043 8044_ACEOF 8045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8046 $EGREP "yes" >/dev/null 2>&1 8047then : 8048 gl_cv_header_errno_h_EMULTIHOP=hidden 8049fi 8050rm -rf conftest* 8051 8052 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 8053 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 8054#define _XOPEN_SOURCE_EXTENDED 1 8055#include <errno.h> 8056/* The following two lines are a workaround against an autoconf-2.52 bug. */ 8057#include <stdio.h> 8058#include <stdlib.h> 8059" 8060then : 8061 8062fi 8063 8064 fi 8065 fi 8066 8067fi 8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 8069printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 8070 case $gl_cv_header_errno_h_EMULTIHOP in 8071 yes | no) 8072 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 8073 ;; 8074 *) 8075 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 8076 ;; 8077 esac 8078 8079 8080 fi 8081 8082 8083 if test -n "$ERRNO_H"; then 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 8085printf %s "checking for ENOLINK value... " >&6; } 8086if test ${gl_cv_header_errno_h_ENOLINK+y} 8087then : 8088 printf %s "(cached) " >&6 8089else $as_nop 8090 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093 8094#include <errno.h> 8095#ifdef ENOLINK 8096yes 8097#endif 8098 8099_ACEOF 8100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8101 $EGREP "yes" >/dev/null 2>&1 8102then : 8103 gl_cv_header_errno_h_ENOLINK=yes 8104else $as_nop 8105 gl_cv_header_errno_h_ENOLINK=no 8106fi 8107rm -rf conftest* 8108 8109 if test $gl_cv_header_errno_h_ENOLINK = no; then 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112 8113#define _XOPEN_SOURCE_EXTENDED 1 8114#include <errno.h> 8115#ifdef ENOLINK 8116yes 8117#endif 8118 8119_ACEOF 8120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8121 $EGREP "yes" >/dev/null 2>&1 8122then : 8123 gl_cv_header_errno_h_ENOLINK=hidden 8124fi 8125rm -rf conftest* 8126 8127 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 8128 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 8129#define _XOPEN_SOURCE_EXTENDED 1 8130#include <errno.h> 8131/* The following two lines are a workaround against an autoconf-2.52 bug. */ 8132#include <stdio.h> 8133#include <stdlib.h> 8134" 8135then : 8136 8137fi 8138 8139 fi 8140 fi 8141 8142fi 8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 8144printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } 8145 case $gl_cv_header_errno_h_ENOLINK in 8146 yes | no) 8147 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 8148 ;; 8149 *) 8150 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 8151 ;; 8152 esac 8153 8154 8155 fi 8156 8157 8158 if test -n "$ERRNO_H"; then 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 8160printf %s "checking for EOVERFLOW value... " >&6; } 8161if test ${gl_cv_header_errno_h_EOVERFLOW+y} 8162then : 8163 printf %s "(cached) " >&6 8164else $as_nop 8165 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168 8169#include <errno.h> 8170#ifdef EOVERFLOW 8171yes 8172#endif 8173 8174_ACEOF 8175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8176 $EGREP "yes" >/dev/null 2>&1 8177then : 8178 gl_cv_header_errno_h_EOVERFLOW=yes 8179else $as_nop 8180 gl_cv_header_errno_h_EOVERFLOW=no 8181fi 8182rm -rf conftest* 8183 8184 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187 8188#define _XOPEN_SOURCE_EXTENDED 1 8189#include <errno.h> 8190#ifdef EOVERFLOW 8191yes 8192#endif 8193 8194_ACEOF 8195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8196 $EGREP "yes" >/dev/null 2>&1 8197then : 8198 gl_cv_header_errno_h_EOVERFLOW=hidden 8199fi 8200rm -rf conftest* 8201 8202 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 8203 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 8204#define _XOPEN_SOURCE_EXTENDED 1 8205#include <errno.h> 8206/* The following two lines are a workaround against an autoconf-2.52 bug. */ 8207#include <stdio.h> 8208#include <stdlib.h> 8209" 8210then : 8211 8212fi 8213 8214 fi 8215 fi 8216 8217fi 8218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 8219printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 8220 case $gl_cv_header_errno_h_EOVERFLOW in 8221 yes | no) 8222 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 8223 ;; 8224 *) 8225 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 8226 ;; 8227 esac 8228 8229 8230 fi 8231 8232 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 8234printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 8235if test ${ac_cv_c_undeclared_builtin_options+y} 8236then : 8237 printf %s "(cached) " >&6 8238else $as_nop 8239 ac_save_CFLAGS=$CFLAGS 8240 ac_cv_c_undeclared_builtin_options='cannot detect' 8241 for ac_arg in '' -fno-builtin; do 8242 CFLAGS="$ac_save_CFLAGS $ac_arg" 8243 # This test program should *not* compile successfully. 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246 8247int 8248main (void) 8249{ 8250(void) strchr; 8251 ; 8252 return 0; 8253} 8254_ACEOF 8255if ac_fn_c_try_compile "$LINENO" 8256then : 8257 8258else $as_nop 8259 # This test program should compile successfully. 8260 # No library function is consistently available on 8261 # freestanding implementations, so test against a dummy 8262 # declaration. Include always-available headers on the 8263 # off chance that they somehow elicit warnings. 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266#include <float.h> 8267#include <limits.h> 8268#include <stdarg.h> 8269#include <stddef.h> 8270extern void ac_decl (int, char *); 8271 8272int 8273main (void) 8274{ 8275(void) ac_decl (0, (char *) 0); 8276 (void) ac_decl; 8277 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO" 8283then : 8284 if test x"$ac_arg" = x 8285then : 8286 ac_cv_c_undeclared_builtin_options='none needed' 8287else $as_nop 8288 ac_cv_c_undeclared_builtin_options=$ac_arg 8289fi 8290 break 8291fi 8292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8295 done 8296 CFLAGS=$ac_save_CFLAGS 8297 8298fi 8299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 8300printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 8301 case $ac_cv_c_undeclared_builtin_options in #( 8302 'cannot detect') : 8303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8304printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 8305as_fn_error $? "cannot make $CC report undeclared builtins 8306See \`config.log' for more details" "$LINENO" 5; } ;; #( 8307 'none needed') : 8308 ac_c_undeclared_builtin_options='' ;; #( 8309 *) : 8310 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 8311esac 8312 8313ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 8314if test "x$ac_cv_have_decl_strerror_r" = xyes 8315then : 8316 ac_have_decl=1 8317else $as_nop 8318 ac_have_decl=0 8319fi 8320printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h 8321 8322 8323if test $ac_cv_have_decl_strerror_r = yes; then 8324 # For backward compatibility's sake, define HAVE_STRERROR_R. 8325 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well 8326 # as AC_CHECK_DECLS_ONCE.) 8327 8328printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 8329 8330fi 8331 8332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8333printf %s "checking whether strerror_r returns char *... " >&6; } 8334if test ${ac_cv_func_strerror_r_char_p+y} 8335then : 8336 printf %s "(cached) " >&6 8337else $as_nop 8338 8339 ac_cv_func_strerror_r_char_p=no 8340 if test $ac_cv_have_decl_strerror_r = yes; then 8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343#include <string.h> 8344int 8345main (void) 8346{ 8347 8348 char buf[100]; 8349 char x = *strerror_r (0, buf, sizeof buf); 8350 char *p = strerror_r (0, buf, sizeof buf); 8351 return !p || x; 8352 8353 ; 8354 return 0; 8355} 8356_ACEOF 8357if ac_fn_c_try_compile "$LINENO" 8358then : 8359 ac_cv_func_strerror_r_char_p=yes 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8362 8363 fi 8364 8365fi 8366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8367printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } 8368if test $ac_cv_func_strerror_r_char_p = yes; then 8369 8370printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8371 8372fi 8373 8374 8375 XGETTEXT_EXTRA_OPTIONS= 8376 8377 8378 8379 8380 8381 GNULIB_CREAT=0; 8382 GNULIB_FCNTL=0; 8383 GNULIB_NONBLOCKING=0; 8384 GNULIB_OPEN=0; 8385 GNULIB_OPENAT=0; 8386 GNULIB_MDA_CREAT=1; 8387 GNULIB_MDA_OPEN=1; 8388 HAVE_FCNTL=1; 8389 HAVE_OPENAT=1; 8390 REPLACE_CREAT=0; 8391 REPLACE_FCNTL=0; 8392 REPLACE_OPEN=0; 8393 REPLACE_OPENAT=0; 8394 8395ac_func= 8396for ac_item in $ac_func_c_list 8397do 8398 if test $ac_func; then 8399 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 8400 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 8401 echo "#define $ac_item 1" >> confdefs.h 8402 fi 8403 ac_func= 8404 else 8405 ac_func=$ac_item 8406 fi 8407done 8408gl_mda_defines=' 8409#if defined _WIN32 && !defined __CYGWIN__ 8410#define access _access 8411#define chdir _chdir 8412#define chmod _chmod 8413#define close _close 8414#define creat _creat 8415#define dup _dup 8416#define dup2 _dup2 8417#define ecvt _ecvt 8418#define execl _execl 8419#define execle _execle 8420#define execlp _execlp 8421#define execv _execv 8422#define execve _execve 8423#define execvp _execvp 8424#define execvpe _execvpe 8425#define fcloseall _fcloseall 8426#define fcvt _fcvt 8427#define fdopen _fdopen 8428#define fileno _fileno 8429#define gcvt _gcvt 8430#define getcwd _getcwd 8431#define getpid _getpid 8432#define getw _getw 8433#define isatty _isatty 8434#define j0 _j0 8435#define j1 _j1 8436#define jn _jn 8437#define lfind _lfind 8438#define lsearch _lsearch 8439#define lseek _lseek 8440#define memccpy _memccpy 8441#define mkdir _mkdir 8442#define mktemp _mktemp 8443#define open _open 8444#define putenv _putenv 8445#define putw _putw 8446#define read _read 8447#define rmdir _rmdir 8448#define strdup _strdup 8449#define swab _swab 8450#define tempnam _tempnam 8451#define tzset _tzset 8452#define umask _umask 8453#define unlink _unlink 8454#define utime _utime 8455#define wcsdup _wcsdup 8456#define write _write 8457#define y0 _y0 8458#define y1 _y1 8459#define yn _yn 8460#endif 8461' 8462 8463 8464 8465 8466 8467 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 8469printf %s "checking for working fcntl.h... " >&6; } 8470if test ${gl_cv_header_working_fcntl_h+y} 8471then : 8472 printf %s "(cached) " >&6 8473else $as_nop 8474 if test "$cross_compiling" = yes 8475then : 8476 case "$host_os" in 8477 # Guess 'no' on native Windows. 8478 mingw*) gl_cv_header_working_fcntl_h='no' ;; 8479 *) gl_cv_header_working_fcntl_h=cross-compiling ;; 8480 esac 8481 8482else $as_nop 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485#include <sys/types.h> 8486 #include <sys/stat.h> 8487 #if HAVE_UNISTD_H 8488 # include <unistd.h> 8489 #else /* on Windows with MSVC */ 8490 # include <io.h> 8491 # include <stdlib.h> 8492 # defined sleep(n) _sleep ((n) * 1000) 8493 #endif 8494 #include <fcntl.h> 8495 8496 8497$gl_mda_defines 8498 8499 #ifndef O_NOATIME 8500 #define O_NOATIME 0 8501 #endif 8502 #ifndef O_NOFOLLOW 8503 #define O_NOFOLLOW 0 8504 #endif 8505 static int const constants[] = 8506 { 8507 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 8508 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 8509 }; 8510 8511int 8512main (void) 8513{ 8514 8515 int result = !constants; 8516 #if HAVE_SYMLINK 8517 { 8518 static char const sym[] = "conftest.sym"; 8519 if (symlink ("/dev/null", sym) != 0) 8520 result |= 2; 8521 else 8522 { 8523 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 8524 if (fd >= 0) 8525 { 8526 close (fd); 8527 result |= 4; 8528 } 8529 } 8530 if (unlink (sym) != 0 || symlink (".", sym) != 0) 8531 result |= 2; 8532 else 8533 { 8534 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 8535 if (fd >= 0) 8536 { 8537 close (fd); 8538 result |= 4; 8539 } 8540 } 8541 unlink (sym); 8542 } 8543 #endif 8544 { 8545 static char const file[] = "confdefs.h"; 8546 int fd = open (file, O_RDONLY | O_NOATIME); 8547 if (fd < 0) 8548 result |= 8; 8549 else 8550 { 8551 struct stat st0; 8552 if (fstat (fd, &st0) != 0) 8553 result |= 16; 8554 else 8555 { 8556 char c; 8557 sleep (1); 8558 if (read (fd, &c, 1) != 1) 8559 result |= 24; 8560 else 8561 { 8562 if (close (fd) != 0) 8563 result |= 32; 8564 else 8565 { 8566 struct stat st1; 8567 if (stat (file, &st1) != 0) 8568 result |= 40; 8569 else 8570 if (st0.st_atime != st1.st_atime) 8571 result |= 64; 8572 } 8573 } 8574 } 8575 } 8576 } 8577 return result; 8578 ; 8579 return 0; 8580} 8581_ACEOF 8582if ac_fn_c_try_run "$LINENO" 8583then : 8584 gl_cv_header_working_fcntl_h=yes 8585else $as_nop 8586 case $? in #( 8587 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 8588 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 8589 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 8590 *) gl_cv_header_working_fcntl_h='no';; 8591 esac 8592fi 8593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8594 conftest.$ac_objext conftest.beam conftest.$ac_ext 8595fi 8596 8597 8598fi 8599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 8600printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } 8601 8602 case $gl_cv_header_working_fcntl_h in #( 8603 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 8604 *) ac_val=1;; 8605 esac 8606 8607printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h 8608 8609 8610 case $gl_cv_header_working_fcntl_h in #( 8611 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 8612 *) ac_val=1;; 8613 esac 8614 8615printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h 8616 8617 8618 8619 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 8620" 8621if test "x$ac_cv_type_pid_t" = xyes 8622then : 8623 8624else $as_nop 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627 8628 #if defined _WIN64 && !defined __CYGWIN__ 8629 LLP64 8630 #endif 8631 8632int 8633main (void) 8634{ 8635 8636 ; 8637 return 0; 8638} 8639 8640_ACEOF 8641if ac_fn_c_try_compile "$LINENO" 8642then : 8643 ac_pid_type='int' 8644else $as_nop 8645 ac_pid_type='__int64' 8646fi 8647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8648 8649printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 8650 8651 8652fi 8653 8654 8655ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8656if test "x$ac_cv_type_mode_t" = xyes 8657then : 8658 8659else $as_nop 8660 8661printf "%s\n" "#define mode_t int" >>confdefs.h 8662 8663fi 8664 8665 8666 GNULIB_ACCESS=0; 8667 GNULIB_CHDIR=0; 8668 GNULIB_CHOWN=0; 8669 GNULIB_CLOSE=0; 8670 GNULIB_COPY_FILE_RANGE=0; 8671 GNULIB_DUP=0; 8672 GNULIB_DUP2=0; 8673 GNULIB_DUP3=0; 8674 GNULIB_ENVIRON=0; 8675 GNULIB_EUIDACCESS=0; 8676 GNULIB_EXECL=0; 8677 GNULIB_EXECLE=0; 8678 GNULIB_EXECLP=0; 8679 GNULIB_EXECV=0; 8680 GNULIB_EXECVE=0; 8681 GNULIB_EXECVP=0; 8682 GNULIB_EXECVPE=0; 8683 GNULIB_FACCESSAT=0; 8684 GNULIB_FCHDIR=0; 8685 GNULIB_FCHOWNAT=0; 8686 GNULIB_FDATASYNC=0; 8687 GNULIB_FSYNC=0; 8688 GNULIB_FTRUNCATE=0; 8689 GNULIB_GETCWD=0; 8690 GNULIB_GETDOMAINNAME=0; 8691 GNULIB_GETDTABLESIZE=0; 8692 GNULIB_GETENTROPY=0; 8693 GNULIB_GETGROUPS=0; 8694 GNULIB_GETHOSTNAME=0; 8695 GNULIB_GETLOGIN=0; 8696 GNULIB_GETLOGIN_R=0; 8697 GNULIB_GETOPT_POSIX=0; 8698 GNULIB_GETPAGESIZE=0; 8699 GNULIB_GETPASS=0; 8700 GNULIB_GETUSERSHELL=0; 8701 GNULIB_GROUP_MEMBER=0; 8702 GNULIB_ISATTY=0; 8703 GNULIB_LCHOWN=0; 8704 GNULIB_LINK=0; 8705 GNULIB_LINKAT=0; 8706 GNULIB_LSEEK=0; 8707 GNULIB_PIPE=0; 8708 GNULIB_PIPE2=0; 8709 GNULIB_PREAD=0; 8710 GNULIB_PWRITE=0; 8711 GNULIB_READ=0; 8712 GNULIB_READLINK=0; 8713 GNULIB_READLINKAT=0; 8714 GNULIB_RMDIR=0; 8715 GNULIB_SETHOSTNAME=0; 8716 GNULIB_SLEEP=0; 8717 GNULIB_SYMLINK=0; 8718 GNULIB_SYMLINKAT=0; 8719 GNULIB_TRUNCATE=0; 8720 GNULIB_TTYNAME_R=0; 8721 GNULIB_UNISTD_H_NONBLOCKING=0; 8722 GNULIB_UNISTD_H_SIGPIPE=0; 8723 GNULIB_UNLINK=0; 8724 GNULIB_UNLINKAT=0; 8725 GNULIB_USLEEP=0; 8726 GNULIB_WRITE=0; 8727 GNULIB_MDA_ACCESS=1; 8728 GNULIB_MDA_CHDIR=1; 8729 GNULIB_MDA_CLOSE=1; 8730 GNULIB_MDA_DUP=1; 8731 GNULIB_MDA_DUP2=1; 8732 GNULIB_MDA_EXECL=1; 8733 GNULIB_MDA_EXECLE=1; 8734 GNULIB_MDA_EXECLP=1; 8735 GNULIB_MDA_EXECV=1; 8736 GNULIB_MDA_EXECVE=1; 8737 GNULIB_MDA_EXECVP=1; 8738 GNULIB_MDA_EXECVPE=1; 8739 GNULIB_MDA_GETCWD=1; 8740 GNULIB_MDA_GETPID=1; 8741 GNULIB_MDA_ISATTY=1; 8742 GNULIB_MDA_LSEEK=1; 8743 GNULIB_MDA_READ=1; 8744 GNULIB_MDA_RMDIR=1; 8745 GNULIB_MDA_SWAB=1; 8746 GNULIB_MDA_UNLINK=1; 8747 GNULIB_MDA_WRITE=1; 8748 HAVE_CHOWN=1; 8749 HAVE_COPY_FILE_RANGE=1; 8750 HAVE_DUP3=1; 8751 HAVE_EUIDACCESS=1; 8752 HAVE_EXECVPE=1; 8753 HAVE_FACCESSAT=1; 8754 HAVE_FCHDIR=1; 8755 HAVE_FCHOWNAT=1; 8756 HAVE_FDATASYNC=1; 8757 HAVE_FSYNC=1; 8758 HAVE_FTRUNCATE=1; 8759 HAVE_GETDTABLESIZE=1; 8760 HAVE_GETENTROPY=1; 8761 HAVE_GETGROUPS=1; 8762 HAVE_GETHOSTNAME=1; 8763 HAVE_GETLOGIN=1; 8764 HAVE_GETPAGESIZE=1; 8765 HAVE_GETPASS=1; 8766 HAVE_GROUP_MEMBER=1; 8767 HAVE_LCHOWN=1; 8768 HAVE_LINK=1; 8769 HAVE_LINKAT=1; 8770 HAVE_PIPE=1; 8771 HAVE_PIPE2=1; 8772 HAVE_PREAD=1; 8773 HAVE_PWRITE=1; 8774 HAVE_READLINK=1; 8775 HAVE_READLINKAT=1; 8776 HAVE_SETHOSTNAME=1; 8777 HAVE_SLEEP=1; 8778 HAVE_SYMLINK=1; 8779 HAVE_SYMLINKAT=1; 8780 HAVE_UNLINKAT=1; 8781 HAVE_USLEEP=1; 8782 HAVE_DECL_ENVIRON=1; 8783 HAVE_DECL_EXECVPE=1; 8784 HAVE_DECL_FCHDIR=1; 8785 HAVE_DECL_FDATASYNC=1; 8786 HAVE_DECL_GETDOMAINNAME=1; 8787 HAVE_DECL_GETLOGIN=1; 8788 HAVE_DECL_GETLOGIN_R=1; 8789 HAVE_DECL_GETPAGESIZE=1; 8790 HAVE_DECL_GETUSERSHELL=1; 8791 HAVE_DECL_SETHOSTNAME=1; 8792 HAVE_DECL_TRUNCATE=1; 8793 HAVE_DECL_TTYNAME_R=1; 8794 HAVE_OS_H=0; 8795 HAVE_SYS_PARAM_H=0; 8796 REPLACE_ACCESS=0; 8797 REPLACE_CHOWN=0; 8798 REPLACE_CLOSE=0; 8799 REPLACE_DUP=0; 8800 REPLACE_DUP2=0; 8801 REPLACE_EXECL=0; 8802 REPLACE_EXECLE=0; 8803 REPLACE_EXECLP=0; 8804 REPLACE_EXECV=0; 8805 REPLACE_EXECVE=0; 8806 REPLACE_EXECVP=0; 8807 REPLACE_EXECVPE=0; 8808 REPLACE_FACCESSAT=0; 8809 REPLACE_FCHOWNAT=0; 8810 REPLACE_FTRUNCATE=0; 8811 REPLACE_GETCWD=0; 8812 REPLACE_GETDOMAINNAME=0; 8813 REPLACE_GETDTABLESIZE=0; 8814 REPLACE_GETLOGIN_R=0; 8815 REPLACE_GETGROUPS=0; 8816 REPLACE_GETPAGESIZE=0; 8817 REPLACE_GETPASS=0; 8818 REPLACE_ISATTY=0; 8819 REPLACE_LCHOWN=0; 8820 REPLACE_LINK=0; 8821 REPLACE_LINKAT=0; 8822 REPLACE_LSEEK=0; 8823 REPLACE_PREAD=0; 8824 REPLACE_PWRITE=0; 8825 REPLACE_READ=0; 8826 REPLACE_READLINK=0; 8827 REPLACE_READLINKAT=0; 8828 REPLACE_RMDIR=0; 8829 REPLACE_SLEEP=0; 8830 REPLACE_SYMLINK=0; 8831 REPLACE_SYMLINKAT=0; 8832 REPLACE_TRUNCATE=0; 8833 REPLACE_TTYNAME_R=0; 8834 REPLACE_UNLINK=0; 8835 REPLACE_UNLINKAT=0; 8836 REPLACE_USLEEP=0; 8837 REPLACE_WRITE=0; 8838 UNISTD_H_HAVE_SYS_RANDOM_H=0; 8839 UNISTD_H_HAVE_WINSOCK2_H=0; 8840 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 if test $gl_cv_have_include_next = yes; then 8858 gl_cv_next_getopt_h='<'getopt.h'>' 8859 else 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 8861printf %s "checking absolute name of <getopt.h>... " >&6; } 8862if test ${gl_cv_next_getopt_h+y} 8863then : 8864 printf %s "(cached) " >&6 8865else $as_nop 8866 8867 if test $ac_cv_header_getopt_h = yes; then 8868 8869 8870 8871 8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8873/* end confdefs.h. */ 8874#include <getopt.h> 8875_ACEOF 8876 case "$host_os" in 8877 aix*) gl_absname_cpp="$ac_cpp -C" ;; 8878 *) gl_absname_cpp="$ac_cpp" ;; 8879 esac 8880 8881 case "$host_os" in 8882 mingw*) 8883 gl_dirsep_regex='[/\\]' 8884 ;; 8885 *) 8886 gl_dirsep_regex='\/' 8887 ;; 8888 esac 8889 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 8890 gl_header_literal_regex=`echo 'getopt.h' \ 8891 | sed -e "$gl_make_literal_regex_sed"` 8892 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 8893 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 8894 s|^/[^/]|//&| 8895 p 8896 q 8897 }' 8898 8899 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 8900 sed -n "$gl_absolute_header_sed"` 8901 8902 gl_header=$gl_cv_absolute_getopt_h 8903 gl_cv_next_getopt_h='"'$gl_header'"' 8904 else 8905 gl_cv_next_getopt_h='<'getopt.h'>' 8906 fi 8907 8908 8909fi 8910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 8911printf "%s\n" "$gl_cv_next_getopt_h" >&6; } 8912 fi 8913 NEXT_GETOPT_H=$gl_cv_next_getopt_h 8914 8915 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 8916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 8917 gl_next_as_first_directive='<'getopt.h'>' 8918 else 8919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 8920 gl_next_as_first_directive=$gl_cv_next_getopt_h 8921 fi 8922 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 8923 8924 8925 8926 8927 if test $ac_cv_header_getopt_h = yes; then 8928 HAVE_GETOPT_H=1 8929 else 8930 HAVE_GETOPT_H=0 8931 fi 8932 8933 8934 gl_replace_getopt= 8935 8936 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 8937 for ac_header in getopt.h 8938do : 8939 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 8940if test "x$ac_cv_header_getopt_h" = xyes 8941then : 8942 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 8943 8944else $as_nop 8945 gl_replace_getopt=yes 8946fi 8947 8948done 8949 fi 8950 8951 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 8952 8953 for ac_func in getopt_long_only 8954do : 8955 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 8956if test "x$ac_cv_func_getopt_long_only" = xyes 8957then : 8958 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h 8959 8960else $as_nop 8961 gl_replace_getopt=yes 8962fi 8963 8964done 8965 fi 8966 8967 if test -z "$gl_replace_getopt"; then 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 8969printf %s "checking whether getopt is POSIX compatible... " >&6; } 8970if test ${gl_cv_func_getopt_posix+y} 8971then : 8972 printf %s "(cached) " >&6 8973else $as_nop 8974 8975 if test $cross_compiling = no; then 8976 if test "$cross_compiling" = yes 8977then : 8978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 8980as_fn_error $? "cannot run test program while cross compiling 8981See \`config.log' for more details" "$LINENO" 5; } 8982else $as_nop 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985 8986#include <unistd.h> 8987#include <stdlib.h> 8988#include <string.h> 8989 8990int 8991main () 8992{ 8993 static char program[] = "program"; 8994 static char a[] = "-a"; 8995 static char foo[] = "foo"; 8996 static char bar[] = "bar"; 8997 char *argv[] = { program, a, foo, bar, NULL }; 8998 int c; 8999 9000 c = getopt (4, argv, "ab"); 9001 if (!(c == 'a')) 9002 return 1; 9003 c = getopt (4, argv, "ab"); 9004 if (!(c == -1)) 9005 return 2; 9006 if (!(optind == 2)) 9007 return 3; 9008 return 0; 9009} 9010 9011_ACEOF 9012if ac_fn_c_try_run "$LINENO" 9013then : 9014 gl_cv_func_getopt_posix=maybe 9015else $as_nop 9016 gl_cv_func_getopt_posix=no 9017fi 9018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9019 conftest.$ac_objext conftest.beam conftest.$ac_ext 9020fi 9021 9022 if test $gl_cv_func_getopt_posix = maybe; then 9023 if test "$cross_compiling" = yes 9024then : 9025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9026printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9027as_fn_error $? "cannot run test program while cross compiling 9028See \`config.log' for more details" "$LINENO" 5; } 9029else $as_nop 9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032 9033#include <unistd.h> 9034#include <stdlib.h> 9035#include <string.h> 9036 9037int 9038main () 9039{ 9040 static char program[] = "program"; 9041 static char donald[] = "donald"; 9042 static char p[] = "-p"; 9043 static char billy[] = "billy"; 9044 static char duck[] = "duck"; 9045 static char a[] = "-a"; 9046 static char bar[] = "bar"; 9047 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 9048 int c; 9049 9050 c = getopt (7, argv, "+abp:q:"); 9051 if (!(c == -1)) 9052 return 4; 9053 if (!(strcmp (argv[0], "program") == 0)) 9054 return 5; 9055 if (!(strcmp (argv[1], "donald") == 0)) 9056 return 6; 9057 if (!(strcmp (argv[2], "-p") == 0)) 9058 return 7; 9059 if (!(strcmp (argv[3], "billy") == 0)) 9060 return 8; 9061 if (!(strcmp (argv[4], "duck") == 0)) 9062 return 9; 9063 if (!(strcmp (argv[5], "-a") == 0)) 9064 return 10; 9065 if (!(strcmp (argv[6], "bar") == 0)) 9066 return 11; 9067 if (!(optind == 1)) 9068 return 12; 9069 return 0; 9070} 9071 9072_ACEOF 9073if ac_fn_c_try_run "$LINENO" 9074then : 9075 gl_cv_func_getopt_posix=maybe 9076else $as_nop 9077 gl_cv_func_getopt_posix=no 9078fi 9079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9080 conftest.$ac_objext conftest.beam conftest.$ac_ext 9081fi 9082 9083 fi 9084 if test $gl_cv_func_getopt_posix = maybe; then 9085 if test "$cross_compiling" = yes 9086then : 9087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9089as_fn_error $? "cannot run test program while cross compiling 9090See \`config.log' for more details" "$LINENO" 5; } 9091else $as_nop 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094 9095#include <unistd.h> 9096#include <stdlib.h> 9097#include <string.h> 9098 9099int 9100main () 9101{ 9102 static char program[] = "program"; 9103 static char ab[] = "-ab"; 9104 char *argv[3] = { program, ab, NULL }; 9105 if (getopt (2, argv, "ab:") != 'a') 9106 return 13; 9107 if (getopt (2, argv, "ab:") != '?') 9108 return 14; 9109 if (optopt != 'b') 9110 return 15; 9111 if (optind != 2) 9112 return 16; 9113 return 0; 9114} 9115 9116_ACEOF 9117if ac_fn_c_try_run "$LINENO" 9118then : 9119 gl_cv_func_getopt_posix=yes 9120else $as_nop 9121 gl_cv_func_getopt_posix=no 9122fi 9123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9124 conftest.$ac_objext conftest.beam conftest.$ac_ext 9125fi 9126 9127 fi 9128 else 9129 case "$host_os" in 9130 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 9131 *) gl_cv_func_getopt_posix="guessing yes";; 9132 esac 9133 fi 9134 9135fi 9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 9137printf "%s\n" "$gl_cv_func_getopt_posix" >&6; } 9138 case "$gl_cv_func_getopt_posix" in 9139 *no) gl_replace_getopt=yes ;; 9140 esac 9141 fi 9142 9143 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 9145printf %s "checking for working GNU getopt function... " >&6; } 9146if test ${gl_cv_func_getopt_gnu+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 9151 # optstring is necessary for programs like m4 that have POSIX-mandated 9152 # semantics for supporting options interspersed with files. 9153 # Also, since getopt_long is a GNU extension, we require optind=0. 9154 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 9155 # so take care to revert to the correct (non-)export state. 9156 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 9157 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 9158 xx) gl_had_POSIXLY_CORRECT=exported ;; 9159 x) gl_had_POSIXLY_CORRECT=yes ;; 9160 *) gl_had_POSIXLY_CORRECT= ;; 9161 esac 9162 POSIXLY_CORRECT=1 9163 export POSIXLY_CORRECT 9164 if test "$cross_compiling" = yes 9165then : 9166 gl_cv_func_getopt_gnu="$gl_cross_guess_normal" 9167 9168else $as_nop 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171#include <getopt.h> 9172 #include <stddef.h> 9173 #include <string.h> 9174 9175#include <stdlib.h> 9176#if defined __MACH__ && defined __APPLE__ 9177/* Avoid a crash on Mac OS X. */ 9178#include <mach/mach.h> 9179#include <mach/mach_error.h> 9180#include <mach/thread_status.h> 9181#include <mach/exception.h> 9182#include <mach/task.h> 9183#include <pthread.h> 9184/* The exception port on which our thread listens. */ 9185static mach_port_t our_exception_port; 9186/* The main function of the thread listening for exceptions of type 9187 EXC_BAD_ACCESS. */ 9188static void * 9189mach_exception_thread (void *arg) 9190{ 9191 /* Buffer for a message to be received. */ 9192 struct { 9193 mach_msg_header_t head; 9194 mach_msg_body_t msgh_body; 9195 char data[1024]; 9196 } msg; 9197 mach_msg_return_t retval; 9198 /* Wait for a message on the exception port. */ 9199 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 9200 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 9201 if (retval != MACH_MSG_SUCCESS) 9202 abort (); 9203 exit (1); 9204} 9205static void 9206nocrash_init (void) 9207{ 9208 mach_port_t self = mach_task_self (); 9209 /* Allocate a port on which the thread shall listen for exceptions. */ 9210 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 9211 == KERN_SUCCESS) { 9212 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 9213 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 9214 MACH_MSG_TYPE_MAKE_SEND) 9215 == KERN_SUCCESS) { 9216 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 9217 for us. */ 9218 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 9219 /* Create the thread listening on the exception port. */ 9220 pthread_attr_t attr; 9221 pthread_t thread; 9222 if (pthread_attr_init (&attr) == 0 9223 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 9224 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 9225 pthread_attr_destroy (&attr); 9226 /* Replace the exception port info for these exceptions with our own. 9227 Note that we replace the exception port for the entire task, not only 9228 for a particular thread. This has the effect that when our exception 9229 port gets the message, the thread specific exception port has already 9230 been asked, and we don't need to bother about it. 9231 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 9232 task_set_exception_ports (self, mask, our_exception_port, 9233 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 9234 } 9235 } 9236 } 9237} 9238#elif defined _WIN32 && ! defined __CYGWIN__ 9239/* Avoid a crash on native Windows. */ 9240#define WIN32_LEAN_AND_MEAN 9241#include <windows.h> 9242#include <winerror.h> 9243static LONG WINAPI 9244exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 9245{ 9246 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 9247 { 9248 case EXCEPTION_ACCESS_VIOLATION: 9249 case EXCEPTION_IN_PAGE_ERROR: 9250 case EXCEPTION_STACK_OVERFLOW: 9251 case EXCEPTION_GUARD_PAGE: 9252 case EXCEPTION_PRIV_INSTRUCTION: 9253 case EXCEPTION_ILLEGAL_INSTRUCTION: 9254 case EXCEPTION_DATATYPE_MISALIGNMENT: 9255 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 9256 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 9257 exit (1); 9258 } 9259 return EXCEPTION_CONTINUE_SEARCH; 9260} 9261static void 9262nocrash_init (void) 9263{ 9264 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 9265} 9266#else 9267/* Avoid a crash on POSIX systems. */ 9268#include <signal.h> 9269#include <unistd.h> 9270/* A POSIX signal handler. */ 9271static void 9272exception_handler (int sig) 9273{ 9274 _exit (1); 9275} 9276static void 9277nocrash_init (void) 9278{ 9279#ifdef SIGSEGV 9280 signal (SIGSEGV, exception_handler); 9281#endif 9282#ifdef SIGBUS 9283 signal (SIGBUS, exception_handler); 9284#endif 9285} 9286#endif 9287 9288 9289int 9290main (void) 9291{ 9292 9293 int result = 0; 9294 9295 nocrash_init(); 9296 9297 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 9298 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 9299 OSF/1 5.1, Solaris 10. */ 9300 { 9301 static char conftest[] = "conftest"; 9302 static char plus[] = "-+"; 9303 char *argv[3] = { conftest, plus, NULL }; 9304 opterr = 0; 9305 if (getopt (2, argv, "+a") != '?') 9306 result |= 1; 9307 } 9308 /* This code succeeds on glibc 2.8, mingw, 9309 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 9310 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 9311 { 9312 static char program[] = "program"; 9313 static char p[] = "-p"; 9314 static char foo[] = "foo"; 9315 static char bar[] = "bar"; 9316 char *argv[] = { program, p, foo, bar, NULL }; 9317 9318 optind = 1; 9319 if (getopt (4, argv, "p::") != 'p') 9320 result |= 2; 9321 else if (optarg != NULL) 9322 result |= 4; 9323 else if (getopt (4, argv, "p::") != -1) 9324 result |= 6; 9325 else if (optind != 2) 9326 result |= 8; 9327 } 9328 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 9329 { 9330 static char program[] = "program"; 9331 static char foo[] = "foo"; 9332 static char p[] = "-p"; 9333 char *argv[] = { program, foo, p, NULL }; 9334 optind = 0; 9335 if (getopt (3, argv, "-p") != 1) 9336 result |= 16; 9337 else if (getopt (3, argv, "-p") != 'p') 9338 result |= 16; 9339 } 9340 /* This code fails on glibc 2.11. */ 9341 { 9342 static char program[] = "program"; 9343 static char b[] = "-b"; 9344 static char a[] = "-a"; 9345 char *argv[] = { program, b, a, NULL }; 9346 optind = opterr = 0; 9347 if (getopt (3, argv, "+:a:b") != 'b') 9348 result |= 32; 9349 else if (getopt (3, argv, "+:a:b") != ':') 9350 result |= 32; 9351 } 9352 /* This code dumps core on glibc 2.14. */ 9353 { 9354 static char program[] = "program"; 9355 static char w[] = "-W"; 9356 static char dummy[] = "dummy"; 9357 char *argv[] = { program, w, dummy, NULL }; 9358 optind = opterr = 1; 9359 if (getopt (3, argv, "W;") != 'W') 9360 result |= 64; 9361 } 9362 return result; 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368if ac_fn_c_try_run "$LINENO" 9369then : 9370 gl_cv_func_getopt_gnu=yes 9371else $as_nop 9372 gl_cv_func_getopt_gnu=no 9373fi 9374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9375 conftest.$ac_objext conftest.beam conftest.$ac_ext 9376fi 9377 9378 case $gl_had_POSIXLY_CORRECT in 9379 exported) ;; 9380 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 9381 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 9382 esac 9383 9384fi 9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 9386printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; } 9387 if test "$gl_cv_func_getopt_gnu" != yes; then 9388 gl_replace_getopt=yes 9389 else 9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 9391printf %s "checking for working GNU getopt_long function... " >&6; } 9392if test ${gl_cv_func_getopt_long_gnu+y} 9393then : 9394 printf %s "(cached) " >&6 9395else $as_nop 9396 if test "$cross_compiling" = yes 9397then : 9398 case "$host_os" in 9399 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 9400 *) gl_cv_func_getopt_long_gnu="guessing yes";; 9401 esac 9402 9403else $as_nop 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406#include <getopt.h> 9407 #include <stddef.h> 9408 #include <string.h> 9409 9410int 9411main (void) 9412{ 9413static const struct option long_options[] = 9414 { 9415 { "xtremely-",no_argument, NULL, 1003 }, 9416 { "xtra", no_argument, NULL, 1001 }, 9417 { "xtreme", no_argument, NULL, 1002 }, 9418 { "xtremely", no_argument, NULL, 1003 }, 9419 { NULL, 0, NULL, 0 } 9420 }; 9421 /* This code fails on OpenBSD 5.0. */ 9422 { 9423 static char program[] = "program"; 9424 static char xtremel[] = "--xtremel"; 9425 char *argv[] = { program, xtremel, NULL }; 9426 int option_index; 9427 optind = 1; opterr = 0; 9428 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 9429 return 1; 9430 } 9431 return 0; 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437if ac_fn_c_try_run "$LINENO" 9438then : 9439 gl_cv_func_getopt_long_gnu=yes 9440else $as_nop 9441 gl_cv_func_getopt_long_gnu=no 9442fi 9443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9444 conftest.$ac_objext conftest.beam conftest.$ac_ext 9445fi 9446 9447 9448fi 9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 9450printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; } 9451 case "$gl_cv_func_getopt_long_gnu" in 9452 *yes) ;; 9453 *) gl_replace_getopt=yes ;; 9454 esac 9455 fi 9456 fi 9457 9458 9459 9460 9461 9462 if test "X$prefix" = "XNONE"; then 9463 acl_final_prefix="$ac_default_prefix" 9464 else 9465 acl_final_prefix="$prefix" 9466 fi 9467 if test "X$exec_prefix" = "XNONE"; then 9468 acl_final_exec_prefix='${prefix}' 9469 else 9470 acl_final_exec_prefix="$exec_prefix" 9471 fi 9472 acl_save_prefix="$prefix" 9473 prefix="$acl_final_prefix" 9474 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 9475 prefix="$acl_save_prefix" 9476 9477 9478 9479# Check whether --with-gnu-ld was given. 9480if test ${with_gnu_ld+y} 9481then : 9482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9483else $as_nop 9484 with_gnu_ld=no 9485fi 9486 9487# Prepare PATH_SEPARATOR. 9488# The user is always right. 9489if test "${PATH_SEPARATOR+set}" != set; then 9490 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 9491 # contains only /bin. Note that ksh looks also at the FPATH variable, 9492 # so we have to set that as well for the test. 9493 PATH_SEPARATOR=: 9494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 9495 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 9496 || PATH_SEPARATOR=';' 9497 } 9498fi 9499 9500if test -n "$LD"; then 9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 9502printf %s "checking for ld... " >&6; } 9503elif test "$GCC" = yes; then 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9505printf %s "checking for ld used by $CC... " >&6; } 9506elif test "$with_gnu_ld" = yes; then 9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9508printf %s "checking for GNU ld... " >&6; } 9509else 9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9511printf %s "checking for non-GNU ld... " >&6; } 9512fi 9513if test -n "$LD"; then 9514 # Let the user override the test with a path. 9515 : 9516else 9517 if test ${acl_cv_path_LD+y} 9518then : 9519 printf %s "(cached) " >&6 9520else $as_nop 9521 9522 acl_cv_path_LD= # Final result of this test 9523 ac_prog=ld # Program to search in $PATH 9524 if test "$GCC" = yes; then 9525 # Check if gcc -print-prog-name=ld gives a path. 9526 case $host in 9527 *-*-mingw*) 9528 # gcc leaves a trailing carriage return which upsets mingw 9529 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9530 *) 9531 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 9532 esac 9533 case $acl_output in 9534 # Accept absolute paths. 9535 [\\/]* | ?:[\\/]*) 9536 re_direlt='/[^/][^/]*/\.\./' 9537 # Canonicalize the pathname of ld 9538 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 9539 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 9540 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 9541 done 9542 # Got the pathname. No search in PATH is needed. 9543 acl_cv_path_LD="$acl_output" 9544 ac_prog= 9545 ;; 9546 "") 9547 # If it fails, then pretend we aren't using GCC. 9548 ;; 9549 *) 9550 # If it is relative, then search for the first ld in PATH. 9551 with_gnu_ld=unknown 9552 ;; 9553 esac 9554 fi 9555 if test -n "$ac_prog"; then 9556 # Search for $ac_prog in $PATH. 9557 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9558 for ac_dir in $PATH; do 9559 IFS="$acl_save_ifs" 9560 test -z "$ac_dir" && ac_dir=. 9561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9562 acl_cv_path_LD="$ac_dir/$ac_prog" 9563 # Check to see if the program is GNU ld. I'd rather use --version, 9564 # but apparently some variants of GNU ld only accept -v. 9565 # Break only if it was the GNU/non-GNU ld that we prefer. 9566 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 9567 *GNU* | *'with BFD'*) 9568 test "$with_gnu_ld" != no && break 9569 ;; 9570 *) 9571 test "$with_gnu_ld" != yes && break 9572 ;; 9573 esac 9574 fi 9575 done 9576 IFS="$acl_save_ifs" 9577 fi 9578 case $host in 9579 *-*-aix*) 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582#if defined __powerpc64__ || defined __LP64__ 9583 int ok; 9584 #else 9585 error fail 9586 #endif 9587 9588_ACEOF 9589if ac_fn_c_try_compile "$LINENO" 9590then : 9591 # The compiler produces 64-bit code. Add option '-b64' so that the 9592 # linker groks 64-bit object files. 9593 case "$acl_cv_path_LD " in 9594 *" -b64 "*) ;; 9595 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 9596 esac 9597 9598fi 9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9600 ;; 9601 sparc64-*-netbsd*) 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604#if defined __sparcv9 || defined __arch64__ 9605 int ok; 9606 #else 9607 error fail 9608 #endif 9609 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO" 9612then : 9613 9614else $as_nop 9615 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 9616 # so that the linker groks 32-bit object files. 9617 case "$acl_cv_path_LD " in 9618 *" -m elf32_sparc "*) ;; 9619 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 9620 esac 9621 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9624 ;; 9625 esac 9626 9627fi 9628 9629 LD="$acl_cv_path_LD" 9630fi 9631if test -n "$LD"; then 9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9633printf "%s\n" "$LD" >&6; } 9634else 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636printf "%s\n" "no" >&6; } 9637 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9638fi 9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9640printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 9641if test ${acl_cv_prog_gnu_ld+y} 9642then : 9643 printf %s "(cached) " >&6 9644else $as_nop 9645 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9646case `$LD -v 2>&1 </dev/null` in 9647*GNU* | *'with BFD'*) 9648 acl_cv_prog_gnu_ld=yes 9649 ;; 9650*) 9651 acl_cv_prog_gnu_ld=no 9652 ;; 9653esac 9654fi 9655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 9656printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } 9657with_gnu_ld=$acl_cv_prog_gnu_ld 9658 9659 9660 9661 9662 9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 9664printf %s "checking for shared library run path origin... " >&6; } 9665if test ${acl_cv_rpath+y} 9666then : 9667 printf %s "(cached) " >&6 9668else $as_nop 9669 9670 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 9671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 9672 . ./conftest.sh 9673 rm -f ./conftest.sh 9674 acl_cv_rpath=done 9675 9676fi 9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 9678printf "%s\n" "$acl_cv_rpath" >&6; } 9679 wl="$acl_cv_wl" 9680 acl_libext="$acl_cv_libext" 9681 acl_shlibext="$acl_cv_shlibext" 9682 acl_libname_spec="$acl_cv_libname_spec" 9683 acl_library_names_spec="$acl_cv_library_names_spec" 9684 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 9685 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 9686 acl_hardcode_direct="$acl_cv_hardcode_direct" 9687 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 9688 # Check whether --enable-rpath was given. 9689if test ${enable_rpath+y} 9690then : 9691 enableval=$enable_rpath; : 9692else $as_nop 9693 enable_rpath=yes 9694fi 9695 9696 9697 9698 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 9700printf %s "checking 32-bit host C ABI... " >&6; } 9701if test ${gl_cv_host_cpu_c_abi_32bit+y} 9702then : 9703 printf %s "(cached) " >&6 9704else $as_nop 9705 if test -n "$gl_cv_host_cpu_c_abi"; then 9706 case "$gl_cv_host_cpu_c_abi" in 9707 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 9708 gl_cv_host_cpu_c_abi_32bit=yes ;; 9709 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 9710 gl_cv_host_cpu_c_abi_32bit=no ;; 9711 *) 9712 gl_cv_host_cpu_c_abi_32bit=unknown ;; 9713 esac 9714 else 9715 case "$host_cpu" in 9716 9717 # CPUs that only support a 32-bit ABI. 9718 arc \ 9719 | bfin \ 9720 | cris* \ 9721 | csky \ 9722 | epiphany \ 9723 | ft32 \ 9724 | h8300 \ 9725 | m68k \ 9726 | microblaze | microblazeel \ 9727 | nds32 | nds32le | nds32be \ 9728 | nios2 | nios2eb | nios2el \ 9729 | or1k* \ 9730 | or32 \ 9731 | sh | sh1234 | sh1234elb \ 9732 | tic6x \ 9733 | xtensa* ) 9734 gl_cv_host_cpu_c_abi_32bit=yes 9735 ;; 9736 9737 # CPUs that only support a 64-bit ABI. 9738 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 9739 | mmix ) 9740 gl_cv_host_cpu_c_abi_32bit=no 9741 ;; 9742 9743 i[34567]86 ) 9744 gl_cv_host_cpu_c_abi_32bit=yes 9745 ;; 9746 9747 x86_64 ) 9748 # On x86_64 systems, the C compiler may be generating code in one of 9749 # these ABIs: 9750 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 9751 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 9752 # with native Windows (mingw, MSVC). 9753 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 9754 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756/* end confdefs.h. */ 9757#if (defined __x86_64__ || defined __amd64__ \ 9758 || defined _M_X64 || defined _M_AMD64) \ 9759 && !(defined __ILP32__ || defined _ILP32) 9760 int ok; 9761 #else 9762 error fail 9763 #endif 9764 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO" 9767then : 9768 gl_cv_host_cpu_c_abi_32bit=no 9769else $as_nop 9770 gl_cv_host_cpu_c_abi_32bit=yes 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9773 ;; 9774 9775 arm* | aarch64 ) 9776 # Assume arm with EABI. 9777 # On arm64 systems, the C compiler may be generating code in one of 9778 # these ABIs: 9779 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 9780 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 9781 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 9785 int ok; 9786 #else 9787 error fail 9788 #endif 9789 9790_ACEOF 9791if ac_fn_c_try_compile "$LINENO" 9792then : 9793 gl_cv_host_cpu_c_abi_32bit=no 9794else $as_nop 9795 gl_cv_host_cpu_c_abi_32bit=yes 9796fi 9797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9798 ;; 9799 9800 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 9801 # On hppa, the C compiler may be generating 32-bit code or 64-bit 9802 # code. In the latter case, it defines _LP64 and __LP64__. 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804/* end confdefs.h. */ 9805#ifdef __LP64__ 9806 int ok; 9807 #else 9808 error fail 9809 #endif 9810 9811_ACEOF 9812if ac_fn_c_try_compile "$LINENO" 9813then : 9814 gl_cv_host_cpu_c_abi_32bit=no 9815else $as_nop 9816 gl_cv_host_cpu_c_abi_32bit=yes 9817fi 9818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9819 ;; 9820 9821 ia64* ) 9822 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 9823 # 32-bit code. In the latter case, it defines _ILP32. 9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825/* end confdefs.h. */ 9826#ifdef _ILP32 9827 int ok; 9828 #else 9829 error fail 9830 #endif 9831 9832_ACEOF 9833if ac_fn_c_try_compile "$LINENO" 9834then : 9835 gl_cv_host_cpu_c_abi_32bit=yes 9836else $as_nop 9837 gl_cv_host_cpu_c_abi_32bit=no 9838fi 9839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9840 ;; 9841 9842 mips* ) 9843 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 9844 # at 32. 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 9848 int ok; 9849 #else 9850 error fail 9851 #endif 9852 9853_ACEOF 9854if ac_fn_c_try_compile "$LINENO" 9855then : 9856 gl_cv_host_cpu_c_abi_32bit=no 9857else $as_nop 9858 gl_cv_host_cpu_c_abi_32bit=yes 9859fi 9860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9861 ;; 9862 9863 powerpc* ) 9864 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 9865 # No need to distinguish them here; the caller may distinguish 9866 # them based on the OS. 9867 # On powerpc64 systems, the C compiler may still be generating 9868 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 9869 # be generating 64-bit code. 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872#if defined __powerpc64__ || defined __LP64__ 9873 int ok; 9874 #else 9875 error fail 9876 #endif 9877 9878_ACEOF 9879if ac_fn_c_try_compile "$LINENO" 9880then : 9881 gl_cv_host_cpu_c_abi_32bit=no 9882else $as_nop 9883 gl_cv_host_cpu_c_abi_32bit=yes 9884fi 9885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9886 ;; 9887 9888 rs6000 ) 9889 gl_cv_host_cpu_c_abi_32bit=yes 9890 ;; 9891 9892 riscv32 | riscv64 ) 9893 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 9894 # Size of 'long' and 'void *': 9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897#if defined __LP64__ 9898 int ok; 9899 #else 9900 error fail 9901 #endif 9902 9903_ACEOF 9904if ac_fn_c_try_compile "$LINENO" 9905then : 9906 gl_cv_host_cpu_c_abi_32bit=no 9907else $as_nop 9908 gl_cv_host_cpu_c_abi_32bit=yes 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9911 ;; 9912 9913 s390* ) 9914 # On s390x, the C compiler may be generating 64-bit (= s390x) code 9915 # or 31-bit (= s390) code. 9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918#if defined __LP64__ || defined __s390x__ 9919 int ok; 9920 #else 9921 error fail 9922 #endif 9923 9924_ACEOF 9925if ac_fn_c_try_compile "$LINENO" 9926then : 9927 gl_cv_host_cpu_c_abi_32bit=no 9928else $as_nop 9929 gl_cv_host_cpu_c_abi_32bit=yes 9930fi 9931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9932 ;; 9933 9934 sparc | sparc64 ) 9935 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 9936 # C compiler still generates 32-bit code. 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939#if defined __sparcv9 || defined __arch64__ 9940 int ok; 9941 #else 9942 error fail 9943 #endif 9944 9945_ACEOF 9946if ac_fn_c_try_compile "$LINENO" 9947then : 9948 gl_cv_host_cpu_c_abi_32bit=no 9949else $as_nop 9950 gl_cv_host_cpu_c_abi_32bit=yes 9951fi 9952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9953 ;; 9954 9955 *) 9956 gl_cv_host_cpu_c_abi_32bit=unknown 9957 ;; 9958 esac 9959 fi 9960 9961fi 9962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 9963printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } 9964 9965 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 9966 9967 9968 9969 9970 9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 9972printf %s "checking for ELF binary format... " >&6; } 9973if test ${gl_cv_elf+y} 9974then : 9975 printf %s "(cached) " >&6 9976else $as_nop 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978/* end confdefs.h. */ 9979#ifdef __ELF__ 9980 Extensible Linking Format 9981 #endif 9982 9983_ACEOF 9984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9985 $EGREP "Extensible Linking Format" >/dev/null 2>&1 9986then : 9987 gl_cv_elf=yes 9988else $as_nop 9989 gl_cv_elf=no 9990fi 9991rm -rf conftest* 9992 9993 9994fi 9995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 9996printf "%s\n" "$gl_cv_elf" >&6; } 9997 if test $gl_cv_elf = yes; then 9998 # Extract the ELF class of a file (5th byte) in decimal. 9999 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 10000 if od -A x < /dev/null >/dev/null 2>/dev/null; then 10001 # Use POSIX od. 10002 func_elfclass () 10003 { 10004 od -A n -t d1 -j 4 -N 1 10005 } 10006 else 10007 # Use BSD hexdump. 10008 func_elfclass () 10009 { 10010 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 10011 echo 10012 } 10013 fi 10014 # Use 'expr', not 'test', to compare the values of func_elfclass, because on 10015 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, 10016 # not 1 or 2. 10017 case $HOST_CPU_C_ABI_32BIT in 10018 yes) 10019 # 32-bit ABI. 10020 acl_is_expected_elfclass () 10021 { 10022 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null 10023 } 10024 ;; 10025 no) 10026 # 64-bit ABI. 10027 acl_is_expected_elfclass () 10028 { 10029 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null 10030 } 10031 ;; 10032 *) 10033 # Unknown. 10034 acl_is_expected_elfclass () 10035 { 10036 : 10037 } 10038 ;; 10039 esac 10040 else 10041 acl_is_expected_elfclass () 10042 { 10043 : 10044 } 10045 fi 10046 10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 10048printf %s "checking for the common suffixes of directories in the library search path... " >&6; } 10049if test ${acl_cv_libdirstems+y} 10050then : 10051 printf %s "(cached) " >&6 10052else $as_nop 10053 acl_libdirstem=lib 10054 acl_libdirstem2= 10055 acl_libdirstem3= 10056 case "$host_os" in 10057 solaris*) 10058 if test $HOST_CPU_C_ABI_32BIT = no; then 10059 acl_libdirstem2=lib/64 10060 case "$host_cpu" in 10061 sparc*) acl_libdirstem3=lib/sparcv9 ;; 10062 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 10063 esac 10064 fi 10065 ;; 10066 *) 10067 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 10068 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 10069 if test $HOST_CPU_C_ABI_32BIT != no; then 10070 # 32-bit or unknown ABI. 10071 if test -d /usr/lib32; then 10072 acl_libdirstem2=lib32 10073 fi 10074 fi 10075 if test $HOST_CPU_C_ABI_32BIT != yes; then 10076 # 64-bit or unknown ABI. 10077 if test -d /usr/lib64; then 10078 acl_libdirstem3=lib64 10079 fi 10080 fi 10081 if test -n "$searchpath"; then 10082 acl_save_IFS="${IFS= }"; IFS=":" 10083 for searchdir in $searchpath; do 10084 if test -d "$searchdir"; then 10085 case "$searchdir" in 10086 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 10087 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 10088 */../ | */.. ) 10089 # Better ignore directories of this form. They are misleading. 10090 ;; 10091 *) searchdir=`cd "$searchdir" && pwd` 10092 case "$searchdir" in 10093 */lib32 ) acl_libdirstem2=lib32 ;; 10094 */lib64 ) acl_libdirstem3=lib64 ;; 10095 esac ;; 10096 esac 10097 fi 10098 done 10099 IFS="$acl_save_IFS" 10100 if test $HOST_CPU_C_ABI_32BIT = yes; then 10101 # 32-bit ABI. 10102 acl_libdirstem3= 10103 fi 10104 if test $HOST_CPU_C_ABI_32BIT = no; then 10105 # 64-bit ABI. 10106 acl_libdirstem2= 10107 fi 10108 fi 10109 ;; 10110 esac 10111 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 10112 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 10113 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 10114 10115fi 10116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 10117printf "%s\n" "$acl_cv_libdirstems" >&6; } 10118 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 10119 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 10120 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 use_additional=yes 10133 10134 acl_save_prefix="$prefix" 10135 prefix="$acl_final_prefix" 10136 acl_save_exec_prefix="$exec_prefix" 10137 exec_prefix="$acl_final_exec_prefix" 10138 10139 eval additional_includedir=\"$includedir\" 10140 eval additional_libdir=\"$libdir\" 10141 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 10142 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 10143 10144 exec_prefix="$acl_save_exec_prefix" 10145 prefix="$acl_save_prefix" 10146 10147 10148# Check whether --with-libiconv-prefix was given. 10149if test ${with_libiconv_prefix+y} 10150then : 10151 withval=$with_libiconv_prefix; 10152 if test "X$withval" = "Xno"; then 10153 use_additional=no 10154 else 10155 if test "X$withval" = "X"; then 10156 10157 acl_save_prefix="$prefix" 10158 prefix="$acl_final_prefix" 10159 acl_save_exec_prefix="$exec_prefix" 10160 exec_prefix="$acl_final_exec_prefix" 10161 10162 eval additional_includedir=\"$includedir\" 10163 eval additional_libdir=\"$libdir\" 10164 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 10165 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 10166 10167 exec_prefix="$acl_save_exec_prefix" 10168 prefix="$acl_save_prefix" 10169 10170 else 10171 additional_includedir="$withval/include" 10172 additional_libdir="$withval/$acl_libdirstem" 10173 additional_libdir2="$withval/$acl_libdirstem2" 10174 additional_libdir3="$withval/$acl_libdirstem3" 10175 fi 10176 fi 10177 10178fi 10179 10180 if test "X$additional_libdir2" = "X$additional_libdir"; then 10181 additional_libdir2= 10182 fi 10183 if test "X$additional_libdir3" = "X$additional_libdir"; then 10184 additional_libdir3= 10185 fi 10186 LIBICONV= 10187 LTLIBICONV= 10188 INCICONV= 10189 LIBICONV_PREFIX= 10190 HAVE_LIBICONV= 10191 rpathdirs= 10192 ltrpathdirs= 10193 names_already_handled= 10194 names_next_round='iconv ' 10195 while test -n "$names_next_round"; do 10196 names_this_round="$names_next_round" 10197 names_next_round= 10198 for name in $names_this_round; do 10199 already_handled= 10200 for n in $names_already_handled; do 10201 if test "$n" = "$name"; then 10202 already_handled=yes 10203 break 10204 fi 10205 done 10206 if test -z "$already_handled"; then 10207 names_already_handled="$names_already_handled $name" 10208 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 10209 eval value=\"\$HAVE_LIB$uppername\" 10210 if test -n "$value"; then 10211 if test "$value" = yes; then 10212 eval value=\"\$LIB$uppername\" 10213 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10214 eval value=\"\$LTLIB$uppername\" 10215 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10216 else 10217 : 10218 fi 10219 else 10220 found_dir= 10221 found_la= 10222 found_so= 10223 found_a= 10224 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 10225 if test -n "$acl_shlibext"; then 10226 shrext=".$acl_shlibext" # typically: shrext=.so 10227 else 10228 shrext= 10229 fi 10230 if test $use_additional = yes; then 10231 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 10232 if test "X$found_dir" = "X"; then 10233 eval dir=\$$additional_libdir_variable 10234 if test -n "$dir"; then 10235 if test -n "$acl_shlibext"; then 10236 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 10237 found_dir="$dir" 10238 found_so="$dir/$libname$shrext" 10239 else 10240 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10241 ver=`(cd "$dir" && \ 10242 for f in "$libname$shrext".*; do echo "$f"; done \ 10243 | sed -e "s,^$libname$shrext\\\\.,," \ 10244 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10245 | sed 1q ) 2>/dev/null` 10246 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 10247 found_dir="$dir" 10248 found_so="$dir/$libname$shrext.$ver" 10249 fi 10250 else 10251 eval library_names=\"$acl_library_names_spec\" 10252 for f in $library_names; do 10253 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 10254 found_dir="$dir" 10255 found_so="$dir/$f" 10256 break 10257 fi 10258 done 10259 fi 10260 fi 10261 fi 10262 if test "X$found_dir" = "X"; then 10263 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 10264 found_dir="$dir" 10265 found_a="$dir/$libname.$acl_libext" 10266 fi 10267 fi 10268 if test "X$found_dir" != "X"; then 10269 if test -f "$dir/$libname.la"; then 10270 found_la="$dir/$libname.la" 10271 fi 10272 fi 10273 fi 10274 fi 10275 done 10276 fi 10277 if test "X$found_dir" = "X"; then 10278 for x in $LDFLAGS $LTLIBICONV; do 10279 10280 acl_save_prefix="$prefix" 10281 prefix="$acl_final_prefix" 10282 acl_save_exec_prefix="$exec_prefix" 10283 exec_prefix="$acl_final_exec_prefix" 10284 eval x=\"$x\" 10285 exec_prefix="$acl_save_exec_prefix" 10286 prefix="$acl_save_prefix" 10287 10288 case "$x" in 10289 -L*) 10290 dir=`echo "X$x" | sed -e 's/^X-L//'` 10291 if test -n "$acl_shlibext"; then 10292 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 10293 found_dir="$dir" 10294 found_so="$dir/$libname$shrext" 10295 else 10296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10297 ver=`(cd "$dir" && \ 10298 for f in "$libname$shrext".*; do echo "$f"; done \ 10299 | sed -e "s,^$libname$shrext\\\\.,," \ 10300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10301 | sed 1q ) 2>/dev/null` 10302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 10303 found_dir="$dir" 10304 found_so="$dir/$libname$shrext.$ver" 10305 fi 10306 else 10307 eval library_names=\"$acl_library_names_spec\" 10308 for f in $library_names; do 10309 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 10310 found_dir="$dir" 10311 found_so="$dir/$f" 10312 break 10313 fi 10314 done 10315 fi 10316 fi 10317 fi 10318 if test "X$found_dir" = "X"; then 10319 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 10320 found_dir="$dir" 10321 found_a="$dir/$libname.$acl_libext" 10322 fi 10323 fi 10324 if test "X$found_dir" != "X"; then 10325 if test -f "$dir/$libname.la"; then 10326 found_la="$dir/$libname.la" 10327 fi 10328 fi 10329 ;; 10330 esac 10331 if test "X$found_dir" != "X"; then 10332 break 10333 fi 10334 done 10335 fi 10336 if test "X$found_dir" != "X"; then 10337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10338 if test "X$found_so" != "X"; then 10339 if test "$enable_rpath" = no \ 10340 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 10341 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 10342 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 10343 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10344 else 10345 haveit= 10346 for x in $ltrpathdirs; do 10347 if test "X$x" = "X$found_dir"; then 10348 haveit=yes 10349 break 10350 fi 10351 done 10352 if test -z "$haveit"; then 10353 ltrpathdirs="$ltrpathdirs $found_dir" 10354 fi 10355 if test "$acl_hardcode_direct" = yes; then 10356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10357 else 10358 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 10359 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10360 haveit= 10361 for x in $rpathdirs; do 10362 if test "X$x" = "X$found_dir"; then 10363 haveit=yes 10364 break 10365 fi 10366 done 10367 if test -z "$haveit"; then 10368 rpathdirs="$rpathdirs $found_dir" 10369 fi 10370 else 10371 haveit= 10372 for x in $LDFLAGS $LIBICONV; do 10373 10374 acl_save_prefix="$prefix" 10375 prefix="$acl_final_prefix" 10376 acl_save_exec_prefix="$exec_prefix" 10377 exec_prefix="$acl_final_exec_prefix" 10378 eval x=\"$x\" 10379 exec_prefix="$acl_save_exec_prefix" 10380 prefix="$acl_save_prefix" 10381 10382 if test "X$x" = "X-L$found_dir"; then 10383 haveit=yes 10384 break 10385 fi 10386 done 10387 if test -z "$haveit"; then 10388 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10389 fi 10390 if test "$acl_hardcode_minus_L" != no; then 10391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10392 else 10393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10394 fi 10395 fi 10396 fi 10397 fi 10398 else 10399 if test "X$found_a" != "X"; then 10400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10401 else 10402 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10403 fi 10404 fi 10405 additional_includedir= 10406 case "$found_dir" in 10407 */$acl_libdirstem | */$acl_libdirstem/) 10408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 10409 if test "$name" = 'iconv'; then 10410 LIBICONV_PREFIX="$basedir" 10411 fi 10412 additional_includedir="$basedir/include" 10413 ;; 10414 */$acl_libdirstem2 | */$acl_libdirstem2/) 10415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 10416 if test "$name" = 'iconv'; then 10417 LIBICONV_PREFIX="$basedir" 10418 fi 10419 additional_includedir="$basedir/include" 10420 ;; 10421 */$acl_libdirstem3 | */$acl_libdirstem3/) 10422 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 10423 if test "$name" = 'iconv'; then 10424 LIBICONV_PREFIX="$basedir" 10425 fi 10426 additional_includedir="$basedir/include" 10427 ;; 10428 esac 10429 if test "X$additional_includedir" != "X"; then 10430 if test "X$additional_includedir" != "X/usr/include"; then 10431 haveit= 10432 if test "X$additional_includedir" = "X/usr/local/include"; then 10433 if test -n "$GCC"; then 10434 case $host_os in 10435 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10436 esac 10437 fi 10438 fi 10439 if test -z "$haveit"; then 10440 for x in $CPPFLAGS $INCICONV; do 10441 10442 acl_save_prefix="$prefix" 10443 prefix="$acl_final_prefix" 10444 acl_save_exec_prefix="$exec_prefix" 10445 exec_prefix="$acl_final_exec_prefix" 10446 eval x=\"$x\" 10447 exec_prefix="$acl_save_exec_prefix" 10448 prefix="$acl_save_prefix" 10449 10450 if test "X$x" = "X-I$additional_includedir"; then 10451 haveit=yes 10452 break 10453 fi 10454 done 10455 if test -z "$haveit"; then 10456 if test -d "$additional_includedir"; then 10457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10458 fi 10459 fi 10460 fi 10461 fi 10462 fi 10463 if test -n "$found_la"; then 10464 save_libdir="$libdir" 10465 case "$found_la" in 10466 */* | *\\*) . "$found_la" ;; 10467 *) . "./$found_la" ;; 10468 esac 10469 libdir="$save_libdir" 10470 for dep in $dependency_libs; do 10471 case "$dep" in 10472 -L*) 10473 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10474 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 10475 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 10476 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 10477 haveit= 10478 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 10479 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 10480 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 10481 if test -n "$GCC"; then 10482 case $host_os in 10483 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10484 esac 10485 fi 10486 fi 10487 if test -z "$haveit"; then 10488 haveit= 10489 for x in $LDFLAGS $LIBICONV; do 10490 10491 acl_save_prefix="$prefix" 10492 prefix="$acl_final_prefix" 10493 acl_save_exec_prefix="$exec_prefix" 10494 exec_prefix="$acl_final_exec_prefix" 10495 eval x=\"$x\" 10496 exec_prefix="$acl_save_exec_prefix" 10497 prefix="$acl_save_prefix" 10498 10499 if test "X$x" = "X-L$dependency_libdir"; then 10500 haveit=yes 10501 break 10502 fi 10503 done 10504 if test -z "$haveit"; then 10505 if test -d "$dependency_libdir"; then 10506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 10507 fi 10508 fi 10509 haveit= 10510 for x in $LDFLAGS $LTLIBICONV; do 10511 10512 acl_save_prefix="$prefix" 10513 prefix="$acl_final_prefix" 10514 acl_save_exec_prefix="$exec_prefix" 10515 exec_prefix="$acl_final_exec_prefix" 10516 eval x=\"$x\" 10517 exec_prefix="$acl_save_exec_prefix" 10518 prefix="$acl_save_prefix" 10519 10520 if test "X$x" = "X-L$dependency_libdir"; then 10521 haveit=yes 10522 break 10523 fi 10524 done 10525 if test -z "$haveit"; then 10526 if test -d "$dependency_libdir"; then 10527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 10528 fi 10529 fi 10530 fi 10531 fi 10532 ;; 10533 -R*) 10534 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10535 if test "$enable_rpath" != no; then 10536 haveit= 10537 for x in $rpathdirs; do 10538 if test "X$x" = "X$dir"; then 10539 haveit=yes 10540 break 10541 fi 10542 done 10543 if test -z "$haveit"; then 10544 rpathdirs="$rpathdirs $dir" 10545 fi 10546 haveit= 10547 for x in $ltrpathdirs; do 10548 if test "X$x" = "X$dir"; then 10549 haveit=yes 10550 break 10551 fi 10552 done 10553 if test -z "$haveit"; then 10554 ltrpathdirs="$ltrpathdirs $dir" 10555 fi 10556 fi 10557 ;; 10558 -l*) 10559 dep=`echo "X$dep" | sed -e 's/^X-l//'` 10560 if test "X$dep" != Xc \ 10561 || case $host_os in 10562 linux* | gnu* | k*bsd*-gnu) false ;; 10563 *) true ;; 10564 esac; then 10565 names_next_round="$names_next_round $dep" 10566 fi 10567 ;; 10568 *.la) 10569 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10570 ;; 10571 *) 10572 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10573 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10574 ;; 10575 esac 10576 done 10577 fi 10578 else 10579 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10581 fi 10582 fi 10583 fi 10584 done 10585 done 10586 if test "X$rpathdirs" != "X"; then 10587 if test -n "$acl_hardcode_libdir_separator"; then 10588 alldirs= 10589 for found_dir in $rpathdirs; do 10590 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 10591 done 10592 acl_save_libdir="$libdir" 10593 libdir="$alldirs" 10594 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10595 libdir="$acl_save_libdir" 10596 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10597 else 10598 for found_dir in $rpathdirs; do 10599 acl_save_libdir="$libdir" 10600 libdir="$found_dir" 10601 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10602 libdir="$acl_save_libdir" 10603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10604 done 10605 fi 10606 fi 10607 if test "X$ltrpathdirs" != "X"; then 10608 for found_dir in $ltrpathdirs; do 10609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10610 done 10611 fi 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 am_save_CPPFLAGS="$CPPFLAGS" 10624 10625 for element in $INCICONV; do 10626 haveit= 10627 for x in $CPPFLAGS; do 10628 10629 acl_save_prefix="$prefix" 10630 prefix="$acl_final_prefix" 10631 acl_save_exec_prefix="$exec_prefix" 10632 exec_prefix="$acl_final_exec_prefix" 10633 eval x=\"$x\" 10634 exec_prefix="$acl_save_exec_prefix" 10635 prefix="$acl_save_prefix" 10636 10637 if test "X$x" = "X$element"; then 10638 haveit=yes 10639 break 10640 fi 10641 done 10642 if test -z "$haveit"; then 10643 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10644 fi 10645 done 10646 10647 10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 10649printf %s "checking for iconv... " >&6; } 10650if test ${am_cv_func_iconv+y} 10651then : 10652 printf %s "(cached) " >&6 10653else $as_nop 10654 10655 am_cv_func_iconv="no, consider installing GNU libiconv" 10656 am_cv_lib_iconv=no 10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659 10660#include <stdlib.h> 10661#include <iconv.h> 10662 10663int 10664main (void) 10665{ 10666iconv_t cd = iconv_open("",""); 10667 iconv(cd,NULL,NULL,NULL,NULL); 10668 iconv_close(cd); 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673if ac_fn_c_try_link "$LINENO" 10674then : 10675 am_cv_func_iconv=yes 10676fi 10677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10678 conftest$ac_exeext conftest.$ac_ext 10679 if test "$am_cv_func_iconv" != yes; then 10680 am_save_LIBS="$LIBS" 10681 LIBS="$LIBS $LIBICONV" 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684 10685#include <stdlib.h> 10686#include <iconv.h> 10687 10688int 10689main (void) 10690{ 10691iconv_t cd = iconv_open("",""); 10692 iconv(cd,NULL,NULL,NULL,NULL); 10693 iconv_close(cd); 10694 ; 10695 return 0; 10696} 10697_ACEOF 10698if ac_fn_c_try_link "$LINENO" 10699then : 10700 am_cv_lib_iconv=yes 10701 am_cv_func_iconv=yes 10702fi 10703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10704 conftest$ac_exeext conftest.$ac_ext 10705 LIBS="$am_save_LIBS" 10706 fi 10707 10708fi 10709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 10710printf "%s\n" "$am_cv_func_iconv" >&6; } 10711 if test "$am_cv_func_iconv" = yes; then 10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 10713printf %s "checking for working iconv... " >&6; } 10714if test ${am_cv_func_iconv_works+y} 10715then : 10716 printf %s "(cached) " >&6 10717else $as_nop 10718 10719 am_save_LIBS="$LIBS" 10720 if test $am_cv_lib_iconv = yes; then 10721 LIBS="$LIBS $LIBICONV" 10722 fi 10723 am_cv_func_iconv_works=no 10724 for ac_iconv_const in '' 'const'; do 10725 if test "$cross_compiling" = yes 10726then : 10727 case "$host_os" in 10728 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 10729 *) am_cv_func_iconv_works="guessing yes" ;; 10730 esac 10731else $as_nop 10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10733/* end confdefs.h. */ 10734 10735#include <iconv.h> 10736#include <string.h> 10737 10738#ifndef ICONV_CONST 10739# define ICONV_CONST $ac_iconv_const 10740#endif 10741 10742int 10743main (void) 10744{ 10745int result = 0; 10746 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 10747 successful returns. This is even documented in 10748 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 10749 { 10750 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 10751 if (cd_utf8_to_88591 != (iconv_t)(-1)) 10752 { 10753 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 10754 char buf[10]; 10755 ICONV_CONST char *inptr = input; 10756 size_t inbytesleft = strlen (input); 10757 char *outptr = buf; 10758 size_t outbytesleft = sizeof (buf); 10759 size_t res = iconv (cd_utf8_to_88591, 10760 &inptr, &inbytesleft, 10761 &outptr, &outbytesleft); 10762 if (res == 0) 10763 result |= 1; 10764 iconv_close (cd_utf8_to_88591); 10765 } 10766 } 10767 /* Test against Solaris 10 bug: Failures are not distinguishable from 10768 successful returns. */ 10769 { 10770 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 10771 if (cd_ascii_to_88591 != (iconv_t)(-1)) 10772 { 10773 static ICONV_CONST char input[] = "\263"; 10774 char buf[10]; 10775 ICONV_CONST char *inptr = input; 10776 size_t inbytesleft = strlen (input); 10777 char *outptr = buf; 10778 size_t outbytesleft = sizeof (buf); 10779 size_t res = iconv (cd_ascii_to_88591, 10780 &inptr, &inbytesleft, 10781 &outptr, &outbytesleft); 10782 if (res == 0) 10783 result |= 2; 10784 iconv_close (cd_ascii_to_88591); 10785 } 10786 } 10787 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 10788 { 10789 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 10790 if (cd_88591_to_utf8 != (iconv_t)(-1)) 10791 { 10792 static ICONV_CONST char input[] = "\304"; 10793 static char buf[2] = { (char)0xDE, (char)0xAD }; 10794 ICONV_CONST char *inptr = input; 10795 size_t inbytesleft = 1; 10796 char *outptr = buf; 10797 size_t outbytesleft = 1; 10798 size_t res = iconv (cd_88591_to_utf8, 10799 &inptr, &inbytesleft, 10800 &outptr, &outbytesleft); 10801 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 10802 result |= 4; 10803 iconv_close (cd_88591_to_utf8); 10804 } 10805 } 10806#if 0 /* This bug could be worked around by the caller. */ 10807 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 10808 { 10809 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 10810 if (cd_88591_to_utf8 != (iconv_t)(-1)) 10811 { 10812 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 10813 char buf[50]; 10814 ICONV_CONST char *inptr = input; 10815 size_t inbytesleft = strlen (input); 10816 char *outptr = buf; 10817 size_t outbytesleft = sizeof (buf); 10818 size_t res = iconv (cd_88591_to_utf8, 10819 &inptr, &inbytesleft, 10820 &outptr, &outbytesleft); 10821 if ((int)res > 0) 10822 result |= 8; 10823 iconv_close (cd_88591_to_utf8); 10824 } 10825 } 10826#endif 10827 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 10828 provided. */ 10829 { 10830 /* Try standardized names. */ 10831 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 10832 /* Try IRIX, OSF/1 names. */ 10833 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 10834 /* Try AIX names. */ 10835 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 10836 /* Try HP-UX names. */ 10837 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 10838 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 10839 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 10840 result |= 16; 10841 if (cd1 != (iconv_t)(-1)) 10842 iconv_close (cd1); 10843 if (cd2 != (iconv_t)(-1)) 10844 iconv_close (cd2); 10845 if (cd3 != (iconv_t)(-1)) 10846 iconv_close (cd3); 10847 if (cd4 != (iconv_t)(-1)) 10848 iconv_close (cd4); 10849 } 10850 return result; 10851 10852 ; 10853 return 0; 10854} 10855_ACEOF 10856if ac_fn_c_try_run "$LINENO" 10857then : 10858 am_cv_func_iconv_works=yes 10859fi 10860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10861 conftest.$ac_objext conftest.beam conftest.$ac_ext 10862fi 10863 10864 test "$am_cv_func_iconv_works" = no || break 10865 done 10866 LIBS="$am_save_LIBS" 10867 10868fi 10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 10870printf "%s\n" "$am_cv_func_iconv_works" >&6; } 10871 case "$am_cv_func_iconv_works" in 10872 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 10873 *) am_func_iconv=yes ;; 10874 esac 10875 else 10876 am_func_iconv=no am_cv_lib_iconv=no 10877 fi 10878 if test "$am_func_iconv" = yes; then 10879 10880printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 10881 10882 fi 10883 if test "$am_cv_lib_iconv" = yes; then 10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 10885printf %s "checking how to link with libiconv... " >&6; } 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 10887printf "%s\n" "$LIBICONV" >&6; } 10888 else 10889 CPPFLAGS="$am_save_CPPFLAGS" 10890 LIBICONV= 10891 LTLIBICONV= 10892 fi 10893 10894 10895 10896 if test "$am_cv_func_iconv" = yes; then 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5 10898printf %s "checking whether iconv is compatible with its POSIX signature... " >&6; } 10899if test ${gl_cv_iconv_nonconst+y} 10900then : 10901 printf %s "(cached) " >&6 10902else $as_nop 10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905 10906#include <stdlib.h> 10907#include <iconv.h> 10908extern 10909#ifdef __cplusplus 10910"C" 10911#endif 10912size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 10913 10914int 10915main (void) 10916{ 10917 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922if ac_fn_c_try_compile "$LINENO" 10923then : 10924 gl_cv_iconv_nonconst=yes 10925else $as_nop 10926 gl_cv_iconv_nonconst=no 10927fi 10928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10929 10930fi 10931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5 10932printf "%s\n" "$gl_cv_iconv_nonconst" >&6; } 10933 else 10934 gl_cv_iconv_nonconst=yes 10935 fi 10936 if test $gl_cv_iconv_nonconst = yes; then 10937 iconv_arg1="" 10938 else 10939 iconv_arg1="const" 10940 fi 10941 10942printf "%s\n" "#define ICONV_CONST $iconv_arg1" >>confdefs.h 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 if test $gl_cv_have_include_next = yes; then 10958 gl_cv_next_limits_h='<'limits.h'>' 10959 else 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 10961printf %s "checking absolute name of <limits.h>... " >&6; } 10962if test ${gl_cv_next_limits_h+y} 10963then : 10964 printf %s "(cached) " >&6 10965else $as_nop 10966 10967 if test $ac_cv_header_limits_h = yes; then 10968 10969 10970 10971 10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10973/* end confdefs.h. */ 10974#include <limits.h> 10975_ACEOF 10976 case "$host_os" in 10977 aix*) gl_absname_cpp="$ac_cpp -C" ;; 10978 *) gl_absname_cpp="$ac_cpp" ;; 10979 esac 10980 10981 case "$host_os" in 10982 mingw*) 10983 gl_dirsep_regex='[/\\]' 10984 ;; 10985 *) 10986 gl_dirsep_regex='\/' 10987 ;; 10988 esac 10989 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 10990 gl_header_literal_regex=`echo 'limits.h' \ 10991 | sed -e "$gl_make_literal_regex_sed"` 10992 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 10993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 10994 s|^/[^/]|//&| 10995 p 10996 q 10997 }' 10998 10999 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11000 sed -n "$gl_absolute_header_sed"` 11001 11002 gl_header=$gl_cv_absolute_limits_h 11003 gl_cv_next_limits_h='"'$gl_header'"' 11004 else 11005 gl_cv_next_limits_h='<'limits.h'>' 11006 fi 11007 11008 11009fi 11010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 11011printf "%s\n" "$gl_cv_next_limits_h" >&6; } 11012 fi 11013 NEXT_LIMITS_H=$gl_cv_next_limits_h 11014 11015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11017 gl_next_as_first_directive='<'limits.h'>' 11018 else 11019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11020 gl_next_as_first_directive=$gl_cv_next_limits_h 11021 fi 11022 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 11023 11024 11025 11026 11027 11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5 11029printf %s "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; } 11030if test ${gl_cv_header_limits_width+y} 11031then : 11032 printf %s "(cached) " >&6 11033else $as_nop 11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11035/* end confdefs.h. */ 11036#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 11037 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 11038 #endif 11039 #include <limits.h> 11040 long long llm = LLONG_MAX; 11041 int wb = WORD_BIT; 11042 int ullw = ULLONG_WIDTH; 11043 11044int 11045main (void) 11046{ 11047 11048 ; 11049 return 0; 11050} 11051_ACEOF 11052if ac_fn_c_try_compile "$LINENO" 11053then : 11054 gl_cv_header_limits_width=yes 11055else $as_nop 11056 gl_cv_header_limits_width=no 11057fi 11058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11059fi 11060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 11061printf "%s\n" "$gl_cv_header_limits_width" >&6; } 11062 if test "$gl_cv_header_limits_width" = yes; then 11063 LIMITS_H= 11064 else 11065 LIMITS_H=limits.h 11066 fi 11067 11068 if test -n "$LIMITS_H"; then 11069 GL_GENERATE_LIMITS_H_TRUE= 11070 GL_GENERATE_LIMITS_H_FALSE='#' 11071else 11072 GL_GENERATE_LIMITS_H_TRUE='#' 11073 GL_GENERATE_LIMITS_H_FALSE= 11074fi 11075 11076 11077 11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 11079printf %s "checking for wint_t... " >&6; } 11080if test ${gt_cv_c_wint_t+y} 11081then : 11082 printf %s "(cached) " >&6 11083else $as_nop 11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11085/* end confdefs.h. */ 11086#include <wchar.h> 11087 wint_t foo = (wchar_t)'\0'; 11088int 11089main (void) 11090{ 11091 11092 ; 11093 return 0; 11094} 11095_ACEOF 11096if ac_fn_c_try_compile "$LINENO" 11097then : 11098 gt_cv_c_wint_t=yes 11099else $as_nop 11100 gt_cv_c_wint_t=no 11101fi 11102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11103fi 11104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 11105printf "%s\n" "$gt_cv_c_wint_t" >&6; } 11106 if test $gt_cv_c_wint_t = yes; then 11107 11108printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h 11109 11110 11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 11112printf %s "checking whether wint_t is large enough... " >&6; } 11113if test ${gl_cv_type_wint_t_large_enough+y} 11114then : 11115 printf %s "(cached) " >&6 11116else $as_nop 11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11118/* end confdefs.h. */ 11119#include <wchar.h> 11120 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 11121 11122int 11123main (void) 11124{ 11125 11126 ; 11127 return 0; 11128} 11129_ACEOF 11130if ac_fn_c_try_compile "$LINENO" 11131then : 11132 gl_cv_type_wint_t_large_enough=yes 11133else $as_nop 11134 gl_cv_type_wint_t_large_enough=no 11135fi 11136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11137fi 11138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 11139printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } 11140 if test $gl_cv_type_wint_t_large_enough = no; then 11141 GNULIB_OVERRIDES_WINT_T=1 11142 else 11143 GNULIB_OVERRIDES_WINT_T=0 11144 fi 11145 else 11146 GNULIB_OVERRIDES_WINT_T=0 11147 fi 11148 11149 11150 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 11152printf %s "checking whether the compiler produces multi-arch binaries... " >&6; } 11153if test ${gl_cv_c_multiarch+y} 11154then : 11155 printf %s "(cached) " >&6 11156else $as_nop 11157 gl_cv_c_multiarch=no 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160#ifndef __APPLE_CC__ 11161 not a universal capable compiler 11162 #endif 11163 typedef int dummy; 11164 11165_ACEOF 11166if ac_fn_c_try_compile "$LINENO" 11167then : 11168 11169 arch= 11170 prev= 11171 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 11172 if test -n "$prev"; then 11173 case $word in 11174 i?86 | x86_64 | ppc | ppc64 | arm | arm64) 11175 if test -z "$arch" || test "$arch" = "$word"; then 11176 arch="$word" 11177 else 11178 gl_cv_c_multiarch=yes 11179 fi 11180 ;; 11181 esac 11182 prev= 11183 else 11184 if test "x$word" = "x-arch"; then 11185 prev=arch 11186 fi 11187 fi 11188 done 11189 11190fi 11191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11192 11193fi 11194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 11195printf "%s\n" "$gl_cv_c_multiarch" >&6; } 11196 if test $gl_cv_c_multiarch = yes; then 11197 APPLE_UNIVERSAL_BUILD=1 11198 else 11199 APPLE_UNIVERSAL_BUILD=0 11200 fi 11201 11202 11203 11204 11205 11206 11207 11208 11209printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 11210 11211 11212printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 11213 11214 11215 11216 if test $ac_cv_header_wchar_h = yes; then 11217 HAVE_WCHAR_H=1 11218 else 11219 HAVE_WCHAR_H=0 11220 fi 11221 11222 11223 11224 if test $ac_cv_header_inttypes_h = yes; then 11225 HAVE_INTTYPES_H=1 11226 else 11227 HAVE_INTTYPES_H=0 11228 fi 11229 11230 11231 11232 if test $ac_cv_header_sys_types_h = yes; then 11233 HAVE_SYS_TYPES_H=1 11234 else 11235 HAVE_SYS_TYPES_H=0 11236 fi 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 if test $gl_cv_have_include_next = yes; then 11249 gl_cv_next_stdint_h='<'stdint.h'>' 11250 else 11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 11252printf %s "checking absolute name of <stdint.h>... " >&6; } 11253if test ${gl_cv_next_stdint_h+y} 11254then : 11255 printf %s "(cached) " >&6 11256else $as_nop 11257 11258 if test $ac_cv_header_stdint_h = yes; then 11259 11260 11261 11262 11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265#include <stdint.h> 11266_ACEOF 11267 case "$host_os" in 11268 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11269 *) gl_absname_cpp="$ac_cpp" ;; 11270 esac 11271 11272 case "$host_os" in 11273 mingw*) 11274 gl_dirsep_regex='[/\\]' 11275 ;; 11276 *) 11277 gl_dirsep_regex='\/' 11278 ;; 11279 esac 11280 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11281 gl_header_literal_regex=`echo 'stdint.h' \ 11282 | sed -e "$gl_make_literal_regex_sed"` 11283 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11284 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11285 s|^/[^/]|//&| 11286 p 11287 q 11288 }' 11289 11290 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11291 sed -n "$gl_absolute_header_sed"` 11292 11293 gl_header=$gl_cv_absolute_stdint_h 11294 gl_cv_next_stdint_h='"'$gl_header'"' 11295 else 11296 gl_cv_next_stdint_h='<'stdint.h'>' 11297 fi 11298 11299 11300fi 11301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 11302printf "%s\n" "$gl_cv_next_stdint_h" >&6; } 11303 fi 11304 NEXT_STDINT_H=$gl_cv_next_stdint_h 11305 11306 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11308 gl_next_as_first_directive='<'stdint.h'>' 11309 else 11310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11311 gl_next_as_first_directive=$gl_cv_next_stdint_h 11312 fi 11313 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 11314 11315 11316 11317 11318 if test $ac_cv_header_stdint_h = yes; then 11319 HAVE_STDINT_H=1 11320 else 11321 HAVE_STDINT_H=0 11322 fi 11323 11324 11325 if test $ac_cv_header_stdint_h = yes; then 11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 11327printf %s "checking whether stdint.h conforms to C99... " >&6; } 11328if test ${gl_cv_header_working_stdint_h+y} 11329then : 11330 printf %s "(cached) " >&6 11331else $as_nop 11332 gl_cv_header_working_stdint_h=no 11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11334/* end confdefs.h. */ 11335 11336 11337#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 11338#define __STDC_CONSTANT_MACROS 1 11339#define __STDC_LIMIT_MACROS 1 11340#include <stdint.h> 11341/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 11342#if !(defined WCHAR_MIN && defined WCHAR_MAX) 11343#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 11344#endif 11345 11346 11347 #include <stddef.h> 11348 #include <signal.h> 11349 #if HAVE_WCHAR_H 11350 # include <wchar.h> 11351 #endif 11352 11353 11354#ifdef INT8_MAX 11355int8_t a1 = INT8_MAX; 11356int8_t a1min = INT8_MIN; 11357#endif 11358#ifdef INT16_MAX 11359int16_t a2 = INT16_MAX; 11360int16_t a2min = INT16_MIN; 11361#endif 11362#ifdef INT32_MAX 11363int32_t a3 = INT32_MAX; 11364int32_t a3min = INT32_MIN; 11365#endif 11366#ifdef INT64_MAX 11367int64_t a4 = INT64_MAX; 11368int64_t a4min = INT64_MIN; 11369#endif 11370#ifdef UINT8_MAX 11371uint8_t b1 = UINT8_MAX; 11372#else 11373typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 11374#endif 11375#ifdef UINT16_MAX 11376uint16_t b2 = UINT16_MAX; 11377#endif 11378#ifdef UINT32_MAX 11379uint32_t b3 = UINT32_MAX; 11380#endif 11381#ifdef UINT64_MAX 11382uint64_t b4 = UINT64_MAX; 11383#endif 11384int_least8_t c1 = INT8_C (0x7f); 11385int_least8_t c1max = INT_LEAST8_MAX; 11386int_least8_t c1min = INT_LEAST8_MIN; 11387int_least16_t c2 = INT16_C (0x7fff); 11388int_least16_t c2max = INT_LEAST16_MAX; 11389int_least16_t c2min = INT_LEAST16_MIN; 11390int_least32_t c3 = INT32_C (0x7fffffff); 11391int_least32_t c3max = INT_LEAST32_MAX; 11392int_least32_t c3min = INT_LEAST32_MIN; 11393int_least64_t c4 = INT64_C (0x7fffffffffffffff); 11394int_least64_t c4max = INT_LEAST64_MAX; 11395int_least64_t c4min = INT_LEAST64_MIN; 11396uint_least8_t d1 = UINT8_C (0xff); 11397uint_least8_t d1max = UINT_LEAST8_MAX; 11398uint_least16_t d2 = UINT16_C (0xffff); 11399uint_least16_t d2max = UINT_LEAST16_MAX; 11400uint_least32_t d3 = UINT32_C (0xffffffff); 11401uint_least32_t d3max = UINT_LEAST32_MAX; 11402uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 11403uint_least64_t d4max = UINT_LEAST64_MAX; 11404int_fast8_t e1 = INT_FAST8_MAX; 11405int_fast8_t e1min = INT_FAST8_MIN; 11406int_fast16_t e2 = INT_FAST16_MAX; 11407int_fast16_t e2min = INT_FAST16_MIN; 11408int_fast32_t e3 = INT_FAST32_MAX; 11409int_fast32_t e3min = INT_FAST32_MIN; 11410int_fast64_t e4 = INT_FAST64_MAX; 11411int_fast64_t e4min = INT_FAST64_MIN; 11412uint_fast8_t f1 = UINT_FAST8_MAX; 11413uint_fast16_t f2 = UINT_FAST16_MAX; 11414uint_fast32_t f3 = UINT_FAST32_MAX; 11415uint_fast64_t f4 = UINT_FAST64_MAX; 11416#ifdef INTPTR_MAX 11417intptr_t g = INTPTR_MAX; 11418intptr_t gmin = INTPTR_MIN; 11419#endif 11420#ifdef UINTPTR_MAX 11421uintptr_t h = UINTPTR_MAX; 11422#endif 11423intmax_t i = INTMAX_MAX; 11424uintmax_t j = UINTMAX_MAX; 11425 11426/* Check that SIZE_MAX has the correct type, if possible. */ 11427#if 201112 <= __STDC_VERSION__ 11428int k = _Generic (SIZE_MAX, size_t: 0); 11429#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ 11430 || (0x5110 <= __SUNPRO_C && !__STDC__)) 11431extern size_t k; 11432extern __typeof__ (SIZE_MAX) k; 11433#endif 11434 11435#include <limits.h> /* for CHAR_BIT */ 11436#define TYPE_MINIMUM(t) \ 11437 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 11438#define TYPE_MAXIMUM(t) \ 11439 ((t) ((t) 0 < (t) -1 \ 11440 ? (t) -1 \ 11441 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 11442struct s { 11443 int check_PTRDIFF: 11444 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 11445 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 11446 ? 1 : -1; 11447 /* Detect bug in FreeBSD 6.0 / ia64. */ 11448 int check_SIG_ATOMIC: 11449 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 11450 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 11451 ? 1 : -1; 11452 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 11453 int check_WCHAR: 11454 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 11455 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 11456 ? 1 : -1; 11457 /* Detect bug in mingw. */ 11458 int check_WINT: 11459 WINT_MIN == TYPE_MINIMUM (wint_t) 11460 && WINT_MAX == TYPE_MAXIMUM (wint_t) 11461 ? 1 : -1; 11462 11463 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 11464 int check_UINT8_C: 11465 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 11466 int check_UINT16_C: 11467 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 11468 11469 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 11470#ifdef UINT8_MAX 11471 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 11472#endif 11473#ifdef UINT16_MAX 11474 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 11475#endif 11476#ifdef UINT32_MAX 11477 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 11478#endif 11479#ifdef UINT64_MAX 11480 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 11481#endif 11482 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 11483 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 11484 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 11485 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 11486 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 11487 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 11488 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 11489 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 11490 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 11491 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 11492 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 11493}; 11494 11495int 11496main (void) 11497{ 11498 11499 ; 11500 return 0; 11501} 11502_ACEOF 11503if ac_fn_c_try_compile "$LINENO" 11504then : 11505 if test "$cross_compiling" = yes 11506then : 11507 case "$host_os" in 11508 # Guess yes on native Windows. 11509 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 11510 # In general, assume it works. 11511 *) gl_cv_header_working_stdint_h="guessing yes" ;; 11512 esac 11513 11514else $as_nop 11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11516/* end confdefs.h. */ 11517 11518 11519#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 11520#define __STDC_CONSTANT_MACROS 1 11521#define __STDC_LIMIT_MACROS 1 11522#include <stdint.h> 11523 11524 11525 #include <stddef.h> 11526 #include <signal.h> 11527 #if HAVE_WCHAR_H 11528 # include <wchar.h> 11529 #endif 11530 11531 11532#include <stdio.h> 11533#include <string.h> 11534#define MVAL(macro) MVAL1(macro) 11535#define MVAL1(expression) #expression 11536static const char *macro_values[] = 11537 { 11538#ifdef INT8_MAX 11539 MVAL (INT8_MAX), 11540#endif 11541#ifdef INT16_MAX 11542 MVAL (INT16_MAX), 11543#endif 11544#ifdef INT32_MAX 11545 MVAL (INT32_MAX), 11546#endif 11547#ifdef INT64_MAX 11548 MVAL (INT64_MAX), 11549#endif 11550#ifdef UINT8_MAX 11551 MVAL (UINT8_MAX), 11552#endif 11553#ifdef UINT16_MAX 11554 MVAL (UINT16_MAX), 11555#endif 11556#ifdef UINT32_MAX 11557 MVAL (UINT32_MAX), 11558#endif 11559#ifdef UINT64_MAX 11560 MVAL (UINT64_MAX), 11561#endif 11562 NULL 11563 }; 11564 11565int 11566main (void) 11567{ 11568 11569 const char **mv; 11570 for (mv = macro_values; *mv != NULL; mv++) 11571 { 11572 const char *value = *mv; 11573 /* Test whether it looks like a cast expression. */ 11574 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 11575 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 11576 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 11577 || strncmp (value, "((int)"/*)*/, 6) == 0 11578 || strncmp (value, "((signed short)"/*)*/, 15) == 0 11579 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 11580 return mv - macro_values + 1; 11581 } 11582 return 0; 11583 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_run "$LINENO" 11589then : 11590 gl_cv_header_working_stdint_h=yes 11591fi 11592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11593 conftest.$ac_objext conftest.beam conftest.$ac_ext 11594fi 11595 11596 11597fi 11598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11599 11600fi 11601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 11602printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; } 11603 fi 11604 11605 HAVE_C99_STDINT_H=0 11606 HAVE_SYS_BITYPES_H=0 11607 HAVE_SYS_INTTYPES_H=0 11608 STDINT_H=stdint.h 11609 case "$gl_cv_header_working_stdint_h" in 11610 *yes) 11611 HAVE_C99_STDINT_H=1 11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 11613printf %s "checking whether stdint.h works without ISO C predefines... " >&6; } 11614if test ${gl_cv_header_stdint_without_STDC_macros+y} 11615then : 11616 printf %s "(cached) " >&6 11617else $as_nop 11618 gl_cv_header_stdint_without_STDC_macros=no 11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622 11623#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 11624#include <stdint.h> 11625 11626 11627 #include <stddef.h> 11628 #include <signal.h> 11629 #if HAVE_WCHAR_H 11630 # include <wchar.h> 11631 #endif 11632 11633 11634intmax_t im = INTMAX_MAX; 11635int32_t i32 = INT32_C (0x7fffffff); 11636 11637int 11638main (void) 11639{ 11640 11641 ; 11642 return 0; 11643} 11644_ACEOF 11645if ac_fn_c_try_compile "$LINENO" 11646then : 11647 gl_cv_header_stdint_without_STDC_macros=yes 11648fi 11649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11650 11651fi 11652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 11653printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } 11654 11655 if test $gl_cv_header_stdint_without_STDC_macros = no; then 11656 11657printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 11658 11659 11660printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 11661 11662 fi 11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 11664printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 11665if test ${gl_cv_header_stdint_width+y} 11666then : 11667 printf %s "(cached) " >&6 11668else $as_nop 11669 gl_cv_header_stdint_width=no 11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671/* end confdefs.h. */ 11672 11673 /* Work if build is not clean. */ 11674 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 11675 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 11676 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 11677 #endif 11678 #include <stdint.h> 11679 11680 #include <stddef.h> 11681 #include <signal.h> 11682 #if HAVE_WCHAR_H 11683 # include <wchar.h> 11684 #endif 11685 11686 int iw = UINTMAX_WIDTH; 11687 11688int 11689main (void) 11690{ 11691 11692 ; 11693 return 0; 11694} 11695_ACEOF 11696if ac_fn_c_try_compile "$LINENO" 11697then : 11698 gl_cv_header_stdint_width=yes 11699fi 11700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11701fi 11702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 11703printf "%s\n" "$gl_cv_header_stdint_width" >&6; } 11704 if test "$gl_cv_header_stdint_width" = yes; then 11705 STDINT_H= 11706 fi 11707 ;; 11708 *) 11709 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 11710if test "x$ac_cv_header_sys_inttypes_h" = xyes 11711then : 11712 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h 11713 11714fi 11715ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 11716if test "x$ac_cv_header_sys_bitypes_h" = xyes 11717then : 11718 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 11719 11720fi 11721 11722 if test $ac_cv_header_sys_inttypes_h = yes; then 11723 HAVE_SYS_INTTYPES_H=1 11724 fi 11725 if test $ac_cv_header_sys_bitypes_h = yes; then 11726 HAVE_SYS_BITYPES_H=1 11727 fi 11728 11729 11730 if test $APPLE_UNIVERSAL_BUILD = 0; then 11731 11732 11733 for gltype in ptrdiff_t size_t ; do 11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 11735printf %s "checking for bit size of $gltype... " >&6; } 11736if eval test \${gl_cv_bitsizeof_${gltype}+y} 11737then : 11738 printf %s "(cached) " >&6 11739else $as_nop 11740 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 11741 #include <stddef.h> 11742 #include <signal.h> 11743 #if HAVE_WCHAR_H 11744 # include <wchar.h> 11745 #endif 11746 11747#include <limits.h>" 11748then : 11749 11750else $as_nop 11751 result=unknown 11752fi 11753 11754 eval gl_cv_bitsizeof_${gltype}=\$result 11755 11756fi 11757eval ac_res=\$gl_cv_bitsizeof_${gltype} 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11759printf "%s\n" "$ac_res" >&6; } 11760 eval result=\$gl_cv_bitsizeof_${gltype} 11761 if test $result = unknown; then 11762 result=0 11763 fi 11764 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11765 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 11766 11767 eval BITSIZEOF_${GLTYPE}=\$result 11768 done 11769 11770 11771 fi 11772 11773 11774 for gltype in sig_atomic_t wchar_t wint_t ; do 11775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 11776printf %s "checking for bit size of $gltype... " >&6; } 11777if eval test \${gl_cv_bitsizeof_${gltype}+y} 11778then : 11779 printf %s "(cached) " >&6 11780else $as_nop 11781 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 11782 #include <stddef.h> 11783 #include <signal.h> 11784 #if HAVE_WCHAR_H 11785 # include <wchar.h> 11786 #endif 11787 11788#include <limits.h>" 11789then : 11790 11791else $as_nop 11792 result=unknown 11793fi 11794 11795 eval gl_cv_bitsizeof_${gltype}=\$result 11796 11797fi 11798eval ac_res=\$gl_cv_bitsizeof_${gltype} 11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11800printf "%s\n" "$ac_res" >&6; } 11801 eval result=\$gl_cv_bitsizeof_${gltype} 11802 if test $result = unknown; then 11803 result=0 11804 fi 11805 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11806 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 11807 11808 eval BITSIZEOF_${GLTYPE}=\$result 11809 done 11810 11811 11812 11813 11814 for gltype in sig_atomic_t wchar_t wint_t ; do 11815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 11816printf %s "checking whether $gltype is signed... " >&6; } 11817if eval test \${gl_cv_type_${gltype}_signed+y} 11818then : 11819 printf %s "(cached) " >&6 11820else $as_nop 11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11822/* end confdefs.h. */ 11823 11824 #include <stddef.h> 11825 #include <signal.h> 11826 #if HAVE_WCHAR_H 11827 # include <wchar.h> 11828 #endif 11829 11830 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 11831int 11832main (void) 11833{ 11834 11835 ; 11836 return 0; 11837} 11838_ACEOF 11839if ac_fn_c_try_compile "$LINENO" 11840then : 11841 result=yes 11842else $as_nop 11843 result=no 11844fi 11845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11846 eval gl_cv_type_${gltype}_signed=\$result 11847 11848fi 11849eval ac_res=\$gl_cv_type_${gltype}_signed 11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11851printf "%s\n" "$ac_res" >&6; } 11852 eval result=\$gl_cv_type_${gltype}_signed 11853 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11854 if test "$result" = yes; then 11855 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h 11856 11857 eval HAVE_SIGNED_${GLTYPE}=1 11858 else 11859 eval HAVE_SIGNED_${GLTYPE}=0 11860 fi 11861 done 11862 11863 11864 gl_cv_type_ptrdiff_t_signed=yes 11865 gl_cv_type_size_t_signed=no 11866 if test $APPLE_UNIVERSAL_BUILD = 0; then 11867 11868 11869 for gltype in ptrdiff_t size_t ; do 11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 11871printf %s "checking for $gltype integer literal suffix... " >&6; } 11872if eval test \${gl_cv_type_${gltype}_suffix+y} 11873then : 11874 printf %s "(cached) " >&6 11875else $as_nop 11876 eval gl_cv_type_${gltype}_suffix=no 11877 eval result=\$gl_cv_type_${gltype}_signed 11878 if test "$result" = yes; then 11879 glsufu= 11880 else 11881 glsufu=u 11882 fi 11883 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 11884 case $glsuf in 11885 '') gltype1='int';; 11886 l) gltype1='long int';; 11887 ll) gltype1='long long int';; 11888 i64) gltype1='__int64';; 11889 u) gltype1='unsigned int';; 11890 ul) gltype1='unsigned long int';; 11891 ull) gltype1='unsigned long long int';; 11892 ui64)gltype1='unsigned __int64';; 11893 esac 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896 11897 #include <stddef.h> 11898 #include <signal.h> 11899 #if HAVE_WCHAR_H 11900 # include <wchar.h> 11901 #endif 11902 11903 extern $gltype foo; 11904 extern $gltype1 foo; 11905int 11906main (void) 11907{ 11908 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_c_try_compile "$LINENO" 11914then : 11915 eval gl_cv_type_${gltype}_suffix=\$glsuf 11916fi 11917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11918 eval result=\$gl_cv_type_${gltype}_suffix 11919 test "$result" != no && break 11920 done 11921fi 11922eval ac_res=\$gl_cv_type_${gltype}_suffix 11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11924printf "%s\n" "$ac_res" >&6; } 11925 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11926 eval result=\$gl_cv_type_${gltype}_suffix 11927 test "$result" = no && result= 11928 eval ${GLTYPE}_SUFFIX=\$result 11929 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 11930 11931 done 11932 11933 11934 fi 11935 11936 11937 for gltype in sig_atomic_t wchar_t wint_t ; do 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 11939printf %s "checking for $gltype integer literal suffix... " >&6; } 11940if eval test \${gl_cv_type_${gltype}_suffix+y} 11941then : 11942 printf %s "(cached) " >&6 11943else $as_nop 11944 eval gl_cv_type_${gltype}_suffix=no 11945 eval result=\$gl_cv_type_${gltype}_signed 11946 if test "$result" = yes; then 11947 glsufu= 11948 else 11949 glsufu=u 11950 fi 11951 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 11952 case $glsuf in 11953 '') gltype1='int';; 11954 l) gltype1='long int';; 11955 ll) gltype1='long long int';; 11956 i64) gltype1='__int64';; 11957 u) gltype1='unsigned int';; 11958 ul) gltype1='unsigned long int';; 11959 ull) gltype1='unsigned long long int';; 11960 ui64)gltype1='unsigned __int64';; 11961 esac 11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11963/* end confdefs.h. */ 11964 11965 #include <stddef.h> 11966 #include <signal.h> 11967 #if HAVE_WCHAR_H 11968 # include <wchar.h> 11969 #endif 11970 11971 extern $gltype foo; 11972 extern $gltype1 foo; 11973int 11974main (void) 11975{ 11976 11977 ; 11978 return 0; 11979} 11980_ACEOF 11981if ac_fn_c_try_compile "$LINENO" 11982then : 11983 eval gl_cv_type_${gltype}_suffix=\$glsuf 11984fi 11985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11986 eval result=\$gl_cv_type_${gltype}_suffix 11987 test "$result" != no && break 11988 done 11989fi 11990eval ac_res=\$gl_cv_type_${gltype}_suffix 11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11992printf "%s\n" "$ac_res" >&6; } 11993 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11994 eval result=\$gl_cv_type_${gltype}_suffix 11995 test "$result" = no && result= 11996 eval ${GLTYPE}_SUFFIX=\$result 11997 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 11998 11999 done 12000 12001 12002 12003 if test $GNULIB_OVERRIDES_WINT_T = 1; then 12004 BITSIZEOF_WINT_T=32 12005 fi 12006 12007 ;; 12008 esac 12009 12010 12011 12012 LIMITS_H='limits.h' 12013 if test -n "$LIMITS_H"; then 12014 GL_GENERATE_LIMITS_H_TRUE= 12015 GL_GENERATE_LIMITS_H_FALSE='#' 12016else 12017 GL_GENERATE_LIMITS_H_TRUE='#' 12018 GL_GENERATE_LIMITS_H_FALSE= 12019fi 12020 12021 12022 12023 12024 12025 12026 12027 if test -n "$STDINT_H"; then 12028 GL_GENERATE_STDINT_H_TRUE= 12029 GL_GENERATE_STDINT_H_FALSE='#' 12030else 12031 GL_GENERATE_STDINT_H_TRUE='#' 12032 GL_GENERATE_STDINT_H_FALSE= 12033fi 12034 12035 12036 12037 GNULIB_IMAXABS=0; 12038 GNULIB_IMAXDIV=0; 12039 GNULIB_STRTOIMAX=0; 12040 GNULIB_STRTOUMAX=0; 12041 HAVE_DECL_IMAXABS=1; 12042 HAVE_DECL_IMAXDIV=1; 12043 HAVE_DECL_STRTOIMAX=1; 12044 HAVE_DECL_STRTOUMAX=1; 12045 HAVE_IMAXDIV_T=1; 12046 REPLACE_STRTOIMAX=0; 12047 REPLACE_STRTOUMAX=0; 12048 INT32_MAX_LT_INTMAX_MAX=1; 12049 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 12050 PRIPTR_PREFIX=__PRIPTR_PREFIX; 12051 UINT32_MAX_LT_UINTMAX_MAX=1; 12052 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 if test $gl_cv_have_include_next = yes; then 12069 gl_cv_next_inttypes_h='<'inttypes.h'>' 12070 else 12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 12072printf %s "checking absolute name of <inttypes.h>... " >&6; } 12073if test ${gl_cv_next_inttypes_h+y} 12074then : 12075 printf %s "(cached) " >&6 12076else $as_nop 12077 12078 if test $ac_cv_header_inttypes_h = yes; then 12079 12080 12081 12082 12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12084/* end confdefs.h. */ 12085#include <inttypes.h> 12086_ACEOF 12087 case "$host_os" in 12088 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12089 *) gl_absname_cpp="$ac_cpp" ;; 12090 esac 12091 12092 case "$host_os" in 12093 mingw*) 12094 gl_dirsep_regex='[/\\]' 12095 ;; 12096 *) 12097 gl_dirsep_regex='\/' 12098 ;; 12099 esac 12100 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12101 gl_header_literal_regex=`echo 'inttypes.h' \ 12102 | sed -e "$gl_make_literal_regex_sed"` 12103 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12104 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12105 s|^/[^/]|//&| 12106 p 12107 q 12108 }' 12109 12110 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12111 sed -n "$gl_absolute_header_sed"` 12112 12113 gl_header=$gl_cv_absolute_inttypes_h 12114 gl_cv_next_inttypes_h='"'$gl_header'"' 12115 else 12116 gl_cv_next_inttypes_h='<'inttypes.h'>' 12117 fi 12118 12119 12120fi 12121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 12122printf "%s\n" "$gl_cv_next_inttypes_h" >&6; } 12123 fi 12124 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 12125 12126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12128 gl_next_as_first_directive='<'inttypes.h'>' 12129 else 12130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12131 gl_next_as_first_directive=$gl_cv_next_inttypes_h 12132 fi 12133 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 GNULIB_ISWBLANK=0; 12149 GNULIB_ISWDIGIT=0; 12150 GNULIB_ISWXDIGIT=0; 12151 GNULIB_WCTYPE=0; 12152 GNULIB_ISWCTYPE=0; 12153 GNULIB_WCTRANS=0; 12154 GNULIB_TOWCTRANS=0; 12155 HAVE_ISWBLANK=1; 12156 HAVE_WCTYPE_T=1; 12157 HAVE_WCTRANS_T=1; 12158 REPLACE_ISWBLANK=0; 12159 REPLACE_ISWDIGIT=0; 12160 REPLACE_ISWXDIGIT=0; 12161 12162 12163 12164 12165 12166 if test $ac_cv_header_crtdefs_h = yes; then 12167 HAVE_CRTDEFS_H=1 12168 else 12169 HAVE_CRTDEFS_H=0 12170 fi 12171 12172 12173 12174 12175 12176 12177 12178 12179 if test $ac_cv_func_iswcntrl = yes; then 12180 HAVE_ISWCNTRL=1 12181 else 12182 HAVE_ISWCNTRL=0 12183 fi 12184 12185 12186 12187 if test $gt_cv_c_wint_t = yes; then 12188 HAVE_WINT_T=1 12189 else 12190 HAVE_WINT_T=0 12191 fi 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 if test $gl_cv_have_include_next = yes; then 12206 gl_cv_next_wctype_h='<'wctype.h'>' 12207 else 12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 12209printf %s "checking absolute name of <wctype.h>... " >&6; } 12210if test ${gl_cv_next_wctype_h+y} 12211then : 12212 printf %s "(cached) " >&6 12213else $as_nop 12214 12215 if test $ac_cv_header_wctype_h = yes; then 12216 12217 12218 12219 12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12221/* end confdefs.h. */ 12222#include <wctype.h> 12223_ACEOF 12224 case "$host_os" in 12225 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12226 *) gl_absname_cpp="$ac_cpp" ;; 12227 esac 12228 12229 case "$host_os" in 12230 mingw*) 12231 gl_dirsep_regex='[/\\]' 12232 ;; 12233 *) 12234 gl_dirsep_regex='\/' 12235 ;; 12236 esac 12237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12238 gl_header_literal_regex=`echo 'wctype.h' \ 12239 | sed -e "$gl_make_literal_regex_sed"` 12240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12242 s|^/[^/]|//&| 12243 p 12244 q 12245 }' 12246 12247 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12248 sed -n "$gl_absolute_header_sed"` 12249 12250 gl_header=$gl_cv_absolute_wctype_h 12251 gl_cv_next_wctype_h='"'$gl_header'"' 12252 else 12253 gl_cv_next_wctype_h='<'wctype.h'>' 12254 fi 12255 12256 12257fi 12258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 12259printf "%s\n" "$gl_cv_next_wctype_h" >&6; } 12260 fi 12261 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 12262 12263 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12265 gl_next_as_first_directive='<'wctype.h'>' 12266 else 12267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12268 gl_next_as_first_directive=$gl_cv_next_wctype_h 12269 fi 12270 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 12271 12272 12273 12274 12275 if test $ac_cv_header_wctype_h = yes; then 12276 if test $ac_cv_func_iswcntrl = yes; then 12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 12278printf %s "checking whether iswcntrl works... " >&6; } 12279if test ${gl_cv_func_iswcntrl_works+y} 12280then : 12281 printf %s "(cached) " >&6 12282else $as_nop 12283 12284 if test "$cross_compiling" = yes 12285then : 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288#include <stdlib.h> 12289 #if __GNU_LIBRARY__ == 1 12290 Linux libc5 i18n is broken. 12291 #endif 12292int 12293main (void) 12294{ 12295 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_compile "$LINENO" 12301then : 12302 gl_cv_func_iswcntrl_works="guessing yes" 12303else $as_nop 12304 gl_cv_func_iswcntrl_works="guessing no" 12305fi 12306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12307 12308else $as_nop 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311 12312 #include <wchar.h> 12313 #include <wctype.h> 12314 int main () { return iswprint ('x') == 0; } 12315 12316_ACEOF 12317if ac_fn_c_try_run "$LINENO" 12318then : 12319 gl_cv_func_iswcntrl_works=yes 12320else $as_nop 12321 gl_cv_func_iswcntrl_works=no 12322fi 12323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12324 conftest.$ac_objext conftest.beam conftest.$ac_ext 12325fi 12326 12327 12328fi 12329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 12330printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; } 12331 fi 12332 HAVE_WCTYPE_H=1 12333 else 12334 HAVE_WCTYPE_H=0 12335 fi 12336 12337 12338 if test $GNULIB_OVERRIDES_WINT_T = 1; then 12339 REPLACE_ISWCNTRL=1 12340 else 12341 case "$gl_cv_func_iswcntrl_works" in 12342 *yes) REPLACE_ISWCNTRL=0 ;; 12343 *) REPLACE_ISWCNTRL=1 ;; 12344 esac 12345 fi 12346 12347 12348 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 12349 : 12350 fi 12351 12352 if test $REPLACE_ISWCNTRL = 1; then 12353 REPLACE_TOWLOWER=1 12354 else 12355 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 12356if test "x$ac_cv_func_towlower" = xyes 12357then : 12358 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h 12359 12360fi 12361 12362 if test $ac_cv_func_towlower = yes; then 12363 REPLACE_TOWLOWER=0 12364 else 12365 ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h> 12366 #if HAVE_WCTYPE_H 12367 # include <wctype.h> 12368 #endif 12369 12370" "$ac_c_undeclared_builtin_options" "CFLAGS" 12371if test "x$ac_cv_have_decl_towlower" = xyes 12372then : 12373 ac_have_decl=1 12374else $as_nop 12375 ac_have_decl=0 12376fi 12377printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h 12378 12379 if test $ac_cv_have_decl_towlower = yes; then 12380 REPLACE_TOWLOWER=1 12381 else 12382 REPLACE_TOWLOWER=0 12383 fi 12384 fi 12385 fi 12386 12387 12388 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 12389 : 12390 fi 12391 12392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 12393printf %s "checking for wctype_t... " >&6; } 12394if test ${gl_cv_type_wctype_t+y} 12395then : 12396 printf %s "(cached) " >&6 12397else $as_nop 12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12399/* end confdefs.h. */ 12400#include <wchar.h> 12401 #if HAVE_WCTYPE_H 12402 # include <wctype.h> 12403 #endif 12404 wctype_t a; 12405 12406int 12407main (void) 12408{ 12409 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414if ac_fn_c_try_compile "$LINENO" 12415then : 12416 gl_cv_type_wctype_t=yes 12417else $as_nop 12418 gl_cv_type_wctype_t=no 12419fi 12420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12421 12422fi 12423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 12424printf "%s\n" "$gl_cv_type_wctype_t" >&6; } 12425 if test $gl_cv_type_wctype_t = no; then 12426 HAVE_WCTYPE_T=0 12427 fi 12428 12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 12430printf %s "checking for wctrans_t... " >&6; } 12431if test ${gl_cv_type_wctrans_t+y} 12432then : 12433 printf %s "(cached) " >&6 12434else $as_nop 12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12436/* end confdefs.h. */ 12437#include <wchar.h> 12438 #include <wctype.h> 12439 wctrans_t a; 12440 12441int 12442main (void) 12443{ 12444 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449if ac_fn_c_try_compile "$LINENO" 12450then : 12451 gl_cv_type_wctrans_t=yes 12452else $as_nop 12453 gl_cv_type_wctrans_t=no 12454fi 12455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12456 12457fi 12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 12459printf "%s\n" "$gl_cv_type_wctrans_t" >&6; } 12460 if test $gl_cv_type_wctrans_t = no; then 12461 HAVE_WCTRANS_T=0 12462 fi 12463 12464 12465 12466 12467 12468 12469 12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 12471printf %s "checking for nl_langinfo and CODESET... " >&6; } 12472if test ${am_cv_langinfo_codeset+y} 12473then : 12474 printf %s "(cached) " >&6 12475else $as_nop 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12477/* end confdefs.h. */ 12478#include <langinfo.h> 12479int 12480main (void) 12481{ 12482char* cs = nl_langinfo(CODESET); return !cs; 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_c_try_link "$LINENO" 12488then : 12489 am_cv_langinfo_codeset=yes 12490else $as_nop 12491 am_cv_langinfo_codeset=no 12492fi 12493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12494 conftest$ac_exeext conftest.$ac_ext 12495 12496fi 12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 12498printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 12499 if test $am_cv_langinfo_codeset = yes; then 12500 12501printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 12502 12503 fi 12504 12505 12506 12507 12508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 12509printf %s "checking for a traditional french locale... " >&6; } 12510if test ${gt_cv_locale_fr+y} 12511then : 12512 printf %s "(cached) " >&6 12513else $as_nop 12514 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517 12518#include <locale.h> 12519#include <time.h> 12520#if HAVE_LANGINFO_CODESET 12521# include <langinfo.h> 12522#endif 12523#include <stdlib.h> 12524#include <string.h> 12525struct tm t; 12526char buf[16]; 12527int main () { 12528 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 12529 imitates locale dependent behaviour by looking at the environment 12530 variables, and all locales use the UTF-8 encoding. */ 12531#if defined __BEOS__ || defined __HAIKU__ 12532 return 1; 12533#else 12534 /* Check whether the given locale name is recognized by the system. */ 12535# if defined _WIN32 && !defined __CYGWIN__ 12536 /* On native Windows, setlocale(category, "") looks at the system settings, 12537 not at the environment variables. Also, when an encoding suffix such 12538 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 12539 category of the locale to "C". */ 12540 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 12541 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 12542 return 1; 12543# else 12544 if (setlocale (LC_ALL, "") == NULL) return 1; 12545# endif 12546 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 12547 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 12548 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 12549 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 12550 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 12551 some unit tests fail. 12552 On MirBSD 10, when an unsupported locale is specified, setlocale() 12553 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 12554# if HAVE_LANGINFO_CODESET 12555 { 12556 const char *cs = nl_langinfo (CODESET); 12557 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 12558 || strcmp (cs, "UTF-8") == 0) 12559 return 1; 12560 } 12561# endif 12562# ifdef __CYGWIN__ 12563 /* On Cygwin, avoid locale names without encoding suffix, because the 12564 locale_charset() function relies on the encoding suffix. Note that 12565 LC_ALL is set on the command line. */ 12566 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 12567# endif 12568 /* Check whether in the abbreviation of the second month, the second 12569 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 12570 one byte long. This excludes the UTF-8 encoding. */ 12571 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 12572 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 12573# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 12574 /* Check whether the decimal separator is a comma. 12575 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 12576 are nl_langinfo(RADIXCHAR) are both ".". */ 12577 if (localeconv () ->decimal_point[0] != ',') return 1; 12578# endif 12579 return 0; 12580#endif 12581} 12582 12583_ACEOF 12584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12585 (eval $ac_link) 2>&5 12586 ac_status=$? 12587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12588 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12589 case "$host_os" in 12590 # Handle native Windows specially, because there setlocale() interprets 12591 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 12592 # "fr" or "fra" as "French" or "French_France.1252", 12593 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 12594 # "ja" as "Japanese" or "Japanese_Japan.932", 12595 # and similar. 12596 mingw*) 12597 # Test for the native Windows locale name. 12598 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12599 gt_cv_locale_fr=French_France.1252 12600 else 12601 # None found. 12602 gt_cv_locale_fr=none 12603 fi 12604 ;; 12605 *) 12606 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 12607 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 12608 # configure script would override the LC_ALL setting. Likewise for 12609 # LC_CTYPE, which is also set at the beginning of the configure script. 12610 # Test for the usual locale name. 12611 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12612 gt_cv_locale_fr=fr_FR 12613 else 12614 # Test for the locale name with explicit encoding suffix. 12615 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12616 gt_cv_locale_fr=fr_FR.ISO-8859-1 12617 else 12618 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 12619 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12620 gt_cv_locale_fr=fr_FR.ISO8859-1 12621 else 12622 # Test for the HP-UX locale name. 12623 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12624 gt_cv_locale_fr=fr_FR.iso88591 12625 else 12626 # Test for the Solaris 7 locale name. 12627 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12628 gt_cv_locale_fr=fr 12629 else 12630 # None found. 12631 gt_cv_locale_fr=none 12632 fi 12633 fi 12634 fi 12635 fi 12636 fi 12637 ;; 12638 esac 12639 fi 12640 rm -fr conftest* 12641 12642fi 12643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 12644printf "%s\n" "$gt_cv_locale_fr" >&6; } 12645 LOCALE_FR=$gt_cv_locale_fr 12646 12647 12648 12649 12650 12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 12652printf %s "checking for a traditional japanese locale... " >&6; } 12653if test ${gt_cv_locale_ja+y} 12654then : 12655 printf %s "(cached) " >&6 12656else $as_nop 12657 12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12659/* end confdefs.h. */ 12660 12661#include <locale.h> 12662#include <time.h> 12663#if HAVE_LANGINFO_CODESET 12664# include <langinfo.h> 12665#endif 12666#include <stdlib.h> 12667#include <string.h> 12668struct tm t; 12669char buf[16]; 12670int main () 12671{ 12672 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 12673 imitates locale dependent behaviour by looking at the environment 12674 variables, and all locales use the UTF-8 encoding. */ 12675#if defined __BEOS__ || defined __HAIKU__ 12676 return 1; 12677#else 12678 /* Check whether the given locale name is recognized by the system. */ 12679# if defined _WIN32 && !defined __CYGWIN__ 12680 /* On native Windows, setlocale(category, "") looks at the system settings, 12681 not at the environment variables. Also, when an encoding suffix such 12682 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 12683 category of the locale to "C". */ 12684 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 12685 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 12686 return 1; 12687# else 12688 if (setlocale (LC_ALL, "") == NULL) return 1; 12689# endif 12690 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 12691 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 12692 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 12693 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 12694 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 12695 some unit tests fail. 12696 On MirBSD 10, when an unsupported locale is specified, setlocale() 12697 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 12698# if HAVE_LANGINFO_CODESET 12699 { 12700 const char *cs = nl_langinfo (CODESET); 12701 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 12702 || strcmp (cs, "UTF-8") == 0) 12703 return 1; 12704 } 12705# endif 12706# ifdef __CYGWIN__ 12707 /* On Cygwin, avoid locale names without encoding suffix, because the 12708 locale_charset() function relies on the encoding suffix. Note that 12709 LC_ALL is set on the command line. */ 12710 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 12711# endif 12712 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 12713 on Cygwin 1.5.x. */ 12714 if (MB_CUR_MAX == 1) 12715 return 1; 12716 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 12717 This excludes the UTF-8 encoding (except on MirBSD). */ 12718 { 12719 const char *p; 12720 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 12721 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 12722 for (p = buf; *p != '\0'; p++) 12723 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 12724 return 1; 12725 } 12726 return 0; 12727#endif 12728} 12729 12730_ACEOF 12731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12732 (eval $ac_link) 2>&5 12733 ac_status=$? 12734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12735 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12736 case "$host_os" in 12737 # Handle native Windows specially, because there setlocale() interprets 12738 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 12739 # "fr" or "fra" as "French" or "French_France.1252", 12740 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 12741 # "ja" as "Japanese" or "Japanese_Japan.932", 12742 # and similar. 12743 mingw*) 12744 # Note that on native Windows, the Japanese locale is 12745 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 12746 # cannot use it here. 12747 gt_cv_locale_ja=none 12748 ;; 12749 *) 12750 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 12751 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 12752 # configure script would override the LC_ALL setting. Likewise for 12753 # LC_CTYPE, which is also set at the beginning of the configure script. 12754 # Test for the AIX locale name. 12755 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12756 gt_cv_locale_ja=ja_JP 12757 else 12758 # Test for the locale name with explicit encoding suffix. 12759 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12760 gt_cv_locale_ja=ja_JP.EUC-JP 12761 else 12762 # Test for the HP-UX, OSF/1, NetBSD locale name. 12763 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12764 gt_cv_locale_ja=ja_JP.eucJP 12765 else 12766 # Test for the IRIX, FreeBSD locale name. 12767 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12768 gt_cv_locale_ja=ja_JP.EUC 12769 else 12770 # Test for the Solaris 7 locale name. 12771 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12772 gt_cv_locale_ja=ja 12773 else 12774 # Special test for NetBSD 1.6. 12775 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 12776 gt_cv_locale_ja=ja_JP.eucJP 12777 else 12778 # None found. 12779 gt_cv_locale_ja=none 12780 fi 12781 fi 12782 fi 12783 fi 12784 fi 12785 fi 12786 ;; 12787 esac 12788 fi 12789 rm -fr conftest* 12790 12791fi 12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 12793printf "%s\n" "$gt_cv_locale_ja" >&6; } 12794 LOCALE_JA=$gt_cv_locale_ja 12795 12796 12797 12798 12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 12800printf %s "checking for a french Unicode locale... " >&6; } 12801if test ${gt_cv_locale_fr_utf8+y} 12802then : 12803 printf %s "(cached) " >&6 12804else $as_nop 12805 12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12807/* end confdefs.h. */ 12808 12809#include <locale.h> 12810#include <time.h> 12811#if HAVE_LANGINFO_CODESET 12812# include <langinfo.h> 12813#endif 12814#include <stdlib.h> 12815#include <string.h> 12816struct tm t; 12817char buf[16]; 12818int main () { 12819 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 12820 imitates locale dependent behaviour by looking at the environment 12821 variables, and all locales use the UTF-8 encoding. */ 12822#if !(defined __BEOS__ || defined __HAIKU__) 12823 /* Check whether the given locale name is recognized by the system. */ 12824# if defined _WIN32 && !defined __CYGWIN__ 12825 /* On native Windows, setlocale(category, "") looks at the system settings, 12826 not at the environment variables. Also, when an encoding suffix such 12827 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 12828 category of the locale to "C". */ 12829 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 12830 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 12831 return 1; 12832# else 12833 if (setlocale (LC_ALL, "") == NULL) return 1; 12834# endif 12835 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 12836 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 12837 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 12838 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 12839 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 12840 some unit tests fail. */ 12841# if HAVE_LANGINFO_CODESET 12842 { 12843 const char *cs = nl_langinfo (CODESET); 12844 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 12845 return 1; 12846 } 12847# endif 12848# ifdef __CYGWIN__ 12849 /* On Cygwin, avoid locale names without encoding suffix, because the 12850 locale_charset() function relies on the encoding suffix. Note that 12851 LC_ALL is set on the command line. */ 12852 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 12853# endif 12854 /* Check whether in the abbreviation of the second month, the second 12855 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 12856 two bytes long, with UTF-8 encoding. */ 12857 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 12858 if (strftime (buf, sizeof (buf), "%b", &t) < 4 12859 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 12860 return 1; 12861#endif 12862#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 12863 /* Check whether the decimal separator is a comma. 12864 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 12865 are nl_langinfo(RADIXCHAR) are both ".". */ 12866 if (localeconv () ->decimal_point[0] != ',') return 1; 12867#endif 12868 return 0; 12869} 12870 12871_ACEOF 12872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12873 (eval $ac_link) 2>&5 12874 ac_status=$? 12875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12876 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12877 case "$host_os" in 12878 # Handle native Windows specially, because there setlocale() interprets 12879 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 12880 # "fr" or "fra" as "French" or "French_France.1252", 12881 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 12882 # "ja" as "Japanese" or "Japanese_Japan.932", 12883 # and similar. 12884 mingw*) 12885 # Test for the hypothetical native Windows locale name. 12886 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12887 gt_cv_locale_fr_utf8=French_France.65001 12888 else 12889 # None found. 12890 gt_cv_locale_fr_utf8=none 12891 fi 12892 ;; 12893 *) 12894 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 12895 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 12896 # configure script would override the LC_ALL setting. Likewise for 12897 # LC_CTYPE, which is also set at the beginning of the configure script. 12898 # Test for the usual locale name. 12899 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12900 gt_cv_locale_fr_utf8=fr_FR 12901 else 12902 # Test for the locale name with explicit encoding suffix. 12903 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12904 gt_cv_locale_fr_utf8=fr_FR.UTF-8 12905 else 12906 # Test for the Solaris 7 locale name. 12907 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 12908 gt_cv_locale_fr_utf8=fr.UTF-8 12909 else 12910 # None found. 12911 gt_cv_locale_fr_utf8=none 12912 fi 12913 fi 12914 fi 12915 ;; 12916 esac 12917 fi 12918 rm -fr conftest* 12919 12920fi 12921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 12922printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 12923 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 12924 12925 12926 12927 12928 12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 12930printf %s "checking for a transitional chinese locale... " >&6; } 12931if test ${gt_cv_locale_zh_CN+y} 12932then : 12933 printf %s "(cached) " >&6 12934else $as_nop 12935 12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12937/* end confdefs.h. */ 12938 12939#include <locale.h> 12940#include <stdlib.h> 12941#include <time.h> 12942#if HAVE_LANGINFO_CODESET 12943# include <langinfo.h> 12944#endif 12945#include <stdlib.h> 12946#include <string.h> 12947struct tm t; 12948char buf[16]; 12949int main () 12950{ 12951 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 12952 imitates locale dependent behaviour by looking at the environment 12953 variables, and all locales use the UTF-8 encoding. */ 12954#if defined __BEOS__ || defined __HAIKU__ 12955 return 1; 12956#else 12957 /* Check whether the given locale name is recognized by the system. */ 12958# if defined _WIN32 && !defined __CYGWIN__ 12959 /* On native Windows, setlocale(category, "") looks at the system settings, 12960 not at the environment variables. Also, when an encoding suffix such 12961 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 12962 category of the locale to "C". */ 12963 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 12964 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 12965 return 1; 12966# else 12967 if (setlocale (LC_ALL, "") == NULL) return 1; 12968# endif 12969 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 12970 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 12971 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 12972 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 12973 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 12974 some unit tests fail. 12975 On MirBSD 10, when an unsupported locale is specified, setlocale() 12976 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 12977# if HAVE_LANGINFO_CODESET 12978 { 12979 const char *cs = nl_langinfo (CODESET); 12980 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 12981 || strcmp (cs, "UTF-8") == 0) 12982 return 1; 12983 } 12984# endif 12985# ifdef __CYGWIN__ 12986 /* On Cygwin, avoid locale names without encoding suffix, because the 12987 locale_charset() function relies on the encoding suffix. Note that 12988 LC_ALL is set on the command line. */ 12989 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 12990# endif 12991 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 12992 This excludes the UTF-8 encoding (except on MirBSD). */ 12993 { 12994 const char *p; 12995 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 12996 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 12997 for (p = buf; *p != '\0'; p++) 12998 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 12999 return 1; 13000 } 13001 /* Check whether a typical GB18030 multibyte sequence is recognized as a 13002 single wide character. This excludes the GB2312 and GBK encodings. */ 13003 if (mblen ("\203\062\332\066", 5) != 4) 13004 return 1; 13005 return 0; 13006#endif 13007} 13008 13009_ACEOF 13010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13011 (eval $ac_link) 2>&5 13012 ac_status=$? 13013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13014 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13015 case "$host_os" in 13016 # Handle native Windows specially, because there setlocale() interprets 13017 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 13018 # "fr" or "fra" as "French" or "French_France.1252", 13019 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 13020 # "ja" as "Japanese" or "Japanese_Japan.932", 13021 # and similar. 13022 mingw*) 13023 # Test for the hypothetical native Windows locale name. 13024 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 13025 gt_cv_locale_zh_CN=Chinese_China.54936 13026 else 13027 # None found. 13028 gt_cv_locale_zh_CN=none 13029 fi 13030 ;; 13031 solaris2.8) 13032 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 13033 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 13034 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 13035 gt_cv_locale_zh_CN=none 13036 ;; 13037 *) 13038 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 13039 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 13040 # configure script would override the LC_ALL setting. Likewise for 13041 # LC_CTYPE, which is also set at the beginning of the configure script. 13042 # Test for the locale name without encoding suffix. 13043 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 13044 gt_cv_locale_zh_CN=zh_CN 13045 else 13046 # Test for the locale name with explicit encoding suffix. 13047 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 13048 gt_cv_locale_zh_CN=zh_CN.GB18030 13049 else 13050 # None found. 13051 gt_cv_locale_zh_CN=none 13052 fi 13053 fi 13054 ;; 13055 esac 13056 else 13057 # If there was a link error, due to mblen(), the system is so old that 13058 # it certainly doesn't have a chinese locale. 13059 gt_cv_locale_zh_CN=none 13060 fi 13061 rm -fr conftest* 13062 13063fi 13064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 13065printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 13066 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 13067 13068 13069 13070 13071 case "$host_os" in 13072 mingw*) 13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 13074printf %s "checking for 64-bit off_t... " >&6; } 13075if test ${gl_cv_type_off_t_64+y} 13076then : 13077 printf %s "(cached) " >&6 13078else $as_nop 13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081#include <sys/types.h> 13082 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 13083 13084int 13085main (void) 13086{ 13087 13088 ; 13089 return 0; 13090} 13091_ACEOF 13092if ac_fn_c_try_compile "$LINENO" 13093then : 13094 gl_cv_type_off_t_64=yes 13095else $as_nop 13096 gl_cv_type_off_t_64=no 13097fi 13098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13099 13100fi 13101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 13102printf "%s\n" "$gl_cv_type_off_t_64" >&6; } 13103 if test $gl_cv_type_off_t_64 = no; then 13104 WINDOWS_64_BIT_OFF_T=1 13105 else 13106 WINDOWS_64_BIT_OFF_T=0 13107 fi 13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 13109printf %s "checking for 64-bit st_size... " >&6; } 13110if test ${gl_cv_member_st_size_64+y} 13111then : 13112 printf %s "(cached) " >&6 13113else $as_nop 13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116#include <sys/types.h> 13117 struct stat buf; 13118 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; 13119 13120int 13121main (void) 13122{ 13123 13124 ; 13125 return 0; 13126} 13127_ACEOF 13128if ac_fn_c_try_compile "$LINENO" 13129then : 13130 gl_cv_member_st_size_64=yes 13131else $as_nop 13132 gl_cv_member_st_size_64=no 13133fi 13134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13135 13136fi 13137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 13138printf "%s\n" "$gl_cv_member_st_size_64" >&6; } 13139 if test $gl_cv_member_st_size_64 = no; then 13140 WINDOWS_64_BIT_ST_SIZE=1 13141 else 13142 WINDOWS_64_BIT_ST_SIZE=0 13143 fi 13144 ;; 13145 *) 13146 WINDOWS_64_BIT_OFF_T=0 13147 WINDOWS_64_BIT_ST_SIZE=0 13148 ;; 13149 esac 13150 13151 13152 13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 13154printf %s "checking for GNU libc compatible malloc... " >&6; } 13155if test ${ac_cv_func_malloc_0_nonnull+y} 13156then : 13157 printf %s "(cached) " >&6 13158else $as_nop 13159 if test "$cross_compiling" = yes 13160then : 13161 case "$host_os" in 13162 # Guess yes on platforms where we know the result. 13163 *-gnu* | gnu* | *-musl* | freebsd* | midnightbsd* | netbsd* | openbsd* \ 13164 | hpux* | solaris* | cygwin* | mingw*) 13165 ac_cv_func_malloc_0_nonnull="guessing yes" ;; 13166 # If we don't know, obey --enable-cross-guesses. 13167 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; 13168 esac 13169 13170else $as_nop 13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13172/* end confdefs.h. */ 13173#include <stdlib.h> 13174 13175int 13176main (void) 13177{ 13178char *p = malloc (0); 13179 int result = !p; 13180 free (p); 13181 return result; 13182 ; 13183 return 0; 13184} 13185 13186_ACEOF 13187if ac_fn_c_try_run "$LINENO" 13188then : 13189 ac_cv_func_malloc_0_nonnull=yes 13190else $as_nop 13191 ac_cv_func_malloc_0_nonnull=no 13192fi 13193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13194 conftest.$ac_objext conftest.beam conftest.$ac_ext 13195fi 13196 13197 13198fi 13199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 13200printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 13201 case "$ac_cv_func_malloc_0_nonnull" in 13202 *yes) 13203 gl_cv_func_malloc_0_nonnull=1 13204 ;; 13205 *) 13206 gl_cv_func_malloc_0_nonnull=0 13207 ;; 13208 esac 13209 13210 13211printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h 13212 13213 13214 13215 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13217printf %s "checking for mbstate_t... " >&6; } 13218if test ${ac_cv_type_mbstate_t+y} 13219then : 13220 printf %s "(cached) " >&6 13221else $as_nop 13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13223/* end confdefs.h. */ 13224$ac_includes_default 13225 #include <wchar.h> 13226int 13227main (void) 13228{ 13229mbstate_t x; return sizeof x; 13230 ; 13231 return 0; 13232} 13233_ACEOF 13234if ac_fn_c_try_compile "$LINENO" 13235then : 13236 ac_cv_type_mbstate_t=yes 13237else $as_nop 13238 ac_cv_type_mbstate_t=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13241fi 13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 13243printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 13244 if test $ac_cv_type_mbstate_t = yes; then 13245 13246printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 13247 13248 else 13249 13250printf "%s\n" "#define mbstate_t int" >>confdefs.h 13251 13252 fi 13253 13254 13255 GNULIB_BTOWC=0; 13256 GNULIB_WCTOB=0; 13257 GNULIB_MBSINIT=0; 13258 GNULIB_MBRTOWC=0; 13259 GNULIB_MBRLEN=0; 13260 GNULIB_MBSRTOWCS=0; 13261 GNULIB_MBSNRTOWCS=0; 13262 GNULIB_WCRTOMB=0; 13263 GNULIB_WCSRTOMBS=0; 13264 GNULIB_WCSNRTOMBS=0; 13265 GNULIB_WCWIDTH=0; 13266 GNULIB_WMEMCHR=0; 13267 GNULIB_WMEMCMP=0; 13268 GNULIB_WMEMCPY=0; 13269 GNULIB_WMEMMOVE=0; 13270 GNULIB_WMEMPCPY=0; 13271 GNULIB_WMEMSET=0; 13272 GNULIB_WCSLEN=0; 13273 GNULIB_WCSNLEN=0; 13274 GNULIB_WCSCPY=0; 13275 GNULIB_WCPCPY=0; 13276 GNULIB_WCSNCPY=0; 13277 GNULIB_WCPNCPY=0; 13278 GNULIB_WCSCAT=0; 13279 GNULIB_WCSNCAT=0; 13280 GNULIB_WCSCMP=0; 13281 GNULIB_WCSNCMP=0; 13282 GNULIB_WCSCASECMP=0; 13283 GNULIB_WCSNCASECMP=0; 13284 GNULIB_WCSCOLL=0; 13285 GNULIB_WCSXFRM=0; 13286 GNULIB_WCSDUP=0; 13287 GNULIB_WCSCHR=0; 13288 GNULIB_WCSRCHR=0; 13289 GNULIB_WCSCSPN=0; 13290 GNULIB_WCSSPN=0; 13291 GNULIB_WCSPBRK=0; 13292 GNULIB_WCSSTR=0; 13293 GNULIB_WCSTOK=0; 13294 GNULIB_WCSWIDTH=0; 13295 GNULIB_WCSFTIME=0; 13296 GNULIB_MDA_WCSDUP=1; 13297 HAVE_BTOWC=1; 13298 HAVE_MBSINIT=1; 13299 HAVE_MBRTOWC=1; 13300 HAVE_MBRLEN=1; 13301 HAVE_MBSRTOWCS=1; 13302 HAVE_MBSNRTOWCS=1; 13303 HAVE_WCRTOMB=1; 13304 HAVE_WCSRTOMBS=1; 13305 HAVE_WCSNRTOMBS=1; 13306 HAVE_WMEMCHR=1; 13307 HAVE_WMEMCMP=1; 13308 HAVE_WMEMCPY=1; 13309 HAVE_WMEMMOVE=1; 13310 HAVE_WMEMPCPY=1; 13311 HAVE_WMEMSET=1; 13312 HAVE_WCSLEN=1; 13313 HAVE_WCSNLEN=1; 13314 HAVE_WCSCPY=1; 13315 HAVE_WCPCPY=1; 13316 HAVE_WCSNCPY=1; 13317 HAVE_WCPNCPY=1; 13318 HAVE_WCSCAT=1; 13319 HAVE_WCSNCAT=1; 13320 HAVE_WCSCMP=1; 13321 HAVE_WCSNCMP=1; 13322 HAVE_WCSCASECMP=1; 13323 HAVE_WCSNCASECMP=1; 13324 HAVE_WCSCOLL=1; 13325 HAVE_WCSXFRM=1; 13326 HAVE_WCSDUP=1; 13327 HAVE_WCSCHR=1; 13328 HAVE_WCSRCHR=1; 13329 HAVE_WCSCSPN=1; 13330 HAVE_WCSSPN=1; 13331 HAVE_WCSPBRK=1; 13332 HAVE_WCSSTR=1; 13333 HAVE_WCSTOK=1; 13334 HAVE_WCSWIDTH=1; 13335 HAVE_WCSFTIME=1; 13336 HAVE_DECL_WCTOB=1; 13337 HAVE_DECL_WCSDUP=1; 13338 HAVE_DECL_WCWIDTH=1; 13339 REPLACE_MBSTATE_T=0; 13340 REPLACE_BTOWC=0; 13341 REPLACE_WCTOB=0; 13342 REPLACE_MBSINIT=0; 13343 REPLACE_MBRTOWC=0; 13344 REPLACE_MBRLEN=0; 13345 REPLACE_MBSRTOWCS=0; 13346 REPLACE_MBSNRTOWCS=0; 13347 REPLACE_WCRTOMB=0; 13348 REPLACE_WCSRTOMBS=0; 13349 REPLACE_WCSNRTOMBS=0; 13350 REPLACE_WCWIDTH=0; 13351 REPLACE_WCSWIDTH=0; 13352 REPLACE_WCSFTIME=0; 13353 REPLACE_WCSTOK=0; 13354 13355 13356 13357 13358 13359 if test -z "$gl_pthreadlib_body_done"; then 13360 gl_pthread_api=no 13361 LIBPTHREAD= 13362 LIBPMULTITHREAD= 13363 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 13364 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 13365 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 13366if test "x$ac_cv_header_pthread_h" = xyes 13367then : 13368 gl_have_pthread_h=yes 13369else $as_nop 13370 gl_have_pthread_h=no 13371fi 13372 13373 if test "$gl_have_pthread_h" = yes; then 13374 # Other possible tests: 13375 # -lpthreads (FSU threads, PCthreads) 13376 # -lgthreads 13377 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 13378 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 13379 # the second one only in libpthread, and lock.c needs it. 13380 # 13381 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 13382 # needs -pthread for some reason. See: 13383 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 13384 save_LIBS=$LIBS 13385 for gl_pthread in '' '-pthread'; do 13386 LIBS="$LIBS $gl_pthread" 13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13388/* end confdefs.h. */ 13389#include <pthread.h> 13390 pthread_mutex_t m; 13391 pthread_mutexattr_t ma; 13392 13393int 13394main (void) 13395{ 13396pthread_mutex_lock (&m); 13397 pthread_mutexattr_init (&ma); 13398 ; 13399 return 0; 13400} 13401_ACEOF 13402if ac_fn_c_try_link "$LINENO" 13403then : 13404 gl_pthread_api=yes 13405 LIBPTHREAD=$gl_pthread 13406 LIBPMULTITHREAD=$gl_pthread 13407fi 13408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13409 conftest$ac_exeext conftest.$ac_ext 13410 LIBS=$save_LIBS 13411 test $gl_pthread_api = yes && break 13412 done 13413 13414 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 13415 # since it is defined as a macro on OSF/1.) 13416 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 13417 # The program links fine without libpthread. But it may actually 13418 # need to link with libpthread in order to create multiple threads. 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 13420printf %s "checking for pthread_kill in -lpthread... " >&6; } 13421if test ${ac_cv_lib_pthread_pthread_kill+y} 13422then : 13423 printf %s "(cached) " >&6 13424else $as_nop 13425 ac_check_lib_save_LIBS=$LIBS 13426LIBS="-lpthread $LIBS" 13427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429 13430/* Override any GCC internal prototype to avoid an error. 13431 Use char because int might match the return type of a GCC 13432 builtin and then its argument prototype would still apply. */ 13433char pthread_kill (); 13434int 13435main (void) 13436{ 13437return pthread_kill (); 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO" 13443then : 13444 ac_cv_lib_pthread_pthread_kill=yes 13445else $as_nop 13446 ac_cv_lib_pthread_pthread_kill=no 13447fi 13448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13449 conftest$ac_exeext conftest.$ac_ext 13450LIBS=$ac_check_lib_save_LIBS 13451fi 13452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 13453printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 13454if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 13455then : 13456 LIBPMULTITHREAD=-lpthread 13457 # On Solaris and HP-UX, most pthread functions exist also in libc. 13458 # Therefore pthread_in_use() needs to actually try to create a 13459 # thread: pthread_create from libc will fail, whereas 13460 # pthread_create will actually create a thread. 13461 # On Solaris 10 or newer, this test is no longer needed, because 13462 # libc contains the fully functional pthread functions. 13463 case "$host_os" in 13464 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 13465 13466printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 13467 13468 esac 13469 13470fi 13471 13472 elif test $gl_pthread_api != yes; then 13473 # Some library is needed. Try libpthread and libc_r. 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 13475printf %s "checking for pthread_kill in -lpthread... " >&6; } 13476if test ${ac_cv_lib_pthread_pthread_kill+y} 13477then : 13478 printf %s "(cached) " >&6 13479else $as_nop 13480 ac_check_lib_save_LIBS=$LIBS 13481LIBS="-lpthread $LIBS" 13482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484 13485/* Override any GCC internal prototype to avoid an error. 13486 Use char because int might match the return type of a GCC 13487 builtin and then its argument prototype would still apply. */ 13488char pthread_kill (); 13489int 13490main (void) 13491{ 13492return pthread_kill (); 13493 ; 13494 return 0; 13495} 13496_ACEOF 13497if ac_fn_c_try_link "$LINENO" 13498then : 13499 ac_cv_lib_pthread_pthread_kill=yes 13500else $as_nop 13501 ac_cv_lib_pthread_pthread_kill=no 13502fi 13503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13504 conftest$ac_exeext conftest.$ac_ext 13505LIBS=$ac_check_lib_save_LIBS 13506fi 13507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 13508printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 13509if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 13510then : 13511 gl_pthread_api=yes 13512 LIBPTHREAD=-lpthread 13513 LIBPMULTITHREAD=-lpthread 13514fi 13515 13516 if test $gl_pthread_api != yes; then 13517 # For FreeBSD 4. 13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 13519printf %s "checking for pthread_kill in -lc_r... " >&6; } 13520if test ${ac_cv_lib_c_r_pthread_kill+y} 13521then : 13522 printf %s "(cached) " >&6 13523else $as_nop 13524 ac_check_lib_save_LIBS=$LIBS 13525LIBS="-lc_r $LIBS" 13526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528 13529/* Override any GCC internal prototype to avoid an error. 13530 Use char because int might match the return type of a GCC 13531 builtin and then its argument prototype would still apply. */ 13532char pthread_kill (); 13533int 13534main (void) 13535{ 13536return pthread_kill (); 13537 ; 13538 return 0; 13539} 13540_ACEOF 13541if ac_fn_c_try_link "$LINENO" 13542then : 13543 ac_cv_lib_c_r_pthread_kill=yes 13544else $as_nop 13545 ac_cv_lib_c_r_pthread_kill=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13548 conftest$ac_exeext conftest.$ac_ext 13549LIBS=$ac_check_lib_save_LIBS 13550fi 13551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 13552printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 13553if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 13554then : 13555 gl_pthread_api=yes 13556 LIBPTHREAD=-lc_r 13557 LIBPMULTITHREAD=-lc_r 13558fi 13559 13560 fi 13561 fi 13562 fi 13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 13564printf %s "checking whether POSIX threads API is available... " >&6; } 13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 13566printf "%s\n" "$gl_pthread_api" >&6; } 13567 13568 13569 if test $gl_pthread_api = yes; then 13570 13571printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 13572 13573 fi 13574 13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576/* end confdefs.h. */ 13577#include <sched.h> 13578int 13579main (void) 13580{ 13581sched_yield (); 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_c_try_link "$LINENO" 13587then : 13588 LIB_SCHED_YIELD= 13589 13590else $as_nop 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 13592printf %s "checking for sched_yield in -lrt... " >&6; } 13593if test ${ac_cv_lib_rt_sched_yield+y} 13594then : 13595 printf %s "(cached) " >&6 13596else $as_nop 13597 ac_check_lib_save_LIBS=$LIBS 13598LIBS="-lrt $LIBS" 13599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13600/* end confdefs.h. */ 13601 13602/* Override any GCC internal prototype to avoid an error. 13603 Use char because int might match the return type of a GCC 13604 builtin and then its argument prototype would still apply. */ 13605char sched_yield (); 13606int 13607main (void) 13608{ 13609return sched_yield (); 13610 ; 13611 return 0; 13612} 13613_ACEOF 13614if ac_fn_c_try_link "$LINENO" 13615then : 13616 ac_cv_lib_rt_sched_yield=yes 13617else $as_nop 13618 ac_cv_lib_rt_sched_yield=no 13619fi 13620rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13621 conftest$ac_exeext conftest.$ac_ext 13622LIBS=$ac_check_lib_save_LIBS 13623fi 13624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 13625printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 13626if test "x$ac_cv_lib_rt_sched_yield" = xyes 13627then : 13628 LIB_SCHED_YIELD=-lrt 13629else $as_nop 13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 13631printf %s "checking for sched_yield in -lposix4... " >&6; } 13632if test ${ac_cv_lib_posix4_sched_yield+y} 13633then : 13634 printf %s "(cached) " >&6 13635else $as_nop 13636 ac_check_lib_save_LIBS=$LIBS 13637LIBS="-lposix4 $LIBS" 13638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640 13641/* Override any GCC internal prototype to avoid an error. 13642 Use char because int might match the return type of a GCC 13643 builtin and then its argument prototype would still apply. */ 13644char sched_yield (); 13645int 13646main (void) 13647{ 13648return sched_yield (); 13649 ; 13650 return 0; 13651} 13652_ACEOF 13653if ac_fn_c_try_link "$LINENO" 13654then : 13655 ac_cv_lib_posix4_sched_yield=yes 13656else $as_nop 13657 ac_cv_lib_posix4_sched_yield=no 13658fi 13659rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13660 conftest$ac_exeext conftest.$ac_ext 13661LIBS=$ac_check_lib_save_LIBS 13662fi 13663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 13664printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 13665if test "x$ac_cv_lib_posix4_sched_yield" = xyes 13666then : 13667 LIB_SCHED_YIELD=-lposix4 13668fi 13669 13670fi 13671 13672 13673fi 13674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13675 conftest$ac_exeext conftest.$ac_ext 13676 13677 13678 gl_pthreadlib_body_done=done 13679 fi 13680 13681 13682 13683 13684 13685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13686printf %s "checking for inline... " >&6; } 13687if test ${ac_cv_c_inline+y} 13688then : 13689 printf %s "(cached) " >&6 13690else $as_nop 13691 ac_cv_c_inline=no 13692for ac_kw in inline __inline__ __inline; do 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694/* end confdefs.h. */ 13695#ifndef __cplusplus 13696typedef int foo_t; 13697static $ac_kw foo_t static_foo (void) {return 0; } 13698$ac_kw foo_t foo (void) {return 0; } 13699#endif 13700 13701_ACEOF 13702if ac_fn_c_try_compile "$LINENO" 13703then : 13704 ac_cv_c_inline=$ac_kw 13705fi 13706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13707 test "$ac_cv_c_inline" != no && break 13708done 13709 13710fi 13711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13712printf "%s\n" "$ac_cv_c_inline" >&6; } 13713 13714case $ac_cv_c_inline in 13715 inline | yes) ;; 13716 *) 13717 case $ac_cv_c_inline in 13718 no) ac_val=;; 13719 *) ac_val=$ac_cv_c_inline;; 13720 esac 13721 cat >>confdefs.h <<_ACEOF 13722#ifndef __cplusplus 13723#define inline $ac_val 13724#endif 13725_ACEOF 13726 ;; 13727esac 13728 13729 13730 GNULIB_EXPLICIT_BZERO=0; 13731 GNULIB_FFSL=0; 13732 GNULIB_FFSLL=0; 13733 GNULIB_MEMCHR=0; 13734 GNULIB_MEMMEM=0; 13735 GNULIB_MEMPCPY=0; 13736 GNULIB_MEMRCHR=0; 13737 GNULIB_RAWMEMCHR=0; 13738 GNULIB_STPCPY=0; 13739 GNULIB_STPNCPY=0; 13740 GNULIB_STRCHRNUL=0; 13741 GNULIB_STRDUP=0; 13742 GNULIB_STRNCAT=0; 13743 GNULIB_STRNDUP=0; 13744 GNULIB_STRNLEN=0; 13745 GNULIB_STRPBRK=0; 13746 GNULIB_STRSEP=0; 13747 GNULIB_STRSTR=0; 13748 GNULIB_STRCASESTR=0; 13749 GNULIB_STRTOK_R=0; 13750 GNULIB_MBSLEN=0; 13751 GNULIB_MBSNLEN=0; 13752 GNULIB_MBSCHR=0; 13753 GNULIB_MBSRCHR=0; 13754 GNULIB_MBSSTR=0; 13755 GNULIB_MBSCASECMP=0; 13756 GNULIB_MBSNCASECMP=0; 13757 GNULIB_MBSPCASECMP=0; 13758 GNULIB_MBSCASESTR=0; 13759 GNULIB_MBSCSPN=0; 13760 GNULIB_MBSPBRK=0; 13761 GNULIB_MBSSPN=0; 13762 GNULIB_MBSSEP=0; 13763 GNULIB_MBSTOK_R=0; 13764 GNULIB_STRERROR=0; 13765 GNULIB_STRERROR_R=0; 13766 GNULIB_STRERRORNAME_NP=0; 13767 GNULIB_SIGABBREV_NP=0; 13768 GNULIB_SIGDESCR_NP=0; 13769 GNULIB_STRSIGNAL=0; 13770 GNULIB_STRVERSCMP=0; 13771 HAVE_MBSLEN=0; 13772 GNULIB_MDA_MEMCCPY=1; 13773 GNULIB_MDA_STRDUP=1; 13774 HAVE_EXPLICIT_BZERO=1; 13775 HAVE_FFSL=1; 13776 HAVE_FFSLL=1; 13777 HAVE_DECL_MEMMEM=1; 13778 HAVE_MEMPCPY=1; 13779 HAVE_DECL_MEMRCHR=1; 13780 HAVE_RAWMEMCHR=1; 13781 HAVE_STPCPY=1; 13782 HAVE_STPNCPY=1; 13783 HAVE_STRCHRNUL=1; 13784 HAVE_DECL_STRDUP=1; 13785 HAVE_DECL_STRNDUP=1; 13786 HAVE_DECL_STRNLEN=1; 13787 HAVE_STRPBRK=1; 13788 HAVE_STRSEP=1; 13789 HAVE_STRCASESTR=1; 13790 HAVE_DECL_STRTOK_R=1; 13791 HAVE_DECL_STRERROR_R=1; 13792 HAVE_STRERRORNAME_NP=1; 13793 HAVE_SIGABBREV_NP=1; 13794 HAVE_SIGDESCR_NP=1; 13795 HAVE_DECL_STRSIGNAL=1; 13796 HAVE_STRVERSCMP=1; 13797 REPLACE_FFSLL=0; 13798 REPLACE_MEMCHR=0; 13799 REPLACE_MEMMEM=0; 13800 REPLACE_STPNCPY=0; 13801 REPLACE_STRCHRNUL=0; 13802 REPLACE_STRDUP=0; 13803 REPLACE_STRNCAT=0; 13804 REPLACE_STRNDUP=0; 13805 REPLACE_STRNLEN=0; 13806 REPLACE_STRSTR=0; 13807 REPLACE_STRCASESTR=0; 13808 REPLACE_STRTOK_R=0; 13809 REPLACE_STRERROR=0; 13810 REPLACE_STRERROR_R=0; 13811 REPLACE_STRERRORNAME_NP=0; 13812 REPLACE_STRSIGNAL=0; 13813 UNDEFINE_STRTOK_R=0; 13814 13815 13816 13817 13818 13819 13820 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 13821 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 13822 # irrelevant for anonymous mappings. 13823 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 13824if test "x$ac_cv_func_mmap" = xyes 13825then : 13826 gl_have_mmap=yes 13827else $as_nop 13828 gl_have_mmap=no 13829fi 13830 13831 13832 # Try to allow MAP_ANONYMOUS. 13833 gl_have_mmap_anonymous=no 13834 if test $gl_have_mmap = yes; then 13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 13836printf %s "checking for MAP_ANONYMOUS... " >&6; } 13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13838/* end confdefs.h. */ 13839 13840#include <sys/mman.h> 13841#ifdef MAP_ANONYMOUS 13842 I cannot identify this map 13843#endif 13844 13845_ACEOF 13846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13847 $EGREP "I cannot identify this map" >/dev/null 2>&1 13848then : 13849 gl_have_mmap_anonymous=yes 13850fi 13851rm -rf conftest* 13852 13853 if test $gl_have_mmap_anonymous != yes; then 13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856 13857#include <sys/mman.h> 13858#ifdef MAP_ANON 13859 I cannot identify this map 13860#endif 13861 13862_ACEOF 13863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13864 $EGREP "I cannot identify this map" >/dev/null 2>&1 13865then : 13866 13867printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 13868 13869 gl_have_mmap_anonymous=yes 13870fi 13871rm -rf conftest* 13872 13873 fi 13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 13875printf "%s\n" "$gl_have_mmap_anonymous" >&6; } 13876 if test $gl_have_mmap_anonymous = yes; then 13877 13878printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 13879 13880 fi 13881 fi 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 # Detect platform-specific bugs in some versions of glibc: 13893 # memchr should not dereference anything with length 0 13894 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 13895 # memchr should not dereference overestimated length after a match 13896 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 13897 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 13898 # memchr should cast the second argument to 'unsigned char'. 13899 # This bug exists in Android 4.3. 13900 # Assume that memchr works on platforms that lack mprotect. 13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 13902printf %s "checking whether memchr works... " >&6; } 13903if test ${gl_cv_func_memchr_works+y} 13904then : 13905 printf %s "(cached) " >&6 13906else $as_nop 13907 if test "$cross_compiling" = yes 13908then : 13909 case "$host_os" in 13910 # Guess no on Android. 13911 linux*-android*) gl_cv_func_memchr_works="guessing no" ;; 13912 # Guess yes on native Windows. 13913 mingw*) gl_cv_func_memchr_works="guessing yes" ;; 13914 # If we don't know, obey --enable-cross-guesses. 13915 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; 13916 esac 13917 13918else $as_nop 13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13920/* end confdefs.h. */ 13921 13922#include <string.h> 13923#if HAVE_SYS_MMAN_H 13924# include <fcntl.h> 13925# include <unistd.h> 13926# include <sys/types.h> 13927# include <sys/mman.h> 13928# ifndef MAP_FILE 13929# define MAP_FILE 0 13930# endif 13931#endif 13932 13933int 13934main (void) 13935{ 13936 13937 int result = 0; 13938 char *fence = NULL; 13939#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 13940# if HAVE_MAP_ANONYMOUS 13941 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 13942 const int fd = -1; 13943# else /* !HAVE_MAP_ANONYMOUS */ 13944 const int flags = MAP_FILE | MAP_PRIVATE; 13945 int fd = open ("/dev/zero", O_RDONLY, 0666); 13946 if (fd >= 0) 13947# endif 13948 { 13949 int pagesize = getpagesize (); 13950 char *two_pages = 13951 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 13952 flags, fd, 0); 13953 if (two_pages != (char *)(-1) 13954 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 13955 fence = two_pages + pagesize; 13956 } 13957#endif 13958 if (fence) 13959 { 13960 /* Test against bugs on glibc systems. */ 13961 if (memchr (fence, 0, 0)) 13962 result |= 1; 13963 strcpy (fence - 9, "12345678"); 13964 if (memchr (fence - 9, 0, 79) != fence - 1) 13965 result |= 2; 13966 if (memchr (fence - 1, 0, 3) != fence - 1) 13967 result |= 4; 13968 /* Test against bug on AIX 7.2. */ 13969 if (memchr (fence - 4, '6', 16) != fence - 4) 13970 result |= 8; 13971 } 13972 /* Test against bug on Android 4.3. */ 13973 { 13974 char input[3]; 13975 input[0] = 'a'; 13976 input[1] = 'b'; 13977 input[2] = 'c'; 13978 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) 13979 result |= 16; 13980 } 13981 return result; 13982 13983 ; 13984 return 0; 13985} 13986_ACEOF 13987if ac_fn_c_try_run "$LINENO" 13988then : 13989 gl_cv_func_memchr_works=yes 13990else $as_nop 13991 gl_cv_func_memchr_works=no 13992fi 13993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13994 conftest.$ac_objext conftest.beam conftest.$ac_ext 13995fi 13996 13997 13998fi 13999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 14000printf "%s\n" "$gl_cv_func_memchr_works" >&6; } 14001 case "$gl_cv_func_memchr_works" in 14002 *yes) ;; 14003 *) REPLACE_MEMCHR=1 ;; 14004 esac 14005 14006ac_fn_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14007if test "x$ac_cv_have_decl_memrchr" = xyes 14008then : 14009 ac_have_decl=1 14010else $as_nop 14011 ac_have_decl=0 14012fi 14013printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h 14014 14015 14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 14017printf %s "checking for O_CLOEXEC... " >&6; } 14018if test ${gl_cv_macro_O_CLOEXEC+y} 14019then : 14020 printf %s "(cached) " >&6 14021else $as_nop 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024#include <fcntl.h> 14025 #ifndef O_CLOEXEC 14026 choke me; 14027 #endif 14028 14029int 14030main (void) 14031{ 14032return O_CLOEXEC; 14033 ; 14034 return 0; 14035} 14036_ACEOF 14037if ac_fn_c_try_compile "$LINENO" 14038then : 14039 gl_cv_macro_O_CLOEXEC=yes 14040else $as_nop 14041 gl_cv_macro_O_CLOEXEC=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14044fi 14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 14046printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } 14047 14048 14049 14050 14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 14052printf %s "checking for promoted mode_t type... " >&6; } 14053if test ${gl_cv_promoted_mode_t+y} 14054then : 14055 printf %s "(cached) " >&6 14056else $as_nop 14057 14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060#include <sys/types.h> 14061int 14062main (void) 14063{ 14064typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 14065 ; 14066 return 0; 14067} 14068_ACEOF 14069if ac_fn_c_try_compile "$LINENO" 14070then : 14071 gl_cv_promoted_mode_t='int' 14072else $as_nop 14073 gl_cv_promoted_mode_t='mode_t' 14074fi 14075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14076 14077fi 14078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 14079printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } 14080 14081printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h 14082 14083 14084ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14085if test "x$ac_cv_have_decl_alarm" = xyes 14086then : 14087 ac_have_decl=1 14088else $as_nop 14089 ac_have_decl=0 14090fi 14091printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h 14092 14093 14094 14095 14096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 14097printf %s "checking for stdbool.h that conforms to C99... " >&6; } 14098if test ${ac_cv_header_stdbool_h+y} 14099then : 14100 printf %s "(cached) " >&6 14101else $as_nop 14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14103/* end confdefs.h. */ 14104 14105 #include <stdbool.h> 14106 14107 #ifdef __cplusplus 14108 typedef bool Bool; 14109 #else 14110 typedef _Bool Bool; 14111 #ifndef bool 14112 "error: bool is not defined" 14113 #endif 14114 #ifndef false 14115 "error: false is not defined" 14116 #endif 14117 #if false 14118 "error: false is not 0" 14119 #endif 14120 #ifndef true 14121 "error: true is not defined" 14122 #endif 14123 #if true != 1 14124 "error: true is not 1" 14125 #endif 14126 #endif 14127 14128 #ifndef __bool_true_false_are_defined 14129 "error: __bool_true_false_are_defined is not defined" 14130 #endif 14131 14132 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; 14133 14134 char a[true == 1 ? 1 : -1]; 14135 char b[false == 0 ? 1 : -1]; 14136 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 14137 char d[(bool) 0.5 == true ? 1 : -1]; 14138 /* See body of main program for 'e'. */ 14139 char f[(Bool) 0.0 == false ? 1 : -1]; 14140 char g[true]; 14141 char h[sizeof (Bool)]; 14142 char i[sizeof s.t]; 14143 enum { j = false, k = true, l = false * true, m = true * 256 }; 14144 /* The following fails for 14145 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 14146 Bool n[m]; 14147 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 14148 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 14149 /* Catch a bug in an HP-UX C compiler. See 14150 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 14151 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 14152 */ 14153 Bool q = true; 14154 Bool *pq = &q; 14155 bool *qq = &q; 14156 14157int 14158main (void) 14159{ 14160 14161 bool e = &s; 14162 *pq |= q; *pq |= ! q; 14163 *qq |= q; *qq |= ! q; 14164 /* Refer to every declared value, to avoid compiler optimizations. */ 14165 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 14166 + !m + !n + !o + !p + !q + !pq + !qq); 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_compile "$LINENO" 14173then : 14174 ac_cv_header_stdbool_h=yes 14175else $as_nop 14176 ac_cv_header_stdbool_h=no 14177fi 14178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14179fi 14180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 14181printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } 14182 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 14183if test "x$ac_cv_type__Bool" = xyes 14184then : 14185 14186printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h 14187 14188 14189fi 14190 14191 14192 14193 REPLACE_NULL=0; 14194 HAVE_MAX_ALIGN_T=1; 14195 HAVE_WCHAR_T=1; 14196 14197 14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 14199printf %s "checking for wchar_t... " >&6; } 14200if test ${gt_cv_c_wchar_t+y} 14201then : 14202 printf %s "(cached) " >&6 14203else $as_nop 14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14205/* end confdefs.h. */ 14206#include <stddef.h> 14207 wchar_t foo = (wchar_t)'\0'; 14208int 14209main (void) 14210{ 14211 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_compile "$LINENO" 14217then : 14218 gt_cv_c_wchar_t=yes 14219else $as_nop 14220 gt_cv_c_wchar_t=no 14221fi 14222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14223fi 14224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 14225printf "%s\n" "$gt_cv_c_wchar_t" >&6; } 14226 if test $gt_cv_c_wchar_t = yes; then 14227 14228printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h 14229 14230 fi 14231 14232 14233 GNULIB_DPRINTF=0; 14234 GNULIB_FCLOSE=0; 14235 GNULIB_FDOPEN=0; 14236 GNULIB_FFLUSH=0; 14237 GNULIB_FGETC=0; 14238 GNULIB_FGETS=0; 14239 GNULIB_FOPEN=0; 14240 GNULIB_FPRINTF=0; 14241 GNULIB_FPRINTF_POSIX=0; 14242 GNULIB_FPURGE=0; 14243 GNULIB_FPUTC=0; 14244 GNULIB_FPUTS=0; 14245 GNULIB_FREAD=0; 14246 GNULIB_FREOPEN=0; 14247 GNULIB_FSCANF=0; 14248 GNULIB_FSEEK=0; 14249 GNULIB_FSEEKO=0; 14250 GNULIB_FTELL=0; 14251 GNULIB_FTELLO=0; 14252 GNULIB_FWRITE=0; 14253 GNULIB_GETC=0; 14254 GNULIB_GETCHAR=0; 14255 GNULIB_GETDELIM=0; 14256 GNULIB_GETLINE=0; 14257 GNULIB_OBSTACK_PRINTF=0; 14258 GNULIB_OBSTACK_PRINTF_POSIX=0; 14259 GNULIB_PCLOSE=0; 14260 GNULIB_PERROR=0; 14261 GNULIB_POPEN=0; 14262 GNULIB_PRINTF=0; 14263 GNULIB_PRINTF_POSIX=0; 14264 GNULIB_PUTC=0; 14265 GNULIB_PUTCHAR=0; 14266 GNULIB_PUTS=0; 14267 GNULIB_REMOVE=0; 14268 GNULIB_RENAME=0; 14269 GNULIB_RENAMEAT=0; 14270 GNULIB_SCANF=0; 14271 GNULIB_SNPRINTF=0; 14272 GNULIB_SPRINTF_POSIX=0; 14273 GNULIB_STDIO_H_NONBLOCKING=0; 14274 GNULIB_STDIO_H_SIGPIPE=0; 14275 GNULIB_TMPFILE=0; 14276 GNULIB_VASPRINTF=0; 14277 GNULIB_VFSCANF=0; 14278 GNULIB_VSCANF=0; 14279 GNULIB_VDPRINTF=0; 14280 GNULIB_VFPRINTF=0; 14281 GNULIB_VFPRINTF_POSIX=0; 14282 GNULIB_VPRINTF=0; 14283 GNULIB_VPRINTF_POSIX=0; 14284 GNULIB_VSNPRINTF=0; 14285 GNULIB_VSPRINTF_POSIX=0; 14286 GNULIB_MDA_FCLOSEALL=1; 14287 GNULIB_MDA_FDOPEN=1; 14288 GNULIB_MDA_FILENO=1; 14289 GNULIB_MDA_GETW=1; 14290 GNULIB_MDA_PUTW=1; 14291 GNULIB_MDA_TEMPNAM=1; 14292 HAVE_DECL_FCLOSEALL=1; 14293 HAVE_DECL_FPURGE=1; 14294 HAVE_DECL_FSEEKO=1; 14295 HAVE_DECL_FTELLO=1; 14296 HAVE_DECL_GETDELIM=1; 14297 HAVE_DECL_GETLINE=1; 14298 HAVE_DECL_OBSTACK_PRINTF=1; 14299 HAVE_DECL_SNPRINTF=1; 14300 HAVE_DECL_VSNPRINTF=1; 14301 HAVE_DPRINTF=1; 14302 HAVE_FSEEKO=1; 14303 HAVE_FTELLO=1; 14304 HAVE_PCLOSE=1; 14305 HAVE_POPEN=1; 14306 HAVE_RENAMEAT=1; 14307 HAVE_VASPRINTF=1; 14308 HAVE_VDPRINTF=1; 14309 REPLACE_DPRINTF=0; 14310 REPLACE_FCLOSE=0; 14311 REPLACE_FDOPEN=0; 14312 REPLACE_FFLUSH=0; 14313 REPLACE_FOPEN=0; 14314 REPLACE_FPRINTF=0; 14315 REPLACE_FPURGE=0; 14316 REPLACE_FREOPEN=0; 14317 REPLACE_FSEEK=0; 14318 REPLACE_FSEEKO=0; 14319 REPLACE_FTELL=0; 14320 REPLACE_FTELLO=0; 14321 REPLACE_GETDELIM=0; 14322 REPLACE_GETLINE=0; 14323 REPLACE_OBSTACK_PRINTF=0; 14324 REPLACE_PERROR=0; 14325 REPLACE_POPEN=0; 14326 REPLACE_PRINTF=0; 14327 REPLACE_REMOVE=0; 14328 REPLACE_RENAME=0; 14329 REPLACE_RENAMEAT=0; 14330 REPLACE_SNPRINTF=0; 14331 REPLACE_SPRINTF=0; 14332 REPLACE_STDIO_READ_FUNCS=0; 14333 REPLACE_STDIO_WRITE_FUNCS=0; 14334 REPLACE_TMPFILE=0; 14335 REPLACE_VASPRINTF=0; 14336 REPLACE_VDPRINTF=0; 14337 REPLACE_VFPRINTF=0; 14338 REPLACE_VPRINTF=0; 14339 REPLACE_VSNPRINTF=0; 14340 REPLACE_VSPRINTF=0; 14341 14342ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14343if test "x$ac_cv_have_decl_fcloseall" = xyes 14344then : 14345 ac_have_decl=1 14346else $as_nop 14347 ac_have_decl=0 14348fi 14349printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h 14350 14351 14352 GNULIB__EXIT=0; 14353 GNULIB_ALIGNED_ALLOC=0; 14354 GNULIB_ATOLL=0; 14355 GNULIB_CALLOC_POSIX=0; 14356 GNULIB_CANONICALIZE_FILE_NAME=0; 14357 GNULIB_FREE_POSIX=0; 14358 GNULIB_GETLOADAVG=0; 14359 GNULIB_GETSUBOPT=0; 14360 GNULIB_GRANTPT=0; 14361 GNULIB_MALLOC_POSIX=0; 14362 GNULIB_MBTOWC=0; 14363 GNULIB_MKDTEMP=0; 14364 GNULIB_MKOSTEMP=0; 14365 GNULIB_MKOSTEMPS=0; 14366 GNULIB_MKSTEMP=0; 14367 GNULIB_MKSTEMPS=0; 14368 GNULIB_POSIX_MEMALIGN=0; 14369 GNULIB_POSIX_OPENPT=0; 14370 GNULIB_PTSNAME=0; 14371 GNULIB_PTSNAME_R=0; 14372 GNULIB_PUTENV=0; 14373 GNULIB_QSORT_R=0; 14374 GNULIB_RANDOM=0; 14375 GNULIB_RANDOM_R=0; 14376 GNULIB_REALLOCARRAY=0; 14377 GNULIB_REALLOC_POSIX=0; 14378 GNULIB_REALPATH=0; 14379 GNULIB_RPMATCH=0; 14380 GNULIB_SECURE_GETENV=0; 14381 GNULIB_SETENV=0; 14382 GNULIB_STRTOD=0; 14383 GNULIB_STRTOLD=0; 14384 GNULIB_STRTOLL=0; 14385 GNULIB_STRTOULL=0; 14386 GNULIB_SYSTEM_POSIX=0; 14387 GNULIB_UNLOCKPT=0; 14388 GNULIB_UNSETENV=0; 14389 GNULIB_WCTOMB=0; 14390 GNULIB_MDA_ECVT=1; 14391 GNULIB_MDA_FCVT=1; 14392 GNULIB_MDA_GCVT=1; 14393 GNULIB_MDA_MKTEMP=1; 14394 GNULIB_MDA_PUTENV=1; 14395 HAVE__EXIT=1; 14396 HAVE_ALIGNED_ALLOC=1; 14397 HAVE_ATOLL=1; 14398 HAVE_CANONICALIZE_FILE_NAME=1; 14399 HAVE_DECL_ECVT=1; 14400 HAVE_DECL_FCVT=1; 14401 HAVE_DECL_GCVT=1; 14402 HAVE_DECL_GETLOADAVG=1; 14403 HAVE_GETSUBOPT=1; 14404 HAVE_GRANTPT=1; 14405 HAVE_INITSTATE=1; 14406 HAVE_DECL_INITSTATE=1; 14407 HAVE_MBTOWC=1; 14408 HAVE_MKDTEMP=1; 14409 HAVE_MKOSTEMP=1; 14410 HAVE_MKOSTEMPS=1; 14411 HAVE_MKSTEMP=1; 14412 HAVE_MKSTEMPS=1; 14413 HAVE_POSIX_MEMALIGN=1; 14414 HAVE_POSIX_OPENPT=1; 14415 HAVE_PTSNAME=1; 14416 HAVE_PTSNAME_R=1; 14417 HAVE_QSORT_R=1; 14418 HAVE_RANDOM=1; 14419 HAVE_RANDOM_H=1; 14420 HAVE_RANDOM_R=1; 14421 HAVE_REALLOCARRAY=1; 14422 HAVE_REALPATH=1; 14423 HAVE_RPMATCH=1; 14424 HAVE_SECURE_GETENV=1; 14425 HAVE_SETENV=1; 14426 HAVE_DECL_SETENV=1; 14427 HAVE_SETSTATE=1; 14428 HAVE_DECL_SETSTATE=1; 14429 HAVE_STRTOD=1; 14430 HAVE_STRTOLD=1; 14431 HAVE_STRTOLL=1; 14432 HAVE_STRTOULL=1; 14433 HAVE_STRUCT_RANDOM_DATA=1; 14434 HAVE_SYS_LOADAVG_H=0; 14435 HAVE_UNLOCKPT=1; 14436 HAVE_DECL_UNSETENV=1; 14437 REPLACE_ALIGNED_ALLOC=0; 14438 REPLACE_CALLOC=0; 14439 REPLACE_CANONICALIZE_FILE_NAME=0; 14440 REPLACE_FREE=0; 14441 REPLACE_INITSTATE=0; 14442 REPLACE_MALLOC=0; 14443 REPLACE_MBTOWC=0; 14444 REPLACE_MKSTEMP=0; 14445 REPLACE_POSIX_MEMALIGN=0; 14446 REPLACE_PTSNAME=0; 14447 REPLACE_PTSNAME_R=0; 14448 REPLACE_PUTENV=0; 14449 REPLACE_QSORT_R=0; 14450 REPLACE_RANDOM=0; 14451 REPLACE_RANDOM_R=0; 14452 REPLACE_REALLOC=0; 14453 REPLACE_REALPATH=0; 14454 REPLACE_SETENV=0; 14455 REPLACE_SETSTATE=0; 14456 REPLACE_STRTOD=0; 14457 REPLACE_STRTOLD=0; 14458 REPLACE_UNSETENV=0; 14459 REPLACE_WCTOMB=0; 14460 14461ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14462if test "x$ac_cv_have_decl_ecvt" = xyes 14463then : 14464 ac_have_decl=1 14465else $as_nop 14466 ac_have_decl=0 14467fi 14468printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h 14469 14470ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14471if test "x$ac_cv_have_decl_fcvt" = xyes 14472then : 14473 ac_have_decl=1 14474else $as_nop 14475 ac_have_decl=0 14476fi 14477printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h 14478 14479ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14480if test "x$ac_cv_have_decl_gcvt" = xyes 14481then : 14482 ac_have_decl=1 14483else $as_nop 14484 ac_have_decl=0 14485fi 14486printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h 14487 14488 14489 GNULIB_FFS=0; 14490 HAVE_FFS=1; 14491 HAVE_STRCASECMP=1; 14492 HAVE_DECL_STRNCASECMP=1; 14493 14494 14495 14496 14497 14498 14499 14500 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14501if test "x$ac_cv_func_strcasestr" = xyes 14502then : 14503 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 14504 14505fi 14506 14507 if test $ac_cv_func_strcasestr = no; then 14508 HAVE_STRCASESTR=0 14509 else 14510 if test $REPLACE_MEMCHR = 1; then 14511 REPLACE_STRCASESTR=1 14512 else 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 14514printf %s "checking whether strcasestr works... " >&6; } 14515if test ${gl_cv_func_strcasestr_works_always+y} 14516then : 14517 printf %s "(cached) " >&6 14518else $as_nop 14519 if test "$cross_compiling" = yes 14520then : 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523 14524#ifdef __GNU_LIBRARY__ 14525 #include <features.h> 14526 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 14527 || defined __UCLIBC__ 14528 Lucky user 14529 #endif 14530#elif defined __CYGWIN__ 14531 #include <cygwin/version.h> 14532 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 14533 Lucky user 14534 #endif 14535#else 14536 Lucky user 14537#endif 14538 14539_ACEOF 14540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14541 $EGREP "Lucky user" >/dev/null 2>&1 14542then : 14543 gl_cv_func_strcasestr_works_always="guessing yes" 14544else $as_nop 14545 gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal" 14546fi 14547rm -rf conftest* 14548 14549 14550else $as_nop 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552/* end confdefs.h. */ 14553 14554#include <string.h> /* for strcasestr */ 14555#ifdef __GNU_LIBRARY__ 14556 #include <features.h> 14557 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28 14558 Unlucky user 14559 #endif 14560#endif 14561#define P "_EF_BF_BD" 14562#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P 14563#define NEEDLE P P P P P 14564 14565int 14566main (void) 14567{ 14568return !!strcasestr (HAYSTACK, NEEDLE); 14569 14570 ; 14571 return 0; 14572} 14573_ACEOF 14574if ac_fn_c_try_run "$LINENO" 14575then : 14576 gl_cv_func_strcasestr_works_always=yes 14577else $as_nop 14578 gl_cv_func_strcasestr_works_always=no 14579fi 14580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14581 conftest.$ac_objext conftest.beam conftest.$ac_ext 14582fi 14583 14584 14585fi 14586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 14587printf "%s\n" "$gl_cv_func_strcasestr_works_always" >&6; } 14588 case "$gl_cv_func_strcasestr_works_always" in 14589 *yes) ;; 14590 *) 14591 REPLACE_STRCASESTR=1 14592 ;; 14593 esac 14594 fi 14595 fi 14596 14597 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 14599printf %s "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 14600if test ${gl_cv_func_malloc_posix+y} 14601then : 14602 printf %s "(cached) " >&6 14603else $as_nop 14604 14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14606/* end confdefs.h. */ 14607 14608int 14609main (void) 14610{ 14611#if defined _WIN32 && ! defined __CYGWIN__ 14612 choke me 14613 #endif 14614 14615 ; 14616 return 0; 14617} 14618_ACEOF 14619if ac_fn_c_try_compile "$LINENO" 14620then : 14621 gl_cv_func_malloc_posix=yes 14622else $as_nop 14623 gl_cv_func_malloc_posix=no 14624fi 14625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14626 14627fi 14628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 14629printf "%s\n" "$gl_cv_func_malloc_posix" >&6; } 14630 14631ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14632if test "x$ac_cv_have_decl_strdup" = xyes 14633then : 14634 ac_have_decl=1 14635else $as_nop 14636 ac_have_decl=0 14637fi 14638printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h 14639 14640 14641 REPLACE_STRERROR_0=0 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 14643printf %s "checking whether strerror(0) succeeds... " >&6; } 14644if test ${gl_cv_func_strerror_0_works+y} 14645then : 14646 printf %s "(cached) " >&6 14647else $as_nop 14648 if test "$cross_compiling" = yes 14649then : 14650 case "$host_os" in 14651 # Guess yes on glibc systems. 14652 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 14653 # Guess yes on musl systems. 14654 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; 14655 # Guess yes on native Windows. 14656 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 14657 # If we don't know, obey --enable-cross-guesses. 14658 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; 14659 esac 14660 14661else $as_nop 14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14663/* end confdefs.h. */ 14664#include <string.h> 14665 #include <errno.h> 14666 14667int 14668main (void) 14669{ 14670int result = 0; 14671 char *str; 14672 errno = 0; 14673 str = strerror (0); 14674 if (!*str) result |= 1; 14675 if (errno) result |= 2; 14676 if (strstr (str, "nknown") || strstr (str, "ndefined")) 14677 result |= 4; 14678 return result; 14679 ; 14680 return 0; 14681} 14682_ACEOF 14683if ac_fn_c_try_run "$LINENO" 14684then : 14685 gl_cv_func_strerror_0_works=yes 14686else $as_nop 14687 gl_cv_func_strerror_0_works=no 14688fi 14689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14690 conftest.$ac_objext conftest.beam conftest.$ac_ext 14691fi 14692 14693 14694fi 14695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 14696printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; } 14697 case "$gl_cv_func_strerror_0_works" in 14698 *yes) ;; 14699 *) 14700 REPLACE_STRERROR_0=1 14701 14702printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h 14703 14704 ;; 14705 esac 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 if test $gl_cv_have_include_next = yes; then 14718 gl_cv_next_string_h='<'string.h'>' 14719 else 14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 14721printf %s "checking absolute name of <string.h>... " >&6; } 14722if test ${gl_cv_next_string_h+y} 14723then : 14724 printf %s "(cached) " >&6 14725else $as_nop 14726 14727 14728 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14730/* end confdefs.h. */ 14731#include <string.h> 14732_ACEOF 14733 case "$host_os" in 14734 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14735 *) gl_absname_cpp="$ac_cpp" ;; 14736 esac 14737 14738 case "$host_os" in 14739 mingw*) 14740 gl_dirsep_regex='[/\\]' 14741 ;; 14742 *) 14743 gl_dirsep_regex='\/' 14744 ;; 14745 esac 14746 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14747 gl_header_literal_regex=`echo 'string.h' \ 14748 | sed -e "$gl_make_literal_regex_sed"` 14749 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14750 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14751 s|^/[^/]|//&| 14752 p 14753 q 14754 }' 14755 14756 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14757 sed -n "$gl_absolute_header_sed"` 14758 14759 gl_header=$gl_cv_absolute_string_h 14760 gl_cv_next_string_h='"'$gl_header'"' 14761 14762 14763fi 14764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 14765printf "%s\n" "$gl_cv_next_string_h" >&6; } 14766 fi 14767 NEXT_STRING_H=$gl_cv_next_string_h 14768 14769 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14771 gl_next_as_first_directive='<'string.h'>' 14772 else 14773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14774 gl_next_as_first_directive=$gl_cv_next_string_h 14775 fi 14776 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 if test $gl_cv_have_include_next = yes; then 14801 gl_cv_next_strings_h='<'strings.h'>' 14802 else 14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5 14804printf %s "checking absolute name of <strings.h>... " >&6; } 14805if test ${gl_cv_next_strings_h+y} 14806then : 14807 printf %s "(cached) " >&6 14808else $as_nop 14809 14810 if test $ac_cv_header_strings_h = yes; then 14811 14812 14813 14814 14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14816/* end confdefs.h. */ 14817#include <strings.h> 14818_ACEOF 14819 case "$host_os" in 14820 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14821 *) gl_absname_cpp="$ac_cpp" ;; 14822 esac 14823 14824 case "$host_os" in 14825 mingw*) 14826 gl_dirsep_regex='[/\\]' 14827 ;; 14828 *) 14829 gl_dirsep_regex='\/' 14830 ;; 14831 esac 14832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14833 gl_header_literal_regex=`echo 'strings.h' \ 14834 | sed -e "$gl_make_literal_regex_sed"` 14835 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14837 s|^/[^/]|//&| 14838 p 14839 q 14840 }' 14841 14842 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14843 sed -n "$gl_absolute_header_sed"` 14844 14845 gl_header=$gl_cv_absolute_strings_h 14846 gl_cv_next_strings_h='"'$gl_header'"' 14847 else 14848 gl_cv_next_strings_h='<'strings.h'>' 14849 fi 14850 14851 14852fi 14853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5 14854printf "%s\n" "$gl_cv_next_strings_h" >&6; } 14855 fi 14856 NEXT_STRINGS_H=$gl_cv_next_strings_h 14857 14858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14860 gl_next_as_first_directive='<'strings.h'>' 14861 else 14862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14863 gl_next_as_first_directive=$gl_cv_next_strings_h 14864 fi 14865 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive 14866 14867 14868 14869 14870 if test $ac_cv_header_strings_h = yes; then 14871 HAVE_STRINGS_H=1 14872 else 14873 HAVE_STRINGS_H=0 14874 fi 14875 14876 14877 14878 14879 14880 14881ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14882if test "x$ac_cv_have_decl_strnlen" = xyes 14883then : 14884 ac_have_decl=1 14885else $as_nop 14886 ac_have_decl=0 14887fi 14888printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 if test $gl_cv_have_include_next = yes; then 14913 gl_cv_next_sys_types_h='<'sys/types.h'>' 14914 else 14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 14916printf %s "checking absolute name of <sys/types.h>... " >&6; } 14917if test ${gl_cv_next_sys_types_h+y} 14918then : 14919 printf %s "(cached) " >&6 14920else $as_nop 14921 14922 14923 14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14925/* end confdefs.h. */ 14926#include <sys/types.h> 14927_ACEOF 14928 case "$host_os" in 14929 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14930 *) gl_absname_cpp="$ac_cpp" ;; 14931 esac 14932 14933 case "$host_os" in 14934 mingw*) 14935 gl_dirsep_regex='[/\\]' 14936 ;; 14937 *) 14938 gl_dirsep_regex='\/' 14939 ;; 14940 esac 14941 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14942 gl_header_literal_regex=`echo 'sys/types.h' \ 14943 | sed -e "$gl_make_literal_regex_sed"` 14944 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14946 s|^/[^/]|//&| 14947 p 14948 q 14949 }' 14950 14951 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14952 sed -n "$gl_absolute_header_sed"` 14953 14954 gl_header=$gl_cv_absolute_sys_types_h 14955 gl_cv_next_sys_types_h='"'$gl_header'"' 14956 14957 14958fi 14959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 14960printf "%s\n" "$gl_cv_next_sys_types_h" >&6; } 14961 fi 14962 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 14963 14964 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14966 gl_next_as_first_directive='<'sys/types.h'>' 14967 else 14968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14969 gl_next_as_first_directive=$gl_cv_next_sys_types_h 14970 fi 14971 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 WINDOWS_STAT_INODES=0 14985 14986 14987 14988ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14989if test "x$ac_cv_have_decl_execvpe" = xyes 14990then : 14991 ac_have_decl=1 14992else $as_nop 14993 ac_have_decl=0 14994fi 14995printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h 14996 14997 14998 14999 15000 15001 15002 15003gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} 15004i\ 150050 15006q 15007' 15008gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} 15009i\ 150100 15011q 15012' 15013gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} 15014i\ 150150 15016q 15017' 15018 15019 15020 if test "$HAVE_LIBUNISTRING" = yes; then 15021 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` 15022 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` 15023 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` 15024 fi 15025 15026 15027 15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 15029printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 15030if test ${gl_cv_header_wchar_h_correct_inline+y} 15031then : 15032 printf %s "(cached) " >&6 15033else $as_nop 15034 gl_cv_header_wchar_h_correct_inline=yes 15035 case "$host_os" in 15036 *-gnu* | gnu*) 15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039 15040 15041 #define wcstod renamed_wcstod 15042 #include <wchar.h> 15043 extern int zero (void); 15044 int main () { return zero(); } 15045 15046_ACEOF 15047 save_ac_compile="$ac_compile" 15048 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 15049 if echo '#include "conftest.c"' >conftest1.c \ 15050 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15051 (eval $ac_compile) 2>&5 15052 ac_status=$? 15053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15054 test $ac_status = 0; }; then 15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15056/* end confdefs.h. */ 15057 15058 15059 #define wcstod renamed_wcstod 15060 #include <wchar.h> 15061 int zero (void) { return 0; } 15062 15063_ACEOF 15064 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 15065 if echo '#include "conftest.c"' >conftest2.c \ 15066 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15067 (eval $ac_compile) 2>&5 15068 ac_status=$? 15069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15070 test $ac_status = 0; }; then 15071 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 15072 : 15073 else 15074 gl_cv_header_wchar_h_correct_inline=no 15075 fi 15076 fi 15077 fi 15078 ac_compile="$save_ac_compile" 15079 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext 15080 ;; 15081 esac 15082 15083fi 15084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 15085printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } 15086 if test $gl_cv_header_wchar_h_correct_inline = no; then 15087 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 15088This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 15089C99 mode. You have four options: 15090 - Add the flag -fgnu89-inline to CC and reconfigure, or 15091 - Fix your include files, using parts of 15092 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 15093 - Use a gcc version older than 4.3, or 15094 - Don't use the flags -std=c99 or -std=gnu99. 15095Configuration aborted." "$LINENO" 5 15096 fi 15097 15098 15099 15100 15101 if test $ac_cv_header_features_h = yes; then 15102 HAVE_FEATURES_H=1 15103 else 15104 HAVE_FEATURES_H=0 15105 fi 15106 15107 15108 15109 15110 15111 15112 15113 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 15114 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 15115 15116printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 15117 15118 else 15119 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 15120 fi 15121 15122 15123 15124 15125 15126 GNULIB_FCHMODAT=0; 15127 GNULIB_FSTAT=0; 15128 GNULIB_FSTATAT=0; 15129 GNULIB_FUTIMENS=0; 15130 GNULIB_GETUMASK=0; 15131 GNULIB_LCHMOD=0; 15132 GNULIB_LSTAT=0; 15133 GNULIB_MKDIR=0; 15134 GNULIB_MKDIRAT=0; 15135 GNULIB_MKFIFO=0; 15136 GNULIB_MKFIFOAT=0; 15137 GNULIB_MKNOD=0; 15138 GNULIB_MKNODAT=0; 15139 GNULIB_STAT=0; 15140 GNULIB_UTIMENSAT=0; 15141 GNULIB_OVERRIDES_STRUCT_STAT=0; 15142 GNULIB_MDA_CHMOD=1; 15143 GNULIB_MDA_MKDIR=1; 15144 GNULIB_MDA_UMASK=1; 15145 HAVE_FCHMODAT=1; 15146 HAVE_FSTATAT=1; 15147 HAVE_FUTIMENS=1; 15148 HAVE_GETUMASK=1; 15149 HAVE_LCHMOD=1; 15150 HAVE_LSTAT=1; 15151 HAVE_MKDIRAT=1; 15152 HAVE_MKFIFO=1; 15153 HAVE_MKFIFOAT=1; 15154 HAVE_MKNOD=1; 15155 HAVE_MKNODAT=1; 15156 HAVE_UTIMENSAT=1; 15157 REPLACE_FCHMODAT=0; 15158 REPLACE_FSTAT=0; 15159 REPLACE_FSTATAT=0; 15160 REPLACE_FUTIMENS=0; 15161 REPLACE_LSTAT=0; 15162 REPLACE_MKDIR=0; 15163 REPLACE_MKFIFO=0; 15164 REPLACE_MKFIFOAT=0; 15165 REPLACE_MKNOD=0; 15166 REPLACE_MKNODAT=0; 15167 REPLACE_STAT=0; 15168 REPLACE_UTIMENSAT=0; 15169 15170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 15171printf %s "checking whether stat file-mode macros are broken... " >&6; } 15172if test ${ac_cv_header_stat_broken+y} 15173then : 15174 printf %s "(cached) " >&6 15175else $as_nop 15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15177/* end confdefs.h. */ 15178#include <sys/types.h> 15179#include <sys/stat.h> 15180 15181#if defined S_ISBLK && defined S_IFDIR 15182extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 15183#endif 15184 15185#if defined S_ISBLK && defined S_IFCHR 15186extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 15187#endif 15188 15189#if defined S_ISLNK && defined S_IFREG 15190extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 15191#endif 15192 15193#if defined S_ISSOCK && defined S_IFREG 15194extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 15195#endif 15196 15197_ACEOF 15198if ac_fn_c_try_compile "$LINENO" 15199then : 15200 ac_cv_header_stat_broken=no 15201else $as_nop 15202 ac_cv_header_stat_broken=yes 15203fi 15204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15205fi 15206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 15207printf "%s\n" "$ac_cv_header_stat_broken" >&6; } 15208if test $ac_cv_header_stat_broken = yes; then 15209 15210printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h 15211 15212fi 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 if test $gl_cv_have_include_next = yes; then 15229 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 15230 else 15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 15232printf %s "checking absolute name of <sys/stat.h>... " >&6; } 15233if test ${gl_cv_next_sys_stat_h+y} 15234then : 15235 printf %s "(cached) " >&6 15236else $as_nop 15237 15238 if test $ac_cv_header_sys_stat_h = yes; then 15239 15240 15241 15242 15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15244/* end confdefs.h. */ 15245#include <sys/stat.h> 15246_ACEOF 15247 case "$host_os" in 15248 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15249 *) gl_absname_cpp="$ac_cpp" ;; 15250 esac 15251 15252 case "$host_os" in 15253 mingw*) 15254 gl_dirsep_regex='[/\\]' 15255 ;; 15256 *) 15257 gl_dirsep_regex='\/' 15258 ;; 15259 esac 15260 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 15261 gl_header_literal_regex=`echo 'sys/stat.h' \ 15262 | sed -e "$gl_make_literal_regex_sed"` 15263 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 15264 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 15265 s|^/[^/]|//&| 15266 p 15267 q 15268 }' 15269 15270 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15271 sed -n "$gl_absolute_header_sed"` 15272 15273 gl_header=$gl_cv_absolute_sys_stat_h 15274 gl_cv_next_sys_stat_h='"'$gl_header'"' 15275 else 15276 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 15277 fi 15278 15279 15280fi 15281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 15282printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } 15283 fi 15284 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 15285 15286 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15288 gl_next_as_first_directive='<'sys/stat.h'>' 15289 else 15290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15291 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 15292 fi 15293 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 15294 15295 15296 15297 15298 15299 15300 15301 15302 WINDOWS_STAT_TIMESPEC=0 15303 15304 15305 15306 15307 15308 15309 15310 15311 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 15312 #include <sys/stat.h> 15313" 15314if test "x$ac_cv_type_nlink_t" = xyes 15315then : 15316 15317else $as_nop 15318 15319printf "%s\n" "#define nlink_t int" >>confdefs.h 15320 15321fi 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 case "$host_os" in 15333 mingw*) 15334 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" 15335if test "x$ac_cv_header_sdkddkver_h" = xyes 15336then : 15337 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h 15338 15339fi 15340 15341 ;; 15342 esac 15343 15344 15345ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 15346if test "x$ac_cv_have_decl_getdtablesize" = xyes 15347then : 15348 ac_have_decl=1 15349else $as_nop 15350 ac_have_decl=0 15351fi 15352printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h 15353 15354 15355 15356 15357 15358 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 15360printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 15361if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 15362then : 15363 printf %s "(cached) " >&6 15364else $as_nop 15365 case "$host_os" in 15366 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 15367 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 15368 gl_cv_func_setlocale_null_all_mtsafe=no ;; 15369 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 15370 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 15371 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 15372 # If we don't know, obey --enable-cross-guesses. 15373 *) 15374 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 15375 esac 15376 15377fi 15378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 15379printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 15380 case "$host_os" in 15381 mingw*) ;; 15382 *) 15383 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 15384 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 15385 fi 15386 ;; 15387 esac 15388 case "$gl_cv_func_setlocale_null_all_mtsafe" in 15389 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 15390 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 15391 esac 15392 15393printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 15394 15395 15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 15397printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 15398if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 15399then : 15400 printf %s "(cached) " >&6 15401else $as_nop 15402 case "$host_os" in 15403 # Guess no on OpenBSD, AIX. 15404 openbsd* | aix*) 15405 gl_cv_func_setlocale_null_one_mtsafe=no ;; 15406 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 15407 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 15408 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 15409 # If we don't know, obey --enable-cross-guesses. 15410 *) 15411 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 15412 esac 15413 15414fi 15415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 15416printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 15417 case "$host_os" in 15418 mingw*) ;; 15419 *) 15420 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 15421 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 15422 fi 15423 ;; 15424 esac 15425 case "$gl_cv_func_setlocale_null_one_mtsafe" in 15426 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 15427 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 15428 esac 15429 15430printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 15431 15432 15433 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 15434 case "$host_os" in 15435 mingw*) LIB_SETLOCALE_NULL= ;; 15436 *) 15437 15438 15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 15440printf %s "checking whether imported symbols can be declared weak... " >&6; } 15441if test ${gl_cv_have_weak+y} 15442then : 15443 printf %s "(cached) " >&6 15444else $as_nop 15445 gl_cv_have_weak=no 15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15447/* end confdefs.h. */ 15448extern void xyzzy (); 15449#pragma weak xyzzy 15450int 15451main (void) 15452{ 15453xyzzy(); 15454 ; 15455 return 0; 15456} 15457_ACEOF 15458if ac_fn_c_try_link "$LINENO" 15459then : 15460 gl_cv_have_weak=maybe 15461fi 15462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15463 conftest$ac_exeext conftest.$ac_ext 15464 if test $gl_cv_have_weak = maybe; then 15465 if test "$cross_compiling" = yes 15466then : 15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15468/* end confdefs.h. */ 15469#ifdef __ELF__ 15470 Extensible Linking Format 15471 #endif 15472 15473_ACEOF 15474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15475 $EGREP "Extensible Linking Format" >/dev/null 2>&1 15476then : 15477 gl_cv_have_weak="guessing yes" 15478else $as_nop 15479 gl_cv_have_weak="guessing no" 15480fi 15481rm -rf conftest* 15482 15483 15484else $as_nop 15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15486/* end confdefs.h. */ 15487 15488#include <stdio.h> 15489#pragma weak fputs 15490int main () 15491{ 15492 return (fputs == NULL); 15493} 15494_ACEOF 15495if ac_fn_c_try_run "$LINENO" 15496then : 15497 gl_cv_have_weak=yes 15498else $as_nop 15499 gl_cv_have_weak=no 15500fi 15501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15502 conftest.$ac_objext conftest.beam conftest.$ac_ext 15503fi 15504 15505 fi 15506 case " $LDFLAGS " in 15507 *" -static "*) gl_cv_have_weak=no ;; 15508 esac 15509 case "$gl_cv_have_weak" in 15510 *yes) 15511 case "$host_os" in 15512 freebsd* | dragonfly* | midnightbsd*) 15513 : > conftest1.c 15514 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 15515 cat <<EOF > conftest2.c 15516#include <pthread.h> 15517#pragma weak pthread_mutexattr_gettype 15518int main () 15519{ 15520 return (pthread_mutexattr_gettype != NULL); 15521} 15522EOF 15523 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 15524 || gl_cv_have_weak=no 15525 rm -f conftest1.c libempty.so conftest2.c conftest 15526 ;; 15527 esac 15528 ;; 15529 esac 15530 15531fi 15532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 15533printf "%s\n" "$gl_cv_have_weak" >&6; } 15534 case "$gl_cv_have_weak" in 15535 *yes) 15536 15537printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 15538 15539 ;; 15540 esac 15541 15542 case "$gl_cv_have_weak" in 15543 *yes) LIB_SETLOCALE_NULL= ;; 15544 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 15545 esac 15546 ;; 15547 esac 15548 else 15549 LIB_SETLOCALE_NULL= 15550 fi 15551 15552 15553 15554 GNULIB_NL_LANGINFO=0; 15555 HAVE_NL_LANGINFO=1; 15556 REPLACE_NL_LANGINFO=0; 15557 15558 15559 15560 GNULIB_LOCALECONV=0; 15561 GNULIB_SETLOCALE=0; 15562 GNULIB_SETLOCALE_NULL=0; 15563 GNULIB_DUPLOCALE=0; 15564 GNULIB_LOCALENAME=0; 15565 HAVE_NEWLOCALE=1; 15566 HAVE_DUPLOCALE=1; 15567 HAVE_FREELOCALE=1; 15568 REPLACE_LOCALECONV=0; 15569 REPLACE_SETLOCALE=0; 15570 REPLACE_NEWLOCALE=0; 15571 REPLACE_DUPLOCALE=0; 15572 REPLACE_FREELOCALE=0; 15573 REPLACE_STRUCT_LCONV=0; 15574 LOCALENAME_ENHANCE_LOCALE_FUNCS=0; 15575 15576 15577 15578 15579 15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 15581printf %s "checking whether locale.h defines locale_t... " >&6; } 15582if test ${gl_cv_header_locale_has_locale_t+y} 15583then : 15584 printf %s "(cached) " >&6 15585else $as_nop 15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15587/* end confdefs.h. */ 15588#include <locale.h> 15589 locale_t x; 15590int 15591main (void) 15592{ 15593 15594 ; 15595 return 0; 15596} 15597_ACEOF 15598if ac_fn_c_try_compile "$LINENO" 15599then : 15600 gl_cv_header_locale_has_locale_t=yes 15601else $as_nop 15602 gl_cv_header_locale_has_locale_t=no 15603fi 15604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15605 15606fi 15607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 15608printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; } 15609 15610 15611 if test $ac_cv_header_xlocale_h = yes; then 15612 HAVE_XLOCALE_H=1 15613 if test $gl_cv_header_locale_has_locale_t = yes; then 15614 gl_cv_header_locale_h_needs_xlocale_h=no 15615 else 15616 gl_cv_header_locale_h_needs_xlocale_h=yes 15617 fi 15618 HAVE_LOCALE_T=1 15619 else 15620 HAVE_XLOCALE_H=0 15621 gl_cv_header_locale_h_needs_xlocale_h=no 15622 if test $gl_cv_header_locale_has_locale_t = yes; then 15623 HAVE_LOCALE_T=1 15624 else 15625 HAVE_LOCALE_T=0 15626 fi 15627 fi 15628 15629 15630 15631 15632 gl_threads_api=none 15633 LIBTHREAD= 15634 LTLIBTHREAD= 15635 LIBMULTITHREAD= 15636 LTLIBMULTITHREAD= 15637 if test "$gl_use_threads" != no; then 15638 15639 15640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 15641printf %s "checking whether imported symbols can be declared weak... " >&6; } 15642if test ${gl_cv_have_weak+y} 15643then : 15644 printf %s "(cached) " >&6 15645else $as_nop 15646 gl_cv_have_weak=no 15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15648/* end confdefs.h. */ 15649extern void xyzzy (); 15650#pragma weak xyzzy 15651int 15652main (void) 15653{ 15654xyzzy(); 15655 ; 15656 return 0; 15657} 15658_ACEOF 15659if ac_fn_c_try_link "$LINENO" 15660then : 15661 gl_cv_have_weak=maybe 15662fi 15663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15664 conftest$ac_exeext conftest.$ac_ext 15665 if test $gl_cv_have_weak = maybe; then 15666 if test "$cross_compiling" = yes 15667then : 15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15669/* end confdefs.h. */ 15670#ifdef __ELF__ 15671 Extensible Linking Format 15672 #endif 15673 15674_ACEOF 15675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15676 $EGREP "Extensible Linking Format" >/dev/null 2>&1 15677then : 15678 gl_cv_have_weak="guessing yes" 15679else $as_nop 15680 gl_cv_have_weak="guessing no" 15681fi 15682rm -rf conftest* 15683 15684 15685else $as_nop 15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15687/* end confdefs.h. */ 15688 15689#include <stdio.h> 15690#pragma weak fputs 15691int main () 15692{ 15693 return (fputs == NULL); 15694} 15695_ACEOF 15696if ac_fn_c_try_run "$LINENO" 15697then : 15698 gl_cv_have_weak=yes 15699else $as_nop 15700 gl_cv_have_weak=no 15701fi 15702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15703 conftest.$ac_objext conftest.beam conftest.$ac_ext 15704fi 15705 15706 fi 15707 case " $LDFLAGS " in 15708 *" -static "*) gl_cv_have_weak=no ;; 15709 esac 15710 case "$gl_cv_have_weak" in 15711 *yes) 15712 case "$host_os" in 15713 freebsd* | dragonfly* | midnightbsd*) 15714 : > conftest1.c 15715 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 15716 cat <<EOF > conftest2.c 15717#include <pthread.h> 15718#pragma weak pthread_mutexattr_gettype 15719int main () 15720{ 15721 return (pthread_mutexattr_gettype != NULL); 15722} 15723EOF 15724 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 15725 || gl_cv_have_weak=no 15726 rm -f conftest1.c libempty.so conftest2.c conftest 15727 ;; 15728 esac 15729 ;; 15730 esac 15731 15732fi 15733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 15734printf "%s\n" "$gl_cv_have_weak" >&6; } 15735 case "$gl_cv_have_weak" in 15736 *yes) 15737 15738printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 15739 15740 ;; 15741 esac 15742 15743 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 15744 15745 : 15746 fi 15747 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then 15748 15749 gl_have_isoc_threads="$ac_cv_header_threads_h" 15750 fi 15751 if test "$gl_use_threads" = yes \ 15752 || test "$gl_use_threads" = posix \ 15753 || test "$gl_use_threads" = isoc+posix; then 15754 15755 15756 if test -z "$gl_pthreadlib_body_done"; then 15757 gl_pthread_api=no 15758 LIBPTHREAD= 15759 LIBPMULTITHREAD= 15760 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 15761 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 15762 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 15763if test "x$ac_cv_header_pthread_h" = xyes 15764then : 15765 gl_have_pthread_h=yes 15766else $as_nop 15767 gl_have_pthread_h=no 15768fi 15769 15770 if test "$gl_have_pthread_h" = yes; then 15771 # Other possible tests: 15772 # -lpthreads (FSU threads, PCthreads) 15773 # -lgthreads 15774 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 15775 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 15776 # the second one only in libpthread, and lock.c needs it. 15777 # 15778 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 15779 # needs -pthread for some reason. See: 15780 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 15781 save_LIBS=$LIBS 15782 for gl_pthread in '' '-pthread'; do 15783 LIBS="$LIBS $gl_pthread" 15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15785/* end confdefs.h. */ 15786#include <pthread.h> 15787 pthread_mutex_t m; 15788 pthread_mutexattr_t ma; 15789 15790int 15791main (void) 15792{ 15793pthread_mutex_lock (&m); 15794 pthread_mutexattr_init (&ma); 15795 ; 15796 return 0; 15797} 15798_ACEOF 15799if ac_fn_c_try_link "$LINENO" 15800then : 15801 gl_pthread_api=yes 15802 LIBPTHREAD=$gl_pthread 15803 LIBPMULTITHREAD=$gl_pthread 15804fi 15805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15806 conftest$ac_exeext conftest.$ac_ext 15807 LIBS=$save_LIBS 15808 test $gl_pthread_api = yes && break 15809 done 15810 15811 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 15812 # since it is defined as a macro on OSF/1.) 15813 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 15814 # The program links fine without libpthread. But it may actually 15815 # need to link with libpthread in order to create multiple threads. 15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 15817printf %s "checking for pthread_kill in -lpthread... " >&6; } 15818if test ${ac_cv_lib_pthread_pthread_kill+y} 15819then : 15820 printf %s "(cached) " >&6 15821else $as_nop 15822 ac_check_lib_save_LIBS=$LIBS 15823LIBS="-lpthread $LIBS" 15824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825/* end confdefs.h. */ 15826 15827/* Override any GCC internal prototype to avoid an error. 15828 Use char because int might match the return type of a GCC 15829 builtin and then its argument prototype would still apply. */ 15830char pthread_kill (); 15831int 15832main (void) 15833{ 15834return pthread_kill (); 15835 ; 15836 return 0; 15837} 15838_ACEOF 15839if ac_fn_c_try_link "$LINENO" 15840then : 15841 ac_cv_lib_pthread_pthread_kill=yes 15842else $as_nop 15843 ac_cv_lib_pthread_pthread_kill=no 15844fi 15845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15846 conftest$ac_exeext conftest.$ac_ext 15847LIBS=$ac_check_lib_save_LIBS 15848fi 15849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 15850printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 15851if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 15852then : 15853 LIBPMULTITHREAD=-lpthread 15854 # On Solaris and HP-UX, most pthread functions exist also in libc. 15855 # Therefore pthread_in_use() needs to actually try to create a 15856 # thread: pthread_create from libc will fail, whereas 15857 # pthread_create will actually create a thread. 15858 # On Solaris 10 or newer, this test is no longer needed, because 15859 # libc contains the fully functional pthread functions. 15860 case "$host_os" in 15861 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 15862 15863printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 15864 15865 esac 15866 15867fi 15868 15869 elif test $gl_pthread_api != yes; then 15870 # Some library is needed. Try libpthread and libc_r. 15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 15872printf %s "checking for pthread_kill in -lpthread... " >&6; } 15873if test ${ac_cv_lib_pthread_pthread_kill+y} 15874then : 15875 printf %s "(cached) " >&6 15876else $as_nop 15877 ac_check_lib_save_LIBS=$LIBS 15878LIBS="-lpthread $LIBS" 15879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881 15882/* Override any GCC internal prototype to avoid an error. 15883 Use char because int might match the return type of a GCC 15884 builtin and then its argument prototype would still apply. */ 15885char pthread_kill (); 15886int 15887main (void) 15888{ 15889return pthread_kill (); 15890 ; 15891 return 0; 15892} 15893_ACEOF 15894if ac_fn_c_try_link "$LINENO" 15895then : 15896 ac_cv_lib_pthread_pthread_kill=yes 15897else $as_nop 15898 ac_cv_lib_pthread_pthread_kill=no 15899fi 15900rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15901 conftest$ac_exeext conftest.$ac_ext 15902LIBS=$ac_check_lib_save_LIBS 15903fi 15904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 15905printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 15906if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 15907then : 15908 gl_pthread_api=yes 15909 LIBPTHREAD=-lpthread 15910 LIBPMULTITHREAD=-lpthread 15911fi 15912 15913 if test $gl_pthread_api != yes; then 15914 # For FreeBSD 4. 15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 15916printf %s "checking for pthread_kill in -lc_r... " >&6; } 15917if test ${ac_cv_lib_c_r_pthread_kill+y} 15918then : 15919 printf %s "(cached) " >&6 15920else $as_nop 15921 ac_check_lib_save_LIBS=$LIBS 15922LIBS="-lc_r $LIBS" 15923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924/* end confdefs.h. */ 15925 15926/* Override any GCC internal prototype to avoid an error. 15927 Use char because int might match the return type of a GCC 15928 builtin and then its argument prototype would still apply. */ 15929char pthread_kill (); 15930int 15931main (void) 15932{ 15933return pthread_kill (); 15934 ; 15935 return 0; 15936} 15937_ACEOF 15938if ac_fn_c_try_link "$LINENO" 15939then : 15940 ac_cv_lib_c_r_pthread_kill=yes 15941else $as_nop 15942 ac_cv_lib_c_r_pthread_kill=no 15943fi 15944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15945 conftest$ac_exeext conftest.$ac_ext 15946LIBS=$ac_check_lib_save_LIBS 15947fi 15948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 15949printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 15950if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 15951then : 15952 gl_pthread_api=yes 15953 LIBPTHREAD=-lc_r 15954 LIBPMULTITHREAD=-lc_r 15955fi 15956 15957 fi 15958 fi 15959 fi 15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 15961printf %s "checking whether POSIX threads API is available... " >&6; } 15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 15963printf "%s\n" "$gl_pthread_api" >&6; } 15964 15965 15966 if test $gl_pthread_api = yes; then 15967 15968printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 15969 15970 fi 15971 15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15973/* end confdefs.h. */ 15974#include <sched.h> 15975int 15976main (void) 15977{ 15978sched_yield (); 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_link "$LINENO" 15984then : 15985 LIB_SCHED_YIELD= 15986 15987else $as_nop 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 15989printf %s "checking for sched_yield in -lrt... " >&6; } 15990if test ${ac_cv_lib_rt_sched_yield+y} 15991then : 15992 printf %s "(cached) " >&6 15993else $as_nop 15994 ac_check_lib_save_LIBS=$LIBS 15995LIBS="-lrt $LIBS" 15996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15997/* end confdefs.h. */ 15998 15999/* Override any GCC internal prototype to avoid an error. 16000 Use char because int might match the return type of a GCC 16001 builtin and then its argument prototype would still apply. */ 16002char sched_yield (); 16003int 16004main (void) 16005{ 16006return sched_yield (); 16007 ; 16008 return 0; 16009} 16010_ACEOF 16011if ac_fn_c_try_link "$LINENO" 16012then : 16013 ac_cv_lib_rt_sched_yield=yes 16014else $as_nop 16015 ac_cv_lib_rt_sched_yield=no 16016fi 16017rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16018 conftest$ac_exeext conftest.$ac_ext 16019LIBS=$ac_check_lib_save_LIBS 16020fi 16021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 16022printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 16023if test "x$ac_cv_lib_rt_sched_yield" = xyes 16024then : 16025 LIB_SCHED_YIELD=-lrt 16026else $as_nop 16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 16028printf %s "checking for sched_yield in -lposix4... " >&6; } 16029if test ${ac_cv_lib_posix4_sched_yield+y} 16030then : 16031 printf %s "(cached) " >&6 16032else $as_nop 16033 ac_check_lib_save_LIBS=$LIBS 16034LIBS="-lposix4 $LIBS" 16035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037 16038/* Override any GCC internal prototype to avoid an error. 16039 Use char because int might match the return type of a GCC 16040 builtin and then its argument prototype would still apply. */ 16041char sched_yield (); 16042int 16043main (void) 16044{ 16045return sched_yield (); 16046 ; 16047 return 0; 16048} 16049_ACEOF 16050if ac_fn_c_try_link "$LINENO" 16051then : 16052 ac_cv_lib_posix4_sched_yield=yes 16053else $as_nop 16054 ac_cv_lib_posix4_sched_yield=no 16055fi 16056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16057 conftest$ac_exeext conftest.$ac_ext 16058LIBS=$ac_check_lib_save_LIBS 16059fi 16060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 16061printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 16062if test "x$ac_cv_lib_posix4_sched_yield" = xyes 16063then : 16064 LIB_SCHED_YIELD=-lposix4 16065fi 16066 16067fi 16068 16069 16070fi 16071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16072 conftest$ac_exeext conftest.$ac_ext 16073 16074 16075 gl_pthreadlib_body_done=done 16076 fi 16077 16078 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD 16079 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD 16080 if test $gl_pthread_api = yes; then 16081 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then 16082 gl_threads_api='isoc+posix' 16083 16084printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h 16085 16086 LIBTHREAD= LTLIBTHREAD= 16087 else 16088 gl_threads_api=posix 16089 16090printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h 16091 16092 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 16093 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 16094 16095printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 16096 16097 LIBTHREAD= LTLIBTHREAD= 16098 else 16099 case "$host_os" in 16100 freebsd* | dragonfly* | midnightbsd*) 16101 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then 16102 16103printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 16104 16105 fi 16106 ;; 16107 esac 16108 fi 16109 fi 16110 fi 16111 fi 16112 fi 16113 if test $gl_threads_api = none; then 16114 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then 16115 16116 16117 16118 if test -z "$gl_stdthreadlib_body_done"; then 16119 16120 16121 case "$host_os" in 16122 mingw*) 16123 LIBSTDTHREAD= 16124 ;; 16125 *) 16126 16127 16128 if test -z "$gl_pthreadlib_body_done"; then 16129 gl_pthread_api=no 16130 LIBPTHREAD= 16131 LIBPMULTITHREAD= 16132 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 16133 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 16134 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 16135if test "x$ac_cv_header_pthread_h" = xyes 16136then : 16137 gl_have_pthread_h=yes 16138else $as_nop 16139 gl_have_pthread_h=no 16140fi 16141 16142 if test "$gl_have_pthread_h" = yes; then 16143 # Other possible tests: 16144 # -lpthreads (FSU threads, PCthreads) 16145 # -lgthreads 16146 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 16147 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 16148 # the second one only in libpthread, and lock.c needs it. 16149 # 16150 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 16151 # needs -pthread for some reason. See: 16152 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 16153 save_LIBS=$LIBS 16154 for gl_pthread in '' '-pthread'; do 16155 LIBS="$LIBS $gl_pthread" 16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158#include <pthread.h> 16159 pthread_mutex_t m; 16160 pthread_mutexattr_t ma; 16161 16162int 16163main (void) 16164{ 16165pthread_mutex_lock (&m); 16166 pthread_mutexattr_init (&ma); 16167 ; 16168 return 0; 16169} 16170_ACEOF 16171if ac_fn_c_try_link "$LINENO" 16172then : 16173 gl_pthread_api=yes 16174 LIBPTHREAD=$gl_pthread 16175 LIBPMULTITHREAD=$gl_pthread 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16178 conftest$ac_exeext conftest.$ac_ext 16179 LIBS=$save_LIBS 16180 test $gl_pthread_api = yes && break 16181 done 16182 16183 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 16184 # since it is defined as a macro on OSF/1.) 16185 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 16186 # The program links fine without libpthread. But it may actually 16187 # need to link with libpthread in order to create multiple threads. 16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 16189printf %s "checking for pthread_kill in -lpthread... " >&6; } 16190if test ${ac_cv_lib_pthread_pthread_kill+y} 16191then : 16192 printf %s "(cached) " >&6 16193else $as_nop 16194 ac_check_lib_save_LIBS=$LIBS 16195LIBS="-lpthread $LIBS" 16196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198 16199/* Override any GCC internal prototype to avoid an error. 16200 Use char because int might match the return type of a GCC 16201 builtin and then its argument prototype would still apply. */ 16202char pthread_kill (); 16203int 16204main (void) 16205{ 16206return pthread_kill (); 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_link "$LINENO" 16212then : 16213 ac_cv_lib_pthread_pthread_kill=yes 16214else $as_nop 16215 ac_cv_lib_pthread_pthread_kill=no 16216fi 16217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16218 conftest$ac_exeext conftest.$ac_ext 16219LIBS=$ac_check_lib_save_LIBS 16220fi 16221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 16222printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 16223if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 16224then : 16225 LIBPMULTITHREAD=-lpthread 16226 # On Solaris and HP-UX, most pthread functions exist also in libc. 16227 # Therefore pthread_in_use() needs to actually try to create a 16228 # thread: pthread_create from libc will fail, whereas 16229 # pthread_create will actually create a thread. 16230 # On Solaris 10 or newer, this test is no longer needed, because 16231 # libc contains the fully functional pthread functions. 16232 case "$host_os" in 16233 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 16234 16235printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 16236 16237 esac 16238 16239fi 16240 16241 elif test $gl_pthread_api != yes; then 16242 # Some library is needed. Try libpthread and libc_r. 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 16244printf %s "checking for pthread_kill in -lpthread... " >&6; } 16245if test ${ac_cv_lib_pthread_pthread_kill+y} 16246then : 16247 printf %s "(cached) " >&6 16248else $as_nop 16249 ac_check_lib_save_LIBS=$LIBS 16250LIBS="-lpthread $LIBS" 16251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253 16254/* Override any GCC internal prototype to avoid an error. 16255 Use char because int might match the return type of a GCC 16256 builtin and then its argument prototype would still apply. */ 16257char pthread_kill (); 16258int 16259main (void) 16260{ 16261return pthread_kill (); 16262 ; 16263 return 0; 16264} 16265_ACEOF 16266if ac_fn_c_try_link "$LINENO" 16267then : 16268 ac_cv_lib_pthread_pthread_kill=yes 16269else $as_nop 16270 ac_cv_lib_pthread_pthread_kill=no 16271fi 16272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16273 conftest$ac_exeext conftest.$ac_ext 16274LIBS=$ac_check_lib_save_LIBS 16275fi 16276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 16277printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 16278if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 16279then : 16280 gl_pthread_api=yes 16281 LIBPTHREAD=-lpthread 16282 LIBPMULTITHREAD=-lpthread 16283fi 16284 16285 if test $gl_pthread_api != yes; then 16286 # For FreeBSD 4. 16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 16288printf %s "checking for pthread_kill in -lc_r... " >&6; } 16289if test ${ac_cv_lib_c_r_pthread_kill+y} 16290then : 16291 printf %s "(cached) " >&6 16292else $as_nop 16293 ac_check_lib_save_LIBS=$LIBS 16294LIBS="-lc_r $LIBS" 16295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16296/* end confdefs.h. */ 16297 16298/* Override any GCC internal prototype to avoid an error. 16299 Use char because int might match the return type of a GCC 16300 builtin and then its argument prototype would still apply. */ 16301char pthread_kill (); 16302int 16303main (void) 16304{ 16305return pthread_kill (); 16306 ; 16307 return 0; 16308} 16309_ACEOF 16310if ac_fn_c_try_link "$LINENO" 16311then : 16312 ac_cv_lib_c_r_pthread_kill=yes 16313else $as_nop 16314 ac_cv_lib_c_r_pthread_kill=no 16315fi 16316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16317 conftest$ac_exeext conftest.$ac_ext 16318LIBS=$ac_check_lib_save_LIBS 16319fi 16320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 16321printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 16322if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 16323then : 16324 gl_pthread_api=yes 16325 LIBPTHREAD=-lc_r 16326 LIBPMULTITHREAD=-lc_r 16327fi 16328 16329 fi 16330 fi 16331 fi 16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 16333printf %s "checking whether POSIX threads API is available... " >&6; } 16334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 16335printf "%s\n" "$gl_pthread_api" >&6; } 16336 16337 16338 if test $gl_pthread_api = yes; then 16339 16340printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 16341 16342 fi 16343 16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16345/* end confdefs.h. */ 16346#include <sched.h> 16347int 16348main (void) 16349{ 16350sched_yield (); 16351 ; 16352 return 0; 16353} 16354_ACEOF 16355if ac_fn_c_try_link "$LINENO" 16356then : 16357 LIB_SCHED_YIELD= 16358 16359else $as_nop 16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 16361printf %s "checking for sched_yield in -lrt... " >&6; } 16362if test ${ac_cv_lib_rt_sched_yield+y} 16363then : 16364 printf %s "(cached) " >&6 16365else $as_nop 16366 ac_check_lib_save_LIBS=$LIBS 16367LIBS="-lrt $LIBS" 16368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16369/* end confdefs.h. */ 16370 16371/* Override any GCC internal prototype to avoid an error. 16372 Use char because int might match the return type of a GCC 16373 builtin and then its argument prototype would still apply. */ 16374char sched_yield (); 16375int 16376main (void) 16377{ 16378return sched_yield (); 16379 ; 16380 return 0; 16381} 16382_ACEOF 16383if ac_fn_c_try_link "$LINENO" 16384then : 16385 ac_cv_lib_rt_sched_yield=yes 16386else $as_nop 16387 ac_cv_lib_rt_sched_yield=no 16388fi 16389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16390 conftest$ac_exeext conftest.$ac_ext 16391LIBS=$ac_check_lib_save_LIBS 16392fi 16393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 16394printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 16395if test "x$ac_cv_lib_rt_sched_yield" = xyes 16396then : 16397 LIB_SCHED_YIELD=-lrt 16398else $as_nop 16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 16400printf %s "checking for sched_yield in -lposix4... " >&6; } 16401if test ${ac_cv_lib_posix4_sched_yield+y} 16402then : 16403 printf %s "(cached) " >&6 16404else $as_nop 16405 ac_check_lib_save_LIBS=$LIBS 16406LIBS="-lposix4 $LIBS" 16407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16408/* end confdefs.h. */ 16409 16410/* Override any GCC internal prototype to avoid an error. 16411 Use char because int might match the return type of a GCC 16412 builtin and then its argument prototype would still apply. */ 16413char sched_yield (); 16414int 16415main (void) 16416{ 16417return sched_yield (); 16418 ; 16419 return 0; 16420} 16421_ACEOF 16422if ac_fn_c_try_link "$LINENO" 16423then : 16424 ac_cv_lib_posix4_sched_yield=yes 16425else $as_nop 16426 ac_cv_lib_posix4_sched_yield=no 16427fi 16428rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16429 conftest$ac_exeext conftest.$ac_ext 16430LIBS=$ac_check_lib_save_LIBS 16431fi 16432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 16433printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 16434if test "x$ac_cv_lib_posix4_sched_yield" = xyes 16435then : 16436 LIB_SCHED_YIELD=-lposix4 16437fi 16438 16439fi 16440 16441 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16444 conftest$ac_exeext conftest.$ac_ext 16445 16446 16447 gl_pthreadlib_body_done=done 16448 fi 16449 16450 if test $ac_cv_header_threads_h = yes; then 16451 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" 16452if test "x$ac_cv_func_thrd_create" = xyes 16453then : 16454 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h 16455 16456fi 16457 16458 if test $ac_cv_func_thrd_create = yes; then 16459 LIBSTDTHREAD= 16460 else 16461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 16462printf %s "checking for thrd_create in -lstdthreads... " >&6; } 16463if test ${ac_cv_lib_stdthreads_thrd_create+y} 16464then : 16465 printf %s "(cached) " >&6 16466else $as_nop 16467 ac_check_lib_save_LIBS=$LIBS 16468LIBS="-lstdthreads $LIBS" 16469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471 16472/* Override any GCC internal prototype to avoid an error. 16473 Use char because int might match the return type of a GCC 16474 builtin and then its argument prototype would still apply. */ 16475char thrd_create (); 16476int 16477main (void) 16478{ 16479return thrd_create (); 16480 ; 16481 return 0; 16482} 16483_ACEOF 16484if ac_fn_c_try_link "$LINENO" 16485then : 16486 ac_cv_lib_stdthreads_thrd_create=yes 16487else $as_nop 16488 ac_cv_lib_stdthreads_thrd_create=no 16489fi 16490rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16491 conftest$ac_exeext conftest.$ac_ext 16492LIBS=$ac_check_lib_save_LIBS 16493fi 16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 16495printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } 16496if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes 16497then : 16498 16499 LIBSTDTHREAD='-lstdthreads -lpthread' 16500 16501else $as_nop 16502 16503 LIBSTDTHREAD="$LIBPMULTITHREAD" 16504 16505fi 16506 16507 fi 16508 else 16509 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" 16510 fi 16511 ;; 16512 esac 16513 16514 16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 16516printf %s "checking whether ISO C threads API is available... " >&6; } 16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 16518printf "%s\n" "$ac_cv_header_threads_h" >&6; } 16519 gl_stdthreadlib_body_done=done 16520 fi 16521 16522 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD 16523 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD 16524 gl_threads_api=isoc 16525 16526printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h 16527 16528 fi 16529 fi 16530 if test $gl_threads_api = none; then 16531 case "$gl_use_threads" in 16532 yes | windows | win32) # The 'win32' is for backward compatibility. 16533 if { case "$host_os" in 16534 mingw*) true;; 16535 *) false;; 16536 esac 16537 }; then 16538 gl_threads_api=windows 16539 16540printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h 16541 16542 fi 16543 ;; 16544 esac 16545 fi 16546 fi 16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 16548printf %s "checking for multithread API to use... " >&6; } 16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 16550printf "%s\n" "$gl_threads_api" >&6; } 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 16567if test "x$ac_cv_have_decl_strndup" = xyes 16568then : 16569 ac_have_decl=1 16570else $as_nop 16571 ac_have_decl=0 16572fi 16573printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h 16574 16575 16576 16577 16578 16579 if test $REPLACE_MEMCHR = 1; then 16580 REPLACE_STRSTR=1 16581 else 16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5 16583printf %s "checking whether strstr works... " >&6; } 16584if test ${gl_cv_func_strstr_works_always+y} 16585then : 16586 printf %s "(cached) " >&6 16587else $as_nop 16588 if test "$cross_compiling" = yes 16589then : 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591/* end confdefs.h. */ 16592 16593#ifdef __GNU_LIBRARY__ 16594 #include <features.h> 16595 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 16596 || defined __UCLIBC__ 16597 Lucky user 16598 #endif 16599#elif defined __CYGWIN__ 16600 #include <cygwin/version.h> 16601 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 16602 Lucky user 16603 #endif 16604#else 16605 Lucky user 16606#endif 16607 16608_ACEOF 16609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16610 $EGREP "Lucky user" >/dev/null 2>&1 16611then : 16612 gl_cv_func_strstr_works_always="guessing yes" 16613else $as_nop 16614 gl_cv_func_strstr_works_always="$gl_cross_guess_normal" 16615fi 16616rm -rf conftest* 16617 16618 16619else $as_nop 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622 16623#include <string.h> /* for strstr */ 16624#ifdef __GNU_LIBRARY__ 16625 #include <features.h> 16626 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28 16627 Unlucky user 16628 #endif 16629#endif 16630#define P "_EF_BF_BD" 16631#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P 16632#define NEEDLE P P P P P 16633 16634int 16635main (void) 16636{ 16637return !!strstr (HAYSTACK, NEEDLE); 16638 16639 ; 16640 return 0; 16641} 16642_ACEOF 16643if ac_fn_c_try_run "$LINENO" 16644then : 16645 gl_cv_func_strstr_works_always=yes 16646else $as_nop 16647 gl_cv_func_strstr_works_always=no 16648fi 16649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16650 conftest.$ac_objext conftest.beam conftest.$ac_ext 16651fi 16652 16653 16654fi 16655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5 16656printf "%s\n" "$gl_cv_func_strstr_works_always" >&6; } 16657 case "$gl_cv_func_strstr_works_always" in 16658 *yes) ;; 16659 *) 16660 REPLACE_STRSTR=1 16661 ;; 16662 esac 16663 fi 16664 16665 16666 GNULIB_CTIME=0; 16667 GNULIB_MKTIME=0; 16668 GNULIB_LOCALTIME=0; 16669 GNULIB_NANOSLEEP=0; 16670 GNULIB_STRFTIME=0; 16671 GNULIB_STRPTIME=0; 16672 GNULIB_TIMEGM=0; 16673 GNULIB_TIMESPEC_GET=0; 16674 GNULIB_TIME_R=0; 16675 GNULIB_TIME_RZ=0; 16676 GNULIB_TZSET=0; 16677 GNULIB_MDA_TZSET=1; 16678 HAVE_DECL_LOCALTIME_R=1; 16679 HAVE_NANOSLEEP=1; 16680 HAVE_STRPTIME=1; 16681 HAVE_TIMEGM=1; 16682 HAVE_TIMESPEC_GET=1; 16683 HAVE_TIMEZONE_T=0; 16684 REPLACE_CTIME=GNULIB_PORTCHECK; 16685 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 16686 REPLACE_MKTIME=GNULIB_PORTCHECK; 16687 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 16688 REPLACE_STRFTIME=GNULIB_PORTCHECK; 16689 REPLACE_TIMEGM=GNULIB_PORTCHECK; 16690 REPLACE_TZSET=GNULIB_PORTCHECK; 16691 16692 : ${GNULIB_GETTIMEOFDAY=0}; 16693 REPLACE_GMTIME=0; 16694 REPLACE_LOCALTIME=0; 16695 16696 16697 16698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 16699printf %s "checking for struct timespec in <time.h>... " >&6; } 16700if test ${gl_cv_sys_struct_timespec_in_time_h+y} 16701then : 16702 printf %s "(cached) " >&6 16703else $as_nop 16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16705/* end confdefs.h. */ 16706#include <time.h> 16707 16708int 16709main (void) 16710{ 16711static struct timespec x; x.tv_sec = x.tv_nsec; 16712 ; 16713 return 0; 16714} 16715_ACEOF 16716if ac_fn_c_try_compile "$LINENO" 16717then : 16718 gl_cv_sys_struct_timespec_in_time_h=yes 16719else $as_nop 16720 gl_cv_sys_struct_timespec_in_time_h=no 16721fi 16722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16723fi 16724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 16725printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 16726 16727 TIME_H_DEFINES_STRUCT_TIMESPEC=0 16728 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 16729 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 16730 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 16731 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 16732 TIME_H_DEFINES_STRUCT_TIMESPEC=1 16733 else 16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 16735printf %s "checking for struct timespec in <sys/time.h>... " >&6; } 16736if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y} 16737then : 16738 printf %s "(cached) " >&6 16739else $as_nop 16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16741/* end confdefs.h. */ 16742#include <sys/time.h> 16743 16744int 16745main (void) 16746{ 16747static struct timespec x; x.tv_sec = x.tv_nsec; 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752if ac_fn_c_try_compile "$LINENO" 16753then : 16754 gl_cv_sys_struct_timespec_in_sys_time_h=yes 16755else $as_nop 16756 gl_cv_sys_struct_timespec_in_sys_time_h=no 16757fi 16758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16759fi 16760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 16761printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 16762 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 16763 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 16764 else 16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 16766printf %s "checking for struct timespec in <pthread.h>... " >&6; } 16767if test ${gl_cv_sys_struct_timespec_in_pthread_h+y} 16768then : 16769 printf %s "(cached) " >&6 16770else $as_nop 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773#include <pthread.h> 16774 16775int 16776main (void) 16777{ 16778static struct timespec x; x.tv_sec = x.tv_nsec; 16779 ; 16780 return 0; 16781} 16782_ACEOF 16783if ac_fn_c_try_compile "$LINENO" 16784then : 16785 gl_cv_sys_struct_timespec_in_pthread_h=yes 16786else $as_nop 16787 gl_cv_sys_struct_timespec_in_pthread_h=no 16788fi 16789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16790fi 16791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 16792printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 16793 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 16794 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 16795 else 16796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 16797printf %s "checking for struct timespec in <unistd.h>... " >&6; } 16798if test ${gl_cv_sys_struct_timespec_in_unistd_h+y} 16799then : 16800 printf %s "(cached) " >&6 16801else $as_nop 16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803/* end confdefs.h. */ 16804#include <unistd.h> 16805 16806int 16807main (void) 16808{ 16809static struct timespec x; x.tv_sec = x.tv_nsec; 16810 ; 16811 return 0; 16812} 16813_ACEOF 16814if ac_fn_c_try_compile "$LINENO" 16815then : 16816 gl_cv_sys_struct_timespec_in_unistd_h=yes 16817else $as_nop 16818 gl_cv_sys_struct_timespec_in_unistd_h=no 16819fi 16820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16821fi 16822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 16823printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 16824 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 16825 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 16826 fi 16827 fi 16828 fi 16829 fi 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 if test $gl_cv_have_include_next = yes; then 16847 gl_cv_next_time_h='<'time.h'>' 16848 else 16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 16850printf %s "checking absolute name of <time.h>... " >&6; } 16851if test ${gl_cv_next_time_h+y} 16852then : 16853 printf %s "(cached) " >&6 16854else $as_nop 16855 16856 16857 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860#include <time.h> 16861_ACEOF 16862 case "$host_os" in 16863 aix*) gl_absname_cpp="$ac_cpp -C" ;; 16864 *) gl_absname_cpp="$ac_cpp" ;; 16865 esac 16866 16867 case "$host_os" in 16868 mingw*) 16869 gl_dirsep_regex='[/\\]' 16870 ;; 16871 *) 16872 gl_dirsep_regex='\/' 16873 ;; 16874 esac 16875 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 16876 gl_header_literal_regex=`echo 'time.h' \ 16877 | sed -e "$gl_make_literal_regex_sed"` 16878 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 16879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 16880 s|^/[^/]|//&| 16881 p 16882 q 16883 }' 16884 16885 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 16886 sed -n "$gl_absolute_header_sed"` 16887 16888 gl_header=$gl_cv_absolute_time_h 16889 gl_cv_next_time_h='"'$gl_header'"' 16890 16891 16892fi 16893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 16894printf "%s\n" "$gl_cv_next_time_h" >&6; } 16895 fi 16896 NEXT_TIME_H=$gl_cv_next_time_h 16897 16898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 16899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 16900 gl_next_as_first_directive='<'time.h'>' 16901 else 16902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 16903 gl_next_as_first_directive=$gl_cv_next_time_h 16904 fi 16905 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 16906 16907 16908 16909 16910 16911 16912 16913 16914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5 16915printf %s "checking for TIME_UTC in <time.h>... " >&6; } 16916if test ${gl_cv_time_h_has_TIME_UTC+y} 16917then : 16918 printf %s "(cached) " >&6 16919else $as_nop 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922#include <time.h> 16923 16924int 16925main (void) 16926{ 16927static int x = TIME_UTC; x++; 16928 ; 16929 return 0; 16930} 16931_ACEOF 16932if ac_fn_c_try_compile "$LINENO" 16933then : 16934 gl_cv_time_h_has_TIME_UTC=yes 16935else $as_nop 16936 gl_cv_time_h_has_TIME_UTC=no 16937fi 16938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16939fi 16940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 16941printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; } 16942 if test $gl_cv_time_h_has_TIME_UTC = yes; then 16943 TIME_H_DEFINES_TIME_UTC=1 16944 else 16945 TIME_H_DEFINES_TIME_UTC=0 16946 fi 16947 16948 16949 16950 16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 16952printf %s "checking for inttypes.h... " >&6; } 16953if test ${gl_cv_header_inttypes_h+y} 16954then : 16955 printf %s "(cached) " >&6 16956else $as_nop 16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958/* end confdefs.h. */ 16959 16960#include <sys/types.h> 16961#include <inttypes.h> 16962 16963int 16964main (void) 16965{ 16966uintmax_t i = (uintmax_t) -1; return !i; 16967 ; 16968 return 0; 16969} 16970_ACEOF 16971if ac_fn_c_try_compile "$LINENO" 16972then : 16973 gl_cv_header_inttypes_h=yes 16974else $as_nop 16975 gl_cv_header_inttypes_h=no 16976fi 16977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16978fi 16979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 16980printf "%s\n" "$gl_cv_header_inttypes_h" >&6; } 16981 if test $gl_cv_header_inttypes_h = yes; then 16982 16983printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h 16984 16985 fi 16986 16987 16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 16989printf %s "checking for stdint.h... " >&6; } 16990if test ${gl_cv_header_stdint_h+y} 16991then : 16992 printf %s "(cached) " >&6 16993else $as_nop 16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16995/* end confdefs.h. */ 16996#include <sys/types.h> 16997 #include <stdint.h> 16998int 16999main (void) 17000{ 17001uintmax_t i = (uintmax_t) -1; return !i; 17002 ; 17003 return 0; 17004} 17005_ACEOF 17006if ac_fn_c_try_compile "$LINENO" 17007then : 17008 gl_cv_header_stdint_h=yes 17009else $as_nop 17010 gl_cv_header_stdint_h=no 17011fi 17012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17013fi 17014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 17015printf "%s\n" "$gl_cv_header_stdint_h" >&6; } 17016 if test $gl_cv_header_stdint_h = yes; then 17017 17018printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h 17019 17020 fi 17021 17022 17023 17024 17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 17026printf %s "checking for intmax_t... " >&6; } 17027if test ${gt_cv_c_intmax_t+y} 17028then : 17029 printf %s "(cached) " >&6 17030else $as_nop 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033 17034#include <stddef.h> 17035#include <stdlib.h> 17036#if HAVE_STDINT_H_WITH_UINTMAX 17037#include <stdint.h> 17038#endif 17039#if HAVE_INTTYPES_H_WITH_UINTMAX 17040#include <inttypes.h> 17041#endif 17042 17043int 17044main (void) 17045{ 17046intmax_t x = -1; return !x; 17047 ; 17048 return 0; 17049} 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO" 17052then : 17053 gt_cv_c_intmax_t=yes 17054else $as_nop 17055 gt_cv_c_intmax_t=no 17056fi 17057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17058fi 17059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 17060printf "%s\n" "$gt_cv_c_intmax_t" >&6; } 17061 if test $gt_cv_c_intmax_t = yes; then 17062 17063printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h 17064 17065 else 17066 17067printf "%s\n" "#define intmax_t long long" >>confdefs.h 17068 17069 fi 17070 17071 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 17073printf %s "checking where to find the exponent in a 'double'... " >&6; } 17074if test ${gl_cv_cc_double_expbit0+y} 17075then : 17076 printf %s "(cached) " >&6 17077else $as_nop 17078 17079 if test "$cross_compiling" = yes 17080then : 17081 17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17083/* end confdefs.h. */ 17084 17085#if defined arm || defined __arm || defined __arm__ 17086 mixed_endianness 17087#endif 17088 17089_ACEOF 17090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17091 $EGREP "mixed_endianness" >/dev/null 2>&1 17092then : 17093 gl_cv_cc_double_expbit0="unknown" 17094else $as_nop 17095 17096 : 17097if test ${ac_cv_c_bigendian+y} 17098then : 17099 printf %s "(cached) " >&6 17100else $as_nop 17101 ac_cv_c_bigendian=unknown 17102 # See if we're dealing with a universal compiler. 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104/* end confdefs.h. */ 17105#ifndef __APPLE_CC__ 17106 not a universal capable compiler 17107 #endif 17108 typedef int dummy; 17109 17110_ACEOF 17111if ac_fn_c_try_compile "$LINENO" 17112then : 17113 17114 # Check for potential -arch flags. It is not universal unless 17115 # there are at least two -arch flags with different values. 17116 ac_arch= 17117 ac_prev= 17118 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17119 if test -n "$ac_prev"; then 17120 case $ac_word in 17121 i?86 | x86_64 | ppc | ppc64) 17122 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17123 ac_arch=$ac_word 17124 else 17125 ac_cv_c_bigendian=universal 17126 break 17127 fi 17128 ;; 17129 esac 17130 ac_prev= 17131 elif test "x$ac_word" = "x-arch"; then 17132 ac_prev=arch 17133 fi 17134 done 17135fi 17136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17137 if test $ac_cv_c_bigendian = unknown; then 17138 # See if sys/param.h defines the BYTE_ORDER macro. 17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141#include <sys/types.h> 17142 #include <sys/param.h> 17143 17144int 17145main (void) 17146{ 17147#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17148 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17149 && LITTLE_ENDIAN) 17150 bogus endian macros 17151 #endif 17152 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157if ac_fn_c_try_compile "$LINENO" 17158then : 17159 # It does; now see whether it defined to BIG_ENDIAN or not. 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17161/* end confdefs.h. */ 17162#include <sys/types.h> 17163 #include <sys/param.h> 17164 17165int 17166main (void) 17167{ 17168#if BYTE_ORDER != BIG_ENDIAN 17169 not big endian 17170 #endif 17171 17172 ; 17173 return 0; 17174} 17175_ACEOF 17176if ac_fn_c_try_compile "$LINENO" 17177then : 17178 ac_cv_c_bigendian=yes 17179else $as_nop 17180 ac_cv_c_bigendian=no 17181fi 17182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17183fi 17184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17185 fi 17186 if test $ac_cv_c_bigendian = unknown; then 17187 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189/* end confdefs.h. */ 17190#include <limits.h> 17191 17192int 17193main (void) 17194{ 17195#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17196 bogus endian macros 17197 #endif 17198 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203if ac_fn_c_try_compile "$LINENO" 17204then : 17205 # It does; now see whether it defined to _BIG_ENDIAN or not. 17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17207/* end confdefs.h. */ 17208#include <limits.h> 17209 17210int 17211main (void) 17212{ 17213#ifndef _BIG_ENDIAN 17214 not big endian 17215 #endif 17216 17217 ; 17218 return 0; 17219} 17220_ACEOF 17221if ac_fn_c_try_compile "$LINENO" 17222then : 17223 ac_cv_c_bigendian=yes 17224else $as_nop 17225 ac_cv_c_bigendian=no 17226fi 17227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17228fi 17229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17230 fi 17231 if test $ac_cv_c_bigendian = unknown; then 17232 # Compile a test program. 17233 if test "$cross_compiling" = yes 17234then : 17235 # Try to guess by grepping values from an object file. 17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238unsigned short int ascii_mm[] = 17239 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17240 unsigned short int ascii_ii[] = 17241 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17242 int use_ascii (int i) { 17243 return ascii_mm[i] + ascii_ii[i]; 17244 } 17245 unsigned short int ebcdic_ii[] = 17246 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17247 unsigned short int ebcdic_mm[] = 17248 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17249 int use_ebcdic (int i) { 17250 return ebcdic_mm[i] + ebcdic_ii[i]; 17251 } 17252 extern int foo; 17253 17254int 17255main (void) 17256{ 17257return use_ascii (foo) == use_ebcdic (foo); 17258 ; 17259 return 0; 17260} 17261_ACEOF 17262if ac_fn_c_try_compile "$LINENO" 17263then : 17264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17265 ac_cv_c_bigendian=yes 17266 fi 17267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17268 if test "$ac_cv_c_bigendian" = unknown; then 17269 ac_cv_c_bigendian=no 17270 else 17271 # finding both strings is unlikely to happen, but who knows? 17272 ac_cv_c_bigendian=unknown 17273 fi 17274 fi 17275fi 17276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17277else $as_nop 17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280$ac_includes_default 17281int 17282main (void) 17283{ 17284 17285 /* Are we little or big endian? From Harbison&Steele. */ 17286 union 17287 { 17288 long int l; 17289 char c[sizeof (long int)]; 17290 } u; 17291 u.l = 1; 17292 return u.c[sizeof (long int) - 1] == 1; 17293 17294 ; 17295 return 0; 17296} 17297_ACEOF 17298if ac_fn_c_try_run "$LINENO" 17299then : 17300 ac_cv_c_bigendian=no 17301else $as_nop 17302 ac_cv_c_bigendian=yes 17303fi 17304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17305 conftest.$ac_objext conftest.beam conftest.$ac_ext 17306fi 17307 17308 fi 17309fi 17310: 17311 case $ac_cv_c_bigendian in #( 17312 yes) 17313 gl_cv_cc_double_expbit0="word 0 bit 20";; #( 17314 no) 17315 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( 17316 universal) 17317 17318printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17319 17320 ;; #( 17321 *) 17322 gl_cv_cc_double_expbit0="unknown" ;; 17323 esac 17324 17325 17326fi 17327rm -rf conftest* 17328 17329 17330else $as_nop 17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17332/* end confdefs.h. */ 17333 17334#include <float.h> 17335#include <stddef.h> 17336#include <stdio.h> 17337#include <string.h> 17338#define NWORDS \ 17339 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 17340typedef union { double value; unsigned int word[NWORDS]; } memory_double; 17341static unsigned int ored_words[NWORDS]; 17342static unsigned int anded_words[NWORDS]; 17343static void add_to_ored_words (double x) 17344{ 17345 memory_double m; 17346 size_t i; 17347 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ 17348 memset (&m, 0, sizeof (memory_double)); 17349 m.value = x; 17350 for (i = 0; i < NWORDS; i++) 17351 { 17352 ored_words[i] |= m.word[i]; 17353 anded_words[i] &= m.word[i]; 17354 } 17355} 17356int main () 17357{ 17358 size_t j; 17359 FILE *fp = fopen ("conftest.out", "w"); 17360 if (fp == NULL) 17361 return 1; 17362 for (j = 0; j < NWORDS; j++) 17363 anded_words[j] = ~ (unsigned int) 0; 17364 add_to_ored_words (0.25); 17365 add_to_ored_words (0.5); 17366 add_to_ored_words (1.0); 17367 add_to_ored_words (2.0); 17368 add_to_ored_words (4.0); 17369 /* Remove bits that are common (e.g. if representation of the first mantissa 17370 bit is explicit). */ 17371 for (j = 0; j < NWORDS; j++) 17372 ored_words[j] &= ~anded_words[j]; 17373 /* Now find the nonzero word. */ 17374 for (j = 0; j < NWORDS; j++) 17375 if (ored_words[j] != 0) 17376 break; 17377 if (j < NWORDS) 17378 { 17379 size_t i; 17380 for (i = j + 1; i < NWORDS; i++) 17381 if (ored_words[i] != 0) 17382 { 17383 fprintf (fp, "unknown"); 17384 return (fclose (fp) != 0); 17385 } 17386 for (i = 0; ; i++) 17387 if ((ored_words[j] >> i) & 1) 17388 { 17389 fprintf (fp, "word %d bit %d", (int) j, (int) i); 17390 return (fclose (fp) != 0); 17391 } 17392 } 17393 fprintf (fp, "unknown"); 17394 return (fclose (fp) != 0); 17395} 17396 17397_ACEOF 17398if ac_fn_c_try_run "$LINENO" 17399then : 17400 gl_cv_cc_double_expbit0=`cat conftest.out` 17401else $as_nop 17402 gl_cv_cc_double_expbit0="unknown" 17403fi 17404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17405 conftest.$ac_objext conftest.beam conftest.$ac_ext 17406fi 17407 17408 rm -f conftest.out 17409 17410fi 17411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 17412printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; } 17413 case "$gl_cv_cc_double_expbit0" in 17414 word*bit*) 17415 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` 17416 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` 17417 17418printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h 17419 17420 17421printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h 17422 17423 ;; 17424 esac 17425 17426 17427 17428 17429 17430 17431 17432 17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 17434printf %s "checking whether snprintf returns a byte count as in C99... " >&6; } 17435if test ${gl_cv_func_snprintf_retval_c99+y} 17436then : 17437 printf %s "(cached) " >&6 17438else $as_nop 17439 17440 if test "$cross_compiling" = yes 17441then : 17442 case "$host_os" in 17443 # Guess yes on glibc systems. 17444 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17445 # Guess yes on musl systems. 17446 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17447 # Guess yes on FreeBSD >= 5. 17448 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; 17449 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17450 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17451 # Guess yes on Mac OS X >= 10.3. 17452 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; 17453 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17454 # Guess yes on OpenBSD >= 3.9. 17455 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 17456 gl_cv_func_snprintf_retval_c99="guessing no";; 17457 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17458 # Guess yes on Solaris >= 2.10. 17459 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 17460 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 17461 # Guess yes on AIX >= 4. 17462 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; 17463 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17464 # Guess yes on NetBSD >= 3. 17465 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 17466 gl_cv_func_snprintf_retval_c99="guessing no";; 17467 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17468 # Guess yes on BeOS. 17469 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17470 # Guess yes on Android. 17471 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";; 17472 # Guess yes on MSVC, no on mingw. 17473 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475 17476#ifdef _MSC_VER 17477 Known 17478#endif 17479 17480_ACEOF 17481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17482 $EGREP "Known" >/dev/null 2>&1 17483then : 17484 gl_cv_func_snprintf_retval_c99="guessing yes" 17485else $as_nop 17486 gl_cv_func_snprintf_retval_c99="guessing no" 17487fi 17488rm -rf conftest* 17489 17490 ;; 17491 # If we don't know, obey --enable-cross-guesses. 17492 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; 17493 esac 17494 17495else $as_nop 17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17497/* end confdefs.h. */ 17498 17499#include <stdio.h> 17500#include <string.h> 17501#if HAVE_SNPRINTF 17502# define my_snprintf snprintf 17503#else 17504# include <stdarg.h> 17505static int my_snprintf (char *buf, int size, const char *format, ...) 17506{ 17507 va_list args; 17508 int ret; 17509 va_start (args, format); 17510 ret = vsnprintf (buf, size, format, args); 17511 va_end (args); 17512 return ret; 17513} 17514#endif 17515static char buf[100]; 17516int main () 17517{ 17518 strcpy (buf, "ABCDEF"); 17519 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) 17520 return 1; 17521 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) 17522 return 2; 17523 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) 17524 return 3; 17525 return 0; 17526} 17527_ACEOF 17528if ac_fn_c_try_run "$LINENO" 17529then : 17530 gl_cv_func_snprintf_retval_c99=yes 17531else $as_nop 17532 gl_cv_func_snprintf_retval_c99=no 17533fi 17534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17535 conftest.$ac_objext conftest.beam conftest.$ac_ext 17536fi 17537 17538 17539fi 17540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 17541printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; } 17542 17543 17544 17545 17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 17547printf %s "checking whether snprintf truncates the result as in C99... " >&6; } 17548if test ${gl_cv_func_snprintf_truncation_c99+y} 17549then : 17550 printf %s "(cached) " >&6 17551else $as_nop 17552 17553 if test "$cross_compiling" = yes 17554then : 17555 17556 case "$host_os" in 17557 # Guess yes on glibc systems. 17558 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17559 # Guess yes on musl systems. 17560 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17561 # Guess yes on FreeBSD >= 5. 17562 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17563 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17564 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17565 # Guess yes on Mac OS X >= 10.3. 17566 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17567 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17568 # Guess yes on OpenBSD >= 3.9. 17569 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 17570 gl_cv_func_snprintf_truncation_c99="guessing no";; 17571 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17572 # Guess yes on Solaris >= 2.6. 17573 solaris2.[0-5] | solaris2.[0-5].*) 17574 gl_cv_func_snprintf_truncation_c99="guessing no";; 17575 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17576 # Guess yes on AIX >= 4. 17577 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17578 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17579 # Guess yes on HP-UX >= 11. 17580 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17581 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17582 # Guess yes on IRIX >= 6.5. 17583 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17584 # Guess yes on OSF/1 >= 5. 17585 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17586 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17587 # Guess yes on NetBSD >= 3. 17588 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 17589 gl_cv_func_snprintf_truncation_c99="guessing no";; 17590 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17591 # Guess yes on BeOS. 17592 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17593 # Guess yes on Android. 17594 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 17595 # Guess no on native Windows. 17596 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";; 17597 # If we don't know, obey --enable-cross-guesses. 17598 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; 17599 esac 17600 17601else $as_nop 17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17603/* end confdefs.h. */ 17604 17605#include <stdio.h> 17606#include <string.h> 17607#if HAVE_SNPRINTF 17608# define my_snprintf snprintf 17609#else 17610# include <stdarg.h> 17611static int my_snprintf (char *buf, int size, const char *format, ...) 17612{ 17613 va_list args; 17614 int ret; 17615 va_start (args, format); 17616 ret = vsnprintf (buf, size, format, args); 17617 va_end (args); 17618 return ret; 17619} 17620#endif 17621static char buf[100]; 17622int main () 17623{ 17624 strcpy (buf, "ABCDEF"); 17625 my_snprintf (buf, 3, "%d %d", 4567, 89); 17626 if (memcmp (buf, "45\0DEF", 6) != 0) 17627 return 1; 17628 return 0; 17629} 17630_ACEOF 17631if ac_fn_c_try_run "$LINENO" 17632then : 17633 gl_cv_func_snprintf_truncation_c99=yes 17634else $as_nop 17635 gl_cv_func_snprintf_truncation_c99=no 17636fi 17637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17638 conftest.$ac_objext conftest.beam conftest.$ac_ext 17639fi 17640 17641 17642fi 17643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 17644printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; } 17645 17646 17647 17648 17649 17650 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 17651if test "x$ac_cv_func_snprintf" = xyes 17652then : 17653 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 17654 17655fi 17656ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 17657if test "x$ac_cv_func_strnlen" = xyes 17658then : 17659 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 17660 17661fi 17662ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" 17663if test "x$ac_cv_func_wcslen" = xyes 17664then : 17665 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h 17666 17667fi 17668ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen" 17669if test "x$ac_cv_func_wcsnlen" = xyes 17670then : 17671 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h 17672 17673fi 17674ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" 17675if test "x$ac_cv_func_mbrtowc" = xyes 17676then : 17677 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 17678 17679fi 17680ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" 17681if test "x$ac_cv_func_wcrtomb" = xyes 17682then : 17683 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h 17684 17685fi 17686 17687 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 17688" "$ac_c_undeclared_builtin_options" "CFLAGS" 17689if test "x$ac_cv_have_decl__snprintf" = xyes 17690then : 17691 ac_have_decl=1 17692else $as_nop 17693 ac_have_decl=0 17694fi 17695printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h 17696 17697 17698 17699 case "$gl_cv_func_snprintf_retval_c99" in 17700 *yes) 17701 17702printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h 17703 17704 ;; 17705 esac 17706 17707 case "$gl_cv_func_snprintf_truncation_c99" in 17708 *yes) 17709 17710printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h 17711 17712 ;; 17713 esac 17714 17715 17716 17717 if false; then 17718 GL_COND_LIBTOOL_TRUE= 17719 GL_COND_LIBTOOL_FALSE='#' 17720else 17721 GL_COND_LIBTOOL_TRUE='#' 17722 GL_COND_LIBTOOL_FALSE= 17723fi 17724 17725 gl_cond_libtool=false 17726 gl_libdeps= 17727 gl_ltlibdeps= 17728 gl_m4_base='gnulib/m4' 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 gl_source_base='gnulib/lib' 17740 17741 17742 if test $ac_cv_func_alloca_works = no; then 17743 : 17744 fi 17745 17746 # Define an additional variable used in the Makefile substitution. 17747 if test $ac_cv_working_alloca_h = yes; then 17748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 17749printf %s "checking for alloca as a compiler built-in... " >&6; } 17750if test ${gl_cv_rpl_alloca+y} 17751then : 17752 printf %s "(cached) " >&6 17753else $as_nop 17754 17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17756/* end confdefs.h. */ 17757 17758#if defined __GNUC__ || defined _AIX || defined _MSC_VER 17759 Need own alloca 17760#endif 17761 17762_ACEOF 17763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17764 $EGREP "Need own alloca" >/dev/null 2>&1 17765then : 17766 gl_cv_rpl_alloca=yes 17767else $as_nop 17768 gl_cv_rpl_alloca=no 17769fi 17770rm -rf conftest* 17771 17772 17773fi 17774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 17775printf "%s\n" "$gl_cv_rpl_alloca" >&6; } 17776 if test $gl_cv_rpl_alloca = yes; then 17777 17778printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 17779 17780 ALLOCA_H=alloca.h 17781 else 17782 ALLOCA_H= 17783 fi 17784 else 17785 ALLOCA_H=alloca.h 17786 fi 17787 17788 if test -n "$ALLOCA_H"; then 17789 GL_GENERATE_ALLOCA_H_TRUE= 17790 GL_GENERATE_ALLOCA_H_FALSE='#' 17791else 17792 GL_GENERATE_ALLOCA_H_TRUE='#' 17793 GL_GENERATE_ALLOCA_H_FALSE= 17794fi 17795 17796 17797 if test $ac_cv_working_alloca_h = yes; then 17798 HAVE_ALLOCA_H=1 17799 else 17800 HAVE_ALLOCA_H=0 17801 fi 17802 17803 17804 : 17805 17806 17807 17808ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 17809" 17810if test "x$ac_cv_header_argz_h" = xyes 17811then : 17812 printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h 17813 17814fi 17815 17816 17817ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 17818# include <argz.h> 17819#endif 17820" 17821if test "x$ac_cv_type_error_t" = xyes 17822then : 17823 17824printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h 17825 17826 17827else $as_nop 17828 17829printf "%s\n" "#define error_t int" >>confdefs.h 17830 17831 17832printf "%s\n" "#define __error_t_defined 1" >>confdefs.h 17833 17834fi 17835 17836 17837ARGZ_H= 17838ac_fn_c_check_func "$LINENO" "argz_replace" "ac_cv_func_argz_replace" 17839if test "x$ac_cv_func_argz_replace" = xyes 17840then : 17841 17842else $as_nop 17843 ARGZ_H=argz.h 17844fi 17845 17846 17847if test -z "$ARGZ_H" 17848then : 17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 17850printf %s "checking if argz actually works... " >&6; } 17851if test ${lt_cv_sys_argz_works+y} 17852then : 17853 printf %s "(cached) " >&6 17854else $as_nop 17855 case $host_os in #( 17856 *cygwin*) 17857 lt_cv_sys_argz_works=no 17858 if test "$cross_compiling" != no; then 17859 lt_cv_sys_argz_works="$gl_cross_guess_normal" 17860 else 17861 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 17862 save_IFS=$IFS 17863 IFS=-. 17864 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 17865 IFS=$save_IFS 17866 lt_os_major=${2-0} 17867 lt_os_minor=${3-0} 17868 lt_os_micro=${4-0} 17869 if test "$lt_os_major" -gt 1 \ 17870 || { test "$lt_os_major" -eq 1 \ 17871 && { test "$lt_os_minor" -gt 5 \ 17872 || { test "$lt_os_minor" -eq 5 \ 17873 && test "$lt_os_micro" -gt 24; }; }; }; then 17874 lt_cv_sys_argz_works=yes 17875 fi 17876 fi 17877 ;; #( 17878 *) lt_cv_sys_argz_works=yes ;; 17879 esac 17880fi 17881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 17882printf "%s\n" "$lt_cv_sys_argz_works" >&6; } 17883 if test "$lt_cv_sys_argz_works" = yes 17884then : 17885 17886printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 17887 17888else $as_nop 17889 ARGZ_H=argz.h 17890fi 17891fi 17892 17893 17894 if test -n "$ARGZ_H"; then 17895 GL_GENERATE_ARGZ_H_TRUE= 17896 GL_GENERATE_ARGZ_H_FALSE='#' 17897else 17898 GL_GENERATE_ARGZ_H_TRUE='#' 17899 GL_GENERATE_ARGZ_H_FALSE= 17900fi 17901 17902 17903 if test -n "$ARGZ_H"; then 17904 17905 17906 17907 17908 17909 17910 17911 17912 gl_LIBOBJS="$gl_LIBOBJS argz.$ac_objext" 17913 17914 fi 17915 17916 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 17918printf %s "checking whether // is distinct from /... " >&6; } 17919if test ${gl_cv_double_slash_root+y} 17920then : 17921 printf %s "(cached) " >&6 17922else $as_nop 17923 if test x"$cross_compiling" = xyes ; then 17924 # When cross-compiling, there is no way to tell whether // is special 17925 # short of a list of hosts. However, the only known hosts to date 17926 # that have a distinct // are Apollo DomainOS (too old to port to), 17927 # Cygwin, and z/OS. If anyone knows of another system for which // has 17928 # special semantics and is distinct from /, please report it to 17929 # <bug-gnulib@gnu.org>. 17930 case $host in 17931 *-cygwin | i370-ibm-openedition) 17932 gl_cv_double_slash_root=yes ;; 17933 *) 17934 # Be optimistic and assume that / and // are the same when we 17935 # don't know. 17936 gl_cv_double_slash_root='unknown, assuming no' ;; 17937 esac 17938 else 17939 set x `ls -di / // 2>/dev/null` 17940 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 17941 gl_cv_double_slash_root=no 17942 else 17943 gl_cv_double_slash_root=yes 17944 fi 17945 fi 17946fi 17947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 17948printf "%s\n" "$gl_cv_double_slash_root" >&6; } 17949 if test "$gl_cv_double_slash_root" = yes; then 17950 17951printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 17952 17953 fi 17954 17955 17956 17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 17958printf %s "checking for error_at_line... " >&6; } 17959if test ${ac_cv_lib_error_at_line+y} 17960then : 17961 printf %s "(cached) " >&6 17962else $as_nop 17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17964/* end confdefs.h. */ 17965#include <error.h> 17966int 17967main (void) 17968{ 17969error_at_line (0, 0, "", 0, "an error occurred"); 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974if ac_fn_c_try_link "$LINENO" 17975then : 17976 ac_cv_lib_error_at_line=yes 17977else $as_nop 17978 ac_cv_lib_error_at_line=no 17979fi 17980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17981 conftest$ac_exeext conftest.$ac_ext 17982fi 17983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 17984printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } 17985 17986 if test $ac_cv_lib_error_at_line = no; then 17987 17988 17989 17990 17991 17992 17993 17994 17995 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 17996 17997 17998 17999 : 18000 18001 fi 18002 18003 18004 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 18005 18006 18007 18008 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 if test $gl_cv_have_include_next = yes; then 18023 gl_cv_next_fcntl_h='<'fcntl.h'>' 18024 else 18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 18026printf %s "checking absolute name of <fcntl.h>... " >&6; } 18027if test ${gl_cv_next_fcntl_h+y} 18028then : 18029 printf %s "(cached) " >&6 18030else $as_nop 18031 18032 18033 18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18035/* end confdefs.h. */ 18036#include <fcntl.h> 18037_ACEOF 18038 case "$host_os" in 18039 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18040 *) gl_absname_cpp="$ac_cpp" ;; 18041 esac 18042 18043 case "$host_os" in 18044 mingw*) 18045 gl_dirsep_regex='[/\\]' 18046 ;; 18047 *) 18048 gl_dirsep_regex='\/' 18049 ;; 18050 esac 18051 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18052 gl_header_literal_regex=`echo 'fcntl.h' \ 18053 | sed -e "$gl_make_literal_regex_sed"` 18054 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18055 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18056 s|^/[^/]|//&| 18057 p 18058 q 18059 }' 18060 18061 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18062 sed -n "$gl_absolute_header_sed"` 18063 18064 gl_header=$gl_cv_absolute_fcntl_h 18065 gl_cv_next_fcntl_h='"'$gl_header'"' 18066 18067 18068fi 18069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 18070printf "%s\n" "$gl_cv_next_fcntl_h" >&6; } 18071 fi 18072 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 18073 18074 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18076 gl_next_as_first_directive='<'fcntl.h'>' 18077 else 18078 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18079 gl_next_as_first_directive=$gl_cv_next_fcntl_h 18080 fi 18081 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 FLOAT_H= 18099 REPLACE_FLOAT_LDBL=0 18100 case "$host_os" in 18101 aix* | beos* | openbsd* | mirbsd* | irix*) 18102 FLOAT_H=float.h 18103 ;; 18104 freebsd* | dragonfly*) 18105 case "$host_cpu" in 18106 i[34567]86 ) 18107 FLOAT_H=float.h 18108 ;; 18109 x86_64 ) 18110 # On x86_64 systems, the C compiler may still be generating 18111 # 32-bit code. 18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18113/* end confdefs.h. */ 18114#if defined __LP64__ || defined __x86_64__ || defined __amd64__ 18115 int ok; 18116 #else 18117 error fail 18118 #endif 18119 18120_ACEOF 18121if ac_fn_c_try_compile "$LINENO" 18122then : 18123 18124else $as_nop 18125 FLOAT_H=float.h 18126fi 18127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18128 ;; 18129 esac 18130 ;; 18131 linux*) 18132 case "$host_cpu" in 18133 powerpc*) 18134 FLOAT_H=float.h 18135 ;; 18136 esac 18137 ;; 18138 esac 18139 case "$host_os" in 18140 aix* | freebsd* | dragonfly* | linux*) 18141 if test -n "$FLOAT_H"; then 18142 REPLACE_FLOAT_LDBL=1 18143 fi 18144 ;; 18145 esac 18146 18147 REPLACE_ITOLD=0 18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 18149printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; } 18150if test ${gl_cv_func_itold_works+y} 18151then : 18152 printf %s "(cached) " >&6 18153else $as_nop 18154 18155 if test "$cross_compiling" = yes 18156then : 18157 case "$host" in 18158 sparc*-*-linux*) 18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18160/* end confdefs.h. */ 18161#if defined __LP64__ || defined __arch64__ 18162 int ok; 18163 #else 18164 error fail 18165 #endif 18166 18167_ACEOF 18168if ac_fn_c_try_compile "$LINENO" 18169then : 18170 gl_cv_func_itold_works="guessing no" 18171else $as_nop 18172 gl_cv_func_itold_works="guessing yes" 18173fi 18174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18175 ;; 18176 # Guess yes on native Windows. 18177 mingw*) gl_cv_func_itold_works="guessing yes" ;; 18178 *) gl_cv_func_itold_works="guessing yes" ;; 18179 esac 18180 18181else $as_nop 18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18183/* end confdefs.h. */ 18184 18185int i = -1; 18186volatile long double ld; 18187int main () 18188{ 18189 ld += i * 1.0L; 18190 if (ld > 0) 18191 return 1; 18192 return 0; 18193} 18194_ACEOF 18195if ac_fn_c_try_run "$LINENO" 18196then : 18197 gl_cv_func_itold_works=yes 18198else $as_nop 18199 gl_cv_func_itold_works=no 18200fi 18201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18202 conftest.$ac_objext conftest.beam conftest.$ac_ext 18203fi 18204 18205 18206fi 18207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 18208printf "%s\n" "$gl_cv_func_itold_works" >&6; } 18209 case "$gl_cv_func_itold_works" in 18210 *no) 18211 REPLACE_ITOLD=1 18212 FLOAT_H=float.h 18213 ;; 18214 esac 18215 18216 if test -n "$FLOAT_H"; then 18217 18218 18219 18220 18221 18222 18223 18224 18225 if test $gl_cv_have_include_next = yes; then 18226 gl_cv_next_float_h='<'float.h'>' 18227 else 18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5 18229printf %s "checking absolute name of <float.h>... " >&6; } 18230if test ${gl_cv_next_float_h+y} 18231then : 18232 printf %s "(cached) " >&6 18233else $as_nop 18234 18235 18236 18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18238/* end confdefs.h. */ 18239#include <float.h> 18240_ACEOF 18241 case "$host_os" in 18242 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18243 *) gl_absname_cpp="$ac_cpp" ;; 18244 esac 18245 18246 case "$host_os" in 18247 mingw*) 18248 gl_dirsep_regex='[/\\]' 18249 ;; 18250 *) 18251 gl_dirsep_regex='\/' 18252 ;; 18253 esac 18254 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18255 gl_header_literal_regex=`echo 'float.h' \ 18256 | sed -e "$gl_make_literal_regex_sed"` 18257 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18258 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18259 s|^/[^/]|//&| 18260 p 18261 q 18262 }' 18263 18264 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18265 sed -n "$gl_absolute_header_sed"` 18266 18267 gl_header=$gl_cv_absolute_float_h 18268 gl_cv_next_float_h='"'$gl_header'"' 18269 18270 18271fi 18272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 18273printf "%s\n" "$gl_cv_next_float_h" >&6; } 18274 fi 18275 NEXT_FLOAT_H=$gl_cv_next_float_h 18276 18277 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18278 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18279 gl_next_as_first_directive='<'float.h'>' 18280 else 18281 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18282 gl_next_as_first_directive=$gl_cv_next_float_h 18283 fi 18284 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive 18285 18286 18287 18288 18289 fi 18290 18291 if test -n "$FLOAT_H"; then 18292 GL_GENERATE_FLOAT_H_TRUE= 18293 GL_GENERATE_FLOAT_H_FALSE='#' 18294else 18295 GL_GENERATE_FLOAT_H_TRUE='#' 18296 GL_GENERATE_FLOAT_H_FALSE= 18297fi 18298 18299 18300 18301 if test $REPLACE_FLOAT_LDBL = 1; then 18302 18303 18304 18305 18306 18307 18308 18309 18310 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext" 18311 18312 fi 18313 if test $REPLACE_ITOLD = 1; then 18314 18315 18316 18317 18318 18319 18320 18321 18322 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext" 18323 18324 fi 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 REPLACE_GETOPT=0 18335 if test -n "$gl_replace_getopt"; then 18336 REPLACE_GETOPT=1 18337 fi 18338 18339 if test $REPLACE_GETOPT = 1; then 18340 18341 18342 if test $ac_cv_header_sys_cdefs_h = yes; then 18343 HAVE_SYS_CDEFS_H=1 18344 else 18345 HAVE_SYS_CDEFS_H=0 18346 fi 18347 18348 18349 18350printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h 18351 18352 GETOPT_H=getopt.h 18353 GETOPT_CDEFS_H=getopt-cdefs.h 18354 18355 18356 18357 fi 18358 18359 if test $REPLACE_GETOPT = 1; then 18360 18361 18362 18363 18364 18365 18366 18367 18368 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 18379 18380 GNULIB_GL_UNISTD_H_GETOPT=1 18381 fi 18382 18383 18384 18385 18386 18387 18388 GNULIB_GETOPT_POSIX=1 18389 18390 18391 18392 18393 18394printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h 18395 18396 18397 18398 18399 18400 18401 ac_found=0 18402 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 18403" "$ac_c_undeclared_builtin_options" "CFLAGS" 18404if test "x$ac_cv_have_decl_program_invocation_name" = xyes 18405then : 18406 ac_have_decl=1 18407else $as_nop 18408 ac_have_decl=0 18409fi 18410printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h 18411if test $ac_have_decl = 1 18412then : 18413 ac_found=1 18414fi 18415 18416 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 18417" "$ac_c_undeclared_builtin_options" "CFLAGS" 18418if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 18419then : 18420 ac_have_decl=1 18421else $as_nop 18422 ac_have_decl=0 18423fi 18424printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 18425if test $ac_have_decl = 1 18426then : 18427 ac_found=1 18428fi 18429 18430 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> 18431" "$ac_c_undeclared_builtin_options" "CFLAGS" 18432if test "x$ac_cv_have_decl___argv" = xyes 18433then : 18434 ac_have_decl=1 18435else $as_nop 18436 ac_have_decl=0 18437fi 18438printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h 18439if test $ac_have_decl = 1 18440then : 18441 ac_found=1 18442fi 18443 18444 18445 # Incur the cost of this test only if none of the above worked. 18446 if test $ac_found = 0; then 18447 # On OpenBSD 5.1, using the global __progname variable appears to be 18448 # the only way to implement getprogname. 18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 18450printf %s "checking whether __progname is defined in default libraries... " >&6; } 18451if test ${gl_cv_var___progname+y} 18452then : 18453 printf %s "(cached) " >&6 18454else $as_nop 18455 18456 gl_cv_var___progname= 18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18458/* end confdefs.h. */ 18459extern char *__progname; 18460int 18461main (void) 18462{ 18463return *__progname; 18464 18465 ; 18466 return 0; 18467} 18468_ACEOF 18469if ac_fn_c_try_link "$LINENO" 18470then : 18471 gl_cv_var___progname=yes 18472 18473fi 18474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18475 conftest$ac_exeext conftest.$ac_ext 18476 18477 18478fi 18479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 18480printf "%s\n" "$gl_cv_var___progname" >&6; } 18481 if test "$gl_cv_var___progname" = yes; then 18482 18483printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h 18484 18485 fi 18486 fi 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 ac_fn_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" " 18500 #include <wchar.h> 18501 #include <wctype.h> 18502 18503" "$ac_c_undeclared_builtin_options" "CFLAGS" 18504if test "x$ac_cv_have_decl_iswblank" = xyes 18505then : 18506 ac_have_decl=1 18507else $as_nop 18508 ac_have_decl=0 18509fi 18510printf "%s\n" "#define HAVE_DECL_ISWBLANK $ac_have_decl" >>confdefs.h 18511 18512 if test $ac_cv_func_iswblank = no; then 18513 HAVE_ISWBLANK=0 18514 if test $ac_cv_have_decl_iswblank = yes; then 18515 REPLACE_ISWBLANK=1 18516 fi 18517 fi 18518 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18519 : 18520 else 18521 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then 18522 : 18523 fi 18524 fi 18525 18526 18527 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18528 : 18529 else 18530 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then 18531 18532 18533 18534 18535 18536 18537 18538 18539 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext" 18540 18541 fi 18542 fi 18543 18544 18545 18546 18547 18548 GNULIB_ISWBLANK=1 18549 18550 18551 18552 18553 18554printf "%s\n" "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18567 REPLACE_ISWDIGIT="$REPLACE_ISWCNTRL" 18568 else 18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswdigit is ISO C compliant" >&5 18570printf %s "checking whether iswdigit is ISO C compliant... " >&6; } 18571if test ${gl_cv_func_iswdigit_works+y} 18572then : 18573 printf %s "(cached) " >&6 18574else $as_nop 18575 18576 case "$host_os" in 18577 # Guess no on FreeBSD, NetBSD, Solaris, native Windows. 18578 freebsd* | dragonfly* | netbsd* | solaris* | mingw*) 18579 gl_cv_func_iswdigit_works="guessing no" ;; 18580 # Guess yes otherwise. 18581 *) gl_cv_func_iswdigit_works="guessing yes" ;; 18582 esac 18583 if test $LOCALE_FR != none || test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then 18584 if test "$cross_compiling" = yes 18585then : 18586 : 18587else $as_nop 18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18589/* end confdefs.h. */ 18590 18591#include <locale.h> 18592#include <stdlib.h> 18593#include <string.h> 18594#include <wchar.h> 18595#include <wctype.h> 18596 18597/* Returns the value of iswdigit for the multibyte character s[0..n-1]. */ 18598static int 18599for_character (const char *s, size_t n) 18600{ 18601 mbstate_t state; 18602 wchar_t wc; 18603 size_t ret; 18604 18605 memset (&state, '\0', sizeof (mbstate_t)); 18606 wc = (wchar_t) 0xBADFACE; 18607 ret = mbrtowc (&wc, s, n, &state); 18608 if (ret != n) 18609 abort (); 18610 18611 return iswdigit (wc); 18612} 18613 18614int 18615main (int argc, char *argv[]) 18616{ 18617 int is; 18618 int result = 0; 18619 18620 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 18621 { 18622 /* This fails on mingw, MSVC 14. */ 18623 /* U+00B2 SUPERSCRIPT TWO */ 18624 is = for_character ("\262", 1); 18625 if (!(is == 0)) 18626 result |= 1; 18627 } 18628 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 18629 { 18630 /* This fails on NetBSD 8.0. */ 18631 /* U+FF11 FULLWIDTH DIGIT ONE */ 18632 is = for_character ("\243\261", 2); 18633 if (!(is == 0)) 18634 result |= 2; 18635 } 18636 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 18637 { 18638 /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14. */ 18639 /* U+0663 ARABIC-INDIC DIGIT THREE */ 18640 is = for_character ("\331\243", 2); 18641 if (!(is == 0)) 18642 result |= 4; 18643 /* This fails on FreeBSD 12, NetBSD 8.0, MSVC 14. */ 18644 /* U+FF11 FULLWIDTH DIGIT ONE */ 18645 is = for_character ("\357\274\221", 3); 18646 if (!(is == 0)) 18647 result |= 8; 18648 } 18649 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 18650 { 18651 /* This fails on NetBSD 8.0, Solaris 10, Solaris 11.4. */ 18652 /* U+FF11 FULLWIDTH DIGIT ONE */ 18653 is = for_character ("\243\261", 2); 18654 if (!(is == 0)) 18655 result |= 16; 18656 } 18657 return result; 18658} 18659_ACEOF 18660if ac_fn_c_try_run "$LINENO" 18661then : 18662 gl_cv_func_iswdigit_works=yes 18663else $as_nop 18664 gl_cv_func_iswdigit_works=no 18665fi 18666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18667 conftest.$ac_objext conftest.beam conftest.$ac_ext 18668fi 18669 18670 fi 18671 18672fi 18673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswdigit_works" >&5 18674printf "%s\n" "$gl_cv_func_iswdigit_works" >&6; } 18675 case "$gl_cv_func_iswdigit_works" in 18676 *yes) ;; 18677 *) REPLACE_ISWDIGIT=1 ;; 18678 esac 18679 fi 18680 18681 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18682 : 18683 else 18684 if test $REPLACE_ISWDIGIT = 1; then 18685 18686 18687 18688 18689 18690 18691 18692 18693 gl_LIBOBJS="$gl_LIBOBJS iswdigit.$ac_objext" 18694 18695 fi 18696 fi 18697 18698 18699 18700 18701 18702 GNULIB_ISWDIGIT=1 18703 18704 18705 18706 18707 18708printf "%s\n" "#define GNULIB_TEST_ISWDIGIT 1" >>confdefs.h 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18720 REPLACE_ISWXDIGIT="$REPLACE_ISWCNTRL" 18721 else 18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswxdigit is ISO C compliant" >&5 18723printf %s "checking whether iswxdigit is ISO C compliant... " >&6; } 18724if test ${gl_cv_func_iswxdigit_works+y} 18725then : 18726 printf %s "(cached) " >&6 18727else $as_nop 18728 18729 case "$host_os" in 18730 # Guess no on FreeBSD, NetBSD, Solaris, native Windows. 18731 freebsd* | dragonfly* | netbsd* | solaris* | mingw*) 18732 gl_cv_func_iswxdigit_works="guessing no" ;; 18733 # Guess yes otherwise. 18734 *) gl_cv_func_iswxdigit_works="guessing yes" ;; 18735 esac 18736 if test $LOCALE_JA != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_ZH_CN != none; then 18737 if test "$cross_compiling" = yes 18738then : 18739 : 18740else $as_nop 18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18742/* end confdefs.h. */ 18743 18744#include <locale.h> 18745#include <stdlib.h> 18746#include <string.h> 18747#include <wchar.h> 18748#include <wctype.h> 18749 18750/* Returns the value of iswxdigit for the multibyte character s[0..n-1]. */ 18751static int 18752for_character (const char *s, size_t n) 18753{ 18754 mbstate_t state; 18755 wchar_t wc; 18756 size_t ret; 18757 18758 memset (&state, '\0', sizeof (mbstate_t)); 18759 wc = (wchar_t) 0xBADFACE; 18760 ret = mbrtowc (&wc, s, n, &state); 18761 if (ret != n) 18762 abort (); 18763 18764 return iswxdigit (wc); 18765} 18766 18767int 18768main (int argc, char *argv[]) 18769{ 18770 int is; 18771 int result = 0; 18772 18773 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 18774 { 18775 /* This fails on NetBSD 8.0. */ 18776 /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */ 18777 is = for_character ("\243\301", 2); 18778 if (!(is == 0)) 18779 result |= 1; 18780 } 18781 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 18782 { 18783 /* This fails on FreeBSD 12. */ 18784 /* U+0663 ARABIC-INDIC DIGIT THREE */ 18785 is = for_character ("\331\243", 2); 18786 if (!(is == 0)) 18787 result |= 2; 18788 /* This fails on MSVC 14. */ 18789 /* U+FF21 FULLWIDTH LATIN CAPITAL LETTER A */ 18790 is = for_character ("\357\274\241", 3); 18791 if (!(is == 0)) 18792 result |= 4; 18793 } 18794 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 18795 { 18796 /* This fails on Solaris 10, Solaris 11.4. */ 18797 /* U+FF11 FULLWIDTH DIGIT ONE */ 18798 is = for_character ("\243\261", 2); 18799 if (!(is == 0)) 18800 result |= 8; 18801 } 18802 return result; 18803} 18804_ACEOF 18805if ac_fn_c_try_run "$LINENO" 18806then : 18807 gl_cv_func_iswxdigit_works=yes 18808else $as_nop 18809 gl_cv_func_iswxdigit_works=no 18810fi 18811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18812 conftest.$ac_objext conftest.beam conftest.$ac_ext 18813fi 18814 18815 fi 18816 18817fi 18818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswxdigit_works" >&5 18819printf "%s\n" "$gl_cv_func_iswxdigit_works" >&6; } 18820 case "$gl_cv_func_iswxdigit_works" in 18821 *yes) ;; 18822 *) REPLACE_ISWXDIGIT=1 ;; 18823 esac 18824 fi 18825 18826 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 18827 : 18828 else 18829 if test $REPLACE_ISWXDIGIT = 1; then 18830 18831 18832 18833 18834 18835 18836 18837 18838 gl_LIBOBJS="$gl_LIBOBJS iswxdigit.$ac_objext" 18839 18840 fi 18841 fi 18842 18843 18844 18845 18846 18847 GNULIB_ISWXDIGIT=1 18848 18849 18850 18851 18852 18853printf "%s\n" "#define GNULIB_TEST_ISWXDIGIT 1" >>confdefs.h 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 : 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 if case "$host_os" in 18883 mingw*) true ;; 18884 *) test $ac_cv_func_mbsinit = yes ;; 18885 esac \ 18886 && test $ac_cv_func_mbrtowc = yes; then 18887 18888 18889 18890 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 18892printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 18893if test ${gl_cv_func_mbrtowc_incomplete_state+y} 18894then : 18895 printf %s "(cached) " >&6 18896else $as_nop 18897 18898 case "$host_os" in 18899 # Guess no on AIX and OSF/1. 18900 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 18901 # Guess yes otherwise. 18902 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 18903 esac 18904 if test $LOCALE_JA != none; then 18905 if test "$cross_compiling" = yes 18906then : 18907 : 18908else $as_nop 18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18910/* end confdefs.h. */ 18911 18912#include <locale.h> 18913#include <string.h> 18914#include <wchar.h> 18915int main () 18916{ 18917 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 18918 { 18919 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 18920 mbstate_t state; 18921 wchar_t wc; 18922 18923 memset (&state, '\0', sizeof (mbstate_t)); 18924 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 18925 if (mbsinit (&state)) 18926 return 2; 18927 } 18928 return 0; 18929} 18930_ACEOF 18931if ac_fn_c_try_run "$LINENO" 18932then : 18933 gl_cv_func_mbrtowc_incomplete_state=yes 18934else $as_nop 18935 gl_cv_func_mbrtowc_incomplete_state=no 18936fi 18937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18938 conftest.$ac_objext conftest.beam conftest.$ac_ext 18939fi 18940 18941 else 18942 if test $LOCALE_FR_UTF8 != none; then 18943 if test "$cross_compiling" = yes 18944then : 18945 : 18946else $as_nop 18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18948/* end confdefs.h. */ 18949 18950#include <locale.h> 18951#include <string.h> 18952#include <wchar.h> 18953int main () 18954{ 18955 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 18956 { 18957 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 18958 mbstate_t state; 18959 wchar_t wc; 18960 18961 memset (&state, '\0', sizeof (mbstate_t)); 18962 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 18963 if (mbsinit (&state)) 18964 return 2; 18965 } 18966 return 0; 18967} 18968_ACEOF 18969if ac_fn_c_try_run "$LINENO" 18970then : 18971 gl_cv_func_mbrtowc_incomplete_state=yes 18972else $as_nop 18973 gl_cv_func_mbrtowc_incomplete_state=no 18974fi 18975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18976 conftest.$ac_objext conftest.beam conftest.$ac_ext 18977fi 18978 18979 fi 18980 fi 18981 18982fi 18983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 18984printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 18985 18986 18987 18988 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 18990printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 18991if test ${gl_cv_func_mbrtowc_sanitycheck+y} 18992then : 18993 printf %s "(cached) " >&6 18994else $as_nop 18995 18996 case "$host_os" in 18997 # Guess no on Solaris 8. 18998 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 18999 # Guess yes otherwise. 19000 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 19001 esac 19002 if test $LOCALE_ZH_CN != none; then 19003 if test "$cross_compiling" = yes 19004then : 19005 : 19006else $as_nop 19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19008/* end confdefs.h. */ 19009 19010#include <locale.h> 19011#include <stdlib.h> 19012#include <string.h> 19013#include <wchar.h> 19014int main () 19015{ 19016 /* This fails on Solaris 8: 19017 mbrtowc returns 2, and sets wc to 0x00F0. 19018 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 19019 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 19020 { 19021 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 19022 mbstate_t state; 19023 wchar_t wc; 19024 19025 memset (&state, '\0', sizeof (mbstate_t)); 19026 if (mbrtowc (&wc, input + 3, 6, &state) != 4 19027 && mbtowc (&wc, input + 3, 6) == 4) 19028 return 2; 19029 } 19030 return 0; 19031} 19032_ACEOF 19033if ac_fn_c_try_run "$LINENO" 19034then : 19035 gl_cv_func_mbrtowc_sanitycheck=yes 19036else $as_nop 19037 gl_cv_func_mbrtowc_sanitycheck=no 19038fi 19039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19040 conftest.$ac_objext conftest.beam conftest.$ac_ext 19041fi 19042 19043 fi 19044 19045fi 19046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 19047printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 19048 19049 REPLACE_MBSTATE_T=0 19050 case "$gl_cv_func_mbrtowc_incomplete_state" in 19051 *yes) ;; 19052 *) REPLACE_MBSTATE_T=1 ;; 19053 esac 19054 case "$gl_cv_func_mbrtowc_sanitycheck" in 19055 *yes) ;; 19056 *) REPLACE_MBSTATE_T=1 ;; 19057 esac 19058 else 19059 REPLACE_MBSTATE_T=1 19060 fi 19061 19062 19063 19064 if test $ac_cv_func_mbrtowc = no; then 19065 HAVE_MBRTOWC=0 19066 ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 19067 #include <wchar.h> 19068 19069" "$ac_c_undeclared_builtin_options" "CFLAGS" 19070if test "x$ac_cv_have_decl_mbrtowc" = xyes 19071then : 19072 ac_have_decl=1 19073else $as_nop 19074 ac_have_decl=0 19075fi 19076printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h 19077 19078 if test $ac_cv_have_decl_mbrtowc = yes; then 19079 REPLACE_MBRTOWC=1 19080 fi 19081 else 19082 if test $REPLACE_MBSTATE_T = 1; then 19083 REPLACE_MBRTOWC=1 19084 else 19085 19086 19087 19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 19089printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 19090if test ${gl_cv_func_mbrtowc_null_arg1+y} 19091then : 19092 printf %s "(cached) " >&6 19093else $as_nop 19094 19095 case "$host_os" in 19096 # Guess no on Solaris. 19097 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 19098 # Guess yes otherwise. 19099 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 19100 esac 19101 if test $LOCALE_FR_UTF8 != none; then 19102 if test "$cross_compiling" = yes 19103then : 19104 : 19105else $as_nop 19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19107/* end confdefs.h. */ 19108 19109#include <locale.h> 19110#include <stdlib.h> 19111#include <string.h> 19112#include <wchar.h> 19113int main () 19114{ 19115 int result = 0; 19116 19117 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 19118 { 19119 char input[] = "\303\237er"; 19120 mbstate_t state; 19121 wchar_t wc; 19122 size_t ret; 19123 19124 memset (&state, '\0', sizeof (mbstate_t)); 19125 wc = (wchar_t) 0xBADFACE; 19126 ret = mbrtowc (&wc, input, 5, &state); 19127 if (ret != 2) 19128 result |= 1; 19129 if (!mbsinit (&state)) 19130 result |= 2; 19131 19132 memset (&state, '\0', sizeof (mbstate_t)); 19133 ret = mbrtowc (NULL, input, 5, &state); 19134 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 19135 result |= 4; 19136 if (!mbsinit (&state)) 19137 result |= 8; 19138 } 19139 return result; 19140} 19141_ACEOF 19142if ac_fn_c_try_run "$LINENO" 19143then : 19144 gl_cv_func_mbrtowc_null_arg1=yes 19145else $as_nop 19146 gl_cv_func_mbrtowc_null_arg1=no 19147fi 19148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19149 conftest.$ac_objext conftest.beam conftest.$ac_ext 19150fi 19151 19152 fi 19153 19154fi 19155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 19156printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; } 19157 19158 19159 19160 19161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 19162printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; } 19163if test ${gl_cv_func_mbrtowc_null_arg2+y} 19164then : 19165 printf %s "(cached) " >&6 19166else $as_nop 19167 19168 case "$host_os" in 19169 # Guess no on OSF/1. 19170 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 19171 # Guess yes otherwise. 19172 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 19173 esac 19174 if test $LOCALE_FR_UTF8 != none; then 19175 if test "$cross_compiling" = yes 19176then : 19177 : 19178else $as_nop 19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19180/* end confdefs.h. */ 19181 19182#include <locale.h> 19183#include <string.h> 19184#include <wchar.h> 19185int main () 19186{ 19187 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 19188 { 19189 mbstate_t state; 19190 wchar_t wc; 19191 int ret; 19192 19193 memset (&state, '\0', sizeof (mbstate_t)); 19194 wc = (wchar_t) 0xBADFACE; 19195 mbrtowc (&wc, NULL, 5, &state); 19196 /* Check that wc was not modified. */ 19197 if (wc != (wchar_t) 0xBADFACE) 19198 return 2; 19199 } 19200 return 0; 19201} 19202_ACEOF 19203if ac_fn_c_try_run "$LINENO" 19204then : 19205 gl_cv_func_mbrtowc_null_arg2=yes 19206else $as_nop 19207 gl_cv_func_mbrtowc_null_arg2=no 19208fi 19209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19210 conftest.$ac_objext conftest.beam conftest.$ac_ext 19211fi 19212 19213 fi 19214 19215fi 19216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 19217printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; } 19218 19219 19220 19221 19222 19223 19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 19225printf %s "checking whether mbrtowc has a correct return value... " >&6; } 19226if test ${gl_cv_func_mbrtowc_retval+y} 19227then : 19228 printf %s "(cached) " >&6 19229else $as_nop 19230 19231 case "$host_os" in 19232 # Guess no on HP-UX, Solaris, native Windows. 19233 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 19234 # Guess yes otherwise. 19235 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 19236 esac 19237 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 19238 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 19239 if test "$cross_compiling" = yes 19240then : 19241 : 19242else $as_nop 19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19244/* end confdefs.h. */ 19245 19246#include <locale.h> 19247#include <string.h> 19248#include <wchar.h> 19249int main () 19250{ 19251 int result = 0; 19252 int found_some_locale = 0; 19253 /* This fails on Solaris. */ 19254 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 19255 { 19256 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 19257 mbstate_t state; 19258 wchar_t wc; 19259 19260 memset (&state, '\0', sizeof (mbstate_t)); 19261 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 19262 { 19263 input[1] = '\0'; 19264 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 19265 result |= 1; 19266 } 19267 found_some_locale = 1; 19268 } 19269 /* This fails on HP-UX 11.11. */ 19270 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 19271 { 19272 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 19273 mbstate_t state; 19274 wchar_t wc; 19275 19276 memset (&state, '\0', sizeof (mbstate_t)); 19277 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 19278 { 19279 input[1] = '\0'; 19280 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 19281 result |= 2; 19282 } 19283 found_some_locale = 1; 19284 } 19285 /* This fails on native Windows. */ 19286 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 19287 { 19288 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 19289 mbstate_t state; 19290 wchar_t wc; 19291 19292 memset (&state, '\0', sizeof (mbstate_t)); 19293 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 19294 { 19295 input[3] = '\0'; 19296 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 19297 result |= 4; 19298 } 19299 found_some_locale = 1; 19300 } 19301 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 19302 { 19303 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 19304 mbstate_t state; 19305 wchar_t wc; 19306 19307 memset (&state, '\0', sizeof (mbstate_t)); 19308 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 19309 { 19310 input[3] = '\0'; 19311 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 19312 result |= 8; 19313 } 19314 found_some_locale = 1; 19315 } 19316 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 19317 { 19318 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 19319 mbstate_t state; 19320 wchar_t wc; 19321 19322 memset (&state, '\0', sizeof (mbstate_t)); 19323 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 19324 { 19325 input[3] = '\0'; 19326 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 19327 result |= 16; 19328 } 19329 found_some_locale = 1; 19330 } 19331 return (found_some_locale ? result : 77); 19332} 19333_ACEOF 19334if ac_fn_c_try_run "$LINENO" 19335then : 19336 gl_cv_func_mbrtowc_retval=yes 19337else $as_nop 19338 if test $? != 77; then 19339 gl_cv_func_mbrtowc_retval=no 19340 fi 19341 19342fi 19343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19344 conftest.$ac_objext conftest.beam conftest.$ac_ext 19345fi 19346 19347 fi 19348 19349fi 19350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 19351printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; } 19352 19353 19354 19355 19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 19357printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 19358if test ${gl_cv_func_mbrtowc_nul_retval+y} 19359then : 19360 printf %s "(cached) " >&6 19361else $as_nop 19362 19363 case "$host_os" in 19364 # Guess no on Solaris 8 and 9. 19365 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 19366 # Guess yes otherwise. 19367 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 19368 esac 19369 if test $LOCALE_ZH_CN != none; then 19370 if test "$cross_compiling" = yes 19371then : 19372 : 19373else $as_nop 19374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19375/* end confdefs.h. */ 19376 19377#include <locale.h> 19378#include <string.h> 19379#include <wchar.h> 19380int main () 19381{ 19382 /* This fails on Solaris 8 and 9. */ 19383 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 19384 { 19385 mbstate_t state; 19386 wchar_t wc; 19387 19388 memset (&state, '\0', sizeof (mbstate_t)); 19389 if (mbrtowc (&wc, "", 1, &state) != 0) 19390 return 2; 19391 } 19392 return 0; 19393} 19394_ACEOF 19395if ac_fn_c_try_run "$LINENO" 19396then : 19397 gl_cv_func_mbrtowc_nul_retval=yes 19398else $as_nop 19399 gl_cv_func_mbrtowc_nul_retval=no 19400fi 19401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19402 conftest.$ac_objext conftest.beam conftest.$ac_ext 19403fi 19404 19405 fi 19406 19407fi 19408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 19409printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; } 19410 19411 19412 19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 19414printf %s "checking whether mbrtowc stores incomplete characters... " >&6; } 19415if test ${gl_cv_func_mbrtowc_stores_incomplete+y} 19416then : 19417 printf %s "(cached) " >&6 19418else $as_nop 19419 19420 case "$host_os" in 19421 # Guess yes on native Windows. 19422 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;; 19423 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;; 19424 esac 19425 case "$host_os" in 19426 mingw*) 19427 if test "$cross_compiling" = yes 19428then : 19429 : 19430else $as_nop 19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19432/* end confdefs.h. */ 19433 19434#include <locale.h> 19435#include <string.h> 19436#include <wchar.h> 19437int main () 19438{ 19439 int result = 0; 19440 if (setlocale (LC_ALL, "French_France.65001") != NULL) 19441 { 19442 wchar_t wc = (wchar_t) 0xBADFACE; 19443 mbstate_t state; 19444 19445 memset (&state, '\0', sizeof (mbstate_t)); 19446 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 19447 && wc != (wchar_t) 0xBADFACE) 19448 result |= 1; 19449 } 19450 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 19451 { 19452 wchar_t wc = (wchar_t) 0xBADFACE; 19453 mbstate_t state; 19454 19455 memset (&state, '\0', sizeof (mbstate_t)); 19456 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2) 19457 && wc != (wchar_t) 0xBADFACE) 19458 result |= 2; 19459 } 19460 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 19461 { 19462 wchar_t wc = (wchar_t) 0xBADFACE; 19463 mbstate_t state; 19464 19465 memset (&state, '\0', sizeof (mbstate_t)); 19466 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2) 19467 && wc != (wchar_t) 0xBADFACE) 19468 result |= 4; 19469 } 19470 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 19471 { 19472 wchar_t wc = (wchar_t) 0xBADFACE; 19473 mbstate_t state; 19474 19475 memset (&state, '\0', sizeof (mbstate_t)); 19476 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2) 19477 && wc != (wchar_t) 0xBADFACE) 19478 result |= 8; 19479 } 19480 return result; 19481} 19482_ACEOF 19483if ac_fn_c_try_run "$LINENO" 19484then : 19485 gl_cv_func_mbrtowc_stores_incomplete=no 19486else $as_nop 19487 gl_cv_func_mbrtowc_stores_incomplete=yes 19488fi 19489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19490 conftest.$ac_objext conftest.beam conftest.$ac_ext 19491fi 19492 19493 ;; 19494 *) 19495 19496 if test $LOCALE_FR_UTF8 != none; then 19497 if test "$cross_compiling" = yes 19498then : 19499 : 19500else $as_nop 19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503 19504#include <locale.h> 19505#include <string.h> 19506#include <wchar.h> 19507int main () 19508{ 19509 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 19510 { 19511 wchar_t wc = (wchar_t) 0xBADFACE; 19512 mbstate_t state; 19513 19514 memset (&state, '\0', sizeof (mbstate_t)); 19515 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 19516 && wc != (wchar_t) 0xBADFACE) 19517 return 1; 19518 } 19519 return 0; 19520} 19521_ACEOF 19522if ac_fn_c_try_run "$LINENO" 19523then : 19524 gl_cv_func_mbrtowc_stores_incomplete=no 19525else $as_nop 19526 gl_cv_func_mbrtowc_stores_incomplete=yes 19527fi 19528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19529 conftest.$ac_objext conftest.beam conftest.$ac_ext 19530fi 19531 19532 fi 19533 ;; 19534 esac 19535 19536fi 19537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 19538printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } 19539 19540 19541 19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 19543printf %s "checking whether mbrtowc works on empty input... " >&6; } 19544if test ${gl_cv_func_mbrtowc_empty_input+y} 19545then : 19546 printf %s "(cached) " >&6 19547else $as_nop 19548 19549 case "$host_os" in 19550 # Guess no on AIX and glibc systems. 19551 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; 19552 # Guess yes on native Windows. 19553 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 19554 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 19555 esac 19556 if test "$cross_compiling" = yes 19557then : 19558 : 19559else $as_nop 19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561/* end confdefs.h. */ 19562 19563 #include <wchar.h> 19564 static wchar_t wc; 19565 static mbstate_t mbs; 19566 int 19567 main (void) 19568 { 19569 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; 19570 } 19571_ACEOF 19572if ac_fn_c_try_run "$LINENO" 19573then : 19574 gl_cv_func_mbrtowc_empty_input=yes 19575else $as_nop 19576 gl_cv_func_mbrtowc_empty_input=no 19577fi 19578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19579 conftest.$ac_objext conftest.beam conftest.$ac_ext 19580fi 19581 19582 19583fi 19584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 19585printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; } 19586 19587 19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 19589printf %s "checking whether the C locale is free of encoding errors... " >&6; } 19590if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y} 19591then : 19592 printf %s "(cached) " >&6 19593else $as_nop 19594 19595 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" 19596 19597 if test "$cross_compiling" = yes 19598then : 19599 case "$host_os" in 19600 # Guess yes on native Windows. 19601 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; 19602 esac 19603 19604else $as_nop 19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19606/* end confdefs.h. */ 19607#include <limits.h> 19608 #include <locale.h> 19609 #include <wchar.h> 19610 19611int 19612main (void) 19613{ 19614 19615 int i; 19616 char *locale = setlocale (LC_ALL, "C"); 19617 if (! locale) 19618 return 2; 19619 for (i = CHAR_MIN; i <= CHAR_MAX; i++) 19620 { 19621 char c = i; 19622 wchar_t wc; 19623 mbstate_t mbs = { 0, }; 19624 size_t ss = mbrtowc (&wc, &c, 1, &mbs); 19625 if (1 < ss) 19626 return 3; 19627 } 19628 return 0; 19629 19630 ; 19631 return 0; 19632} 19633_ACEOF 19634if ac_fn_c_try_run "$LINENO" 19635then : 19636 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes 19637else $as_nop 19638 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no 19639fi 19640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19641 conftest.$ac_objext conftest.beam conftest.$ac_ext 19642fi 19643 19644 19645fi 19646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 19647printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } 19648 19649 case "$gl_cv_func_mbrtowc_null_arg1" in 19650 *yes) ;; 19651 *) 19652printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 19653 19654 REPLACE_MBRTOWC=1 19655 ;; 19656 esac 19657 case "$gl_cv_func_mbrtowc_null_arg2" in 19658 *yes) ;; 19659 *) 19660printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 19661 19662 REPLACE_MBRTOWC=1 19663 ;; 19664 esac 19665 case "$gl_cv_func_mbrtowc_retval" in 19666 *yes) ;; 19667 *) 19668printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 19669 19670 REPLACE_MBRTOWC=1 19671 ;; 19672 esac 19673 case "$gl_cv_func_mbrtowc_nul_retval" in 19674 *yes) ;; 19675 *) 19676printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 19677 19678 REPLACE_MBRTOWC=1 19679 ;; 19680 esac 19681 case "$gl_cv_func_mbrtowc_stores_incomplete" in 19682 *no) ;; 19683 *) 19684printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h 19685 19686 REPLACE_MBRTOWC=1 19687 ;; 19688 esac 19689 case "$gl_cv_func_mbrtowc_empty_input" in 19690 *yes) ;; 19691 *) 19692printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 19693 19694 REPLACE_MBRTOWC=1 19695 ;; 19696 esac 19697 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in 19698 *yes) ;; 19699 *) 19700printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h 19701 19702 REPLACE_MBRTOWC=1 19703 ;; 19704 esac 19705 fi 19706 fi 19707 if test $REPLACE_MBSTATE_T = 1; then 19708 case "$host_os" in 19709 mingw*) LIB_MBRTOWC= ;; 19710 *) 19711 19712 19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 19714printf %s "checking whether imported symbols can be declared weak... " >&6; } 19715if test ${gl_cv_have_weak+y} 19716then : 19717 printf %s "(cached) " >&6 19718else $as_nop 19719 gl_cv_have_weak=no 19720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19721/* end confdefs.h. */ 19722extern void xyzzy (); 19723#pragma weak xyzzy 19724int 19725main (void) 19726{ 19727xyzzy(); 19728 ; 19729 return 0; 19730} 19731_ACEOF 19732if ac_fn_c_try_link "$LINENO" 19733then : 19734 gl_cv_have_weak=maybe 19735fi 19736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19737 conftest$ac_exeext conftest.$ac_ext 19738 if test $gl_cv_have_weak = maybe; then 19739 if test "$cross_compiling" = yes 19740then : 19741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19742/* end confdefs.h. */ 19743#ifdef __ELF__ 19744 Extensible Linking Format 19745 #endif 19746 19747_ACEOF 19748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19749 $EGREP "Extensible Linking Format" >/dev/null 2>&1 19750then : 19751 gl_cv_have_weak="guessing yes" 19752else $as_nop 19753 gl_cv_have_weak="guessing no" 19754fi 19755rm -rf conftest* 19756 19757 19758else $as_nop 19759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19760/* end confdefs.h. */ 19761 19762#include <stdio.h> 19763#pragma weak fputs 19764int main () 19765{ 19766 return (fputs == NULL); 19767} 19768_ACEOF 19769if ac_fn_c_try_run "$LINENO" 19770then : 19771 gl_cv_have_weak=yes 19772else $as_nop 19773 gl_cv_have_weak=no 19774fi 19775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19776 conftest.$ac_objext conftest.beam conftest.$ac_ext 19777fi 19778 19779 fi 19780 case " $LDFLAGS " in 19781 *" -static "*) gl_cv_have_weak=no ;; 19782 esac 19783 case "$gl_cv_have_weak" in 19784 *yes) 19785 case "$host_os" in 19786 freebsd* | dragonfly* | midnightbsd*) 19787 : > conftest1.c 19788 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 19789 cat <<EOF > conftest2.c 19790#include <pthread.h> 19791#pragma weak pthread_mutexattr_gettype 19792int main () 19793{ 19794 return (pthread_mutexattr_gettype != NULL); 19795} 19796EOF 19797 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 19798 || gl_cv_have_weak=no 19799 rm -f conftest1.c libempty.so conftest2.c conftest 19800 ;; 19801 esac 19802 ;; 19803 esac 19804 19805fi 19806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 19807printf "%s\n" "$gl_cv_have_weak" >&6; } 19808 case "$gl_cv_have_weak" in 19809 *yes) 19810 19811printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 19812 19813 ;; 19814 esac 19815 19816 case "$gl_cv_have_weak" in 19817 *yes) LIB_MBRTOWC= ;; 19818 *) LIB_MBRTOWC="$LIBPTHREAD" ;; 19819 esac 19820 ;; 19821 esac 19822 else 19823 LIB_MBRTOWC= 19824 fi 19825 19826 19827 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 19828 19829 19830 19831 19832 19833 19834 19835 19836 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 19837 19838 if test $REPLACE_MBSTATE_T = 1; then 19839 19840 19841 19842 19843 19844 19845 19846 19847 gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext" 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext" 19858 19859 19860 19861 19862 CFLAG_VISIBILITY= 19863 HAVE_VISIBILITY=0 19864 if test -n "$GCC"; then 19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 19866printf %s "checking whether the -Werror option is usable... " >&6; } 19867if test ${gl_cv_cc_vis_werror+y} 19868then : 19869 printf %s "(cached) " >&6 19870else $as_nop 19871 gl_save_CFLAGS="$CFLAGS" 19872 CFLAGS="$CFLAGS -Werror" 19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19874/* end confdefs.h. */ 19875 19876int 19877main (void) 19878{ 19879 19880 ; 19881 return 0; 19882} 19883_ACEOF 19884if ac_fn_c_try_compile "$LINENO" 19885then : 19886 gl_cv_cc_vis_werror=yes 19887else $as_nop 19888 gl_cv_cc_vis_werror=no 19889fi 19890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19891 CFLAGS="$gl_save_CFLAGS" 19892 19893fi 19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 19895printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 19897printf %s "checking for simple visibility declarations... " >&6; } 19898if test ${gl_cv_cc_visibility+y} 19899then : 19900 printf %s "(cached) " >&6 19901else $as_nop 19902 gl_save_CFLAGS="$CFLAGS" 19903 CFLAGS="$CFLAGS -fvisibility=hidden" 19904 if test $gl_cv_cc_vis_werror = yes; then 19905 CFLAGS="$CFLAGS -Werror" 19906 fi 19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19908/* end confdefs.h. */ 19909extern __attribute__((__visibility__("hidden"))) int hiddenvar; 19910 extern __attribute__((__visibility__("default"))) int exportedvar; 19911 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 19912 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 19913 void dummyfunc (void); 19914 void dummyfunc (void) {} 19915 19916int 19917main (void) 19918{ 19919 19920 ; 19921 return 0; 19922} 19923_ACEOF 19924if ac_fn_c_try_compile "$LINENO" 19925then : 19926 gl_cv_cc_visibility=yes 19927else $as_nop 19928 gl_cv_cc_visibility=no 19929fi 19930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19931 CFLAGS="$gl_save_CFLAGS" 19932 19933fi 19934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 19935printf "%s\n" "$gl_cv_cc_visibility" >&6; } 19936 if test $gl_cv_cc_visibility = yes; then 19937 CFLAG_VISIBILITY="-fvisibility=hidden" 19938 HAVE_VISIBILITY=1 19939 fi 19940 fi 19941 19942 19943 19944printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 19945 19946 19947 19948 fi 19949 19950 19951 : 19952 19953 fi 19954 19955 19956 19957 19958 19959 GNULIB_MBRTOWC=1 19960 19961 19962 19963 19964 19965printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 19966 19967 19968 19969 19970 19971 19972 19973 19974 GNULIB_MBSCASECMP=1 19975 19976 19977 19978 19979 19980printf "%s\n" "#define GNULIB_TEST_MBSCASECMP 1" >>confdefs.h 19981 19982 19983 19984 19985 19986 19987 19988 19989 GNULIB_MBSCHR=1 19990 19991 19992 19993 19994 19995printf "%s\n" "#define GNULIB_TEST_MBSCHR 1" >>confdefs.h 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 if case "$host_os" in 20012 mingw*) true ;; 20013 *) test $ac_cv_func_mbsinit = yes ;; 20014 esac \ 20015 && test $ac_cv_func_mbrtowc = yes; then 20016 20017 20018 20019 20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 20021printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 20022if test ${gl_cv_func_mbrtowc_incomplete_state+y} 20023then : 20024 printf %s "(cached) " >&6 20025else $as_nop 20026 20027 case "$host_os" in 20028 # Guess no on AIX and OSF/1. 20029 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 20030 # Guess yes otherwise. 20031 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 20032 esac 20033 if test $LOCALE_JA != none; then 20034 if test "$cross_compiling" = yes 20035then : 20036 : 20037else $as_nop 20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20039/* end confdefs.h. */ 20040 20041#include <locale.h> 20042#include <string.h> 20043#include <wchar.h> 20044int main () 20045{ 20046 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 20047 { 20048 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 20049 mbstate_t state; 20050 wchar_t wc; 20051 20052 memset (&state, '\0', sizeof (mbstate_t)); 20053 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 20054 if (mbsinit (&state)) 20055 return 2; 20056 } 20057 return 0; 20058} 20059_ACEOF 20060if ac_fn_c_try_run "$LINENO" 20061then : 20062 gl_cv_func_mbrtowc_incomplete_state=yes 20063else $as_nop 20064 gl_cv_func_mbrtowc_incomplete_state=no 20065fi 20066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20067 conftest.$ac_objext conftest.beam conftest.$ac_ext 20068fi 20069 20070 else 20071 if test $LOCALE_FR_UTF8 != none; then 20072 if test "$cross_compiling" = yes 20073then : 20074 : 20075else $as_nop 20076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20077/* end confdefs.h. */ 20078 20079#include <locale.h> 20080#include <string.h> 20081#include <wchar.h> 20082int main () 20083{ 20084 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 20085 { 20086 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 20087 mbstate_t state; 20088 wchar_t wc; 20089 20090 memset (&state, '\0', sizeof (mbstate_t)); 20091 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 20092 if (mbsinit (&state)) 20093 return 2; 20094 } 20095 return 0; 20096} 20097_ACEOF 20098if ac_fn_c_try_run "$LINENO" 20099then : 20100 gl_cv_func_mbrtowc_incomplete_state=yes 20101else $as_nop 20102 gl_cv_func_mbrtowc_incomplete_state=no 20103fi 20104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20105 conftest.$ac_objext conftest.beam conftest.$ac_ext 20106fi 20107 20108 fi 20109 fi 20110 20111fi 20112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 20113printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 20114 20115 20116 20117 20118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 20119printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 20120if test ${gl_cv_func_mbrtowc_sanitycheck+y} 20121then : 20122 printf %s "(cached) " >&6 20123else $as_nop 20124 20125 case "$host_os" in 20126 # Guess no on Solaris 8. 20127 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 20128 # Guess yes otherwise. 20129 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 20130 esac 20131 if test $LOCALE_ZH_CN != none; then 20132 if test "$cross_compiling" = yes 20133then : 20134 : 20135else $as_nop 20136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138 20139#include <locale.h> 20140#include <stdlib.h> 20141#include <string.h> 20142#include <wchar.h> 20143int main () 20144{ 20145 /* This fails on Solaris 8: 20146 mbrtowc returns 2, and sets wc to 0x00F0. 20147 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 20148 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 20149 { 20150 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 20151 mbstate_t state; 20152 wchar_t wc; 20153 20154 memset (&state, '\0', sizeof (mbstate_t)); 20155 if (mbrtowc (&wc, input + 3, 6, &state) != 4 20156 && mbtowc (&wc, input + 3, 6) == 4) 20157 return 2; 20158 } 20159 return 0; 20160} 20161_ACEOF 20162if ac_fn_c_try_run "$LINENO" 20163then : 20164 gl_cv_func_mbrtowc_sanitycheck=yes 20165else $as_nop 20166 gl_cv_func_mbrtowc_sanitycheck=no 20167fi 20168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20169 conftest.$ac_objext conftest.beam conftest.$ac_ext 20170fi 20171 20172 fi 20173 20174fi 20175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 20176printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 20177 20178 REPLACE_MBSTATE_T=0 20179 case "$gl_cv_func_mbrtowc_incomplete_state" in 20180 *yes) ;; 20181 *) REPLACE_MBSTATE_T=1 ;; 20182 esac 20183 case "$gl_cv_func_mbrtowc_sanitycheck" in 20184 *yes) ;; 20185 *) REPLACE_MBSTATE_T=1 ;; 20186 esac 20187 else 20188 REPLACE_MBSTATE_T=1 20189 fi 20190 20191 20192 20193 if test $ac_cv_func_mbsinit = no; then 20194 HAVE_MBSINIT=0 20195 ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 20196 #include <wchar.h> 20197 20198" "$ac_c_undeclared_builtin_options" "CFLAGS" 20199if test "x$ac_cv_have_decl_mbsinit" = xyes 20200then : 20201 ac_have_decl=1 20202else $as_nop 20203 ac_have_decl=0 20204fi 20205printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h 20206 20207 if test $ac_cv_have_decl_mbsinit = yes; then 20208 REPLACE_MBSINIT=1 20209 fi 20210 else 20211 if test $REPLACE_MBSTATE_T = 1; then 20212 REPLACE_MBSINIT=1 20213 else 20214 case "$host_os" in 20215 mingw*) REPLACE_MBSINIT=1 ;; 20216 esac 20217 fi 20218 fi 20219 20220 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 20221 20222 20223 20224 20225 20226 20227 20228 20229 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 20230 20231 20232 : 20233 20234 fi 20235 20236 20237 20238 20239 20240 GNULIB_MBSINIT=1 20241 20242 20243 20244 20245 20246printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 20247 20248 20249 20250 20251 20252 20253 if test $ac_cv_func_mbslen = yes; then 20254 HAVE_MBSLEN=1 20255 else 20256 HAVE_MBSLEN=0 20257 fi 20258 20259 20260 20261 20262 20263 20264 GNULIB_MBSLEN=1 20265 20266 20267 20268 20269 20270printf "%s\n" "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h 20271 20272 20273 20274 20275 20276 20277 20278 20279 GNULIB_MBSNCASECMP=1 20280 20281 20282 20283 20284 20285printf "%s\n" "#define GNULIB_TEST_MBSNCASECMP 1" >>confdefs.h 20286 20287 20288 20289 20290 20291 20292 20293 20294 GNULIB_MBSSTR=1 20295 20296 20297 20298 20299 20300printf "%s\n" "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h 20301 20302 20303 20304 20305 20306 20307 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5 20309printf %s "checking whether mbswidth is declared in <wchar.h>... " >&6; } 20310if test ${ac_cv_have_decl_mbswidth+y} 20311then : 20312 printf %s "(cached) " >&6 20313else $as_nop 20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20315/* end confdefs.h. */ 20316#include <wchar.h> 20317 20318int 20319main (void) 20320{ 20321char *p = (char *) mbswidth; 20322 return !p; 20323 20324 ; 20325 return 0; 20326} 20327_ACEOF 20328if ac_fn_c_try_compile "$LINENO" 20329then : 20330 ac_cv_have_decl_mbswidth=yes 20331else $as_nop 20332 ac_cv_have_decl_mbswidth=no 20333fi 20334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20335fi 20336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5 20337printf "%s\n" "$ac_cv_have_decl_mbswidth" >&6; } 20338 if test $ac_cv_have_decl_mbswidth = yes; then 20339 ac_val=1 20340 else 20341 ac_val=0 20342 fi 20343 20344printf "%s\n" "#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val" >>confdefs.h 20345 20346 20347 20348 20349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 20350printf %s "checking for mbstate_t... " >&6; } 20351if test ${ac_cv_type_mbstate_t+y} 20352then : 20353 printf %s "(cached) " >&6 20354else $as_nop 20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20356/* end confdefs.h. */ 20357$ac_includes_default 20358 #include <wchar.h> 20359int 20360main (void) 20361{ 20362mbstate_t x; return sizeof x; 20363 ; 20364 return 0; 20365} 20366_ACEOF 20367if ac_fn_c_try_compile "$LINENO" 20368then : 20369 ac_cv_type_mbstate_t=yes 20370else $as_nop 20371 ac_cv_type_mbstate_t=no 20372fi 20373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20374fi 20375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 20376printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 20377 if test $ac_cv_type_mbstate_t = yes; then 20378 20379printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 20380 20381 else 20382 20383printf "%s\n" "#define mbstate_t int" >>confdefs.h 20384 20385 fi 20386 20387 20388 20389 20390 : 20391 20392 20393 if test $REPLACE_MEMCHR = 1; then 20394 20395 20396 20397 20398 20399 20400 20401 20402 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 20403 20404 20405 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 20406if test "x$ac_cv_header_bp_sym_h" = xyes 20407then : 20408 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h 20409 20410fi 20411 20412 20413 fi 20414 20415 20416 20417 20418 20419 GNULIB_MEMCHR=1 20420 20421 20422 20423 20424 20425printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 20426 20427 20428 20429 20430 20431 20432 20433 20434 if test $ac_cv_have_decl_memrchr = no; then 20435 HAVE_DECL_MEMRCHR=0 20436 fi 20437 20438 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 20439if test "x$ac_cv_func_memrchr" = xyes 20440then : 20441 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 20442 20443fi 20444 20445 20446 if test $ac_cv_func_memrchr = no; then 20447 20448 20449 20450 20451 20452 20453 20454 20455 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext" 20456 20457 : 20458 fi 20459 20460 20461 20462 20463 20464 GNULIB_MEMRCHR=1 20465 20466 20467 20468 20469 20470printf "%s\n" "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h 20471 20472 20473 20474 20475 20476 20477 20478 case "$host_os" in 20479 mingw* | pw*) 20480 REPLACE_OPEN=1 20481 ;; 20482 *) 20483 20484 if test "$gl_cv_macro_O_CLOEXEC" != yes; then 20485 REPLACE_OPEN=1 20486 fi 20487 20488 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 20490printf %s "checking whether open recognizes a trailing slash... " >&6; } 20491if test ${gl_cv_func_open_slash+y} 20492then : 20493 printf %s "(cached) " >&6 20494else $as_nop 20495 # Assume that if we have lstat, we can also check symlinks. 20496 if test $ac_cv_func_lstat = yes; then 20497 touch conftest.tmp 20498 ln -s conftest.tmp conftest.lnk 20499 fi 20500 if test "$cross_compiling" = yes 20501then : 20502 20503 case "$host_os" in 20504 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 20505 gl_cv_func_open_slash="guessing no" ;; 20506 *) 20507 gl_cv_func_open_slash="guessing yes" ;; 20508 esac 20509 20510else $as_nop 20511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20512/* end confdefs.h. */ 20513 20514#include <fcntl.h> 20515#if HAVE_UNISTD_H 20516# include <unistd.h> 20517#endif 20518 20519 20520$gl_mda_defines 20521 20522int main () 20523{ 20524 int result = 0; 20525#if HAVE_LSTAT 20526 if (open ("conftest.lnk/", O_RDONLY) != -1) 20527 result |= 1; 20528#endif 20529 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 20530 result |= 2; 20531 return result; 20532} 20533_ACEOF 20534if ac_fn_c_try_run "$LINENO" 20535then : 20536 gl_cv_func_open_slash=yes 20537else $as_nop 20538 gl_cv_func_open_slash=no 20539fi 20540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20541 conftest.$ac_objext conftest.beam conftest.$ac_ext 20542fi 20543 20544 rm -f conftest.sl conftest.tmp conftest.lnk 20545 20546fi 20547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 20548printf "%s\n" "$gl_cv_func_open_slash" >&6; } 20549 case "$gl_cv_func_open_slash" in 20550 *no) 20551 20552printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 20553 20554 ;; 20555 esac 20556 20557 case "$gl_cv_func_open_slash" in 20558 *no) 20559 REPLACE_OPEN=1 20560 ;; 20561 esac 20562 ;; 20563 esac 20564 20565 20566 20567 if test $REPLACE_OPEN = 1; then 20568 20569 20570 20571 20572 20573 20574 20575 20576 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" 20577 20578 20579 20580 : 20581 20582 fi 20583 20584 20585 20586 20587 20588 GNULIB_OPEN=1 20589 20590 20591 20592 20593 20594printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h 20595 20596 20597 20598 20599 20600# Check whether --with-included-regex was given. 20601if test ${with_included_regex+y} 20602then : 20603 withval=$with_included_regex; 20604fi 20605 20606 20607 case $with_included_regex in #( 20608 yes|no) ac_use_included_regex=$with_included_regex 20609 ;; 20610 '') 20611 # If the system regex support is good enough that it passes the 20612 # following run test, then default to *not* using the included regex.c. 20613 # If cross compiling, assume the test would fail and use the included 20614 # regex.c. 20615 20616 20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 20618printf %s "checking for working re_compile_pattern... " >&6; } 20619if test ${gl_cv_func_re_compile_pattern_working+y} 20620then : 20621 printf %s "(cached) " >&6 20622else $as_nop 20623 if test "$cross_compiling" = yes 20624then : 20625 case "$host_os" in 20626 # Guess no on native Windows. 20627 mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;; 20628 # Otherwise obey --enable-cross-guesses. 20629 *) gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;; 20630 esac 20631 20632else $as_nop 20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20634/* end confdefs.h. */ 20635#include <regex.h> 20636 20637 #include <locale.h> 20638 #include <limits.h> 20639 #include <string.h> 20640 20641 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM 20642 # include <signal.h> 20643 # include <unistd.h> 20644 #endif 20645 20646 #if HAVE_MALLOC_H 20647 # include <malloc.h> 20648 #endif 20649 20650 #ifdef M_CHECK_ACTION 20651 /* Exit with distinguishable exit code. */ 20652 static void sigabrt_no_core (int sig) { raise (SIGTERM); } 20653 #endif 20654 20655int 20656main (void) 20657{ 20658int result = 0; 20659 static struct re_pattern_buffer regex; 20660 unsigned char folded_chars[UCHAR_MAX + 1]; 20661 int i; 20662 const char *s; 20663 struct re_registers regs; 20664 20665 /* Some builds of glibc go into an infinite loop on this 20666 test. Use alarm to force death, and mallopt to avoid 20667 malloc recursion in diagnosing the corrupted heap. */ 20668#if HAVE_DECL_ALARM 20669 signal (SIGALRM, SIG_DFL); 20670 alarm (2); 20671#endif 20672#ifdef M_CHECK_ACTION 20673 signal (SIGABRT, sigabrt_no_core); 20674 mallopt (M_CHECK_ACTION, 2); 20675#endif 20676 20677 if (setlocale (LC_ALL, "en_US.UTF-8")) 20678 { 20679 { 20680 /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html 20681 This test needs valgrind to catch the bug on Debian 20682 GNU/Linux 3.1 x86, but it might catch the bug better 20683 on other platforms and it shouldn't hurt to try the 20684 test here. */ 20685 static char const pat[] = "insert into"; 20686 static char const data[] = 20687 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; 20688 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE 20689 | RE_ICASE); 20690 memset (®ex, 0, sizeof regex); 20691 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 20692 if (s) 20693 result |= 1; 20694 else 20695 { 20696 if (re_search (®ex, data, sizeof data - 1, 20697 0, sizeof data - 1, ®s) 20698 != -1) 20699 result |= 1; 20700 regfree (®ex); 20701 } 20702 } 20703 20704 { 20705 /* This test is from glibc bug 15078. 20706 The test case is from Andreas Schwab in 20707 <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>. 20708 */ 20709 static char const pat[] = "[^x]x"; 20710 static char const data[] = 20711 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */ 20712 "\xe1\x80\x80" 20713 "\xe1\x80\xbb" 20714 "\xe1\x80\xbd" 20715 "\xe1\x80\x94" 20716 "\xe1\x80\xba" 20717 "\xe1\x80\xaf" 20718 "\xe1\x80\x95" 20719 "\xe1\x80\xba" 20720 "x"; 20721 re_set_syntax (0); 20722 memset (®ex, 0, sizeof regex); 20723 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 20724 if (s) 20725 result |= 1; 20726 else 20727 { 20728 i = re_search (®ex, data, sizeof data - 1, 20729 0, sizeof data - 1, 0); 20730 if (i != 0 && i != 21) 20731 result |= 1; 20732 regfree (®ex); 20733 } 20734 } 20735 20736 if (! setlocale (LC_ALL, "C")) 20737 return 1; 20738 } 20739 20740 /* This test is from glibc bug 3957, reported by Andrew Mackey. */ 20741 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); 20742 memset (®ex, 0, sizeof regex); 20743 s = re_compile_pattern ("a[^x]b", 6, ®ex); 20744 if (s) 20745 result |= 2; 20746 else 20747 { 20748 /* This should fail, but succeeds for glibc-2.5. */ 20749 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) 20750 result |= 2; 20751 regfree (®ex); 20752 } 20753 20754 /* This regular expression is from Spencer ere test number 75 20755 in grep-2.3. */ 20756 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 20757 memset (®ex, 0, sizeof regex); 20758 for (i = 0; i <= UCHAR_MAX; i++) 20759 folded_chars[i] = i; 20760 regex.translate = folded_chars; 20761 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex); 20762 /* This should fail with _Invalid character class name_ error. */ 20763 if (!s) 20764 { 20765 result |= 4; 20766 regfree (®ex); 20767 } 20768 20769 /* Ensure that [b-a] is diagnosed as invalid, when 20770 using RE_NO_EMPTY_RANGES. */ 20771 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES); 20772 memset (®ex, 0, sizeof regex); 20773 s = re_compile_pattern ("a[b-a]", 6, ®ex); 20774 if (s == 0) 20775 { 20776 result |= 8; 20777 regfree (®ex); 20778 } 20779 20780 /* This should succeed, but does not for glibc-2.1.3. */ 20781 memset (®ex, 0, sizeof regex); 20782 s = re_compile_pattern ("{1", 2, ®ex); 20783 if (s) 20784 result |= 8; 20785 else 20786 regfree (®ex); 20787 20788 /* The following example is derived from a problem report 20789 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ 20790 memset (®ex, 0, sizeof regex); 20791 s = re_compile_pattern ("[an\371]*n", 7, ®ex); 20792 if (s) 20793 result |= 8; 20794 else 20795 { 20796 /* This should match, but does not for glibc-2.2.1. */ 20797 if (re_match (®ex, "an", 2, 0, ®s) != 2) 20798 result |= 8; 20799 else 20800 { 20801 free (regs.start); 20802 free (regs.end); 20803 } 20804 regfree (®ex); 20805 } 20806 20807 memset (®ex, 0, sizeof regex); 20808 s = re_compile_pattern ("x", 1, ®ex); 20809 if (s) 20810 result |= 8; 20811 else 20812 { 20813 /* glibc-2.2.93 does not work with a negative RANGE argument. */ 20814 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) 20815 result |= 8; 20816 else 20817 { 20818 free (regs.start); 20819 free (regs.end); 20820 } 20821 regfree (®ex); 20822 } 20823 20824 /* The version of regex.c in older versions of gnulib 20825 ignored RE_ICASE. Detect that problem too. */ 20826 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); 20827 memset (®ex, 0, sizeof regex); 20828 s = re_compile_pattern ("x", 1, ®ex); 20829 if (s) 20830 result |= 16; 20831 else 20832 { 20833 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) 20834 result |= 16; 20835 else 20836 { 20837 free (regs.start); 20838 free (regs.end); 20839 } 20840 regfree (®ex); 20841 } 20842 20843 /* Catch a bug reported by Vin Shelton in 20844 https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html 20845 */ 20846 re_set_syntax (RE_SYNTAX_POSIX_BASIC 20847 & ~RE_CONTEXT_INVALID_DUP 20848 & ~RE_NO_EMPTY_RANGES); 20849 memset (®ex, 0, sizeof regex); 20850 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex); 20851 if (s) 20852 result |= 32; 20853 else 20854 regfree (®ex); 20855 20856 /* REG_STARTEND was added to glibc on 2004-01-15. 20857 Reject older versions. */ 20858 if (! REG_STARTEND) 20859 result |= 64; 20860 20861 /* Matching with the compiled form of this regexp would provoke 20862 an assertion failure prior to glibc-2.28: 20863 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed 20864 With glibc-2.28, compilation fails and reports the invalid 20865 back reference. */ 20866 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 20867 memset (®ex, 0, sizeof regex); 20868 s = re_compile_pattern ("0|()0|\\1|0", 10, ®ex); 20869 if (!s) 20870 result |= 64; 20871 else 20872 { 20873 if (strcmp (s, "Invalid back reference")) 20874 result |= 64; 20875 regfree (®ex); 20876 } 20877 20878#if 0 20879 /* It would be nice to reject hosts whose regoff_t values are too 20880 narrow (including glibc on hosts with 64-bit ptrdiff_t and 20881 32-bit int), but we should wait until glibc implements this 20882 feature. Otherwise, support for equivalence classes and 20883 multibyte collation symbols would always be broken except 20884 when compiling --without-included-regex. */ 20885 if (sizeof (regoff_t) < sizeof (ptrdiff_t) 20886 || sizeof (regoff_t) < sizeof (ssize_t)) 20887 result |= 64; 20888#endif 20889 20890 return result; 20891 20892 ; 20893 return 0; 20894} 20895_ACEOF 20896if ac_fn_c_try_run "$LINENO" 20897then : 20898 gl_cv_func_re_compile_pattern_working=yes 20899else $as_nop 20900 gl_cv_func_re_compile_pattern_working=no 20901fi 20902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20903 conftest.$ac_objext conftest.beam conftest.$ac_ext 20904fi 20905 20906 20907fi 20908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 20909printf "%s\n" "$gl_cv_func_re_compile_pattern_working" >&6; } 20910 case "$gl_cv_func_re_compile_pattern_working" in #( 20911 *yes) ac_use_included_regex=no;; #( 20912 *no) ac_use_included_regex=yes;; 20913 esac 20914 ;; 20915 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 20916 ;; 20917 esac 20918 20919 if test $ac_use_included_regex = yes; then 20920 20921printf "%s\n" "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h 20922 20923 20924printf "%s\n" "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h 20925 20926 20927printf "%s\n" "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h 20928 20929 20930printf "%s\n" "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h 20931 20932 20933printf "%s\n" "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h 20934 20935 20936printf "%s\n" "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h 20937 20938 20939printf "%s\n" "#define re_search rpl_re_search" >>confdefs.h 20940 20941 20942printf "%s\n" "#define re_search_2 rpl_re_search_2" >>confdefs.h 20943 20944 20945printf "%s\n" "#define re_match rpl_re_match" >>confdefs.h 20946 20947 20948printf "%s\n" "#define re_match_2 rpl_re_match_2" >>confdefs.h 20949 20950 20951printf "%s\n" "#define re_set_registers rpl_re_set_registers" >>confdefs.h 20952 20953 20954printf "%s\n" "#define re_comp rpl_re_comp" >>confdefs.h 20955 20956 20957printf "%s\n" "#define re_exec rpl_re_exec" >>confdefs.h 20958 20959 20960printf "%s\n" "#define regcomp rpl_regcomp" >>confdefs.h 20961 20962 20963printf "%s\n" "#define regexec rpl_regexec" >>confdefs.h 20964 20965 20966printf "%s\n" "#define regerror rpl_regerror" >>confdefs.h 20967 20968 20969printf "%s\n" "#define regfree rpl_regfree" >>confdefs.h 20970 20971 fi 20972 20973 if test $ac_use_included_regex = yes; then 20974 20975 20976 20977 20978 20979 20980 20981 20982 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext" 20983 20984 20985 20986 20987 20988 20989 20990 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 20991if test "x$ac_cv_header_libintl_h" = xyes 20992then : 20993 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h 20994 20995fi 20996 20997 20998 ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h> 20999" "$ac_c_undeclared_builtin_options" "CFLAGS" 21000if test "x$ac_cv_have_decl_isblank" = xyes 21001then : 21002 ac_have_decl=1 21003else $as_nop 21004 ac_have_decl=0 21005fi 21006printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h 21007 21008 21009 fi 21010 21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 21012printf %s "checking for ssize_t... " >&6; } 21013if test ${gt_cv_ssize_t+y} 21014then : 21015 printf %s "(cached) " >&6 21016else $as_nop 21017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21018/* end confdefs.h. */ 21019#include <sys/types.h> 21020int 21021main (void) 21022{ 21023int x = sizeof (ssize_t *) + sizeof (ssize_t); 21024 return !x; 21025 ; 21026 return 0; 21027} 21028_ACEOF 21029if ac_fn_c_try_compile "$LINENO" 21030then : 21031 gt_cv_ssize_t=yes 21032else $as_nop 21033 gt_cv_ssize_t=no 21034fi 21035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21036fi 21037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 21038printf "%s\n" "$gt_cv_ssize_t" >&6; } 21039 if test $gt_cv_ssize_t = no; then 21040 21041printf "%s\n" "#define ssize_t int" >>confdefs.h 21042 21043 fi 21044 21045 21046 STDARG_H='' 21047 NEXT_STDARG_H='<stdarg.h>' 21048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 21049printf %s "checking for va_copy... " >&6; } 21050if test ${gl_cv_func_va_copy+y} 21051then : 21052 printf %s "(cached) " >&6 21053else $as_nop 21054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21055/* end confdefs.h. */ 21056#include <stdarg.h> 21057int 21058main (void) 21059{ 21060 21061#ifndef va_copy 21062void (*func) (va_list, va_list) = va_copy; 21063#endif 21064 21065 ; 21066 return 0; 21067} 21068_ACEOF 21069if ac_fn_c_try_compile "$LINENO" 21070then : 21071 gl_cv_func_va_copy=yes 21072else $as_nop 21073 gl_cv_func_va_copy=no 21074fi 21075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21076 21077fi 21078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 21079printf "%s\n" "$gl_cv_func_va_copy" >&6; } 21080 if test $gl_cv_func_va_copy = no; then 21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21082/* end confdefs.h. */ 21083#if defined _AIX && !defined __GNUC__ 21084 AIX vaccine 21085 #endif 21086 21087_ACEOF 21088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21089 $EGREP "vaccine" >/dev/null 2>&1 21090then : 21091 gl_aixcc=yes 21092else $as_nop 21093 gl_aixcc=no 21094fi 21095rm -rf conftest* 21096 21097 if test $gl_aixcc = yes; then 21098 STDARG_H=stdarg.h 21099 21100 21101 21102 21103 21104 21105 21106 21107 if test $gl_cv_have_include_next = yes; then 21108 gl_cv_next_stdarg_h='<'stdarg.h'>' 21109 else 21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 21111printf %s "checking absolute name of <stdarg.h>... " >&6; } 21112if test ${gl_cv_next_stdarg_h+y} 21113then : 21114 printf %s "(cached) " >&6 21115else $as_nop 21116 21117 21118 21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21120/* end confdefs.h. */ 21121#include <stdarg.h> 21122_ACEOF 21123 case "$host_os" in 21124 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21125 *) gl_absname_cpp="$ac_cpp" ;; 21126 esac 21127 21128 case "$host_os" in 21129 mingw*) 21130 gl_dirsep_regex='[/\\]' 21131 ;; 21132 *) 21133 gl_dirsep_regex='\/' 21134 ;; 21135 esac 21136 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21137 gl_header_literal_regex=`echo 'stdarg.h' \ 21138 | sed -e "$gl_make_literal_regex_sed"` 21139 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21141 s|^/[^/]|//&| 21142 p 21143 q 21144 }' 21145 21146 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21147 sed -n "$gl_absolute_header_sed"` 21148 21149 gl_header=$gl_cv_absolute_stdarg_h 21150 gl_cv_next_stdarg_h='"'$gl_header'"' 21151 21152 21153fi 21154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 21155printf "%s\n" "$gl_cv_next_stdarg_h" >&6; } 21156 fi 21157 NEXT_STDARG_H=$gl_cv_next_stdarg_h 21158 21159 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21161 gl_next_as_first_directive='<'stdarg.h'>' 21162 else 21163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21164 gl_next_as_first_directive=$gl_cv_next_stdarg_h 21165 fi 21166 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 21167 21168 21169 21170 21171 if test "$gl_cv_next_stdarg_h" = '""'; then 21172 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 21173 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 21174 fi 21175 else 21176 21177 21178 exec 9>&6 6>/dev/null 21179 21180 if test ${gl_cv_func___va_copy+y} 21181then : 21182 printf %s "(cached) " >&6 21183else $as_nop 21184 21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21186/* end confdefs.h. */ 21187#include <stdarg.h> 21188int 21189main (void) 21190{ 21191 21192#ifndef __va_copy 21193error, bail out 21194#endif 21195 21196 ; 21197 return 0; 21198} 21199_ACEOF 21200if ac_fn_c_try_compile "$LINENO" 21201then : 21202 gl_cv_func___va_copy=yes 21203else $as_nop 21204 gl_cv_func___va_copy=no 21205fi 21206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21207fi 21208 21209 21210 exec 6>&9 9>&- 21211 21212 21213 if test $gl_cv_func___va_copy = yes; then 21214 21215printf "%s\n" "#define va_copy __va_copy" >>confdefs.h 21216 21217 else 21218 21219 21220printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h 21221 21222 fi 21223 fi 21224 fi 21225 21226 if test -n "$STDARG_H"; then 21227 GL_GENERATE_STDARG_H_TRUE= 21228 GL_GENERATE_STDARG_H_FALSE='#' 21229else 21230 GL_GENERATE_STDARG_H_TRUE='#' 21231 GL_GENERATE_STDARG_H_FALSE= 21232fi 21233 21234 21235 21236 21237 21238 21239 21240 if test "$ac_cv_header_stdbool_h" = yes; then 21241 case "$host_os" in 21242 solaris*) 21243 if test -z "$GCC"; then 21244 STDBOOL_H='stdbool.h' 21245 else 21246 STDBOOL_H='' 21247 fi 21248 ;; 21249 *) 21250 STDBOOL_H='' 21251 ;; 21252 esac 21253 else 21254 STDBOOL_H='stdbool.h' 21255 fi 21256 21257 if test -n "$STDBOOL_H"; then 21258 GL_GENERATE_STDBOOL_H_TRUE= 21259 GL_GENERATE_STDBOOL_H_FALSE='#' 21260else 21261 GL_GENERATE_STDBOOL_H_TRUE='#' 21262 GL_GENERATE_STDBOOL_H_FALSE= 21263fi 21264 21265 21266 if test "$ac_cv_type__Bool" = yes; then 21267 HAVE__BOOL=1 21268 else 21269 HAVE__BOOL=0 21270 fi 21271 21272 21273 21274 21275 21276 21277 21278 21279 STDDEF_H= 21280 21281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 21282printf %s "checking for good max_align_t... " >&6; } 21283if test ${gl_cv_type_max_align_t+y} 21284then : 21285 printf %s "(cached) " >&6 21286else $as_nop 21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21288/* end confdefs.h. */ 21289#include <stddef.h> 21290 unsigned int s = sizeof (max_align_t); 21291 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ 21292 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 21293 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 21294 #endif 21295 typedef struct { char a; max_align_t b; } max_helper; 21296 typedef struct { char a; long b; } long_helper; 21297 typedef struct { char a; double b; } double_helper; 21298 typedef struct { char a; long double b; } long_double_helper; 21299 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1]; 21300 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1]; 21301 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; 21302 21303int 21304main (void) 21305{ 21306 21307 ; 21308 return 0; 21309} 21310_ACEOF 21311if ac_fn_c_try_compile "$LINENO" 21312then : 21313 gl_cv_type_max_align_t=yes 21314else $as_nop 21315 gl_cv_type_max_align_t=no 21316fi 21317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21318 21319fi 21320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 21321printf "%s\n" "$gl_cv_type_max_align_t" >&6; } 21322 if test $gl_cv_type_max_align_t = no; then 21323 HAVE_MAX_ALIGN_T=0 21324 STDDEF_H=stddef.h 21325 fi 21326 21327 if test $gt_cv_c_wchar_t = no; then 21328 HAVE_WCHAR_T=0 21329 STDDEF_H=stddef.h 21330 fi 21331 21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 21333printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } 21334if test ${gl_cv_decl_null_works+y} 21335then : 21336 printf %s "(cached) " >&6 21337else $as_nop 21338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21339/* end confdefs.h. */ 21340#include <stddef.h> 21341 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 21342 21343int 21344main (void) 21345{ 21346 21347 ; 21348 return 0; 21349} 21350_ACEOF 21351if ac_fn_c_try_compile "$LINENO" 21352then : 21353 gl_cv_decl_null_works=yes 21354else $as_nop 21355 gl_cv_decl_null_works=no 21356fi 21357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21358fi 21359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 21360printf "%s\n" "$gl_cv_decl_null_works" >&6; } 21361 if test $gl_cv_decl_null_works = no; then 21362 REPLACE_NULL=1 21363 STDDEF_H=stddef.h 21364 fi 21365 21366 21367 if test -n "$STDDEF_H"; then 21368 GL_GENERATE_STDDEF_H_TRUE= 21369 GL_GENERATE_STDDEF_H_FALSE='#' 21370else 21371 GL_GENERATE_STDDEF_H_TRUE='#' 21372 GL_GENERATE_STDDEF_H_FALSE= 21373fi 21374 21375 if test -n "$STDDEF_H"; then 21376 21377 21378 21379 21380 21381 21382 21383 21384 if test $gl_cv_have_include_next = yes; then 21385 gl_cv_next_stddef_h='<'stddef.h'>' 21386 else 21387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 21388printf %s "checking absolute name of <stddef.h>... " >&6; } 21389if test ${gl_cv_next_stddef_h+y} 21390then : 21391 printf %s "(cached) " >&6 21392else $as_nop 21393 21394 21395 21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21397/* end confdefs.h. */ 21398#include <stddef.h> 21399_ACEOF 21400 case "$host_os" in 21401 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21402 *) gl_absname_cpp="$ac_cpp" ;; 21403 esac 21404 21405 case "$host_os" in 21406 mingw*) 21407 gl_dirsep_regex='[/\\]' 21408 ;; 21409 *) 21410 gl_dirsep_regex='\/' 21411 ;; 21412 esac 21413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21414 gl_header_literal_regex=`echo 'stddef.h' \ 21415 | sed -e "$gl_make_literal_regex_sed"` 21416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21418 s|^/[^/]|//&| 21419 p 21420 q 21421 }' 21422 21423 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21424 sed -n "$gl_absolute_header_sed"` 21425 21426 gl_header=$gl_cv_absolute_stddef_h 21427 gl_cv_next_stddef_h='"'$gl_header'"' 21428 21429 21430fi 21431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 21432printf "%s\n" "$gl_cv_next_stddef_h" >&6; } 21433 fi 21434 NEXT_STDDEF_H=$gl_cv_next_stddef_h 21435 21436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21438 gl_next_as_first_directive='<'stddef.h'>' 21439 else 21440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21441 gl_next_as_first_directive=$gl_cv_next_stddef_h 21442 fi 21443 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 21444 21445 21446 21447 21448 fi 21449 21450 21451 21452 21453 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 if test $gl_cv_have_include_next = yes; then 21465 gl_cv_next_stdio_h='<'stdio.h'>' 21466 else 21467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 21468printf %s "checking absolute name of <stdio.h>... " >&6; } 21469if test ${gl_cv_next_stdio_h+y} 21470then : 21471 printf %s "(cached) " >&6 21472else $as_nop 21473 21474 21475 21476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21477/* end confdefs.h. */ 21478#include <stdio.h> 21479_ACEOF 21480 case "$host_os" in 21481 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21482 *) gl_absname_cpp="$ac_cpp" ;; 21483 esac 21484 21485 case "$host_os" in 21486 mingw*) 21487 gl_dirsep_regex='[/\\]' 21488 ;; 21489 *) 21490 gl_dirsep_regex='\/' 21491 ;; 21492 esac 21493 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21494 gl_header_literal_regex=`echo 'stdio.h' \ 21495 | sed -e "$gl_make_literal_regex_sed"` 21496 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21497 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21498 s|^/[^/]|//&| 21499 p 21500 q 21501 }' 21502 21503 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21504 sed -n "$gl_absolute_header_sed"` 21505 21506 gl_header=$gl_cv_absolute_stdio_h 21507 gl_cv_next_stdio_h='"'$gl_header'"' 21508 21509 21510fi 21511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 21512printf "%s\n" "$gl_cv_next_stdio_h" >&6; } 21513 fi 21514 NEXT_STDIO_H=$gl_cv_next_stdio_h 21515 21516 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21518 gl_next_as_first_directive='<'stdio.h'>' 21519 else 21520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21521 gl_next_as_first_directive=$gl_cv_next_stdio_h 21522 fi 21523 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 21524 21525 21526 21527 21528 21529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 21530printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } 21531if test ${gl_cv_func_printf_attribute_flavor+y} 21532then : 21533 printf %s "(cached) " >&6 21534else $as_nop 21535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21536/* end confdefs.h. */ 21537 21538 #define __STDC_FORMAT_MACROS 1 21539 #include <stdio.h> 21540 #include <inttypes.h> 21541 /* For non-mingw systems, compilation will trivially succeed. 21542 For mingw, compilation will succeed for older mingw (system 21543 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 21544 #if (defined _WIN32 && ! defined __CYGWIN__) && \ 21545 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 21546 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 21547 #endif 21548 21549int 21550main (void) 21551{ 21552 21553 ; 21554 return 0; 21555} 21556_ACEOF 21557if ac_fn_c_try_compile "$LINENO" 21558then : 21559 gl_cv_func_printf_attribute_flavor=system 21560else $as_nop 21561 gl_cv_func_printf_attribute_flavor=gnu 21562fi 21563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21564fi 21565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 21566printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } 21567 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 21568 21569printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 21570 21571 fi 21572 21573 GNULIB_FSCANF=1 21574 21575 21576printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h 21577 21578 21579 GNULIB_SCANF=1 21580 21581 21582printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h 21583 21584 21585 GNULIB_FGETC=1 21586 GNULIB_GETC=1 21587 GNULIB_GETCHAR=1 21588 GNULIB_FGETS=1 21589 GNULIB_FREAD=1 21590 21591 21592 GNULIB_FPRINTF=1 21593 GNULIB_PRINTF=1 21594 GNULIB_VFPRINTF=1 21595 GNULIB_VPRINTF=1 21596 GNULIB_FPUTC=1 21597 GNULIB_PUTC=1 21598 GNULIB_PUTCHAR=1 21599 GNULIB_FPUTS=1 21600 GNULIB_PUTS=1 21601 GNULIB_FWRITE=1 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 if test $ac_cv_have_decl_fcloseall = no; then 21613 HAVE_DECL_FCLOSEALL=0 21614 fi 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 if test $gl_cv_have_include_next = yes; then 21627 gl_cv_next_stdlib_h='<'stdlib.h'>' 21628 else 21629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 21630printf %s "checking absolute name of <stdlib.h>... " >&6; } 21631if test ${gl_cv_next_stdlib_h+y} 21632then : 21633 printf %s "(cached) " >&6 21634else $as_nop 21635 21636 21637 21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21639/* end confdefs.h. */ 21640#include <stdlib.h> 21641_ACEOF 21642 case "$host_os" in 21643 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21644 *) gl_absname_cpp="$ac_cpp" ;; 21645 esac 21646 21647 case "$host_os" in 21648 mingw*) 21649 gl_dirsep_regex='[/\\]' 21650 ;; 21651 *) 21652 gl_dirsep_regex='\/' 21653 ;; 21654 esac 21655 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21656 gl_header_literal_regex=`echo 'stdlib.h' \ 21657 | sed -e "$gl_make_literal_regex_sed"` 21658 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21660 s|^/[^/]|//&| 21661 p 21662 q 21663 }' 21664 21665 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21666 sed -n "$gl_absolute_header_sed"` 21667 21668 gl_header=$gl_cv_absolute_stdlib_h 21669 gl_cv_next_stdlib_h='"'$gl_header'"' 21670 21671 21672fi 21673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 21674printf "%s\n" "$gl_cv_next_stdlib_h" >&6; } 21675 fi 21676 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 21677 21678 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21680 gl_next_as_first_directive='<'stdlib.h'>' 21681 else 21682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21683 gl_next_as_first_directive=$gl_cv_next_stdlib_h 21684 fi 21685 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 if test $ac_cv_have_decl_ecvt = no; then 21699 HAVE_DECL_ECVT=0 21700 fi 21701 21702 if test $ac_cv_have_decl_fcvt = no; then 21703 HAVE_DECL_FCVT=0 21704 fi 21705 21706 if test $ac_cv_have_decl_gcvt = no; then 21707 HAVE_DECL_GCVT=0 21708 fi 21709 21710 21711 21712 21713 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 21714if test "x$ac_cv_func_strcasecmp" = xyes 21715then : 21716 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 21717 21718fi 21719 21720 if test $ac_cv_func_strcasecmp = no; then 21721 HAVE_STRCASECMP=0 21722 fi 21723 21724 21725 21726 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 21727if test "x$ac_cv_func_strncasecmp" = xyes 21728then : 21729 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 21730 21731fi 21732 21733 if test $ac_cv_func_strncasecmp = yes; then 21734 HAVE_STRNCASECMP=1 21735 else 21736 HAVE_STRNCASECMP=0 21737 fi 21738 ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21739if test "x$ac_cv_have_decl_strncasecmp" = xyes 21740then : 21741 ac_have_decl=1 21742else $as_nop 21743 ac_have_decl=0 21744fi 21745printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h 21746 21747 if test $ac_cv_have_decl_strncasecmp = no; then 21748 HAVE_DECL_STRNCASECMP=0 21749 fi 21750 21751 21752 if test $HAVE_STRCASECMP = 0; then 21753 21754 21755 21756 21757 21758 21759 21760 21761 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext" 21762 21763 21764 : 21765 21766 fi 21767 if test $HAVE_STRNCASECMP = 0; then 21768 21769 21770 21771 21772 21773 21774 21775 21776 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext" 21777 21778 21779 : 21780 21781 fi 21782 21783 21784 if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then 21785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5 21786printf %s "checking whether strcasestr works in linear time... " >&6; } 21787if test ${gl_cv_func_strcasestr_linear+y} 21788then : 21789 printf %s "(cached) " >&6 21790else $as_nop 21791 if test "$cross_compiling" = yes 21792then : 21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21794/* end confdefs.h. */ 21795 21796#include <features.h> 21797#ifdef __GNU_LIBRARY__ 21798 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 21799 && !defined __UCLIBC__ 21800 Lucky user 21801 #endif 21802#endif 21803#ifdef __CYGWIN__ 21804 #include <cygwin/version.h> 21805 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 21806 Lucky user 21807 #endif 21808#endif 21809 21810_ACEOF 21811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21812 $EGREP "Lucky user" >/dev/null 2>&1 21813then : 21814 gl_cv_func_strcasestr_linear="guessing yes" 21815else $as_nop 21816 gl_cv_func_strcasestr_linear="$gl_cross_guess_normal" 21817fi 21818rm -rf conftest* 21819 21820 21821else $as_nop 21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21823/* end confdefs.h. */ 21824 21825#include <signal.h> /* for signal */ 21826#include <string.h> /* for strcasestr */ 21827#include <stdlib.h> /* for malloc */ 21828#include <unistd.h> /* for alarm */ 21829static void quit (int sig) { _exit (sig + 128); } 21830 21831int 21832main (void) 21833{ 21834 21835 int result = 0; 21836 size_t m = 1000000; 21837 char *haystack = (char *) malloc (2 * m + 2); 21838 char *needle = (char *) malloc (m + 2); 21839 /* Failure to compile this test due to missing alarm is okay, 21840 since all such platforms (mingw) also lack strcasestr. */ 21841 signal (SIGALRM, quit); 21842 alarm (5); 21843 /* Check for quadratic performance. */ 21844 if (haystack && needle) 21845 { 21846 memset (haystack, 'A', 2 * m); 21847 haystack[2 * m] = 'B'; 21848 haystack[2 * m + 1] = 0; 21849 memset (needle, 'A', m); 21850 needle[m] = 'B'; 21851 needle[m + 1] = 0; 21852 if (!strcasestr (haystack, needle)) 21853 result |= 1; 21854 } 21855 /* Free allocated memory, in case some sanitizer is watching. */ 21856 free (haystack); 21857 free (needle); 21858 return result; 21859 21860 ; 21861 return 0; 21862} 21863_ACEOF 21864if ac_fn_c_try_run "$LINENO" 21865then : 21866 gl_cv_func_strcasestr_linear=yes 21867else $as_nop 21868 gl_cv_func_strcasestr_linear=no 21869fi 21870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21871 conftest.$ac_objext conftest.beam conftest.$ac_ext 21872fi 21873 21874 21875fi 21876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5 21877printf "%s\n" "$gl_cv_func_strcasestr_linear" >&6; } 21878 case "$gl_cv_func_strcasestr_linear" in 21879 *yes) ;; 21880 *) 21881 REPLACE_STRCASESTR=1 21882 ;; 21883 esac 21884 fi 21885 21886 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then 21887 21888 21889 21890 21891 21892 21893 21894 21895 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext" 21896 21897 21898 : 21899 21900 fi 21901 21902 21903 21904 21905 21906 21907 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 21908if test "x$ac_cv_func_strcasestr" = xyes 21909then : 21910 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 21911 21912fi 21913 21914 if test $ac_cv_func_strcasestr = no; then 21915 HAVE_STRCASESTR=0 21916 else 21917 if test $REPLACE_MEMCHR = 1; then 21918 REPLACE_STRCASESTR=1 21919 else 21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5 21921printf %s "checking whether strcasestr works... " >&6; } 21922if test ${gl_cv_func_strcasestr_works_always+y} 21923then : 21924 printf %s "(cached) " >&6 21925else $as_nop 21926 if test "$cross_compiling" = yes 21927then : 21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21929/* end confdefs.h. */ 21930 21931#ifdef __GNU_LIBRARY__ 21932 #include <features.h> 21933 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 21934 || defined __UCLIBC__ 21935 Lucky user 21936 #endif 21937#elif defined __CYGWIN__ 21938 #include <cygwin/version.h> 21939 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 21940 Lucky user 21941 #endif 21942#else 21943 Lucky user 21944#endif 21945 21946_ACEOF 21947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21948 $EGREP "Lucky user" >/dev/null 2>&1 21949then : 21950 gl_cv_func_strcasestr_works_always="guessing yes" 21951else $as_nop 21952 gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal" 21953fi 21954rm -rf conftest* 21955 21956 21957else $as_nop 21958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21959/* end confdefs.h. */ 21960 21961#include <string.h> /* for strcasestr */ 21962#ifdef __GNU_LIBRARY__ 21963 #include <features.h> 21964 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28 21965 Unlucky user 21966 #endif 21967#endif 21968#define P "_EF_BF_BD" 21969#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P 21970#define NEEDLE P P P P P 21971 21972int 21973main (void) 21974{ 21975return !!strcasestr (HAYSTACK, NEEDLE); 21976 21977 ; 21978 return 0; 21979} 21980_ACEOF 21981if ac_fn_c_try_run "$LINENO" 21982then : 21983 gl_cv_func_strcasestr_works_always=yes 21984else $as_nop 21985 gl_cv_func_strcasestr_works_always=no 21986fi 21987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21988 conftest.$ac_objext conftest.beam conftest.$ac_ext 21989fi 21990 21991 21992fi 21993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5 21994printf "%s\n" "$gl_cv_func_strcasestr_works_always" >&6; } 21995 case "$gl_cv_func_strcasestr_works_always" in 21996 *yes) ;; 21997 *) 21998 REPLACE_STRCASESTR=1 21999 ;; 22000 esac 22001 fi 22002 fi 22003 22004 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then 22005 22006 22007 22008 22009 22010 22011 22012 22013 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext" 22014 22015 22016 : 22017 22018 fi 22019 22020 22021 22022 22023 22024 GNULIB_STRCASESTR=1 22025 22026 22027 22028 22029 22030printf "%s\n" "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h 22031 22032 22033 22034 22035 22036 22037 if test $gl_cv_func_malloc_posix != yes; then 22038 REPLACE_STRDUP=1 22039 fi 22040 22041 if test $ac_cv_have_decl_strdup = no; then 22042 HAVE_DECL_STRDUP=0 22043 fi 22044 22045 if test $REPLACE_STRDUP = 1; then 22046 22047 22048 22049 22050 22051 22052 22053 22054 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" 22055 22056 : 22057 fi 22058 22059 22060 22061 22062 22063 GNULIB_STRDUP=1 22064 22065 22066 22067 22068 22069printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h 22070 22071 22072 22073 22074 22075 22076 22077 22078 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 22079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 22080printf %s "checking for working strerror function... " >&6; } 22081if test ${gl_cv_func_working_strerror+y} 22082then : 22083 printf %s "(cached) " >&6 22084else $as_nop 22085 if test "$cross_compiling" = yes 22086then : 22087 case "$host_os" in 22088 # Guess yes on glibc systems. 22089 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 22090 # Guess yes on musl systems. 22091 *-musl*) gl_cv_func_working_strerror="guessing yes" ;; 22092 # If we don't know, obey --enable-cross-guesses. 22093 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; 22094 esac 22095 22096else $as_nop 22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22098/* end confdefs.h. */ 22099#include <string.h> 22100 22101int 22102main (void) 22103{ 22104if (!*strerror (-2)) return 1; 22105 ; 22106 return 0; 22107} 22108_ACEOF 22109if ac_fn_c_try_run "$LINENO" 22110then : 22111 gl_cv_func_working_strerror=yes 22112else $as_nop 22113 gl_cv_func_working_strerror=no 22114fi 22115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22116 conftest.$ac_objext conftest.beam conftest.$ac_ext 22117fi 22118 22119 22120fi 22121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 22122printf "%s\n" "$gl_cv_func_working_strerror" >&6; } 22123 case "$gl_cv_func_working_strerror" in 22124 *yes) ;; 22125 *) 22126 REPLACE_STRERROR=1 22127 ;; 22128 esac 22129 22130 else 22131 REPLACE_STRERROR=1 22132 fi 22133 22134 if test $REPLACE_STRERROR = 1; then 22135 22136 22137 22138 22139 22140 22141 22142 22143 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 22144 22145 fi 22146 22147 22148printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h 22149 22150 22151 22152 22153 22154 22155 22156 GNULIB_STRERROR=1 22157 22158 22159 22160 22161 22162printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 if test $ac_cv_have_decl_strnlen = no; then 22179 HAVE_DECL_STRNLEN=0 22180 else 22181 22182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 22183printf %s "checking for working strnlen... " >&6; } 22184if test ${ac_cv_func_strnlen_working+y} 22185then : 22186 printf %s "(cached) " >&6 22187else $as_nop 22188 if test "$cross_compiling" = yes 22189then : 22190 # Guess no on AIX systems, yes otherwise. 22191 case "$host_os" in 22192 aix*) ac_cv_func_strnlen_working=no;; 22193 *) ac_cv_func_strnlen_working=yes;; 22194 esac 22195else $as_nop 22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22197/* end confdefs.h. */ 22198$ac_includes_default 22199int 22200main (void) 22201{ 22202 22203#define S "foobar" 22204#define S_LEN (sizeof S - 1) 22205 22206 /* At least one implementation is buggy: that of AIX 4.3 would 22207 give strnlen (S, 1) == 3. */ 22208 22209 int i; 22210 for (i = 0; i < S_LEN + 1; ++i) 22211 { 22212 int expected = i <= S_LEN ? i : S_LEN; 22213 if (strnlen (S, i) != expected) 22214 return 1; 22215 } 22216 return 0; 22217 22218 ; 22219 return 0; 22220} 22221_ACEOF 22222if ac_fn_c_try_run "$LINENO" 22223then : 22224 ac_cv_func_strnlen_working=yes 22225else $as_nop 22226 ac_cv_func_strnlen_working=no 22227fi 22228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22229 conftest.$ac_objext conftest.beam conftest.$ac_ext 22230fi 22231 22232fi 22233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 22234printf "%s\n" "$ac_cv_func_strnlen_working" >&6; } 22235test $ac_cv_func_strnlen_working = no && : 22236 22237 22238 if test $ac_cv_func_strnlen_working = no; then 22239 REPLACE_STRNLEN=1 22240 fi 22241 fi 22242 22243 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then 22244 22245 22246 22247 22248 22249 22250 22251 22252 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" 22253 22254 : 22255 fi 22256 22257 22258 22259 22260 22261 GNULIB_STRNLEN=1 22262 22263 22264 22265 22266 22267printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 if test $gl_cv_have_include_next = yes; then 22286 gl_cv_next_unistd_h='<'unistd.h'>' 22287 else 22288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 22289printf %s "checking absolute name of <unistd.h>... " >&6; } 22290if test ${gl_cv_next_unistd_h+y} 22291then : 22292 printf %s "(cached) " >&6 22293else $as_nop 22294 22295 if test $ac_cv_header_unistd_h = yes; then 22296 22297 22298 22299 22300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22301/* end confdefs.h. */ 22302#include <unistd.h> 22303_ACEOF 22304 case "$host_os" in 22305 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22306 *) gl_absname_cpp="$ac_cpp" ;; 22307 esac 22308 22309 case "$host_os" in 22310 mingw*) 22311 gl_dirsep_regex='[/\\]' 22312 ;; 22313 *) 22314 gl_dirsep_regex='\/' 22315 ;; 22316 esac 22317 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22318 gl_header_literal_regex=`echo 'unistd.h' \ 22319 | sed -e "$gl_make_literal_regex_sed"` 22320 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22321 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22322 s|^/[^/]|//&| 22323 p 22324 q 22325 }' 22326 22327 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22328 sed -n "$gl_absolute_header_sed"` 22329 22330 gl_header=$gl_cv_absolute_unistd_h 22331 gl_cv_next_unistd_h='"'$gl_header'"' 22332 else 22333 gl_cv_next_unistd_h='<'unistd.h'>' 22334 fi 22335 22336 22337fi 22338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 22339printf "%s\n" "$gl_cv_next_unistd_h" >&6; } 22340 fi 22341 NEXT_UNISTD_H=$gl_cv_next_unistd_h 22342 22343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22345 gl_next_as_first_directive='<'unistd.h'>' 22346 else 22347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22348 gl_next_as_first_directive=$gl_cv_next_unistd_h 22349 fi 22350 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 22351 22352 22353 22354 22355 if test $ac_cv_header_unistd_h = yes; then 22356 HAVE_UNISTD_H=1 22357 else 22358 HAVE_UNISTD_H=0 22359 fi 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 if test $ac_cv_have_decl_execvpe = no; then 22374 HAVE_DECL_EXECVPE=0 22375 fi 22376 22377 22378 22379 if { test "$HAVE_LIBUNISTRING" != yes \ 22380 || { 22381 22382 22383 22384 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 22385 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 22386 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 22387 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 22388 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 22389 } 22390 } 22391 } 22392 22393 22394 22395 22396 } 22397 }; then 22398 LIBUNISTRING_UNITYPES_H='unitypes.h' 22399 else 22400 LIBUNISTRING_UNITYPES_H= 22401 fi 22402 22403 22404 22405 22406 if { test "$HAVE_LIBUNISTRING" != yes \ 22407 || { 22408 22409 22410 22411 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 22412 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 22413 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 22414 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 22415 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 22416 } 22417 } 22418 } 22419 22420 22421 22422 22423 } 22424 }; then 22425 LIBUNISTRING_UNIWIDTH_H='uniwidth.h' 22426 else 22427 LIBUNISTRING_UNIWIDTH_H= 22428 fi 22429 22430 22431 22432 22433 if { test "$HAVE_LIBUNISTRING" != yes \ 22434 || { 22435 22436 22437 22438 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 22439 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 22440 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 22441 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 22442 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8 22443 } 22444 } 22445 } 22446 22447 22448 22449 22450 } 22451 }; then 22452 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= 22453 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' 22454else 22455 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' 22456 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= 22457fi 22458 22459 22460 22461 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 22462if test "x$ac_cv_func_vasprintf" = xyes 22463then : 22464 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 22465 22466fi 22467 22468 if test $ac_cv_func_vasprintf = no; then 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext" 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext" 22489 22490 22491 if test $ac_cv_func_vasprintf = yes; then 22492 REPLACE_VASPRINTF=1 22493 else 22494 HAVE_VASPRINTF=0 22495 fi 22496 22497 22498 22499 22500 22501 22502 22503 22504 fi 22505 22506 22507 22508 22509 22510 22511 GNULIB_VASPRINTF=1 22512 22513 22514 22515 22516 22517printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h 22518 22519 22520 22521 22522 22523 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" 22524 22525 22526 22527 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 if test $gl_cv_have_include_next = yes; then 22542 gl_cv_next_wchar_h='<'wchar.h'>' 22543 else 22544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 22545printf %s "checking absolute name of <wchar.h>... " >&6; } 22546if test ${gl_cv_next_wchar_h+y} 22547then : 22548 printf %s "(cached) " >&6 22549else $as_nop 22550 22551 if test $ac_cv_header_wchar_h = yes; then 22552 22553 22554 22555 22556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22557/* end confdefs.h. */ 22558#include <wchar.h> 22559_ACEOF 22560 case "$host_os" in 22561 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22562 *) gl_absname_cpp="$ac_cpp" ;; 22563 esac 22564 22565 case "$host_os" in 22566 mingw*) 22567 gl_dirsep_regex='[/\\]' 22568 ;; 22569 *) 22570 gl_dirsep_regex='\/' 22571 ;; 22572 esac 22573 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22574 gl_header_literal_regex=`echo 'wchar.h' \ 22575 | sed -e "$gl_make_literal_regex_sed"` 22576 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22577 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22578 s|^/[^/]|//&| 22579 p 22580 q 22581 }' 22582 22583 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22584 sed -n "$gl_absolute_header_sed"` 22585 22586 gl_header=$gl_cv_absolute_wchar_h 22587 gl_cv_next_wchar_h='"'$gl_header'"' 22588 else 22589 gl_cv_next_wchar_h='<'wchar.h'>' 22590 fi 22591 22592 22593fi 22594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 22595printf "%s\n" "$gl_cv_next_wchar_h" >&6; } 22596 fi 22597 NEXT_WCHAR_H=$gl_cv_next_wchar_h 22598 22599 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22601 gl_next_as_first_directive='<'wchar.h'>' 22602 else 22603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22604 gl_next_as_first_directive=$gl_cv_next_wchar_h 22605 fi 22606 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 22607 22608 22609 22610 22611 if test $ac_cv_header_wchar_h = yes; then 22612 HAVE_WCHAR_H=1 22613 else 22614 HAVE_WCHAR_H=0 22615 fi 22616 22617 22618 22619 22620 22621 if test $gt_cv_c_wint_t = yes; then 22622 HAVE_WINT_T=1 22623 else 22624 HAVE_WINT_T=0 22625 fi 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " 22637 #include <wchar.h> 22638 22639" "$ac_c_undeclared_builtin_options" "CFLAGS" 22640if test "x$ac_cv_have_decl_wcsdup" = xyes 22641then : 22642 ac_have_decl=1 22643else $as_nop 22644 ac_have_decl=0 22645fi 22646printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h 22647 22648 if test $ac_cv_have_decl_wcsdup = no; then 22649 HAVE_DECL_WCSDUP=0 22650 fi 22651 22652 22653 22654 22655 22656 22657 if test $ac_cv_func_iswcntrl = yes; then 22658 HAVE_ISWCNTRL=1 22659 else 22660 HAVE_ISWCNTRL=0 22661 fi 22662 22663 22664 22665 if test $gt_cv_c_wint_t = yes; then 22666 HAVE_WINT_T=1 22667 else 22668 HAVE_WINT_T=0 22669 fi 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 if test $gl_cv_have_include_next = yes; then 22684 gl_cv_next_wctype_h='<'wctype.h'>' 22685 else 22686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 22687printf %s "checking absolute name of <wctype.h>... " >&6; } 22688if test ${gl_cv_next_wctype_h+y} 22689then : 22690 printf %s "(cached) " >&6 22691else $as_nop 22692 22693 if test $ac_cv_header_wctype_h = yes; then 22694 22695 22696 22697 22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22699/* end confdefs.h. */ 22700#include <wctype.h> 22701_ACEOF 22702 case "$host_os" in 22703 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22704 *) gl_absname_cpp="$ac_cpp" ;; 22705 esac 22706 22707 case "$host_os" in 22708 mingw*) 22709 gl_dirsep_regex='[/\\]' 22710 ;; 22711 *) 22712 gl_dirsep_regex='\/' 22713 ;; 22714 esac 22715 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22716 gl_header_literal_regex=`echo 'wctype.h' \ 22717 | sed -e "$gl_make_literal_regex_sed"` 22718 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22719 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22720 s|^/[^/]|//&| 22721 p 22722 q 22723 }' 22724 22725 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22726 sed -n "$gl_absolute_header_sed"` 22727 22728 gl_header=$gl_cv_absolute_wctype_h 22729 gl_cv_next_wctype_h='"'$gl_header'"' 22730 else 22731 gl_cv_next_wctype_h='<'wctype.h'>' 22732 fi 22733 22734 22735fi 22736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 22737printf "%s\n" "$gl_cv_next_wctype_h" >&6; } 22738 fi 22739 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 22740 22741 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22743 gl_next_as_first_directive='<'wctype.h'>' 22744 else 22745 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22746 gl_next_as_first_directive=$gl_cv_next_wctype_h 22747 fi 22748 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 22749 22750 22751 22752 22753 if test $ac_cv_header_wctype_h = yes; then 22754 if test $ac_cv_func_iswcntrl = yes; then 22755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 22756printf %s "checking whether iswcntrl works... " >&6; } 22757if test ${gl_cv_func_iswcntrl_works+y} 22758then : 22759 printf %s "(cached) " >&6 22760else $as_nop 22761 22762 if test "$cross_compiling" = yes 22763then : 22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22765/* end confdefs.h. */ 22766#include <stdlib.h> 22767 #if __GNU_LIBRARY__ == 1 22768 Linux libc5 i18n is broken. 22769 #endif 22770int 22771main (void) 22772{ 22773 22774 ; 22775 return 0; 22776} 22777_ACEOF 22778if ac_fn_c_try_compile "$LINENO" 22779then : 22780 gl_cv_func_iswcntrl_works="guessing yes" 22781else $as_nop 22782 gl_cv_func_iswcntrl_works="guessing no" 22783fi 22784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22785 22786else $as_nop 22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22788/* end confdefs.h. */ 22789 22790 #include <wchar.h> 22791 #include <wctype.h> 22792 int main () { return iswprint ('x') == 0; } 22793 22794_ACEOF 22795if ac_fn_c_try_run "$LINENO" 22796then : 22797 gl_cv_func_iswcntrl_works=yes 22798else $as_nop 22799 gl_cv_func_iswcntrl_works=no 22800fi 22801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22802 conftest.$ac_objext conftest.beam conftest.$ac_ext 22803fi 22804 22805 22806fi 22807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 22808printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; } 22809 fi 22810 HAVE_WCTYPE_H=1 22811 else 22812 HAVE_WCTYPE_H=0 22813 fi 22814 22815 22816 if test $GNULIB_OVERRIDES_WINT_T = 1; then 22817 REPLACE_ISWCNTRL=1 22818 else 22819 case "$gl_cv_func_iswcntrl_works" in 22820 *yes) REPLACE_ISWCNTRL=0 ;; 22821 *) REPLACE_ISWCNTRL=1 ;; 22822 esac 22823 fi 22824 22825 22826 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 22827 : 22828 fi 22829 22830 if test $REPLACE_ISWCNTRL = 1; then 22831 REPLACE_TOWLOWER=1 22832 else 22833 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 22834if test "x$ac_cv_func_towlower" = xyes 22835then : 22836 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h 22837 22838fi 22839 22840 if test $ac_cv_func_towlower = yes; then 22841 REPLACE_TOWLOWER=0 22842 else 22843 ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h> 22844 #if HAVE_WCTYPE_H 22845 # include <wctype.h> 22846 #endif 22847 22848" "$ac_c_undeclared_builtin_options" "CFLAGS" 22849if test "x$ac_cv_have_decl_towlower" = xyes 22850then : 22851 ac_have_decl=1 22852else $as_nop 22853 ac_have_decl=0 22854fi 22855printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h 22856 22857 if test $ac_cv_have_decl_towlower = yes; then 22858 REPLACE_TOWLOWER=1 22859 else 22860 REPLACE_TOWLOWER=0 22861 fi 22862 fi 22863 fi 22864 22865 22866 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 22867 : 22868 fi 22869 22870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 22871printf %s "checking for wctype_t... " >&6; } 22872if test ${gl_cv_type_wctype_t+y} 22873then : 22874 printf %s "(cached) " >&6 22875else $as_nop 22876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22877/* end confdefs.h. */ 22878#include <wchar.h> 22879 #if HAVE_WCTYPE_H 22880 # include <wctype.h> 22881 #endif 22882 wctype_t a; 22883 22884int 22885main (void) 22886{ 22887 22888 ; 22889 return 0; 22890} 22891_ACEOF 22892if ac_fn_c_try_compile "$LINENO" 22893then : 22894 gl_cv_type_wctype_t=yes 22895else $as_nop 22896 gl_cv_type_wctype_t=no 22897fi 22898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22899 22900fi 22901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 22902printf "%s\n" "$gl_cv_type_wctype_t" >&6; } 22903 if test $gl_cv_type_wctype_t = no; then 22904 HAVE_WCTYPE_T=0 22905 fi 22906 22907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 22908printf %s "checking for wctrans_t... " >&6; } 22909if test ${gl_cv_type_wctrans_t+y} 22910then : 22911 printf %s "(cached) " >&6 22912else $as_nop 22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22914/* end confdefs.h. */ 22915#include <wchar.h> 22916 #include <wctype.h> 22917 wctrans_t a; 22918 22919int 22920main (void) 22921{ 22922 22923 ; 22924 return 0; 22925} 22926_ACEOF 22927if ac_fn_c_try_compile "$LINENO" 22928then : 22929 gl_cv_type_wctrans_t=yes 22930else $as_nop 22931 gl_cv_type_wctrans_t=no 22932fi 22933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22934 22935fi 22936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 22937printf "%s\n" "$gl_cv_type_wctrans_t" >&6; } 22938 if test $gl_cv_type_wctrans_t = no; then 22939 HAVE_WCTRANS_T=0 22940 fi 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 ac_fn_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " 22958 #include <wchar.h> 22959 22960" "$ac_c_undeclared_builtin_options" "CFLAGS" 22961if test "x$ac_cv_have_decl_wcwidth" = xyes 22962then : 22963 ac_have_decl=1 22964else $as_nop 22965 ac_have_decl=0 22966fi 22967printf "%s\n" "#define HAVE_DECL_WCWIDTH $ac_have_decl" >>confdefs.h 22968 22969 if test $ac_cv_have_decl_wcwidth != yes; then 22970 HAVE_DECL_WCWIDTH=0 22971 fi 22972 22973 if test $ac_cv_func_wcwidth != yes; then 22974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5 22975printf %s "checking whether wcwidth is a macro... " >&6; } 22976if test ${gl_cv_func_wcwidth_macro+y} 22977then : 22978 printf %s "(cached) " >&6 22979else $as_nop 22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22981/* end confdefs.h. */ 22982 22983#include <wchar.h> 22984#ifdef wcwidth 22985 wchar_header_defines_wcwidth 22986#endif 22987_ACEOF 22988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22989 $EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1 22990then : 22991 gl_cv_func_wcwidth_macro=yes 22992else $as_nop 22993 gl_cv_func_wcwidth_macro=no 22994fi 22995rm -rf conftest* 22996 22997 22998fi 22999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5 23000printf "%s\n" "$gl_cv_func_wcwidth_macro" >&6; } 23001 fi 23002 23003 if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then 23004 HAVE_WCWIDTH=1 23005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 23006printf %s "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } 23007if test ${gl_cv_func_wcwidth_works+y} 23008then : 23009 printf %s "(cached) " >&6 23010else $as_nop 23011 23012 if test "$cross_compiling" = yes 23013then : 23014 23015 case "$host_os" in 23016 # Guess yes on glibc systems. 23017 *-gnu* | gnu*) gl_cv_func_wcwidth_works="guessing yes";; 23018 # Guess yes on musl systems. 23019 *-musl*) gl_cv_func_wcwidth_works="guessing yes";; 23020 # Guess yes on AIX 7 systems. 23021 aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; 23022 *) gl_cv_func_wcwidth_works="$gl_cross_guess_normal";; 23023 esac 23024 23025else $as_nop 23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23027/* end confdefs.h. */ 23028 23029#include <locale.h> 23030#include <wchar.h> 23031#if !HAVE_DECL_WCWIDTH 23032extern 23033# ifdef __cplusplus 23034"C" 23035# endif 23036int wcwidth (int); 23037#endif 23038int main () 23039{ 23040 int result = 0; 23041 if (setlocale (LC_ALL, "en_US.UTF-8") != NULL) 23042 { 23043 if (wcwidth (0x0301) > 0) 23044 result |= 1; 23045 if (wcwidth (0x05B0) > 0) 23046 result |= 2; 23047 if (wcwidth (0x200B) > 0) 23048 result |= 4; 23049 if (wcwidth (0xFF1A) == 0) 23050 result |= 8; 23051 if (wcwidth (0x2202) > 1) 23052 result |= 16; 23053 } 23054 return result; 23055} 23056_ACEOF 23057if ac_fn_c_try_run "$LINENO" 23058then : 23059 gl_cv_func_wcwidth_works=yes 23060else $as_nop 23061 gl_cv_func_wcwidth_works=no 23062fi 23063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23064 conftest.$ac_objext conftest.beam conftest.$ac_ext 23065fi 23066 23067 23068fi 23069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5 23070printf "%s\n" "$gl_cv_func_wcwidth_works" >&6; } 23071 case "$gl_cv_func_wcwidth_works" in 23072 *yes) ;; 23073 *no) REPLACE_WCWIDTH=1 ;; 23074 esac 23075 else 23076 HAVE_WCWIDTH=0 23077 fi 23078 23079 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then 23080 23081 23082 23083 23084 23085 23086 23087 23088 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" 23089 23090 23091 23092 : 23093 23094 fi 23095 23096 23097 23098 23099 23100 GNULIB_WCWIDTH=1 23101 23102 23103 23104 23105 23106printf "%s\n" "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h 23107 23108 23109 23110 : 23111 23112 23113printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h 23114 23115 23116 23117 23118printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h 23119 23120 23121 gl_gnulib_enabled_attribute=false 23122 gl_gnulib_enabled_btowc=false 23123 gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=false 23124 gl_gnulib_enabled_cloexec=false 23125 gl_gnulib_enabled_close=false 23126 gl_gnulib_enabled_dup2=false 23127 gl_gnulib_enabled_dynarray=false 23128 gl_gnulib_enabled_fcntl=false 23129 gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=false 23130 gl_gnulib_enabled_fstat=false 23131 gl_gnulib_enabled_getdtablesize=false 23132 gl_gnulib_enabled_30838f5439487421042f2225bed3af76=false 23133 gl_gnulib_enabled_intprops=false 23134 gl_gnulib_enabled_langinfo=false 23135 gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=false 23136 gl_gnulib_enabled_localcharset=false 23137 gl_gnulib_enabled_locale=false 23138 gl_gnulib_enabled_localeconv=false 23139 gl_gnulib_enabled_lock=false 23140 gl_gnulib_enabled_ef455225c00f5049c808c2eda3e76866=false 23141 gl_gnulib_enabled_mbtowc=false 23142 gl_gnulib_enabled_mempcpy=false 23143 gl_gnulib_enabled_f691f076f650964c9f5598c3ee487616=false 23144 gl_gnulib_enabled_676220fa4366efa9bdbfccf11a857c07=false 23145 gl_gnulib_enabled_nl_langinfo=false 23146 gl_gnulib_enabled_pathmax=false 23147 gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=false 23148 gl_gnulib_enabled_size_max=false 23149 gl_gnulib_enabled_stat=false 23150 gl_gnulib_enabled_0137e3d3638b33e5819d132d0b23165c=false 23151 gl_gnulib_enabled_stpcpy=false 23152 gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72=false 23153 gl_gnulib_enabled_strndup=false 23154 gl_gnulib_enabled_strstr=false 23155 gl_gnulib_enabled_f84f170cca5f5b09d22686d5b833aa41=false 23156 gl_gnulib_enabled_sys_stat=false 23157 gl_gnulib_enabled_threadlib=false 23158 gl_gnulib_enabled_time=false 23159 gl_gnulib_enabled_vasnprintf=false 23160 gl_gnulib_enabled_wcrtomb=false 23161 gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440=false 23162 gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab=false 23163 gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354=false 23164 gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef=false 23165 gl_gnulib_enabled_xsize=false 23166 func_gl_gnulib_m4code_attribute () 23167 { 23168 if ! $gl_gnulib_enabled_attribute; then 23169 gl_gnulib_enabled_attribute=true 23170 fi 23171 } 23172 func_gl_gnulib_m4code_btowc () 23173 { 23174 if ! $gl_gnulib_enabled_btowc; then 23175 23176 23177 23178 23179 23180 23181 if test $ac_cv_func_btowc = no; then 23182 HAVE_BTOWC=0 23183 else 23184 23185 23186 23187 23188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 23189printf %s "checking whether btowc(0) is correct... " >&6; } 23190if test ${gl_cv_func_btowc_nul+y} 23191then : 23192 printf %s "(cached) " >&6 23193else $as_nop 23194 23195 if test "$cross_compiling" = yes 23196then : 23197 23198 case "$host_os" in 23199 # Guess no on Cygwin. 23200 cygwin*) gl_cv_func_btowc_nul="guessing no" ;; 23201 # Guess yes on native Windows. 23202 mingw*) gl_cv_func_btowc_nul="guessing yes" ;; 23203 # Guess yes otherwise. 23204 *) gl_cv_func_btowc_nul="guessing yes" ;; 23205 esac 23206 23207else $as_nop 23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23209/* end confdefs.h. */ 23210 23211#include <wchar.h> 23212int main () 23213{ 23214 if (btowc ('\0') != 0) 23215 return 1; 23216 return 0; 23217} 23218_ACEOF 23219if ac_fn_c_try_run "$LINENO" 23220then : 23221 gl_cv_func_btowc_nul=yes 23222else $as_nop 23223 gl_cv_func_btowc_nul=no 23224fi 23225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23226 conftest.$ac_objext conftest.beam conftest.$ac_ext 23227fi 23228 23229 23230fi 23231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 23232printf "%s\n" "$gl_cv_func_btowc_nul" >&6; } 23233 23234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 23235printf %s "checking whether btowc(EOF) is correct... " >&6; } 23236if test ${gl_cv_func_btowc_eof+y} 23237then : 23238 printf %s "(cached) " >&6 23239else $as_nop 23240 23241 case "$host_os" in 23242 # Guess no on IRIX. 23243 irix*) gl_cv_func_btowc_eof="guessing no" ;; 23244 # Guess yes on native Windows. 23245 mingw*) gl_cv_func_btowc_eof="guessing yes" ;; 23246 # Guess yes otherwise. 23247 *) gl_cv_func_btowc_eof="guessing yes" ;; 23248 esac 23249 if test $LOCALE_FR != none; then 23250 if test "$cross_compiling" = yes 23251then : 23252 : 23253else $as_nop 23254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23255/* end confdefs.h. */ 23256 23257#include <locale.h> 23258#include <stdio.h> 23259#include <wchar.h> 23260int main () 23261{ 23262 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 23263 { 23264 if (btowc (EOF) != WEOF) 23265 return 1; 23266 } 23267 return 0; 23268} 23269_ACEOF 23270if ac_fn_c_try_run "$LINENO" 23271then : 23272 gl_cv_func_btowc_eof=yes 23273else $as_nop 23274 gl_cv_func_btowc_eof=no 23275fi 23276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23277 conftest.$ac_objext conftest.beam conftest.$ac_ext 23278fi 23279 23280 fi 23281 23282fi 23283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 23284printf "%s\n" "$gl_cv_func_btowc_eof" >&6; } 23285 23286 case "$gl_cv_func_btowc_nul" in 23287 *yes) ;; 23288 *) REPLACE_BTOWC=1 ;; 23289 esac 23290 case "$gl_cv_func_btowc_eof" in 23291 *yes) ;; 23292 *) REPLACE_BTOWC=1 ;; 23293 esac 23294 fi 23295 23296 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 23297 23298 23299 23300 23301 23302 23303 23304 23305 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext" 23306 23307 23308 : 23309 23310 fi 23311 23312 23313 23314 23315 23316 GNULIB_BTOWC=1 23317 23318 23319 23320 23321 23322printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h 23323 23324 23325 23326 gl_gnulib_enabled_btowc=true 23327 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 23328 func_gl_gnulib_m4code_mbtowc 23329 fi 23330 fi 23331 } 23332 func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547 () 23333 { 23334 if ! $gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547; then 23335 23336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 23337printf %s "checking for __builtin_expect... " >&6; } 23338if test ${gl_cv___builtin_expect+y} 23339then : 23340 printf %s "(cached) " >&6 23341else $as_nop 23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23343/* end confdefs.h. */ 23344 23345 int 23346 main (int argc, char **argv) 23347 { 23348 argc = __builtin_expect (argc, 100); 23349 return argv[argc != 100][0]; 23350 } 23351_ACEOF 23352if ac_fn_c_try_link "$LINENO" 23353then : 23354 gl_cv___builtin_expect=yes 23355else $as_nop 23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23357/* end confdefs.h. */ 23358 23359 #include <builtins.h> 23360 int 23361 main (int argc, char **argv) 23362 { 23363 argc = __builtin_expect (argc, 100); 23364 return argv[argc != 100][0]; 23365 } 23366_ACEOF 23367if ac_fn_c_try_link "$LINENO" 23368then : 23369 gl_cv___builtin_expect="in <builtins.h>" 23370else $as_nop 23371 gl_cv___builtin_expect=no 23372fi 23373rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23374 conftest$ac_exeext conftest.$ac_ext 23375fi 23376rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23377 conftest$ac_exeext conftest.$ac_ext 23378fi 23379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5 23380printf "%s\n" "$gl_cv___builtin_expect" >&6; } 23381 if test "$gl_cv___builtin_expect" = yes; then 23382 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h 23383 23384 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then 23385 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h 23386 23387 fi 23388 23389 23390 gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=true 23391 fi 23392 } 23393 func_gl_gnulib_m4code_cloexec () 23394 { 23395 if ! $gl_gnulib_enabled_cloexec; then 23396 23397 23398printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 23399 23400 23401 gl_gnulib_enabled_cloexec=true 23402 func_gl_gnulib_m4code_dup2 23403 func_gl_gnulib_m4code_fcntl 23404 fi 23405 } 23406 func_gl_gnulib_m4code_close () 23407 { 23408 if ! $gl_gnulib_enabled_close; then 23409 23410 23411 23412 23413 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 23414 REPLACE_CLOSE=1 23415 fi 23416 23417 23418 23419 23420 23421 23422 if test $ac_cv_header_sys_socket_h != yes; then 23423 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 23424if test "x$ac_cv_header_winsock2_h" = xyes 23425then : 23426 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 23427 23428fi 23429 23430 fi 23431 if test "$ac_cv_header_winsock2_h" = yes; then 23432 HAVE_WINSOCK2_H=1 23433 UNISTD_H_HAVE_WINSOCK2_H=1 23434 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 23435 else 23436 HAVE_WINSOCK2_H=0 23437 fi 23438 23439 23440 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 23441 REPLACE_CLOSE=1 23442 fi 23443 23444 23445 23446 if test $REPLACE_CLOSE = 1; then 23447 23448 23449 23450 23451 23452 23453 23454 23455 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" 23456 23457 fi 23458 23459 23460 23461 23462 23463 GNULIB_CLOSE=1 23464 23465 23466 23467 23468 23469printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 23470 23471 23472 23473 gl_gnulib_enabled_close=true 23474 if test $REPLACE_CLOSE = 1; then 23475 func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239 23476 fi 23477 if test $REPLACE_CLOSE = 1; then 23478 func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 23479 fi 23480 fi 23481 } 23482 func_gl_gnulib_m4code_dup2 () 23483 { 23484 if ! $gl_gnulib_enabled_dup2; then 23485 23486 23487 23488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 23489printf %s "checking whether dup2 works... " >&6; } 23490if test ${gl_cv_func_dup2_works+y} 23491then : 23492 printf %s "(cached) " >&6 23493else $as_nop 23494 if test "$cross_compiling" = yes 23495then : 23496 case "$host_os" in 23497 mingw*) # on this platform, dup2 always returns 0 for success 23498 gl_cv_func_dup2_works="guessing no" ;; 23499 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 23500 gl_cv_func_dup2_works="guessing no" ;; 23501 aix* | freebsd*) 23502 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 23503 # not EBADF. 23504 gl_cv_func_dup2_works="guessing no" ;; 23505 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 23506 gl_cv_func_dup2_works="guessing no" ;; 23507 *-android*) # implemented using dup3(), which fails if oldfd == newfd 23508 gl_cv_func_dup2_works="guessing no" ;; 23509 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 23510 gl_cv_func_dup2_works="guessing no" ;; 23511 *) gl_cv_func_dup2_works="guessing yes" ;; 23512 esac 23513else $as_nop 23514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23515/* end confdefs.h. */ 23516 23517 #include <errno.h> 23518 #include <fcntl.h> 23519 #include <limits.h> 23520 #include <sys/resource.h> 23521 #include <unistd.h> 23522 23523 23524$gl_mda_defines 23525 23526 #ifndef RLIM_SAVED_CUR 23527 # define RLIM_SAVED_CUR RLIM_INFINITY 23528 #endif 23529 #ifndef RLIM_SAVED_MAX 23530 # define RLIM_SAVED_MAX RLIM_INFINITY 23531 #endif 23532 23533int 23534main (void) 23535{ 23536int result = 0; 23537 int bad_fd = INT_MAX; 23538 struct rlimit rlim; 23539 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 23540 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 23541 && rlim.rlim_cur != RLIM_INFINITY 23542 && rlim.rlim_cur != RLIM_SAVED_MAX 23543 && rlim.rlim_cur != RLIM_SAVED_CUR) 23544 bad_fd = rlim.rlim_cur; 23545 #ifdef FD_CLOEXEC 23546 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 23547 result |= 1; 23548 #endif 23549 if (dup2 (1, 1) != 1) 23550 result |= 2; 23551 #ifdef FD_CLOEXEC 23552 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 23553 result |= 4; 23554 #endif 23555 close (0); 23556 if (dup2 (0, 0) != -1) 23557 result |= 8; 23558 /* Many gnulib modules require POSIX conformance of EBADF. */ 23559 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 23560 result |= 16; 23561 /* Flush out some cygwin core dumps. */ 23562 if (dup2 (2, -1) != -1 || errno != EBADF) 23563 result |= 32; 23564 dup2 (2, 255); 23565 dup2 (2, 256); 23566 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 23567 { 23568 int fd = open (".", O_RDONLY); 23569 if (fd == -1) 23570 result |= 64; 23571 else if (dup2 (fd, fd + 1) == -1) 23572 result |= 128; 23573 close (fd); 23574 } 23575 return result; 23576 ; 23577 return 0; 23578} 23579 23580_ACEOF 23581if ac_fn_c_try_run "$LINENO" 23582then : 23583 gl_cv_func_dup2_works=yes 23584else $as_nop 23585 gl_cv_func_dup2_works=no 23586fi 23587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23588 conftest.$ac_objext conftest.beam conftest.$ac_ext 23589fi 23590 23591 23592fi 23593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 23594printf "%s\n" "$gl_cv_func_dup2_works" >&6; } 23595 case "$gl_cv_func_dup2_works" in 23596 *yes) ;; 23597 *) 23598 REPLACE_DUP2=1 23599 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 23600if test "x$ac_cv_func_setdtablesize" = xyes 23601then : 23602 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h 23603 23604fi 23605 23606 ;; 23607 esac 23608 23609 23610 if test $REPLACE_DUP2 = 1; then 23611 23612 23613 23614 23615 23616 23617 23618 23619 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 23620 23621 23622 fi 23623 23624 23625 23626 23627 23628 GNULIB_DUP2=1 23629 23630 23631 23632 23633 23634printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h 23635 23636 23637 23638 gl_gnulib_enabled_dup2=true 23639 if test $REPLACE_DUP2 = 1; then 23640 func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 23641 fi 23642 if test $REPLACE_DUP2 = 1; then 23643 func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 23644 fi 23645 fi 23646 } 23647 func_gl_gnulib_m4code_dynarray () 23648 { 23649 if ! $gl_gnulib_enabled_dynarray; then 23650 gl_gnulib_enabled_dynarray=true 23651 func_gl_gnulib_m4code_intprops 23652 func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467 23653 fi 23654 } 23655 func_gl_gnulib_m4code_fcntl () 23656 { 23657 if ! $gl_gnulib_enabled_fcntl; then 23658 23659 23660 23661 23662 23663 if test $ac_cv_func_fcntl = no; then 23664 23665 23666 23667 if test $ac_cv_func_fcntl = no; then 23668 HAVE_FCNTL=0 23669 else 23670 REPLACE_FCNTL=1 23671 fi 23672 23673 else 23674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 23675printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } 23676if test ${gl_cv_func_fcntl_f_dupfd_works+y} 23677then : 23678 printf %s "(cached) " >&6 23679else $as_nop 23680 if test "$cross_compiling" = yes 23681then : 23682 case $host_os in 23683 aix* | cygwin* | haiku*) 23684 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 23685 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 23686 esac 23687else $as_nop 23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23689/* end confdefs.h. */ 23690#include <errno.h> 23691 #include <fcntl.h> 23692 #include <limits.h> 23693 #include <sys/resource.h> 23694 #include <unistd.h> 23695 23696 23697$gl_mda_defines 23698 23699 #ifndef RLIM_SAVED_CUR 23700 # define RLIM_SAVED_CUR RLIM_INFINITY 23701 #endif 23702 #ifndef RLIM_SAVED_MAX 23703 # define RLIM_SAVED_MAX RLIM_INFINITY 23704 #endif 23705 23706int 23707main (void) 23708{ 23709int result = 0; 23710 int bad_fd = INT_MAX; 23711 struct rlimit rlim; 23712 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 23713 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 23714 && rlim.rlim_cur != RLIM_INFINITY 23715 && rlim.rlim_cur != RLIM_SAVED_MAX 23716 && rlim.rlim_cur != RLIM_SAVED_CUR) 23717 bad_fd = rlim.rlim_cur; 23718 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 23719 if (errno != EINVAL) result |= 2; 23720 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 23721 if (errno != EINVAL) result |= 8; 23722 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 23723 { 23724 int fd; 23725 fd = open (".", O_RDONLY); 23726 if (fd == -1) 23727 result |= 16; 23728 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 23729 result |= 32; 23730 23731 close (fd); 23732 } 23733 return result; 23734 ; 23735 return 0; 23736} 23737_ACEOF 23738if ac_fn_c_try_run "$LINENO" 23739then : 23740 gl_cv_func_fcntl_f_dupfd_works=yes 23741else $as_nop 23742 gl_cv_func_fcntl_f_dupfd_works=no 23743fi 23744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23745 conftest.$ac_objext conftest.beam conftest.$ac_ext 23746fi 23747 23748fi 23749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 23750printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 23751 case $gl_cv_func_fcntl_f_dupfd_works in 23752 *yes) ;; 23753 *) 23754 23755 23756 if test $ac_cv_func_fcntl = no; then 23757 HAVE_FCNTL=0 23758 else 23759 REPLACE_FCNTL=1 23760 fi 23761 23762 23763printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 23764 ;; 23765 esac 23766 23767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 23768printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 23769if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} 23770then : 23771 printf %s "(cached) " >&6 23772else $as_nop 23773 if test "$cross_compiling" = yes 23774then : 23775 case "$host_os" in 23776 # Guess no on NetBSD. 23777 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; 23778 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; 23779 esac 23780 23781else $as_nop 23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23783/* end confdefs.h. */ 23784#include <fcntl.h> 23785 #include <unistd.h> 23786 int main (int argc, char *argv[]) 23787 { 23788 if (argc == 1) 23789 /* parent process */ 23790 { 23791 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) 23792 return 1; 23793 return execl ("./conftest", "./conftest", "child", NULL); 23794 } 23795 else 23796 /* child process */ 23797 return (fcntl (10, F_GETFL) < 0 ? 0 : 42); 23798 } 23799 23800 23801_ACEOF 23802if ac_fn_c_try_run "$LINENO" 23803then : 23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23805/* end confdefs.h. */ 23806 23807#ifdef __linux__ 23808/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 23809 it to support the semantics on older kernels that failed with EINVAL. */ 23810choke me 23811#endif 23812 23813int 23814main (void) 23815{ 23816 23817 ; 23818 return 0; 23819} 23820_ACEOF 23821if ac_fn_c_try_compile "$LINENO" 23822then : 23823 gl_cv_func_fcntl_f_dupfd_cloexec=yes 23824else $as_nop 23825 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 23826fi 23827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23828 23829else $as_nop 23830 gl_cv_func_fcntl_f_dupfd_cloexec=no 23831fi 23832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23833 conftest.$ac_objext conftest.beam conftest.$ac_ext 23834fi 23835 23836 23837fi 23838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 23839printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 23840 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in 23841 *yes) ;; 23842 *) 23843 23844 23845 if test $ac_cv_func_fcntl = no; then 23846 HAVE_FCNTL=0 23847 else 23848 REPLACE_FCNTL=1 23849 fi 23850 23851 ;; 23852 esac 23853 fi 23854 23855 23856 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 23857 23858 23859 23860 23861 23862 23863 23864 23865 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" 23866 23867 fi 23868 23869 23870 23871 23872 23873 GNULIB_FCNTL=1 23874 23875 23876 23877 23878 23879printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 23880 23881 23882 23883 gl_gnulib_enabled_fcntl=true 23884 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 23885 func_gl_gnulib_m4code_close 23886 fi 23887 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 23888 func_gl_gnulib_m4code_dup2 23889 fi 23890 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 23891 func_gl_gnulib_m4code_getdtablesize 23892 fi 23893 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 23894 func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 23895 fi 23896 fi 23897 } 23898 func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239 () 23899 { 23900 if ! $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then 23901 gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=true 23902 fi 23903 } 23904 func_gl_gnulib_m4code_fstat () 23905 { 23906 if ! $gl_gnulib_enabled_fstat; then 23907 23908 23909 23910 23911 case "$host_os" in 23912 mingw* | solaris*) 23913 REPLACE_FSTAT=1 23914 ;; 23915 esac 23916 23917 23918 23919 if test $REPLACE_FSTAT = 1; then 23920 23921 23922 23923 23924 23925 23926 23927 23928 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext" 23929 23930 case "$host_os" in 23931 mingw*) 23932 23933 23934 23935 23936 23937 23938 23939 23940 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 23941 23942 ;; 23943 esac 23944 23945 23946 23947 : 23948 23949 fi 23950 23951 23952 23953 23954 23955 GNULIB_FSTAT=1 23956 23957 23958 23959 23960 23961printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 23962 23963 23964 23965 gl_gnulib_enabled_fstat=true 23966 if test $REPLACE_FSTAT = 1; then 23967 func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 23968 fi 23969 if test $REPLACE_FSTAT = 1; then 23970 func_gl_gnulib_m4code_pathmax 23971 fi 23972 if test $REPLACE_FSTAT = 1; then 23973 func_gl_gnulib_m4code_stat 23974 fi 23975 if test $REPLACE_FSTAT = 1; then 23976 func_gl_gnulib_m4code_0137e3d3638b33e5819d132d0b23165c 23977 fi 23978 func_gl_gnulib_m4code_sys_stat 23979 fi 23980 } 23981 func_gl_gnulib_m4code_getdtablesize () 23982 { 23983 if ! $gl_gnulib_enabled_getdtablesize; then 23984 23985 23986 23987 23988 23989 if test $ac_cv_func_getdtablesize = yes && 23990 test $ac_cv_have_decl_getdtablesize = yes; then 23991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 23992printf %s "checking whether getdtablesize works... " >&6; } 23993if test ${gl_cv_func_getdtablesize_works+y} 23994then : 23995 printf %s "(cached) " >&6 23996else $as_nop 23997 case "$host_os" in 23998 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; 23999 *) 24000 if test "$cross_compiling" = yes 24001then : 24002 case "$host_os" in 24003 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 24004 gl_cv_func_getdtablesize_works="guessing no" ;; 24005 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 24006 esac 24007 24008else $as_nop 24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24010/* end confdefs.h. */ 24011 24012 #include <unistd.h> 24013 24014 24015$gl_mda_defines 24016 24017 24018int 24019main (void) 24020{ 24021int size = getdtablesize(); 24022 if (dup2 (0, getdtablesize()) != -1) 24023 return 1; 24024 if (size != getdtablesize()) 24025 return 2; 24026 24027 ; 24028 return 0; 24029} 24030_ACEOF 24031if ac_fn_c_try_run "$LINENO" 24032then : 24033 gl_cv_func_getdtablesize_works=yes 24034else $as_nop 24035 gl_cv_func_getdtablesize_works=no 24036fi 24037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24038 conftest.$ac_objext conftest.beam conftest.$ac_ext 24039fi 24040 24041 ;; 24042 esac 24043 24044fi 24045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 24046printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } 24047 case "$gl_cv_func_getdtablesize_works" in 24048 *yes | "no (limitation)") ;; 24049 *) REPLACE_GETDTABLESIZE=1 ;; 24050 esac 24051 else 24052 HAVE_GETDTABLESIZE=0 24053 fi 24054 24055 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 24056 24057 24058 24059 24060 24061 24062 24063 24064 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" 24065 24066 : 24067 fi 24068 24069 24070 24071 24072 24073 GNULIB_GETDTABLESIZE=1 24074 24075 24076 24077 24078 24079printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 24080 24081 24082 24083 gl_gnulib_enabled_getdtablesize=true 24084 if test $HAVE_GETDTABLESIZE = 0; then 24085 func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 24086 fi 24087 fi 24088 } 24089 func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76 () 24090 { 24091 if ! $gl_gnulib_enabled_30838f5439487421042f2225bed3af76; then 24092 24093 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL" 24094 24095 gl_gnulib_enabled_30838f5439487421042f2225bed3af76=true 24096 func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd 24097 fi 24098 } 24099 func_gl_gnulib_m4code_intprops () 24100 { 24101 if ! $gl_gnulib_enabled_intprops; then 24102 gl_gnulib_enabled_intprops=true 24103 fi 24104 } 24105 func_gl_gnulib_m4code_langinfo () 24106 { 24107 if ! $gl_gnulib_enabled_langinfo; then 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 if test $gl_cv_have_include_next = yes; then 24123 gl_cv_next_langinfo_h='<'langinfo.h'>' 24124 else 24125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 24126printf %s "checking absolute name of <langinfo.h>... " >&6; } 24127if test ${gl_cv_next_langinfo_h+y} 24128then : 24129 printf %s "(cached) " >&6 24130else $as_nop 24131 24132 if test $ac_cv_header_langinfo_h = yes; then 24133 24134 24135 24136 24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24138/* end confdefs.h. */ 24139#include <langinfo.h> 24140_ACEOF 24141 case "$host_os" in 24142 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24143 *) gl_absname_cpp="$ac_cpp" ;; 24144 esac 24145 24146 case "$host_os" in 24147 mingw*) 24148 gl_dirsep_regex='[/\\]' 24149 ;; 24150 *) 24151 gl_dirsep_regex='\/' 24152 ;; 24153 esac 24154 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24155 gl_header_literal_regex=`echo 'langinfo.h' \ 24156 | sed -e "$gl_make_literal_regex_sed"` 24157 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24158 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24159 s|^/[^/]|//&| 24160 p 24161 q 24162 }' 24163 24164 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24165 sed -n "$gl_absolute_header_sed"` 24166 24167 gl_header=$gl_cv_absolute_langinfo_h 24168 gl_cv_next_langinfo_h='"'$gl_header'"' 24169 else 24170 gl_cv_next_langinfo_h='<'langinfo.h'>' 24171 fi 24172 24173 24174fi 24175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 24176printf "%s\n" "$gl_cv_next_langinfo_h" >&6; } 24177 fi 24178 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 24179 24180 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24182 gl_next_as_first_directive='<'langinfo.h'>' 24183 else 24184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24185 gl_next_as_first_directive=$gl_cv_next_langinfo_h 24186 fi 24187 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 24188 24189 24190 24191 24192 24193 HAVE_LANGINFO_CODESET=0 24194 HAVE_LANGINFO_T_FMT_AMPM=0 24195 HAVE_LANGINFO_ALTMON=0 24196 HAVE_LANGINFO_ERA=0 24197 HAVE_LANGINFO_YESEXPR=0 24198 24199 if test $ac_cv_header_langinfo_h = yes; then 24200 HAVE_LANGINFO_H=1 24201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 24202printf %s "checking whether langinfo.h defines CODESET... " >&6; } 24203if test ${gl_cv_header_langinfo_codeset+y} 24204then : 24205 printf %s "(cached) " >&6 24206else $as_nop 24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24208/* end confdefs.h. */ 24209#include <langinfo.h> 24210int a = CODESET; 24211 24212int 24213main (void) 24214{ 24215 24216 ; 24217 return 0; 24218} 24219_ACEOF 24220if ac_fn_c_try_compile "$LINENO" 24221then : 24222 gl_cv_header_langinfo_codeset=yes 24223else $as_nop 24224 gl_cv_header_langinfo_codeset=no 24225fi 24226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24227 24228fi 24229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 24230printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; } 24231 if test $gl_cv_header_langinfo_codeset = yes; then 24232 HAVE_LANGINFO_CODESET=1 24233 fi 24234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 24235printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 24236if test ${gl_cv_header_langinfo_t_fmt_ampm+y} 24237then : 24238 printf %s "(cached) " >&6 24239else $as_nop 24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24241/* end confdefs.h. */ 24242#include <langinfo.h> 24243int a = T_FMT_AMPM; 24244 24245int 24246main (void) 24247{ 24248 24249 ; 24250 return 0; 24251} 24252_ACEOF 24253if ac_fn_c_try_compile "$LINENO" 24254then : 24255 gl_cv_header_langinfo_t_fmt_ampm=yes 24256else $as_nop 24257 gl_cv_header_langinfo_t_fmt_ampm=no 24258fi 24259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24260 24261fi 24262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 24263printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 24264 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 24265 HAVE_LANGINFO_T_FMT_AMPM=1 24266 fi 24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 24268printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; } 24269if test ${gl_cv_header_langinfo_altmon+y} 24270then : 24271 printf %s "(cached) " >&6 24272else $as_nop 24273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24274/* end confdefs.h. */ 24275#include <langinfo.h> 24276int a = ALTMON_1; 24277 24278int 24279main (void) 24280{ 24281 24282 ; 24283 return 0; 24284} 24285_ACEOF 24286if ac_fn_c_try_compile "$LINENO" 24287then : 24288 gl_cv_header_langinfo_altmon=yes 24289else $as_nop 24290 gl_cv_header_langinfo_altmon=no 24291fi 24292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24293 24294fi 24295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 24296printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; } 24297 if test $gl_cv_header_langinfo_altmon = yes; then 24298 HAVE_LANGINFO_ALTMON=1 24299 fi 24300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 24301printf %s "checking whether langinfo.h defines ERA... " >&6; } 24302if test ${gl_cv_header_langinfo_era+y} 24303then : 24304 printf %s "(cached) " >&6 24305else $as_nop 24306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24307/* end confdefs.h. */ 24308#include <langinfo.h> 24309int a = ERA; 24310 24311int 24312main (void) 24313{ 24314 24315 ; 24316 return 0; 24317} 24318_ACEOF 24319if ac_fn_c_try_compile "$LINENO" 24320then : 24321 gl_cv_header_langinfo_era=yes 24322else $as_nop 24323 gl_cv_header_langinfo_era=no 24324fi 24325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24326 24327fi 24328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 24329printf "%s\n" "$gl_cv_header_langinfo_era" >&6; } 24330 if test $gl_cv_header_langinfo_era = yes; then 24331 HAVE_LANGINFO_ERA=1 24332 fi 24333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 24334printf %s "checking whether langinfo.h defines YESEXPR... " >&6; } 24335if test ${gl_cv_header_langinfo_yesexpr+y} 24336then : 24337 printf %s "(cached) " >&6 24338else $as_nop 24339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24340/* end confdefs.h. */ 24341#include <langinfo.h> 24342int a = YESEXPR; 24343 24344int 24345main (void) 24346{ 24347 24348 ; 24349 return 0; 24350} 24351_ACEOF 24352if ac_fn_c_try_compile "$LINENO" 24353then : 24354 gl_cv_header_langinfo_yesexpr=yes 24355else $as_nop 24356 gl_cv_header_langinfo_yesexpr=no 24357fi 24358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24359 24360fi 24361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 24362printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; } 24363 if test $gl_cv_header_langinfo_yesexpr = yes; then 24364 HAVE_LANGINFO_YESEXPR=1 24365 fi 24366 else 24367 HAVE_LANGINFO_H=0 24368 fi 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 gl_gnulib_enabled_langinfo=true 24381 fi 24382 } 24383 func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467 () 24384 { 24385 if ! $gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467; then 24386 24387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 24388printf %s "checking whether the compiler supports the __inline keyword... " >&6; } 24389if test ${gl_cv_c___inline+y} 24390then : 24391 printf %s "(cached) " >&6 24392else $as_nop 24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24394/* end confdefs.h. */ 24395typedef int foo_t; 24396 static __inline foo_t foo (void) { return 0; } 24397int 24398main (void) 24399{ 24400return foo (); 24401 ; 24402 return 0; 24403} 24404_ACEOF 24405if ac_fn_c_try_compile "$LINENO" 24406then : 24407 gl_cv_c___inline=yes 24408else $as_nop 24409 gl_cv_c___inline=no 24410fi 24411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24412fi 24413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 24414printf "%s\n" "$gl_cv_c___inline" >&6; } 24415 if test $gl_cv_c___inline = yes; then 24416 24417printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h 24418 24419 fi 24420 24421 gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=true 24422 fi 24423 } 24424 func_gl_gnulib_m4code_localcharset () 24425 { 24426 if ! $gl_gnulib_enabled_localcharset; then 24427 24428 24429 24430 LOCALCHARSET_TESTS_ENVIRONMENT= 24431 24432 gl_gnulib_enabled_localcharset=true 24433 fi 24434 } 24435 func_gl_gnulib_m4code_locale () 24436 { 24437 if ! $gl_gnulib_enabled_locale; then 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 case "$host_os" in 24449 solaris*) 24450 24451printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h 24452 24453 ;; 24454 esac 24455 24456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 24457printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; } 24458if test ${gl_cv_header_locale_h_posix2001+y} 24459then : 24460 printf %s "(cached) " >&6 24461else $as_nop 24462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24463/* end confdefs.h. */ 24464#include <locale.h> 24465 int x = LC_MESSAGES; 24466 int y = sizeof (((struct lconv *) 0)->decimal_point); 24467int 24468main (void) 24469{ 24470 24471 ; 24472 return 0; 24473} 24474_ACEOF 24475if ac_fn_c_try_compile "$LINENO" 24476then : 24477 gl_cv_header_locale_h_posix2001=yes 24478else $as_nop 24479 gl_cv_header_locale_h_posix2001=no 24480fi 24481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24482fi 24483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 24484printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; } 24485 24486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 24487printf %s "checking whether struct lconv is properly defined... " >&6; } 24488if test ${gl_cv_sys_struct_lconv_ok+y} 24489then : 24490 printf %s "(cached) " >&6 24491else $as_nop 24492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24493/* end confdefs.h. */ 24494#include <locale.h> 24495 struct lconv l; 24496 int x = sizeof (l.decimal_point); 24497 int y = sizeof (l.int_p_cs_precedes); 24498int 24499main (void) 24500{ 24501 24502 ; 24503 return 0; 24504} 24505_ACEOF 24506if ac_fn_c_try_compile "$LINENO" 24507then : 24508 gl_cv_sys_struct_lconv_ok=yes 24509else $as_nop 24510 gl_cv_sys_struct_lconv_ok=no 24511fi 24512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24513 24514fi 24515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 24516printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; } 24517 if test $gl_cv_sys_struct_lconv_ok = no; then 24518 case "$host_os" in 24519 mingw*) 24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24521/* end confdefs.h. */ 24522 24523#ifdef _MSC_VER 24524 Special 24525#endif 24526 24527_ACEOF 24528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24529 $EGREP "Special" >/dev/null 2>&1 24530then : 24531 24532else $as_nop 24533 REPLACE_STRUCT_LCONV=1 24534fi 24535rm -rf conftest* 24536 24537 ;; 24538 *) REPLACE_STRUCT_LCONV=1 ;; 24539 esac 24540 fi 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 if test $gl_cv_have_include_next = yes; then 24551 gl_cv_next_locale_h='<'locale.h'>' 24552 else 24553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 24554printf %s "checking absolute name of <locale.h>... " >&6; } 24555if test ${gl_cv_next_locale_h+y} 24556then : 24557 printf %s "(cached) " >&6 24558else $as_nop 24559 24560 24561 24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24563/* end confdefs.h. */ 24564#include <locale.h> 24565_ACEOF 24566 case "$host_os" in 24567 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24568 *) gl_absname_cpp="$ac_cpp" ;; 24569 esac 24570 24571 case "$host_os" in 24572 mingw*) 24573 gl_dirsep_regex='[/\\]' 24574 ;; 24575 *) 24576 gl_dirsep_regex='\/' 24577 ;; 24578 esac 24579 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24580 gl_header_literal_regex=`echo 'locale.h' \ 24581 | sed -e "$gl_make_literal_regex_sed"` 24582 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24583 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24584 s|^/[^/]|//&| 24585 p 24586 q 24587 }' 24588 24589 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24590 sed -n "$gl_absolute_header_sed"` 24591 24592 gl_header=$gl_cv_absolute_locale_h 24593 gl_cv_next_locale_h='"'$gl_header'"' 24594 24595 24596fi 24597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 24598printf "%s\n" "$gl_cv_next_locale_h" >&6; } 24599 fi 24600 NEXT_LOCALE_H=$gl_cv_next_locale_h 24601 24602 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24604 gl_next_as_first_directive='<'locale.h'>' 24605 else 24606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24607 gl_next_as_first_directive=$gl_cv_next_locale_h 24608 fi 24609 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 gl_gnulib_enabled_locale=true 24620 fi 24621 } 24622 func_gl_gnulib_m4code_localeconv () 24623 { 24624 if ! $gl_gnulib_enabled_localeconv; then 24625 24626 24627 24628 24629 if test $REPLACE_STRUCT_LCONV = 1; then 24630 REPLACE_LOCALECONV=1 24631 fi 24632 24633 if test $REPLACE_LOCALECONV = 1; then 24634 24635 24636 24637 24638 24639 24640 24641 24642 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext" 24643 24644 24645 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 24646" 24647if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes 24648then : 24649 24650printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h 24651 24652 24653fi 24654 24655 24656 fi 24657 24658 24659 24660 24661 24662 GNULIB_LOCALECONV=1 24663 24664 24665 24666 24667 24668printf "%s\n" "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h 24669 24670 24671 24672 gl_gnulib_enabled_localeconv=true 24673 func_gl_gnulib_m4code_locale 24674 fi 24675 } 24676 func_gl_gnulib_m4code_lock () 24677 { 24678 if ! $gl_gnulib_enabled_lock; then 24679 24680 24681 if test "$gl_threads_api" = posix; then 24682 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 24683 # pthread_rwlock_* functions. 24684 has_rwlock=false 24685 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 24686" 24687if test "x$ac_cv_type_pthread_rwlock_t" = xyes 24688then : 24689 has_rwlock=true 24690 24691printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 24692 24693fi 24694 24695 if $has_rwlock; then 24696 24697 24698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 24699printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } 24700if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y} 24701then : 24702 printf %s "(cached) " >&6 24703else $as_nop 24704 save_LIBS="$LIBS" 24705 LIBS="$LIBS $LIBMULTITHREAD" 24706 if test "$cross_compiling" = yes 24707then : 24708 case "$host_os" in 24709 # Guess no on glibc systems. 24710 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 24711 # Guess no on musl systems. 24712 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 24713 # Guess no on bionic systems. 24714 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 24715 # Guess yes on native Windows with the mingw-w64 winpthreads library. 24716 # Guess no on native Windows with the gnulib windows-rwlock module. 24717 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 24718 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" 24719 else 24720 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" 24721 fi 24722 ;; 24723 # If we don't know, obey --enable-cross-guesses. 24724 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; 24725 esac 24726 24727else $as_nop 24728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24729/* end confdefs.h. */ 24730 24731#include <errno.h> 24732#include <pthread.h> 24733#include <stdlib.h> 24734#include <unistd.h> 24735 24736#define SUCCEED() exit (0) 24737#define FAILURE() exit (1) 24738#define UNEXPECTED(n) (exit (10 + (n))) 24739 24740/* The main thread creates the waiting writer and the requesting reader threads 24741 in the default way; this guarantees that they have the same priority. 24742 We can reuse the main thread as first reader thread. */ 24743 24744static pthread_rwlock_t lock; 24745static pthread_t reader1; 24746static pthread_t writer; 24747static pthread_t reader2; 24748static pthread_t timer; 24749/* Used to pass control from writer to reader2 and from reader2 to timer, 24750 as in a relay race. 24751 Passing control from one running thread to another running thread 24752 is most likely faster than to create the second thread. */ 24753static pthread_mutex_t baton; 24754 24755static void * 24756timer_func (void *ignored) 24757{ 24758 /* Step 13 (can be before or after step 12): 24759 The timer thread takes the baton, then waits a moment to make sure 24760 it can tell whether the second reader thread is blocked at step 12. */ 24761 if (pthread_mutex_lock (&baton)) 24762 UNEXPECTED (13); 24763 usleep (100000); 24764 /* By the time we get here, it's clear that the second reader thread is 24765 blocked at step 12. This is the desired behaviour. */ 24766 SUCCEED (); 24767} 24768 24769static void * 24770reader2_func (void *ignored) 24771{ 24772 int err; 24773 24774 /* Step 8 (can be before or after step 7): 24775 The second reader thread takes the baton, then waits a moment to make sure 24776 the writer thread has reached step 7. */ 24777 if (pthread_mutex_lock (&baton)) 24778 UNEXPECTED (8); 24779 usleep (100000); 24780 /* Step 9: The second reader thread requests the lock. */ 24781 err = pthread_rwlock_tryrdlock (&lock); 24782 if (err == 0) 24783 FAILURE (); 24784 else if (err != EBUSY) 24785 UNEXPECTED (9); 24786 /* Step 10: Launch a timer, to test whether the next call blocks. */ 24787 if (pthread_create (&timer, NULL, timer_func, NULL)) 24788 UNEXPECTED (10); 24789 /* Step 11: Release the baton. */ 24790 if (pthread_mutex_unlock (&baton)) 24791 UNEXPECTED (11); 24792 /* Step 12: The second reader thread requests the lock. */ 24793 err = pthread_rwlock_rdlock (&lock); 24794 if (err == 0) 24795 FAILURE (); 24796 else 24797 UNEXPECTED (12); 24798} 24799 24800static void * 24801writer_func (void *ignored) 24802{ 24803 /* Step 4: Take the baton, so that the second reader thread does not go ahead 24804 too early. */ 24805 if (pthread_mutex_lock (&baton)) 24806 UNEXPECTED (4); 24807 /* Step 5: Create the second reader thread. */ 24808 if (pthread_create (&reader2, NULL, reader2_func, NULL)) 24809 UNEXPECTED (5); 24810 /* Step 6: Release the baton. */ 24811 if (pthread_mutex_unlock (&baton)) 24812 UNEXPECTED (6); 24813 /* Step 7: The writer thread requests the lock. */ 24814 if (pthread_rwlock_wrlock (&lock)) 24815 UNEXPECTED (7); 24816 return NULL; 24817} 24818 24819int 24820main () 24821{ 24822 reader1 = pthread_self (); 24823 24824 /* Step 1: The main thread initializes the lock and the baton. */ 24825 if (pthread_rwlock_init (&lock, NULL)) 24826 UNEXPECTED (1); 24827 if (pthread_mutex_init (&baton, NULL)) 24828 UNEXPECTED (1); 24829 /* Step 2: The main thread acquires the lock as a reader. */ 24830 if (pthread_rwlock_rdlock (&lock)) 24831 UNEXPECTED (2); 24832 /* Step 3: Create the writer thread. */ 24833 if (pthread_create (&writer, NULL, writer_func, NULL)) 24834 UNEXPECTED (3); 24835 /* Job done. Go to sleep. */ 24836 for (;;) 24837 { 24838 sleep (1); 24839 } 24840} 24841 24842_ACEOF 24843if ac_fn_c_try_run "$LINENO" 24844then : 24845 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes 24846else $as_nop 24847 gl_cv_pthread_rwlock_rdlock_prefer_writer=no 24848fi 24849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24850 conftest.$ac_objext conftest.beam conftest.$ac_ext 24851fi 24852 24853 LIBS="$save_LIBS" 24854 24855fi 24856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 24857printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } 24858 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in 24859 *yes) 24860 24861printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h 24862 24863 ;; 24864 esac 24865 24866 fi 24867 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24869/* end confdefs.h. */ 24870 24871 #include <pthread.h> 24872int 24873main (void) 24874{ 24875 24876#if __FreeBSD__ == 4 24877error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 24878#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 24879 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 24880error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 24881#else 24882int x = (int)PTHREAD_MUTEX_RECURSIVE; 24883return !x; 24884#endif 24885 24886 ; 24887 return 0; 24888} 24889_ACEOF 24890if ac_fn_c_try_compile "$LINENO" 24891then : 24892 24893printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 24894 24895fi 24896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24897 fi 24898 : 24899 24900 24901 24902printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h 24903 24904 24905 gl_gnulib_enabled_lock=true 24906 func_gl_gnulib_m4code_threadlib 24907 if test $gl_threads_api = windows; then 24908 func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440 24909 fi 24910 if test $gl_threads_api = windows; then 24911 func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917ab 24912 fi 24913 if test $gl_threads_api = windows; then 24914 func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354 24915 fi 24916 if test $gl_threads_api = windows; then 24917 func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92ef 24918 fi 24919 fi 24920 } 24921 func_gl_gnulib_m4code_ef455225c00f5049c808c2eda3e76866 () 24922 { 24923 if ! $gl_gnulib_enabled_ef455225c00f5049c808c2eda3e76866; then 24924 24925 24926 24927 if test $gl_cv_func_malloc_posix = yes; then 24928 24929printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 24930 24931 else 24932 REPLACE_MALLOC=1 24933 fi 24934 24935 if test $REPLACE_MALLOC = 1; then 24936 24937 24938 24939 24940 24941 24942 24943 24944 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 24945 24946 fi 24947 24948 24949 24950 24951 24952 GNULIB_MALLOC_POSIX=1 24953 24954 24955 24956 24957 24958printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 24959 24960 24961 24962 24963 24964printf "%s\n" "#define GNULIB_MALLOC_POSIX 1" >>confdefs.h 24965 24966 24967 gl_gnulib_enabled_ef455225c00f5049c808c2eda3e76866=true 24968 fi 24969 } 24970 func_gl_gnulib_m4code_mbtowc () 24971 { 24972 if ! $gl_gnulib_enabled_mbtowc; then 24973 24974 24975 24976 ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc" 24977if test "x$ac_cv_func_mbtowc" = xyes 24978then : 24979 printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h 24980 24981fi 24982 24983 if test $ac_cv_func_mbtowc = no; then 24984 HAVE_MBTOWC=0 24985 else 24986 if false; then 24987 REPLACE_MBTOWC=1 24988 fi 24989 fi 24990 24991 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then 24992 24993 24994 24995 24996 24997 24998 24999 25000 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext" 25001 25002 25003 : 25004 25005 fi 25006 25007 25008 25009 25010 25011 GNULIB_MBTOWC=1 25012 25013 25014 25015 25016 25017printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h 25018 25019 25020 25021 gl_gnulib_enabled_mbtowc=true 25022 fi 25023 } 25024 func_gl_gnulib_m4code_mempcpy () 25025 { 25026 if ! $gl_gnulib_enabled_mempcpy; then 25027 25028 25029 25030 25031 25032 25033 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 25034if test "x$ac_cv_func_mempcpy" = xyes 25035then : 25036 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h 25037 25038fi 25039 25040 if test $ac_cv_func_mempcpy = no; then 25041 HAVE_MEMPCPY=0 25042 fi 25043 25044 if test $HAVE_MEMPCPY = 0; then 25045 25046 25047 25048 25049 25050 25051 25052 25053 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext" 25054 25055 25056 : 25057 25058 fi 25059 25060 25061 25062 25063 25064 GNULIB_MEMPCPY=1 25065 25066 25067 25068 25069 25070printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h 25071 25072 25073 25074 gl_gnulib_enabled_mempcpy=true 25075 fi 25076 } 25077 func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 () 25078 { 25079 if ! $gl_gnulib_enabled_f691f076f650964c9f5598c3ee487616; then 25080 25081 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 25082 25083 25084 25085 25086 25087 25088 25089 25090 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 25091 25092 fi 25093 gl_gnulib_enabled_f691f076f650964c9f5598c3ee487616=true 25094 fi 25095 } 25096 func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 () 25097 { 25098 if ! $gl_gnulib_enabled_676220fa4366efa9bdbfccf11a857c07; then 25099 25100 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 25101 25102 25103 25104 25105 25106 25107 25108 25109 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 25110 25111 fi 25112 25113 25114printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h 25115 25116 25117 gl_gnulib_enabled_676220fa4366efa9bdbfccf11a857c07=true 25118 func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 25119 fi 25120 } 25121 func_gl_gnulib_m4code_nl_langinfo () 25122 { 25123 if ! $gl_gnulib_enabled_nl_langinfo; then 25124 25125 25126 25127 25128 25129 25130 25131 25132 if test $ac_cv_func_nl_langinfo = yes; then 25133 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken. 25134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5 25135printf %s "checking whether YESEXPR works... " >&6; } 25136if test ${gl_cv_func_nl_langinfo_yesexpr_works+y} 25137then : 25138 printf %s "(cached) " >&6 25139else $as_nop 25140 if test "$cross_compiling" = yes 25141then : 25142 25143 case "$host_os" in 25144 # Guess no on irix systems. 25145 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";; 25146 # Guess yes elsewhere. 25147 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";; 25148 esac 25149 25150else $as_nop 25151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25152/* end confdefs.h. */ 25153#include <langinfo.h> 25154 25155int 25156main (void) 25157{ 25158return !*nl_langinfo(YESEXPR); 25159 25160 ; 25161 return 0; 25162} 25163_ACEOF 25164if ac_fn_c_try_run "$LINENO" 25165then : 25166 gl_cv_func_nl_langinfo_yesexpr_works=yes 25167else $as_nop 25168 gl_cv_func_nl_langinfo_yesexpr_works=no 25169fi 25170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25171 conftest.$ac_objext conftest.beam conftest.$ac_ext 25172fi 25173 25174 25175fi 25176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5 25177printf "%s\n" "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; } 25178 case $gl_cv_func_nl_langinfo_yesexpr_works in 25179 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;; 25180 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;; 25181 esac 25182 25183printf "%s\n" "#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS" >>confdefs.h 25184 25185 # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe. 25186 case "$host_os" in 25187 solaris*) NL_LANGINFO_MTSAFE=0 ;; 25188 *) NL_LANGINFO_MTSAFE=1 ;; 25189 esac 25190 25191printf "%s\n" "#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE" >>confdefs.h 25192 25193 if test $HAVE_LANGINFO_CODESET = 1 \ 25194 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ 25195 && test $HAVE_LANGINFO_ALTMON = 1 \ 25196 && test $HAVE_LANGINFO_ERA = 1 \ 25197 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \ 25198 && test $NL_LANGINFO_MTSAFE = 1; then 25199 : 25200 else 25201 REPLACE_NL_LANGINFO=1 25202 25203printf "%s\n" "#define REPLACE_NL_LANGINFO 1" >>confdefs.h 25204 25205 fi 25206 else 25207 HAVE_NL_LANGINFO=0 25208 fi 25209 if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then 25210 LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL" 25211 else 25212 LIB_NL_LANGINFO= 25213 fi 25214 25215 25216 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 25217 25218 25219 25220 25221 25222 25223 25224 25225 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext" 25226 25227 fi 25228 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then 25229 25230 25231 25232 25233 25234 25235 25236 25237 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo-lock.$ac_objext" 25238 25239 25240 25241 25242 CFLAG_VISIBILITY= 25243 HAVE_VISIBILITY=0 25244 if test -n "$GCC"; then 25245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 25246printf %s "checking whether the -Werror option is usable... " >&6; } 25247if test ${gl_cv_cc_vis_werror+y} 25248then : 25249 printf %s "(cached) " >&6 25250else $as_nop 25251 gl_save_CFLAGS="$CFLAGS" 25252 CFLAGS="$CFLAGS -Werror" 25253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25254/* end confdefs.h. */ 25255 25256int 25257main (void) 25258{ 25259 25260 ; 25261 return 0; 25262} 25263_ACEOF 25264if ac_fn_c_try_compile "$LINENO" 25265then : 25266 gl_cv_cc_vis_werror=yes 25267else $as_nop 25268 gl_cv_cc_vis_werror=no 25269fi 25270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25271 CFLAGS="$gl_save_CFLAGS" 25272 25273fi 25274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 25275printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 25276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 25277printf %s "checking for simple visibility declarations... " >&6; } 25278if test ${gl_cv_cc_visibility+y} 25279then : 25280 printf %s "(cached) " >&6 25281else $as_nop 25282 gl_save_CFLAGS="$CFLAGS" 25283 CFLAGS="$CFLAGS -fvisibility=hidden" 25284 if test $gl_cv_cc_vis_werror = yes; then 25285 CFLAGS="$CFLAGS -Werror" 25286 fi 25287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25288/* end confdefs.h. */ 25289extern __attribute__((__visibility__("hidden"))) int hiddenvar; 25290 extern __attribute__((__visibility__("default"))) int exportedvar; 25291 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 25292 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 25293 void dummyfunc (void); 25294 void dummyfunc (void) {} 25295 25296int 25297main (void) 25298{ 25299 25300 ; 25301 return 0; 25302} 25303_ACEOF 25304if ac_fn_c_try_compile "$LINENO" 25305then : 25306 gl_cv_cc_visibility=yes 25307else $as_nop 25308 gl_cv_cc_visibility=no 25309fi 25310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25311 CFLAGS="$gl_save_CFLAGS" 25312 25313fi 25314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 25315printf "%s\n" "$gl_cv_cc_visibility" >&6; } 25316 if test $gl_cv_cc_visibility = yes; then 25317 CFLAG_VISIBILITY="-fvisibility=hidden" 25318 HAVE_VISIBILITY=1 25319 fi 25320 fi 25321 25322 25323 25324printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 25325 25326 25327 25328 fi 25329 25330 25331 25332 25333 25334 GNULIB_NL_LANGINFO=1 25335 25336 25337 25338 25339 25340printf "%s\n" "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h 25341 25342 25343 25344 gl_gnulib_enabled_nl_langinfo=true 25345 func_gl_gnulib_m4code_langinfo 25346 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 25347 func_gl_gnulib_m4code_localeconv 25348 fi 25349 if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then 25350 func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd 25351 fi 25352 fi 25353 } 25354 func_gl_gnulib_m4code_pathmax () 25355 { 25356 if ! $gl_gnulib_enabled_pathmax; then 25357 25358 25359 25360 gl_gnulib_enabled_pathmax=true 25361 fi 25362 } 25363 func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd () 25364 { 25365 if ! $gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd; then 25366 25367 25368 25369 25370 25371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 25372printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 25373if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 25374then : 25375 printf %s "(cached) " >&6 25376else $as_nop 25377 case "$host_os" in 25378 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 25379 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 25380 gl_cv_func_setlocale_null_all_mtsafe=no ;; 25381 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 25382 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 25383 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 25384 # If we don't know, obey --enable-cross-guesses. 25385 *) 25386 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 25387 esac 25388 25389fi 25390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 25391printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 25392 case "$host_os" in 25393 mingw*) ;; 25394 *) 25395 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 25396 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 25397 fi 25398 ;; 25399 esac 25400 case "$gl_cv_func_setlocale_null_all_mtsafe" in 25401 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 25402 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 25403 esac 25404 25405printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 25406 25407 25408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 25409printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 25410if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 25411then : 25412 printf %s "(cached) " >&6 25413else $as_nop 25414 case "$host_os" in 25415 # Guess no on OpenBSD, AIX. 25416 openbsd* | aix*) 25417 gl_cv_func_setlocale_null_one_mtsafe=no ;; 25418 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 25419 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 25420 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 25421 # If we don't know, obey --enable-cross-guesses. 25422 *) 25423 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 25424 esac 25425 25426fi 25427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 25428printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 25429 case "$host_os" in 25430 mingw*) ;; 25431 *) 25432 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 25433 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 25434 fi 25435 ;; 25436 esac 25437 case "$gl_cv_func_setlocale_null_one_mtsafe" in 25438 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 25439 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 25440 esac 25441 25442printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 25443 25444 25445 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 25446 case "$host_os" in 25447 mingw*) LIB_SETLOCALE_NULL= ;; 25448 *) 25449 25450 25451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 25452printf %s "checking whether imported symbols can be declared weak... " >&6; } 25453if test ${gl_cv_have_weak+y} 25454then : 25455 printf %s "(cached) " >&6 25456else $as_nop 25457 gl_cv_have_weak=no 25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25459/* end confdefs.h. */ 25460extern void xyzzy (); 25461#pragma weak xyzzy 25462int 25463main (void) 25464{ 25465xyzzy(); 25466 ; 25467 return 0; 25468} 25469_ACEOF 25470if ac_fn_c_try_link "$LINENO" 25471then : 25472 gl_cv_have_weak=maybe 25473fi 25474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25475 conftest$ac_exeext conftest.$ac_ext 25476 if test $gl_cv_have_weak = maybe; then 25477 if test "$cross_compiling" = yes 25478then : 25479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25480/* end confdefs.h. */ 25481#ifdef __ELF__ 25482 Extensible Linking Format 25483 #endif 25484 25485_ACEOF 25486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25487 $EGREP "Extensible Linking Format" >/dev/null 2>&1 25488then : 25489 gl_cv_have_weak="guessing yes" 25490else $as_nop 25491 gl_cv_have_weak="guessing no" 25492fi 25493rm -rf conftest* 25494 25495 25496else $as_nop 25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25498/* end confdefs.h. */ 25499 25500#include <stdio.h> 25501#pragma weak fputs 25502int main () 25503{ 25504 return (fputs == NULL); 25505} 25506_ACEOF 25507if ac_fn_c_try_run "$LINENO" 25508then : 25509 gl_cv_have_weak=yes 25510else $as_nop 25511 gl_cv_have_weak=no 25512fi 25513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25514 conftest.$ac_objext conftest.beam conftest.$ac_ext 25515fi 25516 25517 fi 25518 case " $LDFLAGS " in 25519 *" -static "*) gl_cv_have_weak=no ;; 25520 esac 25521 case "$gl_cv_have_weak" in 25522 *yes) 25523 case "$host_os" in 25524 freebsd* | dragonfly* | midnightbsd*) 25525 : > conftest1.c 25526 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 25527 cat <<EOF > conftest2.c 25528#include <pthread.h> 25529#pragma weak pthread_mutexattr_gettype 25530int main () 25531{ 25532 return (pthread_mutexattr_gettype != NULL); 25533} 25534EOF 25535 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 25536 || gl_cv_have_weak=no 25537 rm -f conftest1.c libempty.so conftest2.c conftest 25538 ;; 25539 esac 25540 ;; 25541 esac 25542 25543fi 25544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 25545printf "%s\n" "$gl_cv_have_weak" >&6; } 25546 case "$gl_cv_have_weak" in 25547 *yes) 25548 25549printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 25550 25551 ;; 25552 esac 25553 25554 case "$gl_cv_have_weak" in 25555 *yes) LIB_SETLOCALE_NULL= ;; 25556 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 25557 esac 25558 ;; 25559 esac 25560 else 25561 LIB_SETLOCALE_NULL= 25562 fi 25563 25564 25565 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 25566 25567 25568 25569 25570 25571 25572 25573 25574 gl_LIBOBJS="$gl_LIBOBJS setlocale-lock.$ac_objext" 25575 25576 25577 25578 25579 CFLAG_VISIBILITY= 25580 HAVE_VISIBILITY=0 25581 if test -n "$GCC"; then 25582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 25583printf %s "checking whether the -Werror option is usable... " >&6; } 25584if test ${gl_cv_cc_vis_werror+y} 25585then : 25586 printf %s "(cached) " >&6 25587else $as_nop 25588 gl_save_CFLAGS="$CFLAGS" 25589 CFLAGS="$CFLAGS -Werror" 25590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25591/* end confdefs.h. */ 25592 25593int 25594main (void) 25595{ 25596 25597 ; 25598 return 0; 25599} 25600_ACEOF 25601if ac_fn_c_try_compile "$LINENO" 25602then : 25603 gl_cv_cc_vis_werror=yes 25604else $as_nop 25605 gl_cv_cc_vis_werror=no 25606fi 25607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25608 CFLAGS="$gl_save_CFLAGS" 25609 25610fi 25611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 25612printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 25613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 25614printf %s "checking for simple visibility declarations... " >&6; } 25615if test ${gl_cv_cc_visibility+y} 25616then : 25617 printf %s "(cached) " >&6 25618else $as_nop 25619 gl_save_CFLAGS="$CFLAGS" 25620 CFLAGS="$CFLAGS -fvisibility=hidden" 25621 if test $gl_cv_cc_vis_werror = yes; then 25622 CFLAGS="$CFLAGS -Werror" 25623 fi 25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25625/* end confdefs.h. */ 25626extern __attribute__((__visibility__("hidden"))) int hiddenvar; 25627 extern __attribute__((__visibility__("default"))) int exportedvar; 25628 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 25629 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 25630 void dummyfunc (void); 25631 void dummyfunc (void) {} 25632 25633int 25634main (void) 25635{ 25636 25637 ; 25638 return 0; 25639} 25640_ACEOF 25641if ac_fn_c_try_compile "$LINENO" 25642then : 25643 gl_cv_cc_visibility=yes 25644else $as_nop 25645 gl_cv_cc_visibility=no 25646fi 25647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25648 CFLAGS="$gl_save_CFLAGS" 25649 25650fi 25651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 25652printf "%s\n" "$gl_cv_cc_visibility" >&6; } 25653 if test $gl_cv_cc_visibility = yes; then 25654 CFLAG_VISIBILITY="-fvisibility=hidden" 25655 HAVE_VISIBILITY=1 25656 fi 25657 fi 25658 25659 25660 25661printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 25662 25663 25664 25665 fi 25666 25667 25668 25669 25670 25671 GNULIB_SETLOCALE_NULL=1 25672 25673 25674 25675 25676 25677printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h 25678 25679 25680 25681 gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=true 25682 func_gl_gnulib_m4code_locale 25683 fi 25684 } 25685 func_gl_gnulib_m4code_size_max () 25686 { 25687 if ! $gl_gnulib_enabled_size_max; then 25688 25689 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 25690if test "x$ac_cv_header_stdint_h" = xyes 25691then : 25692 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 25693 25694fi 25695 25696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 25697printf %s "checking for SIZE_MAX... " >&6; } 25698if test ${gl_cv_size_max+y} 25699then : 25700 printf %s "(cached) " >&6 25701else $as_nop 25702 25703 gl_cv_size_max=no 25704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25705/* end confdefs.h. */ 25706 25707#include <limits.h> 25708#if HAVE_STDINT_H 25709#include <stdint.h> 25710#endif 25711#ifdef SIZE_MAX 25712Found it 25713#endif 25714 25715_ACEOF 25716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25717 $EGREP "Found it" >/dev/null 2>&1 25718then : 25719 gl_cv_size_max=yes 25720fi 25721rm -rf conftest* 25722 25723 if test $gl_cv_size_max != yes; then 25724 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 25725#include <limits.h>" 25726then : 25727 25728else $as_nop 25729 size_t_bits_minus_1= 25730fi 25731 25732 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>" 25733then : 25734 25735else $as_nop 25736 fits_in_uint= 25737fi 25738 25739 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 25740 if test $fits_in_uint = 1; then 25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25742/* end confdefs.h. */ 25743#include <stddef.h> 25744 extern size_t foo; 25745 extern unsigned long foo; 25746 25747int 25748main (void) 25749{ 25750 25751 ; 25752 return 0; 25753} 25754_ACEOF 25755if ac_fn_c_try_compile "$LINENO" 25756then : 25757 fits_in_uint=0 25758fi 25759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25760 fi 25761 if test $fits_in_uint = 1; then 25762 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 25763 else 25764 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 25765 fi 25766 else 25767 gl_cv_size_max='((size_t)~(size_t)0)' 25768 fi 25769 fi 25770 25771fi 25772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 25773printf "%s\n" "$gl_cv_size_max" >&6; } 25774 if test "$gl_cv_size_max" != yes; then 25775 25776printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h 25777 25778 fi 25779 25780 25781 gl_gnulib_enabled_size_max=true 25782 fi 25783 } 25784 func_gl_gnulib_m4code_stat () 25785 { 25786 if ! $gl_gnulib_enabled_stat; then 25787 25788 25789 25790 25791 case "$host_os" in 25792 mingw*) 25793 REPLACE_STAT=1 25794 ;; 25795 *) 25796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 25797printf %s "checking whether stat handles trailing slashes on files... " >&6; } 25798if test ${gl_cv_func_stat_file_slash+y} 25799then : 25800 printf %s "(cached) " >&6 25801else $as_nop 25802 touch conftest.tmp 25803 # Assume that if we have lstat, we can also check symlinks. 25804 if test $ac_cv_func_lstat = yes; then 25805 ln -s conftest.tmp conftest.lnk 25806 fi 25807 if test "$cross_compiling" = yes 25808then : 25809 case "$host_os" in 25810 # Guess yes on Linux systems. 25811 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; 25812 # Guess yes on glibc systems. 25813 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 25814 # If we don't know, obey --enable-cross-guesses. 25815 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; 25816 esac 25817 25818else $as_nop 25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25820/* end confdefs.h. */ 25821#include <sys/stat.h> 25822 25823int 25824main (void) 25825{ 25826int result = 0; 25827 struct stat st; 25828 if (!stat ("conftest.tmp/", &st)) 25829 result |= 1; 25830#if HAVE_LSTAT 25831 if (!stat ("conftest.lnk/", &st)) 25832 result |= 2; 25833#endif 25834 return result; 25835 25836 ; 25837 return 0; 25838} 25839_ACEOF 25840if ac_fn_c_try_run "$LINENO" 25841then : 25842 gl_cv_func_stat_file_slash=yes 25843else $as_nop 25844 gl_cv_func_stat_file_slash=no 25845fi 25846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25847 conftest.$ac_objext conftest.beam conftest.$ac_ext 25848fi 25849 25850 rm -f conftest.tmp conftest.lnk 25851fi 25852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 25853printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } 25854 case $gl_cv_func_stat_file_slash in 25855 *no) 25856 REPLACE_STAT=1 25857 25858printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 25859;; 25860 esac 25861 case $host_os in 25862 solaris*) 25863 REPLACE_FSTAT=1 ;; 25864 esac 25865 ;; 25866 esac 25867 25868 if test $REPLACE_STAT = 1; then 25869 25870 25871 25872 25873 25874 25875 25876 25877 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" 25878 25879 case "$host_os" in 25880 mingw*) 25881 25882 25883 25884 25885 25886 25887 25888 25889 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 25890 25891 ;; 25892 esac 25893 25894 25895 25896 : 25897 25898 fi 25899 25900 25901 25902 25903 25904 GNULIB_STAT=1 25905 25906 25907 25908 25909 25910printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h 25911 25912 25913 25914 gl_gnulib_enabled_stat=true 25915 if test $REPLACE_STAT = 1; then 25916 func_gl_gnulib_m4code_pathmax 25917 fi 25918 if test $REPLACE_STAT = 1; then 25919 func_gl_gnulib_m4code_0137e3d3638b33e5819d132d0b23165c 25920 fi 25921 func_gl_gnulib_m4code_sys_stat 25922 fi 25923 } 25924 func_gl_gnulib_m4code_0137e3d3638b33e5819d132d0b23165c () 25925 { 25926 if ! $gl_gnulib_enabled_0137e3d3638b33e5819d132d0b23165c; then 25927 25928 25929 25930 25931 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> 25932 #include <sys/stat.h> 25933" 25934if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes 25935then : 25936 25937printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h 25938 25939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 25940printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } 25941if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} 25942then : 25943 printf %s "(cached) " >&6 25944else $as_nop 25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25946/* end confdefs.h. */ 25947 25948 #include <sys/types.h> 25949 #include <sys/stat.h> 25950 #if HAVE_SYS_TIME_H 25951 # include <sys/time.h> 25952 #endif 25953 #include <time.h> 25954 struct timespec ts; 25955 struct stat st; 25956 25957int 25958main (void) 25959{ 25960 25961 st.st_atim = ts; 25962 25963 ; 25964 return 0; 25965} 25966_ACEOF 25967if ac_fn_c_try_compile "$LINENO" 25968then : 25969 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes 25970else $as_nop 25971 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no 25972fi 25973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25974fi 25975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 25976printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } 25977 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then 25978 25979printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h 25980 25981 fi 25982else $as_nop 25983 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> 25984 #include <sys/stat.h> 25985" 25986if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes 25987then : 25988 25989printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h 25990 25991 25992else $as_nop 25993 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> 25994 #include <sys/stat.h> 25995" 25996if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes 25997then : 25998 25999printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h 26000 26001 26002else $as_nop 26003 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> 26004 #include <sys/stat.h> 26005" 26006if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes 26007then : 26008 26009printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h 26010 26011 26012fi 26013 26014fi 26015 26016fi 26017 26018fi 26019 26020 26021 26022 26023 26024 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h> 26025 #include <sys/stat.h> 26026" 26027if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes 26028then : 26029 26030printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h 26031 26032 26033else $as_nop 26034 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> 26035 #include <sys/stat.h> 26036" 26037if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes 26038then : 26039 26040printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h 26041 26042 26043else $as_nop 26044 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h> 26045 #include <sys/stat.h> 26046" 26047if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes 26048then : 26049 26050printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h 26051 26052 26053fi 26054 26055fi 26056 26057fi 26058 26059 26060 gl_gnulib_enabled_0137e3d3638b33e5819d132d0b23165c=true 26061 func_gl_gnulib_m4code_intprops 26062 func_gl_gnulib_m4code_time 26063 fi 26064 } 26065 func_gl_gnulib_m4code_stpcpy () 26066 { 26067 if ! $gl_gnulib_enabled_stpcpy; then 26068 26069 26070 26071 26072 26073 26074 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" 26075if test "x$ac_cv_func_stpcpy" = xyes 26076then : 26077 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h 26078 26079fi 26080 26081 if test $ac_cv_func_stpcpy = no; then 26082 HAVE_STPCPY=0 26083 fi 26084 26085 if test $HAVE_STPCPY = 0; then 26086 26087 26088 26089 26090 26091 26092 26093 26094 gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext" 26095 26096 26097 : 26098 26099 fi 26100 26101 26102 26103 26104 26105 GNULIB_STPCPY=1 26106 26107 26108 26109 26110 26111printf "%s\n" "#define GNULIB_TEST_STPCPY 1" >>confdefs.h 26112 26113 26114 26115 gl_gnulib_enabled_stpcpy=true 26116 fi 26117 } 26118 func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72 () 26119 { 26120 if ! $gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72; then 26121 26122 26123 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 26124 26125 26126 26127 26128 26129 26130 26131 26132 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 26133 26134 26135 26136 26137 26138 if test $ac_cv_header_sys_socket_h != yes; then 26139 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 26140if test "x$ac_cv_header_winsock2_h" = xyes 26141then : 26142 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 26143 26144fi 26145 26146 fi 26147 if test "$ac_cv_header_winsock2_h" = yes; then 26148 HAVE_WINSOCK2_H=1 26149 UNISTD_H_HAVE_WINSOCK2_H=1 26150 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 26151 else 26152 HAVE_WINSOCK2_H=0 26153 fi 26154 26155 26156 fi 26157 gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72=true 26158 fi 26159 } 26160 func_gl_gnulib_m4code_strndup () 26161 { 26162 if ! $gl_gnulib_enabled_strndup; then 26163 26164 26165 26166 26167 26168 26169 if test $ac_cv_have_decl_strndup = no; then 26170 HAVE_DECL_STRNDUP=0 26171 fi 26172 26173 if test $ac_cv_func_strndup = yes; then 26174 HAVE_STRNDUP=1 26175 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. 26176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 26177printf %s "checking for working strndup... " >&6; } 26178if test ${gl_cv_func_strndup_works+y} 26179then : 26180 printf %s "(cached) " >&6 26181else $as_nop 26182 if test "$cross_compiling" = yes 26183then : 26184 26185 case $host_os in 26186 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; 26187 *) gl_cv_func_strndup_works="guessing yes";; 26188 esac 26189 26190else $as_nop 26191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26192/* end confdefs.h. */ 26193 26194 #include <string.h> 26195 #include <stdlib.h> 26196int 26197main (void) 26198{ 26199 26200#if !HAVE_DECL_STRNDUP 26201 extern 26202 #ifdef __cplusplus 26203 "C" 26204 #endif 26205 char *strndup (const char *, size_t); 26206#endif 26207 int result; 26208 char *s; 26209 s = strndup ("some longer string", 15); 26210 free (s); 26211 s = strndup ("shorter string", 13); 26212 result = s[13] != '\0'; 26213 free (s); 26214 return result; 26215 ; 26216 return 0; 26217} 26218_ACEOF 26219if ac_fn_c_try_run "$LINENO" 26220then : 26221 gl_cv_func_strndup_works=yes 26222else $as_nop 26223 gl_cv_func_strndup_works=no 26224fi 26225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26226 conftest.$ac_objext conftest.beam conftest.$ac_ext 26227fi 26228 26229fi 26230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5 26231printf "%s\n" "$gl_cv_func_strndup_works" >&6; } 26232 case $gl_cv_func_strndup_works in 26233 *no) REPLACE_STRNDUP=1 ;; 26234 esac 26235 else 26236 HAVE_STRNDUP=0 26237 fi 26238 26239 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then 26240 26241 26242 26243 26244 26245 26246 26247 26248 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext" 26249 26250 fi 26251 26252 26253 26254 26255 26256 GNULIB_STRNDUP=1 26257 26258 26259 26260 26261 26262printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h 26263 26264 26265 26266 gl_gnulib_enabled_strndup=true 26267 fi 26268 } 26269 func_gl_gnulib_m4code_strstr () 26270 { 26271 if ! $gl_gnulib_enabled_strstr; then 26272 26273 26274 if test $REPLACE_STRSTR = 0; then 26275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5 26276printf %s "checking whether strstr works in linear time... " >&6; } 26277if test ${gl_cv_func_strstr_linear+y} 26278then : 26279 printf %s "(cached) " >&6 26280else $as_nop 26281 if test "$cross_compiling" = yes 26282then : 26283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26284/* end confdefs.h. */ 26285 26286#include <features.h> 26287#ifdef __GNU_LIBRARY__ 26288 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 26289 && !(defined __i386__ || defined __x86_64__) \ 26290 && !defined __UCLIBC__ 26291 Lucky user 26292 #endif 26293#endif 26294#ifdef __CYGWIN__ 26295 #include <cygwin/version.h> 26296 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 26297 Lucky user 26298 #endif 26299#endif 26300 26301_ACEOF 26302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26303 $EGREP "Lucky user" >/dev/null 2>&1 26304then : 26305 gl_cv_func_strstr_linear="guessing yes" 26306else $as_nop 26307 gl_cv_func_strstr_linear="$gl_cross_guess_normal" 26308fi 26309rm -rf conftest* 26310 26311 26312else $as_nop 26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26314/* end confdefs.h. */ 26315 26316#ifdef __MVS__ 26317/* z/OS does not deliver signals while strstr() is running (thanks to 26318 restrictions on its LE runtime), which prevents us from limiting the 26319 running time of this test. */ 26320# error "This test does not work properly on z/OS" 26321#endif 26322#include <signal.h> /* for signal */ 26323#include <string.h> /* for strstr */ 26324#include <stdlib.h> /* for malloc */ 26325#include <unistd.h> /* for alarm */ 26326static void quit (int sig) { _exit (sig + 128); } 26327 26328int 26329main (void) 26330{ 26331 26332 int result = 0; 26333 size_t m = 1000000; 26334 char *haystack = (char *) malloc (2 * m + 2); 26335 char *needle = (char *) malloc (m + 2); 26336 /* Failure to compile this test due to missing alarm is okay, 26337 since all such platforms (mingw) also have quadratic strstr. */ 26338 signal (SIGALRM, quit); 26339 alarm (5); 26340 /* Check for quadratic performance. */ 26341 if (haystack && needle) 26342 { 26343 memset (haystack, 'A', 2 * m); 26344 haystack[2 * m] = 'B'; 26345 haystack[2 * m + 1] = 0; 26346 memset (needle, 'A', m); 26347 needle[m] = 'B'; 26348 needle[m + 1] = 0; 26349 if (!strstr (haystack, needle)) 26350 result |= 1; 26351 } 26352 /* Free allocated memory, in case some sanitizer is watching. */ 26353 free (haystack); 26354 free (needle); 26355 return result; 26356 26357 ; 26358 return 0; 26359} 26360_ACEOF 26361if ac_fn_c_try_run "$LINENO" 26362then : 26363 gl_cv_func_strstr_linear=yes 26364else $as_nop 26365 gl_cv_func_strstr_linear=no 26366fi 26367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26368 conftest.$ac_objext conftest.beam conftest.$ac_ext 26369fi 26370 26371 26372fi 26373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5 26374printf "%s\n" "$gl_cv_func_strstr_linear" >&6; } 26375 case "$gl_cv_func_strstr_linear" in 26376 *yes) ;; 26377 *) 26378 REPLACE_STRSTR=1 26379 ;; 26380 esac 26381 fi 26382 26383 if test $REPLACE_STRSTR = 1; then 26384 26385 26386 26387 26388 26389 26390 26391 26392 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" 26393 26394 fi 26395 gl_gnulib_enabled_strstr=true 26396 func_gl_gnulib_m4code_f84f170cca5f5b09d22686d5b833aa41 26397 fi 26398 } 26399 func_gl_gnulib_m4code_f84f170cca5f5b09d22686d5b833aa41 () 26400 { 26401 if ! $gl_gnulib_enabled_f84f170cca5f5b09d22686d5b833aa41; then 26402 26403 26404 26405 if test $REPLACE_MEMCHR = 1; then 26406 REPLACE_STRSTR=1 26407 else 26408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5 26409printf %s "checking whether strstr works... " >&6; } 26410if test ${gl_cv_func_strstr_works_always+y} 26411then : 26412 printf %s "(cached) " >&6 26413else $as_nop 26414 if test "$cross_compiling" = yes 26415then : 26416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26417/* end confdefs.h. */ 26418 26419#ifdef __GNU_LIBRARY__ 26420 #include <features.h> 26421 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \ 26422 || defined __UCLIBC__ 26423 Lucky user 26424 #endif 26425#elif defined __CYGWIN__ 26426 #include <cygwin/version.h> 26427 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7) 26428 Lucky user 26429 #endif 26430#else 26431 Lucky user 26432#endif 26433 26434_ACEOF 26435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26436 $EGREP "Lucky user" >/dev/null 2>&1 26437then : 26438 gl_cv_func_strstr_works_always="guessing yes" 26439else $as_nop 26440 gl_cv_func_strstr_works_always="$gl_cross_guess_normal" 26441fi 26442rm -rf conftest* 26443 26444 26445else $as_nop 26446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26447/* end confdefs.h. */ 26448 26449#include <string.h> /* for strstr */ 26450#ifdef __GNU_LIBRARY__ 26451 #include <features.h> 26452 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28 26453 Unlucky user 26454 #endif 26455#endif 26456#define P "_EF_BF_BD" 26457#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P 26458#define NEEDLE P P P P P 26459 26460int 26461main (void) 26462{ 26463return !!strstr (HAYSTACK, NEEDLE); 26464 26465 ; 26466 return 0; 26467} 26468_ACEOF 26469if ac_fn_c_try_run "$LINENO" 26470then : 26471 gl_cv_func_strstr_works_always=yes 26472else $as_nop 26473 gl_cv_func_strstr_works_always=no 26474fi 26475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26476 conftest.$ac_objext conftest.beam conftest.$ac_ext 26477fi 26478 26479 26480fi 26481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5 26482printf "%s\n" "$gl_cv_func_strstr_works_always" >&6; } 26483 case "$gl_cv_func_strstr_works_always" in 26484 *yes) ;; 26485 *) 26486 REPLACE_STRSTR=1 26487 ;; 26488 esac 26489 fi 26490 26491 if test $REPLACE_STRSTR = 1; then 26492 26493 26494 26495 26496 26497 26498 26499 26500 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" 26501 26502 fi 26503 26504 26505 26506 26507 26508 GNULIB_STRSTR=1 26509 26510 26511 26512 26513 26514printf "%s\n" "#define GNULIB_TEST_STRSTR 1" >>confdefs.h 26515 26516 26517 26518 gl_gnulib_enabled_f84f170cca5f5b09d22686d5b833aa41=true 26519 if test $REPLACE_STRSTR = 1; then 26520 func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547 26521 fi 26522 fi 26523 } 26524 func_gl_gnulib_m4code_sys_stat () 26525 { 26526 if ! $gl_gnulib_enabled_sys_stat; then 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 if test $gl_cv_have_include_next = yes; then 26542 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 26543 else 26544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 26545printf %s "checking absolute name of <sys/stat.h>... " >&6; } 26546if test ${gl_cv_next_sys_stat_h+y} 26547then : 26548 printf %s "(cached) " >&6 26549else $as_nop 26550 26551 if test $ac_cv_header_sys_stat_h = yes; then 26552 26553 26554 26555 26556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26557/* end confdefs.h. */ 26558#include <sys/stat.h> 26559_ACEOF 26560 case "$host_os" in 26561 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26562 *) gl_absname_cpp="$ac_cpp" ;; 26563 esac 26564 26565 case "$host_os" in 26566 mingw*) 26567 gl_dirsep_regex='[/\\]' 26568 ;; 26569 *) 26570 gl_dirsep_regex='\/' 26571 ;; 26572 esac 26573 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26574 gl_header_literal_regex=`echo 'sys/stat.h' \ 26575 | sed -e "$gl_make_literal_regex_sed"` 26576 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26577 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26578 s|^/[^/]|//&| 26579 p 26580 q 26581 }' 26582 26583 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26584 sed -n "$gl_absolute_header_sed"` 26585 26586 gl_header=$gl_cv_absolute_sys_stat_h 26587 gl_cv_next_sys_stat_h='"'$gl_header'"' 26588 else 26589 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 26590 fi 26591 26592 26593fi 26594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 26595printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } 26596 fi 26597 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 26598 26599 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26601 gl_next_as_first_directive='<'sys/stat.h'>' 26602 else 26603 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26604 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 26605 fi 26606 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 26607 26608 26609 26610 26611 26612 26613 26614 26615 WINDOWS_STAT_TIMESPEC=0 26616 26617 26618 26619 26620 26621 26622 26623 26624 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 26625 #include <sys/stat.h> 26626" 26627if test "x$ac_cv_type_nlink_t" = xyes 26628then : 26629 26630else $as_nop 26631 26632printf "%s\n" "#define nlink_t int" >>confdefs.h 26633 26634fi 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 gl_gnulib_enabled_sys_stat=true 26645 func_gl_gnulib_m4code_time 26646 fi 26647 } 26648 func_gl_gnulib_m4code_threadlib () 26649 { 26650 if ! $gl_gnulib_enabled_threadlib; then 26651 26652 gl_gnulib_enabled_threadlib=true 26653 fi 26654 } 26655 func_gl_gnulib_m4code_time () 26656 { 26657 if ! $gl_gnulib_enabled_time; then 26658 26659 26660 26661 gl_gnulib_enabled_time=true 26662 fi 26663 } 26664 func_gl_gnulib_m4code_vasnprintf () 26665 { 26666 if ! $gl_gnulib_enabled_vasnprintf; then 26667 26668 26669 26670 if test $ac_cv_func_vasnprintf = no; then 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" 26712 26713 if test $ac_cv_func_vasnprintf = yes; then 26714 26715printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h 26716 26717 fi 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 26728if test "x$ac_cv_type_ptrdiff_t" = xyes 26729then : 26730 26731else $as_nop 26732 26733printf "%s\n" "#define ptrdiff_t long" >>confdefs.h 26734 26735 26736fi 26737 26738 26739 26740 26741 26742 26743 26744 fi 26745 26746 gl_gnulib_enabled_vasnprintf=true 26747 func_gl_gnulib_m4code_attribute 26748 func_gl_gnulib_m4code_xsize 26749 fi 26750 } 26751 func_gl_gnulib_m4code_wcrtomb () 26752 { 26753 if ! $gl_gnulib_enabled_wcrtomb; then 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 if case "$host_os" in 26766 mingw*) true ;; 26767 *) test $ac_cv_func_mbsinit = yes ;; 26768 esac \ 26769 && test $ac_cv_func_mbrtowc = yes; then 26770 26771 26772 26773 26774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 26775printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 26776if test ${gl_cv_func_mbrtowc_incomplete_state+y} 26777then : 26778 printf %s "(cached) " >&6 26779else $as_nop 26780 26781 case "$host_os" in 26782 # Guess no on AIX and OSF/1. 26783 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 26784 # Guess yes otherwise. 26785 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 26786 esac 26787 if test $LOCALE_JA != none; then 26788 if test "$cross_compiling" = yes 26789then : 26790 : 26791else $as_nop 26792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26793/* end confdefs.h. */ 26794 26795#include <locale.h> 26796#include <string.h> 26797#include <wchar.h> 26798int main () 26799{ 26800 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 26801 { 26802 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 26803 mbstate_t state; 26804 wchar_t wc; 26805 26806 memset (&state, '\0', sizeof (mbstate_t)); 26807 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 26808 if (mbsinit (&state)) 26809 return 2; 26810 } 26811 return 0; 26812} 26813_ACEOF 26814if ac_fn_c_try_run "$LINENO" 26815then : 26816 gl_cv_func_mbrtowc_incomplete_state=yes 26817else $as_nop 26818 gl_cv_func_mbrtowc_incomplete_state=no 26819fi 26820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26821 conftest.$ac_objext conftest.beam conftest.$ac_ext 26822fi 26823 26824 else 26825 if test $LOCALE_FR_UTF8 != none; then 26826 if test "$cross_compiling" = yes 26827then : 26828 : 26829else $as_nop 26830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26831/* end confdefs.h. */ 26832 26833#include <locale.h> 26834#include <string.h> 26835#include <wchar.h> 26836int main () 26837{ 26838 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 26839 { 26840 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 26841 mbstate_t state; 26842 wchar_t wc; 26843 26844 memset (&state, '\0', sizeof (mbstate_t)); 26845 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 26846 if (mbsinit (&state)) 26847 return 2; 26848 } 26849 return 0; 26850} 26851_ACEOF 26852if ac_fn_c_try_run "$LINENO" 26853then : 26854 gl_cv_func_mbrtowc_incomplete_state=yes 26855else $as_nop 26856 gl_cv_func_mbrtowc_incomplete_state=no 26857fi 26858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26859 conftest.$ac_objext conftest.beam conftest.$ac_ext 26860fi 26861 26862 fi 26863 fi 26864 26865fi 26866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 26867printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 26868 26869 26870 26871 26872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 26873printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 26874if test ${gl_cv_func_mbrtowc_sanitycheck+y} 26875then : 26876 printf %s "(cached) " >&6 26877else $as_nop 26878 26879 case "$host_os" in 26880 # Guess no on Solaris 8. 26881 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 26882 # Guess yes otherwise. 26883 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 26884 esac 26885 if test $LOCALE_ZH_CN != none; then 26886 if test "$cross_compiling" = yes 26887then : 26888 : 26889else $as_nop 26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26891/* end confdefs.h. */ 26892 26893#include <locale.h> 26894#include <stdlib.h> 26895#include <string.h> 26896#include <wchar.h> 26897int main () 26898{ 26899 /* This fails on Solaris 8: 26900 mbrtowc returns 2, and sets wc to 0x00F0. 26901 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 26902 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 26903 { 26904 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 26905 mbstate_t state; 26906 wchar_t wc; 26907 26908 memset (&state, '\0', sizeof (mbstate_t)); 26909 if (mbrtowc (&wc, input + 3, 6, &state) != 4 26910 && mbtowc (&wc, input + 3, 6) == 4) 26911 return 2; 26912 } 26913 return 0; 26914} 26915_ACEOF 26916if ac_fn_c_try_run "$LINENO" 26917then : 26918 gl_cv_func_mbrtowc_sanitycheck=yes 26919else $as_nop 26920 gl_cv_func_mbrtowc_sanitycheck=no 26921fi 26922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26923 conftest.$ac_objext conftest.beam conftest.$ac_ext 26924fi 26925 26926 fi 26927 26928fi 26929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 26930printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 26931 26932 REPLACE_MBSTATE_T=0 26933 case "$gl_cv_func_mbrtowc_incomplete_state" in 26934 *yes) ;; 26935 *) REPLACE_MBSTATE_T=1 ;; 26936 esac 26937 case "$gl_cv_func_mbrtowc_sanitycheck" in 26938 *yes) ;; 26939 *) REPLACE_MBSTATE_T=1 ;; 26940 esac 26941 else 26942 REPLACE_MBSTATE_T=1 26943 fi 26944 26945 26946 26947 if test $ac_cv_func_wcrtomb = no; then 26948 HAVE_WCRTOMB=0 26949 ac_fn_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " 26950 #include <wchar.h> 26951 26952" "$ac_c_undeclared_builtin_options" "CFLAGS" 26953if test "x$ac_cv_have_decl_wcrtomb" = xyes 26954then : 26955 ac_have_decl=1 26956else $as_nop 26957 ac_have_decl=0 26958fi 26959printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h 26960 26961 if test $ac_cv_have_decl_wcrtomb = yes; then 26962 REPLACE_WCRTOMB=1 26963 fi 26964 else 26965 if test $REPLACE_WCRTOMB = 0; then 26966 26967 26968 26969 26970 26971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5 26972printf %s "checking whether wcrtomb works in the C locale... " >&6; } 26973if test ${gl_cv_func_wcrtomb_works+y} 26974then : 26975 printf %s "(cached) " >&6 26976else $as_nop 26977 if test "$cross_compiling" = yes 26978then : 26979 case "$host_os" in 26980 # Guess no on Android. 26981 linux*-android*) gl_cv_func_wcrtomb_works="guessing no";; 26982 # Guess yes otherwise. 26983 *) gl_cv_func_wcrtomb_works="guessing yes";; 26984 esac 26985 26986else $as_nop 26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26988/* end confdefs.h. */ 26989 26990#include <string.h> 26991#include <stdlib.h> 26992#include <wchar.h> 26993int main () 26994{ 26995 mbstate_t state; 26996 char out[64]; 26997 int count; 26998 memset (&state, 0, sizeof (state)); 26999 out[0] = 'x'; 27000 count = wcrtomb (out, L'a', &state); 27001 return !(count == 1 && out[0] == 'a'); 27002} 27003_ACEOF 27004if ac_fn_c_try_run "$LINENO" 27005then : 27006 gl_cv_func_wcrtomb_works=yes 27007else $as_nop 27008 gl_cv_func_wcrtomb_works=no 27009fi 27010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27011 conftest.$ac_objext conftest.beam conftest.$ac_ext 27012fi 27013 27014 27015fi 27016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5 27017printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; } 27018 case "$gl_cv_func_wcrtomb_works" in 27019 *yes) ;; 27020 *) 27021printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h 27022 27023 REPLACE_WCRTOMB=1 ;; 27024 esac 27025 fi 27026 if test $REPLACE_WCRTOMB = 0; then 27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 27028printf %s "checking whether wcrtomb return value is correct... " >&6; } 27029if test ${gl_cv_func_wcrtomb_retval+y} 27030then : 27031 printf %s "(cached) " >&6 27032else $as_nop 27033 27034 case "$host_os" in 27035 # Guess no on AIX 4, OSF/1, Solaris, native Windows. 27036 aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;; 27037 # Guess yes otherwise. 27038 *) gl_cv_func_wcrtomb_retval="guessing yes" ;; 27039 esac 27040 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 27041 if test "$cross_compiling" = yes 27042then : 27043 : 27044else $as_nop 27045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27046/* end confdefs.h. */ 27047 27048#include <locale.h> 27049#include <string.h> 27050#include <wchar.h> 27051#include <stdlib.h> 27052int main () 27053{ 27054 int result = 0; 27055 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 27056 { 27057 if (wcrtomb (NULL, 0, NULL) != 1) 27058 result |= 1; 27059 } 27060 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 27061 { 27062 if (wcrtomb (NULL, 0, NULL) != 1) 27063 result |= 2; 27064 { 27065 wchar_t wc = (wchar_t) 0xBADFACE; 27066 if (mbtowc (&wc, "\303\274", 2) == 2) 27067 if (wcrtomb (NULL, wc, NULL) != 1) 27068 result |= 2; 27069 } 27070 } 27071 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 27072 { 27073 if (wcrtomb (NULL, 0, NULL) != 1) 27074 result |= 4; 27075 } 27076 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 27077 { 27078 if (wcrtomb (NULL, 0, NULL) != 1) 27079 result |= 8; 27080 } 27081 return result; 27082} 27083_ACEOF 27084if ac_fn_c_try_run "$LINENO" 27085then : 27086 gl_cv_func_wcrtomb_retval=yes 27087else $as_nop 27088 gl_cv_func_wcrtomb_retval=no 27089fi 27090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27091 conftest.$ac_objext conftest.beam conftest.$ac_ext 27092fi 27093 27094 fi 27095 27096fi 27097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 27098printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; } 27099 case "$gl_cv_func_wcrtomb_retval" in 27100 *yes) ;; 27101 *) 27102printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h 27103 27104 REPLACE_WCRTOMB=1 ;; 27105 esac 27106 fi 27107 fi 27108 27109 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 27110 27111 27112 27113 27114 27115 27116 27117 27118 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext" 27119 27120 27121 : 27122 27123 fi 27124 27125 27126 27127 27128 27129 GNULIB_WCRTOMB=1 27130 27131 27132 27133 27134 27135printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h 27136 27137 27138 27139 gl_gnulib_enabled_wcrtomb=true 27140 fi 27141 } 27142 func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440 () 27143 { 27144 if ! $gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440; then 27145 27146 case "$host_os" in 27147 mingw*) 27148 27149 27150 27151 27152 27153 27154 27155 27156 gl_LIBOBJS="$gl_LIBOBJS windows-mutex.$ac_objext" 27157 27158 ;; 27159 esac 27160 gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440=true 27161 fi 27162 } 27163 func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917ab () 27164 { 27165 if ! $gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab; then 27166 27167 case "$host_os" in 27168 mingw*) 27169 27170 27171 27172 27173 27174 27175 27176 27177 gl_LIBOBJS="$gl_LIBOBJS windows-once.$ac_objext" 27178 27179 ;; 27180 esac 27181 gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab=true 27182 fi 27183 } 27184 func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354 () 27185 { 27186 if ! $gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354; then 27187 27188 case "$host_os" in 27189 mingw*) 27190 27191 27192 27193 27194 27195 27196 27197 27198 gl_LIBOBJS="$gl_LIBOBJS windows-recmutex.$ac_objext" 27199 27200 ;; 27201 esac 27202 gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354=true 27203 fi 27204 } 27205 func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92ef () 27206 { 27207 if ! $gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef; then 27208 27209 case "$host_os" in 27210 mingw*) 27211 27212 27213 27214 27215 27216 27217 27218 27219 gl_LIBOBJS="$gl_LIBOBJS windows-rwlock.$ac_objext" 27220 27221 ;; 27222 esac 27223 gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef=true 27224 fi 27225 } 27226 func_gl_gnulib_m4code_xsize () 27227 { 27228 if ! $gl_gnulib_enabled_xsize; then 27229 27230 27231 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 27232if test "x$ac_cv_header_stdint_h" = xyes 27233then : 27234 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 27235 27236fi 27237 27238 27239 gl_gnulib_enabled_xsize=true 27240 func_gl_gnulib_m4code_attribute 27241 func_gl_gnulib_m4code_size_max 27242 fi 27243 } 27244 if test -n "$ARGZ_H"; then 27245 func_gl_gnulib_m4code_mempcpy 27246 fi 27247 if test -n "$ARGZ_H"; then 27248 func_gl_gnulib_m4code_stpcpy 27249 fi 27250 if test -n "$ARGZ_H"; then 27251 func_gl_gnulib_m4code_strndup 27252 fi 27253 if test -n "$ARGZ_H"; then 27254 func_gl_gnulib_m4code_strstr 27255 fi 27256 if test $ac_cv_lib_error_at_line = no; then 27257 func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 27258 fi 27259 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 27260 func_gl_gnulib_m4code_attribute 27261 fi 27262 if { test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0; then 27263 func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76 27264 fi 27265 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 27266 func_gl_gnulib_m4code_localcharset 27267 fi 27268 if test $REPLACE_OPEN = 1; then 27269 func_gl_gnulib_m4code_cloexec 27270 fi 27271 if test $REPLACE_OPEN = 1; then 27272 func_gl_gnulib_m4code_fstat 27273 fi 27274 if test $REPLACE_OPEN = 1; then 27275 func_gl_gnulib_m4code_stat 27276 fi 27277 if test $ac_use_included_regex = yes; then 27278 func_gl_gnulib_m4code_attribute 27279 fi 27280 if test $ac_use_included_regex = yes; then 27281 func_gl_gnulib_m4code_btowc 27282 fi 27283 if test $ac_use_included_regex = yes; then 27284 func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547 27285 fi 27286 if test $ac_use_included_regex = yes; then 27287 func_gl_gnulib_m4code_dynarray 27288 fi 27289 if test $ac_use_included_regex = yes; then 27290 func_gl_gnulib_m4code_intprops 27291 fi 27292 if test $ac_use_included_regex = yes; then 27293 func_gl_gnulib_m4code_langinfo 27294 fi 27295 if test $ac_use_included_regex = yes; then 27296 func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467 27297 fi 27298 if test $ac_use_included_regex = yes; then 27299 func_gl_gnulib_m4code_lock 27300 fi 27301 if test $ac_use_included_regex = yes; then 27302 func_gl_gnulib_m4code_nl_langinfo 27303 fi 27304 if test $ac_use_included_regex = yes; then 27305 func_gl_gnulib_m4code_wcrtomb 27306 fi 27307 if test $REPLACE_STRDUP = 1; then 27308 func_gl_gnulib_m4code_ef455225c00f5049c808c2eda3e76866 27309 fi 27310 if test $REPLACE_STRERROR = 1; then 27311 func_gl_gnulib_m4code_intprops 27312 fi 27313 if test $REPLACE_STRERROR = 1; then 27314 func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72 27315 fi 27316 if test $HAVE_VASPRINTF = 0 || test $REPLACE_VASPRINTF = 1; then 27317 func_gl_gnulib_m4code_vasnprintf 27318 fi 27319 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then 27320 func_gl_gnulib_m4code_localcharset 27321 fi 27322 27323 if $gl_gnulib_enabled_attribute; then 27324 gl_GNULIB_ENABLED_attribute_TRUE= 27325 gl_GNULIB_ENABLED_attribute_FALSE='#' 27326else 27327 gl_GNULIB_ENABLED_attribute_TRUE='#' 27328 gl_GNULIB_ENABLED_attribute_FALSE= 27329fi 27330 27331 if $gl_gnulib_enabled_btowc; then 27332 gl_GNULIB_ENABLED_btowc_TRUE= 27333 gl_GNULIB_ENABLED_btowc_FALSE='#' 27334else 27335 gl_GNULIB_ENABLED_btowc_TRUE='#' 27336 gl_GNULIB_ENABLED_btowc_FALSE= 27337fi 27338 27339 if $gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547; then 27340 gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_TRUE= 27341 gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_FALSE='#' 27342else 27343 gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_TRUE='#' 27344 gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_FALSE= 27345fi 27346 27347 if $gl_gnulib_enabled_cloexec; then 27348 gl_GNULIB_ENABLED_cloexec_TRUE= 27349 gl_GNULIB_ENABLED_cloexec_FALSE='#' 27350else 27351 gl_GNULIB_ENABLED_cloexec_TRUE='#' 27352 gl_GNULIB_ENABLED_cloexec_FALSE= 27353fi 27354 27355 if $gl_gnulib_enabled_close; then 27356 gl_GNULIB_ENABLED_close_TRUE= 27357 gl_GNULIB_ENABLED_close_FALSE='#' 27358else 27359 gl_GNULIB_ENABLED_close_TRUE='#' 27360 gl_GNULIB_ENABLED_close_FALSE= 27361fi 27362 27363 if $gl_gnulib_enabled_dup2; then 27364 gl_GNULIB_ENABLED_dup2_TRUE= 27365 gl_GNULIB_ENABLED_dup2_FALSE='#' 27366else 27367 gl_GNULIB_ENABLED_dup2_TRUE='#' 27368 gl_GNULIB_ENABLED_dup2_FALSE= 27369fi 27370 27371 if $gl_gnulib_enabled_dynarray; then 27372 gl_GNULIB_ENABLED_dynarray_TRUE= 27373 gl_GNULIB_ENABLED_dynarray_FALSE='#' 27374else 27375 gl_GNULIB_ENABLED_dynarray_TRUE='#' 27376 gl_GNULIB_ENABLED_dynarray_FALSE= 27377fi 27378 27379 if $gl_gnulib_enabled_fcntl; then 27380 gl_GNULIB_ENABLED_fcntl_TRUE= 27381 gl_GNULIB_ENABLED_fcntl_FALSE='#' 27382else 27383 gl_GNULIB_ENABLED_fcntl_TRUE='#' 27384 gl_GNULIB_ENABLED_fcntl_FALSE= 27385fi 27386 27387 if $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then 27388 gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE= 27389 gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE='#' 27390else 27391 gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE='#' 27392 gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE= 27393fi 27394 27395 if $gl_gnulib_enabled_fstat; then 27396 gl_GNULIB_ENABLED_fstat_TRUE= 27397 gl_GNULIB_ENABLED_fstat_FALSE='#' 27398else 27399 gl_GNULIB_ENABLED_fstat_TRUE='#' 27400 gl_GNULIB_ENABLED_fstat_FALSE= 27401fi 27402 27403 if $gl_gnulib_enabled_getdtablesize; then 27404 gl_GNULIB_ENABLED_getdtablesize_TRUE= 27405 gl_GNULIB_ENABLED_getdtablesize_FALSE='#' 27406else 27407 gl_GNULIB_ENABLED_getdtablesize_TRUE='#' 27408 gl_GNULIB_ENABLED_getdtablesize_FALSE= 27409fi 27410 27411 if $gl_gnulib_enabled_30838f5439487421042f2225bed3af76; then 27412 gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE= 27413 gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_FALSE='#' 27414else 27415 gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE='#' 27416 gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_FALSE= 27417fi 27418 27419 if $gl_gnulib_enabled_intprops; then 27420 gl_GNULIB_ENABLED_intprops_TRUE= 27421 gl_GNULIB_ENABLED_intprops_FALSE='#' 27422else 27423 gl_GNULIB_ENABLED_intprops_TRUE='#' 27424 gl_GNULIB_ENABLED_intprops_FALSE= 27425fi 27426 27427 if $gl_gnulib_enabled_langinfo; then 27428 gl_GNULIB_ENABLED_langinfo_TRUE= 27429 gl_GNULIB_ENABLED_langinfo_FALSE='#' 27430else 27431 gl_GNULIB_ENABLED_langinfo_TRUE='#' 27432 gl_GNULIB_ENABLED_langinfo_FALSE= 27433fi 27434 27435 if $gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467; then 27436 gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE= 27437 gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE='#' 27438else 27439 gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE='#' 27440 gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE= 27441fi 27442 27443 if $gl_gnulib_enabled_localcharset; then 27444 gl_GNULIB_ENABLED_localcharset_TRUE= 27445 gl_GNULIB_ENABLED_localcharset_FALSE='#' 27446else 27447 gl_GNULIB_ENABLED_localcharset_TRUE='#' 27448 gl_GNULIB_ENABLED_localcharset_FALSE= 27449fi 27450 27451 if $gl_gnulib_enabled_locale; then 27452 gl_GNULIB_ENABLED_locale_TRUE= 27453 gl_GNULIB_ENABLED_locale_FALSE='#' 27454else 27455 gl_GNULIB_ENABLED_locale_TRUE='#' 27456 gl_GNULIB_ENABLED_locale_FALSE= 27457fi 27458 27459 if $gl_gnulib_enabled_localeconv; then 27460 gl_GNULIB_ENABLED_localeconv_TRUE= 27461 gl_GNULIB_ENABLED_localeconv_FALSE='#' 27462else 27463 gl_GNULIB_ENABLED_localeconv_TRUE='#' 27464 gl_GNULIB_ENABLED_localeconv_FALSE= 27465fi 27466 27467 if $gl_gnulib_enabled_lock; then 27468 gl_GNULIB_ENABLED_lock_TRUE= 27469 gl_GNULIB_ENABLED_lock_FALSE='#' 27470else 27471 gl_GNULIB_ENABLED_lock_TRUE='#' 27472 gl_GNULIB_ENABLED_lock_FALSE= 27473fi 27474 27475 if $gl_gnulib_enabled_ef455225c00f5049c808c2eda3e76866; then 27476 gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_TRUE= 27477 gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_FALSE='#' 27478else 27479 gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_TRUE='#' 27480 gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_FALSE= 27481fi 27482 27483 if $gl_gnulib_enabled_mbtowc; then 27484 gl_GNULIB_ENABLED_mbtowc_TRUE= 27485 gl_GNULIB_ENABLED_mbtowc_FALSE='#' 27486else 27487 gl_GNULIB_ENABLED_mbtowc_TRUE='#' 27488 gl_GNULIB_ENABLED_mbtowc_FALSE= 27489fi 27490 27491 if $gl_gnulib_enabled_mempcpy; then 27492 gl_GNULIB_ENABLED_mempcpy_TRUE= 27493 gl_GNULIB_ENABLED_mempcpy_FALSE='#' 27494else 27495 gl_GNULIB_ENABLED_mempcpy_TRUE='#' 27496 gl_GNULIB_ENABLED_mempcpy_FALSE= 27497fi 27498 27499 if $gl_gnulib_enabled_f691f076f650964c9f5598c3ee487616; then 27500 gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_TRUE= 27501 gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_FALSE='#' 27502else 27503 gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_TRUE='#' 27504 gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_FALSE= 27505fi 27506 27507 if $gl_gnulib_enabled_676220fa4366efa9bdbfccf11a857c07; then 27508 gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_TRUE= 27509 gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_FALSE='#' 27510else 27511 gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_TRUE='#' 27512 gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_FALSE= 27513fi 27514 27515 if $gl_gnulib_enabled_nl_langinfo; then 27516 gl_GNULIB_ENABLED_nl_langinfo_TRUE= 27517 gl_GNULIB_ENABLED_nl_langinfo_FALSE='#' 27518else 27519 gl_GNULIB_ENABLED_nl_langinfo_TRUE='#' 27520 gl_GNULIB_ENABLED_nl_langinfo_FALSE= 27521fi 27522 27523 if $gl_gnulib_enabled_pathmax; then 27524 gl_GNULIB_ENABLED_pathmax_TRUE= 27525 gl_GNULIB_ENABLED_pathmax_FALSE='#' 27526else 27527 gl_GNULIB_ENABLED_pathmax_TRUE='#' 27528 gl_GNULIB_ENABLED_pathmax_FALSE= 27529fi 27530 27531 if $gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd; then 27532 gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE= 27533 gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_FALSE='#' 27534else 27535 gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE='#' 27536 gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_FALSE= 27537fi 27538 27539 if $gl_gnulib_enabled_size_max; then 27540 gl_GNULIB_ENABLED_size_max_TRUE= 27541 gl_GNULIB_ENABLED_size_max_FALSE='#' 27542else 27543 gl_GNULIB_ENABLED_size_max_TRUE='#' 27544 gl_GNULIB_ENABLED_size_max_FALSE= 27545fi 27546 27547 if $gl_gnulib_enabled_stat; then 27548 gl_GNULIB_ENABLED_stat_TRUE= 27549 gl_GNULIB_ENABLED_stat_FALSE='#' 27550else 27551 gl_GNULIB_ENABLED_stat_TRUE='#' 27552 gl_GNULIB_ENABLED_stat_FALSE= 27553fi 27554 27555 if $gl_gnulib_enabled_0137e3d3638b33e5819d132d0b23165c; then 27556 gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_TRUE= 27557 gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_FALSE='#' 27558else 27559 gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_TRUE='#' 27560 gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_FALSE= 27561fi 27562 27563 if $gl_gnulib_enabled_stpcpy; then 27564 gl_GNULIB_ENABLED_stpcpy_TRUE= 27565 gl_GNULIB_ENABLED_stpcpy_FALSE='#' 27566else 27567 gl_GNULIB_ENABLED_stpcpy_TRUE='#' 27568 gl_GNULIB_ENABLED_stpcpy_FALSE= 27569fi 27570 27571 if $gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72; then 27572 gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE= 27573 gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE='#' 27574else 27575 gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE='#' 27576 gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE= 27577fi 27578 27579 if $gl_gnulib_enabled_strndup; then 27580 gl_GNULIB_ENABLED_strndup_TRUE= 27581 gl_GNULIB_ENABLED_strndup_FALSE='#' 27582else 27583 gl_GNULIB_ENABLED_strndup_TRUE='#' 27584 gl_GNULIB_ENABLED_strndup_FALSE= 27585fi 27586 27587 if $gl_gnulib_enabled_strstr; then 27588 gl_GNULIB_ENABLED_strstr_TRUE= 27589 gl_GNULIB_ENABLED_strstr_FALSE='#' 27590else 27591 gl_GNULIB_ENABLED_strstr_TRUE='#' 27592 gl_GNULIB_ENABLED_strstr_FALSE= 27593fi 27594 27595 if $gl_gnulib_enabled_f84f170cca5f5b09d22686d5b833aa41; then 27596 gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_TRUE= 27597 gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_FALSE='#' 27598else 27599 gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_TRUE='#' 27600 gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_FALSE= 27601fi 27602 27603 if $gl_gnulib_enabled_sys_stat; then 27604 gl_GNULIB_ENABLED_sys_stat_TRUE= 27605 gl_GNULIB_ENABLED_sys_stat_FALSE='#' 27606else 27607 gl_GNULIB_ENABLED_sys_stat_TRUE='#' 27608 gl_GNULIB_ENABLED_sys_stat_FALSE= 27609fi 27610 27611 if $gl_gnulib_enabled_threadlib; then 27612 gl_GNULIB_ENABLED_threadlib_TRUE= 27613 gl_GNULIB_ENABLED_threadlib_FALSE='#' 27614else 27615 gl_GNULIB_ENABLED_threadlib_TRUE='#' 27616 gl_GNULIB_ENABLED_threadlib_FALSE= 27617fi 27618 27619 if $gl_gnulib_enabled_time; then 27620 gl_GNULIB_ENABLED_time_TRUE= 27621 gl_GNULIB_ENABLED_time_FALSE='#' 27622else 27623 gl_GNULIB_ENABLED_time_TRUE='#' 27624 gl_GNULIB_ENABLED_time_FALSE= 27625fi 27626 27627 if $gl_gnulib_enabled_vasnprintf; then 27628 gl_GNULIB_ENABLED_vasnprintf_TRUE= 27629 gl_GNULIB_ENABLED_vasnprintf_FALSE='#' 27630else 27631 gl_GNULIB_ENABLED_vasnprintf_TRUE='#' 27632 gl_GNULIB_ENABLED_vasnprintf_FALSE= 27633fi 27634 27635 if $gl_gnulib_enabled_wcrtomb; then 27636 gl_GNULIB_ENABLED_wcrtomb_TRUE= 27637 gl_GNULIB_ENABLED_wcrtomb_FALSE='#' 27638else 27639 gl_GNULIB_ENABLED_wcrtomb_TRUE='#' 27640 gl_GNULIB_ENABLED_wcrtomb_FALSE= 27641fi 27642 27643 if $gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440; then 27644 gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE= 27645 gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE='#' 27646else 27647 gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE='#' 27648 gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE= 27649fi 27650 27651 if $gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab; then 27652 gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE= 27653 gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE='#' 27654else 27655 gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE='#' 27656 gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE= 27657fi 27658 27659 if $gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354; then 27660 gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE= 27661 gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE='#' 27662else 27663 gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE='#' 27664 gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE= 27665fi 27666 27667 if $gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef; then 27668 gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE= 27669 gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE='#' 27670else 27671 gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE='#' 27672 gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE= 27673fi 27674 27675 if $gl_gnulib_enabled_xsize; then 27676 gl_GNULIB_ENABLED_xsize_TRUE= 27677 gl_GNULIB_ENABLED_xsize_FALSE='#' 27678else 27679 gl_GNULIB_ENABLED_xsize_TRUE='#' 27680 gl_GNULIB_ENABLED_xsize_FALSE= 27681fi 27682 27683 # End of code from modules 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 gltests_libdeps= 27694 gltests_ltlibdeps= 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 gl_source_base='tests' 27706 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 27707 27708 gl_module_indicator_condition=$gltests_WITNESS 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 LIBGNU_LIBDEPS="$gl_libdeps" 27720 27721 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" 27722 27723 27724 27725# To generate man pages. 27726 27727HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 27728 27729 27730POD2MAN=${POD2MAN-"${am_missing_run}pod2man"} 27731 27732 27733 27734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 27735printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 27736set x ${MAKE-make} 27737ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 27738if eval test \${ac_cv_prog_make_${ac_make}_set+y} 27739then : 27740 printf %s "(cached) " >&6 27741else $as_nop 27742 cat >conftest.make <<\_ACEOF 27743SHELL = /bin/sh 27744all: 27745 @echo '@@@%%%=$(MAKE)=@@@%%%' 27746_ACEOF 27747# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 27748case `${MAKE-make} -f conftest.make 2>/dev/null` in 27749 *@@@%%%=?*=@@@%%%*) 27750 eval ac_cv_prog_make_${ac_make}_set=yes;; 27751 *) 27752 eval ac_cv_prog_make_${ac_make}_set=no;; 27753esac 27754rm -f conftest.make 27755fi 27756if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 27757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27758printf "%s\n" "yes" >&6; } 27759 SET_MAKE= 27760else 27761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27762printf "%s\n" "no" >&6; } 27763 SET_MAKE="MAKE=${MAKE-make}" 27764fi 27765 27766 27767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 27768printf %s "checking whether ln -s works... " >&6; } 27769LN_S=$as_ln_s 27770if test "$LN_S" = "ln -s"; then 27771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27772printf "%s\n" "yes" >&6; } 27773else 27774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 27775printf "%s\n" "no, using $LN_S" >&6; } 27776fi 27777 27778 27779 27780# gettext Makefiles may still need MKINSTALLDIRS. 27781MKINSTALLDIRS="\$(top_srcdir)/build-aux/install-sh -d" 27782 27783 27784# check whether diff accepts the -u option (not on HP-UX). 27785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -u" >&5 27786printf %s "checking whether diff accepts -u... " >&6; } 27787diff_accepts_u_option=no 27788echo foo >conftest.dtx 27789echo foo | diff -u - conftest.dtx >/dev/null 2>&1 27790error_status_diff_u=$? 27791if test $error_status_diff_u = 0; then 27792 diff_accepts_u_option=yes 27793fi 27794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $diff_accepts_u_option" >&5 27795printf "%s\n" "$diff_accepts_u_option" >&6; } 27796rm -f conftest.dtx 27797 27798DIFF_U_OPTION= 27799if test "z$diff_accepts_u_option" = 'zyes' ; then 27800 DIFF_U_OPTION=-u 27801fi 27802 27803 27804# check whether diff accepts the -a option (only needed for GNU diff). 27805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether diff accepts -a" >&5 27806printf %s "checking whether diff accepts -a... " >&6; } 27807diff_accepts_a_option=no 27808echo foo >conftest.dtx 27809echo foo | diff -a - conftest.dtx >/dev/null 2>&1 27810error_status_diff_a=$? 27811if test $error_status_diff_a = 0; then 27812 diff_accepts_a_option=yes 27813fi 27814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $diff_accepts_a_option" >&5 27815printf "%s\n" "$diff_accepts_a_option" >&6; } 27816rm -f conftest.dtx 27817 27818DIFF_A_OPTION= 27819if test "z$diff_accepts_a_option" = 'zyes' ; then 27820 DIFF_A_OPTION=-a 27821fi 27822 27823 27824# Checks for header files. 27825ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 27826if test "x$ac_cv_header_io_h" = xyes 27827then : 27828 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 27829 27830fi 27831ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 27832if test "x$ac_cv_header_pwd_h" = xyes 27833then : 27834 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 27835 27836fi 27837ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 27838if test "x$ac_cv_header_termcap_h" = xyes 27839then : 27840 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h 27841 27842fi 27843ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 27844if test "x$ac_cv_header_termios_h" = xyes 27845then : 27846 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 27847 27848fi 27849ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 27850if test "x$ac_cv_header_unistd_h" = xyes 27851then : 27852 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 27853 27854fi 27855ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 27856if test "x$ac_cv_header_sys_ioctl_h" = xyes 27857then : 27858 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 27859 27860fi 27861ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 27862if test "x$ac_cv_header_sys_time_h" = xyes 27863then : 27864 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 27865 27866fi 27867ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 27868if test "x$ac_cv_header_sys_wait_h" = xyes 27869then : 27870 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 27871 27872fi 27873 27874 27875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5 27876printf %s "checking POSIX termios... " >&6; } 27877if test ${ac_cv_sys_posix_termios+y} 27878then : 27879 printf %s "(cached) " >&6 27880else $as_nop 27881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27882/* end confdefs.h. */ 27883#include <sys/types.h> 27884#include <unistd.h> 27885#include <termios.h> 27886 27887int 27888main (void) 27889{ 27890/* SunOS 4.0.3 has termios.h but not the library calls. */ 27891 tcgetattr(0, 0); 27892 ; 27893 return 0; 27894} 27895_ACEOF 27896if ac_fn_c_try_link "$LINENO" 27897then : 27898 ac_cv_sys_posix_termios=yes 27899else $as_nop 27900 ac_cv_sys_posix_termios=no 27901fi 27902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27903 conftest$ac_exeext conftest.$ac_ext 27904fi 27905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5 27906printf "%s\n" "$ac_cv_sys_posix_termios" >&6; } 27907 27908 27909ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 27910if test "x$ac_cv_type_off_t" = xyes 27911then : 27912 27913else $as_nop 27914 27915printf "%s\n" "#define off_t long int" >>confdefs.h 27916 27917fi 27918 27919 27920# Checks for library functions. 27921ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 27922if test "x$ac_cv_func_setlocale" = xyes 27923then : 27924 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 27925 27926fi 27927ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 27928if test "x$ac_cv_func_sigaction" = xyes 27929then : 27930 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 27931 27932fi 27933ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 27934if test "x$ac_cv_func_sigprocmask" = xyes 27935then : 27936 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 27937 27938fi 27939ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" 27940if test "x$ac_cv_func_posix_openpt" = xyes 27941then : 27942 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h 27943 27944fi 27945 27946 27947# Used for Info tests 27948 if test x$ac_cv_func_posix_openpt = xyes; then 27949 have_ptys_TRUE= 27950 have_ptys_FALSE='#' 27951else 27952 have_ptys_TRUE='#' 27953 have_ptys_FALSE= 27954fi 27955 27956 27957# We want to recognize djgpp to avoid the useless warning about no 27958# term library. 27959 27960 27961# We need to run some of our own binaries, most notably makedoc, but as 27962# long as we have this process, we also use our own makeinfo and 27963# install-info. 27964# 27965# This means that if we are cross compiling, we have to configure the 27966# package twice: once with the native compiler (this is done in a 27967# subdirectory $native_tools), and once with the cross compiler. 27968# The former is invoked automatically here, with --host=$build. 27969# $native_tools is also added to SUBDIRS in the main Makefile.am, 27970# so that make compiles the native tools first. 27971# 27972if test "$cross_compiling" = no; then 27973 native_tools= 27974else 27975 native_tools=tools 27976 test -d "$native_tools" || mkdir "$native_tools" 27977 confdir=`(cd "$srcdir";pwd)` 27978 # Make sure the secondary configure won't fail with 27979 # "error: source directory already configured". 27980 rm -f config.status 27981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Doing configure of native tools (${build})." >&5 27982printf "%s\n" "$as_me: Doing configure of native tools (${build})." >&6;} 27983 cd "$native_tools" || exit 1 27984 # Run secondary configure in alternate environment or 27985 # it gets the wrong CC etc. 27986 # env -i gives this build host configure a clean environment; 27987 # consequently, we have to re-initialize $PATH. 27988 env -i CC="$BUILD_CC" AR="$BUILD_AR" RANLIB="$BUILD_RANLIB" \ 27989 PATH="$PATH" \ 27990 tools_only=1 \ 27991 ${confdir}/configure --build=${build} --host=${build} \ 27992 --disable-rpath --disable-nls 27993 cd .. || exit 1 27994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Continuing with main configure (${host})." >&5 27995printf "%s\n" "$as_me: Continuing with main configure (${host})." >&6;} 27996fi 27997 27998 if test "x$tools_only" = x1; then 27999 TOOLS_ONLY_TRUE= 28000 TOOLS_ONLY_FALSE='#' 28001else 28002 TOOLS_ONLY_TRUE='#' 28003 TOOLS_ONLY_FALSE= 28004fi 28005 28006 28007# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but 28008# rather ncurses. So we check for it. 28009TERMLIBS= 28010# Check for termlib before termcap because Solaris termcap needs libucb. 28011TERMLIB_VARIANTS="tinfow ncurses curses termlib termcap terminfo" 28012for termlib in ${TERMLIB_VARIANTS}; do 28013 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${termlib}""_tgetent" | $as_tr_sh` 28014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${termlib}" >&5 28015printf %s "checking for tgetent in -l${termlib}... " >&6; } 28016if eval test \${$as_ac_Lib+y} 28017then : 28018 printf %s "(cached) " >&6 28019else $as_nop 28020 ac_check_lib_save_LIBS=$LIBS 28021LIBS="-l${termlib} $LIBS" 28022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28023/* end confdefs.h. */ 28024 28025/* Override any GCC internal prototype to avoid an error. 28026 Use char because int might match the return type of a GCC 28027 builtin and then its argument prototype would still apply. */ 28028char tgetent (); 28029int 28030main (void) 28031{ 28032return tgetent (); 28033 ; 28034 return 0; 28035} 28036_ACEOF 28037if ac_fn_c_try_link "$LINENO" 28038then : 28039 eval "$as_ac_Lib=yes" 28040else $as_nop 28041 eval "$as_ac_Lib=no" 28042fi 28043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28044 conftest$ac_exeext conftest.$ac_ext 28045LIBS=$ac_check_lib_save_LIBS 28046fi 28047eval ac_res=\$$as_ac_Lib 28048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28049printf "%s\n" "$ac_res" >&6; } 28050if eval test \"x\$"$as_ac_Lib"\" = x"yes" 28051then : 28052 TERMLIBS="${TERMLIBS} -l${termlib}"; break 28053fi 28054 28055done 28056have_termlib=yes 28057# don't bother warning on djgpp and MinGW, they don't have a term library, 28058# and port each termcap-needing program separately according to the needs. 28059if test -z "$TERMLIBS" \ 28060 && echo "$build" | grep -v djgpp | grep -v mingw >/dev/null; then 28061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: info needs a terminal library, one of: ${TERMLIB_VARIANTS}" >&5 28062printf "%s\n" "$as_me: WARNING: info needs a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;} 28063 have_termlib=no 28064fi 28065 28066# Checks for variables. 28067# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. 28068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library with termcap variables" >&5 28069printf %s "checking for library with termcap variables... " >&6; } 28070if test ${ac_cv_var_ospeed+y} 28071then : 28072 printf %s "(cached) " >&6 28073else $as_nop 28074 oldLIBS=$LIBS 28075for trylib in $termlib ${TERMLIB_VARIANTS}; do 28076 if test "x$trylib" != "x$termlib"; then 28077 LIBS="$oldLIBS -l$termlib -l$trylib" 28078 else 28079 LIBS="$oldLIBS -l$termlib" 28080 fi 28081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28082/* end confdefs.h. */ 28083 28084int 28085main (void) 28086{ 28087#ifdef HAVE_NCURSES_TERMCAP_H 28088#include <ncurses/termcap.h> 28089#else 28090#ifdef HAVE_TERMCAP_H 28091#include <termcap.h> 28092#else 28093#undef PC 28094char *BC; 28095char **UP; 28096char PC; 28097short ospeed; 28098#endif 28099#endif 28100/* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC. 28101 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */ 28102BC++; 28103UP++; 28104PC++; 28105return ospeed != 0; 28106 28107 ; 28108 return 0; 28109} 28110_ACEOF 28111if ac_fn_c_try_link "$LINENO" 28112then : 28113 ac_cv_var_ospeed=$trylib; break 28114fi 28115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28116 conftest$ac_exeext conftest.$ac_ext 28117done 28118LIBS=$oldLIBS 28119 28120fi 28121 28122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ospeed" >&5 28123printf "%s\n" "$ac_cv_var_ospeed" >&6; } 28124if test -n "$ac_cv_var_ospeed" \ 28125 && test "x$termlib" != "x$ac_cv_var_ospeed"; then 28126 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" 28127fi 28128# 28129 if test "x$TERMLIBS" != x; then 28130 HAVE_TERMLIBS_TRUE= 28131 HAVE_TERMLIBS_FALSE='#' 28132else 28133 HAVE_TERMLIBS_TRUE='#' 28134 HAVE_TERMLIBS_FALSE= 28135fi 28136 28137 28138# Do not use <ncurses/termcap.h> unless we're linking with ncurses. 28139# Must come after the termlib tests. 28140if test "x$termlib" = xncurses; then 28141 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined. 28142 ac_fn_c_check_header_compile "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default" 28143if test "x$ac_cv_header_ncurses_termcap_h" = xyes 28144then : 28145 printf "%s\n" "#define HAVE_NCURSES_TERMCAP_H 1" >>confdefs.h 28146 28147fi 28148 28149fi 28150 28151# For teTeX and TeX Live. 28152 28153# Check whether --enable-multiplatform was given. 28154if test ${enable_multiplatform+y} 28155then : 28156 enableval=$enable_multiplatform; 28157fi 28158# if enable_multiplatform is set in the environment, use that. 28159if test "x$enable_multiplatform" = xyes; then 28160 test "x$bindir" = 'x${exec_prefix}/bin' && bindir="$bindir/$host" 28161 test "x$libdir" = 'x${exec_prefix}/lib' && libdir="$libdir/$host" 28162fi 28163 28164# Taken from the example in 28165# http://www.gnu.org/software/automake/manual/html_node/Conditionals.html. 28166# Check whether --enable-install-warnings was given. 28167if test ${enable_install_warnings+y} 28168then : 28169 enableval=$enable_install_warnings; case "${enableval}" in 28170 yes) install_warnings=true ;; 28171 no) install_warnings=false ;; 28172 *) as_fn_error $? "bad value ${enableval} for --enable-install-warnings" "$LINENO" 5 ;; 28173 esac 28174else $as_nop 28175 install_warnings=true 28176fi 28177 28178 if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then 28179 INSTALL_WARNINGS_TRUE= 28180 INSTALL_WARNINGS_FALSE='#' 28181else 28182 INSTALL_WARNINGS_TRUE='#' 28183 INSTALL_WARNINGS_FALSE= 28184fi 28185 28186 28187USE_EXTERNAL_EASTASIANWIDTH=no 28188 28189# Check whether --with-external-Unicode-EastAsianWidth was given. 28190if test ${with_external_Unicode_EastAsianWidth+y} 28191then : 28192 withval=$with_external_Unicode_EastAsianWidth; if test $withval = 'yes'; then 28193 USE_EXTERNAL_EASTASIANWIDTH=yes 28194 fi 28195 28196fi 28197 28198 28199 28200 28201USE_EXTERNAL_UNIDECODE=no 28202 28203# Check whether --with-external-Text-Unidecode was given. 28204if test ${with_external_Text_Unidecode+y} 28205then : 28206 withval=$with_external_Text_Unidecode; if test $withval = 'yes'; then 28207 USE_EXTERNAL_UNIDECODE=yes 28208 fi 28209 28210fi 28211 28212 28213 28214 28215 28216# i18n support. To update to a new version of gettext, run: 28217# gettextize -f --po-dir=po --po-dir=po_document 28218# See http://gnu.org/s/gnulib/manual/html_node/gettextize-and-autopoint.html. 28219 28220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 28221printf %s "checking for a sed that does not truncate output... " >&6; } 28222if test ${ac_cv_path_SED+y} 28223then : 28224 printf %s "(cached) " >&6 28225else $as_nop 28226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 28227 for ac_i in 1 2 3 4 5 6 7; do 28228 ac_script="$ac_script$as_nl$ac_script" 28229 done 28230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 28231 { ac_script=; unset ac_script;} 28232 if test -z "$SED"; then 28233 ac_path_SED_found=false 28234 # Loop through the user's path and test for each of PROGNAME-LIST 28235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28236for as_dir in $PATH 28237do 28238 IFS=$as_save_IFS 28239 case $as_dir in #((( 28240 '') as_dir=./ ;; 28241 */) ;; 28242 *) as_dir=$as_dir/ ;; 28243 esac 28244 for ac_prog in sed gsed 28245 do 28246 for ac_exec_ext in '' $ac_executable_extensions; do 28247 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 28248 as_fn_executable_p "$ac_path_SED" || continue 28249# Check for GNU ac_path_SED and select it if it is found. 28250 # Check for GNU $ac_path_SED 28251case `"$ac_path_SED" --version 2>&1` in 28252*GNU*) 28253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 28254*) 28255 ac_count=0 28256 printf %s 0123456789 >"conftest.in" 28257 while : 28258 do 28259 cat "conftest.in" "conftest.in" >"conftest.tmp" 28260 mv "conftest.tmp" "conftest.in" 28261 cp "conftest.in" "conftest.nl" 28262 printf "%s\n" '' >> "conftest.nl" 28263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 28264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 28265 as_fn_arith $ac_count + 1 && ac_count=$as_val 28266 if test $ac_count -gt ${ac_path_SED_max-0}; then 28267 # Best one so far, save it but keep looking for a better one 28268 ac_cv_path_SED="$ac_path_SED" 28269 ac_path_SED_max=$ac_count 28270 fi 28271 # 10*(2^10) chars as input seems more than enough 28272 test $ac_count -gt 10 && break 28273 done 28274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 28275esac 28276 28277 $ac_path_SED_found && break 3 28278 done 28279 done 28280 done 28281IFS=$as_save_IFS 28282 if test -z "$ac_cv_path_SED"; then 28283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 28284 fi 28285else 28286 ac_cv_path_SED=$SED 28287fi 28288 28289fi 28290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 28291printf "%s\n" "$ac_cv_path_SED" >&6; } 28292 SED="$ac_cv_path_SED" 28293 rm -f conftest.sed 28294 28295 28296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 28297printf %s "checking whether NLS is requested... " >&6; } 28298 # Check whether --enable-nls was given. 28299if test ${enable_nls+y} 28300then : 28301 enableval=$enable_nls; USE_NLS=$enableval 28302else $as_nop 28303 USE_NLS=yes 28304fi 28305 28306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 28307printf "%s\n" "$USE_NLS" >&6; } 28308 28309 28310 28311 28312 GETTEXT_MACRO_VERSION=0.20 28313 28314 28315 28316 28317# Prepare PATH_SEPARATOR. 28318# The user is always right. 28319if test "${PATH_SEPARATOR+set}" != set; then 28320 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 28321 # contains only /bin. Note that ksh looks also at the FPATH variable, 28322 # so we have to set that as well for the test. 28323 PATH_SEPARATOR=: 28324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28325 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28326 || PATH_SEPARATOR=';' 28327 } 28328fi 28329 28330# Find out how to test for executable files. Don't use a zero-byte file, 28331# as systems may use methods other than mode bits to determine executability. 28332cat >conf$$.file <<_ASEOF 28333#! /bin/sh 28334exit 0 28335_ASEOF 28336chmod +x conf$$.file 28337if test -x conf$$.file >/dev/null 2>&1; then 28338 ac_executable_p="test -x" 28339else 28340 ac_executable_p="test -f" 28341fi 28342rm -f conf$$.file 28343 28344# Extract the first word of "msgfmt", so it can be a program name with args. 28345set dummy msgfmt; ac_word=$2 28346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28347printf %s "checking for $ac_word... " >&6; } 28348if test ${ac_cv_path_MSGFMT+y} 28349then : 28350 printf %s "(cached) " >&6 28351else $as_nop 28352 case "$MSGFMT" in 28353 [\\/]* | ?:[\\/]*) 28354 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 28355 ;; 28356 *) 28357 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 28358 for ac_dir in $PATH; do 28359 IFS="$ac_save_IFS" 28360 test -z "$ac_dir" && ac_dir=. 28361 for ac_exec_ext in '' $ac_executable_extensions; do 28362 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 28363 echo "$as_me: trying $ac_dir/$ac_word..." >&5 28364 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 28365 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 28366 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 28367 break 2 28368 fi 28369 fi 28370 done 28371 done 28372 IFS="$ac_save_IFS" 28373 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 28374 ;; 28375esac 28376fi 28377MSGFMT="$ac_cv_path_MSGFMT" 28378if test "$MSGFMT" != ":"; then 28379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 28380printf "%s\n" "$MSGFMT" >&6; } 28381else 28382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28383printf "%s\n" "no" >&6; } 28384fi 28385 28386 # Extract the first word of "gmsgfmt", so it can be a program name with args. 28387set dummy gmsgfmt; ac_word=$2 28388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28389printf %s "checking for $ac_word... " >&6; } 28390if test ${ac_cv_path_GMSGFMT+y} 28391then : 28392 printf %s "(cached) " >&6 28393else $as_nop 28394 case $GMSGFMT in 28395 [\\/]* | ?:[\\/]*) 28396 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 28397 ;; 28398 *) 28399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28400for as_dir in $PATH 28401do 28402 IFS=$as_save_IFS 28403 case $as_dir in #((( 28404 '') as_dir=./ ;; 28405 */) ;; 28406 *) as_dir=$as_dir/ ;; 28407 esac 28408 for ac_exec_ext in '' $ac_executable_extensions; do 28409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28410 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" 28411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28412 break 2 28413 fi 28414done 28415 done 28416IFS=$as_save_IFS 28417 28418 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 28419 ;; 28420esac 28421fi 28422GMSGFMT=$ac_cv_path_GMSGFMT 28423if test -n "$GMSGFMT"; then 28424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 28425printf "%s\n" "$GMSGFMT" >&6; } 28426else 28427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28428printf "%s\n" "no" >&6; } 28429fi 28430 28431 28432 28433 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 28434 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 28435 *) GMSGFMT_015=$GMSGFMT ;; 28436 esac 28437 28438 28439 28440# Prepare PATH_SEPARATOR. 28441# The user is always right. 28442if test "${PATH_SEPARATOR+set}" != set; then 28443 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 28444 # contains only /bin. Note that ksh looks also at the FPATH variable, 28445 # so we have to set that as well for the test. 28446 PATH_SEPARATOR=: 28447 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28448 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28449 || PATH_SEPARATOR=';' 28450 } 28451fi 28452 28453# Find out how to test for executable files. Don't use a zero-byte file, 28454# as systems may use methods other than mode bits to determine executability. 28455cat >conf$$.file <<_ASEOF 28456#! /bin/sh 28457exit 0 28458_ASEOF 28459chmod +x conf$$.file 28460if test -x conf$$.file >/dev/null 2>&1; then 28461 ac_executable_p="test -x" 28462else 28463 ac_executable_p="test -f" 28464fi 28465rm -f conf$$.file 28466 28467# Extract the first word of "xgettext", so it can be a program name with args. 28468set dummy xgettext; ac_word=$2 28469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28470printf %s "checking for $ac_word... " >&6; } 28471if test ${ac_cv_path_XGETTEXT+y} 28472then : 28473 printf %s "(cached) " >&6 28474else $as_nop 28475 case "$XGETTEXT" in 28476 [\\/]* | ?:[\\/]*) 28477 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 28478 ;; 28479 *) 28480 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 28481 for ac_dir in $PATH; do 28482 IFS="$ac_save_IFS" 28483 test -z "$ac_dir" && ac_dir=. 28484 for ac_exec_ext in '' $ac_executable_extensions; do 28485 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 28486 echo "$as_me: trying $ac_dir/$ac_word..." >&5 28487 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 28488 (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 28489 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 28490 break 2 28491 fi 28492 fi 28493 done 28494 done 28495 IFS="$ac_save_IFS" 28496 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 28497 ;; 28498esac 28499fi 28500XGETTEXT="$ac_cv_path_XGETTEXT" 28501if test "$XGETTEXT" != ":"; then 28502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 28503printf "%s\n" "$XGETTEXT" >&6; } 28504else 28505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28506printf "%s\n" "no" >&6; } 28507fi 28508 28509 rm -f messages.po 28510 28511 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 28512 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 28513 *) XGETTEXT_015=$XGETTEXT ;; 28514 esac 28515 28516 28517 28518# Prepare PATH_SEPARATOR. 28519# The user is always right. 28520if test "${PATH_SEPARATOR+set}" != set; then 28521 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 28522 # contains only /bin. Note that ksh looks also at the FPATH variable, 28523 # so we have to set that as well for the test. 28524 PATH_SEPARATOR=: 28525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28526 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 28527 || PATH_SEPARATOR=';' 28528 } 28529fi 28530 28531# Find out how to test for executable files. Don't use a zero-byte file, 28532# as systems may use methods other than mode bits to determine executability. 28533cat >conf$$.file <<_ASEOF 28534#! /bin/sh 28535exit 0 28536_ASEOF 28537chmod +x conf$$.file 28538if test -x conf$$.file >/dev/null 2>&1; then 28539 ac_executable_p="test -x" 28540else 28541 ac_executable_p="test -f" 28542fi 28543rm -f conf$$.file 28544 28545# Extract the first word of "msgmerge", so it can be a program name with args. 28546set dummy msgmerge; ac_word=$2 28547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28548printf %s "checking for $ac_word... " >&6; } 28549if test ${ac_cv_path_MSGMERGE+y} 28550then : 28551 printf %s "(cached) " >&6 28552else $as_nop 28553 case "$MSGMERGE" in 28554 [\\/]* | ?:[\\/]*) 28555 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 28556 ;; 28557 *) 28558 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 28559 for ac_dir in $PATH; do 28560 IFS="$ac_save_IFS" 28561 test -z "$ac_dir" && ac_dir=. 28562 for ac_exec_ext in '' $ac_executable_extensions; do 28563 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 28564 echo "$as_me: trying $ac_dir/$ac_word..." >&5 28565 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 28566 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 28567 break 2 28568 fi 28569 fi 28570 done 28571 done 28572 IFS="$ac_save_IFS" 28573 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 28574 ;; 28575esac 28576fi 28577MSGMERGE="$ac_cv_path_MSGMERGE" 28578if test "$MSGMERGE" != ":"; then 28579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 28580printf "%s\n" "$MSGMERGE" >&6; } 28581else 28582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28583printf "%s\n" "no" >&6; } 28584fi 28585 28586 28587 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 28588 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 28589 else 28590 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 28591 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 28592 else 28593 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 28594 fi 28595 fi 28596 28597 28598 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 28599 28600 28601 ac_config_commands="$ac_config_commands po-directories" 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 28628printf %s "checking for CFPreferencesCopyAppValue... " >&6; } 28629if test ${gt_cv_func_CFPreferencesCopyAppValue+y} 28630then : 28631 printf %s "(cached) " >&6 28632else $as_nop 28633 gt_save_LIBS="$LIBS" 28634 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28636/* end confdefs.h. */ 28637#include <CoreFoundation/CFPreferences.h> 28638int 28639main (void) 28640{ 28641CFPreferencesCopyAppValue(NULL, NULL) 28642 ; 28643 return 0; 28644} 28645_ACEOF 28646if ac_fn_c_try_link "$LINENO" 28647then : 28648 gt_cv_func_CFPreferencesCopyAppValue=yes 28649else $as_nop 28650 gt_cv_func_CFPreferencesCopyAppValue=no 28651fi 28652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28653 conftest$ac_exeext conftest.$ac_ext 28654 LIBS="$gt_save_LIBS" 28655fi 28656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 28657printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 28658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 28659 28660printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 28661 28662 fi 28663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 28664printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 28665if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 28666then : 28667 printf %s "(cached) " >&6 28668else $as_nop 28669 gt_save_LIBS="$LIBS" 28670 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 28671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28672/* end confdefs.h. */ 28673#include <CoreFoundation/CFLocale.h> 28674int 28675main (void) 28676{ 28677CFLocaleCopyPreferredLanguages(); 28678 ; 28679 return 0; 28680} 28681_ACEOF 28682if ac_fn_c_try_link "$LINENO" 28683then : 28684 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 28685else $as_nop 28686 gt_cv_func_CFLocaleCopyPreferredLanguages=no 28687fi 28688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28689 conftest$ac_exeext conftest.$ac_ext 28690 LIBS="$gt_save_LIBS" 28691fi 28692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 28693printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 28694 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 28695 28696printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 28697 28698 fi 28699 INTL_MACOSX_LIBS= 28700 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 28701 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 28702 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 28703 fi 28704 28705 28706 28707 28708 28709 28710 LIBINTL= 28711 LTLIBINTL= 28712 POSUB= 28713 28714 case " $gt_needs " in 28715 *" need-formatstring-macros "*) gt_api_version=3 ;; 28716 *" need-ngettext "*) gt_api_version=2 ;; 28717 *) gt_api_version=1 ;; 28718 esac 28719 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 28720 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 28721 28722 if test "$USE_NLS" = "yes"; then 28723 gt_use_preinstalled_gnugettext=no 28724 28725 28726 if test $gt_api_version -ge 3; then 28727 gt_revision_test_code=' 28728#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 28729#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 28730#endif 28731typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 28732' 28733 else 28734 gt_revision_test_code= 28735 fi 28736 if test $gt_api_version -ge 2; then 28737 gt_expression_test_code=' + * ngettext ("", "", 0)' 28738 else 28739 gt_expression_test_code= 28740 fi 28741 28742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 28743printf %s "checking for GNU gettext in libc... " >&6; } 28744if eval test \${$gt_func_gnugettext_libc+y} 28745then : 28746 printf %s "(cached) " >&6 28747else $as_nop 28748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28749/* end confdefs.h. */ 28750 28751#include <libintl.h> 28752#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 28753extern int _nl_msg_cat_cntr; 28754extern int *_nl_domain_bindings; 28755#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 28756#else 28757#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 28758#endif 28759$gt_revision_test_code 28760 28761int 28762main (void) 28763{ 28764 28765bindtextdomain ("", ""); 28766return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 28767 28768 ; 28769 return 0; 28770} 28771_ACEOF 28772if ac_fn_c_try_link "$LINENO" 28773then : 28774 eval "$gt_func_gnugettext_libc=yes" 28775else $as_nop 28776 eval "$gt_func_gnugettext_libc=no" 28777fi 28778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28779 conftest$ac_exeext conftest.$ac_ext 28780fi 28781eval ac_res=\$$gt_func_gnugettext_libc 28782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28783printf "%s\n" "$ac_res" >&6; } 28784 28785 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 28786 28787 28788 28789 28790 28791 am_save_CPPFLAGS="$CPPFLAGS" 28792 28793 for element in $INCICONV; do 28794 haveit= 28795 for x in $CPPFLAGS; do 28796 28797 acl_save_prefix="$prefix" 28798 prefix="$acl_final_prefix" 28799 acl_save_exec_prefix="$exec_prefix" 28800 exec_prefix="$acl_final_exec_prefix" 28801 eval x=\"$x\" 28802 exec_prefix="$acl_save_exec_prefix" 28803 prefix="$acl_save_prefix" 28804 28805 if test "X$x" = "X$element"; then 28806 haveit=yes 28807 break 28808 fi 28809 done 28810 if test -z "$haveit"; then 28811 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 28812 fi 28813 done 28814 28815 28816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 28817printf %s "checking for iconv... " >&6; } 28818if test ${am_cv_func_iconv+y} 28819then : 28820 printf %s "(cached) " >&6 28821else $as_nop 28822 28823 am_cv_func_iconv="no, consider installing GNU libiconv" 28824 am_cv_lib_iconv=no 28825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28826/* end confdefs.h. */ 28827 28828#include <stdlib.h> 28829#include <iconv.h> 28830 28831int 28832main (void) 28833{ 28834iconv_t cd = iconv_open("",""); 28835 iconv(cd,NULL,NULL,NULL,NULL); 28836 iconv_close(cd); 28837 ; 28838 return 0; 28839} 28840_ACEOF 28841if ac_fn_c_try_link "$LINENO" 28842then : 28843 am_cv_func_iconv=yes 28844fi 28845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28846 conftest$ac_exeext conftest.$ac_ext 28847 if test "$am_cv_func_iconv" != yes; then 28848 am_save_LIBS="$LIBS" 28849 LIBS="$LIBS $LIBICONV" 28850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28851/* end confdefs.h. */ 28852 28853#include <stdlib.h> 28854#include <iconv.h> 28855 28856int 28857main (void) 28858{ 28859iconv_t cd = iconv_open("",""); 28860 iconv(cd,NULL,NULL,NULL,NULL); 28861 iconv_close(cd); 28862 ; 28863 return 0; 28864} 28865_ACEOF 28866if ac_fn_c_try_link "$LINENO" 28867then : 28868 am_cv_lib_iconv=yes 28869 am_cv_func_iconv=yes 28870fi 28871rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28872 conftest$ac_exeext conftest.$ac_ext 28873 LIBS="$am_save_LIBS" 28874 fi 28875 28876fi 28877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 28878printf "%s\n" "$am_cv_func_iconv" >&6; } 28879 if test "$am_cv_func_iconv" = yes; then 28880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 28881printf %s "checking for working iconv... " >&6; } 28882if test ${am_cv_func_iconv_works+y} 28883then : 28884 printf %s "(cached) " >&6 28885else $as_nop 28886 28887 am_save_LIBS="$LIBS" 28888 if test $am_cv_lib_iconv = yes; then 28889 LIBS="$LIBS $LIBICONV" 28890 fi 28891 am_cv_func_iconv_works=no 28892 for ac_iconv_const in '' 'const'; do 28893 if test "$cross_compiling" = yes 28894then : 28895 case "$host_os" in 28896 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 28897 *) am_cv_func_iconv_works="guessing yes" ;; 28898 esac 28899else $as_nop 28900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28901/* end confdefs.h. */ 28902 28903#include <iconv.h> 28904#include <string.h> 28905 28906#ifndef ICONV_CONST 28907# define ICONV_CONST $ac_iconv_const 28908#endif 28909 28910int 28911main (void) 28912{ 28913int result = 0; 28914 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 28915 successful returns. This is even documented in 28916 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 28917 { 28918 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 28919 if (cd_utf8_to_88591 != (iconv_t)(-1)) 28920 { 28921 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 28922 char buf[10]; 28923 ICONV_CONST char *inptr = input; 28924 size_t inbytesleft = strlen (input); 28925 char *outptr = buf; 28926 size_t outbytesleft = sizeof (buf); 28927 size_t res = iconv (cd_utf8_to_88591, 28928 &inptr, &inbytesleft, 28929 &outptr, &outbytesleft); 28930 if (res == 0) 28931 result |= 1; 28932 iconv_close (cd_utf8_to_88591); 28933 } 28934 } 28935 /* Test against Solaris 10 bug: Failures are not distinguishable from 28936 successful returns. */ 28937 { 28938 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 28939 if (cd_ascii_to_88591 != (iconv_t)(-1)) 28940 { 28941 static ICONV_CONST char input[] = "\263"; 28942 char buf[10]; 28943 ICONV_CONST char *inptr = input; 28944 size_t inbytesleft = strlen (input); 28945 char *outptr = buf; 28946 size_t outbytesleft = sizeof (buf); 28947 size_t res = iconv (cd_ascii_to_88591, 28948 &inptr, &inbytesleft, 28949 &outptr, &outbytesleft); 28950 if (res == 0) 28951 result |= 2; 28952 iconv_close (cd_ascii_to_88591); 28953 } 28954 } 28955 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 28956 { 28957 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 28958 if (cd_88591_to_utf8 != (iconv_t)(-1)) 28959 { 28960 static ICONV_CONST char input[] = "\304"; 28961 static char buf[2] = { (char)0xDE, (char)0xAD }; 28962 ICONV_CONST char *inptr = input; 28963 size_t inbytesleft = 1; 28964 char *outptr = buf; 28965 size_t outbytesleft = 1; 28966 size_t res = iconv (cd_88591_to_utf8, 28967 &inptr, &inbytesleft, 28968 &outptr, &outbytesleft); 28969 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 28970 result |= 4; 28971 iconv_close (cd_88591_to_utf8); 28972 } 28973 } 28974#if 0 /* This bug could be worked around by the caller. */ 28975 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 28976 { 28977 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 28978 if (cd_88591_to_utf8 != (iconv_t)(-1)) 28979 { 28980 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 28981 char buf[50]; 28982 ICONV_CONST char *inptr = input; 28983 size_t inbytesleft = strlen (input); 28984 char *outptr = buf; 28985 size_t outbytesleft = sizeof (buf); 28986 size_t res = iconv (cd_88591_to_utf8, 28987 &inptr, &inbytesleft, 28988 &outptr, &outbytesleft); 28989 if ((int)res > 0) 28990 result |= 8; 28991 iconv_close (cd_88591_to_utf8); 28992 } 28993 } 28994#endif 28995 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 28996 provided. */ 28997 { 28998 /* Try standardized names. */ 28999 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 29000 /* Try IRIX, OSF/1 names. */ 29001 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 29002 /* Try AIX names. */ 29003 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 29004 /* Try HP-UX names. */ 29005 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 29006 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 29007 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 29008 result |= 16; 29009 if (cd1 != (iconv_t)(-1)) 29010 iconv_close (cd1); 29011 if (cd2 != (iconv_t)(-1)) 29012 iconv_close (cd2); 29013 if (cd3 != (iconv_t)(-1)) 29014 iconv_close (cd3); 29015 if (cd4 != (iconv_t)(-1)) 29016 iconv_close (cd4); 29017 } 29018 return result; 29019 29020 ; 29021 return 0; 29022} 29023_ACEOF 29024if ac_fn_c_try_run "$LINENO" 29025then : 29026 am_cv_func_iconv_works=yes 29027fi 29028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29029 conftest.$ac_objext conftest.beam conftest.$ac_ext 29030fi 29031 29032 test "$am_cv_func_iconv_works" = no || break 29033 done 29034 LIBS="$am_save_LIBS" 29035 29036fi 29037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 29038printf "%s\n" "$am_cv_func_iconv_works" >&6; } 29039 case "$am_cv_func_iconv_works" in 29040 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 29041 *) am_func_iconv=yes ;; 29042 esac 29043 else 29044 am_func_iconv=no am_cv_lib_iconv=no 29045 fi 29046 if test "$am_func_iconv" = yes; then 29047 29048printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 29049 29050 fi 29051 if test "$am_cv_lib_iconv" = yes; then 29052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 29053printf %s "checking how to link with libiconv... " >&6; } 29054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 29055printf "%s\n" "$LIBICONV" >&6; } 29056 else 29057 CPPFLAGS="$am_save_CPPFLAGS" 29058 LIBICONV= 29059 LTLIBICONV= 29060 fi 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 use_additional=yes 29072 29073 acl_save_prefix="$prefix" 29074 prefix="$acl_final_prefix" 29075 acl_save_exec_prefix="$exec_prefix" 29076 exec_prefix="$acl_final_exec_prefix" 29077 29078 eval additional_includedir=\"$includedir\" 29079 eval additional_libdir=\"$libdir\" 29080 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 29081 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 29082 29083 exec_prefix="$acl_save_exec_prefix" 29084 prefix="$acl_save_prefix" 29085 29086 29087# Check whether --with-libintl-prefix was given. 29088if test ${with_libintl_prefix+y} 29089then : 29090 withval=$with_libintl_prefix; 29091 if test "X$withval" = "Xno"; then 29092 use_additional=no 29093 else 29094 if test "X$withval" = "X"; then 29095 29096 acl_save_prefix="$prefix" 29097 prefix="$acl_final_prefix" 29098 acl_save_exec_prefix="$exec_prefix" 29099 exec_prefix="$acl_final_exec_prefix" 29100 29101 eval additional_includedir=\"$includedir\" 29102 eval additional_libdir=\"$libdir\" 29103 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 29104 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 29105 29106 exec_prefix="$acl_save_exec_prefix" 29107 prefix="$acl_save_prefix" 29108 29109 else 29110 additional_includedir="$withval/include" 29111 additional_libdir="$withval/$acl_libdirstem" 29112 additional_libdir2="$withval/$acl_libdirstem2" 29113 additional_libdir3="$withval/$acl_libdirstem3" 29114 fi 29115 fi 29116 29117fi 29118 29119 if test "X$additional_libdir2" = "X$additional_libdir"; then 29120 additional_libdir2= 29121 fi 29122 if test "X$additional_libdir3" = "X$additional_libdir"; then 29123 additional_libdir3= 29124 fi 29125 LIBINTL= 29126 LTLIBINTL= 29127 INCINTL= 29128 LIBINTL_PREFIX= 29129 HAVE_LIBINTL= 29130 rpathdirs= 29131 ltrpathdirs= 29132 names_already_handled= 29133 names_next_round='intl ' 29134 while test -n "$names_next_round"; do 29135 names_this_round="$names_next_round" 29136 names_next_round= 29137 for name in $names_this_round; do 29138 already_handled= 29139 for n in $names_already_handled; do 29140 if test "$n" = "$name"; then 29141 already_handled=yes 29142 break 29143 fi 29144 done 29145 if test -z "$already_handled"; then 29146 names_already_handled="$names_already_handled $name" 29147 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 29148 eval value=\"\$HAVE_LIB$uppername\" 29149 if test -n "$value"; then 29150 if test "$value" = yes; then 29151 eval value=\"\$LIB$uppername\" 29152 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 29153 eval value=\"\$LTLIB$uppername\" 29154 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 29155 else 29156 : 29157 fi 29158 else 29159 found_dir= 29160 found_la= 29161 found_so= 29162 found_a= 29163 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 29164 if test -n "$acl_shlibext"; then 29165 shrext=".$acl_shlibext" # typically: shrext=.so 29166 else 29167 shrext= 29168 fi 29169 if test $use_additional = yes; then 29170 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 29171 if test "X$found_dir" = "X"; then 29172 eval dir=\$$additional_libdir_variable 29173 if test -n "$dir"; then 29174 if test -n "$acl_shlibext"; then 29175 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 29176 found_dir="$dir" 29177 found_so="$dir/$libname$shrext" 29178 else 29179 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 29180 ver=`(cd "$dir" && \ 29181 for f in "$libname$shrext".*; do echo "$f"; done \ 29182 | sed -e "s,^$libname$shrext\\\\.,," \ 29183 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 29184 | sed 1q ) 2>/dev/null` 29185 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 29186 found_dir="$dir" 29187 found_so="$dir/$libname$shrext.$ver" 29188 fi 29189 else 29190 eval library_names=\"$acl_library_names_spec\" 29191 for f in $library_names; do 29192 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 29193 found_dir="$dir" 29194 found_so="$dir/$f" 29195 break 29196 fi 29197 done 29198 fi 29199 fi 29200 fi 29201 if test "X$found_dir" = "X"; then 29202 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 29203 found_dir="$dir" 29204 found_a="$dir/$libname.$acl_libext" 29205 fi 29206 fi 29207 if test "X$found_dir" != "X"; then 29208 if test -f "$dir/$libname.la"; then 29209 found_la="$dir/$libname.la" 29210 fi 29211 fi 29212 fi 29213 fi 29214 done 29215 fi 29216 if test "X$found_dir" = "X"; then 29217 for x in $LDFLAGS $LTLIBINTL; do 29218 29219 acl_save_prefix="$prefix" 29220 prefix="$acl_final_prefix" 29221 acl_save_exec_prefix="$exec_prefix" 29222 exec_prefix="$acl_final_exec_prefix" 29223 eval x=\"$x\" 29224 exec_prefix="$acl_save_exec_prefix" 29225 prefix="$acl_save_prefix" 29226 29227 case "$x" in 29228 -L*) 29229 dir=`echo "X$x" | sed -e 's/^X-L//'` 29230 if test -n "$acl_shlibext"; then 29231 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 29232 found_dir="$dir" 29233 found_so="$dir/$libname$shrext" 29234 else 29235 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 29236 ver=`(cd "$dir" && \ 29237 for f in "$libname$shrext".*; do echo "$f"; done \ 29238 | sed -e "s,^$libname$shrext\\\\.,," \ 29239 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 29240 | sed 1q ) 2>/dev/null` 29241 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 29242 found_dir="$dir" 29243 found_so="$dir/$libname$shrext.$ver" 29244 fi 29245 else 29246 eval library_names=\"$acl_library_names_spec\" 29247 for f in $library_names; do 29248 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 29249 found_dir="$dir" 29250 found_so="$dir/$f" 29251 break 29252 fi 29253 done 29254 fi 29255 fi 29256 fi 29257 if test "X$found_dir" = "X"; then 29258 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 29259 found_dir="$dir" 29260 found_a="$dir/$libname.$acl_libext" 29261 fi 29262 fi 29263 if test "X$found_dir" != "X"; then 29264 if test -f "$dir/$libname.la"; then 29265 found_la="$dir/$libname.la" 29266 fi 29267 fi 29268 ;; 29269 esac 29270 if test "X$found_dir" != "X"; then 29271 break 29272 fi 29273 done 29274 fi 29275 if test "X$found_dir" != "X"; then 29276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 29277 if test "X$found_so" != "X"; then 29278 if test "$enable_rpath" = no \ 29279 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 29280 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 29281 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 29282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 29283 else 29284 haveit= 29285 for x in $ltrpathdirs; do 29286 if test "X$x" = "X$found_dir"; then 29287 haveit=yes 29288 break 29289 fi 29290 done 29291 if test -z "$haveit"; then 29292 ltrpathdirs="$ltrpathdirs $found_dir" 29293 fi 29294 if test "$acl_hardcode_direct" = yes; then 29295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 29296 else 29297 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 29298 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 29299 haveit= 29300 for x in $rpathdirs; do 29301 if test "X$x" = "X$found_dir"; then 29302 haveit=yes 29303 break 29304 fi 29305 done 29306 if test -z "$haveit"; then 29307 rpathdirs="$rpathdirs $found_dir" 29308 fi 29309 else 29310 haveit= 29311 for x in $LDFLAGS $LIBINTL; do 29312 29313 acl_save_prefix="$prefix" 29314 prefix="$acl_final_prefix" 29315 acl_save_exec_prefix="$exec_prefix" 29316 exec_prefix="$acl_final_exec_prefix" 29317 eval x=\"$x\" 29318 exec_prefix="$acl_save_exec_prefix" 29319 prefix="$acl_save_prefix" 29320 29321 if test "X$x" = "X-L$found_dir"; then 29322 haveit=yes 29323 break 29324 fi 29325 done 29326 if test -z "$haveit"; then 29327 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 29328 fi 29329 if test "$acl_hardcode_minus_L" != no; then 29330 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 29331 else 29332 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 29333 fi 29334 fi 29335 fi 29336 fi 29337 else 29338 if test "X$found_a" != "X"; then 29339 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 29340 else 29341 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 29342 fi 29343 fi 29344 additional_includedir= 29345 case "$found_dir" in 29346 */$acl_libdirstem | */$acl_libdirstem/) 29347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 29348 if test "$name" = 'intl'; then 29349 LIBINTL_PREFIX="$basedir" 29350 fi 29351 additional_includedir="$basedir/include" 29352 ;; 29353 */$acl_libdirstem2 | */$acl_libdirstem2/) 29354 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 29355 if test "$name" = 'intl'; then 29356 LIBINTL_PREFIX="$basedir" 29357 fi 29358 additional_includedir="$basedir/include" 29359 ;; 29360 */$acl_libdirstem3 | */$acl_libdirstem3/) 29361 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 29362 if test "$name" = 'intl'; then 29363 LIBINTL_PREFIX="$basedir" 29364 fi 29365 additional_includedir="$basedir/include" 29366 ;; 29367 esac 29368 if test "X$additional_includedir" != "X"; then 29369 if test "X$additional_includedir" != "X/usr/include"; then 29370 haveit= 29371 if test "X$additional_includedir" = "X/usr/local/include"; then 29372 if test -n "$GCC"; then 29373 case $host_os in 29374 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 29375 esac 29376 fi 29377 fi 29378 if test -z "$haveit"; then 29379 for x in $CPPFLAGS $INCINTL; do 29380 29381 acl_save_prefix="$prefix" 29382 prefix="$acl_final_prefix" 29383 acl_save_exec_prefix="$exec_prefix" 29384 exec_prefix="$acl_final_exec_prefix" 29385 eval x=\"$x\" 29386 exec_prefix="$acl_save_exec_prefix" 29387 prefix="$acl_save_prefix" 29388 29389 if test "X$x" = "X-I$additional_includedir"; then 29390 haveit=yes 29391 break 29392 fi 29393 done 29394 if test -z "$haveit"; then 29395 if test -d "$additional_includedir"; then 29396 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 29397 fi 29398 fi 29399 fi 29400 fi 29401 fi 29402 if test -n "$found_la"; then 29403 save_libdir="$libdir" 29404 case "$found_la" in 29405 */* | *\\*) . "$found_la" ;; 29406 *) . "./$found_la" ;; 29407 esac 29408 libdir="$save_libdir" 29409 for dep in $dependency_libs; do 29410 case "$dep" in 29411 -L*) 29412 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 29413 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 29414 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 29415 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 29416 haveit= 29417 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 29418 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 29419 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 29420 if test -n "$GCC"; then 29421 case $host_os in 29422 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 29423 esac 29424 fi 29425 fi 29426 if test -z "$haveit"; then 29427 haveit= 29428 for x in $LDFLAGS $LIBINTL; do 29429 29430 acl_save_prefix="$prefix" 29431 prefix="$acl_final_prefix" 29432 acl_save_exec_prefix="$exec_prefix" 29433 exec_prefix="$acl_final_exec_prefix" 29434 eval x=\"$x\" 29435 exec_prefix="$acl_save_exec_prefix" 29436 prefix="$acl_save_prefix" 29437 29438 if test "X$x" = "X-L$dependency_libdir"; then 29439 haveit=yes 29440 break 29441 fi 29442 done 29443 if test -z "$haveit"; then 29444 if test -d "$dependency_libdir"; then 29445 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 29446 fi 29447 fi 29448 haveit= 29449 for x in $LDFLAGS $LTLIBINTL; do 29450 29451 acl_save_prefix="$prefix" 29452 prefix="$acl_final_prefix" 29453 acl_save_exec_prefix="$exec_prefix" 29454 exec_prefix="$acl_final_exec_prefix" 29455 eval x=\"$x\" 29456 exec_prefix="$acl_save_exec_prefix" 29457 prefix="$acl_save_prefix" 29458 29459 if test "X$x" = "X-L$dependency_libdir"; then 29460 haveit=yes 29461 break 29462 fi 29463 done 29464 if test -z "$haveit"; then 29465 if test -d "$dependency_libdir"; then 29466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 29467 fi 29468 fi 29469 fi 29470 fi 29471 ;; 29472 -R*) 29473 dir=`echo "X$dep" | sed -e 's/^X-R//'` 29474 if test "$enable_rpath" != no; then 29475 haveit= 29476 for x in $rpathdirs; do 29477 if test "X$x" = "X$dir"; then 29478 haveit=yes 29479 break 29480 fi 29481 done 29482 if test -z "$haveit"; then 29483 rpathdirs="$rpathdirs $dir" 29484 fi 29485 haveit= 29486 for x in $ltrpathdirs; do 29487 if test "X$x" = "X$dir"; then 29488 haveit=yes 29489 break 29490 fi 29491 done 29492 if test -z "$haveit"; then 29493 ltrpathdirs="$ltrpathdirs $dir" 29494 fi 29495 fi 29496 ;; 29497 -l*) 29498 dep=`echo "X$dep" | sed -e 's/^X-l//'` 29499 if test "X$dep" != Xc \ 29500 || case $host_os in 29501 linux* | gnu* | k*bsd*-gnu) false ;; 29502 *) true ;; 29503 esac; then 29504 names_next_round="$names_next_round $dep" 29505 fi 29506 ;; 29507 *.la) 29508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 29509 ;; 29510 *) 29511 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 29512 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 29513 ;; 29514 esac 29515 done 29516 fi 29517 else 29518 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 29519 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 29520 fi 29521 fi 29522 fi 29523 done 29524 done 29525 if test "X$rpathdirs" != "X"; then 29526 if test -n "$acl_hardcode_libdir_separator"; then 29527 alldirs= 29528 for found_dir in $rpathdirs; do 29529 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 29530 done 29531 acl_save_libdir="$libdir" 29532 libdir="$alldirs" 29533 eval flag=\"$acl_hardcode_libdir_flag_spec\" 29534 libdir="$acl_save_libdir" 29535 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 29536 else 29537 for found_dir in $rpathdirs; do 29538 acl_save_libdir="$libdir" 29539 libdir="$found_dir" 29540 eval flag=\"$acl_hardcode_libdir_flag_spec\" 29541 libdir="$acl_save_libdir" 29542 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 29543 done 29544 fi 29545 fi 29546 if test "X$ltrpathdirs" != "X"; then 29547 for found_dir in $ltrpathdirs; do 29548 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 29549 done 29550 fi 29551 29552 29553 29554 29555 29556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 29557printf %s "checking for GNU gettext in libintl... " >&6; } 29558if eval test \${$gt_func_gnugettext_libintl+y} 29559then : 29560 printf %s "(cached) " >&6 29561else $as_nop 29562 gt_save_CPPFLAGS="$CPPFLAGS" 29563 CPPFLAGS="$CPPFLAGS $INCINTL" 29564 gt_save_LIBS="$LIBS" 29565 LIBS="$LIBS $LIBINTL" 29566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29567/* end confdefs.h. */ 29568 29569#include <libintl.h> 29570#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 29571extern int _nl_msg_cat_cntr; 29572extern 29573#ifdef __cplusplus 29574"C" 29575#endif 29576const char *_nl_expand_alias (const char *); 29577#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 29578#else 29579#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 29580#endif 29581$gt_revision_test_code 29582 29583int 29584main (void) 29585{ 29586 29587bindtextdomain ("", ""); 29588return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 29589 29590 ; 29591 return 0; 29592} 29593_ACEOF 29594if ac_fn_c_try_link "$LINENO" 29595then : 29596 eval "$gt_func_gnugettext_libintl=yes" 29597else $as_nop 29598 eval "$gt_func_gnugettext_libintl=no" 29599fi 29600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29601 conftest$ac_exeext conftest.$ac_ext 29602 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 29603 LIBS="$LIBS $LIBICONV" 29604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29605/* end confdefs.h. */ 29606 29607#include <libintl.h> 29608#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 29609extern int _nl_msg_cat_cntr; 29610extern 29611#ifdef __cplusplus 29612"C" 29613#endif 29614const char *_nl_expand_alias (const char *); 29615#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 29616#else 29617#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 29618#endif 29619$gt_revision_test_code 29620 29621int 29622main (void) 29623{ 29624 29625bindtextdomain ("", ""); 29626return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 29627 29628 ; 29629 return 0; 29630} 29631_ACEOF 29632if ac_fn_c_try_link "$LINENO" 29633then : 29634 LIBINTL="$LIBINTL $LIBICONV" 29635 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 29636 eval "$gt_func_gnugettext_libintl=yes" 29637 29638fi 29639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29640 conftest$ac_exeext conftest.$ac_ext 29641 fi 29642 CPPFLAGS="$gt_save_CPPFLAGS" 29643 LIBS="$gt_save_LIBS" 29644fi 29645eval ac_res=\$$gt_func_gnugettext_libintl 29646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29647printf "%s\n" "$ac_res" >&6; } 29648 fi 29649 29650 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 29651 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 29652 && test "$PACKAGE" != gettext-runtime \ 29653 && test "$PACKAGE" != gettext-tools; }; then 29654 gt_use_preinstalled_gnugettext=yes 29655 else 29656 LIBINTL= 29657 LTLIBINTL= 29658 INCINTL= 29659 fi 29660 29661 29662 29663 if test -n "$INTL_MACOSX_LIBS"; then 29664 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 29665 || test "$nls_cv_use_gnu_gettext" = "yes"; then 29666 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 29667 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 29668 fi 29669 fi 29670 29671 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 29672 || test "$nls_cv_use_gnu_gettext" = "yes"; then 29673 29674printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h 29675 29676 else 29677 USE_NLS=no 29678 fi 29679 fi 29680 29681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 29682printf %s "checking whether to use NLS... " >&6; } 29683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 29684printf "%s\n" "$USE_NLS" >&6; } 29685 if test "$USE_NLS" = "yes"; then 29686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 29687printf %s "checking where the gettext function comes from... " >&6; } 29688 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 29689 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 29690 gt_source="external libintl" 29691 else 29692 gt_source="libc" 29693 fi 29694 else 29695 gt_source="included intl directory" 29696 fi 29697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 29698printf "%s\n" "$gt_source" >&6; } 29699 fi 29700 29701 if test "$USE_NLS" = "yes"; then 29702 29703 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 29704 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 29705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 29706printf %s "checking how to link with libintl... " >&6; } 29707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 29708printf "%s\n" "$LIBINTL" >&6; } 29709 29710 for element in $INCINTL; do 29711 haveit= 29712 for x in $CPPFLAGS; do 29713 29714 acl_save_prefix="$prefix" 29715 prefix="$acl_final_prefix" 29716 acl_save_exec_prefix="$exec_prefix" 29717 exec_prefix="$acl_final_exec_prefix" 29718 eval x=\"$x\" 29719 exec_prefix="$acl_save_exec_prefix" 29720 prefix="$acl_save_prefix" 29721 29722 if test "X$x" = "X$element"; then 29723 haveit=yes 29724 break 29725 fi 29726 done 29727 if test -z "$haveit"; then 29728 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 29729 fi 29730 done 29731 29732 fi 29733 29734 29735printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h 29736 29737 29738printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h 29739 29740 fi 29741 29742 POSUB=po 29743 fi 29744 29745 29746 29747 INTLLIBS="$LIBINTL" 29748 29749 29750 29751 29752 29753 29754 29755USE_EXTERNAL_LIBINTL=no 29756 29757# Check whether --with-external-libintl-perl was given. 29758if test ${with_external_libintl_perl+y} 29759then : 29760 withval=$with_external_libintl_perl; if test $withval = 'yes'; then 29761 USE_EXTERNAL_LIBINTL=yes 29762 fi 29763 29764fi 29765 29766 29767 29768 29769# Check whether --enable-perl-xs was given. 29770if test ${enable_perl_xs+y} 29771then : 29772 enableval=$enable_perl_xs; enable_xs=$enableval 29773else $as_nop 29774 enable_xs=check 29775fi 29776 29777 29778# Set xs_srcdir to the path from XS builddir to srcdir 29779case $srcdir in 29780 .) # We are building in place. 29781 xs_srcdir=../.. ;; 29782 [\\/]* | ?:[\\/]* ) # Absolute name. 29783 xs_srcdir=$srcdir/tp ;; 29784 *) # Relative name. 29785 xs_srcdir=../../../$srcdir/tp ;; 29786esac 29787 29788# Pass on all the options we were given to the subsidiary configure 29789# script. 29790# Don't use AC_CONFIG_SUBDIRS for this because it isn't done right away, 29791# and we need it for the check that follows. 29792# We use the _AC_OUTPUT_SUBDIRS internal autoconf macro 29793# (in /usr/share/autoconf/autoconf/status.m4) for this in order to 29794# pass on the configure command line correctly; for example, adjusting 29795# paths. It is done in a subshell to be resilient against failure of the 29796# subsidiary configure script, which happens if the C compiler is found 29797# not to work. 29798# 29799save_subdirs=$subdirs 29800subdirs=tp/Texinfo/XS 29801( 29802# 29803# CONFIG_SUBDIRS section. 29804# 29805if test "$no_recursion" != yes; then 29806 29807 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 29808 # so they do not pile up. 29809 ac_sub_configure_args= 29810 ac_prev= 29811 eval "set x $ac_configure_args" 29812 shift 29813 for ac_arg 29814 do 29815 if test -n "$ac_prev"; then 29816 ac_prev= 29817 continue 29818 fi 29819 case $ac_arg in 29820 -cache-file | --cache-file | --cache-fil | --cache-fi \ 29821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 29822 ac_prev=cache_file ;; 29823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 29824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 29825 | --c=*) 29826 ;; 29827 --config-cache | -C) 29828 ;; 29829 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 29830 ac_prev=srcdir ;; 29831 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 29832 ;; 29833 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 29834 ac_prev=prefix ;; 29835 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 29836 ;; 29837 --disable-option-checking) 29838 ;; 29839 *) 29840 case $ac_arg in 29841 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 29842 esac 29843 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 29844 esac 29845 done 29846 29847 # Always prepend --prefix to ensure using the same prefix 29848 # in subdir configurations. 29849 ac_arg="--prefix=$prefix" 29850 case $ac_arg in 29851 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 29852 esac 29853 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 29854 29855 # Pass --silent 29856 if test "$silent" = yes; then 29857 ac_sub_configure_args="--silent $ac_sub_configure_args" 29858 fi 29859 29860 # Always prepend --disable-option-checking to silence warnings, since 29861 # different subdirs can have different --enable and --with options. 29862 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 29863 29864 ac_popdir=`pwd` 29865 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 29866 29867 # Do not complain, so a configure script can configure whichever 29868 # parts of a large source tree are present. 29869 test -d "$srcdir/$ac_dir" || continue 29870 29871 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 29872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 29873 printf "%s\n" "$ac_msg" >&6 29874 as_dir="$ac_dir"; as_fn_mkdir_p 29875 ac_builddir=. 29876 29877case "$ac_dir" in 29878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 29879*) 29880 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 29881 # A ".." for each directory in $ac_dir_suffix. 29882 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 29883 case $ac_top_builddir_sub in 29884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 29885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 29886 esac ;; 29887esac 29888ac_abs_top_builddir=$ac_pwd 29889ac_abs_builddir=$ac_pwd$ac_dir_suffix 29890# for backward compatibility: 29891ac_top_builddir=$ac_top_build_prefix 29892 29893case $srcdir in 29894 .) # We are building in place. 29895 ac_srcdir=. 29896 ac_top_srcdir=$ac_top_builddir_sub 29897 ac_abs_top_srcdir=$ac_pwd ;; 29898 [\\/]* | ?:[\\/]* ) # Absolute name. 29899 ac_srcdir=$srcdir$ac_dir_suffix; 29900 ac_top_srcdir=$srcdir 29901 ac_abs_top_srcdir=$srcdir ;; 29902 *) # Relative name. 29903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 29904 ac_top_srcdir=$ac_top_build_prefix$srcdir 29905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 29906esac 29907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 29908 29909 29910 cd "$ac_dir" 29911 29912 # Check for configure.gnu first; this name is used for a wrapper for 29913 # Metaconfig's "Configure" on case-insensitive file systems. 29914 if test -f "$ac_srcdir/configure.gnu"; then 29915 ac_sub_configure=$ac_srcdir/configure.gnu 29916 elif test -f "$ac_srcdir/configure"; then 29917 ac_sub_configure=$ac_srcdir/configure 29918 else 29919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 29920printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 29921 ac_sub_configure= 29922 fi 29923 29924 # The recursion is here. 29925 if test -n "$ac_sub_configure"; then 29926 # Make the cache file name correct relative to the subdirectory. 29927 case $cache_file in 29928 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 29929 *) # Relative name. 29930 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 29931 esac 29932 29933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 29934printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 29935 # The eval makes quoting arguments work. 29936 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 29937 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 29938 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 29939 fi 29940 29941 cd "$ac_popdir" 29942 done 29943fi 29944 ) || enable_xs=no 29945subdirs=$save_subdirs 29946 29947if test $enable_xs = no; then 29948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: building Perl extension (XS) modules will be disabled" >&5 29949printf "%s\n" "$as_me: building Perl extension (XS) modules will be disabled" >&6;} 29950fi 29951 29952if test $enable_xs = check; then 29953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can build Perl extension (XS) modules" >&5 29954printf %s "checking whether we can build Perl extension (XS) modules... " >&6; } 29955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 29956printf "%s\n" "" >&6; } 29957 enable_xs=no 29958 (cd tp/Texinfo/XS \ 29959 && make clean \ 29960 && make TestXS.la \ 29961 && TEXINFO_XS=debug ; export TEXINFO_XS \ 29962 && ${PERL} -I . \ 29963 -I ${xs_srcdir} \ 29964 -e 'require Texinfo::XS::TestXS;' \ 29965 | grep 'message from XS module') \ 29966 && enable_xs=yes 29967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can build Perl extension (XS) modules" >&5 29968printf %s "checking whether we can build Perl extension (XS) modules... " >&6; } 29969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xs" >&5 29970printf "%s\n" "$enable_xs" >&6; } 29971fi 29972 29973 29974 29975 if test "z$enable_xs" = zno; then 29976 DISABLE_XS_TRUE= 29977 DISABLE_XS_FALSE='#' 29978else 29979 DISABLE_XS_TRUE='#' 29980 DISABLE_XS_FALSE= 29981fi 29982 29983 29984# Texinfo JS Interface 29985npm_path="${srcdir}/js/node_modules/.bin${PATH_SEPARATOR}$PATH" 29986 29987# Extract the first word of "eslint", so it can be a program name with args. 29988set dummy eslint; ac_word=$2 29989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29990printf %s "checking for $ac_word... " >&6; } 29991if test ${ac_cv_path_ESLINT+y} 29992then : 29993 printf %s "(cached) " >&6 29994else $as_nop 29995 case $ESLINT in 29996 [\\/]* | ?:[\\/]*) 29997 ac_cv_path_ESLINT="$ESLINT" # Let the user override the test with a path. 29998 ;; 29999 *) 30000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30001for as_dir in $npm_path 30002do 30003 IFS=$as_save_IFS 30004 case $as_dir in #((( 30005 '') as_dir=./ ;; 30006 */) ;; 30007 *) as_dir=$as_dir/ ;; 30008 esac 30009 for ac_exec_ext in '' $ac_executable_extensions; do 30010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30011 ac_cv_path_ESLINT="$as_dir$ac_word$ac_exec_ext" 30012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30013 break 2 30014 fi 30015done 30016 done 30017IFS=$as_save_IFS 30018 30019 ;; 30020esac 30021fi 30022ESLINT=$ac_cv_path_ESLINT 30023if test -n "$ESLINT"; then 30024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESLINT" >&5 30025printf "%s\n" "$ESLINT" >&6; } 30026else 30027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30028printf "%s\n" "no" >&6; } 30029fi 30030 30031 30032 if test "x$ac_cv_path_ESLINT" != "x"; then 30033 HAVE_ESLINT_TRUE= 30034 HAVE_ESLINT_FALSE='#' 30035else 30036 HAVE_ESLINT_TRUE='#' 30037 HAVE_ESLINT_FALSE= 30038fi 30039 30040 30041# Extract the first word of "tsc", so it can be a program name with args. 30042set dummy tsc; ac_word=$2 30043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30044printf %s "checking for $ac_word... " >&6; } 30045if test ${ac_cv_path_TSC+y} 30046then : 30047 printf %s "(cached) " >&6 30048else $as_nop 30049 case $TSC in 30050 [\\/]* | ?:[\\/]*) 30051 ac_cv_path_TSC="$TSC" # Let the user override the test with a path. 30052 ;; 30053 *) 30054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30055for as_dir in $npm_path 30056do 30057 IFS=$as_save_IFS 30058 case $as_dir in #((( 30059 '') as_dir=./ ;; 30060 */) ;; 30061 *) as_dir=$as_dir/ ;; 30062 esac 30063 for ac_exec_ext in '' $ac_executable_extensions; do 30064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30065 ac_cv_path_TSC="$as_dir$ac_word$ac_exec_ext" 30066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30067 break 2 30068 fi 30069done 30070 done 30071IFS=$as_save_IFS 30072 30073 ;; 30074esac 30075fi 30076TSC=$ac_cv_path_TSC 30077if test -n "$TSC"; then 30078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TSC" >&5 30079printf "%s\n" "$TSC" >&6; } 30080else 30081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30082printf "%s\n" "no" >&6; } 30083fi 30084 30085 30086 if test "x$ac_cv_path_TSC" != "x"; then 30087 HAVE_TYPESCRIPT_TRUE= 30088 HAVE_TYPESCRIPT_FALSE='#' 30089else 30090 HAVE_TYPESCRIPT_TRUE='#' 30091 HAVE_TYPESCRIPT_FALSE= 30092fi 30093 30094 30095# Extract the first word of "uglifyjs", so it can be a program name with args. 30096set dummy uglifyjs; ac_word=$2 30097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30098printf %s "checking for $ac_word... " >&6; } 30099if test ${ac_cv_path_UGLIFYJS+y} 30100then : 30101 printf %s "(cached) " >&6 30102else $as_nop 30103 case $UGLIFYJS in 30104 [\\/]* | ?:[\\/]*) 30105 ac_cv_path_UGLIFYJS="$UGLIFYJS" # Let the user override the test with a path. 30106 ;; 30107 *) 30108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30109for as_dir in $npm_path 30110do 30111 IFS=$as_save_IFS 30112 case $as_dir in #((( 30113 '') as_dir=./ ;; 30114 */) ;; 30115 *) as_dir=$as_dir/ ;; 30116 esac 30117 for ac_exec_ext in '' $ac_executable_extensions; do 30118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30119 ac_cv_path_UGLIFYJS="$as_dir$ac_word$ac_exec_ext" 30120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30121 break 2 30122 fi 30123done 30124 done 30125IFS=$as_save_IFS 30126 30127 ;; 30128esac 30129fi 30130UGLIFYJS=$ac_cv_path_UGLIFYJS 30131if test -n "$UGLIFYJS"; then 30132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UGLIFYJS" >&5 30133printf "%s\n" "$UGLIFYJS" >&6; } 30134else 30135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30136printf "%s\n" "no" >&6; } 30137fi 30138 30139 30140 if test "x$ac_cv_path_UGLIFYJS" != "x"; then 30141 HAVE_UGLIFYJS_TRUE= 30142 HAVE_UGLIFYJS_FALSE='#' 30143else 30144 HAVE_UGLIFYJS_TRUE='#' 30145 HAVE_UGLIFYJS_FALSE= 30146fi 30147 30148 30149# Extract the first word of "modernizr", so it can be a program name with args. 30150set dummy modernizr; ac_word=$2 30151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30152printf %s "checking for $ac_word... " >&6; } 30153if test ${ac_cv_path_MODERNIZR+y} 30154then : 30155 printf %s "(cached) " >&6 30156else $as_nop 30157 case $MODERNIZR in 30158 [\\/]* | ?:[\\/]*) 30159 ac_cv_path_MODERNIZR="$MODERNIZR" # Let the user override the test with a path. 30160 ;; 30161 *) 30162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30163for as_dir in $npm_path 30164do 30165 IFS=$as_save_IFS 30166 case $as_dir in #((( 30167 '') as_dir=./ ;; 30168 */) ;; 30169 *) as_dir=$as_dir/ ;; 30170 esac 30171 for ac_exec_ext in '' $ac_executable_extensions; do 30172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30173 ac_cv_path_MODERNIZR="$as_dir$ac_word$ac_exec_ext" 30174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30175 break 2 30176 fi 30177done 30178 done 30179IFS=$as_save_IFS 30180 30181 ;; 30182esac 30183fi 30184MODERNIZR=$ac_cv_path_MODERNIZR 30185if test -n "$MODERNIZR"; then 30186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODERNIZR" >&5 30187printf "%s\n" "$MODERNIZR" >&6; } 30188else 30189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30190printf "%s\n" "no" >&6; } 30191fi 30192 30193 30194 if test "x$ac_cv_path_MODERNIZR" != "x"; then 30195 HAVE_MODERNIZR_TRUE= 30196 HAVE_MODERNIZR_FALSE='#' 30197else 30198 HAVE_MODERNIZR_TRUE='#' 30199 HAVE_MODERNIZR_FALSE= 30200fi 30201 30202 30203# Tests. 30204ac_config_files="$ac_config_files install-info/tests/defs" 30205 30206 30207for ac_prog in prove 30208do 30209 # Extract the first word of "$ac_prog", so it can be a program name with args. 30210set dummy $ac_prog; ac_word=$2 30211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30212printf %s "checking for $ac_word... " >&6; } 30213if test ${ac_cv_prog_PROVE+y} 30214then : 30215 printf %s "(cached) " >&6 30216else $as_nop 30217 if test -n "$PROVE"; then 30218 ac_cv_prog_PROVE="$PROVE" # Let the user override the test. 30219else 30220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30221for as_dir in $PATH 30222do 30223 IFS=$as_save_IFS 30224 case $as_dir in #((( 30225 '') as_dir=./ ;; 30226 */) ;; 30227 *) as_dir=$as_dir/ ;; 30228 esac 30229 for ac_exec_ext in '' $ac_executable_extensions; do 30230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30231 ac_cv_prog_PROVE="$ac_prog" 30232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30233 break 2 30234 fi 30235done 30236 done 30237IFS=$as_save_IFS 30238 30239fi 30240fi 30241PROVE=$ac_cv_prog_PROVE 30242if test -n "$PROVE"; then 30243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5 30244printf "%s\n" "$PROVE" >&6; } 30245else 30246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30247printf "%s\n" "no" >&6; } 30248fi 30249 30250 30251 test -n "$PROVE" && break 30252done 30253 30254 30255tp_tests='no' 30256# Check whether --enable-tp-tests was given. 30257if test ${enable_tp_tests+y} 30258then : 30259 enableval=$enable_tp_tests; if test $enableval = 'no'; then 30260 tp_tests='no' 30261 else 30262 tp_tests='yes' 30263 fi 30264else $as_nop 30265 30266 if test "z$PROVE" = 'z'; then 30267 tp_tests='no' 30268 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > /dev/null 2>&1; 30269 then 30270 tp_tests='yes' 30271 else 30272 tp_tests='no' 30273 fi 30274 30275fi 30276 30277 30278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking parser tests requirements" >&5 30279printf %s "checking parser tests requirements... " >&6; } 30280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tp_tests" >&5 30281printf "%s\n" "$tp_tests" >&6; } 30282 if test "z$tp_tests" = 'zyes'; then 30283 TP_TESTS_TRUE= 30284 TP_TESTS_FALSE='#' 30285else 30286 TP_TESTS_TRUE='#' 30287 TP_TESTS_FALSE= 30288fi 30289 30290 30291build_perl_api_texi='no' 30292# Check whether --enable-perl-api-texi-build was given. 30293if test ${enable_perl_api_texi_build+y} 30294then : 30295 enableval=$enable_perl_api_texi_build; if test $enableval = 'no'; then 30296 build_perl_api_texi='no' 30297 else 30298 build_perl_api_texi='yes' 30299 fi 30300else $as_nop 30301 30302 if $PERL -e "use 5.007_003; use Encode; use Pod::Simple::PullParser;" > /dev/null 2>&1; 30303 then 30304 build_perl_api_texi='yes' 30305 else 30306 build_perl_api_texi='no' 30307 fi 30308 30309fi 30310 30311 30312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Perl Texinfo API texinfo documentation build requirements" >&5 30313printf %s "checking Perl Texinfo API texinfo documentation build requirements... " >&6; } 30314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_perl_api_texi" >&5 30315printf "%s\n" "$build_perl_api_texi" >&6; } 30316 if test "z$build_perl_api_texi" = 'zyes'; then 30317 BUILD_PERL_API_TEXI_TRUE= 30318 BUILD_PERL_API_TEXI_FALSE='#' 30319else 30320 BUILD_PERL_API_TEXI_TRUE='#' 30321 BUILD_PERL_API_TEXI_FALSE= 30322fi 30323 30324 30325pod_simple_texinfo_tests='no' 30326# Check whether --enable-pod-simple-texinfo-tests was given. 30327if test ${enable_pod_simple_texinfo_tests+y} 30328then : 30329 enableval=$enable_pod_simple_texinfo_tests; if test $enableval = 'no'; then 30330 pod_simple_texinfo_tests='no' 30331 else 30332 pod_simple_texinfo_tests='yes' 30333 fi 30334else $as_nop 30335 30336 if test "z$PROVE" = 'z' ; then 30337 pod_simple_texinfo_tests='no' 30338 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use Pod::Simple::PullParser;" > /dev/null 2>&1; 30339 then 30340 pod_simple_texinfo_tests='yes' 30341 else 30342 pod_simple_texinfo_tests='no' 30343 fi 30344 30345fi 30346 30347 30348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Pod::Simple::Texinfo tests requirements" >&5 30349printf %s "checking Pod::Simple::Texinfo tests requirements... " >&6; } 30350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pod_simple_texinfo_tests" >&5 30351printf "%s\n" "$pod_simple_texinfo_tests" >&6; } 30352 if test "z$pod_simple_texinfo_tests" = 'zyes'; then 30353 POD_SIMPLE_TEXINFO_TESTS_TRUE= 30354 POD_SIMPLE_TEXINFO_TESTS_FALSE='#' 30355else 30356 POD_SIMPLE_TEXINFO_TESTS_TRUE='#' 30357 POD_SIMPLE_TEXINFO_TESTS_FALSE= 30358fi 30359 30360 30361host_is_windows=no 30362case "$host" in 30363 *-mingw32 | *-mingw64 | *-msdosdjgpp ) host_is_windows=yes ;; 30364esac 30365 if test "x$host_is_windows" = "xyes"; then 30366 HOST_IS_WINDOWS_TRUE= 30367 HOST_IS_WINDOWS_FALSE='#' 30368else 30369 HOST_IS_WINDOWS_TRUE='#' 30370 HOST_IS_WINDOWS_FALSE= 30371fi 30372 30373 30374# The config files to generate. 30375ac_config_files="$ac_config_files Makefile doc/Makefile doc/tp_api/Makefile gnulib/lib/Makefile info/Makefile install-info/Makefile install-info/tests/Makefile man/Makefile po/Makefile.in po_document/Makefile.in util/Makefile texindex/Makefile tp/Makefile tp/tests/Makefile tp/tests/many_input_files/Makefile tp/tests/sectioning/Makefile tp/tests/formatting/Makefile tp/tests/indices/Makefile tp/tests/contents/Makefile tp/tests/nested_formats/Makefile tp/tests/layout/Makefile tp/tests/tex_html/Makefile tp/defs js/Makefile Pod-Simple-Texinfo/Makefile" 30376 30377 30378ac_config_files="$ac_config_files pre-inst-env:build-aux/pre-inst-env.in" 30379 30380 30381cat >confcache <<\_ACEOF 30382# This file is a shell script that caches the results of configure 30383# tests run on this system so they can be shared between configure 30384# scripts and configure runs, see configure's option --config-cache. 30385# It is not useful on other systems. If it contains results you don't 30386# want to keep, you may remove or edit it. 30387# 30388# config.status only pays attention to the cache file if you give it 30389# the --recheck option to rerun configure. 30390# 30391# `ac_cv_env_foo' variables (set or unset) will be overridden when 30392# loading this file, other *unset* `ac_cv_foo' will be assigned the 30393# following values. 30394 30395_ACEOF 30396 30397# The following way of writing the cache mishandles newlines in values, 30398# but we know of no workaround that is simple, portable, and efficient. 30399# So, we kill variables containing newlines. 30400# Ultrix sh set writes to stderr and can't be redirected directly, 30401# and sets the high bit in the cache file unless we assign to the vars. 30402( 30403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30404 eval ac_val=\$$ac_var 30405 case $ac_val in #( 30406 *${as_nl}*) 30407 case $ac_var in #( 30408 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30409printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30410 esac 30411 case $ac_var in #( 30412 _ | IFS | as_nl) ;; #( 30413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30414 *) { eval $ac_var=; unset $ac_var;} ;; 30415 esac ;; 30416 esac 30417 done 30418 30419 (set) 2>&1 | 30420 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30421 *${as_nl}ac_space=\ *) 30422 # `set' does not quote correctly, so add quotes: double-quote 30423 # substitution turns \\\\ into \\, and sed turns \\ into \. 30424 sed -n \ 30425 "s/'/'\\\\''/g; 30426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30427 ;; #( 30428 *) 30429 # `set' quotes correctly as required by POSIX, so do not add quotes. 30430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30431 ;; 30432 esac | 30433 sort 30434) | 30435 sed ' 30436 /^ac_cv_env_/b end 30437 t clear 30438 :clear 30439 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 30440 t end 30441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30442 :end' >>confcache 30443if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30444 if test -w "$cache_file"; then 30445 if test "x$cache_file" != "x/dev/null"; then 30446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30447printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 30448 if test ! -f "$cache_file" || test -h "$cache_file"; then 30449 cat confcache >"$cache_file" 30450 else 30451 case $cache_file in #( 30452 */* | ?:*) 30453 mv -f confcache "$cache_file"$$ && 30454 mv -f "$cache_file"$$ "$cache_file" ;; #( 30455 *) 30456 mv -f confcache "$cache_file" ;; 30457 esac 30458 fi 30459 fi 30460 else 30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30462printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 30463 fi 30464fi 30465rm -f confcache 30466 30467test "x$prefix" = xNONE && prefix=$ac_default_prefix 30468# Let make expand exec_prefix. 30469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30470 30471DEFS=-DHAVE_CONFIG_H 30472 30473ac_libobjs= 30474ac_ltlibobjs= 30475U= 30476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30477 # 1. Remove the extension, and $U if already installed. 30478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30479 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 30480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30481 # will be set to the directory where LIBOBJS objects are built. 30482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30484done 30485LIBOBJS=$ac_libobjs 30486 30487LTLIBOBJS=$ac_ltlibobjs 30488 30489 30490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 30491printf %s "checking that generated files are newer than configure... " >&6; } 30492 if test -n "$am_sleep_pid"; then 30493 # Hide warnings about reused PIDs. 30494 wait $am_sleep_pid 2>/dev/null 30495 fi 30496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 30497printf "%s\n" "done" >&6; } 30498 if test -n "$EXEEXT"; then 30499 am__EXEEXT_TRUE= 30500 am__EXEEXT_FALSE='#' 30501else 30502 am__EXEEXT_TRUE='#' 30503 am__EXEEXT_FALSE= 30504fi 30505 30506if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 30507 as_fn_error $? "conditional \"AMDEP\" was never defined. 30508Usually this means the macro was only invoked conditionally." "$LINENO" 5 30509fi 30510if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 30511 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 30512Usually this means the macro was only invoked conditionally." "$LINENO" 5 30513fi 30514if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 30515 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 30516Usually this means the macro was only invoked conditionally." "$LINENO" 5 30517fi 30518if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 30519 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 30520Usually this means the macro was only invoked conditionally." "$LINENO" 5 30521fi 30522if test -z "${GL_GENERATE_ARGZ_H_TRUE}" && test -z "${GL_GENERATE_ARGZ_H_FALSE}"; then 30523 as_fn_error $? "conditional \"GL_GENERATE_ARGZ_H\" was never defined. 30524Usually this means the macro was only invoked conditionally." "$LINENO" 5 30525fi 30526if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 30527 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 30528Usually this means the macro was only invoked conditionally." "$LINENO" 5 30529fi 30530if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then 30531 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined. 30532Usually this means the macro was only invoked conditionally." "$LINENO" 5 30533fi 30534if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 30535 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 30536Usually this means the macro was only invoked conditionally." "$LINENO" 5 30537fi 30538if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 30539 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 30540Usually this means the macro was only invoked conditionally." "$LINENO" 5 30541fi 30542if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 30543 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 30544Usually this means the macro was only invoked conditionally." "$LINENO" 5 30545fi 30546if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 30547 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined. 30548Usually this means the macro was only invoked conditionally." "$LINENO" 5 30549fi 30550if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 30551 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 30552Usually this means the macro was only invoked conditionally." "$LINENO" 5 30553fi 30554if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 30555 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 30556Usually this means the macro was only invoked conditionally." "$LINENO" 5 30557fi 30558if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then 30559 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined. 30560Usually this means the macro was only invoked conditionally." "$LINENO" 5 30561fi 30562 30563if test -z "${gl_GNULIB_ENABLED_attribute_TRUE}" && test -z "${gl_GNULIB_ENABLED_attribute_FALSE}"; then 30564 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_attribute\" was never defined. 30565Usually this means the macro was only invoked conditionally." "$LINENO" 5 30566fi 30567if test -z "${gl_GNULIB_ENABLED_btowc_TRUE}" && test -z "${gl_GNULIB_ENABLED_btowc_FALSE}"; then 30568 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_btowc\" was never defined. 30569Usually this means the macro was only invoked conditionally." "$LINENO" 5 30570fi 30571if test -z "${gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_TRUE}" && test -z "${gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547_FALSE}"; then 30572 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547\" was never defined. 30573Usually this means the macro was only invoked conditionally." "$LINENO" 5 30574fi 30575if test -z "${gl_GNULIB_ENABLED_cloexec_TRUE}" && test -z "${gl_GNULIB_ENABLED_cloexec_FALSE}"; then 30576 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_cloexec\" was never defined. 30577Usually this means the macro was only invoked conditionally." "$LINENO" 5 30578fi 30579if test -z "${gl_GNULIB_ENABLED_close_TRUE}" && test -z "${gl_GNULIB_ENABLED_close_FALSE}"; then 30580 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_close\" was never defined. 30581Usually this means the macro was only invoked conditionally." "$LINENO" 5 30582fi 30583if test -z "${gl_GNULIB_ENABLED_dup2_TRUE}" && test -z "${gl_GNULIB_ENABLED_dup2_FALSE}"; then 30584 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_dup2\" was never defined. 30585Usually this means the macro was only invoked conditionally." "$LINENO" 5 30586fi 30587if test -z "${gl_GNULIB_ENABLED_dynarray_TRUE}" && test -z "${gl_GNULIB_ENABLED_dynarray_FALSE}"; then 30588 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_dynarray\" was never defined. 30589Usually this means the macro was only invoked conditionally." "$LINENO" 5 30590fi 30591if test -z "${gl_GNULIB_ENABLED_fcntl_TRUE}" && test -z "${gl_GNULIB_ENABLED_fcntl_FALSE}"; then 30592 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_fcntl\" was never defined. 30593Usually this means the macro was only invoked conditionally." "$LINENO" 5 30594fi 30595if test -z "${gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE}" && test -z "${gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE}"; then 30596 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239\" was never defined. 30597Usually this means the macro was only invoked conditionally." "$LINENO" 5 30598fi 30599if test -z "${gl_GNULIB_ENABLED_fstat_TRUE}" && test -z "${gl_GNULIB_ENABLED_fstat_FALSE}"; then 30600 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_fstat\" was never defined. 30601Usually this means the macro was only invoked conditionally." "$LINENO" 5 30602fi 30603if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then 30604 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined. 30605Usually this means the macro was only invoked conditionally." "$LINENO" 5 30606fi 30607if test -z "${gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_TRUE}" && test -z "${gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76_FALSE}"; then 30608 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76\" was never defined. 30609Usually this means the macro was only invoked conditionally." "$LINENO" 5 30610fi 30611if test -z "${gl_GNULIB_ENABLED_intprops_TRUE}" && test -z "${gl_GNULIB_ENABLED_intprops_FALSE}"; then 30612 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_intprops\" was never defined. 30613Usually this means the macro was only invoked conditionally." "$LINENO" 5 30614fi 30615if test -z "${gl_GNULIB_ENABLED_langinfo_TRUE}" && test -z "${gl_GNULIB_ENABLED_langinfo_FALSE}"; then 30616 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_langinfo\" was never defined. 30617Usually this means the macro was only invoked conditionally." "$LINENO" 5 30618fi 30619if test -z "${gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE}" && test -z "${gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE}"; then 30620 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467\" was never defined. 30621Usually this means the macro was only invoked conditionally." "$LINENO" 5 30622fi 30623if test -z "${gl_GNULIB_ENABLED_localcharset_TRUE}" && test -z "${gl_GNULIB_ENABLED_localcharset_FALSE}"; then 30624 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_localcharset\" was never defined. 30625Usually this means the macro was only invoked conditionally." "$LINENO" 5 30626fi 30627if test -z "${gl_GNULIB_ENABLED_locale_TRUE}" && test -z "${gl_GNULIB_ENABLED_locale_FALSE}"; then 30628 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_locale\" was never defined. 30629Usually this means the macro was only invoked conditionally." "$LINENO" 5 30630fi 30631if test -z "${gl_GNULIB_ENABLED_localeconv_TRUE}" && test -z "${gl_GNULIB_ENABLED_localeconv_FALSE}"; then 30632 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_localeconv\" was never defined. 30633Usually this means the macro was only invoked conditionally." "$LINENO" 5 30634fi 30635if test -z "${gl_GNULIB_ENABLED_lock_TRUE}" && test -z "${gl_GNULIB_ENABLED_lock_FALSE}"; then 30636 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_lock\" was never defined. 30637Usually this means the macro was only invoked conditionally." "$LINENO" 5 30638fi 30639if test -z "${gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_TRUE}" && test -z "${gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866_FALSE}"; then 30640 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_ef455225c00f5049c808c2eda3e76866\" was never defined. 30641Usually this means the macro was only invoked conditionally." "$LINENO" 5 30642fi 30643if test -z "${gl_GNULIB_ENABLED_mbtowc_TRUE}" && test -z "${gl_GNULIB_ENABLED_mbtowc_FALSE}"; then 30644 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_mbtowc\" was never defined. 30645Usually this means the macro was only invoked conditionally." "$LINENO" 5 30646fi 30647if test -z "${gl_GNULIB_ENABLED_mempcpy_TRUE}" && test -z "${gl_GNULIB_ENABLED_mempcpy_FALSE}"; then 30648 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_mempcpy\" was never defined. 30649Usually this means the macro was only invoked conditionally." "$LINENO" 5 30650fi 30651if test -z "${gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_TRUE}" && test -z "${gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616_FALSE}"; then 30652 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_f691f076f650964c9f5598c3ee487616\" was never defined. 30653Usually this means the macro was only invoked conditionally." "$LINENO" 5 30654fi 30655if test -z "${gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_TRUE}" && test -z "${gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07_FALSE}"; then 30656 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_676220fa4366efa9bdbfccf11a857c07\" was never defined. 30657Usually this means the macro was only invoked conditionally." "$LINENO" 5 30658fi 30659if test -z "${gl_GNULIB_ENABLED_nl_langinfo_TRUE}" && test -z "${gl_GNULIB_ENABLED_nl_langinfo_FALSE}"; then 30660 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_nl_langinfo\" was never defined. 30661Usually this means the macro was only invoked conditionally." "$LINENO" 5 30662fi 30663if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then 30664 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined. 30665Usually this means the macro was only invoked conditionally." "$LINENO" 5 30666fi 30667if test -z "${gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_TRUE}" && test -z "${gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd_FALSE}"; then 30668 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd\" was never defined. 30669Usually this means the macro was only invoked conditionally." "$LINENO" 5 30670fi 30671if test -z "${gl_GNULIB_ENABLED_size_max_TRUE}" && test -z "${gl_GNULIB_ENABLED_size_max_FALSE}"; then 30672 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_size_max\" was never defined. 30673Usually this means the macro was only invoked conditionally." "$LINENO" 5 30674fi 30675if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then 30676 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_stat\" was never defined. 30677Usually this means the macro was only invoked conditionally." "$LINENO" 5 30678fi 30679if test -z "${gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_TRUE}" && test -z "${gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c_FALSE}"; then 30680 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_0137e3d3638b33e5819d132d0b23165c\" was never defined. 30681Usually this means the macro was only invoked conditionally." "$LINENO" 5 30682fi 30683if test -z "${gl_GNULIB_ENABLED_stpcpy_TRUE}" && test -z "${gl_GNULIB_ENABLED_stpcpy_FALSE}"; then 30684 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_stpcpy\" was never defined. 30685Usually this means the macro was only invoked conditionally." "$LINENO" 5 30686fi 30687if test -z "${gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE}" && test -z "${gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE}"; then 30688 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72\" was never defined. 30689Usually this means the macro was only invoked conditionally." "$LINENO" 5 30690fi 30691if test -z "${gl_GNULIB_ENABLED_strndup_TRUE}" && test -z "${gl_GNULIB_ENABLED_strndup_FALSE}"; then 30692 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strndup\" was never defined. 30693Usually this means the macro was only invoked conditionally." "$LINENO" 5 30694fi 30695if test -z "${gl_GNULIB_ENABLED_strstr_TRUE}" && test -z "${gl_GNULIB_ENABLED_strstr_FALSE}"; then 30696 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strstr\" was never defined. 30697Usually this means the macro was only invoked conditionally." "$LINENO" 5 30698fi 30699if test -z "${gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_TRUE}" && test -z "${gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41_FALSE}"; then 30700 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_f84f170cca5f5b09d22686d5b833aa41\" was never defined. 30701Usually this means the macro was only invoked conditionally." "$LINENO" 5 30702fi 30703if test -z "${gl_GNULIB_ENABLED_sys_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_sys_stat_FALSE}"; then 30704 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_sys_stat\" was never defined. 30705Usually this means the macro was only invoked conditionally." "$LINENO" 5 30706fi 30707if test -z "${gl_GNULIB_ENABLED_threadlib_TRUE}" && test -z "${gl_GNULIB_ENABLED_threadlib_FALSE}"; then 30708 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_threadlib\" was never defined. 30709Usually this means the macro was only invoked conditionally." "$LINENO" 5 30710fi 30711if test -z "${gl_GNULIB_ENABLED_time_TRUE}" && test -z "${gl_GNULIB_ENABLED_time_FALSE}"; then 30712 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_time\" was never defined. 30713Usually this means the macro was only invoked conditionally." "$LINENO" 5 30714fi 30715if test -z "${gl_GNULIB_ENABLED_vasnprintf_TRUE}" && test -z "${gl_GNULIB_ENABLED_vasnprintf_FALSE}"; then 30716 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_vasnprintf\" was never defined. 30717Usually this means the macro was only invoked conditionally." "$LINENO" 5 30718fi 30719if test -z "${gl_GNULIB_ENABLED_wcrtomb_TRUE}" && test -z "${gl_GNULIB_ENABLED_wcrtomb_FALSE}"; then 30720 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_wcrtomb\" was never defined. 30721Usually this means the macro was only invoked conditionally." "$LINENO" 5 30722fi 30723if test -z "${gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE}" && test -z "${gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE}"; then 30724 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440\" was never defined. 30725Usually this means the macro was only invoked conditionally." "$LINENO" 5 30726fi 30727if test -z "${gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE}" && test -z "${gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE}"; then 30728 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab\" was never defined. 30729Usually this means the macro was only invoked conditionally." "$LINENO" 5 30730fi 30731if test -z "${gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE}" && test -z "${gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE}"; then 30732 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354\" was never defined. 30733Usually this means the macro was only invoked conditionally." "$LINENO" 5 30734fi 30735if test -z "${gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE}" && test -z "${gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE}"; then 30736 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef\" was never defined. 30737Usually this means the macro was only invoked conditionally." "$LINENO" 5 30738fi 30739if test -z "${gl_GNULIB_ENABLED_xsize_TRUE}" && test -z "${gl_GNULIB_ENABLED_xsize_FALSE}"; then 30740 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_xsize\" was never defined. 30741Usually this means the macro was only invoked conditionally." "$LINENO" 5 30742fi 30743 30744 gl_libobjs= 30745 gl_ltlibobjs= 30746 if test -n "$gl_LIBOBJS"; then 30747 # Remove the extension. 30748 sed_drop_objext='s/\.o$//;s/\.obj$//' 30749 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 30750 gl_libobjs="$gl_libobjs $i.$ac_objext" 30751 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 30752 done 30753 fi 30754 gl_LIBOBJS=$gl_libobjs 30755 30756 gl_LTLIBOBJS=$gl_ltlibobjs 30757 30758 30759 30760 gltests_libobjs= 30761 gltests_ltlibobjs= 30762 if test -n "$gltests_LIBOBJS"; then 30763 # Remove the extension. 30764 sed_drop_objext='s/\.o$//;s/\.obj$//' 30765 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 30766 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 30767 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 30768 done 30769 fi 30770 gltests_LIBOBJS=$gltests_libobjs 30771 30772 gltests_LTLIBOBJS=$gltests_ltlibobjs 30773 30774 30775if test -z "${have_ptys_TRUE}" && test -z "${have_ptys_FALSE}"; then 30776 as_fn_error $? "conditional \"have_ptys\" was never defined. 30777Usually this means the macro was only invoked conditionally." "$LINENO" 5 30778fi 30779if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then 30780 as_fn_error $? "conditional \"TOOLS_ONLY\" was never defined. 30781Usually this means the macro was only invoked conditionally." "$LINENO" 5 30782fi 30783if test -z "${HAVE_TERMLIBS_TRUE}" && test -z "${HAVE_TERMLIBS_FALSE}"; then 30784 as_fn_error $? "conditional \"HAVE_TERMLIBS\" was never defined. 30785Usually this means the macro was only invoked conditionally." "$LINENO" 5 30786fi 30787if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then 30788 as_fn_error $? "conditional \"INSTALL_WARNINGS\" was never defined. 30789Usually this means the macro was only invoked conditionally." "$LINENO" 5 30790fi 30791if test -z "${DISABLE_XS_TRUE}" && test -z "${DISABLE_XS_FALSE}"; then 30792 as_fn_error $? "conditional \"DISABLE_XS\" was never defined. 30793Usually this means the macro was only invoked conditionally." "$LINENO" 5 30794fi 30795if test -z "${HAVE_ESLINT_TRUE}" && test -z "${HAVE_ESLINT_FALSE}"; then 30796 as_fn_error $? "conditional \"HAVE_ESLINT\" was never defined. 30797Usually this means the macro was only invoked conditionally." "$LINENO" 5 30798fi 30799if test -z "${HAVE_TYPESCRIPT_TRUE}" && test -z "${HAVE_TYPESCRIPT_FALSE}"; then 30800 as_fn_error $? "conditional \"HAVE_TYPESCRIPT\" was never defined. 30801Usually this means the macro was only invoked conditionally." "$LINENO" 5 30802fi 30803if test -z "${HAVE_UGLIFYJS_TRUE}" && test -z "${HAVE_UGLIFYJS_FALSE}"; then 30804 as_fn_error $? "conditional \"HAVE_UGLIFYJS\" was never defined. 30805Usually this means the macro was only invoked conditionally." "$LINENO" 5 30806fi 30807if test -z "${HAVE_MODERNIZR_TRUE}" && test -z "${HAVE_MODERNIZR_FALSE}"; then 30808 as_fn_error $? "conditional \"HAVE_MODERNIZR\" was never defined. 30809Usually this means the macro was only invoked conditionally." "$LINENO" 5 30810fi 30811if test -z "${TP_TESTS_TRUE}" && test -z "${TP_TESTS_FALSE}"; then 30812 as_fn_error $? "conditional \"TP_TESTS\" was never defined. 30813Usually this means the macro was only invoked conditionally." "$LINENO" 5 30814fi 30815if test -z "${BUILD_PERL_API_TEXI_TRUE}" && test -z "${BUILD_PERL_API_TEXI_FALSE}"; then 30816 as_fn_error $? "conditional \"BUILD_PERL_API_TEXI\" was never defined. 30817Usually this means the macro was only invoked conditionally." "$LINENO" 5 30818fi 30819if test -z "${POD_SIMPLE_TEXINFO_TESTS_TRUE}" && test -z "${POD_SIMPLE_TEXINFO_TESTS_FALSE}"; then 30820 as_fn_error $? "conditional \"POD_SIMPLE_TEXINFO_TESTS\" was never defined. 30821Usually this means the macro was only invoked conditionally." "$LINENO" 5 30822fi 30823if test -z "${HOST_IS_WINDOWS_TRUE}" && test -z "${HOST_IS_WINDOWS_FALSE}"; then 30824 as_fn_error $? "conditional \"HOST_IS_WINDOWS\" was never defined. 30825Usually this means the macro was only invoked conditionally." "$LINENO" 5 30826fi 30827 30828: "${CONFIG_STATUS=./config.status}" 30829ac_write_fail=0 30830ac_clean_files_save=$ac_clean_files 30831ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30833printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 30834as_write_fail=0 30835cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30836#! $SHELL 30837# Generated by $as_me. 30838# Run this file to recreate the current configuration. 30839# Compiler output produced by configure, useful for debugging 30840# configure, is in config.log if it exists. 30841 30842debug=false 30843ac_cs_recheck=false 30844ac_cs_silent=false 30845 30846SHELL=\${CONFIG_SHELL-$SHELL} 30847export SHELL 30848_ASEOF 30849cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30850## -------------------- ## 30851## M4sh Initialization. ## 30852## -------------------- ## 30853 30854# Be more Bourne compatible 30855DUALCASE=1; export DUALCASE # for MKS sh 30856as_nop=: 30857if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 30858then : 30859 emulate sh 30860 NULLCMD=: 30861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30862 # is contrary to our usage. Disable this feature. 30863 alias -g '${1+"$@"}'='"$@"' 30864 setopt NO_GLOB_SUBST 30865else $as_nop 30866 case `(set -o) 2>/dev/null` in #( 30867 *posix*) : 30868 set -o posix ;; #( 30869 *) : 30870 ;; 30871esac 30872fi 30873 30874 30875 30876# Reset variables that may have inherited troublesome values from 30877# the environment. 30878 30879# IFS needs to be set, to space, tab, and newline, in precisely that order. 30880# (If _AS_PATH_WALK were called with IFS unset, it would have the 30881# side effect of setting IFS to empty, thus disabling word splitting.) 30882# Quoting is to prevent editors from complaining about space-tab. 30883as_nl=' 30884' 30885export as_nl 30886IFS=" "" $as_nl" 30887 30888PS1='$ ' 30889PS2='> ' 30890PS4='+ ' 30891 30892# Ensure predictable behavior from utilities with locale-dependent output. 30893LC_ALL=C 30894export LC_ALL 30895LANGUAGE=C 30896export LANGUAGE 30897 30898# We cannot yet rely on "unset" to work, but we need these variables 30899# to be unset--not just set to an empty or harmless value--now, to 30900# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 30901# also avoids known problems related to "unset" and subshell syntax 30902# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 30903for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 30904do eval test \${$as_var+y} \ 30905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30906done 30907 30908# Ensure that fds 0, 1, and 2 are open. 30909if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 30910if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 30911if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 30912 30913# The user is always right. 30914if ${PATH_SEPARATOR+false} :; then 30915 PATH_SEPARATOR=: 30916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30918 PATH_SEPARATOR=';' 30919 } 30920fi 30921 30922 30923# Find who we are. Look in the path if we contain no directory separator. 30924as_myself= 30925case $0 in #(( 30926 *[\\/]* ) as_myself=$0 ;; 30927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30928for as_dir in $PATH 30929do 30930 IFS=$as_save_IFS 30931 case $as_dir in #((( 30932 '') as_dir=./ ;; 30933 */) ;; 30934 *) as_dir=$as_dir/ ;; 30935 esac 30936 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 30937 done 30938IFS=$as_save_IFS 30939 30940 ;; 30941esac 30942# We did not find ourselves, most probably we were run as `sh COMMAND' 30943# in which case we are not to be found in the path. 30944if test "x$as_myself" = x; then 30945 as_myself=$0 30946fi 30947if test ! -f "$as_myself"; then 30948 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30949 exit 1 30950fi 30951 30952 30953 30954# as_fn_error STATUS ERROR [LINENO LOG_FD] 30955# ---------------------------------------- 30956# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 30957# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 30958# script with STATUS, using 1 if that was 0. 30959as_fn_error () 30960{ 30961 as_status=$1; test $as_status -eq 0 && as_status=1 30962 if test "$4"; then 30963 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 30964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 30965 fi 30966 printf "%s\n" "$as_me: error: $2" >&2 30967 as_fn_exit $as_status 30968} # as_fn_error 30969 30970 30971 30972# as_fn_set_status STATUS 30973# ----------------------- 30974# Set $? to STATUS, without forking. 30975as_fn_set_status () 30976{ 30977 return $1 30978} # as_fn_set_status 30979 30980# as_fn_exit STATUS 30981# ----------------- 30982# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30983as_fn_exit () 30984{ 30985 set +e 30986 as_fn_set_status $1 30987 exit $1 30988} # as_fn_exit 30989 30990# as_fn_unset VAR 30991# --------------- 30992# Portably unset VAR. 30993as_fn_unset () 30994{ 30995 { eval $1=; unset $1;} 30996} 30997as_unset=as_fn_unset 30998 30999# as_fn_append VAR VALUE 31000# ---------------------- 31001# Append the text in VALUE to the end of the definition contained in VAR. Take 31002# advantage of any shell optimizations that allow amortized linear growth over 31003# repeated appends, instead of the typical quadratic growth present in naive 31004# implementations. 31005if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 31006then : 31007 eval 'as_fn_append () 31008 { 31009 eval $1+=\$2 31010 }' 31011else $as_nop 31012 as_fn_append () 31013 { 31014 eval $1=\$$1\$2 31015 } 31016fi # as_fn_append 31017 31018# as_fn_arith ARG... 31019# ------------------ 31020# Perform arithmetic evaluation on the ARGs, and store the result in the 31021# global $as_val. Take advantage of shells that can avoid forks. The arguments 31022# must be portable across $(()) and expr. 31023if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 31024then : 31025 eval 'as_fn_arith () 31026 { 31027 as_val=$(( $* )) 31028 }' 31029else $as_nop 31030 as_fn_arith () 31031 { 31032 as_val=`expr "$@" || test $? -eq 1` 31033 } 31034fi # as_fn_arith 31035 31036 31037if expr a : '\(a\)' >/dev/null 2>&1 && 31038 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31039 as_expr=expr 31040else 31041 as_expr=false 31042fi 31043 31044if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31045 as_basename=basename 31046else 31047 as_basename=false 31048fi 31049 31050if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31051 as_dirname=dirname 31052else 31053 as_dirname=false 31054fi 31055 31056as_me=`$as_basename -- "$0" || 31057$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31058 X"$0" : 'X\(//\)$' \| \ 31059 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31060printf "%s\n" X/"$0" | 31061 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31062 s//\1/ 31063 q 31064 } 31065 /^X\/\(\/\/\)$/{ 31066 s//\1/ 31067 q 31068 } 31069 /^X\/\(\/\).*/{ 31070 s//\1/ 31071 q 31072 } 31073 s/.*/./; q'` 31074 31075# Avoid depending upon Character Ranges. 31076as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31078as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31079as_cr_digits='0123456789' 31080as_cr_alnum=$as_cr_Letters$as_cr_digits 31081 31082 31083# Determine whether it's possible to make 'echo' print without a newline. 31084# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 31085# for compatibility with existing Makefiles. 31086ECHO_C= ECHO_N= ECHO_T= 31087case `echo -n x` in #((((( 31088-n*) 31089 case `echo 'xy\c'` in 31090 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31091 xy) ECHO_C='\c';; 31092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31093 ECHO_T=' ';; 31094 esac;; 31095*) 31096 ECHO_N='-n';; 31097esac 31098 31099# For backward compatibility with old third-party macros, we provide 31100# the shell variables $as_echo and $as_echo_n. New code should use 31101# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 31102as_echo='printf %s\n' 31103as_echo_n='printf %s' 31104 31105rm -f conf$$ conf$$.exe conf$$.file 31106if test -d conf$$.dir; then 31107 rm -f conf$$.dir/conf$$.file 31108else 31109 rm -f conf$$.dir 31110 mkdir conf$$.dir 2>/dev/null 31111fi 31112if (echo >conf$$.file) 2>/dev/null; then 31113 if ln -s conf$$.file conf$$ 2>/dev/null; then 31114 as_ln_s='ln -s' 31115 # ... but there are two gotchas: 31116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31118 # In both cases, we have to default to `cp -pR'. 31119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31120 as_ln_s='cp -pR' 31121 elif ln conf$$.file conf$$ 2>/dev/null; then 31122 as_ln_s=ln 31123 else 31124 as_ln_s='cp -pR' 31125 fi 31126else 31127 as_ln_s='cp -pR' 31128fi 31129rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31130rmdir conf$$.dir 2>/dev/null 31131 31132 31133# as_fn_mkdir_p 31134# ------------- 31135# Create "$as_dir" as a directory, including parents if necessary. 31136as_fn_mkdir_p () 31137{ 31138 31139 case $as_dir in #( 31140 -*) as_dir=./$as_dir;; 31141 esac 31142 test -d "$as_dir" || eval $as_mkdir_p || { 31143 as_dirs= 31144 while :; do 31145 case $as_dir in #( 31146 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31147 *) as_qdir=$as_dir;; 31148 esac 31149 as_dirs="'$as_qdir' $as_dirs" 31150 as_dir=`$as_dirname -- "$as_dir" || 31151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31152 X"$as_dir" : 'X\(//\)[^/]' \| \ 31153 X"$as_dir" : 'X\(//\)$' \| \ 31154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31155printf "%s\n" X"$as_dir" | 31156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31157 s//\1/ 31158 q 31159 } 31160 /^X\(\/\/\)[^/].*/{ 31161 s//\1/ 31162 q 31163 } 31164 /^X\(\/\/\)$/{ 31165 s//\1/ 31166 q 31167 } 31168 /^X\(\/\).*/{ 31169 s//\1/ 31170 q 31171 } 31172 s/.*/./; q'` 31173 test -d "$as_dir" && break 31174 done 31175 test -z "$as_dirs" || eval "mkdir $as_dirs" 31176 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31177 31178 31179} # as_fn_mkdir_p 31180if mkdir -p . 2>/dev/null; then 31181 as_mkdir_p='mkdir -p "$as_dir"' 31182else 31183 test -d ./-p && rmdir ./-p 31184 as_mkdir_p=false 31185fi 31186 31187 31188# as_fn_executable_p FILE 31189# ----------------------- 31190# Test if FILE is an executable regular file. 31191as_fn_executable_p () 31192{ 31193 test -f "$1" && test -x "$1" 31194} # as_fn_executable_p 31195as_test_x='test -x' 31196as_executable_p=as_fn_executable_p 31197 31198# Sed expression to map a string onto a valid CPP name. 31199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31200 31201# Sed expression to map a string onto a valid variable name. 31202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31203 31204 31205exec 6>&1 31206## ----------------------------------- ## 31207## Main body of $CONFIG_STATUS script. ## 31208## ----------------------------------- ## 31209_ASEOF 31210test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31211 31212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31213# Save the log message, to keep $0 and so on meaningful, and to 31214# report actual input values of CONFIG_FILES etc. instead of their 31215# values after options handling. 31216ac_log=" 31217This file was extended by GNU Texinfo $as_me 6.8, which was 31218generated by GNU Autoconf 2.71. Invocation command line was 31219 31220 CONFIG_FILES = $CONFIG_FILES 31221 CONFIG_HEADERS = $CONFIG_HEADERS 31222 CONFIG_LINKS = $CONFIG_LINKS 31223 CONFIG_COMMANDS = $CONFIG_COMMANDS 31224 $ $0 $@ 31225 31226on `(hostname || uname -n) 2>/dev/null | sed 1q` 31227" 31228 31229_ACEOF 31230 31231case $ac_config_files in *" 31232"*) set x $ac_config_files; shift; ac_config_files=$*;; 31233esac 31234 31235case $ac_config_headers in *" 31236"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31237esac 31238 31239 31240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31241# Files that config.status was made for. 31242config_files="$ac_config_files" 31243config_headers="$ac_config_headers" 31244config_commands="$ac_config_commands" 31245 31246_ACEOF 31247 31248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31249ac_cs_usage="\ 31250\`$as_me' instantiates files and other configuration actions 31251from templates according to the current configuration. Unless the files 31252and actions are specified as TAGs, all are instantiated by default. 31253 31254Usage: $0 [OPTION]... [TAG]... 31255 31256 -h, --help print this help, then exit 31257 -V, --version print version number and configuration settings, then exit 31258 --config print configuration, then exit 31259 -q, --quiet, --silent 31260 do not print progress messages 31261 -d, --debug don't remove temporary files 31262 --recheck update $as_me by reconfiguring in the same conditions 31263 --file=FILE[:TEMPLATE] 31264 instantiate the configuration file FILE 31265 --header=FILE[:TEMPLATE] 31266 instantiate the configuration header FILE 31267 31268Configuration files: 31269$config_files 31270 31271Configuration headers: 31272$config_headers 31273 31274Configuration commands: 31275$config_commands 31276 31277Report bugs to <bug-texinfo@gnu.org>. 31278GNU Texinfo home page: <https://www.gnu.org/software/texinfo/>. 31279General help using GNU software: <https://www.gnu.org/gethelp/>." 31280 31281_ACEOF 31282ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 31283ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 31284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31285ac_cs_config='$ac_cs_config_escaped' 31286ac_cs_version="\\ 31287GNU Texinfo config.status 6.8 31288configured by $0, generated by GNU Autoconf 2.71, 31289 with options \\"\$ac_cs_config\\" 31290 31291Copyright (C) 2021 Free Software Foundation, Inc. 31292This config.status script is free software; the Free Software Foundation 31293gives unlimited permission to copy, distribute and modify it." 31294 31295ac_pwd='$ac_pwd' 31296srcdir='$srcdir' 31297INSTALL='$INSTALL' 31298MKDIR_P='$MKDIR_P' 31299AWK='$AWK' 31300test -n "\$AWK" || AWK=awk 31301_ACEOF 31302 31303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31304# The default lists apply if the user does not specify any file. 31305ac_need_defaults=: 31306while test $# != 0 31307do 31308 case $1 in 31309 --*=?*) 31310 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31312 ac_shift=: 31313 ;; 31314 --*=) 31315 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31316 ac_optarg= 31317 ac_shift=: 31318 ;; 31319 *) 31320 ac_option=$1 31321 ac_optarg=$2 31322 ac_shift=shift 31323 ;; 31324 esac 31325 31326 case $ac_option in 31327 # Handling of the options. 31328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31329 ac_cs_recheck=: ;; 31330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31331 printf "%s\n" "$ac_cs_version"; exit ;; 31332 --config | --confi | --conf | --con | --co | --c ) 31333 printf "%s\n" "$ac_cs_config"; exit ;; 31334 --debug | --debu | --deb | --de | --d | -d ) 31335 debug=: ;; 31336 --file | --fil | --fi | --f ) 31337 $ac_shift 31338 case $ac_optarg in 31339 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31340 '') as_fn_error $? "missing file argument" ;; 31341 esac 31342 as_fn_append CONFIG_FILES " '$ac_optarg'" 31343 ac_need_defaults=false;; 31344 --header | --heade | --head | --hea ) 31345 $ac_shift 31346 case $ac_optarg in 31347 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31348 esac 31349 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31350 ac_need_defaults=false;; 31351 --he | --h) 31352 # Conflict between --help and --header 31353 as_fn_error $? "ambiguous option: \`$1' 31354Try \`$0 --help' for more information.";; 31355 --help | --hel | -h ) 31356 printf "%s\n" "$ac_cs_usage"; exit ;; 31357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31358 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31359 ac_cs_silent=: ;; 31360 31361 # This is an error. 31362 -*) as_fn_error $? "unrecognized option: \`$1' 31363Try \`$0 --help' for more information." ;; 31364 31365 *) as_fn_append ac_config_targets " $1" 31366 ac_need_defaults=false ;; 31367 31368 esac 31369 shift 31370done 31371 31372ac_configure_extra_args= 31373 31374if $ac_cs_silent; then 31375 exec 6>/dev/null 31376 ac_configure_extra_args="$ac_configure_extra_args --silent" 31377fi 31378 31379_ACEOF 31380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31381if \$ac_cs_recheck; then 31382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31383 shift 31384 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 31385 CONFIG_SHELL='$SHELL' 31386 export CONFIG_SHELL 31387 exec "\$@" 31388fi 31389 31390_ACEOF 31391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31392exec 5>>config.log 31393{ 31394 echo 31395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31396## Running $as_me. ## 31397_ASBOX 31398 printf "%s\n" "$ac_log" 31399} >&5 31400 31401_ACEOF 31402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31403# 31404# INIT-COMMANDS 31405# 31406AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 31407# Capture the value of obsolete ALL_LINGUAS because we need it to compute 31408 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 31409 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 31410 # Capture the value of LINGUAS because we need it to compute CATALOGS. 31411 LINGUAS="${LINGUAS-%UNSET%}" 31412 31413 31414_ACEOF 31415 31416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31417 31418# Handling of arguments. 31419for ac_config_target in $ac_config_targets 31420do 31421 case $ac_config_target in 31422 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 31423 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 31424 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 31425 "install-info/tests/defs") CONFIG_FILES="$CONFIG_FILES install-info/tests/defs" ;; 31426 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 31427 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 31428 "doc/tp_api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tp_api/Makefile" ;; 31429 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;; 31430 "info/Makefile") CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 31431 "install-info/Makefile") CONFIG_FILES="$CONFIG_FILES install-info/Makefile" ;; 31432 "install-info/tests/Makefile") CONFIG_FILES="$CONFIG_FILES install-info/tests/Makefile" ;; 31433 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 31434 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 31435 "po_document/Makefile.in") CONFIG_FILES="$CONFIG_FILES po_document/Makefile.in" ;; 31436 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 31437 "texindex/Makefile") CONFIG_FILES="$CONFIG_FILES texindex/Makefile" ;; 31438 "tp/Makefile") CONFIG_FILES="$CONFIG_FILES tp/Makefile" ;; 31439 "tp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/Makefile" ;; 31440 "tp/tests/many_input_files/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/many_input_files/Makefile" ;; 31441 "tp/tests/sectioning/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/sectioning/Makefile" ;; 31442 "tp/tests/formatting/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/formatting/Makefile" ;; 31443 "tp/tests/indices/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/indices/Makefile" ;; 31444 "tp/tests/contents/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/contents/Makefile" ;; 31445 "tp/tests/nested_formats/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/nested_formats/Makefile" ;; 31446 "tp/tests/layout/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/layout/Makefile" ;; 31447 "tp/tests/tex_html/Makefile") CONFIG_FILES="$CONFIG_FILES tp/tests/tex_html/Makefile" ;; 31448 "tp/defs") CONFIG_FILES="$CONFIG_FILES tp/defs" ;; 31449 "js/Makefile") CONFIG_FILES="$CONFIG_FILES js/Makefile" ;; 31450 "Pod-Simple-Texinfo/Makefile") CONFIG_FILES="$CONFIG_FILES Pod-Simple-Texinfo/Makefile" ;; 31451 "pre-inst-env") CONFIG_FILES="$CONFIG_FILES pre-inst-env:build-aux/pre-inst-env.in" ;; 31452 31453 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 31454 esac 31455done 31456 31457 31458# If the user did not use the arguments to specify the items to instantiate, 31459# then the envvar interface is used. Set only those that are not. 31460# We use the long form for the default assignment because of an extremely 31461# bizarre bug on SunOS 4.1.3. 31462if $ac_need_defaults; then 31463 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 31464 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 31465 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 31466fi 31467 31468# Have a temporary directory for convenience. Make it in the build tree 31469# simply because there is no reason against having it here, and in addition, 31470# creating and moving files from /tmp can sometimes cause problems. 31471# Hook for its removal unless debugging. 31472# Note that there is a small window in which the directory will not be cleaned: 31473# after its creation but before its name has been assigned to `$tmp'. 31474$debug || 31475{ 31476 tmp= ac_tmp= 31477 trap 'exit_status=$? 31478 : "${ac_tmp:=$tmp}" 31479 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31480' 0 31481 trap 'as_fn_exit 1' 1 2 13 15 31482} 31483# Create a (secure) tmp directory for tmp files. 31484 31485{ 31486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31487 test -d "$tmp" 31488} || 31489{ 31490 tmp=./conf$$-$RANDOM 31491 (umask 077 && mkdir "$tmp") 31492} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31493ac_tmp=$tmp 31494 31495# Set up the scripts for CONFIG_FILES section. 31496# No need to generate them if there are no CONFIG_FILES. 31497# This happens for instance with `./config.status config.h'. 31498if test -n "$CONFIG_FILES"; then 31499 31500 31501ac_cr=`echo X | tr X '\015'` 31502# On cygwin, bash can eat \r inside `` if the user requested igncr. 31503# But we know of no other shell where ac_cr would be empty at this 31504# point, so we can use a bashism as a fallback. 31505if test "x$ac_cr" = x; then 31506 eval ac_cr=\$\'\\r\' 31507fi 31508ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31509if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31510 ac_cs_awk_cr='\\r' 31511else 31512 ac_cs_awk_cr=$ac_cr 31513fi 31514 31515echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31516_ACEOF 31517 31518 31519{ 31520 echo "cat >conf$$subs.awk <<_ACEOF" && 31521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31522 echo "_ACEOF" 31523} >conf$$subs.sh || 31524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31525ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31526ac_delim='%!_!# ' 31527for ac_last_try in false false false false false :; do 31528 . ./conf$$subs.sh || 31529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31530 31531 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31532 if test $ac_delim_n = $ac_delim_num; then 31533 break 31534 elif $ac_last_try; then 31535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31536 else 31537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31538 fi 31539done 31540rm -f conf$$subs.sh 31541 31542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31543cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31544_ACEOF 31545sed -n ' 31546h 31547s/^/S["/; s/!.*/"]=/ 31548p 31549g 31550s/^[^!]*!// 31551:repl 31552t repl 31553s/'"$ac_delim"'$// 31554t delim 31555:nl 31556h 31557s/\(.\{148\}\)..*/\1/ 31558t more1 31559s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31560p 31561n 31562b repl 31563:more1 31564s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31565p 31566g 31567s/.\{148\}// 31568t nl 31569:delim 31570h 31571s/\(.\{148\}\)..*/\1/ 31572t more2 31573s/["\\]/\\&/g; s/^/"/; s/$/"/ 31574p 31575b 31576:more2 31577s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31578p 31579g 31580s/.\{148\}// 31581t delim 31582' <conf$$subs.awk | sed ' 31583/^[^""]/{ 31584 N 31585 s/\n// 31586} 31587' >>$CONFIG_STATUS || ac_write_fail=1 31588rm -f conf$$subs.awk 31589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31590_ACAWK 31591cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31592 for (key in S) S_is_set[key] = 1 31593 FS = "" 31594 31595} 31596{ 31597 line = $ 0 31598 nfields = split(line, field, "@") 31599 substed = 0 31600 len = length(field[1]) 31601 for (i = 2; i < nfields; i++) { 31602 key = field[i] 31603 keylen = length(key) 31604 if (S_is_set[key]) { 31605 value = S[key] 31606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31607 len += length(value) + length(field[++i]) 31608 substed = 1 31609 } else 31610 len += 1 + keylen 31611 } 31612 31613 print line 31614} 31615 31616_ACAWK 31617_ACEOF 31618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31619if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31621else 31622 cat 31623fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31624 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31625_ACEOF 31626 31627# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31628# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31629# trailing colons and then remove the whole line if VPATH becomes empty 31630# (actually we leave an empty line to preserve line numbers). 31631if test "x$srcdir" = x.; then 31632 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31633h 31634s/// 31635s/^/:/ 31636s/[ ]*$/:/ 31637s/:\$(srcdir):/:/g 31638s/:\${srcdir}:/:/g 31639s/:@srcdir@:/:/g 31640s/^:*// 31641s/:*$// 31642x 31643s/\(=[ ]*\).*/\1/ 31644G 31645s/\n// 31646s/^[^=]*=[ ]*$// 31647}' 31648fi 31649 31650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31651fi # test -n "$CONFIG_FILES" 31652 31653# Set up the scripts for CONFIG_HEADERS section. 31654# No need to generate them if there are no CONFIG_HEADERS. 31655# This happens for instance with `./config.status Makefile'. 31656if test -n "$CONFIG_HEADERS"; then 31657cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31658BEGIN { 31659_ACEOF 31660 31661# Transform confdefs.h into an awk script `defines.awk', embedded as 31662# here-document in config.status, that substitutes the proper values into 31663# config.h.in to produce config.h. 31664 31665# Create a delimiter string that does not exist in confdefs.h, to ease 31666# handling of long lines. 31667ac_delim='%!_!# ' 31668for ac_last_try in false false :; do 31669 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31670 if test -z "$ac_tt"; then 31671 break 31672 elif $ac_last_try; then 31673 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31674 else 31675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31676 fi 31677done 31678 31679# For the awk script, D is an array of macro values keyed by name, 31680# likewise P contains macro parameters if any. Preserve backslash 31681# newline sequences. 31682 31683ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31684sed -n ' 31685s/.\{148\}/&'"$ac_delim"'/g 31686t rset 31687:rset 31688s/^[ ]*#[ ]*define[ ][ ]*/ / 31689t def 31690d 31691:def 31692s/\\$// 31693t bsnl 31694s/["\\]/\\&/g 31695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31696D["\1"]=" \3"/p 31697s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31698d 31699:bsnl 31700s/["\\]/\\&/g 31701s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31702D["\1"]=" \3\\\\\\n"\\/p 31703t cont 31704s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31705t cont 31706d 31707:cont 31708n 31709s/.\{148\}/&'"$ac_delim"'/g 31710t clear 31711:clear 31712s/\\$// 31713t bsnlc 31714s/["\\]/\\&/g; s/^/"/; s/$/"/p 31715d 31716:bsnlc 31717s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31718b cont 31719' <confdefs.h | sed ' 31720s/'"$ac_delim"'/"\\\ 31721"/g' >>$CONFIG_STATUS || ac_write_fail=1 31722 31723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31724 for (key in D) D_is_set[key] = 1 31725 FS = "" 31726} 31727/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31728 line = \$ 0 31729 split(line, arg, " ") 31730 if (arg[1] == "#") { 31731 defundef = arg[2] 31732 mac1 = arg[3] 31733 } else { 31734 defundef = substr(arg[1], 2) 31735 mac1 = arg[2] 31736 } 31737 split(mac1, mac2, "(") #) 31738 macro = mac2[1] 31739 prefix = substr(line, 1, index(line, defundef) - 1) 31740 if (D_is_set[macro]) { 31741 # Preserve the white space surrounding the "#". 31742 print prefix "define", macro P[macro] D[macro] 31743 next 31744 } else { 31745 # Replace #undef with comments. This is necessary, for example, 31746 # in the case of _POSIX_SOURCE, which is predefined and required 31747 # on some systems where configure will not decide to define it. 31748 if (defundef == "undef") { 31749 print "/*", prefix defundef, macro, "*/" 31750 next 31751 } 31752 } 31753} 31754{ print } 31755_ACAWK 31756_ACEOF 31757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31758 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31759fi # test -n "$CONFIG_HEADERS" 31760 31761 31762eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31763shift 31764for ac_tag 31765do 31766 case $ac_tag in 31767 :[FHLC]) ac_mode=$ac_tag; continue;; 31768 esac 31769 case $ac_mode$ac_tag in 31770 :[FHL]*:*);; 31771 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 31772 :[FH]-) ac_tag=-:-;; 31773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31774 esac 31775 ac_save_IFS=$IFS 31776 IFS=: 31777 set x $ac_tag 31778 IFS=$ac_save_IFS 31779 shift 31780 ac_file=$1 31781 shift 31782 31783 case $ac_mode in 31784 :L) ac_source=$1;; 31785 :[FH]) 31786 ac_file_inputs= 31787 for ac_f 31788 do 31789 case $ac_f in 31790 -) ac_f="$ac_tmp/stdin";; 31791 *) # Look for the file first in the build tree, then in the source tree 31792 # (if the path is not absolute). The absolute path cannot be DOS-style, 31793 # because $ac_f cannot contain `:'. 31794 test -f "$ac_f" || 31795 case $ac_f in 31796 [\\/$]*) false;; 31797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31798 esac || 31799 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 31800 esac 31801 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31802 as_fn_append ac_file_inputs " '$ac_f'" 31803 done 31804 31805 # Let's still pretend it is `configure' which instantiates (i.e., don't 31806 # use $as_me), people would be surprised to read: 31807 # /* config.h. Generated by config.status. */ 31808 configure_input='Generated from '` 31809 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31810 `' by configure.' 31811 if test x"$ac_file" != x-; then 31812 configure_input="$ac_file. $configure_input" 31813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31814printf "%s\n" "$as_me: creating $ac_file" >&6;} 31815 fi 31816 # Neutralize special characters interpreted by sed in replacement strings. 31817 case $configure_input in #( 31818 *\&* | *\|* | *\\* ) 31819 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 31820 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31821 *) ac_sed_conf_input=$configure_input;; 31822 esac 31823 31824 case $ac_tag in 31825 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31827 esac 31828 ;; 31829 esac 31830 31831 ac_dir=`$as_dirname -- "$ac_file" || 31832$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31833 X"$ac_file" : 'X\(//\)[^/]' \| \ 31834 X"$ac_file" : 'X\(//\)$' \| \ 31835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31836printf "%s\n" X"$ac_file" | 31837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31838 s//\1/ 31839 q 31840 } 31841 /^X\(\/\/\)[^/].*/{ 31842 s//\1/ 31843 q 31844 } 31845 /^X\(\/\/\)$/{ 31846 s//\1/ 31847 q 31848 } 31849 /^X\(\/\).*/{ 31850 s//\1/ 31851 q 31852 } 31853 s/.*/./; q'` 31854 as_dir="$ac_dir"; as_fn_mkdir_p 31855 ac_builddir=. 31856 31857case "$ac_dir" in 31858.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31859*) 31860 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 31861 # A ".." for each directory in $ac_dir_suffix. 31862 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31863 case $ac_top_builddir_sub in 31864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31866 esac ;; 31867esac 31868ac_abs_top_builddir=$ac_pwd 31869ac_abs_builddir=$ac_pwd$ac_dir_suffix 31870# for backward compatibility: 31871ac_top_builddir=$ac_top_build_prefix 31872 31873case $srcdir in 31874 .) # We are building in place. 31875 ac_srcdir=. 31876 ac_top_srcdir=$ac_top_builddir_sub 31877 ac_abs_top_srcdir=$ac_pwd ;; 31878 [\\/]* | ?:[\\/]* ) # Absolute name. 31879 ac_srcdir=$srcdir$ac_dir_suffix; 31880 ac_top_srcdir=$srcdir 31881 ac_abs_top_srcdir=$srcdir ;; 31882 *) # Relative name. 31883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31884 ac_top_srcdir=$ac_top_build_prefix$srcdir 31885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31886esac 31887ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31888 31889 31890 case $ac_mode in 31891 :F) 31892 # 31893 # CONFIG_FILE 31894 # 31895 31896 case $INSTALL in 31897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31899 esac 31900 ac_MKDIR_P=$MKDIR_P 31901 case $MKDIR_P in 31902 [\\/$]* | ?:[\\/]* ) ;; 31903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 31904 esac 31905_ACEOF 31906 31907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31908# If the template does not know about datarootdir, expand it. 31909# FIXME: This hack should be removed a few years after 2.60. 31910ac_datarootdir_hack=; ac_datarootdir_seen= 31911ac_sed_dataroot=' 31912/datarootdir/ { 31913 p 31914 q 31915} 31916/@datadir@/p 31917/@docdir@/p 31918/@infodir@/p 31919/@localedir@/p 31920/@mandir@/p' 31921case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31922*datarootdir*) ac_datarootdir_seen=yes;; 31923*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31925printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31926_ACEOF 31927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31928 ac_datarootdir_hack=' 31929 s&@datadir@&$datadir&g 31930 s&@docdir@&$docdir&g 31931 s&@infodir@&$infodir&g 31932 s&@localedir@&$localedir&g 31933 s&@mandir@&$mandir&g 31934 s&\\\${datarootdir}&$datarootdir&g' ;; 31935esac 31936_ACEOF 31937 31938# Neutralize VPATH when `$srcdir' = `.'. 31939# Shell code in configure.ac might set extrasub. 31940# FIXME: do we really want to maintain this feature? 31941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31942ac_sed_extra="$ac_vpsub 31943$extrasub 31944_ACEOF 31945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31946:t 31947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31948s|@configure_input@|$ac_sed_conf_input|;t t 31949s&@top_builddir@&$ac_top_builddir_sub&;t t 31950s&@top_build_prefix@&$ac_top_build_prefix&;t t 31951s&@srcdir@&$ac_srcdir&;t t 31952s&@abs_srcdir@&$ac_abs_srcdir&;t t 31953s&@top_srcdir@&$ac_top_srcdir&;t t 31954s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31955s&@builddir@&$ac_builddir&;t t 31956s&@abs_builddir@&$ac_abs_builddir&;t t 31957s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31958s&@INSTALL@&$ac_INSTALL&;t t 31959s&@MKDIR_P@&$ac_MKDIR_P&;t t 31960$ac_datarootdir_hack 31961" 31962eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 31963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31964 31965test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31968 "$ac_tmp/out"`; test -z "$ac_out"; } && 31969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31970which seems to be undefined. Please make sure it is defined" >&5 31971printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31972which seems to be undefined. Please make sure it is defined" >&2;} 31973 31974 rm -f "$ac_tmp/stdin" 31975 case $ac_file in 31976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31978 esac \ 31979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31980 ;; 31981 :H) 31982 # 31983 # CONFIG_HEADER 31984 # 31985 if test x"$ac_file" != x-; then 31986 { 31987 printf "%s\n" "/* $configure_input */" >&1 \ 31988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31989 } >"$ac_tmp/config.h" \ 31990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31993printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 31994 else 31995 rm -f "$ac_file" 31996 mv "$ac_tmp/config.h" "$ac_file" \ 31997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31998 fi 31999 else 32000 printf "%s\n" "/* $configure_input */" >&1 \ 32001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32002 || as_fn_error $? "could not create -" "$LINENO" 5 32003 fi 32004# Compute "$ac_file"'s index in $config_headers. 32005_am_arg="$ac_file" 32006_am_stamp_count=1 32007for _am_header in $config_headers :; do 32008 case $_am_header in 32009 $_am_arg | $_am_arg:* ) 32010 break ;; 32011 * ) 32012 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32013 esac 32014done 32015echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32016$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32017 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32018 X"$_am_arg" : 'X\(//\)$' \| \ 32019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32020printf "%s\n" X"$_am_arg" | 32021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32022 s//\1/ 32023 q 32024 } 32025 /^X\(\/\/\)[^/].*/{ 32026 s//\1/ 32027 q 32028 } 32029 /^X\(\/\/\)$/{ 32030 s//\1/ 32031 q 32032 } 32033 /^X\(\/\).*/{ 32034 s//\1/ 32035 q 32036 } 32037 s/.*/./; q'`/stamp-h$_am_stamp_count 32038 ;; 32039 32040 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32041printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 32042 ;; 32043 esac 32044 32045 32046 case $ac_file$ac_mode in 32047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32048 # Older Autoconf quotes --file arguments for eval, but not when files 32049 # are listed without --file. Let's play safe and only enable the eval 32050 # if we detect the quoting. 32051 # TODO: see whether this extra hack can be removed once we start 32052 # requiring Autoconf 2.70 or later. 32053 case $CONFIG_FILES in #( 32054 *\'*) : 32055 eval set x "$CONFIG_FILES" ;; #( 32056 *) : 32057 set x $CONFIG_FILES ;; #( 32058 *) : 32059 ;; 32060esac 32061 shift 32062 # Used to flag and report bootstrapping failures. 32063 am_rc=0 32064 for am_mf 32065 do 32066 # Strip MF so we end up with the name of the file. 32067 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 32068 # Check whether this is an Automake generated Makefile which includes 32069 # dependency-tracking related rules and includes. 32070 # Grep'ing the whole file directly is not great: AIX grep has a line 32071 # limit of 2048, but all sed's we know have understand at least 4000. 32072 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 32073 || continue 32074 am_dirpart=`$as_dirname -- "$am_mf" || 32075$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32076 X"$am_mf" : 'X\(//\)[^/]' \| \ 32077 X"$am_mf" : 'X\(//\)$' \| \ 32078 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32079printf "%s\n" X"$am_mf" | 32080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32081 s//\1/ 32082 q 32083 } 32084 /^X\(\/\/\)[^/].*/{ 32085 s//\1/ 32086 q 32087 } 32088 /^X\(\/\/\)$/{ 32089 s//\1/ 32090 q 32091 } 32092 /^X\(\/\).*/{ 32093 s//\1/ 32094 q 32095 } 32096 s/.*/./; q'` 32097 am_filepart=`$as_basename -- "$am_mf" || 32098$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 32099 X"$am_mf" : 'X\(//\)$' \| \ 32100 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 32101printf "%s\n" X/"$am_mf" | 32102 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32103 s//\1/ 32104 q 32105 } 32106 /^X\/\(\/\/\)$/{ 32107 s//\1/ 32108 q 32109 } 32110 /^X\/\(\/\).*/{ 32111 s//\1/ 32112 q 32113 } 32114 s/.*/./; q'` 32115 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 32116 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32117 | $MAKE -f - am--depfiles" >&5 32118 (cd "$am_dirpart" \ 32119 && sed -e '/# am--include-marker/d' "$am_filepart" \ 32120 | $MAKE -f - am--depfiles) >&5 2>&5 32121 ac_status=$? 32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32123 (exit $ac_status); } || am_rc=$? 32124 done 32125 if test $am_rc -ne 0; then 32126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32128as_fn_error $? "Something went wrong bootstrapping makefile fragments 32129 for automatic dependency tracking. If GNU make was not used, consider 32130 re-running the configure script with MAKE=\"gmake\" (or whatever is 32131 necessary). You can also try re-running configure with the 32132 '--disable-dependency-tracking' option to at least be able to build 32133 the package (albeit without support for automatic dependency tracking). 32134See \`config.log' for more details" "$LINENO" 5; } 32135 fi 32136 { am_dirpart=; unset am_dirpart;} 32137 { am_filepart=; unset am_filepart;} 32138 { am_mf=; unset am_mf;} 32139 { am_rc=; unset am_rc;} 32140 rm -f conftest-deps.mk 32141} 32142 ;; 32143 "po-directories":C) 32144 for ac_file in $CONFIG_FILES; do 32145 # Support "outfile[:infile[:infile...]]" 32146 case "$ac_file" in 32147 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 32148 esac 32149 # PO directories have a Makefile.in generated from Makefile.in.in. 32150 case "$ac_file" in */Makefile.in) 32151 # Adjust a relative srcdir. 32152 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 32153 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 32154 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 32155 # In autoconf-2.13 it is called $ac_given_srcdir. 32156 # In autoconf-2.50 it is called $srcdir. 32157 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 32158 case "$ac_given_srcdir" in 32159 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 32160 /*) top_srcdir="$ac_given_srcdir" ;; 32161 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 32162 esac 32163 # Treat a directory as a PO directory if and only if it has a 32164 # POTFILES.in file. This allows packages to have multiple PO 32165 # directories under different names or in different locations. 32166 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 32167 rm -f "$ac_dir/POTFILES" 32168 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 32169 gt_tab=`printf '\t'` 32170 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 32171 POMAKEFILEDEPS="POTFILES.in" 32172 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 32173 # on $ac_dir but don't depend on user-specified configuration 32174 # parameters. 32175 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 32176 # The LINGUAS file contains the set of available languages. 32177 if test -n "$OBSOLETE_ALL_LINGUAS"; then 32178 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 32179 fi 32180 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 32181 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 32182 else 32183 # The set of available languages was given in configure.in. 32184 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 32185 fi 32186 # Compute POFILES 32187 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 32188 # Compute UPDATEPOFILES 32189 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 32190 # Compute DUMMYPOFILES 32191 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 32192 # Compute GMOFILES 32193 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 32194 case "$ac_given_srcdir" in 32195 .) srcdirpre= ;; 32196 *) srcdirpre='$(srcdir)/' ;; 32197 esac 32198 POFILES= 32199 UPDATEPOFILES= 32200 DUMMYPOFILES= 32201 GMOFILES= 32202 for lang in $ALL_LINGUAS; do 32203 POFILES="$POFILES $srcdirpre$lang.po" 32204 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 32205 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 32206 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 32207 done 32208 # CATALOGS depends on both $ac_dir and the user's LINGUAS 32209 # environment variable. 32210 INST_LINGUAS= 32211 if test -n "$ALL_LINGUAS"; then 32212 for presentlang in $ALL_LINGUAS; do 32213 useit=no 32214 if test "%UNSET%" != "$LINGUAS"; then 32215 desiredlanguages="$LINGUAS" 32216 else 32217 desiredlanguages="$ALL_LINGUAS" 32218 fi 32219 for desiredlang in $desiredlanguages; do 32220 # Use the presentlang catalog if desiredlang is 32221 # a. equal to presentlang, or 32222 # b. a variant of presentlang (because in this case, 32223 # presentlang can be used as a fallback for messages 32224 # which are not translated in the desiredlang catalog). 32225 case "$desiredlang" in 32226 "$presentlang"*) useit=yes;; 32227 esac 32228 done 32229 if test $useit = yes; then 32230 INST_LINGUAS="$INST_LINGUAS $presentlang" 32231 fi 32232 done 32233 fi 32234 CATALOGS= 32235 if test -n "$INST_LINGUAS"; then 32236 for lang in $INST_LINGUAS; do 32237 CATALOGS="$CATALOGS $lang.gmo" 32238 done 32239 fi 32240 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 32241 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" 32242 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 32243 if test -f "$f"; then 32244 case "$f" in 32245 *.orig | *.bak | *~) ;; 32246 *) cat "$f" >> "$ac_dir/Makefile" ;; 32247 esac 32248 fi 32249 done 32250 fi 32251 ;; 32252 esac 32253 done ;; 32254 "pre-inst-env":F) chmod +x pre-inst-env ;; 32255 32256 esac 32257done # for ac_tag 32258 32259 32260as_fn_exit 0 32261_ACEOF 32262ac_clean_files=$ac_clean_files_save 32263 32264test $ac_write_fail = 0 || 32265 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32266 32267 32268# configure is writing to config.log, and then calls config.status. 32269# config.status does its own redirection, appending to config.log. 32270# Unfortunately, on DOS this fails, as config.log is still kept open 32271# by configure, so config.status won't be able to write to it; its 32272# output is simply discarded. So we exec the FD to /dev/null, 32273# effectively closing config.log, so it can be properly (re)opened and 32274# appended to by config.status. When coming back to configure, we 32275# need to make the FD available again. 32276if test "$no_create" != yes; then 32277 ac_cs_success=: 32278 ac_config_status_args= 32279 test "$silent" = yes && 32280 ac_config_status_args="$ac_config_status_args --quiet" 32281 exec 5>/dev/null 32282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32283 exec 5>>config.log 32284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32285 # would make configure fail if this is the last instruction. 32286 $ac_cs_success || as_fn_exit 1 32287fi 32288if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32290printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32291fi 32292 32293 32294# Summarize warnings to make them more visible. 32295if test $have_termlib = no; then 32296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a terminal library among ${TERMLIB_VARIANTS}" >&5 32297printf "%s\n" "$as_me: WARNING: Could not find a terminal library among ${TERMLIB_VARIANTS}" >&2;} 32298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The programs from \`info' directory will not be built." >&5 32299printf "%s\n" "$as_me: WARNING: The programs from \`info' directory will not be built." >&2;} 32300fi 32301 32302