1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU Hello 2.10. 4# 5# Report bugs to <bug-hello@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 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'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-hello@gnu.org 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='GNU Hello' 582PACKAGE_TARNAME='hello' 583PACKAGE_VERSION='2.10' 584PACKAGE_STRING='GNU Hello 2.10' 585PACKAGE_BUGREPORT='bug-hello@gnu.org' 586PACKAGE_URL='http://www.gnu.org/software/hello/' 587 588ac_unique_file="src/hello.c" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_header_list= 626gl_getopt_required=POSIX 627gl_getopt_required=POSIX 628ac_func_list= 629gt_needs= 630ac_config_libobj_dir=lib 631ac_subst_vars='gltests_LTLIBOBJS 632gltests_LIBOBJS 633gl_LTLIBOBJS 634gl_LIBOBJS 635CONFIG_INCLUDE 636am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640POSUB 641INTLLIBS 642LTLIBICONV 643LIBICONV 644INTL_MACOSX_LIBS 645XGETTEXT_EXTRA_OPTIONS 646MSGMERGE 647XGETTEXT_015 648XGETTEXT 649GMSGFMT_015 650MSGFMT_015 651GMSGFMT 652MSGFMT 653GETTEXT_MACRO_VERSION 654USE_NLS 655HELP2MAN 656GIT_CROSS_COMPILING_FALSE 657GIT_CROSS_COMPILING_TRUE 658BUILD_FROM_GIT_FALSE 659BUILD_FROM_GIT_TRUE 660LIBHELLO_LTLIBDEPS 661LIBHELLO_LIBDEPS 662gltests_WITNESS 663REPLACE_TOWLOWER 664REPLACE_ISWCNTRL 665HAVE_WCTYPE_H 666NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 667NEXT_WCTYPE_H 668HAVE_ISWCNTRL 669REPLACE_ISWBLANK 670HAVE_WCTRANS_T 671HAVE_WCTYPE_T 672HAVE_ISWBLANK 673GNULIB_TOWCTRANS 674GNULIB_WCTRANS 675GNULIB_ISWCTYPE 676GNULIB_WCTYPE 677GNULIB_ISWBLANK 678HAVE_WINT_T 679HAVE_FEATURES_H 680HAVE_WCHAR_H 681NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 682NEXT_WCHAR_H 683HAVE_UNISTD_H 684NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 685NEXT_UNISTD_H 686WINDOWS_64_BIT_OFF_T 687NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 688NEXT_SYS_TYPES_H 689NEXT_AS_FIRST_DIRECTIVE_STRING_H 690NEXT_STRING_H 691HAVE_WINSOCK2_H 692NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 693NEXT_STDLIB_H 694NEXT_AS_FIRST_DIRECTIVE_STDIO_H 695NEXT_STDIO_H 696REPLACE_VSPRINTF 697REPLACE_VSNPRINTF 698REPLACE_VPRINTF 699REPLACE_VFPRINTF 700REPLACE_VDPRINTF 701REPLACE_VASPRINTF 702REPLACE_TMPFILE 703REPLACE_STDIO_WRITE_FUNCS 704REPLACE_STDIO_READ_FUNCS 705REPLACE_SPRINTF 706REPLACE_SNPRINTF 707REPLACE_RENAMEAT 708REPLACE_RENAME 709REPLACE_REMOVE 710REPLACE_PRINTF 711REPLACE_POPEN 712REPLACE_PERROR 713REPLACE_OBSTACK_PRINTF 714REPLACE_GETLINE 715REPLACE_GETDELIM 716REPLACE_FTELLO 717REPLACE_FTELL 718REPLACE_FSEEKO 719REPLACE_FSEEK 720REPLACE_FREOPEN 721REPLACE_FPURGE 722REPLACE_FPRINTF 723REPLACE_FOPEN 724REPLACE_FFLUSH 725REPLACE_FDOPEN 726REPLACE_FCLOSE 727REPLACE_DPRINTF 728HAVE_VDPRINTF 729HAVE_VASPRINTF 730HAVE_RENAMEAT 731HAVE_POPEN 732HAVE_PCLOSE 733HAVE_FTELLO 734HAVE_FSEEKO 735HAVE_DPRINTF 736HAVE_DECL_VSNPRINTF 737HAVE_DECL_SNPRINTF 738HAVE_DECL_OBSTACK_PRINTF 739HAVE_DECL_GETLINE 740HAVE_DECL_GETDELIM 741HAVE_DECL_FTELLO 742HAVE_DECL_FSEEKO 743HAVE_DECL_FPURGE 744GNULIB_VSPRINTF_POSIX 745GNULIB_VSNPRINTF 746GNULIB_VPRINTF_POSIX 747GNULIB_VPRINTF 748GNULIB_VFPRINTF_POSIX 749GNULIB_VFPRINTF 750GNULIB_VDPRINTF 751GNULIB_VSCANF 752GNULIB_VFSCANF 753GNULIB_VASPRINTF 754GNULIB_TMPFILE 755GNULIB_STDIO_H_SIGPIPE 756GNULIB_STDIO_H_NONBLOCKING 757GNULIB_SPRINTF_POSIX 758GNULIB_SNPRINTF 759GNULIB_SCANF 760GNULIB_RENAMEAT 761GNULIB_RENAME 762GNULIB_REMOVE 763GNULIB_PUTS 764GNULIB_PUTCHAR 765GNULIB_PUTC 766GNULIB_PRINTF_POSIX 767GNULIB_PRINTF 768GNULIB_POPEN 769GNULIB_PERROR 770GNULIB_PCLOSE 771GNULIB_OBSTACK_PRINTF_POSIX 772GNULIB_OBSTACK_PRINTF 773GNULIB_GETLINE 774GNULIB_GETDELIM 775GNULIB_GETCHAR 776GNULIB_GETC 777GNULIB_FWRITE 778GNULIB_FTELLO 779GNULIB_FTELL 780GNULIB_FSEEKO 781GNULIB_FSEEK 782GNULIB_FSCANF 783GNULIB_FREOPEN 784GNULIB_FREAD 785GNULIB_FPUTS 786GNULIB_FPUTC 787GNULIB_FPURGE 788GNULIB_FPRINTF_POSIX 789GNULIB_FPRINTF 790GNULIB_FOPEN 791GNULIB_FGETS 792GNULIB_FGETC 793GNULIB_FFLUSH 794GNULIB_FDOPEN 795GNULIB_FCLOSE 796GNULIB_DPRINTF 797NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 798NEXT_STDDEF_H 799GL_GENERATE_STDDEF_H_FALSE 800GL_GENERATE_STDDEF_H_TRUE 801STDDEF_H 802HAVE_WCHAR_T 803REPLACE_NULL 804HAVE__BOOL 805GL_GENERATE_STDBOOL_H_FALSE 806GL_GENERATE_STDBOOL_H_TRUE 807STDBOOL_H 808HAVE_MSVC_INVALID_PARAMETER_HANDLER 809UNDEFINE_STRTOK_R 810REPLACE_STRTOK_R 811REPLACE_STRSIGNAL 812REPLACE_STRNLEN 813REPLACE_STRNDUP 814REPLACE_STRNCAT 815REPLACE_STRERROR_R 816REPLACE_STRERROR 817REPLACE_STRCHRNUL 818REPLACE_STRCASESTR 819REPLACE_STRSTR 820REPLACE_STRDUP 821REPLACE_STPNCPY 822REPLACE_MEMMEM 823REPLACE_MEMCHR 824HAVE_STRVERSCMP 825HAVE_DECL_STRSIGNAL 826HAVE_DECL_STRERROR_R 827HAVE_DECL_STRTOK_R 828HAVE_STRCASESTR 829HAVE_STRSEP 830HAVE_STRPBRK 831HAVE_DECL_STRNLEN 832HAVE_DECL_STRNDUP 833HAVE_DECL_STRDUP 834HAVE_STRCHRNUL 835HAVE_STPNCPY 836HAVE_STPCPY 837HAVE_RAWMEMCHR 838HAVE_DECL_MEMRCHR 839HAVE_MEMPCPY 840HAVE_DECL_MEMMEM 841HAVE_MEMCHR 842HAVE_FFSLL 843HAVE_FFSL 844HAVE_MBSLEN 845GNULIB_STRVERSCMP 846GNULIB_STRSIGNAL 847GNULIB_STRERROR_R 848GNULIB_STRERROR 849GNULIB_MBSTOK_R 850GNULIB_MBSSEP 851GNULIB_MBSSPN 852GNULIB_MBSPBRK 853GNULIB_MBSCSPN 854GNULIB_MBSCASESTR 855GNULIB_MBSPCASECMP 856GNULIB_MBSNCASECMP 857GNULIB_MBSCASECMP 858GNULIB_MBSSTR 859GNULIB_MBSRCHR 860GNULIB_MBSCHR 861GNULIB_MBSNLEN 862GNULIB_MBSLEN 863GNULIB_STRTOK_R 864GNULIB_STRCASESTR 865GNULIB_STRSTR 866GNULIB_STRSEP 867GNULIB_STRPBRK 868GNULIB_STRNLEN 869GNULIB_STRNDUP 870GNULIB_STRNCAT 871GNULIB_STRDUP 872GNULIB_STRCHRNUL 873GNULIB_STPNCPY 874GNULIB_STPCPY 875GNULIB_RAWMEMCHR 876GNULIB_MEMRCHR 877GNULIB_MEMPCPY 878GNULIB_MEMMEM 879GNULIB_MEMCHR 880GNULIB_FFSLL 881GNULIB_FFSL 882LOCALE_FR 883LOCALE_FR_UTF8 884LOCALE_ZH_CN 885LOCALE_JA 886REPLACE_WCSWIDTH 887REPLACE_WCWIDTH 888REPLACE_WCSNRTOMBS 889REPLACE_WCSRTOMBS 890REPLACE_WCRTOMB 891REPLACE_MBSNRTOWCS 892REPLACE_MBSRTOWCS 893REPLACE_MBRLEN 894REPLACE_MBRTOWC 895REPLACE_MBSINIT 896REPLACE_WCTOB 897REPLACE_BTOWC 898REPLACE_MBSTATE_T 899HAVE_DECL_WCWIDTH 900HAVE_DECL_WCTOB 901HAVE_WCSWIDTH 902HAVE_WCSTOK 903HAVE_WCSSTR 904HAVE_WCSPBRK 905HAVE_WCSSPN 906HAVE_WCSCSPN 907HAVE_WCSRCHR 908HAVE_WCSCHR 909HAVE_WCSDUP 910HAVE_WCSXFRM 911HAVE_WCSCOLL 912HAVE_WCSNCASECMP 913HAVE_WCSCASECMP 914HAVE_WCSNCMP 915HAVE_WCSCMP 916HAVE_WCSNCAT 917HAVE_WCSCAT 918HAVE_WCPNCPY 919HAVE_WCSNCPY 920HAVE_WCPCPY 921HAVE_WCSCPY 922HAVE_WCSNLEN 923HAVE_WCSLEN 924HAVE_WMEMSET 925HAVE_WMEMMOVE 926HAVE_WMEMCPY 927HAVE_WMEMCMP 928HAVE_WMEMCHR 929HAVE_WCSNRTOMBS 930HAVE_WCSRTOMBS 931HAVE_WCRTOMB 932HAVE_MBSNRTOWCS 933HAVE_MBSRTOWCS 934HAVE_MBRLEN 935HAVE_MBRTOWC 936HAVE_MBSINIT 937HAVE_BTOWC 938GNULIB_WCSWIDTH 939GNULIB_WCSTOK 940GNULIB_WCSSTR 941GNULIB_WCSPBRK 942GNULIB_WCSSPN 943GNULIB_WCSCSPN 944GNULIB_WCSRCHR 945GNULIB_WCSCHR 946GNULIB_WCSDUP 947GNULIB_WCSXFRM 948GNULIB_WCSCOLL 949GNULIB_WCSNCASECMP 950GNULIB_WCSCASECMP 951GNULIB_WCSNCMP 952GNULIB_WCSCMP 953GNULIB_WCSNCAT 954GNULIB_WCSCAT 955GNULIB_WCPNCPY 956GNULIB_WCSNCPY 957GNULIB_WCPCPY 958GNULIB_WCSCPY 959GNULIB_WCSNLEN 960GNULIB_WCSLEN 961GNULIB_WMEMSET 962GNULIB_WMEMMOVE 963GNULIB_WMEMCPY 964GNULIB_WMEMCMP 965GNULIB_WMEMCHR 966GNULIB_WCWIDTH 967GNULIB_WCSNRTOMBS 968GNULIB_WCSRTOMBS 969GNULIB_WCRTOMB 970GNULIB_MBSNRTOWCS 971GNULIB_MBSRTOWCS 972GNULIB_MBRLEN 973GNULIB_MBRTOWC 974GNULIB_MBSINIT 975GNULIB_WCTOB 976GNULIB_BTOWC 977REPLACE_WCTOMB 978REPLACE_UNSETENV 979REPLACE_STRTOD 980REPLACE_SETENV 981REPLACE_REALPATH 982REPLACE_REALLOC 983REPLACE_RANDOM_R 984REPLACE_QSORT_R 985REPLACE_PUTENV 986REPLACE_PTSNAME_R 987REPLACE_PTSNAME 988REPLACE_MKSTEMP 989REPLACE_MBTOWC 990REPLACE_MALLOC 991REPLACE_CANONICALIZE_FILE_NAME 992REPLACE_CALLOC 993HAVE_DECL_UNSETENV 994HAVE_UNLOCKPT 995HAVE_SYS_LOADAVG_H 996HAVE_STRUCT_RANDOM_DATA 997HAVE_STRTOULL 998HAVE_STRTOLL 999HAVE_STRTOD 1000HAVE_DECL_SETENV 1001HAVE_SETENV 1002HAVE_SECURE_GETENV 1003HAVE_RPMATCH 1004HAVE_REALPATH 1005HAVE_RANDOM_R 1006HAVE_RANDOM_H 1007HAVE_RANDOM 1008HAVE_PTSNAME_R 1009HAVE_PTSNAME 1010HAVE_POSIX_OPENPT 1011HAVE_MKSTEMPS 1012HAVE_MKSTEMP 1013HAVE_MKOSTEMPS 1014HAVE_MKOSTEMP 1015HAVE_MKDTEMP 1016HAVE_GRANTPT 1017HAVE_GETSUBOPT 1018HAVE_DECL_GETLOADAVG 1019HAVE_CANONICALIZE_FILE_NAME 1020HAVE_ATOLL 1021HAVE__EXIT 1022GNULIB_WCTOMB 1023GNULIB_UNSETENV 1024GNULIB_UNLOCKPT 1025GNULIB_SYSTEM_POSIX 1026GNULIB_STRTOULL 1027GNULIB_STRTOLL 1028GNULIB_STRTOD 1029GNULIB_SETENV 1030GNULIB_SECURE_GETENV 1031GNULIB_RPMATCH 1032GNULIB_REALPATH 1033GNULIB_REALLOC_POSIX 1034GNULIB_RANDOM_R 1035GNULIB_RANDOM 1036GNULIB_QSORT_R 1037GNULIB_PUTENV 1038GNULIB_PTSNAME_R 1039GNULIB_PTSNAME 1040GNULIB_POSIX_OPENPT 1041GNULIB_MKSTEMPS 1042GNULIB_MKSTEMP 1043GNULIB_MKOSTEMPS 1044GNULIB_MKOSTEMP 1045GNULIB_MKDTEMP 1046GNULIB_MBTOWC 1047GNULIB_MALLOC_POSIX 1048GNULIB_GRANTPT 1049GNULIB_GETSUBOPT 1050GNULIB_GETLOADAVG 1051GNULIB_CANONICALIZE_FILE_NAME 1052GNULIB_CALLOC_POSIX 1053GNULIB_ATOLL 1054GNULIB__EXIT 1055SED 1056LOCALCHARSET_TESTS_ENVIRONMENT 1057GLIBC21 1058LTLIBINTL 1059LIBINTL 1060GNULIB_GL_UNISTD_H_GETOPT 1061GETOPT_H 1062HAVE_GETOPT_H 1063NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1064NEXT_GETOPT_H 1065UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1066UNISTD_H_HAVE_WINSOCK2_H 1067REPLACE_WRITE 1068REPLACE_USLEEP 1069REPLACE_UNLINKAT 1070REPLACE_UNLINK 1071REPLACE_TTYNAME_R 1072REPLACE_SYMLINKAT 1073REPLACE_SYMLINK 1074REPLACE_SLEEP 1075REPLACE_RMDIR 1076REPLACE_READLINKAT 1077REPLACE_READLINK 1078REPLACE_READ 1079REPLACE_PWRITE 1080REPLACE_PREAD 1081REPLACE_LSEEK 1082REPLACE_LINKAT 1083REPLACE_LINK 1084REPLACE_LCHOWN 1085REPLACE_ISATTY 1086REPLACE_GETPAGESIZE 1087REPLACE_GETGROUPS 1088REPLACE_GETLOGIN_R 1089REPLACE_GETDTABLESIZE 1090REPLACE_GETDOMAINNAME 1091REPLACE_GETCWD 1092REPLACE_FTRUNCATE 1093REPLACE_FCHOWNAT 1094REPLACE_DUP2 1095REPLACE_DUP 1096REPLACE_CLOSE 1097REPLACE_CHOWN 1098HAVE_SYS_PARAM_H 1099HAVE_OS_H 1100HAVE_DECL_TTYNAME_R 1101HAVE_DECL_SETHOSTNAME 1102HAVE_DECL_GETUSERSHELL 1103HAVE_DECL_GETPAGESIZE 1104HAVE_DECL_GETLOGIN_R 1105HAVE_DECL_GETDOMAINNAME 1106HAVE_DECL_FDATASYNC 1107HAVE_DECL_FCHDIR 1108HAVE_DECL_ENVIRON 1109HAVE_USLEEP 1110HAVE_UNLINKAT 1111HAVE_SYMLINKAT 1112HAVE_SYMLINK 1113HAVE_SLEEP 1114HAVE_SETHOSTNAME 1115HAVE_READLINKAT 1116HAVE_READLINK 1117HAVE_PWRITE 1118HAVE_PREAD 1119HAVE_PIPE2 1120HAVE_PIPE 1121HAVE_LINKAT 1122HAVE_LINK 1123HAVE_LCHOWN 1124HAVE_GROUP_MEMBER 1125HAVE_GETPAGESIZE 1126HAVE_GETLOGIN 1127HAVE_GETHOSTNAME 1128HAVE_GETGROUPS 1129HAVE_GETDTABLESIZE 1130HAVE_FTRUNCATE 1131HAVE_FSYNC 1132HAVE_FDATASYNC 1133HAVE_FCHOWNAT 1134HAVE_FCHDIR 1135HAVE_FACCESSAT 1136HAVE_EUIDACCESS 1137HAVE_DUP3 1138HAVE_DUP2 1139HAVE_CHOWN 1140GNULIB_WRITE 1141GNULIB_USLEEP 1142GNULIB_UNLINKAT 1143GNULIB_UNLINK 1144GNULIB_UNISTD_H_SIGPIPE 1145GNULIB_UNISTD_H_NONBLOCKING 1146GNULIB_TTYNAME_R 1147GNULIB_SYMLINKAT 1148GNULIB_SYMLINK 1149GNULIB_SLEEP 1150GNULIB_SETHOSTNAME 1151GNULIB_RMDIR 1152GNULIB_READLINKAT 1153GNULIB_READLINK 1154GNULIB_READ 1155GNULIB_PWRITE 1156GNULIB_PREAD 1157GNULIB_PIPE2 1158GNULIB_PIPE 1159GNULIB_LSEEK 1160GNULIB_LINKAT 1161GNULIB_LINK 1162GNULIB_LCHOWN 1163GNULIB_ISATTY 1164GNULIB_GROUP_MEMBER 1165GNULIB_GETUSERSHELL 1166GNULIB_GETPAGESIZE 1167GNULIB_GETLOGIN_R 1168GNULIB_GETLOGIN 1169GNULIB_GETHOSTNAME 1170GNULIB_GETGROUPS 1171GNULIB_GETDTABLESIZE 1172GNULIB_GETDOMAINNAME 1173GNULIB_GETCWD 1174GNULIB_FTRUNCATE 1175GNULIB_FSYNC 1176GNULIB_FDATASYNC 1177GNULIB_FCHOWNAT 1178GNULIB_FCHDIR 1179GNULIB_FACCESSAT 1180GNULIB_EUIDACCESS 1181GNULIB_ENVIRON 1182GNULIB_DUP3 1183GNULIB_DUP2 1184GNULIB_DUP 1185GNULIB_CLOSE 1186GNULIB_CHOWN 1187GNULIB_CHDIR 1188EOVERFLOW_VALUE 1189EOVERFLOW_HIDDEN 1190ENOLINK_VALUE 1191ENOLINK_HIDDEN 1192EMULTIHOP_VALUE 1193EMULTIHOP_HIDDEN 1194GL_GENERATE_ERRNO_H_FALSE 1195GL_GENERATE_ERRNO_H_TRUE 1196ERRNO_H 1197NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1198NEXT_ERRNO_H 1199PRAGMA_COLUMNS 1200PRAGMA_SYSTEM_HEADER 1201INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1202INCLUDE_NEXT 1203host_os 1204host_vendor 1205host_cpu 1206host 1207build_os 1208build_vendor 1209build_cpu 1210build 1211pkglibexecdir 1212runstatedir 1213lispdir 1214GL_COND_LIBTOOL_FALSE 1215GL_COND_LIBTOOL_TRUE 1216RANLIB 1217ARFLAGS 1218AR 1219EGREP 1220GREP 1221CPP 1222am__fastdepCC_FALSE 1223am__fastdepCC_TRUE 1224CCDEPMODE 1225am__nodep 1226AMDEPBACKSLASH 1227AMDEP_FALSE 1228AMDEP_TRUE 1229am__quote 1230am__include 1231DEPDIR 1232OBJEXT 1233EXEEXT 1234ac_ct_CC 1235CPPFLAGS 1236LDFLAGS 1237CFLAGS 1238CC 1239AM_BACKSLASH 1240AM_DEFAULT_VERBOSITY 1241AM_DEFAULT_V 1242AM_V 1243am__untar 1244am__tar 1245AMTAR 1246am__leading_dot 1247SET_MAKE 1248AWK 1249mkdir_p 1250MKDIR_P 1251INSTALL_STRIP_PROGRAM 1252STRIP 1253install_sh 1254MAKEINFO 1255AUTOHEADER 1256AUTOMAKE 1257AUTOCONF 1258ACLOCAL 1259VERSION 1260PACKAGE 1261CYGPATH_W 1262am__isrc 1263INSTALL_DATA 1264INSTALL_SCRIPT 1265INSTALL_PROGRAM 1266target_alias 1267host_alias 1268build_alias 1269LIBS 1270ECHO_T 1271ECHO_N 1272ECHO_C 1273DEFS 1274mandir 1275localedir 1276libdir 1277psdir 1278pdfdir 1279dvidir 1280htmldir 1281infodir 1282docdir 1283oldincludedir 1284includedir 1285localstatedir 1286sharedstatedir 1287sysconfdir 1288datadir 1289datarootdir 1290libexecdir 1291sbindir 1292bindir 1293program_transform_name 1294prefix 1295exec_prefix 1296PACKAGE_URL 1297PACKAGE_BUGREPORT 1298PACKAGE_STRING 1299PACKAGE_VERSION 1300PACKAGE_TARNAME 1301PACKAGE_NAME 1302PATH_SEPARATOR 1303SHELL' 1304ac_subst_files='' 1305ac_user_opts=' 1306enable_option_checking 1307enable_silent_rules 1308enable_dependency_tracking 1309enable_nls 1310with_gnu_ld 1311enable_rpath 1312with_libiconv_prefix 1313with_libintl_prefix 1314' 1315 ac_precious_vars='build_alias 1316host_alias 1317target_alias 1318CC 1319CFLAGS 1320LDFLAGS 1321LIBS 1322CPPFLAGS 1323CPP' 1324 1325 1326# Initialize some variables set by options. 1327ac_init_help= 1328ac_init_version=false 1329ac_unrecognized_opts= 1330ac_unrecognized_sep= 1331# The variables have the same names as the options, with 1332# dashes changed to underlines. 1333cache_file=/dev/null 1334exec_prefix=NONE 1335no_create= 1336no_recursion= 1337prefix=NONE 1338program_prefix=NONE 1339program_suffix=NONE 1340program_transform_name=s,x,x, 1341silent= 1342site= 1343srcdir= 1344verbose= 1345x_includes=NONE 1346x_libraries=NONE 1347 1348# Installation directory options. 1349# These are left unexpanded so users can "make install exec_prefix=/foo" 1350# and all the variables that are supposed to be based on exec_prefix 1351# by default will actually change. 1352# Use braces instead of parens because sh, perl, etc. also accept them. 1353# (The list follows the same order as the GNU Coding Standards.) 1354bindir='${exec_prefix}/bin' 1355sbindir='${exec_prefix}/sbin' 1356libexecdir='${exec_prefix}/libexec' 1357datarootdir='${prefix}/share' 1358datadir='${datarootdir}' 1359sysconfdir='${prefix}/etc' 1360sharedstatedir='${prefix}/com' 1361localstatedir='${prefix}/var' 1362includedir='${prefix}/include' 1363oldincludedir='/usr/include' 1364docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1365infodir='${datarootdir}/info' 1366htmldir='${docdir}' 1367dvidir='${docdir}' 1368pdfdir='${docdir}' 1369psdir='${docdir}' 1370libdir='${exec_prefix}/lib' 1371localedir='${datarootdir}/locale' 1372mandir='${datarootdir}/man' 1373 1374ac_prev= 1375ac_dashdash= 1376for ac_option 1377do 1378 # If the previous option needs an argument, assign it. 1379 if test -n "$ac_prev"; then 1380 eval $ac_prev=\$ac_option 1381 ac_prev= 1382 continue 1383 fi 1384 1385 case $ac_option in 1386 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1387 *=) ac_optarg= ;; 1388 *) ac_optarg=yes ;; 1389 esac 1390 1391 # Accept the important Cygnus configure options, so we can diagnose typos. 1392 1393 case $ac_dashdash$ac_option in 1394 --) 1395 ac_dashdash=yes ;; 1396 1397 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1398 ac_prev=bindir ;; 1399 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1400 bindir=$ac_optarg ;; 1401 1402 -build | --build | --buil | --bui | --bu) 1403 ac_prev=build_alias ;; 1404 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1405 build_alias=$ac_optarg ;; 1406 1407 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1408 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1409 ac_prev=cache_file ;; 1410 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1411 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1412 cache_file=$ac_optarg ;; 1413 1414 --config-cache | -C) 1415 cache_file=config.cache ;; 1416 1417 -datadir | --datadir | --datadi | --datad) 1418 ac_prev=datadir ;; 1419 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1420 datadir=$ac_optarg ;; 1421 1422 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1423 | --dataroo | --dataro | --datar) 1424 ac_prev=datarootdir ;; 1425 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1426 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1427 datarootdir=$ac_optarg ;; 1428 1429 -disable-* | --disable-*) 1430 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1431 # Reject names that are not valid shell variable names. 1432 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1433 as_fn_error $? "invalid feature name: $ac_useropt" 1434 ac_useropt_orig=$ac_useropt 1435 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1436 case $ac_user_opts in 1437 *" 1438"enable_$ac_useropt" 1439"*) ;; 1440 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1441 ac_unrecognized_sep=', ';; 1442 esac 1443 eval enable_$ac_useropt=no ;; 1444 1445 -docdir | --docdir | --docdi | --doc | --do) 1446 ac_prev=docdir ;; 1447 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1448 docdir=$ac_optarg ;; 1449 1450 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1451 ac_prev=dvidir ;; 1452 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1453 dvidir=$ac_optarg ;; 1454 1455 -enable-* | --enable-*) 1456 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1457 # Reject names that are not valid shell variable names. 1458 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1459 as_fn_error $? "invalid feature name: $ac_useropt" 1460 ac_useropt_orig=$ac_useropt 1461 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1462 case $ac_user_opts in 1463 *" 1464"enable_$ac_useropt" 1465"*) ;; 1466 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1467 ac_unrecognized_sep=', ';; 1468 esac 1469 eval enable_$ac_useropt=\$ac_optarg ;; 1470 1471 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1472 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1473 | --exec | --exe | --ex) 1474 ac_prev=exec_prefix ;; 1475 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1476 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1477 | --exec=* | --exe=* | --ex=*) 1478 exec_prefix=$ac_optarg ;; 1479 1480 -gas | --gas | --ga | --g) 1481 # Obsolete; use --with-gas. 1482 with_gas=yes ;; 1483 1484 -help | --help | --hel | --he | -h) 1485 ac_init_help=long ;; 1486 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1487 ac_init_help=recursive ;; 1488 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1489 ac_init_help=short ;; 1490 1491 -host | --host | --hos | --ho) 1492 ac_prev=host_alias ;; 1493 -host=* | --host=* | --hos=* | --ho=*) 1494 host_alias=$ac_optarg ;; 1495 1496 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1497 ac_prev=htmldir ;; 1498 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1499 | --ht=*) 1500 htmldir=$ac_optarg ;; 1501 1502 -includedir | --includedir | --includedi | --included | --include \ 1503 | --includ | --inclu | --incl | --inc) 1504 ac_prev=includedir ;; 1505 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1506 | --includ=* | --inclu=* | --incl=* | --inc=*) 1507 includedir=$ac_optarg ;; 1508 1509 -infodir | --infodir | --infodi | --infod | --info | --inf) 1510 ac_prev=infodir ;; 1511 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1512 infodir=$ac_optarg ;; 1513 1514 -libdir | --libdir | --libdi | --libd) 1515 ac_prev=libdir ;; 1516 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1517 libdir=$ac_optarg ;; 1518 1519 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1520 | --libexe | --libex | --libe) 1521 ac_prev=libexecdir ;; 1522 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1523 | --libexe=* | --libex=* | --libe=*) 1524 libexecdir=$ac_optarg ;; 1525 1526 -localedir | --localedir | --localedi | --localed | --locale) 1527 ac_prev=localedir ;; 1528 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1529 localedir=$ac_optarg ;; 1530 1531 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1532 | --localstate | --localstat | --localsta | --localst | --locals) 1533 ac_prev=localstatedir ;; 1534 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1535 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1536 localstatedir=$ac_optarg ;; 1537 1538 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1539 ac_prev=mandir ;; 1540 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1541 mandir=$ac_optarg ;; 1542 1543 -nfp | --nfp | --nf) 1544 # Obsolete; use --without-fp. 1545 with_fp=no ;; 1546 1547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1548 | --no-cr | --no-c | -n) 1549 no_create=yes ;; 1550 1551 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1552 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1553 no_recursion=yes ;; 1554 1555 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1556 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1557 | --oldin | --oldi | --old | --ol | --o) 1558 ac_prev=oldincludedir ;; 1559 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1560 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1561 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1562 oldincludedir=$ac_optarg ;; 1563 1564 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1565 ac_prev=prefix ;; 1566 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1567 prefix=$ac_optarg ;; 1568 1569 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1570 | --program-pre | --program-pr | --program-p) 1571 ac_prev=program_prefix ;; 1572 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1573 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1574 program_prefix=$ac_optarg ;; 1575 1576 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1577 | --program-suf | --program-su | --program-s) 1578 ac_prev=program_suffix ;; 1579 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1580 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1581 program_suffix=$ac_optarg ;; 1582 1583 -program-transform-name | --program-transform-name \ 1584 | --program-transform-nam | --program-transform-na \ 1585 | --program-transform-n | --program-transform- \ 1586 | --program-transform | --program-transfor \ 1587 | --program-transfo | --program-transf \ 1588 | --program-trans | --program-tran \ 1589 | --progr-tra | --program-tr | --program-t) 1590 ac_prev=program_transform_name ;; 1591 -program-transform-name=* | --program-transform-name=* \ 1592 | --program-transform-nam=* | --program-transform-na=* \ 1593 | --program-transform-n=* | --program-transform-=* \ 1594 | --program-transform=* | --program-transfor=* \ 1595 | --program-transfo=* | --program-transf=* \ 1596 | --program-trans=* | --program-tran=* \ 1597 | --progr-tra=* | --program-tr=* | --program-t=*) 1598 program_transform_name=$ac_optarg ;; 1599 1600 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1601 ac_prev=pdfdir ;; 1602 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1603 pdfdir=$ac_optarg ;; 1604 1605 -psdir | --psdir | --psdi | --psd | --ps) 1606 ac_prev=psdir ;; 1607 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1608 psdir=$ac_optarg ;; 1609 1610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1611 | -silent | --silent | --silen | --sile | --sil) 1612 silent=yes ;; 1613 1614 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1615 ac_prev=sbindir ;; 1616 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1617 | --sbi=* | --sb=*) 1618 sbindir=$ac_optarg ;; 1619 1620 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1621 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1622 | --sharedst | --shareds | --shared | --share | --shar \ 1623 | --sha | --sh) 1624 ac_prev=sharedstatedir ;; 1625 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1626 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1627 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1628 | --sha=* | --sh=*) 1629 sharedstatedir=$ac_optarg ;; 1630 1631 -site | --site | --sit) 1632 ac_prev=site ;; 1633 -site=* | --site=* | --sit=*) 1634 site=$ac_optarg ;; 1635 1636 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1637 ac_prev=srcdir ;; 1638 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1639 srcdir=$ac_optarg ;; 1640 1641 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1642 | --syscon | --sysco | --sysc | --sys | --sy) 1643 ac_prev=sysconfdir ;; 1644 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1645 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1646 sysconfdir=$ac_optarg ;; 1647 1648 -target | --target | --targe | --targ | --tar | --ta | --t) 1649 ac_prev=target_alias ;; 1650 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1651 target_alias=$ac_optarg ;; 1652 1653 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1654 verbose=yes ;; 1655 1656 -version | --version | --versio | --versi | --vers | -V) 1657 ac_init_version=: ;; 1658 1659 -with-* | --with-*) 1660 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1661 # Reject names that are not valid shell variable names. 1662 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1663 as_fn_error $? "invalid package name: $ac_useropt" 1664 ac_useropt_orig=$ac_useropt 1665 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1666 case $ac_user_opts in 1667 *" 1668"with_$ac_useropt" 1669"*) ;; 1670 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1671 ac_unrecognized_sep=', ';; 1672 esac 1673 eval with_$ac_useropt=\$ac_optarg ;; 1674 1675 -without-* | --without-*) 1676 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1677 # Reject names that are not valid shell variable names. 1678 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1679 as_fn_error $? "invalid package name: $ac_useropt" 1680 ac_useropt_orig=$ac_useropt 1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1682 case $ac_user_opts in 1683 *" 1684"with_$ac_useropt" 1685"*) ;; 1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1687 ac_unrecognized_sep=', ';; 1688 esac 1689 eval with_$ac_useropt=no ;; 1690 1691 --x) 1692 # Obsolete; use --with-x. 1693 with_x=yes ;; 1694 1695 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1696 | --x-incl | --x-inc | --x-in | --x-i) 1697 ac_prev=x_includes ;; 1698 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1699 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1700 x_includes=$ac_optarg ;; 1701 1702 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1703 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1704 ac_prev=x_libraries ;; 1705 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1706 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1707 x_libraries=$ac_optarg ;; 1708 1709 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1710Try \`$0 --help' for more information" 1711 ;; 1712 1713 *=*) 1714 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1715 # Reject names that are not valid shell variable names. 1716 case $ac_envvar in #( 1717 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1718 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1719 esac 1720 eval $ac_envvar=\$ac_optarg 1721 export $ac_envvar ;; 1722 1723 *) 1724 # FIXME: should be removed in autoconf 3.0. 1725 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1726 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1727 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1728 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1729 ;; 1730 1731 esac 1732done 1733 1734if test -n "$ac_prev"; then 1735 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1736 as_fn_error $? "missing argument to $ac_option" 1737fi 1738 1739if test -n "$ac_unrecognized_opts"; then 1740 case $enable_option_checking in 1741 no) ;; 1742 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1743 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1744 esac 1745fi 1746 1747# Check all directory arguments for consistency. 1748for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1749 datadir sysconfdir sharedstatedir localstatedir includedir \ 1750 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1751 libdir localedir mandir 1752do 1753 eval ac_val=\$$ac_var 1754 # Remove trailing slashes. 1755 case $ac_val in 1756 */ ) 1757 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1758 eval $ac_var=\$ac_val;; 1759 esac 1760 # Be sure to have absolute directory names. 1761 case $ac_val in 1762 [\\/$]* | ?:[\\/]* ) continue;; 1763 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1764 esac 1765 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1766done 1767 1768# There might be people who depend on the old broken behavior: `$host' 1769# used to hold the argument of --host etc. 1770# FIXME: To remove some day. 1771build=$build_alias 1772host=$host_alias 1773target=$target_alias 1774 1775# FIXME: To remove some day. 1776if test "x$host_alias" != x; then 1777 if test "x$build_alias" = x; then 1778 cross_compiling=maybe 1779 elif test "x$build_alias" != "x$host_alias"; then 1780 cross_compiling=yes 1781 fi 1782fi 1783 1784ac_tool_prefix= 1785test -n "$host_alias" && ac_tool_prefix=$host_alias- 1786 1787test "$silent" = yes && exec 6>/dev/null 1788 1789 1790ac_pwd=`pwd` && test -n "$ac_pwd" && 1791ac_ls_di=`ls -di .` && 1792ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1793 as_fn_error $? "working directory cannot be determined" 1794test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1795 as_fn_error $? "pwd does not report name of working directory" 1796 1797 1798# Find the source files, if location was not specified. 1799if test -z "$srcdir"; then 1800 ac_srcdir_defaulted=yes 1801 # Try the directory containing this script, then the parent directory. 1802 ac_confdir=`$as_dirname -- "$as_myself" || 1803$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1804 X"$as_myself" : 'X\(//\)[^/]' \| \ 1805 X"$as_myself" : 'X\(//\)$' \| \ 1806 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1807$as_echo X"$as_myself" | 1808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1809 s//\1/ 1810 q 1811 } 1812 /^X\(\/\/\)[^/].*/{ 1813 s//\1/ 1814 q 1815 } 1816 /^X\(\/\/\)$/{ 1817 s//\1/ 1818 q 1819 } 1820 /^X\(\/\).*/{ 1821 s//\1/ 1822 q 1823 } 1824 s/.*/./; q'` 1825 srcdir=$ac_confdir 1826 if test ! -r "$srcdir/$ac_unique_file"; then 1827 srcdir=.. 1828 fi 1829else 1830 ac_srcdir_defaulted=no 1831fi 1832if test ! -r "$srcdir/$ac_unique_file"; then 1833 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1834 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1835fi 1836ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1837ac_abs_confdir=`( 1838 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1839 pwd)` 1840# When building in place, set srcdir=. 1841if test "$ac_abs_confdir" = "$ac_pwd"; then 1842 srcdir=. 1843fi 1844# Remove unnecessary trailing slashes from srcdir. 1845# Double slashes in file names in object file debugging info 1846# mess up M-x gdb in Emacs. 1847case $srcdir in 1848*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1849esac 1850for ac_var in $ac_precious_vars; do 1851 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1852 eval ac_env_${ac_var}_value=\$${ac_var} 1853 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1854 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1855done 1856 1857# 1858# Report the --help message. 1859# 1860if test "$ac_init_help" = "long"; then 1861 # Omit some internal or obsolete options to make the list less imposing. 1862 # This message is too long to be a string in the A/UX 3.1 sh. 1863 cat <<_ACEOF 1864\`configure' configures GNU Hello 2.10 to adapt to many kinds of systems. 1865 1866Usage: $0 [OPTION]... [VAR=VALUE]... 1867 1868To assign environment variables (e.g., CC, CFLAGS...), specify them as 1869VAR=VALUE. See below for descriptions of some of the useful variables. 1870 1871Defaults for the options are specified in brackets. 1872 1873Configuration: 1874 -h, --help display this help and exit 1875 --help=short display options specific to this package 1876 --help=recursive display the short help of all the included packages 1877 -V, --version display version information and exit 1878 -q, --quiet, --silent do not print \`checking ...' messages 1879 --cache-file=FILE cache test results in FILE [disabled] 1880 -C, --config-cache alias for \`--cache-file=config.cache' 1881 -n, --no-create do not create output files 1882 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1883 1884Installation directories: 1885 --prefix=PREFIX install architecture-independent files in PREFIX 1886 [$ac_default_prefix] 1887 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1888 [PREFIX] 1889 1890By default, \`make install' will install all the files in 1891\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1892an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1893for instance \`--prefix=\$HOME'. 1894 1895For better control, use the options below. 1896 1897Fine tuning of the installation directories: 1898 --bindir=DIR user executables [EPREFIX/bin] 1899 --sbindir=DIR system admin executables [EPREFIX/sbin] 1900 --libexecdir=DIR program executables [EPREFIX/libexec] 1901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1903 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1904 --libdir=DIR object code libraries [EPREFIX/lib] 1905 --includedir=DIR C header files [PREFIX/include] 1906 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1907 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1908 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1909 --infodir=DIR info documentation [DATAROOTDIR/info] 1910 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1911 --mandir=DIR man documentation [DATAROOTDIR/man] 1912 --docdir=DIR documentation root [DATAROOTDIR/doc/hello] 1913 --htmldir=DIR html documentation [DOCDIR] 1914 --dvidir=DIR dvi documentation [DOCDIR] 1915 --pdfdir=DIR pdf documentation [DOCDIR] 1916 --psdir=DIR ps documentation [DOCDIR] 1917_ACEOF 1918 1919 cat <<\_ACEOF 1920 1921Program names: 1922 --program-prefix=PREFIX prepend PREFIX to installed program names 1923 --program-suffix=SUFFIX append SUFFIX to installed program names 1924 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1925 1926System types: 1927 --build=BUILD configure for building on BUILD [guessed] 1928 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1929_ACEOF 1930fi 1931 1932if test -n "$ac_init_help"; then 1933 case $ac_init_help in 1934 short | recursive ) echo "Configuration of GNU Hello 2.10:";; 1935 esac 1936 cat <<\_ACEOF 1937 1938Optional Features: 1939 --disable-option-checking ignore unrecognized --enable/--with options 1940 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1941 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1942 --enable-silent-rules less verbose build output (undo: "make V=1") 1943 --disable-silent-rules verbose build output (undo: "make V=0") 1944 --enable-dependency-tracking 1945 do not reject slow dependency extractors 1946 --disable-dependency-tracking 1947 speeds up one-time build 1948 --disable-nls do not use Native Language Support 1949 --disable-rpath do not hardcode runtime library paths 1950 1951Optional Packages: 1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1954 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1955 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1956 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1957 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1958 --without-libintl-prefix don't search for libintl in includedir and libdir 1959 1960Some influential environment variables: 1961 CC C compiler command 1962 CFLAGS C compiler flags 1963 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1964 nonstandard directory <lib dir> 1965 LIBS libraries to pass to the linker, e.g. -l<library> 1966 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1967 you have headers in a nonstandard directory <include dir> 1968 CPP C preprocessor 1969 1970Use these variables to override the choices made by `configure' or to help 1971it to find libraries and programs with nonstandard names/locations. 1972 1973Report bugs to <bug-hello@gnu.org>. 1974GNU Hello home page: <http://www.gnu.org/software/hello/>. 1975General help using GNU software: <http://www.gnu.org/gethelp/>. 1976_ACEOF 1977ac_status=$? 1978fi 1979 1980if test "$ac_init_help" = "recursive"; then 1981 # If there are subdirs, report their specific --help. 1982 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1983 test -d "$ac_dir" || 1984 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1985 continue 1986 ac_builddir=. 1987 1988case "$ac_dir" in 1989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1990*) 1991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1992 # A ".." for each directory in $ac_dir_suffix. 1993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1994 case $ac_top_builddir_sub in 1995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1997 esac ;; 1998esac 1999ac_abs_top_builddir=$ac_pwd 2000ac_abs_builddir=$ac_pwd$ac_dir_suffix 2001# for backward compatibility: 2002ac_top_builddir=$ac_top_build_prefix 2003 2004case $srcdir in 2005 .) # We are building in place. 2006 ac_srcdir=. 2007 ac_top_srcdir=$ac_top_builddir_sub 2008 ac_abs_top_srcdir=$ac_pwd ;; 2009 [\\/]* | ?:[\\/]* ) # Absolute name. 2010 ac_srcdir=$srcdir$ac_dir_suffix; 2011 ac_top_srcdir=$srcdir 2012 ac_abs_top_srcdir=$srcdir ;; 2013 *) # Relative name. 2014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2015 ac_top_srcdir=$ac_top_build_prefix$srcdir 2016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2017esac 2018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2019 2020 cd "$ac_dir" || { ac_status=$?; continue; } 2021 # Check for guested configure. 2022 if test -f "$ac_srcdir/configure.gnu"; then 2023 echo && 2024 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2025 elif test -f "$ac_srcdir/configure"; then 2026 echo && 2027 $SHELL "$ac_srcdir/configure" --help=recursive 2028 else 2029 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2030 fi || ac_status=$? 2031 cd "$ac_pwd" || { ac_status=$?; break; } 2032 done 2033fi 2034 2035test -n "$ac_init_help" && exit $ac_status 2036if $ac_init_version; then 2037 cat <<\_ACEOF 2038GNU Hello configure 2.10 2039generated by GNU Autoconf 2.69 2040 2041Copyright (C) 2012 Free Software Foundation, Inc. 2042This configure script is free software; the Free Software Foundation 2043gives unlimited permission to copy, distribute and modify it. 2044_ACEOF 2045 exit 2046fi 2047 2048## ------------------------ ## 2049## Autoconf initialization. ## 2050## ------------------------ ## 2051 2052# ac_fn_c_try_compile LINENO 2053# -------------------------- 2054# Try to compile conftest.$ac_ext, and return whether this succeeded. 2055ac_fn_c_try_compile () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 rm -f conftest.$ac_objext 2059 if { { ac_try="$ac_compile" 2060case "(($ac_try" in 2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2062 *) ac_try_echo=$ac_try;; 2063esac 2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2065$as_echo "$ac_try_echo"; } >&5 2066 (eval "$ac_compile") 2>conftest.err 2067 ac_status=$? 2068 if test -s conftest.err; then 2069 grep -v '^ *+' conftest.err >conftest.er1 2070 cat conftest.er1 >&5 2071 mv -f conftest.er1 conftest.err 2072 fi 2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2074 test $ac_status = 0; } && { 2075 test -z "$ac_c_werror_flag" || 2076 test ! -s conftest.err 2077 } && test -s conftest.$ac_objext; then : 2078 ac_retval=0 2079else 2080 $as_echo "$as_me: failed program was:" >&5 2081sed 's/^/| /' conftest.$ac_ext >&5 2082 2083 ac_retval=1 2084fi 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 as_fn_set_status $ac_retval 2087 2088} # ac_fn_c_try_compile 2089 2090# ac_fn_c_try_cpp LINENO 2091# ---------------------- 2092# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2093ac_fn_c_try_cpp () 2094{ 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 if { { ac_try="$ac_cpp conftest.$ac_ext" 2097case "(($ac_try" in 2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2099 *) ac_try_echo=$ac_try;; 2100esac 2101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2102$as_echo "$ac_try_echo"; } >&5 2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2104 ac_status=$? 2105 if test -s conftest.err; then 2106 grep -v '^ *+' conftest.err >conftest.er1 2107 cat conftest.er1 >&5 2108 mv -f conftest.er1 conftest.err 2109 fi 2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2111 test $ac_status = 0; } > conftest.i && { 2112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2113 test ! -s conftest.err 2114 }; then : 2115 ac_retval=0 2116else 2117 $as_echo "$as_me: failed program was:" >&5 2118sed 's/^/| /' conftest.$ac_ext >&5 2119 2120 ac_retval=1 2121fi 2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2123 as_fn_set_status $ac_retval 2124 2125} # ac_fn_c_try_cpp 2126 2127# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2128# ------------------------------------------------------- 2129# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2130# the include files in INCLUDES and setting the cache variable VAR 2131# accordingly. 2132ac_fn_c_check_header_mongrel () 2133{ 2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2135 if eval \${$3+:} false; then : 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2137$as_echo_n "checking for $2... " >&6; } 2138if eval \${$3+:} false; then : 2139 $as_echo_n "(cached) " >&6 2140fi 2141eval ac_res=\$$3 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2143$as_echo "$ac_res" >&6; } 2144else 2145 # Is the header compilable? 2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2147$as_echo_n "checking $2 usability... " >&6; } 2148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2149/* end confdefs.h. */ 2150$4 2151#include <$2> 2152_ACEOF 2153if ac_fn_c_try_compile "$LINENO"; then : 2154 ac_header_compiler=yes 2155else 2156 ac_header_compiler=no 2157fi 2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2160$as_echo "$ac_header_compiler" >&6; } 2161 2162# Is the header present? 2163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2164$as_echo_n "checking $2 presence... " >&6; } 2165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167#include <$2> 2168_ACEOF 2169if ac_fn_c_try_cpp "$LINENO"; then : 2170 ac_header_preproc=yes 2171else 2172 ac_header_preproc=no 2173fi 2174rm -f conftest.err conftest.i conftest.$ac_ext 2175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2176$as_echo "$ac_header_preproc" >&6; } 2177 2178# So? What about this header? 2179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2180 yes:no: ) 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2182$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2184$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2185 ;; 2186 no:yes:* ) 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2188$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2190$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2192$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2194$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2196$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2197( $as_echo "## -------------------------------- ## 2198## Report this to bug-hello@gnu.org ## 2199## -------------------------------- ##" 2200 ) | sed "s/^/$as_me: WARNING: /" >&2 2201 ;; 2202esac 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2204$as_echo_n "checking for $2... " >&6; } 2205if eval \${$3+:} false; then : 2206 $as_echo_n "(cached) " >&6 2207else 2208 eval "$3=\$ac_header_compiler" 2209fi 2210eval ac_res=\$$3 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2212$as_echo "$ac_res" >&6; } 2213fi 2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2215 2216} # ac_fn_c_check_header_mongrel 2217 2218# ac_fn_c_try_run LINENO 2219# ---------------------- 2220# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2221# that executables *can* be run. 2222ac_fn_c_try_run () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 if { { ac_try="$ac_link" 2226case "(($ac_try" in 2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2228 *) ac_try_echo=$ac_try;; 2229esac 2230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2231$as_echo "$ac_try_echo"; } >&5 2232 (eval "$ac_link") 2>&5 2233 ac_status=$? 2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2235 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2236 { { case "(($ac_try" in 2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2238 *) ac_try_echo=$ac_try;; 2239esac 2240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2241$as_echo "$ac_try_echo"; } >&5 2242 (eval "$ac_try") 2>&5 2243 ac_status=$? 2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2245 test $ac_status = 0; }; }; then : 2246 ac_retval=0 2247else 2248 $as_echo "$as_me: program exited with status $ac_status" >&5 2249 $as_echo "$as_me: failed program was:" >&5 2250sed 's/^/| /' conftest.$ac_ext >&5 2251 2252 ac_retval=$ac_status 2253fi 2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2256 as_fn_set_status $ac_retval 2257 2258} # ac_fn_c_try_run 2259 2260# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2261# ------------------------------------------------------- 2262# Tests whether HEADER exists and can be compiled using the include files in 2263# INCLUDES, setting the cache variable VAR accordingly. 2264ac_fn_c_check_header_compile () 2265{ 2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2268$as_echo_n "checking for $2... " >&6; } 2269if eval \${$3+:} false; then : 2270 $as_echo_n "(cached) " >&6 2271else 2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2273/* end confdefs.h. */ 2274$4 2275#include <$2> 2276_ACEOF 2277if ac_fn_c_try_compile "$LINENO"; then : 2278 eval "$3=yes" 2279else 2280 eval "$3=no" 2281fi 2282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2283fi 2284eval ac_res=\$$3 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2286$as_echo "$ac_res" >&6; } 2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2288 2289} # ac_fn_c_check_header_compile 2290 2291# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2292# -------------------------------------------- 2293# Tries to find the compile-time value of EXPR in a program that includes 2294# INCLUDES, setting VAR accordingly. Returns whether the value could be 2295# computed 2296ac_fn_c_compute_int () 2297{ 2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2299 if test "$cross_compiling" = yes; then 2300 # Depending upon the size, compute the lo and hi bounds. 2301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2302/* end confdefs.h. */ 2303$4 2304int 2305main () 2306{ 2307static int test_array [1 - 2 * !(($2) >= 0)]; 2308test_array [0] = 0; 2309return test_array [0]; 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_c_try_compile "$LINENO"; then : 2316 ac_lo=0 ac_mid=0 2317 while :; do 2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2319/* end confdefs.h. */ 2320$4 2321int 2322main () 2323{ 2324static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2325test_array [0] = 0; 2326return test_array [0]; 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_compile "$LINENO"; then : 2333 ac_hi=$ac_mid; break 2334else 2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2336 if test $ac_lo -le $ac_mid; then 2337 ac_lo= ac_hi= 2338 break 2339 fi 2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2341fi 2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2343 done 2344else 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$4 2348int 2349main () 2350{ 2351static int test_array [1 - 2 * !(($2) < 0)]; 2352test_array [0] = 0; 2353return test_array [0]; 2354 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359if ac_fn_c_try_compile "$LINENO"; then : 2360 ac_hi=-1 ac_mid=-1 2361 while :; do 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2363/* end confdefs.h. */ 2364$4 2365int 2366main () 2367{ 2368static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2369test_array [0] = 0; 2370return test_array [0]; 2371 2372 ; 2373 return 0; 2374} 2375_ACEOF 2376if ac_fn_c_try_compile "$LINENO"; then : 2377 ac_lo=$ac_mid; break 2378else 2379 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2380 if test $ac_mid -le $ac_hi; then 2381 ac_lo= ac_hi= 2382 break 2383 fi 2384 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2385fi 2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2387 done 2388else 2389 ac_lo= ac_hi= 2390fi 2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2392fi 2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2394# Binary search between lo and hi bounds. 2395while test "x$ac_lo" != "x$ac_hi"; do 2396 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2398/* end confdefs.h. */ 2399$4 2400int 2401main () 2402{ 2403static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2404test_array [0] = 0; 2405return test_array [0]; 2406 2407 ; 2408 return 0; 2409} 2410_ACEOF 2411if ac_fn_c_try_compile "$LINENO"; then : 2412 ac_hi=$ac_mid 2413else 2414 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2415fi 2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2417done 2418case $ac_lo in #(( 2419?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2420'') ac_retval=1 ;; 2421esac 2422 else 2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2424/* end confdefs.h. */ 2425$4 2426static long int longval () { return $2; } 2427static unsigned long int ulongval () { return $2; } 2428#include <stdio.h> 2429#include <stdlib.h> 2430int 2431main () 2432{ 2433 2434 FILE *f = fopen ("conftest.val", "w"); 2435 if (! f) 2436 return 1; 2437 if (($2) < 0) 2438 { 2439 long int i = longval (); 2440 if (i != ($2)) 2441 return 1; 2442 fprintf (f, "%ld", i); 2443 } 2444 else 2445 { 2446 unsigned long int i = ulongval (); 2447 if (i != ($2)) 2448 return 1; 2449 fprintf (f, "%lu", i); 2450 } 2451 /* Do not output a trailing newline, as this causes \r\n confusion 2452 on some platforms. */ 2453 return ferror (f) || fclose (f) != 0; 2454 2455 ; 2456 return 0; 2457} 2458_ACEOF 2459if ac_fn_c_try_run "$LINENO"; then : 2460 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2461else 2462 ac_retval=1 2463fi 2464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2465 conftest.$ac_objext conftest.beam conftest.$ac_ext 2466rm -f conftest.val 2467 2468 fi 2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2470 as_fn_set_status $ac_retval 2471 2472} # ac_fn_c_compute_int 2473 2474# ac_fn_c_try_link LINENO 2475# ----------------------- 2476# Try to link conftest.$ac_ext, and return whether this succeeded. 2477ac_fn_c_try_link () 2478{ 2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2480 rm -f conftest.$ac_objext conftest$ac_exeext 2481 if { { ac_try="$ac_link" 2482case "(($ac_try" in 2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2484 *) ac_try_echo=$ac_try;; 2485esac 2486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2487$as_echo "$ac_try_echo"; } >&5 2488 (eval "$ac_link") 2>conftest.err 2489 ac_status=$? 2490 if test -s conftest.err; then 2491 grep -v '^ *+' conftest.err >conftest.er1 2492 cat conftest.er1 >&5 2493 mv -f conftest.er1 conftest.err 2494 fi 2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2496 test $ac_status = 0; } && { 2497 test -z "$ac_c_werror_flag" || 2498 test ! -s conftest.err 2499 } && test -s conftest$ac_exeext && { 2500 test "$cross_compiling" = yes || 2501 test -x conftest$ac_exeext 2502 }; then : 2503 ac_retval=0 2504else 2505 $as_echo "$as_me: failed program was:" >&5 2506sed 's/^/| /' conftest.$ac_ext >&5 2507 2508 ac_retval=1 2509fi 2510 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2511 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2512 # interfere with the next link command; also delete a directory that is 2513 # left behind by Apple's compiler. We do this before executing the actions. 2514 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2516 as_fn_set_status $ac_retval 2517 2518} # ac_fn_c_try_link 2519 2520# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2521# --------------------------------------------- 2522# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2523# accordingly. 2524ac_fn_c_check_decl () 2525{ 2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2527 as_decl_name=`echo $2|sed 's/ *(.*//'` 2528 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2530$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2531if eval \${$3+:} false; then : 2532 $as_echo_n "(cached) " >&6 2533else 2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2535/* end confdefs.h. */ 2536$4 2537int 2538main () 2539{ 2540#ifndef $as_decl_name 2541#ifdef __cplusplus 2542 (void) $as_decl_use; 2543#else 2544 (void) $as_decl_name; 2545#endif 2546#endif 2547 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552if ac_fn_c_try_compile "$LINENO"; then : 2553 eval "$3=yes" 2554else 2555 eval "$3=no" 2556fi 2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2558fi 2559eval ac_res=\$$3 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2561$as_echo "$ac_res" >&6; } 2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2563 2564} # ac_fn_c_check_decl 2565 2566# ac_fn_c_check_func LINENO FUNC VAR 2567# ---------------------------------- 2568# Tests whether FUNC exists, setting the cache variable VAR accordingly 2569ac_fn_c_check_func () 2570{ 2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2573$as_echo_n "checking for $2... " >&6; } 2574if eval \${$3+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2578/* end confdefs.h. */ 2579/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2580 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2581#define $2 innocuous_$2 2582 2583/* System header to define __stub macros and hopefully few prototypes, 2584 which can conflict with char $2 (); below. 2585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2586 <limits.h> exists even on freestanding compilers. */ 2587 2588#ifdef __STDC__ 2589# include <limits.h> 2590#else 2591# include <assert.h> 2592#endif 2593 2594#undef $2 2595 2596/* Override any GCC internal prototype to avoid an error. 2597 Use char because int might match the return type of a GCC 2598 builtin and then its argument prototype would still apply. */ 2599#ifdef __cplusplus 2600extern "C" 2601#endif 2602char $2 (); 2603/* The GNU C library defines this for functions which it implements 2604 to always fail with ENOSYS. Some functions are actually named 2605 something starting with __ and the normal name is an alias. */ 2606#if defined __stub_$2 || defined __stub___$2 2607choke me 2608#endif 2609 2610int 2611main () 2612{ 2613return $2 (); 2614 ; 2615 return 0; 2616} 2617_ACEOF 2618if ac_fn_c_try_link "$LINENO"; then : 2619 eval "$3=yes" 2620else 2621 eval "$3=no" 2622fi 2623rm -f core conftest.err conftest.$ac_objext \ 2624 conftest$ac_exeext conftest.$ac_ext 2625fi 2626eval ac_res=\$$3 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2628$as_echo "$ac_res" >&6; } 2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2630 2631} # ac_fn_c_check_func 2632 2633# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2634# ------------------------------------------- 2635# Tests whether TYPE exists after having included INCLUDES, setting cache 2636# variable VAR accordingly. 2637ac_fn_c_check_type () 2638{ 2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2641$as_echo_n "checking for $2... " >&6; } 2642if eval \${$3+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 eval "$3=no" 2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2647/* end confdefs.h. */ 2648$4 2649int 2650main () 2651{ 2652if (sizeof ($2)) 2653 return 0; 2654 ; 2655 return 0; 2656} 2657_ACEOF 2658if ac_fn_c_try_compile "$LINENO"; then : 2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660/* end confdefs.h. */ 2661$4 2662int 2663main () 2664{ 2665if (sizeof (($2))) 2666 return 0; 2667 ; 2668 return 0; 2669} 2670_ACEOF 2671if ac_fn_c_try_compile "$LINENO"; then : 2672 2673else 2674 eval "$3=yes" 2675fi 2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2677fi 2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2679fi 2680eval ac_res=\$$3 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2682$as_echo "$ac_res" >&6; } 2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2684 2685} # ac_fn_c_check_type 2686cat >config.log <<_ACEOF 2687This file contains any messages produced by compilers while 2688running configure, to aid debugging if configure makes a mistake. 2689 2690It was created by GNU Hello $as_me 2.10, which was 2691generated by GNU Autoconf 2.69. Invocation command line was 2692 2693 $ $0 $@ 2694 2695_ACEOF 2696exec 5>>config.log 2697{ 2698cat <<_ASUNAME 2699## --------- ## 2700## Platform. ## 2701## --------- ## 2702 2703hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2704uname -m = `(uname -m) 2>/dev/null || echo unknown` 2705uname -r = `(uname -r) 2>/dev/null || echo unknown` 2706uname -s = `(uname -s) 2>/dev/null || echo unknown` 2707uname -v = `(uname -v) 2>/dev/null || echo unknown` 2708 2709/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2710/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2711 2712/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2713/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2714/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2715/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2716/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2717/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2718/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2719 2720_ASUNAME 2721 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 $as_echo "PATH: $as_dir" 2728 done 2729IFS=$as_save_IFS 2730 2731} >&5 2732 2733cat >&5 <<_ACEOF 2734 2735 2736## ----------- ## 2737## Core tests. ## 2738## ----------- ## 2739 2740_ACEOF 2741 2742 2743# Keep a trace of the command line. 2744# Strip out --no-create and --no-recursion so they do not pile up. 2745# Strip out --silent because we don't want to record it for future runs. 2746# Also quote any args containing shell meta-characters. 2747# Make two passes to allow for proper duplicate-argument suppression. 2748ac_configure_args= 2749ac_configure_args0= 2750ac_configure_args1= 2751ac_must_keep_next=false 2752for ac_pass in 1 2 2753do 2754 for ac_arg 2755 do 2756 case $ac_arg in 2757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2759 | -silent | --silent | --silen | --sile | --sil) 2760 continue ;; 2761 *\'*) 2762 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2763 esac 2764 case $ac_pass in 2765 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2766 2) 2767 as_fn_append ac_configure_args1 " '$ac_arg'" 2768 if test $ac_must_keep_next = true; then 2769 ac_must_keep_next=false # Got value, back to normal. 2770 else 2771 case $ac_arg in 2772 *=* | --config-cache | -C | -disable-* | --disable-* \ 2773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2775 | -with-* | --with-* | -without-* | --without-* | --x) 2776 case "$ac_configure_args0 " in 2777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2778 esac 2779 ;; 2780 -* ) ac_must_keep_next=true ;; 2781 esac 2782 fi 2783 as_fn_append ac_configure_args " '$ac_arg'" 2784 ;; 2785 esac 2786 done 2787done 2788{ ac_configure_args0=; unset ac_configure_args0;} 2789{ ac_configure_args1=; unset ac_configure_args1;} 2790 2791# When interrupted or exit'd, cleanup temporary files, and complete 2792# config.log. We remove comments because anyway the quotes in there 2793# would cause problems or look ugly. 2794# WARNING: Use '\'' to represent an apostrophe within the trap. 2795# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2796trap 'exit_status=$? 2797 # Save into config.log some information that might help in debugging. 2798 { 2799 echo 2800 2801 $as_echo "## ---------------- ## 2802## Cache variables. ## 2803## ---------------- ##" 2804 echo 2805 # The following way of writing the cache mishandles newlines in values, 2806( 2807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2808 eval ac_val=\$$ac_var 2809 case $ac_val in #( 2810 *${as_nl}*) 2811 case $ac_var in #( 2812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2814 esac 2815 case $ac_var in #( 2816 _ | IFS | as_nl) ;; #( 2817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2818 *) { eval $ac_var=; unset $ac_var;} ;; 2819 esac ;; 2820 esac 2821 done 2822 (set) 2>&1 | 2823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2824 *${as_nl}ac_space=\ *) 2825 sed -n \ 2826 "s/'\''/'\''\\\\'\'''\''/g; 2827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2828 ;; #( 2829 *) 2830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2831 ;; 2832 esac | 2833 sort 2834) 2835 echo 2836 2837 $as_echo "## ----------------- ## 2838## Output variables. ## 2839## ----------------- ##" 2840 echo 2841 for ac_var in $ac_subst_vars 2842 do 2843 eval ac_val=\$$ac_var 2844 case $ac_val in 2845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2846 esac 2847 $as_echo "$ac_var='\''$ac_val'\''" 2848 done | sort 2849 echo 2850 2851 if test -n "$ac_subst_files"; then 2852 $as_echo "## ------------------- ## 2853## File substitutions. ## 2854## ------------------- ##" 2855 echo 2856 for ac_var in $ac_subst_files 2857 do 2858 eval ac_val=\$$ac_var 2859 case $ac_val in 2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2861 esac 2862 $as_echo "$ac_var='\''$ac_val'\''" 2863 done | sort 2864 echo 2865 fi 2866 2867 if test -s confdefs.h; then 2868 $as_echo "## ----------- ## 2869## confdefs.h. ## 2870## ----------- ##" 2871 echo 2872 cat confdefs.h 2873 echo 2874 fi 2875 test "$ac_signal" != 0 && 2876 $as_echo "$as_me: caught signal $ac_signal" 2877 $as_echo "$as_me: exit $exit_status" 2878 } >&5 2879 rm -f core *.core core.conftest.* && 2880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2881 exit $exit_status 2882' 0 2883for ac_signal in 1 2 13 15; do 2884 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2885done 2886ac_signal=0 2887 2888# confdefs.h avoids OS command line length limits that DEFS can exceed. 2889rm -f -r conftest* confdefs.h 2890 2891$as_echo "/* confdefs.h */" > confdefs.h 2892 2893# Predefined preprocessor variables. 2894 2895cat >>confdefs.h <<_ACEOF 2896#define PACKAGE_NAME "$PACKAGE_NAME" 2897_ACEOF 2898 2899cat >>confdefs.h <<_ACEOF 2900#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2901_ACEOF 2902 2903cat >>confdefs.h <<_ACEOF 2904#define PACKAGE_VERSION "$PACKAGE_VERSION" 2905_ACEOF 2906 2907cat >>confdefs.h <<_ACEOF 2908#define PACKAGE_STRING "$PACKAGE_STRING" 2909_ACEOF 2910 2911cat >>confdefs.h <<_ACEOF 2912#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2913_ACEOF 2914 2915cat >>confdefs.h <<_ACEOF 2916#define PACKAGE_URL "$PACKAGE_URL" 2917_ACEOF 2918 2919 2920# Let the site file select an alternate cache file if it wants to. 2921# Prefer an explicitly selected file to automatically selected ones. 2922ac_site_file1=NONE 2923ac_site_file2=NONE 2924if test -n "$CONFIG_SITE"; then 2925 # We do not want a PATH search for config.site. 2926 case $CONFIG_SITE in #(( 2927 -*) ac_site_file1=./$CONFIG_SITE;; 2928 */*) ac_site_file1=$CONFIG_SITE;; 2929 *) ac_site_file1=./$CONFIG_SITE;; 2930 esac 2931elif test "x$prefix" != xNONE; then 2932 ac_site_file1=$prefix/share/config.site 2933 ac_site_file2=$prefix/etc/config.site 2934else 2935 ac_site_file1=$ac_default_prefix/share/config.site 2936 ac_site_file2=$ac_default_prefix/etc/config.site 2937fi 2938for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2939do 2940 test "x$ac_site_file" = xNONE && continue 2941 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2943$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2944 sed 's/^/| /' "$ac_site_file" >&5 2945 . "$ac_site_file" \ 2946 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2948as_fn_error $? "failed to load site script $ac_site_file 2949See \`config.log' for more details" "$LINENO" 5; } 2950 fi 2951done 2952 2953if test -r "$cache_file"; then 2954 # Some versions of bash will fail to source /dev/null (special files 2955 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2956 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2958$as_echo "$as_me: loading cache $cache_file" >&6;} 2959 case $cache_file in 2960 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2961 *) . "./$cache_file";; 2962 esac 2963 fi 2964else 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2966$as_echo "$as_me: creating cache $cache_file" >&6;} 2967 >$cache_file 2968fi 2969 2970as_fn_append ac_header_list " stdio_ext.h" 2971gl_getopt_required=GNU 2972as_fn_append ac_header_list " getopt.h" 2973as_fn_append ac_header_list " unistd.h" 2974as_fn_append ac_func_list " symlink" 2975as_fn_append ac_func_list " mbsinit" 2976as_fn_append ac_func_list " mbrtowc" 2977as_fn_append ac_func_list " mbsrtowcs" 2978as_fn_append ac_header_list " sys/mman.h" 2979as_fn_append ac_func_list " mprotect" 2980as_fn_append ac_func_list " _set_invalid_parameter_handler" 2981as_fn_append ac_header_list " sys/socket.h" 2982as_fn_append ac_func_list " strndup" 2983as_fn_append ac_header_list " wchar.h" 2984as_fn_append ac_header_list " features.h" 2985as_fn_append ac_func_list " iswcntrl" 2986as_fn_append ac_header_list " wctype.h" 2987gt_needs="$gt_needs " 2988# Check that the precious variables saved in the cache have kept the same 2989# value. 2990ac_cache_corrupted=false 2991for ac_var in $ac_precious_vars; do 2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2993 eval ac_new_set=\$ac_env_${ac_var}_set 2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2995 eval ac_new_val=\$ac_env_${ac_var}_value 2996 case $ac_old_set,$ac_new_set in 2997 set,) 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2999$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3000 ac_cache_corrupted=: ;; 3001 ,set) 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3003$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3004 ac_cache_corrupted=: ;; 3005 ,);; 3006 *) 3007 if test "x$ac_old_val" != "x$ac_new_val"; then 3008 # differences in whitespace do not lead to failure. 3009 ac_old_val_w=`echo x $ac_old_val` 3010 ac_new_val_w=`echo x $ac_new_val` 3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3013$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3014 ac_cache_corrupted=: 3015 else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3017$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3018 eval $ac_var=\$ac_old_val 3019 fi 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3021$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3023$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3024 fi;; 3025 esac 3026 # Pass precious variables to config.status. 3027 if test "$ac_new_set" = set; then 3028 case $ac_new_val in 3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3030 *) ac_arg=$ac_var=$ac_new_val ;; 3031 esac 3032 case " $ac_configure_args " in 3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3035 esac 3036 fi 3037done 3038if $ac_cache_corrupted; then 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3043 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3044fi 3045## -------------------- ## 3046## Main body of script. ## 3047## -------------------- ## 3048 3049ac_ext=c 3050ac_cpp='$CPP $CPPFLAGS' 3051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3053ac_compiler_gnu=$ac_cv_c_compiler_gnu 3054 3055 3056 3057ac_aux_dir= 3058for ac_dir in build-aux "$srcdir"/build-aux; do 3059 if test -f "$ac_dir/install-sh"; then 3060 ac_aux_dir=$ac_dir 3061 ac_install_sh="$ac_aux_dir/install-sh -c" 3062 break 3063 elif test -f "$ac_dir/install.sh"; then 3064 ac_aux_dir=$ac_dir 3065 ac_install_sh="$ac_aux_dir/install.sh -c" 3066 break 3067 elif test -f "$ac_dir/shtool"; then 3068 ac_aux_dir=$ac_dir 3069 ac_install_sh="$ac_aux_dir/shtool install -c" 3070 break 3071 fi 3072done 3073if test -z "$ac_aux_dir"; then 3074 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3075fi 3076 3077# These three variables are undocumented and unsupported, 3078# and are intended to be withdrawn in a future Autoconf release. 3079# They can cause serious problems if a builder's source tree is in a directory 3080# whose full name contains unusual characters. 3081ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3082ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3083ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3084 3085 3086am__api_version='1.14' 3087 3088# Find a good install program. We prefer a C program (faster), 3089# so one script is as good as another. But avoid the broken or 3090# incompatible versions: 3091# SysV /etc/install, /usr/sbin/install 3092# SunOS /usr/etc/install 3093# IRIX /sbin/install 3094# AIX /bin/install 3095# AmigaOS /C/install, which installs bootblocks on floppy discs 3096# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3097# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3098# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3099# OS/2's system install, which has a completely different semantic 3100# ./install, which can be erroneously created by make from ./install.sh. 3101# Reject install programs that cannot install multiple files. 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3103$as_echo_n "checking for a BSD-compatible install... " >&6; } 3104if test -z "$INSTALL"; then 3105if ${ac_cv_path_install+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 # Account for people who put trailing slashes in PATH elements. 3114case $as_dir/ in #(( 3115 ./ | .// | /[cC]/* | \ 3116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3117 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3118 /usr/ucb/* ) ;; 3119 *) 3120 # OSF1 and SCO ODT 3.0 have their own names for install. 3121 # Don't use installbsd from OSF since it installs stuff as root 3122 # by default. 3123 for ac_prog in ginstall scoinst install; do 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3126 if test $ac_prog = install && 3127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3128 # AIX install. It has an incompatible calling convention. 3129 : 3130 elif test $ac_prog = install && 3131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3132 # program-specific install script used by HP pwplus--don't use. 3133 : 3134 else 3135 rm -rf conftest.one conftest.two conftest.dir 3136 echo one > conftest.one 3137 echo two > conftest.two 3138 mkdir conftest.dir 3139 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3140 test -s conftest.one && test -s conftest.two && 3141 test -s conftest.dir/conftest.one && 3142 test -s conftest.dir/conftest.two 3143 then 3144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3145 break 3 3146 fi 3147 fi 3148 fi 3149 done 3150 done 3151 ;; 3152esac 3153 3154 done 3155IFS=$as_save_IFS 3156 3157rm -rf conftest.one conftest.two conftest.dir 3158 3159fi 3160 if test "${ac_cv_path_install+set}" = set; then 3161 INSTALL=$ac_cv_path_install 3162 else 3163 # As a last resort, use the slow shell script. Don't cache a 3164 # value for INSTALL within a source directory, because that will 3165 # break other packages using the cache if that directory is 3166 # removed, or if the value is a relative name. 3167 INSTALL=$ac_install_sh 3168 fi 3169fi 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3171$as_echo "$INSTALL" >&6; } 3172 3173# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3174# It thinks the first close brace ends the variable substitution. 3175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3176 3177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3178 3179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3180 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3182$as_echo_n "checking whether build environment is sane... " >&6; } 3183# Reject unsafe characters in $srcdir or the absolute working directory 3184# name. Accept space and tab only in the latter. 3185am_lf=' 3186' 3187case `pwd` in 3188 *[\\\"\#\$\&\'\`$am_lf]*) 3189 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3190esac 3191case $srcdir in 3192 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3193 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3194esac 3195 3196# Do 'set' in a subshell so we don't clobber the current shell's 3197# arguments. Must try -L first in case configure is actually a 3198# symlink; some systems play weird games with the mod time of symlinks 3199# (eg FreeBSD returns the mod time of the symlink's containing 3200# directory). 3201if ( 3202 am_has_slept=no 3203 for am_try in 1 2; do 3204 echo "timestamp, slept: $am_has_slept" > conftest.file 3205 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3206 if test "$*" = "X"; then 3207 # -L didn't work. 3208 set X `ls -t "$srcdir/configure" conftest.file` 3209 fi 3210 if test "$*" != "X $srcdir/configure conftest.file" \ 3211 && test "$*" != "X conftest.file $srcdir/configure"; then 3212 3213 # If neither matched, then we have a broken ls. This can happen 3214 # if, for instance, CONFIG_SHELL is bash and it inherits a 3215 # broken ls alias from the environment. This has actually 3216 # happened. Such a system could not be considered "sane". 3217 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3218 alias in your environment" "$LINENO" 5 3219 fi 3220 if test "$2" = conftest.file || test $am_try -eq 2; then 3221 break 3222 fi 3223 # Just in case. 3224 sleep 1 3225 am_has_slept=yes 3226 done 3227 test "$2" = conftest.file 3228 ) 3229then 3230 # Ok. 3231 : 3232else 3233 as_fn_error $? "newly created file is older than distributed files! 3234Check your system clock" "$LINENO" 5 3235fi 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3237$as_echo "yes" >&6; } 3238# If we didn't sleep, we still need to ensure time stamps of config.status and 3239# generated files are strictly newer. 3240am_sleep_pid= 3241if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3242 ( sleep 1 ) & 3243 am_sleep_pid=$! 3244fi 3245 3246rm -f conftest.file 3247 3248test "$program_prefix" != NONE && 3249 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3250# Use a double $ so make ignores it. 3251test "$program_suffix" != NONE && 3252 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3253# Double any \ or $. 3254# By default was `s,x,x', remove it if useless. 3255ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3256program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3257 3258# expand $ac_aux_dir to an absolute path 3259am_aux_dir=`cd $ac_aux_dir && pwd` 3260 3261if test x"${MISSING+set}" != xset; then 3262 case $am_aux_dir in 3263 *\ * | *\ *) 3264 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3265 *) 3266 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3267 esac 3268fi 3269# Use eval to expand $SHELL 3270if eval "$MISSING --is-lightweight"; then 3271 am_missing_run="$MISSING " 3272else 3273 am_missing_run= 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3275$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3276fi 3277 3278if test x"${install_sh}" != xset; then 3279 case $am_aux_dir in 3280 *\ * | *\ *) 3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3282 *) 3283 install_sh="\${SHELL} $am_aux_dir/install-sh" 3284 esac 3285fi 3286 3287# Installed binaries are usually stripped using 'strip' when the user 3288# run "make install-strip". However 'strip' might not be the right 3289# tool to use in cross-compilation environments, therefore Automake 3290# will honor the 'STRIP' environment variable to overrule this program. 3291if test "$cross_compiling" != no; then 3292 if test -n "$ac_tool_prefix"; then 3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3294set dummy ${ac_tool_prefix}strip; ac_word=$2 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296$as_echo_n "checking for $ac_word... " >&6; } 3297if ${ac_cv_prog_STRIP+:} false; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 if test -n "$STRIP"; then 3301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3302else 3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3310 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314done 3315 done 3316IFS=$as_save_IFS 3317 3318fi 3319fi 3320STRIP=$ac_cv_prog_STRIP 3321if test -n "$STRIP"; then 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3323$as_echo "$STRIP" >&6; } 3324else 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327fi 3328 3329 3330fi 3331if test -z "$ac_cv_prog_STRIP"; then 3332 ac_ct_STRIP=$STRIP 3333 # Extract the first word of "strip", so it can be a program name with args. 3334set dummy strip; ac_word=$2 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3336$as_echo_n "checking for $ac_word... " >&6; } 3337if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 if test -n "$ac_ct_STRIP"; then 3341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3342else 3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3344for as_dir in $PATH 3345do 3346 IFS=$as_save_IFS 3347 test -z "$as_dir" && as_dir=. 3348 for ac_exec_ext in '' $ac_executable_extensions; do 3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3350 ac_cv_prog_ac_ct_STRIP="strip" 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3352 break 2 3353 fi 3354done 3355 done 3356IFS=$as_save_IFS 3357 3358fi 3359fi 3360ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3361if test -n "$ac_ct_STRIP"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3363$as_echo "$ac_ct_STRIP" >&6; } 3364else 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366$as_echo "no" >&6; } 3367fi 3368 3369 if test "x$ac_ct_STRIP" = x; then 3370 STRIP=":" 3371 else 3372 case $cross_compiling:$ac_tool_warned in 3373yes:) 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376ac_tool_warned=yes ;; 3377esac 3378 STRIP=$ac_ct_STRIP 3379 fi 3380else 3381 STRIP="$ac_cv_prog_STRIP" 3382fi 3383 3384fi 3385INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3386 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3388$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3389if test -z "$MKDIR_P"; then 3390 if ${ac_cv_path_mkdir+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3395do 3396 IFS=$as_save_IFS 3397 test -z "$as_dir" && as_dir=. 3398 for ac_prog in mkdir gmkdir; do 3399 for ac_exec_ext in '' $ac_executable_extensions; do 3400 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3401 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3402 'mkdir (GNU coreutils) '* | \ 3403 'mkdir (coreutils) '* | \ 3404 'mkdir (fileutils) '4.1*) 3405 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3406 break 3;; 3407 esac 3408 done 3409 done 3410 done 3411IFS=$as_save_IFS 3412 3413fi 3414 3415 test -d ./--version && rmdir ./--version 3416 if test "${ac_cv_path_mkdir+set}" = set; then 3417 MKDIR_P="$ac_cv_path_mkdir -p" 3418 else 3419 # As a last resort, use the slow shell script. Don't cache a 3420 # value for MKDIR_P within a source directory, because that will 3421 # break other packages using the cache if that directory is 3422 # removed, or if the value is a relative name. 3423 MKDIR_P="$ac_install_sh -d" 3424 fi 3425fi 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3427$as_echo "$MKDIR_P" >&6; } 3428 3429for ac_prog in gawk mawk nawk awk 3430do 3431 # Extract the first word of "$ac_prog", so it can be a program name with args. 3432set dummy $ac_prog; ac_word=$2 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434$as_echo_n "checking for $ac_word... " >&6; } 3435if ${ac_cv_prog_AWK+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 if test -n "$AWK"; then 3439 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_AWK="$ac_prog" 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458AWK=$ac_cv_prog_AWK 3459if test -n "$AWK"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3461$as_echo "$AWK" >&6; } 3462else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465fi 3466 3467 3468 test -n "$AWK" && break 3469done 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3472$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3473set x ${MAKE-make} 3474ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3475if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 cat >conftest.make <<\_ACEOF 3479SHELL = /bin/sh 3480all: 3481 @echo '@@@%%%=$(MAKE)=@@@%%%' 3482_ACEOF 3483# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3484case `${MAKE-make} -f conftest.make 2>/dev/null` in 3485 *@@@%%%=?*=@@@%%%*) 3486 eval ac_cv_prog_make_${ac_make}_set=yes;; 3487 *) 3488 eval ac_cv_prog_make_${ac_make}_set=no;; 3489esac 3490rm -f conftest.make 3491fi 3492if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3494$as_echo "yes" >&6; } 3495 SET_MAKE= 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498$as_echo "no" >&6; } 3499 SET_MAKE="MAKE=${MAKE-make}" 3500fi 3501 3502rm -rf .tst 2>/dev/null 3503mkdir .tst 2>/dev/null 3504if test -d .tst; then 3505 am__leading_dot=. 3506else 3507 am__leading_dot=_ 3508fi 3509rmdir .tst 2>/dev/null 3510 3511# Check whether --enable-silent-rules was given. 3512if test "${enable_silent_rules+set}" = set; then : 3513 enableval=$enable_silent_rules; 3514fi 3515 3516case $enable_silent_rules in # ((( 3517 yes) AM_DEFAULT_VERBOSITY=0;; 3518 no) AM_DEFAULT_VERBOSITY=1;; 3519 *) AM_DEFAULT_VERBOSITY=1;; 3520esac 3521am_make=${MAKE-make} 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3523$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3524if ${am_cv_make_support_nested_variables+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 if $as_echo 'TRUE=$(BAR$(V)) 3528BAR0=false 3529BAR1=true 3530V=1 3531am__doit: 3532 @$(TRUE) 3533.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3534 am_cv_make_support_nested_variables=yes 3535else 3536 am_cv_make_support_nested_variables=no 3537fi 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3540$as_echo "$am_cv_make_support_nested_variables" >&6; } 3541if test $am_cv_make_support_nested_variables = yes; then 3542 AM_V='$(V)' 3543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3544else 3545 AM_V=$AM_DEFAULT_VERBOSITY 3546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3547fi 3548AM_BACKSLASH='\' 3549 3550if test "`cd $srcdir && pwd`" != "`pwd`"; then 3551 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3552 # is not polluted with repeated "-I." 3553 am__isrc=' -I$(srcdir)' 3554 # test to see if srcdir already configured 3555 if test -f $srcdir/config.status; then 3556 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3557 fi 3558fi 3559 3560# test whether we have cygpath 3561if test -z "$CYGPATH_W"; then 3562 if (cygpath --version) >/dev/null 2>/dev/null; then 3563 CYGPATH_W='cygpath -w' 3564 else 3565 CYGPATH_W=echo 3566 fi 3567fi 3568 3569 3570# Define the identity of the package. 3571 PACKAGE='hello' 3572 VERSION='2.10' 3573 3574 3575cat >>confdefs.h <<_ACEOF 3576#define PACKAGE "$PACKAGE" 3577_ACEOF 3578 3579 3580cat >>confdefs.h <<_ACEOF 3581#define VERSION "$VERSION" 3582_ACEOF 3583 3584# Some tools Automake needs. 3585 3586ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3587 3588 3589AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3590 3591 3592AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3593 3594 3595AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3596 3597 3598MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3599 3600# For better backward compatibility. To be removed once Automake 1.9.x 3601# dies out for good. For more background, see: 3602# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3603# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3604mkdir_p='$(MKDIR_P)' 3605 3606# We need awk for the "check" target. The system "awk" is bad on 3607# some platforms. 3608# Always define AMTAR for backward compatibility. Yes, it's still used 3609# in the wild :-( We should find a proper way to deprecate it ... 3610AMTAR='$${TAR-tar}' 3611 3612 3613# We'll loop over all known methods to create a tar archive until one works. 3614_am_tools='gnutar pax cpio none' 3615 3616am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3617 3618 3619 3620 3621 3622 3623# POSIX will say in a future version that running "rm -f" with no argument 3624# is OK; and we want to be able to make that assumption in our Makefile 3625# recipes. So use an aggressive probe to check that the usage we want is 3626# actually supported "in the wild" to an acceptable degree. 3627# See automake bug#10828. 3628# To make any issue more visible, cause the running configure to be aborted 3629# by default if the 'rm' program in use doesn't match our expectations; the 3630# user can still override this though. 3631if rm -f && rm -fr && rm -rf; then : OK; else 3632 cat >&2 <<'END' 3633Oops! 3634 3635Your 'rm' program seems unable to run without file operands specified 3636on the command line, even when the '-f' option is present. This is contrary 3637to the behaviour of most rm programs out there, and not conforming with 3638the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3639 3640Please tell bug-automake@gnu.org about your system, including the value 3641of your $PATH and any error possibly output before this message. This 3642can help us improve future automake versions. 3643 3644END 3645 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3646 echo 'Configuration will proceed anyway, since you have set the' >&2 3647 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3648 echo >&2 3649 else 3650 cat >&2 <<'END' 3651Aborting the configuration process, to ensure you take notice of the issue. 3652 3653You can download and install GNU coreutils to get an 'rm' implementation 3654that behaves properly: <http://www.gnu.org/software/coreutils/>. 3655 3656If you want to complete the configuration process using your problematic 3657'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3658to "yes", and re-run configure. 3659 3660END 3661 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3662 fi 3663fi 3664 3665 3666 3667ac_config_headers="$ac_config_headers config.h:config.in" 3668 3669 3670ac_ext=c 3671ac_cpp='$CPP $CPPFLAGS' 3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3674ac_compiler_gnu=$ac_cv_c_compiler_gnu 3675if test -n "$ac_tool_prefix"; then 3676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3677set dummy ${ac_tool_prefix}gcc; ac_word=$2 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3679$as_echo_n "checking for $ac_word... " >&6; } 3680if ${ac_cv_prog_CC+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 if test -n "$CC"; then 3684 ac_cv_prog_CC="$CC" # Let the user override the test. 3685else 3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3687for as_dir in $PATH 3688do 3689 IFS=$as_save_IFS 3690 test -z "$as_dir" && as_dir=. 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3693 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3695 break 2 3696 fi 3697done 3698 done 3699IFS=$as_save_IFS 3700 3701fi 3702fi 3703CC=$ac_cv_prog_CC 3704if test -n "$CC"; then 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3706$as_echo "$CC" >&6; } 3707else 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3709$as_echo "no" >&6; } 3710fi 3711 3712 3713fi 3714if test -z "$ac_cv_prog_CC"; then 3715 ac_ct_CC=$CC 3716 # Extract the first word of "gcc", so it can be a program name with args. 3717set dummy gcc; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if ${ac_cv_prog_ac_ct_CC+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$ac_ct_CC"; then 3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3733 ac_cv_prog_ac_ct_CC="gcc" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741fi 3742fi 3743ac_ct_CC=$ac_cv_prog_ac_ct_CC 3744if test -n "$ac_ct_CC"; then 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3746$as_echo "$ac_ct_CC" >&6; } 3747else 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749$as_echo "no" >&6; } 3750fi 3751 3752 if test "x$ac_ct_CC" = x; then 3753 CC="" 3754 else 3755 case $cross_compiling:$ac_tool_warned in 3756yes:) 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3759ac_tool_warned=yes ;; 3760esac 3761 CC=$ac_ct_CC 3762 fi 3763else 3764 CC="$ac_cv_prog_CC" 3765fi 3766 3767if test -z "$CC"; then 3768 if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3770set dummy ${ac_tool_prefix}cc; ac_word=$2 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3772$as_echo_n "checking for $ac_word... " >&6; } 3773if ${ac_cv_prog_CC+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -n "$CC"; then 3777 ac_cv_prog_CC="$CC" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3786 ac_cv_prog_CC="${ac_tool_prefix}cc" 3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791 done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796CC=$ac_cv_prog_CC 3797if test -n "$CC"; then 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3799$as_echo "$CC" >&6; } 3800else 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802$as_echo "no" >&6; } 3803fi 3804 3805 3806 fi 3807fi 3808if test -z "$CC"; then 3809 # Extract the first word of "cc", so it can be a program name with args. 3810set dummy cc; ac_word=$2 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3812$as_echo_n "checking for $ac_word... " >&6; } 3813if ${ac_cv_prog_CC+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 if test -n "$CC"; then 3817 ac_cv_prog_CC="$CC" # Let the user override the test. 3818else 3819 ac_prog_rejected=no 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for ac_exec_ext in '' $ac_executable_extensions; do 3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3828 ac_prog_rejected=yes 3829 continue 3830 fi 3831 ac_cv_prog_CC="cc" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839if test $ac_prog_rejected = yes; then 3840 # We found a bogon in the path, so make sure we never use it. 3841 set dummy $ac_cv_prog_CC 3842 shift 3843 if test $# != 0; then 3844 # We chose a different compiler from the bogus one. 3845 # However, it has the same basename, so the bogon will be chosen 3846 # first if we set CC to just the basename; use the full file name. 3847 shift 3848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3849 fi 3850fi 3851fi 3852fi 3853CC=$ac_cv_prog_CC 3854if test -n "$CC"; then 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3856$as_echo "$CC" >&6; } 3857else 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859$as_echo "no" >&6; } 3860fi 3861 3862 3863fi 3864if test -z "$CC"; then 3865 if test -n "$ac_tool_prefix"; then 3866 for ac_prog in cl.exe 3867 do 3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3869set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3871$as_echo_n "checking for $ac_word... " >&6; } 3872if ${ac_cv_prog_CC+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 if test -n "$CC"; then 3876 ac_cv_prog_CC="$CC" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889done 3890 done 3891IFS=$as_save_IFS 3892 3893fi 3894fi 3895CC=$ac_cv_prog_CC 3896if test -n "$CC"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3898$as_echo "$CC" >&6; } 3899else 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3901$as_echo "no" >&6; } 3902fi 3903 3904 3905 test -n "$CC" && break 3906 done 3907fi 3908if test -z "$CC"; then 3909 ac_ct_CC=$CC 3910 for ac_prog in cl.exe 3911do 3912 # Extract the first word of "$ac_prog", so it can be a program name with args. 3913set dummy $ac_prog; ac_word=$2 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3915$as_echo_n "checking for $ac_word... " >&6; } 3916if ${ac_cv_prog_ac_ct_CC+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -n "$ac_ct_CC"; then 3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3921else 3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3929 ac_cv_prog_ac_ct_CC="$ac_prog" 3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3931 break 2 3932 fi 3933done 3934 done 3935IFS=$as_save_IFS 3936 3937fi 3938fi 3939ac_ct_CC=$ac_cv_prog_ac_ct_CC 3940if test -n "$ac_ct_CC"; then 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3942$as_echo "$ac_ct_CC" >&6; } 3943else 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3945$as_echo "no" >&6; } 3946fi 3947 3948 3949 test -n "$ac_ct_CC" && break 3950done 3951 3952 if test "x$ac_ct_CC" = x; then 3953 CC="" 3954 else 3955 case $cross_compiling:$ac_tool_warned in 3956yes:) 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3959ac_tool_warned=yes ;; 3960esac 3961 CC=$ac_ct_CC 3962 fi 3963fi 3964 3965fi 3966 3967 3968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3970as_fn_error $? "no acceptable C compiler found in \$PATH 3971See \`config.log' for more details" "$LINENO" 5; } 3972 3973# Provide some information about the compiler. 3974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3975set X $ac_compile 3976ac_compiler=$2 3977for ac_option in --version -v -V -qversion; do 3978 { { ac_try="$ac_compiler $ac_option >&5" 3979case "(($ac_try" in 3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981 *) ac_try_echo=$ac_try;; 3982esac 3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3984$as_echo "$ac_try_echo"; } >&5 3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3986 ac_status=$? 3987 if test -s conftest.err; then 3988 sed '10a\ 3989... rest of stderr output deleted ... 3990 10q' conftest.err >conftest.er1 3991 cat conftest.er1 >&5 3992 fi 3993 rm -f conftest.er1 conftest.err 3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996done 3997 3998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001int 4002main () 4003{ 4004 4005 ; 4006 return 0; 4007} 4008_ACEOF 4009ac_clean_files_save=$ac_clean_files 4010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4011# Try to create an executable without -o first, disregard a.out. 4012# It will help us diagnose broken compilers, and finding out an intuition 4013# of exeext. 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4015$as_echo_n "checking whether the C compiler works... " >&6; } 4016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4017 4018# The possible output files: 4019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4020 4021ac_rmfiles= 4022for ac_file in $ac_files 4023do 4024 case $ac_file in 4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4026 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4027 esac 4028done 4029rm -f $ac_rmfiles 4030 4031if { { ac_try="$ac_link_default" 4032case "(($ac_try" in 4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4034 *) ac_try_echo=$ac_try;; 4035esac 4036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4037$as_echo "$ac_try_echo"; } >&5 4038 (eval "$ac_link_default") 2>&5 4039 ac_status=$? 4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4041 test $ac_status = 0; }; then : 4042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4044# in a Makefile. We should not override ac_cv_exeext if it was cached, 4045# so that the user can short-circuit this test for compilers unknown to 4046# Autoconf. 4047for ac_file in $ac_files '' 4048do 4049 test -f "$ac_file" || continue 4050 case $ac_file in 4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4052 ;; 4053 [ab].out ) 4054 # We found the default executable, but exeext='' is most 4055 # certainly right. 4056 break;; 4057 *.* ) 4058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4059 then :; else 4060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4061 fi 4062 # We set ac_cv_exeext here because the later test for it is not 4063 # safe: cross compilers may not add the suffix if given an `-o' 4064 # argument, so we may need to know it at that point already. 4065 # Even if this section looks crufty: it has the advantage of 4066 # actually working. 4067 break;; 4068 * ) 4069 break;; 4070 esac 4071done 4072test "$ac_cv_exeext" = no && ac_cv_exeext= 4073 4074else 4075 ac_file='' 4076fi 4077if test -z "$ac_file"; then : 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079$as_echo "no" >&6; } 4080$as_echo "$as_me: failed program was:" >&5 4081sed 's/^/| /' conftest.$ac_ext >&5 4082 4083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4085as_fn_error 77 "C compiler cannot create executables 4086See \`config.log' for more details" "$LINENO" 5; } 4087else 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4089$as_echo "yes" >&6; } 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4092$as_echo_n "checking for C compiler default output file name... " >&6; } 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4094$as_echo "$ac_file" >&6; } 4095ac_exeext=$ac_cv_exeext 4096 4097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4098ac_clean_files=$ac_clean_files_save 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4100$as_echo_n "checking for suffix of executables... " >&6; } 4101if { { ac_try="$ac_link" 4102case "(($ac_try" in 4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4104 *) ac_try_echo=$ac_try;; 4105esac 4106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4107$as_echo "$ac_try_echo"; } >&5 4108 (eval "$ac_link") 2>&5 4109 ac_status=$? 4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4111 test $ac_status = 0; }; then : 4112 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4114# work properly (i.e., refer to `conftest.exe'), while it won't with 4115# `rm'. 4116for ac_file in conftest.exe conftest conftest.*; do 4117 test -f "$ac_file" || continue 4118 case $ac_file in 4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4121 break;; 4122 * ) break;; 4123 esac 4124done 4125else 4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4128as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4129See \`config.log' for more details" "$LINENO" 5; } 4130fi 4131rm -f conftest conftest$ac_cv_exeext 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4133$as_echo "$ac_cv_exeext" >&6; } 4134 4135rm -f conftest.$ac_ext 4136EXEEXT=$ac_cv_exeext 4137ac_exeext=$EXEEXT 4138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140#include <stdio.h> 4141int 4142main () 4143{ 4144FILE *f = fopen ("conftest.out", "w"); 4145 return ferror (f) || fclose (f) != 0; 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151ac_clean_files="$ac_clean_files conftest.out" 4152# Check that the compiler produces executables we can run. If not, either 4153# the compiler is broken, or we cross compile. 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4155$as_echo_n "checking whether we are cross compiling... " >&6; } 4156if test "$cross_compiling" != yes; then 4157 { { ac_try="$ac_link" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4163$as_echo "$ac_try_echo"; } >&5 4164 (eval "$ac_link") 2>&5 4165 ac_status=$? 4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; } 4168 if { ac_try='./conftest$ac_cv_exeext' 4169 { { case "(($ac_try" in 4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4171 *) ac_try_echo=$ac_try;; 4172esac 4173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4174$as_echo "$ac_try_echo"; } >&5 4175 (eval "$ac_try") 2>&5 4176 ac_status=$? 4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4178 test $ac_status = 0; }; }; then 4179 cross_compiling=no 4180 else 4181 if test "$cross_compiling" = maybe; then 4182 cross_compiling=yes 4183 else 4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4186as_fn_error $? "cannot run C compiled programs. 4187If you meant to cross compile, use \`--host'. 4188See \`config.log' for more details" "$LINENO" 5; } 4189 fi 4190 fi 4191fi 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4193$as_echo "$cross_compiling" >&6; } 4194 4195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4196ac_clean_files=$ac_clean_files_save 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4198$as_echo_n "checking for suffix of object files... " >&6; } 4199if ${ac_cv_objext+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201else 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204 4205int 4206main () 4207{ 4208 4209 ; 4210 return 0; 4211} 4212_ACEOF 4213rm -f conftest.o conftest.obj 4214if { { ac_try="$ac_compile" 4215case "(($ac_try" in 4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4217 *) ac_try_echo=$ac_try;; 4218esac 4219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4220$as_echo "$ac_try_echo"; } >&5 4221 (eval "$ac_compile") 2>&5 4222 ac_status=$? 4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4224 test $ac_status = 0; }; then : 4225 for ac_file in conftest.o conftest.obj conftest.*; do 4226 test -f "$ac_file" || continue; 4227 case $ac_file in 4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4230 break;; 4231 esac 4232done 4233else 4234 $as_echo "$as_me: failed program was:" >&5 4235sed 's/^/| /' conftest.$ac_ext >&5 4236 4237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4239as_fn_error $? "cannot compute suffix of object files: cannot compile 4240See \`config.log' for more details" "$LINENO" 5; } 4241fi 4242rm -f conftest.$ac_cv_objext conftest.$ac_ext 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4245$as_echo "$ac_cv_objext" >&6; } 4246OBJEXT=$ac_cv_objext 4247ac_objext=$OBJEXT 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4250if ${ac_cv_c_compiler_gnu+:} false; then : 4251 $as_echo_n "(cached) " >&6 4252else 4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4254/* end confdefs.h. */ 4255 4256int 4257main () 4258{ 4259#ifndef __GNUC__ 4260 choke me 4261#endif 4262 4263 ; 4264 return 0; 4265} 4266_ACEOF 4267if ac_fn_c_try_compile "$LINENO"; then : 4268 ac_compiler_gnu=yes 4269else 4270 ac_compiler_gnu=no 4271fi 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273ac_cv_c_compiler_gnu=$ac_compiler_gnu 4274 4275fi 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4277$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4278if test $ac_compiler_gnu = yes; then 4279 GCC=yes 4280else 4281 GCC= 4282fi 4283ac_test_CFLAGS=${CFLAGS+set} 4284ac_save_CFLAGS=$CFLAGS 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4286$as_echo_n "checking whether $CC accepts -g... " >&6; } 4287if ${ac_cv_prog_cc_g+:} false; then : 4288 $as_echo_n "(cached) " >&6 4289else 4290 ac_save_c_werror_flag=$ac_c_werror_flag 4291 ac_c_werror_flag=yes 4292 ac_cv_prog_cc_g=no 4293 CFLAGS="-g" 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296 4297int 4298main () 4299{ 4300 4301 ; 4302 return 0; 4303} 4304_ACEOF 4305if ac_fn_c_try_compile "$LINENO"; then : 4306 ac_cv_prog_cc_g=yes 4307else 4308 CFLAGS="" 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312int 4313main () 4314{ 4315 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320if ac_fn_c_try_compile "$LINENO"; then : 4321 4322else 4323 ac_c_werror_flag=$ac_save_c_werror_flag 4324 CFLAGS="-g" 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_c_try_compile "$LINENO"; then : 4337 ac_cv_prog_cc_g=yes 4338fi 4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4340fi 4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4342fi 4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4344 ac_c_werror_flag=$ac_save_c_werror_flag 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4347$as_echo "$ac_cv_prog_cc_g" >&6; } 4348if test "$ac_test_CFLAGS" = set; then 4349 CFLAGS=$ac_save_CFLAGS 4350elif test $ac_cv_prog_cc_g = yes; then 4351 if test "$GCC" = yes; then 4352 CFLAGS="-g -O2" 4353 else 4354 CFLAGS="-g" 4355 fi 4356else 4357 if test "$GCC" = yes; then 4358 CFLAGS="-O2" 4359 else 4360 CFLAGS= 4361 fi 4362fi 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4365if ${ac_cv_prog_cc_c89+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 ac_cv_prog_cc_c89=no 4369ac_save_CC=$CC 4370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371/* end confdefs.h. */ 4372#include <stdarg.h> 4373#include <stdio.h> 4374struct stat; 4375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4376struct buf { int x; }; 4377FILE * (*rcsopen) (struct buf *, struct stat *, int); 4378static char *e (p, i) 4379 char **p; 4380 int i; 4381{ 4382 return p[i]; 4383} 4384static char *f (char * (*g) (char **, int), char **p, ...) 4385{ 4386 char *s; 4387 va_list v; 4388 va_start (v,p); 4389 s = g (p, va_arg (v,int)); 4390 va_end (v); 4391 return s; 4392} 4393 4394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4395 function prototypes and stuff, but not '\xHH' hex character constants. 4396 These don't provoke an error unfortunately, instead are silently treated 4397 as 'x'. The following induces an error, until -std is added to get 4398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4399 array size at least. It's necessary to write '\x00'==0 to get something 4400 that's true only with -std. */ 4401int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4402 4403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4404 inside strings and character constants. */ 4405#define FOO(x) 'x' 4406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4407 4408int test (int i, double x); 4409struct s1 {int (*f) (int a);}; 4410struct s2 {int (*f) (double a);}; 4411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4412int argc; 4413char **argv; 4414int 4415main () 4416{ 4417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4418 ; 4419 return 0; 4420} 4421_ACEOF 4422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4424do 4425 CC="$ac_save_CC $ac_arg" 4426 if ac_fn_c_try_compile "$LINENO"; then : 4427 ac_cv_prog_cc_c89=$ac_arg 4428fi 4429rm -f core conftest.err conftest.$ac_objext 4430 test "x$ac_cv_prog_cc_c89" != "xno" && break 4431done 4432rm -f conftest.$ac_ext 4433CC=$ac_save_CC 4434 4435fi 4436# AC_CACHE_VAL 4437case "x$ac_cv_prog_cc_c89" in 4438 x) 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4440$as_echo "none needed" >&6; } ;; 4441 xno) 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4443$as_echo "unsupported" >&6; } ;; 4444 *) 4445 CC="$CC $ac_cv_prog_cc_c89" 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4448esac 4449if test "x$ac_cv_prog_cc_c89" != xno; then : 4450 4451fi 4452 4453ac_ext=c 4454ac_cpp='$CPP $CPPFLAGS' 4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4457ac_compiler_gnu=$ac_cv_c_compiler_gnu 4458 4459ac_ext=c 4460ac_cpp='$CPP $CPPFLAGS' 4461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4463ac_compiler_gnu=$ac_cv_c_compiler_gnu 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4465$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4466if ${am_cv_prog_cc_c_o+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4470/* end confdefs.h. */ 4471 4472int 4473main () 4474{ 4475 4476 ; 4477 return 0; 4478} 4479_ACEOF 4480 # Make sure it works both with $CC and with simple cc. 4481 # Following AC_PROG_CC_C_O, we do the test twice because some 4482 # compilers refuse to overwrite an existing .o file with -o, 4483 # though they will create one. 4484 am_cv_prog_cc_c_o=yes 4485 for am_i in 1 2; do 4486 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4487 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4488 ac_status=$? 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490 (exit $ac_status); } \ 4491 && test -f conftest2.$ac_objext; then 4492 : OK 4493 else 4494 am_cv_prog_cc_c_o=no 4495 break 4496 fi 4497 done 4498 rm -f core conftest* 4499 unset am_i 4500fi 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4502$as_echo "$am_cv_prog_cc_c_o" >&6; } 4503if test "$am_cv_prog_cc_c_o" != yes; then 4504 # Losing compiler, so override with the script. 4505 # FIXME: It is wrong to rewrite CC. 4506 # But if we don't then we get into trouble of one sort or another. 4507 # A longer-term fix would be to have automake use am__CC in this case, 4508 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4509 CC="$am_aux_dir/compile $CC" 4510fi 4511ac_ext=c 4512ac_cpp='$CPP $CPPFLAGS' 4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4515ac_compiler_gnu=$ac_cv_c_compiler_gnu 4516 4517DEPDIR="${am__leading_dot}deps" 4518 4519ac_config_commands="$ac_config_commands depfiles" 4520 4521 4522am_make=${MAKE-make} 4523cat > confinc << 'END' 4524am__doit: 4525 @echo this is the am__doit target 4526.PHONY: am__doit 4527END 4528# If we don't find an include directive, just comment out the code. 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4530$as_echo_n "checking for style of include used by $am_make... " >&6; } 4531am__include="#" 4532am__quote= 4533_am_result=none 4534# First try GNU make style include. 4535echo "include confinc" > confmf 4536# Ignore all kinds of additional output from 'make'. 4537case `$am_make -s -f confmf 2> /dev/null` in #( 4538*the\ am__doit\ target*) 4539 am__include=include 4540 am__quote= 4541 _am_result=GNU 4542 ;; 4543esac 4544# Now try BSD make style include. 4545if test "$am__include" = "#"; then 4546 echo '.include "confinc"' > confmf 4547 case `$am_make -s -f confmf 2> /dev/null` in #( 4548 *the\ am__doit\ target*) 4549 am__include=.include 4550 am__quote="\"" 4551 _am_result=BSD 4552 ;; 4553 esac 4554fi 4555 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4558$as_echo "$_am_result" >&6; } 4559rm -f confinc confmf 4560 4561# Check whether --enable-dependency-tracking was given. 4562if test "${enable_dependency_tracking+set}" = set; then : 4563 enableval=$enable_dependency_tracking; 4564fi 4565 4566if test "x$enable_dependency_tracking" != xno; then 4567 am_depcomp="$ac_aux_dir/depcomp" 4568 AMDEPBACKSLASH='\' 4569 am__nodep='_no' 4570fi 4571 if test "x$enable_dependency_tracking" != xno; then 4572 AMDEP_TRUE= 4573 AMDEP_FALSE='#' 4574else 4575 AMDEP_TRUE='#' 4576 AMDEP_FALSE= 4577fi 4578 4579 4580 4581depcc="$CC" am_compiler_list= 4582 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4584$as_echo_n "checking dependency style of $depcc... " >&6; } 4585if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4589 # We make a subdir and do the tests there. Otherwise we can end up 4590 # making bogus files that we don't know about and never remove. For 4591 # instance it was reported that on HP-UX the gcc test will end up 4592 # making a dummy file named 'D' -- because '-MD' means "put the output 4593 # in D". 4594 rm -rf conftest.dir 4595 mkdir conftest.dir 4596 # Copy depcomp to subdir because otherwise we won't find it if we're 4597 # using a relative directory. 4598 cp "$am_depcomp" conftest.dir 4599 cd conftest.dir 4600 # We will build objects and dependencies in a subdirectory because 4601 # it helps to detect inapplicable dependency modes. For instance 4602 # both Tru64's cc and ICC support -MD to output dependencies as a 4603 # side effect of compilation, but ICC will put the dependencies in 4604 # the current directory while Tru64 will put them in the object 4605 # directory. 4606 mkdir sub 4607 4608 am_cv_CC_dependencies_compiler_type=none 4609 if test "$am_compiler_list" = ""; then 4610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4611 fi 4612 am__universal=false 4613 case " $depcc " in #( 4614 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4615 esac 4616 4617 for depmode in $am_compiler_list; do 4618 # Setup a source with many dependencies, because some compilers 4619 # like to wrap large dependency lists on column 80 (with \), and 4620 # we should not choose a depcomp mode which is confused by this. 4621 # 4622 # We need to recreate these files for each test, as the compiler may 4623 # overwrite some of them when testing with obscure command lines. 4624 # This happens at least with the AIX C compiler. 4625 : > sub/conftest.c 4626 for i in 1 2 3 4 5 6; do 4627 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4628 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4629 # Solaris 10 /bin/sh. 4630 echo '/* dummy */' > sub/conftst$i.h 4631 done 4632 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4633 4634 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4635 # mode. It turns out that the SunPro C++ compiler does not properly 4636 # handle '-M -o', and we need to detect this. Also, some Intel 4637 # versions had trouble with output in subdirs. 4638 am__obj=sub/conftest.${OBJEXT-o} 4639 am__minus_obj="-o $am__obj" 4640 case $depmode in 4641 gcc) 4642 # This depmode causes a compiler race in universal mode. 4643 test "$am__universal" = false || continue 4644 ;; 4645 nosideeffect) 4646 # After this tag, mechanisms are not by side-effect, so they'll 4647 # only be used when explicitly requested. 4648 if test "x$enable_dependency_tracking" = xyes; then 4649 continue 4650 else 4651 break 4652 fi 4653 ;; 4654 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4655 # This compiler won't grok '-c -o', but also, the minuso test has 4656 # not run yet. These depmodes are late enough in the game, and 4657 # so weak that their functioning should not be impacted. 4658 am__obj=conftest.${OBJEXT-o} 4659 am__minus_obj= 4660 ;; 4661 none) break ;; 4662 esac 4663 if depmode=$depmode \ 4664 source=sub/conftest.c object=$am__obj \ 4665 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4666 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4667 >/dev/null 2>conftest.err && 4668 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4670 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4672 # icc doesn't choke on unknown options, it will just issue warnings 4673 # or remarks (even with -Werror). So we grep stderr for any message 4674 # that says an option was ignored or not supported. 4675 # When given -MP, icc 7.0 and 7.1 complain thusly: 4676 # icc: Command line warning: ignoring option '-M'; no argument required 4677 # The diagnosis changed in icc 8.0: 4678 # icc: Command line remark: option '-MP' not supported 4679 if (grep 'ignoring option' conftest.err || 4680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4681 am_cv_CC_dependencies_compiler_type=$depmode 4682 break 4683 fi 4684 fi 4685 done 4686 4687 cd .. 4688 rm -rf conftest.dir 4689else 4690 am_cv_CC_dependencies_compiler_type=none 4691fi 4692 4693fi 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4695$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4696CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4697 4698 if 4699 test "x$enable_dependency_tracking" != xno \ 4700 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4701 am__fastdepCC_TRUE= 4702 am__fastdepCC_FALSE='#' 4703else 4704 am__fastdepCC_TRUE='#' 4705 am__fastdepCC_FALSE= 4706fi 4707 4708 4709 4710 4711ac_ext=c 4712ac_cpp='$CPP $CPPFLAGS' 4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4715ac_compiler_gnu=$ac_cv_c_compiler_gnu 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4717$as_echo_n "checking how to run the C preprocessor... " >&6; } 4718# On Suns, sometimes $CPP names a directory. 4719if test -n "$CPP" && test -d "$CPP"; then 4720 CPP= 4721fi 4722if test -z "$CPP"; then 4723 if ${ac_cv_prog_CPP+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 # Double quotes because CPP needs to be expanded 4727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4728 do 4729 ac_preproc_ok=false 4730for ac_c_preproc_warn_flag in '' yes 4731do 4732 # Use a header file that comes with gcc, so configuring glibc 4733 # with a fresh cross-compiler works. 4734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4735 # <limits.h> exists even on freestanding compilers. 4736 # On the NeXT, cc -E runs the code through the compiler's parser, 4737 # not just through cpp. "Syntax error" is here to catch this case. 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740#ifdef __STDC__ 4741# include <limits.h> 4742#else 4743# include <assert.h> 4744#endif 4745 Syntax error 4746_ACEOF 4747if ac_fn_c_try_cpp "$LINENO"; then : 4748 4749else 4750 # Broken: fails on valid input. 4751continue 4752fi 4753rm -f conftest.err conftest.i conftest.$ac_ext 4754 4755 # OK, works on sane cases. Now check whether nonexistent headers 4756 # can be detected and how. 4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759#include <ac_nonexistent.h> 4760_ACEOF 4761if ac_fn_c_try_cpp "$LINENO"; then : 4762 # Broken: success on invalid input. 4763continue 4764else 4765 # Passes both tests. 4766ac_preproc_ok=: 4767break 4768fi 4769rm -f conftest.err conftest.i conftest.$ac_ext 4770 4771done 4772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4773rm -f conftest.i conftest.err conftest.$ac_ext 4774if $ac_preproc_ok; then : 4775 break 4776fi 4777 4778 done 4779 ac_cv_prog_CPP=$CPP 4780 4781fi 4782 CPP=$ac_cv_prog_CPP 4783else 4784 ac_cv_prog_CPP=$CPP 4785fi 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4787$as_echo "$CPP" >&6; } 4788ac_preproc_ok=false 4789for ac_c_preproc_warn_flag in '' yes 4790do 4791 # Use a header file that comes with gcc, so configuring glibc 4792 # with a fresh cross-compiler works. 4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4794 # <limits.h> exists even on freestanding compilers. 4795 # On the NeXT, cc -E runs the code through the compiler's parser, 4796 # not just through cpp. "Syntax error" is here to catch this case. 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799#ifdef __STDC__ 4800# include <limits.h> 4801#else 4802# include <assert.h> 4803#endif 4804 Syntax error 4805_ACEOF 4806if ac_fn_c_try_cpp "$LINENO"; then : 4807 4808else 4809 # Broken: fails on valid input. 4810continue 4811fi 4812rm -f conftest.err conftest.i conftest.$ac_ext 4813 4814 # OK, works on sane cases. Now check whether nonexistent headers 4815 # can be detected and how. 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818#include <ac_nonexistent.h> 4819_ACEOF 4820if ac_fn_c_try_cpp "$LINENO"; then : 4821 # Broken: success on invalid input. 4822continue 4823else 4824 # Passes both tests. 4825ac_preproc_ok=: 4826break 4827fi 4828rm -f conftest.err conftest.i conftest.$ac_ext 4829 4830done 4831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4832rm -f conftest.i conftest.err conftest.$ac_ext 4833if $ac_preproc_ok; then : 4834 4835else 4836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4838as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4839See \`config.log' for more details" "$LINENO" 5; } 4840fi 4841 4842ac_ext=c 4843ac_cpp='$CPP $CPPFLAGS' 4844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4846ac_compiler_gnu=$ac_cv_c_compiler_gnu 4847 4848 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4850$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4851if ${ac_cv_path_GREP+:} false; then : 4852 $as_echo_n "(cached) " >&6 4853else 4854 if test -z "$GREP"; then 4855 ac_path_GREP_found=false 4856 # Loop through the user's path and test for each of PROGNAME-LIST 4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4859do 4860 IFS=$as_save_IFS 4861 test -z "$as_dir" && as_dir=. 4862 for ac_prog in grep ggrep; do 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4865 as_fn_executable_p "$ac_path_GREP" || continue 4866# Check for GNU ac_path_GREP and select it if it is found. 4867 # Check for GNU $ac_path_GREP 4868case `"$ac_path_GREP" --version 2>&1` in 4869*GNU*) 4870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4871*) 4872 ac_count=0 4873 $as_echo_n 0123456789 >"conftest.in" 4874 while : 4875 do 4876 cat "conftest.in" "conftest.in" >"conftest.tmp" 4877 mv "conftest.tmp" "conftest.in" 4878 cp "conftest.in" "conftest.nl" 4879 $as_echo 'GREP' >> "conftest.nl" 4880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4882 as_fn_arith $ac_count + 1 && ac_count=$as_val 4883 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4884 # Best one so far, save it but keep looking for a better one 4885 ac_cv_path_GREP="$ac_path_GREP" 4886 ac_path_GREP_max=$ac_count 4887 fi 4888 # 10*(2^10) chars as input seems more than enough 4889 test $ac_count -gt 10 && break 4890 done 4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4892esac 4893 4894 $ac_path_GREP_found && break 3 4895 done 4896 done 4897 done 4898IFS=$as_save_IFS 4899 if test -z "$ac_cv_path_GREP"; then 4900 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4901 fi 4902else 4903 ac_cv_path_GREP=$GREP 4904fi 4905 4906fi 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4908$as_echo "$ac_cv_path_GREP" >&6; } 4909 GREP="$ac_cv_path_GREP" 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4913$as_echo_n "checking for egrep... " >&6; } 4914if ${ac_cv_path_EGREP+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4918 then ac_cv_path_EGREP="$GREP -E" 4919 else 4920 if test -z "$EGREP"; then 4921 ac_path_EGREP_found=false 4922 # Loop through the user's path and test for each of PROGNAME-LIST 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4925do 4926 IFS=$as_save_IFS 4927 test -z "$as_dir" && as_dir=. 4928 for ac_prog in egrep; do 4929 for ac_exec_ext in '' $ac_executable_extensions; do 4930 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4931 as_fn_executable_p "$ac_path_EGREP" || continue 4932# Check for GNU ac_path_EGREP and select it if it is found. 4933 # Check for GNU $ac_path_EGREP 4934case `"$ac_path_EGREP" --version 2>&1` in 4935*GNU*) 4936 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4937*) 4938 ac_count=0 4939 $as_echo_n 0123456789 >"conftest.in" 4940 while : 4941 do 4942 cat "conftest.in" "conftest.in" >"conftest.tmp" 4943 mv "conftest.tmp" "conftest.in" 4944 cp "conftest.in" "conftest.nl" 4945 $as_echo 'EGREP' >> "conftest.nl" 4946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4948 as_fn_arith $ac_count + 1 && ac_count=$as_val 4949 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4950 # Best one so far, save it but keep looking for a better one 4951 ac_cv_path_EGREP="$ac_path_EGREP" 4952 ac_path_EGREP_max=$ac_count 4953 fi 4954 # 10*(2^10) chars as input seems more than enough 4955 test $ac_count -gt 10 && break 4956 done 4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4958esac 4959 4960 $ac_path_EGREP_found && break 3 4961 done 4962 done 4963 done 4964IFS=$as_save_IFS 4965 if test -z "$ac_cv_path_EGREP"; then 4966 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4967 fi 4968else 4969 ac_cv_path_EGREP=$EGREP 4970fi 4971 4972 fi 4973fi 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4975$as_echo "$ac_cv_path_EGREP" >&6; } 4976 EGREP="$ac_cv_path_EGREP" 4977 4978 4979 4980 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 4982$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 4983if ${gl_cv_c_amsterdam_compiler+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989 4990#ifdef __ACK__ 4991Amsterdam 4992#endif 4993 4994_ACEOF 4995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4996 $EGREP "Amsterdam" >/dev/null 2>&1; then : 4997 gl_cv_c_amsterdam_compiler=yes 4998else 4999 gl_cv_c_amsterdam_compiler=no 5000fi 5001rm -f conftest* 5002 5003 5004fi 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 5006$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 5007 if test -z "$AR"; then 5008 if test $gl_cv_c_amsterdam_compiler = yes; then 5009 AR='cc -c.a' 5010 if test -z "$ARFLAGS"; then 5011 ARFLAGS='-o' 5012 fi 5013 else 5014 if test -n "$ac_tool_prefix"; then 5015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5016set dummy ${ac_tool_prefix}ar; ac_word=$2 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5018$as_echo_n "checking for $ac_word... " >&6; } 5019if ${ac_cv_prog_AR+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 if test -n "$AR"; then 5023 ac_cv_prog_AR="$AR" # Let the user override the test. 5024else 5025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5026for as_dir in $PATH 5027do 5028 IFS=$as_save_IFS 5029 test -z "$as_dir" && as_dir=. 5030 for ac_exec_ext in '' $ac_executable_extensions; do 5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5032 ac_cv_prog_AR="${ac_tool_prefix}ar" 5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5034 break 2 5035 fi 5036done 5037 done 5038IFS=$as_save_IFS 5039 5040fi 5041fi 5042AR=$ac_cv_prog_AR 5043if test -n "$AR"; then 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5045$as_echo "$AR" >&6; } 5046else 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5048$as_echo "no" >&6; } 5049fi 5050 5051 5052fi 5053if test -z "$ac_cv_prog_AR"; then 5054 ac_ct_AR=$AR 5055 # Extract the first word of "ar", so it can be a program name with args. 5056set dummy ar; ac_word=$2 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5058$as_echo_n "checking for $ac_word... " >&6; } 5059if ${ac_cv_prog_ac_ct_AR+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 if test -n "$ac_ct_AR"; then 5063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5064else 5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5066for as_dir in $PATH 5067do 5068 IFS=$as_save_IFS 5069 test -z "$as_dir" && as_dir=. 5070 for ac_exec_ext in '' $ac_executable_extensions; do 5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5072 ac_cv_prog_ac_ct_AR="ar" 5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5074 break 2 5075 fi 5076done 5077 done 5078IFS=$as_save_IFS 5079 5080fi 5081fi 5082ac_ct_AR=$ac_cv_prog_ac_ct_AR 5083if test -n "$ac_ct_AR"; then 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5085$as_echo "$ac_ct_AR" >&6; } 5086else 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5088$as_echo "no" >&6; } 5089fi 5090 5091 if test "x$ac_ct_AR" = x; then 5092 AR="ar" 5093 else 5094 case $cross_compiling:$ac_tool_warned in 5095yes:) 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5098ac_tool_warned=yes ;; 5099esac 5100 AR=$ac_ct_AR 5101 fi 5102else 5103 AR="$ac_cv_prog_AR" 5104fi 5105 5106 if test -z "$ARFLAGS"; then 5107 ARFLAGS='cru' 5108 fi 5109 fi 5110 else 5111 if test -z "$ARFLAGS"; then 5112 ARFLAGS='cru' 5113 fi 5114 fi 5115 5116 5117 if test -z "$RANLIB"; then 5118 if test $gl_cv_c_amsterdam_compiler = yes; then 5119 RANLIB=':' 5120 else 5121 if test -n "$ac_tool_prefix"; then 5122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5123set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5125$as_echo_n "checking for $ac_word... " >&6; } 5126if ${ac_cv_prog_RANLIB+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 if test -n "$RANLIB"; then 5130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5131else 5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5133for as_dir in $PATH 5134do 5135 IFS=$as_save_IFS 5136 test -z "$as_dir" && as_dir=. 5137 for ac_exec_ext in '' $ac_executable_extensions; do 5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5141 break 2 5142 fi 5143done 5144 done 5145IFS=$as_save_IFS 5146 5147fi 5148fi 5149RANLIB=$ac_cv_prog_RANLIB 5150if test -n "$RANLIB"; then 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5152$as_echo "$RANLIB" >&6; } 5153else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5155$as_echo "no" >&6; } 5156fi 5157 5158 5159fi 5160if test -z "$ac_cv_prog_RANLIB"; then 5161 ac_ct_RANLIB=$RANLIB 5162 # Extract the first word of "ranlib", so it can be a program name with args. 5163set dummy ranlib; ac_word=$2 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5165$as_echo_n "checking for $ac_word... " >&6; } 5166if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 if test -n "$ac_ct_RANLIB"; then 5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5171else 5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5179 ac_cv_prog_ac_ct_RANLIB="ranlib" 5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5181 break 2 5182 fi 5183done 5184 done 5185IFS=$as_save_IFS 5186 5187fi 5188fi 5189ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5190if test -n "$ac_ct_RANLIB"; then 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5192$as_echo "$ac_ct_RANLIB" >&6; } 5193else 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195$as_echo "no" >&6; } 5196fi 5197 5198 if test "x$ac_ct_RANLIB" = x; then 5199 RANLIB=":" 5200 else 5201 case $cross_compiling:$ac_tool_warned in 5202yes:) 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 RANLIB=$ac_ct_RANLIB 5208 fi 5209else 5210 RANLIB="$ac_cv_prog_RANLIB" 5211fi 5212 5213 fi 5214 fi 5215 5216 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5218$as_echo_n "checking for ANSI C header files... " >&6; } 5219if ${ac_cv_header_stdc+:} false; then : 5220 $as_echo_n "(cached) " >&6 5221else 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5223/* end confdefs.h. */ 5224#include <stdlib.h> 5225#include <stdarg.h> 5226#include <string.h> 5227#include <float.h> 5228 5229int 5230main () 5231{ 5232 5233 ; 5234 return 0; 5235} 5236_ACEOF 5237if ac_fn_c_try_compile "$LINENO"; then : 5238 ac_cv_header_stdc=yes 5239else 5240 ac_cv_header_stdc=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243 5244if test $ac_cv_header_stdc = yes; then 5245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248#include <string.h> 5249 5250_ACEOF 5251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5252 $EGREP "memchr" >/dev/null 2>&1; then : 5253 5254else 5255 ac_cv_header_stdc=no 5256fi 5257rm -f conftest* 5258 5259fi 5260 5261if test $ac_cv_header_stdc = yes; then 5262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265#include <stdlib.h> 5266 5267_ACEOF 5268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5269 $EGREP "free" >/dev/null 2>&1; then : 5270 5271else 5272 ac_cv_header_stdc=no 5273fi 5274rm -f conftest* 5275 5276fi 5277 5278if test $ac_cv_header_stdc = yes; then 5279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5280 if test "$cross_compiling" = yes; then : 5281 : 5282else 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285#include <ctype.h> 5286#include <stdlib.h> 5287#if ((' ' & 0x0FF) == 0x020) 5288# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5289# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5290#else 5291# define ISLOWER(c) \ 5292 (('a' <= (c) && (c) <= 'i') \ 5293 || ('j' <= (c) && (c) <= 'r') \ 5294 || ('s' <= (c) && (c) <= 'z')) 5295# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5296#endif 5297 5298#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5299int 5300main () 5301{ 5302 int i; 5303 for (i = 0; i < 256; i++) 5304 if (XOR (islower (i), ISLOWER (i)) 5305 || toupper (i) != TOUPPER (i)) 5306 return 2; 5307 return 0; 5308} 5309_ACEOF 5310if ac_fn_c_try_run "$LINENO"; then : 5311 5312else 5313 ac_cv_header_stdc=no 5314fi 5315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5316 conftest.$ac_objext conftest.beam conftest.$ac_ext 5317fi 5318 5319fi 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5322$as_echo "$ac_cv_header_stdc" >&6; } 5323if test $ac_cv_header_stdc = yes; then 5324 5325$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5326 5327fi 5328 5329# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5330for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5331 inttypes.h stdint.h unistd.h 5332do : 5333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5335" 5336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5337 cat >>confdefs.h <<_ACEOF 5338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5339_ACEOF 5340 5341fi 5342 5343done 5344 5345 5346 5347 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5348if test "x$ac_cv_header_minix_config_h" = xyes; then : 5349 MINIX=yes 5350else 5351 MINIX= 5352fi 5353 5354 5355 if test "$MINIX" = yes; then 5356 5357$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5358 5359 5360$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5361 5362 5363$as_echo "#define _MINIX 1" >>confdefs.h 5364 5365 5366$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 5367 5368 fi 5369 5370 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5372$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5373if ${ac_cv_safe_to_define___extensions__+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378 5379# define __EXTENSIONS__ 1 5380 $ac_includes_default 5381int 5382main () 5383{ 5384 5385 ; 5386 return 0; 5387} 5388_ACEOF 5389if ac_fn_c_try_compile "$LINENO"; then : 5390 ac_cv_safe_to_define___extensions__=yes 5391else 5392 ac_cv_safe_to_define___extensions__=no 5393fi 5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5395fi 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5397$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5398 test $ac_cv_safe_to_define___extensions__ = yes && 5399 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5400 5401 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5402 5403 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5404 5405 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5406 5407 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5408 5409 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5410 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5412$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5413if ${ac_cv_should_define__xopen_source+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 ac_cv_should_define__xopen_source=no 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419 5420 #include <wchar.h> 5421 mbstate_t x; 5422int 5423main () 5424{ 5425 5426 ; 5427 return 0; 5428} 5429_ACEOF 5430if ac_fn_c_try_compile "$LINENO"; then : 5431 5432else 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435 5436 #define _XOPEN_SOURCE 500 5437 #include <wchar.h> 5438 mbstate_t x; 5439int 5440main () 5441{ 5442 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447if ac_fn_c_try_compile "$LINENO"; then : 5448 ac_cv_should_define__xopen_source=yes 5449fi 5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5451fi 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5455$as_echo "$ac_cv_should_define__xopen_source" >&6; } 5456 test $ac_cv_should_define__xopen_source = yes && 5457 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 # Code from module absolute-header: 5469 # Code from module announce-gen: 5470 # Code from module c-ctype: 5471 # Code from module c-strcase: 5472 # Code from module c-strcaseeq: 5473 # Code from module close-stream: 5474 # Code from module closeout: 5475 # Code from module configmake: 5476 # Code from module dirname: 5477 # Code from module dirname-lgpl: 5478 # Code from module do-release-commit-and-tag: 5479 # Code from module dosname: 5480 # Code from module double-slash-root: 5481 # Code from module errno: 5482 # Code from module error: 5483 # Code from module exitfail: 5484 # Code from module extensions: 5485 5486 # Code from module extern-inline: 5487 # Code from module fdl: 5488 # Code from module fpending: 5489 # Code from module gendocs: 5490 # Code from module getopt-gnu: 5491 # Code from module getopt-posix: 5492 # Code from module gettext: 5493 # Code from module gettext-h: 5494 # Code from module gitlog-to-changelog: 5495 # Code from module gnu-web-doc-update: 5496 # Code from module gnumakefile: 5497 # Code from module gnupload: 5498 # Code from module havelib: 5499 # Code from module include_next: 5500 # Code from module intprops: 5501 # Code from module localcharset: 5502 # Code from module maintainer-makefile: 5503 # Code from module malloc-posix: 5504 # Code from module mbrtowc: 5505 # Code from module mbsinit: 5506 # Code from module mbsrtowcs: 5507 # Code from module memchr: 5508 # Code from module msvc-inval: 5509 # Code from module msvc-nothrow: 5510 # Code from module nocrash: 5511 # Code from module non-recursive-gnulib-prefix-hack: 5512 # Code from module progname: 5513 # Code from module quotearg: 5514 # Code from module quotearg-simple: 5515 # Code from module readme-release: 5516 # Code from module snippet/_Noreturn: 5517 # Code from module snippet/arg-nonnull: 5518 # Code from module snippet/c++defs: 5519 # Code from module snippet/warn-on-use: 5520 # Code from module ssize_t: 5521 # Code from module stdbool: 5522 # Code from module stddef: 5523 # Code from module stdio: 5524 # Code from module stdlib: 5525 # Code from module streq: 5526 # Code from module strerror: 5527 # Code from module strerror-override: 5528 # Code from module string: 5529 # Code from module strndup: 5530 # Code from module strnlen: 5531 # Code from module strnlen1: 5532 # Code from module sys_types: 5533 # Code from module unistd: 5534 # Code from module update-copyright: 5535 # Code from module useless-if-before-free: 5536 # Code from module vc-list-files: 5537 # Code from module verify: 5538 # Code from module wchar: 5539 # Code from module wctype-h: 5540 # Code from module xalloc: 5541 # Code from module xalloc-die: 5542 # Code from module xalloc-oversized: 5543 # Code from module xstrndup: 5544 5545 5546 5547 5548 5549 5550 LIBC_FATAL_STDERR_=1 5551 export LIBC_FATAL_STDERR_ 5552 5553# Make sure we can run config.sub. 5554$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5555 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5556 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5558$as_echo_n "checking build system type... " >&6; } 5559if ${ac_cv_build+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 ac_build_alias=$build_alias 5563test "x$ac_build_alias" = x && 5564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5565test "x$ac_build_alias" = x && 5566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5567ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5569 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5572$as_echo "$ac_cv_build" >&6; } 5573case $ac_cv_build in 5574*-*-*) ;; 5575*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5576esac 5577build=$ac_cv_build 5578ac_save_IFS=$IFS; IFS='-' 5579set x $ac_cv_build 5580shift 5581build_cpu=$1 5582build_vendor=$2 5583shift; shift 5584# Remember, the first character of IFS is used to create $*, 5585# except with old shells: 5586build_os=$* 5587IFS=$ac_save_IFS 5588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5589 5590 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5592$as_echo_n "checking host system type... " >&6; } 5593if ${ac_cv_host+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 if test "x$host_alias" = x; then 5597 ac_cv_host=$ac_cv_build 5598else 5599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5601fi 5602 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5605$as_echo "$ac_cv_host" >&6; } 5606case $ac_cv_host in 5607*-*-*) ;; 5608*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5609esac 5610host=$ac_cv_host 5611ac_save_IFS=$IFS; IFS='-' 5612set x $ac_cv_host 5613shift 5614host_cpu=$1 5615host_vendor=$2 5616shift; shift 5617# Remember, the first character of IFS is used to create $*, 5618# except with old shells: 5619host_os=$* 5620IFS=$ac_save_IFS 5621case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5622 5623 5624 5625 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 5627$as_echo_n "checking whether // is distinct from /... " >&6; } 5628if ${gl_cv_double_slash_root+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 if test x"$cross_compiling" = xyes ; then 5632 # When cross-compiling, there is no way to tell whether // is special 5633 # short of a list of hosts. However, the only known hosts to date 5634 # that have a distinct // are Apollo DomainOS (too old to port to), 5635 # Cygwin, and z/OS. If anyone knows of another system for which // has 5636 # special semantics and is distinct from /, please report it to 5637 # <bug-gnulib@gnu.org>. 5638 case $host in 5639 *-cygwin | i370-ibm-openedition) 5640 gl_cv_double_slash_root=yes ;; 5641 *) 5642 # Be optimistic and assume that / and // are the same when we 5643 # don't know. 5644 gl_cv_double_slash_root='unknown, assuming no' ;; 5645 esac 5646 else 5647 set x `ls -di / // 2>/dev/null` 5648 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 5649 gl_cv_double_slash_root=no 5650 else 5651 gl_cv_double_slash_root=yes 5652 fi 5653 fi 5654fi 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 5656$as_echo "$gl_cv_double_slash_root" >&6; } 5657 if test "$gl_cv_double_slash_root" = yes; then 5658 5659$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 5660 5661 fi 5662 5663 5664 5665 5666 5667 5668 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 5670$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 5671if ${gl_cv_have_include_next+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 rm -rf conftestd1a conftestd1b conftestd2 5675 mkdir conftestd1a conftestd1b conftestd2 5676 cat <<EOF > conftestd1a/conftest.h 5677#define DEFINED_IN_CONFTESTD1 5678#include_next <conftest.h> 5679#ifdef DEFINED_IN_CONFTESTD2 5680int foo; 5681#else 5682#error "include_next doesn't work" 5683#endif 5684EOF 5685 cat <<EOF > conftestd1b/conftest.h 5686#define DEFINED_IN_CONFTESTD1 5687#include <stdio.h> 5688#include_next <conftest.h> 5689#ifdef DEFINED_IN_CONFTESTD2 5690int foo; 5691#else 5692#error "include_next doesn't work" 5693#endif 5694EOF 5695 cat <<EOF > conftestd2/conftest.h 5696#ifndef DEFINED_IN_CONFTESTD1 5697#error "include_next test doesn't work" 5698#endif 5699#define DEFINED_IN_CONFTESTD2 5700EOF 5701 gl_save_CPPFLAGS="$CPPFLAGS" 5702 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5704/* end confdefs.h. */ 5705#include <conftest.h> 5706_ACEOF 5707if ac_fn_c_try_compile "$LINENO"; then : 5708 gl_cv_have_include_next=yes 5709else 5710 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713#include <conftest.h> 5714_ACEOF 5715if ac_fn_c_try_compile "$LINENO"; then : 5716 gl_cv_have_include_next=buggy 5717else 5718 gl_cv_have_include_next=no 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724 CPPFLAGS="$gl_save_CPPFLAGS" 5725 rm -rf conftestd1a conftestd1b conftestd2 5726 5727fi 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 5729$as_echo "$gl_cv_have_include_next" >&6; } 5730 PRAGMA_SYSTEM_HEADER= 5731 if test $gl_cv_have_include_next = yes; then 5732 INCLUDE_NEXT=include_next 5733 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 5734 if test -n "$GCC"; then 5735 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 5736 fi 5737 else 5738 if test $gl_cv_have_include_next = buggy; then 5739 INCLUDE_NEXT=include 5740 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 5741 else 5742 INCLUDE_NEXT=include 5743 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 5744 fi 5745 fi 5746 5747 5748 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 5750$as_echo_n "checking whether system header files limit the line length... " >&6; } 5751if ${gl_cv_pragma_columns+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5755/* end confdefs.h. */ 5756 5757#ifdef __TANDEM 5758choke me 5759#endif 5760 5761_ACEOF 5762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5763 $EGREP "choke me" >/dev/null 2>&1; then : 5764 gl_cv_pragma_columns=yes 5765else 5766 gl_cv_pragma_columns=no 5767fi 5768rm -f conftest* 5769 5770 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 5773$as_echo "$gl_cv_pragma_columns" >&6; } 5774 if test $gl_cv_pragma_columns = yes; then 5775 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 5776 else 5777 PRAGMA_COLUMNS= 5778 fi 5779 5780 5781 5782 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 5784$as_echo_n "checking for complete errno.h... " >&6; } 5785if ${gl_cv_header_errno_h_complete+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787else 5788 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791 5792#include <errno.h> 5793#if !defined ETXTBSY 5794booboo 5795#endif 5796#if !defined ENOMSG 5797booboo 5798#endif 5799#if !defined EIDRM 5800booboo 5801#endif 5802#if !defined ENOLINK 5803booboo 5804#endif 5805#if !defined EPROTO 5806booboo 5807#endif 5808#if !defined EMULTIHOP 5809booboo 5810#endif 5811#if !defined EBADMSG 5812booboo 5813#endif 5814#if !defined EOVERFLOW 5815booboo 5816#endif 5817#if !defined ENOTSUP 5818booboo 5819#endif 5820#if !defined ENETRESET 5821booboo 5822#endif 5823#if !defined ECONNABORTED 5824booboo 5825#endif 5826#if !defined ESTALE 5827booboo 5828#endif 5829#if !defined EDQUOT 5830booboo 5831#endif 5832#if !defined ECANCELED 5833booboo 5834#endif 5835#if !defined EOWNERDEAD 5836booboo 5837#endif 5838#if !defined ENOTRECOVERABLE 5839booboo 5840#endif 5841#if !defined EILSEQ 5842booboo 5843#endif 5844 5845_ACEOF 5846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5847 $EGREP "booboo" >/dev/null 2>&1; then : 5848 gl_cv_header_errno_h_complete=no 5849else 5850 gl_cv_header_errno_h_complete=yes 5851fi 5852rm -f conftest* 5853 5854 5855fi 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 5857$as_echo "$gl_cv_header_errno_h_complete" >&6; } 5858 if test $gl_cv_header_errno_h_complete = yes; then 5859 ERRNO_H='' 5860 else 5861 5862 5863 5864 5865 5866 5867 5868 5869 if test $gl_cv_have_include_next = yes; then 5870 gl_cv_next_errno_h='<'errno.h'>' 5871 else 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 5873$as_echo_n "checking absolute name of <errno.h>... " >&6; } 5874if ${gl_cv_next_errno_h+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 5878 5879 5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5881/* end confdefs.h. */ 5882#include <errno.h> 5883_ACEOF 5884 case "$host_os" in 5885 aix*) gl_absname_cpp="$ac_cpp -C" ;; 5886 *) gl_absname_cpp="$ac_cpp" ;; 5887 esac 5888 5889 case "$host_os" in 5890 mingw*) 5891 gl_dirsep_regex='[/\\]' 5892 ;; 5893 *) 5894 gl_dirsep_regex='\/' 5895 ;; 5896 esac 5897 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 5898 gl_header_literal_regex=`echo 'errno.h' \ 5899 | sed -e "$gl_make_literal_regex_sed"` 5900 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 5901 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 5902 s|^/[^/]|//&| 5903 p 5904 q 5905 }' 5906 5907 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 5908 sed -n "$gl_absolute_header_sed"` 5909 5910 gl_header=$gl_cv_absolute_errno_h 5911 gl_cv_next_errno_h='"'$gl_header'"' 5912 5913 5914fi 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 5916$as_echo "$gl_cv_next_errno_h" >&6; } 5917 fi 5918 NEXT_ERRNO_H=$gl_cv_next_errno_h 5919 5920 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 5921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 5922 gl_next_as_first_directive='<'errno.h'>' 5923 else 5924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 5925 gl_next_as_first_directive=$gl_cv_next_errno_h 5926 fi 5927 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 5928 5929 5930 5931 5932 ERRNO_H='errno.h' 5933 fi 5934 5935 if test -n "$ERRNO_H"; then 5936 GL_GENERATE_ERRNO_H_TRUE= 5937 GL_GENERATE_ERRNO_H_FALSE='#' 5938else 5939 GL_GENERATE_ERRNO_H_TRUE='#' 5940 GL_GENERATE_ERRNO_H_FALSE= 5941fi 5942 5943 5944 if test -n "$ERRNO_H"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 5946$as_echo_n "checking for EMULTIHOP value... " >&6; } 5947if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953 5954#include <errno.h> 5955#ifdef EMULTIHOP 5956yes 5957#endif 5958 5959_ACEOF 5960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5961 $EGREP "yes" >/dev/null 2>&1; then : 5962 gl_cv_header_errno_h_EMULTIHOP=yes 5963else 5964 gl_cv_header_errno_h_EMULTIHOP=no 5965fi 5966rm -f conftest* 5967 5968 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971 5972#define _XOPEN_SOURCE_EXTENDED 1 5973#include <errno.h> 5974#ifdef EMULTIHOP 5975yes 5976#endif 5977 5978_ACEOF 5979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5980 $EGREP "yes" >/dev/null 2>&1; then : 5981 gl_cv_header_errno_h_EMULTIHOP=hidden 5982fi 5983rm -f conftest* 5984 5985 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 5986 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 5987#define _XOPEN_SOURCE_EXTENDED 1 5988#include <errno.h> 5989/* The following two lines are a workaround against an autoconf-2.52 bug. */ 5990#include <stdio.h> 5991#include <stdlib.h> 5992"; then : 5993 5994fi 5995 5996 fi 5997 fi 5998 5999fi 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 6001$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 6002 case $gl_cv_header_errno_h_EMULTIHOP in 6003 yes | no) 6004 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 6005 ;; 6006 *) 6007 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 6008 ;; 6009 esac 6010 6011 6012 fi 6013 6014 6015 if test -n "$ERRNO_H"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 6017$as_echo_n "checking for ENOLINK value... " >&6; } 6018if ${gl_cv_header_errno_h_ENOLINK+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024 6025#include <errno.h> 6026#ifdef ENOLINK 6027yes 6028#endif 6029 6030_ACEOF 6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6032 $EGREP "yes" >/dev/null 2>&1; then : 6033 gl_cv_header_errno_h_ENOLINK=yes 6034else 6035 gl_cv_header_errno_h_ENOLINK=no 6036fi 6037rm -f conftest* 6038 6039 if test $gl_cv_header_errno_h_ENOLINK = no; then 6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6041/* end confdefs.h. */ 6042 6043#define _XOPEN_SOURCE_EXTENDED 1 6044#include <errno.h> 6045#ifdef ENOLINK 6046yes 6047#endif 6048 6049_ACEOF 6050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6051 $EGREP "yes" >/dev/null 2>&1; then : 6052 gl_cv_header_errno_h_ENOLINK=hidden 6053fi 6054rm -f conftest* 6055 6056 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 6057 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 6058#define _XOPEN_SOURCE_EXTENDED 1 6059#include <errno.h> 6060/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6061#include <stdio.h> 6062#include <stdlib.h> 6063"; then : 6064 6065fi 6066 6067 fi 6068 fi 6069 6070fi 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 6072$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 6073 case $gl_cv_header_errno_h_ENOLINK in 6074 yes | no) 6075 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 6076 ;; 6077 *) 6078 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 6079 ;; 6080 esac 6081 6082 6083 fi 6084 6085 6086 if test -n "$ERRNO_H"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 6088$as_echo_n "checking for EOVERFLOW value... " >&6; } 6089if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094/* end confdefs.h. */ 6095 6096#include <errno.h> 6097#ifdef EOVERFLOW 6098yes 6099#endif 6100 6101_ACEOF 6102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6103 $EGREP "yes" >/dev/null 2>&1; then : 6104 gl_cv_header_errno_h_EOVERFLOW=yes 6105else 6106 gl_cv_header_errno_h_EOVERFLOW=no 6107fi 6108rm -f conftest* 6109 6110 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112/* end confdefs.h. */ 6113 6114#define _XOPEN_SOURCE_EXTENDED 1 6115#include <errno.h> 6116#ifdef EOVERFLOW 6117yes 6118#endif 6119 6120_ACEOF 6121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6122 $EGREP "yes" >/dev/null 2>&1; then : 6123 gl_cv_header_errno_h_EOVERFLOW=hidden 6124fi 6125rm -f conftest* 6126 6127 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 6128 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 6129#define _XOPEN_SOURCE_EXTENDED 1 6130#include <errno.h> 6131/* The following two lines are a workaround against an autoconf-2.52 bug. */ 6132#include <stdio.h> 6133#include <stdlib.h> 6134"; then : 6135 6136fi 6137 6138 fi 6139 fi 6140 6141fi 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 6143$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 6144 case $gl_cv_header_errno_h_EOVERFLOW in 6145 yes | no) 6146 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 6147 ;; 6148 *) 6149 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 6150 ;; 6151 esac 6152 6153 6154 fi 6155 6156 6157ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 6158if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 6159 ac_have_decl=1 6160else 6161 ac_have_decl=0 6162fi 6163 6164cat >>confdefs.h <<_ACEOF 6165#define HAVE_DECL_STRERROR_R $ac_have_decl 6166_ACEOF 6167 6168for ac_func in strerror_r 6169do : 6170 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 6171if test "x$ac_cv_func_strerror_r" = xyes; then : 6172 cat >>confdefs.h <<_ACEOF 6173#define HAVE_STRERROR_R 1 6174_ACEOF 6175 6176fi 6177done 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 6180$as_echo_n "checking whether strerror_r returns char *... " >&6; } 6181if ${ac_cv_func_strerror_r_char_p+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 6185 ac_cv_func_strerror_r_char_p=no 6186 if test $ac_cv_have_decl_strerror_r = yes; then 6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188/* end confdefs.h. */ 6189$ac_includes_default 6190int 6191main () 6192{ 6193 6194 char buf[100]; 6195 char x = *strerror_r (0, buf, sizeof buf); 6196 char *p = strerror_r (0, buf, sizeof buf); 6197 return !p || x; 6198 6199 ; 6200 return 0; 6201} 6202_ACEOF 6203if ac_fn_c_try_compile "$LINENO"; then : 6204 ac_cv_func_strerror_r_char_p=yes 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6207 else 6208 # strerror_r is not declared. Choose between 6209 # systems that have relatively inaccessible declarations for the 6210 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 6211 # former has a strerror_r that returns char*, while the latter 6212 # has a strerror_r that returns `int'. 6213 # This test should segfault on the DEC system. 6214 if test "$cross_compiling" = yes; then : 6215 : 6216else 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219$ac_includes_default 6220 extern char *strerror_r (); 6221int 6222main () 6223{ 6224char buf[100]; 6225 char x = *strerror_r (0, buf, sizeof buf); 6226 return ! isalpha (x); 6227 ; 6228 return 0; 6229} 6230_ACEOF 6231if ac_fn_c_try_run "$LINENO"; then : 6232 ac_cv_func_strerror_r_char_p=yes 6233fi 6234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6235 conftest.$ac_objext conftest.beam conftest.$ac_ext 6236fi 6237 6238 fi 6239 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 6242$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 6243if test $ac_cv_func_strerror_r_char_p = yes; then 6244 6245$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 6246 6247fi 6248 6249 6250 XGETTEXT_EXTRA_OPTIONS= 6251 6252 6253 6254 6255 6256 6257 6258 for ac_header in $ac_header_list 6259do : 6260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6261ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6262" 6263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6264 cat >>confdefs.h <<_ACEOF 6265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6266_ACEOF 6267 6268fi 6269 6270done 6271 6272 6273 6274 6275 GNULIB_CHDIR=0; 6276 GNULIB_CHOWN=0; 6277 GNULIB_CLOSE=0; 6278 GNULIB_DUP=0; 6279 GNULIB_DUP2=0; 6280 GNULIB_DUP3=0; 6281 GNULIB_ENVIRON=0; 6282 GNULIB_EUIDACCESS=0; 6283 GNULIB_FACCESSAT=0; 6284 GNULIB_FCHDIR=0; 6285 GNULIB_FCHOWNAT=0; 6286 GNULIB_FDATASYNC=0; 6287 GNULIB_FSYNC=0; 6288 GNULIB_FTRUNCATE=0; 6289 GNULIB_GETCWD=0; 6290 GNULIB_GETDOMAINNAME=0; 6291 GNULIB_GETDTABLESIZE=0; 6292 GNULIB_GETGROUPS=0; 6293 GNULIB_GETHOSTNAME=0; 6294 GNULIB_GETLOGIN=0; 6295 GNULIB_GETLOGIN_R=0; 6296 GNULIB_GETPAGESIZE=0; 6297 GNULIB_GETUSERSHELL=0; 6298 GNULIB_GROUP_MEMBER=0; 6299 GNULIB_ISATTY=0; 6300 GNULIB_LCHOWN=0; 6301 GNULIB_LINK=0; 6302 GNULIB_LINKAT=0; 6303 GNULIB_LSEEK=0; 6304 GNULIB_PIPE=0; 6305 GNULIB_PIPE2=0; 6306 GNULIB_PREAD=0; 6307 GNULIB_PWRITE=0; 6308 GNULIB_READ=0; 6309 GNULIB_READLINK=0; 6310 GNULIB_READLINKAT=0; 6311 GNULIB_RMDIR=0; 6312 GNULIB_SETHOSTNAME=0; 6313 GNULIB_SLEEP=0; 6314 GNULIB_SYMLINK=0; 6315 GNULIB_SYMLINKAT=0; 6316 GNULIB_TTYNAME_R=0; 6317 GNULIB_UNISTD_H_NONBLOCKING=0; 6318 GNULIB_UNISTD_H_SIGPIPE=0; 6319 GNULIB_UNLINK=0; 6320 GNULIB_UNLINKAT=0; 6321 GNULIB_USLEEP=0; 6322 GNULIB_WRITE=0; 6323 HAVE_CHOWN=1; 6324 HAVE_DUP2=1; 6325 HAVE_DUP3=1; 6326 HAVE_EUIDACCESS=1; 6327 HAVE_FACCESSAT=1; 6328 HAVE_FCHDIR=1; 6329 HAVE_FCHOWNAT=1; 6330 HAVE_FDATASYNC=1; 6331 HAVE_FSYNC=1; 6332 HAVE_FTRUNCATE=1; 6333 HAVE_GETDTABLESIZE=1; 6334 HAVE_GETGROUPS=1; 6335 HAVE_GETHOSTNAME=1; 6336 HAVE_GETLOGIN=1; 6337 HAVE_GETPAGESIZE=1; 6338 HAVE_GROUP_MEMBER=1; 6339 HAVE_LCHOWN=1; 6340 HAVE_LINK=1; 6341 HAVE_LINKAT=1; 6342 HAVE_PIPE=1; 6343 HAVE_PIPE2=1; 6344 HAVE_PREAD=1; 6345 HAVE_PWRITE=1; 6346 HAVE_READLINK=1; 6347 HAVE_READLINKAT=1; 6348 HAVE_SETHOSTNAME=1; 6349 HAVE_SLEEP=1; 6350 HAVE_SYMLINK=1; 6351 HAVE_SYMLINKAT=1; 6352 HAVE_UNLINKAT=1; 6353 HAVE_USLEEP=1; 6354 HAVE_DECL_ENVIRON=1; 6355 HAVE_DECL_FCHDIR=1; 6356 HAVE_DECL_FDATASYNC=1; 6357 HAVE_DECL_GETDOMAINNAME=1; 6358 HAVE_DECL_GETLOGIN_R=1; 6359 HAVE_DECL_GETPAGESIZE=1; 6360 HAVE_DECL_GETUSERSHELL=1; 6361 HAVE_DECL_SETHOSTNAME=1; 6362 HAVE_DECL_TTYNAME_R=1; 6363 HAVE_OS_H=0; 6364 HAVE_SYS_PARAM_H=0; 6365 REPLACE_CHOWN=0; 6366 REPLACE_CLOSE=0; 6367 REPLACE_DUP=0; 6368 REPLACE_DUP2=0; 6369 REPLACE_FCHOWNAT=0; 6370 REPLACE_FTRUNCATE=0; 6371 REPLACE_GETCWD=0; 6372 REPLACE_GETDOMAINNAME=0; 6373 REPLACE_GETDTABLESIZE=0; 6374 REPLACE_GETLOGIN_R=0; 6375 REPLACE_GETGROUPS=0; 6376 REPLACE_GETPAGESIZE=0; 6377 REPLACE_ISATTY=0; 6378 REPLACE_LCHOWN=0; 6379 REPLACE_LINK=0; 6380 REPLACE_LINKAT=0; 6381 REPLACE_LSEEK=0; 6382 REPLACE_PREAD=0; 6383 REPLACE_PWRITE=0; 6384 REPLACE_READ=0; 6385 REPLACE_READLINK=0; 6386 REPLACE_READLINKAT=0; 6387 REPLACE_RMDIR=0; 6388 REPLACE_SLEEP=0; 6389 REPLACE_SYMLINK=0; 6390 REPLACE_SYMLINKAT=0; 6391 REPLACE_TTYNAME_R=0; 6392 REPLACE_UNLINK=0; 6393 REPLACE_UNLINKAT=0; 6394 REPLACE_USLEEP=0; 6395 REPLACE_WRITE=0; 6396 UNISTD_H_HAVE_WINSOCK2_H=0; 6397 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 if test $gl_cv_have_include_next = yes; then 6416 gl_cv_next_getopt_h='<'getopt.h'>' 6417 else 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 6419$as_echo_n "checking absolute name of <getopt.h>... " >&6; } 6420if ${gl_cv_next_getopt_h+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 6424 if test $ac_cv_header_getopt_h = yes; then 6425 6426 6427 6428 6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430/* end confdefs.h. */ 6431#include <getopt.h> 6432_ACEOF 6433 case "$host_os" in 6434 aix*) gl_absname_cpp="$ac_cpp -C" ;; 6435 *) gl_absname_cpp="$ac_cpp" ;; 6436 esac 6437 6438 case "$host_os" in 6439 mingw*) 6440 gl_dirsep_regex='[/\\]' 6441 ;; 6442 *) 6443 gl_dirsep_regex='\/' 6444 ;; 6445 esac 6446 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 6447 gl_header_literal_regex=`echo 'getopt.h' \ 6448 | sed -e "$gl_make_literal_regex_sed"` 6449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 6450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 6451 s|^/[^/]|//&| 6452 p 6453 q 6454 }' 6455 6456 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 6457 sed -n "$gl_absolute_header_sed"` 6458 6459 gl_header=$gl_cv_absolute_getopt_h 6460 gl_cv_next_getopt_h='"'$gl_header'"' 6461 else 6462 gl_cv_next_getopt_h='<'getopt.h'>' 6463 fi 6464 6465 6466fi 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 6468$as_echo "$gl_cv_next_getopt_h" >&6; } 6469 fi 6470 NEXT_GETOPT_H=$gl_cv_next_getopt_h 6471 6472 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 6473 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 6474 gl_next_as_first_directive='<'getopt.h'>' 6475 else 6476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 6477 gl_next_as_first_directive=$gl_cv_next_getopt_h 6478 fi 6479 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 6480 6481 6482 6483 6484 if test $ac_cv_header_getopt_h = yes; then 6485 HAVE_GETOPT_H=1 6486 else 6487 HAVE_GETOPT_H=0 6488 fi 6489 6490 6491 gl_replace_getopt= 6492 6493 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 6494 for ac_header in getopt.h 6495do : 6496 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 6497if test "x$ac_cv_header_getopt_h" = xyes; then : 6498 cat >>confdefs.h <<_ACEOF 6499#define HAVE_GETOPT_H 1 6500_ACEOF 6501 6502else 6503 gl_replace_getopt=yes 6504fi 6505 6506done 6507 6508 fi 6509 6510 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 6511 for ac_func in getopt_long_only 6512do : 6513 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 6514if test "x$ac_cv_func_getopt_long_only" = xyes; then : 6515 cat >>confdefs.h <<_ACEOF 6516#define HAVE_GETOPT_LONG_ONLY 1 6517_ACEOF 6518 6519else 6520 gl_replace_getopt=yes 6521fi 6522done 6523 6524 fi 6525 6526 if test -z "$gl_replace_getopt"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 6528$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 6529if ${gl_cv_func_getopt_posix+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 6533 if test $cross_compiling = no; then 6534 if test "$cross_compiling" = yes; then : 6535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6537as_fn_error $? "cannot run test program while cross compiling 6538See \`config.log' for more details" "$LINENO" 5; } 6539else 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542 6543#include <unistd.h> 6544#include <stdlib.h> 6545#include <string.h> 6546 6547int 6548main () 6549{ 6550 static char program[] = "program"; 6551 static char a[] = "-a"; 6552 static char foo[] = "foo"; 6553 static char bar[] = "bar"; 6554 char *argv[] = { program, a, foo, bar, NULL }; 6555 int c; 6556 6557 c = getopt (4, argv, "ab"); 6558 if (!(c == 'a')) 6559 return 1; 6560 c = getopt (4, argv, "ab"); 6561 if (!(c == -1)) 6562 return 2; 6563 if (!(optind == 2)) 6564 return 3; 6565 return 0; 6566} 6567 6568_ACEOF 6569if ac_fn_c_try_run "$LINENO"; then : 6570 gl_cv_func_getopt_posix=maybe 6571else 6572 gl_cv_func_getopt_posix=no 6573fi 6574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6575 conftest.$ac_objext conftest.beam conftest.$ac_ext 6576fi 6577 6578 if test $gl_cv_func_getopt_posix = maybe; then 6579 if test "$cross_compiling" = yes; then : 6580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6582as_fn_error $? "cannot run test program while cross compiling 6583See \`config.log' for more details" "$LINENO" 5; } 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587 6588#include <unistd.h> 6589#include <stdlib.h> 6590#include <string.h> 6591 6592int 6593main () 6594{ 6595 static char program[] = "program"; 6596 static char donald[] = "donald"; 6597 static char p[] = "-p"; 6598 static char billy[] = "billy"; 6599 static char duck[] = "duck"; 6600 static char a[] = "-a"; 6601 static char bar[] = "bar"; 6602 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 6603 int c; 6604 6605 c = getopt (7, argv, "+abp:q:"); 6606 if (!(c == -1)) 6607 return 4; 6608 if (!(strcmp (argv[0], "program") == 0)) 6609 return 5; 6610 if (!(strcmp (argv[1], "donald") == 0)) 6611 return 6; 6612 if (!(strcmp (argv[2], "-p") == 0)) 6613 return 7; 6614 if (!(strcmp (argv[3], "billy") == 0)) 6615 return 8; 6616 if (!(strcmp (argv[4], "duck") == 0)) 6617 return 9; 6618 if (!(strcmp (argv[5], "-a") == 0)) 6619 return 10; 6620 if (!(strcmp (argv[6], "bar") == 0)) 6621 return 11; 6622 if (!(optind == 1)) 6623 return 12; 6624 return 0; 6625} 6626 6627_ACEOF 6628if ac_fn_c_try_run "$LINENO"; then : 6629 gl_cv_func_getopt_posix=maybe 6630else 6631 gl_cv_func_getopt_posix=no 6632fi 6633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6634 conftest.$ac_objext conftest.beam conftest.$ac_ext 6635fi 6636 6637 fi 6638 if test $gl_cv_func_getopt_posix = maybe; then 6639 if test "$cross_compiling" = yes; then : 6640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6642as_fn_error $? "cannot run test program while cross compiling 6643See \`config.log' for more details" "$LINENO" 5; } 6644else 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647 6648#include <unistd.h> 6649#include <stdlib.h> 6650#include <string.h> 6651 6652int 6653main () 6654{ 6655 static char program[] = "program"; 6656 static char ab[] = "-ab"; 6657 char *argv[3] = { program, ab, NULL }; 6658 if (getopt (2, argv, "ab:") != 'a') 6659 return 13; 6660 if (getopt (2, argv, "ab:") != '?') 6661 return 14; 6662 if (optopt != 'b') 6663 return 15; 6664 if (optind != 2) 6665 return 16; 6666 return 0; 6667} 6668 6669_ACEOF 6670if ac_fn_c_try_run "$LINENO"; then : 6671 gl_cv_func_getopt_posix=yes 6672else 6673 gl_cv_func_getopt_posix=no 6674fi 6675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6676 conftest.$ac_objext conftest.beam conftest.$ac_ext 6677fi 6678 6679 fi 6680 else 6681 case "$host_os" in 6682 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 6683 *) gl_cv_func_getopt_posix="guessing yes";; 6684 esac 6685 fi 6686 6687fi 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 6689$as_echo "$gl_cv_func_getopt_posix" >&6; } 6690 case "$gl_cv_func_getopt_posix" in 6691 *no) gl_replace_getopt=yes ;; 6692 esac 6693 fi 6694 6695 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 6697$as_echo_n "checking for working GNU getopt function... " >&6; } 6698if ${gl_cv_func_getopt_gnu+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 6702 # optstring is necessary for programs like m4 that have POSIX-mandated 6703 # semantics for supporting options interspersed with files. 6704 # Also, since getopt_long is a GNU extension, we require optind=0. 6705 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 6706 # so take care to revert to the correct (non-)export state. 6707 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 6708 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 6709 xx) gl_had_POSIXLY_CORRECT=exported ;; 6710 x) gl_had_POSIXLY_CORRECT=yes ;; 6711 *) gl_had_POSIXLY_CORRECT= ;; 6712 esac 6713 POSIXLY_CORRECT=1 6714 export POSIXLY_CORRECT 6715 if test "$cross_compiling" = yes; then : 6716 gl_cv_func_getopt_gnu="guessing no" 6717 6718else 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721#include <getopt.h> 6722 #include <stddef.h> 6723 #include <string.h> 6724 6725#include <stdlib.h> 6726#if defined __MACH__ && defined __APPLE__ 6727/* Avoid a crash on Mac OS X. */ 6728#include <mach/mach.h> 6729#include <mach/mach_error.h> 6730#include <mach/thread_status.h> 6731#include <mach/exception.h> 6732#include <mach/task.h> 6733#include <pthread.h> 6734/* The exception port on which our thread listens. */ 6735static mach_port_t our_exception_port; 6736/* The main function of the thread listening for exceptions of type 6737 EXC_BAD_ACCESS. */ 6738static void * 6739mach_exception_thread (void *arg) 6740{ 6741 /* Buffer for a message to be received. */ 6742 struct { 6743 mach_msg_header_t head; 6744 mach_msg_body_t msgh_body; 6745 char data[1024]; 6746 } msg; 6747 mach_msg_return_t retval; 6748 /* Wait for a message on the exception port. */ 6749 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 6750 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 6751 if (retval != MACH_MSG_SUCCESS) 6752 abort (); 6753 exit (1); 6754} 6755static void 6756nocrash_init (void) 6757{ 6758 mach_port_t self = mach_task_self (); 6759 /* Allocate a port on which the thread shall listen for exceptions. */ 6760 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 6761 == KERN_SUCCESS) { 6762 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 6763 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 6764 MACH_MSG_TYPE_MAKE_SEND) 6765 == KERN_SUCCESS) { 6766 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 6767 for us. */ 6768 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 6769 /* Create the thread listening on the exception port. */ 6770 pthread_attr_t attr; 6771 pthread_t thread; 6772 if (pthread_attr_init (&attr) == 0 6773 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 6774 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 6775 pthread_attr_destroy (&attr); 6776 /* Replace the exception port info for these exceptions with our own. 6777 Note that we replace the exception port for the entire task, not only 6778 for a particular thread. This has the effect that when our exception 6779 port gets the message, the thread specific exception port has already 6780 been asked, and we don't need to bother about it. 6781 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 6782 task_set_exception_ports (self, mask, our_exception_port, 6783 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 6784 } 6785 } 6786 } 6787} 6788#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 6789/* Avoid a crash on native Windows. */ 6790#define WIN32_LEAN_AND_MEAN 6791#include <windows.h> 6792#include <winerror.h> 6793static LONG WINAPI 6794exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 6795{ 6796 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 6797 { 6798 case EXCEPTION_ACCESS_VIOLATION: 6799 case EXCEPTION_IN_PAGE_ERROR: 6800 case EXCEPTION_STACK_OVERFLOW: 6801 case EXCEPTION_GUARD_PAGE: 6802 case EXCEPTION_PRIV_INSTRUCTION: 6803 case EXCEPTION_ILLEGAL_INSTRUCTION: 6804 case EXCEPTION_DATATYPE_MISALIGNMENT: 6805 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 6806 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 6807 exit (1); 6808 } 6809 return EXCEPTION_CONTINUE_SEARCH; 6810} 6811static void 6812nocrash_init (void) 6813{ 6814 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 6815} 6816#else 6817/* Avoid a crash on POSIX systems. */ 6818#include <signal.h> 6819/* A POSIX signal handler. */ 6820static void 6821exception_handler (int sig) 6822{ 6823 exit (1); 6824} 6825static void 6826nocrash_init (void) 6827{ 6828#ifdef SIGSEGV 6829 signal (SIGSEGV, exception_handler); 6830#endif 6831#ifdef SIGBUS 6832 signal (SIGBUS, exception_handler); 6833#endif 6834} 6835#endif 6836 6837 6838int 6839main () 6840{ 6841 6842 int result = 0; 6843 6844 nocrash_init(); 6845 6846 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 6847 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 6848 OSF/1 5.1, Solaris 10. */ 6849 { 6850 static char conftest[] = "conftest"; 6851 static char plus[] = "-+"; 6852 char *argv[3] = { conftest, plus, NULL }; 6853 opterr = 0; 6854 if (getopt (2, argv, "+a") != '?') 6855 result |= 1; 6856 } 6857 /* This code succeeds on glibc 2.8, mingw, 6858 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 6859 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 6860 { 6861 static char program[] = "program"; 6862 static char p[] = "-p"; 6863 static char foo[] = "foo"; 6864 static char bar[] = "bar"; 6865 char *argv[] = { program, p, foo, bar, NULL }; 6866 6867 optind = 1; 6868 if (getopt (4, argv, "p::") != 'p') 6869 result |= 2; 6870 else if (optarg != NULL) 6871 result |= 4; 6872 else if (getopt (4, argv, "p::") != -1) 6873 result |= 6; 6874 else if (optind != 2) 6875 result |= 8; 6876 } 6877 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 6878 { 6879 static char program[] = "program"; 6880 static char foo[] = "foo"; 6881 static char p[] = "-p"; 6882 char *argv[] = { program, foo, p, NULL }; 6883 optind = 0; 6884 if (getopt (3, argv, "-p") != 1) 6885 result |= 16; 6886 else if (getopt (3, argv, "-p") != 'p') 6887 result |= 16; 6888 } 6889 /* This code fails on glibc 2.11. */ 6890 { 6891 static char program[] = "program"; 6892 static char b[] = "-b"; 6893 static char a[] = "-a"; 6894 char *argv[] = { program, b, a, NULL }; 6895 optind = opterr = 0; 6896 if (getopt (3, argv, "+:a:b") != 'b') 6897 result |= 32; 6898 else if (getopt (3, argv, "+:a:b") != ':') 6899 result |= 32; 6900 } 6901 /* This code dumps core on glibc 2.14. */ 6902 { 6903 static char program[] = "program"; 6904 static char w[] = "-W"; 6905 static char dummy[] = "dummy"; 6906 char *argv[] = { program, w, dummy, NULL }; 6907 optind = opterr = 1; 6908 if (getopt (3, argv, "W;") != 'W') 6909 result |= 64; 6910 } 6911 return result; 6912 6913 ; 6914 return 0; 6915} 6916_ACEOF 6917if ac_fn_c_try_run "$LINENO"; then : 6918 gl_cv_func_getopt_gnu=yes 6919else 6920 gl_cv_func_getopt_gnu=no 6921fi 6922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6923 conftest.$ac_objext conftest.beam conftest.$ac_ext 6924fi 6925 6926 case $gl_had_POSIXLY_CORRECT in 6927 exported) ;; 6928 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 6929 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 6930 esac 6931 6932fi 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 6934$as_echo "$gl_cv_func_getopt_gnu" >&6; } 6935 if test "$gl_cv_func_getopt_gnu" != yes; then 6936 gl_replace_getopt=yes 6937 else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 6939$as_echo_n "checking for working GNU getopt_long function... " >&6; } 6940if ${gl_cv_func_getopt_long_gnu+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test "$cross_compiling" = yes; then : 6944 case "$host_os" in 6945 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 6946 *) gl_cv_func_getopt_long_gnu="guessing yes";; 6947 esac 6948 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952#include <getopt.h> 6953 #include <stddef.h> 6954 #include <string.h> 6955 6956int 6957main () 6958{ 6959static const struct option long_options[] = 6960 { 6961 { "xtremely-",no_argument, NULL, 1003 }, 6962 { "xtra", no_argument, NULL, 1001 }, 6963 { "xtreme", no_argument, NULL, 1002 }, 6964 { "xtremely", no_argument, NULL, 1003 }, 6965 { NULL, 0, NULL, 0 } 6966 }; 6967 /* This code fails on OpenBSD 5.0. */ 6968 { 6969 static char program[] = "program"; 6970 static char xtremel[] = "--xtremel"; 6971 char *argv[] = { program, xtremel, NULL }; 6972 int option_index; 6973 optind = 1; opterr = 0; 6974 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 6975 return 1; 6976 } 6977 return 0; 6978 6979 ; 6980 return 0; 6981} 6982_ACEOF 6983if ac_fn_c_try_run "$LINENO"; then : 6984 gl_cv_func_getopt_long_gnu=yes 6985else 6986 gl_cv_func_getopt_long_gnu=no 6987fi 6988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6989 conftest.$ac_objext conftest.beam conftest.$ac_ext 6990fi 6991 6992 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 6995$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } 6996 case "$gl_cv_func_getopt_long_gnu" in 6997 *yes) ;; 6998 *) gl_replace_getopt=yes ;; 6999 esac 7000 fi 7001 fi 7002 7003 7004 7005 7006 7007 7008 REPLACE_GETOPT=0 7009 if test -n "$gl_replace_getopt"; then 7010 REPLACE_GETOPT=1 7011 fi 7012 7013 if test $REPLACE_GETOPT = 1; then 7014 7015 GETOPT_H=getopt.h 7016 7017$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 7018 7019 7020 7021 fi 7022 7023ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 7024if test "x$ac_cv_have_decl_getenv" = xyes; then : 7025 ac_have_decl=1 7026else 7027 ac_have_decl=0 7028fi 7029 7030cat >>confdefs.h <<_ACEOF 7031#define HAVE_DECL_GETENV $ac_have_decl 7032_ACEOF 7033 7034 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 7036$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 7037if ${am_cv_langinfo_codeset+:} false; then : 7038 $as_echo_n "(cached) " >&6 7039else 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042#include <langinfo.h> 7043int 7044main () 7045{ 7046char* cs = nl_langinfo(CODESET); return !cs; 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051if ac_fn_c_try_link "$LINENO"; then : 7052 am_cv_langinfo_codeset=yes 7053else 7054 am_cv_langinfo_codeset=no 7055fi 7056rm -f core conftest.err conftest.$ac_objext \ 7057 conftest$ac_exeext conftest.$ac_ext 7058 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 7061$as_echo "$am_cv_langinfo_codeset" >&6; } 7062 if test $am_cv_langinfo_codeset = yes; then 7063 7064$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 7065 7066 fi 7067 7068 7069 7070 7071 7072 7073 for ac_func in $ac_func_list 7074do : 7075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7077if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7078 cat >>confdefs.h <<_ACEOF 7079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7080_ACEOF 7081 7082fi 7083done 7084 7085 7086 7087 7088 7089 7090 7091 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 7093$as_echo_n "checking for working fcntl.h... " >&6; } 7094if ${gl_cv_header_working_fcntl_h+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test "$cross_compiling" = yes; then : 7098 gl_cv_header_working_fcntl_h=cross-compiling 7099else 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101/* end confdefs.h. */ 7102#include <sys/types.h> 7103 #include <sys/stat.h> 7104 #if HAVE_UNISTD_H 7105 # include <unistd.h> 7106 #else /* on Windows with MSVC */ 7107 # include <io.h> 7108 # include <stdlib.h> 7109 # defined sleep(n) _sleep ((n) * 1000) 7110 #endif 7111 #include <fcntl.h> 7112 #ifndef O_NOATIME 7113 #define O_NOATIME 0 7114 #endif 7115 #ifndef O_NOFOLLOW 7116 #define O_NOFOLLOW 0 7117 #endif 7118 static int const constants[] = 7119 { 7120 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 7121 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 7122 }; 7123 7124int 7125main () 7126{ 7127 7128 int result = !constants; 7129 #if HAVE_SYMLINK 7130 { 7131 static char const sym[] = "conftest.sym"; 7132 if (symlink ("/dev/null", sym) != 0) 7133 result |= 2; 7134 else 7135 { 7136 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 7137 if (fd >= 0) 7138 { 7139 close (fd); 7140 result |= 4; 7141 } 7142 } 7143 if (unlink (sym) != 0 || symlink (".", sym) != 0) 7144 result |= 2; 7145 else 7146 { 7147 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 7148 if (fd >= 0) 7149 { 7150 close (fd); 7151 result |= 4; 7152 } 7153 } 7154 unlink (sym); 7155 } 7156 #endif 7157 { 7158 static char const file[] = "confdefs.h"; 7159 int fd = open (file, O_RDONLY | O_NOATIME); 7160 if (fd < 0) 7161 result |= 8; 7162 else 7163 { 7164 struct stat st0; 7165 if (fstat (fd, &st0) != 0) 7166 result |= 16; 7167 else 7168 { 7169 char c; 7170 sleep (1); 7171 if (read (fd, &c, 1) != 1) 7172 result |= 24; 7173 else 7174 { 7175 if (close (fd) != 0) 7176 result |= 32; 7177 else 7178 { 7179 struct stat st1; 7180 if (stat (file, &st1) != 0) 7181 result |= 40; 7182 else 7183 if (st0.st_atime != st1.st_atime) 7184 result |= 64; 7185 } 7186 } 7187 } 7188 } 7189 } 7190 return result; 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195if ac_fn_c_try_run "$LINENO"; then : 7196 gl_cv_header_working_fcntl_h=yes 7197else 7198 case $? in #( 7199 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 7200 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 7201 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 7202 *) gl_cv_header_working_fcntl_h='no';; 7203 esac 7204fi 7205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7206 conftest.$ac_objext conftest.beam conftest.$ac_ext 7207fi 7208 7209fi 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 7211$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 7212 7213 case $gl_cv_header_working_fcntl_h in #( 7214 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 7215 *) ac_val=1;; 7216 esac 7217 7218cat >>confdefs.h <<_ACEOF 7219#define HAVE_WORKING_O_NOATIME $ac_val 7220_ACEOF 7221 7222 7223 case $gl_cv_header_working_fcntl_h in #( 7224 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 7225 *) ac_val=1;; 7226 esac 7227 7228cat >>confdefs.h <<_ACEOF 7229#define HAVE_WORKING_O_NOFOLLOW $ac_val 7230_ACEOF 7231 7232 7233ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 7234if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 7235 ac_have_decl=1 7236else 7237 ac_have_decl=0 7238fi 7239 7240cat >>confdefs.h <<_ACEOF 7241#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 7242_ACEOF 7243 7244 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 7246$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 7247if ${ac_cv_gnu_library_2_1+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252 7253#include <features.h> 7254#ifdef __GNU_LIBRARY__ 7255 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 7256 Lucky GNU user 7257 #endif 7258#endif 7259#ifdef __UCLIBC__ 7260 Lucky user 7261#endif 7262 7263_ACEOF 7264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7265 $EGREP "Lucky" >/dev/null 2>&1; then : 7266 ac_cv_gnu_library_2_1=yes 7267else 7268 ac_cv_gnu_library_2_1=no 7269fi 7270rm -f conftest* 7271 7272 7273 7274fi 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 7276$as_echo "$ac_cv_gnu_library_2_1" >&6; } 7277 7278 GLIBC21="$ac_cv_gnu_library_2_1" 7279 7280 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7282$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7283if ${ac_cv_path_SED+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7287 for ac_i in 1 2 3 4 5 6 7; do 7288 ac_script="$ac_script$as_nl$ac_script" 7289 done 7290 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7291 { ac_script=; unset ac_script;} 7292 if test -z "$SED"; then 7293 ac_path_SED_found=false 7294 # Loop through the user's path and test for each of PROGNAME-LIST 7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_prog in sed gsed; do 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7303 as_fn_executable_p "$ac_path_SED" || continue 7304# Check for GNU ac_path_SED and select it if it is found. 7305 # Check for GNU $ac_path_SED 7306case `"$ac_path_SED" --version 2>&1` in 7307*GNU*) 7308 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7309*) 7310 ac_count=0 7311 $as_echo_n 0123456789 >"conftest.in" 7312 while : 7313 do 7314 cat "conftest.in" "conftest.in" >"conftest.tmp" 7315 mv "conftest.tmp" "conftest.in" 7316 cp "conftest.in" "conftest.nl" 7317 $as_echo '' >> "conftest.nl" 7318 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7320 as_fn_arith $ac_count + 1 && ac_count=$as_val 7321 if test $ac_count -gt ${ac_path_SED_max-0}; then 7322 # Best one so far, save it but keep looking for a better one 7323 ac_cv_path_SED="$ac_path_SED" 7324 ac_path_SED_max=$ac_count 7325 fi 7326 # 10*(2^10) chars as input seems more than enough 7327 test $ac_count -gt 10 && break 7328 done 7329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7330esac 7331 7332 $ac_path_SED_found && break 3 7333 done 7334 done 7335 done 7336IFS=$as_save_IFS 7337 if test -z "$ac_cv_path_SED"; then 7338 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7339 fi 7340else 7341 ac_cv_path_SED=$SED 7342fi 7343 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7346$as_echo "$ac_cv_path_SED" >&6; } 7347 SED="$ac_cv_path_SED" 7348 rm -f conftest.sed 7349 7350 7351 GNULIB__EXIT=0; 7352 GNULIB_ATOLL=0; 7353 GNULIB_CALLOC_POSIX=0; 7354 GNULIB_CANONICALIZE_FILE_NAME=0; 7355 GNULIB_GETLOADAVG=0; 7356 GNULIB_GETSUBOPT=0; 7357 GNULIB_GRANTPT=0; 7358 GNULIB_MALLOC_POSIX=0; 7359 GNULIB_MBTOWC=0; 7360 GNULIB_MKDTEMP=0; 7361 GNULIB_MKOSTEMP=0; 7362 GNULIB_MKOSTEMPS=0; 7363 GNULIB_MKSTEMP=0; 7364 GNULIB_MKSTEMPS=0; 7365 GNULIB_POSIX_OPENPT=0; 7366 GNULIB_PTSNAME=0; 7367 GNULIB_PTSNAME_R=0; 7368 GNULIB_PUTENV=0; 7369 GNULIB_QSORT_R=0; 7370 GNULIB_RANDOM=0; 7371 GNULIB_RANDOM_R=0; 7372 GNULIB_REALLOC_POSIX=0; 7373 GNULIB_REALPATH=0; 7374 GNULIB_RPMATCH=0; 7375 GNULIB_SECURE_GETENV=0; 7376 GNULIB_SETENV=0; 7377 GNULIB_STRTOD=0; 7378 GNULIB_STRTOLL=0; 7379 GNULIB_STRTOULL=0; 7380 GNULIB_SYSTEM_POSIX=0; 7381 GNULIB_UNLOCKPT=0; 7382 GNULIB_UNSETENV=0; 7383 GNULIB_WCTOMB=0; 7384 HAVE__EXIT=1; 7385 HAVE_ATOLL=1; 7386 HAVE_CANONICALIZE_FILE_NAME=1; 7387 HAVE_DECL_GETLOADAVG=1; 7388 HAVE_GETSUBOPT=1; 7389 HAVE_GRANTPT=1; 7390 HAVE_MKDTEMP=1; 7391 HAVE_MKOSTEMP=1; 7392 HAVE_MKOSTEMPS=1; 7393 HAVE_MKSTEMP=1; 7394 HAVE_MKSTEMPS=1; 7395 HAVE_POSIX_OPENPT=1; 7396 HAVE_PTSNAME=1; 7397 HAVE_PTSNAME_R=1; 7398 HAVE_RANDOM=1; 7399 HAVE_RANDOM_H=1; 7400 HAVE_RANDOM_R=1; 7401 HAVE_REALPATH=1; 7402 HAVE_RPMATCH=1; 7403 HAVE_SECURE_GETENV=1; 7404 HAVE_SETENV=1; 7405 HAVE_DECL_SETENV=1; 7406 HAVE_STRTOD=1; 7407 HAVE_STRTOLL=1; 7408 HAVE_STRTOULL=1; 7409 HAVE_STRUCT_RANDOM_DATA=1; 7410 HAVE_SYS_LOADAVG_H=0; 7411 HAVE_UNLOCKPT=1; 7412 HAVE_DECL_UNSETENV=1; 7413 REPLACE_CALLOC=0; 7414 REPLACE_CANONICALIZE_FILE_NAME=0; 7415 REPLACE_MALLOC=0; 7416 REPLACE_MBTOWC=0; 7417 REPLACE_MKSTEMP=0; 7418 REPLACE_PTSNAME=0; 7419 REPLACE_PTSNAME_R=0; 7420 REPLACE_PUTENV=0; 7421 REPLACE_QSORT_R=0; 7422 REPLACE_RANDOM_R=0; 7423 REPLACE_REALLOC=0; 7424 REPLACE_REALPATH=0; 7425 REPLACE_SETENV=0; 7426 REPLACE_STRTOD=0; 7427 REPLACE_UNSETENV=0; 7428 REPLACE_WCTOMB=0; 7429 7430 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 7432$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 7433if ${gl_cv_func_malloc_posix+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439 7440int 7441main () 7442{ 7443#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 7444 choke me 7445 #endif 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO"; then : 7452 gl_cv_func_malloc_posix=yes 7453else 7454 gl_cv_func_malloc_posix=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7457 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 7460$as_echo "$gl_cv_func_malloc_posix" >&6; } 7461 7462 7463 GNULIB_BTOWC=0; 7464 GNULIB_WCTOB=0; 7465 GNULIB_MBSINIT=0; 7466 GNULIB_MBRTOWC=0; 7467 GNULIB_MBRLEN=0; 7468 GNULIB_MBSRTOWCS=0; 7469 GNULIB_MBSNRTOWCS=0; 7470 GNULIB_WCRTOMB=0; 7471 GNULIB_WCSRTOMBS=0; 7472 GNULIB_WCSNRTOMBS=0; 7473 GNULIB_WCWIDTH=0; 7474 GNULIB_WMEMCHR=0; 7475 GNULIB_WMEMCMP=0; 7476 GNULIB_WMEMCPY=0; 7477 GNULIB_WMEMMOVE=0; 7478 GNULIB_WMEMSET=0; 7479 GNULIB_WCSLEN=0; 7480 GNULIB_WCSNLEN=0; 7481 GNULIB_WCSCPY=0; 7482 GNULIB_WCPCPY=0; 7483 GNULIB_WCSNCPY=0; 7484 GNULIB_WCPNCPY=0; 7485 GNULIB_WCSCAT=0; 7486 GNULIB_WCSNCAT=0; 7487 GNULIB_WCSCMP=0; 7488 GNULIB_WCSNCMP=0; 7489 GNULIB_WCSCASECMP=0; 7490 GNULIB_WCSNCASECMP=0; 7491 GNULIB_WCSCOLL=0; 7492 GNULIB_WCSXFRM=0; 7493 GNULIB_WCSDUP=0; 7494 GNULIB_WCSCHR=0; 7495 GNULIB_WCSRCHR=0; 7496 GNULIB_WCSCSPN=0; 7497 GNULIB_WCSSPN=0; 7498 GNULIB_WCSPBRK=0; 7499 GNULIB_WCSSTR=0; 7500 GNULIB_WCSTOK=0; 7501 GNULIB_WCSWIDTH=0; 7502 HAVE_BTOWC=1; 7503 HAVE_MBSINIT=1; 7504 HAVE_MBRTOWC=1; 7505 HAVE_MBRLEN=1; 7506 HAVE_MBSRTOWCS=1; 7507 HAVE_MBSNRTOWCS=1; 7508 HAVE_WCRTOMB=1; 7509 HAVE_WCSRTOMBS=1; 7510 HAVE_WCSNRTOMBS=1; 7511 HAVE_WMEMCHR=1; 7512 HAVE_WMEMCMP=1; 7513 HAVE_WMEMCPY=1; 7514 HAVE_WMEMMOVE=1; 7515 HAVE_WMEMSET=1; 7516 HAVE_WCSLEN=1; 7517 HAVE_WCSNLEN=1; 7518 HAVE_WCSCPY=1; 7519 HAVE_WCPCPY=1; 7520 HAVE_WCSNCPY=1; 7521 HAVE_WCPNCPY=1; 7522 HAVE_WCSCAT=1; 7523 HAVE_WCSNCAT=1; 7524 HAVE_WCSCMP=1; 7525 HAVE_WCSNCMP=1; 7526 HAVE_WCSCASECMP=1; 7527 HAVE_WCSNCASECMP=1; 7528 HAVE_WCSCOLL=1; 7529 HAVE_WCSXFRM=1; 7530 HAVE_WCSDUP=1; 7531 HAVE_WCSCHR=1; 7532 HAVE_WCSRCHR=1; 7533 HAVE_WCSCSPN=1; 7534 HAVE_WCSSPN=1; 7535 HAVE_WCSPBRK=1; 7536 HAVE_WCSSTR=1; 7537 HAVE_WCSTOK=1; 7538 HAVE_WCSWIDTH=1; 7539 HAVE_DECL_WCTOB=1; 7540 HAVE_DECL_WCWIDTH=1; 7541 REPLACE_MBSTATE_T=0; 7542 REPLACE_BTOWC=0; 7543 REPLACE_WCTOB=0; 7544 REPLACE_MBSINIT=0; 7545 REPLACE_MBRTOWC=0; 7546 REPLACE_MBRLEN=0; 7547 REPLACE_MBSRTOWCS=0; 7548 REPLACE_MBSNRTOWCS=0; 7549 REPLACE_WCRTOMB=0; 7550 REPLACE_WCSRTOMBS=0; 7551 REPLACE_WCSNRTOMBS=0; 7552 REPLACE_WCWIDTH=0; 7553 REPLACE_WCSWIDTH=0; 7554 7555 7556 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 7558$as_echo_n "checking for mbstate_t... " >&6; } 7559if ${ac_cv_type_mbstate_t+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564$ac_includes_default 7565/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 7566 <wchar.h>. 7567 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 7568 included before <wchar.h>. */ 7569#include <stddef.h> 7570#include <stdio.h> 7571#include <time.h> 7572#include <wchar.h> 7573int 7574main () 7575{ 7576mbstate_t x; return sizeof x; 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO"; then : 7582 ac_cv_type_mbstate_t=yes 7583else 7584 ac_cv_type_mbstate_t=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 7589$as_echo "$ac_cv_type_mbstate_t" >&6; } 7590 if test $ac_cv_type_mbstate_t = yes; then 7591 7592$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 7593 7594 else 7595 7596$as_echo "#define mbstate_t int" >>confdefs.h 7597 7598 fi 7599 7600 7601 7602 7603 7604 7605 7606 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 7608$as_echo_n "checking for a traditional japanese locale... " >&6; } 7609if ${gt_cv_locale_ja+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615 7616#include <locale.h> 7617#include <time.h> 7618#if HAVE_LANGINFO_CODESET 7619# include <langinfo.h> 7620#endif 7621#include <stdlib.h> 7622#include <string.h> 7623struct tm t; 7624char buf[16]; 7625int main () 7626{ 7627 const char *p; 7628 /* Check whether the given locale name is recognized by the system. */ 7629#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 7630 /* On native Windows, setlocale(category, "") looks at the system settings, 7631 not at the environment variables. Also, when an encoding suffix such 7632 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 7633 category of the locale to "C". */ 7634 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 7635 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 7636 return 1; 7637#else 7638 if (setlocale (LC_ALL, "") == NULL) return 1; 7639#endif 7640 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 7641 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 7642 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 7643 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 7644 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 7645 some unit tests fail. 7646 On MirBSD 10, when an unsupported locale is specified, setlocale() 7647 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 7648#if HAVE_LANGINFO_CODESET 7649 { 7650 const char *cs = nl_langinfo (CODESET); 7651 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 7652 || strcmp (cs, "UTF-8") == 0) 7653 return 1; 7654 } 7655#endif 7656#ifdef __CYGWIN__ 7657 /* On Cygwin, avoid locale names without encoding suffix, because the 7658 locale_charset() function relies on the encoding suffix. Note that 7659 LC_ALL is set on the command line. */ 7660 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 7661#endif 7662 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 7663 on Cygwin 1.5.x. */ 7664 if (MB_CUR_MAX == 1) 7665 return 1; 7666 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 7667 This excludes the UTF-8 encoding (except on MirBSD). */ 7668 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 7669 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 7670 for (p = buf; *p != '\0'; p++) 7671 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 7672 return 1; 7673 return 0; 7674} 7675 7676_ACEOF 7677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7678 (eval $ac_link) 2>&5 7679 ac_status=$? 7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7681 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7682 case "$host_os" in 7683 # Handle native Windows specially, because there setlocale() interprets 7684 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 7685 # "fr" or "fra" as "French" or "French_France.1252", 7686 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 7687 # "ja" as "Japanese" or "Japanese_Japan.932", 7688 # and similar. 7689 mingw*) 7690 # Note that on native Windows, the Japanese locale is 7691 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 7692 # cannot use it here. 7693 gt_cv_locale_ja=none 7694 ;; 7695 *) 7696 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 7697 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 7698 # configure script would override the LC_ALL setting. Likewise for 7699 # LC_CTYPE, which is also set at the beginning of the configure script. 7700 # Test for the AIX locale name. 7701 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7702 gt_cv_locale_ja=ja_JP 7703 else 7704 # Test for the locale name with explicit encoding suffix. 7705 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7706 gt_cv_locale_ja=ja_JP.EUC-JP 7707 else 7708 # Test for the HP-UX, OSF/1, NetBSD locale name. 7709 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7710 gt_cv_locale_ja=ja_JP.eucJP 7711 else 7712 # Test for the IRIX, FreeBSD locale name. 7713 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7714 gt_cv_locale_ja=ja_JP.EUC 7715 else 7716 # Test for the Solaris 7 locale name. 7717 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7718 gt_cv_locale_ja=ja 7719 else 7720 # Special test for NetBSD 1.6. 7721 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 7722 gt_cv_locale_ja=ja_JP.eucJP 7723 else 7724 # None found. 7725 gt_cv_locale_ja=none 7726 fi 7727 fi 7728 fi 7729 fi 7730 fi 7731 fi 7732 ;; 7733 esac 7734 fi 7735 rm -fr conftest* 7736 7737fi 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 7739$as_echo "$gt_cv_locale_ja" >&6; } 7740 LOCALE_JA=$gt_cv_locale_ja 7741 7742 7743 7744 7745 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 7747$as_echo_n "checking for a transitional chinese locale... " >&6; } 7748if ${gt_cv_locale_zh_CN+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754 7755#include <locale.h> 7756#include <stdlib.h> 7757#include <time.h> 7758#if HAVE_LANGINFO_CODESET 7759# include <langinfo.h> 7760#endif 7761#include <stdlib.h> 7762#include <string.h> 7763struct tm t; 7764char buf[16]; 7765int main () 7766{ 7767 const char *p; 7768 /* Check whether the given locale name is recognized by the system. */ 7769#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 7770 /* On native Windows, setlocale(category, "") looks at the system settings, 7771 not at the environment variables. Also, when an encoding suffix such 7772 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 7773 category of the locale to "C". */ 7774 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 7775 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 7776 return 1; 7777#else 7778 if (setlocale (LC_ALL, "") == NULL) return 1; 7779#endif 7780 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 7781 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 7782 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 7783 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 7784 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 7785 some unit tests fail. 7786 On MirBSD 10, when an unsupported locale is specified, setlocale() 7787 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 7788#if HAVE_LANGINFO_CODESET 7789 { 7790 const char *cs = nl_langinfo (CODESET); 7791 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 7792 || strcmp (cs, "UTF-8") == 0) 7793 return 1; 7794 } 7795#endif 7796#ifdef __CYGWIN__ 7797 /* On Cygwin, avoid locale names without encoding suffix, because the 7798 locale_charset() function relies on the encoding suffix. Note that 7799 LC_ALL is set on the command line. */ 7800 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 7801#endif 7802 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 7803 This excludes the UTF-8 encoding (except on MirBSD). */ 7804 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 7805 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 7806 for (p = buf; *p != '\0'; p++) 7807 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 7808 return 1; 7809 /* Check whether a typical GB18030 multibyte sequence is recognized as a 7810 single wide character. This excludes the GB2312 and GBK encodings. */ 7811 if (mblen ("\203\062\332\066", 5) != 4) 7812 return 1; 7813 return 0; 7814} 7815 7816_ACEOF 7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7818 (eval $ac_link) 2>&5 7819 ac_status=$? 7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7821 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7822 case "$host_os" in 7823 # Handle native Windows specially, because there setlocale() interprets 7824 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 7825 # "fr" or "fra" as "French" or "French_France.1252", 7826 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 7827 # "ja" as "Japanese" or "Japanese_Japan.932", 7828 # and similar. 7829 mingw*) 7830 # Test for the hypothetical native Windows locale name. 7831 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7832 gt_cv_locale_zh_CN=Chinese_China.54936 7833 else 7834 # None found. 7835 gt_cv_locale_zh_CN=none 7836 fi 7837 ;; 7838 solaris2.8) 7839 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 7840 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 7841 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 7842 gt_cv_locale_zh_CN=none 7843 ;; 7844 *) 7845 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 7846 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 7847 # configure script would override the LC_ALL setting. Likewise for 7848 # LC_CTYPE, which is also set at the beginning of the configure script. 7849 # Test for the locale name without encoding suffix. 7850 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7851 gt_cv_locale_zh_CN=zh_CN 7852 else 7853 # Test for the locale name with explicit encoding suffix. 7854 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7855 gt_cv_locale_zh_CN=zh_CN.GB18030 7856 else 7857 # None found. 7858 gt_cv_locale_zh_CN=none 7859 fi 7860 fi 7861 ;; 7862 esac 7863 else 7864 # If there was a link error, due to mblen(), the system is so old that 7865 # it certainly doesn't have a chinese locale. 7866 gt_cv_locale_zh_CN=none 7867 fi 7868 rm -fr conftest* 7869 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 7872$as_echo "$gt_cv_locale_zh_CN" >&6; } 7873 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 7874 7875 7876 7877 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 7879$as_echo_n "checking for a french Unicode locale... " >&6; } 7880if ${gt_cv_locale_fr_utf8+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886 7887#include <locale.h> 7888#include <time.h> 7889#if HAVE_LANGINFO_CODESET 7890# include <langinfo.h> 7891#endif 7892#include <stdlib.h> 7893#include <string.h> 7894struct tm t; 7895char buf[16]; 7896int main () { 7897 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 7898 imitates locale dependent behaviour by looking at the environment 7899 variables, and all locales use the UTF-8 encoding. */ 7900#if !(defined __BEOS__ || defined __HAIKU__) 7901 /* Check whether the given locale name is recognized by the system. */ 7902# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 7903 /* On native Windows, setlocale(category, "") looks at the system settings, 7904 not at the environment variables. Also, when an encoding suffix such 7905 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 7906 category of the locale to "C". */ 7907 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 7908 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 7909 return 1; 7910# else 7911 if (setlocale (LC_ALL, "") == NULL) return 1; 7912# endif 7913 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 7914 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 7915 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 7916 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 7917 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 7918 some unit tests fail. */ 7919# if HAVE_LANGINFO_CODESET 7920 { 7921 const char *cs = nl_langinfo (CODESET); 7922 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 7923 return 1; 7924 } 7925# endif 7926# ifdef __CYGWIN__ 7927 /* On Cygwin, avoid locale names without encoding suffix, because the 7928 locale_charset() function relies on the encoding suffix. Note that 7929 LC_ALL is set on the command line. */ 7930 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 7931# endif 7932 /* Check whether in the abbreviation of the second month, the second 7933 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 7934 two bytes long, with UTF-8 encoding. */ 7935 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 7936 if (strftime (buf, sizeof (buf), "%b", &t) < 4 7937 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 7938 return 1; 7939#endif 7940#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 7941 /* Check whether the decimal separator is a comma. 7942 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 7943 are nl_langinfo(RADIXCHAR) are both ".". */ 7944 if (localeconv () ->decimal_point[0] != ',') return 1; 7945#endif 7946 return 0; 7947} 7948 7949_ACEOF 7950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7951 (eval $ac_link) 2>&5 7952 ac_status=$? 7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7954 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7955 case "$host_os" in 7956 # Handle native Windows specially, because there setlocale() interprets 7957 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 7958 # "fr" or "fra" as "French" or "French_France.1252", 7959 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 7960 # "ja" as "Japanese" or "Japanese_Japan.932", 7961 # and similar. 7962 mingw*) 7963 # Test for the hypothetical native Windows locale name. 7964 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7965 gt_cv_locale_fr_utf8=French_France.65001 7966 else 7967 # None found. 7968 gt_cv_locale_fr_utf8=none 7969 fi 7970 ;; 7971 *) 7972 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 7973 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 7974 # configure script would override the LC_ALL setting. Likewise for 7975 # LC_CTYPE, which is also set at the beginning of the configure script. 7976 # Test for the usual locale name. 7977 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7978 gt_cv_locale_fr_utf8=fr_FR 7979 else 7980 # Test for the locale name with explicit encoding suffix. 7981 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7982 gt_cv_locale_fr_utf8=fr_FR.UTF-8 7983 else 7984 # Test for the Solaris 7 locale name. 7985 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7986 gt_cv_locale_fr_utf8=fr.UTF-8 7987 else 7988 # None found. 7989 gt_cv_locale_fr_utf8=none 7990 fi 7991 fi 7992 fi 7993 ;; 7994 esac 7995 fi 7996 rm -fr conftest* 7997 7998fi 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 8000$as_echo "$gt_cv_locale_fr_utf8" >&6; } 8001 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 8002 8003 8004 8005 8006 8007 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 8010$as_echo_n "checking for a traditional french locale... " >&6; } 8011if ${gt_cv_locale_fr+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017 8018#include <locale.h> 8019#include <time.h> 8020#if HAVE_LANGINFO_CODESET 8021# include <langinfo.h> 8022#endif 8023#include <stdlib.h> 8024#include <string.h> 8025struct tm t; 8026char buf[16]; 8027int main () { 8028 /* Check whether the given locale name is recognized by the system. */ 8029#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 8030 /* On native Windows, setlocale(category, "") looks at the system settings, 8031 not at the environment variables. Also, when an encoding suffix such 8032 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 8033 category of the locale to "C". */ 8034 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 8035 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 8036 return 1; 8037#else 8038 if (setlocale (LC_ALL, "") == NULL) return 1; 8039#endif 8040 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 8041 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 8042 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 8043 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 8044 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 8045 some unit tests fail. 8046 On MirBSD 10, when an unsupported locale is specified, setlocale() 8047 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 8048#if HAVE_LANGINFO_CODESET 8049 { 8050 const char *cs = nl_langinfo (CODESET); 8051 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 8052 || strcmp (cs, "UTF-8") == 0) 8053 return 1; 8054 } 8055#endif 8056#ifdef __CYGWIN__ 8057 /* On Cygwin, avoid locale names without encoding suffix, because the 8058 locale_charset() function relies on the encoding suffix. Note that 8059 LC_ALL is set on the command line. */ 8060 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 8061#endif 8062 /* Check whether in the abbreviation of the second month, the second 8063 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 8064 one byte long. This excludes the UTF-8 encoding. */ 8065 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 8066 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 8067#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 8068 /* Check whether the decimal separator is a comma. 8069 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 8070 are nl_langinfo(RADIXCHAR) are both ".". */ 8071 if (localeconv () ->decimal_point[0] != ',') return 1; 8072#endif 8073 return 0; 8074} 8075 8076_ACEOF 8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8078 (eval $ac_link) 2>&5 8079 ac_status=$? 8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8081 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8082 case "$host_os" in 8083 # Handle native Windows specially, because there setlocale() interprets 8084 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 8085 # "fr" or "fra" as "French" or "French_France.1252", 8086 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 8087 # "ja" as "Japanese" or "Japanese_Japan.932", 8088 # and similar. 8089 mingw*) 8090 # Test for the native Windows locale name. 8091 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8092 gt_cv_locale_fr=French_France.1252 8093 else 8094 # None found. 8095 gt_cv_locale_fr=none 8096 fi 8097 ;; 8098 *) 8099 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 8100 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 8101 # configure script would override the LC_ALL setting. Likewise for 8102 # LC_CTYPE, which is also set at the beginning of the configure script. 8103 # Test for the usual locale name. 8104 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8105 gt_cv_locale_fr=fr_FR 8106 else 8107 # Test for the locale name with explicit encoding suffix. 8108 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8109 gt_cv_locale_fr=fr_FR.ISO-8859-1 8110 else 8111 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 8112 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8113 gt_cv_locale_fr=fr_FR.ISO8859-1 8114 else 8115 # Test for the HP-UX locale name. 8116 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8117 gt_cv_locale_fr=fr_FR.iso88591 8118 else 8119 # Test for the Solaris 7 locale name. 8120 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8121 gt_cv_locale_fr=fr 8122 else 8123 # None found. 8124 gt_cv_locale_fr=none 8125 fi 8126 fi 8127 fi 8128 fi 8129 fi 8130 ;; 8131 esac 8132 fi 8133 rm -fr conftest* 8134 8135fi 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 8137$as_echo "$gt_cv_locale_fr" >&6; } 8138 LOCALE_FR=$gt_cv_locale_fr 8139 8140 8141 8142 8143 8144 8145 8146 GNULIB_FFSL=0; 8147 GNULIB_FFSLL=0; 8148 GNULIB_MEMCHR=0; 8149 GNULIB_MEMMEM=0; 8150 GNULIB_MEMPCPY=0; 8151 GNULIB_MEMRCHR=0; 8152 GNULIB_RAWMEMCHR=0; 8153 GNULIB_STPCPY=0; 8154 GNULIB_STPNCPY=0; 8155 GNULIB_STRCHRNUL=0; 8156 GNULIB_STRDUP=0; 8157 GNULIB_STRNCAT=0; 8158 GNULIB_STRNDUP=0; 8159 GNULIB_STRNLEN=0; 8160 GNULIB_STRPBRK=0; 8161 GNULIB_STRSEP=0; 8162 GNULIB_STRSTR=0; 8163 GNULIB_STRCASESTR=0; 8164 GNULIB_STRTOK_R=0; 8165 GNULIB_MBSLEN=0; 8166 GNULIB_MBSNLEN=0; 8167 GNULIB_MBSCHR=0; 8168 GNULIB_MBSRCHR=0; 8169 GNULIB_MBSSTR=0; 8170 GNULIB_MBSCASECMP=0; 8171 GNULIB_MBSNCASECMP=0; 8172 GNULIB_MBSPCASECMP=0; 8173 GNULIB_MBSCASESTR=0; 8174 GNULIB_MBSCSPN=0; 8175 GNULIB_MBSPBRK=0; 8176 GNULIB_MBSSPN=0; 8177 GNULIB_MBSSEP=0; 8178 GNULIB_MBSTOK_R=0; 8179 GNULIB_STRERROR=0; 8180 GNULIB_STRERROR_R=0; 8181 GNULIB_STRSIGNAL=0; 8182 GNULIB_STRVERSCMP=0; 8183 HAVE_MBSLEN=0; 8184 HAVE_FFSL=1; 8185 HAVE_FFSLL=1; 8186 HAVE_MEMCHR=1; 8187 HAVE_DECL_MEMMEM=1; 8188 HAVE_MEMPCPY=1; 8189 HAVE_DECL_MEMRCHR=1; 8190 HAVE_RAWMEMCHR=1; 8191 HAVE_STPCPY=1; 8192 HAVE_STPNCPY=1; 8193 HAVE_STRCHRNUL=1; 8194 HAVE_DECL_STRDUP=1; 8195 HAVE_DECL_STRNDUP=1; 8196 HAVE_DECL_STRNLEN=1; 8197 HAVE_STRPBRK=1; 8198 HAVE_STRSEP=1; 8199 HAVE_STRCASESTR=1; 8200 HAVE_DECL_STRTOK_R=1; 8201 HAVE_DECL_STRERROR_R=1; 8202 HAVE_DECL_STRSIGNAL=1; 8203 HAVE_STRVERSCMP=1; 8204 REPLACE_MEMCHR=0; 8205 REPLACE_MEMMEM=0; 8206 REPLACE_STPNCPY=0; 8207 REPLACE_STRDUP=0; 8208 REPLACE_STRSTR=0; 8209 REPLACE_STRCASESTR=0; 8210 REPLACE_STRCHRNUL=0; 8211 REPLACE_STRERROR=0; 8212 REPLACE_STRERROR_R=0; 8213 REPLACE_STRNCAT=0; 8214 REPLACE_STRNDUP=0; 8215 REPLACE_STRNLEN=0; 8216 REPLACE_STRSIGNAL=0; 8217 REPLACE_STRTOK_R=0; 8218 UNDEFINE_STRTOK_R=0; 8219 8220 8221 8222 8223 8224 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 8225 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 8226 # irrelevant for anonymous mappings. 8227 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 8228if test "x$ac_cv_func_mmap" = xyes; then : 8229 gl_have_mmap=yes 8230else 8231 gl_have_mmap=no 8232fi 8233 8234 8235 # Try to allow MAP_ANONYMOUS. 8236 gl_have_mmap_anonymous=no 8237 if test $gl_have_mmap = yes; then 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 8239$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242 8243#include <sys/mman.h> 8244#ifdef MAP_ANONYMOUS 8245 I cannot identify this map 8246#endif 8247 8248_ACEOF 8249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8250 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : 8251 gl_have_mmap_anonymous=yes 8252fi 8253rm -f conftest* 8254 8255 if test $gl_have_mmap_anonymous != yes; then 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258 8259#include <sys/mman.h> 8260#ifdef MAP_ANON 8261 I cannot identify this map 8262#endif 8263 8264_ACEOF 8265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8266 $EGREP "I cannot identify this map" >/dev/null 2>&1; then : 8267 8268$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 8269 8270 gl_have_mmap_anonymous=yes 8271fi 8272rm -f conftest* 8273 8274 fi 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 8276$as_echo "$gl_have_mmap_anonymous" >&6; } 8277 if test $gl_have_mmap_anonymous = yes; then 8278 8279$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 8280 8281 fi 8282 fi 8283 8284 8285 8286 8287 8288 8289 if test $HAVE_MEMCHR = 1; then 8290 # Detect platform-specific bugs in some versions of glibc: 8291 # memchr should not dereference anything with length 0 8292 # http://bugzilla.redhat.com/499689 8293 # memchr should not dereference overestimated length after a match 8294 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 8295 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 8296 # Assume that memchr works on platforms that lack mprotect. 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 8298$as_echo_n "checking whether memchr works... " >&6; } 8299if ${gl_cv_func_memchr_works+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 if test "$cross_compiling" = yes; then : 8303 gl_cv_func_memchr_works="guessing no" 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307 8308#include <string.h> 8309#if HAVE_SYS_MMAN_H 8310# include <fcntl.h> 8311# include <unistd.h> 8312# include <sys/types.h> 8313# include <sys/mman.h> 8314# ifndef MAP_FILE 8315# define MAP_FILE 0 8316# endif 8317#endif 8318 8319int 8320main () 8321{ 8322 8323 int result = 0; 8324 char *fence = NULL; 8325#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 8326# if HAVE_MAP_ANONYMOUS 8327 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 8328 const int fd = -1; 8329# else /* !HAVE_MAP_ANONYMOUS */ 8330 const int flags = MAP_FILE | MAP_PRIVATE; 8331 int fd = open ("/dev/zero", O_RDONLY, 0666); 8332 if (fd >= 0) 8333# endif 8334 { 8335 int pagesize = getpagesize (); 8336 char *two_pages = 8337 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 8338 flags, fd, 0); 8339 if (two_pages != (char *)(-1) 8340 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 8341 fence = two_pages + pagesize; 8342 } 8343#endif 8344 if (fence) 8345 { 8346 if (memchr (fence, 0, 0)) 8347 result |= 1; 8348 strcpy (fence - 9, "12345678"); 8349 if (memchr (fence - 9, 0, 79) != fence - 1) 8350 result |= 2; 8351 if (memchr (fence - 1, 0, 3) != fence - 1) 8352 result |= 4; 8353 } 8354 return result; 8355 8356 ; 8357 return 0; 8358} 8359_ACEOF 8360if ac_fn_c_try_run "$LINENO"; then : 8361 gl_cv_func_memchr_works=yes 8362else 8363 gl_cv_func_memchr_works=no 8364fi 8365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8366 conftest.$ac_objext conftest.beam conftest.$ac_ext 8367fi 8368 8369fi 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 8371$as_echo "$gl_cv_func_memchr_works" >&6; } 8372 if test "$gl_cv_func_memchr_works" != yes; then 8373 REPLACE_MEMCHR=1 8374 fi 8375 fi 8376 8377 8378 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8380$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8381if ${ac_cv_header_stdbool_h+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386 8387 #include <stdbool.h> 8388 #ifndef bool 8389 "error: bool is not defined" 8390 #endif 8391 #ifndef false 8392 "error: false is not defined" 8393 #endif 8394 #if false 8395 "error: false is not 0" 8396 #endif 8397 #ifndef true 8398 "error: true is not defined" 8399 #endif 8400 #if true != 1 8401 "error: true is not 1" 8402 #endif 8403 #ifndef __bool_true_false_are_defined 8404 "error: __bool_true_false_are_defined is not defined" 8405 #endif 8406 8407 struct s { _Bool s: 1; _Bool t; } s; 8408 8409 char a[true == 1 ? 1 : -1]; 8410 char b[false == 0 ? 1 : -1]; 8411 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8412 char d[(bool) 0.5 == true ? 1 : -1]; 8413 /* See body of main program for 'e'. */ 8414 char f[(_Bool) 0.0 == false ? 1 : -1]; 8415 char g[true]; 8416 char h[sizeof (_Bool)]; 8417 char i[sizeof s.t]; 8418 enum { j = false, k = true, l = false * true, m = true * 256 }; 8419 /* The following fails for 8420 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8421 _Bool n[m]; 8422 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8423 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8424 /* Catch a bug in an HP-UX C compiler. See 8425 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8426 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8427 */ 8428 _Bool q = true; 8429 _Bool *pq = &q; 8430 8431int 8432main () 8433{ 8434 8435 bool e = &s; 8436 *pq |= q; 8437 *pq |= ! q; 8438 /* Refer to every declared value, to avoid compiler optimizations. */ 8439 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8440 + !m + !n + !o + !p + !q + !pq); 8441 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_compile "$LINENO"; then : 8447 ac_cv_header_stdbool_h=yes 8448else 8449 ac_cv_header_stdbool_h=no 8450fi 8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8452fi 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8454$as_echo "$ac_cv_header_stdbool_h" >&6; } 8455 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8456if test "x$ac_cv_type__Bool" = xyes; then : 8457 8458cat >>confdefs.h <<_ACEOF 8459#define HAVE__BOOL 1 8460_ACEOF 8461 8462 8463fi 8464 8465 8466 8467 REPLACE_NULL=0; 8468 HAVE_WCHAR_T=1; 8469 8470 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 8472$as_echo_n "checking for wchar_t... " >&6; } 8473if ${gt_cv_c_wchar_t+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478#include <stddef.h> 8479 wchar_t foo = (wchar_t)'\0'; 8480int 8481main () 8482{ 8483 8484 ; 8485 return 0; 8486} 8487_ACEOF 8488if ac_fn_c_try_compile "$LINENO"; then : 8489 gt_cv_c_wchar_t=yes 8490else 8491 gt_cv_c_wchar_t=no 8492fi 8493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8494fi 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 8496$as_echo "$gt_cv_c_wchar_t" >&6; } 8497 if test $gt_cv_c_wchar_t = yes; then 8498 8499$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 8500 8501 fi 8502 8503 8504 GNULIB_DPRINTF=0; 8505 GNULIB_FCLOSE=0; 8506 GNULIB_FDOPEN=0; 8507 GNULIB_FFLUSH=0; 8508 GNULIB_FGETC=0; 8509 GNULIB_FGETS=0; 8510 GNULIB_FOPEN=0; 8511 GNULIB_FPRINTF=0; 8512 GNULIB_FPRINTF_POSIX=0; 8513 GNULIB_FPURGE=0; 8514 GNULIB_FPUTC=0; 8515 GNULIB_FPUTS=0; 8516 GNULIB_FREAD=0; 8517 GNULIB_FREOPEN=0; 8518 GNULIB_FSCANF=0; 8519 GNULIB_FSEEK=0; 8520 GNULIB_FSEEKO=0; 8521 GNULIB_FTELL=0; 8522 GNULIB_FTELLO=0; 8523 GNULIB_FWRITE=0; 8524 GNULIB_GETC=0; 8525 GNULIB_GETCHAR=0; 8526 GNULIB_GETDELIM=0; 8527 GNULIB_GETLINE=0; 8528 GNULIB_OBSTACK_PRINTF=0; 8529 GNULIB_OBSTACK_PRINTF_POSIX=0; 8530 GNULIB_PCLOSE=0; 8531 GNULIB_PERROR=0; 8532 GNULIB_POPEN=0; 8533 GNULIB_PRINTF=0; 8534 GNULIB_PRINTF_POSIX=0; 8535 GNULIB_PUTC=0; 8536 GNULIB_PUTCHAR=0; 8537 GNULIB_PUTS=0; 8538 GNULIB_REMOVE=0; 8539 GNULIB_RENAME=0; 8540 GNULIB_RENAMEAT=0; 8541 GNULIB_SCANF=0; 8542 GNULIB_SNPRINTF=0; 8543 GNULIB_SPRINTF_POSIX=0; 8544 GNULIB_STDIO_H_NONBLOCKING=0; 8545 GNULIB_STDIO_H_SIGPIPE=0; 8546 GNULIB_TMPFILE=0; 8547 GNULIB_VASPRINTF=0; 8548 GNULIB_VFSCANF=0; 8549 GNULIB_VSCANF=0; 8550 GNULIB_VDPRINTF=0; 8551 GNULIB_VFPRINTF=0; 8552 GNULIB_VFPRINTF_POSIX=0; 8553 GNULIB_VPRINTF=0; 8554 GNULIB_VPRINTF_POSIX=0; 8555 GNULIB_VSNPRINTF=0; 8556 GNULIB_VSPRINTF_POSIX=0; 8557 HAVE_DECL_FPURGE=1; 8558 HAVE_DECL_FSEEKO=1; 8559 HAVE_DECL_FTELLO=1; 8560 HAVE_DECL_GETDELIM=1; 8561 HAVE_DECL_GETLINE=1; 8562 HAVE_DECL_OBSTACK_PRINTF=1; 8563 HAVE_DECL_SNPRINTF=1; 8564 HAVE_DECL_VSNPRINTF=1; 8565 HAVE_DPRINTF=1; 8566 HAVE_FSEEKO=1; 8567 HAVE_FTELLO=1; 8568 HAVE_PCLOSE=1; 8569 HAVE_POPEN=1; 8570 HAVE_RENAMEAT=1; 8571 HAVE_VASPRINTF=1; 8572 HAVE_VDPRINTF=1; 8573 REPLACE_DPRINTF=0; 8574 REPLACE_FCLOSE=0; 8575 REPLACE_FDOPEN=0; 8576 REPLACE_FFLUSH=0; 8577 REPLACE_FOPEN=0; 8578 REPLACE_FPRINTF=0; 8579 REPLACE_FPURGE=0; 8580 REPLACE_FREOPEN=0; 8581 REPLACE_FSEEK=0; 8582 REPLACE_FSEEKO=0; 8583 REPLACE_FTELL=0; 8584 REPLACE_FTELLO=0; 8585 REPLACE_GETDELIM=0; 8586 REPLACE_GETLINE=0; 8587 REPLACE_OBSTACK_PRINTF=0; 8588 REPLACE_PERROR=0; 8589 REPLACE_POPEN=0; 8590 REPLACE_PRINTF=0; 8591 REPLACE_REMOVE=0; 8592 REPLACE_RENAME=0; 8593 REPLACE_RENAMEAT=0; 8594 REPLACE_SNPRINTF=0; 8595 REPLACE_SPRINTF=0; 8596 REPLACE_STDIO_READ_FUNCS=0; 8597 REPLACE_STDIO_WRITE_FUNCS=0; 8598 REPLACE_TMPFILE=0; 8599 REPLACE_VASPRINTF=0; 8600 REPLACE_VDPRINTF=0; 8601 REPLACE_VFPRINTF=0; 8602 REPLACE_VPRINTF=0; 8603 REPLACE_VSNPRINTF=0; 8604 REPLACE_VSPRINTF=0; 8605 8606 8607 REPLACE_STRERROR_0=0 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 8609$as_echo_n "checking whether strerror(0) succeeds... " >&6; } 8610if ${gl_cv_func_strerror_0_works+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 if test "$cross_compiling" = yes; then : 8614 case "$host_os" in 8615 # Guess yes on glibc systems. 8616 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 8617 # If we don't know, assume the worst. 8618 *) gl_cv_func_strerror_0_works="guessing no" ;; 8619 esac 8620 8621else 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624#include <string.h> 8625 #include <errno.h> 8626 8627int 8628main () 8629{ 8630int result = 0; 8631 char *str; 8632 errno = 0; 8633 str = strerror (0); 8634 if (!*str) result |= 1; 8635 if (errno) result |= 2; 8636 if (strstr (str, "nknown") || strstr (str, "ndefined")) 8637 result |= 4; 8638 return result; 8639 ; 8640 return 0; 8641} 8642_ACEOF 8643if ac_fn_c_try_run "$LINENO"; then : 8644 gl_cv_func_strerror_0_works=yes 8645else 8646 gl_cv_func_strerror_0_works=no 8647fi 8648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8649 conftest.$ac_objext conftest.beam conftest.$ac_ext 8650fi 8651 8652 8653fi 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 8655$as_echo "$gl_cv_func_strerror_0_works" >&6; } 8656 case "$gl_cv_func_strerror_0_works" in 8657 *yes) ;; 8658 *) 8659 REPLACE_STRERROR_0=1 8660 8661$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h 8662 8663 ;; 8664 esac 8665 8666 8667 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 8669$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 8670if ${ac_cv_c_restrict+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 ac_cv_c_restrict=no 8674 # The order here caters to the fact that C++ does not require restrict. 8675 for ac_kw in __restrict __restrict__ _Restrict restrict; do 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678typedef int *int_ptr; 8679 int foo (int_ptr $ac_kw ip) { return ip[0]; } 8680 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 8681 int bar (int ip[$ac_kw]) { return ip[0]; } 8682 8683int 8684main () 8685{ 8686int s[1]; 8687 int *$ac_kw t = s; 8688 t[0] = 0; 8689 return foo (t) + bar (t); 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695if ac_fn_c_try_compile "$LINENO"; then : 8696 ac_cv_c_restrict=$ac_kw 8697fi 8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8699 test "$ac_cv_c_restrict" != no && break 8700 done 8701 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 8704$as_echo "$ac_cv_c_restrict" >&6; } 8705 8706 case $ac_cv_c_restrict in 8707 restrict) ;; 8708 no) $as_echo "#define restrict /**/" >>confdefs.h 8709 ;; 8710 *) cat >>confdefs.h <<_ACEOF 8711#define restrict $ac_cv_c_restrict 8712_ACEOF 8713 ;; 8714 esac 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 if test $gl_cv_have_include_next = yes; then 8728 gl_cv_next_string_h='<'string.h'>' 8729 else 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 8731$as_echo_n "checking absolute name of <string.h>... " >&6; } 8732if ${gl_cv_next_string_h+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 8736 8737 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740#include <string.h> 8741_ACEOF 8742 case "$host_os" in 8743 aix*) gl_absname_cpp="$ac_cpp -C" ;; 8744 *) gl_absname_cpp="$ac_cpp" ;; 8745 esac 8746 8747 case "$host_os" in 8748 mingw*) 8749 gl_dirsep_regex='[/\\]' 8750 ;; 8751 *) 8752 gl_dirsep_regex='\/' 8753 ;; 8754 esac 8755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 8756 gl_header_literal_regex=`echo 'string.h' \ 8757 | sed -e "$gl_make_literal_regex_sed"` 8758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 8759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 8760 s|^/[^/]|//&| 8761 p 8762 q 8763 }' 8764 8765 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 8766 sed -n "$gl_absolute_header_sed"` 8767 8768 gl_header=$gl_cv_absolute_string_h 8769 gl_cv_next_string_h='"'$gl_header'"' 8770 8771 8772fi 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 8774$as_echo "$gl_cv_next_string_h" >&6; } 8775 fi 8776 NEXT_STRING_H=$gl_cv_next_string_h 8777 8778 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 8779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 8780 gl_next_as_first_directive='<'string.h'>' 8781 else 8782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 8783 gl_next_as_first_directive=$gl_cv_next_string_h 8784 fi 8785 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 8786 8787 8788 8789 8790 8791 8792 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do 8793 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 8795$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 8796if eval \${$as_gl_Symbol+:} false; then : 8797 $as_echo_n "(cached) " >&6 8798else 8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800/* end confdefs.h. */ 8801#include <string.h> 8802 8803int 8804main () 8805{ 8806#undef $gl_func 8807 (void) $gl_func; 8808 ; 8809 return 0; 8810} 8811_ACEOF 8812if ac_fn_c_try_compile "$LINENO"; then : 8813 eval "$as_gl_Symbol=yes" 8814else 8815 eval "$as_gl_Symbol=no" 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8818fi 8819eval ac_res=\$$as_gl_Symbol 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8821$as_echo "$ac_res" >&6; } 8822 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 8823 cat >>confdefs.h <<_ACEOF 8824#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 8825_ACEOF 8826 8827 eval ac_cv_have_decl_$gl_func=yes 8828fi 8829 done 8830 8831 8832ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" 8833if test "x$ac_cv_have_decl_strndup" = xyes; then : 8834 ac_have_decl=1 8835else 8836 ac_have_decl=0 8837fi 8838 8839cat >>confdefs.h <<_ACEOF 8840#define HAVE_DECL_STRNDUP $ac_have_decl 8841_ACEOF 8842 8843 8844 8845ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 8846if test "x$ac_cv_have_decl_strnlen" = xyes; then : 8847 ac_have_decl=1 8848else 8849 ac_have_decl=0 8850fi 8851 8852cat >>confdefs.h <<_ACEOF 8853#define HAVE_DECL_STRNLEN $ac_have_decl 8854_ACEOF 8855 8856 8857 8858ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8859if test "x$ac_cv_type_pid_t" = xyes; then : 8860 8861else 8862 8863cat >>confdefs.h <<_ACEOF 8864#define pid_t int 8865_ACEOF 8866 8867fi 8868 8869ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8870if test "x$ac_cv_type_mode_t" = xyes; then : 8871 8872else 8873 8874cat >>confdefs.h <<_ACEOF 8875#define mode_t int 8876_ACEOF 8877 8878fi 8879 8880 8881 8882 WINDOWS_64_BIT_OFF_T=0 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 if test $gl_cv_have_include_next = yes; then 8897 gl_cv_next_sys_types_h='<'sys/types.h'>' 8898 else 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 8900$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 8901if ${gl_cv_next_sys_types_h+:} false; then : 8902 $as_echo_n "(cached) " >&6 8903else 8904 8905 8906 8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8908/* end confdefs.h. */ 8909#include <sys/types.h> 8910_ACEOF 8911 case "$host_os" in 8912 aix*) gl_absname_cpp="$ac_cpp -C" ;; 8913 *) gl_absname_cpp="$ac_cpp" ;; 8914 esac 8915 8916 case "$host_os" in 8917 mingw*) 8918 gl_dirsep_regex='[/\\]' 8919 ;; 8920 *) 8921 gl_dirsep_regex='\/' 8922 ;; 8923 esac 8924 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 8925 gl_header_literal_regex=`echo 'sys/types.h' \ 8926 | sed -e "$gl_make_literal_regex_sed"` 8927 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 8928 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 8929 s|^/[^/]|//&| 8930 p 8931 q 8932 }' 8933 8934 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 8935 sed -n "$gl_absolute_header_sed"` 8936 8937 gl_header=$gl_cv_absolute_sys_types_h 8938 gl_cv_next_sys_types_h='"'$gl_header'"' 8939 8940 8941fi 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 8943$as_echo "$gl_cv_next_sys_types_h" >&6; } 8944 fi 8945 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 8946 8947 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 8948 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 8949 gl_next_as_first_directive='<'sys/types.h'>' 8950 else 8951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 8952 gl_next_as_first_directive=$gl_cv_next_sys_types_h 8953 fi 8954 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 8968$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 8969if ${gl_cv_header_wchar_h_correct_inline+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 gl_cv_header_wchar_h_correct_inline=yes 8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8974/* end confdefs.h. */ 8975 8976 #define wcstod renamed_wcstod 8977/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 8978 <wchar.h>. 8979 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 8980 included before <wchar.h>. */ 8981#include <stddef.h> 8982#include <stdio.h> 8983#include <time.h> 8984#include <wchar.h> 8985extern int zero (void); 8986int main () { return zero(); } 8987 8988_ACEOF 8989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8990 (eval $ac_compile) 2>&5 8991 ac_status=$? 8992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8993 test $ac_status = 0; }; then 8994 mv conftest.$ac_objext conftest1.$ac_objext 8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996/* end confdefs.h. */ 8997 8998 #define wcstod renamed_wcstod 8999/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9000 <wchar.h>. 9001 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9002 included before <wchar.h>. */ 9003#include <stddef.h> 9004#include <stdio.h> 9005#include <time.h> 9006#include <wchar.h> 9007int zero (void) { return 0; } 9008 9009_ACEOF 9010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9011 (eval $ac_compile) 2>&5 9012 ac_status=$? 9013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9014 test $ac_status = 0; }; then 9015 mv conftest.$ac_objext conftest2.$ac_objext 9016 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 9017 : 9018 else 9019 gl_cv_header_wchar_h_correct_inline=no 9020 fi 9021 fi 9022 fi 9023 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext 9024 9025fi 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 9027$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 9028 if test $gl_cv_header_wchar_h_correct_inline = no; then 9029 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 9030This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 9031C99 mode. You have four options: 9032 - Add the flag -fgnu89-inline to CC and reconfigure, or 9033 - Fix your include files, using parts of 9034 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 9035 - Use a gcc version older than 4.3, or 9036 - Don't use the flags -std=c99 or -std=gnu99. 9037Configuration aborted." "$LINENO" 5 9038 fi 9039 9040 9041 9042 9043 9044 9045 9046 if test $ac_cv_header_features_h = yes; then 9047 HAVE_FEATURES_H=1 9048 else 9049 HAVE_FEATURES_H=0 9050 fi 9051 9052 9053 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 9055$as_echo_n "checking for wint_t... " >&6; } 9056if ${gt_cv_c_wint_t+:} false; then : 9057 $as_echo_n "(cached) " >&6 9058else 9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9060/* end confdefs.h. */ 9061 9062/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9063 <wchar.h>. 9064 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 9065 before <wchar.h>. */ 9066#include <stddef.h> 9067#include <stdio.h> 9068#include <time.h> 9069#include <wchar.h> 9070 wint_t foo = (wchar_t)'\0'; 9071int 9072main () 9073{ 9074 9075 ; 9076 return 0; 9077} 9078_ACEOF 9079if ac_fn_c_try_compile "$LINENO"; then : 9080 gt_cv_c_wint_t=yes 9081else 9082 gt_cv_c_wint_t=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 9087$as_echo "$gt_cv_c_wint_t" >&6; } 9088 if test $gt_cv_c_wint_t = yes; then 9089 9090$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 9091 9092 fi 9093 9094 9095 GNULIB_ISWBLANK=0; 9096 GNULIB_WCTYPE=0; 9097 GNULIB_ISWCTYPE=0; 9098 GNULIB_WCTRANS=0; 9099 GNULIB_TOWCTRANS=0; 9100 HAVE_ISWBLANK=1; 9101 HAVE_WCTYPE_T=1; 9102 HAVE_WCTRANS_T=1; 9103 REPLACE_ISWBLANK=0; 9104 9105 9106 9107 9108 9109 9110 if false; then 9111 GL_COND_LIBTOOL_TRUE= 9112 GL_COND_LIBTOOL_FALSE='#' 9113else 9114 GL_COND_LIBTOOL_TRUE='#' 9115 GL_COND_LIBTOOL_FALSE= 9116fi 9117 9118 gl_cond_libtool=false 9119 gl_libdeps= 9120 gl_ltlibdeps= 9121 gl_m4_base='m4' 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 gl_source_base='lib' 9132 9133 : 9134 9135 9136 9137cat >>confdefs.h <<_ACEOF 9138#define GNULIB_CLOSE_STREAM 1 9139_ACEOF 9140 9141 9142 9143 : 9144 9145 9146 if test "x$datarootdir" = x; then 9147 datarootdir='${datadir}' 9148 9149 fi 9150 if test "x$docdir" = x; then 9151 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 9152 9153 fi 9154 if test "x$htmldir" = x; then 9155 htmldir='${docdir}' 9156 9157 fi 9158 if test "x$dvidir" = x; then 9159 dvidir='${docdir}' 9160 9161 fi 9162 if test "x$pdfdir" = x; then 9163 pdfdir='${docdir}' 9164 9165 fi 9166 if test "x$psdir" = x; then 9167 psdir='${docdir}' 9168 9169 fi 9170 if test "x$lispdir" = x; then 9171 lispdir='${datarootdir}/emacs/site-lisp' 9172 9173 fi 9174 if test "x$localedir" = x; then 9175 localedir='${datarootdir}/locale' 9176 9177 fi 9178 if test "x$runstatedir" = x; then 9179 runstatedir='${localstatedir}/run' 9180 9181 fi 9182 9183 pkglibexecdir='${libexecdir}/${PACKAGE}' 9184 9185 9186 9187 9188 9189 9190 9191cat >>confdefs.h <<_ACEOF 9192#define GNULIB_DIRNAME 1 9193_ACEOF 9194 9195 9196 9197 9198 9199 9200 9201 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 9203$as_echo_n "checking whether // is distinct from /... " >&6; } 9204if ${gl_cv_double_slash_root+:} false; then : 9205 $as_echo_n "(cached) " >&6 9206else 9207 if test x"$cross_compiling" = xyes ; then 9208 # When cross-compiling, there is no way to tell whether // is special 9209 # short of a list of hosts. However, the only known hosts to date 9210 # that have a distinct // are Apollo DomainOS (too old to port to), 9211 # Cygwin, and z/OS. If anyone knows of another system for which // has 9212 # special semantics and is distinct from /, please report it to 9213 # <bug-gnulib@gnu.org>. 9214 case $host in 9215 *-cygwin | i370-ibm-openedition) 9216 gl_cv_double_slash_root=yes ;; 9217 *) 9218 # Be optimistic and assume that / and // are the same when we 9219 # don't know. 9220 gl_cv_double_slash_root='unknown, assuming no' ;; 9221 esac 9222 else 9223 set x `ls -di / // 2>/dev/null` 9224 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 9225 gl_cv_double_slash_root=no 9226 else 9227 gl_cv_double_slash_root=yes 9228 fi 9229 fi 9230fi 9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 9232$as_echo "$gl_cv_double_slash_root" >&6; } 9233 if test "$gl_cv_double_slash_root" = yes; then 9234 9235$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 9236 9237 fi 9238 9239 9240 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 9242$as_echo_n "checking for error_at_line... " >&6; } 9243if ${ac_cv_lib_error_at_line+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248#include <error.h> 9249int 9250main () 9251{ 9252error_at_line (0, 0, "", 0, "an error occurred"); 9253 ; 9254 return 0; 9255} 9256_ACEOF 9257if ac_fn_c_try_link "$LINENO"; then : 9258 ac_cv_lib_error_at_line=yes 9259else 9260 ac_cv_lib_error_at_line=no 9261fi 9262rm -f core conftest.err conftest.$ac_objext \ 9263 conftest$ac_exeext conftest.$ac_ext 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 9266$as_echo "$ac_cv_lib_error_at_line" >&6; } 9267 9268 if test $ac_cv_lib_error_at_line = no; then 9269 9270 9271 9272 9273 9274 9275 9276 9277 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 9278 9279 9280 9281 : 9282 9283 fi 9284 9285 9286 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 9287 9288 9289 9290 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 9291 9292 9293 9294 9295 fp_headers=' 9296 #include <stdio.h> 9297 #if HAVE_STDIO_EXT_H 9298 # include <stdio_ext.h> 9299 #endif 9300 ' 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5 9302$as_echo_n "checking for __fpending... " >&6; } 9303if ${gl_cv_func___fpending+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309$fp_headers 9310int 9311main () 9312{ 9313return ! __fpending (stdin); 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318if ac_fn_c_try_link "$LINENO"; then : 9319 gl_cv_func___fpending=yes 9320else 9321 gl_cv_func___fpending=no 9322fi 9323rm -f core conftest.err conftest.$ac_objext \ 9324 conftest$ac_exeext conftest.$ac_ext 9325 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5 9328$as_echo "$gl_cv_func___fpending" >&6; } 9329 if test $gl_cv_func___fpending = yes; then 9330 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers 9331" 9332if test "x$ac_cv_have_decl___fpending" = xyes; then : 9333 ac_have_decl=1 9334else 9335 ac_have_decl=0 9336fi 9337 9338cat >>confdefs.h <<_ACEOF 9339#define HAVE_DECL___FPENDING $ac_have_decl 9340_ACEOF 9341 9342 fi 9343 9344 if test $gl_cv_func___fpending = no; then 9345 9346 9347 9348 9349 9350 9351 9352 9353 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext" 9354 9355 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5 9357$as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; } 9358if ${ac_cv_sys_pending_output_n_bytes+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 9362 for ac_expr in \ 9363 \ 9364 '# glibc2' \ 9365 'fp->_IO_write_ptr - fp->_IO_write_base' \ 9366 \ 9367 '# traditional Unix' \ 9368 'fp->_ptr - fp->_base' \ 9369 \ 9370 '# BSD' \ 9371 'fp->_p - fp->_bf._base' \ 9372 \ 9373 '# SCO, Unixware' \ 9374 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \ 9375 \ 9376 '# QNX' \ 9377 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \ 9378 \ 9379 '# old glibc?' \ 9380 'fp->__bufp - fp->__buffer' \ 9381 \ 9382 '# old glibc iostream?' \ 9383 'fp->_pptr - fp->_pbase' \ 9384 \ 9385 '# emx+gcc' \ 9386 'fp->_ptr - fp->_buffer' \ 9387 \ 9388 '# Minix' \ 9389 'fp->_ptr - fp->_buf' \ 9390 \ 9391 '# Plan9' \ 9392 'fp->wp - fp->buf' \ 9393 \ 9394 '# VMS' \ 9395 '(*fp)->_ptr - (*fp)->_base' \ 9396 \ 9397 '# e.g., DGUX R4.11; the info is not available' \ 9398 1 \ 9399 ; do 9400 9401 # Skip each embedded comment. 9402 case "$ac_expr" in '#'*) continue;; esac 9403 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406#include <stdio.h> 9407int 9408main () 9409{ 9410FILE *fp = stdin; (void) ($ac_expr); 9411 ; 9412 return 0; 9413} 9414_ACEOF 9415if ac_fn_c_try_compile "$LINENO"; then : 9416 fp_done=yes 9417 9418fi 9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9420 test "$fp_done" = yes && break 9421 done 9422 9423 ac_cv_sys_pending_output_n_bytes=$ac_expr 9424 9425 9426fi 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5 9428$as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; } 9429 9430cat >>confdefs.h <<_ACEOF 9431#define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes 9432_ACEOF 9433 9434 9435 fi 9436 9437 9438 9439 9440 9441 if test $REPLACE_GETOPT = 1; then 9442 9443 9444 9445 9446 9447 9448 9449 9450 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 9461 9462 9463 9464 9465 GNULIB_GL_UNISTD_H_GETOPT=1 9466 fi 9467 9468 9469 9470$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h 9471 9472 9473 9474 9475 9476 9477 9478 REPLACE_GETOPT=0 9479 if test -n "$gl_replace_getopt"; then 9480 REPLACE_GETOPT=1 9481 fi 9482 9483 if test $REPLACE_GETOPT = 1; then 9484 9485 GETOPT_H=getopt.h 9486 9487$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 9488 9489 9490 9491 fi 9492 9493 if test $REPLACE_GETOPT = 1; then 9494 9495 9496 9497 9498 9499 9500 9501 9502 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 9513 9514 9515 9516 9517 GNULIB_GL_UNISTD_H_GETOPT=1 9518 fi 9519 9520 9521 9522 9523 # Autoconf 2.61a.99 and earlier don't support linking a file only 9524 # in VPATH builds. But since GNUmakefile is for maintainer use 9525 # only, it does not matter if we skip the link with older autoconf. 9526 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 9527 # builds, so use a shell variable to bypass this. 9528 GNUmakefile=GNUmakefile 9529 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" 9540 9541 9542 9543 9544 9545 9546 if test $gl_cv_func_malloc_posix = yes; then 9547 9548$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 9549 9550 else 9551 REPLACE_MALLOC=1 9552 fi 9553 9554 if test $REPLACE_MALLOC = 1; then 9555 9556 9557 9558 9559 9560 9561 9562 9563 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 9564 9565 fi 9566 9567 9568 9569 9570 9571 GNULIB_MALLOC_POSIX=1 9572 9573 9574 9575 9576 9577$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 9592 9593 9594 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 9596$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 9597if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 9601 case "$host_os" in 9602 # Guess no on AIX and OSF/1. 9603 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 9604 # Guess yes otherwise. 9605 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 9606 esac 9607 if test $LOCALE_JA != none; then 9608 if test "$cross_compiling" = yes; then : 9609 : 9610else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612/* end confdefs.h. */ 9613 9614#include <locale.h> 9615#include <string.h> 9616/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9617 <wchar.h>. 9618 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9619 included before <wchar.h>. */ 9620#include <stddef.h> 9621#include <stdio.h> 9622#include <time.h> 9623#include <wchar.h> 9624int main () 9625{ 9626 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 9627 { 9628 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 9629 mbstate_t state; 9630 wchar_t wc; 9631 9632 memset (&state, '\0', sizeof (mbstate_t)); 9633 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9634 if (mbsinit (&state)) 9635 return 1; 9636 } 9637 return 0; 9638} 9639_ACEOF 9640if ac_fn_c_try_run "$LINENO"; then : 9641 gl_cv_func_mbrtowc_incomplete_state=yes 9642else 9643 gl_cv_func_mbrtowc_incomplete_state=no 9644fi 9645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9646 conftest.$ac_objext conftest.beam conftest.$ac_ext 9647fi 9648 9649 fi 9650 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 9653$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 9654 9655 9656 9657 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 9659$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 9660if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 9664 case "$host_os" in 9665 # Guess no on Solaris 8. 9666 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 9667 # Guess yes otherwise. 9668 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 9669 esac 9670 if test $LOCALE_ZH_CN != none; then 9671 if test "$cross_compiling" = yes; then : 9672 : 9673else 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676 9677#include <locale.h> 9678#include <stdlib.h> 9679#include <string.h> 9680/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9681 <wchar.h>. 9682 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9683 included before <wchar.h>. */ 9684#include <stddef.h> 9685#include <stdio.h> 9686#include <time.h> 9687#include <wchar.h> 9688int main () 9689{ 9690 /* This fails on Solaris 8: 9691 mbrtowc returns 2, and sets wc to 0x00F0. 9692 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 9693 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 9694 { 9695 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 9696 mbstate_t state; 9697 wchar_t wc; 9698 9699 memset (&state, '\0', sizeof (mbstate_t)); 9700 if (mbrtowc (&wc, input + 3, 6, &state) != 4 9701 && mbtowc (&wc, input + 3, 6) == 4) 9702 return 1; 9703 } 9704 return 0; 9705} 9706_ACEOF 9707if ac_fn_c_try_run "$LINENO"; then : 9708 gl_cv_func_mbrtowc_sanitycheck=yes 9709else 9710 gl_cv_func_mbrtowc_sanitycheck=no 9711fi 9712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9713 conftest.$ac_objext conftest.beam conftest.$ac_ext 9714fi 9715 9716 fi 9717 9718fi 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 9720$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 9721 9722 REPLACE_MBSTATE_T=0 9723 case "$gl_cv_func_mbrtowc_incomplete_state" in 9724 *yes) ;; 9725 *) REPLACE_MBSTATE_T=1 ;; 9726 esac 9727 case "$gl_cv_func_mbrtowc_sanitycheck" in 9728 *yes) ;; 9729 *) REPLACE_MBSTATE_T=1 ;; 9730 esac 9731 else 9732 REPLACE_MBSTATE_T=1 9733 fi 9734 9735 9736 9737 if test $ac_cv_func_mbrtowc = no; then 9738 HAVE_MBRTOWC=0 9739 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 9740/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9741 <wchar.h>. 9742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9743 included before <wchar.h>. */ 9744#include <stddef.h> 9745#include <stdio.h> 9746#include <time.h> 9747#include <wchar.h> 9748 9749" 9750if test "x$ac_cv_have_decl_mbrtowc" = xyes; then : 9751 ac_have_decl=1 9752else 9753 ac_have_decl=0 9754fi 9755 9756cat >>confdefs.h <<_ACEOF 9757#define HAVE_DECL_MBRTOWC $ac_have_decl 9758_ACEOF 9759 9760 if test $ac_cv_have_decl_mbrtowc = yes; then 9761 REPLACE_MBRTOWC=1 9762 fi 9763 else 9764 if test $REPLACE_MBSTATE_T = 1; then 9765 REPLACE_MBRTOWC=1 9766 else 9767 9768 9769 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 9771$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 9772if ${gl_cv_func_mbrtowc_null_arg1+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 9776 case "$host_os" in 9777 # Guess no on Solaris. 9778 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 9779 # Guess yes otherwise. 9780 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 9781 esac 9782 if test $LOCALE_FR_UTF8 != none; then 9783 if test "$cross_compiling" = yes; then : 9784 : 9785else 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788 9789#include <locale.h> 9790#include <stdlib.h> 9791#include <string.h> 9792/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9793 <wchar.h>. 9794 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9795 included before <wchar.h>. */ 9796#include <stddef.h> 9797#include <stdio.h> 9798#include <time.h> 9799#include <wchar.h> 9800int main () 9801{ 9802 int result = 0; 9803 9804 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 9805 { 9806 char input[] = "\303\237er"; 9807 mbstate_t state; 9808 wchar_t wc; 9809 size_t ret; 9810 9811 memset (&state, '\0', sizeof (mbstate_t)); 9812 wc = (wchar_t) 0xBADFACE; 9813 ret = mbrtowc (&wc, input, 5, &state); 9814 if (ret != 2) 9815 result |= 1; 9816 if (!mbsinit (&state)) 9817 result |= 2; 9818 9819 memset (&state, '\0', sizeof (mbstate_t)); 9820 ret = mbrtowc (NULL, input, 5, &state); 9821 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 9822 result |= 4; 9823 if (!mbsinit (&state)) 9824 result |= 8; 9825 } 9826 return result; 9827} 9828_ACEOF 9829if ac_fn_c_try_run "$LINENO"; then : 9830 gl_cv_func_mbrtowc_null_arg1=yes 9831else 9832 gl_cv_func_mbrtowc_null_arg1=no 9833fi 9834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9835 conftest.$ac_objext conftest.beam conftest.$ac_ext 9836fi 9837 9838 fi 9839 9840fi 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 9842$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; } 9843 9844 9845 9846 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 9848$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } 9849if ${gl_cv_func_mbrtowc_null_arg2+:} false; then : 9850 $as_echo_n "(cached) " >&6 9851else 9852 9853 case "$host_os" in 9854 # Guess no on OSF/1. 9855 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 9856 # Guess yes otherwise. 9857 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 9858 esac 9859 if test $LOCALE_FR_UTF8 != none; then 9860 if test "$cross_compiling" = yes; then : 9861 : 9862else 9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864/* end confdefs.h. */ 9865 9866#include <locale.h> 9867#include <string.h> 9868/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9869 <wchar.h>. 9870 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9871 included before <wchar.h>. */ 9872#include <stddef.h> 9873#include <stdio.h> 9874#include <time.h> 9875#include <wchar.h> 9876int main () 9877{ 9878 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 9879 { 9880 mbstate_t state; 9881 wchar_t wc; 9882 int ret; 9883 9884 memset (&state, '\0', sizeof (mbstate_t)); 9885 wc = (wchar_t) 0xBADFACE; 9886 mbrtowc (&wc, NULL, 5, &state); 9887 /* Check that wc was not modified. */ 9888 if (wc != (wchar_t) 0xBADFACE) 9889 return 1; 9890 } 9891 return 0; 9892} 9893_ACEOF 9894if ac_fn_c_try_run "$LINENO"; then : 9895 gl_cv_func_mbrtowc_null_arg2=yes 9896else 9897 gl_cv_func_mbrtowc_null_arg2=no 9898fi 9899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9900 conftest.$ac_objext conftest.beam conftest.$ac_ext 9901fi 9902 9903 fi 9904 9905fi 9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 9907$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; } 9908 9909 9910 9911 9912 9913 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 9915$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } 9916if ${gl_cv_func_mbrtowc_retval+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 9920 case "$host_os" in 9921 # Guess no on HP-UX, Solaris, native Windows. 9922 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 9923 # Guess yes otherwise. 9924 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 9925 esac 9926 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 9927 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 9928 if test "$cross_compiling" = yes; then : 9929 : 9930else 9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932/* end confdefs.h. */ 9933 9934#include <locale.h> 9935#include <string.h> 9936/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9937 <wchar.h>. 9938 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9939 included before <wchar.h>. */ 9940#include <stddef.h> 9941#include <stdio.h> 9942#include <time.h> 9943#include <wchar.h> 9944int main () 9945{ 9946 int result = 0; 9947 int found_some_locale = 0; 9948 /* This fails on Solaris. */ 9949 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 9950 { 9951 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 9952 mbstate_t state; 9953 wchar_t wc; 9954 9955 memset (&state, '\0', sizeof (mbstate_t)); 9956 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9957 { 9958 input[1] = '\0'; 9959 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 9960 result |= 1; 9961 } 9962 found_some_locale = 1; 9963 } 9964 /* This fails on HP-UX 11.11. */ 9965 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 9966 { 9967 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 9968 mbstate_t state; 9969 wchar_t wc; 9970 9971 memset (&state, '\0', sizeof (mbstate_t)); 9972 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 9973 { 9974 input[1] = '\0'; 9975 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 9976 result |= 2; 9977 } 9978 found_some_locale = 1; 9979 } 9980 /* This fails on native Windows. */ 9981 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 9982 { 9983 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 9984 mbstate_t state; 9985 wchar_t wc; 9986 9987 memset (&state, '\0', sizeof (mbstate_t)); 9988 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 9989 { 9990 input[3] = '\0'; 9991 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 9992 result |= 4; 9993 } 9994 found_some_locale = 1; 9995 } 9996 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 9997 { 9998 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 9999 mbstate_t state; 10000 wchar_t wc; 10001 10002 memset (&state, '\0', sizeof (mbstate_t)); 10003 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 10004 { 10005 input[3] = '\0'; 10006 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 10007 result |= 8; 10008 } 10009 found_some_locale = 1; 10010 } 10011 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 10012 { 10013 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 10014 mbstate_t state; 10015 wchar_t wc; 10016 10017 memset (&state, '\0', sizeof (mbstate_t)); 10018 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 10019 { 10020 input[3] = '\0'; 10021 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 10022 result |= 16; 10023 } 10024 found_some_locale = 1; 10025 } 10026 return (found_some_locale ? result : 77); 10027} 10028_ACEOF 10029if ac_fn_c_try_run "$LINENO"; then : 10030 gl_cv_func_mbrtowc_retval=yes 10031else 10032 if test $? != 77; then 10033 gl_cv_func_mbrtowc_retval=no 10034 fi 10035 10036fi 10037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10038 conftest.$ac_objext conftest.beam conftest.$ac_ext 10039fi 10040 10041 fi 10042 10043fi 10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 10045$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } 10046 10047 10048 10049 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 10051$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 10052if ${gl_cv_func_mbrtowc_nul_retval+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 10056 case "$host_os" in 10057 # Guess no on Solaris 8 and 9. 10058 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 10059 # Guess yes otherwise. 10060 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 10061 esac 10062 if test $LOCALE_ZH_CN != none; then 10063 if test "$cross_compiling" = yes; then : 10064 : 10065else 10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068 10069#include <locale.h> 10070#include <string.h> 10071/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10072 <wchar.h>. 10073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10074 included before <wchar.h>. */ 10075#include <stddef.h> 10076#include <stdio.h> 10077#include <time.h> 10078#include <wchar.h> 10079int main () 10080{ 10081 /* This fails on Solaris 8 and 9. */ 10082 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 10083 { 10084 mbstate_t state; 10085 wchar_t wc; 10086 10087 memset (&state, '\0', sizeof (mbstate_t)); 10088 if (mbrtowc (&wc, "", 1, &state) != 0) 10089 return 1; 10090 } 10091 return 0; 10092} 10093_ACEOF 10094if ac_fn_c_try_run "$LINENO"; then : 10095 gl_cv_func_mbrtowc_nul_retval=yes 10096else 10097 gl_cv_func_mbrtowc_nul_retval=no 10098fi 10099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10100 conftest.$ac_objext conftest.beam conftest.$ac_ext 10101fi 10102 10103 fi 10104 10105fi 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 10107$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } 10108 10109 10110 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 10112$as_echo_n "checking whether mbrtowc works on empty input... " >&6; } 10113if ${gl_cv_func_mbrtowc_empty_input+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 10117 case "$host_os" in 10118 # Guess no on AIX and glibc systems. 10119 aix* | *-gnu*) 10120 gl_cv_func_mbrtowc_empty_input="guessing no" ;; 10121 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 10122 esac 10123 if test "$cross_compiling" = yes; then : 10124 : 10125else 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128 10129 #include <wchar.h> 10130 static wchar_t wc; 10131 static mbstate_t mbs; 10132 int 10133 main (void) 10134 { 10135 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2; 10136 } 10137_ACEOF 10138if ac_fn_c_try_run "$LINENO"; then : 10139 gl_cv_func_mbrtowc_empty_input=no 10140else 10141 gl_cv_func_mbrtowc_empty_input=yes 10142fi 10143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10144 conftest.$ac_objext conftest.beam conftest.$ac_ext 10145fi 10146 10147 10148fi 10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 10150$as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; } 10151 10152 case "$gl_cv_func_mbrtowc_null_arg1" in 10153 *yes) ;; 10154 *) 10155$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 10156 10157 REPLACE_MBRTOWC=1 10158 ;; 10159 esac 10160 case "$gl_cv_func_mbrtowc_null_arg2" in 10161 *yes) ;; 10162 *) 10163$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 10164 10165 REPLACE_MBRTOWC=1 10166 ;; 10167 esac 10168 case "$gl_cv_func_mbrtowc_retval" in 10169 *yes) ;; 10170 *) 10171$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 10172 10173 REPLACE_MBRTOWC=1 10174 ;; 10175 esac 10176 case "$gl_cv_func_mbrtowc_nul_retval" in 10177 *yes) ;; 10178 *) 10179$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 10180 10181 REPLACE_MBRTOWC=1 10182 ;; 10183 esac 10184 case "$gl_cv_func_mbrtowc_empty_input" in 10185 *yes) ;; 10186 *) 10187$as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 10188 10189 REPLACE_MBRTOWC=1 10190 ;; 10191 esac 10192 fi 10193 fi 10194 10195 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 10196 10197 10198 10199 10200 10201 10202 10203 10204 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 10205 10206 10207 : 10208 10209 fi 10210 10211 10212 10213 10214 10215 GNULIB_MBRTOWC=1 10216 10217 10218 10219 10220 10221$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 10237 10238 10239 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 10241$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 10242if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : 10243 $as_echo_n "(cached) " >&6 10244else 10245 10246 case "$host_os" in 10247 # Guess no on AIX and OSF/1. 10248 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 10249 # Guess yes otherwise. 10250 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 10251 esac 10252 if test $LOCALE_JA != none; then 10253 if test "$cross_compiling" = yes; then : 10254 : 10255else 10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257/* end confdefs.h. */ 10258 10259#include <locale.h> 10260#include <string.h> 10261/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10262 <wchar.h>. 10263 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10264 included before <wchar.h>. */ 10265#include <stddef.h> 10266#include <stdio.h> 10267#include <time.h> 10268#include <wchar.h> 10269int main () 10270{ 10271 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 10272 { 10273 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 10274 mbstate_t state; 10275 wchar_t wc; 10276 10277 memset (&state, '\0', sizeof (mbstate_t)); 10278 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 10279 if (mbsinit (&state)) 10280 return 1; 10281 } 10282 return 0; 10283} 10284_ACEOF 10285if ac_fn_c_try_run "$LINENO"; then : 10286 gl_cv_func_mbrtowc_incomplete_state=yes 10287else 10288 gl_cv_func_mbrtowc_incomplete_state=no 10289fi 10290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10291 conftest.$ac_objext conftest.beam conftest.$ac_ext 10292fi 10293 10294 fi 10295 10296fi 10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 10298$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 10299 10300 10301 10302 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 10304$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 10305if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : 10306 $as_echo_n "(cached) " >&6 10307else 10308 10309 case "$host_os" in 10310 # Guess no on Solaris 8. 10311 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 10312 # Guess yes otherwise. 10313 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 10314 esac 10315 if test $LOCALE_ZH_CN != none; then 10316 if test "$cross_compiling" = yes; then : 10317 : 10318else 10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10320/* end confdefs.h. */ 10321 10322#include <locale.h> 10323#include <stdlib.h> 10324#include <string.h> 10325/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10326 <wchar.h>. 10327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10328 included before <wchar.h>. */ 10329#include <stddef.h> 10330#include <stdio.h> 10331#include <time.h> 10332#include <wchar.h> 10333int main () 10334{ 10335 /* This fails on Solaris 8: 10336 mbrtowc returns 2, and sets wc to 0x00F0. 10337 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 10338 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 10339 { 10340 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 10341 mbstate_t state; 10342 wchar_t wc; 10343 10344 memset (&state, '\0', sizeof (mbstate_t)); 10345 if (mbrtowc (&wc, input + 3, 6, &state) != 4 10346 && mbtowc (&wc, input + 3, 6) == 4) 10347 return 1; 10348 } 10349 return 0; 10350} 10351_ACEOF 10352if ac_fn_c_try_run "$LINENO"; then : 10353 gl_cv_func_mbrtowc_sanitycheck=yes 10354else 10355 gl_cv_func_mbrtowc_sanitycheck=no 10356fi 10357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10358 conftest.$ac_objext conftest.beam conftest.$ac_ext 10359fi 10360 10361 fi 10362 10363fi 10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 10365$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 10366 10367 REPLACE_MBSTATE_T=0 10368 case "$gl_cv_func_mbrtowc_incomplete_state" in 10369 *yes) ;; 10370 *) REPLACE_MBSTATE_T=1 ;; 10371 esac 10372 case "$gl_cv_func_mbrtowc_sanitycheck" in 10373 *yes) ;; 10374 *) REPLACE_MBSTATE_T=1 ;; 10375 esac 10376 else 10377 REPLACE_MBSTATE_T=1 10378 fi 10379 10380 10381 10382 if test $ac_cv_func_mbsinit = no; then 10383 HAVE_MBSINIT=0 10384 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 10385/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10386 <wchar.h>. 10387 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10388 included before <wchar.h>. */ 10389#include <stddef.h> 10390#include <stdio.h> 10391#include <time.h> 10392#include <wchar.h> 10393 10394" 10395if test "x$ac_cv_have_decl_mbsinit" = xyes; then : 10396 ac_have_decl=1 10397else 10398 ac_have_decl=0 10399fi 10400 10401cat >>confdefs.h <<_ACEOF 10402#define HAVE_DECL_MBSINIT $ac_have_decl 10403_ACEOF 10404 10405 if test $ac_cv_have_decl_mbsinit = yes; then 10406 REPLACE_MBSINIT=1 10407 fi 10408 else 10409 if test $REPLACE_MBSTATE_T = 1; then 10410 REPLACE_MBSINIT=1 10411 else 10412 case "$host_os" in 10413 mingw*) REPLACE_MBSINIT=1 ;; 10414 esac 10415 fi 10416 fi 10417 10418 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 10419 10420 10421 10422 10423 10424 10425 10426 10427 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 10428 10429 10430 : 10431 10432 fi 10433 10434 10435 10436 10437 10438 GNULIB_MBSINIT=1 10439 10440 10441 10442 10443 10444$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 10459 10460 10461 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 10463$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 10464if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 10468 case "$host_os" in 10469 # Guess no on AIX and OSF/1. 10470 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 10471 # Guess yes otherwise. 10472 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 10473 esac 10474 if test $LOCALE_JA != none; then 10475 if test "$cross_compiling" = yes; then : 10476 : 10477else 10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10479/* end confdefs.h. */ 10480 10481#include <locale.h> 10482#include <string.h> 10483/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10484 <wchar.h>. 10485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10486 included before <wchar.h>. */ 10487#include <stddef.h> 10488#include <stdio.h> 10489#include <time.h> 10490#include <wchar.h> 10491int main () 10492{ 10493 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 10494 { 10495 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 10496 mbstate_t state; 10497 wchar_t wc; 10498 10499 memset (&state, '\0', sizeof (mbstate_t)); 10500 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 10501 if (mbsinit (&state)) 10502 return 1; 10503 } 10504 return 0; 10505} 10506_ACEOF 10507if ac_fn_c_try_run "$LINENO"; then : 10508 gl_cv_func_mbrtowc_incomplete_state=yes 10509else 10510 gl_cv_func_mbrtowc_incomplete_state=no 10511fi 10512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10513 conftest.$ac_objext conftest.beam conftest.$ac_ext 10514fi 10515 10516 fi 10517 10518fi 10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 10520$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 10521 10522 10523 10524 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 10526$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 10527if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then : 10528 $as_echo_n "(cached) " >&6 10529else 10530 10531 case "$host_os" in 10532 # Guess no on Solaris 8. 10533 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 10534 # Guess yes otherwise. 10535 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 10536 esac 10537 if test $LOCALE_ZH_CN != none; then 10538 if test "$cross_compiling" = yes; then : 10539 : 10540else 10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543 10544#include <locale.h> 10545#include <stdlib.h> 10546#include <string.h> 10547/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10548 <wchar.h>. 10549 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10550 included before <wchar.h>. */ 10551#include <stddef.h> 10552#include <stdio.h> 10553#include <time.h> 10554#include <wchar.h> 10555int main () 10556{ 10557 /* This fails on Solaris 8: 10558 mbrtowc returns 2, and sets wc to 0x00F0. 10559 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 10560 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 10561 { 10562 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 10563 mbstate_t state; 10564 wchar_t wc; 10565 10566 memset (&state, '\0', sizeof (mbstate_t)); 10567 if (mbrtowc (&wc, input + 3, 6, &state) != 4 10568 && mbtowc (&wc, input + 3, 6) == 4) 10569 return 1; 10570 } 10571 return 0; 10572} 10573_ACEOF 10574if ac_fn_c_try_run "$LINENO"; then : 10575 gl_cv_func_mbrtowc_sanitycheck=yes 10576else 10577 gl_cv_func_mbrtowc_sanitycheck=no 10578fi 10579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10580 conftest.$ac_objext conftest.beam conftest.$ac_ext 10581fi 10582 10583 fi 10584 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 10587$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 10588 10589 REPLACE_MBSTATE_T=0 10590 case "$gl_cv_func_mbrtowc_incomplete_state" in 10591 *yes) ;; 10592 *) REPLACE_MBSTATE_T=1 ;; 10593 esac 10594 case "$gl_cv_func_mbrtowc_sanitycheck" in 10595 *yes) ;; 10596 *) REPLACE_MBSTATE_T=1 ;; 10597 esac 10598 else 10599 REPLACE_MBSTATE_T=1 10600 fi 10601 10602 10603 10604 if test $ac_cv_func_mbsrtowcs = no; then 10605 HAVE_MBSRTOWCS=0 10606 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" " 10607/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10608 <wchar.h>. 10609 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10610 included before <wchar.h>. */ 10611#include <stddef.h> 10612#include <stdio.h> 10613#include <time.h> 10614#include <wchar.h> 10615 10616" 10617if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then : 10618 ac_have_decl=1 10619else 10620 ac_have_decl=0 10621fi 10622 10623cat >>confdefs.h <<_ACEOF 10624#define HAVE_DECL_MBSRTOWCS $ac_have_decl 10625_ACEOF 10626 10627 if test $ac_cv_have_decl_mbsrtowcs = yes; then 10628 REPLACE_MBSRTOWCS=1 10629 fi 10630 else 10631 if test $REPLACE_MBSTATE_T = 1; then 10632 REPLACE_MBSRTOWCS=1 10633 else 10634 10635 10636 10637 10638 10639 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5 10641$as_echo_n "checking whether mbsrtowcs works... " >&6; } 10642if ${gl_cv_func_mbsrtowcs_works+:} false; then : 10643 $as_echo_n "(cached) " >&6 10644else 10645 10646 case "$host_os" in 10647 # Guess no on HP-UX, Solaris, mingw. 10648 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;; 10649 # Guess yes otherwise. 10650 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;; 10651 esac 10652 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 10653 if test "$cross_compiling" = yes; then : 10654 : 10655else 10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658 10659#include <locale.h> 10660#include <string.h> 10661/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10662 <wchar.h>. 10663 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 10664 included before <wchar.h>. */ 10665#include <stddef.h> 10666#include <stdio.h> 10667#include <time.h> 10668#include <wchar.h> 10669int main () 10670{ 10671 int result = 0; 10672 /* Test whether the function supports a NULL destination argument. 10673 This fails on native Windows. */ 10674 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 10675 { 10676 const char input[] = "\337er"; 10677 const char *src = input; 10678 mbstate_t state; 10679 10680 memset (&state, '\0', sizeof (mbstate_t)); 10681 if (mbsrtowcs (NULL, &src, 1, &state) != 3 10682 || src != input) 10683 result |= 1; 10684 } 10685 /* Test whether the function works when started with a conversion state 10686 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */ 10687 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 10688 { 10689 const char input[] = "B\303\274\303\237er"; 10690 mbstate_t state; 10691 10692 memset (&state, '\0', sizeof (mbstate_t)); 10693 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) 10694 if (!mbsinit (&state)) 10695 { 10696 const char *src = input + 2; 10697 if (mbsrtowcs (NULL, &src, 10, &state) != 4) 10698 result |= 2; 10699 } 10700 } 10701 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 10702 { 10703 const char input[] = "<\306\374\313\334\270\354>"; 10704 mbstate_t state; 10705 10706 memset (&state, '\0', sizeof (mbstate_t)); 10707 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2)) 10708 if (!mbsinit (&state)) 10709 { 10710 const char *src = input + 4; 10711 if (mbsrtowcs (NULL, &src, 10, &state) != 3) 10712 result |= 4; 10713 } 10714 } 10715 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 10716 { 10717 const char input[] = "B\250\271\201\060\211\070er"; 10718 mbstate_t state; 10719 10720 memset (&state, '\0', sizeof (mbstate_t)); 10721 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) 10722 if (!mbsinit (&state)) 10723 { 10724 const char *src = input + 2; 10725 if (mbsrtowcs (NULL, &src, 10, &state) != 4) 10726 result |= 8; 10727 } 10728 } 10729 return result; 10730} 10731_ACEOF 10732if ac_fn_c_try_run "$LINENO"; then : 10733 gl_cv_func_mbsrtowcs_works=yes 10734else 10735 gl_cv_func_mbsrtowcs_works=no 10736fi 10737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10738 conftest.$ac_objext conftest.beam conftest.$ac_ext 10739fi 10740 10741 fi 10742 10743fi 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5 10745$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; } 10746 10747 case "$gl_cv_func_mbsrtowcs_works" in 10748 *yes) ;; 10749 *) REPLACE_MBSRTOWCS=1 ;; 10750 esac 10751 fi 10752 fi 10753 10754 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then 10755 10756 10757 10758 10759 10760 10761 10762 10763 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext" 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext" 10774 10775 10776 : 10777 10778 fi 10779 10780 10781 10782 10783 10784 GNULIB_MBSRTOWCS=1 10785 10786 10787 10788 10789 10790$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h 10791 10792 10793 10794 10795 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then 10796 10797 10798 10799 10800 10801 10802 10803 10804 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 10805 10806 10807 for ac_header in bp-sym.h 10808do : 10809 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 10810if test "x$ac_cv_header_bp_sym_h" = xyes; then : 10811 cat >>confdefs.h <<_ACEOF 10812#define HAVE_BP_SYM_H 1 10813_ACEOF 10814 10815fi 10816 10817done 10818 10819 10820 fi 10821 10822 10823 10824 10825 10826 GNULIB_MEMCHR=1 10827 10828 10829 10830 10831 10832$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 10833 10834 10835 10836 10837 10838 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 10839 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 10840 10841$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 10842 10843 else 10844 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 10845 fi 10846 10847 10848 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 10849 10850 10851 10852 10853 10854 10855 10856 10857 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 10858 10859 fi 10860 10861 10862 10863 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 10864 10865 10866 10867 10868 10869 10870 10871 10872 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 10873 10874 fi 10875 10876 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 10877" 10878if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 10879 ac_have_decl=1 10880else 10881 ac_have_decl=0 10882fi 10883 10884cat >>confdefs.h <<_ACEOF 10885#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 10886_ACEOF 10887 10888 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 10889" 10890if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 10891 ac_have_decl=1 10892else 10893 ac_have_decl=0 10894fi 10895 10896cat >>confdefs.h <<_ACEOF 10897#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 10898_ACEOF 10899 10900 10901 : 10902 10903 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 10905$as_echo_n "checking for ssize_t... " >&6; } 10906if ${gt_cv_ssize_t+:} false; then : 10907 $as_echo_n "(cached) " >&6 10908else 10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911#include <sys/types.h> 10912int 10913main () 10914{ 10915int x = sizeof (ssize_t *) + sizeof (ssize_t); 10916 return !x; 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_compile "$LINENO"; then : 10922 gt_cv_ssize_t=yes 10923else 10924 gt_cv_ssize_t=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10927fi 10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 10929$as_echo "$gt_cv_ssize_t" >&6; } 10930 if test $gt_cv_ssize_t = no; then 10931 10932$as_echo "#define ssize_t int" >>confdefs.h 10933 10934 fi 10935 10936 10937 10938 10939 # Define two additional variables used in the Makefile substitution. 10940 10941 if test "$ac_cv_header_stdbool_h" = yes; then 10942 STDBOOL_H='' 10943 else 10944 STDBOOL_H='stdbool.h' 10945 fi 10946 10947 if test -n "$STDBOOL_H"; then 10948 GL_GENERATE_STDBOOL_H_TRUE= 10949 GL_GENERATE_STDBOOL_H_FALSE='#' 10950else 10951 GL_GENERATE_STDBOOL_H_TRUE='#' 10952 GL_GENERATE_STDBOOL_H_FALSE= 10953fi 10954 10955 10956 if test "$ac_cv_type__Bool" = yes; then 10957 HAVE__BOOL=1 10958 else 10959 HAVE__BOOL=0 10960 fi 10961 10962 10963 10964 10965 10966 STDDEF_H= 10967 if test $gt_cv_c_wchar_t = no; then 10968 HAVE_WCHAR_T=0 10969 STDDEF_H=stddef.h 10970 fi 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 10972$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 10973if ${gl_cv_decl_null_works+:} false; then : 10974 $as_echo_n "(cached) " >&6 10975else 10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10977/* end confdefs.h. */ 10978#include <stddef.h> 10979 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 10980 10981int 10982main () 10983{ 10984 10985 ; 10986 return 0; 10987} 10988_ACEOF 10989if ac_fn_c_try_compile "$LINENO"; then : 10990 gl_cv_decl_null_works=yes 10991else 10992 gl_cv_decl_null_works=no 10993fi 10994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10995fi 10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 10997$as_echo "$gl_cv_decl_null_works" >&6; } 10998 if test $gl_cv_decl_null_works = no; then 10999 REPLACE_NULL=1 11000 STDDEF_H=stddef.h 11001 fi 11002 11003 if test -n "$STDDEF_H"; then 11004 GL_GENERATE_STDDEF_H_TRUE= 11005 GL_GENERATE_STDDEF_H_FALSE='#' 11006else 11007 GL_GENERATE_STDDEF_H_TRUE='#' 11008 GL_GENERATE_STDDEF_H_FALSE= 11009fi 11010 11011 if test -n "$STDDEF_H"; then 11012 11013 11014 11015 11016 11017 11018 11019 11020 if test $gl_cv_have_include_next = yes; then 11021 gl_cv_next_stddef_h='<'stddef.h'>' 11022 else 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 11024$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 11025if ${gl_cv_next_stddef_h+:} false; then : 11026 $as_echo_n "(cached) " >&6 11027else 11028 11029 11030 11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032/* end confdefs.h. */ 11033#include <stddef.h> 11034_ACEOF 11035 case "$host_os" in 11036 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11037 *) gl_absname_cpp="$ac_cpp" ;; 11038 esac 11039 11040 case "$host_os" in 11041 mingw*) 11042 gl_dirsep_regex='[/\\]' 11043 ;; 11044 *) 11045 gl_dirsep_regex='\/' 11046 ;; 11047 esac 11048 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11049 gl_header_literal_regex=`echo 'stddef.h' \ 11050 | sed -e "$gl_make_literal_regex_sed"` 11051 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11052 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11053 s|^/[^/]|//&| 11054 p 11055 q 11056 }' 11057 11058 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11059 sed -n "$gl_absolute_header_sed"` 11060 11061 gl_header=$gl_cv_absolute_stddef_h 11062 gl_cv_next_stddef_h='"'$gl_header'"' 11063 11064 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 11067$as_echo "$gl_cv_next_stddef_h" >&6; } 11068 fi 11069 NEXT_STDDEF_H=$gl_cv_next_stddef_h 11070 11071 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11073 gl_next_as_first_directive='<'stddef.h'>' 11074 else 11075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11076 gl_next_as_first_directive=$gl_cv_next_stddef_h 11077 fi 11078 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 11079 11080 11081 11082 11083 fi 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 if test $gl_cv_have_include_next = yes; then 11096 gl_cv_next_stdio_h='<'stdio.h'>' 11097 else 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 11099$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 11100if ${gl_cv_next_stdio_h+:} false; then : 11101 $as_echo_n "(cached) " >&6 11102else 11103 11104 11105 11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108#include <stdio.h> 11109_ACEOF 11110 case "$host_os" in 11111 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11112 *) gl_absname_cpp="$ac_cpp" ;; 11113 esac 11114 11115 case "$host_os" in 11116 mingw*) 11117 gl_dirsep_regex='[/\\]' 11118 ;; 11119 *) 11120 gl_dirsep_regex='\/' 11121 ;; 11122 esac 11123 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11124 gl_header_literal_regex=`echo 'stdio.h' \ 11125 | sed -e "$gl_make_literal_regex_sed"` 11126 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11127 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11128 s|^/[^/]|//&| 11129 p 11130 q 11131 }' 11132 11133 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11134 sed -n "$gl_absolute_header_sed"` 11135 11136 gl_header=$gl_cv_absolute_stdio_h 11137 gl_cv_next_stdio_h='"'$gl_header'"' 11138 11139 11140fi 11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 11142$as_echo "$gl_cv_next_stdio_h" >&6; } 11143 fi 11144 NEXT_STDIO_H=$gl_cv_next_stdio_h 11145 11146 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11148 gl_next_as_first_directive='<'stdio.h'>' 11149 else 11150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11151 gl_next_as_first_directive=$gl_cv_next_stdio_h 11152 fi 11153 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 11154 11155 11156 11157 11158 11159 GNULIB_FSCANF=1 11160 11161 11162cat >>confdefs.h <<_ACEOF 11163#define GNULIB_FSCANF 1 11164_ACEOF 11165 11166 11167 GNULIB_SCANF=1 11168 11169 11170cat >>confdefs.h <<_ACEOF 11171#define GNULIB_SCANF 1 11172_ACEOF 11173 11174 11175 GNULIB_FGETC=1 11176 GNULIB_GETC=1 11177 GNULIB_GETCHAR=1 11178 GNULIB_FGETS=1 11179 GNULIB_FREAD=1 11180 11181 11182 GNULIB_FPRINTF=1 11183 GNULIB_PRINTF=1 11184 GNULIB_VFPRINTF=1 11185 GNULIB_VPRINTF=1 11186 GNULIB_FPUTC=1 11187 GNULIB_PUTC=1 11188 GNULIB_PUTCHAR=1 11189 GNULIB_FPUTS=1 11190 GNULIB_PUTS=1 11191 GNULIB_FWRITE=1 11192 11193 11194 11195 11196 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do 11197 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 11199$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 11200if eval \${$as_gl_Symbol+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11204/* end confdefs.h. */ 11205#include <stdio.h> 11206 11207int 11208main () 11209{ 11210#undef $gl_func 11211 (void) $gl_func; 11212 ; 11213 return 0; 11214} 11215_ACEOF 11216if ac_fn_c_try_compile "$LINENO"; then : 11217 eval "$as_gl_Symbol=yes" 11218else 11219 eval "$as_gl_Symbol=no" 11220fi 11221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11222fi 11223eval ac_res=\$$as_gl_Symbol 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11225$as_echo "$ac_res" >&6; } 11226 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 11227 cat >>confdefs.h <<_ACEOF 11228#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 11229_ACEOF 11230 11231 eval ac_cv_have_decl_$gl_func=yes 11232fi 11233 done 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 if test $gl_cv_have_include_next = yes; then 11247 gl_cv_next_stdlib_h='<'stdlib.h'>' 11248 else 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 11250$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 11251if ${gl_cv_next_stdlib_h+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 11255 11256 11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11258/* end confdefs.h. */ 11259#include <stdlib.h> 11260_ACEOF 11261 case "$host_os" in 11262 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11263 *) gl_absname_cpp="$ac_cpp" ;; 11264 esac 11265 11266 case "$host_os" in 11267 mingw*) 11268 gl_dirsep_regex='[/\\]' 11269 ;; 11270 *) 11271 gl_dirsep_regex='\/' 11272 ;; 11273 esac 11274 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11275 gl_header_literal_regex=`echo 'stdlib.h' \ 11276 | sed -e "$gl_make_literal_regex_sed"` 11277 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11278 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11279 s|^/[^/]|//&| 11280 p 11281 q 11282 }' 11283 11284 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11285 sed -n "$gl_absolute_header_sed"` 11286 11287 gl_header=$gl_cv_absolute_stdlib_h 11288 gl_cv_next_stdlib_h='"'$gl_header'"' 11289 11290 11291fi 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 11293$as_echo "$gl_cv_next_stdlib_h" >&6; } 11294 fi 11295 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 11296 11297 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11299 gl_next_as_first_directive='<'stdlib.h'>' 11300 else 11301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11302 gl_next_as_first_directive=$gl_cv_next_stdlib_h 11303 fi 11304 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 11305 11306 11307 11308 11309 11310 11311 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do 11312 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 11314$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 11315if eval \${$as_gl_Symbol+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320#include <stdlib.h> 11321#if HAVE_SYS_LOADAVG_H 11322# include <sys/loadavg.h> 11323#endif 11324#if HAVE_RANDOM_H 11325# include <random.h> 11326#endif 11327 11328int 11329main () 11330{ 11331#undef $gl_func 11332 (void) $gl_func; 11333 ; 11334 return 0; 11335} 11336_ACEOF 11337if ac_fn_c_try_compile "$LINENO"; then : 11338 eval "$as_gl_Symbol=yes" 11339else 11340 eval "$as_gl_Symbol=no" 11341fi 11342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11343fi 11344eval ac_res=\$$as_gl_Symbol 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11346$as_echo "$ac_res" >&6; } 11347 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 11348 cat >>confdefs.h <<_ACEOF 11349#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 11350_ACEOF 11351 11352 eval ac_cv_have_decl_$gl_func=yes 11353fi 11354 done 11355 11356 11357 11358 11359 11360 11361 11362 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 11364$as_echo_n "checking for working strerror function... " >&6; } 11365if ${gl_cv_func_working_strerror+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 if test "$cross_compiling" = yes; then : 11369 case "$host_os" in 11370 # Guess yes on glibc systems. 11371 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;; 11372 # If we don't know, assume the worst. 11373 *) gl_cv_func_working_strerror="guessing no" ;; 11374 esac 11375 11376else 11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378/* end confdefs.h. */ 11379#include <string.h> 11380 11381int 11382main () 11383{ 11384if (!*strerror (-2)) return 1; 11385 ; 11386 return 0; 11387} 11388_ACEOF 11389if ac_fn_c_try_run "$LINENO"; then : 11390 gl_cv_func_working_strerror=yes 11391else 11392 gl_cv_func_working_strerror=no 11393fi 11394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11395 conftest.$ac_objext conftest.beam conftest.$ac_ext 11396fi 11397 11398 11399fi 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 11401$as_echo "$gl_cv_func_working_strerror" >&6; } 11402 case "$gl_cv_func_working_strerror" in 11403 *yes) ;; 11404 *) 11405 REPLACE_STRERROR=1 11406 ;; 11407 esac 11408 11409 else 11410 REPLACE_STRERROR=1 11411 fi 11412 11413 if test $REPLACE_STRERROR = 1; then 11414 11415 11416 11417 11418 11419 11420 11421 11422 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 11423 11424 fi 11425 11426 11427cat >>confdefs.h <<_ACEOF 11428#define GNULIB_STRERROR 1 11429_ACEOF 11430 11431 11432 11433 11434 11435 11436 11437 GNULIB_STRERROR=1 11438 11439 11440 11441 11442 11443$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 11444 11445 11446 11447 11448 11449 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 11450 11451 11452 11453 11454 11455 11456 11457 11458 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 11459 11460 11461 11462 11463 11464 if test $ac_cv_header_sys_socket_h != yes; then 11465 for ac_header in winsock2.h 11466do : 11467 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 11468if test "x$ac_cv_header_winsock2_h" = xyes; then : 11469 cat >>confdefs.h <<_ACEOF 11470#define HAVE_WINSOCK2_H 1 11471_ACEOF 11472 11473fi 11474 11475done 11476 11477 fi 11478 if test "$ac_cv_header_winsock2_h" = yes; then 11479 HAVE_WINSOCK2_H=1 11480 UNISTD_H_HAVE_WINSOCK2_H=1 11481 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 11482 else 11483 HAVE_WINSOCK2_H=0 11484 fi 11485 11486 11487 fi 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 if test $ac_cv_have_decl_strndup = no; then 11498 HAVE_DECL_STRNDUP=0 11499 fi 11500 11501 if test $ac_cv_func_strndup = yes; then 11502 HAVE_STRNDUP=1 11503 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 11505$as_echo_n "checking for working strndup... " >&6; } 11506if ${gl_cv_func_strndup_works+:} false; then : 11507 $as_echo_n "(cached) " >&6 11508else 11509 if test "$cross_compiling" = yes; then : 11510 11511 case $host_os in 11512 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; 11513 *) gl_cv_func_strndup_works="guessing yes";; 11514 esac 11515 11516else 11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519 11520 #include <string.h> 11521 #include <stdlib.h> 11522int 11523main () 11524{ 11525 11526#if !HAVE_DECL_STRNDUP 11527 extern 11528 #ifdef __cplusplus 11529 "C" 11530 #endif 11531 char *strndup (const char *, size_t); 11532#endif 11533 char *s; 11534 s = strndup ("some longer string", 15); 11535 free (s); 11536 s = strndup ("shorter string", 13); 11537 return s[13] != '\0'; 11538 ; 11539 return 0; 11540} 11541_ACEOF 11542if ac_fn_c_try_run "$LINENO"; then : 11543 gl_cv_func_strndup_works=yes 11544else 11545 gl_cv_func_strndup_works=no 11546fi 11547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11548 conftest.$ac_objext conftest.beam conftest.$ac_ext 11549fi 11550 11551fi 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5 11553$as_echo "$gl_cv_func_strndup_works" >&6; } 11554 case $gl_cv_func_strndup_works in 11555 *no) REPLACE_STRNDUP=1 ;; 11556 esac 11557 else 11558 HAVE_STRNDUP=0 11559 fi 11560 11561 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then 11562 11563 11564 11565 11566 11567 11568 11569 11570 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext" 11571 11572 fi 11573 11574 11575 11576 11577 11578 GNULIB_STRNDUP=1 11579 11580 11581 11582 11583 11584$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 if test $ac_cv_have_decl_strnlen = no; then 11595 HAVE_DECL_STRNLEN=0 11596 else 11597 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 11599$as_echo_n "checking for working strnlen... " >&6; } 11600if ${ac_cv_func_strnlen_working+:} false; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 if test "$cross_compiling" = yes; then : 11604 # Guess no on AIX systems, yes otherwise. 11605 case "$host_os" in 11606 aix*) ac_cv_func_strnlen_working=no;; 11607 *) ac_cv_func_strnlen_working=yes;; 11608 esac 11609else 11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11611/* end confdefs.h. */ 11612$ac_includes_default 11613int 11614main () 11615{ 11616 11617#define S "foobar" 11618#define S_LEN (sizeof S - 1) 11619 11620 /* At least one implementation is buggy: that of AIX 4.3 would 11621 give strnlen (S, 1) == 3. */ 11622 11623 int i; 11624 for (i = 0; i < S_LEN + 1; ++i) 11625 { 11626 int expected = i <= S_LEN ? i : S_LEN; 11627 if (strnlen (S, i) != expected) 11628 return 1; 11629 } 11630 return 0; 11631 11632 ; 11633 return 0; 11634} 11635_ACEOF 11636if ac_fn_c_try_run "$LINENO"; then : 11637 ac_cv_func_strnlen_working=yes 11638else 11639 ac_cv_func_strnlen_working=no 11640fi 11641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11642 conftest.$ac_objext conftest.beam conftest.$ac_ext 11643fi 11644 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 11647$as_echo "$ac_cv_func_strnlen_working" >&6; } 11648test $ac_cv_func_strnlen_working = no && : 11649 11650 11651 if test $ac_cv_func_strnlen_working = no; then 11652 REPLACE_STRNLEN=1 11653 fi 11654 fi 11655 11656 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then 11657 11658 11659 11660 11661 11662 11663 11664 11665 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" 11666 11667 : 11668 fi 11669 11670 11671 11672 11673 11674 GNULIB_STRNLEN=1 11675 11676 11677 11678 11679 11680$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 if test $gl_cv_have_include_next = yes; then 11699 gl_cv_next_unistd_h='<'unistd.h'>' 11700 else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 11702$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 11703if ${gl_cv_next_unistd_h+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 11707 if test $ac_cv_header_unistd_h = yes; then 11708 11709 11710 11711 11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713/* end confdefs.h. */ 11714#include <unistd.h> 11715_ACEOF 11716 case "$host_os" in 11717 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11718 *) gl_absname_cpp="$ac_cpp" ;; 11719 esac 11720 11721 case "$host_os" in 11722 mingw*) 11723 gl_dirsep_regex='[/\\]' 11724 ;; 11725 *) 11726 gl_dirsep_regex='\/' 11727 ;; 11728 esac 11729 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11730 gl_header_literal_regex=`echo 'unistd.h' \ 11731 | sed -e "$gl_make_literal_regex_sed"` 11732 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11734 s|^/[^/]|//&| 11735 p 11736 q 11737 }' 11738 11739 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11740 sed -n "$gl_absolute_header_sed"` 11741 11742 gl_header=$gl_cv_absolute_unistd_h 11743 gl_cv_next_unistd_h='"'$gl_header'"' 11744 else 11745 gl_cv_next_unistd_h='<'unistd.h'>' 11746 fi 11747 11748 11749fi 11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 11751$as_echo "$gl_cv_next_unistd_h" >&6; } 11752 fi 11753 NEXT_UNISTD_H=$gl_cv_next_unistd_h 11754 11755 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11757 gl_next_as_first_directive='<'unistd.h'>' 11758 else 11759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11760 gl_next_as_first_directive=$gl_cv_next_unistd_h 11761 fi 11762 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 11763 11764 11765 11766 11767 if test $ac_cv_header_unistd_h = yes; then 11768 HAVE_UNISTD_H=1 11769 else 11770 HAVE_UNISTD_H=0 11771 fi 11772 11773 11774 11775 11776 11777 11778 11779 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do 11780 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 11782$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 11783if eval \${$as_gl_Symbol+:} false; then : 11784 $as_echo_n "(cached) " >&6 11785else 11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11787/* end confdefs.h. */ 11788 11789#if HAVE_UNISTD_H 11790# include <unistd.h> 11791#endif 11792/* Some systems declare various items in the wrong headers. */ 11793#if !(defined __GLIBC__ && !defined __UCLIBC__) 11794# include <fcntl.h> 11795# include <stdio.h> 11796# include <stdlib.h> 11797# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 11798# include <io.h> 11799# endif 11800#endif 11801 11802int 11803main () 11804{ 11805#undef $gl_func 11806 (void) $gl_func; 11807 ; 11808 return 0; 11809} 11810_ACEOF 11811if ac_fn_c_try_compile "$LINENO"; then : 11812 eval "$as_gl_Symbol=yes" 11813else 11814 eval "$as_gl_Symbol=no" 11815fi 11816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11817fi 11818eval ac_res=\$$as_gl_Symbol 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11820$as_echo "$ac_res" >&6; } 11821 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 11822 cat >>confdefs.h <<_ACEOF 11823#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 11824_ACEOF 11825 11826 eval ac_cv_have_decl_$gl_func=yes 11827fi 11828 done 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 if test $gl_cv_have_include_next = yes; then 11844 gl_cv_next_wchar_h='<'wchar.h'>' 11845 else 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 11847$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 11848if ${gl_cv_next_wchar_h+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 11852 if test $ac_cv_header_wchar_h = yes; then 11853 11854 11855 11856 11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859#include <wchar.h> 11860_ACEOF 11861 case "$host_os" in 11862 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11863 *) gl_absname_cpp="$ac_cpp" ;; 11864 esac 11865 11866 case "$host_os" in 11867 mingw*) 11868 gl_dirsep_regex='[/\\]' 11869 ;; 11870 *) 11871 gl_dirsep_regex='\/' 11872 ;; 11873 esac 11874 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11875 gl_header_literal_regex=`echo 'wchar.h' \ 11876 | sed -e "$gl_make_literal_regex_sed"` 11877 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11878 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11879 s|^/[^/]|//&| 11880 p 11881 q 11882 }' 11883 11884 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11885 sed -n "$gl_absolute_header_sed"` 11886 11887 gl_header=$gl_cv_absolute_wchar_h 11888 gl_cv_next_wchar_h='"'$gl_header'"' 11889 else 11890 gl_cv_next_wchar_h='<'wchar.h'>' 11891 fi 11892 11893 11894fi 11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 11896$as_echo "$gl_cv_next_wchar_h" >&6; } 11897 fi 11898 NEXT_WCHAR_H=$gl_cv_next_wchar_h 11899 11900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11902 gl_next_as_first_directive='<'wchar.h'>' 11903 else 11904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11905 gl_next_as_first_directive=$gl_cv_next_wchar_h 11906 fi 11907 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 11908 11909 11910 11911 11912 if test $ac_cv_header_wchar_h = yes; then 11913 HAVE_WCHAR_H=1 11914 else 11915 HAVE_WCHAR_H=0 11916 fi 11917 11918 11919 11920 11921 11922 if test $gt_cv_c_wint_t = yes; then 11923 HAVE_WINT_T=1 11924 else 11925 HAVE_WINT_T=0 11926 fi 11927 11928 11929 11930 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do 11931 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 11933$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 11934if eval \${$as_gl_Symbol+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939 11940/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 11941 <wchar.h>. 11942 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11943 included before <wchar.h>. */ 11944#if !(defined __GLIBC__ && !defined __UCLIBC__) 11945# include <stddef.h> 11946# include <stdio.h> 11947# include <time.h> 11948#endif 11949#include <wchar.h> 11950 11951int 11952main () 11953{ 11954#undef $gl_func 11955 (void) $gl_func; 11956 ; 11957 return 0; 11958} 11959_ACEOF 11960if ac_fn_c_try_compile "$LINENO"; then : 11961 eval "$as_gl_Symbol=yes" 11962else 11963 eval "$as_gl_Symbol=no" 11964fi 11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11966fi 11967eval ac_res=\$$as_gl_Symbol 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11969$as_echo "$ac_res" >&6; } 11970 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 11971 cat >>confdefs.h <<_ACEOF 11972#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 11973_ACEOF 11974 11975 eval ac_cv_have_decl_$gl_func=yes 11976fi 11977 done 11978 11979 11980 11981 11982 11983 11984 11985 if test $ac_cv_func_iswcntrl = yes; then 11986 HAVE_ISWCNTRL=1 11987 else 11988 HAVE_ISWCNTRL=0 11989 fi 11990 11991 11992 11993 if test $gt_cv_c_wint_t = yes; then 11994 HAVE_WINT_T=1 11995 else 11996 HAVE_WINT_T=0 11997 fi 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 if test $gl_cv_have_include_next = yes; then 12010 gl_cv_next_wctype_h='<'wctype.h'>' 12011 else 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 12013$as_echo_n "checking absolute name of <wctype.h>... " >&6; } 12014if ${gl_cv_next_wctype_h+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016else 12017 12018 if test $ac_cv_header_wctype_h = yes; then 12019 12020 12021 12022 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025#include <wctype.h> 12026_ACEOF 12027 case "$host_os" in 12028 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12029 *) gl_absname_cpp="$ac_cpp" ;; 12030 esac 12031 12032 case "$host_os" in 12033 mingw*) 12034 gl_dirsep_regex='[/\\]' 12035 ;; 12036 *) 12037 gl_dirsep_regex='\/' 12038 ;; 12039 esac 12040 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12041 gl_header_literal_regex=`echo 'wctype.h' \ 12042 | sed -e "$gl_make_literal_regex_sed"` 12043 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12044 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12045 s|^/[^/]|//&| 12046 p 12047 q 12048 }' 12049 12050 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12051 sed -n "$gl_absolute_header_sed"` 12052 12053 gl_header=$gl_cv_absolute_wctype_h 12054 gl_cv_next_wctype_h='"'$gl_header'"' 12055 else 12056 gl_cv_next_wctype_h='<'wctype.h'>' 12057 fi 12058 12059 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 12062$as_echo "$gl_cv_next_wctype_h" >&6; } 12063 fi 12064 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 12065 12066 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12067 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12068 gl_next_as_first_directive='<'wctype.h'>' 12069 else 12070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12071 gl_next_as_first_directive=$gl_cv_next_wctype_h 12072 fi 12073 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 12074 12075 12076 12077 12078 if test $ac_cv_header_wctype_h = yes; then 12079 if test $ac_cv_func_iswcntrl = yes; then 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 12081$as_echo_n "checking whether iswcntrl works... " >&6; } 12082if ${gl_cv_func_iswcntrl_works+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 12086 if test "$cross_compiling" = yes; then : 12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12088/* end confdefs.h. */ 12089#include <stdlib.h> 12090 #if __GNU_LIBRARY__ == 1 12091 Linux libc5 i18n is broken. 12092 #endif 12093int 12094main () 12095{ 12096 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101if ac_fn_c_try_compile "$LINENO"; then : 12102 gl_cv_func_iswcntrl_works="guessing yes" 12103else 12104 gl_cv_func_iswcntrl_works="guessing no" 12105fi 12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12107 12108else 12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111 12112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 12113 included before <wchar.h>. 12114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 12115 must be included before <wchar.h>. */ 12116 #include <stddef.h> 12117 #include <stdio.h> 12118 #include <time.h> 12119 #include <wchar.h> 12120 #include <wctype.h> 12121 int main () { return iswprint ('x') == 0; } 12122 12123_ACEOF 12124if ac_fn_c_try_run "$LINENO"; then : 12125 gl_cv_func_iswcntrl_works=yes 12126else 12127 gl_cv_func_iswcntrl_works=no 12128fi 12129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12130 conftest.$ac_objext conftest.beam conftest.$ac_ext 12131fi 12132 12133 12134fi 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 12136$as_echo "$gl_cv_func_iswcntrl_works" >&6; } 12137 fi 12138 HAVE_WCTYPE_H=1 12139 else 12140 HAVE_WCTYPE_H=0 12141 fi 12142 12143 12144 case "$gl_cv_func_iswcntrl_works" in 12145 *yes) REPLACE_ISWCNTRL=0 ;; 12146 *) REPLACE_ISWCNTRL=1 ;; 12147 esac 12148 12149 12150 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 12151 : 12152 fi 12153 12154 if test $REPLACE_ISWCNTRL = 1; then 12155 REPLACE_TOWLOWER=1 12156 else 12157 for ac_func in towlower 12158do : 12159 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 12160if test "x$ac_cv_func_towlower" = xyes; then : 12161 cat >>confdefs.h <<_ACEOF 12162#define HAVE_TOWLOWER 1 12163_ACEOF 12164 12165fi 12166done 12167 12168 if test $ac_cv_func_towlower = yes; then 12169 REPLACE_TOWLOWER=0 12170 else 12171 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 12172 included before <wchar.h>. 12173 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 12174 must be included before <wchar.h>. */ 12175 #include <stddef.h> 12176 #include <stdio.h> 12177 #include <time.h> 12178 #include <wchar.h> 12179 #if HAVE_WCTYPE_H 12180 # include <wctype.h> 12181 #endif 12182 12183" 12184if test "x$ac_cv_have_decl_towlower" = xyes; then : 12185 ac_have_decl=1 12186else 12187 ac_have_decl=0 12188fi 12189 12190cat >>confdefs.h <<_ACEOF 12191#define HAVE_DECL_TOWLOWER $ac_have_decl 12192_ACEOF 12193 12194 if test $ac_cv_have_decl_towlower = yes; then 12195 REPLACE_TOWLOWER=1 12196 else 12197 REPLACE_TOWLOWER=0 12198 fi 12199 fi 12200 fi 12201 12202 12203 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 12204 : 12205 fi 12206 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 12208$as_echo_n "checking for wctype_t... " >&6; } 12209if ${gl_cv_type_wctype_t+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12213/* end confdefs.h. */ 12214/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 12215 included before <wchar.h>. 12216 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 12217 must be included before <wchar.h>. */ 12218 #include <stddef.h> 12219 #include <stdio.h> 12220 #include <time.h> 12221 #include <wchar.h> 12222 #if HAVE_WCTYPE_H 12223 # include <wctype.h> 12224 #endif 12225 wctype_t a; 12226 12227int 12228main () 12229{ 12230 12231 ; 12232 return 0; 12233} 12234_ACEOF 12235if ac_fn_c_try_compile "$LINENO"; then : 12236 gl_cv_type_wctype_t=yes 12237else 12238 gl_cv_type_wctype_t=no 12239fi 12240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12241 12242fi 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 12244$as_echo "$gl_cv_type_wctype_t" >&6; } 12245 if test $gl_cv_type_wctype_t = no; then 12246 HAVE_WCTYPE_T=0 12247 fi 12248 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 12250$as_echo_n "checking for wctrans_t... " >&6; } 12251if ${gl_cv_type_wctrans_t+:} false; then : 12252 $as_echo_n "(cached) " >&6 12253else 12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12255/* end confdefs.h. */ 12256/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 12257 included before <wchar.h>. 12258 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 12259 must be included before <wchar.h>. */ 12260 #include <stddef.h> 12261 #include <stdio.h> 12262 #include <time.h> 12263 #include <wchar.h> 12264 #include <wctype.h> 12265 wctrans_t a; 12266 12267int 12268main () 12269{ 12270 12271 ; 12272 return 0; 12273} 12274_ACEOF 12275if ac_fn_c_try_compile "$LINENO"; then : 12276 gl_cv_type_wctrans_t=yes 12277else 12278 gl_cv_type_wctrans_t=no 12279fi 12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12281 12282fi 12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 12284$as_echo "$gl_cv_type_wctrans_t" >&6; } 12285 if test $gl_cv_type_wctrans_t = no; then 12286 HAVE_WCTRANS_T=0 12287 fi 12288 12289 12290 for gl_func in wctype iswctype wctrans towctrans ; do 12291 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 12293$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 12294if eval \${$as_gl_Symbol+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299 12300/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 12301 <wchar.h>. 12302 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 12303 included before <wchar.h>. */ 12304#if !(defined __GLIBC__ && !defined __UCLIBC__) 12305# include <stddef.h> 12306# include <stdio.h> 12307# include <time.h> 12308# include <wchar.h> 12309#endif 12310#include <wctype.h> 12311 12312int 12313main () 12314{ 12315#undef $gl_func 12316 (void) $gl_func; 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321if ac_fn_c_try_compile "$LINENO"; then : 12322 eval "$as_gl_Symbol=yes" 12323else 12324 eval "$as_gl_Symbol=no" 12325fi 12326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12327fi 12328eval ac_res=\$$as_gl_Symbol 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12330$as_echo "$ac_res" >&6; } 12331 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 12332 cat >>confdefs.h <<_ACEOF 12333#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 12334_ACEOF 12335 12336 eval ac_cv_have_decl_$gl_func=yes 12337fi 12338 done 12339 12340 12341 : 12342 12343 12344 : 12345 12346 12347 # End of code from modules 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 gltests_libdeps= 12358 gltests_ltlibdeps= 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 gl_source_base='tests' 12369 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 12370 12371 gl_module_indicator_condition=$gltests_WITNESS 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 LIBHELLO_LIBDEPS="$gl_libdeps" 12382 12383 LIBHELLO_LTLIBDEPS="$gl_ltlibdeps" 12384 12385 12386 12387 12388$as_echo "#define COPYRIGHT_YEAR 2014 12389" >>confdefs.h 12390 12391 12392 if test -d "$srcdir/.git"; then 12393 BUILD_FROM_GIT_TRUE= 12394 BUILD_FROM_GIT_FALSE='#' 12395else 12396 BUILD_FROM_GIT_TRUE='#' 12397 BUILD_FROM_GIT_FALSE= 12398fi 12399 12400 if test -d "$srcdir/.git" && test $cross_compiling = yes; then 12401 GIT_CROSS_COMPILING_TRUE= 12402 GIT_CROSS_COMPILING_FALSE='#' 12403else 12404 GIT_CROSS_COMPILING_TRUE='#' 12405 GIT_CROSS_COMPILING_FALSE= 12406fi 12407 12408 12409if test $cross_compiling = no; then : 12410 12411 12412HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 12413 12414 12415else 12416 12417 HELP2MAN=: 12418 12419fi 12420 12421 12422 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12424$as_echo_n "checking whether NLS is requested... " >&6; } 12425 # Check whether --enable-nls was given. 12426if test "${enable_nls+set}" = set; then : 12427 enableval=$enable_nls; USE_NLS=$enableval 12428else 12429 USE_NLS=yes 12430fi 12431 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12433$as_echo "$USE_NLS" >&6; } 12434 12435 12436 12437 12438 GETTEXT_MACRO_VERSION=0.18 12439 12440 12441 12442 12443# Prepare PATH_SEPARATOR. 12444# The user is always right. 12445if test "${PATH_SEPARATOR+set}" != set; then 12446 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12447 # contains only /bin. Note that ksh looks also at the FPATH variable, 12448 # so we have to set that as well for the test. 12449 PATH_SEPARATOR=: 12450 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12451 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12452 || PATH_SEPARATOR=';' 12453 } 12454fi 12455 12456# Find out how to test for executable files. Don't use a zero-byte file, 12457# as systems may use methods other than mode bits to determine executability. 12458cat >conf$$.file <<_ASEOF 12459#! /bin/sh 12460exit 0 12461_ASEOF 12462chmod +x conf$$.file 12463if test -x conf$$.file >/dev/null 2>&1; then 12464 ac_executable_p="test -x" 12465else 12466 ac_executable_p="test -f" 12467fi 12468rm -f conf$$.file 12469 12470# Extract the first word of "msgfmt", so it can be a program name with args. 12471set dummy msgfmt; ac_word=$2 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12473$as_echo_n "checking for $ac_word... " >&6; } 12474if ${ac_cv_path_MSGFMT+:} false; then : 12475 $as_echo_n "(cached) " >&6 12476else 12477 case "$MSGFMT" in 12478 [\\/]* | ?:[\\/]*) 12479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12480 ;; 12481 *) 12482 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12483 for ac_dir in $PATH; do 12484 IFS="$ac_save_IFS" 12485 test -z "$ac_dir" && ac_dir=. 12486 for ac_exec_ext in '' $ac_executable_extensions; do 12487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12488 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12489 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 12490 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12491 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12492 break 2 12493 fi 12494 fi 12495 done 12496 done 12497 IFS="$ac_save_IFS" 12498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12499 ;; 12500esac 12501fi 12502MSGFMT="$ac_cv_path_MSGFMT" 12503if test "$MSGFMT" != ":"; then 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12505$as_echo "$MSGFMT" >&6; } 12506else 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12508$as_echo "no" >&6; } 12509fi 12510 12511 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12512set dummy gmsgfmt; ac_word=$2 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12514$as_echo_n "checking for $ac_word... " >&6; } 12515if ${ac_cv_path_GMSGFMT+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 case $GMSGFMT in 12519 [\\/]* | ?:[\\/]*) 12520 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12521 ;; 12522 *) 12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12524for as_dir in $PATH 12525do 12526 IFS=$as_save_IFS 12527 test -z "$as_dir" && as_dir=. 12528 for ac_exec_ext in '' $ac_executable_extensions; do 12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12530 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12532 break 2 12533 fi 12534done 12535 done 12536IFS=$as_save_IFS 12537 12538 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12539 ;; 12540esac 12541fi 12542GMSGFMT=$ac_cv_path_GMSGFMT 12543if test -n "$GMSGFMT"; then 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12545$as_echo "$GMSGFMT" >&6; } 12546else 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12548$as_echo "no" >&6; } 12549fi 12550 12551 12552 12553 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12554 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 12555 *) MSGFMT_015=$MSGFMT ;; 12556 esac 12557 12558 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12559 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 12560 *) GMSGFMT_015=$GMSGFMT ;; 12561 esac 12562 12563 12564 12565# Prepare PATH_SEPARATOR. 12566# The user is always right. 12567if test "${PATH_SEPARATOR+set}" != set; then 12568 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12569 # contains only /bin. Note that ksh looks also at the FPATH variable, 12570 # so we have to set that as well for the test. 12571 PATH_SEPARATOR=: 12572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12573 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12574 || PATH_SEPARATOR=';' 12575 } 12576fi 12577 12578# Find out how to test for executable files. Don't use a zero-byte file, 12579# as systems may use methods other than mode bits to determine executability. 12580cat >conf$$.file <<_ASEOF 12581#! /bin/sh 12582exit 0 12583_ASEOF 12584chmod +x conf$$.file 12585if test -x conf$$.file >/dev/null 2>&1; then 12586 ac_executable_p="test -x" 12587else 12588 ac_executable_p="test -f" 12589fi 12590rm -f conf$$.file 12591 12592# Extract the first word of "xgettext", so it can be a program name with args. 12593set dummy xgettext; ac_word=$2 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12595$as_echo_n "checking for $ac_word... " >&6; } 12596if ${ac_cv_path_XGETTEXT+:} false; then : 12597 $as_echo_n "(cached) " >&6 12598else 12599 case "$XGETTEXT" in 12600 [\\/]* | ?:[\\/]*) 12601 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12602 ;; 12603 *) 12604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12605 for ac_dir in $PATH; do 12606 IFS="$ac_save_IFS" 12607 test -z "$ac_dir" && ac_dir=. 12608 for ac_exec_ext in '' $ac_executable_extensions; do 12609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12610 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12611 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 12612 (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 12613 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12614 break 2 12615 fi 12616 fi 12617 done 12618 done 12619 IFS="$ac_save_IFS" 12620 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12621 ;; 12622esac 12623fi 12624XGETTEXT="$ac_cv_path_XGETTEXT" 12625if test "$XGETTEXT" != ":"; then 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12627$as_echo "$XGETTEXT" >&6; } 12628else 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12630$as_echo "no" >&6; } 12631fi 12632 12633 rm -f messages.po 12634 12635 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12636 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 12637 *) XGETTEXT_015=$XGETTEXT ;; 12638 esac 12639 12640 12641 12642# Prepare PATH_SEPARATOR. 12643# The user is always right. 12644if test "${PATH_SEPARATOR+set}" != set; then 12645 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12646 # contains only /bin. Note that ksh looks also at the FPATH variable, 12647 # so we have to set that as well for the test. 12648 PATH_SEPARATOR=: 12649 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12650 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12651 || PATH_SEPARATOR=';' 12652 } 12653fi 12654 12655# Find out how to test for executable files. Don't use a zero-byte file, 12656# as systems may use methods other than mode bits to determine executability. 12657cat >conf$$.file <<_ASEOF 12658#! /bin/sh 12659exit 0 12660_ASEOF 12661chmod +x conf$$.file 12662if test -x conf$$.file >/dev/null 2>&1; then 12663 ac_executable_p="test -x" 12664else 12665 ac_executable_p="test -f" 12666fi 12667rm -f conf$$.file 12668 12669# Extract the first word of "msgmerge", so it can be a program name with args. 12670set dummy msgmerge; ac_word=$2 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12672$as_echo_n "checking for $ac_word... " >&6; } 12673if ${ac_cv_path_MSGMERGE+:} false; then : 12674 $as_echo_n "(cached) " >&6 12675else 12676 case "$MSGMERGE" in 12677 [\\/]* | ?:[\\/]*) 12678 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12679 ;; 12680 *) 12681 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12682 for ac_dir in $PATH; do 12683 IFS="$ac_save_IFS" 12684 test -z "$ac_dir" && ac_dir=. 12685 for ac_exec_ext in '' $ac_executable_extensions; do 12686 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12687 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12688 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 12689 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12690 break 2 12691 fi 12692 fi 12693 done 12694 done 12695 IFS="$ac_save_IFS" 12696 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12697 ;; 12698esac 12699fi 12700MSGMERGE="$ac_cv_path_MSGMERGE" 12701if test "$MSGMERGE" != ":"; then 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12703$as_echo "$MSGMERGE" >&6; } 12704else 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12706$as_echo "no" >&6; } 12707fi 12708 12709 12710 test -n "$localedir" || localedir='${datadir}/locale' 12711 12712 12713 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 12714 12715 12716 ac_config_commands="$ac_config_commands po-directories" 12717 12718 12719 12720 if test "X$prefix" = "XNONE"; then 12721 acl_final_prefix="$ac_default_prefix" 12722 else 12723 acl_final_prefix="$prefix" 12724 fi 12725 if test "X$exec_prefix" = "XNONE"; then 12726 acl_final_exec_prefix='${prefix}' 12727 else 12728 acl_final_exec_prefix="$exec_prefix" 12729 fi 12730 acl_save_prefix="$prefix" 12731 prefix="$acl_final_prefix" 12732 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12733 prefix="$acl_save_prefix" 12734 12735 12736 12737# Check whether --with-gnu-ld was given. 12738if test "${with_gnu_ld+set}" = set; then : 12739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12740else 12741 with_gnu_ld=no 12742fi 12743 12744# Prepare PATH_SEPARATOR. 12745# The user is always right. 12746if test "${PATH_SEPARATOR+set}" != set; then 12747 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12748 # contains only /bin. Note that ksh looks also at the FPATH variable, 12749 # so we have to set that as well for the test. 12750 PATH_SEPARATOR=: 12751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12752 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12753 || PATH_SEPARATOR=';' 12754 } 12755fi 12756 12757ac_prog=ld 12758if test "$GCC" = yes; then 12759 # Check if gcc -print-prog-name=ld gives a path. 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12761$as_echo_n "checking for ld used by $CC... " >&6; } 12762 case $host in 12763 *-*-mingw*) 12764 # gcc leaves a trailing carriage return which upsets mingw 12765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12766 *) 12767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12768 esac 12769 case $ac_prog in 12770 # Accept absolute paths. 12771 [\\/]* | ?:[\\/]*) 12772 re_direlt='/[^/][^/]*/\.\./' 12773 # Canonicalize the pathname of ld 12774 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 12775 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 12776 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12777 done 12778 test -z "$LD" && LD="$ac_prog" 12779 ;; 12780 "") 12781 # If it fails, then pretend we aren't using GCC. 12782 ac_prog=ld 12783 ;; 12784 *) 12785 # If it is relative, then search for the first ld in PATH. 12786 with_gnu_ld=unknown 12787 ;; 12788 esac 12789elif test "$with_gnu_ld" = yes; then 12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12791$as_echo_n "checking for GNU ld... " >&6; } 12792else 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12794$as_echo_n "checking for non-GNU ld... " >&6; } 12795fi 12796if ${acl_cv_path_LD+:} false; then : 12797 $as_echo_n "(cached) " >&6 12798else 12799 if test -z "$LD"; then 12800 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12801 for ac_dir in $PATH; do 12802 IFS="$acl_save_ifs" 12803 test -z "$ac_dir" && ac_dir=. 12804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12805 acl_cv_path_LD="$ac_dir/$ac_prog" 12806 # Check to see if the program is GNU ld. I'd rather use --version, 12807 # but apparently some variants of GNU ld only accept -v. 12808 # Break only if it was the GNU/non-GNU ld that we prefer. 12809 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 12810 *GNU* | *'with BFD'*) 12811 test "$with_gnu_ld" != no && break 12812 ;; 12813 *) 12814 test "$with_gnu_ld" != yes && break 12815 ;; 12816 esac 12817 fi 12818 done 12819 IFS="$acl_save_ifs" 12820else 12821 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12822fi 12823fi 12824 12825LD="$acl_cv_path_LD" 12826if test -n "$LD"; then 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12828$as_echo "$LD" >&6; } 12829else 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12831$as_echo "no" >&6; } 12832fi 12833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12835$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12836if ${acl_cv_prog_gnu_ld+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12840case `$LD -v 2>&1 </dev/null` in 12841*GNU* | *'with BFD'*) 12842 acl_cv_prog_gnu_ld=yes 12843 ;; 12844*) 12845 acl_cv_prog_gnu_ld=no 12846 ;; 12847esac 12848fi 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 12850$as_echo "$acl_cv_prog_gnu_ld" >&6; } 12851with_gnu_ld=$acl_cv_prog_gnu_ld 12852 12853 12854 12855 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 12857$as_echo_n "checking for shared library run path origin... " >&6; } 12858if ${acl_cv_rpath+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860else 12861 12862 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 12863 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 12864 . ./conftest.sh 12865 rm -f ./conftest.sh 12866 acl_cv_rpath=done 12867 12868fi 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 12870$as_echo "$acl_cv_rpath" >&6; } 12871 wl="$acl_cv_wl" 12872 acl_libext="$acl_cv_libext" 12873 acl_shlibext="$acl_cv_shlibext" 12874 acl_libname_spec="$acl_cv_libname_spec" 12875 acl_library_names_spec="$acl_cv_library_names_spec" 12876 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 12877 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 12878 acl_hardcode_direct="$acl_cv_hardcode_direct" 12879 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 12880 # Check whether --enable-rpath was given. 12881if test "${enable_rpath+set}" = set; then : 12882 enableval=$enable_rpath; : 12883else 12884 enable_rpath=yes 12885fi 12886 12887 12888 12889 12890 acl_libdirstem=lib 12891 acl_libdirstem2= 12892 case "$host_os" in 12893 solaris*) 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 12895$as_echo_n "checking for 64-bit host... " >&6; } 12896if ${gl_cv_solaris_64bit+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12900/* end confdefs.h. */ 12901 12902#ifdef _LP64 12903sixtyfour bits 12904#endif 12905 12906_ACEOF 12907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12908 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 12909 gl_cv_solaris_64bit=yes 12910else 12911 gl_cv_solaris_64bit=no 12912fi 12913rm -f conftest* 12914 12915 12916fi 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 12918$as_echo "$gl_cv_solaris_64bit" >&6; } 12919 if test $gl_cv_solaris_64bit = yes; then 12920 acl_libdirstem=lib/64 12921 case "$host_cpu" in 12922 sparc*) acl_libdirstem2=lib/sparcv9 ;; 12923 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 12924 esac 12925 fi 12926 ;; 12927 *) 12928 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 12929 if test -n "$searchpath"; then 12930 acl_save_IFS="${IFS= }"; IFS=":" 12931 for searchdir in $searchpath; do 12932 if test -d "$searchdir"; then 12933 case "$searchdir" in 12934 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 12935 */../ | */.. ) 12936 # Better ignore directories of this form. They are misleading. 12937 ;; 12938 *) searchdir=`cd "$searchdir" && pwd` 12939 case "$searchdir" in 12940 */lib64 ) acl_libdirstem=lib64 ;; 12941 esac ;; 12942 esac 12943 fi 12944 done 12945 IFS="$acl_save_IFS" 12946 fi 12947 ;; 12948 esac 12949 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 use_additional=yes 12963 12964 acl_save_prefix="$prefix" 12965 prefix="$acl_final_prefix" 12966 acl_save_exec_prefix="$exec_prefix" 12967 exec_prefix="$acl_final_exec_prefix" 12968 12969 eval additional_includedir=\"$includedir\" 12970 eval additional_libdir=\"$libdir\" 12971 12972 exec_prefix="$acl_save_exec_prefix" 12973 prefix="$acl_save_prefix" 12974 12975 12976# Check whether --with-libiconv-prefix was given. 12977if test "${with_libiconv_prefix+set}" = set; then : 12978 withval=$with_libiconv_prefix; 12979 if test "X$withval" = "Xno"; then 12980 use_additional=no 12981 else 12982 if test "X$withval" = "X"; then 12983 12984 acl_save_prefix="$prefix" 12985 prefix="$acl_final_prefix" 12986 acl_save_exec_prefix="$exec_prefix" 12987 exec_prefix="$acl_final_exec_prefix" 12988 12989 eval additional_includedir=\"$includedir\" 12990 eval additional_libdir=\"$libdir\" 12991 12992 exec_prefix="$acl_save_exec_prefix" 12993 prefix="$acl_save_prefix" 12994 12995 else 12996 additional_includedir="$withval/include" 12997 additional_libdir="$withval/$acl_libdirstem" 12998 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 12999 && ! test -d "$withval/$acl_libdirstem"; then 13000 additional_libdir="$withval/$acl_libdirstem2" 13001 fi 13002 fi 13003 fi 13004 13005fi 13006 13007 LIBICONV= 13008 LTLIBICONV= 13009 INCICONV= 13010 LIBICONV_PREFIX= 13011 HAVE_LIBICONV= 13012 rpathdirs= 13013 ltrpathdirs= 13014 names_already_handled= 13015 names_next_round='iconv ' 13016 while test -n "$names_next_round"; do 13017 names_this_round="$names_next_round" 13018 names_next_round= 13019 for name in $names_this_round; do 13020 already_handled= 13021 for n in $names_already_handled; do 13022 if test "$n" = "$name"; then 13023 already_handled=yes 13024 break 13025 fi 13026 done 13027 if test -z "$already_handled"; then 13028 names_already_handled="$names_already_handled $name" 13029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13030 eval value=\"\$HAVE_LIB$uppername\" 13031 if test -n "$value"; then 13032 if test "$value" = yes; then 13033 eval value=\"\$LIB$uppername\" 13034 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13035 eval value=\"\$LTLIB$uppername\" 13036 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13037 else 13038 : 13039 fi 13040 else 13041 found_dir= 13042 found_la= 13043 found_so= 13044 found_a= 13045 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13046 if test -n "$acl_shlibext"; then 13047 shrext=".$acl_shlibext" # typically: shrext=.so 13048 else 13049 shrext= 13050 fi 13051 if test $use_additional = yes; then 13052 dir="$additional_libdir" 13053 if test -n "$acl_shlibext"; then 13054 if test -f "$dir/$libname$shrext"; then 13055 found_dir="$dir" 13056 found_so="$dir/$libname$shrext" 13057 else 13058 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13059 ver=`(cd "$dir" && \ 13060 for f in "$libname$shrext".*; do echo "$f"; done \ 13061 | sed -e "s,^$libname$shrext\\\\.,," \ 13062 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13063 | sed 1q ) 2>/dev/null` 13064 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13065 found_dir="$dir" 13066 found_so="$dir/$libname$shrext.$ver" 13067 fi 13068 else 13069 eval library_names=\"$acl_library_names_spec\" 13070 for f in $library_names; do 13071 if test -f "$dir/$f"; then 13072 found_dir="$dir" 13073 found_so="$dir/$f" 13074 break 13075 fi 13076 done 13077 fi 13078 fi 13079 fi 13080 if test "X$found_dir" = "X"; then 13081 if test -f "$dir/$libname.$acl_libext"; then 13082 found_dir="$dir" 13083 found_a="$dir/$libname.$acl_libext" 13084 fi 13085 fi 13086 if test "X$found_dir" != "X"; then 13087 if test -f "$dir/$libname.la"; then 13088 found_la="$dir/$libname.la" 13089 fi 13090 fi 13091 fi 13092 if test "X$found_dir" = "X"; then 13093 for x in $LDFLAGS $LTLIBICONV; do 13094 13095 acl_save_prefix="$prefix" 13096 prefix="$acl_final_prefix" 13097 acl_save_exec_prefix="$exec_prefix" 13098 exec_prefix="$acl_final_exec_prefix" 13099 eval x=\"$x\" 13100 exec_prefix="$acl_save_exec_prefix" 13101 prefix="$acl_save_prefix" 13102 13103 case "$x" in 13104 -L*) 13105 dir=`echo "X$x" | sed -e 's/^X-L//'` 13106 if test -n "$acl_shlibext"; then 13107 if test -f "$dir/$libname$shrext"; then 13108 found_dir="$dir" 13109 found_so="$dir/$libname$shrext" 13110 else 13111 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13112 ver=`(cd "$dir" && \ 13113 for f in "$libname$shrext".*; do echo "$f"; done \ 13114 | sed -e "s,^$libname$shrext\\\\.,," \ 13115 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13116 | sed 1q ) 2>/dev/null` 13117 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13118 found_dir="$dir" 13119 found_so="$dir/$libname$shrext.$ver" 13120 fi 13121 else 13122 eval library_names=\"$acl_library_names_spec\" 13123 for f in $library_names; do 13124 if test -f "$dir/$f"; then 13125 found_dir="$dir" 13126 found_so="$dir/$f" 13127 break 13128 fi 13129 done 13130 fi 13131 fi 13132 fi 13133 if test "X$found_dir" = "X"; then 13134 if test -f "$dir/$libname.$acl_libext"; then 13135 found_dir="$dir" 13136 found_a="$dir/$libname.$acl_libext" 13137 fi 13138 fi 13139 if test "X$found_dir" != "X"; then 13140 if test -f "$dir/$libname.la"; then 13141 found_la="$dir/$libname.la" 13142 fi 13143 fi 13144 ;; 13145 esac 13146 if test "X$found_dir" != "X"; then 13147 break 13148 fi 13149 done 13150 fi 13151 if test "X$found_dir" != "X"; then 13152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13153 if test "X$found_so" != "X"; then 13154 if test "$enable_rpath" = no \ 13155 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13156 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13158 else 13159 haveit= 13160 for x in $ltrpathdirs; do 13161 if test "X$x" = "X$found_dir"; then 13162 haveit=yes 13163 break 13164 fi 13165 done 13166 if test -z "$haveit"; then 13167 ltrpathdirs="$ltrpathdirs $found_dir" 13168 fi 13169 if test "$acl_hardcode_direct" = yes; then 13170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13171 else 13172 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13174 haveit= 13175 for x in $rpathdirs; do 13176 if test "X$x" = "X$found_dir"; then 13177 haveit=yes 13178 break 13179 fi 13180 done 13181 if test -z "$haveit"; then 13182 rpathdirs="$rpathdirs $found_dir" 13183 fi 13184 else 13185 haveit= 13186 for x in $LDFLAGS $LIBICONV; do 13187 13188 acl_save_prefix="$prefix" 13189 prefix="$acl_final_prefix" 13190 acl_save_exec_prefix="$exec_prefix" 13191 exec_prefix="$acl_final_exec_prefix" 13192 eval x=\"$x\" 13193 exec_prefix="$acl_save_exec_prefix" 13194 prefix="$acl_save_prefix" 13195 13196 if test "X$x" = "X-L$found_dir"; then 13197 haveit=yes 13198 break 13199 fi 13200 done 13201 if test -z "$haveit"; then 13202 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13203 fi 13204 if test "$acl_hardcode_minus_L" != no; then 13205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13206 else 13207 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13208 fi 13209 fi 13210 fi 13211 fi 13212 else 13213 if test "X$found_a" != "X"; then 13214 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13215 else 13216 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13217 fi 13218 fi 13219 additional_includedir= 13220 case "$found_dir" in 13221 */$acl_libdirstem | */$acl_libdirstem/) 13222 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13223 if test "$name" = 'iconv'; then 13224 LIBICONV_PREFIX="$basedir" 13225 fi 13226 additional_includedir="$basedir/include" 13227 ;; 13228 */$acl_libdirstem2 | */$acl_libdirstem2/) 13229 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13230 if test "$name" = 'iconv'; then 13231 LIBICONV_PREFIX="$basedir" 13232 fi 13233 additional_includedir="$basedir/include" 13234 ;; 13235 esac 13236 if test "X$additional_includedir" != "X"; then 13237 if test "X$additional_includedir" != "X/usr/include"; then 13238 haveit= 13239 if test "X$additional_includedir" = "X/usr/local/include"; then 13240 if test -n "$GCC"; then 13241 case $host_os in 13242 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13243 esac 13244 fi 13245 fi 13246 if test -z "$haveit"; then 13247 for x in $CPPFLAGS $INCICONV; do 13248 13249 acl_save_prefix="$prefix" 13250 prefix="$acl_final_prefix" 13251 acl_save_exec_prefix="$exec_prefix" 13252 exec_prefix="$acl_final_exec_prefix" 13253 eval x=\"$x\" 13254 exec_prefix="$acl_save_exec_prefix" 13255 prefix="$acl_save_prefix" 13256 13257 if test "X$x" = "X-I$additional_includedir"; then 13258 haveit=yes 13259 break 13260 fi 13261 done 13262 if test -z "$haveit"; then 13263 if test -d "$additional_includedir"; then 13264 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13265 fi 13266 fi 13267 fi 13268 fi 13269 fi 13270 if test -n "$found_la"; then 13271 save_libdir="$libdir" 13272 case "$found_la" in 13273 */* | *\\*) . "$found_la" ;; 13274 *) . "./$found_la" ;; 13275 esac 13276 libdir="$save_libdir" 13277 for dep in $dependency_libs; do 13278 case "$dep" in 13279 -L*) 13280 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13281 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13282 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13283 haveit= 13284 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13285 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13286 if test -n "$GCC"; then 13287 case $host_os in 13288 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13289 esac 13290 fi 13291 fi 13292 if test -z "$haveit"; then 13293 haveit= 13294 for x in $LDFLAGS $LIBICONV; do 13295 13296 acl_save_prefix="$prefix" 13297 prefix="$acl_final_prefix" 13298 acl_save_exec_prefix="$exec_prefix" 13299 exec_prefix="$acl_final_exec_prefix" 13300 eval x=\"$x\" 13301 exec_prefix="$acl_save_exec_prefix" 13302 prefix="$acl_save_prefix" 13303 13304 if test "X$x" = "X-L$additional_libdir"; then 13305 haveit=yes 13306 break 13307 fi 13308 done 13309 if test -z "$haveit"; then 13310 if test -d "$additional_libdir"; then 13311 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13312 fi 13313 fi 13314 haveit= 13315 for x in $LDFLAGS $LTLIBICONV; do 13316 13317 acl_save_prefix="$prefix" 13318 prefix="$acl_final_prefix" 13319 acl_save_exec_prefix="$exec_prefix" 13320 exec_prefix="$acl_final_exec_prefix" 13321 eval x=\"$x\" 13322 exec_prefix="$acl_save_exec_prefix" 13323 prefix="$acl_save_prefix" 13324 13325 if test "X$x" = "X-L$additional_libdir"; then 13326 haveit=yes 13327 break 13328 fi 13329 done 13330 if test -z "$haveit"; then 13331 if test -d "$additional_libdir"; then 13332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13333 fi 13334 fi 13335 fi 13336 fi 13337 ;; 13338 -R*) 13339 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13340 if test "$enable_rpath" != no; then 13341 haveit= 13342 for x in $rpathdirs; do 13343 if test "X$x" = "X$dir"; then 13344 haveit=yes 13345 break 13346 fi 13347 done 13348 if test -z "$haveit"; then 13349 rpathdirs="$rpathdirs $dir" 13350 fi 13351 haveit= 13352 for x in $ltrpathdirs; do 13353 if test "X$x" = "X$dir"; then 13354 haveit=yes 13355 break 13356 fi 13357 done 13358 if test -z "$haveit"; then 13359 ltrpathdirs="$ltrpathdirs $dir" 13360 fi 13361 fi 13362 ;; 13363 -l*) 13364 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13365 ;; 13366 *.la) 13367 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13368 ;; 13369 *) 13370 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13371 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13372 ;; 13373 esac 13374 done 13375 fi 13376 else 13377 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13378 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13379 fi 13380 fi 13381 fi 13382 done 13383 done 13384 if test "X$rpathdirs" != "X"; then 13385 if test -n "$acl_hardcode_libdir_separator"; then 13386 alldirs= 13387 for found_dir in $rpathdirs; do 13388 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13389 done 13390 acl_save_libdir="$libdir" 13391 libdir="$alldirs" 13392 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13393 libdir="$acl_save_libdir" 13394 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13395 else 13396 for found_dir in $rpathdirs; do 13397 acl_save_libdir="$libdir" 13398 libdir="$found_dir" 13399 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13400 libdir="$acl_save_libdir" 13401 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13402 done 13403 fi 13404 fi 13405 if test "X$ltrpathdirs" != "X"; then 13406 for found_dir in $ltrpathdirs; do 13407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13408 done 13409 fi 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13442$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13443if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 gt_save_LIBS="$LIBS" 13447 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450#include <CoreFoundation/CFPreferences.h> 13451int 13452main () 13453{ 13454CFPreferencesCopyAppValue(NULL, NULL) 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_c_try_link "$LINENO"; then : 13460 gt_cv_func_CFPreferencesCopyAppValue=yes 13461else 13462 gt_cv_func_CFPreferencesCopyAppValue=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext \ 13465 conftest$ac_exeext conftest.$ac_ext 13466 LIBS="$gt_save_LIBS" 13467fi 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13469$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13470 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13471 13472$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13473 13474 fi 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 13476$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 13477if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 13478 $as_echo_n "(cached) " >&6 13479else 13480 gt_save_LIBS="$LIBS" 13481 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484#include <CoreFoundation/CFLocale.h> 13485int 13486main () 13487{ 13488CFLocaleCopyCurrent(); 13489 ; 13490 return 0; 13491} 13492_ACEOF 13493if ac_fn_c_try_link "$LINENO"; then : 13494 gt_cv_func_CFLocaleCopyCurrent=yes 13495else 13496 gt_cv_func_CFLocaleCopyCurrent=no 13497fi 13498rm -f core conftest.err conftest.$ac_objext \ 13499 conftest$ac_exeext conftest.$ac_ext 13500 LIBS="$gt_save_LIBS" 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 13503$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 13504 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13505 13506$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 13507 13508 fi 13509 INTL_MACOSX_LIBS= 13510 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13511 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 13512 fi 13513 13514 13515 13516 13517 13518 13519 LIBINTL= 13520 LTLIBINTL= 13521 POSUB= 13522 13523 case " $gt_needs " in 13524 *" need-formatstring-macros "*) gt_api_version=3 ;; 13525 *" need-ngettext "*) gt_api_version=2 ;; 13526 *) gt_api_version=1 ;; 13527 esac 13528 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13529 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13530 13531 if test "$USE_NLS" = "yes"; then 13532 gt_use_preinstalled_gnugettext=no 13533 13534 13535 if test $gt_api_version -ge 3; then 13536 gt_revision_test_code=' 13537#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13538#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13539#endif 13540typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13541' 13542 else 13543 gt_revision_test_code= 13544 fi 13545 if test $gt_api_version -ge 2; then 13546 gt_expression_test_code=' + * ngettext ("", "", 0)' 13547 else 13548 gt_expression_test_code= 13549 fi 13550 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13552$as_echo_n "checking for GNU gettext in libc... " >&6; } 13553if eval \${$gt_func_gnugettext_libc+:} false; then : 13554 $as_echo_n "(cached) " >&6 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558 13559#include <libintl.h> 13560$gt_revision_test_code 13561extern int _nl_msg_cat_cntr; 13562extern int *_nl_domain_bindings; 13563 13564int 13565main () 13566{ 13567 13568bindtextdomain ("", ""); 13569return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 13570 13571 ; 13572 return 0; 13573} 13574_ACEOF 13575if ac_fn_c_try_link "$LINENO"; then : 13576 eval "$gt_func_gnugettext_libc=yes" 13577else 13578 eval "$gt_func_gnugettext_libc=no" 13579fi 13580rm -f core conftest.err conftest.$ac_objext \ 13581 conftest$ac_exeext conftest.$ac_ext 13582fi 13583eval ac_res=\$$gt_func_gnugettext_libc 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13585$as_echo "$ac_res" >&6; } 13586 13587 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13588 13589 13590 13591 13592 13593 am_save_CPPFLAGS="$CPPFLAGS" 13594 13595 for element in $INCICONV; do 13596 haveit= 13597 for x in $CPPFLAGS; do 13598 13599 acl_save_prefix="$prefix" 13600 prefix="$acl_final_prefix" 13601 acl_save_exec_prefix="$exec_prefix" 13602 exec_prefix="$acl_final_exec_prefix" 13603 eval x=\"$x\" 13604 exec_prefix="$acl_save_exec_prefix" 13605 prefix="$acl_save_prefix" 13606 13607 if test "X$x" = "X$element"; then 13608 haveit=yes 13609 break 13610 fi 13611 done 13612 if test -z "$haveit"; then 13613 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13614 fi 13615 done 13616 13617 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13619$as_echo_n "checking for iconv... " >&6; } 13620if ${am_cv_func_iconv+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 13624 am_cv_func_iconv="no, consider installing GNU libiconv" 13625 am_cv_lib_iconv=no 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628 13629#include <stdlib.h> 13630#include <iconv.h> 13631 13632int 13633main () 13634{ 13635iconv_t cd = iconv_open("",""); 13636 iconv(cd,NULL,NULL,NULL,NULL); 13637 iconv_close(cd); 13638 ; 13639 return 0; 13640} 13641_ACEOF 13642if ac_fn_c_try_link "$LINENO"; then : 13643 am_cv_func_iconv=yes 13644fi 13645rm -f core conftest.err conftest.$ac_objext \ 13646 conftest$ac_exeext conftest.$ac_ext 13647 if test "$am_cv_func_iconv" != yes; then 13648 am_save_LIBS="$LIBS" 13649 LIBS="$LIBS $LIBICONV" 13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13651/* end confdefs.h. */ 13652 13653#include <stdlib.h> 13654#include <iconv.h> 13655 13656int 13657main () 13658{ 13659iconv_t cd = iconv_open("",""); 13660 iconv(cd,NULL,NULL,NULL,NULL); 13661 iconv_close(cd); 13662 ; 13663 return 0; 13664} 13665_ACEOF 13666if ac_fn_c_try_link "$LINENO"; then : 13667 am_cv_lib_iconv=yes 13668 am_cv_func_iconv=yes 13669fi 13670rm -f core conftest.err conftest.$ac_objext \ 13671 conftest$ac_exeext conftest.$ac_ext 13672 LIBS="$am_save_LIBS" 13673 fi 13674 13675fi 13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13677$as_echo "$am_cv_func_iconv" >&6; } 13678 if test "$am_cv_func_iconv" = yes; then 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13680$as_echo_n "checking for working iconv... " >&6; } 13681if ${am_cv_func_iconv_works+:} false; then : 13682 $as_echo_n "(cached) " >&6 13683else 13684 13685 am_save_LIBS="$LIBS" 13686 if test $am_cv_lib_iconv = yes; then 13687 LIBS="$LIBS $LIBICONV" 13688 fi 13689 am_cv_func_iconv_works=no 13690 for ac_iconv_const in '' 'const'; do 13691 if test "$cross_compiling" = yes; then : 13692 case "$host_os" in 13693 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13694 *) am_cv_func_iconv_works="guessing yes" ;; 13695 esac 13696else 13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13698/* end confdefs.h. */ 13699 13700#include <iconv.h> 13701#include <string.h> 13702 13703#ifndef ICONV_CONST 13704# define ICONV_CONST $ac_iconv_const 13705#endif 13706 13707int 13708main () 13709{ 13710int result = 0; 13711 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 13712 returns. */ 13713 { 13714 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13715 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13716 { 13717 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 13718 char buf[10]; 13719 ICONV_CONST char *inptr = input; 13720 size_t inbytesleft = strlen (input); 13721 char *outptr = buf; 13722 size_t outbytesleft = sizeof (buf); 13723 size_t res = iconv (cd_utf8_to_88591, 13724 &inptr, &inbytesleft, 13725 &outptr, &outbytesleft); 13726 if (res == 0) 13727 result |= 1; 13728 iconv_close (cd_utf8_to_88591); 13729 } 13730 } 13731 /* Test against Solaris 10 bug: Failures are not distinguishable from 13732 successful returns. */ 13733 { 13734 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13735 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13736 { 13737 static ICONV_CONST char input[] = "\263"; 13738 char buf[10]; 13739 ICONV_CONST char *inptr = input; 13740 size_t inbytesleft = strlen (input); 13741 char *outptr = buf; 13742 size_t outbytesleft = sizeof (buf); 13743 size_t res = iconv (cd_ascii_to_88591, 13744 &inptr, &inbytesleft, 13745 &outptr, &outbytesleft); 13746 if (res == 0) 13747 result |= 2; 13748 iconv_close (cd_ascii_to_88591); 13749 } 13750 } 13751 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13752 { 13753 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13754 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13755 { 13756 static ICONV_CONST char input[] = "\304"; 13757 static char buf[2] = { (char)0xDE, (char)0xAD }; 13758 ICONV_CONST char *inptr = input; 13759 size_t inbytesleft = 1; 13760 char *outptr = buf; 13761 size_t outbytesleft = 1; 13762 size_t res = iconv (cd_88591_to_utf8, 13763 &inptr, &inbytesleft, 13764 &outptr, &outbytesleft); 13765 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13766 result |= 4; 13767 iconv_close (cd_88591_to_utf8); 13768 } 13769 } 13770#if 0 /* This bug could be worked around by the caller. */ 13771 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 13772 { 13773 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 13774 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13775 { 13776 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 13777 char buf[50]; 13778 ICONV_CONST char *inptr = input; 13779 size_t inbytesleft = strlen (input); 13780 char *outptr = buf; 13781 size_t outbytesleft = sizeof (buf); 13782 size_t res = iconv (cd_88591_to_utf8, 13783 &inptr, &inbytesleft, 13784 &outptr, &outbytesleft); 13785 if ((int)res > 0) 13786 result |= 8; 13787 iconv_close (cd_88591_to_utf8); 13788 } 13789 } 13790#endif 13791 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 13792 provided. */ 13793 if (/* Try standardized names. */ 13794 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 13795 /* Try IRIX, OSF/1 names. */ 13796 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 13797 /* Try AIX names. */ 13798 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 13799 /* Try HP-UX names. */ 13800 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 13801 result |= 16; 13802 return result; 13803 13804 ; 13805 return 0; 13806} 13807_ACEOF 13808if ac_fn_c_try_run "$LINENO"; then : 13809 am_cv_func_iconv_works=yes 13810fi 13811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13812 conftest.$ac_objext conftest.beam conftest.$ac_ext 13813fi 13814 13815 test "$am_cv_func_iconv_works" = no || break 13816 done 13817 LIBS="$am_save_LIBS" 13818 13819fi 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13821$as_echo "$am_cv_func_iconv_works" >&6; } 13822 case "$am_cv_func_iconv_works" in 13823 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13824 *) am_func_iconv=yes ;; 13825 esac 13826 else 13827 am_func_iconv=no am_cv_lib_iconv=no 13828 fi 13829 if test "$am_func_iconv" = yes; then 13830 13831$as_echo "#define HAVE_ICONV 1" >>confdefs.h 13832 13833 fi 13834 if test "$am_cv_lib_iconv" = yes; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13836$as_echo_n "checking how to link with libiconv... " >&6; } 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13838$as_echo "$LIBICONV" >&6; } 13839 else 13840 CPPFLAGS="$am_save_CPPFLAGS" 13841 LIBICONV= 13842 LTLIBICONV= 13843 fi 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 use_additional=yes 13856 13857 acl_save_prefix="$prefix" 13858 prefix="$acl_final_prefix" 13859 acl_save_exec_prefix="$exec_prefix" 13860 exec_prefix="$acl_final_exec_prefix" 13861 13862 eval additional_includedir=\"$includedir\" 13863 eval additional_libdir=\"$libdir\" 13864 13865 exec_prefix="$acl_save_exec_prefix" 13866 prefix="$acl_save_prefix" 13867 13868 13869# Check whether --with-libintl-prefix was given. 13870if test "${with_libintl_prefix+set}" = set; then : 13871 withval=$with_libintl_prefix; 13872 if test "X$withval" = "Xno"; then 13873 use_additional=no 13874 else 13875 if test "X$withval" = "X"; then 13876 13877 acl_save_prefix="$prefix" 13878 prefix="$acl_final_prefix" 13879 acl_save_exec_prefix="$exec_prefix" 13880 exec_prefix="$acl_final_exec_prefix" 13881 13882 eval additional_includedir=\"$includedir\" 13883 eval additional_libdir=\"$libdir\" 13884 13885 exec_prefix="$acl_save_exec_prefix" 13886 prefix="$acl_save_prefix" 13887 13888 else 13889 additional_includedir="$withval/include" 13890 additional_libdir="$withval/$acl_libdirstem" 13891 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13892 && ! test -d "$withval/$acl_libdirstem"; then 13893 additional_libdir="$withval/$acl_libdirstem2" 13894 fi 13895 fi 13896 fi 13897 13898fi 13899 13900 LIBINTL= 13901 LTLIBINTL= 13902 INCINTL= 13903 LIBINTL_PREFIX= 13904 HAVE_LIBINTL= 13905 rpathdirs= 13906 ltrpathdirs= 13907 names_already_handled= 13908 names_next_round='intl ' 13909 while test -n "$names_next_round"; do 13910 names_this_round="$names_next_round" 13911 names_next_round= 13912 for name in $names_this_round; do 13913 already_handled= 13914 for n in $names_already_handled; do 13915 if test "$n" = "$name"; then 13916 already_handled=yes 13917 break 13918 fi 13919 done 13920 if test -z "$already_handled"; then 13921 names_already_handled="$names_already_handled $name" 13922 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13923 eval value=\"\$HAVE_LIB$uppername\" 13924 if test -n "$value"; then 13925 if test "$value" = yes; then 13926 eval value=\"\$LIB$uppername\" 13927 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13928 eval value=\"\$LTLIB$uppername\" 13929 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13930 else 13931 : 13932 fi 13933 else 13934 found_dir= 13935 found_la= 13936 found_so= 13937 found_a= 13938 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13939 if test -n "$acl_shlibext"; then 13940 shrext=".$acl_shlibext" # typically: shrext=.so 13941 else 13942 shrext= 13943 fi 13944 if test $use_additional = yes; then 13945 dir="$additional_libdir" 13946 if test -n "$acl_shlibext"; then 13947 if test -f "$dir/$libname$shrext"; then 13948 found_dir="$dir" 13949 found_so="$dir/$libname$shrext" 13950 else 13951 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13952 ver=`(cd "$dir" && \ 13953 for f in "$libname$shrext".*; do echo "$f"; done \ 13954 | sed -e "s,^$libname$shrext\\\\.,," \ 13955 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13956 | sed 1q ) 2>/dev/null` 13957 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13958 found_dir="$dir" 13959 found_so="$dir/$libname$shrext.$ver" 13960 fi 13961 else 13962 eval library_names=\"$acl_library_names_spec\" 13963 for f in $library_names; do 13964 if test -f "$dir/$f"; then 13965 found_dir="$dir" 13966 found_so="$dir/$f" 13967 break 13968 fi 13969 done 13970 fi 13971 fi 13972 fi 13973 if test "X$found_dir" = "X"; then 13974 if test -f "$dir/$libname.$acl_libext"; then 13975 found_dir="$dir" 13976 found_a="$dir/$libname.$acl_libext" 13977 fi 13978 fi 13979 if test "X$found_dir" != "X"; then 13980 if test -f "$dir/$libname.la"; then 13981 found_la="$dir/$libname.la" 13982 fi 13983 fi 13984 fi 13985 if test "X$found_dir" = "X"; then 13986 for x in $LDFLAGS $LTLIBINTL; do 13987 13988 acl_save_prefix="$prefix" 13989 prefix="$acl_final_prefix" 13990 acl_save_exec_prefix="$exec_prefix" 13991 exec_prefix="$acl_final_exec_prefix" 13992 eval x=\"$x\" 13993 exec_prefix="$acl_save_exec_prefix" 13994 prefix="$acl_save_prefix" 13995 13996 case "$x" in 13997 -L*) 13998 dir=`echo "X$x" | sed -e 's/^X-L//'` 13999 if test -n "$acl_shlibext"; then 14000 if test -f "$dir/$libname$shrext"; then 14001 found_dir="$dir" 14002 found_so="$dir/$libname$shrext" 14003 else 14004 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14005 ver=`(cd "$dir" && \ 14006 for f in "$libname$shrext".*; do echo "$f"; done \ 14007 | sed -e "s,^$libname$shrext\\\\.,," \ 14008 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14009 | sed 1q ) 2>/dev/null` 14010 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14011 found_dir="$dir" 14012 found_so="$dir/$libname$shrext.$ver" 14013 fi 14014 else 14015 eval library_names=\"$acl_library_names_spec\" 14016 for f in $library_names; do 14017 if test -f "$dir/$f"; then 14018 found_dir="$dir" 14019 found_so="$dir/$f" 14020 break 14021 fi 14022 done 14023 fi 14024 fi 14025 fi 14026 if test "X$found_dir" = "X"; then 14027 if test -f "$dir/$libname.$acl_libext"; then 14028 found_dir="$dir" 14029 found_a="$dir/$libname.$acl_libext" 14030 fi 14031 fi 14032 if test "X$found_dir" != "X"; then 14033 if test -f "$dir/$libname.la"; then 14034 found_la="$dir/$libname.la" 14035 fi 14036 fi 14037 ;; 14038 esac 14039 if test "X$found_dir" != "X"; then 14040 break 14041 fi 14042 done 14043 fi 14044 if test "X$found_dir" != "X"; then 14045 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14046 if test "X$found_so" != "X"; then 14047 if test "$enable_rpath" = no \ 14048 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 14049 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 14050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14051 else 14052 haveit= 14053 for x in $ltrpathdirs; do 14054 if test "X$x" = "X$found_dir"; then 14055 haveit=yes 14056 break 14057 fi 14058 done 14059 if test -z "$haveit"; then 14060 ltrpathdirs="$ltrpathdirs $found_dir" 14061 fi 14062 if test "$acl_hardcode_direct" = yes; then 14063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14064 else 14065 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 14066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14067 haveit= 14068 for x in $rpathdirs; do 14069 if test "X$x" = "X$found_dir"; then 14070 haveit=yes 14071 break 14072 fi 14073 done 14074 if test -z "$haveit"; then 14075 rpathdirs="$rpathdirs $found_dir" 14076 fi 14077 else 14078 haveit= 14079 for x in $LDFLAGS $LIBINTL; do 14080 14081 acl_save_prefix="$prefix" 14082 prefix="$acl_final_prefix" 14083 acl_save_exec_prefix="$exec_prefix" 14084 exec_prefix="$acl_final_exec_prefix" 14085 eval x=\"$x\" 14086 exec_prefix="$acl_save_exec_prefix" 14087 prefix="$acl_save_prefix" 14088 14089 if test "X$x" = "X-L$found_dir"; then 14090 haveit=yes 14091 break 14092 fi 14093 done 14094 if test -z "$haveit"; then 14095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14096 fi 14097 if test "$acl_hardcode_minus_L" != no; then 14098 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14099 else 14100 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14101 fi 14102 fi 14103 fi 14104 fi 14105 else 14106 if test "X$found_a" != "X"; then 14107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14108 else 14109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14110 fi 14111 fi 14112 additional_includedir= 14113 case "$found_dir" in 14114 */$acl_libdirstem | */$acl_libdirstem/) 14115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14116 if test "$name" = 'intl'; then 14117 LIBINTL_PREFIX="$basedir" 14118 fi 14119 additional_includedir="$basedir/include" 14120 ;; 14121 */$acl_libdirstem2 | */$acl_libdirstem2/) 14122 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 14123 if test "$name" = 'intl'; then 14124 LIBINTL_PREFIX="$basedir" 14125 fi 14126 additional_includedir="$basedir/include" 14127 ;; 14128 esac 14129 if test "X$additional_includedir" != "X"; then 14130 if test "X$additional_includedir" != "X/usr/include"; then 14131 haveit= 14132 if test "X$additional_includedir" = "X/usr/local/include"; then 14133 if test -n "$GCC"; then 14134 case $host_os in 14135 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14136 esac 14137 fi 14138 fi 14139 if test -z "$haveit"; then 14140 for x in $CPPFLAGS $INCINTL; do 14141 14142 acl_save_prefix="$prefix" 14143 prefix="$acl_final_prefix" 14144 acl_save_exec_prefix="$exec_prefix" 14145 exec_prefix="$acl_final_exec_prefix" 14146 eval x=\"$x\" 14147 exec_prefix="$acl_save_exec_prefix" 14148 prefix="$acl_save_prefix" 14149 14150 if test "X$x" = "X-I$additional_includedir"; then 14151 haveit=yes 14152 break 14153 fi 14154 done 14155 if test -z "$haveit"; then 14156 if test -d "$additional_includedir"; then 14157 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14158 fi 14159 fi 14160 fi 14161 fi 14162 fi 14163 if test -n "$found_la"; then 14164 save_libdir="$libdir" 14165 case "$found_la" in 14166 */* | *\\*) . "$found_la" ;; 14167 *) . "./$found_la" ;; 14168 esac 14169 libdir="$save_libdir" 14170 for dep in $dependency_libs; do 14171 case "$dep" in 14172 -L*) 14173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14174 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14175 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14176 haveit= 14177 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14178 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14179 if test -n "$GCC"; then 14180 case $host_os in 14181 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14182 esac 14183 fi 14184 fi 14185 if test -z "$haveit"; then 14186 haveit= 14187 for x in $LDFLAGS $LIBINTL; do 14188 14189 acl_save_prefix="$prefix" 14190 prefix="$acl_final_prefix" 14191 acl_save_exec_prefix="$exec_prefix" 14192 exec_prefix="$acl_final_exec_prefix" 14193 eval x=\"$x\" 14194 exec_prefix="$acl_save_exec_prefix" 14195 prefix="$acl_save_prefix" 14196 14197 if test "X$x" = "X-L$additional_libdir"; then 14198 haveit=yes 14199 break 14200 fi 14201 done 14202 if test -z "$haveit"; then 14203 if test -d "$additional_libdir"; then 14204 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14205 fi 14206 fi 14207 haveit= 14208 for x in $LDFLAGS $LTLIBINTL; do 14209 14210 acl_save_prefix="$prefix" 14211 prefix="$acl_final_prefix" 14212 acl_save_exec_prefix="$exec_prefix" 14213 exec_prefix="$acl_final_exec_prefix" 14214 eval x=\"$x\" 14215 exec_prefix="$acl_save_exec_prefix" 14216 prefix="$acl_save_prefix" 14217 14218 if test "X$x" = "X-L$additional_libdir"; then 14219 haveit=yes 14220 break 14221 fi 14222 done 14223 if test -z "$haveit"; then 14224 if test -d "$additional_libdir"; then 14225 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14226 fi 14227 fi 14228 fi 14229 fi 14230 ;; 14231 -R*) 14232 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14233 if test "$enable_rpath" != no; then 14234 haveit= 14235 for x in $rpathdirs; do 14236 if test "X$x" = "X$dir"; then 14237 haveit=yes 14238 break 14239 fi 14240 done 14241 if test -z "$haveit"; then 14242 rpathdirs="$rpathdirs $dir" 14243 fi 14244 haveit= 14245 for x in $ltrpathdirs; do 14246 if test "X$x" = "X$dir"; then 14247 haveit=yes 14248 break 14249 fi 14250 done 14251 if test -z "$haveit"; then 14252 ltrpathdirs="$ltrpathdirs $dir" 14253 fi 14254 fi 14255 ;; 14256 -l*) 14257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14258 ;; 14259 *.la) 14260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14261 ;; 14262 *) 14263 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14265 ;; 14266 esac 14267 done 14268 fi 14269 else 14270 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14271 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14272 fi 14273 fi 14274 fi 14275 done 14276 done 14277 if test "X$rpathdirs" != "X"; then 14278 if test -n "$acl_hardcode_libdir_separator"; then 14279 alldirs= 14280 for found_dir in $rpathdirs; do 14281 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14282 done 14283 acl_save_libdir="$libdir" 14284 libdir="$alldirs" 14285 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14286 libdir="$acl_save_libdir" 14287 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14288 else 14289 for found_dir in $rpathdirs; do 14290 acl_save_libdir="$libdir" 14291 libdir="$found_dir" 14292 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14293 libdir="$acl_save_libdir" 14294 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14295 done 14296 fi 14297 fi 14298 if test "X$ltrpathdirs" != "X"; then 14299 for found_dir in $ltrpathdirs; do 14300 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14301 done 14302 fi 14303 14304 14305 14306 14307 14308 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14310$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14311if eval \${$gt_func_gnugettext_libintl+:} false; then : 14312 $as_echo_n "(cached) " >&6 14313else 14314 gt_save_CPPFLAGS="$CPPFLAGS" 14315 CPPFLAGS="$CPPFLAGS $INCINTL" 14316 gt_save_LIBS="$LIBS" 14317 LIBS="$LIBS $LIBINTL" 14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14319/* end confdefs.h. */ 14320 14321#include <libintl.h> 14322$gt_revision_test_code 14323extern int _nl_msg_cat_cntr; 14324extern 14325#ifdef __cplusplus 14326"C" 14327#endif 14328const char *_nl_expand_alias (const char *); 14329 14330int 14331main () 14332{ 14333 14334bindtextdomain ("", ""); 14335return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14336 14337 ; 14338 return 0; 14339} 14340_ACEOF 14341if ac_fn_c_try_link "$LINENO"; then : 14342 eval "$gt_func_gnugettext_libintl=yes" 14343else 14344 eval "$gt_func_gnugettext_libintl=no" 14345fi 14346rm -f core conftest.err conftest.$ac_objext \ 14347 conftest$ac_exeext conftest.$ac_ext 14348 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14349 LIBS="$LIBS $LIBICONV" 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352 14353#include <libintl.h> 14354$gt_revision_test_code 14355extern int _nl_msg_cat_cntr; 14356extern 14357#ifdef __cplusplus 14358"C" 14359#endif 14360const char *_nl_expand_alias (const char *); 14361 14362int 14363main () 14364{ 14365 14366bindtextdomain ("", ""); 14367return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14368 14369 ; 14370 return 0; 14371} 14372_ACEOF 14373if ac_fn_c_try_link "$LINENO"; then : 14374 LIBINTL="$LIBINTL $LIBICONV" 14375 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14376 eval "$gt_func_gnugettext_libintl=yes" 14377 14378fi 14379rm -f core conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381 fi 14382 CPPFLAGS="$gt_save_CPPFLAGS" 14383 LIBS="$gt_save_LIBS" 14384fi 14385eval ac_res=\$$gt_func_gnugettext_libintl 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14387$as_echo "$ac_res" >&6; } 14388 fi 14389 14390 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14391 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14392 && test "$PACKAGE" != gettext-runtime \ 14393 && test "$PACKAGE" != gettext-tools; }; then 14394 gt_use_preinstalled_gnugettext=yes 14395 else 14396 LIBINTL= 14397 LTLIBINTL= 14398 INCINTL= 14399 fi 14400 14401 14402 14403 if test -n "$INTL_MACOSX_LIBS"; then 14404 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14405 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14406 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14407 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14408 fi 14409 fi 14410 14411 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14412 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14413 14414$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14415 14416 else 14417 USE_NLS=no 14418 fi 14419 fi 14420 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14422$as_echo_n "checking whether to use NLS... " >&6; } 14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14424$as_echo "$USE_NLS" >&6; } 14425 if test "$USE_NLS" = "yes"; then 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14427$as_echo_n "checking where the gettext function comes from... " >&6; } 14428 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14429 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14430 gt_source="external libintl" 14431 else 14432 gt_source="libc" 14433 fi 14434 else 14435 gt_source="included intl directory" 14436 fi 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 14438$as_echo "$gt_source" >&6; } 14439 fi 14440 14441 if test "$USE_NLS" = "yes"; then 14442 14443 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14444 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 14446$as_echo_n "checking how to link with libintl... " >&6; } 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 14448$as_echo "$LIBINTL" >&6; } 14449 14450 for element in $INCINTL; do 14451 haveit= 14452 for x in $CPPFLAGS; do 14453 14454 acl_save_prefix="$prefix" 14455 prefix="$acl_final_prefix" 14456 acl_save_exec_prefix="$exec_prefix" 14457 exec_prefix="$acl_final_exec_prefix" 14458 eval x=\"$x\" 14459 exec_prefix="$acl_save_exec_prefix" 14460 prefix="$acl_save_prefix" 14461 14462 if test "X$x" = "X$element"; then 14463 haveit=yes 14464 break 14465 fi 14466 done 14467 if test -z "$haveit"; then 14468 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14469 fi 14470 done 14471 14472 fi 14473 14474 14475$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14476 14477 14478$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 14479 14480 fi 14481 14482 POSUB=po 14483 fi 14484 14485 14486 14487 INTLLIBS="$LIBINTL" 14488 14489 14490 14491 14492 14493 14494 14495ac_config_files="$ac_config_files Makefile po/Makefile.in" 14496 14497cat >confcache <<\_ACEOF 14498# This file is a shell script that caches the results of configure 14499# tests run on this system so they can be shared between configure 14500# scripts and configure runs, see configure's option --config-cache. 14501# It is not useful on other systems. If it contains results you don't 14502# want to keep, you may remove or edit it. 14503# 14504# config.status only pays attention to the cache file if you give it 14505# the --recheck option to rerun configure. 14506# 14507# `ac_cv_env_foo' variables (set or unset) will be overridden when 14508# loading this file, other *unset* `ac_cv_foo' will be assigned the 14509# following values. 14510 14511_ACEOF 14512 14513# The following way of writing the cache mishandles newlines in values, 14514# but we know of no workaround that is simple, portable, and efficient. 14515# So, we kill variables containing newlines. 14516# Ultrix sh set writes to stderr and can't be redirected directly, 14517# and sets the high bit in the cache file unless we assign to the vars. 14518( 14519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14520 eval ac_val=\$$ac_var 14521 case $ac_val in #( 14522 *${as_nl}*) 14523 case $ac_var in #( 14524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14525$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14526 esac 14527 case $ac_var in #( 14528 _ | IFS | as_nl) ;; #( 14529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14530 *) { eval $ac_var=; unset $ac_var;} ;; 14531 esac ;; 14532 esac 14533 done 14534 14535 (set) 2>&1 | 14536 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14537 *${as_nl}ac_space=\ *) 14538 # `set' does not quote correctly, so add quotes: double-quote 14539 # substitution turns \\\\ into \\, and sed turns \\ into \. 14540 sed -n \ 14541 "s/'/'\\\\''/g; 14542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14543 ;; #( 14544 *) 14545 # `set' quotes correctly as required by POSIX, so do not add quotes. 14546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14547 ;; 14548 esac | 14549 sort 14550) | 14551 sed ' 14552 /^ac_cv_env_/b end 14553 t clear 14554 :clear 14555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14556 t end 14557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14558 :end' >>confcache 14559if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14560 if test -w "$cache_file"; then 14561 if test "x$cache_file" != "x/dev/null"; then 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14563$as_echo "$as_me: updating cache $cache_file" >&6;} 14564 if test ! -f "$cache_file" || test -h "$cache_file"; then 14565 cat confcache >"$cache_file" 14566 else 14567 case $cache_file in #( 14568 */* | ?:*) 14569 mv -f confcache "$cache_file"$$ && 14570 mv -f "$cache_file"$$ "$cache_file" ;; #( 14571 *) 14572 mv -f confcache "$cache_file" ;; 14573 esac 14574 fi 14575 fi 14576 else 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14578$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14579 fi 14580fi 14581rm -f confcache 14582 14583test "x$prefix" = xNONE && prefix=$ac_default_prefix 14584# Let make expand exec_prefix. 14585test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14586 14587DEFS=-DHAVE_CONFIG_H 14588 14589ac_libobjs= 14590ac_ltlibobjs= 14591U= 14592for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14593 # 1. Remove the extension, and $U if already installed. 14594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14597 # will be set to the directory where LIBOBJS objects are built. 14598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14600done 14601LIBOBJS=$ac_libobjs 14602 14603LTLIBOBJS=$ac_ltlibobjs 14604 14605 14606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14607$as_echo_n "checking that generated files are newer than configure... " >&6; } 14608 if test -n "$am_sleep_pid"; then 14609 # Hide warnings about reused PIDs. 14610 wait $am_sleep_pid 2>/dev/null 14611 fi 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14613$as_echo "done" >&6; } 14614 if test -n "$EXEEXT"; then 14615 am__EXEEXT_TRUE= 14616 am__EXEEXT_FALSE='#' 14617else 14618 am__EXEEXT_TRUE='#' 14619 am__EXEEXT_FALSE= 14620fi 14621 14622if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14623 as_fn_error $? "conditional \"AMDEP\" was never defined. 14624Usually this means the macro was only invoked conditionally." "$LINENO" 5 14625fi 14626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14627 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14628Usually this means the macro was only invoked conditionally." "$LINENO" 5 14629fi 14630if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 14631 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 14632Usually this means the macro was only invoked conditionally." "$LINENO" 5 14633fi 14634if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 14635 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 14636Usually this means the macro was only invoked conditionally." "$LINENO" 5 14637fi 14638CONFIG_INCLUDE=config.h 14639 14640 14641 14642 14643 # Tell AC_LIBSOURCES where to find source files like alloca.c. 14644 14645 14646 # This hack originated in bison. It is required when using non-recursive 14647 # automake rules to build from gnulib-provided lib/ sources. Hence, LIB_DIR 14648 # is usually simply "lib". Those rules use the list of names like "fchdir.o" 14649 # and "strstr.o" in gl_LIBOBJS. With non-recursive make, we must prefix each 14650 # such file name with the "lib/" prefix. See also build-aux/prefix-gnulib-mk. 14651 gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, , lib/,g'` 14652 14653 # Listing the names of the variables to prefix is error-prone. 14654 # Rather, adjust each AC_SUBST'd variable whose name ends in '_H' 14655 # and whose value ends in '.h'. 14656 for ac_var in $ac_subst_vars 14657 do 14658 eval "ac_val=\$$ac_var" 14659 case $ac_var:$ac_val in 14660 (*_H:*.h) eval "$ac_var=lib/\$$ac_var";; 14661 esac 14662 done 14663 14664 14665if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 14666 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 14667Usually this means the macro was only invoked conditionally." "$LINENO" 5 14668fi 14669if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 14670 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 14671Usually this means the macro was only invoked conditionally." "$LINENO" 5 14672fi 14673 14674 gl_libobjs= 14675 gl_ltlibobjs= 14676 if test -n "$gl_LIBOBJS"; then 14677 # Remove the extension. 14678 sed_drop_objext='s/\.o$//;s/\.obj$//' 14679 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 14680 gl_libobjs="$gl_libobjs $i.$ac_objext" 14681 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 14682 done 14683 fi 14684 gl_LIBOBJS=$gl_libobjs 14685 14686 gl_LTLIBOBJS=$gl_ltlibobjs 14687 14688 14689 14690 gltests_libobjs= 14691 gltests_ltlibobjs= 14692 if test -n "$gltests_LIBOBJS"; then 14693 # Remove the extension. 14694 sed_drop_objext='s/\.o$//;s/\.obj$//' 14695 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 14696 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 14697 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 14698 done 14699 fi 14700 gltests_LIBOBJS=$gltests_libobjs 14701 14702 gltests_LTLIBOBJS=$gltests_ltlibobjs 14703 14704 14705if test -z "${BUILD_FROM_GIT_TRUE}" && test -z "${BUILD_FROM_GIT_FALSE}"; then 14706 as_fn_error $? "conditional \"BUILD_FROM_GIT\" was never defined. 14707Usually this means the macro was only invoked conditionally." "$LINENO" 5 14708fi 14709if test -z "${GIT_CROSS_COMPILING_TRUE}" && test -z "${GIT_CROSS_COMPILING_FALSE}"; then 14710 as_fn_error $? "conditional \"GIT_CROSS_COMPILING\" was never defined. 14711Usually this means the macro was only invoked conditionally." "$LINENO" 5 14712fi 14713 14714: "${CONFIG_STATUS=./config.status}" 14715ac_write_fail=0 14716ac_clean_files_save=$ac_clean_files 14717ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14718{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14720as_write_fail=0 14721cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14722#! $SHELL 14723# Generated by $as_me. 14724# Run this file to recreate the current configuration. 14725# Compiler output produced by configure, useful for debugging 14726# configure, is in config.log if it exists. 14727 14728debug=false 14729ac_cs_recheck=false 14730ac_cs_silent=false 14731 14732SHELL=\${CONFIG_SHELL-$SHELL} 14733export SHELL 14734_ASEOF 14735cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14736## -------------------- ## 14737## M4sh Initialization. ## 14738## -------------------- ## 14739 14740# Be more Bourne compatible 14741DUALCASE=1; export DUALCASE # for MKS sh 14742if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14743 emulate sh 14744 NULLCMD=: 14745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14746 # is contrary to our usage. Disable this feature. 14747 alias -g '${1+"$@"}'='"$@"' 14748 setopt NO_GLOB_SUBST 14749else 14750 case `(set -o) 2>/dev/null` in #( 14751 *posix*) : 14752 set -o posix ;; #( 14753 *) : 14754 ;; 14755esac 14756fi 14757 14758 14759as_nl=' 14760' 14761export as_nl 14762# Printing a long string crashes Solaris 7 /usr/bin/printf. 14763as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14766# Prefer a ksh shell builtin over an external printf program on Solaris, 14767# but without wasting forks for bash or zsh. 14768if test -z "$BASH_VERSION$ZSH_VERSION" \ 14769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14770 as_echo='print -r --' 14771 as_echo_n='print -rn --' 14772elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14773 as_echo='printf %s\n' 14774 as_echo_n='printf %s' 14775else 14776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14778 as_echo_n='/usr/ucb/echo -n' 14779 else 14780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14781 as_echo_n_body='eval 14782 arg=$1; 14783 case $arg in #( 14784 *"$as_nl"*) 14785 expr "X$arg" : "X\\(.*\\)$as_nl"; 14786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14787 esac; 14788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14789 ' 14790 export as_echo_n_body 14791 as_echo_n='sh -c $as_echo_n_body as_echo' 14792 fi 14793 export as_echo_body 14794 as_echo='sh -c $as_echo_body as_echo' 14795fi 14796 14797# The user is always right. 14798if test "${PATH_SEPARATOR+set}" != set; then 14799 PATH_SEPARATOR=: 14800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14802 PATH_SEPARATOR=';' 14803 } 14804fi 14805 14806 14807# IFS 14808# We need space, tab and new line, in precisely that order. Quoting is 14809# there to prevent editors from complaining about space-tab. 14810# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14811# splitting by setting IFS to empty value.) 14812IFS=" "" $as_nl" 14813 14814# Find who we are. Look in the path if we contain no directory separator. 14815as_myself= 14816case $0 in #(( 14817 *[\\/]* ) as_myself=$0 ;; 14818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14819for as_dir in $PATH 14820do 14821 IFS=$as_save_IFS 14822 test -z "$as_dir" && as_dir=. 14823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14824 done 14825IFS=$as_save_IFS 14826 14827 ;; 14828esac 14829# We did not find ourselves, most probably we were run as `sh COMMAND' 14830# in which case we are not to be found in the path. 14831if test "x$as_myself" = x; then 14832 as_myself=$0 14833fi 14834if test ! -f "$as_myself"; then 14835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14836 exit 1 14837fi 14838 14839# Unset variables that we do not need and which cause bugs (e.g. in 14840# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14841# suppresses any "Segmentation fault" message there. '((' could 14842# trigger a bug in pdksh 5.2.14. 14843for as_var in BASH_ENV ENV MAIL MAILPATH 14844do eval test x\${$as_var+set} = xset \ 14845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14846done 14847PS1='$ ' 14848PS2='> ' 14849PS4='+ ' 14850 14851# NLS nuisances. 14852LC_ALL=C 14853export LC_ALL 14854LANGUAGE=C 14855export LANGUAGE 14856 14857# CDPATH. 14858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14859 14860 14861# as_fn_error STATUS ERROR [LINENO LOG_FD] 14862# ---------------------------------------- 14863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14865# script with STATUS, using 1 if that was 0. 14866as_fn_error () 14867{ 14868 as_status=$1; test $as_status -eq 0 && as_status=1 14869 if test "$4"; then 14870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14872 fi 14873 $as_echo "$as_me: error: $2" >&2 14874 as_fn_exit $as_status 14875} # as_fn_error 14876 14877 14878# as_fn_set_status STATUS 14879# ----------------------- 14880# Set $? to STATUS, without forking. 14881as_fn_set_status () 14882{ 14883 return $1 14884} # as_fn_set_status 14885 14886# as_fn_exit STATUS 14887# ----------------- 14888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14889as_fn_exit () 14890{ 14891 set +e 14892 as_fn_set_status $1 14893 exit $1 14894} # as_fn_exit 14895 14896# as_fn_unset VAR 14897# --------------- 14898# Portably unset VAR. 14899as_fn_unset () 14900{ 14901 { eval $1=; unset $1;} 14902} 14903as_unset=as_fn_unset 14904# as_fn_append VAR VALUE 14905# ---------------------- 14906# Append the text in VALUE to the end of the definition contained in VAR. Take 14907# advantage of any shell optimizations that allow amortized linear growth over 14908# repeated appends, instead of the typical quadratic growth present in naive 14909# implementations. 14910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14911 eval 'as_fn_append () 14912 { 14913 eval $1+=\$2 14914 }' 14915else 14916 as_fn_append () 14917 { 14918 eval $1=\$$1\$2 14919 } 14920fi # as_fn_append 14921 14922# as_fn_arith ARG... 14923# ------------------ 14924# Perform arithmetic evaluation on the ARGs, and store the result in the 14925# global $as_val. Take advantage of shells that can avoid forks. The arguments 14926# must be portable across $(()) and expr. 14927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14928 eval 'as_fn_arith () 14929 { 14930 as_val=$(( $* )) 14931 }' 14932else 14933 as_fn_arith () 14934 { 14935 as_val=`expr "$@" || test $? -eq 1` 14936 } 14937fi # as_fn_arith 14938 14939 14940if expr a : '\(a\)' >/dev/null 2>&1 && 14941 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14942 as_expr=expr 14943else 14944 as_expr=false 14945fi 14946 14947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14948 as_basename=basename 14949else 14950 as_basename=false 14951fi 14952 14953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14954 as_dirname=dirname 14955else 14956 as_dirname=false 14957fi 14958 14959as_me=`$as_basename -- "$0" || 14960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14961 X"$0" : 'X\(//\)$' \| \ 14962 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14963$as_echo X/"$0" | 14964 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14965 s//\1/ 14966 q 14967 } 14968 /^X\/\(\/\/\)$/{ 14969 s//\1/ 14970 q 14971 } 14972 /^X\/\(\/\).*/{ 14973 s//\1/ 14974 q 14975 } 14976 s/.*/./; q'` 14977 14978# Avoid depending upon Character Ranges. 14979as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14981as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14982as_cr_digits='0123456789' 14983as_cr_alnum=$as_cr_Letters$as_cr_digits 14984 14985ECHO_C= ECHO_N= ECHO_T= 14986case `echo -n x` in #((((( 14987-n*) 14988 case `echo 'xy\c'` in 14989 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14990 xy) ECHO_C='\c';; 14991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14992 ECHO_T=' ';; 14993 esac;; 14994*) 14995 ECHO_N='-n';; 14996esac 14997 14998rm -f conf$$ conf$$.exe conf$$.file 14999if test -d conf$$.dir; then 15000 rm -f conf$$.dir/conf$$.file 15001else 15002 rm -f conf$$.dir 15003 mkdir conf$$.dir 2>/dev/null 15004fi 15005if (echo >conf$$.file) 2>/dev/null; then 15006 if ln -s conf$$.file conf$$ 2>/dev/null; then 15007 as_ln_s='ln -s' 15008 # ... but there are two gotchas: 15009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15011 # In both cases, we have to default to `cp -pR'. 15012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15013 as_ln_s='cp -pR' 15014 elif ln conf$$.file conf$$ 2>/dev/null; then 15015 as_ln_s=ln 15016 else 15017 as_ln_s='cp -pR' 15018 fi 15019else 15020 as_ln_s='cp -pR' 15021fi 15022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15023rmdir conf$$.dir 2>/dev/null 15024 15025 15026# as_fn_mkdir_p 15027# ------------- 15028# Create "$as_dir" as a directory, including parents if necessary. 15029as_fn_mkdir_p () 15030{ 15031 15032 case $as_dir in #( 15033 -*) as_dir=./$as_dir;; 15034 esac 15035 test -d "$as_dir" || eval $as_mkdir_p || { 15036 as_dirs= 15037 while :; do 15038 case $as_dir in #( 15039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15040 *) as_qdir=$as_dir;; 15041 esac 15042 as_dirs="'$as_qdir' $as_dirs" 15043 as_dir=`$as_dirname -- "$as_dir" || 15044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15045 X"$as_dir" : 'X\(//\)[^/]' \| \ 15046 X"$as_dir" : 'X\(//\)$' \| \ 15047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15048$as_echo X"$as_dir" | 15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15050 s//\1/ 15051 q 15052 } 15053 /^X\(\/\/\)[^/].*/{ 15054 s//\1/ 15055 q 15056 } 15057 /^X\(\/\/\)$/{ 15058 s//\1/ 15059 q 15060 } 15061 /^X\(\/\).*/{ 15062 s//\1/ 15063 q 15064 } 15065 s/.*/./; q'` 15066 test -d "$as_dir" && break 15067 done 15068 test -z "$as_dirs" || eval "mkdir $as_dirs" 15069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15070 15071 15072} # as_fn_mkdir_p 15073if mkdir -p . 2>/dev/null; then 15074 as_mkdir_p='mkdir -p "$as_dir"' 15075else 15076 test -d ./-p && rmdir ./-p 15077 as_mkdir_p=false 15078fi 15079 15080 15081# as_fn_executable_p FILE 15082# ----------------------- 15083# Test if FILE is an executable regular file. 15084as_fn_executable_p () 15085{ 15086 test -f "$1" && test -x "$1" 15087} # as_fn_executable_p 15088as_test_x='test -x' 15089as_executable_p=as_fn_executable_p 15090 15091# Sed expression to map a string onto a valid CPP name. 15092as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15093 15094# Sed expression to map a string onto a valid variable name. 15095as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15096 15097 15098exec 6>&1 15099## ----------------------------------- ## 15100## Main body of $CONFIG_STATUS script. ## 15101## ----------------------------------- ## 15102_ASEOF 15103test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15104 15105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15106# Save the log message, to keep $0 and so on meaningful, and to 15107# report actual input values of CONFIG_FILES etc. instead of their 15108# values after options handling. 15109ac_log=" 15110This file was extended by GNU Hello $as_me 2.10, which was 15111generated by GNU Autoconf 2.69. Invocation command line was 15112 15113 CONFIG_FILES = $CONFIG_FILES 15114 CONFIG_HEADERS = $CONFIG_HEADERS 15115 CONFIG_LINKS = $CONFIG_LINKS 15116 CONFIG_COMMANDS = $CONFIG_COMMANDS 15117 $ $0 $@ 15118 15119on `(hostname || uname -n) 2>/dev/null | sed 1q` 15120" 15121 15122_ACEOF 15123 15124case $ac_config_files in *" 15125"*) set x $ac_config_files; shift; ac_config_files=$*;; 15126esac 15127 15128case $ac_config_headers in *" 15129"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15130esac 15131 15132 15133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15134# Files that config.status was made for. 15135config_files="$ac_config_files" 15136config_headers="$ac_config_headers" 15137config_links="$ac_config_links" 15138config_commands="$ac_config_commands" 15139 15140_ACEOF 15141 15142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15143ac_cs_usage="\ 15144\`$as_me' instantiates files and other configuration actions 15145from templates according to the current configuration. Unless the files 15146and actions are specified as TAGs, all are instantiated by default. 15147 15148Usage: $0 [OPTION]... [TAG]... 15149 15150 -h, --help print this help, then exit 15151 -V, --version print version number and configuration settings, then exit 15152 --config print configuration, then exit 15153 -q, --quiet, --silent 15154 do not print progress messages 15155 -d, --debug don't remove temporary files 15156 --recheck update $as_me by reconfiguring in the same conditions 15157 --file=FILE[:TEMPLATE] 15158 instantiate the configuration file FILE 15159 --header=FILE[:TEMPLATE] 15160 instantiate the configuration header FILE 15161 15162Configuration files: 15163$config_files 15164 15165Configuration headers: 15166$config_headers 15167 15168Configuration links: 15169$config_links 15170 15171Configuration commands: 15172$config_commands 15173 15174Report bugs to <bug-hello@gnu.org>. 15175GNU Hello home page: <http://www.gnu.org/software/hello/>. 15176General help using GNU software: <http://www.gnu.org/gethelp/>." 15177 15178_ACEOF 15179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15180ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15181ac_cs_version="\\ 15182GNU Hello config.status 2.10 15183configured by $0, generated by GNU Autoconf 2.69, 15184 with options \\"\$ac_cs_config\\" 15185 15186Copyright (C) 2012 Free Software Foundation, Inc. 15187This config.status script is free software; the Free Software Foundation 15188gives unlimited permission to copy, distribute and modify it." 15189 15190ac_pwd='$ac_pwd' 15191srcdir='$srcdir' 15192INSTALL='$INSTALL' 15193MKDIR_P='$MKDIR_P' 15194AWK='$AWK' 15195test -n "\$AWK" || AWK=awk 15196_ACEOF 15197 15198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15199# The default lists apply if the user does not specify any file. 15200ac_need_defaults=: 15201while test $# != 0 15202do 15203 case $1 in 15204 --*=?*) 15205 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15207 ac_shift=: 15208 ;; 15209 --*=) 15210 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15211 ac_optarg= 15212 ac_shift=: 15213 ;; 15214 *) 15215 ac_option=$1 15216 ac_optarg=$2 15217 ac_shift=shift 15218 ;; 15219 esac 15220 15221 case $ac_option in 15222 # Handling of the options. 15223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15224 ac_cs_recheck=: ;; 15225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15226 $as_echo "$ac_cs_version"; exit ;; 15227 --config | --confi | --conf | --con | --co | --c ) 15228 $as_echo "$ac_cs_config"; exit ;; 15229 --debug | --debu | --deb | --de | --d | -d ) 15230 debug=: ;; 15231 --file | --fil | --fi | --f ) 15232 $ac_shift 15233 case $ac_optarg in 15234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15235 '') as_fn_error $? "missing file argument" ;; 15236 esac 15237 as_fn_append CONFIG_FILES " '$ac_optarg'" 15238 ac_need_defaults=false;; 15239 --header | --heade | --head | --hea ) 15240 $ac_shift 15241 case $ac_optarg in 15242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15243 esac 15244 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15245 ac_need_defaults=false;; 15246 --he | --h) 15247 # Conflict between --help and --header 15248 as_fn_error $? "ambiguous option: \`$1' 15249Try \`$0 --help' for more information.";; 15250 --help | --hel | -h ) 15251 $as_echo "$ac_cs_usage"; exit ;; 15252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15253 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15254 ac_cs_silent=: ;; 15255 15256 # This is an error. 15257 -*) as_fn_error $? "unrecognized option: \`$1' 15258Try \`$0 --help' for more information." ;; 15259 15260 *) as_fn_append ac_config_targets " $1" 15261 ac_need_defaults=false ;; 15262 15263 esac 15264 shift 15265done 15266 15267ac_configure_extra_args= 15268 15269if $ac_cs_silent; then 15270 exec 6>/dev/null 15271 ac_configure_extra_args="$ac_configure_extra_args --silent" 15272fi 15273 15274_ACEOF 15275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15276if \$ac_cs_recheck; then 15277 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15278 shift 15279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15280 CONFIG_SHELL='$SHELL' 15281 export CONFIG_SHELL 15282 exec "\$@" 15283fi 15284 15285_ACEOF 15286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15287exec 5>>config.log 15288{ 15289 echo 15290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15291## Running $as_me. ## 15292_ASBOX 15293 $as_echo "$ac_log" 15294} >&5 15295 15296_ACEOF 15297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15298# 15299# INIT-COMMANDS 15300# 15301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15302GNUmakefile=$GNUmakefile 15303# Capture the value of obsolete ALL_LINGUAS because we need it to compute 15304 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 15305 # from automake < 1.5. 15306 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15307 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15308 LINGUAS="${LINGUAS-%UNSET%}" 15309 15310 15311_ACEOF 15312 15313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15314 15315# Handling of arguments. 15316for ac_config_target in $ac_config_targets 15317do 15318 case $ac_config_target in 15319 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15320 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15321 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 15322 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 15323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15324 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 15325 15326 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15327 esac 15328done 15329 15330 15331# If the user did not use the arguments to specify the items to instantiate, 15332# then the envvar interface is used. Set only those that are not. 15333# We use the long form for the default assignment because of an extremely 15334# bizarre bug on SunOS 4.1.3. 15335if $ac_need_defaults; then 15336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15338 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 15339 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15340fi 15341 15342# Have a temporary directory for convenience. Make it in the build tree 15343# simply because there is no reason against having it here, and in addition, 15344# creating and moving files from /tmp can sometimes cause problems. 15345# Hook for its removal unless debugging. 15346# Note that there is a small window in which the directory will not be cleaned: 15347# after its creation but before its name has been assigned to `$tmp'. 15348$debug || 15349{ 15350 tmp= ac_tmp= 15351 trap 'exit_status=$? 15352 : "${ac_tmp:=$tmp}" 15353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15354' 0 15355 trap 'as_fn_exit 1' 1 2 13 15 15356} 15357# Create a (secure) tmp directory for tmp files. 15358 15359{ 15360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15361 test -d "$tmp" 15362} || 15363{ 15364 tmp=./conf$$-$RANDOM 15365 (umask 077 && mkdir "$tmp") 15366} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15367ac_tmp=$tmp 15368 15369# Set up the scripts for CONFIG_FILES section. 15370# No need to generate them if there are no CONFIG_FILES. 15371# This happens for instance with `./config.status config.h'. 15372if test -n "$CONFIG_FILES"; then 15373 15374 15375ac_cr=`echo X | tr X '\015'` 15376# On cygwin, bash can eat \r inside `` if the user requested igncr. 15377# But we know of no other shell where ac_cr would be empty at this 15378# point, so we can use a bashism as a fallback. 15379if test "x$ac_cr" = x; then 15380 eval ac_cr=\$\'\\r\' 15381fi 15382ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15383if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15384 ac_cs_awk_cr='\\r' 15385else 15386 ac_cs_awk_cr=$ac_cr 15387fi 15388 15389echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15390_ACEOF 15391 15392 15393{ 15394 echo "cat >conf$$subs.awk <<_ACEOF" && 15395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15396 echo "_ACEOF" 15397} >conf$$subs.sh || 15398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15399ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15400ac_delim='%!_!# ' 15401for ac_last_try in false false false false false :; do 15402 . ./conf$$subs.sh || 15403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15404 15405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15406 if test $ac_delim_n = $ac_delim_num; then 15407 break 15408 elif $ac_last_try; then 15409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15410 else 15411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15412 fi 15413done 15414rm -f conf$$subs.sh 15415 15416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15417cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15418_ACEOF 15419sed -n ' 15420h 15421s/^/S["/; s/!.*/"]=/ 15422p 15423g 15424s/^[^!]*!// 15425:repl 15426t repl 15427s/'"$ac_delim"'$// 15428t delim 15429:nl 15430h 15431s/\(.\{148\}\)..*/\1/ 15432t more1 15433s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15434p 15435n 15436b repl 15437:more1 15438s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15439p 15440g 15441s/.\{148\}// 15442t nl 15443:delim 15444h 15445s/\(.\{148\}\)..*/\1/ 15446t more2 15447s/["\\]/\\&/g; s/^/"/; s/$/"/ 15448p 15449b 15450:more2 15451s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15452p 15453g 15454s/.\{148\}// 15455t delim 15456' <conf$$subs.awk | sed ' 15457/^[^""]/{ 15458 N 15459 s/\n// 15460} 15461' >>$CONFIG_STATUS || ac_write_fail=1 15462rm -f conf$$subs.awk 15463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15464_ACAWK 15465cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15466 for (key in S) S_is_set[key] = 1 15467 FS = "" 15468 15469} 15470{ 15471 line = $ 0 15472 nfields = split(line, field, "@") 15473 substed = 0 15474 len = length(field[1]) 15475 for (i = 2; i < nfields; i++) { 15476 key = field[i] 15477 keylen = length(key) 15478 if (S_is_set[key]) { 15479 value = S[key] 15480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15481 len += length(value) + length(field[++i]) 15482 substed = 1 15483 } else 15484 len += 1 + keylen 15485 } 15486 15487 print line 15488} 15489 15490_ACAWK 15491_ACEOF 15492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15493if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15495else 15496 cat 15497fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15499_ACEOF 15500 15501# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15502# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15503# trailing colons and then remove the whole line if VPATH becomes empty 15504# (actually we leave an empty line to preserve line numbers). 15505if test "x$srcdir" = x.; then 15506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15507h 15508s/// 15509s/^/:/ 15510s/[ ]*$/:/ 15511s/:\$(srcdir):/:/g 15512s/:\${srcdir}:/:/g 15513s/:@srcdir@:/:/g 15514s/^:*// 15515s/:*$// 15516x 15517s/\(=[ ]*\).*/\1/ 15518G 15519s/\n// 15520s/^[^=]*=[ ]*$// 15521}' 15522fi 15523 15524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15525fi # test -n "$CONFIG_FILES" 15526 15527# Set up the scripts for CONFIG_HEADERS section. 15528# No need to generate them if there are no CONFIG_HEADERS. 15529# This happens for instance with `./config.status Makefile'. 15530if test -n "$CONFIG_HEADERS"; then 15531cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15532BEGIN { 15533_ACEOF 15534 15535# Transform confdefs.h into an awk script `defines.awk', embedded as 15536# here-document in config.status, that substitutes the proper values into 15537# config.h.in to produce config.h. 15538 15539# Create a delimiter string that does not exist in confdefs.h, to ease 15540# handling of long lines. 15541ac_delim='%!_!# ' 15542for ac_last_try in false false :; do 15543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15544 if test -z "$ac_tt"; then 15545 break 15546 elif $ac_last_try; then 15547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15548 else 15549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15550 fi 15551done 15552 15553# For the awk script, D is an array of macro values keyed by name, 15554# likewise P contains macro parameters if any. Preserve backslash 15555# newline sequences. 15556 15557ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15558sed -n ' 15559s/.\{148\}/&'"$ac_delim"'/g 15560t rset 15561:rset 15562s/^[ ]*#[ ]*define[ ][ ]*/ / 15563t def 15564d 15565:def 15566s/\\$// 15567t bsnl 15568s/["\\]/\\&/g 15569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15570D["\1"]=" \3"/p 15571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15572d 15573:bsnl 15574s/["\\]/\\&/g 15575s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15576D["\1"]=" \3\\\\\\n"\\/p 15577t cont 15578s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15579t cont 15580d 15581:cont 15582n 15583s/.\{148\}/&'"$ac_delim"'/g 15584t clear 15585:clear 15586s/\\$// 15587t bsnlc 15588s/["\\]/\\&/g; s/^/"/; s/$/"/p 15589d 15590:bsnlc 15591s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15592b cont 15593' <confdefs.h | sed ' 15594s/'"$ac_delim"'/"\\\ 15595"/g' >>$CONFIG_STATUS || ac_write_fail=1 15596 15597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15598 for (key in D) D_is_set[key] = 1 15599 FS = "" 15600} 15601/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15602 line = \$ 0 15603 split(line, arg, " ") 15604 if (arg[1] == "#") { 15605 defundef = arg[2] 15606 mac1 = arg[3] 15607 } else { 15608 defundef = substr(arg[1], 2) 15609 mac1 = arg[2] 15610 } 15611 split(mac1, mac2, "(") #) 15612 macro = mac2[1] 15613 prefix = substr(line, 1, index(line, defundef) - 1) 15614 if (D_is_set[macro]) { 15615 # Preserve the white space surrounding the "#". 15616 print prefix "define", macro P[macro] D[macro] 15617 next 15618 } else { 15619 # Replace #undef with comments. This is necessary, for example, 15620 # in the case of _POSIX_SOURCE, which is predefined and required 15621 # on some systems where configure will not decide to define it. 15622 if (defundef == "undef") { 15623 print "/*", prefix defundef, macro, "*/" 15624 next 15625 } 15626 } 15627} 15628{ print } 15629_ACAWK 15630_ACEOF 15631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15633fi # test -n "$CONFIG_HEADERS" 15634 15635 15636eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 15637shift 15638for ac_tag 15639do 15640 case $ac_tag in 15641 :[FHLC]) ac_mode=$ac_tag; continue;; 15642 esac 15643 case $ac_mode$ac_tag in 15644 :[FHL]*:*);; 15645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15646 :[FH]-) ac_tag=-:-;; 15647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15648 esac 15649 ac_save_IFS=$IFS 15650 IFS=: 15651 set x $ac_tag 15652 IFS=$ac_save_IFS 15653 shift 15654 ac_file=$1 15655 shift 15656 15657 case $ac_mode in 15658 :L) ac_source=$1;; 15659 :[FH]) 15660 ac_file_inputs= 15661 for ac_f 15662 do 15663 case $ac_f in 15664 -) ac_f="$ac_tmp/stdin";; 15665 *) # Look for the file first in the build tree, then in the source tree 15666 # (if the path is not absolute). The absolute path cannot be DOS-style, 15667 # because $ac_f cannot contain `:'. 15668 test -f "$ac_f" || 15669 case $ac_f in 15670 [\\/$]*) false;; 15671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15672 esac || 15673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15674 esac 15675 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15676 as_fn_append ac_file_inputs " '$ac_f'" 15677 done 15678 15679 # Let's still pretend it is `configure' which instantiates (i.e., don't 15680 # use $as_me), people would be surprised to read: 15681 # /* config.h. Generated by config.status. */ 15682 configure_input='Generated from '` 15683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15684 `' by configure.' 15685 if test x"$ac_file" != x-; then 15686 configure_input="$ac_file. $configure_input" 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15688$as_echo "$as_me: creating $ac_file" >&6;} 15689 fi 15690 # Neutralize special characters interpreted by sed in replacement strings. 15691 case $configure_input in #( 15692 *\&* | *\|* | *\\* ) 15693 ac_sed_conf_input=`$as_echo "$configure_input" | 15694 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15695 *) ac_sed_conf_input=$configure_input;; 15696 esac 15697 15698 case $ac_tag in 15699 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15701 esac 15702 ;; 15703 esac 15704 15705 ac_dir=`$as_dirname -- "$ac_file" || 15706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15707 X"$ac_file" : 'X\(//\)[^/]' \| \ 15708 X"$ac_file" : 'X\(//\)$' \| \ 15709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15710$as_echo X"$ac_file" | 15711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15712 s//\1/ 15713 q 15714 } 15715 /^X\(\/\/\)[^/].*/{ 15716 s//\1/ 15717 q 15718 } 15719 /^X\(\/\/\)$/{ 15720 s//\1/ 15721 q 15722 } 15723 /^X\(\/\).*/{ 15724 s//\1/ 15725 q 15726 } 15727 s/.*/./; q'` 15728 as_dir="$ac_dir"; as_fn_mkdir_p 15729 ac_builddir=. 15730 15731case "$ac_dir" in 15732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15733*) 15734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15735 # A ".." for each directory in $ac_dir_suffix. 15736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15737 case $ac_top_builddir_sub in 15738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15740 esac ;; 15741esac 15742ac_abs_top_builddir=$ac_pwd 15743ac_abs_builddir=$ac_pwd$ac_dir_suffix 15744# for backward compatibility: 15745ac_top_builddir=$ac_top_build_prefix 15746 15747case $srcdir in 15748 .) # We are building in place. 15749 ac_srcdir=. 15750 ac_top_srcdir=$ac_top_builddir_sub 15751 ac_abs_top_srcdir=$ac_pwd ;; 15752 [\\/]* | ?:[\\/]* ) # Absolute name. 15753 ac_srcdir=$srcdir$ac_dir_suffix; 15754 ac_top_srcdir=$srcdir 15755 ac_abs_top_srcdir=$srcdir ;; 15756 *) # Relative name. 15757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15758 ac_top_srcdir=$ac_top_build_prefix$srcdir 15759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15760esac 15761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15762 15763 15764 case $ac_mode in 15765 :F) 15766 # 15767 # CONFIG_FILE 15768 # 15769 15770 case $INSTALL in 15771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15773 esac 15774 ac_MKDIR_P=$MKDIR_P 15775 case $MKDIR_P in 15776 [\\/$]* | ?:[\\/]* ) ;; 15777 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15778 esac 15779_ACEOF 15780 15781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15782# If the template does not know about datarootdir, expand it. 15783# FIXME: This hack should be removed a few years after 2.60. 15784ac_datarootdir_hack=; ac_datarootdir_seen= 15785ac_sed_dataroot=' 15786/datarootdir/ { 15787 p 15788 q 15789} 15790/@datadir@/p 15791/@docdir@/p 15792/@infodir@/p 15793/@localedir@/p 15794/@mandir@/p' 15795case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15796*datarootdir*) ac_datarootdir_seen=yes;; 15797*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15799$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15800_ACEOF 15801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15802 ac_datarootdir_hack=' 15803 s&@datadir@&$datadir&g 15804 s&@docdir@&$docdir&g 15805 s&@infodir@&$infodir&g 15806 s&@localedir@&$localedir&g 15807 s&@mandir@&$mandir&g 15808 s&\\\${datarootdir}&$datarootdir&g' ;; 15809esac 15810_ACEOF 15811 15812# Neutralize VPATH when `$srcdir' = `.'. 15813# Shell code in configure.ac might set extrasub. 15814# FIXME: do we really want to maintain this feature? 15815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15816ac_sed_extra="$ac_vpsub 15817$extrasub 15818_ACEOF 15819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15820:t 15821/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15822s|@configure_input@|$ac_sed_conf_input|;t t 15823s&@top_builddir@&$ac_top_builddir_sub&;t t 15824s&@top_build_prefix@&$ac_top_build_prefix&;t t 15825s&@srcdir@&$ac_srcdir&;t t 15826s&@abs_srcdir@&$ac_abs_srcdir&;t t 15827s&@top_srcdir@&$ac_top_srcdir&;t t 15828s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15829s&@builddir@&$ac_builddir&;t t 15830s&@abs_builddir@&$ac_abs_builddir&;t t 15831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15832s&@INSTALL@&$ac_INSTALL&;t t 15833s&@MKDIR_P@&$ac_MKDIR_P&;t t 15834$ac_datarootdir_hack 15835" 15836eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15837 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15838 15839test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15840 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15841 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15842 "$ac_tmp/out"`; test -z "$ac_out"; } && 15843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15844which seems to be undefined. Please make sure it is defined" >&5 15845$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15846which seems to be undefined. Please make sure it is defined" >&2;} 15847 15848 rm -f "$ac_tmp/stdin" 15849 case $ac_file in 15850 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15851 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15852 esac \ 15853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15854 ;; 15855 :H) 15856 # 15857 # CONFIG_HEADER 15858 # 15859 if test x"$ac_file" != x-; then 15860 { 15861 $as_echo "/* $configure_input */" \ 15862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15863 } >"$ac_tmp/config.h" \ 15864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15865 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15867$as_echo "$as_me: $ac_file is unchanged" >&6;} 15868 else 15869 rm -f "$ac_file" 15870 mv "$ac_tmp/config.h" "$ac_file" \ 15871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15872 fi 15873 else 15874 $as_echo "/* $configure_input */" \ 15875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15876 || as_fn_error $? "could not create -" "$LINENO" 5 15877 fi 15878# Compute "$ac_file"'s index in $config_headers. 15879_am_arg="$ac_file" 15880_am_stamp_count=1 15881for _am_header in $config_headers :; do 15882 case $_am_header in 15883 $_am_arg | $_am_arg:* ) 15884 break ;; 15885 * ) 15886 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15887 esac 15888done 15889echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15890$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15891 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15892 X"$_am_arg" : 'X\(//\)$' \| \ 15893 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15894$as_echo X"$_am_arg" | 15895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15896 s//\1/ 15897 q 15898 } 15899 /^X\(\/\/\)[^/].*/{ 15900 s//\1/ 15901 q 15902 } 15903 /^X\(\/\/\)$/{ 15904 s//\1/ 15905 q 15906 } 15907 /^X\(\/\).*/{ 15908 s//\1/ 15909 q 15910 } 15911 s/.*/./; q'`/stamp-h$_am_stamp_count 15912 ;; 15913 :L) 15914 # 15915 # CONFIG_LINK 15916 # 15917 15918 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 15919 : 15920 else 15921 # Prefer the file from the source tree if names are identical. 15922 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 15923 ac_source=$srcdir/$ac_source 15924 fi 15925 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 15927$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 15928 15929 if test ! -r "$ac_source"; then 15930 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 15931 fi 15932 rm -f "$ac_file" 15933 15934 # Try a relative symlink, then a hard link, then a copy. 15935 case $ac_source in 15936 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 15937 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 15938 esac 15939 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 15940 ln "$ac_source" "$ac_file" 2>/dev/null || 15941 cp -p "$ac_source" "$ac_file" || 15942 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 15943 fi 15944 ;; 15945 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15946$as_echo "$as_me: executing $ac_file commands" >&6;} 15947 ;; 15948 esac 15949 15950 15951 case $ac_file$ac_mode in 15952 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15953 # Older Autoconf quotes --file arguments for eval, but not when files 15954 # are listed without --file. Let's play safe and only enable the eval 15955 # if we detect the quoting. 15956 case $CONFIG_FILES in 15957 *\'*) eval set x "$CONFIG_FILES" ;; 15958 *) set x $CONFIG_FILES ;; 15959 esac 15960 shift 15961 for mf 15962 do 15963 # Strip MF so we end up with the name of the file. 15964 mf=`echo "$mf" | sed -e 's/:.*$//'` 15965 # Check whether this is an Automake generated Makefile or not. 15966 # We used to match only the files named 'Makefile.in', but 15967 # some people rename them; so instead we look at the file content. 15968 # Grep'ing the first line is not enough: some people post-process 15969 # each Makefile.in and add a new line on top of each file to say so. 15970 # Grep'ing the whole file is not good either: AIX grep has a line 15971 # limit of 2048, but all sed's we know have understand at least 4000. 15972 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15973 dirpart=`$as_dirname -- "$mf" || 15974$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15975 X"$mf" : 'X\(//\)[^/]' \| \ 15976 X"$mf" : 'X\(//\)$' \| \ 15977 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15978$as_echo X"$mf" | 15979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15980 s//\1/ 15981 q 15982 } 15983 /^X\(\/\/\)[^/].*/{ 15984 s//\1/ 15985 q 15986 } 15987 /^X\(\/\/\)$/{ 15988 s//\1/ 15989 q 15990 } 15991 /^X\(\/\).*/{ 15992 s//\1/ 15993 q 15994 } 15995 s/.*/./; q'` 15996 else 15997 continue 15998 fi 15999 # Extract the definition of DEPDIR, am__include, and am__quote 16000 # from the Makefile without running 'make'. 16001 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16002 test -z "$DEPDIR" && continue 16003 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16004 test -z "$am__include" && continue 16005 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16006 # Find all dependency output files, they are included files with 16007 # $(DEPDIR) in their names. We invoke sed twice because it is the 16008 # simplest approach to changing $(DEPDIR) to its actual value in the 16009 # expansion. 16010 for file in `sed -n " 16011 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16012 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16013 # Make sure the directory exists. 16014 test -f "$dirpart/$file" && continue 16015 fdir=`$as_dirname -- "$file" || 16016$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16017 X"$file" : 'X\(//\)[^/]' \| \ 16018 X"$file" : 'X\(//\)$' \| \ 16019 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16020$as_echo X"$file" | 16021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16022 s//\1/ 16023 q 16024 } 16025 /^X\(\/\/\)[^/].*/{ 16026 s//\1/ 16027 q 16028 } 16029 /^X\(\/\/\)$/{ 16030 s//\1/ 16031 q 16032 } 16033 /^X\(\/\).*/{ 16034 s//\1/ 16035 q 16036 } 16037 s/.*/./; q'` 16038 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16039 # echo "creating $dirpart/$file" 16040 echo '# dummy' > "$dirpart/$file" 16041 done 16042 done 16043} 16044 ;; 16045 "po-directories":C) 16046 for ac_file in $CONFIG_FILES; do 16047 # Support "outfile[:infile[:infile...]]" 16048 case "$ac_file" in 16049 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16050 esac 16051 # PO directories have a Makefile.in generated from Makefile.in.in. 16052 case "$ac_file" in */Makefile.in) 16053 # Adjust a relative srcdir. 16054 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16055 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16056 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16057 # In autoconf-2.13 it is called $ac_given_srcdir. 16058 # In autoconf-2.50 it is called $srcdir. 16059 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16060 case "$ac_given_srcdir" in 16061 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16062 /*) top_srcdir="$ac_given_srcdir" ;; 16063 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16064 esac 16065 # Treat a directory as a PO directory if and only if it has a 16066 # POTFILES.in file. This allows packages to have multiple PO 16067 # directories under different names or in different locations. 16068 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16069 rm -f "$ac_dir/POTFILES" 16070 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16071 gt_tab=`printf '\t'` 16072 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" 16073 POMAKEFILEDEPS="POTFILES.in" 16074 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 16075 # on $ac_dir but don't depend on user-specified configuration 16076 # parameters. 16077 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16078 # The LINGUAS file contains the set of available languages. 16079 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16080 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 16081 fi 16082 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16083 # Hide the ALL_LINGUAS assignment from automake < 1.5. 16084 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16085 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16086 else 16087 # The set of available languages was given in configure.in. 16088 # Hide the ALL_LINGUAS assignment from automake < 1.5. 16089 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16090 fi 16091 # Compute POFILES 16092 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16093 # Compute UPDATEPOFILES 16094 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16095 # Compute DUMMYPOFILES 16096 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16097 # Compute GMOFILES 16098 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 16099 case "$ac_given_srcdir" in 16100 .) srcdirpre= ;; 16101 *) srcdirpre='$(srcdir)/' ;; 16102 esac 16103 POFILES= 16104 UPDATEPOFILES= 16105 DUMMYPOFILES= 16106 GMOFILES= 16107 for lang in $ALL_LINGUAS; do 16108 POFILES="$POFILES $srcdirpre$lang.po" 16109 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16110 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16111 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16112 done 16113 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16114 # environment variable. 16115 INST_LINGUAS= 16116 if test -n "$ALL_LINGUAS"; then 16117 for presentlang in $ALL_LINGUAS; do 16118 useit=no 16119 if test "%UNSET%" != "$LINGUAS"; then 16120 desiredlanguages="$LINGUAS" 16121 else 16122 desiredlanguages="$ALL_LINGUAS" 16123 fi 16124 for desiredlang in $desiredlanguages; do 16125 # Use the presentlang catalog if desiredlang is 16126 # a. equal to presentlang, or 16127 # b. a variant of presentlang (because in this case, 16128 # presentlang can be used as a fallback for messages 16129 # which are not translated in the desiredlang catalog). 16130 case "$desiredlang" in 16131 "$presentlang"*) useit=yes;; 16132 esac 16133 done 16134 if test $useit = yes; then 16135 INST_LINGUAS="$INST_LINGUAS $presentlang" 16136 fi 16137 done 16138 fi 16139 CATALOGS= 16140 if test -n "$INST_LINGUAS"; then 16141 for lang in $INST_LINGUAS; do 16142 CATALOGS="$CATALOGS $lang.gmo" 16143 done 16144 fi 16145 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16146 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" 16147 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16148 if test -f "$f"; then 16149 case "$f" in 16150 *.orig | *.bak | *~) ;; 16151 *) cat "$f" >> "$ac_dir/Makefile" ;; 16152 esac 16153 fi 16154 done 16155 fi 16156 ;; 16157 esac 16158 done ;; 16159 16160 esac 16161done # for ac_tag 16162 16163 16164as_fn_exit 0 16165_ACEOF 16166ac_clean_files=$ac_clean_files_save 16167 16168test $ac_write_fail = 0 || 16169 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16170 16171 16172# configure is writing to config.log, and then calls config.status. 16173# config.status does its own redirection, appending to config.log. 16174# Unfortunately, on DOS this fails, as config.log is still kept open 16175# by configure, so config.status won't be able to write to it; its 16176# output is simply discarded. So we exec the FD to /dev/null, 16177# effectively closing config.log, so it can be properly (re)opened and 16178# appended to by config.status. When coming back to configure, we 16179# need to make the FD available again. 16180if test "$no_create" != yes; then 16181 ac_cs_success=: 16182 ac_config_status_args= 16183 test "$silent" = yes && 16184 ac_config_status_args="$ac_config_status_args --quiet" 16185 exec 5>/dev/null 16186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16187 exec 5>>config.log 16188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16189 # would make configure fail if this is the last instruction. 16190 $ac_cs_success || as_fn_exit 1 16191fi 16192if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16194$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16195fi 16196 16197