Changeset 3613 in kBuild for trunk/src/sed/configure
- Timestamp:
- Sep 19, 2024 12:34:43 AM (8 months ago)
- Location:
- trunk/src/sed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sed
-
Property svn:mergeinfo
set to
/vendor/sed/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/sed/configure
r599 r3613 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59 for sed 4.1.5.3 # Generated by GNU Autoconf 2.72a.65-d081 for GNU sed 4.9. 4 4 # 5 # Report bugs to <b onzini@gnu.org>.5 # Report bugs to <bug-sed@gnu.org>. 6 6 # 7 # Copyright (C) 2003 Free Software Foundation, Inc. 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2022 Free Software Foundation, 9 # Inc. 10 # 11 # 8 12 # This configure script is free software; the Free Software Foundation 9 13 # gives unlimited permission to copy, distribute and modify it. 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be Bourne compatible 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 16 22 emulate sh 17 23 NULLCMD=: 18 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 25 # is contrary to our usage. Disable this feature. 20 26 alias -g '${1+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23 fi 24 DUALCASE=1; export DUALCASE # for MKS sh 25 26 # Support unset when possible. 27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29 else 30 as_unset=false 31 fi 32 33 34 # Work around bugs in pre-3.0 UWIN ksh. 35 $as_unset ENV MAIL MAILPATH 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 36 52 PS1='$ ' 37 53 PS2='> ' 38 54 PS4='+ ' 39 55 40 # NLS nuisances. 41 for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 45 93 do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 48 272 else 49 $as_unset $as_var 50 fi 51 done 52 53 # Required to use basename. 54 if expr a : '\(a\)' >/dev/null 2>&1; then 273 printf "%s\n" "$0: Please tell [email protected] and [email protected] 274 $0: about your system, including any error possibly output 275 $0: before this message. Then install a modern shell, or 276 $0: manually run the script under such a shell if you do 277 $0: have one." 278 fi 279 exit 1 280 fi ;; 281 esac 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 printf "%s\n" X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 383 then : 384 eval 'as_fn_append () 385 { 386 eval $1+=\$2 387 }' 388 else case e in #( 389 e) as_fn_append () 390 { 391 eval $1=\$$1\$2 392 } ;; 393 esac 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 402 then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407 else case e in #( 408 e) as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } ;; 412 esac 413 fi # as_fn_arith 414 415 416 # as_fn_error STATUS ERROR [LINENO LOG_FD] 417 # ---------------------------------------- 418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 420 # script with STATUS, using 1 if that was 0. 421 as_fn_error () 422 { 423 as_status=$1; test $as_status -eq 0 && as_status=1 424 if test "$4"; then 425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 427 fi 428 printf "%s\n" "$as_me: error: $2" >&2 429 as_fn_exit $as_status 430 } # as_fn_error 431 432 if expr a : '\(a\)' >/dev/null 2>&1 && 433 test "X`expr 00001 : '.*\(...\)'`" = X001; then 55 434 as_expr=expr 56 435 else … … 58 437 fi 59 438 60 if (basename /) >/dev/null 2>&1 && test "X`basename/ 2>&1`" = "X/"; then439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 61 440 as_basename=basename 62 441 else … … 64 443 fi 65 444 66 67 # Name of the executable. 68 as_me=`$as_basename "$0" || 445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 446 as_dirname=dirname 447 else 448 as_dirname=false 449 fi 450 451 as_me=`$as_basename -- "$0" || 69 452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 453 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73 echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80 # PATH needs CR, and LINENO needs CR and PATH. 454 X"$0" : 'X\(/\)' \| . 2>/dev/null || 455 printf "%s\n" X/"$0" | 456 sed '/^.*\/\([^/][^/]*\)\/*$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\/\)$/{ 461 s//\1/ 462 q 463 } 464 /^X\/\(\/\).*/{ 465 s//\1/ 466 q 467 } 468 s/.*/./; q'` 469 81 470 # Avoid depending upon Character Ranges. 82 471 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 86 475 as_cr_alnum=$as_cr_Letters$as_cr_digits 87 476 88 # The user is always right. 89 if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99 fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112 for as_dir in $PATH 113 do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117 done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134 do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154 done 155 ;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 477 478 as_lineno_1=$LINENO as_lineno_1a=$LINENO 479 as_lineno_2=$LINENO as_lineno_2a=$LINENO 480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 483 sed -n ' 484 p 485 /[$]LINENO/= 486 ' <$as_myself | 167 487 sed ' 488 t clear 489 :clear 490 s/[$]LINENO.*/&-/ 491 t lineno 492 b 493 :lineno 168 494 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 495 :loop 496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 172 497 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 498 s/-\n.*// 175 499 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 500 chmod +x "$as_me.lineno" || 501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 502 503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 504 # already done that, so ensure we don't try to do so again and fall 505 # in an infinite loop. This has already happened in practice. 506 _as_can_reexec=no; export _as_can_reexec 180 507 # Don't try to exec as it changes $[0], causing all sort of problems 181 508 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensi ble to this).183 . ./$as_me.lineno509 # original and so on. Autoconf is especially sensitive to this). 510 . "./$as_me.lineno" 184 511 # Exit status is that of the last command. 185 512 exit … … 187 514 188 515 189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191 ' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194 esac 195 196 if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 516 # Determine whether it's possible to make 'echo' print without a newline. 517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 518 # for compatibility with existing Makefiles. 519 ECHO_C= ECHO_N= ECHO_T= 520 case `echo -n x` in #((((( 521 -n*) 522 case `echo 'xy\c'` in 523 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 524 xy) ECHO_C='\c';; 525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 526 ECHO_T=' ';; 527 esac;; 528 *) 529 ECHO_N='-n';; 530 esac 531 532 # For backward compatibility with old third-party macros, we provide 533 # the shell variables $as_echo and $as_echo_n. New code should use 534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 535 as_echo='printf %s\n' 536 as_echo_n='printf %s' 537 538 rm -f conf$$ conf$$.exe conf$$.file 539 if test -d conf$$.dir; then 540 rm -f conf$$.dir/conf$$.file 198 541 else 199 as_expr=false 200 fi 201 202 rm -f conf$$ conf$$.exe conf$$.file 203 echo >conf$$.file 204 if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 542 rm -f conf$$.dir 543 mkdir conf$$.dir 2>/dev/null 544 fi 545 if (echo >conf$$.file) 2>/dev/null; then 546 if ln -s conf$$.file conf$$ 2>/dev/null; then 547 as_ln_s='ln -s' 548 # ... but there are two gotchas: 549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 551 # In both cases, we have to default to 'cp -pR'. 552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 553 as_ln_s='cp -pR' 554 elif ln conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s=ln 210 556 else 211 as_ln_s='ln -s' 212 fi 213 elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 557 as_ln_s='cp -pR' 558 fi 215 559 else 216 as_ln_s='cp -p' 217 fi 218 rm -f conf$$ conf$$.exe conf$$.file 560 as_ln_s='cp -pR' 561 fi 562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 563 rmdir conf$$.dir 2>/dev/null 219 564 220 565 if mkdir -p . 2>/dev/null; then 221 as_mkdir_p= :566 as_mkdir_p='mkdir -p "$as_dir"' 222 567 else 223 568 test -d ./-p && rmdir ./-p … … 225 570 fi 226 571 227 as_executable_p="test -f" 572 as_test_x='test -x' 573 as_executable_p=as_fn_executable_p 228 574 229 575 # Sed expression to map a string onto a valid CPP name. 230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 231 578 232 579 # Sed expression to map a string onto a valid variable name. 233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236 # IFS 237 # We need space, tab and new line, in precisely that order. 238 as_nl=' 239 ' 240 IFS=" $as_nl" 241 242 # CDPATH. 243 $as_unset CDPATH 244 580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 582 583 584 test -n "$DJDIR" || exec 7<&0 </dev/null 585 exec 6>&1 245 586 246 587 # Name of the host. 247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 248 589 # so uname gets run too. 249 590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 251 exec 6>&1252 591 253 592 # … … 255 594 # 256 595 ac_default_prefix=/usr/local 596 ac_clean_files= 257 597 ac_config_libobj_dir=. 598 LIBOBJS= 258 599 cross_compiling=no 259 600 subdirs= 260 601 MFLAGS= 261 602 MAKEFLAGS= 262 SHELL=${CONFIG_SHELL-/bin/sh}263 264 # Maximum number of lines to put in a shell here document.265 # This variable seems obsolete. It should probably be removed, and266 # only ac_max_sed_lines should be used.267 : ${ac_max_here_lines=38}268 603 269 604 # Identity of this package. 270 PACKAGE_NAME=' sed'605 PACKAGE_NAME='GNU sed' 271 606 PACKAGE_TARNAME='sed' 272 PACKAGE_VERSION='4.1.5' 273 PACKAGE_STRING='sed 4.1.5' 274 PACKAGE_BUGREPORT='[email protected]' 607 PACKAGE_VERSION='4.9' 608 PACKAGE_STRING='GNU sed 4.9' 609 PACKAGE_BUGREPORT='[email protected]' 610 PACKAGE_URL='https://www.gnu.org/software/sed/' 275 611 276 612 ac_unique_file="sed/sed.c" 277 613 # Factoring default headers for most tests. 278 614 ac_includes_default="\ 279 #include <stdio.h> 280 #if HAVE_SYS_TYPES_H 615 #include <stddef.h> 616 #ifdef HAVE_STDIO_H 617 # include <stdio.h> 618 #endif 619 #ifdef HAVE_STDLIB_H 620 # include <stdlib.h> 621 #endif 622 #ifdef HAVE_STRING_H 623 # include <string.h> 624 #endif 625 #ifdef HAVE_INTTYPES_H 626 # include <inttypes.h> 627 #endif 628 #ifdef HAVE_STDINT_H 629 # include <stdint.h> 630 #endif 631 #ifdef HAVE_STRINGS_H 632 # include <strings.h> 633 #endif 634 #ifdef HAVE_SYS_TYPES_H 281 635 # include <sys/types.h> 282 636 #endif 283 #if HAVE_SYS_STAT_H637 #ifdef HAVE_SYS_STAT_H 284 638 # include <sys/stat.h> 285 639 #endif 286 #if STDC_HEADERS 287 # include <stdlib.h> 288 # include <stddef.h> 289 #else 290 # if HAVE_STDLIB_H 291 # include <stdlib.h> 292 # endif 293 #endif 294 #if HAVE_STRING_H 295 # if !STDC_HEADERS && HAVE_MEMORY_H 296 # include <memory.h> 297 # endif 298 # include <string.h> 299 #endif 300 #if HAVE_STRINGS_H 301 # include <strings.h> 302 #endif 303 #if HAVE_INTTYPES_H 304 # include <inttypes.h> 305 #else 306 # if HAVE_STDINT_H 307 # include <stdint.h> 308 # endif 309 #endif 310 #if HAVE_UNISTD_H 640 #ifdef HAVE_UNISTD_H 311 641 # include <unistd.h> 312 642 #endif" 313 643 314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SED_FEATURE_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP HAVE__BOOL ALLOCA LIBOBJS TEST_REGEX_TRUE TEST_REGEX_FALSE BUILD_HTML_TRUE BUILD_HTML_FALSE TEXI2HTML MAKEINFO_HTML_TRUE MAKEINFO_HTML_FALSE TEXI2HTML_HTML_TRUE TEXI2HTML_HTML_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS' 644 ac_header_c_list= 645 gl_use_threads_default= 646 gl_use_winpthreads_default= 647 ac_config_libobj_dir=lib 648 ac_func_c_list= 649 gt_needs= 650 ac_subst_vars='gltests_LIBOBJDEPS 651 gltests_LTLIBOBJS 652 gltests_LIBOBJS 653 gl_LIBOBJDEPS 654 gl_LTLIBOBJS 655 gl_LIBOBJS 656 CONFIG_INCLUDE 657 am__EXEEXT_FALSE 658 am__EXEEXT_TRUE 659 LTLIBOBJS 660 LIBOBJS 661 CROSS_COMPILING_FALSE 662 CROSS_COMPILING_TRUE 663 BOLD_MAN_REFS_FALSE 664 BOLD_MAN_REFS_TRUE 665 GNULIB_TEST_WARN_CFLAGS 666 WARN_CFLAGS 667 WERROR_CFLAGS 668 XFAIL_TESTS 669 TEST_SYMLINKS_FALSE 670 TEST_SYMLINKS_TRUE 671 POSUB 672 INTLLIBS 673 LTLIBICONV 674 LIBICONV 675 XGETTEXT_EXTRA_OPTIONS 676 MSGMERGE 677 XGETTEXT_015 678 XGETTEXT 679 GMSGFMT_015 680 MSGFMT_015 681 GMSGFMT 682 MSGFMT 683 GETTEXT_MACRO_VERSION 684 USE_NLS 685 HAVE_PERL_FALSE 686 HAVE_PERL_TRUE 687 LIBTESTS_LIBDEPS 688 LIBSED_LTLIBDEPS 689 LIBSED_LIBDEPS 690 GL_CFLAG_GNULIB_WARNINGS 691 GL_COND_OBJ_WINDOWS_TLS_FALSE 692 GL_COND_OBJ_WINDOWS_TLS_TRUE 693 GL_COND_OBJ_WINDOWS_THREAD_FALSE 694 GL_COND_OBJ_WINDOWS_THREAD_TRUE 695 abs_aux_dir 696 GL_COND_OBJ_UNSETENV_FALSE 697 GL_COND_OBJ_UNSETENV_TRUE 698 HAVE_SYS_UIO_H 699 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H 700 NEXT_SYS_UIO_H 701 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H 702 NEXT_SYS_IOCTL_H 703 HAVE_SYS_IOCTL_H 704 GL_COND_OBJ_SYMLINK_FALSE 705 GL_COND_OBJ_SYMLINK_TRUE 706 GL_COND_OBJ_STRDUP_FALSE 707 GL_COND_OBJ_STRDUP_TRUE 708 GL_COND_OBJ_SOCKET_FALSE 709 GL_COND_OBJ_SOCKET_TRUE 710 GL_COND_OBJ_SLEEP_FALSE 711 GL_COND_OBJ_SLEEP_TRUE 712 GL_COND_OBJ_SIGPROCMASK_FALSE 713 GL_COND_OBJ_SIGPROCMASK_TRUE 714 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 715 NEXT_SIGNAL_H 716 GL_COND_OBJ_SETSOCKOPT_FALSE 717 GL_COND_OBJ_SETSOCKOPT_TRUE 718 GL_COND_OBJ_SETLOCALE_FALSE 719 GL_COND_OBJ_SETLOCALE_TRUE 720 LIB_SETLOCALE 721 GL_COND_OBJ_SETENV_FALSE 722 GL_COND_OBJ_SETENV_TRUE 723 GL_COND_OBJ_SELECT_FALSE 724 GL_COND_OBJ_SELECT_TRUE 725 LIB_SELECT 726 LIBSOCKET 727 GL_GNULIB_SCHED_YIELD 728 HAVE_SYS_CDEFS_H 729 HAVE_STRUCT_SCHED_PARAM 730 HAVE_SCHED_H 731 NEXT_AS_FIRST_DIRECTIVE_SCHED_H 732 NEXT_SCHED_H 733 REPLACE_SCHED_YIELD 734 HAVE_SCHED_YIELD 735 GL_COND_OBJ_READDIR_FALSE 736 GL_COND_OBJ_READDIR_TRUE 737 GL_COND_OBJ_RAISE_FALSE 738 GL_COND_OBJ_RAISE_TRUE 739 GL_COND_OBJ_PUTENV_FALSE 740 GL_COND_OBJ_PUTENV_TRUE 741 GL_GNULIB_SIGACTION 742 GL_GNULIB_SIGPROCMASK 743 GL_GNULIB_SIGNAL_H_SIGPIPE 744 GL_GNULIB_RAISE 745 GL_GNULIB_PTHREAD_SIGMASK 746 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE 747 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE 748 LIB_PTHREAD_SIGMASK 749 REPLACE_RAISE 750 REPLACE_PTHREAD_SIGMASK 751 HAVE_SIGHANDLER_T 752 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 753 HAVE_STRUCT_SIGACTION_SA_SIGACTION 754 HAVE_SIGACTION 755 HAVE_SIGINFO_T 756 HAVE_SIGSET_T 757 HAVE_RAISE 758 HAVE_PTHREAD_SIGMASK 759 HAVE_POSIX_SIGNALBLOCKING 760 GL_COND_OBJ_PTHREAD_THREAD_FALSE 761 GL_COND_OBJ_PTHREAD_THREAD_TRUE 762 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK 763 GL_GNULIB_PTHREAD_SPIN 764 GL_GNULIB_PTHREAD_TSS 765 GL_GNULIB_PTHREAD_COND 766 GL_GNULIB_PTHREAD_RWLOCK 767 GL_GNULIB_PTHREAD_MUTEX 768 GL_GNULIB_PTHREAD_ONCE 769 GL_GNULIB_PTHREAD_THREAD 770 LIB_PTHREAD 771 HAVE_PTHREAD_H 772 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H 773 NEXT_PTHREAD_H 774 REPLACE_PTHREAD_SPIN_DESTROY 775 REPLACE_PTHREAD_SPIN_UNLOCK 776 REPLACE_PTHREAD_SPIN_TRYLOCK 777 REPLACE_PTHREAD_SPIN_LOCK 778 REPLACE_PTHREAD_SPIN_INIT 779 REPLACE_PTHREAD_KEY_DELETE 780 REPLACE_PTHREAD_GETSPECIFIC 781 REPLACE_PTHREAD_SETSPECIFIC 782 REPLACE_PTHREAD_KEY_CREATE 783 REPLACE_PTHREAD_COND_DESTROY 784 REPLACE_PTHREAD_COND_BROADCAST 785 REPLACE_PTHREAD_COND_SIGNAL 786 REPLACE_PTHREAD_COND_TIMEDWAIT 787 REPLACE_PTHREAD_COND_WAIT 788 REPLACE_PTHREAD_CONDATTR_DESTROY 789 REPLACE_PTHREAD_CONDATTR_INIT 790 REPLACE_PTHREAD_COND_INIT 791 REPLACE_PTHREAD_RWLOCK_DESTROY 792 REPLACE_PTHREAD_RWLOCK_UNLOCK 793 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK 794 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK 795 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK 796 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK 797 REPLACE_PTHREAD_RWLOCK_WRLOCK 798 REPLACE_PTHREAD_RWLOCK_RDLOCK 799 REPLACE_PTHREAD_RWLOCKATTR_DESTROY 800 REPLACE_PTHREAD_RWLOCKATTR_INIT 801 REPLACE_PTHREAD_RWLOCK_INIT 802 REPLACE_PTHREAD_MUTEX_DESTROY 803 REPLACE_PTHREAD_MUTEX_UNLOCK 804 REPLACE_PTHREAD_MUTEX_TIMEDLOCK 805 REPLACE_PTHREAD_MUTEX_TRYLOCK 806 REPLACE_PTHREAD_MUTEX_LOCK 807 REPLACE_PTHREAD_MUTEXATTR_DESTROY 808 REPLACE_PTHREAD_MUTEXATTR_SETROBUST 809 REPLACE_PTHREAD_MUTEXATTR_GETROBUST 810 REPLACE_PTHREAD_MUTEXATTR_SETTYPE 811 REPLACE_PTHREAD_MUTEXATTR_GETTYPE 812 REPLACE_PTHREAD_MUTEXATTR_INIT 813 REPLACE_PTHREAD_MUTEX_INIT 814 REPLACE_PTHREAD_ONCE 815 REPLACE_PTHREAD_EXIT 816 REPLACE_PTHREAD_JOIN 817 REPLACE_PTHREAD_DETACH 818 REPLACE_PTHREAD_EQUAL 819 REPLACE_PTHREAD_SELF 820 REPLACE_PTHREAD_ATTR_DESTROY 821 REPLACE_PTHREAD_ATTR_SETDETACHSTATE 822 REPLACE_PTHREAD_ATTR_GETDETACHSTATE 823 REPLACE_PTHREAD_ATTR_INIT 824 REPLACE_PTHREAD_CREATE 825 HAVE_PTHREAD_SPIN_DESTROY 826 HAVE_PTHREAD_SPIN_UNLOCK 827 HAVE_PTHREAD_SPIN_TRYLOCK 828 HAVE_PTHREAD_SPIN_LOCK 829 HAVE_PTHREAD_SPIN_INIT 830 HAVE_PTHREAD_KEY_DELETE 831 HAVE_PTHREAD_GETSPECIFIC 832 HAVE_PTHREAD_SETSPECIFIC 833 HAVE_PTHREAD_KEY_CREATE 834 HAVE_PTHREAD_COND_DESTROY 835 HAVE_PTHREAD_COND_BROADCAST 836 HAVE_PTHREAD_COND_SIGNAL 837 HAVE_PTHREAD_COND_TIMEDWAIT 838 HAVE_PTHREAD_COND_WAIT 839 HAVE_PTHREAD_CONDATTR_DESTROY 840 HAVE_PTHREAD_CONDATTR_INIT 841 HAVE_PTHREAD_COND_INIT 842 HAVE_PTHREAD_RWLOCK_DESTROY 843 HAVE_PTHREAD_RWLOCK_UNLOCK 844 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 845 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK 846 HAVE_PTHREAD_RWLOCK_TRYWRLOCK 847 HAVE_PTHREAD_RWLOCK_TRYRDLOCK 848 HAVE_PTHREAD_RWLOCK_WRLOCK 849 HAVE_PTHREAD_RWLOCK_RDLOCK 850 HAVE_PTHREAD_RWLOCKATTR_DESTROY 851 HAVE_PTHREAD_RWLOCKATTR_INIT 852 HAVE_PTHREAD_RWLOCK_INIT 853 HAVE_PTHREAD_MUTEX_DESTROY 854 HAVE_PTHREAD_MUTEX_UNLOCK 855 HAVE_PTHREAD_MUTEX_TIMEDLOCK 856 HAVE_PTHREAD_MUTEX_TRYLOCK 857 HAVE_PTHREAD_MUTEX_LOCK 858 HAVE_PTHREAD_MUTEXATTR_DESTROY 859 HAVE_PTHREAD_MUTEXATTR_SETROBUST 860 HAVE_PTHREAD_MUTEXATTR_GETROBUST 861 HAVE_PTHREAD_MUTEXATTR_SETTYPE 862 HAVE_PTHREAD_MUTEXATTR_GETTYPE 863 HAVE_PTHREAD_MUTEXATTR_INIT 864 HAVE_PTHREAD_MUTEX_INIT 865 HAVE_PTHREAD_ONCE 866 HAVE_PTHREAD_EXIT 867 HAVE_PTHREAD_JOIN 868 HAVE_PTHREAD_DETACH 869 HAVE_PTHREAD_EQUAL 870 HAVE_PTHREAD_SELF 871 HAVE_PTHREAD_ATTR_DESTROY 872 HAVE_PTHREAD_ATTR_SETDETACHSTATE 873 HAVE_PTHREAD_ATTR_GETDETACHSTATE 874 HAVE_PTHREAD_ATTR_INIT 875 HAVE_PTHREAD_CREATE 876 HAVE_PTHREAD_PROCESS_SHARED 877 HAVE_PTHREAD_MUTEX_ROBUST 878 HAVE_PTHREAD_MUTEX_RECURSIVE 879 HAVE_PTHREAD_CREATE_DETACHED 880 HAVE_PTHREAD_SPINLOCK_T 881 HAVE_PTHREAD_T 882 GL_GNULIB_SELECT 883 GL_GNULIB_PSELECT 884 GL_COND_OBJ_PSELECT_FALSE 885 GL_COND_OBJ_PSELECT_TRUE 886 HAVE_SYS_SELECT_H 887 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H 888 NEXT_SYS_SELECT_H 889 REPLACE_SELECT 890 REPLACE_PSELECT 891 HAVE_PSELECT 892 GL_COND_OBJ_PIPE_FALSE 893 GL_COND_OBJ_PIPE_TRUE 894 GL_COND_OBJ_PERROR_FALSE 895 GL_COND_OBJ_PERROR_TRUE 896 GL_COND_OBJ_OPENDIR_FALSE 897 GL_COND_OBJ_OPENDIR_TRUE 898 GL_GENERATE_NETINET_IN_H_FALSE 899 GL_GENERATE_NETINET_IN_H_TRUE 900 NETINET_IN_H 901 HAVE_NETINET_IN_H 902 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H 903 NEXT_NETINET_IN_H 904 GL_COND_OBJ_NANOSLEEP_FALSE 905 GL_COND_OBJ_NANOSLEEP_TRUE 906 LIB_NANOSLEEP 907 GL_COND_OBJ_LSEEK_FALSE 908 GL_COND_OBJ_LSEEK_TRUE 909 INTL_MACOSX_LIBS 910 GL_COND_OBJ_LISTEN_FALSE 911 GL_COND_OBJ_LISTEN_TRUE 912 GL_COND_OBJ_LINK_FALSE 913 GL_COND_OBJ_LINK_TRUE 914 GL_COND_OBJ_ISBLANK_FALSE 915 GL_COND_OBJ_ISBLANK_TRUE 916 GL_GNULIB_IOCTL 917 GL_COND_OBJ_IOCTL_FALSE 918 GL_COND_OBJ_IOCTL_TRUE 919 GL_COND_OBJ_INET_PTON_FALSE 920 GL_COND_OBJ_INET_PTON_TRUE 921 INET_PTON_LIB 922 GL_GNULIB_GETTIMEOFDAY 923 GL_COND_OBJ_GETTIMEOFDAY_FALSE 924 GL_COND_OBJ_GETTIMEOFDAY_TRUE 925 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 926 NEXT_SYS_TIME_H 927 REPLACE_STRUCT_TIMEVAL 928 REPLACE_GETTIMEOFDAY 929 HAVE_SYS_TIME_H 930 HAVE_STRUCT_TIMEVAL 931 HAVE_GETTIMEOFDAY 932 GL_COND_OBJ_GETPAGESIZE_FALSE 933 GL_COND_OBJ_GETPAGESIZE_TRUE 934 GL_COND_OBJ_GETCWD_LGPL_FALSE 935 GL_COND_OBJ_GETCWD_LGPL_TRUE 936 GL_COND_OBJ_FTRUNCATE_FALSE 937 GL_COND_OBJ_FTRUNCATE_TRUE 938 GL_COND_OBJ_FTELLO_FALSE 939 GL_COND_OBJ_FTELLO_TRUE 940 GL_COND_OBJ_FTELL_FALSE 941 GL_COND_OBJ_FTELL_TRUE 942 GL_COND_OBJ_FSEEKO_FALSE 943 GL_COND_OBJ_FSEEKO_TRUE 944 GL_COND_OBJ_FSEEK_FALSE 945 GL_COND_OBJ_FSEEK_TRUE 946 GL_COND_OBJ_FPURGE_FALSE 947 GL_COND_OBJ_FPURGE_TRUE 948 LIB_HAS_ACL 949 GL_COND_OBJ_FFLUSH_FALSE 950 GL_COND_OBJ_FFLUSH_TRUE 951 GL_COND_OBJ_FDOPEN_FALSE 952 GL_COND_OBJ_FDOPEN_TRUE 953 GL_COND_OBJ_EXPLICIT_BZERO_FALSE 954 GL_COND_OBJ_EXPLICIT_BZERO_TRUE 955 GL_COND_OBJ_DIRFD_FALSE 956 GL_COND_OBJ_DIRFD_TRUE 957 HAVE_DIRENT_H 958 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H 959 NEXT_DIRENT_H 960 GL_COND_OBJ_CONNECT_FALSE 961 GL_COND_OBJ_CONNECT_TRUE 962 GL_GNULIB_ALPHASORT 963 GL_GNULIB_SCANDIR 964 GL_GNULIB_FDOPENDIR 965 GL_GNULIB_DIRFD 966 GL_GNULIB_CLOSEDIR 967 GL_GNULIB_REWINDDIR 968 GL_GNULIB_READDIR 969 GL_GNULIB_OPENDIR 970 GL_COND_OBJ_CLOSEDIR_FALSE 971 GL_COND_OBJ_CLOSEDIR_TRUE 972 REPLACE_FDOPENDIR 973 REPLACE_DIRFD 974 REPLACE_CLOSEDIR 975 REPLACE_OPENDIR 976 HAVE_ALPHASORT 977 HAVE_SCANDIR 978 HAVE_FDOPENDIR 979 HAVE_DECL_FDOPENDIR 980 HAVE_DECL_DIRFD 981 HAVE_CLOSEDIR 982 HAVE_REWINDDIR 983 HAVE_READDIR 984 HAVE_OPENDIR 985 LOCALE_TR_UTF8 986 GL_COND_OBJ_BIND_FALSE 987 GL_COND_OBJ_BIND_TRUE 988 GL_GNULIB_INET_PTON 989 GL_GNULIB_INET_NTOP 990 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H 991 NEXT_ARPA_INET_H 992 HAVE_ARPA_INET_H 993 REPLACE_INET_PTON 994 REPLACE_INET_NTOP 995 HAVE_DECL_INET_PTON 996 HAVE_DECL_INET_NTOP 997 GL_GNULIB_ACCEPT4 998 GL_GNULIB_SHUTDOWN 999 GL_GNULIB_SETSOCKOPT 1000 GL_GNULIB_SENDTO 1001 GL_GNULIB_RECVFROM 1002 GL_GNULIB_SEND 1003 GL_GNULIB_RECV 1004 GL_GNULIB_LISTEN 1005 GL_GNULIB_GETSOCKOPT 1006 GL_GNULIB_GETSOCKNAME 1007 GL_GNULIB_GETPEERNAME 1008 GL_GNULIB_BIND 1009 GL_GNULIB_ACCEPT 1010 GL_GNULIB_CONNECT 1011 GL_GNULIB_SOCKET 1012 GL_COND_OBJ_ACCEPT_FALSE 1013 GL_COND_OBJ_ACCEPT_TRUE 1014 HAVE_WS2TCPIP_H 1015 HAVE_SYS_SOCKET_H 1016 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H 1017 NEXT_SYS_SOCKET_H 1018 HAVE_ACCEPT4 1019 HAVE_SA_FAMILY_T 1020 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1021 HAVE_STRUCT_SOCKADDR_STORAGE 1022 gltests_WITNESS 1023 GL_CXXFLAG_ALLOW_WARNINGS 1024 GL_CFLAG_ALLOW_WARNINGS 1025 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE 1026 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE 1027 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE 1028 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE 1029 GL_COND_OBJ_WINDOWS_ONCE_FALSE 1030 GL_COND_OBJ_WINDOWS_ONCE_TRUE 1031 GL_COND_OBJ_WINDOWS_MUTEX_FALSE 1032 GL_COND_OBJ_WINDOWS_MUTEX_TRUE 1033 GL_GNULIB_TOWCTRANS 1034 GL_GNULIB_WCTRANS 1035 GL_GNULIB_ISWCTYPE 1036 GL_GNULIB_WCTYPE 1037 GL_GNULIB_ISWXDIGIT 1038 GL_GNULIB_ISWDIGIT 1039 GL_GNULIB_ISWBLANK 1040 REPLACE_TOWLOWER 1041 REPLACE_ISWCNTRL 1042 HAVE_WCTYPE_H 1043 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 1044 NEXT_WCTYPE_H 1045 HAVE_ISWCNTRL 1046 REPLACE_ISWXDIGIT 1047 REPLACE_ISWDIGIT 1048 REPLACE_ISWBLANK 1049 HAVE_WCTRANS_T 1050 HAVE_WCTYPE_T 1051 HAVE_ISWBLANK 1052 GL_COND_OBJ_WCTOMB_FALSE 1053 GL_COND_OBJ_WCTOMB_TRUE 1054 GL_COND_OBJ_WCTOB_FALSE 1055 GL_COND_OBJ_WCTOB_TRUE 1056 GL_COND_OBJ_WCRTOMB_FALSE 1057 GL_COND_OBJ_WCRTOMB_TRUE 1058 HAVE_CRTDEFS_H 1059 HAVE_WINT_T 1060 HAVE_FEATURES_H 1061 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 1062 NEXT_WCHAR_H 1063 HAVE_UNISTD_H 1064 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 1065 NEXT_UNISTD_H 1066 GL_GNULIB_MDA_TZSET 1067 GL_GNULIB_TZSET 1068 GL_GNULIB_TIME_RZ 1069 GL_GNULIB_TIME_R 1070 GL_GNULIB_TIMESPEC_GETRES 1071 GL_GNULIB_TIMESPEC_GET 1072 GL_GNULIB_TIMEGM 1073 GL_GNULIB_STRPTIME 1074 GL_GNULIB_STRFTIME 1075 GL_GNULIB_NANOSLEEP 1076 GL_GNULIB_LOCALTIME 1077 GL_GNULIB_MKTIME 1078 GL_GNULIB_CTIME 1079 TIME_H_DEFINES_TIME_UTC 1080 UNISTD_H_DEFINES_STRUCT_TIMESPEC 1081 PTHREAD_H_DEFINES_STRUCT_TIMESPEC 1082 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 1083 TIME_H_DEFINES_STRUCT_TIMESPEC 1084 NEXT_AS_FIRST_DIRECTIVE_TIME_H 1085 NEXT_TIME_H 1086 REPLACE_LOCALTIME 1087 REPLACE_GMTIME 1088 GNULIB_GETTIMEOFDAY 1089 REPLACE_TZSET 1090 REPLACE_TIMEGM 1091 REPLACE_STRFTIME 1092 REPLACE_NANOSLEEP 1093 REPLACE_MKTIME 1094 REPLACE_LOCALTIME_R 1095 REPLACE_CTIME 1096 HAVE_TIMEZONE_T 1097 HAVE_TIMESPEC_GETRES 1098 HAVE_TIMESPEC_GET 1099 HAVE_TIMEGM 1100 HAVE_STRPTIME 1101 HAVE_NANOSLEEP 1102 HAVE_DECL_LOCALTIME_R 1103 WINDOWS_STAT_INODES 1104 WINDOWS_64_BIT_OFF_T 1105 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 1106 NEXT_SYS_TYPES_H 1107 HAVE_SYS_RANDOM_H 1108 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H 1109 NEXT_SYS_RANDOM_H 1110 GL_COND_OBJ_STRVERSCMP_FALSE 1111 GL_COND_OBJ_STRVERSCMP_TRUE 1112 NEXT_AS_FIRST_DIRECTIVE_STRING_H 1113 NEXT_STRING_H 1114 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE 1115 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE 1116 GL_COND_OBJ_STRERROR_FALSE 1117 GL_COND_OBJ_STRERROR_TRUE 1118 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 1119 NEXT_STDLIB_H 1120 GL_COND_OBJ_STDIO_WRITE_FALSE 1121 GL_COND_OBJ_STDIO_WRITE_TRUE 1122 GL_COND_OBJ_STDIO_READ_FALSE 1123 GL_COND_OBJ_STDIO_READ_TRUE 1124 NEXT_AS_FIRST_DIRECTIVE_STDIO_H 1125 NEXT_STDIO_H 1126 GL_GENERATE_STDINT_H_FALSE 1127 GL_GENERATE_STDINT_H_TRUE 1128 STDINT_H 1129 GL_GENERATE_STDDEF_H_FALSE 1130 GL_GENERATE_STDDEF_H_TRUE 1131 STDDEF_H 1132 GL_GENERATE_STDCKDINT_H_FALSE 1133 GL_GENERATE_STDCKDINT_H_TRUE 1134 STDCKDINT_H 1135 GL_GENERATE_STDARG_H_FALSE 1136 GL_GENERATE_STDARG_H_TRUE 1137 STDARG_H 1138 NEXT_AS_FIRST_DIRECTIVE_STDARG_H 1139 NEXT_STDARG_H 1140 GL_GENERATE_STDALIGN_H_FALSE 1141 GL_GENERATE_STDALIGN_H_TRUE 1142 STDALIGN_H 1143 GL_COND_OBJ_STAT_FALSE 1144 GL_COND_OBJ_STAT_TRUE 1145 GL_COND_OBJ_SETLOCALE_LOCK_FALSE 1146 GL_COND_OBJ_SETLOCALE_LOCK_TRUE 1147 GL_COND_OBJ_GETFILECON_FALSE 1148 GL_COND_OBJ_GETFILECON_TRUE 1149 GL_GENERATE_SELINUX_LABEL_H_FALSE 1150 GL_GENERATE_SELINUX_LABEL_H_TRUE 1151 SELINUX_LABEL_H 1152 GL_GENERATE_SELINUX_CONTEXT_H_FALSE 1153 GL_GENERATE_SELINUX_CONTEXT_H_TRUE 1154 SELINUX_CONTEXT_H 1155 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H 1156 NEXT_SELINUX_SELINUX_H 1157 LIB_SELINUX 1158 GL_COND_OBJ_RMDIR_FALSE 1159 GL_COND_OBJ_RMDIR_TRUE 1160 GL_COND_OBJ_RENAME_FALSE 1161 GL_COND_OBJ_RENAME_TRUE 1162 GL_COND_OBJ_REGEX_FALSE 1163 GL_COND_OBJ_REGEX_TRUE 1164 GL_COND_OBJ_REALLOCARRAY_FALSE 1165 GL_COND_OBJ_REALLOCARRAY_TRUE 1166 GL_COND_OBJ_READLINK_FALSE 1167 GL_COND_OBJ_READLINK_TRUE 1168 GL_COND_OBJ_RAWMEMCHR_FALSE 1169 GL_COND_OBJ_RAWMEMCHR_TRUE 1170 PERL 1171 GL_COND_OBJ_OPEN_FALSE 1172 GL_COND_OBJ_OPEN_TRUE 1173 GL_COND_OBJ_OBSTACK_FALSE 1174 GL_COND_OBJ_OBSTACK_TRUE 1175 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE 1176 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE 1177 GL_COND_OBJ_NL_LANGINFO_FALSE 1178 GL_COND_OBJ_NL_LANGINFO_TRUE 1179 LIB_NL_LANGINFO 1180 GL_COND_OBJ_MSVC_NOTHROW_FALSE 1181 GL_COND_OBJ_MSVC_NOTHROW_TRUE 1182 GL_COND_OBJ_MSVC_INVAL_FALSE 1183 GL_COND_OBJ_MSVC_INVAL_TRUE 1184 GL_COND_OBJ_MKOSTEMP_FALSE 1185 GL_COND_OBJ_MKOSTEMP_TRUE 1186 GL_COND_OBJ_MKDIR_FALSE 1187 GL_COND_OBJ_MKDIR_TRUE 1188 GL_COND_OBJ_MEMRCHR_FALSE 1189 GL_COND_OBJ_MEMRCHR_TRUE 1190 GL_COND_OBJ_MEMPCPY_FALSE 1191 GL_COND_OBJ_MEMPCPY_TRUE 1192 GL_GNULIB_MDA_STRDUP 1193 GL_GNULIB_MDA_MEMCCPY 1194 GL_GNULIB_STRVERSCMP 1195 GL_GNULIB_STRSIGNAL 1196 GL_GNULIB_SIGDESCR_NP 1197 GL_GNULIB_SIGABBREV_NP 1198 GL_GNULIB_STRERRORNAME_NP 1199 GL_GNULIB_STRERROR_R 1200 GL_GNULIB_STRERROR 1201 GL_GNULIB_MBSTOK_R 1202 GL_GNULIB_MBSSEP 1203 GL_GNULIB_MBSSPN 1204 GL_GNULIB_MBSPBRK 1205 GL_GNULIB_MBSCSPN 1206 GL_GNULIB_MBSCASESTR 1207 GL_GNULIB_MBSPCASECMP 1208 GL_GNULIB_MBSNCASECMP 1209 GL_GNULIB_MBSCASECMP 1210 GL_GNULIB_MBSSTR 1211 GL_GNULIB_MBSRCHR 1212 GL_GNULIB_MBSCHR 1213 GL_GNULIB_MBSNLEN 1214 GL_GNULIB_MBSLEN 1215 GL_GNULIB_STRTOK_R 1216 GL_GNULIB_STRCASESTR 1217 GL_GNULIB_STRSTR 1218 GL_GNULIB_STRSEP 1219 GL_GNULIB_STRPBRK 1220 GL_GNULIB_STRNLEN 1221 GL_GNULIB_STRNDUP 1222 GL_GNULIB_STRNCAT 1223 GL_GNULIB_STRDUP 1224 GL_GNULIB_STRCHRNUL 1225 GL_GNULIB_STPNCPY 1226 GL_GNULIB_STPCPY 1227 GL_GNULIB_RAWMEMCHR 1228 GL_GNULIB_MEMRCHR 1229 GL_GNULIB_MEMPCPY 1230 GL_GNULIB_MEMMEM 1231 GL_GNULIB_MEMCHR 1232 GL_GNULIB_FFSLL 1233 GL_GNULIB_FFSL 1234 GL_GNULIB_EXPLICIT_BZERO 1235 GL_COND_OBJ_MEMCHR_FALSE 1236 GL_COND_OBJ_MEMCHR_TRUE 1237 UNDEFINE_STRTOK_R 1238 REPLACE_STRSIGNAL 1239 REPLACE_STRERRORNAME_NP 1240 REPLACE_STRERROR_R 1241 REPLACE_STRERROR 1242 REPLACE_STRTOK_R 1243 REPLACE_STRCASESTR 1244 REPLACE_STRSTR 1245 REPLACE_STRNLEN 1246 REPLACE_STRNDUP 1247 REPLACE_STRNCAT 1248 REPLACE_STRDUP 1249 REPLACE_STRCHRNUL 1250 REPLACE_STPNCPY 1251 REPLACE_MEMMEM 1252 REPLACE_MEMCHR 1253 REPLACE_FFSLL 1254 HAVE_STRVERSCMP 1255 HAVE_DECL_STRSIGNAL 1256 HAVE_SIGDESCR_NP 1257 HAVE_SIGABBREV_NP 1258 HAVE_STRERRORNAME_NP 1259 HAVE_DECL_STRERROR_R 1260 HAVE_DECL_STRTOK_R 1261 HAVE_STRCASESTR 1262 HAVE_STRSEP 1263 HAVE_STRPBRK 1264 HAVE_DECL_STRNLEN 1265 HAVE_DECL_STRNDUP 1266 HAVE_DECL_STRDUP 1267 HAVE_STRCHRNUL 1268 HAVE_STPNCPY 1269 HAVE_STPCPY 1270 HAVE_RAWMEMCHR 1271 HAVE_DECL_MEMRCHR 1272 HAVE_MEMPCPY 1273 HAVE_DECL_MEMMEM 1274 HAVE_FFSLL 1275 HAVE_FFSL 1276 HAVE_EXPLICIT_BZERO 1277 HAVE_MBSLEN 1278 GL_COND_OBJ_MBTOWC_FALSE 1279 GL_COND_OBJ_MBTOWC_TRUE 1280 GL_COND_OBJ_MBSINIT_FALSE 1281 GL_COND_OBJ_MBSINIT_TRUE 1282 HAVE_VISIBILITY 1283 CFLAG_VISIBILITY 1284 GL_COND_OBJ_MBRTOWC_FALSE 1285 GL_COND_OBJ_MBRTOWC_TRUE 1286 GL_COND_OBJ_MBRLEN_FALSE 1287 GL_COND_OBJ_MBRLEN_TRUE 1288 LIB_MBRTOWC 1289 LOCALE_ZH_CN 1290 LOCALE_FR_UTF8 1291 LOCALE_JA 1292 GREP 1293 SED 1294 GL_COND_OBJ_LSTAT_FALSE 1295 GL_COND_OBJ_LSTAT_TRUE 1296 LTLIBMULTITHREAD 1297 LIBMULTITHREAD 1298 LTLIBTHREAD 1299 LIBTHREAD 1300 LIBSTDTHREAD 1301 GL_COND_OBJ_LOCALECONV_FALSE 1302 GL_COND_OBJ_LOCALECONV_TRUE 1303 GL_GNULIB_LOCALENAME 1304 GL_GNULIB_DUPLOCALE 1305 GL_GNULIB_SETLOCALE_NULL 1306 GL_GNULIB_SETLOCALE 1307 GL_GNULIB_LOCALECONV 1308 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 1309 NEXT_LOCALE_H 1310 HAVE_XLOCALE_H 1311 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1312 NEXT_STDDEF_H 1313 HAVE_WCHAR_T 1314 HAVE_MAX_ALIGN_T 1315 REPLACE_NULL 1316 LOCALENAME_ENHANCE_LOCALE_FUNCS 1317 REPLACE_STRUCT_LCONV 1318 REPLACE_FREELOCALE 1319 REPLACE_DUPLOCALE 1320 REPLACE_NEWLOCALE 1321 REPLACE_SETLOCALE 1322 REPLACE_LOCALECONV 1323 HAVE_FREELOCALE 1324 HAVE_DUPLOCALE 1325 HAVE_NEWLOCALE 1326 LOCALCHARSET_TESTS_ENVIRONMENT 1327 GL_GENERATE_LIMITS_H_FALSE 1328 GL_GENERATE_LIMITS_H_TRUE 1329 LIMITS_H 1330 GL_GNULIB_NL_LANGINFO 1331 HAVE_LANGINFO_YESEXPR 1332 HAVE_LANGINFO_ERA 1333 HAVE_LANGINFO_ALTMON 1334 HAVE_LANGINFO_T_FMT_AMPM 1335 HAVE_LANGINFO_CODESET 1336 HAVE_LANGINFO_H 1337 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 1338 NEXT_LANGINFO_H 1339 REPLACE_NL_LANGINFO 1340 HAVE_NL_LANGINFO 1341 GL_GNULIB_STRTOUMAX 1342 GL_GNULIB_STRTOIMAX 1343 GL_GNULIB_IMAXDIV 1344 GL_GNULIB_IMAXABS 1345 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 1346 NEXT_INTTYPES_H 1347 UINT64_MAX_EQ_ULONG_MAX 1348 UINT32_MAX_LT_UINTMAX_MAX 1349 PRIPTR_PREFIX 1350 INT64_MAX_EQ_LONG_MAX 1351 INT32_MAX_LT_INTMAX_MAX 1352 REPLACE_STRTOUMAX 1353 REPLACE_STRTOIMAX 1354 HAVE_IMAXDIV_T 1355 HAVE_DECL_STRTOUMAX 1356 HAVE_DECL_STRTOIMAX 1357 HAVE_DECL_IMAXDIV 1358 HAVE_DECL_IMAXABS 1359 HAVE_SYS_INTTYPES_H 1360 HAVE_SYS_BITYPES_H 1361 HAVE_C99_STDINT_H 1362 WINT_T_SUFFIX 1363 WCHAR_T_SUFFIX 1364 SIG_ATOMIC_T_SUFFIX 1365 SIZE_T_SUFFIX 1366 PTRDIFF_T_SUFFIX 1367 HAVE_SIGNED_WINT_T 1368 HAVE_SIGNED_WCHAR_T 1369 HAVE_SIGNED_SIG_ATOMIC_T 1370 BITSIZEOF_WINT_T 1371 BITSIZEOF_WCHAR_T 1372 BITSIZEOF_SIG_ATOMIC_T 1373 BITSIZEOF_SIZE_T 1374 BITSIZEOF_PTRDIFF_T 1375 APPLE_UNIVERSAL_BUILD 1376 HAVE_STDINT_H 1377 NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1378 NEXT_STDINT_H 1379 HAVE_SYS_TYPES_H 1380 HAVE_INTTYPES_H 1381 HAVE_WCHAR_H 1382 GNULIBHEADERS_OVERRIDE_WINT_T 1383 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1384 NEXT_LIMITS_H 1385 LIB_HARD_LOCALE 1386 LIB_SETLOCALE_NULL 1387 LIB_SCHED_YIELD 1388 LIBPMULTITHREAD 1389 LIBPTHREAD 1390 LTLIBINTL 1391 LIBINTL 1392 GL_GNULIB_GETRANDOM 1393 GL_COND_OBJ_GETRANDOM_FALSE 1394 GL_COND_OBJ_GETRANDOM_TRUE 1395 LIB_GETRANDOM 1396 REPLACE_GETRANDOM 1397 HAVE_GETRANDOM 1398 GL_COND_OBJ_GETDTABLESIZE_FALSE 1399 GL_COND_OBJ_GETDTABLESIZE_TRUE 1400 GL_GNULIB_MDA_TEMPNAM 1401 GL_GNULIB_MDA_PUTW 1402 GL_GNULIB_MDA_GETW 1403 GL_GNULIB_MDA_FILENO 1404 GL_GNULIB_MDA_FDOPEN 1405 GL_GNULIB_MDA_FCLOSEALL 1406 GL_GNULIB_VSPRINTF_POSIX 1407 GL_GNULIB_VSNPRINTF 1408 GL_GNULIB_VPRINTF_POSIX 1409 GL_GNULIB_VPRINTF 1410 GL_GNULIB_VFPRINTF_POSIX 1411 GL_GNULIB_VFPRINTF 1412 GL_GNULIB_VDPRINTF 1413 GL_GNULIB_VSCANF 1414 GL_GNULIB_VFSCANF 1415 GL_GNULIB_VASPRINTF 1416 GL_GNULIB_TMPFILE 1417 GL_GNULIB_STDIO_H_SIGPIPE 1418 GL_GNULIB_STDIO_H_NONBLOCKING 1419 GL_GNULIB_SPRINTF_POSIX 1420 GL_GNULIB_SNPRINTF 1421 GL_GNULIB_SCANF 1422 GL_GNULIB_RENAMEAT 1423 GL_GNULIB_RENAME 1424 GL_GNULIB_REMOVE 1425 GL_GNULIB_PUTS 1426 GL_GNULIB_PUTCHAR 1427 GL_GNULIB_PUTC 1428 GL_GNULIB_PRINTF_POSIX 1429 GL_GNULIB_PRINTF 1430 GL_GNULIB_POPEN 1431 GL_GNULIB_PERROR 1432 GL_GNULIB_PCLOSE 1433 GL_GNULIB_OBSTACK_PRINTF_POSIX 1434 GL_GNULIB_OBSTACK_PRINTF 1435 GL_GNULIB_GETLINE 1436 GL_GNULIB_GETDELIM 1437 GL_GNULIB_GETCHAR 1438 GL_GNULIB_GETC 1439 GL_GNULIB_FWRITE 1440 GL_GNULIB_FTELLO 1441 GL_GNULIB_FTELL 1442 GL_GNULIB_FSEEKO 1443 GL_GNULIB_FSEEK 1444 GL_GNULIB_FSCANF 1445 GL_GNULIB_FREOPEN 1446 GL_GNULIB_FREAD 1447 GL_GNULIB_FPUTS 1448 GL_GNULIB_FPUTC 1449 GL_GNULIB_FPURGE 1450 GL_GNULIB_FPRINTF_POSIX 1451 GL_GNULIB_FPRINTF 1452 GL_GNULIB_FOPEN_GNU 1453 GL_GNULIB_FOPEN 1454 GL_GNULIB_FGETS 1455 GL_GNULIB_FGETC 1456 GL_GNULIB_FFLUSH 1457 GL_GNULIB_FDOPEN 1458 GL_GNULIB_FCLOSE 1459 GL_GNULIB_DPRINTF 1460 GL_COND_OBJ_GETDELIM_FALSE 1461 GL_COND_OBJ_GETDELIM_TRUE 1462 REPLACE_VSPRINTF 1463 REPLACE_VSNPRINTF 1464 REPLACE_VPRINTF 1465 REPLACE_VFPRINTF 1466 REPLACE_VDPRINTF 1467 REPLACE_VASPRINTF 1468 REPLACE_TMPFILE 1469 REPLACE_STDIO_WRITE_FUNCS 1470 REPLACE_STDIO_READ_FUNCS 1471 REPLACE_SPRINTF 1472 REPLACE_SNPRINTF 1473 REPLACE_RENAMEAT 1474 REPLACE_RENAME 1475 REPLACE_REMOVE 1476 REPLACE_PRINTF 1477 REPLACE_POPEN 1478 REPLACE_PERROR 1479 REPLACE_OBSTACK_PRINTF 1480 REPLACE_GETLINE 1481 REPLACE_GETDELIM 1482 REPLACE_FTELLO 1483 REPLACE_FTELL 1484 REPLACE_FSEEKO 1485 REPLACE_FSEEK 1486 REPLACE_FREOPEN 1487 REPLACE_FPURGE 1488 REPLACE_FPRINTF 1489 REPLACE_FOPEN_FOR_FOPEN_GNU 1490 REPLACE_FOPEN 1491 REPLACE_FFLUSH 1492 REPLACE_FDOPEN 1493 REPLACE_FCLOSE 1494 REPLACE_DPRINTF 1495 HAVE_VDPRINTF 1496 HAVE_VASPRINTF 1497 HAVE_RENAMEAT 1498 HAVE_POPEN 1499 HAVE_PCLOSE 1500 HAVE_FTELLO 1501 HAVE_FSEEKO 1502 HAVE_DPRINTF 1503 HAVE_DECL_VSNPRINTF 1504 HAVE_DECL_SNPRINTF 1505 HAVE_DECL_OBSTACK_PRINTF 1506 HAVE_DECL_GETLINE 1507 HAVE_DECL_GETDELIM 1508 HAVE_DECL_FTELLO 1509 HAVE_DECL_FSEEKO 1510 HAVE_DECL_FPURGE 1511 HAVE_DECL_FCLOSEALL 1512 GL_COND_OBJ_FWRITING_FALSE 1513 GL_COND_OBJ_FWRITING_TRUE 1514 GL_GNULIB_MDA_UMASK 1515 GL_GNULIB_MDA_MKDIR 1516 GL_GNULIB_MDA_CHMOD 1517 GL_GNULIB_OVERRIDES_STRUCT_STAT 1518 GL_GNULIB_UTIMENSAT 1519 GL_GNULIB_STAT 1520 GL_GNULIB_MKNODAT 1521 GL_GNULIB_MKNOD 1522 GL_GNULIB_MKFIFOAT 1523 GL_GNULIB_MKFIFO 1524 GL_GNULIB_MKDIRAT 1525 GL_GNULIB_MKDIR 1526 GL_GNULIB_LSTAT 1527 GL_GNULIB_LCHMOD 1528 GL_GNULIB_GETUMASK 1529 GL_GNULIB_FUTIMENS 1530 GL_GNULIB_FSTATAT 1531 GL_GNULIB_FSTAT 1532 GL_GNULIB_FCHMODAT 1533 GL_GNULIB_CHMOD 1534 WINDOWS_64_BIT_ST_SIZE 1535 WINDOWS_STAT_TIMESPEC 1536 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 1537 NEXT_SYS_STAT_H 1538 GL_COND_OBJ_FSTAT_FALSE 1539 GL_COND_OBJ_FSTAT_TRUE 1540 REPLACE_UTIMENSAT 1541 REPLACE_STAT 1542 REPLACE_MKNODAT 1543 REPLACE_MKNOD 1544 REPLACE_MKFIFOAT 1545 REPLACE_MKFIFO 1546 REPLACE_MKDIR 1547 REPLACE_LSTAT 1548 REPLACE_FUTIMENS 1549 REPLACE_FSTATAT 1550 REPLACE_FSTAT 1551 REPLACE_FCHMODAT 1552 REPLACE_CHMOD 1553 HAVE_UTIMENSAT 1554 HAVE_MKNODAT 1555 HAVE_MKNOD 1556 HAVE_MKFIFOAT 1557 HAVE_MKFIFO 1558 HAVE_MKDIRAT 1559 HAVE_LSTAT 1560 HAVE_LCHMOD 1561 HAVE_GETUMASK 1562 HAVE_FUTIMENS 1563 HAVE_FSTATAT 1564 HAVE_FCHMODAT 1565 GL_COND_OBJ_FREE_FALSE 1566 GL_COND_OBJ_FREE_TRUE 1567 GL_COND_OBJ_FPENDING_FALSE 1568 GL_COND_OBJ_FPENDING_TRUE 1569 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1570 NEXT_FCNTL_H 1571 GL_GNULIB_MDA_OPEN 1572 GL_GNULIB_MDA_CREAT 1573 GL_GNULIB_OPENAT 1574 GL_GNULIB_OPEN 1575 GL_GNULIB_NONBLOCKING 1576 GL_GNULIB_FCNTL 1577 GL_GNULIB_CREAT 1578 GL_COND_OBJ_FCNTL_FALSE 1579 GL_COND_OBJ_FCNTL_TRUE 1580 REPLACE_OPENAT 1581 REPLACE_OPEN 1582 REPLACE_FCNTL 1583 REPLACE_CREAT 1584 HAVE_OPENAT 1585 HAVE_FCNTL 1586 GL_COND_OBJ_ERROR_FALSE 1587 GL_COND_OBJ_ERROR_TRUE 1588 GL_GENERATE_ERRNO_H_FALSE 1589 GL_GENERATE_ERRNO_H_TRUE 1590 ERRNO_H 1591 EOVERFLOW_VALUE 1592 EOVERFLOW_HIDDEN 1593 ENOLINK_VALUE 1594 ENOLINK_HIDDEN 1595 EMULTIHOP_VALUE 1596 EMULTIHOP_HIDDEN 1597 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1598 NEXT_ERRNO_H 1599 GL_COND_OBJ_DUP2_FALSE 1600 GL_COND_OBJ_DUP2_TRUE 1601 GL_GNULIB_ISBLANK 1602 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H 1603 NEXT_CTYPE_H 1604 HAVE_ISBLANK 1605 GL_COND_OBJ_CLOSE_FALSE 1606 GL_COND_OBJ_CLOSE_TRUE 1607 HAVE_WINSOCK2_H 1608 REPLACE_IOCTL 1609 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1610 SYS_IOCTL_H_HAVE_WINSOCK2_H 1611 HAVE_MSVC_INVALID_PARAMETER_HANDLER 1612 LIB_CLOCK_GETTIME 1613 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1614 UNISTD_H_HAVE_WINSOCK2_H 1615 UNISTD_H_HAVE_SYS_RANDOM_H 1616 REPLACE_WRITE 1617 REPLACE_USLEEP 1618 REPLACE_UNLINKAT 1619 REPLACE_UNLINK 1620 REPLACE_TTYNAME_R 1621 REPLACE_TRUNCATE 1622 REPLACE_SYMLINKAT 1623 REPLACE_SYMLINK 1624 REPLACE_SLEEP 1625 REPLACE_RMDIR 1626 REPLACE_READLINKAT 1627 REPLACE_READLINK 1628 REPLACE_READ 1629 REPLACE_PWRITE 1630 REPLACE_PREAD 1631 REPLACE_LSEEK 1632 REPLACE_LINKAT 1633 REPLACE_LINK 1634 REPLACE_LCHOWN 1635 REPLACE_ISATTY 1636 REPLACE_GETPASS_FOR_GETPASS_GNU 1637 REPLACE_GETPASS 1638 REPLACE_GETPAGESIZE 1639 REPLACE_GETGROUPS 1640 REPLACE_GETLOGIN_R 1641 REPLACE_GETDTABLESIZE 1642 REPLACE_GETDOMAINNAME 1643 REPLACE_GETCWD 1644 REPLACE_FTRUNCATE 1645 REPLACE_FCHOWNAT 1646 REPLACE_FACCESSAT 1647 REPLACE_EXECVPE 1648 REPLACE_EXECVP 1649 REPLACE_EXECVE 1650 REPLACE_EXECV 1651 REPLACE_EXECLP 1652 REPLACE_EXECLE 1653 REPLACE_EXECL 1654 REPLACE_DUP2 1655 REPLACE_DUP 1656 REPLACE_COPY_FILE_RANGE 1657 REPLACE_CLOSE 1658 REPLACE_CHOWN 1659 REPLACE_ACCESS 1660 HAVE_SYS_PARAM_H 1661 HAVE_OS_H 1662 HAVE_DECL_TTYNAME_R 1663 HAVE_DECL_TRUNCATE 1664 HAVE_DECL_SETHOSTNAME 1665 HAVE_DECL_GETUSERSHELL 1666 HAVE_DECL_GETPAGESIZE 1667 HAVE_DECL_GETLOGIN_R 1668 HAVE_DECL_GETLOGIN 1669 HAVE_DECL_GETDOMAINNAME 1670 HAVE_DECL_FDATASYNC 1671 HAVE_DECL_FCHDIR 1672 HAVE_DECL_EXECVPE 1673 HAVE_DECL_ENVIRON 1674 HAVE_USLEEP 1675 HAVE_UNLINKAT 1676 HAVE_SYMLINKAT 1677 HAVE_SYMLINK 1678 HAVE_SLEEP 1679 HAVE_SETHOSTNAME 1680 HAVE_READLINKAT 1681 HAVE_READLINK 1682 HAVE_PWRITE 1683 HAVE_PREAD 1684 HAVE_PIPE2 1685 HAVE_PIPE 1686 HAVE_LINKAT 1687 HAVE_LINK 1688 HAVE_LCHOWN 1689 HAVE_GROUP_MEMBER 1690 HAVE_GETPASS 1691 HAVE_GETPAGESIZE 1692 HAVE_GETLOGIN 1693 HAVE_GETHOSTNAME 1694 HAVE_GETGROUPS 1695 HAVE_GETENTROPY 1696 HAVE_GETDTABLESIZE 1697 HAVE_FTRUNCATE 1698 HAVE_FSYNC 1699 HAVE_FDATASYNC 1700 HAVE_FCHOWNAT 1701 HAVE_FCHDIR 1702 HAVE_FACCESSAT 1703 HAVE_EXECVPE 1704 HAVE_EUIDACCESS 1705 HAVE_DUP3 1706 HAVE_COPY_FILE_RANGE 1707 HAVE_CHOWN 1708 GL_GNULIB_MDA_WRITE 1709 GL_GNULIB_MDA_UNLINK 1710 GL_GNULIB_MDA_SWAB 1711 GL_GNULIB_MDA_RMDIR 1712 GL_GNULIB_MDA_READ 1713 GL_GNULIB_MDA_LSEEK 1714 GL_GNULIB_MDA_ISATTY 1715 GL_GNULIB_MDA_GETPID 1716 GL_GNULIB_MDA_GETCWD 1717 GL_GNULIB_MDA_EXECVPE 1718 GL_GNULIB_MDA_EXECVP 1719 GL_GNULIB_MDA_EXECVE 1720 GL_GNULIB_MDA_EXECV 1721 GL_GNULIB_MDA_EXECLP 1722 GL_GNULIB_MDA_EXECLE 1723 GL_GNULIB_MDA_EXECL 1724 GL_GNULIB_MDA_DUP2 1725 GL_GNULIB_MDA_DUP 1726 GL_GNULIB_MDA_CLOSE 1727 GL_GNULIB_MDA_CHDIR 1728 GL_GNULIB_MDA_ACCESS 1729 GL_GNULIB_WRITE 1730 GL_GNULIB_USLEEP 1731 GL_GNULIB_UNLINKAT 1732 GL_GNULIB_UNLINK 1733 GL_GNULIB_UNISTD_H_SIGPIPE 1734 GL_GNULIB_UNISTD_H_NONBLOCKING 1735 GL_GNULIB_UNISTD_H_GETOPT 1736 GL_GNULIB_TTYNAME_R 1737 GL_GNULIB_TRUNCATE 1738 GL_GNULIB_SYMLINKAT 1739 GL_GNULIB_SYMLINK 1740 GL_GNULIB_SLEEP 1741 GL_GNULIB_SETHOSTNAME 1742 GL_GNULIB_RMDIR 1743 GL_GNULIB_READLINKAT 1744 GL_GNULIB_READLINK 1745 GL_GNULIB_READ 1746 GL_GNULIB_PWRITE 1747 GL_GNULIB_PREAD 1748 GL_GNULIB_PIPE2 1749 GL_GNULIB_PIPE 1750 GL_GNULIB_LSEEK 1751 GL_GNULIB_LINKAT 1752 GL_GNULIB_LINK 1753 GL_GNULIB_LCHOWN 1754 GL_GNULIB_ISATTY 1755 GL_GNULIB_GROUP_MEMBER 1756 GL_GNULIB_GETUSERSHELL 1757 GL_GNULIB_GETPASS_GNU 1758 GL_GNULIB_GETPASS 1759 GL_GNULIB_GETPAGESIZE 1760 GL_GNULIB_GETOPT_POSIX 1761 GL_GNULIB_GETLOGIN_R 1762 GL_GNULIB_GETLOGIN 1763 GL_GNULIB_GETHOSTNAME 1764 GL_GNULIB_GETGROUPS 1765 GL_GNULIB_GETENTROPY 1766 GL_GNULIB_GETDTABLESIZE 1767 GL_GNULIB_GETDOMAINNAME 1768 GL_GNULIB_GETCWD 1769 GL_GNULIB_FTRUNCATE 1770 GL_GNULIB_FSYNC 1771 GL_GNULIB_FDATASYNC 1772 GL_GNULIB_FCHOWNAT 1773 GL_GNULIB_FCHDIR 1774 GL_GNULIB_FACCESSAT 1775 GL_GNULIB_EXECVPE 1776 GL_GNULIB_EXECVP 1777 GL_GNULIB_EXECVE 1778 GL_GNULIB_EXECV 1779 GL_GNULIB_EXECLP 1780 GL_GNULIB_EXECLE 1781 GL_GNULIB_EXECL 1782 GL_GNULIB_EUIDACCESS 1783 GL_GNULIB_ENVIRON 1784 GL_GNULIB_DUP3 1785 GL_GNULIB_DUP2 1786 GL_GNULIB_DUP 1787 GL_GNULIB_COPY_FILE_RANGE 1788 GL_GNULIB_CLOSE 1789 GL_GNULIB_CHOWN 1790 GL_GNULIB_CHDIR 1791 GL_GNULIB_ACCESS 1792 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE 1793 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE 1794 REPLACE_WCTOMB 1795 REPLACE_UNSETENV 1796 REPLACE_STRTOULL 1797 REPLACE_STRTOUL 1798 REPLACE_STRTOLL 1799 REPLACE_STRTOLD 1800 REPLACE_STRTOL 1801 REPLACE_STRTOD 1802 REPLACE_SETSTATE 1803 REPLACE_SETENV 1804 REPLACE_REALPATH 1805 REPLACE_REALLOCARRAY 1806 REPLACE_REALLOC_FOR_REALLOC_POSIX 1807 REPLACE_REALLOC_FOR_REALLOC_GNU 1808 REPLACE_RANDOM_R 1809 REPLACE_RANDOM 1810 REPLACE_QSORT_R 1811 REPLACE_PUTENV 1812 REPLACE_PTSNAME_R 1813 REPLACE_PTSNAME 1814 REPLACE_POSIX_MEMALIGN 1815 REPLACE_MKSTEMP 1816 REPLACE_MBTOWC 1817 REPLACE_MALLOC_FOR_MALLOC_POSIX 1818 REPLACE_MALLOC_FOR_MALLOC_GNU 1819 REPLACE_INITSTATE 1820 REPLACE_FREE 1821 REPLACE_CANONICALIZE_FILE_NAME 1822 REPLACE_CALLOC_FOR_CALLOC_POSIX 1823 REPLACE_CALLOC_FOR_CALLOC_GNU 1824 REPLACE_ALIGNED_ALLOC 1825 HAVE_DECL_UNSETENV 1826 HAVE_UNLOCKPT 1827 HAVE_SYS_LOADAVG_H 1828 HAVE_STRUCT_RANDOM_DATA 1829 HAVE_STRTOULL 1830 HAVE_STRTOUL 1831 HAVE_STRTOLL 1832 HAVE_STRTOLD 1833 HAVE_STRTOL 1834 HAVE_STRTOD 1835 HAVE_DECL_SETSTATE 1836 HAVE_SETSTATE 1837 HAVE_DECL_SETENV 1838 HAVE_SETENV 1839 HAVE_SECURE_GETENV 1840 HAVE_RPMATCH 1841 HAVE_REALPATH 1842 HAVE_REALLOCARRAY 1843 HAVE_RANDOM_R 1844 HAVE_RANDOM_H 1845 HAVE_RANDOM 1846 HAVE_QSORT_R 1847 HAVE_PTSNAME_R 1848 HAVE_PTSNAME 1849 HAVE_POSIX_OPENPT 1850 HAVE_POSIX_MEMALIGN 1851 HAVE_MKSTEMPS 1852 HAVE_MKSTEMP 1853 HAVE_MKOSTEMPS 1854 HAVE_MKOSTEMP 1855 HAVE_MKDTEMP 1856 HAVE_MBTOWC 1857 HAVE_DECL_INITSTATE 1858 HAVE_INITSTATE 1859 HAVE_GRANTPT 1860 HAVE_GETSUBOPT 1861 HAVE_DECL_GETLOADAVG 1862 HAVE_DECL_GCVT 1863 HAVE_DECL_FCVT 1864 HAVE_DECL_ECVT 1865 HAVE_CANONICALIZE_FILE_NAME 1866 HAVE_ATOLL 1867 HAVE_ALIGNED_ALLOC 1868 HAVE__EXIT 1869 GL_GNULIB_MDA_PUTENV 1870 GL_GNULIB_MDA_MKTEMP 1871 GL_GNULIB_MDA_GCVT 1872 GL_GNULIB_MDA_FCVT 1873 GL_GNULIB_MDA_ECVT 1874 GL_GNULIB_WCTOMB 1875 GL_GNULIB_UNSETENV 1876 GL_GNULIB_UNLOCKPT 1877 GL_GNULIB_SYSTEM_POSIX 1878 GL_GNULIB_STRTOULL 1879 GL_GNULIB_STRTOUL 1880 GL_GNULIB_STRTOLL 1881 GL_GNULIB_STRTOLD 1882 GL_GNULIB_STRTOL 1883 GL_GNULIB_STRTOD 1884 GL_GNULIB_SETENV 1885 GL_GNULIB_SECURE_GETENV 1886 GL_GNULIB_RPMATCH 1887 GL_GNULIB_REALPATH 1888 GL_GNULIB_REALLOC_POSIX 1889 GL_GNULIB_REALLOC_GNU 1890 GL_GNULIB_REALLOCARRAY 1891 GL_GNULIB_RANDOM_R 1892 GL_GNULIB_RANDOM 1893 GL_GNULIB_QSORT_R 1894 GL_GNULIB_PUTENV 1895 GL_GNULIB_PTSNAME_R 1896 GL_GNULIB_PTSNAME 1897 GL_GNULIB_POSIX_OPENPT 1898 GL_GNULIB_POSIX_MEMALIGN 1899 GL_GNULIB_MKSTEMPS 1900 GL_GNULIB_MKSTEMP 1901 GL_GNULIB_MKOSTEMPS 1902 GL_GNULIB_MKOSTEMP 1903 GL_GNULIB_MKDTEMP 1904 GL_GNULIB_MBTOWC 1905 GL_GNULIB_MALLOC_POSIX 1906 GL_GNULIB_MALLOC_GNU 1907 GL_GNULIB_GRANTPT 1908 GL_GNULIB_GETSUBOPT 1909 GL_GNULIB_GETLOADAVG 1910 GL_GNULIB_FREE_POSIX 1911 GL_GNULIB_CANONICALIZE_FILE_NAME 1912 GL_GNULIB_CALLOC_POSIX 1913 GL_GNULIB_CALLOC_GNU 1914 GL_GNULIB_ATOLL 1915 GL_GNULIB_ALIGNED_ALLOC 1916 GL_GNULIB__EXIT 1917 GL_GNULIB_MDA_WCSDUP 1918 GL_GNULIB_WCSFTIME 1919 GL_GNULIB_WCSWIDTH 1920 GL_GNULIB_WCSTOK 1921 GL_GNULIB_WCSSTR 1922 GL_GNULIB_WCSPBRK 1923 GL_GNULIB_WCSSPN 1924 GL_GNULIB_WCSCSPN 1925 GL_GNULIB_WCSRCHR 1926 GL_GNULIB_WCSCHR 1927 GL_GNULIB_WCSDUP 1928 GL_GNULIB_WCSXFRM 1929 GL_GNULIB_WCSCOLL 1930 GL_GNULIB_WCSNCASECMP 1931 GL_GNULIB_WCSCASECMP 1932 GL_GNULIB_WCSNCMP 1933 GL_GNULIB_WCSCMP 1934 GL_GNULIB_WCSNCAT 1935 GL_GNULIB_WCSCAT 1936 GL_GNULIB_WCPNCPY 1937 GL_GNULIB_WCSNCPY 1938 GL_GNULIB_WCPCPY 1939 GL_GNULIB_WCSCPY 1940 GL_GNULIB_WCSNLEN 1941 GL_GNULIB_WCSLEN 1942 GL_GNULIB_WMEMSET 1943 GL_GNULIB_WMEMPCPY 1944 GL_GNULIB_WMEMMOVE 1945 GL_GNULIB_WMEMCPY 1946 GL_GNULIB_WMEMCMP 1947 GL_GNULIB_WMEMCHR 1948 GL_GNULIB_WCWIDTH 1949 GL_GNULIB_WCSNRTOMBS 1950 GL_GNULIB_WCSRTOMBS 1951 GL_GNULIB_WCRTOMB 1952 GL_GNULIB_MBSNRTOWCS 1953 GL_GNULIB_MBSRTOWCS 1954 GL_GNULIB_MBRLEN 1955 GL_GNULIB_MBRTOWC 1956 GL_GNULIB_MBSINIT 1957 GL_GNULIB_WCTOB 1958 GL_GNULIB_BTOWC 1959 GL_COND_OBJ_BTOWC_FALSE 1960 GL_COND_OBJ_BTOWC_TRUE 1961 LOCALE_FR 1962 REPLACE_WCSTOK 1963 REPLACE_WCSFTIME 1964 REPLACE_WCSWIDTH 1965 REPLACE_WCWIDTH 1966 REPLACE_WCSNRTOMBS 1967 REPLACE_WCSRTOMBS 1968 REPLACE_WCRTOMB 1969 REPLACE_MBSNRTOWCS 1970 REPLACE_MBSRTOWCS 1971 REPLACE_MBRLEN 1972 REPLACE_MBRTOWC 1973 REPLACE_MBSINIT 1974 REPLACE_WCTOB 1975 REPLACE_BTOWC 1976 REPLACE_MBSTATE_T 1977 HAVE_DECL_WCWIDTH 1978 HAVE_DECL_WCSDUP 1979 HAVE_DECL_WCTOB 1980 HAVE_WCSFTIME 1981 HAVE_WCSWIDTH 1982 HAVE_WCSTOK 1983 HAVE_WCSSTR 1984 HAVE_WCSPBRK 1985 HAVE_WCSSPN 1986 HAVE_WCSCSPN 1987 HAVE_WCSRCHR 1988 HAVE_WCSCHR 1989 HAVE_WCSDUP 1990 HAVE_WCSXFRM 1991 HAVE_WCSCOLL 1992 HAVE_WCSNCASECMP 1993 HAVE_WCSCASECMP 1994 HAVE_WCSNCMP 1995 HAVE_WCSCMP 1996 HAVE_WCSNCAT 1997 HAVE_WCSCAT 1998 HAVE_WCPNCPY 1999 HAVE_WCSNCPY 2000 HAVE_WCPCPY 2001 HAVE_WCSCPY 2002 HAVE_WCSNLEN 2003 HAVE_WCSLEN 2004 HAVE_WMEMSET 2005 HAVE_WMEMPCPY 2006 HAVE_WMEMMOVE 2007 HAVE_WMEMCPY 2008 HAVE_WMEMCMP 2009 HAVE_WMEMCHR 2010 HAVE_WCSNRTOMBS 2011 HAVE_WCSRTOMBS 2012 HAVE_WCRTOMB 2013 HAVE_MBSNRTOWCS 2014 HAVE_MBSRTOWCS 2015 HAVE_MBRLEN 2016 HAVE_MBRTOWC 2017 HAVE_MBSINIT 2018 HAVE_BTOWC 2019 GL_GENERATE_ASSERT_H_FALSE 2020 GL_GENERATE_ASSERT_H_TRUE 2021 ASSERT_H 2022 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H 2023 NEXT_ASSERT_H 2024 PRAGMA_COLUMNS 2025 PRAGMA_SYSTEM_HEADER 2026 INCLUDE_NEXT_AS_FIRST_DIRECTIVE 2027 INCLUDE_NEXT 2028 GL_GENERATE_ALLOCA_H_FALSE 2029 GL_GENERATE_ALLOCA_H_TRUE 2030 ALLOCA_H 2031 HAVE_ALLOCA_H 2032 ALLOCA 2033 USE_ACL 2034 LIB_ACL 2035 GL_COND_LIBTOOL_FALSE 2036 GL_COND_LIBTOOL_TRUE 2037 RANLIB 2038 ARFLAGS 2039 AR 2040 CPP 2041 host_os 2042 host_vendor 2043 host_cpu 2044 host 2045 build_os 2046 build_vendor 2047 build_cpu 2048 build 2049 am__fastdepCC_FALSE 2050 am__fastdepCC_TRUE 2051 CCDEPMODE 2052 am__nodep 2053 AMDEPBACKSLASH 2054 AMDEP_FALSE 2055 AMDEP_TRUE 2056 am__include 2057 DEPDIR 2058 OBJEXT 2059 EXEEXT 2060 ac_ct_CC 2061 CPPFLAGS 2062 LDFLAGS 2063 CFLAGS 2064 CC 2065 am__xargs_n 2066 am__rm_f_notfound 2067 AM_BACKSLASH 2068 AM_DEFAULT_VERBOSITY 2069 AM_DEFAULT_V 2070 AM_V 2071 CSCOPE 2072 ETAGS 2073 CTAGS 2074 am__untar 2075 am__tar 2076 AMTAR 2077 am__leading_dot 2078 SET_MAKE 2079 AWK 2080 mkdir_p 2081 MKDIR_P 2082 INSTALL_STRIP_PROGRAM 2083 STRIP 2084 install_sh 2085 MAKEINFO 2086 AUTOHEADER 2087 AUTOMAKE 2088 AUTOCONF 2089 ACLOCAL 2090 VERSION 2091 PACKAGE 2092 CYGPATH_W 2093 am__isrc 2094 INSTALL_DATA 2095 INSTALL_SCRIPT 2096 INSTALL_PROGRAM 2097 target_alias 2098 host_alias 2099 build_alias 2100 LIBS 2101 ECHO_T 2102 ECHO_N 2103 ECHO_C 2104 DEFS 2105 mandir 2106 localedir 2107 libdir 2108 psdir 2109 pdfdir 2110 dvidir 2111 htmldir 2112 infodir 2113 docdir 2114 oldincludedir 2115 includedir 2116 runstatedir 2117 localstatedir 2118 sharedstatedir 2119 sysconfdir 2120 datadir 2121 datarootdir 2122 libexecdir 2123 sbindir 2124 bindir 2125 program_transform_name 2126 prefix 2127 exec_prefix 2128 PACKAGE_URL 2129 PACKAGE_BUGREPORT 2130 PACKAGE_STRING 2131 PACKAGE_VERSION 2132 PACKAGE_TARNAME 2133 PACKAGE_NAME 2134 PATH_SEPARATOR 2135 SHELL 2136 am__quote' 315 2137 ac_subst_files='' 2138 ac_user_opts=' 2139 enable_option_checking 2140 enable_silent_rules 2141 enable_dependency_tracking 2142 enable_largefile 2143 enable_year2038 2144 enable_threads 2145 enable_cross_guesses 2146 enable_acl 2147 enable_assert 2148 with_included_regex 2149 with_selinux 2150 with_packager 2151 with_packager_version 2152 with_packager_bug_reports 2153 enable_nls 2154 with_gnu_ld 2155 enable_rpath 2156 with_libiconv_prefix 2157 with_libintl_prefix 2158 enable_i18n 2159 enable_gcc_warnings 2160 enable_bold_man_page_references 2161 ' 2162 ac_precious_vars='build_alias 2163 host_alias 2164 target_alias 2165 CC 2166 CFLAGS 2167 LDFLAGS 2168 LIBS 2169 CPPFLAGS 2170 CPP' 2171 316 2172 317 2173 # Initialize some variables set by options. 318 2174 ac_init_help= 319 2175 ac_init_version=false 2176 ac_unrecognized_opts= 2177 ac_unrecognized_sep= 320 2178 # The variables have the same names as the options, with 321 2179 # dashes changed to underlines. … … 340 2198 # by default will actually change. 341 2199 # Use braces instead of parens because sh, perl, etc. also accept them. 2200 # (The list follows the same order as the GNU Coding Standards.) 342 2201 bindir='${exec_prefix}/bin' 343 2202 sbindir='${exec_prefix}/sbin' 344 2203 libexecdir='${exec_prefix}/libexec' 345 datadir='${prefix}/share' 2204 datarootdir='${prefix}/share' 2205 datadir='${datarootdir}' 346 2206 sysconfdir='${prefix}/etc' 347 2207 sharedstatedir='${prefix}/com' 348 2208 localstatedir='${prefix}/var' 349 libdir='${exec_prefix}/lib'2209 runstatedir='${localstatedir}/run' 350 2210 includedir='${prefix}/include' 351 2211 oldincludedir='/usr/include' 352 infodir='${prefix}/info' 353 mandir='${prefix}/man' 2212 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 2213 infodir='${datarootdir}/info' 2214 htmldir='${docdir}' 2215 dvidir='${docdir}' 2216 pdfdir='${docdir}' 2217 psdir='${docdir}' 2218 libdir='${exec_prefix}/lib' 2219 localedir='${datarootdir}/locale' 2220 mandir='${datarootdir}/man' 354 2221 355 2222 ac_prev= 2223 ac_dashdash= 356 2224 for ac_option 357 2225 do 358 2226 # If the previous option needs an argument, assign it. 359 2227 if test -n "$ac_prev"; then 360 eval "$ac_prev=\$ac_option"2228 eval $ac_prev=\$ac_option 361 2229 ac_prev= 362 2230 continue 363 2231 fi 364 2232 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`366 367 # Accept the important Cygnus configure options, so we can diagnose typos.368 369 2233 case $ac_option in 2234 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 2235 *=) ac_optarg= ;; 2236 *) ac_optarg=yes ;; 2237 esac 2238 2239 case $ac_dashdash$ac_option in 2240 --) 2241 ac_dashdash=yes ;; 370 2242 371 2243 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 389 2261 cache_file=config.cache ;; 390 2262 391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)2263 -datadir | --datadir | --datadi | --datad) 392 2264 ac_prev=datadir ;; 393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 394 | --da=*) 2265 -datadir=* | --datadir=* | --datadi=* | --datad=*) 395 2266 datadir=$ac_optarg ;; 396 2267 2268 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 2269 | --dataroo | --dataro | --datar) 2270 ac_prev=datarootdir ;; 2271 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 2272 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 2273 datarootdir=$ac_optarg ;; 2274 397 2275 -disable-* | --disable-*) 398 ac_ feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`2276 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 399 2277 # Reject names that are not valid shell variable names. 400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 402 { (exit 1); exit 1; }; } 403 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 404 eval "enable_$ac_feature=no" ;; 2278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2279 as_fn_error $? "invalid feature name: '$ac_useropt'" 2280 ac_useropt_orig=$ac_useropt 2281 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2282 case $ac_user_opts in 2283 *" 2284 "enable_$ac_useropt" 2285 "*) ;; 2286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 2287 ac_unrecognized_sep=', ';; 2288 esac 2289 eval enable_$ac_useropt=no ;; 2290 2291 -docdir | --docdir | --docdi | --doc | --do) 2292 ac_prev=docdir ;; 2293 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 2294 docdir=$ac_optarg ;; 2295 2296 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 2297 ac_prev=dvidir ;; 2298 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 2299 dvidir=$ac_optarg ;; 405 2300 406 2301 -enable-* | --enable-*) 407 ac_ feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`2302 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 408 2303 # Reject names that are not valid shell variable names. 409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 411 { (exit 1); exit 1; }; } 412 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 413 case $ac_option in 414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 415 *) ac_optarg=yes ;; 2304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2305 as_fn_error $? "invalid feature name: '$ac_useropt'" 2306 ac_useropt_orig=$ac_useropt 2307 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2308 case $ac_user_opts in 2309 *" 2310 "enable_$ac_useropt" 2311 "*) ;; 2312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 2313 ac_unrecognized_sep=', ';; 416 2314 esac 417 eval "enable_$ac_feature='$ac_optarg'";;2315 eval enable_$ac_useropt=\$ac_optarg ;; 418 2316 419 2317 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 442 2340 host_alias=$ac_optarg ;; 443 2341 2342 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 2343 ac_prev=htmldir ;; 2344 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 2345 | --ht=*) 2346 htmldir=$ac_optarg ;; 2347 444 2348 -includedir | --includedir | --includedi | --included | --include \ 445 2349 | --includ | --inclu | --incl | --inc) … … 466 2370 libexecdir=$ac_optarg ;; 467 2371 2372 -localedir | --localedir | --localedi | --localed | --locale) 2373 ac_prev=localedir ;; 2374 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 2375 localedir=$ac_optarg ;; 2376 468 2377 -localstatedir | --localstatedir | --localstatedi | --localstated \ 469 | --localstate | --localstat | --localsta | --localst \ 470 | --locals | --local | --loca | --loc | --lo) 2378 | --localstate | --localstat | --localsta | --localst | --locals) 471 2379 ac_prev=localstatedir ;; 472 2380 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 2381 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 475 2382 localstatedir=$ac_optarg ;; 476 2383 … … 537 2444 program_transform_name=$ac_optarg ;; 538 2445 2446 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 2447 ac_prev=pdfdir ;; 2448 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 2449 pdfdir=$ac_optarg ;; 2450 2451 -psdir | --psdir | --psdi | --psd | --ps) 2452 ac_prev=psdir ;; 2453 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 2454 psdir=$ac_optarg ;; 2455 539 2456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 540 2457 | -silent | --silent | --silen | --sile | --sil) 541 2458 silent=yes ;; 2459 2460 -runstatedir | --runstatedir | --runstatedi | --runstated \ 2461 | --runstate | --runstat | --runsta | --runst | --runs \ 2462 | --run | --ru | --r) 2463 ac_prev=runstatedir ;; 2464 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 2465 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 2466 | --run=* | --ru=* | --r=*) 2467 runstatedir=$ac_optarg ;; 542 2468 543 2469 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) … … 587 2513 588 2514 -with-* | --with-*) 589 ac_ package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`2515 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 590 2516 # Reject names that are not valid shell variable names. 591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 592 { echo "$as_me: error: invalid package name: $ac_package" >&2 593 { (exit 1); exit 1; }; } 594 ac_package=`echo $ac_package| sed 's/-/_/g'` 595 case $ac_option in 596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 597 *) ac_optarg=yes ;; 2517 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2518 as_fn_error $? "invalid package name: '$ac_useropt'" 2519 ac_useropt_orig=$ac_useropt 2520 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2521 case $ac_user_opts in 2522 *" 2523 "with_$ac_useropt" 2524 "*) ;; 2525 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2526 ac_unrecognized_sep=', ';; 598 2527 esac 599 eval "with_$ac_package='$ac_optarg'";;2528 eval with_$ac_useropt=\$ac_optarg ;; 600 2529 601 2530 -without-* | --without-*) 602 ac_ package=`expr "x$ac_option" : 'x-*without-\(.*\)'`2531 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 603 2532 # Reject names that are not valid shell variable names. 604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 605 { echo "$as_me: error: invalid package name: $ac_package" >&2 606 { (exit 1); exit 1; }; } 607 ac_package=`echo $ac_package | sed 's/-/_/g'` 608 eval "with_$ac_package=no" ;; 2533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2534 as_fn_error $? "invalid package name: '$ac_useropt'" 2535 ac_useropt_orig=$ac_useropt 2536 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2537 case $ac_user_opts in 2538 *" 2539 "with_$ac_useropt" 2540 "*) ;; 2541 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2542 ac_unrecognized_sep=', ';; 2543 esac 2544 eval with_$ac_useropt=no ;; 609 2545 610 2546 --x) … … 626 2562 x_libraries=$ac_optarg ;; 627 2563 628 -*) { echo "$as_me: error: unrecognized option: $ac_option 629 Try \`$0 --help' for more information." >&2 630 { (exit 1); exit 1; }; } 2564 -*) as_fn_error $? "unrecognized option: '$ac_option' 2565 Try '$0 --help' for more information" 631 2566 ;; 632 2567 … … 634 2569 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 635 2570 # Reject names that are not valid shell variable names. 636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2638 { (exit 1); exit 1; }; }639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`640 eval "$ac_envvar='$ac_optarg'"2571 case $ac_envvar in #( 2572 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2573 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 2574 esac 2575 eval $ac_envvar=\$ac_optarg 641 2576 export $ac_envvar ;; 642 2577 643 2578 *) 644 2579 # FIXME: should be removed in autoconf 3.0. 645 echo"$as_me: WARNING: you should use --build, --host, --target" >&22580 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 646 2581 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 647 echo"$as_me: WARNING: invalid host type: $ac_option" >&2648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}2582 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 2583 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 649 2584 ;; 650 2585 … … 654 2589 if test -n "$ac_prev"; then 655 2590 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 656 { echo "$as_me: error: missing argument to $ac_option" >&2 657 { (exit 1); exit 1; }; } 658 fi 659 660 # Be sure to have absolute paths. 661 for ac_var in exec_prefix prefix 2591 as_fn_error $? "missing argument to $ac_option" 2592 fi 2593 2594 if test -n "$ac_unrecognized_opts"; then 2595 case $enable_option_checking in 2596 no) ;; 2597 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2598 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2599 esac 2600 fi 2601 2602 # Check all directory arguments for consistency. 2603 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2604 datadir sysconfdir sharedstatedir localstatedir includedir \ 2605 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2606 libdir localedir mandir runstatedir 662 2607 do 663 eval ac_val=$`echo $ac_var` 2608 eval ac_val=\$$ac_var 2609 # Remove trailing slashes. 664 2610 case $ac_val in 665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2667 { (exit 1); exit 1; }; };;2611 */ ) 2612 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2613 eval $ac_var=\$ac_val;; 668 2614 esac 2615 # Be sure to have absolute directory names. 2616 case $ac_val in 2617 [\\/$]* | ?:[\\/]* ) continue;; 2618 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2619 esac 2620 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 669 2621 done 670 2622 671 # Be sure to have absolute paths. 672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 673 localstatedir libdir includedir oldincludedir infodir mandir 674 do 675 eval ac_val=$`echo $ac_var` 676 case $ac_val in 677 [\\/$]* | ?:[\\/]* ) ;; 678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 679 { (exit 1); exit 1; }; };; 680 esac 681 done 682 683 # There might be people who depend on the old broken behavior: `$host' 2623 # There might be people who depend on the old broken behavior: '$host' 684 2624 # used to hold the argument of --host etc. 685 2625 # FIXME: To remove some day. … … 692 2632 if test "x$build_alias" = x; then 693 2633 cross_compiling=maybe 694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.695 If a cross compiler is detected then cross compile mode will be used." >&2696 2634 elif test "x$build_alias" != "x$host_alias"; then 697 2635 cross_compiling=yes … … 703 2641 704 2642 test "$silent" = yes && exec 6>/dev/null 2643 2644 2645 ac_pwd=`pwd` && test -n "$ac_pwd" && 2646 ac_ls_di=`ls -di .` && 2647 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2648 as_fn_error $? "working directory cannot be determined" 2649 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2650 as_fn_error $? "pwd does not report name of working directory" 705 2651 706 2652 … … 708 2654 if test -z "$srcdir"; then 709 2655 ac_srcdir_defaulted=yes 710 # Try the directory containing this script, then its parent. 711 ac_confdir=`(dirname "$0") 2>/dev/null || 712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 713 X"$0" : 'X\(//\)[^/]' \| \ 714 X"$0" : 'X\(//\)$' \| \ 715 X"$0" : 'X\(/\)' \| \ 716 . : '\(.\)' 2>/dev/null || 717 echo X"$0" | 718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 719 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 720 /^X\(\/\/\)$/{ s//\1/; q; } 721 /^X\(\/\).*/{ s//\1/; q; } 722 s/.*/./; q'` 2656 # Try the directory containing this script, then the parent directory. 2657 ac_confdir=`$as_dirname -- "$as_myself" || 2658 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2659 X"$as_myself" : 'X\(//\)[^/]' \| \ 2660 X"$as_myself" : 'X\(//\)$' \| \ 2661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2662 printf "%s\n" X"$as_myself" | 2663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2664 s//\1/ 2665 q 2666 } 2667 /^X\(\/\/\)[^/].*/{ 2668 s//\1/ 2669 q 2670 } 2671 /^X\(\/\/\)$/{ 2672 s//\1/ 2673 q 2674 } 2675 /^X\(\/\).*/{ 2676 s//\1/ 2677 q 2678 } 2679 s/.*/./; q'` 723 2680 srcdir=$ac_confdir 724 if test ! -r $srcdir/$ac_unique_file; then2681 if test ! -r "$srcdir/$ac_unique_file"; then 725 2682 srcdir=.. 726 2683 fi … … 728 2685 ac_srcdir_defaulted=no 729 2686 fi 730 if test ! -r $srcdir/$ac_unique_file; then 731 if test "$ac_srcdir_defaulted" = yes; then 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 733 { (exit 1); exit 1; }; } 734 else 735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 736 { (exit 1); exit 1; }; } 737 fi 738 fi 739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 741 { (exit 1); exit 1; }; } 742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 743 ac_env_build_alias_set=${build_alias+set} 744 ac_env_build_alias_value=$build_alias 745 ac_cv_env_build_alias_set=${build_alias+set} 746 ac_cv_env_build_alias_value=$build_alias 747 ac_env_host_alias_set=${host_alias+set} 748 ac_env_host_alias_value=$host_alias 749 ac_cv_env_host_alias_set=${host_alias+set} 750 ac_cv_env_host_alias_value=$host_alias 751 ac_env_target_alias_set=${target_alias+set} 752 ac_env_target_alias_value=$target_alias 753 ac_cv_env_target_alias_set=${target_alias+set} 754 ac_cv_env_target_alias_value=$target_alias 755 ac_env_CC_set=${CC+set} 756 ac_env_CC_value=$CC 757 ac_cv_env_CC_set=${CC+set} 758 ac_cv_env_CC_value=$CC 759 ac_env_CFLAGS_set=${CFLAGS+set} 760 ac_env_CFLAGS_value=$CFLAGS 761 ac_cv_env_CFLAGS_set=${CFLAGS+set} 762 ac_cv_env_CFLAGS_value=$CFLAGS 763 ac_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_env_LDFLAGS_value=$LDFLAGS 765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 766 ac_cv_env_LDFLAGS_value=$LDFLAGS 767 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_env_CPPFLAGS_value=$CPPFLAGS 769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 771 ac_env_CPP_set=${CPP+set} 772 ac_env_CPP_value=$CPP 773 ac_cv_env_CPP_set=${CPP+set} 774 ac_cv_env_CPP_value=$CPP 2687 if test ! -r "$srcdir/$ac_unique_file"; then 2688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2690 fi 2691 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 2692 ac_abs_confdir=`( 2693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2694 pwd)` 2695 # When building in place, set srcdir=. 2696 if test "$ac_abs_confdir" = "$ac_pwd"; then 2697 srcdir=. 2698 fi 2699 # Remove unnecessary trailing slashes from srcdir. 2700 # Double slashes in file names in object file debugging info 2701 # mess up M-x gdb in Emacs. 2702 case $srcdir in 2703 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2704 esac 2705 for ac_var in $ac_precious_vars; do 2706 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2707 eval ac_env_${ac_var}_value=\$${ac_var} 2708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2709 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2710 done 775 2711 776 2712 # … … 781 2717 # This message is too long to be a string in the A/UX 3.1 sh. 782 2718 cat <<_ACEOF 783 \`configure' configures sed 4.1.5to adapt to many kinds of systems.2719 'configure' configures GNU sed 4.9 to adapt to many kinds of systems. 784 2720 785 2721 Usage: $0 [OPTION]... [VAR=VALUE]... … … 795 2731 --help=recursive display the short help of all the included packages 796 2732 -V, --version display version information and exit 797 -q, --quiet, --silent do not print \`checking...' messages2733 -q, --quiet, --silent do not print 'checking ...' messages 798 2734 --cache-file=FILE cache test results in FILE [disabled] 799 -C, --config-cache alias for \`--cache-file=config.cache'2735 -C, --config-cache alias for '--cache-file=config.cache' 800 2736 -n, --no-create do not create output files 801 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 802 803 _ACEOF 804 805 cat <<_ACEOF 2737 --srcdir=DIR find the sources in DIR [configure dir or '..'] 2738 806 2739 Installation directories: 807 2740 --prefix=PREFIX install architecture-independent files in PREFIX 808 2741 [$ac_default_prefix] 809 2742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 810 811 812 By default, \`make install' will install all the files in813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',815 for instance \`--prefix=\$HOME'.2743 [PREFIX] 2744 2745 By default, 'make install' will install all the files in 2746 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 2747 an installation prefix other than '$ac_default_prefix' using '--prefix', 2748 for instance '--prefix=\$HOME'. 816 2749 817 2750 For better control, use the options below. 818 2751 819 2752 Fine tuning of the installation directories: 820 --bindir=DIR user executables [EPREFIX/bin] 821 --sbindir=DIR system admin executables [EPREFIX/sbin] 822 --libexecdir=DIR program executables [EPREFIX/libexec] 823 --datadir=DIR read-only architecture-independent data [PREFIX/share] 824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 826 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 827 --libdir=DIR object code libraries [EPREFIX/lib] 828 --includedir=DIR C header files [PREFIX/include] 829 --oldincludedir=DIR C header files for non-gcc [/usr/include] 830 --infodir=DIR info documentation [PREFIX/info] 831 --mandir=DIR man documentation [PREFIX/man] 2753 --bindir=DIR user executables [EPREFIX/bin] 2754 --sbindir=DIR system admin executables [EPREFIX/sbin] 2755 --libexecdir=DIR program executables [EPREFIX/libexec] 2756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2758 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2759 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2760 --libdir=DIR object code libraries [EPREFIX/lib] 2761 --includedir=DIR C header files [PREFIX/include] 2762 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2763 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2764 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2765 --infodir=DIR info documentation [DATAROOTDIR/info] 2766 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2767 --mandir=DIR man documentation [DATAROOTDIR/man] 2768 --docdir=DIR documentation root [DATAROOTDIR/doc/sed] 2769 --htmldir=DIR html documentation [DOCDIR] 2770 --dvidir=DIR dvi documentation [DOCDIR] 2771 --pdfdir=DIR pdf documentation [DOCDIR] 2772 --psdir=DIR ps documentation [DOCDIR] 832 2773 _ACEOF 833 2774 … … 847 2788 if test -n "$ac_init_help"; then 848 2789 case $ac_init_help in 849 short | recursive ) echo "Configuration of sed 4.1.5:";;2790 short | recursive ) echo "Configuration of GNU sed 4.9:";; 850 2791 esac 851 2792 cat <<\_ACEOF 852 2793 853 2794 Optional Features: 2795 --disable-option-checking ignore unrecognized --enable/--with options 854 2796 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 855 2797 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 856 --disable-dependency-tracking speeds up one-time build 857 --enable-dependency-tracking do not reject slow dependency extractors 2798 --enable-silent-rules less verbose build output (undo: "make V=1") 2799 --disable-silent-rules verbose build output (undo: "make V=0") 2800 --enable-dependency-tracking 2801 do not reject slow dependency extractors 2802 --disable-dependency-tracking 2803 speeds up one-time build 858 2804 --disable-largefile omit support for large files 859 --disable-i18n disable internationalization (default=yes) 860 --enable-regex-tests enable regex matcher regression tests (default=yes) 861 --enable-html build HTML manual (default=no) 2805 --disable-year2038 omit support for timestamps past the year 2038 2806 --enable-threads={isoc|posix|isoc+posix|windows} 2807 specify multithreading API 2808 --disable-threads build without multithread safety 2809 --enable-cross-guesses={conservative|risky} 2810 specify policy for cross-compilation guesses 2811 --disable-acl do not support ACLs 2812 --disable-assert turn off assertions 862 2813 --disable-nls do not use Native Language Support 2814 --disable-rpath do not hardcode runtime library paths 2815 --disable-i18n disable internationalization (default=enabled) 2816 --enable-gcc-warnings turn on many GCC warnings (for developers; best with 2817 GNU make) 2818 --disable-bold-man-page-references 2819 When generating man pages, do not apply bold style 2820 around any references like name(1) etc. 863 2821 864 2822 Optional Packages: 865 2823 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 866 2824 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 867 --with-included-regex use included regex matcher (default=yes) 868 --with-gnu-ld assume the C compiler uses GNU ld default=no 869 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 2825 --without-included-regex 2826 don't compile regex; this is the default on systems 2827 with recent-enough versions of the GNU C Library 2828 (use with caution on other systems). 2829 --without-selinux do not use SELinux, even on systems with SELinux 2830 --with-packager String identifying the packager of this software 2831 --with-packager-version Packager-specific version information 2832 --with-packager-bug-reports 2833 Packager info for bug reports (URL/e-mail/...) 2834 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2835 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 870 2836 --without-libiconv-prefix don't search for libiconv in includedir and libdir 871 --with-included-gettext use the GNU gettext library included here 872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 2837 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 873 2838 --without-libintl-prefix don't search for libintl in includedir and libdir 874 2839 … … 878 2843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 879 2844 nonstandard directory <lib dir> 880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 881 headers in a nonstandard directory <include dir> 2845 LIBS libraries to pass to the linker, e.g. -l<library> 2846 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2847 you have headers in a nonstandard directory <include dir> 882 2848 CPP C preprocessor 883 2849 884 Use these variables to override the choices made by `configure' or to help2850 Use these variables to override the choices made by 'configure' or to help 885 2851 it to find libraries and programs with nonstandard names/locations. 886 2852 887 Report bugs to <[email protected]>. 2853 Report bugs to <[email protected]>. 2854 GNU sed home page: <https://www.gnu.org/software/sed/>. 2855 General help using GNU software: <https://www.gnu.org/gethelp/>. 888 2856 _ACEOF 2857 ac_status=$? 889 2858 fi 890 2859 891 2860 if test "$ac_init_help" = "recursive"; then 892 2861 # If there are subdirs, report their specific --help. 893 ac_popdir=`pwd`894 2862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 895 test -d $ac_dir || continue 2863 test -d "$ac_dir" || 2864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2865 continue 896 2866 ac_builddir=. 897 2867 898 if test "$ac_dir" != .; then 899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 900 # A "../" for each directory in $ac_dir_suffix. 901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 902 else 903 ac_dir_suffix= ac_top_builddir= 904 fi 2868 case "$ac_dir" in 2869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2870 *) 2871 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2872 # A ".." for each directory in $ac_dir_suffix. 2873 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2874 case $ac_top_builddir_sub in 2875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2877 esac ;; 2878 esac 2879 ac_abs_top_builddir=$ac_pwd 2880 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2881 # for backward compatibility: 2882 ac_top_builddir=$ac_top_build_prefix 905 2883 906 2884 case $srcdir in 907 .) # No --srcdir option.We are building in place.2885 .) # We are building in place. 908 2886 ac_srcdir=. 909 if test -z "$ac_top_builddir"; then 910 ac_top_srcdir=. 2887 ac_top_srcdir=$ac_top_builddir_sub 2888 ac_abs_top_srcdir=$ac_pwd ;; 2889 [\\/]* | ?:[\\/]* ) # Absolute name. 2890 ac_srcdir=$srcdir$ac_dir_suffix; 2891 ac_top_srcdir=$srcdir 2892 ac_abs_top_srcdir=$srcdir ;; 2893 *) # Relative name. 2894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2895 ac_top_srcdir=$ac_top_build_prefix$srcdir 2896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2897 esac 2898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2899 2900 cd "$ac_dir" || { ac_status=$?; continue; } 2901 # Check for configure.gnu first; this name is used for a wrapper for 2902 # Metaconfig's "Configure" on case-insensitive file systems. 2903 if test -f "$ac_srcdir/configure.gnu"; then 2904 echo && 2905 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2906 elif test -f "$ac_srcdir/configure"; then 2907 echo && 2908 $SHELL "$ac_srcdir/configure" --help=recursive 911 2909 else 912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 913 fi ;; 914 [\\/]* | ?:[\\/]* ) # Absolute path. 915 ac_srcdir=$srcdir$ac_dir_suffix; 916 ac_top_srcdir=$srcdir ;; 917 *) # Relative path. 918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 919 ac_top_srcdir=$ac_top_builddir$srcdir ;; 920 esac 921 922 # Do not use `cd foo && pwd` to compute absolute paths, because 923 # the directories may not exist. 924 case `pwd` in 925 .) ac_abs_builddir="$ac_dir";; 926 *) 927 case "$ac_dir" in 928 .) ac_abs_builddir=`pwd`;; 929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 930 *) ac_abs_builddir=`pwd`/"$ac_dir";; 931 esac;; 932 esac 933 case $ac_abs_builddir in 934 .) ac_abs_top_builddir=${ac_top_builddir}.;; 935 *) 936 case ${ac_top_builddir}. in 937 .) ac_abs_top_builddir=$ac_abs_builddir;; 938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 940 esac;; 941 esac 942 case $ac_abs_builddir in 943 .) ac_abs_srcdir=$ac_srcdir;; 944 *) 945 case $ac_srcdir in 946 .) ac_abs_srcdir=$ac_abs_builddir;; 947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 949 esac;; 950 esac 951 case $ac_abs_builddir in 952 .) ac_abs_top_srcdir=$ac_top_srcdir;; 953 *) 954 case $ac_top_srcdir in 955 .) ac_abs_top_srcdir=$ac_abs_builddir;; 956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 958 esac;; 959 esac 960 961 cd $ac_dir 962 # Check for guested configure; otherwise get Cygnus style configure. 963 if test -f $ac_srcdir/configure.gnu; then 964 echo 965 $SHELL $ac_srcdir/configure.gnu --help=recursive 966 elif test -f $ac_srcdir/configure; then 967 echo 968 $SHELL $ac_srcdir/configure --help=recursive 969 elif test -f $ac_srcdir/configure.ac || 970 test -f $ac_srcdir/configure.in; then 971 echo 972 $ac_configure --help 973 else 974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 975 fi 976 cd $ac_popdir 2910 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2911 fi || ac_status=$? 2912 cd "$ac_pwd" || { ac_status=$?; break; } 977 2913 done 978 2914 fi 979 2915 980 test -n "$ac_init_help" && exit 02916 test -n "$ac_init_help" && exit $ac_status 981 2917 if $ac_init_version; then 982 2918 cat <<\_ACEOF 983 sed configure 4.1.5 984 generated by GNU Autoconf 2. 59985 986 Copyright (C) 20 03Free Software Foundation, Inc.2919 GNU sed configure 4.9 2920 generated by GNU Autoconf 2.72a.65-d081 2921 2922 Copyright (C) 2022 Free Software Foundation, Inc. 987 2923 This configure script is free software; the Free Software Foundation 988 2924 gives unlimited permission to copy, distribute and modify it. 989 2925 _ACEOF 990 exit 0 991 fi 992 exec 5>config.log 993 cat >&5 <<_ACEOF 2926 exit 2927 fi 2928 2929 ## ------------------------ ## 2930 ## Autoconf initialization. ## 2931 ## ------------------------ ## 2932 2933 # ac_fn_c_try_compile LINENO 2934 # -------------------------- 2935 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2936 ac_fn_c_try_compile () 2937 { 2938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2939 rm -f conftest.$ac_objext conftest.beam 2940 if { { ac_try="$ac_compile" 2941 case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944 esac 2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2946 printf "%s\n" "$ac_try_echo"; } >&5 2947 (eval "$ac_compile") 2>conftest.err 2948 ac_status=$? 2949 if test -s conftest.err; then 2950 grep -v '^ *+' conftest.err >conftest.er1 2951 cat conftest.er1 >&5 2952 mv -f conftest.er1 conftest.err 2953 fi 2954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2955 test $ac_status = 0; } && { 2956 test -z "$ac_c_werror_flag" || 2957 test ! -s conftest.err 2958 } && test -s conftest.$ac_objext 2959 then : 2960 ac_retval=0 2961 else case e in #( 2962 e) printf "%s\n" "$as_me: failed program was:" >&5 2963 sed 's/^/| /' conftest.$ac_ext >&5 2964 2965 ac_retval=1 ;; 2966 esac 2967 fi 2968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2969 as_fn_set_status $ac_retval 2970 2971 } # ac_fn_c_try_compile 2972 2973 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2974 # ------------------------------------------------------- 2975 # Tests whether HEADER exists and can be compiled using the include files in 2976 # INCLUDES, setting the cache variable VAR accordingly. 2977 ac_fn_c_check_header_compile () 2978 { 2979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2981 printf %s "checking for $2... " >&6; } 2982 if eval test \${$3+y} 2983 then : 2984 printf %s "(cached) " >&6 2985 else case e in #( 2986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2987 /* end confdefs.h. */ 2988 $4 2989 #include <$2> 2990 _ACEOF 2991 if ac_fn_c_try_compile "$LINENO" 2992 then : 2993 eval "$3=yes" 2994 else case e in #( 2995 e) eval "$3=no" ;; 2996 esac 2997 fi 2998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2999 esac 3000 fi 3001 eval ac_res=\$$3 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3003 printf "%s\n" "$ac_res" >&6; } 3004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3005 3006 } # ac_fn_c_check_header_compile 3007 3008 # ac_fn_c_try_cpp LINENO 3009 # ---------------------- 3010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 3011 ac_fn_c_try_cpp () 3012 { 3013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3014 if { { ac_try="$ac_cpp conftest.$ac_ext" 3015 case "(($ac_try" in 3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3017 *) ac_try_echo=$ac_try;; 3018 esac 3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3020 printf "%s\n" "$ac_try_echo"; } >&5 3021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 3022 ac_status=$? 3023 if test -s conftest.err; then 3024 grep -v '^ *+' conftest.err >conftest.er1 3025 cat conftest.er1 >&5 3026 mv -f conftest.er1 conftest.err 3027 fi 3028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3029 test $ac_status = 0; } > conftest.i && { 3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3031 test ! -s conftest.err 3032 } 3033 then : 3034 ac_retval=0 3035 else case e in #( 3036 e) printf "%s\n" "$as_me: failed program was:" >&5 3037 sed 's/^/| /' conftest.$ac_ext >&5 3038 3039 ac_retval=1 ;; 3040 esac 3041 fi 3042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3043 as_fn_set_status $ac_retval 3044 3045 } # ac_fn_c_try_cpp 3046 3047 # ac_fn_c_try_link LINENO 3048 # ----------------------- 3049 # Try to link conftest.$ac_ext, and return whether this succeeded. 3050 ac_fn_c_try_link () 3051 { 3052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3053 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 3054 if { { ac_try="$ac_link" 3055 case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058 esac 3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3060 printf "%s\n" "$ac_try_echo"; } >&5 3061 (eval "$ac_link") 2>conftest.err 3062 ac_status=$? 3063 if test -s conftest.err; then 3064 grep -v '^ *+' conftest.err >conftest.er1 3065 cat conftest.er1 >&5 3066 mv -f conftest.er1 conftest.err 3067 fi 3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3069 test $ac_status = 0; } && { 3070 test -z "$ac_c_werror_flag" || 3071 test ! -s conftest.err 3072 } && test -s conftest$ac_exeext && { 3073 test "$cross_compiling" = yes || 3074 test -x conftest$ac_exeext 3075 } 3076 then : 3077 ac_retval=0 3078 else case e in #( 3079 e) printf "%s\n" "$as_me: failed program was:" >&5 3080 sed 's/^/| /' conftest.$ac_ext >&5 3081 3082 ac_retval=1 ;; 3083 esac 3084 fi 3085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 3086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 3087 # interfere with the next link command; also delete a directory that is 3088 # left behind by Apple's compiler. We do this before executing the actions. 3089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 3090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3091 as_fn_set_status $ac_retval 3092 3093 } # ac_fn_c_try_link 3094 3095 # ac_fn_c_check_func LINENO FUNC VAR 3096 # ---------------------------------- 3097 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3098 ac_fn_c_check_func () 3099 { 3100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3102 printf %s "checking for $2... " >&6; } 3103 if eval test \${$3+y} 3104 then : 3105 printf %s "(cached) " >&6 3106 else case e in #( 3107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3108 /* end confdefs.h. */ 3109 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3110 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3111 #define $2 innocuous_$2 3112 3113 /* System header to define __stub macros and hopefully few prototypes, 3114 which can conflict with char $2 (void); below. */ 3115 3116 #include <limits.h> 3117 #undef $2 3118 3119 /* Override any GCC internal prototype to avoid an error. 3120 Use char because int might match the return type of a GCC 3121 builtin and then its argument prototype would still apply. */ 3122 #ifdef __cplusplus 3123 extern "C" 3124 #endif 3125 char $2 (void); 3126 /* The GNU C library defines this for functions which it implements 3127 to always fail with ENOSYS. Some functions are actually named 3128 something starting with __ and the normal name is an alias. */ 3129 #if defined __stub_$2 || defined __stub___$2 3130 choke me 3131 #endif 3132 3133 int 3134 main (void) 3135 { 3136 return $2 (); 3137 ; 3138 return 0; 3139 } 3140 _ACEOF 3141 if ac_fn_c_try_link "$LINENO" 3142 then : 3143 eval "$3=yes" 3144 else case e in #( 3145 e) eval "$3=no" ;; 3146 esac 3147 fi 3148 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 3149 conftest$ac_exeext conftest.$ac_ext ;; 3150 esac 3151 fi 3152 eval ac_res=\$$3 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3154 printf "%s\n" "$ac_res" >&6; } 3155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3156 3157 } # ac_fn_c_check_func 3158 3159 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3160 # ------------------------------------------- 3161 # Tests whether TYPE exists after having included INCLUDES, setting cache 3162 # variable VAR accordingly. 3163 ac_fn_c_check_type () 3164 { 3165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3167 printf %s "checking for $2... " >&6; } 3168 if eval test \${$3+y} 3169 then : 3170 printf %s "(cached) " >&6 3171 else case e in #( 3172 e) eval "$3=no" 3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174 /* end confdefs.h. */ 3175 $4 3176 int 3177 main (void) 3178 { 3179 if (sizeof ($2)) 3180 return 0; 3181 ; 3182 return 0; 3183 } 3184 _ACEOF 3185 if ac_fn_c_try_compile "$LINENO" 3186 then : 3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188 /* end confdefs.h. */ 3189 $4 3190 int 3191 main (void) 3192 { 3193 if (sizeof (($2))) 3194 return 0; 3195 ; 3196 return 0; 3197 } 3198 _ACEOF 3199 if ac_fn_c_try_compile "$LINENO" 3200 then : 3201 3202 else case e in #( 3203 e) eval "$3=yes" ;; 3204 esac 3205 fi 3206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3207 fi 3208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3209 esac 3210 fi 3211 eval ac_res=\$$3 3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3213 printf "%s\n" "$ac_res" >&6; } 3214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3215 3216 } # ac_fn_c_check_type 3217 3218 # ac_fn_c_try_run LINENO 3219 # ---------------------- 3220 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 3221 # executables *can* be run. 3222 ac_fn_c_try_run () 3223 { 3224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3225 if { { ac_try="$ac_link" 3226 case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229 esac 3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231 printf "%s\n" "$ac_try_echo"; } >&5 3232 (eval "$ac_link") 2>&5 3233 ac_status=$? 3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 3236 { { case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239 esac 3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241 printf "%s\n" "$ac_try_echo"; } >&5 3242 (eval "$ac_try") 2>&5 3243 ac_status=$? 3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3245 test $ac_status = 0; }; } 3246 then : 3247 ac_retval=0 3248 else case e in #( 3249 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 3250 printf "%s\n" "$as_me: failed program was:" >&5 3251 sed 's/^/| /' conftest.$ac_ext >&5 3252 3253 ac_retval=$ac_status ;; 3254 esac 3255 fi 3256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 3257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3258 as_fn_set_status $ac_retval 3259 3260 } # ac_fn_c_try_run 3261 3262 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 3263 # -------------------------------------------- 3264 # Tries to find the compile-time value of EXPR in a program that includes 3265 # INCLUDES, setting VAR accordingly. Returns whether the value could be 3266 # computed 3267 ac_fn_c_compute_int () 3268 { 3269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3270 if test "$cross_compiling" = yes; then 3271 # Depending upon the size, compute the lo and hi bounds. 3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273 /* end confdefs.h. */ 3274 $4 3275 int 3276 main (void) 3277 { 3278 static int test_array [1 - 2 * !(($2) >= 0)]; 3279 test_array [0] = 0; 3280 return test_array [0]; 3281 3282 ; 3283 return 0; 3284 } 3285 _ACEOF 3286 if ac_fn_c_try_compile "$LINENO" 3287 then : 3288 ac_lo=0 ac_mid=0 3289 while :; do 3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3291 /* end confdefs.h. */ 3292 $4 3293 int 3294 main (void) 3295 { 3296 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3297 test_array [0] = 0; 3298 return test_array [0]; 3299 3300 ; 3301 return 0; 3302 } 3303 _ACEOF 3304 if ac_fn_c_try_compile "$LINENO" 3305 then : 3306 ac_hi=$ac_mid; break 3307 else case e in #( 3308 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3309 if test $ac_lo -le $ac_mid; then 3310 ac_lo= ac_hi= 3311 break 3312 fi 3313 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; 3314 esac 3315 fi 3316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3317 done 3318 else case e in #( 3319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320 /* end confdefs.h. */ 3321 $4 3322 int 3323 main (void) 3324 { 3325 static int test_array [1 - 2 * !(($2) < 0)]; 3326 test_array [0] = 0; 3327 return test_array [0]; 3328 3329 ; 3330 return 0; 3331 } 3332 _ACEOF 3333 if ac_fn_c_try_compile "$LINENO" 3334 then : 3335 ac_hi=-1 ac_mid=-1 3336 while :; do 3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3338 /* end confdefs.h. */ 3339 $4 3340 int 3341 main (void) 3342 { 3343 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3344 test_array [0] = 0; 3345 return test_array [0]; 3346 3347 ; 3348 return 0; 3349 } 3350 _ACEOF 3351 if ac_fn_c_try_compile "$LINENO" 3352 then : 3353 ac_lo=$ac_mid; break 3354 else case e in #( 3355 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3356 if test $ac_mid -le $ac_hi; then 3357 ac_lo= ac_hi= 3358 break 3359 fi 3360 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; 3361 esac 3362 fi 3363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3364 done 3365 else case e in #( 3366 e) ac_lo= ac_hi= ;; 3367 esac 3368 fi 3369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3370 esac 3371 fi 3372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3373 # Binary search between lo and hi bounds. 3374 while test "x$ac_lo" != "x$ac_hi"; do 3375 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377 /* end confdefs.h. */ 3378 $4 3379 int 3380 main (void) 3381 { 3382 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3383 test_array [0] = 0; 3384 return test_array [0]; 3385 3386 ; 3387 return 0; 3388 } 3389 _ACEOF 3390 if ac_fn_c_try_compile "$LINENO" 3391 then : 3392 ac_hi=$ac_mid 3393 else case e in #( 3394 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; 3395 esac 3396 fi 3397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3398 done 3399 case $ac_lo in #(( 3400 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3401 '') ac_retval=1 ;; 3402 esac 3403 else 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3405 /* end confdefs.h. */ 3406 $4 3407 static long int longval (void) { return $2; } 3408 static unsigned long int ulongval (void) { return $2; } 3409 #include <stdio.h> 3410 #include <stdlib.h> 3411 int 3412 main (void) 3413 { 3414 3415 FILE *f = fopen ("conftest.val", "w"); 3416 if (! f) 3417 return 1; 3418 if (($2) < 0) 3419 { 3420 long int i = longval (); 3421 if (i != ($2)) 3422 return 1; 3423 fprintf (f, "%ld", i); 3424 } 3425 else 3426 { 3427 unsigned long int i = ulongval (); 3428 if (i != ($2)) 3429 return 1; 3430 fprintf (f, "%lu", i); 3431 } 3432 /* Do not output a trailing newline, as this causes \r\n confusion 3433 on some platforms. */ 3434 return ferror (f) || fclose (f) != 0; 3435 3436 ; 3437 return 0; 3438 } 3439 _ACEOF 3440 if ac_fn_c_try_run "$LINENO" 3441 then : 3442 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3443 else case e in #( 3444 e) ac_retval=1 ;; 3445 esac 3446 fi 3447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3448 conftest.$ac_objext conftest.beam conftest.$ac_ext 3449 rm -f conftest.val 3450 3451 fi 3452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3453 as_fn_set_status $ac_retval 3454 3455 } # ac_fn_c_compute_int 3456 3457 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 3458 # ------------------------------------------------------------------ 3459 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3460 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 3461 ac_fn_check_decl () 3462 { 3463 ac_save_ac_compile="$ac_compile" 3464 if test -n "$ac_compile_for_check_decl"; then 3465 ac_compile="$ac_compile_for_check_decl" 3466 fi 3467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3468 as_decl_name=`echo $2|sed 's/ *(.*//'` 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3470 printf %s "checking whether $as_decl_name is declared... " >&6; } 3471 if eval test \${$3+y} 3472 then : 3473 printf %s "(cached) " >&6 3474 else case e in #( 3475 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3476 eval ac_save_FLAGS=\$$6 3477 as_fn_append $6 " $5" 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479 /* end confdefs.h. */ 3480 $4 3481 int 3482 main (void) 3483 { 3484 #ifndef $as_decl_name 3485 #ifdef __cplusplus 3486 (void) $as_decl_use; 3487 #else 3488 (void) $as_decl_name; 3489 #endif 3490 #endif 3491 3492 ; 3493 return 0; 3494 } 3495 _ACEOF 3496 if ac_fn_c_try_compile "$LINENO" 3497 then : 3498 eval "$3=yes" 3499 else case e in #( 3500 e) eval "$3=no" ;; 3501 esac 3502 fi 3503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3504 eval $6=\$ac_save_FLAGS 3505 ;; 3506 esac 3507 fi 3508 eval ac_res=\$$3 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3510 printf "%s\n" "$ac_res" >&6; } 3511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3512 ac_compile="$ac_save_ac_compile" 3513 3514 } # ac_fn_check_decl 3515 3516 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3517 # ---------------------------------------------------- 3518 # Tries to find if the field MEMBER exists in type AGGR, after including 3519 # INCLUDES, setting cache variable VAR accordingly. 3520 ac_fn_c_check_member () 3521 { 3522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3524 printf %s "checking for $2.$3... " >&6; } 3525 if eval test \${$4+y} 3526 then : 3527 printf %s "(cached) " >&6 3528 else case e in #( 3529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530 /* end confdefs.h. */ 3531 $5 3532 int 3533 main (void) 3534 { 3535 static $2 ac_aggr; 3536 if (ac_aggr.$3) 3537 return 0; 3538 ; 3539 return 0; 3540 } 3541 _ACEOF 3542 if ac_fn_c_try_compile "$LINENO" 3543 then : 3544 eval "$4=yes" 3545 else case e in #( 3546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547 /* end confdefs.h. */ 3548 $5 3549 int 3550 main (void) 3551 { 3552 static $2 ac_aggr; 3553 if (sizeof ac_aggr.$3) 3554 return 0; 3555 ; 3556 return 0; 3557 } 3558 _ACEOF 3559 if ac_fn_c_try_compile "$LINENO" 3560 then : 3561 eval "$4=yes" 3562 else case e in #( 3563 e) eval "$4=no" ;; 3564 esac 3565 fi 3566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3567 esac 3568 fi 3569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3570 esac 3571 fi 3572 eval ac_res=\$$4 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3574 printf "%s\n" "$ac_res" >&6; } 3575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3576 3577 } # ac_fn_c_check_member 3578 ac_configure_args_raw= 3579 for ac_arg 3580 do 3581 case $ac_arg in 3582 *\'*) 3583 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3584 esac 3585 as_fn_append ac_configure_args_raw " '$ac_arg'" 3586 done 3587 3588 case $ac_configure_args_raw in 3589 *$as_nl*) 3590 ac_safe_unquote= ;; 3591 *) 3592 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3593 ac_unsafe_a="$ac_unsafe_z#~" 3594 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3595 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3596 esac 3597 3598 cat >config.log <<_ACEOF 994 3599 This file contains any messages produced by compilers while 995 3600 running configure, to aid debugging if configure makes a mistake. 996 3601 997 It was created by sed $as_me 4.1.5, which was998 generated by GNU Autoconf 2. 59. Invocation command line was999 1000 $ $0 $@3602 It was created by GNU sed $as_me 4.9, which was 3603 generated by GNU Autoconf 2.72a.65-d081. Invocation command line was 3604 3605 $ $0$ac_configure_args_raw 1001 3606 1002 3607 _ACEOF 3608 exec 5>>config.log 1003 3609 { 1004 3610 cat <<_ASUNAME … … 1019 3625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1020 3626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1021 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`3627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1022 3628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1023 3629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 1030 3636 do 1031 3637 IFS=$as_save_IFS 1032 test -z "$as_dir" && as_dir=. 1033 echo "PATH: $as_dir" 1034 done 3638 case $as_dir in #((( 3639 '') as_dir=./ ;; 3640 */) ;; 3641 *) as_dir=$as_dir/ ;; 3642 esac 3643 printf "%s\n" "PATH: $as_dir" 3644 done 3645 IFS=$as_save_IFS 1035 3646 1036 3647 } >&5 … … 1054 3665 ac_configure_args0= 1055 3666 ac_configure_args1= 1056 ac_sep=1057 3667 ac_must_keep_next=false 1058 3668 for ac_pass in 1 2 … … 1065 3675 | -silent | --silent | --silen | --sile | --sil) 1066 3676 continue ;; 1067 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1068 ac_arg=` echo"$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;3677 *\'*) 3678 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1069 3679 esac 1070 3680 case $ac_pass in 1071 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;3681 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1072 3682 2) 1073 a c_configure_args1="$ac_configure_args1'$ac_arg'"3683 as_fn_append ac_configure_args1 " '$ac_arg'" 1074 3684 if test $ac_must_keep_next = true; then 1075 3685 ac_must_keep_next=false # Got value, back to normal. … … 1087 3697 esac 1088 3698 fi 1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1090 # Get rid of the leading space. 1091 ac_sep=" " 3699 as_fn_append ac_configure_args " '$ac_arg'" 1092 3700 ;; 1093 3701 esac 1094 3702 done 1095 3703 done 1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}3704 { ac_configure_args0=; unset ac_configure_args0;} 3705 { ac_configure_args1=; unset ac_configure_args1;} 1098 3706 1099 3707 # When interrupted or exit'd, cleanup temporary files, and complete 1100 3708 # config.log. We remove comments because anyway the quotes in there 1101 3709 # would cause problems or look ugly. 1102 # WARNING: Be sure not to use single quotes in there, as some shells,1103 # such as our DU 5.0 friend, will then `close' the trap.3710 # WARNING: Use '\'' to represent an apostrophe within the trap. 3711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1104 3712 trap 'exit_status=$? 3713 # Sanitize IFS. 3714 IFS=" "" $as_nl" 1105 3715 # Save into config.log some information that might help in debugging. 1106 3716 { 1107 3717 echo 1108 3718 1109 cat <<\_ASBOX 1110 ## ---------------- ## 3719 printf "%s\n" "## ---------------- ## 1111 3720 ## Cache variables. ## 1112 ## ---------------- ## 1113 _ASBOX 3721 ## ---------------- ##" 1114 3722 echo 1115 3723 # The following way of writing the cache mishandles newlines in values, 1116 { 3724 ( 3725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3726 eval ac_val=\$$ac_var 3727 case $ac_val in #( 3728 *${as_nl}*) 3729 case $ac_var in #( 3730 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3731 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3732 esac 3733 case $ac_var in #( 3734 _ | IFS | as_nl) ;; #( 3735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3736 *) { eval $ac_var=; unset $ac_var;} ;; 3737 esac ;; 3738 esac 3739 done 1117 3740 (set) 2>&1 | 1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1119 * ac_space=\ *)3741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3742 *${as_nl}ac_space=\ *) 1120 3743 sed -n \ 1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 3744 "s/'\''/'\''\\\\'\'''\''/g; 3745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3746 ;; #( 3747 *) 3748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1123 3749 ;; 1124 *) 1125 sed -n \ 1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1127 ;; 1128 esac; 1129 } 3750 esac | 3751 sort 3752 ) 1130 3753 echo 1131 3754 1132 cat <<\_ASBOX 1133 ## ----------------- ## 3755 printf "%s\n" "## ----------------- ## 1134 3756 ## Output variables. ## 1135 ## ----------------- ## 1136 _ASBOX 3757 ## ----------------- ##" 1137 3758 echo 1138 3759 for ac_var in $ac_subst_vars 1139 3760 do 1140 eval ac_val=$`echo $ac_var` 1141 echo "$ac_var='"'"'$ac_val'"'"'" 3761 eval ac_val=\$$ac_var 3762 case $ac_val in 3763 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3764 esac 3765 printf "%s\n" "$ac_var='\''$ac_val'\''" 1142 3766 done | sort 1143 3767 echo 1144 3768 1145 3769 if test -n "$ac_subst_files"; then 1146 cat <<\_ASBOX 1147 ## ------------- ## 1148 ## Output files. ## 1149 ## ------------- ## 1150 _ASBOX 3770 printf "%s\n" "## ------------------- ## 3771 ## File substitutions. ## 3772 ## ------------------- ##" 1151 3773 echo 1152 3774 for ac_var in $ac_subst_files 1153 3775 do 1154 eval ac_val=$`echo $ac_var` 1155 echo "$ac_var='"'"'$ac_val'"'"'" 3776 eval ac_val=\$$ac_var 3777 case $ac_val in 3778 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3779 esac 3780 printf "%s\n" "$ac_var='\''$ac_val'\''" 1156 3781 done | sort 1157 3782 echo … … 1159 3784 1160 3785 if test -s confdefs.h; then 1161 cat <<\_ASBOX 1162 ## ----------- ## 3786 printf "%s\n" "## ----------- ## 1163 3787 ## confdefs.h. ## 1164 ## ----------- ## 1165 _ASBOX 3788 ## ----------- ##" 1166 3789 echo 1167 sed "/^$/d" confdefs.h | sort3790 cat confdefs.h 1168 3791 echo 1169 3792 fi 1170 3793 test "$ac_signal" != 0 && 1171 echo"$as_me: caught signal $ac_signal"1172 echo"$as_me: exit $exit_status"3794 printf "%s\n" "$as_me: caught signal $ac_signal" 3795 printf "%s\n" "$as_me: exit $exit_status" 1173 3796 } >&5 1174 rm -f core *.core &&1175 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&3797 rm -f core *.core core.conftest.* && 3798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1176 3799 exit $exit_status 1177 3800 ' 0 1178 3801 for ac_signal in 1 2 13 15; do 1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal3802 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1180 3803 done 1181 3804 ac_signal=0 1182 3805 1183 3806 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1184 rm - rfconftest* confdefs.h1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1186 echo >confdefs.h3807 rm -f -r conftest* confdefs.h 3808 3809 printf "%s\n" "/* confdefs.h */" > confdefs.h 1187 3810 1188 3811 # Predefined preprocessor variables. 1189 3812 1190 cat >>confdefs.h <<_ACEOF 1191 #define PACKAGE_NAME "$PACKAGE_NAME" 1192 _ACEOF 1193 1194 1195 cat >>confdefs.h <<_ACEOF 1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1197 _ACEOF 1198 1199 1200 cat >>confdefs.h <<_ACEOF 1201 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1202 _ACEOF 1203 1204 1205 cat >>confdefs.h <<_ACEOF 1206 #define PACKAGE_STRING "$PACKAGE_STRING" 1207 _ACEOF 1208 1209 1210 cat >>confdefs.h <<_ACEOF 1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1212 _ACEOF 3813 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3814 3815 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3816 3817 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3818 3819 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3820 3821 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3822 3823 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1213 3824 1214 3825 1215 3826 # Let the site file select an alternate cache file if it wants to. 1216 # Prefer explicitly selected file to automatically selected ones. 1217 if test -z "$CONFIG_SITE"; then 1218 if test "x$prefix" != xNONE; then 1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1220 else 1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1222 fi 1223 fi 1224 for ac_site_file in $CONFIG_SITE; do 1225 if test -r "$ac_site_file"; then 1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1227 echo "$as_me: loading site script $ac_site_file" >&6;} 3827 # Prefer an explicitly selected file to automatically selected ones. 3828 if test -n "$CONFIG_SITE"; then 3829 ac_site_files="$CONFIG_SITE" 3830 elif test "x$prefix" != xNONE; then 3831 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3832 else 3833 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3834 fi 3835 3836 for ac_site_file in $ac_site_files 3837 do 3838 case $ac_site_file in #( 3839 */*) : 3840 ;; #( 3841 *) : 3842 ac_site_file=./$ac_site_file ;; 3843 esac 3844 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3846 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1228 3847 sed 's/^/| /' "$ac_site_file" >&5 1229 . "$ac_site_file" 3848 . "$ac_site_file" \ 3849 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3850 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3851 as_fn_error $? "failed to load site script $ac_site_file 3852 See 'config.log' for more details" "$LINENO" 5; } 1230 3853 fi 1231 3854 done 1232 3855 1233 3856 if test -r "$cache_file"; then 1234 # Some versions of bash will fail to source /dev/null (special 1235 # files actually), so we avoid doing that.1236 if test -f "$cache_file"; then1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&51238 echo"$as_me: loading cache $cache_file" >&6;}3857 # Some versions of bash will fail to source /dev/null (special files 3858 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3859 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3861 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1239 3862 case $cache_file in 1240 [\\/]* | ?:[\\/]* ) . $cache_file;;1241 *) . ./$cache_file;;3863 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3864 *) . "./$cache_file";; 1242 3865 esac 1243 3866 fi 1244 3867 else 1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&51246 echo"$as_me: creating cache $cache_file" >&6;}3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3869 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 1247 3870 >$cache_file 1248 3871 fi 1249 3872 1250 # Check that the precious variables saved in the cache have kept the same 1251 # value. 1252 ac_cache_corrupted=false 1253 for ac_var in `(set) 2>&1 | 1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1256 eval ac_new_set=\$ac_env_${ac_var}_set 1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1258 eval ac_new_val="\$ac_env_${ac_var}_value" 1259 case $ac_old_set,$ac_new_set in 1260 set,) 1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1263 ac_cache_corrupted=: ;; 1264 ,set) 1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1267 ac_cache_corrupted=: ;; 1268 ,);; 1269 *) 1270 if test "x$ac_old_val" != "x$ac_new_val"; then 1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1274 echo "$as_me: former value: $ac_old_val" >&2;} 1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1276 echo "$as_me: current value: $ac_new_val" >&2;} 1277 ac_cache_corrupted=: 1278 fi;; 1279 esac 1280 # Pass precious variables to config.status. 1281 if test "$ac_new_set" = set; then 1282 case $ac_new_val in 1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1285 *) ac_arg=$ac_var=$ac_new_val ;; 1286 esac 1287 case " $ac_configure_args " in 1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1290 esac 1291 fi 1292 done 1293 if $ac_cache_corrupted; then 1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1298 { (exit 1); exit 1; }; } 1299 fi 1300 1301 ac_ext=c 1302 ac_cpp='$CPP $CPPFLAGS' 1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 ac_aux_dir= 1334 for ac_dir in config $srcdir/config; do 1335 if test -f $ac_dir/install-sh; then 1336 ac_aux_dir=$ac_dir 1337 ac_install_sh="$ac_aux_dir/install-sh -c" 1338 break 1339 elif test -f $ac_dir/install.sh; then 1340 ac_aux_dir=$ac_dir 1341 ac_install_sh="$ac_aux_dir/install.sh -c" 1342 break 1343 elif test -f $ac_dir/shtool; then 1344 ac_aux_dir=$ac_dir 1345 ac_install_sh="$ac_aux_dir/shtool install -c" 1346 break 1347 fi 1348 done 1349 if test -z "$ac_aux_dir"; then 1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1351 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1352 { (exit 1); exit 1; }; } 1353 fi 1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1357 1358 1359 ac_config_headers="$ac_config_headers config.h:config_h.in" 1360 1361 1362 am__api_version="1.9" 1363 # Find a good install program. We prefer a C program (faster), 1364 # so one script is as good as another. But avoid the broken or 1365 # incompatible versions: 1366 # SysV /etc/install, /usr/sbin/install 1367 # SunOS /usr/etc/install 1368 # IRIX /sbin/install 1369 # AIX /bin/install 1370 # AmigaOS /C/install, which installs bootblocks on floppy discs 1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1374 # OS/2's system install, which has a completely different semantic 1375 # ./install, which can be erroneously created by make from ./install.sh. 1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1378 if test -z "$INSTALL"; then 1379 if test "${ac_cv_path_install+set}" = set; then 1380 echo $ECHO_N "(cached) $ECHO_C" >&6 1381 else 1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1383 for as_dir in $PATH 1384 do 1385 IFS=$as_save_IFS 1386 test -z "$as_dir" && as_dir=. 1387 # Account for people who put trailing slashes in PATH elements. 1388 case $as_dir/ in 1389 ./ | .// | /cC/* | \ 1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1392 /usr/ucb/* ) ;; 1393 *) 1394 # OSF1 and SCO ODT 3.0 have their own names for install. 1395 # Don't use installbsd from OSF since it installs stuff as root 1396 # by default. 1397 for ac_prog in ginstall scoinst install; do 1398 for ac_exec_ext in '' $ac_executable_extensions; do 1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1400 if test $ac_prog = install && 1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1402 # AIX install. It has an incompatible calling convention. 1403 : 1404 elif test $ac_prog = install && 1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1406 # program-specific install script used by HP pwplus--don't use. 1407 : 1408 else 1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1410 break 3 1411 fi 1412 fi 1413 done 1414 done 1415 ;; 1416 esac 1417 done 1418 1419 1420 fi 1421 if test "${ac_cv_path_install+set}" = set; then 1422 INSTALL=$ac_cv_path_install 1423 else 1424 # As a last resort, use the slow shell script. We don't cache a 1425 # path for INSTALL within a source directory, because that will 1426 # break other packages using the cache if that directory is 1427 # removed, or if the path is relative. 1428 INSTALL=$ac_install_sh 1429 fi 1430 fi 1431 echo "$as_me:$LINENO: result: $INSTALL" >&5 1432 echo "${ECHO_T}$INSTALL" >&6 1433 1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1435 # It thinks the first close brace ends the variable substitution. 1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1437 1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1439 1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1441 1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1444 # Just in case 1445 sleep 1 1446 echo timestamp > conftest.file 1447 # Do `set' in a subshell so we don't clobber the current shell's 1448 # arguments. Must try -L first in case configure is actually a 1449 # symlink; some systems play weird games with the mod time of symlinks 1450 # (eg FreeBSD returns the mod time of the symlink's containing 1451 # directory). 1452 if ( 1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1454 if test "$*" = "X"; then 1455 # -L didn't work. 1456 set X `ls -t $srcdir/configure conftest.file` 1457 fi 1458 rm -f conftest.file 1459 if test "$*" != "X $srcdir/configure conftest.file" \ 1460 && test "$*" != "X conftest.file $srcdir/configure"; then 1461 1462 # If neither matched, then we have a broken ls. This can happen 1463 # if, for instance, CONFIG_SHELL is bash and it inherits a 1464 # broken ls alias from the environment. This has actually 1465 # happened. Such a system could not be considered "sane". 1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1467 alias in your environment" >&5 1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1469 alias in your environment" >&2;} 1470 { (exit 1); exit 1; }; } 1471 fi 1472 1473 test "$2" = conftest.file 1474 ) 1475 then 1476 # Ok. 1477 : 1478 else 1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1480 Check your system clock" >&5 1481 echo "$as_me: error: newly created file is older than distributed files! 1482 Check your system clock" >&2;} 1483 { (exit 1); exit 1; }; } 1484 fi 1485 echo "$as_me:$LINENO: result: yes" >&5 1486 echo "${ECHO_T}yes" >&6 1487 test "$program_prefix" != NONE && 1488 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1489 # Use a double $ so make ignores it. 1490 test "$program_suffix" != NONE && 1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1492 # Double any \ or $. echo might interpret backslashes. 1493 # By default was `s,x,x', remove it if useless. 1494 cat <<\_ACEOF >conftest.sed 1495 s/[\\$]/&&/g;s/;s,x,x,$// 1496 _ACEOF 1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1498 rm conftest.sed 1499 1500 # expand $ac_aux_dir to an absolute path 1501 am_aux_dir=`cd $ac_aux_dir && pwd` 1502 1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1504 # Use eval to expand $SHELL 1505 if eval "$MISSING --run true"; then 1506 am_missing_run="$MISSING --run " 1507 else 1508 am_missing_run= 1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1511 fi 1512 1513 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1514 # We used to keeping the `.' as first argument, in order to 1515 # allow $(mkdir_p) to be used without argument. As in 1516 # $(mkdir_p) $(somedir) 1517 # where $(somedir) is conditionally defined. However this is wrong 1518 # for two reasons: 1519 # 1. if the package is installed by a user who cannot write `.' 1520 # make install will fail, 1521 # 2. the above comment should most certainly read 1522 # $(mkdir_p) $(DESTDIR)$(somedir) 1523 # so it does not work when $(somedir) is undefined and 1524 # $(DESTDIR) is not. 1525 # To support the latter case, we have to write 1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1527 # so the `.' trick is pointless. 1528 mkdir_p='mkdir -p --' 1529 else 1530 # On NextStep and OpenStep, the `mkdir' command does not 1531 # recognize any option. It will interpret all options as 1532 # directories to create, and then abort because `.' already 1533 # exists. 1534 for d in ./-p ./--version; 1535 do 1536 test -d $d && rmdir $d 1537 done 1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1539 if test -f "$ac_aux_dir/mkinstalldirs"; then 1540 mkdir_p='$(mkinstalldirs)' 1541 else 1542 mkdir_p='$(install_sh) -d' 1543 fi 1544 fi 1545 1546 for ac_prog in gawk mawk nawk awk 1547 do 1548 # Extract the first word of "$ac_prog", so it can be a program name with args. 1549 set dummy $ac_prog; ac_word=$2 1550 echo "$as_me:$LINENO: checking for $ac_word" >&5 1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1552 if test "${ac_cv_prog_AWK+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554 else 1555 if test -n "$AWK"; then 1556 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1557 else 1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559 for as_dir in $PATH 1560 do 1561 IFS=$as_save_IFS 1562 test -z "$as_dir" && as_dir=. 1563 for ac_exec_ext in '' $ac_executable_extensions; do 1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1565 ac_cv_prog_AWK="$ac_prog" 1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1567 break 2 1568 fi 1569 done 1570 done 1571 1572 fi 1573 fi 1574 AWK=$ac_cv_prog_AWK 1575 if test -n "$AWK"; then 1576 echo "$as_me:$LINENO: result: $AWK" >&5 1577 echo "${ECHO_T}$AWK" >&6 1578 else 1579 echo "$as_me:$LINENO: result: no" >&5 1580 echo "${ECHO_T}no" >&6 1581 fi 1582 1583 test -n "$AWK" && break 1584 done 1585 1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1590 echo $ECHO_N "(cached) $ECHO_C" >&6 1591 else 1592 cat >conftest.make <<\_ACEOF 1593 all: 1594 @echo 'ac_maketemp="$(MAKE)"' 1595 _ACEOF 1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1598 if test -n "$ac_maketemp"; then 1599 eval ac_cv_prog_make_${ac_make}_set=yes 1600 else 1601 eval ac_cv_prog_make_${ac_make}_set=no 1602 fi 1603 rm -f conftest.make 1604 fi 1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1606 echo "$as_me:$LINENO: result: yes" >&5 1607 echo "${ECHO_T}yes" >&6 1608 SET_MAKE= 1609 else 1610 echo "$as_me:$LINENO: result: no" >&5 1611 echo "${ECHO_T}no" >&6 1612 SET_MAKE="MAKE=${MAKE-make}" 1613 fi 1614 1615 rm -rf .tst 2>/dev/null 1616 mkdir .tst 2>/dev/null 1617 if test -d .tst; then 1618 am__leading_dot=. 1619 else 1620 am__leading_dot=_ 1621 fi 1622 rmdir .tst 2>/dev/null 1623 1624 # test to see if srcdir already configured 1625 if test "`cd $srcdir && pwd`" != "`pwd`" && 1626 test -f $srcdir/config.status; then 1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1629 { (exit 1); exit 1; }; } 1630 fi 1631 1632 # test whether we have cygpath 1633 if test -z "$CYGPATH_W"; then 1634 if (cygpath --version) >/dev/null 2>/dev/null; then 1635 CYGPATH_W='cygpath -w' 1636 else 1637 CYGPATH_W=echo 1638 fi 1639 fi 1640 1641 1642 # Define the identity of the package. 1643 PACKAGE='sed' 1644 VERSION='4.1.5' 1645 1646 1647 cat >>confdefs.h <<_ACEOF 1648 #define PACKAGE "$PACKAGE" 1649 _ACEOF 1650 1651 1652 cat >>confdefs.h <<_ACEOF 1653 #define VERSION "$VERSION" 1654 _ACEOF 1655 1656 # Some tools Automake needs. 1657 1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1659 1660 1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1662 1663 1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1665 1666 1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1668 1669 1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1671 1672 install_sh=${install_sh-"$am_aux_dir/install-sh"} 1673 1674 # Installed binaries are usually stripped using `strip' when the user 1675 # run `make install-strip'. However `strip' might not be the right 1676 # tool to use in cross-compilation environments, therefore Automake 1677 # will honor the `STRIP' environment variable to overrule this program. 1678 if test "$cross_compiling" != no; then 1679 if test -n "$ac_tool_prefix"; then 1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1681 set dummy ${ac_tool_prefix}strip; ac_word=$2 1682 echo "$as_me:$LINENO: checking for $ac_word" >&5 1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1684 if test "${ac_cv_prog_STRIP+set}" = set; then 1685 echo $ECHO_N "(cached) $ECHO_C" >&6 1686 else 1687 if test -n "$STRIP"; then 1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1689 else 1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1691 for as_dir in $PATH 1692 do 1693 IFS=$as_save_IFS 1694 test -z "$as_dir" && as_dir=. 1695 for ac_exec_ext in '' $ac_executable_extensions; do 1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1699 break 2 1700 fi 1701 done 1702 done 1703 1704 fi 1705 fi 1706 STRIP=$ac_cv_prog_STRIP 1707 if test -n "$STRIP"; then 1708 echo "$as_me:$LINENO: result: $STRIP" >&5 1709 echo "${ECHO_T}$STRIP" >&6 1710 else 1711 echo "$as_me:$LINENO: result: no" >&5 1712 echo "${ECHO_T}no" >&6 1713 fi 1714 1715 fi 1716 if test -z "$ac_cv_prog_STRIP"; then 1717 ac_ct_STRIP=$STRIP 1718 # Extract the first word of "strip", so it can be a program name with args. 1719 set dummy strip; ac_word=$2 1720 echo "$as_me:$LINENO: checking for $ac_word" >&5 1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1723 echo $ECHO_N "(cached) $ECHO_C" >&6 1724 else 1725 if test -n "$ac_ct_STRIP"; then 1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1727 else 1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1729 for as_dir in $PATH 1730 do 1731 IFS=$as_save_IFS 1732 test -z "$as_dir" && as_dir=. 1733 for ac_exec_ext in '' $ac_executable_extensions; do 1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1735 ac_cv_prog_ac_ct_STRIP="strip" 1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1737 break 2 1738 fi 1739 done 1740 done 1741 1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1743 fi 1744 fi 1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1746 if test -n "$ac_ct_STRIP"; then 1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1748 echo "${ECHO_T}$ac_ct_STRIP" >&6 1749 else 1750 echo "$as_me:$LINENO: result: no" >&5 1751 echo "${ECHO_T}no" >&6 1752 fi 1753 1754 STRIP=$ac_ct_STRIP 1755 else 1756 STRIP="$ac_cv_prog_STRIP" 1757 fi 1758 1759 fi 1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1761 1762 # We need awk for the "check" target. The system "awk" is bad on 1763 # some platforms. 1764 # Always define AMTAR for backward compatibility. 1765 1766 AMTAR=${AMTAR-"${am_missing_run}tar"} 1767 1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1769 1770 1771 1772 1773 1774 1775 SED_FEATURE_VERSION=4.1 1776 1777 cat >>confdefs.h <<_ACEOF 1778 #define SED_FEATURE_VERSION "$SED_FEATURE_VERSION" 1779 _ACEOF 1780 1781 1782 1783 ac_ext=c 1784 ac_cpp='$CPP $CPPFLAGS' 1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1788 if test -n "$ac_tool_prefix"; then 1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1790 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1791 echo "$as_me:$LINENO: checking for $ac_word" >&5 1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793 if test "${ac_cv_prog_CC+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795 else 1796 if test -n "$CC"; then 1797 ac_cv_prog_CC="$CC" # Let the user override the test. 1798 else 1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800 for as_dir in $PATH 1801 do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 break 2 1809 fi 1810 done 1811 done 1812 1813 fi 1814 fi 1815 CC=$ac_cv_prog_CC 1816 if test -n "$CC"; then 1817 echo "$as_me:$LINENO: result: $CC" >&5 1818 echo "${ECHO_T}$CC" >&6 1819 else 1820 echo "$as_me:$LINENO: result: no" >&5 1821 echo "${ECHO_T}no" >&6 1822 fi 1823 1824 fi 1825 if test -z "$ac_cv_prog_CC"; then 1826 ac_ct_CC=$CC 1827 # Extract the first word of "gcc", so it can be a program name with args. 1828 set dummy gcc; ac_word=$2 1829 echo "$as_me:$LINENO: checking for $ac_word" >&5 1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1832 echo $ECHO_N "(cached) $ECHO_C" >&6 1833 else 1834 if test -n "$ac_ct_CC"; then 1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1836 else 1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1838 for as_dir in $PATH 1839 do 1840 IFS=$as_save_IFS 1841 test -z "$as_dir" && as_dir=. 1842 for ac_exec_ext in '' $ac_executable_extensions; do 1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1844 ac_cv_prog_ac_ct_CC="gcc" 1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1846 break 2 1847 fi 1848 done 1849 done 1850 1851 fi 1852 fi 1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1854 if test -n "$ac_ct_CC"; then 1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1856 echo "${ECHO_T}$ac_ct_CC" >&6 1857 else 1858 echo "$as_me:$LINENO: result: no" >&5 1859 echo "${ECHO_T}no" >&6 1860 fi 1861 1862 CC=$ac_ct_CC 1863 else 1864 CC="$ac_cv_prog_CC" 1865 fi 1866 1867 if test -z "$CC"; then 1868 if test -n "$ac_tool_prefix"; then 1869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1870 set dummy ${ac_tool_prefix}cc; ac_word=$2 1871 echo "$as_me:$LINENO: checking for $ac_word" >&5 1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1873 if test "${ac_cv_prog_CC+set}" = set; then 1874 echo $ECHO_N "(cached) $ECHO_C" >&6 1875 else 1876 if test -n "$CC"; then 1877 ac_cv_prog_CC="$CC" # Let the user override the test. 1878 else 1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1880 for as_dir in $PATH 1881 do 1882 IFS=$as_save_IFS 1883 test -z "$as_dir" && as_dir=. 1884 for ac_exec_ext in '' $ac_executable_extensions; do 1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1886 ac_cv_prog_CC="${ac_tool_prefix}cc" 1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1888 break 2 1889 fi 1890 done 1891 done 1892 1893 fi 1894 fi 1895 CC=$ac_cv_prog_CC 1896 if test -n "$CC"; then 1897 echo "$as_me:$LINENO: result: $CC" >&5 1898 echo "${ECHO_T}$CC" >&6 1899 else 1900 echo "$as_me:$LINENO: result: no" >&5 1901 echo "${ECHO_T}no" >&6 1902 fi 1903 1904 fi 1905 if test -z "$ac_cv_prog_CC"; then 1906 ac_ct_CC=$CC 1907 # Extract the first word of "cc", so it can be a program name with args. 1908 set dummy cc; ac_word=$2 1909 echo "$as_me:$LINENO: checking for $ac_word" >&5 1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1912 echo $ECHO_N "(cached) $ECHO_C" >&6 1913 else 1914 if test -n "$ac_ct_CC"; then 1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1916 else 1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1918 for as_dir in $PATH 1919 do 1920 IFS=$as_save_IFS 1921 test -z "$as_dir" && as_dir=. 1922 for ac_exec_ext in '' $ac_executable_extensions; do 1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1924 ac_cv_prog_ac_ct_CC="cc" 1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1926 break 2 1927 fi 1928 done 1929 done 1930 1931 fi 1932 fi 1933 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1934 if test -n "$ac_ct_CC"; then 1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1936 echo "${ECHO_T}$ac_ct_CC" >&6 1937 else 1938 echo "$as_me:$LINENO: result: no" >&5 1939 echo "${ECHO_T}no" >&6 1940 fi 1941 1942 CC=$ac_ct_CC 1943 else 1944 CC="$ac_cv_prog_CC" 1945 fi 1946 1947 fi 1948 if test -z "$CC"; then 1949 # Extract the first word of "cc", so it can be a program name with args. 1950 set dummy cc; ac_word=$2 1951 echo "$as_me:$LINENO: checking for $ac_word" >&5 1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1953 if test "${ac_cv_prog_CC+set}" = set; then 1954 echo $ECHO_N "(cached) $ECHO_C" >&6 1955 else 1956 if test -n "$CC"; then 1957 ac_cv_prog_CC="$CC" # Let the user override the test. 1958 else 1959 ac_prog_rejected=no 1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1961 for as_dir in $PATH 1962 do 1963 IFS=$as_save_IFS 1964 test -z "$as_dir" && as_dir=. 1965 for ac_exec_ext in '' $ac_executable_extensions; do 1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1968 ac_prog_rejected=yes 1969 continue 1970 fi 1971 ac_cv_prog_CC="cc" 1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1973 break 2 1974 fi 1975 done 1976 done 1977 1978 if test $ac_prog_rejected = yes; then 1979 # We found a bogon in the path, so make sure we never use it. 1980 set dummy $ac_cv_prog_CC 1981 shift 1982 if test $# != 0; then 1983 # We chose a different compiler from the bogus one. 1984 # However, it has the same basename, so the bogon will be chosen 1985 # first if we set CC to just the basename; use the full file name. 1986 shift 1987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1988 fi 1989 fi 1990 fi 1991 fi 1992 CC=$ac_cv_prog_CC 1993 if test -n "$CC"; then 1994 echo "$as_me:$LINENO: result: $CC" >&5 1995 echo "${ECHO_T}$CC" >&6 1996 else 1997 echo "$as_me:$LINENO: result: no" >&5 1998 echo "${ECHO_T}no" >&6 1999 fi 2000 2001 fi 2002 if test -z "$CC"; then 2003 if test -n "$ac_tool_prefix"; then 2004 for ac_prog in cl 2005 do 2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2008 echo "$as_me:$LINENO: checking for $ac_word" >&5 2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2010 if test "${ac_cv_prog_CC+set}" = set; then 2011 echo $ECHO_N "(cached) $ECHO_C" >&6 2012 else 2013 if test -n "$CC"; then 2014 ac_cv_prog_CC="$CC" # Let the user override the test. 2015 else 2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2017 for as_dir in $PATH 2018 do 2019 IFS=$as_save_IFS 2020 test -z "$as_dir" && as_dir=. 2021 for ac_exec_ext in '' $ac_executable_extensions; do 2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2025 break 2 2026 fi 2027 done 2028 done 2029 2030 fi 2031 fi 2032 CC=$ac_cv_prog_CC 2033 if test -n "$CC"; then 2034 echo "$as_me:$LINENO: result: $CC" >&5 2035 echo "${ECHO_T}$CC" >&6 2036 else 2037 echo "$as_me:$LINENO: result: no" >&5 2038 echo "${ECHO_T}no" >&6 2039 fi 2040 2041 test -n "$CC" && break 2042 done 2043 fi 2044 if test -z "$CC"; then 2045 ac_ct_CC=$CC 2046 for ac_prog in cl 2047 do 2048 # Extract the first word of "$ac_prog", so it can be a program name with args. 2049 set dummy $ac_prog; ac_word=$2 2050 echo "$as_me:$LINENO: checking for $ac_word" >&5 2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 2054 else 2055 if test -n "$ac_ct_CC"; then 2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2057 else 2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2059 for as_dir in $PATH 2060 do 2061 IFS=$as_save_IFS 2062 test -z "$as_dir" && as_dir=. 2063 for ac_exec_ext in '' $ac_executable_extensions; do 2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2065 ac_cv_prog_ac_ct_CC="$ac_prog" 2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2067 break 2 2068 fi 2069 done 2070 done 2071 2072 fi 2073 fi 2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2075 if test -n "$ac_ct_CC"; then 2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2077 echo "${ECHO_T}$ac_ct_CC" >&6 2078 else 2079 echo "$as_me:$LINENO: result: no" >&5 2080 echo "${ECHO_T}no" >&6 2081 fi 2082 2083 test -n "$ac_ct_CC" && break 2084 done 2085 2086 CC=$ac_ct_CC 2087 fi 2088 2089 fi 2090 2091 2092 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2093 See \`config.log' for more details." >&5 2094 echo "$as_me: error: no acceptable C compiler found in \$PATH 2095 See \`config.log' for more details." >&2;} 2096 { (exit 1); exit 1; }; } 2097 2098 # Provide some information about the compiler. 2099 echo "$as_me:$LINENO:" \ 2100 "checking for C compiler version" >&5 2101 ac_compiler=`set X $ac_compile; echo $2` 2102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2103 (eval $ac_compiler --version </dev/null >&5) 2>&5 2104 ac_status=$? 2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2106 (exit $ac_status); } 2107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2108 (eval $ac_compiler -v </dev/null >&5) 2>&5 2109 ac_status=$? 2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2111 (exit $ac_status); } 2112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2113 (eval $ac_compiler -V </dev/null >&5) 2>&5 2114 ac_status=$? 2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2116 (exit $ac_status); } 2117 2118 cat >conftest.$ac_ext <<_ACEOF 2119 /* confdefs.h. */ 2120 _ACEOF 2121 cat confdefs.h >>conftest.$ac_ext 2122 cat >>conftest.$ac_ext <<_ACEOF 2123 /* end confdefs.h. */ 2124 2125 int 2126 main () 2127 { 2128 2129 ; 2130 return 0; 2131 } 2132 _ACEOF 2133 ac_clean_files_save=$ac_clean_files 2134 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2135 # Try to create an executable without -o first, disregard a.out. 2136 # It will help us diagnose broken compilers, and finding out an intuition 2137 # of exeext. 2138 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2139 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2141 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2142 (eval $ac_link_default) 2>&5 2143 ac_status=$? 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); }; then 2146 # Find the output, starting from the most likely. This scheme is 2147 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2148 # resort. 2149 2150 # Be careful to initialize this variable, since it used to be cached. 2151 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2152 ac_cv_exeext= 2153 # b.out is created by i960 compilers. 2154 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2155 do 2156 test -f "$ac_file" || continue 2157 case $ac_file in 2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2159 ;; 2160 conftest.$ac_ext ) 2161 # This is the source file. 2162 ;; 2163 [ab].out ) 2164 # We found the default executable, but exeext='' is most 2165 # certainly right. 2166 break;; 2167 *.* ) 2168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2169 # FIXME: I believe we export ac_cv_exeext for Libtool, 2170 # but it would be cool to find out if it's true. Does anybody 2171 # maintain Libtool? --akim. 2172 export ac_cv_exeext 2173 break;; 2174 * ) 2175 break;; 2176 esac 2177 done 2178 else 2179 echo "$as_me: failed program was:" >&5 2180 sed 's/^/| /' conftest.$ac_ext >&5 2181 2182 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2183 See \`config.log' for more details." >&5 2184 echo "$as_me: error: C compiler cannot create executables 2185 See \`config.log' for more details." >&2;} 2186 { (exit 77); exit 77; }; } 2187 fi 2188 2189 ac_exeext=$ac_cv_exeext 2190 echo "$as_me:$LINENO: result: $ac_file" >&5 2191 echo "${ECHO_T}$ac_file" >&6 2192 2193 # Check the compiler produces executables we can run. If not, either 2194 # the compiler is broken, or we cross compile. 2195 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2196 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2197 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2198 # If not cross compiling, check that we can run a simple program. 2199 if test "$cross_compiling" != yes; then 2200 if { ac_try='./$ac_file' 2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2202 (eval $ac_try) 2>&5 2203 ac_status=$? 2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2205 (exit $ac_status); }; }; then 2206 cross_compiling=no 2207 else 2208 if test "$cross_compiling" = maybe; then 2209 cross_compiling=yes 2210 else 2211 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2212 If you meant to cross compile, use \`--host'. 2213 See \`config.log' for more details." >&5 2214 echo "$as_me: error: cannot run C compiled programs. 2215 If you meant to cross compile, use \`--host'. 2216 See \`config.log' for more details." >&2;} 2217 { (exit 1); exit 1; }; } 2218 fi 2219 fi 2220 fi 2221 echo "$as_me:$LINENO: result: yes" >&5 2222 echo "${ECHO_T}yes" >&6 2223 2224 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2225 ac_clean_files=$ac_clean_files_save 2226 # Check the compiler produces executables we can run. If not, either 2227 # the compiler is broken, or we cross compile. 2228 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2229 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2230 echo "$as_me:$LINENO: result: $cross_compiling" >&5 2231 echo "${ECHO_T}$cross_compiling" >&6 2232 2233 echo "$as_me:$LINENO: checking for suffix of executables" >&5 2234 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2236 (eval $ac_link) 2>&5 2237 ac_status=$? 2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2239 (exit $ac_status); }; then 2240 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2242 # work properly (i.e., refer to `conftest.exe'), while it won't with 2243 # `rm'. 2244 for ac_file in conftest.exe conftest conftest.*; do 2245 test -f "$ac_file" || continue 2246 case $ac_file in 2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2249 export ac_cv_exeext 2250 break;; 2251 * ) break;; 2252 esac 2253 done 2254 else 2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2256 See \`config.log' for more details." >&5 2257 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2258 See \`config.log' for more details." >&2;} 2259 { (exit 1); exit 1; }; } 2260 fi 2261 2262 rm -f conftest$ac_cv_exeext 2263 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2264 echo "${ECHO_T}$ac_cv_exeext" >&6 2265 2266 rm -f conftest.$ac_ext 2267 EXEEXT=$ac_cv_exeext 2268 ac_exeext=$EXEEXT 2269 echo "$as_me:$LINENO: checking for suffix of object files" >&5 2270 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2271 if test "${ac_cv_objext+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273 else 2274 cat >conftest.$ac_ext <<_ACEOF 2275 /* confdefs.h. */ 2276 _ACEOF 2277 cat confdefs.h >>conftest.$ac_ext 2278 cat >>conftest.$ac_ext <<_ACEOF 2279 /* end confdefs.h. */ 2280 2281 int 2282 main () 2283 { 2284 2285 ; 2286 return 0; 2287 } 2288 _ACEOF 2289 rm -f conftest.o conftest.obj 2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2291 (eval $ac_compile) 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); }; then 2295 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2296 case $ac_file in 2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2299 break;; 2300 esac 2301 done 2302 else 2303 echo "$as_me: failed program was:" >&5 2304 sed 's/^/| /' conftest.$ac_ext >&5 2305 2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2307 See \`config.log' for more details." >&5 2308 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2309 See \`config.log' for more details." >&2;} 2310 { (exit 1); exit 1; }; } 2311 fi 2312 2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2314 fi 2315 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2316 echo "${ECHO_T}$ac_cv_objext" >&6 2317 OBJEXT=$ac_cv_objext 2318 ac_objext=$OBJEXT 2319 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2321 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2322 echo $ECHO_N "(cached) $ECHO_C" >&6 2323 else 2324 cat >conftest.$ac_ext <<_ACEOF 2325 /* confdefs.h. */ 2326 _ACEOF 2327 cat confdefs.h >>conftest.$ac_ext 2328 cat >>conftest.$ac_ext <<_ACEOF 2329 /* end confdefs.h. */ 2330 2331 int 2332 main () 2333 { 2334 #ifndef __GNUC__ 2335 choke me 3873 # Test code for whether the C compiler supports C89 (global declarations) 3874 ac_c_conftest_c89_globals=' 3875 /* Does the compiler advertise C89 conformance? 3876 Do not test the value of __STDC__, because some compilers set it to 0 3877 while being otherwise adequately conformant. */ 3878 #if !defined __STDC__ 3879 # error "Compiler does not advertise C89 conformance" 2336 3880 #endif 2337 3881 2338 ; 2339 return 0; 2340 } 2341 _ACEOF 2342 rm -f conftest.$ac_objext 2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2344 (eval $ac_compile) 2>conftest.er1 2345 ac_status=$? 2346 grep -v '^ *+' conftest.er1 >conftest.err 2347 rm -f conftest.er1 2348 cat conftest.err >&5 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); } && 2351 { ac_try='test -z "$ac_c_werror_flag" 2352 || test ! -s conftest.err' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); }; } && 2358 { ac_try='test -s conftest.$ac_objext' 2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2360 (eval $ac_try) 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); }; }; then 2364 ac_compiler_gnu=yes 2365 else 2366 echo "$as_me: failed program was:" >&5 2367 sed 's/^/| /' conftest.$ac_ext >&5 2368 2369 ac_compiler_gnu=no 2370 fi 2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2372 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2373 2374 fi 2375 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2377 GCC=`test $ac_compiler_gnu = yes && echo yes` 2378 ac_test_CFLAGS=${CFLAGS+set} 2379 ac_save_CFLAGS=$CFLAGS 2380 CFLAGS="-g" 2381 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2383 if test "${ac_cv_prog_cc_g+set}" = set; then 2384 echo $ECHO_N "(cached) $ECHO_C" >&6 2385 else 2386 cat >conftest.$ac_ext <<_ACEOF 2387 /* confdefs.h. */ 2388 _ACEOF 2389 cat confdefs.h >>conftest.$ac_ext 2390 cat >>conftest.$ac_ext <<_ACEOF 2391 /* end confdefs.h. */ 2392 2393 int 2394 main () 2395 { 2396 2397 ; 2398 return 0; 2399 } 2400 _ACEOF 2401 rm -f conftest.$ac_objext 2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2403 (eval $ac_compile) 2>conftest.er1 2404 ac_status=$? 2405 grep -v '^ *+' conftest.er1 >conftest.err 2406 rm -f conftest.er1 2407 cat conftest.err >&5 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); } && 2410 { ac_try='test -z "$ac_c_werror_flag" 2411 || test ! -s conftest.err' 2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 (eval $ac_try) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; } && 2417 { ac_try='test -s conftest.$ac_objext' 2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2419 (eval $ac_try) 2>&5 2420 ac_status=$? 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); }; }; then 2423 ac_cv_prog_cc_g=yes 2424 else 2425 echo "$as_me: failed program was:" >&5 2426 sed 's/^/| /' conftest.$ac_ext >&5 2427 2428 ac_cv_prog_cc_g=no 2429 fi 2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2431 fi 2432 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2434 if test "$ac_test_CFLAGS" = set; then 2435 CFLAGS=$ac_save_CFLAGS 2436 elif test $ac_cv_prog_cc_g = yes; then 2437 if test "$GCC" = yes; then 2438 CFLAGS="-g -O2" 2439 else 2440 CFLAGS="-g" 2441 fi 2442 else 2443 if test "$GCC" = yes; then 2444 CFLAGS="-O2" 2445 else 2446 CFLAGS= 2447 fi 2448 fi 2449 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2451 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2452 echo $ECHO_N "(cached) $ECHO_C" >&6 2453 else 2454 ac_cv_prog_cc_stdc=no 2455 ac_save_CC=$CC 2456 cat >conftest.$ac_ext <<_ACEOF 2457 /* confdefs.h. */ 2458 _ACEOF 2459 cat confdefs.h >>conftest.$ac_ext 2460 cat >>conftest.$ac_ext <<_ACEOF 2461 /* end confdefs.h. */ 3882 #include <stddef.h> 2462 3883 #include <stdarg.h> 2463 #include <stdio.h> 2464 #include <sys/types.h> 2465 #include <sys/stat.h> 2466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3884 struct stat; 3885 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2467 3886 struct buf { int x; }; 2468 FILE* (*rcsopen) (struct buf *, struct stat *, int);3887 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2469 3888 static char *e (p, i) 2470 3889 char **p; … … 2484 3903 2485 3904 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2486 function prototypes and stuff, but not '\xHH' hex character constants. 2487 These don't provoke an error unfortunately, instead are silently treated 2488 as 'x'. The following induces an error, until -std1 is added to get 2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2490 array size at least. It's necessary to write '\x00'==0 to get something 2491 that's true only with -std1. */ 2492 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3905 function prototypes and stuff, but not \xHH hex character constants. 3906 These do not provoke an error unfortunately, instead are silently treated 3907 as an "x". The following induces an error, until -std is added to get 3908 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3909 array size at least. It is necessary to write \x00 == 0 to get something 3910 that is true only with -std. */ 3911 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3912 3913 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3914 inside strings and character constants. */ 3915 #define FOO(x) '\''x'\'' 3916 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2493 3917 2494 3918 int test (int i, double x); 2495 3919 struct s1 {int (*f) (int a);}; 2496 3920 struct s2 {int (*f) (double a);}; 2497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2498 int argc; 2499 char **argv; 2500 int 2501 main () 3921 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3922 int, int);' 3923 3924 # Test code for whether the C compiler supports C89 (body of main). 3925 ac_c_conftest_c89_main=' 3926 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3927 ' 3928 3929 # Test code for whether the C compiler supports C99 (global declarations) 3930 ac_c_conftest_c99_globals=' 3931 // Does the compiler advertise C99 conformance? 3932 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3933 # error "Compiler does not advertise C99 conformance" 3934 #endif 3935 3936 #include <stdbool.h> 3937 extern int puts (const char *); 3938 extern int printf (const char *, ...); 3939 extern int dprintf (int, const char *, ...); 3940 extern void *malloc (size_t); 3941 3942 // Check varargs macros. These examples are taken from C99 6.10.3.5. 3943 // dprintf is used instead of fprintf to avoid needing to declare 3944 // FILE and stderr. 3945 #define debug(...) dprintf (2, __VA_ARGS__) 3946 #define showlist(...) puts (#__VA_ARGS__) 3947 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3948 static void 3949 test_varargs_macros (void) 2502 3950 { 2503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2504 ; 3951 int x = 1234; 3952 int y = 5678; 3953 debug ("Flag"); 3954 debug ("X = %d\n", x); 3955 showlist (The first, second, and third items.); 3956 report (x>y, "x is %d but y is %d", x, y); 3957 } 3958 3959 // Check long long types. 3960 #define BIG64 18446744073709551615ull 3961 #define BIG32 4294967295ul 3962 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3963 #if !BIG_OK 3964 #error "your preprocessor is broken" 3965 #endif 3966 #if BIG_OK 3967 #else 3968 #error "your preprocessor is broken" 3969 #endif 3970 static long long int bignum = -9223372036854775807LL; 3971 static unsigned long long int ubignum = BIG64; 3972 3973 struct incomplete_array 3974 { 3975 int datasize; 3976 double data[]; 3977 }; 3978 3979 struct named_init { 3980 int number; 3981 const wchar_t *name; 3982 double average; 3983 }; 3984 3985 typedef const char *ccp; 3986 3987 static inline int 3988 test_restrict (ccp restrict text) 3989 { 3990 // See if C++-style comments work. 3991 // Iterate through items via the restricted pointer. 3992 // Also check for declarations in for loops. 3993 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3994 continue; 2505 3995 return 0; 2506 3996 } 2507 _ACEOF 2508 # Don't try gcc -ansi; that turns off useful extensions and 2509 # breaks some systems' header files. 2510 # AIX -qlanglvl=ansi 2511 # Ultrix and OSF/1 -std1 2512 # HP-UX 10.20 and later -Ae 2513 # HP-UX older versions -Aa -D_HPUX_SOURCE 2514 # SVR4 -Xc -D__EXTENSIONS__ 2515 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3997 3998 // Check varargs and va_copy. 3999 static bool 4000 test_varargs (const char *format, ...) 4001 { 4002 va_list args; 4003 va_start (args, format); 4004 va_list args_copy; 4005 va_copy (args_copy, args); 4006 4007 const char *str = ""; 4008 int number = 0; 4009 float fnumber = 0; 4010 4011 while (*format) 4012 { 4013 switch (*format++) 4014 { 4015 case '\''s'\'': // string 4016 str = va_arg (args_copy, const char *); 4017 break; 4018 case '\''d'\'': // int 4019 number = va_arg (args_copy, int); 4020 break; 4021 case '\''f'\'': // float 4022 fnumber = va_arg (args_copy, double); 4023 break; 4024 default: 4025 break; 4026 } 4027 } 4028 va_end (args_copy); 4029 va_end (args); 4030 4031 return *str && number && fnumber; 4032 } 4033 ' 4034 4035 # Test code for whether the C compiler supports C99 (body of main). 4036 ac_c_conftest_c99_main=' 4037 // Check bool. 4038 _Bool success = false; 4039 success |= (argc != 0); 4040 4041 // Check restrict. 4042 if (test_restrict ("String literal") == 0) 4043 success = true; 4044 char *restrict newvar = "Another string"; 4045 4046 // Check varargs. 4047 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 4048 test_varargs_macros (); 4049 4050 // Check flexible array members. 4051 struct incomplete_array *ia = 4052 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4053 ia->datasize = 10; 4054 for (int i = 0; i < ia->datasize; ++i) 4055 ia->data[i] = i * 1.234; 4056 // Work around memory leak warnings. 4057 free (ia); 4058 4059 // Check named initializers. 4060 struct named_init ni = { 4061 .number = 34, 4062 .name = L"Test wide string", 4063 .average = 543.34343, 4064 }; 4065 4066 ni.number = 58; 4067 4068 int dynamic_array[ni.number]; 4069 dynamic_array[0] = argv[0][0]; 4070 dynamic_array[ni.number - 1] = 543; 4071 4072 // work around unused variable warnings 4073 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 4074 || dynamic_array[ni.number - 1] != 543); 4075 ' 4076 4077 # Test code for whether the C compiler supports C11 (global declarations) 4078 ac_c_conftest_c11_globals=' 4079 // Does the compiler advertise C11 conformance? 4080 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 4081 # error "Compiler does not advertise C11 conformance" 4082 #endif 4083 4084 // Check _Alignas. 4085 char _Alignas (double) aligned_as_double; 4086 char _Alignas (0) no_special_alignment; 4087 extern char aligned_as_int; 4088 char _Alignas (0) _Alignas (int) aligned_as_int; 4089 4090 // Check _Alignof. 4091 enum 4092 { 4093 int_alignment = _Alignof (int), 4094 int_array_alignment = _Alignof (int[100]), 4095 char_alignment = _Alignof (char) 4096 }; 4097 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 4098 4099 // Check _Noreturn. 4100 int _Noreturn does_not_return (void) { for (;;) continue; } 4101 4102 // Check _Static_assert. 4103 struct test_static_assert 4104 { 4105 int x; 4106 _Static_assert (sizeof (int) <= sizeof (long int), 4107 "_Static_assert does not work in struct"); 4108 long int y; 4109 }; 4110 4111 // Check UTF-8 literals. 4112 #define u8 syntax error! 4113 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 4114 4115 // Check duplicate typedefs. 4116 typedef long *long_ptr; 4117 typedef long int *long_ptr; 4118 typedef long_ptr long_ptr; 4119 4120 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 4121 struct anonymous 4122 { 4123 union { 4124 struct { int i; int j; }; 4125 struct { int k; long int l; } w; 4126 }; 4127 int m; 4128 } v1; 4129 ' 4130 4131 # Test code for whether the C compiler supports C11 (body of main). 4132 ac_c_conftest_c11_main=' 4133 _Static_assert ((offsetof (struct anonymous, i) 4134 == offsetof (struct anonymous, w.k)), 4135 "Anonymous union alignment botch"); 4136 v1.i = 2; 4137 v1.w.k = 5; 4138 ok |= v1.i != 5; 4139 ' 4140 4141 # Test code for whether the C compiler supports C11 (complete). 4142 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 4143 ${ac_c_conftest_c99_globals} 4144 ${ac_c_conftest_c11_globals} 4145 4146 int 4147 main (int argc, char **argv) 4148 { 4149 int ok = 0; 4150 ${ac_c_conftest_c89_main} 4151 ${ac_c_conftest_c99_main} 4152 ${ac_c_conftest_c11_main} 4153 return ok; 4154 } 4155 " 4156 4157 # Test code for whether the C compiler supports C99 (complete). 4158 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 4159 ${ac_c_conftest_c99_globals} 4160 4161 int 4162 main (int argc, char **argv) 4163 { 4164 int ok = 0; 4165 ${ac_c_conftest_c89_main} 4166 ${ac_c_conftest_c99_main} 4167 return ok; 4168 } 4169 " 4170 4171 # Test code for whether the C compiler supports C89 (complete). 4172 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 4173 4174 int 4175 main (int argc, char **argv) 4176 { 4177 int ok = 0; 4178 ${ac_c_conftest_c89_main} 4179 return ok; 4180 } 4181 " 4182 4183 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 4184 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 4185 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 4186 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 4187 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 4188 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 4189 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 4190 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 4191 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 4192 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 4193 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 4194 as_fn_append ac_func_c_list " fchmod HAVE_FCHMOD" 4195 as_fn_append ac_func_c_list " btowc HAVE_BTOWC" 4196 as_fn_append ac_func_c_list " canonicalize_file_name HAVE_CANONICALIZE_FILE_NAME" 4197 as_fn_append ac_func_c_list " faccessat HAVE_FACCESSAT" 4198 as_fn_append ac_func_c_list " realpath HAVE_REALPATH" 4199 as_fn_append ac_func_c_list " lstat HAVE_LSTAT" 4200 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 4201 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" 4202 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" 4203 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL" 4204 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK" 4205 as_fn_append ac_header_c_list " stdio_ext.h stdio_ext_h HAVE_STDIO_EXT_H" 4206 as_fn_append ac_func_c_list " __fwriting HAVE___FWRITING" 4207 as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM" 4208 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" 4209 as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME" 4210 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME" 4211 as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM" 4212 as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H" 4213 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" 4214 as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H" 4215 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H" 4216 as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT" 4217 as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC" 4218 as_fn_append ac_func_c_list " mbrlen HAVE_MBRLEN" 4219 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" 4220 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT" 4221 as_fn_append ac_func_c_list " mkostemp HAVE_MKOSTEMP" 4222 as_fn_append ac_func_c_list " nl_langinfo HAVE_NL_LANGINFO" 4223 as_fn_append ac_func_c_list " readlink HAVE_READLINK" 4224 as_fn_append ac_header_c_list " malloc.h malloc_h HAVE_MALLOC_H" 4225 as_fn_append ac_func_c_list " isblank HAVE_ISBLANK" 4226 as_fn_append ac_func_c_list " iswctype HAVE_ISWCTYPE" 4227 as_fn_append ac_func_c_list " link HAVE_LINK" 4228 as_fn_append ac_header_c_list " selinux/selinux.h selinux_selinux_h HAVE_SELINUX_SELINUX_H" 4229 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 4230 as_fn_append ac_header_c_list " stdalign.h stdalign_h HAVE_STDALIGN_H" 4231 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H" 4232 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H" 4233 as_fn_append ac_func_c_list " strerror_r HAVE_STRERROR_R" 4234 as_fn_append ac_func_c_list " __xpg_strerror_r HAVE___XPG_STRERROR_R" 4235 as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H" 4236 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H" 4237 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" 4238 as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB" 4239 as_fn_append ac_func_c_list " wctob HAVE_WCTOB" 4240 as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL" 4241 as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H" 4242 as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H" 4243 as_fn_append ac_header_c_list " dirent.h dirent_h HAVE_DIRENT_H" 4244 as_fn_append ac_func_c_list " explicit_bzero HAVE_EXPLICIT_BZERO" 4245 as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S" 4246 as_fn_append ac_func_c_list " fpurge HAVE_FPURGE" 4247 as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE" 4248 as_fn_append ac_func_c_list " __freading HAVE___FREADING" 4249 as_fn_append ac_func_c_list " ftruncate HAVE_FTRUNCATE" 4250 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY" 4251 as_fn_append ac_func_c_list " duplocale HAVE_DUPLOCALE" 4252 as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H" 4253 as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H" 4254 as_fn_append ac_func_c_list " newlocale HAVE_NEWLOCALE" 4255 as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE" 4256 as_fn_append ac_func_c_list " freelocale HAVE_FREELOCALE" 4257 as_fn_append ac_func_c_list " pipe HAVE_PIPE" 4258 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" 4259 as_fn_append ac_func_c_list " pselect HAVE_PSELECT" 4260 as_fn_append ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H" 4261 as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H" 4262 as_fn_append ac_func_c_list " pthread_sigmask HAVE_PTHREAD_SIGMASK" 4263 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" 4264 as_fn_append ac_func_c_list " setenv HAVE_SETENV" 4265 as_fn_append ac_func_c_list " sleep HAVE_SLEEP" 4266 as_fn_append ac_func_c_list " catgets HAVE_CATGETS" 4267 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF" 4268 as_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H" 4269 as_fn_append ac_func_c_list " shutdown HAVE_SHUTDOWN" 4270 as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H" 4271 as_fn_append ac_func_c_list " mquery HAVE_MQUERY" 4272 as_fn_append ac_func_c_list " pstat_getprocvm HAVE_PSTAT_GETPROCVM" 4273 gl_use_threads_default=no 4274 as_fn_append ac_header_c_list " locale.h locale_h HAVE_LOCALE_H" 4275 as_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H" 4276 as_fn_append ac_header_c_list " mcheck.h mcheck_h HAVE_MCHECK_H" 4277 gt_needs="$gt_needs " 4278 as_fn_append ac_func_c_list " isatty HAVE_ISATTY" 4279 as_fn_append ac_func_c_list " isascii HAVE_ISASCII" 4280 as_fn_append ac_func_c_list " memcpy HAVE_MEMCPY" 4281 as_fn_append ac_func_c_list " strchr HAVE_STRCHR" 4282 as_fn_append ac_func_c_list " strtoul HAVE_STRTOUL" 4283 as_fn_append ac_func_c_list " popen HAVE_POPEN" 4284 as_fn_append ac_func_c_list " pathconf HAVE_PATHCONF" 4285 as_fn_append ac_func_c_list " fchown HAVE_FCHOWN" 4286 as_fn_append ac_func_c_list " setlocale HAVE_SETLOCALE" 4287 4288 # Auxiliary files required by this configure script. 4289 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh" 4290 4291 # Locations in which to look for auxiliary files. 4292 ac_aux_dir_candidates="${srcdir}/build-aux" 4293 4294 # Search for a directory containing all of the required auxiliary files, 4295 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 4296 # If we don't find one directory that contains all the files we need, 4297 # we report the set of missing files from the *first* directory in 4298 # $ac_aux_dir_candidates and give up. 4299 ac_missing_aux_files="" 4300 ac_first_candidate=: 4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303 as_found=false 4304 for as_dir in $ac_aux_dir_candidates 2516 4305 do 2517 CC="$ac_save_CC $ac_arg" 2518 rm -f conftest.$ac_objext 2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2520 (eval $ac_compile) 2>conftest.er1 2521 ac_status=$? 2522 grep -v '^ *+' conftest.er1 >conftest.err 2523 rm -f conftest.er1 2524 cat conftest.err >&5 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); } && 2527 { ac_try='test -z "$ac_c_werror_flag" 2528 || test ! -s conftest.err' 2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2530 (eval $ac_try) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2533 (exit $ac_status); }; } && 2534 { ac_try='test -s conftest.$ac_objext' 2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2536 (eval $ac_try) 2>&5 2537 ac_status=$? 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2539 (exit $ac_status); }; }; then 2540 ac_cv_prog_cc_stdc=$ac_arg 2541 break 2542 else 2543 echo "$as_me: failed program was:" >&5 2544 sed 's/^/| /' conftest.$ac_ext >&5 2545 2546 fi 2547 rm -f conftest.err conftest.$ac_objext 4306 IFS=$as_save_IFS 4307 case $as_dir in #((( 4308 '') as_dir=./ ;; 4309 */) ;; 4310 *) as_dir=$as_dir/ ;; 4311 esac 4312 as_found=: 4313 4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 4315 ac_aux_dir_found=yes 4316 ac_install_sh= 4317 for ac_aux in $ac_aux_files 4318 do 4319 # As a special case, if "install-sh" is required, that requirement 4320 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 4321 # and $ac_install_sh is set appropriately for whichever one is found. 4322 if test x"$ac_aux" = x"install-sh" 4323 then 4324 if test -f "${as_dir}install-sh"; then 4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 4326 ac_install_sh="${as_dir}install-sh -c" 4327 elif test -f "${as_dir}install.sh"; then 4328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 4329 ac_install_sh="${as_dir}install.sh -c" 4330 elif test -f "${as_dir}shtool"; then 4331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 4332 ac_install_sh="${as_dir}shtool install -c" 4333 else 4334 ac_aux_dir_found=no 4335 if $ac_first_candidate; then 4336 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 4337 else 4338 break 4339 fi 4340 fi 4341 else 4342 if test -f "${as_dir}${ac_aux}"; then 4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 4344 else 4345 ac_aux_dir_found=no 4346 if $ac_first_candidate; then 4347 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 4348 else 4349 break 4350 fi 4351 fi 4352 fi 4353 done 4354 if test "$ac_aux_dir_found" = yes; then 4355 ac_aux_dir="$as_dir" 4356 break 4357 fi 4358 ac_first_candidate=false 4359 4360 as_found=false 2548 4361 done 2549 rm -f conftest.$ac_ext conftest.$ac_objext 2550 CC=$ac_save_CC 2551 2552 fi 2553 2554 case "x$ac_cv_prog_cc_stdc" in 2555 x|xno) 2556 echo "$as_me:$LINENO: result: none needed" >&5 2557 echo "${ECHO_T}none needed" >&6 ;; 2558 *) 2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2561 CC="$CC $ac_cv_prog_cc_stdc" ;; 2562 esac 2563 2564 # Some people use a C++ compiler to compile C. Since we use `exit', 2565 # in C++ we need to declare it. In case someone uses the same compiler 2566 # for both compiling C and C++ we need to have the C++ compiler decide 2567 # the declaration of exit, since it's the most demanding environment. 2568 cat >conftest.$ac_ext <<_ACEOF 2569 #ifndef __cplusplus 2570 choke me 2571 #endif 2572 _ACEOF 2573 rm -f conftest.$ac_objext 2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2575 (eval $ac_compile) 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_c_werror_flag" 2583 || test ! -s conftest.err' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; } && 2589 { ac_try='test -s conftest.$ac_objext' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 for ac_declaration in \ 2596 '' \ 2597 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2598 'extern "C" void std::exit (int); using std::exit;' \ 2599 'extern "C" void exit (int) throw ();' \ 2600 'extern "C" void exit (int);' \ 2601 'void exit (int);' 2602 do 2603 cat >conftest.$ac_ext <<_ACEOF 2604 /* confdefs.h. */ 2605 _ACEOF 2606 cat confdefs.h >>conftest.$ac_ext 2607 cat >>conftest.$ac_ext <<_ACEOF 2608 /* end confdefs.h. */ 2609 $ac_declaration 2610 #include <stdlib.h> 2611 int 2612 main () 2613 { 2614 exit (42); 2615 ; 2616 return 0; 2617 } 2618 _ACEOF 2619 rm -f conftest.$ac_objext 2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2621 (eval $ac_compile) 2>conftest.er1 2622 ac_status=$? 2623 grep -v '^ *+' conftest.er1 >conftest.err 2624 rm -f conftest.er1 2625 cat conftest.err >&5 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); } && 2628 { ac_try='test -z "$ac_c_werror_flag" 2629 || test ! -s conftest.err' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; } && 2635 { ac_try='test -s conftest.$ac_objext' 2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 (eval $ac_try) 2>&5 2638 ac_status=$? 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); }; }; then 2641 : 2642 else 2643 echo "$as_me: failed program was:" >&5 2644 sed 's/^/| /' conftest.$ac_ext >&5 2645 2646 continue 2647 fi 2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2649 cat >conftest.$ac_ext <<_ACEOF 2650 /* confdefs.h. */ 2651 _ACEOF 2652 cat confdefs.h >>conftest.$ac_ext 2653 cat >>conftest.$ac_ext <<_ACEOF 2654 /* end confdefs.h. */ 2655 $ac_declaration 2656 int 2657 main () 2658 { 2659 exit (42); 2660 ; 2661 return 0; 2662 } 2663 _ACEOF 2664 rm -f conftest.$ac_objext 2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2666 (eval $ac_compile) 2>conftest.er1 2667 ac_status=$? 2668 grep -v '^ *+' conftest.er1 >conftest.err 2669 rm -f conftest.er1 2670 cat conftest.err >&5 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } && 2673 { ac_try='test -z "$ac_c_werror_flag" 2674 || test ! -s conftest.err' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; } && 2680 { ac_try='test -s conftest.$ac_objext' 2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2682 (eval $ac_try) 2>&5 2683 ac_status=$? 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); }; }; then 2686 break 2687 else 2688 echo "$as_me: failed program was:" >&5 2689 sed 's/^/| /' conftest.$ac_ext >&5 2690 2691 fi 2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4362 IFS=$as_save_IFS 4363 if $as_found 4364 then : 4365 4366 else case e in #( 4367 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 4368 esac 4369 fi 4370 4371 4372 # These three variables are undocumented and unsupported, 4373 # and are intended to be withdrawn in a future Autoconf release. 4374 # They can cause serious problems if a builder's source tree is in a directory 4375 # whose full name contains unusual characters. 4376 if test -f "${ac_aux_dir}config.guess"; then 4377 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 4378 fi 4379 if test -f "${ac_aux_dir}config.sub"; then 4380 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 4381 fi 4382 if test -f "$ac_aux_dir/configure"; then 4383 ac_configure="$SHELL ${ac_aux_dir}configure" 4384 fi 4385 4386 # Check that the precious variables saved in the cache have kept the same 4387 # value. 4388 ac_cache_corrupted=false 4389 for ac_var in $ac_precious_vars; do 4390 eval ac_old_set=\$ac_cv_env_${ac_var}_set 4391 eval ac_new_set=\$ac_env_${ac_var}_set 4392 eval ac_old_val=\$ac_cv_env_${ac_var}_value 4393 eval ac_new_val=\$ac_env_${ac_var}_value 4394 case $ac_old_set,$ac_new_set in 4395 set,) 4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 4397 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 4398 ac_cache_corrupted=: ;; 4399 ,set) 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 4401 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 4402 ac_cache_corrupted=: ;; 4403 ,);; 4404 *) 4405 if test "x$ac_old_val" != "x$ac_new_val"; then 4406 # differences in whitespace do not lead to failure. 4407 ac_old_val_w=`echo x $ac_old_val` 4408 ac_new_val_w=`echo x $ac_new_val` 4409 if test "$ac_old_val_w" != "$ac_new_val_w"; then 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 4411 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 4412 ac_cache_corrupted=: 4413 else 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 4415 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 4416 eval $ac_var=\$ac_old_val 4417 fi 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 4419 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 4421 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 4422 fi;; 4423 esac 4424 # Pass precious variables to config.status. 4425 if test "$ac_new_set" = set; then 4426 case $ac_new_val in 4427 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 4428 *) ac_arg=$ac_var=$ac_new_val ;; 4429 esac 4430 case " $ac_configure_args " in 4431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 4432 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 4433 esac 4434 fi 2693 4435 done 2694 rm -f conftest* 2695 if test -n "$ac_declaration"; then 2696 echo '#ifdef __cplusplus' >>confdefs.h 2697 echo $ac_declaration >>confdefs.h 2698 echo '#endif' >>confdefs.h 2699 fi 2700 2701 else 2702 echo "$as_me: failed program was:" >&5 2703 sed 's/^/| /' conftest.$ac_ext >&5 2704 2705 fi 2706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4436 if $ac_cache_corrupted; then 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4438 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 4440 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 4441 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 4442 and start over" "$LINENO" 5 4443 fi 4444 ## -------------------- ## 4445 ## Main body of script. ## 4446 ## -------------------- ## 4447 2707 4448 ac_ext=c 2708 4449 ac_cpp='$CPP $CPPFLAGS' … … 2710 4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2711 4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453 4454 4455 4456 4457 ac_config_headers="$ac_config_headers config.h:config_h.in" 4458 4459 4460 am__api_version='1.16' 4461 4462 4463 4464 # Find a good install program. We prefer a C program (faster), 4465 # so one script is as good as another. But avoid the broken or 4466 # incompatible versions: 4467 # SysV /etc/install, /usr/sbin/install 4468 # SunOS /usr/etc/install 4469 # IRIX /sbin/install 4470 # AIX /bin/install 4471 # AmigaOS /C/install, which installs bootblocks on floppy discs 4472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4475 # OS/2's system install, which has a completely different semantic 4476 # ./install, which can be erroneously created by make from ./install.sh. 4477 # Reject install programs that cannot install multiple files. 4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4479 printf %s "checking for a BSD-compatible install... " >&6; } 4480 if test -z "$INSTALL"; then 4481 if test ${ac_cv_path_install+y} 4482 then : 4483 printf %s "(cached) " >&6 4484 else case e in #( 4485 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4486 for as_dir in $PATH 4487 do 4488 IFS=$as_save_IFS 4489 case $as_dir in #((( 4490 '') as_dir=./ ;; 4491 */) ;; 4492 *) as_dir=$as_dir/ ;; 4493 esac 4494 # Account for fact that we put trailing slashes in our PATH walk. 4495 case $as_dir in #(( 4496 ./ | /[cC]/* | \ 4497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4499 /usr/ucb/* ) ;; 4500 *) 4501 # OSF1 and SCO ODT 3.0 have their own names for install. 4502 # Don't use installbsd from OSF since it installs stuff as root 4503 # by default. 4504 for ac_prog in ginstall scoinst install; do 4505 for ac_exec_ext in '' $ac_executable_extensions; do 4506 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4507 if test $ac_prog = install && 4508 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4509 # AIX install. It has an incompatible calling convention. 4510 : 4511 elif test $ac_prog = install && 4512 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4513 # program-specific install script used by HP pwplus--don't use. 4514 : 4515 else 4516 rm -rf conftest.one conftest.two conftest.dir 4517 echo one > conftest.one 4518 echo two > conftest.two 4519 mkdir conftest.dir 4520 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4521 test -s conftest.one && test -s conftest.two && 4522 test -s conftest.dir/conftest.one && 4523 test -s conftest.dir/conftest.two 4524 then 4525 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4526 break 3 4527 fi 4528 fi 4529 fi 4530 done 4531 done 4532 ;; 4533 esac 4534 4535 done 4536 IFS=$as_save_IFS 4537 4538 rm -rf conftest.one conftest.two conftest.dir 4539 ;; 4540 esac 4541 fi 4542 if test ${ac_cv_path_install+y}; then 4543 INSTALL=$ac_cv_path_install 4544 else 4545 # As a last resort, use the slow shell script. Don't cache a 4546 # value for INSTALL within a source directory, because that will 4547 # break other packages using the cache if that directory is 4548 # removed, or if the value is a relative name. 4549 INSTALL=$ac_install_sh 4550 fi 4551 fi 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4553 printf "%s\n" "$INSTALL" >&6; } 4554 4555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4556 # It thinks the first close brace ends the variable substitution. 4557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4558 4559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4560 4561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4562 4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4564 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4565 if test ${am_cv_sleep_fractional_seconds+y} 4566 then : 4567 printf %s "(cached) " >&6 4568 else case e in #( 4569 e) if sleep 0.001 2>/dev/null 4570 then : 4571 am_cv_sleep_fractional_seconds=true 4572 else case e in #( 4573 e) am_cv_sleep_fractional_seconds=false ;; 4574 esac 4575 fi 4576 ;; 4577 esac 4578 fi 4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4580 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4581 4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the filesystem timestamp resolution" >&5 4583 printf %s "checking the filesystem timestamp resolution... " >&6; } 4584 if test ${am_cv_filesystem_timestamp_resolution+y} 4585 then : 4586 printf %s "(cached) " >&6 4587 else case e in #( 4588 e) # Use names that lexically sort older-first when the timestamps are equal. 4589 rm -f conftest.file.a conftest.file.b 4590 : > conftest.file.a 4591 if $am_cv_sleep_fractional_seconds 4592 then : 4593 am_try_sleep=0.1 am_try_loops=20 4594 4595 else case e in #( 4596 e) am_try_sleep=1 am_try_loops=2 4597 ;; 4598 esac 4599 fi 4600 am_try=0 4601 while :; do 4602 as_fn_arith $am_try + 1 && am_try=$as_val 4603 echo "timestamp $am_try" > conftest.file.b 4604 set X `ls -t conftest.file.a conftest.file.b` 4605 if test "$2" = conftest.file.b || test $am_try -eq $am_try_loops; then 4606 break 4607 fi 4608 sleep $am_try_sleep 4609 done 4610 rm -f conftest.file.a conftest.file.b 4611 am_cv_filesystem_timestamp_resolution=$am_try 4612 if $am_cv_sleep_fractional_seconds 4613 then : 4614 as_fn_arith $am_try / 10 && am_cv_filesystem_timestamp_resolution=$as_val 4615 as_fn_arith $am_try % 10 && am_fraction=$as_val 4616 as_fn_append am_cv_filesystem_timestamp_resolution .$am_fraction 4617 4618 fi 4619 ;; 4620 esac 4621 fi 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4623 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4624 4625 rm -f conftest.file 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4627 printf %s "checking whether build environment is sane... " >&6; } 4628 if test ${am_cv_build_env_is_sane+y} 4629 then : 4630 printf %s "(cached) " >&6 4631 else case e in #( 4632 e) # Reject unsafe characters in $srcdir or the absolute working directory 4633 # name. Accept space and tab only in the latter. 4634 am_lf=' 4635 ' 4636 case `pwd` in 4637 *[\\\"\#\$\&\'\`$am_lf]*) 4638 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4639 esac 4640 case $srcdir in 4641 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4642 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4643 esac 4644 4645 # Do 'set' in a subshell so we don't clobber the current shell's 4646 # arguments. Must try -L first in case configure is actually a 4647 # symlink; some systems play weird games with the mod time of symlinks 4648 # (eg FreeBSD returns the mod time of the symlink's containing 4649 # directory). 4650 if ( 4651 am_has_slept=no 4652 for am_try in 1 2; do 4653 echo "timestamp, slept: $am_has_slept" > conftest.file 4654 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4655 if test "$*" = "X"; then 4656 # -L didn't work. 4657 set X `ls -t "$srcdir/configure" conftest.file` 4658 fi 4659 if test "$*" != "X $srcdir/configure conftest.file" \ 4660 && test "$*" != "X conftest.file $srcdir/configure"; then 4661 4662 # If neither matched, then we have a broken ls. This can happen 4663 # if, for instance, CONFIG_SHELL is bash and it inherits a 4664 # broken ls alias from the environment. This has actually 4665 # happened. Such a system could not be considered "sane". 4666 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4667 alias in your environment" "$LINENO" 5 4668 fi 4669 if test "$2" = conftest.file || test $am_try -eq 2; then 4670 break 4671 fi 4672 # Just in case. 4673 sleep $am_cv_filesystem_timestamp_resolution 4674 am_has_slept=yes 4675 done 4676 test "$2" = conftest.file 4677 ) 4678 then 4679 am_cv_build_env_is_sane=yes 4680 else 4681 as_fn_error $? "newly created file is older than distributed files! 4682 Check your system clock" "$LINENO" 5 4683 fi 4684 ;; 4685 esac 4686 fi 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_env_is_sane" >&5 4688 printf "%s\n" "$am_cv_build_env_is_sane" >&6; } 4689 # If we didn't sleep, we still need to ensure time stamps of config.status and 4690 # generated files are strictly newer. 4691 am_sleep_pid= 4692 if ! test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1; then 4693 ( sleep $am_cv_filesystem_timestamp_resolution ) & 4694 am_sleep_pid=$! 4695 fi 4696 4697 rm -f conftest.file 4698 4699 test "$program_prefix" != NONE && 4700 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4701 # Use a double $ so make ignores it. 4702 test "$program_suffix" != NONE && 4703 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4704 # Double any \ or $. 4705 # By default was 's,x,x', remove it if useless. 4706 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4707 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4708 4709 4710 # Expand $ac_aux_dir to an absolute path. 4711 am_aux_dir=`cd "$ac_aux_dir" && pwd` 4712 4713 4714 if test x"${MISSING+set}" != xset; then 4715 MISSING="\${SHELL} '$am_aux_dir/missing'" 4716 fi 4717 # Use eval to expand $SHELL 4718 if eval "$MISSING --is-lightweight"; then 4719 am_missing_run="$MISSING " 4720 else 4721 am_missing_run= 4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4723 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4724 fi 4725 4726 if test x"${install_sh+set}" != xset; then 4727 case $am_aux_dir in 4728 *\ * | *\ *) 4729 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4730 *) 4731 install_sh="\${SHELL} $am_aux_dir/install-sh" 4732 esac 4733 fi 4734 4735 # Installed binaries are usually stripped using 'strip' when the user 4736 # run "make install-strip". However 'strip' might not be the right 4737 # tool to use in cross-compilation environments, therefore Automake 4738 # will honor the 'STRIP' environment variable to overrule this program. 4739 if test "$cross_compiling" != no; then 4740 if test -n "$ac_tool_prefix"; then 4741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4742 set dummy ${ac_tool_prefix}strip; ac_word=$2 4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4744 printf %s "checking for $ac_word... " >&6; } 4745 if test ${ac_cv_prog_STRIP+y} 4746 then : 4747 printf %s "(cached) " >&6 4748 else case e in #( 4749 e) if test -n "$STRIP"; then 4750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4751 else 4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753 for as_dir in $PATH 4754 do 4755 IFS=$as_save_IFS 4756 case $as_dir in #((( 4757 '') as_dir=./ ;; 4758 */) ;; 4759 *) as_dir=$as_dir/ ;; 4760 esac 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4763 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4765 break 2 4766 fi 4767 done 4768 done 4769 IFS=$as_save_IFS 4770 4771 fi ;; 4772 esac 4773 fi 4774 STRIP=$ac_cv_prog_STRIP 4775 if test -n "$STRIP"; then 4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4777 printf "%s\n" "$STRIP" >&6; } 4778 else 4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4780 printf "%s\n" "no" >&6; } 4781 fi 4782 4783 4784 fi 4785 if test -z "$ac_cv_prog_STRIP"; then 4786 ac_ct_STRIP=$STRIP 4787 # Extract the first word of "strip", so it can be a program name with args. 4788 set dummy strip; ac_word=$2 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4790 printf %s "checking for $ac_word... " >&6; } 4791 if test ${ac_cv_prog_ac_ct_STRIP+y} 4792 then : 4793 printf %s "(cached) " >&6 4794 else case e in #( 4795 e) if test -n "$ac_ct_STRIP"; then 4796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4797 else 4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799 for as_dir in $PATH 4800 do 4801 IFS=$as_save_IFS 4802 case $as_dir in #((( 4803 '') as_dir=./ ;; 4804 */) ;; 4805 *) as_dir=$as_dir/ ;; 4806 esac 4807 for ac_exec_ext in '' $ac_executable_extensions; do 4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4809 ac_cv_prog_ac_ct_STRIP="strip" 4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4811 break 2 4812 fi 4813 done 4814 done 4815 IFS=$as_save_IFS 4816 4817 fi ;; 4818 esac 4819 fi 4820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4821 if test -n "$ac_ct_STRIP"; then 4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4823 printf "%s\n" "$ac_ct_STRIP" >&6; } 4824 else 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4826 printf "%s\n" "no" >&6; } 4827 fi 4828 4829 if test "x$ac_ct_STRIP" = x; then 4830 STRIP=":" 4831 else 4832 case $cross_compiling:$ac_tool_warned in 4833 yes:) 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4836 ac_tool_warned=yes ;; 4837 esac 4838 STRIP=$ac_ct_STRIP 4839 fi 4840 else 4841 STRIP="$ac_cv_prog_STRIP" 4842 fi 4843 4844 fi 4845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4846 4847 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4849 printf %s "checking for a race-free mkdir -p... " >&6; } 4850 if test -z "$MKDIR_P"; then 4851 if test ${ac_cv_path_mkdir+y} 4852 then : 4853 printf %s "(cached) " >&6 4854 else case e in #( 4855 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4856 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4857 do 4858 IFS=$as_save_IFS 4859 case $as_dir in #((( 4860 '') as_dir=./ ;; 4861 */) ;; 4862 *) as_dir=$as_dir/ ;; 4863 esac 4864 for ac_prog in mkdir gmkdir; do 4865 for ac_exec_ext in '' $ac_executable_extensions; do 4866 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4867 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4868 'mkdir ('*'coreutils) '* | \ 4869 'BusyBox '* | \ 4870 'mkdir (fileutils) '4.1*) 4871 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4872 break 3;; 4873 esac 4874 done 4875 done 4876 done 4877 IFS=$as_save_IFS 4878 ;; 4879 esac 4880 fi 4881 4882 test -d ./--version && rmdir ./--version 4883 if test ${ac_cv_path_mkdir+y}; then 4884 MKDIR_P="$ac_cv_path_mkdir -p" 4885 else 4886 # As a last resort, use plain mkdir -p, 4887 # in the hope it doesn't have the bugs of ancient mkdir. 4888 MKDIR_P='mkdir -p' 4889 fi 4890 fi 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4892 printf "%s\n" "$MKDIR_P" >&6; } 4893 4894 for ac_prog in gawk mawk nawk awk 4895 do 4896 # Extract the first word of "$ac_prog", so it can be a program name with args. 4897 set dummy $ac_prog; ac_word=$2 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4899 printf %s "checking for $ac_word... " >&6; } 4900 if test ${ac_cv_prog_AWK+y} 4901 then : 4902 printf %s "(cached) " >&6 4903 else case e in #( 4904 e) if test -n "$AWK"; then 4905 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4906 else 4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4908 for as_dir in $PATH 4909 do 4910 IFS=$as_save_IFS 4911 case $as_dir in #((( 4912 '') as_dir=./ ;; 4913 */) ;; 4914 *) as_dir=$as_dir/ ;; 4915 esac 4916 for ac_exec_ext in '' $ac_executable_extensions; do 4917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4918 ac_cv_prog_AWK="$ac_prog" 4919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4920 break 2 4921 fi 4922 done 4923 done 4924 IFS=$as_save_IFS 4925 4926 fi ;; 4927 esac 4928 fi 4929 AWK=$ac_cv_prog_AWK 4930 if test -n "$AWK"; then 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4932 printf "%s\n" "$AWK" >&6; } 4933 else 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4935 printf "%s\n" "no" >&6; } 4936 fi 4937 4938 4939 test -n "$AWK" && break 4940 done 4941 4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4943 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4944 set x ${MAKE-make} 4945 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4946 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4947 then : 4948 printf %s "(cached) " >&6 4949 else case e in #( 4950 e) cat >conftest.make <<\_ACEOF 4951 SHELL = /bin/sh 4952 all: 4953 @echo '@@@%%%=$(MAKE)=@@@%%%' 4954 _ACEOF 4955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4956 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4957 *@@@%%%=?*=@@@%%%*) 4958 eval ac_cv_prog_make_${ac_make}_set=yes;; 4959 *) 4960 eval ac_cv_prog_make_${ac_make}_set=no;; 4961 esac 4962 rm -f conftest.make ;; 4963 esac 4964 fi 4965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4967 printf "%s\n" "yes" >&6; } 4968 SET_MAKE= 4969 else 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971 printf "%s\n" "no" >&6; } 4972 SET_MAKE="MAKE=${MAKE-make}" 4973 fi 4974 4975 rm -rf .tst 2>/dev/null 4976 mkdir .tst 2>/dev/null 4977 if test -d .tst; then 4978 am__leading_dot=. 4979 else 4980 am__leading_dot=_ 4981 fi 4982 rmdir .tst 2>/dev/null 4983 4984 AM_DEFAULT_VERBOSITY=1 4985 # Check whether --enable-silent-rules was given. 4986 if test ${enable_silent_rules+y} 4987 then : 4988 enableval=$enable_silent_rules; 4989 fi 4990 4991 am_make=${MAKE-make} 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4993 printf %s "checking whether $am_make supports nested variables... " >&6; } 4994 if test ${am_cv_make_support_nested_variables+y} 4995 then : 4996 printf %s "(cached) " >&6 4997 else case e in #( 4998 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4999 BAR0=false 5000 BAR1=true 5001 V=1 5002 am__doit: 5003 @$(TRUE) 5004 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5005 am_cv_make_support_nested_variables=yes 5006 else 5007 am_cv_make_support_nested_variables=no 5008 fi ;; 5009 esac 5010 fi 5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5012 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 5013 AM_BACKSLASH='\' 5014 5015 am__rm_f_notfound= 5016 if (rm -f && rm -fr && rm -rf) 2>/dev/null 5017 then : 5018 5019 else case e in #( 5020 e) am__rm_f_notfound='""' ;; 5021 esac 5022 fi 5023 5024 5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 5026 printf %s "checking xargs -n works... " >&6; } 5027 if test ${am_cv_xargs_n_works+y} 5028 then : 5029 printf %s "(cached) " >&6 5030 else case e in #( 5031 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 5032 3" 5033 then : 5034 am_cv_xargs_n_works=yes 5035 else case e in #( 5036 e) am_cv_xargs_n_works=no ;; 5037 esac 5038 fi ;; 5039 esac 5040 fi 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 5042 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 5043 if test "$am_cv_xargs_n_works" = yes 5044 then : 5045 am__xargs_n='xargs -n' 5046 else case e in #( 5047 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 5048 ;; 5049 esac 5050 fi 5051 5052 if test "`cd $srcdir && pwd`" != "`pwd`"; then 5053 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5054 # is not polluted with repeated "-I." 5055 am__isrc=' -I$(srcdir)' 5056 # test to see if srcdir already configured 5057 if test -f $srcdir/config.status; then 5058 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5059 fi 5060 fi 5061 5062 # test whether we have cygpath 5063 if test -z "$CYGPATH_W"; then 5064 if (cygpath --version) >/dev/null 2>/dev/null; then 5065 CYGPATH_W='cygpath -w' 5066 else 5067 CYGPATH_W=echo 5068 fi 5069 fi 5070 5071 5072 # Define the identity of the package. 5073 PACKAGE='sed' 5074 VERSION='4.9' 5075 5076 5077 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 5078 5079 5080 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 5081 5082 # Some tools Automake needs. 5083 5084 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5085 5086 5087 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5088 5089 5090 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5091 5092 5093 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5094 5095 5096 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5097 5098 # For better backward compatibility. To be removed once Automake 1.9.x 5099 # dies out for good. For more background, see: 5100 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5101 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5102 mkdir_p='$(MKDIR_P)' 5103 5104 # We need awk for the "check" target (and possibly the TAP driver). The 5105 # system "awk" is bad on some platforms. 5106 # Always define AMTAR for backward compatibility. Yes, it's still used 5107 # in the wild :-( We should find a proper way to deprecate it ... 5108 AMTAR='$${TAR-tar}' 5109 5110 5111 # We'll loop over all known methods to create a tar archive until one works. 5112 _am_tools='gnutar pax cpio none' 5113 5114 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5115 5116 5117 5118 5119 5120 # Variables for tags utilities; see am/tags.am 5121 if test -z "$CTAGS"; then 5122 CTAGS=ctags 5123 fi 5124 5125 if test -z "$ETAGS"; then 5126 ETAGS=etags 5127 fi 5128 5129 if test -z "$CSCOPE"; then 5130 CSCOPE=cscope 5131 fi 5132 5133 5134 5135 5136 5137 5138 5139 5140 AM_DEFAULT_VERBOSITY=0 # make --enable-silent-rules the default. 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 ac_ext=c 5153 ac_cpp='$CPP $CPPFLAGS' 5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5157 if test -n "$ac_tool_prefix"; then 5158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5159 set dummy ${ac_tool_prefix}gcc; ac_word=$2 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161 printf %s "checking for $ac_word... " >&6; } 5162 if test ${ac_cv_prog_CC+y} 5163 then : 5164 printf %s "(cached) " >&6 5165 else case e in #( 5166 e) if test -n "$CC"; then 5167 ac_cv_prog_CC="$CC" # Let the user override the test. 5168 else 5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170 for as_dir in $PATH 5171 do 5172 IFS=$as_save_IFS 5173 case $as_dir in #((( 5174 '') as_dir=./ ;; 5175 */) ;; 5176 *) as_dir=$as_dir/ ;; 5177 esac 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5180 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5182 break 2 5183 fi 5184 done 5185 done 5186 IFS=$as_save_IFS 5187 5188 fi ;; 5189 esac 5190 fi 5191 CC=$ac_cv_prog_CC 5192 if test -n "$CC"; then 5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5194 printf "%s\n" "$CC" >&6; } 5195 else 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5197 printf "%s\n" "no" >&6; } 5198 fi 5199 5200 5201 fi 5202 if test -z "$ac_cv_prog_CC"; then 5203 ac_ct_CC=$CC 5204 # Extract the first word of "gcc", so it can be a program name with args. 5205 set dummy gcc; ac_word=$2 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5207 printf %s "checking for $ac_word... " >&6; } 5208 if test ${ac_cv_prog_ac_ct_CC+y} 5209 then : 5210 printf %s "(cached) " >&6 5211 else case e in #( 5212 e) if test -n "$ac_ct_CC"; then 5213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5214 else 5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216 for as_dir in $PATH 5217 do 5218 IFS=$as_save_IFS 5219 case $as_dir in #((( 5220 '') as_dir=./ ;; 5221 */) ;; 5222 *) as_dir=$as_dir/ ;; 5223 esac 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5226 ac_cv_prog_ac_ct_CC="gcc" 5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230 done 5231 done 5232 IFS=$as_save_IFS 5233 5234 fi ;; 5235 esac 5236 fi 5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5238 if test -n "$ac_ct_CC"; then 5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5240 printf "%s\n" "$ac_ct_CC" >&6; } 5241 else 5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5243 printf "%s\n" "no" >&6; } 5244 fi 5245 5246 if test "x$ac_ct_CC" = x; then 5247 CC="" 5248 else 5249 case $cross_compiling:$ac_tool_warned in 5250 yes:) 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5253 ac_tool_warned=yes ;; 5254 esac 5255 CC=$ac_ct_CC 5256 fi 5257 else 5258 CC="$ac_cv_prog_CC" 5259 fi 5260 5261 if test -z "$CC"; then 5262 if test -n "$ac_tool_prefix"; then 5263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5264 set dummy ${ac_tool_prefix}cc; ac_word=$2 5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266 printf %s "checking for $ac_word... " >&6; } 5267 if test ${ac_cv_prog_CC+y} 5268 then : 5269 printf %s "(cached) " >&6 5270 else case e in #( 5271 e) if test -n "$CC"; then 5272 ac_cv_prog_CC="$CC" # Let the user override the test. 5273 else 5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5275 for as_dir in $PATH 5276 do 5277 IFS=$as_save_IFS 5278 case $as_dir in #((( 5279 '') as_dir=./ ;; 5280 */) ;; 5281 *) as_dir=$as_dir/ ;; 5282 esac 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5285 ac_cv_prog_CC="${ac_tool_prefix}cc" 5286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289 done 5290 done 5291 IFS=$as_save_IFS 5292 5293 fi ;; 5294 esac 5295 fi 5296 CC=$ac_cv_prog_CC 5297 if test -n "$CC"; then 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5299 printf "%s\n" "$CC" >&6; } 5300 else 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5302 printf "%s\n" "no" >&6; } 5303 fi 5304 5305 5306 fi 5307 fi 5308 if test -z "$CC"; then 5309 # Extract the first word of "cc", so it can be a program name with args. 5310 set dummy cc; ac_word=$2 5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5312 printf %s "checking for $ac_word... " >&6; } 5313 if test ${ac_cv_prog_CC+y} 5314 then : 5315 printf %s "(cached) " >&6 5316 else case e in #( 5317 e) if test -n "$CC"; then 5318 ac_cv_prog_CC="$CC" # Let the user override the test. 5319 else 5320 ac_prog_rejected=no 5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5322 for as_dir in $PATH 5323 do 5324 IFS=$as_save_IFS 5325 case $as_dir in #((( 5326 '') as_dir=./ ;; 5327 */) ;; 5328 *) as_dir=$as_dir/ ;; 5329 esac 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5332 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5333 ac_prog_rejected=yes 5334 continue 5335 fi 5336 ac_cv_prog_CC="cc" 5337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340 done 5341 done 5342 IFS=$as_save_IFS 5343 5344 if test $ac_prog_rejected = yes; then 5345 # We found a bogon in the path, so make sure we never use it. 5346 set dummy $ac_cv_prog_CC 5347 shift 5348 if test $# != 0; then 5349 # We chose a different compiler from the bogus one. 5350 # However, it has the same basename, so the bogon will be chosen 5351 # first if we set CC to just the basename; use the full file name. 5352 shift 5353 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5354 fi 5355 fi 5356 fi ;; 5357 esac 5358 fi 5359 CC=$ac_cv_prog_CC 5360 if test -n "$CC"; then 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5362 printf "%s\n" "$CC" >&6; } 5363 else 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5365 printf "%s\n" "no" >&6; } 5366 fi 5367 5368 5369 fi 5370 if test -z "$CC"; then 5371 if test -n "$ac_tool_prefix"; then 5372 for ac_prog in cl.exe 5373 do 5374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377 printf %s "checking for $ac_word... " >&6; } 5378 if test ${ac_cv_prog_CC+y} 5379 then : 5380 printf %s "(cached) " >&6 5381 else case e in #( 5382 e) if test -n "$CC"; then 5383 ac_cv_prog_CC="$CC" # Let the user override the test. 5384 else 5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386 for as_dir in $PATH 5387 do 5388 IFS=$as_save_IFS 5389 case $as_dir in #((( 5390 '') as_dir=./ ;; 5391 */) ;; 5392 *) as_dir=$as_dir/ ;; 5393 esac 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400 done 5401 done 5402 IFS=$as_save_IFS 5403 5404 fi ;; 5405 esac 5406 fi 5407 CC=$ac_cv_prog_CC 5408 if test -n "$CC"; then 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5410 printf "%s\n" "$CC" >&6; } 5411 else 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413 printf "%s\n" "no" >&6; } 5414 fi 5415 5416 5417 test -n "$CC" && break 5418 done 5419 fi 5420 if test -z "$CC"; then 5421 ac_ct_CC=$CC 5422 for ac_prog in cl.exe 5423 do 5424 # Extract the first word of "$ac_prog", so it can be a program name with args. 5425 set dummy $ac_prog; ac_word=$2 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5427 printf %s "checking for $ac_word... " >&6; } 5428 if test ${ac_cv_prog_ac_ct_CC+y} 5429 then : 5430 printf %s "(cached) " >&6 5431 else case e in #( 5432 e) if test -n "$ac_ct_CC"; then 5433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5434 else 5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5436 for as_dir in $PATH 5437 do 5438 IFS=$as_save_IFS 5439 case $as_dir in #((( 5440 '') as_dir=./ ;; 5441 */) ;; 5442 *) as_dir=$as_dir/ ;; 5443 esac 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5446 ac_cv_prog_ac_ct_CC="$ac_prog" 5447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450 done 5451 done 5452 IFS=$as_save_IFS 5453 5454 fi ;; 5455 esac 5456 fi 5457 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5458 if test -n "$ac_ct_CC"; then 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5460 printf "%s\n" "$ac_ct_CC" >&6; } 5461 else 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5463 printf "%s\n" "no" >&6; } 5464 fi 5465 5466 5467 test -n "$ac_ct_CC" && break 5468 done 5469 5470 if test "x$ac_ct_CC" = x; then 5471 CC="" 5472 else 5473 case $cross_compiling:$ac_tool_warned in 5474 yes:) 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5477 ac_tool_warned=yes ;; 5478 esac 5479 CC=$ac_ct_CC 5480 fi 5481 fi 5482 5483 fi 5484 if test -z "$CC"; then 5485 if test -n "$ac_tool_prefix"; then 5486 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5487 set dummy ${ac_tool_prefix}clang; ac_word=$2 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5489 printf %s "checking for $ac_word... " >&6; } 5490 if test ${ac_cv_prog_CC+y} 5491 then : 5492 printf %s "(cached) " >&6 5493 else case e in #( 5494 e) if test -n "$CC"; then 5495 ac_cv_prog_CC="$CC" # Let the user override the test. 5496 else 5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498 for as_dir in $PATH 5499 do 5500 IFS=$as_save_IFS 5501 case $as_dir in #((( 5502 '') as_dir=./ ;; 5503 */) ;; 5504 *) as_dir=$as_dir/ ;; 5505 esac 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5508 ac_cv_prog_CC="${ac_tool_prefix}clang" 5509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512 done 5513 done 5514 IFS=$as_save_IFS 5515 5516 fi ;; 5517 esac 5518 fi 5519 CC=$ac_cv_prog_CC 5520 if test -n "$CC"; then 5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5522 printf "%s\n" "$CC" >&6; } 5523 else 5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525 printf "%s\n" "no" >&6; } 5526 fi 5527 5528 5529 fi 5530 if test -z "$ac_cv_prog_CC"; then 5531 ac_ct_CC=$CC 5532 # Extract the first word of "clang", so it can be a program name with args. 5533 set dummy clang; ac_word=$2 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5535 printf %s "checking for $ac_word... " >&6; } 5536 if test ${ac_cv_prog_ac_ct_CC+y} 5537 then : 5538 printf %s "(cached) " >&6 5539 else case e in #( 5540 e) if test -n "$ac_ct_CC"; then 5541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5542 else 5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544 for as_dir in $PATH 5545 do 5546 IFS=$as_save_IFS 5547 case $as_dir in #((( 5548 '') as_dir=./ ;; 5549 */) ;; 5550 *) as_dir=$as_dir/ ;; 5551 esac 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_ac_ct_CC="clang" 5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558 done 5559 done 5560 IFS=$as_save_IFS 5561 5562 fi ;; 5563 esac 5564 fi 5565 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5566 if test -n "$ac_ct_CC"; then 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5568 printf "%s\n" "$ac_ct_CC" >&6; } 5569 else 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571 printf "%s\n" "no" >&6; } 5572 fi 5573 5574 if test "x$ac_ct_CC" = x; then 5575 CC="" 5576 else 5577 case $cross_compiling:$ac_tool_warned in 5578 yes:) 5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5581 ac_tool_warned=yes ;; 5582 esac 5583 CC=$ac_ct_CC 5584 fi 5585 else 5586 CC="$ac_cv_prog_CC" 5587 fi 5588 5589 fi 5590 5591 5592 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5593 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5594 as_fn_error $? "no acceptable C compiler found in \$PATH 5595 See 'config.log' for more details" "$LINENO" 5; } 5596 5597 # Provide some information about the compiler. 5598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5599 set X $ac_compile 5600 ac_compiler=$2 5601 for ac_option in --version -v -V -qversion -version; do 5602 { { ac_try="$ac_compiler $ac_option >&5" 5603 case "(($ac_try" in 5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5605 *) ac_try_echo=$ac_try;; 5606 esac 5607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5608 printf "%s\n" "$ac_try_echo"; } >&5 5609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5610 ac_status=$? 5611 if test -s conftest.err; then 5612 sed '10a\ 5613 ... rest of stderr output deleted ... 5614 10q' conftest.err >conftest.er1 5615 cat conftest.er1 >&5 5616 fi 5617 rm -f conftest.er1 conftest.err 5618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5619 test $ac_status = 0; } 5620 done 5621 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623 /* end confdefs.h. */ 5624 5625 int 5626 main (void) 5627 { 5628 5629 ; 5630 return 0; 5631 } 5632 _ACEOF 5633 ac_clean_files_save=$ac_clean_files 5634 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5635 # Try to create an executable without -o first, disregard a.out. 5636 # It will help us diagnose broken compilers, and finding out an intuition 5637 # of exeext. 5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5639 printf %s "checking whether the C compiler works... " >&6; } 5640 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5641 5642 # The possible output files: 5643 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5644 5645 ac_rmfiles= 5646 for ac_file in $ac_files 5647 do 5648 case $ac_file in 5649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5650 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5651 esac 5652 done 5653 rm -f $ac_rmfiles 5654 5655 if { { ac_try="$ac_link_default" 5656 case "(($ac_try" in 5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5658 *) ac_try_echo=$ac_try;; 5659 esac 5660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5661 printf "%s\n" "$ac_try_echo"; } >&5 5662 (eval "$ac_link_default") 2>&5 5663 ac_status=$? 5664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5665 test $ac_status = 0; } 5666 then : 5667 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 5668 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 5669 # in a Makefile. We should not override ac_cv_exeext if it was cached, 5670 # so that the user can short-circuit this test for compilers unknown to 5671 # Autoconf. 5672 for ac_file in $ac_files '' 5673 do 5674 test -f "$ac_file" || continue 5675 case $ac_file in 5676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5677 ;; 5678 [ab].out ) 5679 # We found the default executable, but exeext='' is most 5680 # certainly right. 5681 break;; 5682 *.* ) 5683 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5684 then :; else 5685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5686 fi 5687 # We set ac_cv_exeext here because the later test for it is not 5688 # safe: cross compilers may not add the suffix if given an '-o' 5689 # argument, so we may need to know it at that point already. 5690 # Even if this section looks crufty: it has the advantage of 5691 # actually working. 5692 break;; 5693 * ) 5694 break;; 5695 esac 5696 done 5697 test "$ac_cv_exeext" = no && ac_cv_exeext= 5698 5699 else case e in #( 5700 e) ac_file='' ;; 5701 esac 5702 fi 5703 if test -z "$ac_file" 5704 then : 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5706 printf "%s\n" "no" >&6; } 5707 printf "%s\n" "$as_me: failed program was:" >&5 5708 sed 's/^/| /' conftest.$ac_ext >&5 5709 5710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5711 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5712 as_fn_error 77 "C compiler cannot create executables 5713 See 'config.log' for more details" "$LINENO" 5; } 5714 else case e in #( 5715 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5716 printf "%s\n" "yes" >&6; } ;; 5717 esac 5718 fi 5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5720 printf %s "checking for C compiler default output file name... " >&6; } 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5722 printf "%s\n" "$ac_file" >&6; } 5723 ac_exeext=$ac_cv_exeext 5724 5725 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5726 ac_clean_files=$ac_clean_files_save 5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5728 printf %s "checking for suffix of executables... " >&6; } 5729 if { { ac_try="$ac_link" 5730 case "(($ac_try" in 5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5732 *) ac_try_echo=$ac_try;; 5733 esac 5734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5735 printf "%s\n" "$ac_try_echo"; } >&5 5736 (eval "$ac_link") 2>&5 5737 ac_status=$? 5738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5739 test $ac_status = 0; } 5740 then : 5741 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 5742 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 5743 # work properly (i.e., refer to 'conftest.exe'), while it won't with 5744 # 'rm'. 5745 for ac_file in conftest.exe conftest conftest.*; do 5746 test -f "$ac_file" || continue 5747 case $ac_file in 5748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5750 break;; 5751 * ) break;; 5752 esac 5753 done 5754 else case e in #( 5755 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5757 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5758 See 'config.log' for more details" "$LINENO" 5; } ;; 5759 esac 5760 fi 5761 rm -f conftest conftest$ac_cv_exeext 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5763 printf "%s\n" "$ac_cv_exeext" >&6; } 5764 5765 rm -f conftest.$ac_ext 5766 EXEEXT=$ac_cv_exeext 5767 ac_exeext=$EXEEXT 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769 /* end confdefs.h. */ 5770 #include <stdio.h> 5771 int 5772 main (void) 5773 { 5774 FILE *f = fopen ("conftest.out", "w"); 5775 return ferror (f) || fclose (f) != 0; 5776 5777 ; 5778 return 0; 5779 } 5780 _ACEOF 5781 ac_clean_files="$ac_clean_files conftest.out" 5782 # Check that the compiler produces executables we can run. If not, either 5783 # the compiler is broken, or we cross compile. 5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5785 printf %s "checking whether we are cross compiling... " >&6; } 5786 if test "$cross_compiling" != yes; then 5787 { { ac_try="$ac_link" 5788 case "(($ac_try" in 5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5790 *) ac_try_echo=$ac_try;; 5791 esac 5792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5793 printf "%s\n" "$ac_try_echo"; } >&5 5794 (eval "$ac_link") 2>&5 5795 ac_status=$? 5796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5797 test $ac_status = 0; } 5798 if { ac_try='./conftest$ac_cv_exeext' 5799 { { case "(($ac_try" in 5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5801 *) ac_try_echo=$ac_try;; 5802 esac 5803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5804 printf "%s\n" "$ac_try_echo"; } >&5 5805 (eval "$ac_try") 2>&5 5806 ac_status=$? 5807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5808 test $ac_status = 0; }; }; then 5809 cross_compiling=no 5810 else 5811 if test "$cross_compiling" = maybe; then 5812 cross_compiling=yes 5813 else 5814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5815 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5816 as_fn_error 77 "cannot run C compiled programs. 5817 If you meant to cross compile, use '--host'. 5818 See 'config.log' for more details" "$LINENO" 5; } 5819 fi 5820 fi 5821 fi 5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5823 printf "%s\n" "$cross_compiling" >&6; } 5824 5825 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 5826 conftest.o conftest.obj conftest.out 5827 ac_clean_files=$ac_clean_files_save 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5829 printf %s "checking for suffix of object files... " >&6; } 5830 if test ${ac_cv_objext+y} 5831 then : 5832 printf %s "(cached) " >&6 5833 else case e in #( 5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835 /* end confdefs.h. */ 5836 5837 int 5838 main (void) 5839 { 5840 5841 ; 5842 return 0; 5843 } 5844 _ACEOF 5845 rm -f conftest.o conftest.obj 5846 if { { ac_try="$ac_compile" 5847 case "(($ac_try" in 5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5849 *) ac_try_echo=$ac_try;; 5850 esac 5851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5852 printf "%s\n" "$ac_try_echo"; } >&5 5853 (eval "$ac_compile") 2>&5 5854 ac_status=$? 5855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5856 test $ac_status = 0; } 5857 then : 5858 for ac_file in conftest.o conftest.obj conftest.*; do 5859 test -f "$ac_file" || continue; 5860 case $ac_file in 5861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5863 break;; 5864 esac 5865 done 5866 else case e in #( 5867 e) printf "%s\n" "$as_me: failed program was:" >&5 5868 sed 's/^/| /' conftest.$ac_ext >&5 5869 5870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5872 as_fn_error $? "cannot compute suffix of object files: cannot compile 5873 See 'config.log' for more details" "$LINENO" 5; } ;; 5874 esac 5875 fi 5876 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 5877 esac 5878 fi 5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5880 printf "%s\n" "$ac_cv_objext" >&6; } 5881 OBJEXT=$ac_cv_objext 5882 ac_objext=$OBJEXT 5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5884 printf %s "checking whether the compiler supports GNU C... " >&6; } 5885 if test ${ac_cv_c_compiler_gnu+y} 5886 then : 5887 printf %s "(cached) " >&6 5888 else case e in #( 5889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890 /* end confdefs.h. */ 5891 5892 int 5893 main (void) 5894 { 5895 #ifndef __GNUC__ 5896 choke me 5897 #endif 5898 5899 ; 5900 return 0; 5901 } 5902 _ACEOF 5903 if ac_fn_c_try_compile "$LINENO" 5904 then : 5905 ac_compiler_gnu=yes 5906 else case e in #( 5907 e) ac_compiler_gnu=no ;; 5908 esac 5909 fi 5910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5911 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5912 ;; 5913 esac 5914 fi 5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5916 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5917 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5918 5919 if test $ac_compiler_gnu = yes; then 5920 GCC=yes 5921 else 5922 GCC= 5923 fi 5924 ac_test_CFLAGS=${CFLAGS+y} 5925 ac_save_CFLAGS=$CFLAGS 5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5927 printf %s "checking whether $CC accepts -g... " >&6; } 5928 if test ${ac_cv_prog_cc_g+y} 5929 then : 5930 printf %s "(cached) " >&6 5931 else case e in #( 5932 e) ac_save_c_werror_flag=$ac_c_werror_flag 5933 ac_c_werror_flag=yes 5934 ac_cv_prog_cc_g=no 5935 CFLAGS="-g" 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937 /* end confdefs.h. */ 5938 5939 int 5940 main (void) 5941 { 5942 5943 ; 5944 return 0; 5945 } 5946 _ACEOF 5947 if ac_fn_c_try_compile "$LINENO" 5948 then : 5949 ac_cv_prog_cc_g=yes 5950 else case e in #( 5951 e) CFLAGS="" 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953 /* end confdefs.h. */ 5954 5955 int 5956 main (void) 5957 { 5958 5959 ; 5960 return 0; 5961 } 5962 _ACEOF 5963 if ac_fn_c_try_compile "$LINENO" 5964 then : 5965 5966 else case e in #( 5967 e) ac_c_werror_flag=$ac_save_c_werror_flag 5968 CFLAGS="-g" 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970 /* end confdefs.h. */ 5971 5972 int 5973 main (void) 5974 { 5975 5976 ; 5977 return 0; 5978 } 5979 _ACEOF 5980 if ac_fn_c_try_compile "$LINENO" 5981 then : 5982 ac_cv_prog_cc_g=yes 5983 fi 5984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5985 esac 5986 fi 5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5988 esac 5989 fi 5990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5991 ac_c_werror_flag=$ac_save_c_werror_flag ;; 5992 esac 5993 fi 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5995 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5996 if test $ac_test_CFLAGS; then 5997 CFLAGS=$ac_save_CFLAGS 5998 elif test $ac_cv_prog_cc_g = yes; then 5999 if test "$GCC" = yes; then 6000 CFLAGS="-g -O2" 6001 else 6002 CFLAGS="-g" 6003 fi 6004 else 6005 if test "$GCC" = yes; then 6006 CFLAGS="-O2" 6007 else 6008 CFLAGS= 6009 fi 6010 fi 6011 ac_prog_cc_stdc=no 6012 if test x$ac_prog_cc_stdc = xno 6013 then : 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 6015 printf %s "checking for $CC option to enable C11 features... " >&6; } 6016 if test ${ac_cv_prog_cc_c11+y} 6017 then : 6018 printf %s "(cached) " >&6 6019 else case e in #( 6020 e) ac_cv_prog_cc_c11=no 6021 ac_save_CC=$CC 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023 /* end confdefs.h. */ 6024 $ac_c_conftest_c11_program 6025 _ACEOF 6026 for ac_arg in '' -std=gnu11 6027 do 6028 CC="$ac_save_CC $ac_arg" 6029 if ac_fn_c_try_compile "$LINENO" 6030 then : 6031 ac_cv_prog_cc_c11=$ac_arg 6032 fi 6033 rm -f core conftest.err conftest.$ac_objext conftest.beam 6034 test "x$ac_cv_prog_cc_c11" != "xno" && break 6035 done 6036 rm -f conftest.$ac_ext 6037 CC=$ac_save_CC ;; 6038 esac 6039 fi 6040 6041 if test "x$ac_cv_prog_cc_c11" = xno 6042 then : 6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6044 printf "%s\n" "unsupported" >&6; } 6045 else case e in #( 6046 e) if test "x$ac_cv_prog_cc_c11" = x 6047 then : 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6049 printf "%s\n" "none needed" >&6; } 6050 else case e in #( 6051 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 6052 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 6053 CC="$CC $ac_cv_prog_cc_c11" ;; 6054 esac 6055 fi 6056 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 6057 ac_prog_cc_stdc=c11 ;; 6058 esac 6059 fi 6060 fi 6061 if test x$ac_prog_cc_stdc = xno 6062 then : 6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 6064 printf %s "checking for $CC option to enable C99 features... " >&6; } 6065 if test ${ac_cv_prog_cc_c99+y} 6066 then : 6067 printf %s "(cached) " >&6 6068 else case e in #( 6069 e) ac_cv_prog_cc_c99=no 6070 ac_save_CC=$CC 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072 /* end confdefs.h. */ 6073 $ac_c_conftest_c99_program 6074 _ACEOF 6075 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 6076 do 6077 CC="$ac_save_CC $ac_arg" 6078 if ac_fn_c_try_compile "$LINENO" 6079 then : 6080 ac_cv_prog_cc_c99=$ac_arg 6081 fi 6082 rm -f core conftest.err conftest.$ac_objext conftest.beam 6083 test "x$ac_cv_prog_cc_c99" != "xno" && break 6084 done 6085 rm -f conftest.$ac_ext 6086 CC=$ac_save_CC ;; 6087 esac 6088 fi 6089 6090 if test "x$ac_cv_prog_cc_c99" = xno 6091 then : 6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6093 printf "%s\n" "unsupported" >&6; } 6094 else case e in #( 6095 e) if test "x$ac_cv_prog_cc_c99" = x 6096 then : 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6098 printf "%s\n" "none needed" >&6; } 6099 else case e in #( 6100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6101 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 6102 CC="$CC $ac_cv_prog_cc_c99" ;; 6103 esac 6104 fi 6105 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6106 ac_prog_cc_stdc=c99 ;; 6107 esac 6108 fi 6109 fi 6110 if test x$ac_prog_cc_stdc = xno 6111 then : 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 6113 printf %s "checking for $CC option to enable C89 features... " >&6; } 6114 if test ${ac_cv_prog_cc_c89+y} 6115 then : 6116 printf %s "(cached) " >&6 6117 else case e in #( 6118 e) ac_cv_prog_cc_c89=no 6119 ac_save_CC=$CC 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121 /* end confdefs.h. */ 6122 $ac_c_conftest_c89_program 6123 _ACEOF 6124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6125 do 6126 CC="$ac_save_CC $ac_arg" 6127 if ac_fn_c_try_compile "$LINENO" 6128 then : 6129 ac_cv_prog_cc_c89=$ac_arg 6130 fi 6131 rm -f core conftest.err conftest.$ac_objext conftest.beam 6132 test "x$ac_cv_prog_cc_c89" != "xno" && break 6133 done 6134 rm -f conftest.$ac_ext 6135 CC=$ac_save_CC ;; 6136 esac 6137 fi 6138 6139 if test "x$ac_cv_prog_cc_c89" = xno 6140 then : 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6142 printf "%s\n" "unsupported" >&6; } 6143 else case e in #( 6144 e) if test "x$ac_cv_prog_cc_c89" = x 6145 then : 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6147 printf "%s\n" "none needed" >&6; } 6148 else case e in #( 6149 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6150 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 6151 CC="$CC $ac_cv_prog_cc_c89" ;; 6152 esac 6153 fi 6154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6155 ac_prog_cc_stdc=c89 ;; 6156 esac 6157 fi 6158 fi 6159 6160 ac_ext=c 6161 ac_cpp='$CPP $CPPFLAGS' 6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6165 6166 6167 ac_ext=c 6168 ac_cpp='$CPP $CPPFLAGS' 6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6173 printf %s "checking whether $CC understands -c and -o together... " >&6; } 6174 if test ${am_cv_prog_cc_c_o+y} 6175 then : 6176 printf %s "(cached) " >&6 6177 else case e in #( 6178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179 /* end confdefs.h. */ 6180 6181 int 6182 main (void) 6183 { 6184 6185 ; 6186 return 0; 6187 } 6188 _ACEOF 6189 # Make sure it works both with $CC and with simple cc. 6190 # Following AC_PROG_CC_C_O, we do the test twice because some 6191 # compilers refuse to overwrite an existing .o file with -o, 6192 # though they will create one. 6193 am_cv_prog_cc_c_o=yes 6194 for am_i in 1 2; do 6195 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6196 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6197 ac_status=$? 6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6199 (exit $ac_status); } \ 6200 && test -f conftest2.$ac_objext; then 6201 : OK 6202 else 6203 am_cv_prog_cc_c_o=no 6204 break 6205 fi 6206 done 6207 rm -f core conftest* 6208 unset am_i ;; 6209 esac 6210 fi 6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6212 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 6213 if test "$am_cv_prog_cc_c_o" != yes; then 6214 # Losing compiler, so override with the script. 6215 # FIXME: It is wrong to rewrite CC. 6216 # But if we don't then we get into trouble of one sort or another. 6217 # A longer-term fix would be to have automake use am__CC in this case, 6218 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6219 CC="$am_aux_dir/compile $CC" 6220 fi 6221 ac_ext=c 6222 ac_cpp='$CPP $CPPFLAGS' 6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6226 6227 6228 6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 6230 printf %s "checking whether the compiler is clang... " >&6; } 6231 if test ${gl_cv_compiler_clang+y} 6232 then : 6233 printf %s "(cached) " >&6 6234 else case e in #( 6235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236 /* end confdefs.h. */ 6237 6238 #ifdef __clang__ 6239 barfbarf 6240 #endif 6241 6242 int 6243 main (void) 6244 { 6245 6246 ; 6247 return 0; 6248 } 6249 6250 _ACEOF 6251 if ac_fn_c_try_compile "$LINENO" 6252 then : 6253 gl_cv_compiler_clang=no 6254 else case e in #( 6255 e) gl_cv_compiler_clang=yes ;; 6256 esac 6257 fi 6258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6259 ;; 6260 esac 6261 fi 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 6263 printf "%s\n" "$gl_cv_compiler_clang" >&6; } 6264 6265 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 6267 printf %s "checking for compiler option needed when checking for declarations... " >&6; } 6268 if test ${gl_cv_compiler_check_decl_option+y} 6269 then : 6270 printf %s "(cached) " >&6 6271 else case e in #( 6272 e) if test $gl_cv_compiler_clang = yes; then 6273 save_ac_compile="$ac_compile" 6274 ac_compile="$ac_compile -Werror=implicit-function-declaration" 6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6276 /* end confdefs.h. */ 6277 6278 int 6279 main (void) 6280 { 6281 6282 ; 6283 return 0; 6284 } 6285 _ACEOF 6286 if ac_fn_c_try_compile "$LINENO" 6287 then : 6288 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' 6289 else case e in #( 6290 e) gl_cv_compiler_check_decl_option=none ;; 6291 esac 6292 fi 6293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6294 ac_compile="$save_ac_compile" 6295 else 6296 gl_cv_compiler_check_decl_option=none 6297 fi 6298 ;; 6299 esac 6300 fi 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 6302 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } 6303 if test "x$gl_cv_compiler_check_decl_option" != xnone; then 6304 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" 6305 else 6306 ac_compile_for_check_decl="$ac_compile" 6307 fi 6308 2712 6309 DEPDIR="${am__leading_dot}deps" 2713 6310 2714 2715 2716 2717 am_make=${MAKE-make}2718 cat > confinc << 'END'6311 ac_config_commands="$ac_config_commands depfiles" 6312 6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6314 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6315 cat > confinc.mk << 'END' 2719 6316 am__doit: 2720 @echo done6317 @echo this is the am__doit target >confinc.out 2721 6318 .PHONY: am__doit 2722 6319 END 2723 # If we don't find an include directive, just comment out the code.2724 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&52725 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&62726 6320 am__include="#" 2727 6321 am__quote= 2728 _am_result=none 2729 # First try GNU make style include. 2730 echo "include confinc" > confmf 2731 # We grep out `Entering directory' and `Leaving directory' 2732 # messages which can occur if `w' ends up in MAKEFLAGS. 2733 # In particular we don't look at `^make:' because GNU make might 2734 # be invoked under some other name (usually "gmake"), in which 2735 # case it prints its new name instead of `make'. 2736 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2737 am__include=include 2738 am__quote= 2739 _am_result=GNU 2740 fi 2741 # Now try BSD make style include. 2742 if test "$am__include" = "#"; then 2743 echo '.include "confinc"' > confmf 2744 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2745 am__include=.include 2746 am__quote="\"" 2747 _am_result=BSD 2748 fi 2749 fi 2750 2751 2752 echo "$as_me:$LINENO: result: $_am_result" >&5 2753 echo "${ECHO_T}$_am_result" >&6 2754 rm -f confinc confmf 2755 2756 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2757 if test "${enable_dependency_tracking+set}" = set; then 2758 enableval="$enable_dependency_tracking" 2759 2760 fi; 6322 # BSD make does it like this. 6323 echo '.include "confinc.mk" # ignored' > confmf.BSD 6324 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 6325 echo 'include confinc.mk # ignored' > confmf.GNU 6326 _am_result=no 6327 for s in GNU BSD; do 6328 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6329 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6330 ac_status=$? 6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6332 (exit $ac_status); } 6333 case $?:`cat confinc.out 2>/dev/null` in #( 6334 '0:this is the am__doit target') : 6335 case $s in #( 6336 BSD) : 6337 am__include='.include' am__quote='"' ;; #( 6338 *) : 6339 am__include='include' am__quote='' ;; 6340 esac ;; #( 6341 *) : 6342 ;; 6343 esac 6344 if test "$am__include" != "#"; then 6345 _am_result="yes ($s style)" 6346 break 6347 fi 6348 done 6349 rm -f confinc.* confmf.* 6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 6351 printf "%s\n" "${_am_result}" >&6; } 6352 6353 # Check whether --enable-dependency-tracking was given. 6354 if test ${enable_dependency_tracking+y} 6355 then : 6356 enableval=$enable_dependency_tracking; 6357 fi 6358 2761 6359 if test "x$enable_dependency_tracking" != xno; then 2762 6360 am_depcomp="$ac_aux_dir/depcomp" 2763 6361 AMDEPBACKSLASH='\' 2764 fi 2765 2766 2767 if test "x$enable_dependency_tracking" != xno; then 6362 am__nodep='_no' 6363 fi 6364 if test "x$enable_dependency_tracking" != xno; then 2768 6365 AMDEP_TRUE= 2769 6366 AMDEP_FALSE='#' … … 2775 6372 2776 6373 2777 2778 6374 depcc="$CC" am_compiler_list= 2779 6375 2780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2783 echo $ECHO_N "(cached) $ECHO_C" >&6 2784 else 2785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6377 printf %s "checking dependency style of $depcc... " >&6; } 6378 if test ${am_cv_CC_dependencies_compiler_type+y} 6379 then : 6380 printf %s "(cached) " >&6 6381 else case e in #( 6382 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2786 6383 # We make a subdir and do the tests there. Otherwise we can end up 2787 6384 # making bogus files that we don't know about and never remove. For 2788 6385 # instance it was reported that on HP-UX the gcc test will end up 2789 # making a dummy file named `D' -- because `-MD' means `put the output 2790 # in D'. 6386 # making a dummy file named 'D' -- because '-MD' means "put the output 6387 # in D". 6388 rm -rf conftest.dir 2791 6389 mkdir conftest.dir 2792 6390 # Copy depcomp to subdir because otherwise we won't find it if we're … … 2806 6404 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2807 6405 fi 6406 am__universal=false 6407 case " $depcc " in #( 6408 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6409 esac 6410 2808 6411 for depmode in $am_compiler_list; do 2809 6412 # Setup a source with many dependencies, because some compilers … … 2817 6420 for i in 1 2 3 4 5 6; do 2818 6421 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2819 # Using `: > sub/conftst$i.h'creates only sub/conftst1.h with2820 # Solaris 8's {/usr,}/bin/sh.2821 touchsub/conftst$i.h6422 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6423 # Solaris 10 /bin/sh. 6424 echo '/* dummy */' > sub/conftst$i.h 2822 6425 done 2823 6426 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2824 6427 6428 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6429 # mode. It turns out that the SunPro C++ compiler does not properly 6430 # handle '-M -o', and we need to detect this. Also, some Intel 6431 # versions had trouble with output in subdirs. 6432 am__obj=sub/conftest.${OBJEXT-o} 6433 am__minus_obj="-o $am__obj" 2825 6434 case $depmode in 6435 gcc) 6436 # This depmode causes a compiler race in universal mode. 6437 test "$am__universal" = false || continue 6438 ;; 2826 6439 nosideeffect) 2827 # after this tag, mechanisms are not by side-effect, so they'll2828 # only be used when explicitly requested 6440 # After this tag, mechanisms are not by side-effect, so they'll 6441 # only be used when explicitly requested. 2829 6442 if test "x$enable_dependency_tracking" = xyes; then 2830 6443 continue … … 2833 6446 fi 2834 6447 ;; 6448 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6449 # This compiler won't grok '-c -o', but also, the minuso test has 6450 # not run yet. These depmodes are late enough in the game, and 6451 # so weak that their functioning should not be impacted. 6452 am__obj=conftest.${OBJEXT-o} 6453 am__minus_obj= 6454 ;; 2835 6455 none) break ;; 2836 6456 esac 2837 # We check with `-c' and `-o' for the sake of the "dashmstdout"2838 # mode. It turns out that the SunPro C++ compiler does not properly2839 # handle `-M -o', and we need to detect this.2840 6457 if depmode=$depmode \ 2841 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\6458 source=sub/conftest.c object=$am__obj \ 2842 6459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2843 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \6460 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 2844 6461 >/dev/null 2>conftest.err && 6462 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 2845 6463 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2846 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&6464 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 2847 6465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2848 6466 # icc doesn't choke on unknown options, it will just issue warnings … … 2866 6484 am_cv_CC_dependencies_compiler_type=none 2867 6485 fi 2868 2869 fi 2870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 6486 ;; 6487 esac 6488 fi 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6490 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 2872 6491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2873 6492 2874 2875 2876 if 6493 if 2877 6494 test "x$enable_dependency_tracking" != xno \ 2878 6495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then … … 2885 6502 2886 6503 2887 if test -n "$ac_tool_prefix"; then 6504 6505 6506 ac_header= ac_cache= 6507 for ac_item in $ac_header_c_list 6508 do 6509 if test $ac_cache; then 6510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6513 fi 6514 ac_header= ac_cache= 6515 elif test $ac_header; then 6516 ac_cache=$ac_item 6517 else 6518 ac_header=$ac_item 6519 fi 6520 done 6521 6522 6523 6524 6525 6526 6527 6528 6529 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6530 then : 6531 6532 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6533 6534 fi 6535 6536 6537 6538 6539 6540 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6542 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6543 if test ${ac_cv_safe_to_define___extensions__+y} 6544 then : 6545 printf %s "(cached) " >&6 6546 else case e in #( 6547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6548 /* end confdefs.h. */ 6549 6550 # define __EXTENSIONS__ 1 6551 $ac_includes_default 6552 int 6553 main (void) 6554 { 6555 6556 ; 6557 return 0; 6558 } 6559 _ACEOF 6560 if ac_fn_c_try_compile "$LINENO" 6561 then : 6562 ac_cv_safe_to_define___extensions__=yes 6563 else case e in #( 6564 e) ac_cv_safe_to_define___extensions__=no ;; 6565 esac 6566 fi 6567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6568 esac 6569 fi 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6571 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 6572 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6574 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6575 if test ${ac_cv_should_define__xopen_source+y} 6576 then : 6577 printf %s "(cached) " >&6 6578 else case e in #( 6579 e) ac_cv_should_define__xopen_source=no 6580 if test $ac_cv_header_wchar_h = yes 6581 then : 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583 /* end confdefs.h. */ 6584 6585 #include <wchar.h> 6586 mbstate_t x; 6587 int 6588 main (void) 6589 { 6590 6591 ; 6592 return 0; 6593 } 6594 _ACEOF 6595 if ac_fn_c_try_compile "$LINENO" 6596 then : 6597 6598 else case e in #( 6599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 /* end confdefs.h. */ 6601 6602 #define _XOPEN_SOURCE 500 6603 #include <wchar.h> 6604 mbstate_t x; 6605 int 6606 main (void) 6607 { 6608 6609 ; 6610 return 0; 6611 } 6612 _ACEOF 6613 if ac_fn_c_try_compile "$LINENO" 6614 then : 6615 ac_cv_should_define__xopen_source=yes 6616 fi 6617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6618 esac 6619 fi 6620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6621 fi ;; 6622 esac 6623 fi 6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6625 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6626 6627 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6628 6629 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6630 6631 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6632 6633 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6634 6635 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6636 6637 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6638 6639 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6640 6641 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6642 6643 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6644 6645 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6646 6647 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6648 6649 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6650 6651 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6652 6653 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6654 6655 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6656 6657 if test $ac_cv_header_minix_config_h = yes 6658 then : 6659 MINIX=yes 6660 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6661 6662 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6663 6664 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6665 6666 else case e in #( 6667 e) MINIX= ;; 6668 esac 6669 fi 6670 if test $ac_cv_safe_to_define___extensions__ = yes 6671 then : 6672 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6673 6674 fi 6675 if test $ac_cv_should_define__xopen_source = yes 6676 then : 6677 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6678 6679 fi 6680 6681 6682 6683 # Make sure we can run config.sub. 6684 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6685 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6686 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6688 printf %s "checking build system type... " >&6; } 6689 if test ${ac_cv_build+y} 6690 then : 6691 printf %s "(cached) " >&6 6692 else case e in #( 6693 e) ac_build_alias=$build_alias 6694 test "x$ac_build_alias" = x && 6695 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6696 test "x$ac_build_alias" = x && 6697 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6698 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6699 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6700 ;; 6701 esac 6702 fi 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6704 printf "%s\n" "$ac_cv_build" >&6; } 6705 case $ac_cv_build in 6706 *-*-*) ;; 6707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6708 esac 6709 build=$ac_cv_build 6710 ac_save_IFS=$IFS; IFS='-' 6711 set x $ac_cv_build 6712 shift 6713 build_cpu=$1 6714 build_vendor=$2 6715 shift; shift 6716 # Remember, the first character of IFS is used to create $*, 6717 # except with old shells: 6718 build_os=$* 6719 IFS=$ac_save_IFS 6720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6721 6722 6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6724 printf %s "checking host system type... " >&6; } 6725 if test ${ac_cv_host+y} 6726 then : 6727 printf %s "(cached) " >&6 6728 else case e in #( 6729 e) if test "x$host_alias" = x; then 6730 ac_cv_host=$ac_cv_build 6731 else 6732 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6733 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6734 fi 6735 ;; 6736 esac 6737 fi 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6739 printf "%s\n" "$ac_cv_host" >&6; } 6740 case $ac_cv_host in 6741 *-*-*) ;; 6742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6743 esac 6744 host=$ac_cv_host 6745 ac_save_IFS=$IFS; IFS='-' 6746 set x $ac_cv_host 6747 shift 6748 host_cpu=$1 6749 host_vendor=$2 6750 shift; shift 6751 # Remember, the first character of IFS is used to create $*, 6752 # except with old shells: 6753 host_os=$* 6754 IFS=$ac_save_IFS 6755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6756 6757 6758 6759 6760 6761 6762 case "$host_os" in 6763 openbsd*) 6764 6765 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h 6766 6767 ;; 6768 esac 6769 6770 ac_ext=c 6771 ac_cpp='$CPP $CPPFLAGS' 6772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6774 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6776 printf %s "checking how to run the C preprocessor... " >&6; } 6777 # On Suns, sometimes $CPP names a directory. 6778 if test -n "$CPP" && test -d "$CPP"; then 6779 CPP= 6780 fi 6781 if test -z "$CPP"; then 6782 if test ${ac_cv_prog_CPP+y} 6783 then : 6784 printf %s "(cached) " >&6 6785 else case e in #( 6786 e) # Double quotes because $CC needs to be expanded 6787 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6788 do 6789 ac_preproc_ok=false 6790 for ac_c_preproc_warn_flag in '' yes 6791 do 6792 # Use a header file that comes with gcc, so configuring glibc 6793 # with a fresh cross-compiler works. 6794 # On the NeXT, cc -E runs the code through the compiler's parser, 6795 # not just through cpp. "Syntax error" is here to catch this case. 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797 /* end confdefs.h. */ 6798 #include <limits.h> 6799 Syntax error 6800 _ACEOF 6801 if ac_fn_c_try_cpp "$LINENO" 6802 then : 6803 6804 else case e in #( 6805 e) # Broken: fails on valid input. 6806 continue ;; 6807 esac 6808 fi 6809 rm -f conftest.err conftest.i conftest.$ac_ext 6810 6811 # OK, works on sane cases. Now check whether nonexistent headers 6812 # can be detected and how. 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814 /* end confdefs.h. */ 6815 #include <ac_nonexistent.h> 6816 _ACEOF 6817 if ac_fn_c_try_cpp "$LINENO" 6818 then : 6819 # Broken: success on invalid input. 6820 continue 6821 else case e in #( 6822 e) # Passes both tests. 6823 ac_preproc_ok=: 6824 break ;; 6825 esac 6826 fi 6827 rm -f conftest.err conftest.i conftest.$ac_ext 6828 6829 done 6830 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6831 rm -f conftest.i conftest.err conftest.$ac_ext 6832 if $ac_preproc_ok 6833 then : 6834 break 6835 fi 6836 6837 done 6838 ac_cv_prog_CPP=$CPP 6839 ;; 6840 esac 6841 fi 6842 CPP=$ac_cv_prog_CPP 6843 else 6844 ac_cv_prog_CPP=$CPP 6845 fi 6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6847 printf "%s\n" "$CPP" >&6; } 6848 ac_preproc_ok=false 6849 for ac_c_preproc_warn_flag in '' yes 6850 do 6851 # Use a header file that comes with gcc, so configuring glibc 6852 # with a fresh cross-compiler works. 6853 # On the NeXT, cc -E runs the code through the compiler's parser, 6854 # not just through cpp. "Syntax error" is here to catch this case. 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856 /* end confdefs.h. */ 6857 #include <limits.h> 6858 Syntax error 6859 _ACEOF 6860 if ac_fn_c_try_cpp "$LINENO" 6861 then : 6862 6863 else case e in #( 6864 e) # Broken: fails on valid input. 6865 continue ;; 6866 esac 6867 fi 6868 rm -f conftest.err conftest.i conftest.$ac_ext 6869 6870 # OK, works on sane cases. Now check whether nonexistent headers 6871 # can be detected and how. 6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873 /* end confdefs.h. */ 6874 #include <ac_nonexistent.h> 6875 _ACEOF 6876 if ac_fn_c_try_cpp "$LINENO" 6877 then : 6878 # Broken: success on invalid input. 6879 continue 6880 else case e in #( 6881 e) # Passes both tests. 6882 ac_preproc_ok=: 6883 break ;; 6884 esac 6885 fi 6886 rm -f conftest.err conftest.i conftest.$ac_ext 6887 6888 done 6889 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6890 rm -f conftest.i conftest.err conftest.$ac_ext 6891 if $ac_preproc_ok 6892 then : 6893 6894 else case e in #( 6895 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 6896 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 6897 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6898 See 'config.log' for more details" "$LINENO" 5; } ;; 6899 esac 6900 fi 6901 6902 ac_ext=c 6903 ac_cpp='$CPP $CPPFLAGS' 6904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6906 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6907 6908 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 6910 printf %s "checking for egrep -e... " >&6; } 6911 if test ${ac_cv_path_EGREP_TRADITIONAL+y} 6912 then : 6913 printf %s "(cached) " >&6 6914 else case e in #( 6915 e) if test -z "$EGREP_TRADITIONAL"; then 6916 ac_path_EGREP_TRADITIONAL_found=false 6917 # Loop through the user's path and test for each of PROGNAME-LIST 6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6920 do 6921 IFS=$as_save_IFS 6922 case $as_dir in #((( 6923 '') as_dir=./ ;; 6924 */) ;; 6925 *) as_dir=$as_dir/ ;; 6926 esac 6927 for ac_prog in grep ggrep 6928 do 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 6931 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 6932 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 6933 # Check for GNU $ac_path_EGREP_TRADITIONAL 6934 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in 6935 *GNU*) 6936 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 6937 *) 6938 ac_count=0 6939 printf %s 0123456789 >"conftest.in" 6940 while : 6941 do 6942 cat "conftest.in" "conftest.in" >"conftest.tmp" 6943 mv "conftest.tmp" "conftest.in" 6944 cp "conftest.in" "conftest.nl" 6945 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 6946 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6948 as_fn_arith $ac_count + 1 && ac_count=$as_val 6949 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 6950 # Best one so far, save it but keep looking for a better one 6951 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 6952 ac_path_EGREP_TRADITIONAL_max=$ac_count 6953 fi 6954 # 10*(2^10) chars as input seems more than enough 6955 test $ac_count -gt 10 && break 6956 done 6957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6958 esac 6959 6960 $ac_path_EGREP_TRADITIONAL_found && break 3 6961 done 6962 done 6963 done 6964 IFS=$as_save_IFS 6965 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 6966 : 6967 fi 6968 else 6969 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 6970 fi 6971 6972 if test "$ac_cv_path_EGREP_TRADITIONAL" 6973 then : 6974 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" 6975 else case e in #( 6976 e) if test -z "$EGREP_TRADITIONAL"; then 6977 ac_path_EGREP_TRADITIONAL_found=false 6978 # Loop through the user's path and test for each of PROGNAME-LIST 6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6981 do 6982 IFS=$as_save_IFS 6983 case $as_dir in #((( 6984 '') as_dir=./ ;; 6985 */) ;; 6986 *) as_dir=$as_dir/ ;; 6987 esac 6988 for ac_prog in egrep 6989 do 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" 6992 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue 6993 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. 6994 # Check for GNU $ac_path_EGREP_TRADITIONAL 6995 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in 6996 *GNU*) 6997 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; 6998 *) 6999 ac_count=0 7000 printf %s 0123456789 >"conftest.in" 7001 while : 7002 do 7003 cat "conftest.in" "conftest.in" >"conftest.tmp" 7004 mv "conftest.tmp" "conftest.in" 7005 cp "conftest.in" "conftest.nl" 7006 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" 7007 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7009 as_fn_arith $ac_count + 1 && ac_count=$as_val 7010 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then 7011 # Best one so far, save it but keep looking for a better one 7012 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" 7013 ac_path_EGREP_TRADITIONAL_max=$ac_count 7014 fi 7015 # 10*(2^10) chars as input seems more than enough 7016 test $ac_count -gt 10 && break 7017 done 7018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7019 esac 7020 7021 $ac_path_EGREP_TRADITIONAL_found && break 3 7022 done 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then 7027 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7028 fi 7029 else 7030 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL 7031 fi 7032 ;; 7033 esac 7034 fi ;; 7035 esac 7036 fi 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 7038 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } 7039 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL 7040 7041 7042 7043 7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 7045 printf %s "checking for Minix Amsterdam compiler... " >&6; } 7046 if test ${gl_cv_c_amsterdam_compiler+y} 7047 then : 7048 printf %s "(cached) " >&6 7049 else case e in #( 7050 e) 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052 /* end confdefs.h. */ 7053 7054 #ifdef __ACK__ 7055 Amsterdam 7056 #endif 7057 7058 _ACEOF 7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7060 $EGREP_TRADITIONAL "Amsterdam" >/dev/null 2>&1 7061 then : 7062 gl_cv_c_amsterdam_compiler=yes 7063 else case e in #( 7064 e) gl_cv_c_amsterdam_compiler=no ;; 7065 esac 7066 fi 7067 rm -rf conftest* 7068 7069 ;; 7070 esac 7071 fi 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 7073 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } 7074 7075 if test $gl_cv_c_amsterdam_compiler = yes; then 7076 if test -z "$AR"; then 7077 AR='cc -c.a' 7078 fi 7079 if test -z "$ARFLAGS"; then 7080 ARFLAGS='-o' 7081 fi 7082 else 7083 : 7084 fi 7085 7086 if test -n "$ac_tool_prefix"; then 7087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7088 set dummy ${ac_tool_prefix}ar; ac_word=$2 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7090 printf %s "checking for $ac_word... " >&6; } 7091 if test ${ac_cv_prog_AR+y} 7092 then : 7093 printf %s "(cached) " >&6 7094 else case e in #( 7095 e) if test -n "$AR"; then 7096 ac_cv_prog_AR="$AR" # Let the user override the test. 7097 else 7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7099 for as_dir in $PATH 7100 do 7101 IFS=$as_save_IFS 7102 case $as_dir in #((( 7103 '') as_dir=./ ;; 7104 */) ;; 7105 *) as_dir=$as_dir/ ;; 7106 esac 7107 for ac_exec_ext in '' $ac_executable_extensions; do 7108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7109 ac_cv_prog_AR="${ac_tool_prefix}ar" 7110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7111 break 2 7112 fi 7113 done 7114 done 7115 IFS=$as_save_IFS 7116 7117 fi ;; 7118 esac 7119 fi 7120 AR=$ac_cv_prog_AR 7121 if test -n "$AR"; then 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7123 printf "%s\n" "$AR" >&6; } 7124 else 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126 printf "%s\n" "no" >&6; } 7127 fi 7128 7129 7130 fi 7131 if test -z "$ac_cv_prog_AR"; then 7132 ac_ct_AR=$AR 7133 # Extract the first word of "ar", so it can be a program name with args. 7134 set dummy ar; ac_word=$2 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7136 printf %s "checking for $ac_word... " >&6; } 7137 if test ${ac_cv_prog_ac_ct_AR+y} 7138 then : 7139 printf %s "(cached) " >&6 7140 else case e in #( 7141 e) if test -n "$ac_ct_AR"; then 7142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7143 else 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145 for as_dir in $PATH 7146 do 7147 IFS=$as_save_IFS 7148 case $as_dir in #((( 7149 '') as_dir=./ ;; 7150 */) ;; 7151 *) as_dir=$as_dir/ ;; 7152 esac 7153 for ac_exec_ext in '' $ac_executable_extensions; do 7154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7155 ac_cv_prog_ac_ct_AR="ar" 7156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7157 break 2 7158 fi 7159 done 7160 done 7161 IFS=$as_save_IFS 7162 7163 fi ;; 7164 esac 7165 fi 7166 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7167 if test -n "$ac_ct_AR"; then 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7169 printf "%s\n" "$ac_ct_AR" >&6; } 7170 else 7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172 printf "%s\n" "no" >&6; } 7173 fi 7174 7175 if test "x$ac_ct_AR" = x; then 7176 AR="ar" 7177 else 7178 case $cross_compiling:$ac_tool_warned in 7179 yes:) 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7182 ac_tool_warned=yes ;; 7183 esac 7184 AR=$ac_ct_AR 7185 fi 7186 else 7187 AR="$ac_cv_prog_AR" 7188 fi 7189 7190 if test -z "$ARFLAGS"; then 7191 ARFLAGS='cr' 7192 fi 7193 7194 7195 7196 if test -z "$RANLIB"; then 7197 if test $gl_cv_c_amsterdam_compiler = yes; then 7198 RANLIB=':' 7199 else 7200 if test -n "$ac_tool_prefix"; then 2888 7201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2889 7202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2890 echo "$as_me:$LINENO: checking for $ac_word" >&5 2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2892 if test "${ac_cv_prog_RANLIB+set}" = set; then 2893 echo $ECHO_N "(cached) $ECHO_C" >&6 2894 else 2895 if test -n "$RANLIB"; then 7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204 printf %s "checking for $ac_word... " >&6; } 7205 if test ${ac_cv_prog_RANLIB+y} 7206 then : 7207 printf %s "(cached) " >&6 7208 else case e in #( 7209 e) if test -n "$RANLIB"; then 2896 7210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2897 7211 else … … 2900 7214 do 2901 7215 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7216 case $as_dir in #((( 7217 '') as_dir=./ ;; 7218 */) ;; 7219 *) as_dir=$as_dir/ ;; 7220 esac 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2905 7223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2907 7225 break 2 2908 7226 fi 2909 7227 done 2910 done 2911 2912 fi 7228 done 7229 IFS=$as_save_IFS 7230 7231 fi ;; 7232 esac 2913 7233 fi 2914 7234 RANLIB=$ac_cv_prog_RANLIB 2915 7235 if test -n "$RANLIB"; then 2916 echo "$as_me:$LINENO: result: $RANLIB" >&52917 echo "${ECHO_T}$RANLIB" >&6 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7237 printf "%s\n" "$RANLIB" >&6; } 2918 7238 else 2919 echo "$as_me:$LINENO: result: no" >&5 2920 echo "${ECHO_T}no" >&6 2921 fi 7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240 printf "%s\n" "no" >&6; } 7241 fi 7242 2922 7243 2923 7244 fi … … 2926 7247 # Extract the first word of "ranlib", so it can be a program name with args. 2927 7248 set dummy ranlib; ac_word=$2 2928 echo "$as_me:$LINENO: checking for $ac_word" >&5 2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2931 echo $ECHO_N "(cached) $ECHO_C" >&6 2932 else 2933 if test -n "$ac_ct_RANLIB"; then 7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250 printf %s "checking for $ac_word... " >&6; } 7251 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7252 then : 7253 printf %s "(cached) " >&6 7254 else case e in #( 7255 e) if test -n "$ac_ct_RANLIB"; then 2934 7256 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2935 7257 else … … 2938 7260 do 2939 7261 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7262 case $as_dir in #((( 7263 '') as_dir=./ ;; 7264 */) ;; 7265 *) as_dir=$as_dir/ ;; 7266 esac 7267 for ac_exec_ext in '' $ac_executable_extensions; do 7268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2943 7269 ac_cv_prog_ac_ct_RANLIB="ranlib" 2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2945 7271 break 2 2946 7272 fi 2947 7273 done 2948 done 2949 2950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2951 fi 7274 done 7275 IFS=$as_save_IFS 7276 7277 fi ;; 7278 esac 2952 7279 fi 2953 7280 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2954 7281 if test -n "$ac_ct_RANLIB"; then 2955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&52956 echo "${ECHO_T}$ac_ct_RANLIB" >&6 7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7283 printf "%s\n" "$ac_ct_RANLIB" >&6; } 2957 7284 else 2958 echo "$as_me:$LINENO: result: no" >&5 2959 echo "${ECHO_T}no" >&6 2960 fi 2961 2962 RANLIB=$ac_ct_RANLIB 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286 printf "%s\n" "no" >&6; } 7287 fi 7288 7289 if test "x$ac_ct_RANLIB" = x; then 7290 RANLIB=":" 7291 else 7292 case $cross_compiling:$ac_tool_warned in 7293 yes:) 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7296 ac_tool_warned=yes ;; 7297 esac 7298 RANLIB=$ac_ct_RANLIB 7299 fi 2963 7300 else 2964 7301 RANLIB="$ac_cv_prog_RANLIB" 2965 7302 fi 2966 7303 2967 2968 cat >>confdefs.h <<\_ACEOF2969 #define _GNU_SOURCE 12970 _ACEOF2971 2972 2973 2974 ac_ext=c2975 ac_cpp='$CPP $CPPFLAGS'2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu2979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&52980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&62981 # On Suns, sometimes $CPP names a directory.2982 if test -n "$CPP" && test -d "$CPP"; then2983 CPP=2984 fi2985 if test -z "$CPP"; then2986 if test "${ac_cv_prog_CPP+set}" = set; then2987 echo $ECHO_N "(cached) $ECHO_C" >&62988 else2989 # Double quotes because CPP needs to be expanded2990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"2991 do2992 ac_preproc_ok=false2993 for ac_c_preproc_warn_flag in '' yes2994 do2995 # Use a header file that comes with gcc, so configuring glibc2996 # with a fresh cross-compiler works.2997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since2998 # <limits.h> exists even on freestanding compilers.2999 # On the NeXT, cc -E runs the code through the compiler's parser,3000 # not just through cpp. "Syntax error" is here to catch this case.3001 cat >conftest.$ac_ext <<_ACEOF3002 /* confdefs.h. */3003 _ACEOF3004 cat confdefs.h >>conftest.$ac_ext3005 cat >>conftest.$ac_ext <<_ACEOF3006 /* end confdefs.h. */3007 #ifdef __STDC__3008 # include <limits.h>3009 #else3010 # include <assert.h>3011 #endif3012 Syntax error3013 _ACEOF3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&53015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er13016 ac_status=$?3017 grep -v '^ *+' conftest.er1 >conftest.err3018 rm -f conftest.er13019 cat conftest.err >&53020 echo "$as_me:$LINENO: \$? = $ac_status" >&53021 (exit $ac_status); } >/dev/null; then3022 if test -s conftest.err; then3023 ac_cpp_err=$ac_c_preproc_warn_flag3024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag3025 else3026 ac_cpp_err=3027 fi3028 else3029 ac_cpp_err=yes3030 fi3031 if test -z "$ac_cpp_err"; then3032 :3033 else3034 echo "$as_me: failed program was:" >&53035 sed 's/^/| /' conftest.$ac_ext >&53036 3037 # Broken: fails on valid input.3038 continue3039 fi3040 rm -f conftest.err conftest.$ac_ext3041 3042 # OK, works on sane cases. Now check whether non-existent headers3043 # can be detected and how.3044 cat >conftest.$ac_ext <<_ACEOF3045 /* confdefs.h. */3046 _ACEOF3047 cat confdefs.h >>conftest.$ac_ext3048 cat >>conftest.$ac_ext <<_ACEOF3049 /* end confdefs.h. */3050 #include <ac_nonexistent.h>3051 _ACEOF3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&53053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er13054 ac_status=$?3055 grep -v '^ *+' conftest.er1 >conftest.err3056 rm -f conftest.er13057 cat conftest.err >&53058 echo "$as_me:$LINENO: \$? = $ac_status" >&53059 (exit $ac_status); } >/dev/null; then3060 if test -s conftest.err; then3061 ac_cpp_err=$ac_c_preproc_warn_flag3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag3063 else3064 ac_cpp_err=3065 fi3066 else3067 ac_cpp_err=yes3068 fi3069 if test -z "$ac_cpp_err"; then3070 # Broken: success on invalid input.3071 continue3072 else3073 echo "$as_me: failed program was:" >&53074 sed 's/^/| /' conftest.$ac_ext >&53075 3076 # Passes both tests.3077 ac_preproc_ok=:3078 break3079 fi3080 rm -f conftest.err conftest.$ac_ext3081 3082 done3083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.3084 rm -f conftest.err conftest.$ac_ext3085 if $ac_preproc_ok; then3086 break3087 fi3088 3089 done3090 ac_cv_prog_CPP=$CPP3091 3092 fi3093 CPP=$ac_cv_prog_CPP3094 else3095 ac_cv_prog_CPP=$CPP3096 fi3097 echo "$as_me:$LINENO: result: $CPP" >&53098 echo "${ECHO_T}$CPP" >&63099 ac_preproc_ok=false3100 for ac_c_preproc_warn_flag in '' yes3101 do3102 # Use a header file that comes with gcc, so configuring glibc3103 # with a fresh cross-compiler works.3104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since3105 # <limits.h> exists even on freestanding compilers.3106 # On the NeXT, cc -E runs the code through the compiler's parser,3107 # not just through cpp. "Syntax error" is here to catch this case.3108 cat >conftest.$ac_ext <<_ACEOF3109 /* confdefs.h. */3110 _ACEOF3111 cat confdefs.h >>conftest.$ac_ext3112 cat >>conftest.$ac_ext <<_ACEOF3113 /* end confdefs.h. */3114 #ifdef __STDC__3115 # include <limits.h>3116 #else3117 # include <assert.h>3118 #endif3119 Syntax error3120 _ACEOF3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&53122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er13123 ac_status=$?3124 grep -v '^ *+' conftest.er1 >conftest.err3125 rm -f conftest.er13126 cat conftest.err >&53127 echo "$as_me:$LINENO: \$? = $ac_status" >&53128 (exit $ac_status); } >/dev/null; then3129 if test -s conftest.err; then3130 ac_cpp_err=$ac_c_preproc_warn_flag3131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag3132 else3133 ac_cpp_err=3134 fi3135 else3136 ac_cpp_err=yes3137 fi3138 if test -z "$ac_cpp_err"; then3139 :3140 else3141 echo "$as_me: failed program was:" >&53142 sed 's/^/| /' conftest.$ac_ext >&53143 3144 # Broken: fails on valid input.3145 continue3146 fi3147 rm -f conftest.err conftest.$ac_ext3148 3149 # OK, works on sane cases. Now check whether non-existent headers3150 # can be detected and how.3151 cat >conftest.$ac_ext <<_ACEOF3152 /* confdefs.h. */3153 _ACEOF3154 cat confdefs.h >>conftest.$ac_ext3155 cat >>conftest.$ac_ext <<_ACEOF3156 /* end confdefs.h. */3157 #include <ac_nonexistent.h>3158 _ACEOF3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&53160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er13161 ac_status=$?3162 grep -v '^ *+' conftest.er1 >conftest.err3163 rm -f conftest.er13164 cat conftest.err >&53165 echo "$as_me:$LINENO: \$? = $ac_status" >&53166 (exit $ac_status); } >/dev/null; then3167 if test -s conftest.err; then3168 ac_cpp_err=$ac_c_preproc_warn_flag3169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag3170 else3171 ac_cpp_err=3172 fi3173 else3174 ac_cpp_err=yes3175 fi3176 if test -z "$ac_cpp_err"; then3177 # Broken: success on invalid input.3178 continue3179 else3180 echo "$as_me: failed program was:" >&53181 sed 's/^/| /' conftest.$ac_ext >&53182 3183 # Passes both tests.3184 ac_preproc_ok=:3185 break3186 fi3187 rm -f conftest.err conftest.$ac_ext3188 3189 done3190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.3191 rm -f conftest.err conftest.$ac_ext3192 if $ac_preproc_ok; then3193 :3194 else3195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check3196 See \`config.log' for more details." >&53197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check3198 See \`config.log' for more details." >&2;}3199 { (exit 1); exit 1; }; }3200 fi3201 3202 ac_ext=c3203 ac_cpp='$CPP $CPPFLAGS'3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu3207 3208 3209 echo "$as_me:$LINENO: checking for egrep" >&53210 echo $ECHO_N "checking for egrep... $ECHO_C" >&63211 if test "${ac_cv_prog_egrep+set}" = set; then3212 echo $ECHO_N "(cached) $ECHO_C" >&63213 else3214 if echo a | (grep -E '(a|b)') >/dev/null 2>&13215 then ac_cv_prog_egrep='grep -E'3216 else ac_cv_prog_egrep='egrep'3217 7304 fi 3218 fi 3219 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3220 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3221 EGREP=$ac_cv_prog_egrep 3222 3223 3224 3225 echo "$as_me:$LINENO: checking for AIX" >&5 3226 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3227 cat >conftest.$ac_ext <<_ACEOF 3228 /* confdefs.h. */ 3229 _ACEOF 3230 cat confdefs.h >>conftest.$ac_ext 3231 cat >>conftest.$ac_ext <<_ACEOF 3232 /* end confdefs.h. */ 3233 #ifdef _AIX 3234 yes 3235 #endif 3236 3237 _ACEOF 3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3239 $EGREP "yes" >/dev/null 2>&1; then 3240 echo "$as_me:$LINENO: result: yes" >&5 3241 echo "${ECHO_T}yes" >&6 3242 cat >>confdefs.h <<\_ACEOF 3243 #define _ALL_SOURCE 1 3244 _ACEOF 3245 3246 else 3247 echo "$as_me:$LINENO: result: no" >&5 3248 echo "${ECHO_T}no" >&6 3249 fi 3250 rm -f conftest* 3251 3252 3253 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3254 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3255 if test "${ac_cv_header_stdc+set}" = set; then 3256 echo $ECHO_N "(cached) $ECHO_C" >&6 3257 else 3258 cat >conftest.$ac_ext <<_ACEOF 3259 /* confdefs.h. */ 3260 _ACEOF 3261 cat confdefs.h >>conftest.$ac_ext 3262 cat >>conftest.$ac_ext <<_ACEOF 3263 /* end confdefs.h. */ 3264 #include <stdlib.h> 3265 #include <stdarg.h> 3266 #include <string.h> 3267 #include <float.h> 3268 3269 int 3270 main () 3271 { 3272 3273 ; 3274 return 0; 3275 } 3276 _ACEOF 3277 rm -f conftest.$ac_objext 3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3279 (eval $ac_compile) 2>conftest.er1 3280 ac_status=$? 3281 grep -v '^ *+' conftest.er1 >conftest.err 3282 rm -f conftest.er1 3283 cat conftest.err >&5 3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3285 (exit $ac_status); } && 3286 { ac_try='test -z "$ac_c_werror_flag" 3287 || test ! -s conftest.err' 3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3289 (eval $ac_try) 2>&5 3290 ac_status=$? 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3292 (exit $ac_status); }; } && 3293 { ac_try='test -s conftest.$ac_objext' 3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3295 (eval $ac_try) 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); }; }; then 3299 ac_cv_header_stdc=yes 3300 else 3301 echo "$as_me: failed program was:" >&5 3302 sed 's/^/| /' conftest.$ac_ext >&5 3303 3304 ac_cv_header_stdc=no 3305 fi 3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3307 3308 if test $ac_cv_header_stdc = yes; then 3309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3310 cat >conftest.$ac_ext <<_ACEOF 3311 /* confdefs.h. */ 3312 _ACEOF 3313 cat confdefs.h >>conftest.$ac_ext 3314 cat >>conftest.$ac_ext <<_ACEOF 3315 /* end confdefs.h. */ 3316 #include <string.h> 3317 3318 _ACEOF 3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3320 $EGREP "memchr" >/dev/null 2>&1; then 3321 : 3322 else 3323 ac_cv_header_stdc=no 3324 fi 3325 rm -f conftest* 3326 3327 fi 3328 3329 if test $ac_cv_header_stdc = yes; then 3330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3331 cat >conftest.$ac_ext <<_ACEOF 3332 /* confdefs.h. */ 3333 _ACEOF 3334 cat confdefs.h >>conftest.$ac_ext 3335 cat >>conftest.$ac_ext <<_ACEOF 3336 /* end confdefs.h. */ 3337 #include <stdlib.h> 3338 3339 _ACEOF 3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3341 $EGREP "free" >/dev/null 2>&1; then 3342 : 3343 else 3344 ac_cv_header_stdc=no 3345 fi 3346 rm -f conftest* 3347 3348 fi 3349 3350 if test $ac_cv_header_stdc = yes; then 3351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3352 if test "$cross_compiling" = yes; then 3353 : 3354 else 3355 cat >conftest.$ac_ext <<_ACEOF 3356 /* confdefs.h. */ 3357 _ACEOF 3358 cat confdefs.h >>conftest.$ac_ext 3359 cat >>conftest.$ac_ext <<_ACEOF 3360 /* end confdefs.h. */ 3361 #include <ctype.h> 3362 #if ((' ' & 0x0FF) == 0x020) 3363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3365 #else 3366 # define ISLOWER(c) \ 3367 (('a' <= (c) && (c) <= 'i') \ 3368 || ('j' <= (c) && (c) <= 'r') \ 3369 || ('s' <= (c) && (c) <= 'z')) 3370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3371 #endif 3372 3373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3374 int 3375 main () 3376 { 3377 int i; 3378 for (i = 0; i < 256; i++) 3379 if (XOR (islower (i), ISLOWER (i)) 3380 || toupper (i) != TOUPPER (i)) 3381 exit(2); 3382 exit (0); 3383 } 3384 _ACEOF 3385 rm -f conftest$ac_exeext 3386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3387 (eval $ac_link) 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3392 (eval $ac_try) 2>&5 3393 ac_status=$? 3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3395 (exit $ac_status); }; }; then 3396 : 3397 else 3398 echo "$as_me: program exited with status $ac_status" >&5 3399 echo "$as_me: failed program was:" >&5 3400 sed 's/^/| /' conftest.$ac_ext >&5 3401 3402 ( exit $ac_status ) 3403 ac_cv_header_stdc=no 3404 fi 3405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3406 fi 3407 fi 3408 fi 3409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3410 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3411 if test $ac_cv_header_stdc = yes; then 3412 3413 cat >>confdefs.h <<\_ACEOF 3414 #define STDC_HEADERS 1 3415 _ACEOF 3416 3417 fi 3418 3419 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3430 inttypes.h stdint.h unistd.h 3431 do 3432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3433 echo "$as_me:$LINENO: checking for $ac_header" >&5 3434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3435 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437 else 3438 cat >conftest.$ac_ext <<_ACEOF 3439 /* confdefs.h. */ 3440 _ACEOF 3441 cat confdefs.h >>conftest.$ac_ext 3442 cat >>conftest.$ac_ext <<_ACEOF 3443 /* end confdefs.h. */ 3444 $ac_includes_default 3445 3446 #include <$ac_header> 3447 _ACEOF 3448 rm -f conftest.$ac_objext 3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3450 (eval $ac_compile) 2>conftest.er1 3451 ac_status=$? 3452 grep -v '^ *+' conftest.er1 >conftest.err 3453 rm -f conftest.er1 3454 cat conftest.err >&5 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); } && 3457 { ac_try='test -z "$ac_c_werror_flag" 3458 || test ! -s conftest.err' 3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3460 (eval $ac_try) 2>&5 3461 ac_status=$? 3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3463 (exit $ac_status); }; } && 3464 { ac_try='test -s conftest.$ac_objext' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; }; then 3470 eval "$as_ac_Header=yes" 3471 else 3472 echo "$as_me: failed program was:" >&5 3473 sed 's/^/| /' conftest.$ac_ext >&5 3474 3475 eval "$as_ac_Header=no" 3476 fi 3477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3478 fi 3479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3481 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3482 cat >>confdefs.h <<_ACEOF 3483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3484 _ACEOF 3485 3486 fi 3487 3488 done 3489 3490 3491 if test "${ac_cv_header_minix_config_h+set}" = set; then 3492 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3493 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3494 if test "${ac_cv_header_minix_config_h+set}" = set; then 3495 echo $ECHO_N "(cached) $ECHO_C" >&6 3496 fi 3497 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3498 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3499 else 3500 # Is the header compilable? 3501 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3502 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3503 cat >conftest.$ac_ext <<_ACEOF 3504 /* confdefs.h. */ 3505 _ACEOF 3506 cat confdefs.h >>conftest.$ac_ext 3507 cat >>conftest.$ac_ext <<_ACEOF 3508 /* end confdefs.h. */ 3509 $ac_includes_default 3510 #include <minix/config.h> 3511 _ACEOF 3512 rm -f conftest.$ac_objext 3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3514 (eval $ac_compile) 2>conftest.er1 3515 ac_status=$? 3516 grep -v '^ *+' conftest.er1 >conftest.err 3517 rm -f conftest.er1 3518 cat conftest.err >&5 3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3520 (exit $ac_status); } && 3521 { ac_try='test -z "$ac_c_werror_flag" 3522 || test ! -s conftest.err' 3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3524 (eval $ac_try) 2>&5 3525 ac_status=$? 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); }; } && 3528 { ac_try='test -s conftest.$ac_objext' 3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3530 (eval $ac_try) 2>&5 3531 ac_status=$? 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); }; }; then 3534 ac_header_compiler=yes 3535 else 3536 echo "$as_me: failed program was:" >&5 3537 sed 's/^/| /' conftest.$ac_ext >&5 3538 3539 ac_header_compiler=no 3540 fi 3541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3543 echo "${ECHO_T}$ac_header_compiler" >&6 3544 3545 # Is the header present? 3546 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3547 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3548 cat >conftest.$ac_ext <<_ACEOF 3549 /* confdefs.h. */ 3550 _ACEOF 3551 cat confdefs.h >>conftest.$ac_ext 3552 cat >>conftest.$ac_ext <<_ACEOF 3553 /* end confdefs.h. */ 3554 #include <minix/config.h> 3555 _ACEOF 3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3558 ac_status=$? 3559 grep -v '^ *+' conftest.er1 >conftest.err 3560 rm -f conftest.er1 3561 cat conftest.err >&5 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 (exit $ac_status); } >/dev/null; then 3564 if test -s conftest.err; then 3565 ac_cpp_err=$ac_c_preproc_warn_flag 3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3567 else 3568 ac_cpp_err= 3569 fi 3570 else 3571 ac_cpp_err=yes 3572 fi 3573 if test -z "$ac_cpp_err"; then 3574 ac_header_preproc=yes 3575 else 3576 echo "$as_me: failed program was:" >&5 3577 sed 's/^/| /' conftest.$ac_ext >&5 3578 3579 ac_header_preproc=no 3580 fi 3581 rm -f conftest.err conftest.$ac_ext 3582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3583 echo "${ECHO_T}$ac_header_preproc" >&6 3584 3585 # So? What about this header? 3586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3587 yes:no: ) 3588 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3589 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3590 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3591 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3592 ac_header_preproc=yes 3593 ;; 3594 no:yes:* ) 3595 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3596 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3597 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3598 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3599 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3600 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3601 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3602 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3603 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3604 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3605 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3606 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3607 ( 3608 cat <<\_ASBOX 3609 ## ------------------------------ ## 3610 ## Report this to [email protected] ## 3611 ## ------------------------------ ## 3612 _ASBOX 3613 ) | 3614 sed "s/^/$as_me: WARNING: /" >&2 3615 ;; 3616 esac 3617 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3618 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3619 if test "${ac_cv_header_minix_config_h+set}" = set; then 3620 echo $ECHO_N "(cached) $ECHO_C" >&6 3621 else 3622 ac_cv_header_minix_config_h=$ac_header_preproc 3623 fi 3624 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3625 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3626 3627 fi 3628 if test $ac_cv_header_minix_config_h = yes; then 3629 MINIX=yes 3630 else 3631 MINIX= 3632 fi 3633 3634 3635 if test "$MINIX" = yes; then 3636 3637 cat >>confdefs.h <<\_ACEOF 3638 #define _POSIX_SOURCE 1 3639 _ACEOF 3640 3641 3642 cat >>confdefs.h <<\_ACEOF 3643 #define _POSIX_1_SOURCE 2 3644 _ACEOF 3645 3646 3647 cat >>confdefs.h <<\_ACEOF 3648 #define _MINIX 1 3649 _ACEOF 3650 3651 fi 3652 3653 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3654 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3655 if test "${ac_cv_search_strerror+set}" = set; then 3656 echo $ECHO_N "(cached) $ECHO_C" >&6 3657 else 3658 ac_func_search_save_LIBS=$LIBS 3659 ac_cv_search_strerror=no 3660 cat >conftest.$ac_ext <<_ACEOF 3661 /* confdefs.h. */ 3662 _ACEOF 3663 cat confdefs.h >>conftest.$ac_ext 3664 cat >>conftest.$ac_ext <<_ACEOF 3665 /* end confdefs.h. */ 3666 3667 /* Override any gcc2 internal prototype to avoid an error. */ 3668 #ifdef __cplusplus 3669 extern "C" 3670 #endif 3671 /* We use char because int might match the return type of a gcc2 3672 builtin and then its argument prototype would still apply. */ 3673 char strerror (); 3674 int 3675 main () 3676 { 3677 strerror (); 3678 ; 3679 return 0; 3680 } 3681 _ACEOF 3682 rm -f conftest.$ac_objext conftest$ac_exeext 3683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3684 (eval $ac_link) 2>conftest.er1 3685 ac_status=$? 3686 grep -v '^ *+' conftest.er1 >conftest.err 3687 rm -f conftest.er1 3688 cat conftest.err >&5 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 (exit $ac_status); } && 3691 { ac_try='test -z "$ac_c_werror_flag" 3692 || test ! -s conftest.err' 3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3694 (eval $ac_try) 2>&5 3695 ac_status=$? 3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3697 (exit $ac_status); }; } && 3698 { ac_try='test -s conftest$ac_exeext' 3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3700 (eval $ac_try) 2>&5 3701 ac_status=$? 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); }; }; then 3704 ac_cv_search_strerror="none required" 3705 else 3706 echo "$as_me: failed program was:" >&5 3707 sed 's/^/| /' conftest.$ac_ext >&5 3708 3709 fi 3710 rm -f conftest.err conftest.$ac_objext \ 3711 conftest$ac_exeext conftest.$ac_ext 3712 if test "$ac_cv_search_strerror" = no; then 3713 for ac_lib in cposix; do 3714 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3715 cat >conftest.$ac_ext <<_ACEOF 3716 /* confdefs.h. */ 3717 _ACEOF 3718 cat confdefs.h >>conftest.$ac_ext 3719 cat >>conftest.$ac_ext <<_ACEOF 3720 /* end confdefs.h. */ 3721 3722 /* Override any gcc2 internal prototype to avoid an error. */ 3723 #ifdef __cplusplus 3724 extern "C" 3725 #endif 3726 /* We use char because int might match the return type of a gcc2 3727 builtin and then its argument prototype would still apply. */ 3728 char strerror (); 3729 int 3730 main () 3731 { 3732 strerror (); 3733 ; 3734 return 0; 3735 } 3736 _ACEOF 3737 rm -f conftest.$ac_objext conftest$ac_exeext 3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3739 (eval $ac_link) 2>conftest.er1 3740 ac_status=$? 3741 grep -v '^ *+' conftest.er1 >conftest.err 3742 rm -f conftest.er1 3743 cat conftest.err >&5 3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); } && 3746 { ac_try='test -z "$ac_c_werror_flag" 3747 || test ! -s conftest.err' 3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3749 (eval $ac_try) 2>&5 3750 ac_status=$? 3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3752 (exit $ac_status); }; } && 3753 { ac_try='test -s conftest$ac_exeext' 3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3755 (eval $ac_try) 2>&5 3756 ac_status=$? 3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); }; }; then 3759 ac_cv_search_strerror="-l$ac_lib" 3760 break 3761 else 3762 echo "$as_me: failed program was:" >&5 3763 sed 's/^/| /' conftest.$ac_ext >&5 3764 3765 fi 3766 rm -f conftest.err conftest.$ac_objext \ 3767 conftest$ac_exeext conftest.$ac_ext 3768 done 3769 fi 3770 LIBS=$ac_func_search_save_LIBS 3771 fi 3772 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3773 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3774 if test "$ac_cv_search_strerror" != no; then 3775 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3776 3777 fi 3778 3779 # Check whether --enable-largefile or --disable-largefile was given. 3780 if test "${enable_largefile+set}" = set; then 3781 enableval="$enable_largefile" 3782 3783 fi; 3784 if test "$enable_largefile" != no; then 3785 3786 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 3787 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3788 if test "${ac_cv_sys_largefile_CC+set}" = set; then 3789 echo $ECHO_N "(cached) $ECHO_C" >&6 3790 else 3791 ac_cv_sys_largefile_CC=no 7305 fi 7306 7307 7308 7309 7310 7311 7312 # Check whether --enable-largefile was given. 7313 if test ${enable_largefile+y} 7314 then : 7315 enableval=$enable_largefile; 7316 fi 7317 7318 if test "$enable_largefile" != no 7319 then : 7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7321 printf %s "checking for special C compiler options needed for large files... " >&6; } 7322 if test ${ac_cv_sys_largefile_CC+y} 7323 then : 7324 printf %s "(cached) " >&6 7325 else case e in #( 7326 e) ac_cv_sys_largefile_CC=no 3792 7327 if test "$GCC" != yes; then 3793 7328 ac_save_CC=$CC 3794 7329 while :; do 3795 # IRIX 6.2 and later do not support large files by default, 3796 # so use the C compiler's -n32 option if that helps. 3797 cat >conftest.$ac_ext <<_ACEOF 3798 /* confdefs.h. */ 3799 _ACEOF 3800 cat confdefs.h >>conftest.$ac_ext 3801 cat >>conftest.$ac_ext <<_ACEOF 7330 # IRIX 6.2 and later do not support large files by default, 7331 # so use the C compiler's -n32 option if that helps. 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3802 7333 /* end confdefs.h. */ 3803 7334 #include <sys/types.h> … … 3806 7337 since some C++ compilers masquerading as C compilers 3807 7338 incorrectly reject 9223372036854775807. */ 3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))7339 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 3809 7340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3810 7341 && LARGE_OFF_T % 2147483647 == 1) 3811 7342 ? 1 : -1]; 3812 7343 int 3813 main ( )7344 main (void) 3814 7345 { 3815 7346 … … 3818 7349 } 3819 7350 _ACEOF 3820 rm -f conftest.$ac_objext 3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3822 (eval $ac_compile) 2>conftest.er1 3823 ac_status=$? 3824 grep -v '^ *+' conftest.er1 >conftest.err 3825 rm -f conftest.er1 3826 cat conftest.err >&5 3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3828 (exit $ac_status); } && 3829 { ac_try='test -z "$ac_c_werror_flag" 3830 || test ! -s conftest.err' 3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3832 (eval $ac_try) 2>&5 3833 ac_status=$? 3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3835 (exit $ac_status); }; } && 3836 { ac_try='test -s conftest.$ac_objext' 3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3838 (eval $ac_try) 2>&5 3839 ac_status=$? 3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3841 (exit $ac_status); }; }; then 7351 if ac_fn_c_try_compile "$LINENO" 7352 then : 3842 7353 break 3843 else 3844 echo "$as_me: failed program was:" >&5 3845 sed 's/^/| /' conftest.$ac_ext >&5 3846 3847 fi 3848 rm -f conftest.err conftest.$ac_objext 3849 CC="$CC -n32" 3850 rm -f conftest.$ac_objext 3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3852 (eval $ac_compile) 2>conftest.er1 3853 ac_status=$? 3854 grep -v '^ *+' conftest.er1 >conftest.err 3855 rm -f conftest.er1 3856 cat conftest.err >&5 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); } && 3859 { ac_try='test -z "$ac_c_werror_flag" 3860 || test ! -s conftest.err' 3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3862 (eval $ac_try) 2>&5 3863 ac_status=$? 3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3865 (exit $ac_status); }; } && 3866 { ac_try='test -s conftest.$ac_objext' 3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3868 (eval $ac_try) 2>&5 3869 ac_status=$? 3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3871 (exit $ac_status); }; }; then 7354 fi 7355 rm -f core conftest.err conftest.$ac_objext conftest.beam 7356 CC="$CC -n32" 7357 if ac_fn_c_try_compile "$LINENO" 7358 then : 3872 7359 ac_cv_sys_largefile_CC=' -n32'; break 3873 else 3874 echo "$as_me: failed program was:" >&5 3875 sed 's/^/| /' conftest.$ac_ext >&5 3876 3877 fi 3878 rm -f conftest.err conftest.$ac_objext 7360 fi 7361 rm -f core conftest.err conftest.$ac_objext conftest.beam 3879 7362 break 3880 7363 done 3881 7364 CC=$ac_save_CC 3882 7365 rm -f conftest.$ac_ext 3883 fi 3884 fi 3885 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3886 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 7366 fi ;; 7367 esac 7368 fi 7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7370 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 3887 7371 if test "$ac_cv_sys_largefile_CC" != no; then 3888 7372 CC=$CC$ac_cv_sys_largefile_CC 3889 7373 fi 3890 7374 3891 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3892 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3893 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895 else 3896 while :; do 3897 ac_cv_sys_file_offset_bits=no 3898 cat >conftest.$ac_ext <<_ACEOF 3899 /* confdefs.h. */ 3900 _ACEOF 3901 cat confdefs.h >>conftest.$ac_ext 3902 cat >>conftest.$ac_ext <<_ACEOF 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7376 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7377 if test ${ac_cv_sys_file_offset_bits+y} 7378 then : 7379 printf %s "(cached) " >&6 7380 else case e in #( 7381 e) while :; do 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903 7383 /* end confdefs.h. */ 3904 7384 #include <sys/types.h> … … 3907 7387 since some C++ compilers masquerading as C compilers 3908 7388 incorrectly reject 9223372036854775807. */ 3909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))7389 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 3910 7390 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3911 7391 && LARGE_OFF_T % 2147483647 == 1) 3912 7392 ? 1 : -1]; 3913 7393 int 3914 main ( )7394 main (void) 3915 7395 { 3916 7396 … … 3919 7399 } 3920 7400 _ACEOF 3921 rm -f conftest.$ac_objext 3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3923 (eval $ac_compile) 2>conftest.er1 3924 ac_status=$? 3925 grep -v '^ *+' conftest.er1 >conftest.err 3926 rm -f conftest.er1 3927 cat conftest.err >&5 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); } && 3930 { ac_try='test -z "$ac_c_werror_flag" 3931 || test ! -s conftest.err' 3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3933 (eval $ac_try) 2>&5 3934 ac_status=$? 3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3936 (exit $ac_status); }; } && 3937 { ac_try='test -s conftest.$ac_objext' 3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3939 (eval $ac_try) 2>&5 3940 ac_status=$? 3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3942 (exit $ac_status); }; }; then 3943 break 3944 else 3945 echo "$as_me: failed program was:" >&5 3946 sed 's/^/| /' conftest.$ac_ext >&5 3947 3948 fi 3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3950 cat >conftest.$ac_ext <<_ACEOF 3951 /* confdefs.h. */ 3952 _ACEOF 3953 cat confdefs.h >>conftest.$ac_ext 3954 cat >>conftest.$ac_ext <<_ACEOF 7401 if ac_fn_c_try_compile "$LINENO" 7402 then : 7403 ac_cv_sys_file_offset_bits=no; break 7404 fi 7405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955 7407 /* end confdefs.h. */ 7408 #undef _FILE_OFFSET_BITS 3956 7409 #define _FILE_OFFSET_BITS 64 3957 7410 #include <sys/types.h> … … 3960 7413 since some C++ compilers masquerading as C compilers 3961 7414 incorrectly reject 9223372036854775807. */ 3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))7415 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 3963 7416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3964 7417 && LARGE_OFF_T % 2147483647 == 1) 3965 7418 ? 1 : -1]; 3966 7419 int 3967 main ( )7420 main (void) 3968 7421 { 3969 7422 … … 3972 7425 } 3973 7426 _ACEOF 3974 rm -f conftest.$ac_objext 3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3976 (eval $ac_compile) 2>conftest.er1 3977 ac_status=$? 3978 grep -v '^ *+' conftest.er1 >conftest.err 3979 rm -f conftest.er1 3980 cat conftest.err >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); } && 3983 { ac_try='test -z "$ac_c_werror_flag" 3984 || test ! -s conftest.err' 3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3986 (eval $ac_try) 2>&5 3987 ac_status=$? 3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3989 (exit $ac_status); }; } && 3990 { ac_try='test -s conftest.$ac_objext' 3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3992 (eval $ac_try) 2>&5 3993 ac_status=$? 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); }; }; then 7427 if ac_fn_c_try_compile "$LINENO" 7428 then : 3996 7429 ac_cv_sys_file_offset_bits=64; break 3997 else 3998 echo "$as_me: failed program was:" >&5 3999 sed 's/^/| /' conftest.$ac_ext >&5 4000 4001 fi 4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7430 fi 7431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7432 ac_cv_sys_file_offset_bits=unknown 4003 7433 break 4004 done 4005 fi 4006 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 4007 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 4008 if test "$ac_cv_sys_file_offset_bits" != no; then 4009 4010 cat >>confdefs.h <<_ACEOF 4011 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4012 _ACEOF 4013 4014 fi 4015 rm -f conftest* 4016 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 4017 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 4018 if test "${ac_cv_sys_large_files+set}" = set; then 4019 echo $ECHO_N "(cached) $ECHO_C" >&6 4020 else 4021 while :; do 4022 ac_cv_sys_large_files=no 4023 cat >conftest.$ac_ext <<_ACEOF 4024 /* confdefs.h. */ 4025 _ACEOF 4026 cat confdefs.h >>conftest.$ac_ext 4027 cat >>conftest.$ac_ext <<_ACEOF 7434 done ;; 7435 esac 7436 fi 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7438 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 7439 case $ac_cv_sys_file_offset_bits in #( 7440 no | unknown) ;; 7441 *) 7442 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 7443 ;; 7444 esac 7445 rm -rf conftest* 7446 case $ac_cv_sys_file_offset_bits in #( 7447 unknown) : 7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7449 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 7450 if test ${ac_cv_sys_large_files+y} 7451 then : 7452 printf %s "(cached) " >&6 7453 else case e in #( 7454 e) while :; do 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028 7456 /* end confdefs.h. */ 4029 7457 #include <sys/types.h> … … 4032 7460 since some C++ compilers masquerading as C compilers 4033 7461 incorrectly reject 9223372036854775807. */ 4034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))7462 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4035 7463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4036 7464 && LARGE_OFF_T % 2147483647 == 1) 4037 7465 ? 1 : -1]; 4038 7466 int 4039 main ( )7467 main (void) 4040 7468 { 4041 7469 … … 4044 7472 } 4045 7473 _ACEOF 4046 rm -f conftest.$ac_objext 4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4048 (eval $ac_compile) 2>conftest.er1 4049 ac_status=$? 4050 grep -v '^ *+' conftest.er1 >conftest.err 4051 rm -f conftest.er1 4052 cat conftest.err >&5 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4054 (exit $ac_status); } && 4055 { ac_try='test -z "$ac_c_werror_flag" 4056 || test ! -s conftest.err' 4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4058 (eval $ac_try) 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); }; } && 4062 { ac_try='test -s conftest.$ac_objext' 4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4064 (eval $ac_try) 2>&5 4065 ac_status=$? 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 (exit $ac_status); }; }; then 4068 break 4069 else 4070 echo "$as_me: failed program was:" >&5 4071 sed 's/^/| /' conftest.$ac_ext >&5 4072 4073 fi 4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4075 cat >conftest.$ac_ext <<_ACEOF 4076 /* confdefs.h. */ 4077 _ACEOF 4078 cat confdefs.h >>conftest.$ac_ext 4079 cat >>conftest.$ac_ext <<_ACEOF 7474 if ac_fn_c_try_compile "$LINENO" 7475 then : 7476 ac_cv_sys_large_files=no; break 7477 fi 7478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4080 7480 /* end confdefs.h. */ 7481 #undef _LARGE_FILES 4081 7482 #define _LARGE_FILES 1 4082 7483 #include <sys/types.h> … … 4085 7486 since some C++ compilers masquerading as C compilers 4086 7487 incorrectly reject 9223372036854775807. */ 4087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))7488 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4088 7489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4089 7490 && LARGE_OFF_T % 2147483647 == 1) 4090 7491 ? 1 : -1]; 4091 7492 int 4092 main ( )7493 main (void) 4093 7494 { 4094 7495 … … 4097 7498 } 4098 7499 _ACEOF 4099 rm -f conftest.$ac_objext 4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4101 (eval $ac_compile) 2>conftest.er1 4102 ac_status=$? 4103 grep -v '^ *+' conftest.er1 >conftest.err 4104 rm -f conftest.er1 4105 cat conftest.err >&5 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } && 4108 { ac_try='test -z "$ac_c_werror_flag" 4109 || test ! -s conftest.err' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; } && 4115 { ac_try='test -s conftest.$ac_objext' 4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4117 (eval $ac_try) 2>&5 4118 ac_status=$? 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); }; }; then 7500 if ac_fn_c_try_compile "$LINENO" 7501 then : 4121 7502 ac_cv_sys_large_files=1; break 4122 else 4123 echo "$as_me: failed program was:" >&5 4124 sed 's/^/| /' conftest.$ac_ext >&5 4125 4126 fi 4127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7503 fi 7504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7505 ac_cv_sys_large_files=unknown 4128 7506 break 7507 done ;; 7508 esac 7509 fi 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7511 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 7512 case $ac_cv_sys_large_files in #( 7513 no | unknown) ;; 7514 *) 7515 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 7516 ;; 7517 esac 7518 rm -rf conftest* ;; #( 7519 64) : 7520 7521 # Check whether --enable-year2038 was given. 7522 if test ${enable_year2038+y} 7523 then : 7524 enableval=$enable_year2038; 7525 fi 7526 7527 if test "$enable_year2038" != no 7528 then : 7529 7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5 7531 printf %s "checking for time_t past the year 2038... " >&6; } 7532 if test ${ac_cv_type_time_t_y2038+y} 7533 then : 7534 printf %s "(cached) " >&6 7535 else case e in #( 7536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537 /* end confdefs.h. */ 7538 7539 #include <time.h> 7540 /* Check that time_t can represent 2**32 - 1 correctly. */ 7541 #define LARGE_TIME_T \\ 7542 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 7543 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 7544 && LARGE_TIME_T % 65537 == 0) 7545 ? 1 : -1]; 7546 7547 _ACEOF 7548 if ac_fn_c_try_compile "$LINENO" 7549 then : 7550 ac_cv_type_time_t_y2038=yes 7551 else case e in #( 7552 e) ac_cv_type_time_t_y2038=no ;; 7553 esac 7554 fi 7555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7556 ;; 7557 esac 7558 fi 7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_time_t_y2038" >&5 7560 printf "%s\n" "$ac_cv_type_time_t_y2038" >&6; } 7561 if test "$ac_cv_type_time_t_y2038" = no; then 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5 7563 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; } 7564 if test ${ac_cv_type_time_t_bits_macro+y} 7565 then : 7566 printf %s "(cached) " >&6 7567 else case e in #( 7568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569 /* end confdefs.h. */ 7570 #define _TIME_BITS 64 7571 #define _FILE_OFFSET_BITS 64 7572 7573 #include <time.h> 7574 /* Check that time_t can represent 2**32 - 1 correctly. */ 7575 #define LARGE_TIME_T \\ 7576 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 7577 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 7578 && LARGE_TIME_T % 65537 == 0) 7579 ? 1 : -1]; 7580 7581 _ACEOF 7582 if ac_fn_c_try_compile "$LINENO" 7583 then : 7584 ac_cv_type_time_t_bits_macro=yes 7585 else case e in #( 7586 e) ac_cv_type_time_t_bits_macro=no ;; 7587 esac 7588 fi 7589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7590 ;; 7591 esac 7592 fi 7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_time_t_bits_macro" >&5 7594 printf "%s\n" "$ac_cv_type_time_t_bits_macro" >&6; } 7595 if test "$ac_cv_type_time_t_bits_macro" = yes; then 7596 7597 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 7598 7599 7600 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 7601 7602 ac_cv_type_time_t_y2038=yes 7603 fi 7604 fi 7605 if test $ac_cv_type_time_t_y2038 = no; then 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607 /* end confdefs.h. */ 7608 #ifdef _USE_32BIT_TIME_T 7609 int ok; 7610 #else 7611 error fail 7612 #endif 7613 7614 _ACEOF 7615 if ac_fn_c_try_compile "$LINENO" 7616 then : 7617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 7618 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 7619 as_fn_error $? "The 'time_t' type stops working after January 2038. 7620 Remove _USE_32BIT_TIME_T from the compiler flags. 7621 See 'config.log' for more details" "$LINENO" 5; } 7622 else case e in #( 7623 e) # If not cross-compiling and says we should check, 7624 # and 'touch' works with a large timestamp, then evidently wider time_t 7625 # is desired and supported, so fail and ask the builder to fix the 7626 # problem. Otherwise, just warn the builder. 7627 7628 if test "$ac_warned_about_y2038" != yes; then 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038, 7630 and this package needs a wider 'time_t' type 7631 if there is any way to access timestamps after that. 7632 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5 7633 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038, 7634 and this package needs a wider 'time_t' type 7635 if there is any way to access timestamps after that. 7636 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;} 7637 ac_warned_about_y2038=yes 7638 fi 7639 ;; 7640 esac 7641 fi 7642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7643 fi 7644 fi 7645 ;; #( 7646 *) : 7647 ;; 7648 esac 7649 fi 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 # Check whether --enable-threads was given. 7660 if test ${enable_threads+y} 7661 then : 7662 enableval=$enable_threads; gl_use_threads=$enableval 7663 else case e in #( 7664 e) if test -n "$gl_use_threads_default"; then 7665 gl_use_threads="$gl_use_threads_default" 7666 else 7667 case "$host_os" in 7668 osf*) gl_use_threads=no ;; 7669 cygwin*) 7670 case `uname -r` in 7671 1.[0-5].*) gl_use_threads=no ;; 7672 *) gl_use_threads=yes ;; 7673 esac 7674 ;; 7675 mingw*) 7676 case "$gl_use_winpthreads_default" in 7677 yes) gl_use_threads=posix ;; 7678 no) gl_use_threads=windows ;; 7679 *) gl_use_threads=yes ;; 7680 esac 7681 ;; 7682 *) gl_use_threads=yes ;; 7683 esac 7684 fi 7685 ;; 7686 esac 7687 fi 7688 7689 if test "$gl_use_threads" = yes \ 7690 || test "$gl_use_threads" = isoc \ 7691 || test "$gl_use_threads" = posix \ 7692 || test "$gl_use_threads" = isoc+posix; then 7693 # For using <threads.h> or <pthread.h>: 7694 7695 7696 if test -z "$gl_anythreadlib_early_done"; then 7697 case "$host_os" in 7698 osf*) 7699 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7700 # groks <pthread.h>. cc also understands the flag -pthread, but 7701 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7702 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7703 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7704 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7705 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7706 ;; 7707 esac 7708 # Some systems optimize for single-threaded programs by default, and 7709 # need special flags to disable these optimizations. For example, the 7710 # definition of 'errno' in <errno.h>. 7711 case "$host_os" in 7712 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7713 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7714 esac 7715 gl_anythreadlib_early_done=done 7716 fi 7717 7718 fi 7719 7720 7721 7722 # Pre-early section. 7723 7724 7725 7726 # Code from module absolute-header: 7727 # Code from module accept: 7728 # Code from module accept-tests: 7729 # Code from module acl: 7730 # Code from module acl-permissions: 7731 # Code from module acl-tests: 7732 # Code from module alignof: 7733 # Code from module alignof-tests: 7734 # Code from module alloca: 7735 # Code from module alloca-opt: 7736 # Code from module alloca-opt-tests: 7737 # Code from module announce-gen: 7738 # Code from module arpa_inet: 7739 # Code from module arpa_inet-tests: 7740 # Code from module assert: 7741 # Code from module assert-h: 7742 # Code from module assert-h-tests: 7743 # Code from module attribute: 7744 # Code from module basename-lgpl: 7745 # Code from module binary-io: 7746 # Code from module binary-io-tests: 7747 # Code from module bind: 7748 # Code from module bind-tests: 7749 # Code from module btowc: 7750 # Code from module btowc-tests: 7751 # Code from module builtin-expect: 7752 # Code from module c-ctype: 7753 # Code from module c-ctype-tests: 7754 # Code from module c-strcase: 7755 # Code from module c-strcase-tests: 7756 # Code from module c-strcaseeq: 7757 # Code from module c99: 7758 # Code from module calloc-gnu: 7759 # Code from module calloc-gnu-tests: 7760 # Code from module calloc-posix: 7761 # Code from module canonicalize-lgpl: 7762 # Code from module canonicalize-lgpl-tests: 7763 # Code from module chdir: 7764 # Code from module chdir-tests: 7765 # Code from module clock-time: 7766 # Code from module cloexec: 7767 # Code from module cloexec-tests: 7768 # Code from module close: 7769 # Code from module close-stream: 7770 # Code from module close-tests: 7771 # Code from module closedir: 7772 # Code from module closeout: 7773 # Code from module connect: 7774 # Code from module connect-tests: 7775 # Code from module ctype: 7776 # Code from module ctype-tests: 7777 # Code from module dfa: 7778 # Code from module dfa-tests: 7779 # Code from module dirent: 7780 # Code from module dirent-tests: 7781 # Code from module dirfd: 7782 # Code from module dirname-lgpl: 7783 # Code from module do-release-commit-and-tag: 7784 # Code from module double-slash-root: 7785 # Code from module dup2: 7786 # Code from module dup2-tests: 7787 # Code from module eloop-threshold: 7788 # Code from module environ: 7789 # Code from module environ-tests: 7790 # Code from module errno: 7791 # Code from module errno-tests: 7792 # Code from module error: 7793 # Code from module exitfail: 7794 # Code from module explicit_bzero: 7795 # Code from module explicit_bzero-tests: 7796 # Code from module extensions: 7797 # Code from module extern-inline: 7798 # Code from module fcntl: 7799 # Code from module fcntl-h: 7800 # Code from module fcntl-h-tests: 7801 # Code from module fcntl-tests: 7802 # Code from module fd-hook: 7803 # Code from module fdopen: 7804 # Code from module fdopen-tests: 7805 # Code from module fflush: 7806 7807 # Code from module fflush-tests: 7808 # Code from module fgetc-tests: 7809 # Code from module file-has-acl: 7810 # Code from module file-has-acl-tests: 7811 # Code from module filename: 7812 # Code from module flexmember: 7813 # Code from module fopen: 7814 # Code from module fopen-gnu: 7815 # Code from module fopen-gnu-tests: 7816 # Code from module fopen-tests: 7817 # Code from module fpending: 7818 # Code from module fpending-tests: 7819 # Code from module fpurge: 7820 # Code from module fpurge-tests: 7821 # Code from module fputc-tests: 7822 # Code from module fread-tests: 7823 # Code from module freading: 7824 # Code from module freading-tests: 7825 # Code from module free-posix: 7826 # Code from module free-posix-tests: 7827 # Code from module fseek: 7828 # Code from module fseek-tests: 7829 # Code from module fseeko: 7830 7831 # Code from module fseeko-tests: 7832 # Code from module fstat: 7833 # Code from module fstat-tests: 7834 # Code from module ftell: 7835 # Code from module ftell-tests: 7836 # Code from module ftello: 7837 7838 # Code from module ftello-tests: 7839 # Code from module ftruncate: 7840 # Code from module ftruncate-tests: 7841 # Code from module fwrite-tests: 7842 # Code from module fwriting: 7843 # Code from module fwriting-tests: 7844 # Code from module gen-header: 7845 # Code from module gendocs: 7846 # Code from module getcwd-lgpl: 7847 # Code from module getcwd-lgpl-tests: 7848 # Code from module getdelim: 7849 # Code from module getdelim-tests: 7850 # Code from module getdtablesize: 7851 # Code from module getdtablesize-tests: 7852 # Code from module getpagesize: 7853 # Code from module getprogname: 7854 # Code from module getprogname-tests: 7855 # Code from module getrandom: 7856 # Code from module getrandom-tests: 7857 # Code from module gettext-h: 7858 # Code from module gettimeofday: 7859 # Code from module gettimeofday-tests: 7860 # Code from module git-version-gen: 7861 # Code from module gitlog-to-changelog: 7862 # Code from module glibc-internal/dynarray: 7863 # Code from module glibc-internal/dynarray-tests: 7864 # Code from module glibc-internal/scratch_buffer: 7865 # Code from module glibc-internal/scratch_buffer-tests: 7866 # Code from module gnu-web-doc-update: 7867 # Code from module gnumakefile: 7868 # Code from module gnupload: 7869 # Code from module hard-locale: 7870 # Code from module hard-locale-tests: 7871 # Code from module ialloc: 7872 # Code from module idx: 7873 # Code from module ignore-value: 7874 # Code from module ignore-value-tests: 7875 # Code from module include_next: 7876 # Code from module inet_pton: 7877 # Code from module inet_pton-tests: 7878 # Code from module intprops: 7879 # Code from module intprops-tests: 7880 # Code from module inttypes: 7881 # Code from module inttypes-incomplete: 7882 # Code from module inttypes-tests: 7883 # Code from module ioctl: 7884 # Code from module ioctl-tests: 7885 # Code from module isblank: 7886 # Code from module isblank-tests: 7887 # Code from module langinfo: 7888 # Code from module langinfo-tests: 7889 # Code from module largefile: 7890 7891 7892 # Code from module libc-config: 7893 # Code from module limits-h: 7894 # Code from module limits-h-tests: 7895 # Code from module link: 7896 # Code from module link-tests: 7897 # Code from module listen: 7898 # Code from module listen-tests: 7899 # Code from module localcharset: 7900 # Code from module localcharset-tests: 7901 # Code from module locale: 7902 # Code from module locale-tests: 7903 # Code from module localeconv: 7904 # Code from module localeconv-tests: 7905 # Code from module localename: 7906 # Code from module localename-tests: 7907 # Code from module lock: 7908 # Code from module lseek: 7909 # Code from module lseek-tests: 7910 # Code from module lstat: 7911 # Code from module lstat-tests: 7912 # Code from module maintainer-makefile: 7913 # Code from module malloc-gnu: 7914 # Code from module malloc-gnu-tests: 7915 # Code from module malloc-posix: 7916 # Code from module malloca: 7917 # Code from module malloca-tests: 7918 # Code from module manywarnings: 7919 # Code from module mbrlen: 7920 # Code from module mbrtowc: 7921 # Code from module mbrtowc-tests: 7922 # Code from module mbsinit: 7923 # Code from module mbsinit-tests: 7924 # Code from module mbtowc: 7925 # Code from module memchr: 7926 # Code from module memchr-tests: 7927 # Code from module mempcpy: 7928 # Code from module memrchr: 7929 # Code from module memrchr-tests: 7930 # Code from module minmax: 7931 # Code from module mkdir: 7932 # Code from module mkdir-tests: 7933 # Code from module mkostemp: 7934 # Code from module msvc-inval: 7935 # Code from module msvc-nothrow: 7936 # Code from module multiarch: 7937 # Code from module nanosleep: 7938 # Code from module nanosleep-tests: 7939 # Code from module netinet_in: 7940 # Code from module netinet_in-tests: 7941 # Code from module nl_langinfo: 7942 # Code from module nl_langinfo-tests: 7943 # Code from module nocrash: 7944 # Code from module obstack: 7945 # Code from module open: 7946 # Code from module open-tests: 7947 # Code from module opendir: 7948 # Code from module pathmax: 7949 # Code from module pathmax-tests: 7950 # Code from module perl: 7951 # Code from module perror: 7952 # Code from module perror-tests: 7953 # Code from module pipe-posix: 7954 # Code from module pipe-posix-tests: 7955 # Code from module progname: 7956 # Code from module pselect: 7957 # Code from module pselect-tests: 7958 # Code from module pthread-h: 7959 7960 7961 if test -z "$gl_anythreadlib_early_done"; then 7962 case "$host_os" in 7963 osf*) 7964 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7965 # groks <pthread.h>. cc also understands the flag -pthread, but 7966 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7967 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7968 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7969 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7970 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7971 ;; 7972 esac 7973 # Some systems optimize for single-threaded programs by default, and 7974 # need special flags to disable these optimizations. For example, the 7975 # definition of 'errno' in <errno.h>. 7976 case "$host_os" in 7977 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7978 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7979 esac 7980 gl_anythreadlib_early_done=done 7981 fi 7982 7983 # Code from module pthread-h-tests: 7984 # Code from module pthread-thread: 7985 # Code from module pthread-thread-tests: 7986 # Code from module pthread_sigmask: 7987 # Code from module pthread_sigmask-tests: 7988 # Code from module putenv: 7989 # Code from module qcopy-acl: 7990 # Code from module qset-acl: 7991 # Code from module quote: 7992 # Code from module quotearg: 7993 # Code from module quotearg-simple: 7994 # Code from module quotearg-simple-tests: 7995 # Code from module raise: 7996 # Code from module raise-tests: 7997 # Code from module rawmemchr: 7998 # Code from module rawmemchr-tests: 7999 # Code from module read-file: 8000 # Code from module read-file-tests: 8001 # Code from module readdir: 8002 # Code from module readlink: 8003 # Code from module readlink-tests: 8004 # Code from module readme-release: 8005 # Code from module realloc-gnu: 8006 # Code from module realloc-gnu-tests: 8007 # Code from module realloc-posix: 8008 # Code from module reallocarray: 8009 # Code from module reallocarray-tests: 8010 # Code from module regex: 8011 # Code from module regex-tests: 8012 # Code from module rename: 8013 # Code from module rename-tests: 8014 # Code from module rmdir: 8015 # Code from module rmdir-tests: 8016 # Code from module same-inode: 8017 # Code from module sched: 8018 # Code from module sched-tests: 8019 # Code from module select: 8020 # Code from module select-tests: 8021 # Code from module selinux-h: 8022 # Code from module setenv: 8023 # Code from module setenv-tests: 8024 # Code from module setlocale: 8025 # Code from module setlocale-null: 8026 # Code from module setlocale-null-tests: 8027 # Code from module setlocale-tests: 8028 # Code from module setsockopt: 8029 # Code from module setsockopt-tests: 8030 # Code from module signal-h: 8031 # Code from module signal-h-tests: 8032 # Code from module sigprocmask: 8033 # Code from module sigprocmask-tests: 8034 # Code from module sleep: 8035 # Code from module sleep-tests: 8036 # Code from module snippet/_Noreturn: 8037 # Code from module snippet/arg-nonnull: 8038 # Code from module snippet/c++defs: 8039 # Code from module snippet/warn-on-use: 8040 # Code from module socket: 8041 # Code from module socketlib: 8042 # Code from module sockets: 8043 # Code from module sockets-tests: 8044 # Code from module socklen: 8045 # Code from module ssize_t: 8046 # Code from module stat: 8047 # Code from module stat-macros: 8048 # Code from module stat-tests: 8049 # Code from module stat-time: 8050 # Code from module stat-time-tests: 8051 # Code from module std-gnu11: 8052 # Code from module stdalign: 8053 # Code from module stdalign-tests: 8054 # Code from module stdarg: 8055 8056 8057 8058 # Code from module stdarg-tests: 8059 # Code from module stdbool: 8060 # Code from module stdbool-tests: 8061 # Code from module stdckdint: 8062 # Code from module stdckdint-tests: 8063 # Code from module stddef: 8064 # Code from module stddef-tests: 8065 # Code from module stdint: 8066 # Code from module stdint-tests: 8067 # Code from module stdio: 8068 # Code from module stdio-tests: 8069 # Code from module stdlib: 8070 # Code from module stdlib-tests: 8071 # Code from module strdup-posix: 8072 # Code from module streq: 8073 # Code from module strerror: 8074 # Code from module strerror-override: 8075 # Code from module strerror-tests: 8076 # Code from module strerror_r-posix: 8077 # Code from module strerror_r-posix-tests: 8078 # Code from module string: 8079 # Code from module string-tests: 8080 # Code from module strverscmp: 8081 # Code from module strverscmp-tests: 8082 # Code from module symlink: 8083 # Code from module symlink-tests: 8084 # Code from module sys_ioctl: 8085 # Code from module sys_ioctl-tests: 8086 # Code from module sys_random: 8087 # Code from module sys_random-tests: 8088 # Code from module sys_select: 8089 # Code from module sys_select-tests: 8090 # Code from module sys_socket: 8091 # Code from module sys_socket-tests: 8092 # Code from module sys_stat: 8093 # Code from module sys_stat-tests: 8094 # Code from module sys_time: 8095 # Code from module sys_time-tests: 8096 # Code from module sys_types: 8097 # Code from module sys_types-tests: 8098 # Code from module sys_uio: 8099 # Code from module sys_uio-tests: 8100 # Code from module tempname: 8101 # Code from module test-framework-sh: 8102 # Code from module test-framework-sh-tests: 8103 # Code from module thread: 8104 # Code from module thread-optim: 8105 # Code from module thread-tests: 8106 # Code from module threadlib: 8107 8108 8109 8110 # Code from module time: 8111 # Code from module time-tests: 8112 # Code from module unistd: 8113 # Code from module unistd-tests: 8114 # Code from module unlocked-io: 8115 # Code from module unlocked-io-internal: 8116 # Code from module unsetenv: 8117 # Code from module unsetenv-tests: 8118 # Code from module update-copyright: 8119 # Code from module update-copyright-tests: 8120 # Code from module useless-if-before-free: 8121 # Code from module vararrays: 8122 # Code from module vc-list-files: 8123 # Code from module vc-list-files-tests: 8124 # Code from module verify: 8125 # Code from module verify-tests: 8126 # Code from module version-etc: 8127 # Code from module version-etc-fsf: 8128 # Code from module version-etc-tests: 8129 # Code from module vma-iter: 8130 # Code from module warnings: 8131 # Code from module wchar: 8132 # Code from module wchar-tests: 8133 # Code from module wcrtomb: 8134 # Code from module wcrtomb-tests: 8135 # Code from module wctob: 8136 # Code from module wctomb: 8137 # Code from module wctype-h: 8138 # Code from module wctype-h-tests: 8139 # Code from module windows-mutex: 8140 # Code from module windows-once: 8141 # Code from module windows-recmutex: 8142 # Code from module windows-rwlock: 8143 # Code from module windows-thread: 8144 # Code from module windows-tls: 8145 # Code from module xalloc: 8146 # Code from module xalloc-die: 8147 # Code from module xalloc-die-tests: 8148 # Code from module xalloc-oversized: 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 # Check whether --enable-cross-guesses was given. 8160 if test ${enable_cross_guesses+y} 8161 then : 8162 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then 8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 8164 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} 8165 enableval=conservative 8166 fi 8167 gl_cross_guesses="$enableval" 8168 else case e in #( 8169 e) gl_cross_guesses=conservative ;; 8170 esac 8171 fi 8172 8173 if test $gl_cross_guesses = risky; then 8174 gl_cross_guess_normal="guessing yes" 8175 gl_cross_guess_inverted="guessing no" 8176 else 8177 gl_cross_guess_normal="guessing no" 8178 gl_cross_guess_inverted="guessing yes" 8179 fi 8180 LIBC_FATAL_STDERR_=1 8181 export LIBC_FATAL_STDERR_ 8182 8183 8184 8185 gl_need_lib_has_acl= 8186 # Check whether --enable-acl was given. 8187 if test ${enable_acl+y} 8188 then : 8189 enableval=$enable_acl; 8190 else case e in #( 8191 e) enable_acl=auto ;; 8192 esac 8193 fi 8194 8195 8196 ac_func= 8197 for ac_item in $ac_func_c_list 8198 do 8199 if test $ac_func; then 8200 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 8201 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 8202 echo "#define $ac_item 1" >> confdefs.h 8203 fi 8204 ac_func= 8205 else 8206 ac_func=$ac_item 8207 fi 4129 8208 done 4130 fi 4131 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 4132 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 4133 if test "$ac_cv_sys_large_files" != no; then 4134 4135 cat >>confdefs.h <<_ACEOF 4136 #define _LARGE_FILES $ac_cv_sys_large_files 4137 _ACEOF 4138 4139 fi 4140 rm -f conftest* 4141 fi 4142 4143 echo "$as_me:$LINENO: checking for long file names" >&5 4144 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 4145 if test "${ac_cv_sys_long_file_names+set}" = set; then 4146 echo $ECHO_N "(cached) $ECHO_C" >&6 4147 else 4148 ac_cv_sys_long_file_names=yes 4149 # Test for long file names in all the places we know might matter: 4150 # . the current directory, where building will happen 4151 # $prefix/lib where we will be installing things 4152 # $exec_prefix/lib likewise 4153 # eval it to expand exec_prefix. 4154 # $TMPDIR if set, where it might want to write temporary files 4155 # if $TMPDIR is not set: 4156 # /tmp where it might want to write temporary files 4157 # /var/tmp likewise 4158 # /usr/tmp likewise 4159 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 4160 ac_tmpdirs=$TMPDIR 4161 else 4162 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 4163 fi 4164 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 4165 test -d $ac_dir || continue 4166 test -w $ac_dir || continue # It is less confusing to not echo anything here. 4167 ac_xdir=$ac_dir/cf$$ 4168 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue 4169 ac_tf1=$ac_xdir/conftest9012345 4170 ac_tf2=$ac_xdir/conftest9012346 4171 (echo 1 >$ac_tf1) 2>/dev/null 4172 (echo 2 >$ac_tf2) 2>/dev/null 4173 ac_val=`cat $ac_tf1 2>/dev/null` 4174 if test ! -f $ac_tf1 || test "$ac_val" != 1; then 4175 ac_cv_sys_long_file_names=no 4176 rm -rf $ac_xdir 2>/dev/null 4177 break 4178 fi 4179 rm -rf $ac_xdir 2>/dev/null 4180 done 4181 fi 4182 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 4183 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 4184 if test $ac_cv_sys_long_file_names = yes; then 4185 4186 cat >>confdefs.h <<\_ACEOF 4187 #define HAVE_LONG_FILE_NAMES 1 4188 _ACEOF 4189 4190 fi 4191 4192 4193 echo "$as_me:$LINENO: checking whether -lcP is needed" >&5 4194 echo $ECHO_N "checking whether -lcP is needed... $ECHO_C" >&6 4195 if test "${sed_cv_libcp_needed+set}" = set; then 4196 echo $ECHO_N "(cached) $ECHO_C" >&6 4197 else 4198 4199 if test "$cross_compiling" = yes; then 4200 sed_cv_libcp_needed="assuming no" 4201 else 4202 cat >conftest.$ac_ext <<_ACEOF 4203 /* confdefs.h. */ 4204 _ACEOF 4205 cat confdefs.h >>conftest.$ac_ext 4206 cat >>conftest.$ac_ext <<_ACEOF 8209 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8210 if test "x$ac_cv_type_size_t" = xyes 8211 then : 8212 8213 else case e in #( 8214 e) 8215 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 8216 ;; 8217 esac 8218 fi 8219 8220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8221 # for constant arguments. Useless! 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8223 printf %s "checking for working alloca.h... " >&6; } 8224 if test ${ac_cv_working_alloca_h+y} 8225 then : 8226 printf %s "(cached) " >&6 8227 else case e in #( 8228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207 8229 /* end confdefs.h. */ 4208 4209 #include <stdio.h> 4210 #include <errno.h> 4211 4212 int main() 8230 #include <alloca.h> 8231 int 8232 main (void) 4213 8233 { 4214 FILE *fp; 4215 int result; 4216 errno = 0; 4217 fp = fopen ("conftest.c", "r"); 4218 if (!fp) return 0; /* error, assume not needed */ 4219 result = fflush (fp) == EOF && errno == 0; 4220 fclose (fp); 4221 return result; 4222 } 4223 _ACEOF 4224 rm -f conftest$ac_exeext 4225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4226 (eval $ac_link) 2>&5 4227 ac_status=$? 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4231 (eval $ac_try) 2>&5 4232 ac_status=$? 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); }; }; then 4235 sed_cv_libcp_needed=no 4236 else 4237 echo "$as_me: program exited with status $ac_status" >&5 4238 echo "$as_me: failed program was:" >&5 4239 sed 's/^/| /' conftest.$ac_ext >&5 4240 4241 ( exit $ac_status ) 4242 sed_cv_libcp_needed=yes 4243 fi 4244 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4245 fi 4246 4247 fi 4248 echo "$as_me:$LINENO: result: $sed_cv_libcp_needed" >&5 4249 echo "${ECHO_T}$sed_cv_libcp_needed" >&6 4250 if test "$sed_cv_libcp_needed" = yes; then 4251 LIBS="-lcP $LIBS" 4252 fi 4253 4254 4255 4256 4257 4258 4259 ac_header_dirent=no 4260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4262 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 4264 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4265 echo $ECHO_N "(cached) $ECHO_C" >&6 4266 else 4267 cat >conftest.$ac_ext <<_ACEOF 4268 /* confdefs.h. */ 4269 _ACEOF 4270 cat confdefs.h >>conftest.$ac_ext 4271 cat >>conftest.$ac_ext <<_ACEOF 4272 /* end confdefs.h. */ 4273 #include <sys/types.h> 4274 #include <$ac_hdr> 4275 4276 int 4277 main () 4278 { 4279 if ((DIR *) 0) 4280 return 0; 8234 char *p = (char *) alloca (2 * sizeof (int)); 8235 if (p) return 0; 4281 8236 ; 4282 8237 return 0; 4283 8238 } 4284 8239 _ACEOF 4285 rm -f conftest.$ac_objext 4286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4287 (eval $ac_compile) 2>conftest.er1 4288 ac_status=$? 4289 grep -v '^ *+' conftest.er1 >conftest.err 4290 rm -f conftest.er1 4291 cat conftest.err >&5 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); } && 4294 { ac_try='test -z "$ac_c_werror_flag" 4295 || test ! -s conftest.err' 4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 (eval $ac_try) 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); }; } && 4301 { ac_try='test -s conftest.$ac_objext' 4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4303 (eval $ac_try) 2>&5 4304 ac_status=$? 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306 (exit $ac_status); }; }; then 4307 eval "$as_ac_Header=yes" 4308 else 4309 echo "$as_me: failed program was:" >&5 4310 sed 's/^/| /' conftest.$ac_ext >&5 4311 4312 eval "$as_ac_Header=no" 4313 fi 4314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4315 fi 4316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4319 cat >>confdefs.h <<_ACEOF 4320 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4321 _ACEOF 4322 4323 ac_header_dirent=$ac_hdr; break 4324 fi 4325 4326 done 4327 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4328 if test $ac_header_dirent = dirent.h; then 4329 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4330 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4331 if test "${ac_cv_search_opendir+set}" = set; then 4332 echo $ECHO_N "(cached) $ECHO_C" >&6 4333 else 4334 ac_func_search_save_LIBS=$LIBS 4335 ac_cv_search_opendir=no 4336 cat >conftest.$ac_ext <<_ACEOF 4337 /* confdefs.h. */ 4338 _ACEOF 4339 cat confdefs.h >>conftest.$ac_ext 4340 cat >>conftest.$ac_ext <<_ACEOF 8240 if ac_fn_c_try_link "$LINENO" 8241 then : 8242 ac_cv_working_alloca_h=yes 8243 else case e in #( 8244 e) ac_cv_working_alloca_h=no ;; 8245 esac 8246 fi 8247 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8248 conftest$ac_exeext conftest.$ac_ext ;; 8249 esac 8250 fi 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8252 printf "%s\n" "$ac_cv_working_alloca_h" >&6; } 8253 if test $ac_cv_working_alloca_h = yes; then 8254 8255 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 8256 8257 fi 8258 8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8260 printf %s "checking for alloca... " >&6; } 8261 if test ${ac_cv_func_alloca_works+y} 8262 then : 8263 printf %s "(cached) " >&6 8264 else case e in #( 8265 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h 8266 if test "$ac_cv_func_alloca_works" != yes 8267 then : 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341 8269 /* end confdefs.h. */ 4342 4343 /* Override any gcc2 internal prototype to avoid an error. */ 4344 #ifdef __cplusplus 8270 #include <stdlib.h> 8271 #include <stddef.h> 8272 #ifndef alloca 8273 # ifdef __GNUC__ 8274 # define alloca __builtin_alloca 8275 # elif defined _MSC_VER 8276 # include <malloc.h> 8277 # define alloca _alloca 8278 # else 8279 # ifdef __cplusplus 4345 8280 extern "C" 8281 # endif 8282 void *alloca (size_t); 8283 # endif 4346 8284 #endif 4347 /* We use char because int might match the return type of a gcc2 4348 builtin and then its argument prototype would still apply. */ 4349 char opendir (); 8285 4350 8286 int 4351 main ( )8287 main (void) 4352 8288 { 4353 opendir (); 8289 char *p = (char *) alloca (1); 8290 if (p) return 0; 4354 8291 ; 4355 8292 return 0; 4356 8293 } 4357 8294 _ACEOF 4358 rm -f conftest.$ac_objext conftest$ac_exeext 4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4360 (eval $ac_link) 2>conftest.er1 4361 ac_status=$? 4362 grep -v '^ *+' conftest.er1 >conftest.err 4363 rm -f conftest.er1 4364 cat conftest.err >&5 4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4366 (exit $ac_status); } && 4367 { ac_try='test -z "$ac_c_werror_flag" 4368 || test ! -s conftest.err' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; } && 4374 { ac_try='test -s conftest$ac_exeext' 4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 (eval $ac_try) 2>&5 4377 ac_status=$? 4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 (exit $ac_status); }; }; then 4380 ac_cv_search_opendir="none required" 4381 else 4382 echo "$as_me: failed program was:" >&5 4383 sed 's/^/| /' conftest.$ac_ext >&5 4384 4385 fi 4386 rm -f conftest.err conftest.$ac_objext \ 4387 conftest$ac_exeext conftest.$ac_ext 4388 if test "$ac_cv_search_opendir" = no; then 4389 for ac_lib in dir; do 4390 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4391 cat >conftest.$ac_ext <<_ACEOF 4392 /* confdefs.h. */ 4393 _ACEOF 4394 cat confdefs.h >>conftest.$ac_ext 4395 cat >>conftest.$ac_ext <<_ACEOF 4396 /* end confdefs.h. */ 4397 4398 /* Override any gcc2 internal prototype to avoid an error. */ 4399 #ifdef __cplusplus 4400 extern "C" 4401 #endif 4402 /* We use char because int might match the return type of a gcc2 4403 builtin and then its argument prototype would still apply. */ 4404 char opendir (); 4405 int 4406 main () 4407 { 4408 opendir (); 4409 ; 4410 return 0; 4411 } 4412 _ACEOF 4413 rm -f conftest.$ac_objext conftest$ac_exeext 4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4415 (eval $ac_link) 2>conftest.er1 4416 ac_status=$? 4417 grep -v '^ *+' conftest.er1 >conftest.err 4418 rm -f conftest.er1 4419 cat conftest.err >&5 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); } && 4422 { ac_try='test -z "$ac_c_werror_flag" 4423 || test ! -s conftest.err' 4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4425 (eval $ac_try) 2>&5 4426 ac_status=$? 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); }; } && 4429 { ac_try='test -s conftest$ac_exeext' 4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4431 (eval $ac_try) 2>&5 4432 ac_status=$? 4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4434 (exit $ac_status); }; }; then 4435 ac_cv_search_opendir="-l$ac_lib" 4436 break 4437 else 4438 echo "$as_me: failed program was:" >&5 4439 sed 's/^/| /' conftest.$ac_ext >&5 4440 4441 fi 4442 rm -f conftest.err conftest.$ac_objext \ 4443 conftest$ac_exeext conftest.$ac_ext 4444 done 4445 fi 4446 LIBS=$ac_func_search_save_LIBS 4447 fi 4448 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4449 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4450 if test "$ac_cv_search_opendir" != no; then 4451 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4452 4453 fi 4454 4455 else 4456 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4458 if test "${ac_cv_search_opendir+set}" = set; then 4459 echo $ECHO_N "(cached) $ECHO_C" >&6 4460 else 4461 ac_func_search_save_LIBS=$LIBS 4462 ac_cv_search_opendir=no 4463 cat >conftest.$ac_ext <<_ACEOF 4464 /* confdefs.h. */ 4465 _ACEOF 4466 cat confdefs.h >>conftest.$ac_ext 4467 cat >>conftest.$ac_ext <<_ACEOF 4468 /* end confdefs.h. */ 4469 4470 /* Override any gcc2 internal prototype to avoid an error. */ 4471 #ifdef __cplusplus 4472 extern "C" 4473 #endif 4474 /* We use char because int might match the return type of a gcc2 4475 builtin and then its argument prototype would still apply. */ 4476 char opendir (); 4477 int 4478 main () 4479 { 4480 opendir (); 4481 ; 4482 return 0; 4483 } 4484 _ACEOF 4485 rm -f conftest.$ac_objext conftest$ac_exeext 4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4487 (eval $ac_link) 2>conftest.er1 4488 ac_status=$? 4489 grep -v '^ *+' conftest.er1 >conftest.err 4490 rm -f conftest.er1 4491 cat conftest.err >&5 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); } && 4494 { ac_try='test -z "$ac_c_werror_flag" 4495 || test ! -s conftest.err' 4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4497 (eval $ac_try) 2>&5 4498 ac_status=$? 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); }; } && 4501 { ac_try='test -s conftest$ac_exeext' 4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4503 (eval $ac_try) 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); }; }; then 4507 ac_cv_search_opendir="none required" 4508 else 4509 echo "$as_me: failed program was:" >&5 4510 sed 's/^/| /' conftest.$ac_ext >&5 4511 4512 fi 4513 rm -f conftest.err conftest.$ac_objext \ 4514 conftest$ac_exeext conftest.$ac_ext 4515 if test "$ac_cv_search_opendir" = no; then 4516 for ac_lib in x; do 4517 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4518 cat >conftest.$ac_ext <<_ACEOF 4519 /* confdefs.h. */ 4520 _ACEOF 4521 cat confdefs.h >>conftest.$ac_ext 4522 cat >>conftest.$ac_ext <<_ACEOF 4523 /* end confdefs.h. */ 4524 4525 /* Override any gcc2 internal prototype to avoid an error. */ 4526 #ifdef __cplusplus 4527 extern "C" 4528 #endif 4529 /* We use char because int might match the return type of a gcc2 4530 builtin and then its argument prototype would still apply. */ 4531 char opendir (); 4532 int 4533 main () 4534 { 4535 opendir (); 4536 ; 4537 return 0; 4538 } 4539 _ACEOF 4540 rm -f conftest.$ac_objext conftest$ac_exeext 4541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4542 (eval $ac_link) 2>conftest.er1 4543 ac_status=$? 4544 grep -v '^ *+' conftest.er1 >conftest.err 4545 rm -f conftest.er1 4546 cat conftest.err >&5 4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); } && 4549 { ac_try='test -z "$ac_c_werror_flag" 4550 || test ! -s conftest.err' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; } && 4556 { ac_try='test -s conftest$ac_exeext' 4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 (eval $ac_try) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 ac_cv_search_opendir="-l$ac_lib" 4563 break 4564 else 4565 echo "$as_me: failed program was:" >&5 4566 sed 's/^/| /' conftest.$ac_ext >&5 4567 4568 fi 4569 rm -f conftest.err conftest.$ac_objext \ 4570 conftest$ac_exeext conftest.$ac_ext 4571 done 4572 fi 4573 LIBS=$ac_func_search_save_LIBS 4574 fi 4575 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4576 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4577 if test "$ac_cv_search_opendir" != no; then 4578 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4579 4580 fi 4581 4582 fi 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 for ac_header in io.h limits.h locale.h stdarg.h alloca.h stddef.h errno.h \ 4596 wchar.h wctype.h sys/file.h mcheck.h 4597 do 4598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4599 echo "$as_me:$LINENO: checking for $ac_header" >&5 4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4602 echo $ECHO_N "(cached) $ECHO_C" >&6 4603 else 4604 cat >conftest.$ac_ext <<_ACEOF 4605 /* confdefs.h. */ 4606 _ACEOF 4607 cat confdefs.h >>conftest.$ac_ext 4608 cat >>conftest.$ac_ext <<_ACEOF 4609 /* end confdefs.h. */ 4610 $ac_includes_default 4611 4612 #include <$ac_header> 4613 _ACEOF 4614 rm -f conftest.$ac_objext 4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4616 (eval $ac_compile) 2>conftest.er1 4617 ac_status=$? 4618 grep -v '^ *+' conftest.er1 >conftest.err 4619 rm -f conftest.er1 4620 cat conftest.err >&5 4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 (exit $ac_status); } && 4623 { ac_try='test -z "$ac_c_werror_flag" 4624 || test ! -s conftest.err' 4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4626 (eval $ac_try) 2>&5 4627 ac_status=$? 4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4629 (exit $ac_status); }; } && 4630 { ac_try='test -s conftest.$ac_objext' 4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4632 (eval $ac_try) 2>&5 4633 ac_status=$? 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); }; }; then 4636 eval "$as_ac_Header=yes" 4637 else 4638 echo "$as_me: failed program was:" >&5 4639 sed 's/^/| /' conftest.$ac_ext >&5 4640 4641 eval "$as_ac_Header=no" 4642 fi 4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4644 fi 4645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4648 cat >>confdefs.h <<_ACEOF 4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4650 _ACEOF 4651 4652 fi 4653 4654 done 4655 4656 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4657 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4658 if test "${ac_cv_c_const+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660 else 4661 cat >conftest.$ac_ext <<_ACEOF 4662 /* confdefs.h. */ 4663 _ACEOF 4664 cat confdefs.h >>conftest.$ac_ext 4665 cat >>conftest.$ac_ext <<_ACEOF 4666 /* end confdefs.h. */ 4667 4668 int 4669 main () 4670 { 4671 /* FIXME: Include the comments suggested by Paul. */ 4672 #ifndef __cplusplus 4673 /* Ultrix mips cc rejects this. */ 4674 typedef int charset[2]; 4675 const charset x; 4676 /* SunOS 4.1.1 cc rejects this. */ 4677 char const *const *ccp; 4678 char **p; 4679 /* NEC SVR4.0.2 mips cc rejects this. */ 4680 struct point {int x, y;}; 4681 static struct point const zero = {0,0}; 4682 /* AIX XL C 1.02.0.0 rejects this. 4683 It does not let you subtract one const X* pointer from another in 4684 an arm of an if-expression whose if-part is not a constant 4685 expression */ 4686 const char *g = "string"; 4687 ccp = &g + (g ? g-g : 0); 4688 /* HPUX 7.0 cc rejects these. */ 4689 ++ccp; 4690 p = (char**) ccp; 4691 ccp = (char const *const *) p; 4692 { /* SCO 3.2v4 cc rejects this. */ 4693 char *t; 4694 char const *s = 0 ? (char *) 0 : (char const *) 0; 4695 4696 *t++ = 0; 4697 } 4698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4699 int x[] = {25, 17}; 4700 const int *foo = &x[0]; 4701 ++foo; 4702 } 4703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4704 typedef const int *iptr; 4705 iptr p = 0; 4706 ++p; 4707 } 4708 { /* AIX XL C 1.02.0.0 rejects this saying 4709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4710 struct s { int j; const int *ap[3]; }; 4711 struct s *b; b->j = 5; 4712 } 4713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4714 const int foo = 10; 4715 } 4716 #endif 4717 4718 ; 4719 return 0; 4720 } 4721 _ACEOF 4722 rm -f conftest.$ac_objext 4723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4724 (eval $ac_compile) 2>conftest.er1 4725 ac_status=$? 4726 grep -v '^ *+' conftest.er1 >conftest.err 4727 rm -f conftest.er1 4728 cat conftest.err >&5 4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); } && 4731 { ac_try='test -z "$ac_c_werror_flag" 4732 || test ! -s conftest.err' 4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4734 (eval $ac_try) 2>&5 4735 ac_status=$? 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4737 (exit $ac_status); }; } && 4738 { ac_try='test -s conftest.$ac_objext' 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4740 (eval $ac_try) 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); }; }; then 4744 ac_cv_c_const=yes 4745 else 4746 echo "$as_me: failed program was:" >&5 4747 sed 's/^/| /' conftest.$ac_ext >&5 4748 4749 ac_cv_c_const=no 4750 fi 4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4752 fi 4753 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4754 echo "${ECHO_T}$ac_cv_c_const" >&6 4755 if test $ac_cv_c_const = no; then 4756 4757 cat >>confdefs.h <<\_ACEOF 4758 #define const 4759 _ACEOF 4760 4761 fi 4762 4763 echo "$as_me:$LINENO: checking for size_t" >&5 4764 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4765 if test "${ac_cv_type_size_t+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767 else 4768 cat >conftest.$ac_ext <<_ACEOF 4769 /* confdefs.h. */ 4770 _ACEOF 4771 cat confdefs.h >>conftest.$ac_ext 4772 cat >>conftest.$ac_ext <<_ACEOF 4773 /* end confdefs.h. */ 4774 $ac_includes_default 4775 int 4776 main () 4777 { 4778 if ((size_t *) 0) 4779 return 0; 4780 if (sizeof (size_t)) 4781 return 0; 4782 ; 4783 return 0; 4784 } 4785 _ACEOF 4786 rm -f conftest.$ac_objext 4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4788 (eval $ac_compile) 2>conftest.er1 4789 ac_status=$? 4790 grep -v '^ *+' conftest.er1 >conftest.err 4791 rm -f conftest.er1 4792 cat conftest.err >&5 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } && 4795 { ac_try='test -z "$ac_c_werror_flag" 4796 || test ! -s conftest.err' 4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 (eval $ac_try) 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; } && 4802 { ac_try='test -s conftest.$ac_objext' 4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4804 (eval $ac_try) 2>&5 4805 ac_status=$? 4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); }; }; then 4808 ac_cv_type_size_t=yes 4809 else 4810 echo "$as_me: failed program was:" >&5 4811 sed 's/^/| /' conftest.$ac_ext >&5 4812 4813 ac_cv_type_size_t=no 4814 fi 4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4816 fi 4817 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4818 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4819 if test $ac_cv_type_size_t = yes; then 4820 : 4821 else 4822 4823 cat >>confdefs.h <<_ACEOF 4824 #define size_t unsigned 4825 _ACEOF 4826 4827 fi 4828 4829 echo "$as_me:$LINENO: checking for ssize_t" >&5 4830 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 4831 if test "${ac_cv_type_ssize_t+set}" = set; then 4832 echo $ECHO_N "(cached) $ECHO_C" >&6 4833 else 4834 cat >conftest.$ac_ext <<_ACEOF 4835 /* confdefs.h. */ 4836 _ACEOF 4837 cat confdefs.h >>conftest.$ac_ext 4838 cat >>conftest.$ac_ext <<_ACEOF 4839 /* end confdefs.h. */ 4840 $ac_includes_default 4841 int 4842 main () 4843 { 4844 if ((ssize_t *) 0) 4845 return 0; 4846 if (sizeof (ssize_t)) 4847 return 0; 4848 ; 4849 return 0; 4850 } 4851 _ACEOF 4852 rm -f conftest.$ac_objext 4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4854 (eval $ac_compile) 2>conftest.er1 4855 ac_status=$? 4856 grep -v '^ *+' conftest.er1 >conftest.err 4857 rm -f conftest.er1 4858 cat conftest.err >&5 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); } && 4861 { ac_try='test -z "$ac_c_werror_flag" 4862 || test ! -s conftest.err' 4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4864 (eval $ac_try) 2>&5 4865 ac_status=$? 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); }; } && 4868 { ac_try='test -s conftest.$ac_objext' 4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4870 (eval $ac_try) 2>&5 4871 ac_status=$? 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); }; }; then 4874 ac_cv_type_ssize_t=yes 4875 else 4876 echo "$as_me: failed program was:" >&5 4877 sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_cv_type_ssize_t=no 4880 fi 4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4882 fi 4883 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 4884 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 4885 if test $ac_cv_type_ssize_t = yes; then 4886 : 4887 else 4888 4889 cat >>confdefs.h <<_ACEOF 4890 #define ssize_t int 4891 _ACEOF 4892 4893 fi 4894 4895 4896 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 4897 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 4898 if test "${ac_cv_header_stdbool_h+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900 else 4901 cat >conftest.$ac_ext <<_ACEOF 4902 /* confdefs.h. */ 4903 _ACEOF 4904 cat confdefs.h >>conftest.$ac_ext 4905 cat >>conftest.$ac_ext <<_ACEOF 4906 /* end confdefs.h. */ 4907 4908 #include <stdbool.h> 4909 #ifndef bool 4910 "error: bool is not defined" 4911 #endif 4912 #ifndef false 4913 "error: false is not defined" 4914 #endif 4915 #if false 4916 "error: false is not 0" 4917 #endif 4918 #ifndef true 4919 "error: false is not defined" 4920 #endif 4921 #if true != 1 4922 "error: true is not 1" 4923 #endif 4924 #ifndef __bool_true_false_are_defined 4925 "error: __bool_true_false_are_defined is not defined" 4926 #endif 4927 4928 struct s { _Bool s: 1; _Bool t; } s; 4929 4930 char a[true == 1 ? 1 : -1]; 4931 char b[false == 0 ? 1 : -1]; 4932 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4933 char d[(bool) -0.5 == true ? 1 : -1]; 4934 bool e = &s; 4935 char f[(_Bool) -0.0 == false ? 1 : -1]; 4936 char g[true]; 4937 char h[sizeof (_Bool)]; 4938 char i[sizeof s.t]; 4939 4940 int 4941 main () 4942 { 4943 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 4944 ; 4945 return 0; 4946 } 4947 _ACEOF 4948 rm -f conftest.$ac_objext 4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4950 (eval $ac_compile) 2>conftest.er1 4951 ac_status=$? 4952 grep -v '^ *+' conftest.er1 >conftest.err 4953 rm -f conftest.er1 4954 cat conftest.err >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); } && 4957 { ac_try='test -z "$ac_c_werror_flag" 4958 || test ! -s conftest.err' 4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4960 (eval $ac_try) 2>&5 4961 ac_status=$? 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4963 (exit $ac_status); }; } && 4964 { ac_try='test -s conftest.$ac_objext' 4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4966 (eval $ac_try) 2>&5 4967 ac_status=$? 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); }; }; then 4970 ac_cv_header_stdbool_h=yes 4971 else 4972 echo "$as_me: failed program was:" >&5 4973 sed 's/^/| /' conftest.$ac_ext >&5 4974 4975 ac_cv_header_stdbool_h=no 4976 fi 4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4978 fi 4979 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 4980 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 4981 echo "$as_me:$LINENO: checking for _Bool" >&5 4982 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 4983 if test "${ac_cv_type__Bool+set}" = set; then 4984 echo $ECHO_N "(cached) $ECHO_C" >&6 4985 else 4986 cat >conftest.$ac_ext <<_ACEOF 4987 /* confdefs.h. */ 4988 _ACEOF 4989 cat confdefs.h >>conftest.$ac_ext 4990 cat >>conftest.$ac_ext <<_ACEOF 4991 /* end confdefs.h. */ 4992 $ac_includes_default 4993 int 4994 main () 4995 { 4996 if ((_Bool *) 0) 4997 return 0; 4998 if (sizeof (_Bool)) 4999 return 0; 5000 ; 5001 return 0; 5002 } 5003 _ACEOF 5004 rm -f conftest.$ac_objext 5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5006 (eval $ac_compile) 2>conftest.er1 5007 ac_status=$? 5008 grep -v '^ *+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5012 (exit $ac_status); } && 5013 { ac_try='test -z "$ac_c_werror_flag" 5014 || test ! -s conftest.err' 5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5016 (eval $ac_try) 2>&5 5017 ac_status=$? 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); }; } && 5020 { ac_try='test -s conftest.$ac_objext' 5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5022 (eval $ac_try) 2>&5 5023 ac_status=$? 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); }; }; then 5026 ac_cv_type__Bool=yes 5027 else 5028 echo "$as_me: failed program was:" >&5 5029 sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 ac_cv_type__Bool=no 5032 fi 5033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5034 fi 5035 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 5036 echo "${ECHO_T}$ac_cv_type__Bool" >&6 5037 if test $ac_cv_type__Bool = yes; then 5038 5039 cat >>confdefs.h <<_ACEOF 5040 #define HAVE__BOOL 1 5041 _ACEOF 5042 5043 5044 fi 5045 5046 if test $ac_cv_header_stdbool_h = yes; then 5047 5048 cat >>confdefs.h <<\_ACEOF 5049 #define HAVE_STDBOOL_H 1 5050 _ACEOF 5051 5052 fi 5053 if test "$ac_cv_type__Bool" = no; then 5054 HAVE__BOOL=0 5055 else 5056 HAVE__BOOL=1 5057 fi 5058 5059 if test "$ac_cv_header_stdbool_h" = no; then 5060 ac_config_files="$ac_config_files lib/stdbool.h:lib/stdbool_.h" 5061 5062 fi 5063 5064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5065 # for constant arguments. Useless! 5066 echo "$as_me:$LINENO: checking for working alloca.h" >&5 5067 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5068 if test "${ac_cv_working_alloca_h+set}" = set; then 5069 echo $ECHO_N "(cached) $ECHO_C" >&6 5070 else 5071 cat >conftest.$ac_ext <<_ACEOF 5072 /* confdefs.h. */ 5073 _ACEOF 5074 cat confdefs.h >>conftest.$ac_ext 5075 cat >>conftest.$ac_ext <<_ACEOF 5076 /* end confdefs.h. */ 5077 #include <alloca.h> 5078 int 5079 main () 5080 { 5081 char *p = (char *) alloca (2 * sizeof (int)); 5082 ; 5083 return 0; 5084 } 5085 _ACEOF 5086 rm -f conftest.$ac_objext conftest$ac_exeext 5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5088 (eval $ac_link) 2>conftest.er1 5089 ac_status=$? 5090 grep -v '^ *+' conftest.er1 >conftest.err 5091 rm -f conftest.er1 5092 cat conftest.err >&5 5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); } && 5095 { ac_try='test -z "$ac_c_werror_flag" 5096 || test ! -s conftest.err' 5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5098 (eval $ac_try) 2>&5 5099 ac_status=$? 5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5101 (exit $ac_status); }; } && 5102 { ac_try='test -s conftest$ac_exeext' 5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5104 (eval $ac_try) 2>&5 5105 ac_status=$? 5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); }; }; then 5108 ac_cv_working_alloca_h=yes 5109 else 5110 echo "$as_me: failed program was:" >&5 5111 sed 's/^/| /' conftest.$ac_ext >&5 5112 5113 ac_cv_working_alloca_h=no 5114 fi 5115 rm -f conftest.err conftest.$ac_objext \ 5116 conftest$ac_exeext conftest.$ac_ext 5117 fi 5118 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5119 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5120 if test $ac_cv_working_alloca_h = yes; then 5121 5122 cat >>confdefs.h <<\_ACEOF 5123 #define HAVE_ALLOCA_H 1 5124 _ACEOF 5125 5126 fi 5127 5128 echo "$as_me:$LINENO: checking for alloca" >&5 5129 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5130 if test "${ac_cv_func_alloca_works+set}" = set; then 5131 echo $ECHO_N "(cached) $ECHO_C" >&6 5132 else 5133 cat >conftest.$ac_ext <<_ACEOF 5134 /* confdefs.h. */ 5135 _ACEOF 5136 cat confdefs.h >>conftest.$ac_ext 5137 cat >>conftest.$ac_ext <<_ACEOF 5138 /* end confdefs.h. */ 5139 #ifdef __GNUC__ 5140 # define alloca __builtin_alloca 5141 #else 5142 # ifdef _MSC_VER 5143 # include <malloc.h> 5144 # define alloca _alloca 5145 # else 5146 # if HAVE_ALLOCA_H 5147 # include <alloca.h> 5148 # else 5149 # ifdef _AIX 5150 #pragma alloca 5151 # else 5152 # ifndef alloca /* predefined by HP cc +Olibcalls */ 5153 char *alloca (); 5154 # endif 5155 # endif 5156 # endif 5157 # endif 5158 #endif 5159 5160 int 5161 main () 5162 { 5163 char *p = (char *) alloca (1); 5164 ; 5165 return 0; 5166 } 5167 _ACEOF 5168 rm -f conftest.$ac_objext conftest$ac_exeext 5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5170 (eval $ac_link) 2>conftest.er1 5171 ac_status=$? 5172 grep -v '^ *+' conftest.er1 >conftest.err 5173 rm -f conftest.er1 5174 cat conftest.err >&5 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); } && 5177 { ac_try='test -z "$ac_c_werror_flag" 5178 || test ! -s conftest.err' 5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5180 (eval $ac_try) 2>&5 5181 ac_status=$? 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); }; } && 5184 { ac_try='test -s conftest$ac_exeext' 5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5186 (eval $ac_try) 2>&5 5187 ac_status=$? 5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5189 (exit $ac_status); }; }; then 8295 if ac_fn_c_try_link "$LINENO" 8296 then : 5190 8297 ac_cv_func_alloca_works=yes 5191 else 5192 echo "$as_me: failed program was:" >&5 5193 sed 's/^/| /' conftest.$ac_ext >&5 5194 5195 ac_cv_func_alloca_works=no 5196 fi 5197 rm -f conftest.err conftest.$ac_objext \ 5198 conftest$ac_exeext conftest.$ac_ext 5199 fi 5200 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5201 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 8298 fi 8299 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8300 conftest$ac_exeext conftest.$ac_ext 8301 fi ;; 8302 esac 8303 fi 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8305 printf "%s\n" "$ac_cv_func_alloca_works" >&6; } 5202 8306 5203 8307 if test $ac_cv_func_alloca_works = yes; then 5204 8308 5205 cat >>confdefs.h <<\_ACEOF 5206 #define HAVE_ALLOCA 1 5207 _ACEOF 8309 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 5208 8310 5209 8311 else … … 5213 8315 # use ar to extract alloca.o from them instead of compiling alloca.c. 5214 8316 5215 ALLOCA=alloca.$ac_objext 5216 5217 cat >>confdefs.h <<\_ACEOF 5218 #define C_ALLOCA 1 8317 8318 8319 8320 8321 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8322 8323 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h 8324 8325 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8327 printf %s "checking stack direction for C alloca... " >&6; } 8328 if test ${ac_cv_c_stack_direction+y} 8329 then : 8330 printf %s "(cached) " >&6 8331 else case e in #( 8332 e) if test "$cross_compiling" = yes 8333 then : 8334 ac_cv_c_stack_direction=0 8335 else case e in #( 8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337 /* end confdefs.h. */ 8338 $ac_includes_default 8339 int 8340 find_stack_direction (int *addr, int depth) 8341 { 8342 int dir, dummy = 0; 8343 if (! addr) 8344 addr = &dummy; 8345 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8346 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8347 return dir + dummy; 8348 } 8349 8350 int 8351 main (int argc, char **argv) 8352 { 8353 return find_stack_direction (0, argc + !argv + 20) < 0; 8354 } 5219 8355 _ACEOF 5220 5221 5222 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5223 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5224 if test "${ac_cv_os_cray+set}" = set; then 5225 echo $ECHO_N "(cached) $ECHO_C" >&6 5226 else 5227 cat >conftest.$ac_ext <<_ACEOF 5228 /* confdefs.h. */ 8356 if ac_fn_c_try_run "$LINENO" 8357 then : 8358 ac_cv_c_stack_direction=1 8359 else case e in #( 8360 e) ac_cv_c_stack_direction=-1 ;; 8361 esac 8362 fi 8363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8364 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8365 esac 8366 fi 8367 ;; 8368 esac 8369 fi 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8371 printf "%s\n" "$ac_cv_c_stack_direction" >&6; } 8372 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h 8373 8374 8375 fi 8376 8377 8378 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 8380 printf %s "checking whether the preprocessor supports include_next... " >&6; } 8381 if test ${gl_cv_have_include_next+y} 8382 then : 8383 printf %s "(cached) " >&6 8384 else case e in #( 8385 e) rm -rf conftestd1a conftestd1b conftestd2 8386 mkdir conftestd1a conftestd1b conftestd2 8387 cat <<EOF > conftestd1a/conftest.h 8388 #define DEFINED_IN_CONFTESTD1 8389 #include_next <conftest.h> 8390 #ifdef DEFINED_IN_CONFTESTD2 8391 int foo; 8392 #else 8393 #error "include_next doesn't work" 8394 #endif 8395 EOF 8396 cat <<EOF > conftestd1b/conftest.h 8397 #define DEFINED_IN_CONFTESTD1 8398 #include <stdio.h> 8399 #include_next <conftest.h> 8400 #ifdef DEFINED_IN_CONFTESTD2 8401 int foo; 8402 #else 8403 #error "include_next doesn't work" 8404 #endif 8405 EOF 8406 cat <<EOF > conftestd2/conftest.h 8407 #ifndef DEFINED_IN_CONFTESTD1 8408 #error "include_next test doesn't work" 8409 #endif 8410 #define DEFINED_IN_CONFTESTD2 8411 EOF 8412 gl_save_CPPFLAGS="$CPPFLAGS" 8413 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8415 /* end confdefs.h. */ 8416 #include <conftest.h> 5229 8417 _ACEOF 5230 cat confdefs.h >>conftest.$ac_ext 5231 cat >>conftest.$ac_ext <<_ACEOF 8418 if ac_fn_c_try_compile "$LINENO" 8419 then : 8420 gl_cv_have_include_next=yes 8421 else case e in #( 8422 e) CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232 8424 /* end confdefs.h. */ 5233 #if defined(CRAY) && ! defined(CRAY2) 5234 webecray 5235 #else 5236 wenotbecray 8425 #include <conftest.h> 8426 _ACEOF 8427 if ac_fn_c_try_compile "$LINENO" 8428 then : 8429 gl_cv_have_include_next=buggy 8430 else case e in #( 8431 e) gl_cv_have_include_next=no ;; 8432 esac 8433 fi 8434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8435 ;; 8436 esac 8437 fi 8438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8439 CPPFLAGS="$gl_save_CPPFLAGS" 8440 rm -rf conftestd1a conftestd1b conftestd2 8441 ;; 8442 esac 8443 fi 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 8445 printf "%s\n" "$gl_cv_have_include_next" >&6; } 8446 PRAGMA_SYSTEM_HEADER= 8447 if test $gl_cv_have_include_next = yes; then 8448 INCLUDE_NEXT=include_next 8449 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 8450 if test -n "$GCC"; then 8451 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 8452 fi 8453 else 8454 if test $gl_cv_have_include_next = buggy; then 8455 INCLUDE_NEXT=include 8456 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 8457 else 8458 INCLUDE_NEXT=include 8459 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 8460 fi 8461 fi 8462 8463 8464 8465 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 8467 printf %s "checking whether source code line length is unlimited... " >&6; } 8468 if test ${gl_cv_source_line_length_unlimited+y} 8469 then : 8470 printf %s "(cached) " >&6 8471 else case e in #( 8472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473 /* end confdefs.h. */ 8474 8475 #ifdef __TANDEM 8476 choke me 5237 8477 #endif 5238 8478 5239 8479 _ACEOF 5240 8480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5241 $EGREP "webecray" >/dev/null 2>&1; then 5242 ac_cv_os_cray=yes 5243 else 5244 ac_cv_os_cray=no 5245 fi 5246 rm -f conftest* 5247 5248 fi 5249 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5250 echo "${ECHO_T}$ac_cv_os_cray" >&6 5251 if test $ac_cv_os_cray = yes; then 5252 for ac_func in _getb67 GETB67 getb67; do 5253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5254 echo "$as_me:$LINENO: checking for $ac_func" >&5 5255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5256 if eval "test \"\${$as_ac_var+set}\" = set"; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258 else 5259 cat >conftest.$ac_ext <<_ACEOF 5260 /* confdefs.h. */ 8481 $EGREP_TRADITIONAL "choke me" >/dev/null 2>&1 8482 then : 8483 gl_cv_source_line_length_unlimited=no 8484 else case e in #( 8485 e) gl_cv_source_line_length_unlimited=yes ;; 8486 esac 8487 fi 8488 rm -rf conftest* 8489 8490 ;; 8491 esac 8492 fi 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 8494 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } 8495 if test $gl_cv_source_line_length_unlimited = no; then 8496 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 8497 else 8498 PRAGMA_COLUMNS= 8499 fi 8500 8501 8502 8503 HAVE_BTOWC=1; 8504 HAVE_MBSINIT=1; 8505 HAVE_MBRTOWC=1; 8506 HAVE_MBRLEN=1; 8507 HAVE_MBSRTOWCS=1; 8508 HAVE_MBSNRTOWCS=1; 8509 HAVE_WCRTOMB=1; 8510 HAVE_WCSRTOMBS=1; 8511 HAVE_WCSNRTOMBS=1; 8512 HAVE_WMEMCHR=1; 8513 HAVE_WMEMCMP=1; 8514 HAVE_WMEMCPY=1; 8515 HAVE_WMEMMOVE=1; 8516 HAVE_WMEMPCPY=1; 8517 HAVE_WMEMSET=1; 8518 HAVE_WCSLEN=1; 8519 HAVE_WCSNLEN=1; 8520 HAVE_WCSCPY=1; 8521 HAVE_WCPCPY=1; 8522 HAVE_WCSNCPY=1; 8523 HAVE_WCPNCPY=1; 8524 HAVE_WCSCAT=1; 8525 HAVE_WCSNCAT=1; 8526 HAVE_WCSCMP=1; 8527 HAVE_WCSNCMP=1; 8528 HAVE_WCSCASECMP=1; 8529 HAVE_WCSNCASECMP=1; 8530 HAVE_WCSCOLL=1; 8531 HAVE_WCSXFRM=1; 8532 HAVE_WCSDUP=1; 8533 HAVE_WCSCHR=1; 8534 HAVE_WCSRCHR=1; 8535 HAVE_WCSCSPN=1; 8536 HAVE_WCSSPN=1; 8537 HAVE_WCSPBRK=1; 8538 HAVE_WCSSTR=1; 8539 HAVE_WCSTOK=1; 8540 HAVE_WCSWIDTH=1; 8541 HAVE_WCSFTIME=1; 8542 HAVE_DECL_WCTOB=1; 8543 HAVE_DECL_WCSDUP=1; 8544 HAVE_DECL_WCWIDTH=1; 8545 REPLACE_MBSTATE_T=0; 8546 REPLACE_BTOWC=0; 8547 REPLACE_WCTOB=0; 8548 REPLACE_MBSINIT=0; 8549 REPLACE_MBRTOWC=0; 8550 REPLACE_MBRLEN=0; 8551 REPLACE_MBSRTOWCS=0; 8552 REPLACE_MBSNRTOWCS=0; 8553 REPLACE_WCRTOMB=0; 8554 REPLACE_WCSRTOMBS=0; 8555 REPLACE_WCSNRTOMBS=0; 8556 REPLACE_WCWIDTH=0; 8557 REPLACE_WCSWIDTH=0; 8558 REPLACE_WCSFTIME=0; 8559 REPLACE_WCSTOK=0; 8560 8561 8562 8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 8564 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 8565 if test ${gl_cv_header_wchar_h_correct_inline+y} 8566 then : 8567 printf %s "(cached) " >&6 8568 else case e in #( 8569 e) gl_cv_header_wchar_h_correct_inline=yes 8570 case "$host_os" in 8571 *-gnu* | gnu*) 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573 /* end confdefs.h. */ 8574 8575 8576 #define wcstod renamed_wcstod 8577 #include <wchar.h> 8578 extern int zero (void); 8579 int main () { return zero(); } 8580 5261 8581 _ACEOF 5262 cat confdefs.h >>conftest.$ac_ext 5263 cat >>conftest.$ac_ext <<_ACEOF 8582 save_ac_compile="$ac_compile" 8583 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 8584 if echo '#include "conftest.c"' >conftest1.c \ 8585 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8586 (eval $ac_compile) 2>&5 8587 ac_status=$? 8588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8589 test $ac_status = 0; }; then 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264 8591 /* end confdefs.h. */ 5265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5266 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5267 #define $ac_func innocuous_$ac_func 5268 5269 /* System header to define __stub macros and hopefully few prototypes, 5270 which can conflict with char $ac_func (); below. 5271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5272 <limits.h> exists even on freestanding compilers. */ 5273 5274 #ifdef __STDC__ 5275 # include <limits.h> 5276 #else 5277 # include <assert.h> 5278 #endif 5279 5280 #undef $ac_func 5281 5282 /* Override any gcc2 internal prototype to avoid an error. */ 5283 #ifdef __cplusplus 5284 extern "C" 8592 8593 8594 #define wcstod renamed_wcstod 8595 #include <wchar.h> 8596 int zero (void) { return 0; } 8597 8598 _ACEOF 8599 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 8600 if echo '#include "conftest.c"' >conftest2.c \ 8601 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8602 (eval $ac_compile) 2>&5 8603 ac_status=$? 8604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8605 test $ac_status = 0; }; then 8606 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 8607 : 8608 else 8609 gl_cv_header_wchar_h_correct_inline=no 8610 fi 8611 fi 8612 fi 8613 ac_compile="$save_ac_compile" 8614 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext 8615 ;; 8616 esac 8617 ;; 8618 esac 8619 fi 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 8621 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } 8622 if test $gl_cv_header_wchar_h_correct_inline = no; then 8623 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 8624 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 8625 C99 mode. You have four options: 8626 - Add the flag -fgnu89-inline to CC and reconfigure, or 8627 - Fix your include files, using parts of 8628 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 8629 - Use a gcc version older than 4.3, or 8630 - Don't use the flags -std=c99 or -std=gnu99. 8631 Configuration aborted." "$LINENO" 5 8632 fi 8633 8634 8635 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 8637 printf %s "checking for nl_langinfo and CODESET... " >&6; } 8638 if test ${am_cv_langinfo_codeset+y} 8639 then : 8640 printf %s "(cached) " >&6 8641 else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643 /* end confdefs.h. */ 8644 #include <langinfo.h> 8645 int 8646 main (void) 5285 8647 { 5286 #endif 5287 /* We use char because int might match the return type of a gcc2 5288 builtin and then its argument prototype would still apply. */ 5289 char $ac_func (); 5290 /* The GNU C library defines this for functions which it implements 5291 to always fail with ENOSYS. Some functions are actually named 5292 something starting with __ and the normal name is an alias. */ 5293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5294 choke me 5295 #else 5296 char (*f) () = $ac_func; 5297 #endif 5298 #ifdef __cplusplus 5299 } 5300 #endif 5301 5302 int 5303 main () 5304 { 5305 return f != $ac_func; 8648 char* cs = nl_langinfo(CODESET); return !cs; 5306 8649 ; 5307 8650 return 0; 5308 8651 } 5309 8652 _ACEOF 5310 rm -f conftest.$ac_objext conftest$ac_exeext 5311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5312 (eval $ac_link) 2>conftest.er1 5313 ac_status=$? 5314 grep -v '^ *+' conftest.er1 >conftest.err 5315 rm -f conftest.er1 5316 cat conftest.err >&5 5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5318 (exit $ac_status); } && 5319 { ac_try='test -z "$ac_c_werror_flag" 5320 || test ! -s conftest.err' 5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5322 (eval $ac_try) 2>&5 5323 ac_status=$? 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5325 (exit $ac_status); }; } && 5326 { ac_try='test -s conftest$ac_exeext' 5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 (eval $ac_try) 2>&5 5329 ac_status=$? 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); }; }; then 5332 eval "$as_ac_var=yes" 5333 else 5334 echo "$as_me: failed program was:" >&5 5335 sed 's/^/| /' conftest.$ac_ext >&5 5336 5337 eval "$as_ac_var=no" 5338 fi 5339 rm -f conftest.err conftest.$ac_objext \ 5340 conftest$ac_exeext conftest.$ac_ext 5341 fi 5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5344 if test `eval echo '${'$as_ac_var'}'` = yes; then 5345 5346 cat >>confdefs.h <<_ACEOF 5347 #define CRAY_STACKSEG_END $ac_func 8653 if ac_fn_c_try_link "$LINENO" 8654 then : 8655 am_cv_langinfo_codeset=yes 8656 else case e in #( 8657 e) am_cv_langinfo_codeset=no ;; 8658 esac 8659 fi 8660 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8661 conftest$ac_exeext conftest.$ac_ext 8662 ;; 8663 esac 8664 fi 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 8666 printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 8667 if test $am_cv_langinfo_codeset = yes; then 8668 8669 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 8670 8671 fi 8672 8673 8674 8675 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 8677 printf %s "checking for a traditional french locale... " >&6; } 8678 if test ${gt_cv_locale_fr+y} 8679 then : 8680 printf %s "(cached) " >&6 8681 else case e in #( 8682 e) 8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684 /* end confdefs.h. */ 8685 8686 #include <locale.h> 8687 #include <time.h> 8688 #if HAVE_LANGINFO_CODESET 8689 # include <langinfo.h> 8690 #endif 8691 #include <stdlib.h> 8692 #include <string.h> 8693 struct tm t; 8694 char buf[16]; 8695 int main () { 8696 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 8697 imitates locale dependent behaviour by looking at the environment 8698 variables, and all locales use the UTF-8 encoding. */ 8699 #if defined __BEOS__ || defined __HAIKU__ 8700 return 1; 8701 #else 8702 /* Check whether the given locale name is recognized by the system. */ 8703 # if defined _WIN32 && !defined __CYGWIN__ 8704 /* On native Windows, setlocale(category, "") looks at the system settings, 8705 not at the environment variables. Also, when an encoding suffix such 8706 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 8707 category of the locale to "C". */ 8708 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 8709 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 8710 return 1; 8711 # else 8712 if (setlocale (LC_ALL, "") == NULL) return 1; 8713 # endif 8714 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 8715 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 8716 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 8717 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 8718 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 8719 some unit tests fail. 8720 On MirBSD 10, when an unsupported locale is specified, setlocale() 8721 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 8722 # if HAVE_LANGINFO_CODESET 8723 { 8724 const char *cs = nl_langinfo (CODESET); 8725 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 8726 || strcmp (cs, "UTF-8") == 0) 8727 return 1; 8728 } 8729 # endif 8730 # ifdef __CYGWIN__ 8731 /* On Cygwin, avoid locale names without encoding suffix, because the 8732 locale_charset() function relies on the encoding suffix. Note that 8733 LC_ALL is set on the command line. */ 8734 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 8735 # endif 8736 /* Check whether in the abbreviation of the second month, the second 8737 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 8738 one byte long. This excludes the UTF-8 encoding. */ 8739 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 8740 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 8741 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 8742 /* Check whether the decimal separator is a comma. 8743 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 8744 are nl_langinfo(RADIXCHAR) are both ".". */ 8745 if (localeconv () ->decimal_point[0] != ',') return 1; 8746 # endif 8747 return 0; 8748 #endif 8749 } 8750 5348 8751 _ACEOF 5349 5350 break 5351 fi 5352 5353 done 5354 fi 5355 5356 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5357 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5358 if test "${ac_cv_c_stack_direction+set}" = set; then 5359 echo $ECHO_N "(cached) $ECHO_C" >&6 5360 else 5361 if test "$cross_compiling" = yes; then 5362 ac_cv_c_stack_direction=0 5363 else 5364 cat >conftest.$ac_ext <<_ACEOF 5365 /* confdefs.h. */ 5366 _ACEOF 5367 cat confdefs.h >>conftest.$ac_ext 5368 cat >>conftest.$ac_ext <<_ACEOF 5369 /* end confdefs.h. */ 5370 int 5371 find_stack_direction () 5372 { 5373 static char *addr = 0; 5374 auto char dummy; 5375 if (addr == 0) 5376 { 5377 addr = &dummy; 5378 return find_stack_direction (); 5379 } 5380 else 5381 return (&dummy > addr) ? 1 : -1; 5382 } 5383 5384 int 5385 main () 5386 { 5387 exit (find_stack_direction () < 0); 5388 } 5389 _ACEOF 5390 rm -f conftest$ac_exeext 5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5392 8753 (eval $ac_link) 2>&5 5393 8754 ac_status=$? 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 (eval $ac_try) 2>&5 5398 ac_status=$? 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 (exit $ac_status); }; }; then 5401 ac_cv_c_stack_direction=1 5402 else 5403 echo "$as_me: program exited with status $ac_status" >&5 5404 echo "$as_me: failed program was:" >&5 5405 sed 's/^/| /' conftest.$ac_ext >&5 5406 5407 ( exit $ac_status ) 5408 ac_cv_c_stack_direction=-1 5409 fi 5410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5411 fi 5412 fi 5413 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5414 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5415 5416 cat >>confdefs.h <<_ACEOF 5417 #define STACK_DIRECTION $ac_cv_c_stack_direction 5418 _ACEOF 5419 5420 5421 fi 5422 5423 5424 for ac_func in vprintf 5425 do 5426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5427 echo "$as_me:$LINENO: checking for $ac_func" >&5 5428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5429 if eval "test \"\${$as_ac_var+set}\" = set"; then 5430 echo $ECHO_N "(cached) $ECHO_C" >&6 5431 else 5432 cat >conftest.$ac_ext <<_ACEOF 5433 /* confdefs.h. */ 5434 _ACEOF 5435 cat confdefs.h >>conftest.$ac_ext 5436 cat >>conftest.$ac_ext <<_ACEOF 8755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8756 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8757 case "$host_os" in 8758 # Handle native Windows specially, because there setlocale() interprets 8759 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 8760 # "fr" or "fra" as "French" or "French_France.1252", 8761 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 8762 # "ja" as "Japanese" or "Japanese_Japan.932", 8763 # and similar. 8764 mingw*) 8765 # Test for the native Windows locale name. 8766 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8767 gt_cv_locale_fr=French_France.1252 8768 else 8769 # None found. 8770 gt_cv_locale_fr=none 8771 fi 8772 ;; 8773 *) 8774 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 8775 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 8776 # configure script would override the LC_ALL setting. Likewise for 8777 # LC_CTYPE, which is also set at the beginning of the configure script. 8778 # Test for the usual locale name. 8779 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8780 gt_cv_locale_fr=fr_FR 8781 else 8782 # Test for the locale name with explicit encoding suffix. 8783 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8784 gt_cv_locale_fr=fr_FR.ISO-8859-1 8785 else 8786 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 8787 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8788 gt_cv_locale_fr=fr_FR.ISO8859-1 8789 else 8790 # Test for the HP-UX locale name. 8791 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8792 gt_cv_locale_fr=fr_FR.iso88591 8793 else 8794 # Test for the Solaris 7 locale name. 8795 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 8796 gt_cv_locale_fr=fr 8797 else 8798 # None found. 8799 gt_cv_locale_fr=none 8800 fi 8801 fi 8802 fi 8803 fi 8804 fi 8805 ;; 8806 esac 8807 fi 8808 rm -fr conftest* 8809 ;; 8810 esac 8811 fi 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 8813 printf "%s\n" "$gt_cv_locale_fr" >&6; } 8814 LOCALE_FR=$gt_cv_locale_fr 8815 8816 8817 8818 8819 GL_GNULIB_BTOWC=0 8820 8821 8822 8823 GL_GNULIB_WCTOB=0 8824 8825 8826 8827 GL_GNULIB_MBSINIT=0 8828 8829 8830 8831 GL_GNULIB_MBRTOWC=0 8832 8833 8834 8835 GL_GNULIB_MBRLEN=0 8836 8837 8838 8839 GL_GNULIB_MBSRTOWCS=0 8840 8841 8842 8843 GL_GNULIB_MBSNRTOWCS=0 8844 8845 8846 8847 GL_GNULIB_WCRTOMB=0 8848 8849 8850 8851 GL_GNULIB_WCSRTOMBS=0 8852 8853 8854 8855 GL_GNULIB_WCSNRTOMBS=0 8856 8857 8858 8859 GL_GNULIB_WCWIDTH=0 8860 8861 8862 8863 GL_GNULIB_WMEMCHR=0 8864 8865 8866 8867 GL_GNULIB_WMEMCMP=0 8868 8869 8870 8871 GL_GNULIB_WMEMCPY=0 8872 8873 8874 8875 GL_GNULIB_WMEMMOVE=0 8876 8877 8878 8879 GL_GNULIB_WMEMPCPY=0 8880 8881 8882 8883 GL_GNULIB_WMEMSET=0 8884 8885 8886 8887 GL_GNULIB_WCSLEN=0 8888 8889 8890 8891 GL_GNULIB_WCSNLEN=0 8892 8893 8894 8895 GL_GNULIB_WCSCPY=0 8896 8897 8898 8899 GL_GNULIB_WCPCPY=0 8900 8901 8902 8903 GL_GNULIB_WCSNCPY=0 8904 8905 8906 8907 GL_GNULIB_WCPNCPY=0 8908 8909 8910 8911 GL_GNULIB_WCSCAT=0 8912 8913 8914 8915 GL_GNULIB_WCSNCAT=0 8916 8917 8918 8919 GL_GNULIB_WCSCMP=0 8920 8921 8922 8923 GL_GNULIB_WCSNCMP=0 8924 8925 8926 8927 GL_GNULIB_WCSCASECMP=0 8928 8929 8930 8931 GL_GNULIB_WCSNCASECMP=0 8932 8933 8934 8935 GL_GNULIB_WCSCOLL=0 8936 8937 8938 8939 GL_GNULIB_WCSXFRM=0 8940 8941 8942 8943 GL_GNULIB_WCSDUP=0 8944 8945 8946 8947 GL_GNULIB_WCSCHR=0 8948 8949 8950 8951 GL_GNULIB_WCSRCHR=0 8952 8953 8954 8955 GL_GNULIB_WCSCSPN=0 8956 8957 8958 8959 GL_GNULIB_WCSSPN=0 8960 8961 8962 8963 GL_GNULIB_WCSPBRK=0 8964 8965 8966 8967 GL_GNULIB_WCSSTR=0 8968 8969 8970 8971 GL_GNULIB_WCSTOK=0 8972 8973 8974 8975 GL_GNULIB_WCSWIDTH=0 8976 8977 8978 8979 GL_GNULIB_WCSFTIME=0 8980 8981 8982 8983 GL_GNULIB_MDA_WCSDUP=1 8984 8985 8986 8987 8988 8989 GL_GNULIB__EXIT=0 8990 8991 8992 8993 GL_GNULIB_ALIGNED_ALLOC=0 8994 8995 8996 8997 GL_GNULIB_ATOLL=0 8998 8999 9000 9001 GL_GNULIB_CALLOC_GNU=0 9002 9003 9004 9005 GL_GNULIB_CALLOC_POSIX=0 9006 9007 9008 9009 GL_GNULIB_CANONICALIZE_FILE_NAME=0 9010 9011 9012 9013 GL_GNULIB_FREE_POSIX=0 9014 9015 9016 9017 GL_GNULIB_GETLOADAVG=0 9018 9019 9020 9021 GL_GNULIB_GETSUBOPT=0 9022 9023 9024 9025 GL_GNULIB_GRANTPT=0 9026 9027 9028 9029 GL_GNULIB_MALLOC_GNU=0 9030 9031 9032 9033 GL_GNULIB_MALLOC_POSIX=0 9034 9035 9036 9037 GL_GNULIB_MBTOWC=0 9038 9039 9040 9041 GL_GNULIB_MKDTEMP=0 9042 9043 9044 9045 GL_GNULIB_MKOSTEMP=0 9046 9047 9048 9049 GL_GNULIB_MKOSTEMPS=0 9050 9051 9052 9053 GL_GNULIB_MKSTEMP=0 9054 9055 9056 9057 GL_GNULIB_MKSTEMPS=0 9058 9059 9060 9061 GL_GNULIB_POSIX_MEMALIGN=0 9062 9063 9064 9065 GL_GNULIB_POSIX_OPENPT=0 9066 9067 9068 9069 GL_GNULIB_PTSNAME=0 9070 9071 9072 9073 GL_GNULIB_PTSNAME_R=0 9074 9075 9076 9077 GL_GNULIB_PUTENV=0 9078 9079 9080 9081 GL_GNULIB_QSORT_R=0 9082 9083 9084 9085 GL_GNULIB_RANDOM=0 9086 9087 9088 9089 GL_GNULIB_RANDOM_R=0 9090 9091 9092 9093 GL_GNULIB_REALLOCARRAY=0 9094 9095 9096 9097 GL_GNULIB_REALLOC_GNU=0 9098 9099 9100 9101 GL_GNULIB_REALLOC_POSIX=0 9102 9103 9104 9105 GL_GNULIB_REALPATH=0 9106 9107 9108 9109 GL_GNULIB_RPMATCH=0 9110 9111 9112 9113 GL_GNULIB_SECURE_GETENV=0 9114 9115 9116 9117 GL_GNULIB_SETENV=0 9118 9119 9120 9121 GL_GNULIB_STRTOD=0 9122 9123 9124 9125 GL_GNULIB_STRTOL=0 9126 9127 9128 9129 GL_GNULIB_STRTOLD=0 9130 9131 9132 9133 GL_GNULIB_STRTOLL=0 9134 9135 9136 9137 GL_GNULIB_STRTOUL=0 9138 9139 9140 9141 GL_GNULIB_STRTOULL=0 9142 9143 9144 9145 GL_GNULIB_SYSTEM_POSIX=0 9146 9147 9148 9149 GL_GNULIB_UNLOCKPT=0 9150 9151 9152 9153 GL_GNULIB_UNSETENV=0 9154 9155 9156 9157 GL_GNULIB_WCTOMB=0 9158 9159 9160 9161 GL_GNULIB_MDA_ECVT=1 9162 9163 9164 9165 GL_GNULIB_MDA_FCVT=1 9166 9167 9168 9169 GL_GNULIB_MDA_GCVT=1 9170 9171 9172 9173 GL_GNULIB_MDA_MKTEMP=1 9174 9175 9176 9177 GL_GNULIB_MDA_PUTENV=1 9178 9179 9180 9181 9182 HAVE__EXIT=1; 9183 HAVE_ALIGNED_ALLOC=1; 9184 HAVE_ATOLL=1; 9185 HAVE_CANONICALIZE_FILE_NAME=1; 9186 HAVE_DECL_ECVT=1; 9187 HAVE_DECL_FCVT=1; 9188 HAVE_DECL_GCVT=1; 9189 HAVE_DECL_GETLOADAVG=1; 9190 HAVE_GETSUBOPT=1; 9191 HAVE_GRANTPT=1; 9192 HAVE_INITSTATE=1; 9193 HAVE_DECL_INITSTATE=1; 9194 HAVE_MBTOWC=1; 9195 HAVE_MKDTEMP=1; 9196 HAVE_MKOSTEMP=1; 9197 HAVE_MKOSTEMPS=1; 9198 HAVE_MKSTEMP=1; 9199 HAVE_MKSTEMPS=1; 9200 HAVE_POSIX_MEMALIGN=1; 9201 HAVE_POSIX_OPENPT=1; 9202 HAVE_PTSNAME=1; 9203 HAVE_PTSNAME_R=1; 9204 HAVE_QSORT_R=1; 9205 HAVE_RANDOM=1; 9206 HAVE_RANDOM_H=1; 9207 HAVE_RANDOM_R=1; 9208 HAVE_REALLOCARRAY=1; 9209 HAVE_REALPATH=1; 9210 HAVE_RPMATCH=1; 9211 HAVE_SECURE_GETENV=1; 9212 HAVE_SETENV=1; 9213 HAVE_DECL_SETENV=1; 9214 HAVE_SETSTATE=1; 9215 HAVE_DECL_SETSTATE=1; 9216 HAVE_STRTOD=1; 9217 HAVE_STRTOL=1; 9218 HAVE_STRTOLD=1; 9219 HAVE_STRTOLL=1; 9220 HAVE_STRTOUL=1; 9221 HAVE_STRTOULL=1; 9222 HAVE_STRUCT_RANDOM_DATA=1; 9223 HAVE_SYS_LOADAVG_H=0; 9224 HAVE_UNLOCKPT=1; 9225 HAVE_DECL_UNSETENV=1; 9226 REPLACE_ALIGNED_ALLOC=0; 9227 REPLACE_CALLOC_FOR_CALLOC_GNU=0; 9228 REPLACE_CALLOC_FOR_CALLOC_POSIX=0; 9229 REPLACE_CANONICALIZE_FILE_NAME=0; 9230 REPLACE_FREE=0; 9231 REPLACE_INITSTATE=0; 9232 REPLACE_MALLOC_FOR_MALLOC_GNU=0; 9233 REPLACE_MALLOC_FOR_MALLOC_POSIX=0; 9234 REPLACE_MBTOWC=0; 9235 REPLACE_MKSTEMP=0; 9236 REPLACE_POSIX_MEMALIGN=0; 9237 REPLACE_PTSNAME=0; 9238 REPLACE_PTSNAME_R=0; 9239 REPLACE_PUTENV=0; 9240 REPLACE_QSORT_R=0; 9241 REPLACE_RANDOM=0; 9242 REPLACE_RANDOM_R=0; 9243 REPLACE_REALLOC_FOR_REALLOC_GNU=0; 9244 REPLACE_REALLOC_FOR_REALLOC_POSIX=0; 9245 REPLACE_REALLOCARRAY=0; 9246 REPLACE_REALPATH=0; 9247 REPLACE_SETENV=0; 9248 REPLACE_SETSTATE=0; 9249 REPLACE_STRTOD=0; 9250 REPLACE_STRTOL=0; 9251 REPLACE_STRTOLD=0; 9252 REPLACE_STRTOLL=0; 9253 REPLACE_STRTOUL=0; 9254 REPLACE_STRTOULL=0; 9255 REPLACE_UNSETENV=0; 9256 REPLACE_WCTOMB=0; 9257 9258 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5 9260 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; } 9261 if test ${gl_cv_malloc_ptrdiff+y} 9262 then : 9263 printf %s "(cached) " >&6 9264 else case e in #( 9265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437 9266 /* end confdefs.h. */ 5438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5439 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5440 #define $ac_func innocuous_$ac_func 5441 5442 /* System header to define __stub macros and hopefully few prototypes, 5443 which can conflict with char $ac_func (); below. 5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5445 <limits.h> exists even on freestanding compilers. */ 5446 5447 #ifdef __STDC__ 5448 # include <limits.h> 5449 #else 5450 # include <assert.h> 5451 #endif 5452 5453 #undef $ac_func 5454 5455 /* Override any gcc2 internal prototype to avoid an error. */ 5456 #ifdef __cplusplus 5457 extern "C" 9267 #include <stdint.h> 9268 9269 int 9270 main (void) 5458 9271 { 5459 #endif 5460 /* We use char because int might match the return type of a gcc2 5461 builtin and then its argument prototype would still apply. */5462 char $ac_func (); 5463 /* The GNU C library defines this for functions which it implements 5464 to always fail with ENOSYS. Some functions are actually named5465 something starting with __ and the normal name is an alias. */5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5467 choke me 5468 #else 5469 char (*f) () = $ac_func; 5470 #endif 5471 #ifdef __cplusplus 5472 } 5473 #endif 5474 5475 int 5476 main () 5477 { 5478 return f != $ac_func; 9272 /* 64-bit ptrdiff_t is so wide that no practical platform 9273 can exceed it. */ 9274 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0) 9275 9276 /* On rare machines where size_t fits in ptrdiff_t there 9277 is no problem. */ 9278 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX) 9279 9280 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t 9281 bounds even on 32-bit platforms. We don't know which 9282 non-glibc systems are safe. */ 9283 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__)) 9284 9285 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE 9286 return 0; 9287 #else 9288 #error "malloc might not be ptrdiff_t safe" 9289 syntax error 9290 #endif 9291 5479 9292 ; 5480 9293 return 0; 5481 9294 } 5482 9295 _ACEOF 5483 rm -f conftest.$ac_objext conftest$ac_exeext 5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5485 (eval $ac_link) 2>conftest.er1 5486 ac_status=$? 5487 grep -v '^ *+' conftest.er1 >conftest.err 5488 rm -f conftest.er1 5489 cat conftest.err >&5 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); } && 5492 { ac_try='test -z "$ac_c_werror_flag" 5493 || test ! -s conftest.err' 5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5495 (eval $ac_try) 2>&5 5496 ac_status=$? 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); }; } && 5499 { ac_try='test -s conftest$ac_exeext' 5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5501 (eval $ac_try) 2>&5 5502 ac_status=$? 5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5504 (exit $ac_status); }; }; then 5505 eval "$as_ac_var=yes" 5506 else 5507 echo "$as_me: failed program was:" >&5 5508 sed 's/^/| /' conftest.$ac_ext >&5 5509 5510 eval "$as_ac_var=no" 5511 fi 5512 rm -f conftest.err conftest.$ac_objext \ 5513 conftest$ac_exeext conftest.$ac_ext 5514 fi 5515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5517 if test `eval echo '${'$as_ac_var'}'` = yes; then 5518 cat >>confdefs.h <<_ACEOF 5519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5520 _ACEOF 5521 5522 echo "$as_me:$LINENO: checking for _doprnt" >&5 5523 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5524 if test "${ac_cv_func__doprnt+set}" = set; then 5525 echo $ECHO_N "(cached) $ECHO_C" >&6 5526 else 5527 cat >conftest.$ac_ext <<_ACEOF 5528 /* confdefs.h. */ 5529 _ACEOF 5530 cat confdefs.h >>conftest.$ac_ext 5531 cat >>conftest.$ac_ext <<_ACEOF 9296 if ac_fn_c_try_compile "$LINENO" 9297 then : 9298 gl_cv_malloc_ptrdiff=yes 9299 else case e in #( 9300 e) gl_cv_malloc_ptrdiff=no ;; 9301 esac 9302 fi 9303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9304 ;; 9305 esac 9306 fi 9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5 9308 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; } 9309 9310 9311 9312 9313 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1 9314 9315 9316 9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5 9318 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; } 9319 if test ${gl_cv_func_malloc_posix+y} 9320 then : 9321 printf %s "(cached) " >&6 9322 else case e in #( 9323 e) 9324 case "$host_os" in 9325 mingw*) 9326 gl_cv_func_malloc_posix=no ;; 9327 irix* | solaris*) 9328 9329 gl_cv_func_malloc_posix=no ;; 9330 *) 9331 gl_cv_func_malloc_posix=yes ;; 9332 esac 9333 ;; 9334 esac 9335 fi 9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 9337 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; } 9338 9339 9340 9341 9342 9343 if test "$gl_cv_func_malloc_posix" = yes; then 9344 9345 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 9346 9347 else 9348 REPLACE_MALLOC_FOR_MALLOC_POSIX=1 9349 fi 9350 9351 9352 9353 9354 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then 9355 REPLACE_CALLOC_FOR_CALLOC_POSIX=1 9356 fi 9357 9358 9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 9360 printf %s "checking whether lstat correctly handles trailing slash... " >&6; } 9361 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y} 9362 then : 9363 printf %s "(cached) " >&6 9364 else case e in #( 9365 e) rm -f conftest.sym conftest.file 9366 echo >conftest.file 9367 if test "$cross_compiling" = yes 9368 then : 9369 case "$host_os" in 9370 linux-* | linux) 9371 # Guess yes on Linux systems. 9372 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 9373 *-gnu* | gnu*) 9374 # Guess yes on glibc systems. 9375 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 9376 mingw*) 9377 # Guess no on native Windows. 9378 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 9379 *) 9380 # If we don't know, obey --enable-cross-guesses. 9381 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;; 9382 esac 9383 9384 else case e in #( 9385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532 9386 /* end confdefs.h. */ 5533 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5534 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5535 #define _doprnt innocuous__doprnt 5536 5537 /* System header to define __stub macros and hopefully few prototypes, 5538 which can conflict with char _doprnt (); below. 5539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5540 <limits.h> exists even on freestanding compilers. */ 5541 5542 #ifdef __STDC__ 5543 # include <limits.h> 5544 #else 5545 # include <assert.h> 5546 #endif 5547 5548 #undef _doprnt 5549 5550 /* Override any gcc2 internal prototype to avoid an error. */ 5551 #ifdef __cplusplus 5552 extern "C" 9387 $ac_includes_default 9388 int 9389 main (void) 5553 9390 { 5554 #endif 5555 /* We use char because int might match the return type of a gcc2 5556 builtin and then its argument prototype would still apply. */ 5557 char _doprnt (); 5558 /* The GNU C library defines this for functions which it implements 5559 to always fail with ENOSYS. Some functions are actually named 5560 something starting with __ and the normal name is an alias. */ 5561 #if defined (__stub__doprnt) || defined (__stub____doprnt) 5562 choke me 5563 #else 5564 char (*f) () = _doprnt; 5565 #endif 5566 #ifdef __cplusplus 5567 } 5568 #endif 5569 5570 int 5571 main () 5572 { 5573 return f != _doprnt; 9391 struct stat sbuf; 9392 if (symlink ("conftest.file", "conftest.sym") != 0) 9393 return 1; 9394 /* Linux will dereference the symlink and fail, as required by 9395 POSIX. That is better in the sense that it means we will not 9396 have to compile and use the lstat wrapper. */ 9397 return lstat ("conftest.sym/", &sbuf) == 0; 9398 5574 9399 ; 5575 9400 return 0; 5576 9401 } 5577 9402 _ACEOF 5578 rm -f conftest.$ac_objext conftest$ac_exeext 5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5580 (eval $ac_link) 2>conftest.er1 5581 ac_status=$? 5582 grep -v '^ *+' conftest.er1 >conftest.err 5583 rm -f conftest.er1 5584 cat conftest.err >&5 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); } && 5587 { ac_try='test -z "$ac_c_werror_flag" 5588 || test ! -s conftest.err' 5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5590 (eval $ac_try) 2>&5 5591 ac_status=$? 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); }; } && 5594 { ac_try='test -s conftest$ac_exeext' 5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5596 (eval $ac_try) 2>&5 5597 ac_status=$? 5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5599 (exit $ac_status); }; }; then 5600 ac_cv_func__doprnt=yes 5601 else 5602 echo "$as_me: failed program was:" >&5 5603 sed 's/^/| /' conftest.$ac_ext >&5 5604 5605 ac_cv_func__doprnt=no 5606 fi 5607 rm -f conftest.err conftest.$ac_objext \ 5608 conftest$ac_exeext conftest.$ac_ext 5609 fi 5610 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5611 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5612 if test $ac_cv_func__doprnt = yes; then 5613 5614 cat >>confdefs.h <<\_ACEOF 5615 #define HAVE_DOPRNT 1 5616 _ACEOF 5617 5618 fi 5619 5620 fi 5621 done 5622 5623 5624 am_getline_needs_run_time_check=no 5625 echo "$as_me:$LINENO: checking for getline" >&5 5626 echo $ECHO_N "checking for getline... $ECHO_C" >&6 5627 if test "${ac_cv_func_getline+set}" = set; then 5628 echo $ECHO_N "(cached) $ECHO_C" >&6 5629 else 5630 cat >conftest.$ac_ext <<_ACEOF 5631 /* confdefs.h. */ 5632 _ACEOF 5633 cat confdefs.h >>conftest.$ac_ext 5634 cat >>conftest.$ac_ext <<_ACEOF 9403 if ac_fn_c_try_run "$LINENO" 9404 then : 9405 gl_cv_func_lstat_dereferences_slashed_symlink=yes 9406 else case e in #( 9407 e) gl_cv_func_lstat_dereferences_slashed_symlink=no ;; 9408 esac 9409 fi 9410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9411 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9412 esac 9413 fi 9414 9415 rm -f conftest.sym conftest.file 9416 ;; 9417 esac 9418 fi 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 9420 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 9421 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 9422 *yes) 9423 9424 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h 9425 9426 ;; 9427 esac 9428 9429 9430 9431 9432 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 9434 printf %s "checking whether // is distinct from /... " >&6; } 9435 if test ${gl_cv_double_slash_root+y} 9436 then : 9437 printf %s "(cached) " >&6 9438 else case e in #( 9439 e) if test x"$cross_compiling" = xyes ; then 9440 # When cross-compiling, there is no way to tell whether // is special 9441 # short of a list of hosts. However, the only known hosts to date 9442 # that have a distinct // are Apollo DomainOS (too old to port to), 9443 # Cygwin, and z/OS. If anyone knows of another system for which // has 9444 # special semantics and is distinct from /, please report it to 9445 # <[email protected]>. 9446 case $host in 9447 *-cygwin | i370-ibm-openedition) 9448 gl_cv_double_slash_root=yes ;; 9449 *) 9450 # Be optimistic and assume that / and // are the same when we 9451 # don't know. 9452 gl_cv_double_slash_root='unknown, assuming no' ;; 9453 esac 9454 else 9455 set x `ls -di / // 2>/dev/null` 9456 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 9457 gl_cv_double_slash_root=no 9458 else 9459 gl_cv_double_slash_root=yes 9460 fi 9461 fi ;; 9462 esac 9463 fi 9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 9465 printf "%s\n" "$gl_cv_double_slash_root" >&6; } 9466 if test "$gl_cv_double_slash_root" = yes; then 9467 9468 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 9469 9470 fi 9471 9472 9473 9474 9475 9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5 9477 printf %s "checking whether realpath works... " >&6; } 9478 if test ${gl_cv_func_realpath_works+y} 9479 then : 9480 printf %s "(cached) " >&6 9481 else case e in #( 9482 e) 9483 rm -rf conftest.a conftest.d 9484 touch conftest.a 9485 # Assume that if we have lstat, we can also check symlinks. 9486 if test $ac_cv_func_lstat = yes; then 9487 ln -s conftest.a conftest.l 9488 fi 9489 mkdir conftest.d 9490 if test "$cross_compiling" = yes 9491 then : 9492 case "$host_os" in 9493 # Guess yes on glibc systems. 9494 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;; 9495 # Guess 'nearly' on musl systems. 9496 *-musl*) gl_cv_func_realpath_works="guessing nearly" ;; 9497 # Guess no on Cygwin. 9498 cygwin*) gl_cv_func_realpath_works="guessing no" ;; 9499 # Guess no on native Windows. 9500 mingw*) gl_cv_func_realpath_works="guessing no" ;; 9501 # If we don't know, obey --enable-cross-guesses. 9502 *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;; 9503 esac 9504 9505 else case e in #( 9506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635 9507 /* end confdefs.h. */ 5636 /* Define getline to an innocuous variant, in case <limits.h> declares getline. 5637 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5638 #define getline innocuous_getline 5639 5640 /* System header to define __stub macros and hopefully few prototypes, 5641 which can conflict with char getline (); below. 5642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5643 <limits.h> exists even on freestanding compilers. */ 5644 5645 #ifdef __STDC__ 5646 # include <limits.h> 9508 9509 9510 9511 #include <stdlib.h> 9512 #if defined __MACH__ && defined __APPLE__ 9513 /* Avoid a crash on Mac OS X. */ 9514 #include <mach/mach.h> 9515 #include <mach/mach_error.h> 9516 #include <mach/thread_status.h> 9517 #include <mach/exception.h> 9518 #include <mach/task.h> 9519 #include <pthread.h> 9520 /* The exception port on which our thread listens. */ 9521 static mach_port_t our_exception_port; 9522 /* The main function of the thread listening for exceptions of type 9523 EXC_BAD_ACCESS. */ 9524 static void * 9525 mach_exception_thread (void *arg) 9526 { 9527 /* Buffer for a message to be received. */ 9528 struct { 9529 mach_msg_header_t head; 9530 mach_msg_body_t msgh_body; 9531 char data[1024]; 9532 } msg; 9533 mach_msg_return_t retval; 9534 /* Wait for a message on the exception port. */ 9535 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 9536 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 9537 if (retval != MACH_MSG_SUCCESS) 9538 abort (); 9539 exit (1); 9540 } 9541 static void 9542 nocrash_init (void) 9543 { 9544 mach_port_t self = mach_task_self (); 9545 /* Allocate a port on which the thread shall listen for exceptions. */ 9546 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 9547 == KERN_SUCCESS) { 9548 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 9549 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 9550 MACH_MSG_TYPE_MAKE_SEND) 9551 == KERN_SUCCESS) { 9552 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 9553 for us. */ 9554 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 9555 /* Create the thread listening on the exception port. */ 9556 pthread_attr_t attr; 9557 pthread_t thread; 9558 if (pthread_attr_init (&attr) == 0 9559 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 9560 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 9561 pthread_attr_destroy (&attr); 9562 /* Replace the exception port info for these exceptions with our own. 9563 Note that we replace the exception port for the entire task, not only 9564 for a particular thread. This has the effect that when our exception 9565 port gets the message, the thread specific exception port has already 9566 been asked, and we don't need to bother about it. 9567 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 9568 task_set_exception_ports (self, mask, our_exception_port, 9569 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 9570 } 9571 } 9572 } 9573 } 9574 #elif defined _WIN32 && ! defined __CYGWIN__ 9575 /* Avoid a crash on native Windows. */ 9576 #define WIN32_LEAN_AND_MEAN 9577 #include <windows.h> 9578 #include <winerror.h> 9579 static LONG WINAPI 9580 exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 9581 { 9582 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 9583 { 9584 case EXCEPTION_ACCESS_VIOLATION: 9585 case EXCEPTION_IN_PAGE_ERROR: 9586 case EXCEPTION_STACK_OVERFLOW: 9587 case EXCEPTION_GUARD_PAGE: 9588 case EXCEPTION_PRIV_INSTRUCTION: 9589 case EXCEPTION_ILLEGAL_INSTRUCTION: 9590 case EXCEPTION_DATATYPE_MISALIGNMENT: 9591 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 9592 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 9593 exit (1); 9594 } 9595 return EXCEPTION_CONTINUE_SEARCH; 9596 } 9597 static void 9598 nocrash_init (void) 9599 { 9600 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 9601 } 5647 9602 #else 5648 # include <assert.h> 9603 /* Avoid a crash on POSIX systems. */ 9604 #include <signal.h> 9605 #include <unistd.h> 9606 /* A POSIX signal handler. */ 9607 static void 9608 exception_handler (int sig) 9609 { 9610 _exit (1); 9611 } 9612 static void 9613 nocrash_init (void) 9614 { 9615 #ifdef SIGSEGV 9616 signal (SIGSEGV, exception_handler); 5649 9617 #endif 5650 5651 #undef getline 5652 5653 /* Override any gcc2 internal prototype to avoid an error. */ 5654 #ifdef __cplusplus 5655 extern "C" 5656 { 9618 #ifdef SIGBUS 9619 signal (SIGBUS, exception_handler); 5657 9620 #endif 5658 /* We use char because int might match the return type of a gcc25659 builtin and then its argument prototype would still apply. */5660 char getline ();5661 /* The GNU C library defines this for functions which it implements5662 to always fail with ENOSYS. Some functions are actually named5663 something starting with __ and the normal name is an alias. */5664 #if defined (__stub_getline) || defined (__stub___getline)5665 choke me5666 #else5667 char (*f) () = getline;5668 #endif5669 #ifdef __cplusplus5670 9621 } 5671 9622 #endif 5672 9623 9624 #include <errno.h> 9625 #include <stdlib.h> 9626 #include <string.h> 9627 5673 9628 int 5674 main ( )9629 main (void) 5675 9630 { 5676 return f != getline; 9631 9632 int result = 0; 9633 /* This test fails on Solaris 10. */ 9634 { 9635 char *name = realpath ("conftest.a", NULL); 9636 if (!(name && *name == '/')) 9637 result |= 1; 9638 free (name); 9639 } 9640 /* This test fails on older versions of Cygwin. */ 9641 { 9642 char *name = realpath ("conftest.b/../conftest.a", NULL); 9643 if (name != NULL) 9644 result |= 2; 9645 free (name); 9646 } 9647 /* This test fails on Cygwin 2.9. */ 9648 #if HAVE_LSTAT 9649 { 9650 char *name = realpath ("conftest.l/../conftest.a", NULL); 9651 if (name != NULL || errno != ENOTDIR) 9652 result |= 4; 9653 free (name); 9654 } 9655 #endif 9656 /* This test fails on Mac OS X 10.13, OpenBSD 6.0. */ 9657 { 9658 char *name = realpath ("conftest.a/", NULL); 9659 if (name != NULL) 9660 result |= 8; 9661 free (name); 9662 } 9663 /* This test fails on AIX 7, Solaris 10. */ 9664 { 9665 char *name1 = realpath (".", NULL); 9666 char *name2 = realpath ("conftest.d//./..", NULL); 9667 if (! name1 || ! name2 || strcmp (name1, name2)) 9668 result |= 16; 9669 free (name1); 9670 free (name2); 9671 } 9672 #ifdef __linux__ 9673 /* On Linux, // is the same as /. See also double-slash-root.m4. 9674 realpath() should respect this. 9675 This test fails on musl libc 1.2.2. */ 9676 { 9677 char *name = realpath ("//", NULL); 9678 if (! name || strcmp (name, "/")) 9679 result |= 32; 9680 free (name); 9681 } 9682 #endif 9683 return result; 9684 5677 9685 ; 5678 9686 return 0; 5679 9687 } 9688 5680 9689 _ACEOF 5681 rm -f conftest.$ac_objext conftest$ac_exeext 5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5683 (eval $ac_link) 2>conftest.er1 5684 ac_status=$? 5685 grep -v '^ *+' conftest.er1 >conftest.err 5686 rm -f conftest.er1 5687 cat conftest.err >&5 5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5689 (exit $ac_status); } && 5690 { ac_try='test -z "$ac_c_werror_flag" 5691 || test ! -s conftest.err' 5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5693 (eval $ac_try) 2>&5 5694 ac_status=$? 5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696 (exit $ac_status); }; } && 5697 { ac_try='test -s conftest$ac_exeext' 5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5699 (eval $ac_try) 2>&5 5700 ac_status=$? 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); }; }; then 5703 ac_cv_func_getline=yes 5704 else 5705 echo "$as_me: failed program was:" >&5 5706 sed 's/^/| /' conftest.$ac_ext >&5 5707 5708 ac_cv_func_getline=no 5709 fi 5710 rm -f conftest.err conftest.$ac_objext \ 5711 conftest$ac_exeext conftest.$ac_ext 5712 fi 5713 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 5714 echo "${ECHO_T}$ac_cv_func_getline" >&6 5715 if test $ac_cv_func_getline = yes; then 5716 am_getline_needs_run_time_check=yes 5717 else 5718 am_cv_func_working_getline=no 5719 fi 5720 5721 if test $am_getline_needs_run_time_check = yes; then 5722 echo "$as_me:$LINENO: checking for working getline function" >&5 5723 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6 5724 if test "${am_cv_func_working_getline+set}" = set; then 5725 echo $ECHO_N "(cached) $ECHO_C" >&6 5726 else 5727 echo fooN |tr -d '\012'|tr N '\012' > conftest.data 5728 if test "$cross_compiling" = yes; then 5729 am_cv_func_working_getline=no 5730 else 5731 cat >conftest.$ac_ext <<_ACEOF 5732 /* confdefs.h. */ 9690 if ac_fn_c_try_run "$LINENO" 9691 then : 9692 gl_cv_func_realpath_works=yes 9693 else case e in #( 9694 e) case $? in 9695 32) gl_cv_func_realpath_works=nearly ;; 9696 *) gl_cv_func_realpath_works=no ;; 9697 esac 9698 ;; 9699 esac 9700 fi 9701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9702 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9703 esac 9704 fi 9705 9706 rm -rf conftest.a conftest.l conftest.d 9707 ;; 9708 esac 9709 fi 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5 9711 printf "%s\n" "$gl_cv_func_realpath_works" >&6; } 9712 case "$gl_cv_func_realpath_works" in 9713 *yes) 9714 9715 printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h 9716 9717 ;; 9718 *nearly) 9719 9720 printf "%s\n" "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h 9721 9722 ;; 9723 esac 9724 9725 9726 9727 9728 9729 9730 9731 9732 case "$host_os" in 9733 mingw*) ;; 9734 *) ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 9735 if test "x$ac_cv_func_getcwd" = xyes 9736 then : 9737 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h 9738 9739 fi 9740 ;; 9741 esac 9742 9743 9744 9745 9746 9747 9748 9749 GL_GNULIB_ACCESS=0 9750 9751 9752 9753 GL_GNULIB_CHDIR=0 9754 9755 9756 9757 GL_GNULIB_CHOWN=0 9758 9759 9760 9761 GL_GNULIB_CLOSE=0 9762 9763 9764 9765 GL_GNULIB_COPY_FILE_RANGE=0 9766 9767 9768 9769 GL_GNULIB_DUP=0 9770 9771 9772 9773 GL_GNULIB_DUP2=0 9774 9775 9776 9777 GL_GNULIB_DUP3=0 9778 9779 9780 9781 GL_GNULIB_ENVIRON=0 9782 9783 9784 9785 GL_GNULIB_EUIDACCESS=0 9786 9787 9788 9789 GL_GNULIB_EXECL=0 9790 9791 9792 9793 GL_GNULIB_EXECLE=0 9794 9795 9796 9797 GL_GNULIB_EXECLP=0 9798 9799 9800 9801 GL_GNULIB_EXECV=0 9802 9803 9804 9805 GL_GNULIB_EXECVE=0 9806 9807 9808 9809 GL_GNULIB_EXECVP=0 9810 9811 9812 9813 GL_GNULIB_EXECVPE=0 9814 9815 9816 9817 GL_GNULIB_FACCESSAT=0 9818 9819 9820 9821 GL_GNULIB_FCHDIR=0 9822 9823 9824 9825 GL_GNULIB_FCHOWNAT=0 9826 9827 9828 9829 GL_GNULIB_FDATASYNC=0 9830 9831 9832 9833 GL_GNULIB_FSYNC=0 9834 9835 9836 9837 GL_GNULIB_FTRUNCATE=0 9838 9839 9840 9841 GL_GNULIB_GETCWD=0 9842 9843 9844 9845 GL_GNULIB_GETDOMAINNAME=0 9846 9847 9848 9849 GL_GNULIB_GETDTABLESIZE=0 9850 9851 9852 9853 GL_GNULIB_GETENTROPY=0 9854 9855 9856 9857 GL_GNULIB_GETGROUPS=0 9858 9859 9860 9861 GL_GNULIB_GETHOSTNAME=0 9862 9863 9864 9865 GL_GNULIB_GETLOGIN=0 9866 9867 9868 9869 GL_GNULIB_GETLOGIN_R=0 9870 9871 9872 9873 GL_GNULIB_GETOPT_POSIX=0 9874 9875 9876 9877 GL_GNULIB_GETPAGESIZE=0 9878 9879 9880 9881 GL_GNULIB_GETPASS=0 9882 9883 9884 9885 GL_GNULIB_GETPASS_GNU=0 9886 9887 9888 9889 GL_GNULIB_GETUSERSHELL=0 9890 9891 9892 9893 GL_GNULIB_GROUP_MEMBER=0 9894 9895 9896 9897 GL_GNULIB_ISATTY=0 9898 9899 9900 9901 GL_GNULIB_LCHOWN=0 9902 9903 9904 9905 GL_GNULIB_LINK=0 9906 9907 9908 9909 GL_GNULIB_LINKAT=0 9910 9911 9912 9913 GL_GNULIB_LSEEK=0 9914 9915 9916 9917 GL_GNULIB_PIPE=0 9918 9919 9920 9921 GL_GNULIB_PIPE2=0 9922 9923 9924 9925 GL_GNULIB_PREAD=0 9926 9927 9928 9929 GL_GNULIB_PWRITE=0 9930 9931 9932 9933 GL_GNULIB_READ=0 9934 9935 9936 9937 GL_GNULIB_READLINK=0 9938 9939 9940 9941 GL_GNULIB_READLINKAT=0 9942 9943 9944 9945 GL_GNULIB_RMDIR=0 9946 9947 9948 9949 GL_GNULIB_SETHOSTNAME=0 9950 9951 9952 9953 GL_GNULIB_SLEEP=0 9954 9955 9956 9957 GL_GNULIB_SYMLINK=0 9958 9959 9960 9961 GL_GNULIB_SYMLINKAT=0 9962 9963 9964 9965 GL_GNULIB_TRUNCATE=0 9966 9967 9968 9969 GL_GNULIB_TTYNAME_R=0 9970 9971 9972 9973 GL_GNULIB_UNISTD_H_GETOPT=0 9974 9975 9976 9977 GL_GNULIB_UNISTD_H_NONBLOCKING=0 9978 9979 9980 9981 GL_GNULIB_UNISTD_H_SIGPIPE=0 9982 9983 9984 9985 GL_GNULIB_UNLINK=0 9986 9987 9988 9989 GL_GNULIB_UNLINKAT=0 9990 9991 9992 9993 GL_GNULIB_USLEEP=0 9994 9995 9996 9997 GL_GNULIB_WRITE=0 9998 9999 10000 10001 GL_GNULIB_MDA_ACCESS=1 10002 10003 10004 10005 GL_GNULIB_MDA_CHDIR=1 10006 10007 10008 10009 GL_GNULIB_MDA_CLOSE=1 10010 10011 10012 10013 GL_GNULIB_MDA_DUP=1 10014 10015 10016 10017 GL_GNULIB_MDA_DUP2=1 10018 10019 10020 10021 GL_GNULIB_MDA_EXECL=1 10022 10023 10024 10025 GL_GNULIB_MDA_EXECLE=1 10026 10027 10028 10029 GL_GNULIB_MDA_EXECLP=1 10030 10031 10032 10033 GL_GNULIB_MDA_EXECV=1 10034 10035 10036 10037 GL_GNULIB_MDA_EXECVE=1 10038 10039 10040 10041 GL_GNULIB_MDA_EXECVP=1 10042 10043 10044 10045 GL_GNULIB_MDA_EXECVPE=1 10046 10047 10048 10049 GL_GNULIB_MDA_GETCWD=1 10050 10051 10052 10053 GL_GNULIB_MDA_GETPID=1 10054 10055 10056 10057 GL_GNULIB_MDA_ISATTY=1 10058 10059 10060 10061 GL_GNULIB_MDA_LSEEK=1 10062 10063 10064 10065 GL_GNULIB_MDA_READ=1 10066 10067 10068 10069 GL_GNULIB_MDA_RMDIR=1 10070 10071 10072 10073 GL_GNULIB_MDA_SWAB=1 10074 10075 10076 10077 GL_GNULIB_MDA_UNLINK=1 10078 10079 10080 10081 GL_GNULIB_MDA_WRITE=1 10082 10083 10084 10085 10086 HAVE_CHOWN=1; 10087 HAVE_COPY_FILE_RANGE=1; 10088 HAVE_DUP3=1; 10089 HAVE_EUIDACCESS=1; 10090 HAVE_EXECVPE=1; 10091 HAVE_FACCESSAT=1; 10092 HAVE_FCHDIR=1; 10093 HAVE_FCHOWNAT=1; 10094 HAVE_FDATASYNC=1; 10095 HAVE_FSYNC=1; 10096 HAVE_FTRUNCATE=1; 10097 HAVE_GETDTABLESIZE=1; 10098 HAVE_GETENTROPY=1; 10099 HAVE_GETGROUPS=1; 10100 HAVE_GETHOSTNAME=1; 10101 HAVE_GETLOGIN=1; 10102 HAVE_GETPAGESIZE=1; 10103 HAVE_GETPASS=1; 10104 HAVE_GROUP_MEMBER=1; 10105 HAVE_LCHOWN=1; 10106 HAVE_LINK=1; 10107 HAVE_LINKAT=1; 10108 HAVE_PIPE=1; 10109 HAVE_PIPE2=1; 10110 HAVE_PREAD=1; 10111 HAVE_PWRITE=1; 10112 HAVE_READLINK=1; 10113 HAVE_READLINKAT=1; 10114 HAVE_SETHOSTNAME=1; 10115 HAVE_SLEEP=1; 10116 HAVE_SYMLINK=1; 10117 HAVE_SYMLINKAT=1; 10118 HAVE_UNLINKAT=1; 10119 HAVE_USLEEP=1; 10120 HAVE_DECL_ENVIRON=1; 10121 HAVE_DECL_EXECVPE=1; 10122 HAVE_DECL_FCHDIR=1; 10123 HAVE_DECL_FDATASYNC=1; 10124 HAVE_DECL_GETDOMAINNAME=1; 10125 HAVE_DECL_GETLOGIN=1; 10126 HAVE_DECL_GETLOGIN_R=1; 10127 HAVE_DECL_GETPAGESIZE=1; 10128 HAVE_DECL_GETUSERSHELL=1; 10129 HAVE_DECL_SETHOSTNAME=1; 10130 HAVE_DECL_TRUNCATE=1; 10131 HAVE_DECL_TTYNAME_R=1; 10132 HAVE_OS_H=0; 10133 HAVE_SYS_PARAM_H=0; 10134 REPLACE_ACCESS=0; 10135 REPLACE_CHOWN=0; 10136 REPLACE_CLOSE=0; 10137 REPLACE_COPY_FILE_RANGE=0; 10138 REPLACE_DUP=0; 10139 REPLACE_DUP2=0; 10140 REPLACE_EXECL=0; 10141 REPLACE_EXECLE=0; 10142 REPLACE_EXECLP=0; 10143 REPLACE_EXECV=0; 10144 REPLACE_EXECVE=0; 10145 REPLACE_EXECVP=0; 10146 REPLACE_EXECVPE=0; 10147 REPLACE_FACCESSAT=0; 10148 REPLACE_FCHOWNAT=0; 10149 REPLACE_FTRUNCATE=0; 10150 REPLACE_GETCWD=0; 10151 REPLACE_GETDOMAINNAME=0; 10152 REPLACE_GETDTABLESIZE=0; 10153 REPLACE_GETLOGIN_R=0; 10154 REPLACE_GETGROUPS=0; 10155 REPLACE_GETPAGESIZE=0; 10156 REPLACE_GETPASS=0; 10157 REPLACE_GETPASS_FOR_GETPASS_GNU=0; 10158 REPLACE_ISATTY=0; 10159 REPLACE_LCHOWN=0; 10160 REPLACE_LINK=0; 10161 REPLACE_LINKAT=0; 10162 REPLACE_LSEEK=0; 10163 REPLACE_PREAD=0; 10164 REPLACE_PWRITE=0; 10165 REPLACE_READ=0; 10166 REPLACE_READLINK=0; 10167 REPLACE_READLINKAT=0; 10168 REPLACE_RMDIR=0; 10169 REPLACE_SLEEP=0; 10170 REPLACE_SYMLINK=0; 10171 REPLACE_SYMLINKAT=0; 10172 REPLACE_TRUNCATE=0; 10173 REPLACE_TTYNAME_R=0; 10174 REPLACE_UNLINK=0; 10175 REPLACE_UNLINKAT=0; 10176 REPLACE_USLEEP=0; 10177 REPLACE_WRITE=0; 10178 UNISTD_H_HAVE_SYS_RANDOM_H=0; 10179 UNISTD_H_HAVE_WINSOCK2_H=0; 10180 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 10181 10182 10183 10184 10185 10186 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 10187 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 10188 10189 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 10190 10191 else 10192 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 10193 fi 10194 10195 10196 10197 SYS_IOCTL_H_HAVE_WINSOCK2_H=0; 10198 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 10199 10200 REPLACE_IOCTL=0; 10201 10202 10203 10204 HAVE_ISBLANK=1; 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 if test $gl_cv_have_include_next = yes; then 10218 gl_cv_next_ctype_h='<'ctype.h'>' 10219 else 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5 10221 printf %s "checking absolute name of <ctype.h>... " >&6; } 10222 if test ${gl_cv_next_ctype_h+y} 10223 then : 10224 printf %s "(cached) " >&6 10225 else case e in #( 10226 e) 10227 10228 10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10230 /* end confdefs.h. */ 10231 #include <ctype.h> 5733 10232 _ACEOF 5734 cat confdefs.h >>conftest.$ac_ext 5735 cat >>conftest.$ac_ext <<_ACEOF 5736 /* end confdefs.h. */ 5737 5738 # include <stdio.h> 5739 # include <sys/types.h> 5740 # include <string.h> 5741 int main () 5742 { /* Based on a test program from Karl Heuer. */ 5743 char *line = NULL; 5744 size_t siz = 0; 5745 int len; 5746 FILE *in = fopen ("./conftest.data", "r"); 5747 if (!in) 5748 return 1; 5749 len = getline (&line, &siz, in); 5750 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); 5751 } 5752 5753 _ACEOF 5754 rm -f conftest$ac_exeext 5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5756 (eval $ac_link) 2>&5 5757 ac_status=$? 5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5761 (eval $ac_try) 2>&5 5762 ac_status=$? 5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); }; }; then 5765 am_cv_func_working_getline=yes 5766 else 5767 echo "$as_me: program exited with status $ac_status" >&5 5768 echo "$as_me: failed program was:" >&5 5769 sed 's/^/| /' conftest.$ac_ext >&5 5770 5771 ( exit $ac_status ) 5772 am_cv_func_working_getline=no 5773 fi 5774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5775 fi 5776 fi 5777 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5 5778 echo "${ECHO_T}$am_cv_func_working_getline" >&6 5779 fi 5780 5781 if test $am_cv_func_working_getline = no; then 5782 case $LIBOBJS in 5783 "getline.$ac_objext" | \ 5784 *" getline.$ac_objext" | \ 5785 "getline.$ac_objext "* | \ 5786 *" getline.$ac_objext "* ) ;; 5787 *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;; 5788 esac 5789 5790 fi 5791 5792 echo "$as_me:$LINENO: checking for obstacks" >&5 5793 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6 5794 if test "${ac_cv_func_obstack+set}" = set; then 5795 echo $ECHO_N "(cached) $ECHO_C" >&6 5796 else 5797 cat >conftest.$ac_ext <<_ACEOF 5798 /* confdefs.h. */ 5799 _ACEOF 5800 cat confdefs.h >>conftest.$ac_ext 5801 cat >>conftest.$ac_ext <<_ACEOF 5802 /* end confdefs.h. */ 5803 #include "obstack.h" 5804 int 5805 main () 5806 { 5807 struct obstack *mem; obstack_free(mem,(char *) 0) 5808 ; 5809 return 0; 5810 } 5811 _ACEOF 5812 rm -f conftest.$ac_objext conftest$ac_exeext 5813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5814 (eval $ac_link) 2>conftest.er1 5815 ac_status=$? 5816 grep -v '^ *+' conftest.er1 >conftest.err 5817 rm -f conftest.er1 5818 cat conftest.err >&5 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } && 5821 { ac_try='test -z "$ac_c_werror_flag" 5822 || test ! -s conftest.err' 5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5824 (eval $ac_try) 2>&5 5825 ac_status=$? 5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); }; } && 5828 { ac_try='test -s conftest$ac_exeext' 5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5830 (eval $ac_try) 2>&5 5831 ac_status=$? 5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); }; }; then 5834 ac_cv_func_obstack=yes 5835 else 5836 echo "$as_me: failed program was:" >&5 5837 sed 's/^/| /' conftest.$ac_ext >&5 5838 5839 ac_cv_func_obstack=no 5840 fi 5841 rm -f conftest.err conftest.$ac_objext \ 5842 conftest$ac_exeext conftest.$ac_ext 5843 fi 5844 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 5845 echo "${ECHO_T}$ac_cv_func_obstack" >&6 5846 if test $ac_cv_func_obstack = yes; then 5847 5848 cat >>confdefs.h <<\_ACEOF 5849 #define HAVE_OBSTACK 1 5850 _ACEOF 5851 5852 else 5853 case $LIBOBJS in 5854 "obstack.$ac_objext" | \ 5855 *" obstack.$ac_objext" | \ 5856 "obstack.$ac_objext "* | \ 5857 *" obstack.$ac_objext "* ) ;; 5858 *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;; 5859 esac 5860 5861 fi 5862 5863 5864 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 5865 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6 5866 if test "${ac_cv_func_mbrtowc+set}" = set; then 5867 echo $ECHO_N "(cached) $ECHO_C" >&6 5868 else 5869 cat >conftest.$ac_ext <<_ACEOF 5870 /* confdefs.h. */ 5871 _ACEOF 5872 cat confdefs.h >>conftest.$ac_ext 5873 cat >>conftest.$ac_ext <<_ACEOF 5874 /* end confdefs.h. */ 5875 #include <wchar.h> 5876 int 5877 main () 5878 { 5879 mbstate_t state; return ! (sizeof state && mbrtowc); 5880 ; 5881 return 0; 5882 } 5883 _ACEOF 5884 rm -f conftest.$ac_objext conftest$ac_exeext 5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5886 (eval $ac_link) 2>conftest.er1 5887 ac_status=$? 5888 grep -v '^ *+' conftest.er1 >conftest.err 5889 rm -f conftest.er1 5890 cat conftest.err >&5 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); } && 5893 { ac_try='test -z "$ac_c_werror_flag" 5894 || test ! -s conftest.err' 5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5896 (eval $ac_try) 2>&5 5897 ac_status=$? 5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5899 (exit $ac_status); }; } && 5900 { ac_try='test -s conftest$ac_exeext' 5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5902 (eval $ac_try) 2>&5 5903 ac_status=$? 5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5905 (exit $ac_status); }; }; then 5906 ac_cv_func_mbrtowc=yes 5907 else 5908 echo "$as_me: failed program was:" >&5 5909 sed 's/^/| /' conftest.$ac_ext >&5 5910 5911 ac_cv_func_mbrtowc=no 5912 fi 5913 rm -f conftest.err conftest.$ac_objext \ 5914 conftest$ac_exeext conftest.$ac_ext 5915 fi 5916 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 5917 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 5918 if test $ac_cv_func_mbrtowc = yes; then 5919 5920 cat >>confdefs.h <<\_ACEOF 5921 #define HAVE_MBRTOWC 1 5922 _ACEOF 5923 5924 fi 5925 5926 echo "$as_me:$LINENO: checking for mbstate_t" >&5 5927 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 5928 if test "${ac_cv_type_mbstate_t+set}" = set; then 5929 echo $ECHO_N "(cached) $ECHO_C" >&6 5930 else 5931 cat >conftest.$ac_ext <<_ACEOF 5932 /* confdefs.h. */ 5933 _ACEOF 5934 cat confdefs.h >>conftest.$ac_ext 5935 cat >>conftest.$ac_ext <<_ACEOF 5936 /* end confdefs.h. */ 5937 $ac_includes_default 5938 # include <wchar.h> 5939 int 5940 main () 5941 { 5942 mbstate_t x; return sizeof x; 5943 ; 5944 return 0; 5945 } 5946 _ACEOF 5947 rm -f conftest.$ac_objext 5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5949 (eval $ac_compile) 2>conftest.er1 5950 ac_status=$? 5951 grep -v '^ *+' conftest.er1 >conftest.err 5952 rm -f conftest.er1 5953 cat conftest.err >&5 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 (exit $ac_status); } && 5956 { ac_try='test -z "$ac_c_werror_flag" 5957 || test ! -s conftest.err' 5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5959 (eval $ac_try) 2>&5 5960 ac_status=$? 5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5962 (exit $ac_status); }; } && 5963 { ac_try='test -s conftest.$ac_objext' 5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5965 (eval $ac_try) 2>&5 5966 ac_status=$? 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); }; }; then 5969 ac_cv_type_mbstate_t=yes 5970 else 5971 echo "$as_me: failed program was:" >&5 5972 sed 's/^/| /' conftest.$ac_ext >&5 5973 5974 ac_cv_type_mbstate_t=no 5975 fi 5976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5977 fi 5978 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 5979 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 5980 if test $ac_cv_type_mbstate_t = yes; then 5981 5982 cat >>confdefs.h <<\_ACEOF 5983 #define HAVE_MBSTATE_T 1 5984 _ACEOF 5985 5986 else 5987 5988 cat >>confdefs.h <<\_ACEOF 5989 #define mbstate_t int 5990 _ACEOF 5991 5992 fi 5993 5994 5995 5996 5997 for ac_func in strverscmp 5998 do 5999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6000 echo "$as_me:$LINENO: checking for $ac_func" >&5 6001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6002 if eval "test \"\${$as_ac_var+set}\" = set"; then 6003 echo $ECHO_N "(cached) $ECHO_C" >&6 6004 else 6005 cat >conftest.$ac_ext <<_ACEOF 6006 /* confdefs.h. */ 6007 _ACEOF 6008 cat confdefs.h >>conftest.$ac_ext 6009 cat >>conftest.$ac_ext <<_ACEOF 6010 /* end confdefs.h. */ 6011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6012 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6013 #define $ac_func innocuous_$ac_func 6014 6015 /* System header to define __stub macros and hopefully few prototypes, 6016 which can conflict with char $ac_func (); below. 6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6018 <limits.h> exists even on freestanding compilers. */ 6019 6020 #ifdef __STDC__ 6021 # include <limits.h> 6022 #else 6023 # include <assert.h> 6024 #endif 6025 6026 #undef $ac_func 6027 6028 /* Override any gcc2 internal prototype to avoid an error. */ 6029 #ifdef __cplusplus 6030 extern "C" 6031 { 6032 #endif 6033 /* We use char because int might match the return type of a gcc2 6034 builtin and then its argument prototype would still apply. */ 6035 char $ac_func (); 6036 /* The GNU C library defines this for functions which it implements 6037 to always fail with ENOSYS. Some functions are actually named 6038 something starting with __ and the normal name is an alias. */ 6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6040 choke me 6041 #else 6042 char (*f) () = $ac_func; 6043 #endif 6044 #ifdef __cplusplus 6045 } 6046 #endif 6047 6048 int 6049 main () 6050 { 6051 return f != $ac_func; 6052 ; 6053 return 0; 6054 } 6055 _ACEOF 6056 rm -f conftest.$ac_objext conftest$ac_exeext 6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6058 (eval $ac_link) 2>conftest.er1 6059 ac_status=$? 6060 grep -v '^ *+' conftest.er1 >conftest.err 6061 rm -f conftest.er1 6062 cat conftest.err >&5 6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6064 (exit $ac_status); } && 6065 { ac_try='test -z "$ac_c_werror_flag" 6066 || test ! -s conftest.err' 6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6068 (eval $ac_try) 2>&5 6069 ac_status=$? 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); }; } && 6072 { ac_try='test -s conftest$ac_exeext' 6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6074 (eval $ac_try) 2>&5 6075 ac_status=$? 6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6077 (exit $ac_status); }; }; then 6078 eval "$as_ac_var=yes" 6079 else 6080 echo "$as_me: failed program was:" >&5 6081 sed 's/^/| /' conftest.$ac_ext >&5 6082 6083 eval "$as_ac_var=no" 6084 fi 6085 rm -f conftest.err conftest.$ac_objext \ 6086 conftest$ac_exeext conftest.$ac_ext 6087 fi 6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6090 if test `eval echo '${'$as_ac_var'}'` = yes; then 6091 cat >>confdefs.h <<_ACEOF 6092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6093 _ACEOF 6094 6095 else 6096 case $LIBOBJS in 6097 "$ac_func.$ac_objext" | \ 6098 *" $ac_func.$ac_objext" | \ 6099 "$ac_func.$ac_objext "* | \ 6100 *" $ac_func.$ac_objext "* ) ;; 6101 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6102 esac 6103 6104 fi 6105 done 6106 6107 6108 if test $ac_cv_func_strverscmp = no; then 6109 6110 : 6111 6112 fi 6113 6114 6115 6116 6117 6118 6119 for ac_func in memchr memcmp memmove strerror mkstemp 6120 do 6121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6122 echo "$as_me:$LINENO: checking for $ac_func" >&5 6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6124 if eval "test \"\${$as_ac_var+set}\" = set"; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126 else 6127 cat >conftest.$ac_ext <<_ACEOF 6128 /* confdefs.h. */ 6129 _ACEOF 6130 cat confdefs.h >>conftest.$ac_ext 6131 cat >>conftest.$ac_ext <<_ACEOF 6132 /* end confdefs.h. */ 6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6135 #define $ac_func innocuous_$ac_func 6136 6137 /* System header to define __stub macros and hopefully few prototypes, 6138 which can conflict with char $ac_func (); below. 6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6140 <limits.h> exists even on freestanding compilers. */ 6141 6142 #ifdef __STDC__ 6143 # include <limits.h> 6144 #else 6145 # include <assert.h> 6146 #endif 6147 6148 #undef $ac_func 6149 6150 /* Override any gcc2 internal prototype to avoid an error. */ 6151 #ifdef __cplusplus 6152 extern "C" 6153 { 6154 #endif 6155 /* We use char because int might match the return type of a gcc2 6156 builtin and then its argument prototype would still apply. */ 6157 char $ac_func (); 6158 /* The GNU C library defines this for functions which it implements 6159 to always fail with ENOSYS. Some functions are actually named 6160 something starting with __ and the normal name is an alias. */ 6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6162 choke me 6163 #else 6164 char (*f) () = $ac_func; 6165 #endif 6166 #ifdef __cplusplus 6167 } 6168 #endif 6169 6170 int 6171 main () 6172 { 6173 return f != $ac_func; 6174 ; 6175 return 0; 6176 } 6177 _ACEOF 6178 rm -f conftest.$ac_objext conftest$ac_exeext 6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6180 (eval $ac_link) 2>conftest.er1 6181 ac_status=$? 6182 grep -v '^ *+' conftest.er1 >conftest.err 6183 rm -f conftest.er1 6184 cat conftest.err >&5 6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6186 (exit $ac_status); } && 6187 { ac_try='test -z "$ac_c_werror_flag" 6188 || test ! -s conftest.err' 6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6190 (eval $ac_try) 2>&5 6191 ac_status=$? 6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6193 (exit $ac_status); }; } && 6194 { ac_try='test -s conftest$ac_exeext' 6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6196 (eval $ac_try) 2>&5 6197 ac_status=$? 6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6199 (exit $ac_status); }; }; then 6200 eval "$as_ac_var=yes" 6201 else 6202 echo "$as_me: failed program was:" >&5 6203 sed 's/^/| /' conftest.$ac_ext >&5 6204 6205 eval "$as_ac_var=no" 6206 fi 6207 rm -f conftest.err conftest.$ac_objext \ 6208 conftest$ac_exeext conftest.$ac_ext 6209 fi 6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6212 if test `eval echo '${'$as_ac_var'}'` = yes; then 6213 cat >>confdefs.h <<_ACEOF 6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6215 _ACEOF 6216 6217 else 6218 case $LIBOBJS in 6219 "$ac_func.$ac_objext" | \ 6220 *" $ac_func.$ac_objext" | \ 6221 "$ac_func.$ac_objext "* | \ 6222 *" $ac_func.$ac_objext "* ) ;; 6223 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6224 esac 6225 6226 fi 6227 done 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 for ac_func in isatty bcopy bzero isascii memcpy memset strchr strtoul popen \ 6248 pathconf isblank fchown fchmod setlocale wcrtomb wcscoll btowc 6249 do 6250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6251 echo "$as_me:$LINENO: checking for $ac_func" >&5 6252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6253 if eval "test \"\${$as_ac_var+set}\" = set"; then 6254 echo $ECHO_N "(cached) $ECHO_C" >&6 6255 else 6256 cat >conftest.$ac_ext <<_ACEOF 6257 /* confdefs.h. */ 6258 _ACEOF 6259 cat confdefs.h >>conftest.$ac_ext 6260 cat >>conftest.$ac_ext <<_ACEOF 6261 /* end confdefs.h. */ 6262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6263 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6264 #define $ac_func innocuous_$ac_func 6265 6266 /* System header to define __stub macros and hopefully few prototypes, 6267 which can conflict with char $ac_func (); below. 6268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6269 <limits.h> exists even on freestanding compilers. */ 6270 6271 #ifdef __STDC__ 6272 # include <limits.h> 6273 #else 6274 # include <assert.h> 6275 #endif 6276 6277 #undef $ac_func 6278 6279 /* Override any gcc2 internal prototype to avoid an error. */ 6280 #ifdef __cplusplus 6281 extern "C" 6282 { 6283 #endif 6284 /* We use char because int might match the return type of a gcc2 6285 builtin and then its argument prototype would still apply. */ 6286 char $ac_func (); 6287 /* The GNU C library defines this for functions which it implements 6288 to always fail with ENOSYS. Some functions are actually named 6289 something starting with __ and the normal name is an alias. */ 6290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6291 choke me 6292 #else 6293 char (*f) () = $ac_func; 6294 #endif 6295 #ifdef __cplusplus 6296 } 6297 #endif 6298 6299 int 6300 main () 6301 { 6302 return f != $ac_func; 6303 ; 6304 return 0; 6305 } 6306 _ACEOF 6307 rm -f conftest.$ac_objext conftest$ac_exeext 6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6309 (eval $ac_link) 2>conftest.er1 6310 ac_status=$? 6311 grep -v '^ *+' conftest.er1 >conftest.err 6312 rm -f conftest.er1 6313 cat conftest.err >&5 6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6315 (exit $ac_status); } && 6316 { ac_try='test -z "$ac_c_werror_flag" 6317 || test ! -s conftest.err' 6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6319 (eval $ac_try) 2>&5 6320 ac_status=$? 6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6322 (exit $ac_status); }; } && 6323 { ac_try='test -s conftest$ac_exeext' 6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6325 (eval $ac_try) 2>&5 6326 ac_status=$? 6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6328 (exit $ac_status); }; }; then 6329 eval "$as_ac_var=yes" 6330 else 6331 echo "$as_me: failed program was:" >&5 6332 sed 's/^/| /' conftest.$ac_ext >&5 6333 6334 eval "$as_ac_var=no" 6335 fi 6336 rm -f conftest.err conftest.$ac_objext \ 6337 conftest$ac_exeext conftest.$ac_ext 6338 fi 6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6341 if test `eval echo '${'$as_ac_var'}'` = yes; then 6342 cat >>confdefs.h <<_ACEOF 6343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6344 _ACEOF 6345 6346 fi 6347 done 6348 6349 6350 # Check whether --enable-i18n or --disable-i18n was given. 6351 if test "${enable_i18n+set}" = set; then 6352 enableval="$enable_i18n" 6353 6354 else 6355 enable_i18n=yes 6356 fi; 6357 if test "x$enable_i18n" = xno; then 6358 ac_cv_func_wcscoll=false 6359 fi 6360 6361 6362 # Check whether --with-included-regex or --without-included-regex was given. 6363 if test "${with_included_regex+set}" = set; then 6364 withval="$with_included_regex" 6365 6366 else 6367 with_included_regex=yes 6368 fi; 6369 6370 if test "x$with_included_regex" = xno; then 6371 6372 for ac_header in regex.h 6373 do 6374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6375 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6376 echo "$as_me:$LINENO: checking for $ac_header" >&5 6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6379 echo $ECHO_N "(cached) $ECHO_C" >&6 6380 fi 6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6383 else 6384 # Is the header compilable? 6385 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6387 cat >conftest.$ac_ext <<_ACEOF 6388 /* confdefs.h. */ 6389 _ACEOF 6390 cat confdefs.h >>conftest.$ac_ext 6391 cat >>conftest.$ac_ext <<_ACEOF 6392 /* end confdefs.h. */ 6393 $ac_includes_default 6394 #include <$ac_header> 6395 _ACEOF 6396 rm -f conftest.$ac_objext 6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6398 (eval $ac_compile) 2>conftest.er1 6399 ac_status=$? 6400 grep -v '^ *+' conftest.er1 >conftest.err 6401 rm -f conftest.er1 6402 cat conftest.err >&5 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); } && 6405 { ac_try='test -z "$ac_c_werror_flag" 6406 || test ! -s conftest.err' 6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6408 (eval $ac_try) 2>&5 6409 ac_status=$? 6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); }; } && 6412 { ac_try='test -s conftest.$ac_objext' 6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6414 (eval $ac_try) 2>&5 6415 ac_status=$? 6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6417 (exit $ac_status); }; }; then 6418 ac_header_compiler=yes 6419 else 6420 echo "$as_me: failed program was:" >&5 6421 sed 's/^/| /' conftest.$ac_ext >&5 6422 6423 ac_header_compiler=no 6424 fi 6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6427 echo "${ECHO_T}$ac_header_compiler" >&6 6428 6429 # Is the header present? 6430 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6432 cat >conftest.$ac_ext <<_ACEOF 6433 /* confdefs.h. */ 6434 _ACEOF 6435 cat confdefs.h >>conftest.$ac_ext 6436 cat >>conftest.$ac_ext <<_ACEOF 6437 /* end confdefs.h. */ 6438 #include <$ac_header> 6439 _ACEOF 6440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6442 ac_status=$? 6443 grep -v '^ *+' conftest.er1 >conftest.err 6444 rm -f conftest.er1 6445 cat conftest.err >&5 6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6447 (exit $ac_status); } >/dev/null; then 6448 if test -s conftest.err; then 6449 ac_cpp_err=$ac_c_preproc_warn_flag 6450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6451 else 6452 ac_cpp_err= 6453 fi 6454 else 6455 ac_cpp_err=yes 6456 fi 6457 if test -z "$ac_cpp_err"; then 6458 ac_header_preproc=yes 6459 else 6460 echo "$as_me: failed program was:" >&5 6461 sed 's/^/| /' conftest.$ac_ext >&5 6462 6463 ac_header_preproc=no 6464 fi 6465 rm -f conftest.err conftest.$ac_ext 6466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6467 echo "${ECHO_T}$ac_header_preproc" >&6 6468 6469 # So? What about this header? 6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6471 yes:no: ) 6472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6476 ac_header_preproc=yes 6477 ;; 6478 no:yes:* ) 6479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6491 ( 6492 cat <<\_ASBOX 6493 ## ------------------------------ ## 6494 ## Report this to [email protected] ## 6495 ## ------------------------------ ## 6496 _ASBOX 6497 ) | 6498 sed "s/^/$as_me: WARNING: /" >&2 6499 ;; 6500 esac 6501 echo "$as_me:$LINENO: checking for $ac_header" >&5 6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6504 echo $ECHO_N "(cached) $ECHO_C" >&6 6505 else 6506 eval "$as_ac_Header=\$ac_header_preproc" 6507 fi 6508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6510 6511 fi 6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6513 cat >>confdefs.h <<_ACEOF 6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6515 _ACEOF 6516 6517 fi 6518 6519 done 6520 6521 6522 echo "$as_me:$LINENO: checking for re_search in -lregex" >&5 6523 echo $ECHO_N "checking for re_search in -lregex... $ECHO_C" >&6 6524 if test "${ac_cv_lib_regex_re_search+set}" = set; then 6525 echo $ECHO_N "(cached) $ECHO_C" >&6 6526 else 6527 ac_check_lib_save_LIBS=$LIBS 6528 LIBS="-lregex $LIBS" 6529 cat >conftest.$ac_ext <<_ACEOF 6530 /* confdefs.h. */ 6531 _ACEOF 6532 cat confdefs.h >>conftest.$ac_ext 6533 cat >>conftest.$ac_ext <<_ACEOF 6534 /* end confdefs.h. */ 6535 6536 /* Override any gcc2 internal prototype to avoid an error. */ 6537 #ifdef __cplusplus 6538 extern "C" 6539 #endif 6540 /* We use char because int might match the return type of a gcc2 6541 builtin and then its argument prototype would still apply. */ 6542 char re_search (); 6543 int 6544 main () 6545 { 6546 re_search (); 6547 ; 6548 return 0; 6549 } 6550 _ACEOF 6551 rm -f conftest.$ac_objext conftest$ac_exeext 6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6553 (eval $ac_link) 2>conftest.er1 6554 ac_status=$? 6555 grep -v '^ *+' conftest.er1 >conftest.err 6556 rm -f conftest.er1 6557 cat conftest.err >&5 6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6559 (exit $ac_status); } && 6560 { ac_try='test -z "$ac_c_werror_flag" 6561 || test ! -s conftest.err' 6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6563 (eval $ac_try) 2>&5 6564 ac_status=$? 6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6566 (exit $ac_status); }; } && 6567 { ac_try='test -s conftest$ac_exeext' 6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6569 (eval $ac_try) 2>&5 6570 ac_status=$? 6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6572 (exit $ac_status); }; }; then 6573 ac_cv_lib_regex_re_search=yes 6574 else 6575 echo "$as_me: failed program was:" >&5 6576 sed 's/^/| /' conftest.$ac_ext >&5 6577 6578 ac_cv_lib_regex_re_search=no 6579 fi 6580 rm -f conftest.err conftest.$ac_objext \ 6581 conftest$ac_exeext conftest.$ac_ext 6582 LIBS=$ac_check_lib_save_LIBS 6583 fi 6584 echo "$as_me:$LINENO: result: $ac_cv_lib_regex_re_search" >&5 6585 echo "${ECHO_T}$ac_cv_lib_regex_re_search" >&6 6586 if test $ac_cv_lib_regex_re_search = yes; then 6587 cat >>confdefs.h <<_ACEOF 6588 #define HAVE_LIBREGEX 1 6589 _ACEOF 6590 6591 LIBS="-lregex $LIBS" 6592 6593 fi 6594 6595 echo "$as_me:$LINENO: checking for re_search" >&5 6596 echo $ECHO_N "checking for re_search... $ECHO_C" >&6 6597 if test "${ac_cv_func_re_search+set}" = set; then 6598 echo $ECHO_N "(cached) $ECHO_C" >&6 6599 else 6600 cat >conftest.$ac_ext <<_ACEOF 6601 /* confdefs.h. */ 6602 _ACEOF 6603 cat confdefs.h >>conftest.$ac_ext 6604 cat >>conftest.$ac_ext <<_ACEOF 6605 /* end confdefs.h. */ 6606 /* Define re_search to an innocuous variant, in case <limits.h> declares re_search. 6607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6608 #define re_search innocuous_re_search 6609 6610 /* System header to define __stub macros and hopefully few prototypes, 6611 which can conflict with char re_search (); below. 6612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6613 <limits.h> exists even on freestanding compilers. */ 6614 6615 #ifdef __STDC__ 6616 # include <limits.h> 6617 #else 6618 # include <assert.h> 6619 #endif 6620 6621 #undef re_search 6622 6623 /* Override any gcc2 internal prototype to avoid an error. */ 6624 #ifdef __cplusplus 6625 extern "C" 6626 { 6627 #endif 6628 /* We use char because int might match the return type of a gcc2 6629 builtin and then its argument prototype would still apply. */ 6630 char re_search (); 6631 /* The GNU C library defines this for functions which it implements 6632 to always fail with ENOSYS. Some functions are actually named 6633 something starting with __ and the normal name is an alias. */ 6634 #if defined (__stub_re_search) || defined (__stub___re_search) 6635 choke me 6636 #else 6637 char (*f) () = re_search; 6638 #endif 6639 #ifdef __cplusplus 6640 } 6641 #endif 6642 6643 int 6644 main () 6645 { 6646 return f != re_search; 6647 ; 6648 return 0; 6649 } 6650 _ACEOF 6651 rm -f conftest.$ac_objext conftest$ac_exeext 6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6653 (eval $ac_link) 2>conftest.er1 6654 ac_status=$? 6655 grep -v '^ *+' conftest.er1 >conftest.err 6656 rm -f conftest.er1 6657 cat conftest.err >&5 6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6659 (exit $ac_status); } && 6660 { ac_try='test -z "$ac_c_werror_flag" 6661 || test ! -s conftest.err' 6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6663 (eval $ac_try) 2>&5 6664 ac_status=$? 6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6666 (exit $ac_status); }; } && 6667 { ac_try='test -s conftest$ac_exeext' 6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6669 (eval $ac_try) 2>&5 6670 ac_status=$? 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); }; }; then 6673 ac_cv_func_re_search=yes 6674 else 6675 echo "$as_me: failed program was:" >&5 6676 sed 's/^/| /' conftest.$ac_ext >&5 6677 6678 ac_cv_func_re_search=no 6679 fi 6680 rm -f conftest.err conftest.$ac_objext \ 6681 conftest$ac_exeext conftest.$ac_ext 6682 fi 6683 echo "$as_me:$LINENO: result: $ac_cv_func_re_search" >&5 6684 echo "${ECHO_T}$ac_cv_func_re_search" >&6 6685 6686 if test $ac_cv_header_regex_h = no || test $ac_cv_func_re_search = no; then 6687 { echo "$as_me:$LINENO: WARNING: GNU regex not found, falling back to the included version" >&5 6688 echo "$as_me: WARNING: GNU regex not found, falling back to the included version" >&2;} 6689 with_included_regex=yes 6690 fi 6691 fi 6692 6693 # Check whether --enable-regex-tests or --disable-regex-tests was given. 6694 if test "${enable_regex_tests+set}" = set; then 6695 enableval="$enable_regex_tests" 6696 if test "x$with_included_regex" = xno; then 6697 enable_regex_tests=no 6698 fi 6699 else 6700 enable_regex_tests=$with_included_regex 6701 fi; 6702 6703 6704 6705 if test "x$enable_regex_tests" != xno; then 6706 TEST_REGEX_TRUE= 6707 TEST_REGEX_FALSE='#' 6708 else 6709 TEST_REGEX_TRUE='#' 6710 TEST_REGEX_FALSE= 6711 fi 6712 6713 if test "x$with_included_regex" != xno; then 6714 ac_config_links="$ac_config_links lib/regex.h:lib/regex_.h" 6715 6716 case $LIBOBJS in 6717 "regex.$ac_objext" | \ 6718 *" regex.$ac_objext" | \ 6719 "regex.$ac_objext "* | \ 6720 *" regex.$ac_objext "* ) ;; 6721 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;; 6722 esac 6723 6724 fi 6725 if test "x$enable_regex_tests" = xyes; then 6726 6727 cat >>confdefs.h <<_ACEOF 6728 #define _REGEX_RE_COMP 1 6729 _ACEOF 6730 6731 fi 6732 6733 # Check whether --enable-html or --disable-html was given. 6734 if test "${enable_html+set}" = set; then 6735 enableval="$enable_html" 6736 6737 else 6738 enable_html=no 6739 fi; 6740 6741 6742 6743 if test "x$enable_html" != xno; then 6744 BUILD_HTML_TRUE= 6745 BUILD_HTML_FALSE='#' 6746 else 6747 BUILD_HTML_TRUE='#' 6748 BUILD_HTML_FALSE= 6749 fi 6750 6751 6752 : ${TEXI2HTML=texi2html -monolithic} 6753 6754 6755 echo "$as_me:$LINENO: checking how to build HTML documentation" >&5 6756 echo $ECHO_N "checking how to build HTML documentation... $ECHO_C" >&6 6757 if eval $am_missing_run makeinfo --help 2>&1 | grep .-html > /dev/null; then 6758 echo "$as_me:$LINENO: result: with makeinfo" >&5 6759 echo "${ECHO_T}with makeinfo" >&6 6760 enable_html=makeinfo 6761 else 6762 if $TEXI2HTML --help 2>&1 | grep monolithic > /dev/null; then 6763 echo "$as_me:$LINENO: result: with texi2html" >&5 6764 echo "${ECHO_T}with texi2html" >&6 6765 enable_html=texi2html 6766 else 6767 echo "$as_me:$LINENO: result: not built" >&5 6768 echo "${ECHO_T}not built" >&6 6769 if test "x$enable_html" != xno; then 6770 { { echo "$as_me:$LINENO: error: cannot build HTML documentation" >&5 6771 echo "$as_me: error: cannot build HTML documentation" >&2;} 6772 { (exit install makeinfo 4.0 or texi2html); exit install makeinfo 4.0 or texi2html; }; } 6773 fi 6774 enable_html=no 6775 fi 6776 fi 6777 6778 6779 6780 if test "x$enable_html" = xmakeinfo; then 6781 MAKEINFO_HTML_TRUE= 6782 MAKEINFO_HTML_FALSE='#' 6783 else 6784 MAKEINFO_HTML_TRUE='#' 6785 MAKEINFO_HTML_FALSE= 6786 fi 6787 6788 6789 6790 if test "x$enable_html" = xtexi2html; then 6791 TEXI2HTML_HTML_TRUE= 6792 TEXI2HTML_HTML_FALSE='#' 6793 else 6794 TEXI2HTML_HTML_TRUE='#' 6795 TEXI2HTML_HTML_FALSE= 6796 fi 6797 6798 6799 6800 6801 6802 MKINSTALLDIRS="$mkdir_p" 6803 6804 6805 6806 # Extract the first word of "msgfmt", so it can be a program name with args. 6807 set dummy msgfmt; ac_word=$2 6808 echo "$as_me:$LINENO: checking for $ac_word" >&5 6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6810 if test "${ac_cv_path_MSGFMT+set}" = set; then 6811 echo $ECHO_N "(cached) $ECHO_C" >&6 6812 else 6813 case "$MSGFMT" in 6814 /*) 6815 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6816 ;; 6817 *) 6818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6819 for ac_dir in $PATH; do 6820 test -z "$ac_dir" && ac_dir=. 6821 if test -f $ac_dir/$ac_word; then 6822 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 6823 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6824 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 6825 break 6826 fi 6827 fi 6828 done 6829 IFS="$ac_save_ifs" 6830 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 6831 ;; 6832 esac 6833 fi 6834 MSGFMT="$ac_cv_path_MSGFMT" 6835 if test "$MSGFMT" != ":"; then 6836 echo "$as_me:$LINENO: result: $MSGFMT" >&5 6837 echo "${ECHO_T}$MSGFMT" >&6 6838 else 6839 echo "$as_me:$LINENO: result: no" >&5 6840 echo "${ECHO_T}no" >&6 6841 fi 6842 6843 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6844 set dummy gmsgfmt; ac_word=$2 6845 echo "$as_me:$LINENO: checking for $ac_word" >&5 6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6847 if test "${ac_cv_path_GMSGFMT+set}" = set; then 6848 echo $ECHO_N "(cached) $ECHO_C" >&6 6849 else 6850 case $GMSGFMT in 6851 [\\/]* | ?:[\\/]*) 6852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6853 ;; 6854 *) 6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856 for as_dir in $PATH 6857 do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866 done 6867 done 6868 6869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6870 ;; 6871 esac 6872 fi 6873 GMSGFMT=$ac_cv_path_GMSGFMT 6874 6875 if test -n "$GMSGFMT"; then 6876 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 6877 echo "${ECHO_T}$GMSGFMT" >&6 6878 else 6879 echo "$as_me:$LINENO: result: no" >&5 6880 echo "${ECHO_T}no" >&6 6881 fi 6882 6883 6884 # Extract the first word of "xgettext", so it can be a program name with args. 6885 set dummy xgettext; ac_word=$2 6886 echo "$as_me:$LINENO: checking for $ac_word" >&5 6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6888 if test "${ac_cv_path_XGETTEXT+set}" = set; then 6889 echo $ECHO_N "(cached) $ECHO_C" >&6 6890 else 6891 case "$XGETTEXT" in 6892 /*) 6893 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6894 ;; 6895 *) 6896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6897 for ac_dir in $PATH; do 6898 test -z "$ac_dir" && ac_dir=. 6899 if test -f $ac_dir/$ac_word; then 6900 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 6901 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6902 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 6903 break 6904 fi 6905 fi 6906 done 6907 IFS="$ac_save_ifs" 6908 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6909 ;; 6910 esac 6911 fi 6912 XGETTEXT="$ac_cv_path_XGETTEXT" 6913 if test "$XGETTEXT" != ":"; then 6914 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 6915 echo "${ECHO_T}$XGETTEXT" >&6 6916 else 6917 echo "$as_me:$LINENO: result: no" >&5 6918 echo "${ECHO_T}no" >&6 6919 fi 6920 6921 rm -f messages.po 6922 6923 # Extract the first word of "msgmerge", so it can be a program name with args. 6924 set dummy msgmerge; ac_word=$2 6925 echo "$as_me:$LINENO: checking for $ac_word" >&5 6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6927 if test "${ac_cv_path_MSGMERGE+set}" = set; then 6928 echo $ECHO_N "(cached) $ECHO_C" >&6 6929 else 6930 case "$MSGMERGE" in 6931 /*) 6932 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 6933 ;; 6934 *) 6935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6936 for ac_dir in $PATH; do 6937 test -z "$ac_dir" && ac_dir=. 6938 if test -f $ac_dir/$ac_word; then 6939 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 6940 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 6941 break 6942 fi 6943 fi 6944 done 6945 IFS="$ac_save_ifs" 6946 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 6947 ;; 6948 esac 6949 fi 6950 MSGMERGE="$ac_cv_path_MSGMERGE" 6951 if test "$MSGMERGE" != ":"; then 6952 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 6953 echo "${ECHO_T}$MSGMERGE" >&6 6954 else 6955 echo "$as_me:$LINENO: result: no" >&5 6956 echo "${ECHO_T}no" >&6 6957 fi 6958 6959 6960 if test "$GMSGFMT" != ":"; then 6961 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 6962 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6963 : ; 6964 else 6965 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 6966 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 6967 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 6968 GMSGFMT=":" 6969 fi 6970 fi 6971 6972 if test "$XGETTEXT" != ":"; then 6973 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 6974 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6975 : ; 6976 else 6977 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 6978 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 6979 XGETTEXT=":" 6980 fi 6981 rm -f messages.po 6982 fi 6983 6984 ac_config_commands="$ac_config_commands default-1" 6985 6986 6987 # Make sure we can run config.sub. 6988 $ac_config_sub sun4 >/dev/null 2>&1 || 6989 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6990 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6991 { (exit 1); exit 1; }; } 6992 6993 echo "$as_me:$LINENO: checking build system type" >&5 6994 echo $ECHO_N "checking build system type... $ECHO_C" >&6 6995 if test "${ac_cv_build+set}" = set; then 6996 echo $ECHO_N "(cached) $ECHO_C" >&6 6997 else 6998 ac_cv_build_alias=$build_alias 6999 test -z "$ac_cv_build_alias" && 7000 ac_cv_build_alias=`$ac_config_guess` 7001 test -z "$ac_cv_build_alias" && 7002 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 7003 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 7004 { (exit 1); exit 1; }; } 7005 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 7006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 7007 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 7008 { (exit 1); exit 1; }; } 7009 7010 fi 7011 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 7012 echo "${ECHO_T}$ac_cv_build" >&6 7013 build=$ac_cv_build 7014 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7015 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7016 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7017 7018 7019 echo "$as_me:$LINENO: checking host system type" >&5 7020 echo $ECHO_N "checking host system type... $ECHO_C" >&6 7021 if test "${ac_cv_host+set}" = set; then 7022 echo $ECHO_N "(cached) $ECHO_C" >&6 7023 else 7024 ac_cv_host_alias=$host_alias 7025 test -z "$ac_cv_host_alias" && 7026 ac_cv_host_alias=$ac_cv_build_alias 7027 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 7028 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 7029 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 7030 { (exit 1); exit 1; }; } 7031 7032 fi 7033 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7034 echo "${ECHO_T}$ac_cv_host" >&6 7035 host=$ac_cv_host 7036 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7037 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7038 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7039 7040 7041 echo "$as_me:$LINENO: checking for inline" >&5 7042 echo $ECHO_N "checking for inline... $ECHO_C" >&6 7043 if test "${ac_cv_c_inline+set}" = set; then 7044 echo $ECHO_N "(cached) $ECHO_C" >&6 7045 else 7046 ac_cv_c_inline=no 10233 case "$host_os" in 10234 aix*) gl_absname_cpp="$ac_cpp -C" ;; 10235 *) gl_absname_cpp="$ac_cpp" ;; 10236 esac 10237 10238 case "$host_os" in 10239 mingw*) 10240 gl_dirsep_regex='[/\\]' 10241 ;; 10242 *) 10243 gl_dirsep_regex='\/' 10244 ;; 10245 esac 10246 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 10247 gl_header_literal_regex=`echo 'ctype.h' \ 10248 | sed -e "$gl_make_literal_regex_sed"` 10249 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 10250 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 10251 s|^/[^/]|//&| 10252 p 10253 q 10254 }' 10255 10256 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 10257 sed -n "$gl_absolute_header_sed"` 10258 10259 gl_header=$gl_cv_absolute_ctype_h 10260 gl_cv_next_ctype_h='"'$gl_header'"' 10261 10262 ;; 10263 esac 10264 fi 10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5 10266 printf "%s\n" "$gl_cv_next_ctype_h" >&6; } 10267 fi 10268 NEXT_CTYPE_H=$gl_cv_next_ctype_h 10269 10270 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 10271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 10272 gl_next_as_first_directive='<'ctype.h'>' 10273 else 10274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 10275 gl_next_as_first_directive=$gl_cv_next_ctype_h 10276 fi 10277 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 GL_GNULIB_ISBLANK=0 10290 10291 10292 10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 10294 printf %s "checking for inline... " >&6; } 10295 if test ${ac_cv_c_inline+y} 10296 then : 10297 printf %s "(cached) " >&6 10298 else case e in #( 10299 e) ac_cv_c_inline=no 7047 10300 for ac_kw in inline __inline__ __inline; do 7048 cat >conftest.$ac_ext <<_ACEOF 7049 /* confdefs.h. */ 7050 _ACEOF 7051 cat confdefs.h >>conftest.$ac_ext 7052 cat >>conftest.$ac_ext <<_ACEOF 10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053 10302 /* end confdefs.h. */ 7054 10303 #ifndef __cplusplus 7055 10304 typedef int foo_t; 7056 static $ac_kw foo_t static_foo ( ) {return 0; }7057 $ac_kw foo_t foo ( ) {return 0; }10305 static $ac_kw foo_t static_foo (void) {return 0; } 10306 $ac_kw foo_t foo (void) {return 0; } 7058 10307 #endif 7059 10308 7060 10309 _ACEOF 7061 rm -f conftest.$ac_objext 7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7063 (eval $ac_compile) 2>conftest.er1 7064 ac_status=$? 7065 grep -v '^ *+' conftest.er1 >conftest.err 7066 rm -f conftest.er1 7067 cat conftest.err >&5 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); } && 7070 { ac_try='test -z "$ac_c_werror_flag" 7071 || test ! -s conftest.err' 7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7073 (eval $ac_try) 2>&5 7074 ac_status=$? 7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7076 (exit $ac_status); }; } && 7077 { ac_try='test -s conftest.$ac_objext' 7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7079 (eval $ac_try) 2>&5 7080 ac_status=$? 7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 (exit $ac_status); }; }; then 7083 ac_cv_c_inline=$ac_kw; break 7084 else 7085 echo "$as_me: failed program was:" >&5 7086 sed 's/^/| /' conftest.$ac_ext >&5 7087 7088 fi 7089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10310 if ac_fn_c_try_compile "$LINENO" 10311 then : 10312 ac_cv_c_inline=$ac_kw 10313 fi 10314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10315 test "$ac_cv_c_inline" != no && break 7090 10316 done 7091 7092 fi 7093 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 7094 echo "${ECHO_T}$ac_cv_c_inline" >&6 7095 10317 ;; 10318 esac 10319 fi 10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 10321 printf "%s\n" "$ac_cv_c_inline" >&6; } 7096 10322 7097 10323 case $ac_cv_c_inline in … … 7110 10336 esac 7111 10337 7112 echo "$as_me:$LINENO: checking for off_t" >&5 7113 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 7114 if test "${ac_cv_type_off_t+set}" = set; then 7115 echo $ECHO_N "(cached) $ECHO_C" >&6 7116 else 7117 cat >conftest.$ac_ext <<_ACEOF 7118 /* confdefs.h. */ 10338 gl_mda_defines=' 10339 #if defined _WIN32 && !defined __CYGWIN__ 10340 #define access _access 10341 #define chdir _chdir 10342 #define chmod _chmod 10343 #define close _close 10344 #define creat _creat 10345 #define dup _dup 10346 #define dup2 _dup2 10347 #define ecvt _ecvt 10348 #define execl _execl 10349 #define execle _execle 10350 #define execlp _execlp 10351 #define execv _execv 10352 #define execve _execve 10353 #define execvp _execvp 10354 #define execvpe _execvpe 10355 #define fcloseall _fcloseall 10356 #define fcvt _fcvt 10357 #define fdopen _fdopen 10358 #define fileno _fileno 10359 #define gcvt _gcvt 10360 #define getcwd _getcwd 10361 #define getpid _getpid 10362 #define getw _getw 10363 #define isatty _isatty 10364 #define j0 _j0 10365 #define j1 _j1 10366 #define jn _jn 10367 #define lfind _lfind 10368 #define lsearch _lsearch 10369 #define lseek _lseek 10370 #define memccpy _memccpy 10371 #define mkdir _mkdir 10372 #define mktemp _mktemp 10373 #define open _open 10374 #define putenv _putenv 10375 #define putw _putw 10376 #define read _read 10377 #define rmdir _rmdir 10378 #define strdup _strdup 10379 #define swab _swab 10380 #define tempnam _tempnam 10381 #define tzset _tzset 10382 #define umask _umask 10383 #define unlink _unlink 10384 #define utime _utime 10385 #define wcsdup _wcsdup 10386 #define write _write 10387 #define y0 _y0 10388 #define y1 _y1 10389 #define yn _yn 10390 #endif 10391 ' 10392 10393 10394 10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 10396 printf %s "checking for complete errno.h... " >&6; } 10397 if test ${gl_cv_header_errno_h_complete+y} 10398 then : 10399 printf %s "(cached) " >&6 10400 else case e in #( 10401 e) 10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403 /* end confdefs.h. */ 10404 10405 #include <errno.h> 10406 #if !defined ETXTBSY 10407 booboo 10408 #endif 10409 #if !defined ENOMSG 10410 booboo 10411 #endif 10412 #if !defined EIDRM 10413 booboo 10414 #endif 10415 #if !defined ENOLINK 10416 booboo 10417 #endif 10418 #if !defined EPROTO 10419 booboo 10420 #endif 10421 #if !defined EMULTIHOP 10422 booboo 10423 #endif 10424 #if !defined EBADMSG 10425 booboo 10426 #endif 10427 #if !defined EOVERFLOW 10428 booboo 10429 #endif 10430 #if !defined ENOTSUP 10431 booboo 10432 #endif 10433 #if !defined ENETRESET 10434 booboo 10435 #endif 10436 #if !defined ECONNABORTED 10437 booboo 10438 #endif 10439 #if !defined ESTALE 10440 booboo 10441 #endif 10442 #if !defined EDQUOT 10443 booboo 10444 #endif 10445 #if !defined ECANCELED 10446 booboo 10447 #endif 10448 #if !defined EOWNERDEAD 10449 booboo 10450 #endif 10451 #if !defined ENOTRECOVERABLE 10452 booboo 10453 #endif 10454 #if !defined EILSEQ 10455 booboo 10456 #endif 10457 7119 10458 _ACEOF 7120 cat confdefs.h >>conftest.$ac_ext 7121 cat >>conftest.$ac_ext <<_ACEOF 10459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10460 $EGREP_TRADITIONAL "booboo" >/dev/null 2>&1 10461 then : 10462 gl_cv_header_errno_h_complete=no 10463 else case e in #( 10464 e) gl_cv_header_errno_h_complete=yes ;; 10465 esac 10466 fi 10467 rm -rf conftest* 10468 10469 ;; 10470 esac 10471 fi 10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 10473 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; } 10474 if test $gl_cv_header_errno_h_complete = yes; then 10475 GL_GENERATE_ERRNO_H=false 10476 else 10477 10478 10479 10480 10481 10482 10483 10484 10485 if test $gl_cv_have_include_next = yes; then 10486 gl_cv_next_errno_h='<'errno.h'>' 10487 else 10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 10489 printf %s "checking absolute name of <errno.h>... " >&6; } 10490 if test ${gl_cv_next_errno_h+y} 10491 then : 10492 printf %s "(cached) " >&6 10493 else case e in #( 10494 e) 10495 10496 10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122 10498 /* end confdefs.h. */ 7123 $ac_includes_default 10499 #include <errno.h> 10500 _ACEOF 10501 case "$host_os" in 10502 aix*) gl_absname_cpp="$ac_cpp -C" ;; 10503 *) gl_absname_cpp="$ac_cpp" ;; 10504 esac 10505 10506 case "$host_os" in 10507 mingw*) 10508 gl_dirsep_regex='[/\\]' 10509 ;; 10510 *) 10511 gl_dirsep_regex='\/' 10512 ;; 10513 esac 10514 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 10515 gl_header_literal_regex=`echo 'errno.h' \ 10516 | sed -e "$gl_make_literal_regex_sed"` 10517 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 10518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 10519 s|^/[^/]|//&| 10520 p 10521 q 10522 }' 10523 10524 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 10525 sed -n "$gl_absolute_header_sed"` 10526 10527 gl_header=$gl_cv_absolute_errno_h 10528 gl_cv_next_errno_h='"'$gl_header'"' 10529 10530 ;; 10531 esac 10532 fi 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 10534 printf "%s\n" "$gl_cv_next_errno_h" >&6; } 10535 fi 10536 NEXT_ERRNO_H=$gl_cv_next_errno_h 10537 10538 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 10539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 10540 gl_next_as_first_directive='<'errno.h'>' 10541 else 10542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 10543 gl_next_as_first_directive=$gl_cv_next_errno_h 10544 fi 10545 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 10546 10547 10548 10549 10550 GL_GENERATE_ERRNO_H=true 10551 fi 10552 10553 if $GL_GENERATE_ERRNO_H; then 10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 10555 printf %s "checking for EMULTIHOP value... " >&6; } 10556 if test ${gl_cv_header_errno_h_EMULTIHOP+y} 10557 then : 10558 printf %s "(cached) " >&6 10559 else case e in #( 10560 e) 10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10562 /* end confdefs.h. */ 10563 10564 #include <errno.h> 10565 #ifdef EMULTIHOP 10566 yes 10567 #endif 10568 10569 _ACEOF 10570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10571 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10572 then : 10573 gl_cv_header_errno_h_EMULTIHOP=yes 10574 else case e in #( 10575 e) gl_cv_header_errno_h_EMULTIHOP=no ;; 10576 esac 10577 fi 10578 rm -rf conftest* 10579 10580 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582 /* end confdefs.h. */ 10583 10584 #define _XOPEN_SOURCE_EXTENDED 1 10585 #include <errno.h> 10586 #ifdef EMULTIHOP 10587 yes 10588 #endif 10589 10590 _ACEOF 10591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10592 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10593 then : 10594 gl_cv_header_errno_h_EMULTIHOP=hidden 10595 fi 10596 rm -rf conftest* 10597 10598 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 10599 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 10600 #define _XOPEN_SOURCE_EXTENDED 1 10601 #include <errno.h> 10602 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 10603 #include <stdio.h> 10604 #include <stdlib.h> 10605 " 10606 then : 10607 10608 fi 10609 10610 fi 10611 fi 10612 ;; 10613 esac 10614 fi 10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 10616 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 10617 case $gl_cv_header_errno_h_EMULTIHOP in 10618 yes | no) 10619 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 10620 ;; 10621 *) 10622 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 10623 ;; 10624 esac 10625 10626 10627 fi 10628 10629 10630 if $GL_GENERATE_ERRNO_H; then 10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 10632 printf %s "checking for ENOLINK value... " >&6; } 10633 if test ${gl_cv_header_errno_h_ENOLINK+y} 10634 then : 10635 printf %s "(cached) " >&6 10636 else case e in #( 10637 e) 10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10639 /* end confdefs.h. */ 10640 10641 #include <errno.h> 10642 #ifdef ENOLINK 10643 yes 10644 #endif 10645 10646 _ACEOF 10647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10648 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10649 then : 10650 gl_cv_header_errno_h_ENOLINK=yes 10651 else case e in #( 10652 e) gl_cv_header_errno_h_ENOLINK=no ;; 10653 esac 10654 fi 10655 rm -rf conftest* 10656 10657 if test $gl_cv_header_errno_h_ENOLINK = no; then 10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10659 /* end confdefs.h. */ 10660 10661 #define _XOPEN_SOURCE_EXTENDED 1 10662 #include <errno.h> 10663 #ifdef ENOLINK 10664 yes 10665 #endif 10666 10667 _ACEOF 10668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10669 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10670 then : 10671 gl_cv_header_errno_h_ENOLINK=hidden 10672 fi 10673 rm -rf conftest* 10674 10675 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 10676 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 10677 #define _XOPEN_SOURCE_EXTENDED 1 10678 #include <errno.h> 10679 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 10680 #include <stdio.h> 10681 #include <stdlib.h> 10682 " 10683 then : 10684 10685 fi 10686 10687 fi 10688 fi 10689 ;; 10690 esac 10691 fi 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 10693 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } 10694 case $gl_cv_header_errno_h_ENOLINK in 10695 yes | no) 10696 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 10697 ;; 10698 *) 10699 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 10700 ;; 10701 esac 10702 10703 10704 fi 10705 10706 10707 if $GL_GENERATE_ERRNO_H; then 10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 10709 printf %s "checking for EOVERFLOW value... " >&6; } 10710 if test ${gl_cv_header_errno_h_EOVERFLOW+y} 10711 then : 10712 printf %s "(cached) " >&6 10713 else case e in #( 10714 e) 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716 /* end confdefs.h. */ 10717 10718 #include <errno.h> 10719 #ifdef EOVERFLOW 10720 yes 10721 #endif 10722 10723 _ACEOF 10724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10725 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10726 then : 10727 gl_cv_header_errno_h_EOVERFLOW=yes 10728 else case e in #( 10729 e) gl_cv_header_errno_h_EOVERFLOW=no ;; 10730 esac 10731 fi 10732 rm -rf conftest* 10733 10734 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736 /* end confdefs.h. */ 10737 10738 #define _XOPEN_SOURCE_EXTENDED 1 10739 #include <errno.h> 10740 #ifdef EOVERFLOW 10741 yes 10742 #endif 10743 10744 _ACEOF 10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10746 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 10747 then : 10748 gl_cv_header_errno_h_EOVERFLOW=hidden 10749 fi 10750 rm -rf conftest* 10751 10752 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 10753 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 10754 #define _XOPEN_SOURCE_EXTENDED 1 10755 #include <errno.h> 10756 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 10757 #include <stdio.h> 10758 #include <stdlib.h> 10759 " 10760 then : 10761 10762 fi 10763 10764 fi 10765 fi 10766 ;; 10767 esac 10768 fi 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 10770 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 10771 case $gl_cv_header_errno_h_EOVERFLOW in 10772 yes | no) 10773 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 10774 ;; 10775 *) 10776 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 10777 ;; 10778 esac 10779 10780 10781 fi 10782 10783 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 10785 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 10786 if test ${ac_cv_c_undeclared_builtin_options+y} 10787 then : 10788 printf %s "(cached) " >&6 10789 else case e in #( 10790 e) ac_save_CFLAGS=$CFLAGS 10791 ac_cv_c_undeclared_builtin_options='cannot detect' 10792 for ac_arg in '' -fno-builtin; do 10793 CFLAGS="$ac_save_CFLAGS $ac_arg" 10794 # This test program should *not* compile successfully. 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796 /* end confdefs.h. */ 10797 7124 10798 int 7125 main ( )10799 main (void) 7126 10800 { 7127 if ((off_t *) 0) 7128 return 0; 7129 if (sizeof (off_t)) 7130 return 0; 10801 (void) strchr; 7131 10802 ; 7132 10803 return 0; 7133 10804 } 7134 10805 _ACEOF 7135 rm -f conftest.$ac_objext 7136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7137 (eval $ac_compile) 2>conftest.er1 7138 ac_status=$? 7139 grep -v '^ *+' conftest.er1 >conftest.err 7140 rm -f conftest.er1 7141 cat conftest.err >&5 7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7143 (exit $ac_status); } && 7144 { ac_try='test -z "$ac_c_werror_flag" 7145 || test ! -s conftest.err' 7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7147 (eval $ac_try) 2>&5 7148 ac_status=$? 7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7150 (exit $ac_status); }; } && 7151 { ac_try='test -s conftest.$ac_objext' 7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7153 (eval $ac_try) 2>&5 7154 ac_status=$? 7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7156 (exit $ac_status); }; }; then 7157 ac_cv_type_off_t=yes 7158 else 7159 echo "$as_me: failed program was:" >&5 7160 sed 's/^/| /' conftest.$ac_ext >&5 7161 7162 ac_cv_type_off_t=no 7163 fi 7164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7165 fi 7166 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 7167 echo "${ECHO_T}$ac_cv_type_off_t" >&6 7168 if test $ac_cv_type_off_t = yes; then 7169 : 7170 else 7171 7172 cat >>confdefs.h <<_ACEOF 7173 #define off_t long 7174 _ACEOF 7175 7176 fi 7177 7178 7179 7180 for ac_header in stdlib.h unistd.h 7181 do 7182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7184 echo "$as_me:$LINENO: checking for $ac_header" >&5 7185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7186 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188 fi 7189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7191 else 7192 # Is the header compilable? 7193 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7195 cat >conftest.$ac_ext <<_ACEOF 7196 /* confdefs.h. */ 7197 _ACEOF 7198 cat confdefs.h >>conftest.$ac_ext 7199 cat >>conftest.$ac_ext <<_ACEOF 10806 if ac_fn_c_try_compile "$LINENO" 10807 then : 10808 10809 else case e in #( 10810 e) # This test program should compile successfully. 10811 # No library function is consistently available on 10812 # freestanding implementations, so test against a dummy 10813 # declaration. Include always-available headers on the 10814 # off chance that they somehow elicit warnings. 10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200 10816 /* end confdefs.h. */ 7201 $ac_includes_default 7202 #include <$ac_header> 7203 _ACEOF 7204 rm -f conftest.$ac_objext 7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7206 (eval $ac_compile) 2>conftest.er1 7207 ac_status=$? 7208 grep -v '^ *+' conftest.er1 >conftest.err 7209 rm -f conftest.er1 7210 cat conftest.err >&5 7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } && 7213 { ac_try='test -z "$ac_c_werror_flag" 7214 || test ! -s conftest.err' 7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7216 (eval $ac_try) 2>&5 7217 ac_status=$? 7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7219 (exit $ac_status); }; } && 7220 { ac_try='test -s conftest.$ac_objext' 7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7222 (eval $ac_try) 2>&5 7223 ac_status=$? 7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7225 (exit $ac_status); }; }; then 7226 ac_header_compiler=yes 7227 else 7228 echo "$as_me: failed program was:" >&5 7229 sed 's/^/| /' conftest.$ac_ext >&5 7230 7231 ac_header_compiler=no 7232 fi 7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7235 echo "${ECHO_T}$ac_header_compiler" >&6 7236 7237 # Is the header present? 7238 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7240 cat >conftest.$ac_ext <<_ACEOF 7241 /* confdefs.h. */ 7242 _ACEOF 7243 cat confdefs.h >>conftest.$ac_ext 7244 cat >>conftest.$ac_ext <<_ACEOF 7245 /* end confdefs.h. */ 7246 #include <$ac_header> 7247 _ACEOF 7248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7250 ac_status=$? 7251 grep -v '^ *+' conftest.er1 >conftest.err 7252 rm -f conftest.er1 7253 cat conftest.err >&5 7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7255 (exit $ac_status); } >/dev/null; then 7256 if test -s conftest.err; then 7257 ac_cpp_err=$ac_c_preproc_warn_flag 7258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7259 else 7260 ac_cpp_err= 7261 fi 7262 else 7263 ac_cpp_err=yes 7264 fi 7265 if test -z "$ac_cpp_err"; then 7266 ac_header_preproc=yes 7267 else 7268 echo "$as_me: failed program was:" >&5 7269 sed 's/^/| /' conftest.$ac_ext >&5 7270 7271 ac_header_preproc=no 7272 fi 7273 rm -f conftest.err conftest.$ac_ext 7274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7275 echo "${ECHO_T}$ac_header_preproc" >&6 7276 7277 # So? What about this header? 7278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7279 yes:no: ) 7280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7284 ac_header_preproc=yes 7285 ;; 7286 no:yes:* ) 7287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7299 ( 7300 cat <<\_ASBOX 7301 ## ------------------------------ ## 7302 ## Report this to [email protected] ## 7303 ## ------------------------------ ## 7304 _ASBOX 7305 ) | 7306 sed "s/^/$as_me: WARNING: /" >&2 7307 ;; 7308 esac 7309 echo "$as_me:$LINENO: checking for $ac_header" >&5 7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313 else 7314 eval "$as_ac_Header=\$ac_header_preproc" 7315 fi 7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7318 7319 fi 7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7321 cat >>confdefs.h <<_ACEOF 7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7323 _ACEOF 7324 7325 fi 7326 7327 done 7328 7329 7330 for ac_func in getpagesize 7331 do 7332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7333 echo "$as_me:$LINENO: checking for $ac_func" >&5 7334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7335 if eval "test \"\${$as_ac_var+set}\" = set"; then 7336 echo $ECHO_N "(cached) $ECHO_C" >&6 7337 else 7338 cat >conftest.$ac_ext <<_ACEOF 7339 /* confdefs.h. */ 7340 _ACEOF 7341 cat confdefs.h >>conftest.$ac_ext 7342 cat >>conftest.$ac_ext <<_ACEOF 7343 /* end confdefs.h. */ 7344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7346 #define $ac_func innocuous_$ac_func 7347 7348 /* System header to define __stub macros and hopefully few prototypes, 7349 which can conflict with char $ac_func (); below. 7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7351 <limits.h> exists even on freestanding compilers. */ 7352 7353 #ifdef __STDC__ 7354 # include <limits.h> 7355 #else 7356 # include <assert.h> 7357 #endif 7358 7359 #undef $ac_func 7360 7361 /* Override any gcc2 internal prototype to avoid an error. */ 7362 #ifdef __cplusplus 7363 extern "C" 10817 #include <float.h> 10818 #include <limits.h> 10819 #include <stdarg.h> 10820 #include <stddef.h> 10821 extern void ac_decl (int, char *); 10822 10823 int 10824 main (void) 7364 10825 { 7365 #endif 7366 /* We use char because int might match the return type of a gcc2 7367 builtin and then its argument prototype would still apply. */ 7368 char $ac_func (); 7369 /* The GNU C library defines this for functions which it implements 7370 to always fail with ENOSYS. Some functions are actually named 7371 something starting with __ and the normal name is an alias. */ 7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7373 choke me 7374 #else 7375 char (*f) () = $ac_func; 7376 #endif 7377 #ifdef __cplusplus 7378 } 7379 #endif 7380 7381 int 7382 main () 7383 { 7384 return f != $ac_func; 10826 (void) ac_decl (0, (char *) 0); 10827 (void) ac_decl; 10828 7385 10829 ; 7386 10830 return 0; 7387 10831 } 7388 10832 _ACEOF 7389 rm -f conftest.$ac_objext conftest$ac_exeext 7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7391 (eval $ac_link) 2>conftest.er1 10833 if ac_fn_c_try_compile "$LINENO" 10834 then : 10835 if test x"$ac_arg" = x 10836 then : 10837 ac_cv_c_undeclared_builtin_options='none needed' 10838 else case e in #( 10839 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 10840 esac 10841 fi 10842 break 10843 fi 10844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10845 esac 10846 fi 10847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10848 done 10849 CFLAGS=$ac_save_CFLAGS 10850 ;; 10851 esac 10852 fi 10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 10854 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 10855 case $ac_cv_c_undeclared_builtin_options in #( 10856 'cannot detect') : 10857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 10858 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 10859 as_fn_error $? "cannot make $CC report undeclared builtins 10860 See 'config.log' for more details" "$LINENO" 5; } ;; #( 10861 'none needed') : 10862 ac_c_undeclared_builtin_options='' ;; #( 10863 *) : 10864 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 10865 esac 10866 10867 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 10868 if test "x$ac_cv_have_decl_strerror_r" = xyes 10869 then : 10870 ac_have_decl=1 10871 else case e in #( 10872 e) ac_have_decl=0 ;; 10873 esac 10874 fi 10875 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h 10876 10877 10878 if test $ac_cv_have_decl_strerror_r = yes; then 10879 # For backward compatibility's sake, define HAVE_STRERROR_R. 10880 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well 10881 # as AC_CHECK_DECLS_ONCE.) 10882 10883 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 10884 10885 fi 10886 10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 10888 printf %s "checking whether strerror_r returns char *... " >&6; } 10889 if test ${ac_cv_func_strerror_r_char_p+y} 10890 then : 10891 printf %s "(cached) " >&6 10892 else case e in #( 10893 e) 10894 ac_cv_func_strerror_r_char_p=no 10895 if test $ac_cv_have_decl_strerror_r = yes; then 10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10897 /* end confdefs.h. */ 10898 #include <string.h> 10899 int 10900 main (void) 10901 { 10902 10903 char buf[100]; 10904 char x = *strerror_r (0, buf, sizeof buf); 10905 char *p = strerror_r (0, buf, sizeof buf); 10906 return !p || x; 10907 10908 ; 10909 return 0; 10910 } 10911 _ACEOF 10912 if ac_fn_c_try_compile "$LINENO" 10913 then : 10914 ac_cv_func_strerror_r_char_p=yes 10915 fi 10916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10917 10918 fi 10919 ;; 10920 esac 10921 fi 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 10923 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } 10924 if test $ac_cv_func_strerror_r_char_p = yes; then 10925 10926 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h 10927 10928 fi 10929 10930 10931 XGETTEXT_EXTRA_OPTIONS= 10932 10933 10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5 10935 printf %s "checking whether ctype.h defines __header_inline... " >&6; } 10936 if test ${gl_cv_have___header_inline+y} 10937 then : 10938 printf %s "(cached) " >&6 10939 else case e in #( 10940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10941 /* end confdefs.h. */ 10942 #include <ctype.h> 10943 #ifndef __header_inline 10944 #error "<ctype.h> does not define __header_inline" 10945 #endif 10946 10947 _ACEOF 10948 if ac_fn_c_try_cpp "$LINENO" 10949 then : 10950 gl_cv_have___header_inline=yes 10951 else case e in #( 10952 e) gl_cv_have___header_inline=no ;; 10953 esac 10954 fi 10955 rm -f conftest.err conftest.i conftest.$ac_ext ;; 10956 esac 10957 fi 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5 10959 printf "%s\n" "$gl_cv_have___header_inline" >&6; } 10960 if test "$gl_cv_have___header_inline" = yes; then 10961 10962 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h 10963 10964 fi 10965 10966 10967 10968 10969 HAVE_FCNTL=1; 10970 HAVE_OPENAT=1; 10971 REPLACE_CREAT=0; 10972 REPLACE_FCNTL=0; 10973 REPLACE_OPEN=0; 10974 REPLACE_OPENAT=0; 10975 10976 10977 10978 10979 GL_GNULIB_CREAT=0 10980 10981 10982 10983 GL_GNULIB_FCNTL=0 10984 10985 10986 10987 GL_GNULIB_NONBLOCKING=0 10988 10989 10990 10991 GL_GNULIB_OPEN=0 10992 10993 10994 10995 GL_GNULIB_OPENAT=0 10996 10997 10998 10999 GL_GNULIB_MDA_CREAT=1 11000 11001 11002 11003 GL_GNULIB_MDA_OPEN=1 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 11014 printf %s "checking for working fcntl.h... " >&6; } 11015 if test ${gl_cv_header_working_fcntl_h+y} 11016 then : 11017 printf %s "(cached) " >&6 11018 else case e in #( 11019 e) if test "$cross_compiling" = yes 11020 then : 11021 case "$host_os" in 11022 # Guess 'no' on native Windows. 11023 mingw*) gl_cv_header_working_fcntl_h='no' ;; 11024 *) gl_cv_header_working_fcntl_h=cross-compiling ;; 11025 esac 11026 11027 else case e in #( 11028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029 /* end confdefs.h. */ 11030 #include <sys/types.h> 11031 #include <sys/stat.h> 11032 #if HAVE_UNISTD_H 11033 # include <unistd.h> 11034 #else /* on Windows with MSVC */ 11035 # include <io.h> 11036 # include <stdlib.h> 11037 # defined sleep(n) _sleep ((n) * 1000) 11038 #endif 11039 #include <fcntl.h> 11040 11041 11042 $gl_mda_defines 11043 11044 #ifndef O_NOATIME 11045 #define O_NOATIME 0 11046 #endif 11047 #ifndef O_NOFOLLOW 11048 #define O_NOFOLLOW 0 11049 #endif 11050 static int const constants[] = 11051 { 11052 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 11053 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 11054 }; 11055 11056 int 11057 main (void) 11058 { 11059 11060 int result = !constants; 11061 #if HAVE_SYMLINK 11062 { 11063 static char const sym[] = "conftest.sym"; 11064 if (symlink ("/dev/null", sym) != 0) 11065 result |= 2; 11066 else 11067 { 11068 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 11069 if (fd >= 0) 11070 { 11071 close (fd); 11072 result |= 4; 11073 } 11074 } 11075 if (unlink (sym) != 0 || symlink (".", sym) != 0) 11076 result |= 2; 11077 else 11078 { 11079 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 11080 if (fd >= 0) 11081 { 11082 close (fd); 11083 result |= 4; 11084 } 11085 } 11086 unlink (sym); 11087 } 11088 #endif 11089 { 11090 static char const file[] = "confdefs.h"; 11091 int fd = open (file, O_RDONLY | O_NOATIME); 11092 if (fd < 0) 11093 result |= 8; 11094 else 11095 { 11096 struct stat st0; 11097 if (fstat (fd, &st0) != 0) 11098 result |= 16; 11099 else 11100 { 11101 char c; 11102 sleep (1); 11103 if (read (fd, &c, 1) != 1) 11104 result |= 24; 11105 else 11106 { 11107 if (close (fd) != 0) 11108 result |= 32; 11109 else 11110 { 11111 struct stat st1; 11112 if (stat (file, &st1) != 0) 11113 result |= 40; 11114 else 11115 if (st0.st_atime != st1.st_atime) 11116 result |= 64; 11117 } 11118 } 11119 } 11120 } 11121 } 11122 return result; 11123 ; 11124 return 0; 11125 } 11126 _ACEOF 11127 if ac_fn_c_try_run "$LINENO" 11128 then : 11129 gl_cv_header_working_fcntl_h=yes 11130 else case e in #( 11131 e) case $? in #( 11132 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 11133 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 11134 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 11135 *) gl_cv_header_working_fcntl_h='no';; 11136 esac ;; 11137 esac 11138 fi 11139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11140 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11141 esac 11142 fi 11143 11144 ;; 11145 esac 11146 fi 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 11148 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } 11149 11150 case $gl_cv_header_working_fcntl_h in #( 11151 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 11152 *) ac_val=1;; 11153 esac 11154 11155 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h 11156 11157 11158 case $gl_cv_header_working_fcntl_h in #( 11159 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 11160 *) ac_val=1;; 11161 esac 11162 11163 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h 11164 11165 11166 11167 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 11168 " 11169 if test "x$ac_cv_type_pid_t" = xyes 11170 then : 11171 11172 else case e in #( 11173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11174 /* end confdefs.h. */ 11175 11176 #if defined _WIN64 && !defined __CYGWIN__ 11177 LLP64 11178 #endif 11179 11180 int 11181 main (void) 11182 { 11183 11184 ; 11185 return 0; 11186 } 11187 11188 _ACEOF 11189 if ac_fn_c_try_compile "$LINENO" 11190 then : 11191 ac_pid_type='int' 11192 else case e in #( 11193 e) ac_pid_type='__int64' ;; 11194 esac 11195 fi 11196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11197 11198 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 11199 11200 ;; 11201 esac 11202 fi 11203 11204 11205 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11206 if test "x$ac_cv_type_mode_t" = xyes 11207 then : 11208 11209 else case e in #( 11210 e) 11211 printf "%s\n" "#define mode_t int" >>confdefs.h 11212 ;; 11213 esac 11214 fi 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 if test $gl_cv_have_include_next = yes; then 11228 gl_cv_next_fcntl_h='<'fcntl.h'>' 11229 else 11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 11231 printf %s "checking absolute name of <fcntl.h>... " >&6; } 11232 if test ${gl_cv_next_fcntl_h+y} 11233 then : 11234 printf %s "(cached) " >&6 11235 else case e in #( 11236 e) 11237 11238 11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11240 /* end confdefs.h. */ 11241 #include <fcntl.h> 11242 _ACEOF 11243 case "$host_os" in 11244 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11245 *) gl_absname_cpp="$ac_cpp" ;; 11246 esac 11247 11248 case "$host_os" in 11249 mingw*) 11250 gl_dirsep_regex='[/\\]' 11251 ;; 11252 *) 11253 gl_dirsep_regex='\/' 11254 ;; 11255 esac 11256 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11257 gl_header_literal_regex=`echo 'fcntl.h' \ 11258 | sed -e "$gl_make_literal_regex_sed"` 11259 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11260 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11261 s|^/[^/]|//&| 11262 p 11263 q 11264 }' 11265 11266 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11267 sed -n "$gl_absolute_header_sed"` 11268 11269 gl_header=$gl_cv_absolute_fcntl_h 11270 gl_cv_next_fcntl_h='"'$gl_header'"' 11271 11272 ;; 11273 esac 11274 fi 11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 11276 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; } 11277 fi 11278 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 11279 11280 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11281 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11282 gl_next_as_first_directive='<'fcntl.h'>' 11283 else 11284 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11285 gl_next_as_first_directive=$gl_cv_next_fcntl_h 11286 fi 11287 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 HAVE_FCHMODAT=1; 11304 HAVE_FSTATAT=1; 11305 HAVE_FUTIMENS=1; 11306 HAVE_GETUMASK=1; 11307 HAVE_LCHMOD=1; 11308 HAVE_LSTAT=1; 11309 HAVE_MKDIRAT=1; 11310 HAVE_MKFIFO=1; 11311 HAVE_MKFIFOAT=1; 11312 HAVE_MKNOD=1; 11313 HAVE_MKNODAT=1; 11314 HAVE_UTIMENSAT=1; 11315 REPLACE_CHMOD=0; 11316 REPLACE_FCHMODAT=0; 11317 REPLACE_FSTAT=0; 11318 REPLACE_FSTATAT=0; 11319 REPLACE_FUTIMENS=0; 11320 REPLACE_LSTAT=0; 11321 REPLACE_MKDIR=0; 11322 REPLACE_MKFIFO=0; 11323 REPLACE_MKFIFOAT=0; 11324 REPLACE_MKNOD=0; 11325 REPLACE_MKNODAT=0; 11326 REPLACE_STAT=0; 11327 REPLACE_UTIMENSAT=0; 11328 11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 11330 printf %s "checking whether stat file-mode macros are broken... " >&6; } 11331 if test ${ac_cv_header_stat_broken+y} 11332 then : 11333 printf %s "(cached) " >&6 11334 else case e in #( 11335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11336 /* end confdefs.h. */ 11337 #include <sys/types.h> 11338 #include <sys/stat.h> 11339 11340 #if defined S_ISBLK && defined S_IFDIR 11341 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 11342 #endif 11343 11344 #if defined S_ISBLK && defined S_IFCHR 11345 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 11346 #endif 11347 11348 #if defined S_ISLNK && defined S_IFREG 11349 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 11350 #endif 11351 11352 #if defined S_ISSOCK && defined S_IFREG 11353 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 11354 #endif 11355 11356 _ACEOF 11357 if ac_fn_c_try_compile "$LINENO" 11358 then : 11359 ac_cv_header_stat_broken=no 11360 else case e in #( 11361 e) ac_cv_header_stat_broken=yes ;; 11362 esac 11363 fi 11364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11365 esac 11366 fi 11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 11368 printf "%s\n" "$ac_cv_header_stat_broken" >&6; } 11369 if test $ac_cv_header_stat_broken = yes; then 11370 11371 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h 11372 11373 fi 11374 11375 11376 11377 case "$host_os" in 11378 mingw*) 11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 11380 printf %s "checking for 64-bit off_t... " >&6; } 11381 if test ${gl_cv_type_off_t_64+y} 11382 then : 11383 printf %s "(cached) " >&6 11384 else case e in #( 11385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11386 /* end confdefs.h. */ 11387 #include <sys/types.h> 11388 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 11389 11390 int 11391 main (void) 11392 { 11393 11394 ; 11395 return 0; 11396 } 11397 _ACEOF 11398 if ac_fn_c_try_compile "$LINENO" 11399 then : 11400 gl_cv_type_off_t_64=yes 11401 else case e in #( 11402 e) gl_cv_type_off_t_64=no ;; 11403 esac 11404 fi 11405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11406 ;; 11407 esac 11408 fi 11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 11410 printf "%s\n" "$gl_cv_type_off_t_64" >&6; } 11411 if test $gl_cv_type_off_t_64 = no; then 11412 WINDOWS_64_BIT_OFF_T=1 11413 else 11414 WINDOWS_64_BIT_OFF_T=0 11415 fi 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 11417 printf %s "checking for 64-bit st_size... " >&6; } 11418 if test ${gl_cv_member_st_size_64+y} 11419 then : 11420 printf %s "(cached) " >&6 11421 else case e in #( 11422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11423 /* end confdefs.h. */ 11424 #include <sys/types.h> 11425 struct stat buf; 11426 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; 11427 11428 int 11429 main (void) 11430 { 11431 11432 ; 11433 return 0; 11434 } 11435 _ACEOF 11436 if ac_fn_c_try_compile "$LINENO" 11437 then : 11438 gl_cv_member_st_size_64=yes 11439 else case e in #( 11440 e) gl_cv_member_st_size_64=no ;; 11441 esac 11442 fi 11443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11444 ;; 11445 esac 11446 fi 11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 11448 printf "%s\n" "$gl_cv_member_st_size_64" >&6; } 11449 if test $gl_cv_member_st_size_64 = no; then 11450 WINDOWS_64_BIT_ST_SIZE=1 11451 else 11452 WINDOWS_64_BIT_ST_SIZE=0 11453 fi 11454 ;; 11455 *) 11456 WINDOWS_64_BIT_OFF_T=0 11457 WINDOWS_64_BIT_ST_SIZE=0 11458 ;; 11459 esac 11460 11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 11462 printf %s "checking for C/C++ restrict keyword... " >&6; } 11463 if test ${ac_cv_c_restrict+y} 11464 then : 11465 printf %s "(cached) " >&6 11466 else case e in #( 11467 e) ac_cv_c_restrict=no 11468 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 11469 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 11470 # Put 'restrict' last, because C++ lacks it. 11471 for ac_kw in __restrict__ __restrict _Restrict restrict; do 11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11473 /* end confdefs.h. */ 11474 typedef int *int_ptr; 11475 int foo (int_ptr $ac_kw ip) { return ip[0]; } 11476 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 11477 int bar (int ip[$ac_kw]) { return ip[0]; } 11478 11479 int 11480 main (void) 11481 { 11482 int s[1]; 11483 int *$ac_kw t = s; 11484 t[0] = 0; 11485 return foo (t) + bar (t); 11486 11487 ; 11488 return 0; 11489 } 11490 _ACEOF 11491 if ac_fn_c_try_compile "$LINENO" 11492 then : 11493 ac_cv_c_restrict=$ac_kw 11494 fi 11495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11496 test "$ac_cv_c_restrict" != no && break 11497 done 11498 ;; 11499 esac 11500 fi 11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 11502 printf "%s\n" "$ac_cv_c_restrict" >&6; } 11503 11504 case $ac_cv_c_restrict in 11505 restrict) ;; 11506 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 11507 ;; 11508 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 11509 ;; 11510 esac 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 if test $gl_cv_have_include_next = yes; then 11527 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 11528 else 11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 11530 printf %s "checking absolute name of <sys/stat.h>... " >&6; } 11531 if test ${gl_cv_next_sys_stat_h+y} 11532 then : 11533 printf %s "(cached) " >&6 11534 else case e in #( 11535 e) 11536 if test $ac_cv_header_sys_stat_h = yes; then 11537 11538 11539 11540 11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11542 /* end confdefs.h. */ 11543 #include <sys/stat.h> 11544 _ACEOF 11545 case "$host_os" in 11546 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11547 *) gl_absname_cpp="$ac_cpp" ;; 11548 esac 11549 11550 case "$host_os" in 11551 mingw*) 11552 gl_dirsep_regex='[/\\]' 11553 ;; 11554 *) 11555 gl_dirsep_regex='\/' 11556 ;; 11557 esac 11558 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11559 gl_header_literal_regex=`echo 'sys/stat.h' \ 11560 | sed -e "$gl_make_literal_regex_sed"` 11561 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11562 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11563 s|^/[^/]|//&| 11564 p 11565 q 11566 }' 11567 11568 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11569 sed -n "$gl_absolute_header_sed"` 11570 11571 gl_header=$gl_cv_absolute_sys_stat_h 11572 gl_cv_next_sys_stat_h='"'$gl_header'"' 11573 else 11574 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 11575 fi 11576 11577 ;; 11578 esac 11579 fi 11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 11581 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } 11582 fi 11583 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 11584 11585 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11587 gl_next_as_first_directive='<'sys/stat.h'>' 11588 else 11589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11590 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 11591 fi 11592 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 11593 11594 11595 11596 11597 11598 11599 11600 11601 WINDOWS_STAT_TIMESPEC=0 11602 11603 11604 11605 11606 11607 11608 11609 11610 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 11611 #include <sys/stat.h> 11612 " 11613 if test "x$ac_cv_type_nlink_t" = xyes 11614 then : 11615 11616 else case e in #( 11617 e) 11618 printf "%s\n" "#define nlink_t int" >>confdefs.h 11619 ;; 11620 esac 11621 fi 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 case "$host_os" in 11633 mingw*) 11634 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" 11635 if test "x$ac_cv_header_sdkddkver_h" = xyes 11636 then : 11637 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h 11638 11639 fi 11640 11641 ;; 11642 esac 11643 11644 11645 11646 11647 11648 11649 11650 GL_GNULIB_CHMOD=0 11651 11652 11653 11654 GL_GNULIB_FCHMODAT=0 11655 11656 11657 11658 GL_GNULIB_FSTAT=0 11659 11660 11661 11662 GL_GNULIB_FSTATAT=0 11663 11664 11665 11666 GL_GNULIB_FUTIMENS=0 11667 11668 11669 11670 GL_GNULIB_GETUMASK=0 11671 11672 11673 11674 GL_GNULIB_LCHMOD=0 11675 11676 11677 11678 GL_GNULIB_LSTAT=0 11679 11680 11681 11682 GL_GNULIB_MKDIR=0 11683 11684 11685 11686 GL_GNULIB_MKDIRAT=0 11687 11688 11689 11690 GL_GNULIB_MKFIFO=0 11691 11692 11693 11694 GL_GNULIB_MKFIFOAT=0 11695 11696 11697 11698 GL_GNULIB_MKNOD=0 11699 11700 11701 11702 GL_GNULIB_MKNODAT=0 11703 11704 11705 11706 GL_GNULIB_STAT=0 11707 11708 11709 11710 GL_GNULIB_UTIMENSAT=0 11711 11712 11713 11714 GL_GNULIB_OVERRIDES_STRUCT_STAT=0 11715 11716 11717 11718 GL_GNULIB_MDA_CHMOD=1 11719 11720 11721 11722 GL_GNULIB_MDA_MKDIR=1 11723 11724 11725 11726 GL_GNULIB_MDA_UMASK=1 11727 11728 11729 11730 11731 11732 HAVE_DECL_FCLOSEALL=1; 11733 HAVE_DECL_FPURGE=1; 11734 HAVE_DECL_FSEEKO=1; 11735 HAVE_DECL_FTELLO=1; 11736 HAVE_DECL_GETDELIM=1; 11737 HAVE_DECL_GETLINE=1; 11738 HAVE_DECL_OBSTACK_PRINTF=1; 11739 HAVE_DECL_SNPRINTF=1; 11740 HAVE_DECL_VSNPRINTF=1; 11741 HAVE_DPRINTF=1; 11742 HAVE_FSEEKO=1; 11743 HAVE_FTELLO=1; 11744 HAVE_PCLOSE=1; 11745 HAVE_POPEN=1; 11746 HAVE_RENAMEAT=1; 11747 HAVE_VASPRINTF=1; 11748 HAVE_VDPRINTF=1; 11749 REPLACE_DPRINTF=0; 11750 REPLACE_FCLOSE=0; 11751 REPLACE_FDOPEN=0; 11752 REPLACE_FFLUSH=0; 11753 REPLACE_FOPEN=0; 11754 REPLACE_FOPEN_FOR_FOPEN_GNU=0; 11755 REPLACE_FPRINTF=0; 11756 REPLACE_FPURGE=0; 11757 REPLACE_FREOPEN=0; 11758 REPLACE_FSEEK=0; 11759 REPLACE_FSEEKO=0; 11760 REPLACE_FTELL=0; 11761 REPLACE_FTELLO=0; 11762 REPLACE_GETDELIM=0; 11763 REPLACE_GETLINE=0; 11764 REPLACE_OBSTACK_PRINTF=0; 11765 REPLACE_PERROR=0; 11766 REPLACE_POPEN=0; 11767 REPLACE_PRINTF=0; 11768 REPLACE_REMOVE=0; 11769 REPLACE_RENAME=0; 11770 REPLACE_RENAMEAT=0; 11771 REPLACE_SNPRINTF=0; 11772 REPLACE_SPRINTF=0; 11773 REPLACE_STDIO_READ_FUNCS=0; 11774 REPLACE_STDIO_WRITE_FUNCS=0; 11775 REPLACE_TMPFILE=0; 11776 REPLACE_VASPRINTF=0; 11777 REPLACE_VDPRINTF=0; 11778 REPLACE_VFPRINTF=0; 11779 REPLACE_VPRINTF=0; 11780 REPLACE_VSNPRINTF=0; 11781 REPLACE_VSPRINTF=0; 11782 11783 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 11784 if test "x$ac_cv_have_decl_getdelim" = xyes 11785 then : 11786 ac_have_decl=1 11787 else case e in #( 11788 e) ac_have_decl=0 ;; 11789 esac 11790 fi 11791 printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h 11792 11793 11794 11795 11796 GL_GNULIB_DPRINTF=0 11797 11798 11799 11800 GL_GNULIB_FCLOSE=0 11801 11802 11803 11804 GL_GNULIB_FDOPEN=0 11805 11806 11807 11808 GL_GNULIB_FFLUSH=0 11809 11810 11811 11812 GL_GNULIB_FGETC=0 11813 11814 11815 11816 GL_GNULIB_FGETS=0 11817 11818 11819 11820 GL_GNULIB_FOPEN=0 11821 11822 11823 11824 GL_GNULIB_FOPEN_GNU=0 11825 11826 11827 11828 GL_GNULIB_FPRINTF=0 11829 11830 11831 11832 GL_GNULIB_FPRINTF_POSIX=0 11833 11834 11835 11836 GL_GNULIB_FPURGE=0 11837 11838 11839 11840 GL_GNULIB_FPUTC=0 11841 11842 11843 11844 GL_GNULIB_FPUTS=0 11845 11846 11847 11848 GL_GNULIB_FREAD=0 11849 11850 11851 11852 GL_GNULIB_FREOPEN=0 11853 11854 11855 11856 GL_GNULIB_FSCANF=0 11857 11858 11859 11860 GL_GNULIB_FSEEK=0 11861 11862 11863 11864 GL_GNULIB_FSEEKO=0 11865 11866 11867 11868 GL_GNULIB_FTELL=0 11869 11870 11871 11872 GL_GNULIB_FTELLO=0 11873 11874 11875 11876 GL_GNULIB_FWRITE=0 11877 11878 11879 11880 GL_GNULIB_GETC=0 11881 11882 11883 11884 GL_GNULIB_GETCHAR=0 11885 11886 11887 11888 GL_GNULIB_GETDELIM=0 11889 11890 11891 11892 GL_GNULIB_GETLINE=0 11893 11894 11895 11896 GL_GNULIB_OBSTACK_PRINTF=0 11897 11898 11899 11900 GL_GNULIB_OBSTACK_PRINTF_POSIX=0 11901 11902 11903 11904 GL_GNULIB_PCLOSE=0 11905 11906 11907 11908 GL_GNULIB_PERROR=0 11909 11910 11911 11912 GL_GNULIB_POPEN=0 11913 11914 11915 11916 GL_GNULIB_PRINTF=0 11917 11918 11919 11920 GL_GNULIB_PRINTF_POSIX=0 11921 11922 11923 11924 GL_GNULIB_PUTC=0 11925 11926 11927 11928 GL_GNULIB_PUTCHAR=0 11929 11930 11931 11932 GL_GNULIB_PUTS=0 11933 11934 11935 11936 GL_GNULIB_REMOVE=0 11937 11938 11939 11940 GL_GNULIB_RENAME=0 11941 11942 11943 11944 GL_GNULIB_RENAMEAT=0 11945 11946 11947 11948 GL_GNULIB_SCANF=0 11949 11950 11951 11952 GL_GNULIB_SNPRINTF=0 11953 11954 11955 11956 GL_GNULIB_SPRINTF_POSIX=0 11957 11958 11959 11960 GL_GNULIB_STDIO_H_NONBLOCKING=0 11961 11962 11963 11964 GL_GNULIB_STDIO_H_SIGPIPE=0 11965 11966 11967 11968 GL_GNULIB_TMPFILE=0 11969 11970 11971 11972 GL_GNULIB_VASPRINTF=0 11973 11974 11975 11976 GL_GNULIB_VFSCANF=0 11977 11978 11979 11980 GL_GNULIB_VSCANF=0 11981 11982 11983 11984 GL_GNULIB_VDPRINTF=0 11985 11986 11987 11988 GL_GNULIB_VFPRINTF=0 11989 11990 11991 11992 GL_GNULIB_VFPRINTF_POSIX=0 11993 11994 11995 11996 GL_GNULIB_VPRINTF=0 11997 11998 11999 12000 GL_GNULIB_VPRINTF_POSIX=0 12001 12002 12003 12004 GL_GNULIB_VSNPRINTF=0 12005 12006 12007 12008 GL_GNULIB_VSPRINTF_POSIX=0 12009 12010 12011 12012 GL_GNULIB_MDA_FCLOSEALL=1 12013 12014 12015 12016 GL_GNULIB_MDA_FDOPEN=1 12017 12018 12019 12020 GL_GNULIB_MDA_FILENO=1 12021 12022 12023 12024 GL_GNULIB_MDA_GETW=1 12025 12026 12027 12028 GL_GNULIB_MDA_PUTW=1 12029 12030 12031 12032 GL_GNULIB_MDA_TEMPNAM=1 12033 12034 12035 12036 12037 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12038 if test "x$ac_cv_have_decl_getdtablesize" = xyes 12039 then : 12040 ac_have_decl=1 12041 else case e in #( 12042 e) ac_have_decl=0 ;; 12043 esac 12044 fi 12045 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h 12046 12047 12048 12049 12050 HAVE_GETRANDOM=1; 12051 REPLACE_GETRANDOM=0; 12052 12053 12054 12055 12056 GL_GNULIB_GETRANDOM=0 12057 12058 12059 12060 12061 12062 12063 12064 if test -z "$gl_pthreadlib_body_done"; then 12065 gl_pthread_api=no 12066 LIBPTHREAD= 12067 LIBPMULTITHREAD= 12068 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 12069 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 12070 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12071 if test "x$ac_cv_header_pthread_h" = xyes 12072 then : 12073 gl_have_pthread_h=yes 12074 else case e in #( 12075 e) gl_have_pthread_h=no ;; 12076 esac 12077 fi 12078 12079 if test "$gl_have_pthread_h" = yes; then 12080 # Other possible tests: 12081 # -lpthreads (FSU threads, PCthreads) 12082 # -lgthreads 12083 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 12084 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 12085 # the second one only in libpthread, and lock.c needs it. 12086 # 12087 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 12088 # needs -pthread for some reason. See: 12089 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 12090 save_LIBS=$LIBS 12091 for gl_pthread in '' '-pthread'; do 12092 LIBS="$LIBS $gl_pthread" 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094 /* end confdefs.h. */ 12095 #include <pthread.h> 12096 pthread_mutex_t m; 12097 pthread_mutexattr_t ma; 12098 12099 int 12100 main (void) 12101 { 12102 pthread_mutex_lock (&m); 12103 pthread_mutexattr_init (&ma); 12104 ; 12105 return 0; 12106 } 12107 _ACEOF 12108 if ac_fn_c_try_link "$LINENO" 12109 then : 12110 gl_pthread_api=yes 12111 LIBPTHREAD=$gl_pthread 12112 LIBPMULTITHREAD=$gl_pthread 12113 fi 12114 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12115 conftest$ac_exeext conftest.$ac_ext 12116 LIBS=$save_LIBS 12117 test $gl_pthread_api = yes && break 12118 done 12119 echo "$as_me:12119: gl_pthread_api=$gl_pthread_api" >&5 12120 echo "$as_me:12120: LIBPTHREAD=$LIBPTHREAD" >&5 12121 12122 gl_pthread_in_glibc=no 12123 # On Linux with glibc >= 2.34, libc contains the fully functional 12124 # pthread functions. 12125 case "$host_os" in 12126 linux*) 12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128 /* end confdefs.h. */ 12129 #include <features.h> 12130 #ifdef __GNU_LIBRARY__ 12131 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) 12132 Lucky user 12133 #endif 12134 #endif 12135 12136 _ACEOF 12137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12138 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1 12139 then : 12140 gl_pthread_in_glibc=yes 12141 fi 12142 rm -rf conftest* 12143 12144 ;; 12145 esac 12146 echo "$as_me:12146: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 12147 12148 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 12149 # since it is defined as a macro on OSF/1.) 12150 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 12151 # The program links fine without libpthread. But it may actually 12152 # need to link with libpthread in order to create multiple threads. 12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 12154 printf %s "checking for pthread_kill in -lpthread... " >&6; } 12155 if test ${ac_cv_lib_pthread_pthread_kill+y} 12156 then : 12157 printf %s "(cached) " >&6 12158 else case e in #( 12159 e) ac_check_lib_save_LIBS=$LIBS 12160 LIBS="-lpthread $LIBS" 12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12162 /* end confdefs.h. */ 12163 12164 /* Override any GCC internal prototype to avoid an error. 12165 Use char because int might match the return type of a GCC 12166 builtin and then its argument prototype would still apply. 12167 The 'extern "C"' is for builds by C++ compilers; 12168 although this is not generally supported in C code, supporting it here 12169 has little cost and some practical benefit (sr 110532). */ 12170 #ifdef __cplusplus 12171 extern "C" 12172 #endif 12173 char pthread_kill (void); 12174 int 12175 main (void) 12176 { 12177 return pthread_kill (); 12178 ; 12179 return 0; 12180 } 12181 _ACEOF 12182 if ac_fn_c_try_link "$LINENO" 12183 then : 12184 ac_cv_lib_pthread_pthread_kill=yes 12185 else case e in #( 12186 e) ac_cv_lib_pthread_pthread_kill=no ;; 12187 esac 12188 fi 12189 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12190 conftest$ac_exeext conftest.$ac_ext 12191 LIBS=$ac_check_lib_save_LIBS ;; 12192 esac 12193 fi 12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 12195 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 12196 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 12197 then : 12198 if test $gl_pthread_in_glibc = yes; then 12199 LIBPMULTITHREAD= 12200 else 12201 LIBPMULTITHREAD=-lpthread 12202 # On Solaris and HP-UX, most pthread functions exist also in libc. 12203 # Therefore pthread_in_use() needs to actually try to create a 12204 # thread: pthread_create from libc will fail, whereas 12205 # pthread_create will actually create a thread. 12206 # On Solaris 10 or newer, this test is no longer needed, because 12207 # libc contains the fully functional pthread functions. 12208 case "$host_os" in 12209 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 12210 12211 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 12212 12213 esac 12214 fi 12215 12216 fi 12217 12218 elif test $gl_pthread_api != yes; then 12219 # Some library is needed. Try libpthread and libc_r. 12220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 12221 printf %s "checking for pthread_kill in -lpthread... " >&6; } 12222 if test ${ac_cv_lib_pthread_pthread_kill+y} 12223 then : 12224 printf %s "(cached) " >&6 12225 else case e in #( 12226 e) ac_check_lib_save_LIBS=$LIBS 12227 LIBS="-lpthread $LIBS" 12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12229 /* end confdefs.h. */ 12230 12231 /* Override any GCC internal prototype to avoid an error. 12232 Use char because int might match the return type of a GCC 12233 builtin and then its argument prototype would still apply. 12234 The 'extern "C"' is for builds by C++ compilers; 12235 although this is not generally supported in C code, supporting it here 12236 has little cost and some practical benefit (sr 110532). */ 12237 #ifdef __cplusplus 12238 extern "C" 12239 #endif 12240 char pthread_kill (void); 12241 int 12242 main (void) 12243 { 12244 return pthread_kill (); 12245 ; 12246 return 0; 12247 } 12248 _ACEOF 12249 if ac_fn_c_try_link "$LINENO" 12250 then : 12251 ac_cv_lib_pthread_pthread_kill=yes 12252 else case e in #( 12253 e) ac_cv_lib_pthread_pthread_kill=no ;; 12254 esac 12255 fi 12256 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12257 conftest$ac_exeext conftest.$ac_ext 12258 LIBS=$ac_check_lib_save_LIBS ;; 12259 esac 12260 fi 12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 12262 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 12263 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 12264 then : 12265 gl_pthread_api=yes 12266 LIBPTHREAD=-lpthread 12267 LIBPMULTITHREAD=-lpthread 12268 fi 12269 12270 if test $gl_pthread_api != yes; then 12271 # For FreeBSD 4. 12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 12273 printf %s "checking for pthread_kill in -lc_r... " >&6; } 12274 if test ${ac_cv_lib_c_r_pthread_kill+y} 12275 then : 12276 printf %s "(cached) " >&6 12277 else case e in #( 12278 e) ac_check_lib_save_LIBS=$LIBS 12279 LIBS="-lc_r $LIBS" 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281 /* end confdefs.h. */ 12282 12283 /* Override any GCC internal prototype to avoid an error. 12284 Use char because int might match the return type of a GCC 12285 builtin and then its argument prototype would still apply. 12286 The 'extern "C"' is for builds by C++ compilers; 12287 although this is not generally supported in C code, supporting it here 12288 has little cost and some practical benefit (sr 110532). */ 12289 #ifdef __cplusplus 12290 extern "C" 12291 #endif 12292 char pthread_kill (void); 12293 int 12294 main (void) 12295 { 12296 return pthread_kill (); 12297 ; 12298 return 0; 12299 } 12300 _ACEOF 12301 if ac_fn_c_try_link "$LINENO" 12302 then : 12303 ac_cv_lib_c_r_pthread_kill=yes 12304 else case e in #( 12305 e) ac_cv_lib_c_r_pthread_kill=no ;; 12306 esac 12307 fi 12308 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12309 conftest$ac_exeext conftest.$ac_ext 12310 LIBS=$ac_check_lib_save_LIBS ;; 12311 esac 12312 fi 12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 12314 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 12315 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 12316 then : 12317 gl_pthread_api=yes 12318 LIBPTHREAD=-lc_r 12319 LIBPMULTITHREAD=-lc_r 12320 fi 12321 12322 fi 12323 fi 12324 echo "$as_me:12324: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 12325 fi 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 12327 printf %s "checking whether POSIX threads API is available... " >&6; } 12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 12329 printf "%s\n" "$gl_pthread_api" >&6; } 12330 12331 12332 if test $gl_pthread_api = yes; then 12333 12334 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 12335 12336 fi 12337 12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12339 /* end confdefs.h. */ 12340 #include <sched.h> 12341 int 12342 main (void) 12343 { 12344 sched_yield (); 12345 ; 12346 return 0; 12347 } 12348 _ACEOF 12349 if ac_fn_c_try_link "$LINENO" 12350 then : 12351 LIB_SCHED_YIELD= 12352 12353 else case e in #( 12354 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 12355 printf %s "checking for sched_yield in -lrt... " >&6; } 12356 if test ${ac_cv_lib_rt_sched_yield+y} 12357 then : 12358 printf %s "(cached) " >&6 12359 else case e in #( 12360 e) ac_check_lib_save_LIBS=$LIBS 12361 LIBS="-lrt $LIBS" 12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363 /* end confdefs.h. */ 12364 12365 /* Override any GCC internal prototype to avoid an error. 12366 Use char because int might match the return type of a GCC 12367 builtin and then its argument prototype would still apply. 12368 The 'extern "C"' is for builds by C++ compilers; 12369 although this is not generally supported in C code, supporting it here 12370 has little cost and some practical benefit (sr 110532). */ 12371 #ifdef __cplusplus 12372 extern "C" 12373 #endif 12374 char sched_yield (void); 12375 int 12376 main (void) 12377 { 12378 return sched_yield (); 12379 ; 12380 return 0; 12381 } 12382 _ACEOF 12383 if ac_fn_c_try_link "$LINENO" 12384 then : 12385 ac_cv_lib_rt_sched_yield=yes 12386 else case e in #( 12387 e) ac_cv_lib_rt_sched_yield=no ;; 12388 esac 12389 fi 12390 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12391 conftest$ac_exeext conftest.$ac_ext 12392 LIBS=$ac_check_lib_save_LIBS ;; 12393 esac 12394 fi 12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 12396 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 12397 if test "x$ac_cv_lib_rt_sched_yield" = xyes 12398 then : 12399 LIB_SCHED_YIELD=-lrt 12400 else case e in #( 12401 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 12402 printf %s "checking for sched_yield in -lposix4... " >&6; } 12403 if test ${ac_cv_lib_posix4_sched_yield+y} 12404 then : 12405 printf %s "(cached) " >&6 12406 else case e in #( 12407 e) ac_check_lib_save_LIBS=$LIBS 12408 LIBS="-lposix4 $LIBS" 12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410 /* end confdefs.h. */ 12411 12412 /* Override any GCC internal prototype to avoid an error. 12413 Use char because int might match the return type of a GCC 12414 builtin and then its argument prototype would still apply. 12415 The 'extern "C"' is for builds by C++ compilers; 12416 although this is not generally supported in C code, supporting it here 12417 has little cost and some practical benefit (sr 110532). */ 12418 #ifdef __cplusplus 12419 extern "C" 12420 #endif 12421 char sched_yield (void); 12422 int 12423 main (void) 12424 { 12425 return sched_yield (); 12426 ; 12427 return 0; 12428 } 12429 _ACEOF 12430 if ac_fn_c_try_link "$LINENO" 12431 then : 12432 ac_cv_lib_posix4_sched_yield=yes 12433 else case e in #( 12434 e) ac_cv_lib_posix4_sched_yield=no ;; 12435 esac 12436 fi 12437 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12438 conftest$ac_exeext conftest.$ac_ext 12439 LIBS=$ac_check_lib_save_LIBS ;; 12440 esac 12441 fi 12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 12443 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 12444 if test "x$ac_cv_lib_posix4_sched_yield" = xyes 12445 then : 12446 LIB_SCHED_YIELD=-lposix4 12447 fi 12448 ;; 12449 esac 12450 fi 12451 12452 ;; 12453 esac 12454 fi 12455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12456 conftest$ac_exeext conftest.$ac_ext 12457 12458 12459 gl_pthreadlib_body_done=done 12460 fi 12461 12462 12463 12464 12465 12466 12467 12468 12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 12470 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 12471 if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 12472 then : 12473 printf %s "(cached) " >&6 12474 else case e in #( 12475 e) case "$host_os" in 12476 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 12477 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 12478 gl_cv_func_setlocale_null_all_mtsafe=no ;; 12479 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 12480 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 12481 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 12482 # If we don't know, obey --enable-cross-guesses. 12483 *) 12484 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 12485 esac 12486 ;; 12487 esac 12488 fi 12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 12490 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 12491 case "$host_os" in 12492 mingw*) ;; 12493 *) 12494 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 12495 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 12496 fi 12497 ;; 12498 esac 12499 case "$gl_cv_func_setlocale_null_all_mtsafe" in 12500 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 12501 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 12502 esac 12503 12504 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 12505 12506 12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 12508 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 12509 if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 12510 then : 12511 printf %s "(cached) " >&6 12512 else case e in #( 12513 e) case "$host_os" in 12514 # Guess no on OpenBSD, AIX. 12515 openbsd* | aix*) 12516 gl_cv_func_setlocale_null_one_mtsafe=no ;; 12517 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 12518 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 12519 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 12520 # If we don't know, obey --enable-cross-guesses. 12521 *) 12522 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 12523 esac 12524 ;; 12525 esac 12526 fi 12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 12528 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 12529 case "$host_os" in 12530 mingw*) ;; 12531 *) 12532 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 12533 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 12534 fi 12535 ;; 12536 esac 12537 case "$gl_cv_func_setlocale_null_one_mtsafe" in 12538 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 12539 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 12540 esac 12541 12542 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 12543 12544 12545 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 12546 case "$host_os" in 12547 mingw*) LIB_SETLOCALE_NULL= ;; 12548 *) 12549 12550 12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 12552 printf %s "checking whether imported symbols can be declared weak... " >&6; } 12553 if test ${gl_cv_have_weak+y} 12554 then : 12555 printf %s "(cached) " >&6 12556 else case e in #( 12557 e) case "$host_os" in 12558 cygwin*) 12559 gl_cv_have_weak="guessing no" 12560 ;; 12561 *) 12562 gl_cv_have_weak=no 12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12564 /* end confdefs.h. */ 12565 extern void xyzzy (); 12566 #pragma weak xyzzy 12567 int 12568 main (void) 12569 { 12570 xyzzy(); 12571 ; 12572 return 0; 12573 } 12574 _ACEOF 12575 if ac_fn_c_try_link "$LINENO" 12576 then : 12577 gl_cv_have_weak=maybe 12578 fi 12579 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12580 conftest$ac_exeext conftest.$ac_ext 12581 if test $gl_cv_have_weak = maybe; then 12582 if test "$cross_compiling" = yes 12583 then : 12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12585 /* end confdefs.h. */ 12586 #ifdef __ELF__ 12587 Extensible Linking Format 12588 #endif 12589 12590 _ACEOF 12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12592 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1 12593 then : 12594 gl_cv_have_weak="guessing yes" 12595 else case e in #( 12596 e) gl_cv_have_weak="guessing no" ;; 12597 esac 12598 fi 12599 rm -rf conftest* 12600 12601 12602 else case e in #( 12603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604 /* end confdefs.h. */ 12605 12606 #include <stdio.h> 12607 #pragma weak fputs 12608 int main () 12609 { 12610 return (fputs == NULL); 12611 } 12612 _ACEOF 12613 if ac_fn_c_try_run "$LINENO" 12614 then : 12615 gl_cv_have_weak=yes 12616 else case e in #( 12617 e) gl_cv_have_weak=no ;; 12618 esac 12619 fi 12620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12621 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12622 esac 12623 fi 12624 12625 fi 12626 ;; 12627 esac 12628 case " $LDFLAGS " in 12629 *" -static "*) gl_cv_have_weak=no ;; 12630 esac 12631 case "$gl_cv_have_weak" in 12632 *yes) 12633 case "$host_os" in 12634 freebsd* | dragonfly* | midnightbsd*) 12635 : > conftest1.c 12636 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 12637 cat <<EOF > conftest2.c 12638 #include <pthread.h> 12639 #pragma weak pthread_mutexattr_gettype 12640 int main () 12641 { 12642 return (pthread_mutexattr_gettype != NULL); 12643 } 12644 EOF 12645 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 12646 || gl_cv_have_weak=no 12647 rm -f conftest1.c libempty.so conftest2.c conftest 12648 ;; 12649 esac 12650 ;; 12651 esac 12652 ;; 12653 esac 12654 fi 12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 12656 printf "%s\n" "$gl_cv_have_weak" >&6; } 12657 case "$gl_cv_have_weak" in 12658 *yes) 12659 12660 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 12661 12662 ;; 12663 esac 12664 12665 case "$gl_cv_have_weak" in 12666 *yes) LIB_SETLOCALE_NULL= ;; 12667 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 12668 esac 12669 ;; 12670 esac 12671 else 12672 LIB_SETLOCALE_NULL= 12673 fi 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 if test $gl_cv_have_include_next = yes; then 12688 gl_cv_next_limits_h='<'limits.h'>' 12689 else 12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 12691 printf %s "checking absolute name of <limits.h>... " >&6; } 12692 if test ${gl_cv_next_limits_h+y} 12693 then : 12694 printf %s "(cached) " >&6 12695 else case e in #( 12696 e) 12697 if test $ac_cv_header_limits_h = yes; then 12698 12699 12700 12701 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703 /* end confdefs.h. */ 12704 #include <limits.h> 12705 _ACEOF 12706 case "$host_os" in 12707 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12708 *) gl_absname_cpp="$ac_cpp" ;; 12709 esac 12710 12711 case "$host_os" in 12712 mingw*) 12713 gl_dirsep_regex='[/\\]' 12714 ;; 12715 *) 12716 gl_dirsep_regex='\/' 12717 ;; 12718 esac 12719 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12720 gl_header_literal_regex=`echo 'limits.h' \ 12721 | sed -e "$gl_make_literal_regex_sed"` 12722 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12723 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12724 s|^/[^/]|//&| 12725 p 12726 q 12727 }' 12728 12729 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12730 sed -n "$gl_absolute_header_sed"` 12731 12732 gl_header=$gl_cv_absolute_limits_h 12733 gl_cv_next_limits_h='"'$gl_header'"' 12734 else 12735 gl_cv_next_limits_h='<'limits.h'>' 12736 fi 12737 12738 ;; 12739 esac 12740 fi 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 12742 printf "%s\n" "$gl_cv_next_limits_h" >&6; } 12743 fi 12744 NEXT_LIMITS_H=$gl_cv_next_limits_h 12745 12746 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12748 gl_next_as_first_directive='<'limits.h'>' 12749 else 12750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12751 gl_next_as_first_directive=$gl_cv_next_limits_h 12752 fi 12753 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 12754 12755 12756 12757 12758 12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5 12760 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; } 12761 if test ${gl_cv_header_limits_width+y} 12762 then : 12763 printf %s "(cached) " >&6 12764 else case e in #( 12765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12766 /* end confdefs.h. */ 12767 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 12768 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 12769 #endif 12770 #include <limits.h> 12771 long long llm = LLONG_MAX; 12772 int wb = WORD_BIT; 12773 int ullw = ULLONG_WIDTH; 12774 int bw = BOOL_WIDTH; 12775 12776 int 12777 main (void) 12778 { 12779 12780 ; 12781 return 0; 12782 } 12783 _ACEOF 12784 if ac_fn_c_try_compile "$LINENO" 12785 then : 12786 gl_cv_header_limits_width=yes 12787 else case e in #( 12788 e) gl_cv_header_limits_width=no ;; 12789 esac 12790 fi 12791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12792 esac 12793 fi 12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 12795 printf "%s\n" "$gl_cv_header_limits_width" >&6; } 12796 if test "$gl_cv_header_limits_width" = yes; then 12797 GL_GENERATE_LIMITS_H=false 12798 else 12799 GL_GENERATE_LIMITS_H=true 12800 fi 12801 12802 12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 12804 printf %s "checking for wint_t... " >&6; } 12805 if test ${gt_cv_c_wint_t+y} 12806 then : 12807 printf %s "(cached) " >&6 12808 else case e in #( 12809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12810 /* end confdefs.h. */ 12811 #include <wchar.h> 12812 wint_t foo = (wchar_t)'\0'; 12813 int 12814 main (void) 12815 { 12816 12817 ; 12818 return 0; 12819 } 12820 _ACEOF 12821 if ac_fn_c_try_compile "$LINENO" 12822 then : 12823 gt_cv_c_wint_t=yes 12824 else case e in #( 12825 e) gt_cv_c_wint_t=no ;; 12826 esac 12827 fi 12828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12829 esac 12830 fi 12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 12832 printf "%s\n" "$gt_cv_c_wint_t" >&6; } 12833 if test $gt_cv_c_wint_t = yes; then 12834 12835 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h 12836 12837 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 12839 printf %s "checking whether wint_t is large enough... " >&6; } 12840 if test ${gl_cv_type_wint_t_large_enough+y} 12841 then : 12842 printf %s "(cached) " >&6 12843 else case e in #( 12844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12845 /* end confdefs.h. */ 12846 #include <wchar.h> 12847 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 12848 12849 int 12850 main (void) 12851 { 12852 12853 ; 12854 return 0; 12855 } 12856 _ACEOF 12857 if ac_fn_c_try_compile "$LINENO" 12858 then : 12859 gl_cv_type_wint_t_large_enough=yes 12860 else case e in #( 12861 e) gl_cv_type_wint_t_large_enough=no ;; 12862 esac 12863 fi 12864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12865 esac 12866 fi 12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 12868 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } 12869 if test $gl_cv_type_wint_t_large_enough = no; then 12870 GNULIBHEADERS_OVERRIDE_WINT_T=1 12871 else 12872 GNULIBHEADERS_OVERRIDE_WINT_T=0 12873 fi 12874 else 12875 GNULIBHEADERS_OVERRIDE_WINT_T=0 12876 fi 12877 12878 12879 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 12881 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; } 12882 if test ${gl_cv_c_multiarch+y} 12883 then : 12884 printf %s "(cached) " >&6 12885 else case e in #( 12886 e) gl_cv_c_multiarch=no 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888 /* end confdefs.h. */ 12889 #ifndef __APPLE_CC__ 12890 not a universal capable compiler 12891 #endif 12892 typedef int dummy; 12893 12894 _ACEOF 12895 if ac_fn_c_try_compile "$LINENO" 12896 then : 12897 12898 arch= 12899 prev= 12900 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 12901 if test -n "$prev"; then 12902 case $word in 12903 i?86 | x86_64 | ppc | ppc64 | arm | arm64) 12904 if test -z "$arch" || test "$arch" = "$word"; then 12905 arch="$word" 12906 else 12907 gl_cv_c_multiarch=yes 12908 fi 12909 ;; 12910 esac 12911 prev= 12912 else 12913 if test "x$word" = "x-arch"; then 12914 prev=arch 12915 fi 12916 fi 12917 done 12918 12919 fi 12920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12921 ;; 12922 esac 12923 fi 12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 12925 printf "%s\n" "$gl_cv_c_multiarch" >&6; } 12926 if test $gl_cv_c_multiarch = yes; then 12927 APPLE_UNIVERSAL_BUILD=1 12928 else 12929 APPLE_UNIVERSAL_BUILD=0 12930 fi 12931 12932 12933 12934 12935 12936 12937 12938 12939 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 12940 12941 12942 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 12943 12944 12945 12946 if test $ac_cv_header_wchar_h = yes; then 12947 HAVE_WCHAR_H=1 12948 else 12949 HAVE_WCHAR_H=0 12950 fi 12951 12952 12953 12954 if test $ac_cv_header_inttypes_h = yes; then 12955 HAVE_INTTYPES_H=1 12956 else 12957 HAVE_INTTYPES_H=0 12958 fi 12959 12960 12961 12962 if test $ac_cv_header_sys_types_h = yes; then 12963 HAVE_SYS_TYPES_H=1 12964 else 12965 HAVE_SYS_TYPES_H=0 12966 fi 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 if test $gl_cv_have_include_next = yes; then 12979 gl_cv_next_stdint_h='<'stdint.h'>' 12980 else 12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 12982 printf %s "checking absolute name of <stdint.h>... " >&6; } 12983 if test ${gl_cv_next_stdint_h+y} 12984 then : 12985 printf %s "(cached) " >&6 12986 else case e in #( 12987 e) 12988 if test $ac_cv_header_stdint_h = yes; then 12989 12990 12991 12992 12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994 /* end confdefs.h. */ 12995 #include <stdint.h> 12996 _ACEOF 12997 case "$host_os" in 12998 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12999 *) gl_absname_cpp="$ac_cpp" ;; 13000 esac 13001 13002 case "$host_os" in 13003 mingw*) 13004 gl_dirsep_regex='[/\\]' 13005 ;; 13006 *) 13007 gl_dirsep_regex='\/' 13008 ;; 13009 esac 13010 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13011 gl_header_literal_regex=`echo 'stdint.h' \ 13012 | sed -e "$gl_make_literal_regex_sed"` 13013 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13014 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13015 s|^/[^/]|//&| 13016 p 13017 q 13018 }' 13019 13020 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13021 sed -n "$gl_absolute_header_sed"` 13022 13023 gl_header=$gl_cv_absolute_stdint_h 13024 gl_cv_next_stdint_h='"'$gl_header'"' 13025 else 13026 gl_cv_next_stdint_h='<'stdint.h'>' 13027 fi 13028 13029 ;; 13030 esac 13031 fi 13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 13033 printf "%s\n" "$gl_cv_next_stdint_h" >&6; } 13034 fi 13035 NEXT_STDINT_H=$gl_cv_next_stdint_h 13036 13037 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13039 gl_next_as_first_directive='<'stdint.h'>' 13040 else 13041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13042 gl_next_as_first_directive=$gl_cv_next_stdint_h 13043 fi 13044 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 13045 13046 13047 13048 13049 if test $ac_cv_header_stdint_h = yes; then 13050 HAVE_STDINT_H=1 13051 else 13052 HAVE_STDINT_H=0 13053 fi 13054 13055 13056 if test $ac_cv_header_stdint_h = yes; then 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 13058 printf %s "checking whether stdint.h conforms to C99... " >&6; } 13059 if test ${gl_cv_header_working_stdint_h+y} 13060 then : 13061 printf %s "(cached) " >&6 13062 else case e in #( 13063 e) gl_cv_header_working_stdint_h=no 13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13065 /* end confdefs.h. */ 13066 13067 13068 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 13069 #define __STDC_CONSTANT_MACROS 1 13070 #define __STDC_LIMIT_MACROS 1 13071 #include <stdint.h> 13072 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 13073 #if !(defined WCHAR_MIN && defined WCHAR_MAX) 13074 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 13075 #endif 13076 13077 13078 #include <stddef.h> 13079 #include <signal.h> 13080 #if HAVE_WCHAR_H 13081 # include <wchar.h> 13082 #endif 13083 13084 13085 #ifdef INT8_MAX 13086 int8_t a1 = INT8_MAX; 13087 int8_t a1min = INT8_MIN; 13088 #endif 13089 #ifdef INT16_MAX 13090 int16_t a2 = INT16_MAX; 13091 int16_t a2min = INT16_MIN; 13092 #endif 13093 #ifdef INT32_MAX 13094 int32_t a3 = INT32_MAX; 13095 int32_t a3min = INT32_MIN; 13096 #endif 13097 #ifdef INT64_MAX 13098 int64_t a4 = INT64_MAX; 13099 int64_t a4min = INT64_MIN; 13100 #endif 13101 #ifdef UINT8_MAX 13102 uint8_t b1 = UINT8_MAX; 13103 #else 13104 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 13105 #endif 13106 #ifdef UINT16_MAX 13107 uint16_t b2 = UINT16_MAX; 13108 #endif 13109 #ifdef UINT32_MAX 13110 uint32_t b3 = UINT32_MAX; 13111 #endif 13112 #ifdef UINT64_MAX 13113 uint64_t b4 = UINT64_MAX; 13114 #endif 13115 int_least8_t c1 = INT8_C (0x7f); 13116 int_least8_t c1max = INT_LEAST8_MAX; 13117 int_least8_t c1min = INT_LEAST8_MIN; 13118 int_least16_t c2 = INT16_C (0x7fff); 13119 int_least16_t c2max = INT_LEAST16_MAX; 13120 int_least16_t c2min = INT_LEAST16_MIN; 13121 int_least32_t c3 = INT32_C (0x7fffffff); 13122 int_least32_t c3max = INT_LEAST32_MAX; 13123 int_least32_t c3min = INT_LEAST32_MIN; 13124 int_least64_t c4 = INT64_C (0x7fffffffffffffff); 13125 int_least64_t c4max = INT_LEAST64_MAX; 13126 int_least64_t c4min = INT_LEAST64_MIN; 13127 uint_least8_t d1 = UINT8_C (0xff); 13128 uint_least8_t d1max = UINT_LEAST8_MAX; 13129 uint_least16_t d2 = UINT16_C (0xffff); 13130 uint_least16_t d2max = UINT_LEAST16_MAX; 13131 uint_least32_t d3 = UINT32_C (0xffffffff); 13132 uint_least32_t d3max = UINT_LEAST32_MAX; 13133 uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 13134 uint_least64_t d4max = UINT_LEAST64_MAX; 13135 int_fast8_t e1 = INT_FAST8_MAX; 13136 int_fast8_t e1min = INT_FAST8_MIN; 13137 int_fast16_t e2 = INT_FAST16_MAX; 13138 int_fast16_t e2min = INT_FAST16_MIN; 13139 int_fast32_t e3 = INT_FAST32_MAX; 13140 int_fast32_t e3min = INT_FAST32_MIN; 13141 int_fast64_t e4 = INT_FAST64_MAX; 13142 int_fast64_t e4min = INT_FAST64_MIN; 13143 uint_fast8_t f1 = UINT_FAST8_MAX; 13144 uint_fast16_t f2 = UINT_FAST16_MAX; 13145 uint_fast32_t f3 = UINT_FAST32_MAX; 13146 uint_fast64_t f4 = UINT_FAST64_MAX; 13147 #ifdef INTPTR_MAX 13148 intptr_t g = INTPTR_MAX; 13149 intptr_t gmin = INTPTR_MIN; 13150 #endif 13151 #ifdef UINTPTR_MAX 13152 uintptr_t h = UINTPTR_MAX; 13153 #endif 13154 intmax_t i = INTMAX_MAX; 13155 uintmax_t j = UINTMAX_MAX; 13156 13157 /* Check that SIZE_MAX has the correct type, if possible. */ 13158 #if 201112 <= __STDC_VERSION__ 13159 int k = _Generic (SIZE_MAX, size_t: 0); 13160 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ 13161 || (0x5110 <= __SUNPRO_C && !__STDC__)) 13162 extern size_t k; 13163 extern __typeof__ (SIZE_MAX) k; 13164 #endif 13165 13166 #include <limits.h> /* for CHAR_BIT */ 13167 #define TYPE_MINIMUM(t) \ 13168 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 13169 #define TYPE_MAXIMUM(t) \ 13170 ((t) ((t) 0 < (t) -1 \ 13171 ? (t) -1 \ 13172 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 13173 struct s { 13174 int check_PTRDIFF: 13175 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 13176 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 13177 ? 1 : -1; 13178 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */ 13179 int check_SIG_ATOMIC: 13180 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 13181 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 13182 ? 1 : -1; 13183 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 13184 int check_WCHAR: 13185 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 13186 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 13187 ? 1 : -1; 13188 /* Detect bug in mingw. */ 13189 int check_WINT: 13190 WINT_MIN == TYPE_MINIMUM (wint_t) 13191 && WINT_MAX == TYPE_MAXIMUM (wint_t) 13192 ? 1 : -1; 13193 13194 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 13195 int check_UINT8_C: 13196 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 13197 int check_UINT16_C: 13198 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 13199 13200 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 13201 #ifdef UINT8_MAX 13202 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 13203 #endif 13204 #ifdef UINT16_MAX 13205 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 13206 #endif 13207 #ifdef UINT32_MAX 13208 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 13209 #endif 13210 #ifdef UINT64_MAX 13211 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 13212 #endif 13213 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 13214 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 13215 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 13216 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 13217 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 13218 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 13219 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 13220 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 13221 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 13222 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 13223 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 13224 }; 13225 13226 int 13227 main (void) 13228 { 13229 13230 ; 13231 return 0; 13232 } 13233 _ACEOF 13234 if ac_fn_c_try_compile "$LINENO" 13235 then : 13236 if test "$cross_compiling" = yes 13237 then : 13238 case "$host_os" in 13239 # Guess yes on native Windows. 13240 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 13241 # In general, assume it works. 13242 *) gl_cv_header_working_stdint_h="guessing yes" ;; 13243 esac 13244 13245 else case e in #( 13246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13247 /* end confdefs.h. */ 13248 13249 13250 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 13251 #define __STDC_CONSTANT_MACROS 1 13252 #define __STDC_LIMIT_MACROS 1 13253 #include <stdint.h> 13254 13255 13256 #include <stddef.h> 13257 #include <signal.h> 13258 #if HAVE_WCHAR_H 13259 # include <wchar.h> 13260 #endif 13261 13262 13263 #include <stdio.h> 13264 #include <string.h> 13265 #define MVAL(macro) MVAL1(macro) 13266 #define MVAL1(expression) #expression 13267 static const char *macro_values[] = 13268 { 13269 #ifdef INT8_MAX 13270 MVAL (INT8_MAX), 13271 #endif 13272 #ifdef INT16_MAX 13273 MVAL (INT16_MAX), 13274 #endif 13275 #ifdef INT32_MAX 13276 MVAL (INT32_MAX), 13277 #endif 13278 #ifdef INT64_MAX 13279 MVAL (INT64_MAX), 13280 #endif 13281 #ifdef UINT8_MAX 13282 MVAL (UINT8_MAX), 13283 #endif 13284 #ifdef UINT16_MAX 13285 MVAL (UINT16_MAX), 13286 #endif 13287 #ifdef UINT32_MAX 13288 MVAL (UINT32_MAX), 13289 #endif 13290 #ifdef UINT64_MAX 13291 MVAL (UINT64_MAX), 13292 #endif 13293 NULL 13294 }; 13295 13296 int 13297 main (void) 13298 { 13299 13300 const char **mv; 13301 for (mv = macro_values; *mv != NULL; mv++) 13302 { 13303 const char *value = *mv; 13304 /* Test whether it looks like a cast expression. */ 13305 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 13306 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 13307 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 13308 || strncmp (value, "((int)"/*)*/, 6) == 0 13309 || strncmp (value, "((signed short)"/*)*/, 15) == 0 13310 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 13311 return mv - macro_values + 1; 13312 } 13313 return 0; 13314 13315 ; 13316 return 0; 13317 } 13318 _ACEOF 13319 if ac_fn_c_try_run "$LINENO" 13320 then : 13321 gl_cv_header_working_stdint_h=yes 13322 fi 13323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13324 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13325 esac 13326 fi 13327 13328 13329 fi 13330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13331 ;; 13332 esac 13333 fi 13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 13335 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; } 13336 fi 13337 13338 HAVE_C99_STDINT_H=0 13339 HAVE_SYS_BITYPES_H=0 13340 HAVE_SYS_INTTYPES_H=0 13341 GL_GENERATE_STDINT_H=true 13342 case "$gl_cv_header_working_stdint_h" in 13343 *yes) 13344 HAVE_C99_STDINT_H=1 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 13346 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; } 13347 if test ${gl_cv_header_stdint_without_STDC_macros+y} 13348 then : 13349 printf %s "(cached) " >&6 13350 else case e in #( 13351 e) gl_cv_header_stdint_without_STDC_macros=no 13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13353 /* end confdefs.h. */ 13354 13355 13356 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 13357 #include <stdint.h> 13358 13359 13360 #include <stddef.h> 13361 #include <signal.h> 13362 #if HAVE_WCHAR_H 13363 # include <wchar.h> 13364 #endif 13365 13366 13367 intmax_t im = INTMAX_MAX; 13368 int32_t i32 = INT32_C (0x7fffffff); 13369 13370 int 13371 main (void) 13372 { 13373 13374 ; 13375 return 0; 13376 } 13377 _ACEOF 13378 if ac_fn_c_try_compile "$LINENO" 13379 then : 13380 gl_cv_header_stdint_without_STDC_macros=yes 13381 fi 13382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13383 ;; 13384 esac 13385 fi 13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 13387 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } 13388 13389 if test $gl_cv_header_stdint_without_STDC_macros = no; then 13390 13391 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 13392 13393 13394 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 13395 13396 fi 13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 13398 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 13399 if test ${gl_cv_header_stdint_width+y} 13400 then : 13401 printf %s "(cached) " >&6 13402 else case e in #( 13403 e) gl_cv_header_stdint_width=no 13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13405 /* end confdefs.h. */ 13406 13407 /* Work if build is not clean. */ 13408 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 13409 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 13410 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 13411 #endif 13412 #include <stdint.h> 13413 13414 #include <stddef.h> 13415 #include <signal.h> 13416 #if HAVE_WCHAR_H 13417 # include <wchar.h> 13418 #endif 13419 13420 int iw = UINTMAX_WIDTH; 13421 13422 int 13423 main (void) 13424 { 13425 13426 ; 13427 return 0; 13428 } 13429 _ACEOF 13430 if ac_fn_c_try_compile "$LINENO" 13431 then : 13432 gl_cv_header_stdint_width=yes 13433 fi 13434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13435 esac 13436 fi 13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 13438 printf "%s\n" "$gl_cv_header_stdint_width" >&6; } 13439 if test "$gl_cv_header_stdint_width" = yes; then 13440 GL_GENERATE_STDINT_H=false 13441 fi 13442 ;; 13443 *) 13444 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 13445 if test "x$ac_cv_header_sys_inttypes_h" = xyes 13446 then : 13447 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h 13448 13449 fi 13450 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 13451 if test "x$ac_cv_header_sys_bitypes_h" = xyes 13452 then : 13453 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 13454 13455 fi 13456 13457 if test $ac_cv_header_sys_inttypes_h = yes; then 13458 HAVE_SYS_INTTYPES_H=1 13459 fi 13460 if test $ac_cv_header_sys_bitypes_h = yes; then 13461 HAVE_SYS_BITYPES_H=1 13462 fi 13463 13464 13465 if test $APPLE_UNIVERSAL_BUILD = 0; then 13466 13467 13468 for gltype in ptrdiff_t size_t ; do 13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 13470 printf %s "checking for bit size of $gltype... " >&6; } 13471 if eval test \${gl_cv_bitsizeof_${gltype}+y} 13472 then : 13473 printf %s "(cached) " >&6 13474 else case e in #( 13475 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 13476 #include <stddef.h> 13477 #include <signal.h> 13478 #if HAVE_WCHAR_H 13479 # include <wchar.h> 13480 #endif 13481 13482 #include <limits.h>" 13483 then : 13484 13485 else case e in #( 13486 e) result=unknown ;; 13487 esac 13488 fi 13489 13490 eval gl_cv_bitsizeof_${gltype}=\$result 13491 ;; 13492 esac 13493 fi 13494 eval ac_res=\$gl_cv_bitsizeof_${gltype} 13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13496 printf "%s\n" "$ac_res" >&6; } 13497 eval result=\$gl_cv_bitsizeof_${gltype} 13498 if test $result = unknown; then 13499 result=0 13500 fi 13501 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 13502 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 13503 13504 eval BITSIZEOF_${GLTYPE}=\$result 13505 done 13506 13507 13508 fi 13509 13510 13511 for gltype in sig_atomic_t wchar_t wint_t ; do 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 13513 printf %s "checking for bit size of $gltype... " >&6; } 13514 if eval test \${gl_cv_bitsizeof_${gltype}+y} 13515 then : 13516 printf %s "(cached) " >&6 13517 else case e in #( 13518 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 13519 #include <stddef.h> 13520 #include <signal.h> 13521 #if HAVE_WCHAR_H 13522 # include <wchar.h> 13523 #endif 13524 13525 #include <limits.h>" 13526 then : 13527 13528 else case e in #( 13529 e) result=unknown ;; 13530 esac 13531 fi 13532 13533 eval gl_cv_bitsizeof_${gltype}=\$result 13534 ;; 13535 esac 13536 fi 13537 eval ac_res=\$gl_cv_bitsizeof_${gltype} 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13539 printf "%s\n" "$ac_res" >&6; } 13540 eval result=\$gl_cv_bitsizeof_${gltype} 13541 if test $result = unknown; then 13542 result=0 13543 fi 13544 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 13545 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 13546 13547 eval BITSIZEOF_${GLTYPE}=\$result 13548 done 13549 13550 13551 13552 13553 for gltype in sig_atomic_t wchar_t wint_t ; do 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 13555 printf %s "checking whether $gltype is signed... " >&6; } 13556 if eval test \${gl_cv_type_${gltype}_signed+y} 13557 then : 13558 printf %s "(cached) " >&6 13559 else case e in #( 13560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561 /* end confdefs.h. */ 13562 13563 #include <stddef.h> 13564 #include <signal.h> 13565 #if HAVE_WCHAR_H 13566 # include <wchar.h> 13567 #endif 13568 13569 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 13570 int 13571 main (void) 13572 { 13573 13574 ; 13575 return 0; 13576 } 13577 _ACEOF 13578 if ac_fn_c_try_compile "$LINENO" 13579 then : 13580 result=yes 13581 else case e in #( 13582 e) result=no ;; 13583 esac 13584 fi 13585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13586 eval gl_cv_type_${gltype}_signed=\$result 13587 ;; 13588 esac 13589 fi 13590 eval ac_res=\$gl_cv_type_${gltype}_signed 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13592 printf "%s\n" "$ac_res" >&6; } 13593 eval result=\$gl_cv_type_${gltype}_signed 13594 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 13595 if test "$result" = yes; then 13596 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h 13597 13598 eval HAVE_SIGNED_${GLTYPE}=1 13599 else 13600 eval HAVE_SIGNED_${GLTYPE}=0 13601 fi 13602 done 13603 13604 13605 gl_cv_type_ptrdiff_t_signed=yes 13606 gl_cv_type_size_t_signed=no 13607 if test $APPLE_UNIVERSAL_BUILD = 0; then 13608 13609 13610 for gltype in ptrdiff_t size_t ; do 13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 13612 printf %s "checking for $gltype integer literal suffix... " >&6; } 13613 if eval test \${gl_cv_type_${gltype}_suffix+y} 13614 then : 13615 printf %s "(cached) " >&6 13616 else case e in #( 13617 e) eval gl_cv_type_${gltype}_suffix=no 13618 eval result=\$gl_cv_type_${gltype}_signed 13619 if test "$result" = yes; then 13620 glsufu= 13621 else 13622 glsufu=u 13623 fi 13624 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 13625 case $glsuf in 13626 '') gltype1='int';; 13627 l) gltype1='long int';; 13628 ll) gltype1='long long int';; 13629 i64) gltype1='__int64';; 13630 u) gltype1='unsigned int';; 13631 ul) gltype1='unsigned long int';; 13632 ull) gltype1='unsigned long long int';; 13633 ui64)gltype1='unsigned __int64';; 13634 esac 13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13636 /* end confdefs.h. */ 13637 13638 #include <stddef.h> 13639 #include <signal.h> 13640 #if HAVE_WCHAR_H 13641 # include <wchar.h> 13642 #endif 13643 13644 extern $gltype foo; 13645 extern $gltype1 foo; 13646 int 13647 main (void) 13648 { 13649 13650 ; 13651 return 0; 13652 } 13653 _ACEOF 13654 if ac_fn_c_try_compile "$LINENO" 13655 then : 13656 eval gl_cv_type_${gltype}_suffix=\$glsuf 13657 fi 13658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13659 eval result=\$gl_cv_type_${gltype}_suffix 13660 test "$result" != no && break 13661 done ;; 13662 esac 13663 fi 13664 eval ac_res=\$gl_cv_type_${gltype}_suffix 13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13666 printf "%s\n" "$ac_res" >&6; } 13667 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 13668 eval result=\$gl_cv_type_${gltype}_suffix 13669 test "$result" = no && result= 13670 eval ${GLTYPE}_SUFFIX=\$result 13671 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 13672 13673 done 13674 13675 13676 fi 13677 13678 13679 for gltype in sig_atomic_t wchar_t wint_t ; do 13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 13681 printf %s "checking for $gltype integer literal suffix... " >&6; } 13682 if eval test \${gl_cv_type_${gltype}_suffix+y} 13683 then : 13684 printf %s "(cached) " >&6 13685 else case e in #( 13686 e) eval gl_cv_type_${gltype}_suffix=no 13687 eval result=\$gl_cv_type_${gltype}_signed 13688 if test "$result" = yes; then 13689 glsufu= 13690 else 13691 glsufu=u 13692 fi 13693 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 13694 case $glsuf in 13695 '') gltype1='int';; 13696 l) gltype1='long int';; 13697 ll) gltype1='long long int';; 13698 i64) gltype1='__int64';; 13699 u) gltype1='unsigned int';; 13700 ul) gltype1='unsigned long int';; 13701 ull) gltype1='unsigned long long int';; 13702 ui64)gltype1='unsigned __int64';; 13703 esac 13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705 /* end confdefs.h. */ 13706 13707 #include <stddef.h> 13708 #include <signal.h> 13709 #if HAVE_WCHAR_H 13710 # include <wchar.h> 13711 #endif 13712 13713 extern $gltype foo; 13714 extern $gltype1 foo; 13715 int 13716 main (void) 13717 { 13718 13719 ; 13720 return 0; 13721 } 13722 _ACEOF 13723 if ac_fn_c_try_compile "$LINENO" 13724 then : 13725 eval gl_cv_type_${gltype}_suffix=\$glsuf 13726 fi 13727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13728 eval result=\$gl_cv_type_${gltype}_suffix 13729 test "$result" != no && break 13730 done ;; 13731 esac 13732 fi 13733 eval ac_res=\$gl_cv_type_${gltype}_suffix 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13735 printf "%s\n" "$ac_res" >&6; } 13736 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 13737 eval result=\$gl_cv_type_${gltype}_suffix 13738 test "$result" = no && result= 13739 eval ${GLTYPE}_SUFFIX=\$result 13740 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 13741 13742 done 13743 13744 13745 13746 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then 13747 BITSIZEOF_WINT_T=32 13748 fi 13749 13750 ;; 13751 esac 13752 13753 13754 13755 GL_GENERATE_LIMITS_H=true 13756 13757 13758 13759 13760 13761 13762 13763 HAVE_DECL_IMAXABS=1; 13764 HAVE_DECL_IMAXDIV=1; 13765 HAVE_DECL_STRTOIMAX=1; 13766 HAVE_DECL_STRTOUMAX=1; 13767 HAVE_IMAXDIV_T=1; 13768 REPLACE_STRTOIMAX=0; 13769 REPLACE_STRTOUMAX=0; 13770 INT32_MAX_LT_INTMAX_MAX=1; 13771 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 13772 PRIPTR_PREFIX=__PRIPTR_PREFIX; 13773 UINT32_MAX_LT_UINTMAX_MAX=1; 13774 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 if test $gl_cv_have_include_next = yes; then 13791 gl_cv_next_inttypes_h='<'inttypes.h'>' 13792 else 13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 13794 printf %s "checking absolute name of <inttypes.h>... " >&6; } 13795 if test ${gl_cv_next_inttypes_h+y} 13796 then : 13797 printf %s "(cached) " >&6 13798 else case e in #( 13799 e) 13800 if test $ac_cv_header_inttypes_h = yes; then 13801 13802 13803 13804 13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13806 /* end confdefs.h. */ 13807 #include <inttypes.h> 13808 _ACEOF 13809 case "$host_os" in 13810 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13811 *) gl_absname_cpp="$ac_cpp" ;; 13812 esac 13813 13814 case "$host_os" in 13815 mingw*) 13816 gl_dirsep_regex='[/\\]' 13817 ;; 13818 *) 13819 gl_dirsep_regex='\/' 13820 ;; 13821 esac 13822 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13823 gl_header_literal_regex=`echo 'inttypes.h' \ 13824 | sed -e "$gl_make_literal_regex_sed"` 13825 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13827 s|^/[^/]|//&| 13828 p 13829 q 13830 }' 13831 13832 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13833 sed -n "$gl_absolute_header_sed"` 13834 13835 gl_header=$gl_cv_absolute_inttypes_h 13836 gl_cv_next_inttypes_h='"'$gl_header'"' 13837 else 13838 gl_cv_next_inttypes_h='<'inttypes.h'>' 13839 fi 13840 13841 ;; 13842 esac 13843 fi 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 13845 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; } 13846 fi 13847 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 13848 13849 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13851 gl_next_as_first_directive='<'inttypes.h'>' 13852 else 13853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13854 gl_next_as_first_directive=$gl_cv_next_inttypes_h 13855 fi 13856 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 GL_GNULIB_IMAXABS=0 13873 13874 13875 13876 GL_GNULIB_IMAXDIV=0 13877 13878 13879 13880 GL_GNULIB_STRTOIMAX=0 13881 13882 13883 13884 GL_GNULIB_STRTOUMAX=0 13885 13886 13887 13888 13889 HAVE_NL_LANGINFO=1; 13890 REPLACE_NL_LANGINFO=0; 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 if test $gl_cv_have_include_next = yes; then 13908 gl_cv_next_langinfo_h='<'langinfo.h'>' 13909 else 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 13911 printf %s "checking absolute name of <langinfo.h>... " >&6; } 13912 if test ${gl_cv_next_langinfo_h+y} 13913 then : 13914 printf %s "(cached) " >&6 13915 else case e in #( 13916 e) 13917 if test $ac_cv_header_langinfo_h = yes; then 13918 13919 13920 13921 13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13923 /* end confdefs.h. */ 13924 #include <langinfo.h> 13925 _ACEOF 13926 case "$host_os" in 13927 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13928 *) gl_absname_cpp="$ac_cpp" ;; 13929 esac 13930 13931 case "$host_os" in 13932 mingw*) 13933 gl_dirsep_regex='[/\\]' 13934 ;; 13935 *) 13936 gl_dirsep_regex='\/' 13937 ;; 13938 esac 13939 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13940 gl_header_literal_regex=`echo 'langinfo.h' \ 13941 | sed -e "$gl_make_literal_regex_sed"` 13942 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13943 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13944 s|^/[^/]|//&| 13945 p 13946 q 13947 }' 13948 13949 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13950 sed -n "$gl_absolute_header_sed"` 13951 13952 gl_header=$gl_cv_absolute_langinfo_h 13953 gl_cv_next_langinfo_h='"'$gl_header'"' 13954 else 13955 gl_cv_next_langinfo_h='<'langinfo.h'>' 13956 fi 13957 13958 ;; 13959 esac 13960 fi 13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 13962 printf "%s\n" "$gl_cv_next_langinfo_h" >&6; } 13963 fi 13964 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 13965 13966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13968 gl_next_as_first_directive='<'langinfo.h'>' 13969 else 13970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13971 gl_next_as_first_directive=$gl_cv_next_langinfo_h 13972 fi 13973 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 13974 13975 13976 13977 13978 13979 HAVE_LANGINFO_CODESET=0 13980 HAVE_LANGINFO_T_FMT_AMPM=0 13981 HAVE_LANGINFO_ALTMON=0 13982 HAVE_LANGINFO_ERA=0 13983 HAVE_LANGINFO_YESEXPR=0 13984 13985 if test $ac_cv_header_langinfo_h = yes; then 13986 HAVE_LANGINFO_H=1 13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 13988 printf %s "checking whether langinfo.h defines CODESET... " >&6; } 13989 if test ${gl_cv_header_langinfo_codeset+y} 13990 then : 13991 printf %s "(cached) " >&6 13992 else case e in #( 13993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994 /* end confdefs.h. */ 13995 #include <langinfo.h> 13996 int a = CODESET; 13997 13998 int 13999 main (void) 14000 { 14001 14002 ; 14003 return 0; 14004 } 14005 _ACEOF 14006 if ac_fn_c_try_compile "$LINENO" 14007 then : 14008 gl_cv_header_langinfo_codeset=yes 14009 else case e in #( 14010 e) gl_cv_header_langinfo_codeset=no ;; 14011 esac 14012 fi 14013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14014 ;; 14015 esac 14016 fi 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 14018 printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; } 14019 if test $gl_cv_header_langinfo_codeset = yes; then 14020 HAVE_LANGINFO_CODESET=1 14021 fi 14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 14023 printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 14024 if test ${gl_cv_header_langinfo_t_fmt_ampm+y} 14025 then : 14026 printf %s "(cached) " >&6 14027 else case e in #( 14028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029 /* end confdefs.h. */ 14030 #include <langinfo.h> 14031 int a = T_FMT_AMPM; 14032 14033 int 14034 main (void) 14035 { 14036 14037 ; 14038 return 0; 14039 } 14040 _ACEOF 14041 if ac_fn_c_try_compile "$LINENO" 14042 then : 14043 gl_cv_header_langinfo_t_fmt_ampm=yes 14044 else case e in #( 14045 e) gl_cv_header_langinfo_t_fmt_ampm=no ;; 14046 esac 14047 fi 14048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14049 ;; 14050 esac 14051 fi 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 14053 printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 14054 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 14055 HAVE_LANGINFO_T_FMT_AMPM=1 14056 fi 14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 14058 printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; } 14059 if test ${gl_cv_header_langinfo_altmon+y} 14060 then : 14061 printf %s "(cached) " >&6 14062 else case e in #( 14063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064 /* end confdefs.h. */ 14065 #include <langinfo.h> 14066 int a = ALTMON_1; 14067 14068 int 14069 main (void) 14070 { 14071 14072 ; 14073 return 0; 14074 } 14075 _ACEOF 14076 if ac_fn_c_try_compile "$LINENO" 14077 then : 14078 gl_cv_header_langinfo_altmon=yes 14079 else case e in #( 14080 e) gl_cv_header_langinfo_altmon=no ;; 14081 esac 14082 fi 14083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14084 ;; 14085 esac 14086 fi 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 14088 printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; } 14089 if test $gl_cv_header_langinfo_altmon = yes; then 14090 HAVE_LANGINFO_ALTMON=1 14091 fi 14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 14093 printf %s "checking whether langinfo.h defines ERA... " >&6; } 14094 if test ${gl_cv_header_langinfo_era+y} 14095 then : 14096 printf %s "(cached) " >&6 14097 else case e in #( 14098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099 /* end confdefs.h. */ 14100 #include <langinfo.h> 14101 int a = ERA; 14102 14103 int 14104 main (void) 14105 { 14106 14107 ; 14108 return 0; 14109 } 14110 _ACEOF 14111 if ac_fn_c_try_compile "$LINENO" 14112 then : 14113 gl_cv_header_langinfo_era=yes 14114 else case e in #( 14115 e) gl_cv_header_langinfo_era=no ;; 14116 esac 14117 fi 14118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14119 ;; 14120 esac 14121 fi 14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 14123 printf "%s\n" "$gl_cv_header_langinfo_era" >&6; } 14124 if test $gl_cv_header_langinfo_era = yes; then 14125 HAVE_LANGINFO_ERA=1 14126 fi 14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 14128 printf %s "checking whether langinfo.h defines YESEXPR... " >&6; } 14129 if test ${gl_cv_header_langinfo_yesexpr+y} 14130 then : 14131 printf %s "(cached) " >&6 14132 else case e in #( 14133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134 /* end confdefs.h. */ 14135 #include <langinfo.h> 14136 int a = YESEXPR; 14137 14138 int 14139 main (void) 14140 { 14141 14142 ; 14143 return 0; 14144 } 14145 _ACEOF 14146 if ac_fn_c_try_compile "$LINENO" 14147 then : 14148 gl_cv_header_langinfo_yesexpr=yes 14149 else case e in #( 14150 e) gl_cv_header_langinfo_yesexpr=no ;; 14151 esac 14152 fi 14153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14154 ;; 14155 esac 14156 fi 14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 14158 printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; } 14159 if test $gl_cv_header_langinfo_yesexpr = yes; then 14160 HAVE_LANGINFO_YESEXPR=1 14161 fi 14162 else 14163 HAVE_LANGINFO_H=0 14164 fi 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 GL_GNULIB_NL_LANGINFO=0 14179 14180 14181 14182 14183 HAVE_NEWLOCALE=1; 14184 HAVE_DUPLOCALE=1; 14185 HAVE_FREELOCALE=1; 14186 REPLACE_LOCALECONV=0; 14187 REPLACE_SETLOCALE=0; 14188 REPLACE_NEWLOCALE=0; 14189 REPLACE_DUPLOCALE=0; 14190 REPLACE_FREELOCALE=0; 14191 REPLACE_STRUCT_LCONV=0; 14192 LOCALENAME_ENHANCE_LOCALE_FUNCS=0; 14193 14194 14195 REPLACE_NULL=0; 14196 HAVE_MAX_ALIGN_T=1; 14197 HAVE_WCHAR_T=1; 14198 14199 14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 14201 printf %s "checking for wchar_t... " >&6; } 14202 if test ${gt_cv_c_wchar_t+y} 14203 then : 14204 printf %s "(cached) " >&6 14205 else case e in #( 14206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14207 /* end confdefs.h. */ 14208 #include <stddef.h> 14209 wchar_t foo = (wchar_t)'\0'; 14210 int 14211 main (void) 14212 { 14213 14214 ; 14215 return 0; 14216 } 14217 _ACEOF 14218 if ac_fn_c_try_compile "$LINENO" 14219 then : 14220 gt_cv_c_wchar_t=yes 14221 else case e in #( 14222 e) gt_cv_c_wchar_t=no ;; 14223 esac 14224 fi 14225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14226 esac 14227 fi 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 14229 printf "%s\n" "$gt_cv_c_wchar_t" >&6; } 14230 if test $gt_cv_c_wchar_t = yes; then 14231 14232 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h 14233 14234 fi 14235 14236 14237 14238 14239 14240 14241 14242 GL_GENERATE_STDDEF_H=false 14243 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 14245 printf %s "checking for good max_align_t... " >&6; } 14246 if test ${gl_cv_type_max_align_t+y} 14247 then : 14248 printf %s "(cached) " >&6 14249 else case e in #( 14250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14251 /* end confdefs.h. */ 14252 #include <stddef.h> 14253 unsigned int s = sizeof (max_align_t); 14254 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ 14255 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 14256 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 14257 #endif 14258 typedef struct { char a; max_align_t b; } max_helper; 14259 typedef struct { char a; long b; } long_helper; 14260 typedef struct { char a; double b; } double_helper; 14261 typedef struct { char a; long double b; } long_double_helper; 14262 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1]; 14263 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1]; 14264 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; 14265 14266 int 14267 main (void) 14268 { 14269 14270 ; 14271 return 0; 14272 } 14273 _ACEOF 14274 if ac_fn_c_try_compile "$LINENO" 14275 then : 14276 gl_cv_type_max_align_t=yes 14277 else case e in #( 14278 e) gl_cv_type_max_align_t=no ;; 14279 esac 14280 fi 14281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14282 ;; 14283 esac 14284 fi 14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 14286 printf "%s\n" "$gl_cv_type_max_align_t" >&6; } 14287 if test $gl_cv_type_max_align_t = no; then 14288 HAVE_MAX_ALIGN_T=0 14289 GL_GENERATE_STDDEF_H=true 14290 fi 14291 14292 if test $gt_cv_c_wchar_t = no; then 14293 HAVE_WCHAR_T=0 14294 GL_GENERATE_STDDEF_H=true 14295 fi 14296 14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 14298 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } 14299 if test ${gl_cv_decl_null_works+y} 14300 then : 14301 printf %s "(cached) " >&6 14302 else case e in #( 14303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304 /* end confdefs.h. */ 14305 #include <stddef.h> 14306 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 14307 14308 int 14309 main (void) 14310 { 14311 14312 ; 14313 return 0; 14314 } 14315 _ACEOF 14316 if ac_fn_c_try_compile "$LINENO" 14317 then : 14318 gl_cv_decl_null_works=yes 14319 else case e in #( 14320 e) gl_cv_decl_null_works=no ;; 14321 esac 14322 fi 14323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14324 esac 14325 fi 14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 14327 printf "%s\n" "$gl_cv_decl_null_works" >&6; } 14328 if test $gl_cv_decl_null_works = no; then 14329 REPLACE_NULL=1 14330 GL_GENERATE_STDDEF_H=true 14331 fi 14332 14333 if $GL_GENERATE_STDDEF_H; then 14334 14335 14336 14337 14338 14339 14340 14341 14342 if test $gl_cv_have_include_next = yes; then 14343 gl_cv_next_stddef_h='<'stddef.h'>' 14344 else 14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 14346 printf %s "checking absolute name of <stddef.h>... " >&6; } 14347 if test ${gl_cv_next_stddef_h+y} 14348 then : 14349 printf %s "(cached) " >&6 14350 else case e in #( 14351 e) 14352 14353 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355 /* end confdefs.h. */ 14356 #include <stddef.h> 14357 _ACEOF 14358 case "$host_os" in 14359 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14360 *) gl_absname_cpp="$ac_cpp" ;; 14361 esac 14362 14363 case "$host_os" in 14364 mingw*) 14365 gl_dirsep_regex='[/\\]' 14366 ;; 14367 *) 14368 gl_dirsep_regex='\/' 14369 ;; 14370 esac 14371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14372 gl_header_literal_regex=`echo 'stddef.h' \ 14373 | sed -e "$gl_make_literal_regex_sed"` 14374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14376 s|^/[^/]|//&| 14377 p 14378 q 14379 }' 14380 14381 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14382 sed -n "$gl_absolute_header_sed"` 14383 14384 gl_header=$gl_cv_absolute_stddef_h 14385 gl_cv_next_stddef_h='"'$gl_header'"' 14386 14387 ;; 14388 esac 14389 fi 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 14391 printf "%s\n" "$gl_cv_next_stddef_h" >&6; } 14392 fi 14393 NEXT_STDDEF_H=$gl_cv_next_stddef_h 14394 14395 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14396 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14397 gl_next_as_first_directive='<'stddef.h'>' 14398 else 14399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14400 gl_next_as_first_directive=$gl_cv_next_stddef_h 14401 fi 14402 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 14403 14404 14405 14406 14407 fi 14408 14409 14410 14411 14412 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 14414 printf %s "checking whether locale.h defines locale_t... " >&6; } 14415 if test ${gl_cv_header_locale_has_locale_t+y} 14416 then : 14417 printf %s "(cached) " >&6 14418 else case e in #( 14419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14420 /* end confdefs.h. */ 14421 #include <locale.h> 14422 locale_t x; 14423 int 14424 main (void) 14425 { 14426 14427 ; 14428 return 0; 14429 } 14430 _ACEOF 14431 if ac_fn_c_try_compile "$LINENO" 14432 then : 14433 gl_cv_header_locale_has_locale_t=yes 14434 else case e in #( 14435 e) gl_cv_header_locale_has_locale_t=no ;; 14436 esac 14437 fi 14438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14439 ;; 14440 esac 14441 fi 14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 14443 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; } 14444 14445 14446 if test $ac_cv_header_xlocale_h = yes; then 14447 HAVE_XLOCALE_H=1 14448 if test $gl_cv_header_locale_has_locale_t = yes; then 14449 gl_cv_header_locale_h_needs_xlocale_h=no 14450 else 14451 gl_cv_header_locale_h_needs_xlocale_h=yes 14452 fi 14453 HAVE_LOCALE_T=1 14454 else 14455 HAVE_XLOCALE_H=0 14456 gl_cv_header_locale_h_needs_xlocale_h=no 14457 if test $gl_cv_header_locale_has_locale_t = yes; then 14458 HAVE_LOCALE_T=1 14459 else 14460 HAVE_LOCALE_T=0 14461 fi 14462 fi 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 case "$host_os" in 14476 solaris*) 14477 14478 printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h 14479 14480 ;; 14481 esac 14482 14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 14484 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; } 14485 if test ${gl_cv_header_locale_h_posix2001+y} 14486 then : 14487 printf %s "(cached) " >&6 14488 else case e in #( 14489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14490 /* end confdefs.h. */ 14491 #include <locale.h> 14492 int x = LC_MESSAGES; 14493 int y = sizeof (((struct lconv *) 0)->decimal_point); 14494 int 14495 main (void) 14496 { 14497 14498 ; 14499 return 0; 14500 } 14501 _ACEOF 14502 if ac_fn_c_try_compile "$LINENO" 14503 then : 14504 gl_cv_header_locale_h_posix2001=yes 14505 else case e in #( 14506 e) gl_cv_header_locale_h_posix2001=no ;; 14507 esac 14508 fi 14509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14510 esac 14511 fi 14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 14513 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; } 14514 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 14516 printf %s "checking whether struct lconv is properly defined... " >&6; } 14517 if test ${gl_cv_sys_struct_lconv_ok+y} 14518 then : 14519 printf %s "(cached) " >&6 14520 else case e in #( 14521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522 /* end confdefs.h. */ 14523 #include <locale.h> 14524 struct lconv l; 14525 int x = sizeof (l.decimal_point); 14526 int y = sizeof (l.int_p_cs_precedes); 14527 int 14528 main (void) 14529 { 14530 14531 ; 14532 return 0; 14533 } 14534 _ACEOF 14535 if ac_fn_c_try_compile "$LINENO" 14536 then : 14537 gl_cv_sys_struct_lconv_ok=yes 14538 else case e in #( 14539 e) gl_cv_sys_struct_lconv_ok=no ;; 14540 esac 14541 fi 14542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14543 ;; 14544 esac 14545 fi 14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 14547 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; } 14548 if test $gl_cv_sys_struct_lconv_ok = no; then 14549 case "$host_os" in 14550 mingw*) 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552 /* end confdefs.h. */ 14553 14554 #ifdef _MSC_VER 14555 Special 14556 #endif 14557 14558 _ACEOF 14559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14560 $EGREP_TRADITIONAL "Special" >/dev/null 2>&1 14561 then : 14562 14563 else case e in #( 14564 e) REPLACE_STRUCT_LCONV=1 ;; 14565 esac 14566 fi 14567 rm -rf conftest* 14568 14569 ;; 14570 *) REPLACE_STRUCT_LCONV=1 ;; 14571 esac 14572 fi 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 if test $gl_cv_have_include_next = yes; then 14583 gl_cv_next_locale_h='<'locale.h'>' 14584 else 14585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 14586 printf %s "checking absolute name of <locale.h>... " >&6; } 14587 if test ${gl_cv_next_locale_h+y} 14588 then : 14589 printf %s "(cached) " >&6 14590 else case e in #( 14591 e) 14592 14593 14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595 /* end confdefs.h. */ 14596 #include <locale.h> 14597 _ACEOF 14598 case "$host_os" in 14599 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14600 *) gl_absname_cpp="$ac_cpp" ;; 14601 esac 14602 14603 case "$host_os" in 14604 mingw*) 14605 gl_dirsep_regex='[/\\]' 14606 ;; 14607 *) 14608 gl_dirsep_regex='\/' 14609 ;; 14610 esac 14611 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14612 gl_header_literal_regex=`echo 'locale.h' \ 14613 | sed -e "$gl_make_literal_regex_sed"` 14614 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14615 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14616 s|^/[^/]|//&| 14617 p 14618 q 14619 }' 14620 14621 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14622 sed -n "$gl_absolute_header_sed"` 14623 14624 gl_header=$gl_cv_absolute_locale_h 14625 gl_cv_next_locale_h='"'$gl_header'"' 14626 14627 ;; 14628 esac 14629 fi 14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 14631 printf "%s\n" "$gl_cv_next_locale_h" >&6; } 14632 fi 14633 NEXT_LOCALE_H=$gl_cv_next_locale_h 14634 14635 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14637 gl_next_as_first_directive='<'locale.h'>' 14638 else 14639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14640 gl_next_as_first_directive=$gl_cv_next_locale_h 14641 fi 14642 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 GL_GNULIB_LOCALECONV=0 14655 14656 14657 14658 GL_GNULIB_SETLOCALE=0 14659 14660 14661 14662 GL_GNULIB_SETLOCALE_NULL=0 14663 14664 14665 14666 GL_GNULIB_DUPLOCALE=0 14667 14668 14669 14670 GL_GNULIB_LOCALENAME=0 14671 14672 14673 14674 14675 14676 gl_threads_api=none 14677 LIBTHREAD= 14678 LTLIBTHREAD= 14679 LIBMULTITHREAD= 14680 LTLIBMULTITHREAD= 14681 if test "$gl_use_threads" != no; then 14682 14683 14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 14685 printf %s "checking whether imported symbols can be declared weak... " >&6; } 14686 if test ${gl_cv_have_weak+y} 14687 then : 14688 printf %s "(cached) " >&6 14689 else case e in #( 14690 e) case "$host_os" in 14691 cygwin*) 14692 gl_cv_have_weak="guessing no" 14693 ;; 14694 *) 14695 gl_cv_have_weak=no 14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14697 /* end confdefs.h. */ 14698 extern void xyzzy (); 14699 #pragma weak xyzzy 14700 int 14701 main (void) 14702 { 14703 xyzzy(); 14704 ; 14705 return 0; 14706 } 14707 _ACEOF 14708 if ac_fn_c_try_link "$LINENO" 14709 then : 14710 gl_cv_have_weak=maybe 14711 fi 14712 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14713 conftest$ac_exeext conftest.$ac_ext 14714 if test $gl_cv_have_weak = maybe; then 14715 if test "$cross_compiling" = yes 14716 then : 14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14718 /* end confdefs.h. */ 14719 #ifdef __ELF__ 14720 Extensible Linking Format 14721 #endif 14722 14723 _ACEOF 14724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14725 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1 14726 then : 14727 gl_cv_have_weak="guessing yes" 14728 else case e in #( 14729 e) gl_cv_have_weak="guessing no" ;; 14730 esac 14731 fi 14732 rm -rf conftest* 14733 14734 14735 else case e in #( 14736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737 /* end confdefs.h. */ 14738 14739 #include <stdio.h> 14740 #pragma weak fputs 14741 int main () 14742 { 14743 return (fputs == NULL); 14744 } 14745 _ACEOF 14746 if ac_fn_c_try_run "$LINENO" 14747 then : 14748 gl_cv_have_weak=yes 14749 else case e in #( 14750 e) gl_cv_have_weak=no ;; 14751 esac 14752 fi 14753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14754 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14755 esac 14756 fi 14757 14758 fi 14759 ;; 14760 esac 14761 case " $LDFLAGS " in 14762 *" -static "*) gl_cv_have_weak=no ;; 14763 esac 14764 case "$gl_cv_have_weak" in 14765 *yes) 14766 case "$host_os" in 14767 freebsd* | dragonfly* | midnightbsd*) 14768 : > conftest1.c 14769 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 14770 cat <<EOF > conftest2.c 14771 #include <pthread.h> 14772 #pragma weak pthread_mutexattr_gettype 14773 int main () 14774 { 14775 return (pthread_mutexattr_gettype != NULL); 14776 } 14777 EOF 14778 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 14779 || gl_cv_have_weak=no 14780 rm -f conftest1.c libempty.so conftest2.c conftest 14781 ;; 14782 esac 14783 ;; 14784 esac 14785 ;; 14786 esac 14787 fi 14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 14789 printf "%s\n" "$gl_cv_have_weak" >&6; } 14790 case "$gl_cv_have_weak" in 14791 *yes) 14792 14793 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 14794 14795 ;; 14796 esac 14797 14798 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 14799 14800 : 14801 fi 14802 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then 14803 14804 gl_have_isoc_threads="$ac_cv_header_threads_h" 14805 fi 14806 if test "$gl_use_threads" = yes \ 14807 || test "$gl_use_threads" = posix \ 14808 || test "$gl_use_threads" = isoc+posix; then 14809 14810 14811 if test -z "$gl_pthreadlib_body_done"; then 14812 gl_pthread_api=no 14813 LIBPTHREAD= 14814 LIBPMULTITHREAD= 14815 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 14816 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 14817 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 14818 if test "x$ac_cv_header_pthread_h" = xyes 14819 then : 14820 gl_have_pthread_h=yes 14821 else case e in #( 14822 e) gl_have_pthread_h=no ;; 14823 esac 14824 fi 14825 14826 if test "$gl_have_pthread_h" = yes; then 14827 # Other possible tests: 14828 # -lpthreads (FSU threads, PCthreads) 14829 # -lgthreads 14830 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 14831 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 14832 # the second one only in libpthread, and lock.c needs it. 14833 # 14834 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 14835 # needs -pthread for some reason. See: 14836 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 14837 save_LIBS=$LIBS 14838 for gl_pthread in '' '-pthread'; do 14839 LIBS="$LIBS $gl_pthread" 14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14841 /* end confdefs.h. */ 14842 #include <pthread.h> 14843 pthread_mutex_t m; 14844 pthread_mutexattr_t ma; 14845 14846 int 14847 main (void) 14848 { 14849 pthread_mutex_lock (&m); 14850 pthread_mutexattr_init (&ma); 14851 ; 14852 return 0; 14853 } 14854 _ACEOF 14855 if ac_fn_c_try_link "$LINENO" 14856 then : 14857 gl_pthread_api=yes 14858 LIBPTHREAD=$gl_pthread 14859 LIBPMULTITHREAD=$gl_pthread 14860 fi 14861 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14862 conftest$ac_exeext conftest.$ac_ext 14863 LIBS=$save_LIBS 14864 test $gl_pthread_api = yes && break 14865 done 14866 echo "$as_me:14866: gl_pthread_api=$gl_pthread_api" >&5 14867 echo "$as_me:14867: LIBPTHREAD=$LIBPTHREAD" >&5 14868 14869 gl_pthread_in_glibc=no 14870 # On Linux with glibc >= 2.34, libc contains the fully functional 14871 # pthread functions. 14872 case "$host_os" in 14873 linux*) 14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14875 /* end confdefs.h. */ 14876 #include <features.h> 14877 #ifdef __GNU_LIBRARY__ 14878 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) 14879 Lucky user 14880 #endif 14881 #endif 14882 14883 _ACEOF 14884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14885 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1 14886 then : 14887 gl_pthread_in_glibc=yes 14888 fi 14889 rm -rf conftest* 14890 14891 ;; 14892 esac 14893 echo "$as_me:14893: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 14894 14895 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 14896 # since it is defined as a macro on OSF/1.) 14897 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 14898 # The program links fine without libpthread. But it may actually 14899 # need to link with libpthread in order to create multiple threads. 14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 14901 printf %s "checking for pthread_kill in -lpthread... " >&6; } 14902 if test ${ac_cv_lib_pthread_pthread_kill+y} 14903 then : 14904 printf %s "(cached) " >&6 14905 else case e in #( 14906 e) ac_check_lib_save_LIBS=$LIBS 14907 LIBS="-lpthread $LIBS" 14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14909 /* end confdefs.h. */ 14910 14911 /* Override any GCC internal prototype to avoid an error. 14912 Use char because int might match the return type of a GCC 14913 builtin and then its argument prototype would still apply. 14914 The 'extern "C"' is for builds by C++ compilers; 14915 although this is not generally supported in C code, supporting it here 14916 has little cost and some practical benefit (sr 110532). */ 14917 #ifdef __cplusplus 14918 extern "C" 14919 #endif 14920 char pthread_kill (void); 14921 int 14922 main (void) 14923 { 14924 return pthread_kill (); 14925 ; 14926 return 0; 14927 } 14928 _ACEOF 14929 if ac_fn_c_try_link "$LINENO" 14930 then : 14931 ac_cv_lib_pthread_pthread_kill=yes 14932 else case e in #( 14933 e) ac_cv_lib_pthread_pthread_kill=no ;; 14934 esac 14935 fi 14936 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14937 conftest$ac_exeext conftest.$ac_ext 14938 LIBS=$ac_check_lib_save_LIBS ;; 14939 esac 14940 fi 14941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 14942 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 14943 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 14944 then : 14945 if test $gl_pthread_in_glibc = yes; then 14946 LIBPMULTITHREAD= 14947 else 14948 LIBPMULTITHREAD=-lpthread 14949 # On Solaris and HP-UX, most pthread functions exist also in libc. 14950 # Therefore pthread_in_use() needs to actually try to create a 14951 # thread: pthread_create from libc will fail, whereas 14952 # pthread_create will actually create a thread. 14953 # On Solaris 10 or newer, this test is no longer needed, because 14954 # libc contains the fully functional pthread functions. 14955 case "$host_os" in 14956 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 14957 14958 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 14959 14960 esac 14961 fi 14962 14963 fi 14964 14965 elif test $gl_pthread_api != yes; then 14966 # Some library is needed. Try libpthread and libc_r. 14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 14968 printf %s "checking for pthread_kill in -lpthread... " >&6; } 14969 if test ${ac_cv_lib_pthread_pthread_kill+y} 14970 then : 14971 printf %s "(cached) " >&6 14972 else case e in #( 14973 e) ac_check_lib_save_LIBS=$LIBS 14974 LIBS="-lpthread $LIBS" 14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976 /* end confdefs.h. */ 14977 14978 /* Override any GCC internal prototype to avoid an error. 14979 Use char because int might match the return type of a GCC 14980 builtin and then its argument prototype would still apply. 14981 The 'extern "C"' is for builds by C++ compilers; 14982 although this is not generally supported in C code, supporting it here 14983 has little cost and some practical benefit (sr 110532). */ 14984 #ifdef __cplusplus 14985 extern "C" 14986 #endif 14987 char pthread_kill (void); 14988 int 14989 main (void) 14990 { 14991 return pthread_kill (); 14992 ; 14993 return 0; 14994 } 14995 _ACEOF 14996 if ac_fn_c_try_link "$LINENO" 14997 then : 14998 ac_cv_lib_pthread_pthread_kill=yes 14999 else case e in #( 15000 e) ac_cv_lib_pthread_pthread_kill=no ;; 15001 esac 15002 fi 15003 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15004 conftest$ac_exeext conftest.$ac_ext 15005 LIBS=$ac_check_lib_save_LIBS ;; 15006 esac 15007 fi 15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 15009 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 15010 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 15011 then : 15012 gl_pthread_api=yes 15013 LIBPTHREAD=-lpthread 15014 LIBPMULTITHREAD=-lpthread 15015 fi 15016 15017 if test $gl_pthread_api != yes; then 15018 # For FreeBSD 4. 15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 15020 printf %s "checking for pthread_kill in -lc_r... " >&6; } 15021 if test ${ac_cv_lib_c_r_pthread_kill+y} 15022 then : 15023 printf %s "(cached) " >&6 15024 else case e in #( 15025 e) ac_check_lib_save_LIBS=$LIBS 15026 LIBS="-lc_r $LIBS" 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028 /* end confdefs.h. */ 15029 15030 /* Override any GCC internal prototype to avoid an error. 15031 Use char because int might match the return type of a GCC 15032 builtin and then its argument prototype would still apply. 15033 The 'extern "C"' is for builds by C++ compilers; 15034 although this is not generally supported in C code, supporting it here 15035 has little cost and some practical benefit (sr 110532). */ 15036 #ifdef __cplusplus 15037 extern "C" 15038 #endif 15039 char pthread_kill (void); 15040 int 15041 main (void) 15042 { 15043 return pthread_kill (); 15044 ; 15045 return 0; 15046 } 15047 _ACEOF 15048 if ac_fn_c_try_link "$LINENO" 15049 then : 15050 ac_cv_lib_c_r_pthread_kill=yes 15051 else case e in #( 15052 e) ac_cv_lib_c_r_pthread_kill=no ;; 15053 esac 15054 fi 15055 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15056 conftest$ac_exeext conftest.$ac_ext 15057 LIBS=$ac_check_lib_save_LIBS ;; 15058 esac 15059 fi 15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 15061 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 15062 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 15063 then : 15064 gl_pthread_api=yes 15065 LIBPTHREAD=-lc_r 15066 LIBPMULTITHREAD=-lc_r 15067 fi 15068 15069 fi 15070 fi 15071 echo "$as_me:15071: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 15072 fi 15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 15074 printf %s "checking whether POSIX threads API is available... " >&6; } 15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 15076 printf "%s\n" "$gl_pthread_api" >&6; } 15077 15078 15079 if test $gl_pthread_api = yes; then 15080 15081 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 15082 15083 fi 15084 15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15086 /* end confdefs.h. */ 15087 #include <sched.h> 15088 int 15089 main (void) 15090 { 15091 sched_yield (); 15092 ; 15093 return 0; 15094 } 15095 _ACEOF 15096 if ac_fn_c_try_link "$LINENO" 15097 then : 15098 LIB_SCHED_YIELD= 15099 15100 else case e in #( 15101 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 15102 printf %s "checking for sched_yield in -lrt... " >&6; } 15103 if test ${ac_cv_lib_rt_sched_yield+y} 15104 then : 15105 printf %s "(cached) " >&6 15106 else case e in #( 15107 e) ac_check_lib_save_LIBS=$LIBS 15108 LIBS="-lrt $LIBS" 15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15110 /* end confdefs.h. */ 15111 15112 /* Override any GCC internal prototype to avoid an error. 15113 Use char because int might match the return type of a GCC 15114 builtin and then its argument prototype would still apply. 15115 The 'extern "C"' is for builds by C++ compilers; 15116 although this is not generally supported in C code, supporting it here 15117 has little cost and some practical benefit (sr 110532). */ 15118 #ifdef __cplusplus 15119 extern "C" 15120 #endif 15121 char sched_yield (void); 15122 int 15123 main (void) 15124 { 15125 return sched_yield (); 15126 ; 15127 return 0; 15128 } 15129 _ACEOF 15130 if ac_fn_c_try_link "$LINENO" 15131 then : 15132 ac_cv_lib_rt_sched_yield=yes 15133 else case e in #( 15134 e) ac_cv_lib_rt_sched_yield=no ;; 15135 esac 15136 fi 15137 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15138 conftest$ac_exeext conftest.$ac_ext 15139 LIBS=$ac_check_lib_save_LIBS ;; 15140 esac 15141 fi 15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 15143 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 15144 if test "x$ac_cv_lib_rt_sched_yield" = xyes 15145 then : 15146 LIB_SCHED_YIELD=-lrt 15147 else case e in #( 15148 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 15149 printf %s "checking for sched_yield in -lposix4... " >&6; } 15150 if test ${ac_cv_lib_posix4_sched_yield+y} 15151 then : 15152 printf %s "(cached) " >&6 15153 else case e in #( 15154 e) ac_check_lib_save_LIBS=$LIBS 15155 LIBS="-lposix4 $LIBS" 15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15157 /* end confdefs.h. */ 15158 15159 /* Override any GCC internal prototype to avoid an error. 15160 Use char because int might match the return type of a GCC 15161 builtin and then its argument prototype would still apply. 15162 The 'extern "C"' is for builds by C++ compilers; 15163 although this is not generally supported in C code, supporting it here 15164 has little cost and some practical benefit (sr 110532). */ 15165 #ifdef __cplusplus 15166 extern "C" 15167 #endif 15168 char sched_yield (void); 15169 int 15170 main (void) 15171 { 15172 return sched_yield (); 15173 ; 15174 return 0; 15175 } 15176 _ACEOF 15177 if ac_fn_c_try_link "$LINENO" 15178 then : 15179 ac_cv_lib_posix4_sched_yield=yes 15180 else case e in #( 15181 e) ac_cv_lib_posix4_sched_yield=no ;; 15182 esac 15183 fi 15184 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15185 conftest$ac_exeext conftest.$ac_ext 15186 LIBS=$ac_check_lib_save_LIBS ;; 15187 esac 15188 fi 15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 15190 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 15191 if test "x$ac_cv_lib_posix4_sched_yield" = xyes 15192 then : 15193 LIB_SCHED_YIELD=-lposix4 15194 fi 15195 ;; 15196 esac 15197 fi 15198 15199 ;; 15200 esac 15201 fi 15202 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15203 conftest$ac_exeext conftest.$ac_ext 15204 15205 15206 gl_pthreadlib_body_done=done 15207 fi 15208 15209 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD 15210 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD 15211 if test $gl_pthread_api = yes; then 15212 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then 15213 gl_threads_api='isoc+posix' 15214 15215 printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h 15216 15217 LIBTHREAD= LTLIBTHREAD= 15218 else 15219 gl_threads_api=posix 15220 15221 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h 15222 15223 if test -z "$LIBMULTITHREAD" && test -z "$LTLIBMULTITHREAD"; then 15224 15225 printf "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h 15226 15227 else 15228 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 15229 15230 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 15231 15232 LIBTHREAD= LTLIBTHREAD= 15233 else 15234 case "$host_os" in 15235 freebsd* | dragonfly* | midnightbsd*) 15236 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then 15237 15238 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 15239 15240 fi 15241 ;; 15242 esac 15243 fi 15244 fi 15245 fi 15246 fi 15247 fi 15248 if test $gl_threads_api = none; then 15249 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then 15250 15251 15252 15253 if test -z "$gl_stdthreadlib_body_done"; then 15254 15255 15256 case "$host_os" in 15257 mingw*) 15258 LIBSTDTHREAD= 15259 ;; 15260 *) 15261 15262 15263 if test -z "$gl_pthreadlib_body_done"; then 15264 gl_pthread_api=no 15265 LIBPTHREAD= 15266 LIBPMULTITHREAD= 15267 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 15268 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 15269 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 15270 if test "x$ac_cv_header_pthread_h" = xyes 15271 then : 15272 gl_have_pthread_h=yes 15273 else case e in #( 15274 e) gl_have_pthread_h=no ;; 15275 esac 15276 fi 15277 15278 if test "$gl_have_pthread_h" = yes; then 15279 # Other possible tests: 15280 # -lpthreads (FSU threads, PCthreads) 15281 # -lgthreads 15282 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 15283 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 15284 # the second one only in libpthread, and lock.c needs it. 15285 # 15286 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 15287 # needs -pthread for some reason. See: 15288 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 15289 save_LIBS=$LIBS 15290 for gl_pthread in '' '-pthread'; do 15291 LIBS="$LIBS $gl_pthread" 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293 /* end confdefs.h. */ 15294 #include <pthread.h> 15295 pthread_mutex_t m; 15296 pthread_mutexattr_t ma; 15297 15298 int 15299 main (void) 15300 { 15301 pthread_mutex_lock (&m); 15302 pthread_mutexattr_init (&ma); 15303 ; 15304 return 0; 15305 } 15306 _ACEOF 15307 if ac_fn_c_try_link "$LINENO" 15308 then : 15309 gl_pthread_api=yes 15310 LIBPTHREAD=$gl_pthread 15311 LIBPMULTITHREAD=$gl_pthread 15312 fi 15313 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15314 conftest$ac_exeext conftest.$ac_ext 15315 LIBS=$save_LIBS 15316 test $gl_pthread_api = yes && break 15317 done 15318 echo "$as_me:15318: gl_pthread_api=$gl_pthread_api" >&5 15319 echo "$as_me:15319: LIBPTHREAD=$LIBPTHREAD" >&5 15320 15321 gl_pthread_in_glibc=no 15322 # On Linux with glibc >= 2.34, libc contains the fully functional 15323 # pthread functions. 15324 case "$host_os" in 15325 linux*) 15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15327 /* end confdefs.h. */ 15328 #include <features.h> 15329 #ifdef __GNU_LIBRARY__ 15330 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) 15331 Lucky user 15332 #endif 15333 #endif 15334 15335 _ACEOF 15336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15337 $EGREP_TRADITIONAL "Lucky user" >/dev/null 2>&1 15338 then : 15339 gl_pthread_in_glibc=yes 15340 fi 15341 rm -rf conftest* 15342 15343 ;; 15344 esac 15345 echo "$as_me:15345: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 15346 15347 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 15348 # since it is defined as a macro on OSF/1.) 15349 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 15350 # The program links fine without libpthread. But it may actually 15351 # need to link with libpthread in order to create multiple threads. 15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 15353 printf %s "checking for pthread_kill in -lpthread... " >&6; } 15354 if test ${ac_cv_lib_pthread_pthread_kill+y} 15355 then : 15356 printf %s "(cached) " >&6 15357 else case e in #( 15358 e) ac_check_lib_save_LIBS=$LIBS 15359 LIBS="-lpthread $LIBS" 15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15361 /* end confdefs.h. */ 15362 15363 /* Override any GCC internal prototype to avoid an error. 15364 Use char because int might match the return type of a GCC 15365 builtin and then its argument prototype would still apply. 15366 The 'extern "C"' is for builds by C++ compilers; 15367 although this is not generally supported in C code, supporting it here 15368 has little cost and some practical benefit (sr 110532). */ 15369 #ifdef __cplusplus 15370 extern "C" 15371 #endif 15372 char pthread_kill (void); 15373 int 15374 main (void) 15375 { 15376 return pthread_kill (); 15377 ; 15378 return 0; 15379 } 15380 _ACEOF 15381 if ac_fn_c_try_link "$LINENO" 15382 then : 15383 ac_cv_lib_pthread_pthread_kill=yes 15384 else case e in #( 15385 e) ac_cv_lib_pthread_pthread_kill=no ;; 15386 esac 15387 fi 15388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15389 conftest$ac_exeext conftest.$ac_ext 15390 LIBS=$ac_check_lib_save_LIBS ;; 15391 esac 15392 fi 15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 15394 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 15395 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 15396 then : 15397 if test $gl_pthread_in_glibc = yes; then 15398 LIBPMULTITHREAD= 15399 else 15400 LIBPMULTITHREAD=-lpthread 15401 # On Solaris and HP-UX, most pthread functions exist also in libc. 15402 # Therefore pthread_in_use() needs to actually try to create a 15403 # thread: pthread_create from libc will fail, whereas 15404 # pthread_create will actually create a thread. 15405 # On Solaris 10 or newer, this test is no longer needed, because 15406 # libc contains the fully functional pthread functions. 15407 case "$host_os" in 15408 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 15409 15410 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 15411 15412 esac 15413 fi 15414 15415 fi 15416 15417 elif test $gl_pthread_api != yes; then 15418 # Some library is needed. Try libpthread and libc_r. 15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 15420 printf %s "checking for pthread_kill in -lpthread... " >&6; } 15421 if test ${ac_cv_lib_pthread_pthread_kill+y} 15422 then : 15423 printf %s "(cached) " >&6 15424 else case e in #( 15425 e) ac_check_lib_save_LIBS=$LIBS 15426 LIBS="-lpthread $LIBS" 15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15428 /* end confdefs.h. */ 15429 15430 /* Override any GCC internal prototype to avoid an error. 15431 Use char because int might match the return type of a GCC 15432 builtin and then its argument prototype would still apply. 15433 The 'extern "C"' is for builds by C++ compilers; 15434 although this is not generally supported in C code, supporting it here 15435 has little cost and some practical benefit (sr 110532). */ 15436 #ifdef __cplusplus 15437 extern "C" 15438 #endif 15439 char pthread_kill (void); 15440 int 15441 main (void) 15442 { 15443 return pthread_kill (); 15444 ; 15445 return 0; 15446 } 15447 _ACEOF 15448 if ac_fn_c_try_link "$LINENO" 15449 then : 15450 ac_cv_lib_pthread_pthread_kill=yes 15451 else case e in #( 15452 e) ac_cv_lib_pthread_pthread_kill=no ;; 15453 esac 15454 fi 15455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15456 conftest$ac_exeext conftest.$ac_ext 15457 LIBS=$ac_check_lib_save_LIBS ;; 15458 esac 15459 fi 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 15461 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 15462 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 15463 then : 15464 gl_pthread_api=yes 15465 LIBPTHREAD=-lpthread 15466 LIBPMULTITHREAD=-lpthread 15467 fi 15468 15469 if test $gl_pthread_api != yes; then 15470 # For FreeBSD 4. 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 15472 printf %s "checking for pthread_kill in -lc_r... " >&6; } 15473 if test ${ac_cv_lib_c_r_pthread_kill+y} 15474 then : 15475 printf %s "(cached) " >&6 15476 else case e in #( 15477 e) ac_check_lib_save_LIBS=$LIBS 15478 LIBS="-lc_r $LIBS" 15479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15480 /* end confdefs.h. */ 15481 15482 /* Override any GCC internal prototype to avoid an error. 15483 Use char because int might match the return type of a GCC 15484 builtin and then its argument prototype would still apply. 15485 The 'extern "C"' is for builds by C++ compilers; 15486 although this is not generally supported in C code, supporting it here 15487 has little cost and some practical benefit (sr 110532). */ 15488 #ifdef __cplusplus 15489 extern "C" 15490 #endif 15491 char pthread_kill (void); 15492 int 15493 main (void) 15494 { 15495 return pthread_kill (); 15496 ; 15497 return 0; 15498 } 15499 _ACEOF 15500 if ac_fn_c_try_link "$LINENO" 15501 then : 15502 ac_cv_lib_c_r_pthread_kill=yes 15503 else case e in #( 15504 e) ac_cv_lib_c_r_pthread_kill=no ;; 15505 esac 15506 fi 15507 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15508 conftest$ac_exeext conftest.$ac_ext 15509 LIBS=$ac_check_lib_save_LIBS ;; 15510 esac 15511 fi 15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 15513 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 15514 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 15515 then : 15516 gl_pthread_api=yes 15517 LIBPTHREAD=-lc_r 15518 LIBPMULTITHREAD=-lc_r 15519 fi 15520 15521 fi 15522 fi 15523 echo "$as_me:15523: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 15524 fi 15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 15526 printf %s "checking whether POSIX threads API is available... " >&6; } 15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 15528 printf "%s\n" "$gl_pthread_api" >&6; } 15529 15530 15531 if test $gl_pthread_api = yes; then 15532 15533 printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 15534 15535 fi 15536 15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15538 /* end confdefs.h. */ 15539 #include <sched.h> 15540 int 15541 main (void) 15542 { 15543 sched_yield (); 15544 ; 15545 return 0; 15546 } 15547 _ACEOF 15548 if ac_fn_c_try_link "$LINENO" 15549 then : 15550 LIB_SCHED_YIELD= 15551 15552 else case e in #( 15553 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 15554 printf %s "checking for sched_yield in -lrt... " >&6; } 15555 if test ${ac_cv_lib_rt_sched_yield+y} 15556 then : 15557 printf %s "(cached) " >&6 15558 else case e in #( 15559 e) ac_check_lib_save_LIBS=$LIBS 15560 LIBS="-lrt $LIBS" 15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15562 /* end confdefs.h. */ 15563 15564 /* Override any GCC internal prototype to avoid an error. 15565 Use char because int might match the return type of a GCC 15566 builtin and then its argument prototype would still apply. 15567 The 'extern "C"' is for builds by C++ compilers; 15568 although this is not generally supported in C code, supporting it here 15569 has little cost and some practical benefit (sr 110532). */ 15570 #ifdef __cplusplus 15571 extern "C" 15572 #endif 15573 char sched_yield (void); 15574 int 15575 main (void) 15576 { 15577 return sched_yield (); 15578 ; 15579 return 0; 15580 } 15581 _ACEOF 15582 if ac_fn_c_try_link "$LINENO" 15583 then : 15584 ac_cv_lib_rt_sched_yield=yes 15585 else case e in #( 15586 e) ac_cv_lib_rt_sched_yield=no ;; 15587 esac 15588 fi 15589 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15590 conftest$ac_exeext conftest.$ac_ext 15591 LIBS=$ac_check_lib_save_LIBS ;; 15592 esac 15593 fi 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 15595 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 15596 if test "x$ac_cv_lib_rt_sched_yield" = xyes 15597 then : 15598 LIB_SCHED_YIELD=-lrt 15599 else case e in #( 15600 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 15601 printf %s "checking for sched_yield in -lposix4... " >&6; } 15602 if test ${ac_cv_lib_posix4_sched_yield+y} 15603 then : 15604 printf %s "(cached) " >&6 15605 else case e in #( 15606 e) ac_check_lib_save_LIBS=$LIBS 15607 LIBS="-lposix4 $LIBS" 15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15609 /* end confdefs.h. */ 15610 15611 /* Override any GCC internal prototype to avoid an error. 15612 Use char because int might match the return type of a GCC 15613 builtin and then its argument prototype would still apply. 15614 The 'extern "C"' is for builds by C++ compilers; 15615 although this is not generally supported in C code, supporting it here 15616 has little cost and some practical benefit (sr 110532). */ 15617 #ifdef __cplusplus 15618 extern "C" 15619 #endif 15620 char sched_yield (void); 15621 int 15622 main (void) 15623 { 15624 return sched_yield (); 15625 ; 15626 return 0; 15627 } 15628 _ACEOF 15629 if ac_fn_c_try_link "$LINENO" 15630 then : 15631 ac_cv_lib_posix4_sched_yield=yes 15632 else case e in #( 15633 e) ac_cv_lib_posix4_sched_yield=no ;; 15634 esac 15635 fi 15636 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15637 conftest$ac_exeext conftest.$ac_ext 15638 LIBS=$ac_check_lib_save_LIBS ;; 15639 esac 15640 fi 15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 15642 printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 15643 if test "x$ac_cv_lib_posix4_sched_yield" = xyes 15644 then : 15645 LIB_SCHED_YIELD=-lposix4 15646 fi 15647 ;; 15648 esac 15649 fi 15650 15651 ;; 15652 esac 15653 fi 15654 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15655 conftest$ac_exeext conftest.$ac_ext 15656 15657 15658 gl_pthreadlib_body_done=done 15659 fi 15660 15661 if test $ac_cv_header_threads_h = yes; then 15662 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" 15663 if test "x$ac_cv_func_thrd_create" = xyes 15664 then : 15665 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h 15666 15667 fi 15668 15669 if test $ac_cv_func_thrd_create = yes; then 15670 LIBSTDTHREAD= 15671 else 15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 15673 printf %s "checking for thrd_create in -lstdthreads... " >&6; } 15674 if test ${ac_cv_lib_stdthreads_thrd_create+y} 15675 then : 15676 printf %s "(cached) " >&6 15677 else case e in #( 15678 e) ac_check_lib_save_LIBS=$LIBS 15679 LIBS="-lstdthreads $LIBS" 15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15681 /* end confdefs.h. */ 15682 15683 /* Override any GCC internal prototype to avoid an error. 15684 Use char because int might match the return type of a GCC 15685 builtin and then its argument prototype would still apply. 15686 The 'extern "C"' is for builds by C++ compilers; 15687 although this is not generally supported in C code, supporting it here 15688 has little cost and some practical benefit (sr 110532). */ 15689 #ifdef __cplusplus 15690 extern "C" 15691 #endif 15692 char thrd_create (void); 15693 int 15694 main (void) 15695 { 15696 return thrd_create (); 15697 ; 15698 return 0; 15699 } 15700 _ACEOF 15701 if ac_fn_c_try_link "$LINENO" 15702 then : 15703 ac_cv_lib_stdthreads_thrd_create=yes 15704 else case e in #( 15705 e) ac_cv_lib_stdthreads_thrd_create=no ;; 15706 esac 15707 fi 15708 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15709 conftest$ac_exeext conftest.$ac_ext 15710 LIBS=$ac_check_lib_save_LIBS ;; 15711 esac 15712 fi 15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 15714 printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } 15715 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes 15716 then : 15717 15718 LIBSTDTHREAD='-lstdthreads -lpthread' 15719 15720 else case e in #( 15721 e) 15722 LIBSTDTHREAD="$LIBPMULTITHREAD" 15723 ;; 15724 esac 15725 fi 15726 15727 fi 15728 else 15729 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" 15730 fi 15731 ;; 15732 esac 15733 15734 15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 15736 printf %s "checking whether ISO C threads API is available... " >&6; } 15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 15738 printf "%s\n" "$ac_cv_header_threads_h" >&6; } 15739 gl_stdthreadlib_body_done=done 15740 fi 15741 15742 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD 15743 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD 15744 gl_threads_api=isoc 15745 15746 printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h 15747 15748 fi 15749 fi 15750 if test $gl_threads_api = none; then 15751 case "$gl_use_threads" in 15752 yes | windows | win32) # The 'win32' is for backward compatibility. 15753 if { case "$host_os" in 15754 mingw*) true;; 15755 *) false;; 15756 esac 15757 }; then 15758 gl_threads_api=windows 15759 15760 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h 15761 15762 fi 15763 ;; 15764 esac 15765 fi 15766 fi 15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 15768 printf %s "checking for multithread API to use... " >&6; } 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 15770 printf "%s\n" "$gl_threads_api" >&6; } 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 15781 printf %s "checking for a sed that does not truncate output... " >&6; } 15782 if test ${ac_cv_path_SED+y} 15783 then : 15784 printf %s "(cached) " >&6 15785 else case e in #( 15786 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 15787 for ac_i in 1 2 3 4 5 6 7; do 15788 ac_script="$ac_script$as_nl$ac_script" 15789 done 15790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 15791 { ac_script=; unset ac_script;} 15792 if test -z "$SED"; then 15793 ac_path_SED_found=false 15794 # Loop through the user's path and test for each of PROGNAME-LIST 15795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15796 for as_dir in $PATH 15797 do 15798 IFS=$as_save_IFS 15799 case $as_dir in #((( 15800 '') as_dir=./ ;; 15801 */) ;; 15802 *) as_dir=$as_dir/ ;; 15803 esac 15804 for ac_prog in sed gsed 15805 do 15806 for ac_exec_ext in '' $ac_executable_extensions; do 15807 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 15808 as_fn_executable_p "$ac_path_SED" || continue 15809 # Check for GNU ac_path_SED and select it if it is found. 15810 # Check for GNU $ac_path_SED 15811 case `"$ac_path_SED" --version 2>&1` in 15812 *GNU*) 15813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 15814 *) 15815 ac_count=0 15816 printf %s 0123456789 >"conftest.in" 15817 while : 15818 do 15819 cat "conftest.in" "conftest.in" >"conftest.tmp" 15820 mv "conftest.tmp" "conftest.in" 15821 cp "conftest.in" "conftest.nl" 15822 printf "%s\n" '' >> "conftest.nl" 15823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 15824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15825 as_fn_arith $ac_count + 1 && ac_count=$as_val 15826 if test $ac_count -gt ${ac_path_SED_max-0}; then 15827 # Best one so far, save it but keep looking for a better one 15828 ac_cv_path_SED="$ac_path_SED" 15829 ac_path_SED_max=$ac_count 15830 fi 15831 # 10*(2^10) chars as input seems more than enough 15832 test $ac_count -gt 10 && break 15833 done 15834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15835 esac 15836 15837 $ac_path_SED_found && break 3 15838 done 15839 done 15840 done 15841 IFS=$as_save_IFS 15842 if test -z "$ac_cv_path_SED"; then 15843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 15844 fi 15845 else 15846 ac_cv_path_SED=$SED 15847 fi 15848 ;; 15849 esac 15850 fi 15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 15852 printf "%s\n" "$ac_cv_path_SED" >&6; } 15853 SED="$ac_cv_path_SED" 15854 rm -f conftest.sed 15855 15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 15857 printf %s "checking for grep that handles long lines and -e... " >&6; } 15858 if test ${ac_cv_path_GREP+y} 15859 then : 15860 printf %s "(cached) " >&6 15861 else case e in #( 15862 e) if test -z "$GREP"; then 15863 ac_path_GREP_found=false 15864 # Loop through the user's path and test for each of PROGNAME-LIST 15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 15867 do 15868 IFS=$as_save_IFS 15869 case $as_dir in #((( 15870 '') as_dir=./ ;; 15871 */) ;; 15872 *) as_dir=$as_dir/ ;; 15873 esac 15874 for ac_prog in grep ggrep 15875 do 15876 for ac_exec_ext in '' $ac_executable_extensions; do 15877 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 15878 as_fn_executable_p "$ac_path_GREP" || continue 15879 # Check for GNU ac_path_GREP and select it if it is found. 15880 # Check for GNU $ac_path_GREP 15881 case `"$ac_path_GREP" --version 2>&1` in 15882 *GNU*) 15883 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 15884 *) 15885 ac_count=0 15886 printf %s 0123456789 >"conftest.in" 15887 while : 15888 do 15889 cat "conftest.in" "conftest.in" >"conftest.tmp" 15890 mv "conftest.tmp" "conftest.in" 15891 cp "conftest.in" "conftest.nl" 15892 printf "%s\n" 'GREP' >> "conftest.nl" 15893 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 15894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 15895 as_fn_arith $ac_count + 1 && ac_count=$as_val 15896 if test $ac_count -gt ${ac_path_GREP_max-0}; then 15897 # Best one so far, save it but keep looking for a better one 15898 ac_cv_path_GREP="$ac_path_GREP" 15899 ac_path_GREP_max=$ac_count 15900 fi 15901 # 10*(2^10) chars as input seems more than enough 15902 test $ac_count -gt 10 && break 15903 done 15904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 15905 esac 15906 15907 $ac_path_GREP_found && break 3 15908 done 15909 done 15910 done 15911 IFS=$as_save_IFS 15912 if test -z "$ac_cv_path_GREP"; then 15913 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 15914 fi 15915 else 15916 ac_cv_path_GREP=$GREP 15917 fi 15918 ;; 15919 esac 15920 fi 15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 15922 printf "%s\n" "$ac_cv_path_GREP" >&6; } 15923 GREP="$ac_cv_path_GREP" 15924 15925 15926 15927 15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 15929 printf %s "checking whether malloc (0) returns nonnull... " >&6; } 15930 if test ${ac_cv_func_malloc_0_nonnull+y} 15931 then : 15932 printf %s "(cached) " >&6 15933 else case e in #( 15934 e) if test "$cross_compiling" = yes 15935 then : 15936 case "$host_os" in 15937 # Guess yes on platforms where we know the result. 15938 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ 15939 | gnu* | *-musl* | midnightbsd* \ 15940 | hpux* | solaris* | cygwin* | mingw* | msys* ) 15941 ac_cv_func_malloc_0_nonnull="guessing yes" ;; 15942 # If we don't know, obey --enable-cross-guesses. 15943 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; 15944 esac 15945 15946 else case e in #( 15947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15948 /* end confdefs.h. */ 15949 #include <stdlib.h> 15950 15951 int 15952 main (void) 15953 { 15954 void *p = malloc (0); 15955 int result = !p; 15956 free (p); 15957 return result; 15958 ; 15959 return 0; 15960 } 15961 15962 _ACEOF 15963 if ac_fn_c_try_run "$LINENO" 15964 then : 15965 ac_cv_func_malloc_0_nonnull=yes 15966 else case e in #( 15967 e) ac_cv_func_malloc_0_nonnull=no ;; 15968 esac 15969 fi 15970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15971 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15972 esac 15973 fi 15974 15975 ;; 15976 esac 15977 fi 15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15979 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 15980 case $ac_cv_func_malloc_0_nonnull in #( 15981 *yes) : 15982 gl_cv_func_malloc_0_nonnull=1 ;; #( 15983 *) : 15984 gl_cv_func_malloc_0_nonnull=0 ;; 15985 esac 15986 15987 15988 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h 15989 15990 15991 15992 15993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 15994 printf %s "checking for mbstate_t... " >&6; } 15995 if test ${ac_cv_type_mbstate_t+y} 15996 then : 15997 printf %s "(cached) " >&6 15998 else case e in #( 15999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16000 /* end confdefs.h. */ 16001 $ac_includes_default 16002 #include <wchar.h> 16003 int 16004 main (void) 16005 { 16006 mbstate_t x; return sizeof x; 16007 ; 16008 return 0; 16009 } 16010 _ACEOF 16011 if ac_fn_c_try_compile "$LINENO" 16012 then : 16013 ac_cv_type_mbstate_t=yes 16014 else case e in #( 16015 e) ac_cv_type_mbstate_t=no ;; 16016 esac 16017 fi 16018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16019 esac 16020 fi 16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 16022 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 16023 if test $ac_cv_type_mbstate_t = yes; then 16024 16025 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 16026 16027 else 16028 16029 printf "%s\n" "#define mbstate_t int" >>confdefs.h 16030 16031 fi 16032 16033 16034 16035 16036 16037 16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 16039 printf %s "checking for a traditional japanese locale... " >&6; } 16040 if test ${gt_cv_locale_ja+y} 16041 then : 16042 printf %s "(cached) " >&6 16043 else case e in #( 16044 e) 16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16046 /* end confdefs.h. */ 16047 16048 #include <locale.h> 16049 #include <time.h> 16050 #if HAVE_LANGINFO_CODESET 16051 # include <langinfo.h> 16052 #endif 16053 #include <stdlib.h> 16054 #include <string.h> 16055 struct tm t; 16056 char buf[16]; 16057 int main () 16058 { 16059 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 16060 imitates locale dependent behaviour by looking at the environment 16061 variables, and all locales use the UTF-8 encoding. */ 16062 #if defined __BEOS__ || defined __HAIKU__ 16063 return 1; 16064 #else 16065 /* Check whether the given locale name is recognized by the system. */ 16066 # if defined _WIN32 && !defined __CYGWIN__ 16067 /* On native Windows, setlocale(category, "") looks at the system settings, 16068 not at the environment variables. Also, when an encoding suffix such 16069 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 16070 category of the locale to "C". */ 16071 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 16072 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 16073 return 1; 16074 # else 16075 if (setlocale (LC_ALL, "") == NULL) return 1; 16076 # endif 16077 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 16078 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 16079 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 16080 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 16081 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 16082 some unit tests fail. 16083 On MirBSD 10, when an unsupported locale is specified, setlocale() 16084 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 16085 # if HAVE_LANGINFO_CODESET 16086 { 16087 const char *cs = nl_langinfo (CODESET); 16088 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 16089 || strcmp (cs, "UTF-8") == 0) 16090 return 1; 16091 } 16092 # endif 16093 # ifdef __CYGWIN__ 16094 /* On Cygwin, avoid locale names without encoding suffix, because the 16095 locale_charset() function relies on the encoding suffix. Note that 16096 LC_ALL is set on the command line. */ 16097 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 16098 # endif 16099 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 16100 on Cygwin 1.5.x. */ 16101 if (MB_CUR_MAX == 1) 16102 return 1; 16103 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 16104 This excludes the UTF-8 encoding (except on MirBSD). */ 16105 { 16106 const char *p; 16107 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 16108 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 16109 for (p = buf; *p != '\0'; p++) 16110 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 16111 return 1; 16112 } 16113 return 0; 16114 #endif 16115 } 16116 16117 _ACEOF 16118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16119 (eval $ac_link) 2>&5 7392 16120 ac_status=$? 7393 grep -v '^ *+' conftest.er1 >conftest.err 7394 rm -f conftest.er1 7395 cat conftest.err >&5 7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7397 (exit $ac_status); } && 7398 { ac_try='test -z "$ac_c_werror_flag" 7399 || test ! -s conftest.err' 7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16122 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16123 case "$host_os" in 16124 # Handle native Windows specially, because there setlocale() interprets 16125 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 16126 # "fr" or "fra" as "French" or "French_France.1252", 16127 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 16128 # "ja" as "Japanese" or "Japanese_Japan.932", 16129 # and similar. 16130 mingw*) 16131 # Note that on native Windows, the Japanese locale is 16132 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 16133 # cannot use it here. 16134 gt_cv_locale_ja=none 16135 ;; 16136 *) 16137 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 16138 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 16139 # configure script would override the LC_ALL setting. Likewise for 16140 # LC_CTYPE, which is also set at the beginning of the configure script. 16141 # Test for the AIX locale name. 16142 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16143 gt_cv_locale_ja=ja_JP 16144 else 16145 # Test for the locale name with explicit encoding suffix. 16146 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16147 gt_cv_locale_ja=ja_JP.EUC-JP 16148 else 16149 # Test for the HP-UX, OSF/1, NetBSD locale name. 16150 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16151 gt_cv_locale_ja=ja_JP.eucJP 16152 else 16153 # Test for the IRIX, FreeBSD locale name. 16154 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16155 gt_cv_locale_ja=ja_JP.EUC 16156 else 16157 # Test for the Solaris 7 locale name. 16158 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16159 gt_cv_locale_ja=ja 16160 else 16161 # Special test for NetBSD 1.6. 16162 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 16163 gt_cv_locale_ja=ja_JP.eucJP 16164 else 16165 # None found. 16166 gt_cv_locale_ja=none 16167 fi 16168 fi 16169 fi 16170 fi 16171 fi 16172 fi 16173 ;; 16174 esac 16175 fi 16176 rm -fr conftest* 16177 ;; 16178 esac 16179 fi 16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 16181 printf "%s\n" "$gt_cv_locale_ja" >&6; } 16182 LOCALE_JA=$gt_cv_locale_ja 16183 16184 16185 16186 16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 16188 printf %s "checking for a french Unicode locale... " >&6; } 16189 if test ${gt_cv_locale_fr_utf8+y} 16190 then : 16191 printf %s "(cached) " >&6 16192 else case e in #( 16193 e) 16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16195 /* end confdefs.h. */ 16196 16197 #include <locale.h> 16198 #include <time.h> 16199 #if HAVE_LANGINFO_CODESET 16200 # include <langinfo.h> 16201 #endif 16202 #include <stdlib.h> 16203 #include <string.h> 16204 struct tm t; 16205 char buf[16]; 16206 int main () { 16207 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 16208 imitates locale dependent behaviour by looking at the environment 16209 variables, and all locales use the UTF-8 encoding. */ 16210 #if !(defined __BEOS__ || defined __HAIKU__) 16211 /* Check whether the given locale name is recognized by the system. */ 16212 # if defined _WIN32 && !defined __CYGWIN__ 16213 /* On native Windows, setlocale(category, "") looks at the system settings, 16214 not at the environment variables. Also, when an encoding suffix such 16215 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 16216 category of the locale to "C". */ 16217 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 16218 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 16219 return 1; 16220 # else 16221 if (setlocale (LC_ALL, "") == NULL) return 1; 16222 # endif 16223 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 16224 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 16225 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 16226 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 16227 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 16228 some unit tests fail. */ 16229 # if HAVE_LANGINFO_CODESET 16230 { 16231 const char *cs = nl_langinfo (CODESET); 16232 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 16233 return 1; 16234 } 16235 # endif 16236 # ifdef __CYGWIN__ 16237 /* On Cygwin, avoid locale names without encoding suffix, because the 16238 locale_charset() function relies on the encoding suffix. Note that 16239 LC_ALL is set on the command line. */ 16240 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 16241 # endif 16242 /* Check whether in the abbreviation of the second month, the second 16243 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 16244 two bytes long, with UTF-8 encoding. */ 16245 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 16246 if (strftime (buf, sizeof (buf), "%b", &t) < 4 16247 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 16248 return 1; 16249 #endif 16250 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 16251 /* Check whether the decimal separator is a comma. 16252 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 16253 are nl_langinfo(RADIXCHAR) are both ".". */ 16254 if (localeconv () ->decimal_point[0] != ',') return 1; 16255 #endif 16256 return 0; 16257 } 16258 16259 _ACEOF 16260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16261 (eval $ac_link) 2>&5 16262 ac_status=$? 16263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16264 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16265 case "$host_os" in 16266 # Handle native Windows specially, because there setlocale() interprets 16267 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 16268 # "fr" or "fra" as "French" or "French_France.1252", 16269 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 16270 # "ja" as "Japanese" or "Japanese_Japan.932", 16271 # and similar. 16272 mingw*) 16273 # Test for the hypothetical native Windows locale name. 16274 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16275 gt_cv_locale_fr_utf8=French_France.65001 16276 else 16277 # None found. 16278 gt_cv_locale_fr_utf8=none 16279 fi 16280 ;; 16281 *) 16282 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 16283 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 16284 # configure script would override the LC_ALL setting. Likewise for 16285 # LC_CTYPE, which is also set at the beginning of the configure script. 16286 # Test for the usual locale name. 16287 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16288 gt_cv_locale_fr_utf8=fr_FR 16289 else 16290 # Test for the locale name with explicit encoding suffix. 16291 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16292 gt_cv_locale_fr_utf8=fr_FR.UTF-8 16293 else 16294 # Test for the Solaris 7 locale name. 16295 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16296 gt_cv_locale_fr_utf8=fr.UTF-8 16297 else 16298 # None found. 16299 gt_cv_locale_fr_utf8=none 16300 fi 16301 fi 16302 fi 16303 ;; 16304 esac 16305 fi 16306 rm -fr conftest* 16307 ;; 16308 esac 16309 fi 16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 16311 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 16312 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 16313 16314 16315 16316 16317 16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 16319 printf %s "checking for a transitional chinese locale... " >&6; } 16320 if test ${gt_cv_locale_zh_CN+y} 16321 then : 16322 printf %s "(cached) " >&6 16323 else case e in #( 16324 e) 16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16326 /* end confdefs.h. */ 16327 16328 #include <locale.h> 16329 #include <stdlib.h> 16330 #include <time.h> 16331 #if HAVE_LANGINFO_CODESET 16332 # include <langinfo.h> 16333 #endif 16334 #include <stdlib.h> 16335 #include <string.h> 16336 struct tm t; 16337 char buf[16]; 16338 int main () 16339 { 16340 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 16341 imitates locale dependent behaviour by looking at the environment 16342 variables, and all locales use the UTF-8 encoding. */ 16343 #if defined __BEOS__ || defined __HAIKU__ 16344 return 1; 16345 #else 16346 /* Check whether the given locale name is recognized by the system. */ 16347 # if defined _WIN32 && !defined __CYGWIN__ 16348 /* On native Windows, setlocale(category, "") looks at the system settings, 16349 not at the environment variables. Also, when an encoding suffix such 16350 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 16351 category of the locale to "C". */ 16352 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 16353 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 16354 return 1; 16355 # else 16356 if (setlocale (LC_ALL, "") == NULL) return 1; 16357 # endif 16358 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 16359 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 16360 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 16361 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 16362 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 16363 some unit tests fail. 16364 On MirBSD 10, when an unsupported locale is specified, setlocale() 16365 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 16366 # if HAVE_LANGINFO_CODESET 16367 { 16368 const char *cs = nl_langinfo (CODESET); 16369 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 16370 || strcmp (cs, "UTF-8") == 0) 16371 return 1; 16372 } 16373 # endif 16374 # ifdef __CYGWIN__ 16375 /* On Cygwin, avoid locale names without encoding suffix, because the 16376 locale_charset() function relies on the encoding suffix. Note that 16377 LC_ALL is set on the command line. */ 16378 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 16379 # endif 16380 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 16381 This excludes the UTF-8 encoding (except on MirBSD). */ 16382 { 16383 const char *p; 16384 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 16385 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 16386 for (p = buf; *p != '\0'; p++) 16387 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 16388 return 1; 16389 } 16390 /* Check whether a typical GB18030 multibyte sequence is recognized as a 16391 single wide character. This excludes the GB2312 and GBK encodings. */ 16392 if (mblen ("\203\062\332\066", 5) != 4) 16393 return 1; 16394 return 0; 16395 #endif 16396 } 16397 16398 _ACEOF 16399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16400 (eval $ac_link) 2>&5 16401 ac_status=$? 16402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16403 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16404 case "$host_os" in 16405 # Handle native Windows specially, because there setlocale() interprets 16406 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 16407 # "fr" or "fra" as "French" or "French_France.1252", 16408 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 16409 # "ja" as "Japanese" or "Japanese_Japan.932", 16410 # and similar. 16411 mingw*) 16412 # Test for the hypothetical native Windows locale name. 16413 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16414 gt_cv_locale_zh_CN=Chinese_China.54936 16415 else 16416 # None found. 16417 gt_cv_locale_zh_CN=none 16418 fi 16419 ;; 16420 solaris2.8) 16421 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 16422 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 16423 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 16424 gt_cv_locale_zh_CN=none 16425 ;; 16426 *) 16427 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 16428 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 16429 # configure script would override the LC_ALL setting. Likewise for 16430 # LC_CTYPE, which is also set at the beginning of the configure script. 16431 # Test for the locale name without encoding suffix. 16432 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16433 gt_cv_locale_zh_CN=zh_CN 16434 else 16435 # Test for the locale name with explicit encoding suffix. 16436 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 16437 gt_cv_locale_zh_CN=zh_CN.GB18030 16438 else 16439 # None found. 16440 gt_cv_locale_zh_CN=none 16441 fi 16442 fi 16443 ;; 16444 esac 16445 else 16446 # If there was a link error, due to mblen(), the system is so old that 16447 # it certainly doesn't have a chinese locale. 16448 gt_cv_locale_zh_CN=none 16449 fi 16450 rm -fr conftest* 16451 ;; 16452 esac 16453 fi 16454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 16455 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 16456 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 if case "$host_os" in 16473 mingw*) true ;; 16474 *) test $ac_cv_func_mbsinit = yes ;; 16475 esac \ 16476 && test $ac_cv_func_mbrtowc = yes; then 16477 16478 16479 16480 16481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 16482 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 16483 if test ${gl_cv_func_mbrtowc_incomplete_state+y} 16484 then : 16485 printf %s "(cached) " >&6 16486 else case e in #( 16487 e) 16488 case "$host_os" in 16489 # Guess no on AIX and OSF/1. 16490 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 16491 # Guess yes otherwise. 16492 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 16493 esac 16494 if test $LOCALE_JA != none; then 16495 if test "$cross_compiling" = yes 16496 then : 16497 : 16498 else case e in #( 16499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500 /* end confdefs.h. */ 16501 16502 #include <locale.h> 16503 #include <string.h> 16504 #include <wchar.h> 16505 int main () 16506 { 16507 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 16508 { 16509 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 16510 mbstate_t state; 16511 wchar_t wc; 16512 16513 memset (&state, '\0', sizeof (mbstate_t)); 16514 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16515 if (mbsinit (&state)) 16516 return 2; 16517 } 16518 return 0; 16519 } 16520 _ACEOF 16521 if ac_fn_c_try_run "$LINENO" 16522 then : 16523 gl_cv_func_mbrtowc_incomplete_state=yes 16524 else case e in #( 16525 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 16526 esac 16527 fi 16528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16529 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16530 esac 16531 fi 16532 16533 else 16534 if test $LOCALE_FR_UTF8 != none; then 16535 if test "$cross_compiling" = yes 16536 then : 16537 : 16538 else case e in #( 16539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540 /* end confdefs.h. */ 16541 16542 #include <locale.h> 16543 #include <string.h> 16544 #include <wchar.h> 16545 int main () 16546 { 16547 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16548 { 16549 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 16550 mbstate_t state; 16551 wchar_t wc; 16552 16553 memset (&state, '\0', sizeof (mbstate_t)); 16554 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16555 if (mbsinit (&state)) 16556 return 2; 16557 } 16558 return 0; 16559 } 16560 _ACEOF 16561 if ac_fn_c_try_run "$LINENO" 16562 then : 16563 gl_cv_func_mbrtowc_incomplete_state=yes 16564 else case e in #( 16565 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 16566 esac 16567 fi 16568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16569 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16570 esac 16571 fi 16572 16573 fi 16574 fi 16575 ;; 16576 esac 16577 fi 16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 16579 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 16580 16581 16582 16583 16584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 16585 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 16586 if test ${gl_cv_func_mbrtowc_sanitycheck+y} 16587 then : 16588 printf %s "(cached) " >&6 16589 else case e in #( 16590 e) 16591 case "$host_os" in 16592 # Guess no on Solaris 8. 16593 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 16594 # Guess yes otherwise. 16595 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 16596 esac 16597 if test $LOCALE_ZH_CN != none; then 16598 if test "$cross_compiling" = yes 16599 then : 16600 : 16601 else case e in #( 16602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16603 /* end confdefs.h. */ 16604 16605 #include <locale.h> 16606 #include <stdlib.h> 16607 #include <string.h> 16608 #include <wchar.h> 16609 int main () 16610 { 16611 /* This fails on Solaris 8: 16612 mbrtowc returns 2, and sets wc to 0x00F0. 16613 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 16614 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 16615 { 16616 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 16617 mbstate_t state; 16618 wchar_t wc; 16619 16620 memset (&state, '\0', sizeof (mbstate_t)); 16621 if (mbrtowc (&wc, input + 3, 6, &state) != 4 16622 && mbtowc (&wc, input + 3, 6) == 4) 16623 return 2; 16624 } 16625 return 0; 16626 } 16627 _ACEOF 16628 if ac_fn_c_try_run "$LINENO" 16629 then : 16630 gl_cv_func_mbrtowc_sanitycheck=yes 16631 else case e in #( 16632 e) gl_cv_func_mbrtowc_sanitycheck=no ;; 16633 esac 16634 fi 16635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16636 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16637 esac 16638 fi 16639 16640 fi 16641 ;; 16642 esac 16643 fi 16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 16645 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 16646 16647 REPLACE_MBSTATE_T=0 16648 case "$gl_cv_func_mbrtowc_incomplete_state" in 16649 *yes) ;; 16650 *) REPLACE_MBSTATE_T=1 ;; 16651 esac 16652 case "$gl_cv_func_mbrtowc_sanitycheck" in 16653 *yes) ;; 16654 *) REPLACE_MBSTATE_T=1 ;; 16655 esac 16656 else 16657 REPLACE_MBSTATE_T=1 16658 fi 16659 16660 16661 16662 if test $ac_cv_func_mbrtowc = no; then 16663 HAVE_MBRTOWC=0 16664 ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 16665 #include <wchar.h> 16666 16667 " "$ac_c_undeclared_builtin_options" "CFLAGS" 16668 if test "x$ac_cv_have_decl_mbrtowc" = xyes 16669 then : 16670 ac_have_decl=1 16671 else case e in #( 16672 e) ac_have_decl=0 ;; 16673 esac 16674 fi 16675 printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h 16676 16677 if test $ac_cv_have_decl_mbrtowc = yes; then 16678 REPLACE_MBRTOWC=1 16679 fi 16680 else 16681 if test $REPLACE_MBSTATE_T = 1; then 16682 REPLACE_MBRTOWC=1 16683 else 16684 16685 16686 16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 16688 printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 16689 if test ${gl_cv_func_mbrtowc_null_arg1+y} 16690 then : 16691 printf %s "(cached) " >&6 16692 else case e in #( 16693 e) 16694 case "$host_os" in 16695 # Guess no on Solaris. 16696 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 16697 # Guess yes otherwise. 16698 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 16699 esac 16700 if test $LOCALE_FR_UTF8 != none; then 16701 if test "$cross_compiling" = yes 16702 then : 16703 : 16704 else case e in #( 16705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706 /* end confdefs.h. */ 16707 16708 #include <locale.h> 16709 #include <stdlib.h> 16710 #include <string.h> 16711 #include <wchar.h> 16712 int main () 16713 { 16714 int result = 0; 16715 16716 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16717 { 16718 char input[] = "\303\237er"; 16719 mbstate_t state; 16720 wchar_t wc; 16721 size_t ret; 16722 16723 memset (&state, '\0', sizeof (mbstate_t)); 16724 wc = (wchar_t) 0xBADFACE; 16725 ret = mbrtowc (&wc, input, 5, &state); 16726 if (ret != 2) 16727 result |= 1; 16728 if (!mbsinit (&state)) 16729 result |= 2; 16730 16731 memset (&state, '\0', sizeof (mbstate_t)); 16732 ret = mbrtowc (NULL, input, 5, &state); 16733 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 16734 result |= 4; 16735 if (!mbsinit (&state)) 16736 result |= 8; 16737 } 16738 return result; 16739 } 16740 _ACEOF 16741 if ac_fn_c_try_run "$LINENO" 16742 then : 16743 gl_cv_func_mbrtowc_null_arg1=yes 16744 else case e in #( 16745 e) gl_cv_func_mbrtowc_null_arg1=no ;; 16746 esac 16747 fi 16748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16749 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16750 esac 16751 fi 16752 16753 fi 16754 ;; 16755 esac 16756 fi 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 16758 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; } 16759 16760 16761 16762 16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 16764 printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; } 16765 if test ${gl_cv_func_mbrtowc_null_arg2+y} 16766 then : 16767 printf %s "(cached) " >&6 16768 else case e in #( 16769 e) 16770 case "$host_os" in 16771 # Guess no on OSF/1. 16772 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 16773 # Guess yes otherwise. 16774 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 16775 esac 16776 if test $LOCALE_FR_UTF8 != none; then 16777 if test "$cross_compiling" = yes 16778 then : 16779 : 16780 else case e in #( 16781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782 /* end confdefs.h. */ 16783 16784 #include <locale.h> 16785 #include <string.h> 16786 #include <wchar.h> 16787 int main () 16788 { 16789 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16790 { 16791 mbstate_t state; 16792 wchar_t wc; 16793 int ret; 16794 16795 memset (&state, '\0', sizeof (mbstate_t)); 16796 wc = (wchar_t) 0xBADFACE; 16797 mbrtowc (&wc, NULL, 5, &state); 16798 /* Check that wc was not modified. */ 16799 if (wc != (wchar_t) 0xBADFACE) 16800 return 2; 16801 } 16802 return 0; 16803 } 16804 _ACEOF 16805 if ac_fn_c_try_run "$LINENO" 16806 then : 16807 gl_cv_func_mbrtowc_null_arg2=yes 16808 else case e in #( 16809 e) gl_cv_func_mbrtowc_null_arg2=no ;; 16810 esac 16811 fi 16812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16813 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16814 esac 16815 fi 16816 16817 fi 16818 ;; 16819 esac 16820 fi 16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 16822 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; } 16823 16824 16825 16826 16827 16828 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 16830 printf %s "checking whether mbrtowc has a correct return value... " >&6; } 16831 if test ${gl_cv_func_mbrtowc_retval+y} 16832 then : 16833 printf %s "(cached) " >&6 16834 else case e in #( 16835 e) 16836 case "$host_os" in 16837 # Guess no on HP-UX, Solaris, native Windows. 16838 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 16839 # Guess yes otherwise. 16840 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 16841 esac 16842 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 16843 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 16844 if test "$cross_compiling" = yes 16845 then : 16846 : 16847 else case e in #( 16848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16849 /* end confdefs.h. */ 16850 16851 #include <locale.h> 16852 #include <string.h> 16853 #include <wchar.h> 16854 int main () 16855 { 16856 int result = 0; 16857 int found_some_locale = 0; 16858 /* This fails on Solaris. */ 16859 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16860 { 16861 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 16862 mbstate_t state; 16863 wchar_t wc; 16864 16865 memset (&state, '\0', sizeof (mbstate_t)); 16866 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16867 { 16868 input[1] = '\0'; 16869 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 16870 result |= 1; 16871 } 16872 found_some_locale = 1; 16873 } 16874 /* This fails on HP-UX 11.11. */ 16875 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 16876 { 16877 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 16878 mbstate_t state; 16879 wchar_t wc; 16880 16881 memset (&state, '\0', sizeof (mbstate_t)); 16882 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16883 { 16884 input[1] = '\0'; 16885 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 16886 result |= 2; 16887 } 16888 found_some_locale = 1; 16889 } 16890 /* This fails on native Windows. */ 16891 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 16892 { 16893 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 16894 mbstate_t state; 16895 wchar_t wc; 16896 16897 memset (&state, '\0', sizeof (mbstate_t)); 16898 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16899 { 16900 input[3] = '\0'; 16901 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16902 result |= 4; 16903 } 16904 found_some_locale = 1; 16905 } 16906 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 16907 { 16908 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 16909 mbstate_t state; 16910 wchar_t wc; 16911 16912 memset (&state, '\0', sizeof (mbstate_t)); 16913 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16914 { 16915 input[3] = '\0'; 16916 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16917 result |= 8; 16918 } 16919 found_some_locale = 1; 16920 } 16921 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 16922 { 16923 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 16924 mbstate_t state; 16925 wchar_t wc; 16926 16927 memset (&state, '\0', sizeof (mbstate_t)); 16928 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16929 { 16930 input[3] = '\0'; 16931 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16932 result |= 16; 16933 } 16934 found_some_locale = 1; 16935 } 16936 return (found_some_locale ? result : 77); 16937 } 16938 _ACEOF 16939 if ac_fn_c_try_run "$LINENO" 16940 then : 16941 gl_cv_func_mbrtowc_retval=yes 16942 else case e in #( 16943 e) if test $? != 77; then 16944 gl_cv_func_mbrtowc_retval=no 16945 fi 16946 ;; 16947 esac 16948 fi 16949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16950 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16951 esac 16952 fi 16953 16954 fi 16955 ;; 16956 esac 16957 fi 16958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 16959 printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; } 16960 16961 16962 16963 16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 16965 printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 16966 if test ${gl_cv_func_mbrtowc_nul_retval+y} 16967 then : 16968 printf %s "(cached) " >&6 16969 else case e in #( 16970 e) 16971 case "$host_os" in 16972 # Guess no on Solaris 8 and 9. 16973 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 16974 # Guess yes otherwise. 16975 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 16976 esac 16977 if test $LOCALE_ZH_CN != none; then 16978 if test "$cross_compiling" = yes 16979 then : 16980 : 16981 else case e in #( 16982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983 /* end confdefs.h. */ 16984 16985 #include <locale.h> 16986 #include <string.h> 16987 #include <wchar.h> 16988 int main () 16989 { 16990 /* This fails on Solaris 8 and 9. */ 16991 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 16992 { 16993 mbstate_t state; 16994 wchar_t wc; 16995 16996 memset (&state, '\0', sizeof (mbstate_t)); 16997 if (mbrtowc (&wc, "", 1, &state) != 0) 16998 return 2; 16999 } 17000 return 0; 17001 } 17002 _ACEOF 17003 if ac_fn_c_try_run "$LINENO" 17004 then : 17005 gl_cv_func_mbrtowc_nul_retval=yes 17006 else case e in #( 17007 e) gl_cv_func_mbrtowc_nul_retval=no ;; 17008 esac 17009 fi 17010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17011 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17012 esac 17013 fi 17014 17015 fi 17016 ;; 17017 esac 17018 fi 17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 17020 printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; } 17021 17022 17023 17024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 17025 printf %s "checking whether mbrtowc stores incomplete characters... " >&6; } 17026 if test ${gl_cv_func_mbrtowc_stores_incomplete+y} 17027 then : 17028 printf %s "(cached) " >&6 17029 else case e in #( 17030 e) 17031 case "$host_os" in 17032 # Guess yes on native Windows. 17033 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;; 17034 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;; 17035 esac 17036 case "$host_os" in 17037 mingw*) 17038 if test "$cross_compiling" = yes 17039 then : 17040 : 17041 else case e in #( 17042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17043 /* end confdefs.h. */ 17044 17045 #include <locale.h> 17046 #include <string.h> 17047 #include <wchar.h> 17048 int main () 17049 { 17050 int result = 0; 17051 if (setlocale (LC_ALL, "French_France.65001") != NULL) 17052 { 17053 wchar_t wc = (wchar_t) 0xBADFACE; 17054 mbstate_t state; 17055 17056 memset (&state, '\0', sizeof (mbstate_t)); 17057 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 17058 && wc != (wchar_t) 0xBADFACE) 17059 result |= 1; 17060 } 17061 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 17062 { 17063 wchar_t wc = (wchar_t) 0xBADFACE; 17064 mbstate_t state; 17065 17066 memset (&state, '\0', sizeof (mbstate_t)); 17067 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2) 17068 && wc != (wchar_t) 0xBADFACE) 17069 result |= 2; 17070 } 17071 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 17072 { 17073 wchar_t wc = (wchar_t) 0xBADFACE; 17074 mbstate_t state; 17075 17076 memset (&state, '\0', sizeof (mbstate_t)); 17077 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2) 17078 && wc != (wchar_t) 0xBADFACE) 17079 result |= 4; 17080 } 17081 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 17082 { 17083 wchar_t wc = (wchar_t) 0xBADFACE; 17084 mbstate_t state; 17085 17086 memset (&state, '\0', sizeof (mbstate_t)); 17087 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2) 17088 && wc != (wchar_t) 0xBADFACE) 17089 result |= 8; 17090 } 17091 return result; 17092 } 17093 _ACEOF 17094 if ac_fn_c_try_run "$LINENO" 17095 then : 17096 gl_cv_func_mbrtowc_stores_incomplete=no 17097 else case e in #( 17098 e) gl_cv_func_mbrtowc_stores_incomplete=yes ;; 17099 esac 17100 fi 17101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17102 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17103 esac 17104 fi 17105 17106 ;; 17107 *) 17108 17109 if test $LOCALE_FR_UTF8 != none; then 17110 if test "$cross_compiling" = yes 17111 then : 17112 : 17113 else case e in #( 17114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17115 /* end confdefs.h. */ 17116 17117 #include <locale.h> 17118 #include <string.h> 17119 #include <wchar.h> 17120 int main () 17121 { 17122 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 17123 { 17124 wchar_t wc = (wchar_t) 0xBADFACE; 17125 mbstate_t state; 17126 17127 memset (&state, '\0', sizeof (mbstate_t)); 17128 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 17129 && wc != (wchar_t) 0xBADFACE) 17130 return 1; 17131 } 17132 return 0; 17133 } 17134 _ACEOF 17135 if ac_fn_c_try_run "$LINENO" 17136 then : 17137 gl_cv_func_mbrtowc_stores_incomplete=no 17138 else case e in #( 17139 e) gl_cv_func_mbrtowc_stores_incomplete=yes ;; 17140 esac 17141 fi 17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17143 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17144 esac 17145 fi 17146 17147 fi 17148 ;; 17149 esac 17150 ;; 17151 esac 17152 fi 17153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 17154 printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } 17155 17156 17157 17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 17159 printf %s "checking whether mbrtowc works on empty input... " >&6; } 17160 if test ${gl_cv_func_mbrtowc_empty_input+y} 17161 then : 17162 printf %s "(cached) " >&6 17163 else case e in #( 17164 e) 17165 case "$host_os" in 17166 # Guess no on AIX and glibc systems. 17167 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; 17168 # Guess yes on native Windows. 17169 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 17170 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 17171 esac 17172 if test "$cross_compiling" = yes 17173 then : 17174 : 17175 else case e in #( 17176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17177 /* end confdefs.h. */ 17178 17179 #include <wchar.h> 17180 static wchar_t wc; 17181 static mbstate_t mbs; 17182 int 17183 main (void) 17184 { 17185 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; 17186 } 17187 _ACEOF 17188 if ac_fn_c_try_run "$LINENO" 17189 then : 17190 gl_cv_func_mbrtowc_empty_input=yes 17191 else case e in #( 17192 e) gl_cv_func_mbrtowc_empty_input=no ;; 17193 esac 17194 fi 17195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17196 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17197 esac 17198 fi 17199 17200 ;; 17201 esac 17202 fi 17203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 17204 printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; } 17205 17206 17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 17208 printf %s "checking whether the C locale is free of encoding errors... " >&6; } 17209 if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y} 17210 then : 17211 printf %s "(cached) " >&6 17212 else case e in #( 17213 e) 17214 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" 17215 17216 if test "$cross_compiling" = yes 17217 then : 17218 case "$host_os" in 17219 # Guess yes on native Windows. 17220 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; 17221 esac 17222 17223 else case e in #( 17224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17225 /* end confdefs.h. */ 17226 #include <limits.h> 17227 #include <locale.h> 17228 #include <wchar.h> 17229 17230 int 17231 main (void) 17232 { 17233 17234 int i; 17235 char *locale = setlocale (LC_ALL, "C"); 17236 if (! locale) 17237 return 2; 17238 for (i = CHAR_MIN; i <= CHAR_MAX; i++) 17239 { 17240 char c = i; 17241 wchar_t wc; 17242 mbstate_t mbs = { 0, }; 17243 size_t ss = mbrtowc (&wc, &c, 1, &mbs); 17244 if (1 < ss) 17245 return 3; 17246 } 17247 return 0; 17248 17249 ; 17250 return 0; 17251 } 17252 _ACEOF 17253 if ac_fn_c_try_run "$LINENO" 17254 then : 17255 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes 17256 else case e in #( 17257 e) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no ;; 17258 esac 17259 fi 17260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17261 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17262 esac 17263 fi 17264 17265 ;; 17266 esac 17267 fi 17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 17269 printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } 17270 17271 case "$gl_cv_func_mbrtowc_null_arg1" in 17272 *yes) ;; 17273 *) 17274 printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 17275 17276 REPLACE_MBRTOWC=1 17277 ;; 17278 esac 17279 case "$gl_cv_func_mbrtowc_null_arg2" in 17280 *yes) ;; 17281 *) 17282 printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 17283 17284 REPLACE_MBRTOWC=1 17285 ;; 17286 esac 17287 case "$gl_cv_func_mbrtowc_retval" in 17288 *yes) ;; 17289 *) 17290 printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 17291 17292 REPLACE_MBRTOWC=1 17293 ;; 17294 esac 17295 case "$gl_cv_func_mbrtowc_nul_retval" in 17296 *yes) ;; 17297 *) 17298 printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 17299 17300 REPLACE_MBRTOWC=1 17301 ;; 17302 esac 17303 case "$gl_cv_func_mbrtowc_stores_incomplete" in 17304 *no) ;; 17305 *) 17306 printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h 17307 17308 REPLACE_MBRTOWC=1 17309 ;; 17310 esac 17311 case "$gl_cv_func_mbrtowc_empty_input" in 17312 *yes) ;; 17313 *) 17314 printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 17315 17316 REPLACE_MBRTOWC=1 17317 ;; 17318 esac 17319 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in 17320 *yes) ;; 17321 *) 17322 printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h 17323 17324 REPLACE_MBRTOWC=1 17325 ;; 17326 esac 17327 fi 17328 fi 17329 if test $REPLACE_MBSTATE_T = 1; then 17330 case "$host_os" in 17331 mingw*) LIB_MBRTOWC= ;; 17332 *) 17333 17334 17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 17336 printf %s "checking whether imported symbols can be declared weak... " >&6; } 17337 if test ${gl_cv_have_weak+y} 17338 then : 17339 printf %s "(cached) " >&6 17340 else case e in #( 17341 e) case "$host_os" in 17342 cygwin*) 17343 gl_cv_have_weak="guessing no" 17344 ;; 17345 *) 17346 gl_cv_have_weak=no 17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17348 /* end confdefs.h. */ 17349 extern void xyzzy (); 17350 #pragma weak xyzzy 17351 int 17352 main (void) 17353 { 17354 xyzzy(); 17355 ; 17356 return 0; 17357 } 17358 _ACEOF 17359 if ac_fn_c_try_link "$LINENO" 17360 then : 17361 gl_cv_have_weak=maybe 17362 fi 17363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17364 conftest$ac_exeext conftest.$ac_ext 17365 if test $gl_cv_have_weak = maybe; then 17366 if test "$cross_compiling" = yes 17367 then : 17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369 /* end confdefs.h. */ 17370 #ifdef __ELF__ 17371 Extensible Linking Format 17372 #endif 17373 17374 _ACEOF 17375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17376 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1 17377 then : 17378 gl_cv_have_weak="guessing yes" 17379 else case e in #( 17380 e) gl_cv_have_weak="guessing no" ;; 17381 esac 17382 fi 17383 rm -rf conftest* 17384 17385 17386 else case e in #( 17387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388 /* end confdefs.h. */ 17389 17390 #include <stdio.h> 17391 #pragma weak fputs 17392 int main () 17393 { 17394 return (fputs == NULL); 17395 } 17396 _ACEOF 17397 if ac_fn_c_try_run "$LINENO" 17398 then : 17399 gl_cv_have_weak=yes 17400 else case e in #( 17401 e) gl_cv_have_weak=no ;; 17402 esac 17403 fi 17404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17405 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17406 esac 17407 fi 17408 17409 fi 17410 ;; 17411 esac 17412 case " $LDFLAGS " in 17413 *" -static "*) gl_cv_have_weak=no ;; 17414 esac 17415 case "$gl_cv_have_weak" in 17416 *yes) 17417 case "$host_os" in 17418 freebsd* | dragonfly* | midnightbsd*) 17419 : > conftest1.c 17420 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 17421 cat <<EOF > conftest2.c 17422 #include <pthread.h> 17423 #pragma weak pthread_mutexattr_gettype 17424 int main () 17425 { 17426 return (pthread_mutexattr_gettype != NULL); 17427 } 17428 EOF 17429 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 17430 || gl_cv_have_weak=no 17431 rm -f conftest1.c libempty.so conftest2.c conftest 17432 ;; 17433 esac 17434 ;; 17435 esac 17436 ;; 17437 esac 17438 fi 17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 17440 printf "%s\n" "$gl_cv_have_weak" >&6; } 17441 case "$gl_cv_have_weak" in 17442 *yes) 17443 17444 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 17445 17446 ;; 17447 esac 17448 17449 case "$gl_cv_have_weak" in 17450 *yes) LIB_MBRTOWC= ;; 17451 *) LIB_MBRTOWC="$LIBPTHREAD" ;; 17452 esac 17453 ;; 17454 esac 17455 else 17456 LIB_MBRTOWC= 17457 fi 17458 17459 17460 17461 17462 17463 17464 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 17465 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 17466 # irrelevant for anonymous mappings. 17467 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 17468 if test "x$ac_cv_func_mmap" = xyes 17469 then : 17470 gl_have_mmap=yes 17471 else case e in #( 17472 e) gl_have_mmap=no ;; 17473 esac 17474 fi 17475 17476 17477 # Try to allow MAP_ANONYMOUS. 17478 gl_have_mmap_anonymous=no 17479 if test $gl_have_mmap = yes; then 17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 17481 printf %s "checking for MAP_ANONYMOUS... " >&6; } 17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483 /* end confdefs.h. */ 17484 17485 #include <sys/mman.h> 17486 #ifdef MAP_ANONYMOUS 17487 I cannot identify this map 17488 #endif 17489 17490 _ACEOF 17491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17492 $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1 17493 then : 17494 gl_have_mmap_anonymous=yes 17495 fi 17496 rm -rf conftest* 17497 17498 if test $gl_have_mmap_anonymous != yes; then 17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500 /* end confdefs.h. */ 17501 17502 #include <sys/mman.h> 17503 #ifdef MAP_ANON 17504 I cannot identify this map 17505 #endif 17506 17507 _ACEOF 17508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17509 $EGREP_TRADITIONAL "I cannot identify this map" >/dev/null 2>&1 17510 then : 17511 17512 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 17513 17514 gl_have_mmap_anonymous=yes 17515 fi 17516 rm -rf conftest* 17517 17518 fi 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 17520 printf "%s\n" "$gl_have_mmap_anonymous" >&6; } 17521 if test $gl_have_mmap_anonymous = yes; then 17522 17523 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 17524 17525 fi 17526 fi 17527 17528 17529 17530 17531 HAVE_MBSLEN=0; 17532 HAVE_EXPLICIT_BZERO=1; 17533 HAVE_FFSL=1; 17534 HAVE_FFSLL=1; 17535 HAVE_DECL_MEMMEM=1; 17536 HAVE_MEMPCPY=1; 17537 HAVE_DECL_MEMRCHR=1; 17538 HAVE_RAWMEMCHR=1; 17539 HAVE_STPCPY=1; 17540 HAVE_STPNCPY=1; 17541 HAVE_STRCHRNUL=1; 17542 HAVE_DECL_STRDUP=1; 17543 HAVE_DECL_STRNDUP=1; 17544 HAVE_DECL_STRNLEN=1; 17545 HAVE_STRPBRK=1; 17546 HAVE_STRSEP=1; 17547 HAVE_STRCASESTR=1; 17548 HAVE_DECL_STRTOK_R=1; 17549 HAVE_DECL_STRERROR_R=1; 17550 HAVE_STRERRORNAME_NP=1; 17551 HAVE_SIGABBREV_NP=1; 17552 HAVE_SIGDESCR_NP=1; 17553 HAVE_DECL_STRSIGNAL=1; 17554 HAVE_STRVERSCMP=1; 17555 REPLACE_FFSLL=0; 17556 REPLACE_MEMCHR=0; 17557 REPLACE_MEMMEM=0; 17558 REPLACE_STPNCPY=0; 17559 REPLACE_STRCHRNUL=0; 17560 REPLACE_STRDUP=0; 17561 REPLACE_STRNCAT=0; 17562 REPLACE_STRNDUP=0; 17563 REPLACE_STRNLEN=0; 17564 REPLACE_STRSTR=0; 17565 REPLACE_STRCASESTR=0; 17566 REPLACE_STRTOK_R=0; 17567 REPLACE_STRERROR=0; 17568 REPLACE_STRERROR_R=0; 17569 REPLACE_STRERRORNAME_NP=0; 17570 REPLACE_STRSIGNAL=0; 17571 UNDEFINE_STRTOK_R=0; 17572 17573 17574 17575 17576 17577 17578 17579 17580 # Detect platform-specific bugs in some versions of glibc: 17581 # memchr should not dereference anything with length 0 17582 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 17583 # memchr should not dereference overestimated length after a match 17584 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 17585 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 17586 # memchr should cast the second argument to 'unsigned char'. 17587 # This bug exists in Android 4.3. 17588 # Assume that memchr works on platforms that lack mprotect. 17589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 17590 printf %s "checking whether memchr works... " >&6; } 17591 if test ${gl_cv_func_memchr_works+y} 17592 then : 17593 printf %s "(cached) " >&6 17594 else case e in #( 17595 e) if test "$cross_compiling" = yes 17596 then : 17597 case "$host_os" in 17598 # Guess no on Android. 17599 linux*-android*) gl_cv_func_memchr_works="guessing no" ;; 17600 # Guess yes on native Windows. 17601 mingw*) gl_cv_func_memchr_works="guessing yes" ;; 17602 # If we don't know, obey --enable-cross-guesses. 17603 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; 17604 esac 17605 17606 else case e in #( 17607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608 /* end confdefs.h. */ 17609 17610 #include <string.h> 17611 #if HAVE_SYS_MMAN_H 17612 # include <fcntl.h> 17613 # include <unistd.h> 17614 # include <sys/types.h> 17615 # include <sys/mman.h> 17616 # ifndef MAP_FILE 17617 # define MAP_FILE 0 17618 # endif 17619 #endif 17620 17621 int 17622 main (void) 17623 { 17624 17625 int result = 0; 17626 char *fence = NULL; 17627 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT 17628 # if HAVE_MAP_ANONYMOUS 17629 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 17630 const int fd = -1; 17631 # else /* !HAVE_MAP_ANONYMOUS */ 17632 const int flags = MAP_FILE | MAP_PRIVATE; 17633 int fd = open ("/dev/zero", O_RDONLY, 0666); 17634 if (fd >= 0) 17635 # endif 17636 { 17637 int pagesize = getpagesize (); 17638 char *two_pages = 17639 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 17640 flags, fd, 0); 17641 if (two_pages != (char *)(-1) 17642 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 17643 fence = two_pages + pagesize; 17644 } 17645 #endif 17646 if (fence) 17647 { 17648 /* Test against bugs on glibc systems. */ 17649 if (memchr (fence, 0, 0)) 17650 result |= 1; 17651 strcpy (fence - 9, "12345678"); 17652 if (memchr (fence - 9, 0, 79) != fence - 1) 17653 result |= 2; 17654 if (memchr (fence - 1, 0, 3) != fence - 1) 17655 result |= 4; 17656 /* Test against bug on AIX 7.2. */ 17657 if (memchr (fence - 4, '6', 16) != fence - 4) 17658 result |= 8; 17659 } 17660 /* Test against bug on Android 4.3. */ 17661 { 17662 char input[3]; 17663 input[0] = 'a'; 17664 input[1] = 'b'; 17665 input[2] = 'c'; 17666 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) 17667 result |= 16; 17668 } 17669 return result; 17670 17671 ; 17672 return 0; 17673 } 17674 _ACEOF 17675 if ac_fn_c_try_run "$LINENO" 17676 then : 17677 gl_cv_func_memchr_works=yes 17678 else case e in #( 17679 e) gl_cv_func_memchr_works=no ;; 17680 esac 17681 fi 17682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17683 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17684 esac 17685 fi 17686 17687 ;; 17688 esac 17689 fi 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 17691 printf "%s\n" "$gl_cv_func_memchr_works" >&6; } 17692 case "$gl_cv_func_memchr_works" in 17693 *yes) ;; 17694 *) REPLACE_MEMCHR=1 ;; 17695 esac 17696 17697 17698 17699 GL_GNULIB_EXPLICIT_BZERO=0 17700 17701 17702 17703 GL_GNULIB_FFSL=0 17704 17705 17706 17707 GL_GNULIB_FFSLL=0 17708 17709 17710 17711 GL_GNULIB_MEMCHR=0 17712 17713 17714 17715 GL_GNULIB_MEMMEM=0 17716 17717 17718 17719 GL_GNULIB_MEMPCPY=0 17720 17721 17722 17723 GL_GNULIB_MEMRCHR=0 17724 17725 17726 17727 GL_GNULIB_RAWMEMCHR=0 17728 17729 17730 17731 GL_GNULIB_STPCPY=0 17732 17733 17734 17735 GL_GNULIB_STPNCPY=0 17736 17737 17738 17739 GL_GNULIB_STRCHRNUL=0 17740 17741 17742 17743 GL_GNULIB_STRDUP=0 17744 17745 17746 17747 GL_GNULIB_STRNCAT=0 17748 17749 17750 17751 GL_GNULIB_STRNDUP=0 17752 17753 17754 17755 GL_GNULIB_STRNLEN=0 17756 17757 17758 17759 GL_GNULIB_STRPBRK=0 17760 17761 17762 17763 GL_GNULIB_STRSEP=0 17764 17765 17766 17767 GL_GNULIB_STRSTR=0 17768 17769 17770 17771 GL_GNULIB_STRCASESTR=0 17772 17773 17774 17775 GL_GNULIB_STRTOK_R=0 17776 17777 17778 17779 GL_GNULIB_MBSLEN=0 17780 17781 17782 17783 GL_GNULIB_MBSNLEN=0 17784 17785 17786 17787 GL_GNULIB_MBSCHR=0 17788 17789 17790 17791 GL_GNULIB_MBSRCHR=0 17792 17793 17794 17795 GL_GNULIB_MBSSTR=0 17796 17797 17798 17799 GL_GNULIB_MBSCASECMP=0 17800 17801 17802 17803 GL_GNULIB_MBSNCASECMP=0 17804 17805 17806 17807 GL_GNULIB_MBSPCASECMP=0 17808 17809 17810 17811 GL_GNULIB_MBSCASESTR=0 17812 17813 17814 17815 GL_GNULIB_MBSCSPN=0 17816 17817 17818 17819 GL_GNULIB_MBSPBRK=0 17820 17821 17822 17823 GL_GNULIB_MBSSPN=0 17824 17825 17826 17827 GL_GNULIB_MBSSEP=0 17828 17829 17830 17831 GL_GNULIB_MBSTOK_R=0 17832 17833 17834 17835 GL_GNULIB_STRERROR=0 17836 17837 17838 17839 GL_GNULIB_STRERROR_R=0 17840 17841 17842 17843 GL_GNULIB_STRERRORNAME_NP=0 17844 17845 17846 17847 GL_GNULIB_SIGABBREV_NP=0 17848 17849 17850 17851 GL_GNULIB_SIGDESCR_NP=0 17852 17853 17854 17855 GL_GNULIB_STRSIGNAL=0 17856 17857 17858 17859 GL_GNULIB_STRVERSCMP=0 17860 17861 17862 17863 GL_GNULIB_MDA_MEMCCPY=1 17864 17865 17866 17867 GL_GNULIB_MDA_STRDUP=1 17868 17869 17870 17871 ac_fn_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 17872 if test "x$ac_cv_have_decl_memrchr" = xyes 17873 then : 17874 ac_have_decl=1 17875 else case e in #( 17876 e) ac_have_decl=0 ;; 17877 esac 17878 fi 17879 printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h 17880 17881 17882 17883 17884 17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5 17886 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; } 17887 if test ${gl_cv_minmax_in_limits_h+y} 17888 then : 17889 printf %s "(cached) " >&6 17890 else case e in #( 17891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892 /* end confdefs.h. */ 17893 #include <limits.h> 17894 int x = MIN (42, 17); 17895 int 17896 main (void) 17897 { 17898 17899 ; 17900 return 0; 17901 } 17902 _ACEOF 17903 if ac_fn_c_try_compile "$LINENO" 17904 then : 17905 gl_cv_minmax_in_limits_h=yes 17906 else case e in #( 17907 e) gl_cv_minmax_in_limits_h=no ;; 17908 esac 17909 fi 17910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17911 esac 17912 fi 17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 17914 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; } 17915 if test $gl_cv_minmax_in_limits_h = yes; then 17916 17917 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h 17918 17919 fi 17920 17921 17922 17923 17924 17925 17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5 17927 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; } 17928 if test ${gl_cv_minmax_in_sys_param_h+y} 17929 then : 17930 printf %s "(cached) " >&6 17931 else case e in #( 17932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933 /* end confdefs.h. */ 17934 #include <sys/param.h> 17935 int x = MIN (42, 17); 17936 int 17937 main (void) 17938 { 17939 17940 ; 17941 return 0; 17942 } 17943 _ACEOF 17944 if ac_fn_c_try_compile "$LINENO" 17945 then : 17946 gl_cv_minmax_in_sys_param_h=yes 17947 else case e in #( 17948 e) gl_cv_minmax_in_sys_param_h=no ;; 17949 esac 17950 fi 17951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17952 esac 17953 fi 17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 17955 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; } 17956 if test $gl_cv_minmax_in_sys_param_h = yes; then 17957 17958 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h 17959 17960 fi 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 17972 printf %s "checking for O_CLOEXEC... " >&6; } 17973 if test ${gl_cv_macro_O_CLOEXEC+y} 17974 then : 17975 printf %s "(cached) " >&6 17976 else case e in #( 17977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17978 /* end confdefs.h. */ 17979 #include <fcntl.h> 17980 #ifndef O_CLOEXEC 17981 choke me; 17982 #endif 17983 17984 int 17985 main (void) 17986 { 17987 return O_CLOEXEC; 17988 ; 17989 return 0; 17990 } 17991 _ACEOF 17992 if ac_fn_c_try_compile "$LINENO" 17993 then : 17994 gl_cv_macro_O_CLOEXEC=yes 17995 else case e in #( 17996 e) gl_cv_macro_O_CLOEXEC=no ;; 17997 esac 17998 fi 17999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18000 esac 18001 fi 18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 18003 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } 18004 18005 18006 18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 18008 printf %s "checking for promoted mode_t type... " >&6; } 18009 if test ${gl_cv_promoted_mode_t+y} 18010 then : 18011 printf %s "(cached) " >&6 18012 else case e in #( 18013 e) 18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18015 /* end confdefs.h. */ 18016 #include <sys/types.h> 18017 int 18018 main (void) 18019 { 18020 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 18021 ; 18022 return 0; 18023 } 18024 _ACEOF 18025 if ac_fn_c_try_compile "$LINENO" 18026 then : 18027 gl_cv_promoted_mode_t='int' 18028 else case e in #( 18029 e) gl_cv_promoted_mode_t='mode_t' ;; 18030 esac 18031 fi 18032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18033 ;; 18034 esac 18035 fi 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 18037 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } 18038 18039 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h 18040 18041 18042 18043 18044 18045 18046 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then 18047 REPLACE_REALLOC_FOR_REALLOC_POSIX=1 18048 fi 18049 18050 ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 18051 if test "x$ac_cv_have_decl_alarm" = xyes 18052 then : 18053 ac_have_decl=1 18054 else case e in #( 18055 e) ac_have_decl=0 ;; 18056 esac 18057 fi 18058 printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 # Check whether --with-selinux was given. 18070 if test ${with_selinux+y} 18071 then : 18072 withval=$with_selinux; 18073 else case e in #( 18074 e) with_selinux=maybe ;; 18075 esac 18076 fi 18077 18078 18079 LIB_SELINUX= 18080 if test "$with_selinux" != no; then 18081 gl_save_LIBS=$LIBS 18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setfilecon" >&5 18083 printf %s "checking for library containing setfilecon... " >&6; } 18084 if test ${ac_cv_search_setfilecon+y} 18085 then : 18086 printf %s "(cached) " >&6 18087 else case e in #( 18088 e) ac_func_search_save_LIBS=$LIBS 18089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18090 /* end confdefs.h. */ 18091 18092 /* Override any GCC internal prototype to avoid an error. 18093 Use char because int might match the return type of a GCC 18094 builtin and then its argument prototype would still apply. 18095 The 'extern "C"' is for builds by C++ compilers; 18096 although this is not generally supported in C code, supporting it here 18097 has little cost and some practical benefit (sr 110532). */ 18098 #ifdef __cplusplus 18099 extern "C" 18100 #endif 18101 char setfilecon (void); 18102 int 18103 main (void) 18104 { 18105 return setfilecon (); 18106 ; 18107 return 0; 18108 } 18109 _ACEOF 18110 for ac_lib in '' selinux 18111 do 18112 if test -z "$ac_lib"; then 18113 ac_res="none required" 18114 else 18115 ac_res=-l$ac_lib 18116 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18117 fi 18118 if ac_fn_c_try_link "$LINENO" 18119 then : 18120 ac_cv_search_setfilecon=$ac_res 18121 fi 18122 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18123 conftest$ac_exeext 18124 if test ${ac_cv_search_setfilecon+y} 18125 then : 18126 break 18127 fi 18128 done 18129 if test ${ac_cv_search_setfilecon+y} 18130 then : 18131 18132 else case e in #( 18133 e) ac_cv_search_setfilecon=no ;; 18134 esac 18135 fi 18136 rm conftest.$ac_ext 18137 LIBS=$ac_func_search_save_LIBS ;; 18138 esac 18139 fi 18140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setfilecon" >&5 18141 printf "%s\n" "$ac_cv_search_setfilecon" >&6; } 18142 ac_res=$ac_cv_search_setfilecon 18143 if test "$ac_res" != no 18144 then : 18145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18146 test "$ac_cv_search_setfilecon" = "none required" || 18147 LIB_SELINUX=$ac_cv_search_setfilecon 18148 fi 18149 18150 LIBS=$gl_save_LIBS 18151 fi 18152 18153 18154 # Warn if SELinux is found but libselinux is absent; 18155 if test "$ac_cv_search_setfilecon" = no; then 18156 if test "$host" = "$build" && test -d /selinux; then 18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This system supports SELinux but libselinux is missing." >&5 18158 printf "%s\n" "$as_me: WARNING: This system supports SELinux but libselinux is missing." >&2;} 18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be compiled without SELinux support." >&5 18160 printf "%s\n" "$as_me: WARNING: GNU sed will be compiled without SELinux support." >&2;} 18161 fi 18162 with_selinux=no 18163 fi 18164 18165 18166 18167 18168 18169 18170 18171 18172 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 18173 if test "x$ac_cv_have_decl_fcloseall" = xyes 18174 then : 18175 ac_have_decl=1 18176 else case e in #( 18177 e) ac_have_decl=0 ;; 18178 esac 18179 fi 18180 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h 18181 18182 18183 18184 18185 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 if test $gl_cv_have_include_next = yes; then 18196 gl_cv_next_stdio_h='<'stdio.h'>' 18197 else 18198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 18199 printf %s "checking absolute name of <stdio.h>... " >&6; } 18200 if test ${gl_cv_next_stdio_h+y} 18201 then : 18202 printf %s "(cached) " >&6 18203 else case e in #( 18204 e) 18205 18206 18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18208 /* end confdefs.h. */ 18209 #include <stdio.h> 18210 _ACEOF 18211 case "$host_os" in 18212 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18213 *) gl_absname_cpp="$ac_cpp" ;; 18214 esac 18215 18216 case "$host_os" in 18217 mingw*) 18218 gl_dirsep_regex='[/\\]' 18219 ;; 18220 *) 18221 gl_dirsep_regex='\/' 18222 ;; 18223 esac 18224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18225 gl_header_literal_regex=`echo 'stdio.h' \ 18226 | sed -e "$gl_make_literal_regex_sed"` 18227 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18228 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18229 s|^/[^/]|//&| 18230 p 18231 q 18232 }' 18233 18234 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18235 sed -n "$gl_absolute_header_sed"` 18236 18237 gl_header=$gl_cv_absolute_stdio_h 18238 gl_cv_next_stdio_h='"'$gl_header'"' 18239 18240 ;; 18241 esac 18242 fi 18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 18244 printf "%s\n" "$gl_cv_next_stdio_h" >&6; } 18245 fi 18246 NEXT_STDIO_H=$gl_cv_next_stdio_h 18247 18248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18250 gl_next_as_first_directive='<'stdio.h'>' 18251 else 18252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18253 gl_next_as_first_directive=$gl_cv_next_stdio_h 18254 fi 18255 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 18256 18257 18258 18259 18260 18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 18262 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } 18263 if test ${gl_cv_func_printf_attribute_flavor+y} 18264 then : 18265 printf %s "(cached) " >&6 18266 else case e in #( 18267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18268 /* end confdefs.h. */ 18269 18270 #define __STDC_FORMAT_MACROS 1 18271 #include <stdio.h> 18272 #include <inttypes.h> 18273 /* For non-mingw systems, compilation will trivially succeed. 18274 For mingw, compilation will succeed for older mingw (system 18275 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 18276 #if (defined _WIN32 && ! defined __CYGWIN__) && \ 18277 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 18278 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 18279 #endif 18280 18281 int 18282 main (void) 18283 { 18284 18285 ; 18286 return 0; 18287 } 18288 _ACEOF 18289 if ac_fn_c_try_compile "$LINENO" 18290 then : 18291 gl_cv_func_printf_attribute_flavor=system 18292 else case e in #( 18293 e) gl_cv_func_printf_attribute_flavor=gnu ;; 18294 esac 18295 fi 18296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18297 esac 18298 fi 18299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 18300 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } 18301 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 18302 18303 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 18304 18305 fi 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 if test $ac_cv_have_decl_fcloseall = no; then 18320 HAVE_DECL_FCLOSEALL=0 18321 fi 18322 18323 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 18324 if test "x$ac_cv_have_decl_ecvt" = xyes 18325 then : 18326 ac_have_decl=1 18327 else case e in #( 18328 e) ac_have_decl=0 ;; 18329 esac 18330 fi 18331 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h 18332 18333 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 18334 if test "x$ac_cv_have_decl_fcvt" = xyes 18335 then : 18336 ac_have_decl=1 18337 else case e in #( 18338 e) ac_have_decl=0 ;; 18339 esac 18340 fi 18341 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h 18342 18343 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 18344 if test "x$ac_cv_have_decl_gcvt" = xyes 18345 then : 18346 ac_have_decl=1 18347 else case e in #( 18348 e) ac_have_decl=0 ;; 18349 esac 18350 fi 18351 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 if test $gl_cv_have_include_next = yes; then 18364 gl_cv_next_stdlib_h='<'stdlib.h'>' 18365 else 18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 18367 printf %s "checking absolute name of <stdlib.h>... " >&6; } 18368 if test ${gl_cv_next_stdlib_h+y} 18369 then : 18370 printf %s "(cached) " >&6 18371 else case e in #( 18372 e) 18373 18374 18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376 /* end confdefs.h. */ 18377 #include <stdlib.h> 18378 _ACEOF 18379 case "$host_os" in 18380 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18381 *) gl_absname_cpp="$ac_cpp" ;; 18382 esac 18383 18384 case "$host_os" in 18385 mingw*) 18386 gl_dirsep_regex='[/\\]' 18387 ;; 18388 *) 18389 gl_dirsep_regex='\/' 18390 ;; 18391 esac 18392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18393 gl_header_literal_regex=`echo 'stdlib.h' \ 18394 | sed -e "$gl_make_literal_regex_sed"` 18395 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18396 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18397 s|^/[^/]|//&| 18398 p 18399 q 18400 }' 18401 18402 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18403 sed -n "$gl_absolute_header_sed"` 18404 18405 gl_header=$gl_cv_absolute_stdlib_h 18406 gl_cv_next_stdlib_h='"'$gl_header'"' 18407 18408 ;; 18409 esac 18410 fi 18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 18412 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; } 18413 fi 18414 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 18415 18416 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18418 gl_next_as_first_directive='<'stdlib.h'>' 18419 else 18420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18421 gl_next_as_first_directive=$gl_cv_next_stdlib_h 18422 fi 18423 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 if test $ac_cv_have_decl_ecvt = no; then 18437 HAVE_DECL_ECVT=0 18438 fi 18439 18440 if test $ac_cv_have_decl_fcvt = no; then 18441 HAVE_DECL_FCVT=0 18442 fi 18443 18444 if test $ac_cv_have_decl_gcvt = no; then 18445 HAVE_DECL_GCVT=0 18446 fi 18447 18448 18449 REPLACE_STRERROR_0=0 18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 18451 printf %s "checking whether strerror(0) succeeds... " >&6; } 18452 if test ${gl_cv_func_strerror_0_works+y} 18453 then : 18454 printf %s "(cached) " >&6 18455 else case e in #( 18456 e) if test "$cross_compiling" = yes 18457 then : 18458 case "$host_os" in 18459 # Guess yes on glibc systems. 18460 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 18461 # Guess yes on musl systems. 18462 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; 18463 # Guess yes on native Windows. 18464 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 18465 # If we don't know, obey --enable-cross-guesses. 18466 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; 18467 esac 18468 18469 else case e in #( 18470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18471 /* end confdefs.h. */ 18472 #include <string.h> 18473 #include <errno.h> 18474 18475 int 18476 main (void) 18477 { 18478 int result = 0; 18479 char *str; 18480 errno = 0; 18481 str = strerror (0); 18482 if (!*str) result |= 1; 18483 if (errno) result |= 2; 18484 if (strstr (str, "nknown") || strstr (str, "ndefined")) 18485 result |= 4; 18486 return result; 18487 ; 18488 return 0; 18489 } 18490 _ACEOF 18491 if ac_fn_c_try_run "$LINENO" 18492 then : 18493 gl_cv_func_strerror_0_works=yes 18494 else case e in #( 18495 e) gl_cv_func_strerror_0_works=no ;; 18496 esac 18497 fi 18498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18499 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18500 esac 18501 fi 18502 18503 ;; 18504 esac 18505 fi 18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 18507 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; } 18508 case "$gl_cv_func_strerror_0_works" in 18509 *yes) ;; 18510 *) 18511 REPLACE_STRERROR_0=1 18512 18513 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h 18514 18515 ;; 18516 esac 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 if test $ac_cv_func_strerror_r = yes; then 18529 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then 18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5 18531 printf %s "checking for strerror_r with POSIX signature... " >&6; } 18532 if test ${gl_cv_func_strerror_r_posix_signature+y} 18533 then : 18534 printf %s "(cached) " >&6 18535 else case e in #( 18536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18537 /* end confdefs.h. */ 18538 #include <string.h> 18539 int strerror_r (int, char *, size_t); 18540 18541 int 18542 main (void) 18543 { 18544 18545 ; 18546 return 0; 18547 } 18548 _ACEOF 18549 if ac_fn_c_try_compile "$LINENO" 18550 then : 18551 gl_cv_func_strerror_r_posix_signature=yes 18552 else case e in #( 18553 e) gl_cv_func_strerror_r_posix_signature=no ;; 18554 esac 18555 fi 18556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18557 ;; 18558 esac 18559 fi 18560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5 18561 printf "%s\n" "$gl_cv_func_strerror_r_posix_signature" >&6; } 18562 if test $gl_cv_func_strerror_r_posix_signature = yes; then 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5 18564 printf %s "checking whether strerror_r works... " >&6; } 18565 if test ${gl_cv_func_strerror_r_works+y} 18566 then : 18567 printf %s "(cached) " >&6 18568 else case e in #( 18569 e) if test "$cross_compiling" = yes 18570 then : 18571 18572 case "$host_os" in 18573 # Guess no on AIX. 18574 aix*) gl_cv_func_strerror_r_works="guessing no";; 18575 # Guess no on HP-UX. 18576 hpux*) gl_cv_func_strerror_r_works="guessing no";; 18577 # Guess no on BSD variants. 18578 *bsd*) gl_cv_func_strerror_r_works="guessing no";; 18579 # Guess yes otherwise. 18580 *) gl_cv_func_strerror_r_works="guessing yes";; 18581 esac 18582 18583 else case e in #( 18584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18585 /* end confdefs.h. */ 18586 #include <errno.h> 18587 #include <string.h> 18588 18589 int 18590 main (void) 18591 { 18592 int result = 0; 18593 char buf[79]; 18594 if (strerror_r (EACCES, buf, 0) < 0) 18595 result |= 1; 18596 errno = 0; 18597 if (strerror_r (EACCES, buf, sizeof buf) != 0) 18598 result |= 2; 18599 strcpy (buf, "Unknown"); 18600 if (strerror_r (0, buf, sizeof buf) != 0) 18601 result |= 4; 18602 if (errno) 18603 result |= 8; 18604 if (strstr (buf, "nknown") || strstr (buf, "ndefined")) 18605 result |= 0x10; 18606 errno = 0; 18607 *buf = 0; 18608 if (strerror_r (-3, buf, sizeof buf) < 0) 18609 result |= 0x20; 18610 if (errno) 18611 result |= 0x40; 18612 if (!*buf) 18613 result |= 0x80; 18614 return result; 18615 18616 ; 18617 return 0; 18618 } 18619 _ACEOF 18620 if ac_fn_c_try_run "$LINENO" 18621 then : 18622 gl_cv_func_strerror_r_works=yes 18623 else case e in #( 18624 e) gl_cv_func_strerror_r_works=no ;; 18625 esac 18626 fi 18627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18628 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18629 esac 18630 fi 18631 18632 ;; 18633 esac 18634 fi 18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5 18636 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; } 18637 else 18638 18639 if test $ac_cv_func___xpg_strerror_r = yes; then 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5 18641 printf %s "checking whether __xpg_strerror_r works... " >&6; } 18642 if test ${gl_cv_func_strerror_r_works+y} 18643 then : 18644 printf %s "(cached) " >&6 18645 else case e in #( 18646 e) if test "$cross_compiling" = yes 18647 then : 18648 gl_cv_func_strerror_r_works="$gl_cross_guess_normal" 18649 18650 else case e in #( 18651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18652 /* end confdefs.h. */ 18653 #include <errno.h> 18654 #include <string.h> 18655 extern 18656 #ifdef __cplusplus 18657 "C" 18658 #endif 18659 int __xpg_strerror_r(int, char *, size_t); 18660 18661 int 18662 main (void) 18663 { 18664 int result = 0; 18665 char buf[256] = "^"; 18666 char copy[256]; 18667 char *str = strerror (-1); 18668 strcpy (copy, str); 18669 if (__xpg_strerror_r (-2, buf, 1) == 0) 18670 result |= 1; 18671 if (*buf) 18672 result |= 2; 18673 __xpg_strerror_r (-2, buf, 256); 18674 if (strcmp (str, copy)) 18675 result |= 4; 18676 return result; 18677 18678 ; 18679 return 0; 18680 } 18681 _ACEOF 18682 if ac_fn_c_try_run "$LINENO" 18683 then : 18684 gl_cv_func_strerror_r_works=yes 18685 else case e in #( 18686 e) gl_cv_func_strerror_r_works=no ;; 18687 esac 18688 fi 18689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18690 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18691 esac 18692 fi 18693 18694 ;; 18695 esac 18696 fi 18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5 18698 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; } 18699 fi 18700 fi 18701 fi 18702 fi 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 if test $gl_cv_have_include_next = yes; then 18715 gl_cv_next_string_h='<'string.h'>' 18716 else 18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 18718 printf %s "checking absolute name of <string.h>... " >&6; } 18719 if test ${gl_cv_next_string_h+y} 18720 then : 18721 printf %s "(cached) " >&6 18722 else case e in #( 18723 e) 18724 18725 18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18727 /* end confdefs.h. */ 18728 #include <string.h> 18729 _ACEOF 18730 case "$host_os" in 18731 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18732 *) gl_absname_cpp="$ac_cpp" ;; 18733 esac 18734 18735 case "$host_os" in 18736 mingw*) 18737 gl_dirsep_regex='[/\\]' 18738 ;; 18739 *) 18740 gl_dirsep_regex='\/' 18741 ;; 18742 esac 18743 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18744 gl_header_literal_regex=`echo 'string.h' \ 18745 | sed -e "$gl_make_literal_regex_sed"` 18746 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18747 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18748 s|^/[^/]|//&| 18749 p 18750 q 18751 }' 18752 18753 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18754 sed -n "$gl_absolute_header_sed"` 18755 18756 gl_header=$gl_cv_absolute_string_h 18757 gl_cv_next_string_h='"'$gl_header'"' 18758 18759 ;; 18760 esac 18761 fi 18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 18763 printf "%s\n" "$gl_cv_next_string_h" >&6; } 18764 fi 18765 NEXT_STRING_H=$gl_cv_next_string_h 18766 18767 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18769 gl_next_as_first_directive='<'string.h'>' 18770 else 18771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18772 gl_next_as_first_directive=$gl_cv_next_string_h 18773 fi 18774 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 if test $gl_cv_have_include_next = yes; then 18799 gl_cv_next_sys_random_h='<'sys/random.h'>' 18800 else 18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5 18802 printf %s "checking absolute name of <sys/random.h>... " >&6; } 18803 if test ${gl_cv_next_sys_random_h+y} 18804 then : 18805 printf %s "(cached) " >&6 18806 else case e in #( 18807 e) 18808 if test $ac_cv_header_sys_random_h = yes; then 18809 18810 18811 18812 18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18814 /* end confdefs.h. */ 18815 #include <sys/random.h> 18816 _ACEOF 18817 case "$host_os" in 18818 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18819 *) gl_absname_cpp="$ac_cpp" ;; 18820 esac 18821 18822 case "$host_os" in 18823 mingw*) 18824 gl_dirsep_regex='[/\\]' 18825 ;; 18826 *) 18827 gl_dirsep_regex='\/' 18828 ;; 18829 esac 18830 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18831 gl_header_literal_regex=`echo 'sys/random.h' \ 18832 | sed -e "$gl_make_literal_regex_sed"` 18833 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18834 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18835 s|^/[^/]|//&| 18836 p 18837 q 18838 }' 18839 18840 gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18841 sed -n "$gl_absolute_header_sed"` 18842 18843 gl_header=$gl_cv_absolute_sys_random_h 18844 gl_cv_next_sys_random_h='"'$gl_header'"' 18845 else 18846 gl_cv_next_sys_random_h='<'sys/random.h'>' 18847 fi 18848 18849 ;; 18850 esac 18851 fi 18852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5 18853 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; } 18854 fi 18855 NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h 18856 18857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18859 gl_next_as_first_directive='<'sys/random.h'>' 18860 else 18861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18862 gl_next_as_first_directive=$gl_cv_next_sys_random_h 18863 fi 18864 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive 18865 18866 18867 18868 18869 if test $ac_cv_header_sys_random_h = yes; then 18870 HAVE_SYS_RANDOM_H=1 18871 else 18872 HAVE_SYS_RANDOM_H=0 18873 fi 18874 18875 18876 18877 if test $ac_cv_header_sys_random_h = yes; then 18878 UNISTD_H_HAVE_SYS_RANDOM_H=1 18879 fi 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 if test $gl_cv_have_include_next = yes; then 18909 gl_cv_next_sys_types_h='<'sys/types.h'>' 18910 else 18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 18912 printf %s "checking absolute name of <sys/types.h>... " >&6; } 18913 if test ${gl_cv_next_sys_types_h+y} 18914 then : 18915 printf %s "(cached) " >&6 18916 else case e in #( 18917 e) 18918 18919 18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18921 /* end confdefs.h. */ 18922 #include <sys/types.h> 18923 _ACEOF 18924 case "$host_os" in 18925 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18926 *) gl_absname_cpp="$ac_cpp" ;; 18927 esac 18928 18929 case "$host_os" in 18930 mingw*) 18931 gl_dirsep_regex='[/\\]' 18932 ;; 18933 *) 18934 gl_dirsep_regex='\/' 18935 ;; 18936 esac 18937 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18938 gl_header_literal_regex=`echo 'sys/types.h' \ 18939 | sed -e "$gl_make_literal_regex_sed"` 18940 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18941 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18942 s|^/[^/]|//&| 18943 p 18944 q 18945 }' 18946 18947 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18948 sed -n "$gl_absolute_header_sed"` 18949 18950 gl_header=$gl_cv_absolute_sys_types_h 18951 gl_cv_next_sys_types_h='"'$gl_header'"' 18952 18953 ;; 18954 esac 18955 fi 18956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 18957 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; } 18958 fi 18959 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 18960 18961 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18963 gl_next_as_first_directive='<'sys/types.h'>' 18964 else 18965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18966 gl_next_as_first_directive=$gl_cv_next_sys_types_h 18967 fi 18968 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 WINDOWS_STAT_INODES=0 18982 18983 18984 18985 18986 18987 18988 HAVE_DECL_LOCALTIME_R=1; 18989 HAVE_NANOSLEEP=1; 18990 HAVE_STRPTIME=1; 18991 HAVE_TIMEGM=1; 18992 HAVE_TIMESPEC_GET=1; 18993 HAVE_TIMESPEC_GETRES=1; 18994 HAVE_TIMEZONE_T=0; 18995 REPLACE_CTIME=GNULIB_PORTCHECK; 18996 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 18997 REPLACE_MKTIME=GNULIB_PORTCHECK; 18998 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 18999 REPLACE_STRFTIME=GNULIB_PORTCHECK; 19000 REPLACE_TIMEGM=GNULIB_PORTCHECK; 19001 REPLACE_TZSET=GNULIB_PORTCHECK; 19002 19003 : ${GNULIB_GETTIMEOFDAY=0}; 19004 REPLACE_GMTIME=0; 19005 REPLACE_LOCALTIME=0; 19006 19007 19008 19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 19010 printf %s "checking for struct timespec in <time.h>... " >&6; } 19011 if test ${gl_cv_sys_struct_timespec_in_time_h+y} 19012 then : 19013 printf %s "(cached) " >&6 19014 else case e in #( 19015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016 /* end confdefs.h. */ 19017 #include <time.h> 19018 19019 int 19020 main (void) 19021 { 19022 static struct timespec x; x.tv_sec = x.tv_nsec; 19023 ; 19024 return 0; 19025 } 19026 _ACEOF 19027 if ac_fn_c_try_compile "$LINENO" 19028 then : 19029 gl_cv_sys_struct_timespec_in_time_h=yes 19030 else case e in #( 19031 e) gl_cv_sys_struct_timespec_in_time_h=no ;; 19032 esac 19033 fi 19034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19035 esac 19036 fi 19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 19038 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 19039 19040 TIME_H_DEFINES_STRUCT_TIMESPEC=0 19041 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 19042 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 19043 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 19044 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 19045 TIME_H_DEFINES_STRUCT_TIMESPEC=1 19046 else 19047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 19048 printf %s "checking for struct timespec in <sys/time.h>... " >&6; } 19049 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y} 19050 then : 19051 printf %s "(cached) " >&6 19052 else case e in #( 19053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19054 /* end confdefs.h. */ 19055 #include <sys/time.h> 19056 19057 int 19058 main (void) 19059 { 19060 static struct timespec x; x.tv_sec = x.tv_nsec; 19061 ; 19062 return 0; 19063 } 19064 _ACEOF 19065 if ac_fn_c_try_compile "$LINENO" 19066 then : 19067 gl_cv_sys_struct_timespec_in_sys_time_h=yes 19068 else case e in #( 19069 e) gl_cv_sys_struct_timespec_in_sys_time_h=no ;; 19070 esac 19071 fi 19072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19073 esac 19074 fi 19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 19076 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 19077 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 19078 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 19079 else 19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 19081 printf %s "checking for struct timespec in <pthread.h>... " >&6; } 19082 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y} 19083 then : 19084 printf %s "(cached) " >&6 19085 else case e in #( 19086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19087 /* end confdefs.h. */ 19088 #include <pthread.h> 19089 19090 int 19091 main (void) 19092 { 19093 static struct timespec x; x.tv_sec = x.tv_nsec; 19094 ; 19095 return 0; 19096 } 19097 _ACEOF 19098 if ac_fn_c_try_compile "$LINENO" 19099 then : 19100 gl_cv_sys_struct_timespec_in_pthread_h=yes 19101 else case e in #( 19102 e) gl_cv_sys_struct_timespec_in_pthread_h=no ;; 19103 esac 19104 fi 19105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19106 esac 19107 fi 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 19109 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 19110 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 19111 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 19112 else 19113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 19114 printf %s "checking for struct timespec in <unistd.h>... " >&6; } 19115 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y} 19116 then : 19117 printf %s "(cached) " >&6 19118 else case e in #( 19119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19120 /* end confdefs.h. */ 19121 #include <unistd.h> 19122 19123 int 19124 main (void) 19125 { 19126 static struct timespec x; x.tv_sec = x.tv_nsec; 19127 ; 19128 return 0; 19129 } 19130 _ACEOF 19131 if ac_fn_c_try_compile "$LINENO" 19132 then : 19133 gl_cv_sys_struct_timespec_in_unistd_h=yes 19134 else case e in #( 19135 e) gl_cv_sys_struct_timespec_in_unistd_h=no ;; 19136 esac 19137 fi 19138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19139 esac 19140 fi 19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 19142 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 19143 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 19144 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 19145 fi 19146 fi 19147 fi 19148 fi 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 if test $gl_cv_have_include_next = yes; then 19166 gl_cv_next_time_h='<'time.h'>' 19167 else 19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 19169 printf %s "checking absolute name of <time.h>... " >&6; } 19170 if test ${gl_cv_next_time_h+y} 19171 then : 19172 printf %s "(cached) " >&6 19173 else case e in #( 19174 e) 19175 19176 19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19178 /* end confdefs.h. */ 19179 #include <time.h> 19180 _ACEOF 19181 case "$host_os" in 19182 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19183 *) gl_absname_cpp="$ac_cpp" ;; 19184 esac 19185 19186 case "$host_os" in 19187 mingw*) 19188 gl_dirsep_regex='[/\\]' 19189 ;; 19190 *) 19191 gl_dirsep_regex='\/' 19192 ;; 19193 esac 19194 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19195 gl_header_literal_regex=`echo 'time.h' \ 19196 | sed -e "$gl_make_literal_regex_sed"` 19197 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19198 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19199 s|^/[^/]|//&| 19200 p 19201 q 19202 }' 19203 19204 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19205 sed -n "$gl_absolute_header_sed"` 19206 19207 gl_header=$gl_cv_absolute_time_h 19208 gl_cv_next_time_h='"'$gl_header'"' 19209 19210 ;; 19211 esac 19212 fi 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 19214 printf "%s\n" "$gl_cv_next_time_h" >&6; } 19215 fi 19216 NEXT_TIME_H=$gl_cv_next_time_h 19217 19218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19220 gl_next_as_first_directive='<'time.h'>' 19221 else 19222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19223 gl_next_as_first_directive=$gl_cv_next_time_h 19224 fi 19225 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5 19239 printf %s "checking for TIME_UTC in <time.h>... " >&6; } 19240 if test ${gl_cv_time_h_has_TIME_UTC+y} 19241 then : 19242 printf %s "(cached) " >&6 19243 else case e in #( 19244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19245 /* end confdefs.h. */ 19246 #include <time.h> 19247 19248 int 19249 main (void) 19250 { 19251 static int x = TIME_UTC; x++; 19252 ; 19253 return 0; 19254 } 19255 _ACEOF 19256 if ac_fn_c_try_compile "$LINENO" 19257 then : 19258 gl_cv_time_h_has_TIME_UTC=yes 19259 else case e in #( 19260 e) gl_cv_time_h_has_TIME_UTC=no ;; 19261 esac 19262 fi 19263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19264 esac 19265 fi 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 19267 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; } 19268 if test $gl_cv_time_h_has_TIME_UTC = yes; then 19269 TIME_H_DEFINES_TIME_UTC=1 19270 else 19271 TIME_H_DEFINES_TIME_UTC=0 19272 fi 19273 19274 19275 19276 19277 GL_GNULIB_CTIME=0 19278 19279 19280 19281 GL_GNULIB_MKTIME=0 19282 19283 19284 19285 GL_GNULIB_LOCALTIME=0 19286 19287 19288 19289 GL_GNULIB_NANOSLEEP=0 19290 19291 19292 19293 GL_GNULIB_STRFTIME=0 19294 19295 19296 19297 GL_GNULIB_STRPTIME=0 19298 19299 19300 19301 GL_GNULIB_TIMEGM=0 19302 19303 19304 19305 GL_GNULIB_TIMESPEC_GET=0 19306 19307 19308 19309 GL_GNULIB_TIMESPEC_GETRES=0 19310 19311 19312 19313 GL_GNULIB_TIME_R=0 19314 19315 19316 19317 GL_GNULIB_TIME_RZ=0 19318 19319 19320 19321 GL_GNULIB_TZSET=0 19322 19323 19324 19325 GL_GNULIB_MDA_TZSET=1 19326 19327 19328 19329 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19330 if test "x$ac_cv_have_decl_execvpe" = xyes 19331 then : 19332 ac_have_decl=1 19333 else case e in #( 19334 e) ac_have_decl=0 ;; 19335 esac 19336 fi 19337 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 if test $gl_cv_have_include_next = yes; then 19352 gl_cv_next_unistd_h='<'unistd.h'>' 19353 else 19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 19355 printf %s "checking absolute name of <unistd.h>... " >&6; } 19356 if test ${gl_cv_next_unistd_h+y} 19357 then : 19358 printf %s "(cached) " >&6 19359 else case e in #( 19360 e) 19361 if test $ac_cv_header_unistd_h = yes; then 19362 19363 19364 19365 19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19367 /* end confdefs.h. */ 19368 #include <unistd.h> 19369 _ACEOF 19370 case "$host_os" in 19371 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19372 *) gl_absname_cpp="$ac_cpp" ;; 19373 esac 19374 19375 case "$host_os" in 19376 mingw*) 19377 gl_dirsep_regex='[/\\]' 19378 ;; 19379 *) 19380 gl_dirsep_regex='\/' 19381 ;; 19382 esac 19383 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19384 gl_header_literal_regex=`echo 'unistd.h' \ 19385 | sed -e "$gl_make_literal_regex_sed"` 19386 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19387 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19388 s|^/[^/]|//&| 19389 p 19390 q 19391 }' 19392 19393 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19394 sed -n "$gl_absolute_header_sed"` 19395 19396 gl_header=$gl_cv_absolute_unistd_h 19397 gl_cv_next_unistd_h='"'$gl_header'"' 19398 else 19399 gl_cv_next_unistd_h='<'unistd.h'>' 19400 fi 19401 19402 ;; 19403 esac 19404 fi 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 19406 printf "%s\n" "$gl_cv_next_unistd_h" >&6; } 19407 fi 19408 NEXT_UNISTD_H=$gl_cv_next_unistd_h 19409 19410 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19412 gl_next_as_first_directive='<'unistd.h'>' 19413 else 19414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19415 gl_next_as_first_directive=$gl_cv_next_unistd_h 19416 fi 19417 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 19418 19419 19420 19421 19422 if test $ac_cv_header_unistd_h = yes; then 19423 HAVE_UNISTD_H=1 19424 else 19425 HAVE_UNISTD_H=0 19426 fi 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 if test $ac_cv_have_decl_execvpe = no; then 19441 HAVE_DECL_EXECVPE=0 19442 fi 19443 19444 ac_fn_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19445 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes 19446 then : 19447 ac_have_decl=1 19448 else case e in #( 19449 e) ac_have_decl=0 ;; 19450 esac 19451 fi 19452 printf "%s\n" "#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl" >>confdefs.h 19453 19454 ac_fn_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19455 if test "x$ac_cv_have_decl_feof_unlocked" = xyes 19456 then : 19457 ac_have_decl=1 19458 else case e in #( 19459 e) ac_have_decl=0 ;; 19460 esac 19461 fi 19462 printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h 19463 19464 ac_fn_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19465 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes 19466 then : 19467 ac_have_decl=1 19468 else case e in #( 19469 e) ac_have_decl=0 ;; 19470 esac 19471 fi 19472 printf "%s\n" "#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl" >>confdefs.h 19473 19474 ac_fn_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19475 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes 19476 then : 19477 ac_have_decl=1 19478 else case e in #( 19479 e) ac_have_decl=0 ;; 19480 esac 19481 fi 19482 printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h 19483 19484 ac_fn_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19485 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes 19486 then : 19487 ac_have_decl=1 19488 else case e in #( 19489 e) ac_have_decl=0 ;; 19490 esac 19491 fi 19492 printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h 19493 19494 ac_fn_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19495 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes 19496 then : 19497 ac_have_decl=1 19498 else case e in #( 19499 e) ac_have_decl=0 ;; 19500 esac 19501 fi 19502 printf "%s\n" "#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl" >>confdefs.h 19503 19504 ac_fn_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19505 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes 19506 then : 19507 ac_have_decl=1 19508 else case e in #( 19509 e) ac_have_decl=0 ;; 19510 esac 19511 fi 19512 printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h 19513 19514 ac_fn_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19515 if test "x$ac_cv_have_decl_fread_unlocked" = xyes 19516 then : 19517 ac_have_decl=1 19518 else case e in #( 19519 e) ac_have_decl=0 ;; 19520 esac 19521 fi 19522 printf "%s\n" "#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl" >>confdefs.h 19523 19524 ac_fn_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19525 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes 19526 then : 19527 ac_have_decl=1 19528 else case e in #( 19529 e) ac_have_decl=0 ;; 19530 esac 19531 fi 19532 printf "%s\n" "#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl" >>confdefs.h 19533 19534 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19535 if test "x$ac_cv_have_decl_getc_unlocked" = xyes 19536 then : 19537 ac_have_decl=1 19538 else case e in #( 19539 e) ac_have_decl=0 ;; 19540 esac 19541 fi 19542 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h 19543 19544 ac_fn_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19545 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes 19546 then : 19547 ac_have_decl=1 19548 else case e in #( 19549 e) ac_have_decl=0 ;; 19550 esac 19551 fi 19552 printf "%s\n" "#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl" >>confdefs.h 19553 19554 ac_fn_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19555 if test "x$ac_cv_have_decl_putc_unlocked" = xyes 19556 then : 19557 ac_have_decl=1 19558 else case e in #( 19559 e) ac_have_decl=0 ;; 19560 esac 19561 fi 19562 printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h 19563 19564 ac_fn_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 19565 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes 19566 then : 19567 ac_have_decl=1 19568 else case e in #( 19569 e) ac_have_decl=0 ;; 19570 esac 19571 fi 19572 printf "%s\n" "#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl" >>confdefs.h 19573 19574 19575 19576 19577 if test $ac_cv_header_features_h = yes; then 19578 HAVE_FEATURES_H=1 19579 else 19580 HAVE_FEATURES_H=0 19581 fi 19582 19583 19584 19585 19586 19587 if test $ac_cv_header_crtdefs_h = yes; then 19588 HAVE_CRTDEFS_H=1 19589 else 19590 HAVE_CRTDEFS_H=0 19591 fi 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 if test $gl_cv_have_include_next = yes; then 19607 gl_cv_next_wchar_h='<'wchar.h'>' 19608 else 19609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 19610 printf %s "checking absolute name of <wchar.h>... " >&6; } 19611 if test ${gl_cv_next_wchar_h+y} 19612 then : 19613 printf %s "(cached) " >&6 19614 else case e in #( 19615 e) 19616 if test $ac_cv_header_wchar_h = yes; then 19617 19618 19619 19620 19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19622 /* end confdefs.h. */ 19623 #include <wchar.h> 19624 _ACEOF 19625 case "$host_os" in 19626 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19627 *) gl_absname_cpp="$ac_cpp" ;; 19628 esac 19629 19630 case "$host_os" in 19631 mingw*) 19632 gl_dirsep_regex='[/\\]' 19633 ;; 19634 *) 19635 gl_dirsep_regex='\/' 19636 ;; 19637 esac 19638 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19639 gl_header_literal_regex=`echo 'wchar.h' \ 19640 | sed -e "$gl_make_literal_regex_sed"` 19641 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19642 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19643 s|^/[^/]|//&| 19644 p 19645 q 19646 }' 19647 19648 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19649 sed -n "$gl_absolute_header_sed"` 19650 19651 gl_header=$gl_cv_absolute_wchar_h 19652 gl_cv_next_wchar_h='"'$gl_header'"' 19653 else 19654 gl_cv_next_wchar_h='<'wchar.h'>' 19655 fi 19656 19657 ;; 19658 esac 19659 fi 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 19661 printf "%s\n" "$gl_cv_next_wchar_h" >&6; } 19662 fi 19663 NEXT_WCHAR_H=$gl_cv_next_wchar_h 19664 19665 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19667 gl_next_as_first_directive='<'wchar.h'>' 19668 else 19669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19670 gl_next_as_first_directive=$gl_cv_next_wchar_h 19671 fi 19672 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 19673 19674 19675 19676 19677 if test $ac_cv_header_wchar_h = yes; then 19678 HAVE_WCHAR_H=1 19679 else 19680 HAVE_WCHAR_H=0 19681 fi 19682 19683 19684 19685 19686 19687 if test $gt_cv_c_wint_t = yes; then 19688 HAVE_WINT_T=1 19689 else 19690 HAVE_WINT_T=0 19691 fi 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " 19703 #include <wchar.h> 19704 19705 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19706 if test "x$ac_cv_have_decl_wcsdup" = xyes 19707 then : 19708 ac_have_decl=1 19709 else case e in #( 19710 e) ac_have_decl=0 ;; 19711 esac 19712 fi 19713 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h 19714 19715 if test $ac_cv_have_decl_wcsdup = no; then 19716 HAVE_DECL_WCSDUP=0 19717 fi 19718 19719 19720 19721 19722 HAVE_ISWBLANK=1; 19723 HAVE_WCTYPE_T=1; 19724 HAVE_WCTRANS_T=1; 19725 REPLACE_ISWBLANK=0; 19726 REPLACE_ISWDIGIT=0; 19727 REPLACE_ISWXDIGIT=0; 19728 19729 19730 19731 19732 19733 19734 19735 19736 if test $ac_cv_func_iswcntrl = yes; then 19737 HAVE_ISWCNTRL=1 19738 else 19739 HAVE_ISWCNTRL=0 19740 fi 19741 19742 19743 19744 if test $gt_cv_c_wint_t = yes; then 19745 HAVE_WINT_T=1 19746 else 19747 HAVE_WINT_T=0 19748 fi 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 if test $gl_cv_have_include_next = yes; then 19763 gl_cv_next_wctype_h='<'wctype.h'>' 19764 else 19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 19766 printf %s "checking absolute name of <wctype.h>... " >&6; } 19767 if test ${gl_cv_next_wctype_h+y} 19768 then : 19769 printf %s "(cached) " >&6 19770 else case e in #( 19771 e) 19772 if test $ac_cv_header_wctype_h = yes; then 19773 19774 19775 19776 19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19778 /* end confdefs.h. */ 19779 #include <wctype.h> 19780 _ACEOF 19781 case "$host_os" in 19782 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19783 *) gl_absname_cpp="$ac_cpp" ;; 19784 esac 19785 19786 case "$host_os" in 19787 mingw*) 19788 gl_dirsep_regex='[/\\]' 19789 ;; 19790 *) 19791 gl_dirsep_regex='\/' 19792 ;; 19793 esac 19794 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19795 gl_header_literal_regex=`echo 'wctype.h' \ 19796 | sed -e "$gl_make_literal_regex_sed"` 19797 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19799 s|^/[^/]|//&| 19800 p 19801 q 19802 }' 19803 19804 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19805 sed -n "$gl_absolute_header_sed"` 19806 19807 gl_header=$gl_cv_absolute_wctype_h 19808 gl_cv_next_wctype_h='"'$gl_header'"' 19809 else 19810 gl_cv_next_wctype_h='<'wctype.h'>' 19811 fi 19812 19813 ;; 19814 esac 19815 fi 19816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 19817 printf "%s\n" "$gl_cv_next_wctype_h" >&6; } 19818 fi 19819 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 19820 19821 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19822 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19823 gl_next_as_first_directive='<'wctype.h'>' 19824 else 19825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19826 gl_next_as_first_directive=$gl_cv_next_wctype_h 19827 fi 19828 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 19829 19830 19831 19832 19833 if test $ac_cv_header_wctype_h = yes; then 19834 if test $ac_cv_func_iswcntrl = yes; then 19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 19836 printf %s "checking whether iswcntrl works... " >&6; } 19837 if test ${gl_cv_func_iswcntrl_works+y} 19838 then : 19839 printf %s "(cached) " >&6 19840 else case e in #( 19841 e) 19842 if test "$cross_compiling" = yes 19843 then : 19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19845 /* end confdefs.h. */ 19846 #include <stdlib.h> 19847 #if __GNU_LIBRARY__ == 1 19848 Linux libc5 i18n is broken. 19849 #endif 19850 int 19851 main (void) 19852 { 19853 19854 ; 19855 return 0; 19856 } 19857 _ACEOF 19858 if ac_fn_c_try_compile "$LINENO" 19859 then : 19860 gl_cv_func_iswcntrl_works="guessing yes" 19861 else case e in #( 19862 e) gl_cv_func_iswcntrl_works="guessing no" ;; 19863 esac 19864 fi 19865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19866 19867 else case e in #( 19868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19869 /* end confdefs.h. */ 19870 19871 #include <wchar.h> 19872 #include <wctype.h> 19873 int main () { return iswprint ('x') == 0; } 19874 19875 _ACEOF 19876 if ac_fn_c_try_run "$LINENO" 19877 then : 19878 gl_cv_func_iswcntrl_works=yes 19879 else case e in #( 19880 e) gl_cv_func_iswcntrl_works=no ;; 19881 esac 19882 fi 19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19884 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19885 esac 19886 fi 19887 19888 ;; 19889 esac 19890 fi 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 19892 printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; } 19893 fi 19894 HAVE_WCTYPE_H=1 19895 else 19896 HAVE_WCTYPE_H=0 19897 fi 19898 19899 19900 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then 19901 REPLACE_ISWCNTRL=1 19902 else 19903 case "$gl_cv_func_iswcntrl_works" in 19904 *yes) REPLACE_ISWCNTRL=0 ;; 19905 *) REPLACE_ISWCNTRL=1 ;; 19906 esac 19907 fi 19908 19909 19910 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 19911 : 19912 fi 19913 19914 if test $REPLACE_ISWCNTRL = 1; then 19915 REPLACE_TOWLOWER=1 19916 else 19917 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 19918 if test "x$ac_cv_func_towlower" = xyes 19919 then : 19920 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h 19921 19922 fi 19923 19924 if test $ac_cv_func_towlower = yes; then 19925 REPLACE_TOWLOWER=0 19926 else 19927 ac_fn_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h> 19928 #if HAVE_WCTYPE_H 19929 # include <wctype.h> 19930 #endif 19931 19932 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19933 if test "x$ac_cv_have_decl_towlower" = xyes 19934 then : 19935 ac_have_decl=1 19936 else case e in #( 19937 e) ac_have_decl=0 ;; 19938 esac 19939 fi 19940 printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h 19941 19942 if test $ac_cv_have_decl_towlower = yes; then 19943 REPLACE_TOWLOWER=1 19944 else 19945 REPLACE_TOWLOWER=0 19946 fi 19947 fi 19948 fi 19949 19950 19951 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 19952 : 19953 fi 19954 19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 19956 printf %s "checking for wctype_t... " >&6; } 19957 if test ${gl_cv_type_wctype_t+y} 19958 then : 19959 printf %s "(cached) " >&6 19960 else case e in #( 19961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19962 /* end confdefs.h. */ 19963 #include <wchar.h> 19964 #if HAVE_WCTYPE_H 19965 # include <wctype.h> 19966 #endif 19967 wctype_t a; 19968 19969 int 19970 main (void) 19971 { 19972 19973 ; 19974 return 0; 19975 } 19976 _ACEOF 19977 if ac_fn_c_try_compile "$LINENO" 19978 then : 19979 gl_cv_type_wctype_t=yes 19980 else case e in #( 19981 e) gl_cv_type_wctype_t=no ;; 19982 esac 19983 fi 19984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19985 ;; 19986 esac 19987 fi 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 19989 printf "%s\n" "$gl_cv_type_wctype_t" >&6; } 19990 if test $gl_cv_type_wctype_t = no; then 19991 HAVE_WCTYPE_T=0 19992 fi 19993 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 19995 printf %s "checking for wctrans_t... " >&6; } 19996 if test ${gl_cv_type_wctrans_t+y} 19997 then : 19998 printf %s "(cached) " >&6 19999 else case e in #( 20000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20001 /* end confdefs.h. */ 20002 #include <wchar.h> 20003 #include <wctype.h> 20004 wctrans_t a; 20005 20006 int 20007 main (void) 20008 { 20009 20010 ; 20011 return 0; 20012 } 20013 _ACEOF 20014 if ac_fn_c_try_compile "$LINENO" 20015 then : 20016 gl_cv_type_wctrans_t=yes 20017 else case e in #( 20018 e) gl_cv_type_wctrans_t=no ;; 20019 esac 20020 fi 20021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20022 ;; 20023 esac 20024 fi 20025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 20026 printf "%s\n" "$gl_cv_type_wctrans_t" >&6; } 20027 if test $gl_cv_type_wctrans_t = no; then 20028 HAVE_WCTRANS_T=0 20029 fi 20030 20031 20032 20033 20034 20035 20036 20037 GL_GNULIB_ISWBLANK=0 20038 20039 20040 20041 GL_GNULIB_ISWDIGIT=0 20042 20043 20044 20045 GL_GNULIB_ISWXDIGIT=0 20046 20047 20048 20049 GL_GNULIB_WCTYPE=0 20050 20051 20052 20053 GL_GNULIB_ISWCTYPE=0 20054 20055 20056 20057 GL_GNULIB_WCTRANS=0 20058 20059 20060 20061 GL_GNULIB_TOWCTRANS=0 20062 20063 20064 20065 20066 20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5 20068 printf %s "checking for C compiler option to allow warnings... " >&6; } 20069 if test ${gl_cv_cc_wallow+y} 20070 then : 20071 printf %s "(cached) " >&6 20072 else case e in #( 20073 e) rm -f conftest* 20074 echo 'int dummy;' > conftest.c 20075 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err' 20076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7401 20077 (eval $ac_try) 2>&5 7402 20078 ac_status=$? 7403 echo "$as_me:$LINENO: \$? = $ac_status" >&57404 (exit $ac_status); }; } &&7405 { ac_try='test -s conftest$ac_exeext'7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"")>&520079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20080 test $ac_status = 0; }; } >/dev/null 20081 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err' 20082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7407 20083 (eval $ac_try) 2>&5 7408 20084 ac_status=$? 7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7410 (exit $ac_status); }; }; then 7411 eval "$as_ac_var=yes" 20085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20086 test $ac_status = 0; }; } >/dev/null 20087 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then 20088 gl_cv_cc_wallow='-Wno-error' 20089 else 20090 gl_cv_cc_wallow=none 20091 fi 20092 rm -f conftest* 20093 ;; 20094 esac 20095 fi 20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5 20097 printf "%s\n" "$gl_cv_cc_wallow" >&6; } 20098 case "$gl_cv_cc_wallow" in 20099 none) GL_CFLAG_ALLOW_WARNINGS='' ;; 20100 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;; 20101 esac 20102 20103 20104 20105 if test -n "$CXX" && test "$CXX" != no; then 20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5 20107 printf %s "checking for C++ compiler option to allow warnings... " >&6; } 20108 if test ${gl_cv_cxx_wallow+y} 20109 then : 20110 printf %s "(cached) " >&6 20111 else case e in #( 20112 e) rm -f conftest* 20113 echo 'int dummy;' > conftest.cc 20114 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err' 20115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 20116 (eval $ac_try) 2>&5 20117 ac_status=$? 20118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20119 test $ac_status = 0; }; } >/dev/null 20120 { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err' 20121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 20122 (eval $ac_try) 2>&5 20123 ac_status=$? 20124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20125 test $ac_status = 0; }; } >/dev/null 20126 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then 20127 gl_cv_cxx_wallow='-Wno-error' 20128 else 20129 gl_cv_cxx_wallow=none 20130 fi 20131 rm -f conftest* 20132 ;; 20133 esac 20134 fi 20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5 20136 printf "%s\n" "$gl_cv_cxx_wallow" >&6; } 20137 case "$gl_cv_cxx_wallow" in 20138 none) GL_CXXFLAG_ALLOW_WARNINGS='' ;; 20139 *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;; 20140 esac 20141 else 20142 GL_CXXFLAG_ALLOW_WARNINGS='' 20143 fi 20144 20145 20146 20147 HAVE_STRUCT_SOCKADDR_STORAGE=1; 20148 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; 20149 20150 HAVE_SA_FAMILY_T=1; 20151 HAVE_ACCEPT4=1; 20152 20153 20154 if test $ac_cv_header_sys_socket_h = no; then 20155 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 20156 if test "x$ac_cv_header_ws2tcpip_h" = xyes 20157 then : 20158 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 20159 20160 fi 20161 20162 fi 20163 20164 20165 20166 20167 20168 case "$host_os" in 20169 osf*) 20170 20171 printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h 20172 20173 ;; 20174 esac 20175 20176 GL_GENERATE_SYS_SOCKET_H=false 20177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5 20178 printf %s "checking whether <sys/socket.h> is self-contained... " >&6; } 20179 if test ${gl_cv_header_sys_socket_h_selfcontained+y} 20180 then : 20181 printf %s "(cached) " >&6 20182 else case e in #( 20183 e) 20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20185 /* end confdefs.h. */ 20186 #include <sys/socket.h> 20187 int 20188 main (void) 20189 { 20190 20191 ; 20192 return 0; 20193 } 20194 _ACEOF 20195 if ac_fn_c_try_compile "$LINENO" 20196 then : 20197 gl_cv_header_sys_socket_h_selfcontained=yes 20198 else case e in #( 20199 e) gl_cv_header_sys_socket_h_selfcontained=no ;; 20200 esac 20201 fi 20202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20203 ;; 20204 esac 20205 fi 20206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 20207 printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; } 20208 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then 20209 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" 20210 if test "x$ac_cv_func_shutdown" = xyes 20211 then : 20212 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h 20213 20214 fi 20215 20216 if test $ac_cv_func_shutdown = yes; then 20217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5 20218 printf %s "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; } 20219 if test ${gl_cv_header_sys_socket_h_shut+y} 20220 then : 20221 printf %s "(cached) " >&6 20222 else case e in #( 20223 e) 20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20225 /* end confdefs.h. */ 20226 #include <sys/socket.h> 20227 int 20228 main (void) 20229 { 20230 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; 20231 ; 20232 return 0; 20233 } 20234 _ACEOF 20235 if ac_fn_c_try_compile "$LINENO" 20236 then : 20237 gl_cv_header_sys_socket_h_shut=yes 20238 else case e in #( 20239 e) gl_cv_header_sys_socket_h_shut=no ;; 20240 esac 20241 fi 20242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20243 ;; 20244 esac 20245 fi 20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 20247 printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; } 20248 if test $gl_cv_header_sys_socket_h_shut = no; then 20249 GL_GENERATE_SYS_SOCKET_H=true 20250 fi 20251 fi 20252 fi 20253 # We need to check for ws2tcpip.h now. 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 if test $gl_cv_have_include_next = yes; then 20266 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 20267 else 20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5 20269 printf %s "checking absolute name of <sys/socket.h>... " >&6; } 20270 if test ${gl_cv_next_sys_socket_h+y} 20271 then : 20272 printf %s "(cached) " >&6 20273 else case e in #( 20274 e) 20275 if test $ac_cv_header_sys_socket_h = yes; then 20276 20277 20278 20279 20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20281 /* end confdefs.h. */ 20282 #include <sys/socket.h> 20283 _ACEOF 20284 case "$host_os" in 20285 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20286 *) gl_absname_cpp="$ac_cpp" ;; 20287 esac 20288 20289 case "$host_os" in 20290 mingw*) 20291 gl_dirsep_regex='[/\\]' 20292 ;; 20293 *) 20294 gl_dirsep_regex='\/' 20295 ;; 20296 esac 20297 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20298 gl_header_literal_regex=`echo 'sys/socket.h' \ 20299 | sed -e "$gl_make_literal_regex_sed"` 20300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20302 s|^/[^/]|//&| 20303 p 20304 q 20305 }' 20306 20307 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20308 sed -n "$gl_absolute_header_sed"` 20309 20310 gl_header=$gl_cv_absolute_sys_socket_h 20311 gl_cv_next_sys_socket_h='"'$gl_header'"' 20312 else 20313 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 20314 fi 20315 20316 ;; 20317 esac 20318 fi 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 20320 printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; } 20321 fi 20322 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h 20323 20324 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20326 gl_next_as_first_directive='<'sys/socket.h'>' 20327 else 20328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20329 gl_next_as_first_directive=$gl_cv_next_sys_socket_h 20330 fi 20331 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive 20332 20333 20334 20335 20336 if test $ac_cv_header_sys_socket_h = yes; then 20337 HAVE_SYS_SOCKET_H=1 20338 else 20339 HAVE_SYS_SOCKET_H=0 20340 fi 20341 20342 20343 20344 if test $ac_cv_header_sys_socket_h = yes; then 20345 HAVE_WS2TCPIP_H=0 20346 else 20347 if test $ac_cv_header_ws2tcpip_h = yes; then 20348 HAVE_WS2TCPIP_H=1 20349 else 20350 HAVE_WS2TCPIP_H=0 20351 fi 20352 fi 20353 20354 20355 20356 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 20357 /* sys/types.h is not needed according to POSIX, but the 20358 sys/socket.h in i386-unknown-freebsd4.10 and 20359 powerpc-apple-darwin5.5 required it. */ 20360 #include <sys/types.h> 20361 #ifdef HAVE_SYS_SOCKET_H 20362 #include <sys/socket.h> 20363 #endif 20364 #ifdef HAVE_WS2TCPIP_H 20365 #include <ws2tcpip.h> 20366 #endif 20367 20368 " 20369 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 20370 then : 20371 20372 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 20373 20374 20375 fi 20376 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 20377 /* sys/types.h is not needed according to POSIX, but the 20378 sys/socket.h in i386-unknown-freebsd4.10 and 20379 powerpc-apple-darwin5.5 required it. */ 20380 #include <sys/types.h> 20381 #ifdef HAVE_SYS_SOCKET_H 20382 #include <sys/socket.h> 20383 #endif 20384 #ifdef HAVE_WS2TCPIP_H 20385 #include <ws2tcpip.h> 20386 #endif 20387 20388 " 20389 if test "x$ac_cv_type_sa_family_t" = xyes 20390 then : 20391 20392 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 20393 20394 20395 fi 20396 20397 if test $ac_cv_type_struct_sockaddr_storage = no; then 20398 HAVE_STRUCT_SOCKADDR_STORAGE=0 20399 fi 20400 if test $ac_cv_type_sa_family_t = no; then 20401 HAVE_SA_FAMILY_T=0 20402 fi 20403 if test $ac_cv_type_struct_sockaddr_storage != no; then 20404 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 20405 #ifdef HAVE_SYS_SOCKET_H 20406 #include <sys/socket.h> 20407 #endif 20408 #ifdef HAVE_WS2TCPIP_H 20409 #include <ws2tcpip.h> 20410 #endif 20411 20412 " 20413 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 20414 then : 20415 20416 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h 20417 20418 20419 else case e in #( 20420 e) HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 ;; 20421 esac 20422 fi 20423 20424 fi 20425 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ 20426 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then 20427 GL_GENERATE_SYS_SOCKET_H=true 20428 fi 20429 20430 20431 20432 20433 if test $ac_cv_header_sys_socket_h != yes; then 20434 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 20435 if test "x$ac_cv_header_winsock2_h" = xyes 20436 then : 20437 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 20438 20439 fi 20440 20441 fi 20442 if test "$ac_cv_header_winsock2_h" = yes; then 20443 HAVE_WINSOCK2_H=1 20444 UNISTD_H_HAVE_WINSOCK2_H=1 20445 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 20446 else 20447 HAVE_WINSOCK2_H=0 20448 fi 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 GL_GNULIB_SOCKET=0 20461 20462 20463 20464 GL_GNULIB_CONNECT=0 20465 20466 20467 20468 GL_GNULIB_ACCEPT=0 20469 20470 20471 20472 GL_GNULIB_BIND=0 20473 20474 20475 20476 GL_GNULIB_GETPEERNAME=0 20477 20478 20479 20480 GL_GNULIB_GETSOCKNAME=0 20481 20482 20483 20484 GL_GNULIB_GETSOCKOPT=0 20485 20486 20487 20488 GL_GNULIB_LISTEN=0 20489 20490 20491 20492 GL_GNULIB_RECV=0 20493 20494 20495 20496 GL_GNULIB_SEND=0 20497 20498 20499 20500 GL_GNULIB_RECVFROM=0 20501 20502 20503 20504 GL_GNULIB_SENDTO=0 20505 20506 20507 20508 GL_GNULIB_SETSOCKOPT=0 20509 20510 20511 20512 GL_GNULIB_SHUTDOWN=0 20513 20514 20515 20516 GL_GNULIB_ACCEPT4=0 20517 20518 20519 20520 20521 HAVE_DECL_INET_NTOP=1; 20522 HAVE_DECL_INET_PTON=1; 20523 REPLACE_INET_NTOP=0; 20524 REPLACE_INET_PTON=0; 20525 20526 20527 20528 20529 20530 20531 if test $ac_cv_header_arpa_inet_h = yes; then 20532 HAVE_ARPA_INET_H=1 20533 else 20534 HAVE_ARPA_INET_H=0 20535 fi 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 if test $gl_cv_have_include_next = yes; then 20547 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 20548 else 20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5 20550 printf %s "checking absolute name of <arpa/inet.h>... " >&6; } 20551 if test ${gl_cv_next_arpa_inet_h+y} 20552 then : 20553 printf %s "(cached) " >&6 20554 else case e in #( 20555 e) 20556 if test $ac_cv_header_arpa_inet_h = yes; then 20557 20558 20559 20560 20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20562 /* end confdefs.h. */ 20563 #include <arpa/inet.h> 20564 _ACEOF 20565 case "$host_os" in 20566 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20567 *) gl_absname_cpp="$ac_cpp" ;; 20568 esac 20569 20570 case "$host_os" in 20571 mingw*) 20572 gl_dirsep_regex='[/\\]' 20573 ;; 20574 *) 20575 gl_dirsep_regex='\/' 20576 ;; 20577 esac 20578 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20579 gl_header_literal_regex=`echo 'arpa/inet.h' \ 20580 | sed -e "$gl_make_literal_regex_sed"` 20581 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20582 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20583 s|^/[^/]|//&| 20584 p 20585 q 20586 }' 20587 20588 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20589 sed -n "$gl_absolute_header_sed"` 20590 20591 gl_header=$gl_cv_absolute_arpa_inet_h 20592 gl_cv_next_arpa_inet_h='"'$gl_header'"' 20593 else 20594 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 20595 fi 20596 20597 ;; 20598 esac 20599 fi 20600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 20601 printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; } 20602 fi 20603 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h 20604 20605 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20607 gl_next_as_first_directive='<'arpa/inet.h'>' 20608 else 20609 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20610 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h 20611 fi 20612 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 if test $ac_cv_header_sys_socket_h = yes; then 20623 HAVE_WS2TCPIP_H=0 20624 else 20625 if test $ac_cv_header_ws2tcpip_h = yes; then 20626 HAVE_WS2TCPIP_H=1 20627 else 20628 HAVE_WS2TCPIP_H=0 20629 fi 20630 fi 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 GL_GNULIB_INET_NTOP=0 20641 20642 20643 20644 GL_GNULIB_INET_PTON=0 20645 20646 20647 20648 20649 HAVE_OPENDIR=1; 20650 HAVE_READDIR=1; 20651 HAVE_REWINDDIR=1; 20652 HAVE_CLOSEDIR=1; 20653 HAVE_DECL_DIRFD=1; 20654 HAVE_DECL_FDOPENDIR=1; 20655 HAVE_FDOPENDIR=1; 20656 HAVE_SCANDIR=1; 20657 HAVE_ALPHASORT=1; 20658 REPLACE_OPENDIR=0; 20659 REPLACE_CLOSEDIR=0; 20660 REPLACE_DIRFD=0; 20661 REPLACE_FDOPENDIR=0; 20662 20663 20664 20665 20666 20667 20668 20669 GL_GNULIB_OPENDIR=0 20670 20671 20672 20673 GL_GNULIB_READDIR=0 20674 20675 20676 20677 GL_GNULIB_REWINDDIR=0 20678 20679 20680 20681 GL_GNULIB_CLOSEDIR=0 20682 20683 20684 20685 GL_GNULIB_DIRFD=0 20686 20687 20688 20689 GL_GNULIB_FDOPENDIR=0 20690 20691 20692 20693 GL_GNULIB_SCANDIR=0 20694 20695 20696 20697 GL_GNULIB_ALPHASORT=0 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 if test $gl_cv_have_include_next = yes; then 20715 gl_cv_next_dirent_h='<'dirent.h'>' 20716 else 20717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5 20718 printf %s "checking absolute name of <dirent.h>... " >&6; } 20719 if test ${gl_cv_next_dirent_h+y} 20720 then : 20721 printf %s "(cached) " >&6 20722 else case e in #( 20723 e) 20724 if test $ac_cv_header_dirent_h = yes; then 20725 20726 20727 20728 20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20730 /* end confdefs.h. */ 20731 #include <dirent.h> 20732 _ACEOF 20733 case "$host_os" in 20734 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20735 *) gl_absname_cpp="$ac_cpp" ;; 20736 esac 20737 20738 case "$host_os" in 20739 mingw*) 20740 gl_dirsep_regex='[/\\]' 20741 ;; 20742 *) 20743 gl_dirsep_regex='\/' 20744 ;; 20745 esac 20746 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20747 gl_header_literal_regex=`echo 'dirent.h' \ 20748 | sed -e "$gl_make_literal_regex_sed"` 20749 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20750 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20751 s|^/[^/]|//&| 20752 p 20753 q 20754 }' 20755 20756 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20757 sed -n "$gl_absolute_header_sed"` 20758 20759 gl_header=$gl_cv_absolute_dirent_h 20760 gl_cv_next_dirent_h='"'$gl_header'"' 20761 else 20762 gl_cv_next_dirent_h='<'dirent.h'>' 20763 fi 20764 20765 ;; 20766 esac 20767 fi 20768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5 20769 printf "%s\n" "$gl_cv_next_dirent_h" >&6; } 20770 fi 20771 NEXT_DIRENT_H=$gl_cv_next_dirent_h 20772 20773 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20775 gl_next_as_first_directive='<'dirent.h'>' 20776 else 20777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20778 gl_next_as_first_directive=$gl_cv_next_dirent_h 20779 fi 20780 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive 20781 20782 20783 20784 20785 if test $ac_cv_header_dirent_h = yes; then 20786 HAVE_DIRENT_H=1 20787 else 20788 HAVE_DIRENT_H=0 20789 fi 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 20804 printf %s "checking if environ is properly declared... " >&6; } 20805 if test ${gt_cv_var_environ_declaration+y} 20806 then : 20807 printf %s "(cached) " >&6 20808 else case e in #( 20809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20810 /* end confdefs.h. */ 20811 #if HAVE_UNISTD_H 20812 #include <unistd.h> 20813 #endif 20814 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ 20815 #include <stdlib.h> 20816 20817 typedef struct { int foo; } foo_t; 20818 extern foo_t environ; 20819 int 20820 main (void) 20821 { 20822 environ.foo = 1; 20823 ; 20824 return 0; 20825 } 20826 _ACEOF 20827 if ac_fn_c_try_compile "$LINENO" 20828 then : 20829 gt_cv_var_environ_declaration=no 20830 else case e in #( 20831 e) gt_cv_var_environ_declaration=yes ;; 20832 esac 20833 fi 20834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20835 esac 20836 fi 20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 20838 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; } 20839 if test $gt_cv_var_environ_declaration = yes; then 20840 20841 printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 20842 20843 fi 20844 20845 20846 if test $gt_cv_var_environ_declaration != yes; then 20847 HAVE_DECL_ENVIRON=0 20848 fi 20849 20850 20851 20852 20853 20854 20855 20856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 20857 printf %s "checking whether stdin defaults to large file offsets... " >&6; } 20858 if test ${gl_cv_var_stdin_large_offset+y} 20859 then : 20860 printf %s "(cached) " >&6 20861 else case e in #( 20862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20863 /* end confdefs.h. */ 20864 #include <stdio.h> 20865 int 20866 main (void) 20867 { 20868 #if defined __SL64 && defined __SCLE /* cygwin */ 20869 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making 20870 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and 20871 it is easier to do a version check than building a runtime test. */ 20872 # include <cygwin/version.h> 20873 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) 20874 choke me 20875 # endif 20876 #endif 20877 ; 20878 return 0; 20879 } 20880 _ACEOF 20881 if ac_fn_c_try_link "$LINENO" 20882 then : 20883 gl_cv_var_stdin_large_offset=yes 20884 else case e in #( 20885 e) gl_cv_var_stdin_large_offset=no ;; 20886 esac 20887 fi 20888 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20889 conftest$ac_exeext conftest.$ac_ext ;; 20890 esac 20891 fi 20892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 20893 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; } 20894 20895 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 20896 if test "x$ac_cv_have_decl_fseeko" = xyes 20897 then : 20898 ac_have_decl=1 20899 else case e in #( 20900 e) ac_have_decl=0 ;; 20901 esac 20902 fi 20903 printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 20914 printf %s "checking for fseeko... " >&6; } 20915 if test ${gl_cv_func_fseeko+y} 20916 then : 20917 printf %s "(cached) " >&6 20918 else case e in #( 20919 e) 20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20921 /* end confdefs.h. */ 20922 #include <stdio.h> 20923 20924 int 20925 main (void) 20926 { 20927 fseeko (stdin, 0, 0); 20928 ; 20929 return 0; 20930 } 20931 _ACEOF 20932 if ac_fn_c_try_link "$LINENO" 20933 then : 20934 gl_cv_func_fseeko=yes 20935 else case e in #( 20936 e) gl_cv_func_fseeko=no ;; 20937 esac 20938 fi 20939 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20940 conftest$ac_exeext conftest.$ac_ext 20941 ;; 20942 esac 20943 fi 20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 20945 printf "%s\n" "$gl_cv_func_fseeko" >&6; } 20946 20947 20948 if test $ac_cv_have_decl_fseeko = no; then 20949 HAVE_DECL_FSEEKO=0 20950 fi 20951 20952 if test $gl_cv_func_fseeko = no; then 20953 HAVE_FSEEKO=0 20954 else 20955 if test $WINDOWS_64_BIT_OFF_T = 1; then 20956 REPLACE_FSEEKO=1 20957 fi 20958 if test $gl_cv_var_stdin_large_offset = no; then 20959 REPLACE_FSEEKO=1 20960 fi 20961 20962 20963 20964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 20965 printf %s "checking whether fflush works on input streams... " >&6; } 20966 if test ${gl_cv_func_fflush_stdin+y} 20967 then : 20968 printf %s "(cached) " >&6 20969 else case e in #( 20970 e) echo hello world > conftest.txt 20971 if test "$cross_compiling" = yes 20972 then : 20973 case "$host_os" in 20974 # Guess no on native Windows. 20975 mingw*) gl_cv_func_fflush_stdin="guessing no" ;; 20976 *) gl_cv_func_fflush_stdin=cross ;; 20977 esac 20978 20979 else case e in #( 20980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20981 /* end confdefs.h. */ 20982 20983 #include <stdio.h> 20984 #if HAVE_UNISTD_H 20985 # include <unistd.h> 20986 #else /* on Windows with MSVC */ 20987 # include <io.h> 20988 #endif 20989 20990 20991 $gl_mda_defines 20992 20993 int 20994 main (void) 20995 { 20996 FILE *f = fopen ("conftest.txt", "r"); 20997 char buffer[10]; 20998 int fd; 20999 int c; 21000 if (f == NULL) 21001 return 1; 21002 fd = fileno (f); 21003 if (fd < 0 || fread (buffer, 1, 5, f) != 5) 21004 { fclose (f); return 2; } 21005 /* For deterministic results, ensure f read a bigger buffer. */ 21006 if (lseek (fd, 0, SEEK_CUR) == 5) 21007 { fclose (f); return 3; } 21008 /* POSIX requires fflush-fseek to set file offset of fd. This fails 21009 on BSD systems and on mingw. */ 21010 if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) 21011 { fclose (f); return 4; } 21012 if (lseek (fd, 0, SEEK_CUR) != 5) 21013 { fclose (f); return 5; } 21014 /* Verify behaviour of fflush after ungetc. See 21015 <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */ 21016 /* Verify behaviour of fflush after a backup ungetc. This fails on 21017 mingw. */ 21018 c = fgetc (f); 21019 ungetc (c, f); 21020 fflush (f); 21021 if (fgetc (f) != c) 21022 { fclose (f); return 6; } 21023 /* Verify behaviour of fflush after a non-backup ungetc. This fails 21024 on glibc 2.8 and on BSD systems. */ 21025 c = fgetc (f); 21026 ungetc ('@', f); 21027 fflush (f); 21028 if (fgetc (f) != c) 21029 { fclose (f); return 7; } 21030 fclose (f); 21031 return 0; 21032 21033 ; 21034 return 0; 21035 } 21036 _ACEOF 21037 if ac_fn_c_try_run "$LINENO" 21038 then : 21039 gl_cv_func_fflush_stdin=yes 21040 else case e in #( 21041 e) gl_cv_func_fflush_stdin=no ;; 21042 esac 21043 fi 21044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21045 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21046 esac 21047 fi 21048 21049 rm conftest.txt 21050 ;; 21051 esac 21052 fi 21053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 21054 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } 21055 case "$gl_cv_func_fflush_stdin" in 21056 *yes) gl_func_fflush_stdin=1 ;; 21057 *no) gl_func_fflush_stdin=0 ;; 21058 *) gl_func_fflush_stdin='(-1)' ;; 21059 esac 21060 21061 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h 21062 21063 21064 case "$gl_cv_func_fflush_stdin" in 21065 *yes) ;; 21066 *) REPLACE_FSEEKO=1 ;; 21067 esac 21068 21069 fi 21070 21071 21072 21073 21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 21075 printf %s "checking whether ungetc works on arbitrary bytes... " >&6; } 21076 if test ${gl_cv_func_ungetc_works+y} 21077 then : 21078 printf %s "(cached) " >&6 21079 else case e in #( 21080 e) if test "$cross_compiling" = yes 21081 then : 21082 case "$host_os" in 21083 # Guess yes on glibc systems. 21084 *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; 21085 # Guess yes on musl systems. 21086 *-musl*) gl_cv_func_ungetc_works="guessing yes" ;; 21087 # Guess yes on bionic systems. 21088 *-android*) gl_cv_func_ungetc_works="guessing yes" ;; 21089 # Guess yes on native Windows. 21090 mingw*) gl_cv_func_ungetc_works="guessing yes" ;; 21091 # If we don't know, obey --enable-cross-guesses. 21092 *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;; 21093 esac 21094 21095 else case e in #( 21096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21097 /* end confdefs.h. */ 21098 21099 #include <stdio.h> 21100 21101 int 21102 main (void) 21103 { 21104 FILE *f; 21105 if (!(f = fopen ("conftest.tmp", "w+"))) 21106 return 1; 21107 if (fputs ("abc", f) < 0) 21108 { fclose (f); return 2; } 21109 rewind (f); 21110 if (fgetc (f) != 'a') 21111 { fclose (f); return 3; } 21112 if (fgetc (f) != 'b') 21113 { fclose (f); return 4; } 21114 if (ungetc ('d', f) != 'd') 21115 { fclose (f); return 5; } 21116 if (ftell (f) != 1) 21117 { fclose (f); return 6; } 21118 if (fgetc (f) != 'd') 21119 { fclose (f); return 7; } 21120 if (ftell (f) != 2) 21121 { fclose (f); return 8; } 21122 if (fseek (f, 0, SEEK_CUR) != 0) 21123 { fclose (f); return 9; } 21124 if (ftell (f) != 2) 21125 { fclose (f); return 10; } 21126 if (fgetc (f) != 'c') 21127 { fclose (f); return 11; } 21128 fclose (f); 21129 remove ("conftest.tmp"); 21130 21131 ; 21132 return 0; 21133 } 21134 _ACEOF 21135 if ac_fn_c_try_run "$LINENO" 21136 then : 21137 gl_cv_func_ungetc_works=yes 21138 else case e in #( 21139 e) gl_cv_func_ungetc_works=no ;; 21140 esac 21141 fi 21142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21143 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21144 esac 21145 fi 21146 21147 ;; 21148 esac 21149 fi 21150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 21151 printf "%s\n" "$gl_cv_func_ungetc_works" >&6; } 21152 gl_ftello_broken_after_ungetc=no 21153 case "$gl_cv_func_ungetc_works" in 21154 *yes) ;; 21155 *) 21156 case "$host_os" in 21157 darwin*) gl_ftello_broken_after_ungetc=yes ;; 21158 *) 21159 21160 printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h 21161 21162 ;; 21163 esac 21164 ;; 21165 esac 21166 21167 ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 21168 if test "x$ac_cv_have_decl_ftello" = xyes 21169 then : 21170 ac_have_decl=1 21171 else case e in #( 21172 e) ac_have_decl=0 ;; 21173 esac 21174 fi 21175 printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 if test $ac_cv_have_decl_ftello = no; then 21187 HAVE_DECL_FTELLO=0 21188 fi 21189 21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 21191 printf %s "checking for ftello... " >&6; } 21192 if test ${gl_cv_func_ftello+y} 21193 then : 21194 printf %s "(cached) " >&6 21195 else case e in #( 21196 e) 21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21198 /* end confdefs.h. */ 21199 #include <stdio.h> 21200 int 21201 main (void) 21202 { 21203 ftello (stdin); 21204 ; 21205 return 0; 21206 } 21207 _ACEOF 21208 if ac_fn_c_try_link "$LINENO" 21209 then : 21210 gl_cv_func_ftello=yes 21211 else case e in #( 21212 e) gl_cv_func_ftello=no ;; 21213 esac 21214 fi 21215 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21216 conftest$ac_exeext conftest.$ac_ext 21217 ;; 21218 esac 21219 fi 21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 21221 printf "%s\n" "$gl_cv_func_ftello" >&6; } 21222 if test $gl_cv_func_ftello = no; then 21223 HAVE_FTELLO=0 21224 else 21225 if test $WINDOWS_64_BIT_OFF_T = 1; then 21226 REPLACE_FTELLO=1 21227 fi 21228 if test $gl_cv_var_stdin_large_offset = no; then 21229 REPLACE_FTELLO=1 21230 fi 21231 if test $REPLACE_FTELLO = 0; then 21232 21233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 21234 printf %s "checking whether ftello works... " >&6; } 21235 if test ${gl_cv_func_ftello_works+y} 21236 then : 21237 printf %s "(cached) " >&6 21238 else case e in #( 21239 e) 21240 case "$host_os" in 21241 # Guess no on Solaris. 21242 solaris*) gl_cv_func_ftello_works="guessing no" ;; 21243 # Guess yes on native Windows. 21244 mingw*) gl_cv_func_ftello_works="guessing yes" ;; 21245 # Guess yes otherwise. 21246 *) gl_cv_func_ftello_works="guessing yes" ;; 21247 esac 21248 if test "$cross_compiling" = yes 21249 then : 21250 : 21251 else case e in #( 21252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21253 /* end confdefs.h. */ 21254 21255 #include <stdio.h> 21256 #include <stdlib.h> 21257 #include <string.h> 21258 #define TESTFILE "conftest.tmp" 21259 int 21260 main (void) 21261 { 21262 FILE *fp; 21263 21264 /* Create a file with some contents. */ 21265 fp = fopen (TESTFILE, "w"); 21266 if (fp == NULL) 21267 return 70; 21268 if (fwrite ("foogarsh", 1, 8, fp) < 8) 21269 { fclose (fp); return 71; } 21270 if (fclose (fp)) 21271 return 72; 21272 21273 /* The file's contents is now "foogarsh". */ 21274 21275 /* Try writing after reading to EOF. */ 21276 fp = fopen (TESTFILE, "r+"); 21277 if (fp == NULL) 21278 return 73; 21279 if (fseek (fp, -1, SEEK_END)) 21280 { fclose (fp); return 74; } 21281 if (!(getc (fp) == 'h')) 21282 { fclose (fp); return 1; } 21283 if (!(getc (fp) == EOF)) 21284 { fclose (fp); return 2; } 21285 if (!(ftell (fp) == 8)) 21286 { fclose (fp); return 3; } 21287 if (!(ftell (fp) == 8)) 21288 { fclose (fp); return 4; } 21289 if (!(putc ('!', fp) == '!')) 21290 { fclose (fp); return 5; } 21291 if (!(ftell (fp) == 9)) 21292 { fclose (fp); return 6; } 21293 if (!(fclose (fp) == 0)) 21294 return 7; 21295 fp = fopen (TESTFILE, "r"); 21296 if (fp == NULL) 21297 return 75; 21298 { 21299 char buf[10]; 21300 if (!(fread (buf, 1, 10, fp) == 9)) 21301 { fclose (fp); return 10; } 21302 if (!(memcmp (buf, "foogarsh!", 9) == 0)) 21303 { fclose (fp); return 11; } 21304 } 21305 if (!(fclose (fp) == 0)) 21306 return 12; 21307 21308 /* The file's contents is now "foogarsh!". */ 21309 21310 return 0; 21311 } 21312 _ACEOF 21313 if ac_fn_c_try_run "$LINENO" 21314 then : 21315 gl_cv_func_ftello_works=yes 21316 else case e in #( 21317 e) gl_cv_func_ftello_works=no ;; 21318 esac 21319 fi 21320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21321 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21322 esac 21323 fi 21324 21325 ;; 21326 esac 21327 fi 21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 21329 printf "%s\n" "$gl_cv_func_ftello_works" >&6; } 21330 case "$gl_cv_func_ftello_works" in 21331 *yes) ;; 21332 *) 21333 REPLACE_FTELLO=1 21334 21335 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h 21336 21337 ;; 21338 esac 21339 fi 21340 if test $REPLACE_FTELLO = 0; then 21341 21342 if test $gl_ftello_broken_after_ungetc = yes; then 21343 REPLACE_FTELLO=1 21344 21345 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h 21346 21347 fi 21348 fi 21349 fi 21350 21351 21352 21353 21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 21355 printf %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } 21356 if test ${gl_cv_func_getcwd_null+y} 21357 then : 21358 printf %s "(cached) " >&6 21359 else case e in #( 21360 e) if test "$cross_compiling" = yes 21361 then : 21362 case "$host_os" in 21363 # Guess yes on glibc systems. 21364 *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";; 21365 # Guess yes on musl systems. 21366 *-musl*) gl_cv_func_getcwd_null="guessing yes";; 21367 # Guess yes on Cygwin. 21368 cygwin*) gl_cv_func_getcwd_null="guessing yes";; 21369 # If we don't know, obey --enable-cross-guesses. 21370 *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";; 21371 esac 21372 21373 else case e in #( 21374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21375 /* end confdefs.h. */ 21376 21377 # include <stdlib.h> 21378 # if HAVE_UNISTD_H 21379 # include <unistd.h> 21380 # else /* on Windows with MSVC */ 21381 # include <direct.h> 21382 # endif 21383 21384 21385 $gl_mda_defines 21386 21387 # ifndef getcwd 21388 char *getcwd (); 21389 # endif 21390 21391 int 21392 main (void) 21393 { 21394 21395 #if defined _WIN32 && ! defined __CYGWIN__ 21396 /* mingw cwd does not start with '/', but _getcwd does allocate. 21397 However, mingw fails to honor non-zero size. */ 21398 #else 21399 if (chdir ("/") != 0) 21400 return 1; 21401 else 21402 { 21403 char *f = getcwd (NULL, 0); 21404 if (! f) 21405 return 2; 21406 if (f[0] != '/') 21407 { free (f); return 3; } 21408 if (f[1] != '\0') 21409 { free (f); return 4; } 21410 free (f); 21411 return 0; 21412 } 21413 #endif 21414 21415 ; 21416 return 0; 21417 } 21418 _ACEOF 21419 if ac_fn_c_try_run "$LINENO" 21420 then : 21421 gl_cv_func_getcwd_null=yes 21422 else case e in #( 21423 e) gl_cv_func_getcwd_null=no ;; 21424 esac 21425 fi 21426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21427 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21428 esac 21429 fi 21430 ;; 21431 esac 21432 fi 21433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 21434 printf "%s\n" "$gl_cv_func_getcwd_null" >&6; } 21435 21436 21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5 21438 printf %s "checking for getcwd with POSIX signature... " >&6; } 21439 if test ${gl_cv_func_getcwd_posix_signature+y} 21440 then : 21441 printf %s "(cached) " >&6 21442 else case e in #( 21443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444 /* end confdefs.h. */ 21445 #include <unistd.h> 21446 21447 21448 $gl_mda_defines 21449 21450 int 21451 main (void) 21452 { 21453 extern 21454 #ifdef __cplusplus 21455 "C" 21456 #endif 21457 char *getcwd (char *, size_t); 21458 21459 ; 21460 return 0; 21461 } 21462 21463 _ACEOF 21464 if ac_fn_c_try_compile "$LINENO" 21465 then : 21466 gl_cv_func_getcwd_posix_signature=yes 21467 else case e in #( 21468 e) gl_cv_func_getcwd_posix_signature=no ;; 21469 esac 21470 fi 21471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21472 ;; 21473 esac 21474 fi 21475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5 21476 printf "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; } 21477 21478 21479 HAVE_GETTIMEOFDAY=1; 21480 HAVE_STRUCT_TIMEVAL=1; 21481 HAVE_SYS_TIME_H=1; 21482 REPLACE_GETTIMEOFDAY=0; 21483 REPLACE_STRUCT_TIMEVAL=0; 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 if test $gl_cv_have_include_next = yes; then 21499 gl_cv_next_sys_time_h='<'sys/time.h'>' 21500 else 21501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 21502 printf %s "checking absolute name of <sys/time.h>... " >&6; } 21503 if test ${gl_cv_next_sys_time_h+y} 21504 then : 21505 printf %s "(cached) " >&6 21506 else case e in #( 21507 e) 21508 if test $ac_cv_header_sys_time_h = yes; then 21509 21510 21511 21512 21513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21514 /* end confdefs.h. */ 21515 #include <sys/time.h> 21516 _ACEOF 21517 case "$host_os" in 21518 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21519 *) gl_absname_cpp="$ac_cpp" ;; 21520 esac 21521 21522 case "$host_os" in 21523 mingw*) 21524 gl_dirsep_regex='[/\\]' 21525 ;; 21526 *) 21527 gl_dirsep_regex='\/' 21528 ;; 21529 esac 21530 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21531 gl_header_literal_regex=`echo 'sys/time.h' \ 21532 | sed -e "$gl_make_literal_regex_sed"` 21533 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21534 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21535 s|^/[^/]|//&| 21536 p 21537 q 21538 }' 21539 21540 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21541 sed -n "$gl_absolute_header_sed"` 21542 21543 gl_header=$gl_cv_absolute_sys_time_h 21544 gl_cv_next_sys_time_h='"'$gl_header'"' 21545 else 21546 gl_cv_next_sys_time_h='<'sys/time.h'>' 21547 fi 21548 21549 ;; 21550 esac 21551 fi 21552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 21553 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; } 21554 fi 21555 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 21556 21557 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21559 gl_next_as_first_directive='<'sys/time.h'>' 21560 else 21561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21562 gl_next_as_first_directive=$gl_cv_next_sys_time_h 21563 fi 21564 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 21565 21566 21567 21568 21569 21570 if test $ac_cv_header_sys_time_h != yes; then 21571 HAVE_SYS_TIME_H=0 21572 fi 21573 21574 21575 21576 21577 21578 if test $ac_cv_header_sys_socket_h != yes; then 21579 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 21580 if test "x$ac_cv_header_winsock2_h" = xyes 21581 then : 21582 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 21583 21584 fi 21585 21586 fi 21587 if test "$ac_cv_header_winsock2_h" = yes; then 21588 HAVE_WINSOCK2_H=1 21589 UNISTD_H_HAVE_WINSOCK2_H=1 21590 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 21591 else 21592 HAVE_WINSOCK2_H=0 21593 fi 21594 21595 21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 21597 printf %s "checking for struct timeval... " >&6; } 21598 if test ${gl_cv_sys_struct_timeval+y} 21599 then : 21600 printf %s "(cached) " >&6 21601 else case e in #( 21602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21603 /* end confdefs.h. */ 21604 #if HAVE_SYS_TIME_H 21605 #include <sys/time.h> 21606 #endif 21607 #include <time.h> 21608 #if HAVE_WINSOCK2_H 21609 # include <winsock2.h> 21610 #endif 21611 21612 int 21613 main (void) 21614 { 21615 static struct timeval x; x.tv_sec = x.tv_usec; 21616 ; 21617 return 0; 21618 } 21619 _ACEOF 21620 if ac_fn_c_try_compile "$LINENO" 21621 then : 21622 gl_cv_sys_struct_timeval=yes 21623 else case e in #( 21624 e) gl_cv_sys_struct_timeval=no ;; 21625 esac 21626 fi 21627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21628 ;; 21629 esac 21630 fi 21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 21632 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; } 21633 if test $gl_cv_sys_struct_timeval != yes; then 21634 HAVE_STRUCT_TIMEVAL=0 21635 else 21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 21637 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; } 21638 if test ${gl_cv_sys_struct_timeval_tv_sec+y} 21639 then : 21640 printf %s "(cached) " >&6 21641 else case e in #( 21642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643 /* end confdefs.h. */ 21644 #if HAVE_SYS_TIME_H 21645 #include <sys/time.h> 21646 #endif 21647 #include <time.h> 21648 #if HAVE_WINSOCK2_H 21649 # include <winsock2.h> 21650 #endif 21651 21652 int 21653 main (void) 21654 { 21655 static struct timeval x; 21656 typedef int verify_tv_sec_type[ 21657 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 21658 ]; 21659 21660 ; 21661 return 0; 21662 } 21663 _ACEOF 21664 if ac_fn_c_try_compile "$LINENO" 21665 then : 21666 gl_cv_sys_struct_timeval_tv_sec=yes 21667 else case e in #( 21668 e) gl_cv_sys_struct_timeval_tv_sec=no ;; 21669 esac 21670 fi 21671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21672 ;; 21673 esac 21674 fi 21675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 21676 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; } 21677 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then 21678 REPLACE_STRUCT_TIMEVAL=1 21679 fi 21680 fi 21681 21682 21683 21684 21685 21686 21687 21688 21689 GL_GNULIB_GETTIMEOFDAY=0 21690 21691 21692 21693 21694 21695 case "$host_os" in 21696 *-musl*) 21697 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h 21698 ;; 21699 esac 21700 21701 21702 21703 21704 21705 21706 21707 21708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 21709 printf %s "checking for IPv4 sockets... " >&6; } 21710 if test ${gl_cv_socket_ipv4+y} 21711 then : 21712 printf %s "(cached) " >&6 21713 else case e in #( 21714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21715 /* end confdefs.h. */ 21716 #include <sys/types.h> 21717 #ifdef HAVE_SYS_SOCKET_H 21718 #include <sys/socket.h> 21719 #endif 21720 #ifdef HAVE_NETINET_IN_H 21721 #include <netinet/in.h> 21722 #endif 21723 #ifdef HAVE_WINSOCK2_H 21724 #include <winsock2.h> 21725 #endif 21726 int 21727 main (void) 21728 { 21729 int x = AF_INET; struct in_addr y; struct sockaddr_in z; 21730 if (&x && &y && &z) return 0; 21731 ; 21732 return 0; 21733 } 21734 _ACEOF 21735 if ac_fn_c_try_compile "$LINENO" 21736 then : 21737 gl_cv_socket_ipv4=yes 21738 else case e in #( 21739 e) gl_cv_socket_ipv4=no ;; 21740 esac 21741 fi 21742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21743 esac 21744 fi 21745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 21746 printf "%s\n" "$gl_cv_socket_ipv4" >&6; } 21747 if test $gl_cv_socket_ipv4 = yes; then 21748 21749 printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h 21750 21751 fi 21752 21753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 21754 printf %s "checking for IPv6 sockets... " >&6; } 21755 if test ${gl_cv_socket_ipv6+y} 21756 then : 21757 printf %s "(cached) " >&6 21758 else case e in #( 21759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21760 /* end confdefs.h. */ 21761 #include <sys/types.h> 21762 #ifdef HAVE_SYS_SOCKET_H 21763 #include <sys/socket.h> 21764 #endif 21765 #ifdef HAVE_NETINET_IN_H 21766 #include <netinet/in.h> 21767 #endif 21768 #ifdef HAVE_WINSOCK2_H 21769 #include <winsock2.h> 21770 #endif 21771 #ifdef HAVE_WS2TCPIP_H 21772 #include <ws2tcpip.h> 21773 #endif 21774 int 21775 main (void) 21776 { 21777 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 21778 if (&x && &y && &z) return 0; 21779 ; 21780 return 0; 21781 } 21782 _ACEOF 21783 if ac_fn_c_try_compile "$LINENO" 21784 then : 21785 gl_cv_socket_ipv6=yes 21786 else case e in #( 21787 e) gl_cv_socket_ipv6=no ;; 21788 esac 21789 fi 21790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21791 esac 21792 fi 21793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 21794 printf "%s\n" "$gl_cv_socket_ipv6" >&6; } 21795 if test $gl_cv_socket_ipv6 = yes; then 21796 21797 printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h 21798 21799 fi 21800 21801 21802 21803 21804 PRIPTR_PREFIX= 21805 if $GL_GENERATE_STDINT_H; then 21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21807 /* end confdefs.h. */ 21808 21809 #ifdef _WIN64 21810 LLP64 21811 #endif 21812 21813 int 21814 main (void) 21815 { 21816 21817 ; 21818 return 0; 21819 } 21820 21821 _ACEOF 21822 if ac_fn_c_try_compile "$LINENO" 21823 then : 21824 PRIPTR_PREFIX='"l"' 21825 else case e in #( 21826 e) PRIPTR_PREFIX='"ll"' ;; 21827 esac 21828 fi 21829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21830 else 21831 for glpfx in '' l ll I64; do 21832 case $glpfx in 21833 '') gltype1='int';; 21834 l) gltype1='long int';; 21835 ll) gltype1='long long int';; 21836 I64) gltype1='__int64';; 21837 esac 21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21839 /* end confdefs.h. */ 21840 #include <stdint.h> 21841 extern intptr_t foo; 21842 extern $gltype1 foo; 21843 int 21844 main (void) 21845 { 21846 21847 ; 21848 return 0; 21849 } 21850 _ACEOF 21851 if ac_fn_c_try_compile "$LINENO" 21852 then : 21853 PRIPTR_PREFIX='"'$glpfx'"' 21854 fi 21855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21856 test -n "$PRIPTR_PREFIX" && break 21857 done 21858 fi 21859 21860 21861 21862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 21863 printf %s "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 21864 if test ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+y} 21865 then : 21866 printf %s "(cached) " >&6 21867 else case e in #( 21868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21869 /* end confdefs.h. */ 21870 /* Work also in C++ mode. */ 21871 #define __STDC_LIMIT_MACROS 1 21872 21873 /* Work if build is not clean. */ 21874 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 21875 21876 #include <limits.h> 21877 #if HAVE_STDINT_H 21878 #include <stdint.h> 21879 #endif 21880 21881 #if defined INT32_MAX && defined INTMAX_MAX 21882 #define CONDITION (INT32_MAX < INTMAX_MAX) 21883 #else 21884 #define CONDITION (sizeof (int) < sizeof (long long int)) 21885 #endif 21886 int test[CONDITION ? 1 : -1]; 21887 int 21888 main (void) 21889 { 21890 21891 ; 21892 return 0; 21893 } 21894 _ACEOF 21895 if ac_fn_c_try_compile "$LINENO" 21896 then : 21897 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 21898 else case e in #( 21899 e) gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no ;; 21900 esac 21901 fi 21902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21903 esac 21904 fi 21905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 21906 printf "%s\n" "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 21907 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 21908 INT32_MAX_LT_INTMAX_MAX=1; 21909 else 21910 INT32_MAX_LT_INTMAX_MAX=0; 21911 fi 21912 21913 21914 if test $APPLE_UNIVERSAL_BUILD = 0; then 21915 21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 21917 printf %s "checking whether INT64_MAX == LONG_MAX... " >&6; } 21918 if test ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+y} 21919 then : 21920 printf %s "(cached) " >&6 21921 else case e in #( 21922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21923 /* end confdefs.h. */ 21924 /* Work also in C++ mode. */ 21925 #define __STDC_LIMIT_MACROS 1 21926 21927 /* Work if build is not clean. */ 21928 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 21929 21930 #include <limits.h> 21931 #if HAVE_STDINT_H 21932 #include <stdint.h> 21933 #endif 21934 21935 #if defined INT64_MAX 21936 #define CONDITION (INT64_MAX == LONG_MAX) 21937 #else 21938 #define CONDITION (sizeof (long long int) == sizeof (long int)) 21939 #endif 21940 int test[CONDITION ? 1 : -1]; 21941 int 21942 main (void) 21943 { 21944 21945 ; 21946 return 0; 21947 } 21948 _ACEOF 21949 if ac_fn_c_try_compile "$LINENO" 21950 then : 21951 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 21952 else case e in #( 21953 e) gl_cv_test_INT64_MAX_EQ_LONG_MAX=no ;; 21954 esac 21955 fi 21956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 21957 esac 21958 fi 21959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 21960 printf "%s\n" "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 21961 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 21962 INT64_MAX_EQ_LONG_MAX=1; 21963 else 21964 INT64_MAX_EQ_LONG_MAX=0; 21965 fi 21966 21967 21968 else 21969 INT64_MAX_EQ_LONG_MAX=-1 21970 fi 21971 21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 21973 printf %s "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 21974 if test ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+y} 21975 then : 21976 printf %s "(cached) " >&6 21977 else case e in #( 21978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21979 /* end confdefs.h. */ 21980 /* Work also in C++ mode. */ 21981 #define __STDC_LIMIT_MACROS 1 21982 21983 /* Work if build is not clean. */ 21984 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 21985 21986 #include <limits.h> 21987 #if HAVE_STDINT_H 21988 #include <stdint.h> 21989 #endif 21990 21991 #if defined UINT32_MAX && defined UINTMAX_MAX 21992 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 21993 #else 21994 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 21995 #endif 21996 int test[CONDITION ? 1 : -1]; 21997 int 21998 main (void) 21999 { 22000 22001 ; 22002 return 0; 22003 } 22004 _ACEOF 22005 if ac_fn_c_try_compile "$LINENO" 22006 then : 22007 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 22008 else case e in #( 22009 e) gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no ;; 22010 esac 22011 fi 22012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22013 esac 22014 fi 22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 22016 printf "%s\n" "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 22017 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 22018 UINT32_MAX_LT_UINTMAX_MAX=1; 22019 else 22020 UINT32_MAX_LT_UINTMAX_MAX=0; 22021 fi 22022 22023 22024 if test $APPLE_UNIVERSAL_BUILD = 0; then 22025 22026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 22027 printf %s "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 22028 if test ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+y} 22029 then : 22030 printf %s "(cached) " >&6 22031 else case e in #( 22032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22033 /* end confdefs.h. */ 22034 /* Work also in C++ mode. */ 22035 #define __STDC_LIMIT_MACROS 1 22036 22037 /* Work if build is not clean. */ 22038 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 22039 22040 #include <limits.h> 22041 #if HAVE_STDINT_H 22042 #include <stdint.h> 22043 #endif 22044 22045 #if defined UINT64_MAX 22046 #define CONDITION (UINT64_MAX == ULONG_MAX) 22047 #else 22048 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 22049 #endif 22050 int test[CONDITION ? 1 : -1]; 22051 int 22052 main (void) 22053 { 22054 22055 ; 22056 return 0; 22057 } 22058 _ACEOF 22059 if ac_fn_c_try_compile "$LINENO" 22060 then : 22061 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 22062 else case e in #( 22063 e) gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no ;; 22064 esac 22065 fi 22066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22067 esac 22068 fi 22069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 22070 printf "%s\n" "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 22071 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 22072 UINT64_MAX_EQ_ULONG_MAX=1; 22073 else 22074 UINT64_MAX_EQ_ULONG_MAX=0; 22075 fi 22076 22077 22078 else 22079 UINT64_MAX_EQ_ULONG_MAX=-1 22080 fi 22081 22082 22083 22084 22085 GL_GNULIB_IOCTL=0 22086 22087 22088 22089 22090 22091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 22092 printf %s "checking for LC_MESSAGES... " >&6; } 22093 if test ${gt_cv_val_LC_MESSAGES+y} 22094 then : 22095 printf %s "(cached) " >&6 22096 else case e in #( 22097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22098 /* end confdefs.h. */ 22099 #include <locale.h> 22100 int 22101 main (void) 22102 { 22103 return LC_MESSAGES 22104 ; 22105 return 0; 22106 } 22107 _ACEOF 22108 if ac_fn_c_try_link "$LINENO" 22109 then : 22110 gt_cv_val_LC_MESSAGES=yes 22111 else case e in #( 22112 e) gt_cv_val_LC_MESSAGES=no ;; 22113 esac 22114 fi 22115 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22116 conftest$ac_exeext conftest.$ac_ext ;; 22117 esac 22118 fi 22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 22120 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; } 22121 if test $gt_cv_val_LC_MESSAGES = yes; then 22122 22123 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h 22124 22125 fi 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 if test $ac_cv_func_uselocale = yes; then 22140 22141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5 22142 printf %s "checking whether uselocale works... " >&6; } 22143 if test ${gt_cv_func_uselocale_works+y} 22144 then : 22145 printf %s "(cached) " >&6 22146 else case e in #( 22147 e) if test "$cross_compiling" = yes 22148 then : 22149 # Guess no on AIX and z/OS, yes otherwise. 22150 case "$host_os" in 22151 aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;; 22152 *) gt_cv_func_uselocale_works="guessing yes" ;; 22153 esac 22154 22155 else case e in #( 22156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22157 /* end confdefs.h. */ 22158 22159 #include <locale.h> 22160 #if HAVE_XLOCALE_H 22161 # include <xlocale.h> 22162 #endif 22163 locale_t loc1; 22164 int main () 22165 { 22166 uselocale (NULL); 22167 setlocale (LC_ALL, "en_US.UTF-8"); 22168 return 0; 22169 } 22170 _ACEOF 22171 if ac_fn_c_try_run "$LINENO" 22172 then : 22173 gt_cv_func_uselocale_works=yes 22174 else case e in #( 22175 e) gt_cv_func_uselocale_works=no ;; 22176 esac 22177 fi 22178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22179 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22180 esac 22181 fi 22182 22183 ;; 22184 esac 22185 fi 22186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5 22187 printf "%s\n" "$gt_cv_func_uselocale_works" >&6; } 22188 else 22189 gt_cv_func_uselocale_works=no 22190 fi 22191 case "$gt_cv_func_uselocale_works" in 22192 *yes) 22193 gt_working_uselocale=yes 22194 22195 printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h 22196 22197 ;; 22198 *) 22199 gt_working_uselocale=no 22200 ;; 22201 esac 22202 22203 22204 case "$gt_cv_func_uselocale_works" in 22205 *yes) 22206 22207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5 22208 printf %s "checking for fake locale system (OpenBSD)... " >&6; } 22209 if test ${gt_cv_locale_fake+y} 22210 then : 22211 printf %s "(cached) " >&6 22212 else case e in #( 22213 e) if test "$cross_compiling" = yes 22214 then : 22215 case "$host_os" in 22216 openbsd*) gt_cv_locale_fake="guessing yes" ;; 22217 *) gt_cv_locale_fake="guessing no" ;; 22218 esac 22219 22220 else case e in #( 22221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22222 /* end confdefs.h. */ 22223 22224 #include <locale.h> 22225 #if HAVE_XLOCALE_H 22226 # include <xlocale.h> 22227 #endif 22228 int main () 22229 { 22230 locale_t loc1, loc2; 22231 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1; 22232 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1; 22233 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0); 22234 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0); 22235 return !(loc1 == loc2); 22236 } 22237 _ACEOF 22238 if ac_fn_c_try_run "$LINENO" 22239 then : 22240 gt_cv_locale_fake=yes 22241 else case e in #( 22242 e) gt_cv_locale_fake=no ;; 22243 esac 22244 fi 22245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22246 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22247 esac 22248 fi 22249 22250 ;; 22251 esac 22252 fi 22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5 22254 printf "%s\n" "$gt_cv_locale_fake" >&6; } 22255 ;; 22256 *) gt_cv_locale_fake=no ;; 22257 esac 22258 case "$gt_cv_locale_fake" in 22259 *yes) 22260 gt_fake_locales=yes 22261 22262 printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h 22263 22264 ;; 22265 *) 22266 gt_fake_locales=no 22267 ;; 22268 esac 22269 22270 case "$gt_cv_func_uselocale_works" in 22271 *yes) 22272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5 22273 printf %s "checking for Solaris 11.4 locale system... " >&6; } 22274 if test ${gt_cv_locale_solaris114+y} 22275 then : 22276 printf %s "(cached) " >&6 22277 else case e in #( 22278 e) case "$host_os" in 22279 solaris*) 22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22281 /* end confdefs.h. */ 22282 22283 #include <locale.h> 22284 struct _LC_locale_t *x; 22285 locale_t y; 22286 22287 int 22288 main (void) 22289 { 22290 *y = x; 22291 ; 22292 return 0; 22293 } 22294 _ACEOF 22295 if ac_fn_c_try_compile "$LINENO" 22296 then : 22297 gt_cv_locale_solaris114=yes 22298 else case e in #( 22299 e) gt_cv_locale_solaris114=no ;; 22300 esac 22301 fi 22302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22303 ;; 22304 *) gt_cv_locale_solaris114=no ;; 22305 esac 22306 ;; 22307 esac 22308 fi 22309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5 22310 printf "%s\n" "$gt_cv_locale_solaris114" >&6; } 22311 ;; 22312 *) gt_cv_locale_solaris114=no ;; 22313 esac 22314 if test $gt_cv_locale_solaris114 = yes; then 22315 22316 printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h 22317 22318 fi 22319 22320 case "$gt_cv_func_uselocale_works" in 22321 *yes) 22322 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l" 22323 if test "x$ac_cv_func_getlocalename_l" = xyes 22324 then : 22325 printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h 22326 22327 fi 22328 22329 ;; 22330 esac 22331 22332 gt_nameless_locales=no 22333 case "$host_os" in 22334 aix*) 22335 gt_nameless_locales=yes 22336 22337 printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h 22338 22339 ;; 22340 esac 22341 22342 if test $gt_working_uselocale = yes && test $gt_fake_locales = no; then 22343 gt_good_uselocale=yes 22344 22345 printf "%s\n" "#define HAVE_GOOD_USELOCALE 1" >>confdefs.h 22346 22347 else 22348 gt_good_uselocale=no 22349 fi 22350 22351 if test $gt_good_uselocale = yes && test $gt_nameless_locales = yes; then 22352 gt_localename_enhances_locale_funcs=yes 22353 LOCALENAME_ENHANCE_LOCALE_FUNCS=1 22354 22355 printf "%s\n" "#define LOCALENAME_ENHANCE_LOCALE_FUNCS 1" >>confdefs.h 22356 22357 else 22358 gt_localename_enhances_locale_funcs=no 22359 fi 22360 22361 22362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 22363 printf %s "checking for CFPreferencesCopyAppValue... " >&6; } 22364 if test ${gt_cv_func_CFPreferencesCopyAppValue+y} 22365 then : 22366 printf %s "(cached) " >&6 22367 else case e in #( 22368 e) gt_save_LIBS="$LIBS" 22369 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22371 /* end confdefs.h. */ 22372 #include <CoreFoundation/CFPreferences.h> 22373 int 22374 main (void) 22375 { 22376 CFPreferencesCopyAppValue(NULL, NULL) 22377 ; 22378 return 0; 22379 } 22380 _ACEOF 22381 if ac_fn_c_try_link "$LINENO" 22382 then : 22383 gt_cv_func_CFPreferencesCopyAppValue=yes 22384 else case e in #( 22385 e) gt_cv_func_CFPreferencesCopyAppValue=no ;; 22386 esac 22387 fi 22388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22389 conftest$ac_exeext conftest.$ac_ext 22390 LIBS="$gt_save_LIBS" ;; 22391 esac 22392 fi 22393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 22394 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 22395 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 22396 22397 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 22398 22399 fi 22400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 22401 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 22402 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 22403 then : 22404 printf %s "(cached) " >&6 22405 else case e in #( 22406 e) gt_save_LIBS="$LIBS" 22407 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 22408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22409 /* end confdefs.h. */ 22410 #include <CoreFoundation/CFLocale.h> 22411 int 22412 main (void) 22413 { 22414 CFLocaleCopyPreferredLanguages(); 22415 ; 22416 return 0; 22417 } 22418 _ACEOF 22419 if ac_fn_c_try_link "$LINENO" 22420 then : 22421 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 22422 else case e in #( 22423 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;; 22424 esac 22425 fi 22426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22427 conftest$ac_exeext conftest.$ac_ext 22428 LIBS="$gt_save_LIBS" ;; 22429 esac 22430 fi 22431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 22432 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 22433 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 22434 22435 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 22436 22437 fi 22438 INTL_MACOSX_LIBS= 22439 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 22440 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 22441 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 22442 fi 22443 22444 22445 22446 22447 22448 22449 22450 22451 if test $ac_cv_have_decl_strerror_r = no; then 22452 HAVE_DECL_STRERROR_R=0 22453 fi 22454 22455 if test $ac_cv_func_strerror_r = yes; then 22456 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then 22457 if test $gl_cv_func_strerror_r_posix_signature = yes; then 22458 case "$gl_cv_func_strerror_r_works" in 22459 *no) REPLACE_STRERROR_R=1 ;; 22460 esac 22461 else 22462 REPLACE_STRERROR_R=1 22463 fi 22464 else 22465 REPLACE_STRERROR_R=1 22466 fi 22467 fi 22468 22469 22470 22471 HAVE_PSELECT=1; 22472 REPLACE_PSELECT=0; 22473 REPLACE_SELECT=0; 22474 22475 22476 22477 22478 22479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 22480 printf %s "checking whether <sys/select.h> is self-contained... " >&6; } 22481 if test ${gl_cv_header_sys_select_h_selfcontained+y} 22482 then : 22483 printf %s "(cached) " >&6 22484 else case e in #( 22485 e) 22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22487 /* end confdefs.h. */ 22488 #include <sys/select.h> 22489 int 22490 main (void) 22491 { 22492 struct timeval b; 22493 ; 22494 return 0; 22495 } 22496 _ACEOF 22497 if ac_fn_c_try_compile "$LINENO" 22498 then : 22499 gl_cv_header_sys_select_h_selfcontained=yes 22500 else case e in #( 22501 e) gl_cv_header_sys_select_h_selfcontained=no ;; 22502 esac 22503 fi 22504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22505 if test $gl_cv_header_sys_select_h_selfcontained = yes; then 22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22507 /* end confdefs.h. */ 22508 #include <sys/select.h> 22509 int 22510 main (void) 22511 { 22512 int memset; int bzero; 22513 ; 22514 return 0; 22515 } 22516 22517 _ACEOF 22518 if ac_fn_c_try_compile "$LINENO" 22519 then : 22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22521 /* end confdefs.h. */ 22522 #include <sys/select.h> 22523 int 22524 main (void) 22525 { 22526 22527 #undef memset 22528 #define memset nonexistent_memset 22529 extern 22530 #ifdef __cplusplus 22531 "C" 22532 #endif 22533 void *memset (void *, int, unsigned long); 22534 #undef bzero 22535 #define bzero nonexistent_bzero 22536 extern 22537 #ifdef __cplusplus 22538 "C" 22539 #endif 22540 void bzero (void *, unsigned long); 22541 fd_set fds; 22542 FD_ZERO (&fds); 22543 22544 ; 22545 return 0; 22546 } 22547 22548 _ACEOF 22549 if ac_fn_c_try_link "$LINENO" 22550 then : 22551 22552 else case e in #( 22553 e) gl_cv_header_sys_select_h_selfcontained=no ;; 22554 esac 22555 fi 22556 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22557 conftest$ac_exeext conftest.$ac_ext 22558 22559 fi 22560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22561 fi 22562 ;; 22563 esac 22564 fi 22565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 22566 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; } 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 if test $gl_cv_have_include_next = yes; then 22577 gl_cv_next_sys_select_h='<'sys/select.h'>' 22578 else 22579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 22580 printf %s "checking absolute name of <sys/select.h>... " >&6; } 22581 if test ${gl_cv_next_sys_select_h+y} 22582 then : 22583 printf %s "(cached) " >&6 22584 else case e in #( 22585 e) 22586 if test $ac_cv_header_sys_select_h = yes; then 22587 22588 22589 22590 22591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22592 /* end confdefs.h. */ 22593 #include <sys/select.h> 22594 _ACEOF 22595 case "$host_os" in 22596 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22597 *) gl_absname_cpp="$ac_cpp" ;; 22598 esac 22599 22600 case "$host_os" in 22601 mingw*) 22602 gl_dirsep_regex='[/\\]' 22603 ;; 22604 *) 22605 gl_dirsep_regex='\/' 22606 ;; 22607 esac 22608 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22609 gl_header_literal_regex=`echo 'sys/select.h' \ 22610 | sed -e "$gl_make_literal_regex_sed"` 22611 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22613 s|^/[^/]|//&| 22614 p 22615 q 22616 }' 22617 22618 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22619 sed -n "$gl_absolute_header_sed"` 22620 22621 gl_header=$gl_cv_absolute_sys_select_h 22622 gl_cv_next_sys_select_h='"'$gl_header'"' 22623 else 22624 gl_cv_next_sys_select_h='<'sys/select.h'>' 22625 fi 22626 22627 ;; 22628 esac 22629 fi 22630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 22631 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; } 22632 fi 22633 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h 22634 22635 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22637 gl_next_as_first_directive='<'sys/select.h'>' 22638 else 22639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22640 gl_next_as_first_directive=$gl_cv_next_sys_select_h 22641 fi 22642 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive 22643 22644 22645 22646 22647 if test $ac_cv_header_sys_select_h = yes; then 22648 HAVE_SYS_SELECT_H=1 22649 else 22650 HAVE_SYS_SELECT_H=0 22651 fi 22652 22653 22654 22655 22656 22657 if test $ac_cv_header_sys_socket_h != yes; then 22658 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 22659 if test "x$ac_cv_header_winsock2_h" = xyes 22660 then : 22661 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 22662 22663 fi 22664 22665 fi 22666 if test "$ac_cv_header_winsock2_h" = yes; then 22667 HAVE_WINSOCK2_H=1 22668 UNISTD_H_HAVE_WINSOCK2_H=1 22669 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 22670 else 22671 HAVE_WINSOCK2_H=0 22672 fi 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 GL_GNULIB_PSELECT=0 22684 22685 22686 22687 GL_GNULIB_SELECT=0 22688 22689 22690 22691 22692 22693 HAVE_PTHREAD_T=1; 22694 HAVE_PTHREAD_SPINLOCK_T=1; 22695 HAVE_PTHREAD_CREATE_DETACHED=1; 22696 HAVE_PTHREAD_MUTEX_RECURSIVE=1; 22697 HAVE_PTHREAD_MUTEX_ROBUST=1; 22698 HAVE_PTHREAD_PROCESS_SHARED=1; 22699 HAVE_PTHREAD_CREATE=1; 22700 HAVE_PTHREAD_ATTR_INIT=1; 22701 HAVE_PTHREAD_ATTR_GETDETACHSTATE=1; 22702 HAVE_PTHREAD_ATTR_SETDETACHSTATE=1; 22703 HAVE_PTHREAD_ATTR_DESTROY=1; 22704 HAVE_PTHREAD_SELF=1; 22705 HAVE_PTHREAD_EQUAL=1; 22706 HAVE_PTHREAD_DETACH=1; 22707 HAVE_PTHREAD_JOIN=1; 22708 HAVE_PTHREAD_EXIT=1; 22709 HAVE_PTHREAD_ONCE=1; 22710 HAVE_PTHREAD_MUTEX_INIT=1; 22711 HAVE_PTHREAD_MUTEXATTR_INIT=1; 22712 HAVE_PTHREAD_MUTEXATTR_GETTYPE=1; 22713 HAVE_PTHREAD_MUTEXATTR_SETTYPE=1; 22714 HAVE_PTHREAD_MUTEXATTR_GETROBUST=1; 22715 HAVE_PTHREAD_MUTEXATTR_SETROBUST=1; 22716 HAVE_PTHREAD_MUTEXATTR_DESTROY=1; 22717 HAVE_PTHREAD_MUTEX_LOCK=1; 22718 HAVE_PTHREAD_MUTEX_TRYLOCK=1; 22719 HAVE_PTHREAD_MUTEX_TIMEDLOCK=1; 22720 HAVE_PTHREAD_MUTEX_UNLOCK=1; 22721 HAVE_PTHREAD_MUTEX_DESTROY=1; 22722 HAVE_PTHREAD_RWLOCK_INIT=1; 22723 HAVE_PTHREAD_RWLOCKATTR_INIT=1; 22724 HAVE_PTHREAD_RWLOCKATTR_DESTROY=1; 22725 HAVE_PTHREAD_RWLOCK_RDLOCK=1; 22726 HAVE_PTHREAD_RWLOCK_WRLOCK=1; 22727 HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1; 22728 HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1; 22729 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1; 22730 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1; 22731 HAVE_PTHREAD_RWLOCK_UNLOCK=1; 22732 HAVE_PTHREAD_RWLOCK_DESTROY=1; 22733 HAVE_PTHREAD_COND_INIT=1; 22734 HAVE_PTHREAD_CONDATTR_INIT=1; 22735 HAVE_PTHREAD_CONDATTR_DESTROY=1; 22736 HAVE_PTHREAD_COND_WAIT=1; 22737 HAVE_PTHREAD_COND_TIMEDWAIT=1; 22738 HAVE_PTHREAD_COND_SIGNAL=1; 22739 HAVE_PTHREAD_COND_BROADCAST=1; 22740 HAVE_PTHREAD_COND_DESTROY=1; 22741 HAVE_PTHREAD_KEY_CREATE=1; 22742 HAVE_PTHREAD_SETSPECIFIC=1; 22743 HAVE_PTHREAD_GETSPECIFIC=1; 22744 HAVE_PTHREAD_KEY_DELETE=1; 22745 HAVE_PTHREAD_SPIN_INIT=1; 22746 HAVE_PTHREAD_SPIN_LOCK=1; 22747 HAVE_PTHREAD_SPIN_TRYLOCK=1; 22748 HAVE_PTHREAD_SPIN_UNLOCK=1; 22749 HAVE_PTHREAD_SPIN_DESTROY=1; 22750 REPLACE_PTHREAD_CREATE=0; 22751 REPLACE_PTHREAD_ATTR_INIT=0; 22752 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0; 22753 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0; 22754 REPLACE_PTHREAD_ATTR_DESTROY=0; 22755 REPLACE_PTHREAD_SELF=0; 22756 REPLACE_PTHREAD_EQUAL=0; 22757 REPLACE_PTHREAD_DETACH=0; 22758 REPLACE_PTHREAD_JOIN=0; 22759 REPLACE_PTHREAD_EXIT=0; 22760 REPLACE_PTHREAD_ONCE=0; 22761 REPLACE_PTHREAD_MUTEX_INIT=0; 22762 REPLACE_PTHREAD_MUTEXATTR_INIT=0; 22763 REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0; 22764 REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0; 22765 REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0; 22766 REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0; 22767 REPLACE_PTHREAD_MUTEXATTR_DESTROY=0; 22768 REPLACE_PTHREAD_MUTEX_LOCK=0; 22769 REPLACE_PTHREAD_MUTEX_TRYLOCK=0; 22770 REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0; 22771 REPLACE_PTHREAD_MUTEX_UNLOCK=0; 22772 REPLACE_PTHREAD_MUTEX_DESTROY=0; 22773 REPLACE_PTHREAD_RWLOCK_INIT=0; 22774 REPLACE_PTHREAD_RWLOCKATTR_INIT=0; 22775 REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0; 22776 REPLACE_PTHREAD_RWLOCK_RDLOCK=0; 22777 REPLACE_PTHREAD_RWLOCK_WRLOCK=0; 22778 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0; 22779 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0; 22780 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0; 22781 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0; 22782 REPLACE_PTHREAD_RWLOCK_UNLOCK=0; 22783 REPLACE_PTHREAD_RWLOCK_DESTROY=0; 22784 REPLACE_PTHREAD_COND_INIT=0; 22785 REPLACE_PTHREAD_CONDATTR_INIT=0; 22786 REPLACE_PTHREAD_CONDATTR_DESTROY=0; 22787 REPLACE_PTHREAD_COND_WAIT=0; 22788 REPLACE_PTHREAD_COND_TIMEDWAIT=0; 22789 REPLACE_PTHREAD_COND_SIGNAL=0; 22790 REPLACE_PTHREAD_COND_BROADCAST=0; 22791 REPLACE_PTHREAD_COND_DESTROY=0; 22792 REPLACE_PTHREAD_KEY_CREATE=0; 22793 REPLACE_PTHREAD_SETSPECIFIC=0; 22794 REPLACE_PTHREAD_GETSPECIFIC=0; 22795 REPLACE_PTHREAD_KEY_DELETE=0; 22796 REPLACE_PTHREAD_SPIN_INIT=0; 22797 REPLACE_PTHREAD_SPIN_LOCK=0; 22798 REPLACE_PTHREAD_SPIN_TRYLOCK=0; 22799 REPLACE_PTHREAD_SPIN_UNLOCK=0; 22800 REPLACE_PTHREAD_SPIN_DESTROY=0; 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 if test $gl_cv_have_include_next = yes; then 22819 gl_cv_next_pthread_h='<'pthread.h'>' 22820 else 22821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5 22822 printf %s "checking absolute name of <pthread.h>... " >&6; } 22823 if test ${gl_cv_next_pthread_h+y} 22824 then : 22825 printf %s "(cached) " >&6 22826 else case e in #( 22827 e) 22828 if test $ac_cv_header_pthread_h = yes; then 22829 22830 22831 22832 22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22834 /* end confdefs.h. */ 22835 #include <pthread.h> 22836 _ACEOF 22837 case "$host_os" in 22838 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22839 *) gl_absname_cpp="$ac_cpp" ;; 22840 esac 22841 22842 case "$host_os" in 22843 mingw*) 22844 gl_dirsep_regex='[/\\]' 22845 ;; 22846 *) 22847 gl_dirsep_regex='\/' 22848 ;; 22849 esac 22850 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22851 gl_header_literal_regex=`echo 'pthread.h' \ 22852 | sed -e "$gl_make_literal_regex_sed"` 22853 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22854 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22855 s|^/[^/]|//&| 22856 p 22857 q 22858 }' 22859 22860 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22861 sed -n "$gl_absolute_header_sed"` 22862 22863 gl_header=$gl_cv_absolute_pthread_h 22864 gl_cv_next_pthread_h='"'$gl_header'"' 22865 else 22866 gl_cv_next_pthread_h='<'pthread.h'>' 22867 fi 22868 22869 ;; 22870 esac 22871 fi 22872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5 22873 printf "%s\n" "$gl_cv_next_pthread_h" >&6; } 22874 fi 22875 NEXT_PTHREAD_H=$gl_cv_next_pthread_h 22876 22877 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22879 gl_next_as_first_directive='<'pthread.h'>' 22880 else 22881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22882 gl_next_as_first_directive=$gl_cv_next_pthread_h 22883 fi 22884 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive 22885 22886 22887 22888 22889 if test $ac_cv_header_pthread_h = yes; then 22890 HAVE_PTHREAD_H=1 22891 22892 22893 if { case "$host_os" in mingw*) true;; *) false;; esac; } \ 22894 && test $gl_threads_api = windows; then 22895 HAVE_PTHREAD_H=0 22896 fi 22897 22898 else 22899 HAVE_PTHREAD_H=0 22900 fi 22901 22902 22903 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default 22904 #if HAVE_PTHREAD_H 22905 #include <pthread.h> 22906 #endif 22907 " 22908 if test "x$ac_cv_type_pthread_t" = xyes 22909 then : 22910 22911 printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h 22912 22913 22914 fi 22915 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default 22916 #if HAVE_PTHREAD_H 22917 #include <pthread.h> 22918 #endif 22919 " 22920 if test "x$ac_cv_type_pthread_spinlock_t" = xyes 22921 then : 22922 22923 printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h 22924 22925 22926 fi 22927 22928 if test $ac_cv_type_pthread_t != yes; then 22929 HAVE_PTHREAD_T=0 22930 fi 22931 if test $ac_cv_type_pthread_spinlock_t != yes; then 22932 HAVE_PTHREAD_SPINLOCK_T=0 22933 fi 22934 22935 22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5 22937 printf %s "checking for PTHREAD_CREATE_DETACHED... " >&6; } 22938 if test ${gl_cv_const_PTHREAD_CREATE_DETACHED+y} 22939 then : 22940 printf %s "(cached) " >&6 22941 else case e in #( 22942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22943 /* end confdefs.h. */ 22944 #include <pthread.h> 22945 int x = PTHREAD_CREATE_DETACHED; 22946 22947 int 22948 main (void) 22949 { 22950 22951 ; 22952 return 0; 22953 } 22954 _ACEOF 22955 if ac_fn_c_try_compile "$LINENO" 22956 then : 22957 gl_cv_const_PTHREAD_CREATE_DETACHED=yes 22958 else case e in #( 22959 e) gl_cv_const_PTHREAD_CREATE_DETACHED=no ;; 22960 esac 22961 fi 22962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22963 ;; 22964 esac 22965 fi 22966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5 22967 printf "%s\n" "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; } 22968 if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then 22969 HAVE_PTHREAD_CREATE_DETACHED=0 22970 fi 22971 22972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5 22973 printf %s "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; } 22974 if test ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+y} 22975 then : 22976 printf %s "(cached) " >&6 22977 else case e in #( 22978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22979 /* end confdefs.h. */ 22980 #include <pthread.h> 22981 int x = PTHREAD_MUTEX_RECURSIVE; 22982 22983 int 22984 main (void) 22985 { 22986 22987 ; 22988 return 0; 22989 } 22990 _ACEOF 22991 if ac_fn_c_try_compile "$LINENO" 22992 then : 22993 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes 22994 else case e in #( 22995 e) gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no ;; 22996 esac 22997 fi 22998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22999 ;; 23000 esac 23001 fi 23002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5 23003 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; } 23004 if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then 23005 HAVE_PTHREAD_MUTEX_RECURSIVE=0 23006 fi 23007 23008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5 23009 printf %s "checking for PTHREAD_MUTEX_ROBUST... " >&6; } 23010 if test ${gl_cv_const_PTHREAD_MUTEX_ROBUST+y} 23011 then : 23012 printf %s "(cached) " >&6 23013 else case e in #( 23014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23015 /* end confdefs.h. */ 23016 #include <pthread.h> 23017 int x = PTHREAD_MUTEX_ROBUST; 23018 23019 int 23020 main (void) 23021 { 23022 23023 ; 23024 return 0; 23025 } 23026 _ACEOF 23027 if ac_fn_c_try_compile "$LINENO" 23028 then : 23029 gl_cv_const_PTHREAD_MUTEX_ROBUST=yes 23030 else case e in #( 23031 e) gl_cv_const_PTHREAD_MUTEX_ROBUST=no ;; 23032 esac 23033 fi 23034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23035 ;; 23036 esac 23037 fi 23038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5 23039 printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; } 23040 if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then 23041 HAVE_PTHREAD_MUTEX_ROBUST=0 23042 fi 23043 23044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5 23045 printf %s "checking for PTHREAD_PROCESS_SHARED... " >&6; } 23046 if test ${gl_cv_const_PTHREAD_PROCESS_SHARED+y} 23047 then : 23048 printf %s "(cached) " >&6 23049 else case e in #( 23050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23051 /* end confdefs.h. */ 23052 #include <pthread.h> 23053 int x = PTHREAD_PROCESS_SHARED; 23054 23055 int 23056 main (void) 23057 { 23058 23059 ; 23060 return 0; 23061 } 23062 _ACEOF 23063 if ac_fn_c_try_compile "$LINENO" 23064 then : 23065 gl_cv_const_PTHREAD_PROCESS_SHARED=yes 23066 else case e in #( 23067 e) gl_cv_const_PTHREAD_PROCESS_SHARED=no ;; 23068 esac 23069 fi 23070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23071 ;; 23072 esac 23073 fi 23074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5 23075 printf "%s\n" "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; } 23076 if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then 23077 HAVE_PTHREAD_PROCESS_SHARED=0 23078 fi 23079 23080 23081 23082 23083 23084 23085 23086 LIB_PTHREAD="$LIBPMULTITHREAD" 23087 23088 23089 23090 23091 GL_GNULIB_PTHREAD_THREAD=0 23092 23093 23094 23095 GL_GNULIB_PTHREAD_ONCE=0 23096 23097 23098 23099 GL_GNULIB_PTHREAD_MUTEX=0 23100 23101 23102 23103 GL_GNULIB_PTHREAD_RWLOCK=0 23104 23105 23106 23107 GL_GNULIB_PTHREAD_COND=0 23108 23109 23110 23111 GL_GNULIB_PTHREAD_TSS=0 23112 23113 23114 23115 GL_GNULIB_PTHREAD_SPIN=0 23116 23117 23118 23119 GL_GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0 23120 23121 23122 23123 23124 HAVE_POSIX_SIGNALBLOCKING=1; 23125 HAVE_PTHREAD_SIGMASK=1; 23126 HAVE_RAISE=1; 23127 HAVE_SIGSET_T=1; 23128 HAVE_SIGINFO_T=1; 23129 HAVE_SIGACTION=1; 23130 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 23131 23132 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 23133 23134 HAVE_SIGHANDLER_T=1; 23135 REPLACE_PTHREAD_SIGMASK=0; 23136 REPLACE_RAISE=0; 23137 23138 23139 23140 23141 GL_GNULIB_PTHREAD_SIGMASK=0 23142 23143 23144 23145 GL_GNULIB_RAISE=0 23146 23147 23148 23149 GL_GNULIB_SIGNAL_H_SIGPIPE=0 23150 23151 23152 23153 GL_GNULIB_SIGPROCMASK=0 23154 23155 23156 23157 GL_GNULIB_SIGACTION=0 23158 23159 23160 23161 23162 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 23163 #include <signal.h> 23164 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 23165 #include <sys/types.h> 23166 23167 " 23168 if test "x$ac_cv_type_sigset_t" = xyes 23169 then : 23170 23171 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h 23172 23173 gl_cv_type_sigset_t=yes 23174 else case e in #( 23175 e) gl_cv_type_sigset_t=no ;; 23176 esac 23177 fi 23178 23179 if test $gl_cv_type_sigset_t != yes; then 23180 HAVE_SIGSET_T=0 23181 fi 23182 23183 23184 HAVE_SCHED_YIELD=1; 23185 REPLACE_SCHED_YIELD=0; 23186 23187 23188 23189 23190 23191 23192 23193 23194 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H 23195 #include <sys/cdefs.h> 23196 #endif 23197 23198 " 23199 if test "x$ac_cv_header_sched_h" = xyes 23200 then : 23201 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 23202 23203 fi 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 if test $gl_cv_have_include_next = yes; then 23214 gl_cv_next_sched_h='<'sched.h'>' 23215 else 23216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5 23217 printf %s "checking absolute name of <sched.h>... " >&6; } 23218 if test ${gl_cv_next_sched_h+y} 23219 then : 23220 printf %s "(cached) " >&6 23221 else case e in #( 23222 e) 23223 23224 23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23226 /* end confdefs.h. */ 23227 #include <sched.h> 23228 _ACEOF 23229 case "$host_os" in 23230 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23231 *) gl_absname_cpp="$ac_cpp" ;; 23232 esac 23233 23234 case "$host_os" in 23235 mingw*) 23236 gl_dirsep_regex='[/\\]' 23237 ;; 23238 *) 23239 gl_dirsep_regex='\/' 23240 ;; 23241 esac 23242 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23243 gl_header_literal_regex=`echo 'sched.h' \ 23244 | sed -e "$gl_make_literal_regex_sed"` 23245 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23247 s|^/[^/]|//&| 23248 p 23249 q 23250 }' 23251 23252 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23253 sed -n "$gl_absolute_header_sed"` 23254 23255 gl_header=$gl_cv_absolute_sched_h 23256 gl_cv_next_sched_h='"'$gl_header'"' 23257 23258 ;; 23259 esac 23260 fi 23261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5 23262 printf "%s\n" "$gl_cv_next_sched_h" >&6; } 23263 fi 23264 NEXT_SCHED_H=$gl_cv_next_sched_h 23265 23266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23268 gl_next_as_first_directive='<'sched.h'>' 23269 else 23270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23271 gl_next_as_first_directive=$gl_cv_next_sched_h 23272 fi 23273 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive 23274 23275 23276 23277 23278 23279 if test "$ac_cv_header_sched_h" = yes; then 23280 HAVE_SCHED_H=1 23281 else 23282 HAVE_SCHED_H=0 23283 fi 23284 23285 23286 if test "$HAVE_SCHED_H" = 1; then 23287 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H 23288 #include <sys/cdefs.h> 23289 #endif 23290 #include <sched.h> 23291 23292 " 23293 if test "x$ac_cv_type_struct_sched_param" = xyes 23294 then : 23295 HAVE_STRUCT_SCHED_PARAM=1 23296 else case e in #( 23297 e) HAVE_STRUCT_SCHED_PARAM=0 ;; 23298 esac 23299 fi 23300 23301 else 23302 HAVE_STRUCT_SCHED_PARAM=0 23303 case "$host_os" in 23304 os2*) 23305 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h> 23306 " 23307 if test "x$ac_cv_type_struct_sched_param" = xyes 23308 then : 23309 HAVE_STRUCT_SCHED_PARAM=1 23310 fi 23311 23312 ;; 23313 vms) 23314 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h> 23315 " 23316 if test "x$ac_cv_type_struct_sched_param" = xyes 23317 then : 23318 HAVE_STRUCT_SCHED_PARAM=1 23319 fi 23320 23321 ;; 23322 esac 23323 fi 23324 23325 23326 if test "$ac_cv_header_sys_cdefs_h" = yes; then 23327 HAVE_SYS_CDEFS_H=1 23328 else 23329 HAVE_SYS_CDEFS_H=0 23330 fi 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 GL_GNULIB_SCHED_YIELD=0 23342 23343 23344 23345 23346 23347 23348 23349 23350 if test $ac_cv_header_sys_socket_h != yes; then 23351 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 23352 if test "x$ac_cv_header_winsock2_h" = xyes 23353 then : 23354 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 23355 23356 fi 23357 23358 fi 23359 if test "$ac_cv_header_winsock2_h" = yes; then 23360 HAVE_WINSOCK2_H=1 23361 UNISTD_H_HAVE_WINSOCK2_H=1 23362 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 23363 else 23364 HAVE_WINSOCK2_H=0 23365 fi 23366 23367 LIBSOCKET= 23368 if test $HAVE_WINSOCK2_H = 1; then 23369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5 23370 printf %s "checking for WSAStartup... " >&6; } 23371 if test ${gl_cv_func_wsastartup+y} 23372 then : 23373 printf %s "(cached) " >&6 23374 else case e in #( 23375 e) 23376 gl_save_LIBS="$LIBS" 23377 LIBS="$LIBS -lws2_32" 23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23379 /* end confdefs.h. */ 23380 23381 #ifdef HAVE_WINSOCK2_H 23382 # include <winsock2.h> 23383 #endif 23384 int 23385 main (void) 23386 { 23387 23388 WORD wVersionRequested = MAKEWORD(1, 1); 23389 WSADATA wsaData; 23390 int err = WSAStartup(wVersionRequested, &wsaData); 23391 WSACleanup (); 23392 23393 ; 23394 return 0; 23395 } 23396 23397 _ACEOF 23398 if ac_fn_c_try_link "$LINENO" 23399 then : 23400 gl_cv_func_wsastartup=yes 23401 else case e in #( 23402 e) gl_cv_func_wsastartup=no ;; 23403 esac 23404 fi 23405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23406 conftest$ac_exeext conftest.$ac_ext 23407 LIBS="$gl_save_LIBS" 23408 ;; 23409 esac 23410 fi 23411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 23412 printf "%s\n" "$gl_cv_func_wsastartup" >&6; } 23413 if test "$gl_cv_func_wsastartup" = "yes"; then 23414 23415 printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h 23416 23417 LIBSOCKET='-lws2_32' 23418 fi 23419 else 23420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 23421 printf %s "checking for library containing setsockopt... " >&6; } 23422 if test ${gl_cv_lib_socket+y} 23423 then : 23424 printf %s "(cached) " >&6 23425 else case e in #( 23426 e) 23427 gl_cv_lib_socket= 23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23429 /* end confdefs.h. */ 23430 extern 23431 #ifdef __cplusplus 23432 "C" 23433 #endif 23434 char setsockopt(); 23435 int 23436 main (void) 23437 { 23438 setsockopt(); 23439 ; 23440 return 0; 23441 } 23442 _ACEOF 23443 if ac_fn_c_try_link "$LINENO" 23444 then : 23445 23446 else case e in #( 23447 e) gl_save_LIBS="$LIBS" 23448 LIBS="$gl_save_LIBS -lsocket" 23449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23450 /* end confdefs.h. */ 23451 extern 23452 #ifdef __cplusplus 23453 "C" 23454 #endif 23455 char setsockopt(); 23456 int 23457 main (void) 23458 { 23459 setsockopt(); 23460 ; 23461 return 0; 23462 } 23463 _ACEOF 23464 if ac_fn_c_try_link "$LINENO" 23465 then : 23466 gl_cv_lib_socket="-lsocket" 23467 fi 23468 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23469 conftest$ac_exeext conftest.$ac_ext 23470 if test -z "$gl_cv_lib_socket"; then 23471 LIBS="$gl_save_LIBS -lnetwork" 23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23473 /* end confdefs.h. */ 23474 extern 23475 #ifdef __cplusplus 23476 "C" 23477 #endif 23478 char setsockopt(); 23479 int 23480 main (void) 23481 { 23482 setsockopt(); 23483 ; 23484 return 0; 23485 } 23486 _ACEOF 23487 if ac_fn_c_try_link "$LINENO" 23488 then : 23489 gl_cv_lib_socket="-lnetwork" 23490 fi 23491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23492 conftest$ac_exeext conftest.$ac_ext 23493 if test -z "$gl_cv_lib_socket"; then 23494 LIBS="$gl_save_LIBS -lnet" 23495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23496 /* end confdefs.h. */ 23497 extern 23498 #ifdef __cplusplus 23499 "C" 23500 #endif 23501 char setsockopt(); 23502 int 23503 main (void) 23504 { 23505 setsockopt(); 23506 ; 23507 return 0; 23508 } 23509 _ACEOF 23510 if ac_fn_c_try_link "$LINENO" 23511 then : 23512 gl_cv_lib_socket="-lnet" 23513 fi 23514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23515 conftest$ac_exeext conftest.$ac_ext 23516 fi 23517 fi 23518 LIBS="$gl_save_LIBS" 23519 ;; 23520 esac 23521 fi 23522 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23523 conftest$ac_exeext conftest.$ac_ext 23524 if test -z "$gl_cv_lib_socket"; then 23525 gl_cv_lib_socket="none needed" 23526 fi 23527 ;; 23528 esac 23529 fi 23530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 23531 printf "%s\n" "$gl_cv_lib_socket" >&6; } 23532 if test "$gl_cv_lib_socket" != "none needed"; then 23533 LIBSOCKET="$gl_cv_lib_socket" 23534 fi 23535 fi 23536 23537 23538 23539 23540 23541 23542 : 23543 23544 23545 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 23546 if test "x$ac_cv_have_decl_setenv" = xyes 23547 then : 23548 ac_have_decl=1 23549 else case e in #( 23550 e) ac_have_decl=0 ;; 23551 esac 23552 fi 23553 printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h 23554 23555 23556 23557 23558 23559 if test $ac_cv_have_decl_setenv = no; then 23560 HAVE_DECL_SETENV=0 23561 fi 23562 23563 23564 23565 23566 23567 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 23568 if test "x$ac_cv_header_search_h" = xyes 23569 then : 23570 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h 23571 23572 fi 23573 23574 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 23575 if test "x$ac_cv_func_tsearch" = xyes 23576 then : 23577 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h 23578 23579 fi 23580 23581 23582 23583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 23584 printf %s "checking for uid_t in sys/types.h... " >&6; } 23585 if test ${ac_cv_type_uid_t+y} 23586 then : 23587 printf %s "(cached) " >&6 23588 else case e in #( 23589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23590 /* end confdefs.h. */ 23591 #include <sys/types.h> 23592 23593 _ACEOF 23594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23595 $EGREP_TRADITIONAL "uid_t" >/dev/null 2>&1 23596 then : 23597 ac_cv_type_uid_t=yes 23598 else case e in #( 23599 e) ac_cv_type_uid_t=no ;; 23600 esac 23601 fi 23602 rm -rf conftest* 23603 ;; 23604 esac 23605 fi 23606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 23607 printf "%s\n" "$ac_cv_type_uid_t" >&6; } 23608 if test $ac_cv_type_uid_t = no; then 23609 23610 printf "%s\n" "#define uid_t int" >>confdefs.h 23611 23612 23613 printf "%s\n" "#define gid_t int" >>confdefs.h 23614 23615 fi 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 if test $gl_cv_have_include_next = yes; then 23629 gl_cv_next_signal_h='<'signal.h'>' 23630 else 23631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 23632 printf %s "checking absolute name of <signal.h>... " >&6; } 23633 if test ${gl_cv_next_signal_h+y} 23634 then : 23635 printf %s "(cached) " >&6 23636 else case e in #( 23637 e) 23638 23639 23640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23641 /* end confdefs.h. */ 23642 #include <signal.h> 23643 _ACEOF 23644 case "$host_os" in 23645 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23646 *) gl_absname_cpp="$ac_cpp" ;; 23647 esac 23648 23649 case "$host_os" in 23650 mingw*) 23651 gl_dirsep_regex='[/\\]' 23652 ;; 23653 *) 23654 gl_dirsep_regex='\/' 23655 ;; 23656 esac 23657 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23658 gl_header_literal_regex=`echo 'signal.h' \ 23659 | sed -e "$gl_make_literal_regex_sed"` 23660 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23661 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23662 s|^/[^/]|//&| 23663 p 23664 q 23665 }' 23666 23667 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23668 sed -n "$gl_absolute_header_sed"` 23669 23670 gl_header=$gl_cv_absolute_signal_h 23671 gl_cv_next_signal_h='"'$gl_header'"' 23672 23673 ;; 23674 esac 23675 fi 23676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 23677 printf "%s\n" "$gl_cv_next_signal_h" >&6; } 23678 fi 23679 NEXT_SIGNAL_H=$gl_cv_next_signal_h 23680 23681 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23683 gl_next_as_first_directive='<'signal.h'>' 23684 else 23685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23686 gl_next_as_first_directive=$gl_cv_next_signal_h 23687 fi 23688 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 23689 23690 23691 23692 23693 23694 # AIX declares sig_atomic_t to already include volatile, and C89 compilers 23695 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 23696 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 23697 #include <signal.h> 23698 23699 " 23700 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes 23701 then : 23702 23703 else case e in #( 23704 e) HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 ;; 23705 esac 23706 fi 23707 23708 23709 23710 23711 23712 23713 23714 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 23715 #include <signal.h> 23716 23717 " 23718 if test "x$ac_cv_type_sighandler_t" = xyes 23719 then : 23720 23721 else case e in #( 23722 e) HAVE_SIGHANDLER_T=0 ;; 23723 esac 23724 fi 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 23735 if test "x$ac_cv_have_decl_strdup" = xyes 23736 then : 23737 ac_have_decl=1 23738 else case e in #( 23739 e) ac_have_decl=0 ;; 23740 esac 23741 fi 23742 printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h 23743 23744 23745 23746 23747 23748 23749 23750 23751 if test $ac_cv_header_sys_ioctl_h = yes; then 23752 HAVE_SYS_IOCTL_H=1 23753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5 23754 printf %s "checking whether <sys/ioctl.h> declares ioctl... " >&6; } 23755 if test ${gl_cv_decl_ioctl_in_sys_ioctl_h+y} 23756 then : 23757 printf %s "(cached) " >&6 23758 else case e in #( 23759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23760 /* end confdefs.h. */ 23761 #include <sys/ioctl.h> 23762 int 23763 main (void) 23764 { 23765 (void) ioctl; 23766 ; 23767 return 0; 23768 } 23769 _ACEOF 23770 if ac_fn_c_try_compile "$LINENO" 23771 then : 23772 gl_cv_decl_ioctl_in_sys_ioctl_h=yes 23773 else case e in #( 23774 e) gl_cv_decl_ioctl_in_sys_ioctl_h=no ;; 23775 esac 23776 fi 23777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23778 ;; 23779 esac 23780 fi 23781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5 23782 printf "%s\n" "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; } 23783 else 23784 HAVE_SYS_IOCTL_H=0 23785 fi 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 if test $gl_cv_have_include_next = yes; then 23797 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>' 23798 else 23799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5 23800 printf %s "checking absolute name of <sys/ioctl.h>... " >&6; } 23801 if test ${gl_cv_next_sys_ioctl_h+y} 23802 then : 23803 printf %s "(cached) " >&6 23804 else case e in #( 23805 e) 23806 if test $ac_cv_header_sys_ioctl_h = yes; then 23807 23808 23809 23810 23811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23812 /* end confdefs.h. */ 23813 #include <sys/ioctl.h> 23814 _ACEOF 23815 case "$host_os" in 23816 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23817 *) gl_absname_cpp="$ac_cpp" ;; 23818 esac 23819 23820 case "$host_os" in 23821 mingw*) 23822 gl_dirsep_regex='[/\\]' 23823 ;; 23824 *) 23825 gl_dirsep_regex='\/' 23826 ;; 23827 esac 23828 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23829 gl_header_literal_regex=`echo 'sys/ioctl.h' \ 23830 | sed -e "$gl_make_literal_regex_sed"` 23831 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23833 s|^/[^/]|//&| 23834 p 23835 q 23836 }' 23837 23838 gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23839 sed -n "$gl_absolute_header_sed"` 23840 23841 gl_header=$gl_cv_absolute_sys_ioctl_h 23842 gl_cv_next_sys_ioctl_h='"'$gl_header'"' 23843 else 23844 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>' 23845 fi 23846 23847 ;; 23848 esac 23849 fi 23850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5 23851 printf "%s\n" "$gl_cv_next_sys_ioctl_h" >&6; } 23852 fi 23853 NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h 23854 23855 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23857 gl_next_as_first_directive='<'sys/ioctl.h'>' 23858 else 23859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23860 gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h 23861 fi 23862 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 if test $gl_cv_have_include_next = yes; then 23888 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 23889 else 23890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5 23891 printf %s "checking absolute name of <sys/uio.h>... " >&6; } 23892 if test ${gl_cv_next_sys_uio_h+y} 23893 then : 23894 printf %s "(cached) " >&6 23895 else case e in #( 23896 e) 23897 if test $ac_cv_header_sys_uio_h = yes; then 23898 23899 23900 23901 23902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23903 /* end confdefs.h. */ 23904 #include <sys/uio.h> 23905 _ACEOF 23906 case "$host_os" in 23907 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23908 *) gl_absname_cpp="$ac_cpp" ;; 23909 esac 23910 23911 case "$host_os" in 23912 mingw*) 23913 gl_dirsep_regex='[/\\]' 23914 ;; 23915 *) 23916 gl_dirsep_regex='\/' 23917 ;; 23918 esac 23919 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23920 gl_header_literal_regex=`echo 'sys/uio.h' \ 23921 | sed -e "$gl_make_literal_regex_sed"` 23922 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23924 s|^/[^/]|//&| 23925 p 23926 q 23927 }' 23928 23929 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23930 sed -n "$gl_absolute_header_sed"` 23931 23932 gl_header=$gl_cv_absolute_sys_uio_h 23933 gl_cv_next_sys_uio_h='"'$gl_header'"' 23934 else 23935 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 23936 fi 23937 23938 ;; 23939 esac 23940 fi 23941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 23942 printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; } 23943 fi 23944 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h 23945 23946 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23948 gl_next_as_first_directive='<'sys/uio.h'>' 23949 else 23950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23951 gl_next_as_first_directive=$gl_cv_next_sys_uio_h 23952 fi 23953 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive 23954 23955 23956 23957 23958 if test $ac_cv_header_sys_uio_h = yes; then 23959 HAVE_SYS_UIO_H=1 23960 else 23961 HAVE_SYS_UIO_H=0 23962 fi 23963 23964 23965 23966 23967 ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 23968 if test "x$ac_cv_have_decl_unsetenv" = xyes 23969 then : 23970 ac_have_decl=1 23971 else case e in #( 23972 e) ac_have_decl=0 ;; 23973 esac 23974 fi 23975 printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h 23976 23977 23978 23979 23980 23981 GL_CFLAG_GNULIB_WARNINGS='' 23982 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then 23983 cat > conftest.c <<\EOF 23984 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3) 23985 -Wno-cast-qual 23986 -Wno-conversion 23987 -Wno-float-equal 23988 -Wno-sign-compare 23989 -Wno-undef 23990 -Wno-unused-function 23991 -Wno-unused-parameter 23992 #endif 23993 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) 23994 -Wno-float-conversion 23995 #endif 23996 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3) 23997 -Wimplicit-fallthrough 23998 #endif 23999 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) 24000 -Wno-pedantic 24001 #endif 24002 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) 24003 -Wno-sign-conversion 24004 -Wno-type-limits 24005 #endif 24006 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 24007 -Wno-unsuffixed-float-constants 24008 #endif 24009 EOF 24010 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out" 24011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5 24012 (eval $gl_command) 2>&5 24013 ac_status=$? 24014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24015 test $ac_status = 0; }; then 24016 gl_options=`grep -v '#' conftest.out` 24017 for word in $gl_options; do 24018 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word" 24019 done 24020 fi 24021 rm -f conftest.c conftest.out 24022 fi 24023 24024 24025 24026 24027 if false; then 24028 GL_COND_LIBTOOL_TRUE= 24029 GL_COND_LIBTOOL_FALSE='#' 7412 24030 else 7413 echo "$as_me: failed program was:" >&5 7414 sed 's/^/| /' conftest.$ac_ext >&5 7415 7416 eval "$as_ac_var=no" 7417 fi 7418 rm -f conftest.err conftest.$ac_objext \ 7419 conftest$ac_exeext conftest.$ac_ext 7420 fi 7421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7423 if test `eval echo '${'$as_ac_var'}'` = yes; then 7424 cat >>confdefs.h <<_ACEOF 7425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24031 GL_COND_LIBTOOL_TRUE='#' 24032 GL_COND_LIBTOOL_FALSE= 24033 fi 24034 24035 gl_cond_libtool=false 24036 gl_libdeps= 24037 gl_ltlibdeps= 24038 gl_m4_base='m4' 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 gl_source_base='lib' 24052 gl_source_base_prefix='$(top_build_prefix)lib/' 24053 24054 24055 24056 LIB_ACL= 24057 use_acl=0 24058 if test "$enable_acl" != no; then 24059 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" 24060 if test "x$ac_cv_header_sys_acl_h" = xyes 24061 then : 24062 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h 24063 24064 fi 24065 24066 if test $ac_cv_header_sys_acl_h = yes; then 24067 ac_save_LIBS=$LIBS 24068 24069 if test $use_acl = 0; then 24070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5 24071 printf %s "checking for library containing acl_get_file... " >&6; } 24072 if test ${ac_cv_search_acl_get_file+y} 24073 then : 24074 printf %s "(cached) " >&6 24075 else case e in #( 24076 e) ac_func_search_save_LIBS=$LIBS 24077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24078 /* end confdefs.h. */ 24079 24080 /* Override any GCC internal prototype to avoid an error. 24081 Use char because int might match the return type of a GCC 24082 builtin and then its argument prototype would still apply. 24083 The 'extern "C"' is for builds by C++ compilers; 24084 although this is not generally supported in C code, supporting it here 24085 has little cost and some practical benefit (sr 110532). */ 24086 #ifdef __cplusplus 24087 extern "C" 24088 #endif 24089 char acl_get_file (void); 24090 int 24091 main (void) 24092 { 24093 return acl_get_file (); 24094 ; 24095 return 0; 24096 } 7426 24097 _ACEOF 7427 24098 for ac_lib in '' acl pacl 24099 do 24100 if test -z "$ac_lib"; then 24101 ac_res="none required" 24102 else 24103 ac_res=-l$ac_lib 24104 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24105 fi 24106 if ac_fn_c_try_link "$LINENO" 24107 then : 24108 ac_cv_search_acl_get_file=$ac_res 24109 fi 24110 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24111 conftest$ac_exeext 24112 if test ${ac_cv_search_acl_get_file+y} 24113 then : 24114 break 7428 24115 fi 7429 24116 done 7430 7431 echo "$as_me:$LINENO: checking for working mmap" >&5 7432 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 7433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 7434 echo $ECHO_N "(cached) $ECHO_C" >&6 24117 if test ${ac_cv_search_acl_get_file+y} 24118 then : 24119 24120 else case e in #( 24121 e) ac_cv_search_acl_get_file=no ;; 24122 esac 24123 fi 24124 rm conftest.$ac_ext 24125 LIBS=$ac_func_search_save_LIBS ;; 24126 esac 24127 fi 24128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5 24129 printf "%s\n" "$ac_cv_search_acl_get_file" >&6; } 24130 ac_res=$ac_cv_search_acl_get_file 24131 if test "$ac_res" != no 24132 then : 24133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24134 if test "$ac_cv_search_acl_get_file" != "none required"; then 24135 LIB_ACL=$ac_cv_search_acl_get_file 24136 fi 24137 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file" 24138 if test "x$ac_cv_func_acl_get_file" = xyes 24139 then : 24140 printf "%s\n" "#define HAVE_ACL_GET_FILE 1" >>confdefs.h 24141 24142 fi 24143 ac_fn_c_check_func "$LINENO" "acl_get_fd" "ac_cv_func_acl_get_fd" 24144 if test "x$ac_cv_func_acl_get_fd" = xyes 24145 then : 24146 printf "%s\n" "#define HAVE_ACL_GET_FD 1" >>confdefs.h 24147 24148 fi 24149 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file" 24150 if test "x$ac_cv_func_acl_set_file" = xyes 24151 then : 24152 printf "%s\n" "#define HAVE_ACL_SET_FILE 1" >>confdefs.h 24153 24154 fi 24155 ac_fn_c_check_func "$LINENO" "acl_set_fd" "ac_cv_func_acl_set_fd" 24156 if test "x$ac_cv_func_acl_set_fd" = xyes 24157 then : 24158 printf "%s\n" "#define HAVE_ACL_SET_FD 1" >>confdefs.h 24159 24160 fi 24161 ac_fn_c_check_func "$LINENO" "acl_free" "ac_cv_func_acl_free" 24162 if test "x$ac_cv_func_acl_free" = xyes 24163 then : 24164 printf "%s\n" "#define HAVE_ACL_FREE 1" >>confdefs.h 24165 24166 fi 24167 ac_fn_c_check_func "$LINENO" "acl_from_mode" "ac_cv_func_acl_from_mode" 24168 if test "x$ac_cv_func_acl_from_mode" = xyes 24169 then : 24170 printf "%s\n" "#define HAVE_ACL_FROM_MODE 1" >>confdefs.h 24171 24172 fi 24173 ac_fn_c_check_func "$LINENO" "acl_from_text" "ac_cv_func_acl_from_text" 24174 if test "x$ac_cv_func_acl_from_text" = xyes 24175 then : 24176 printf "%s\n" "#define HAVE_ACL_FROM_TEXT 1" >>confdefs.h 24177 24178 fi 24179 ac_fn_c_check_func "$LINENO" "acl_delete_def_file" "ac_cv_func_acl_delete_def_file" 24180 if test "x$ac_cv_func_acl_delete_def_file" = xyes 24181 then : 24182 printf "%s\n" "#define HAVE_ACL_DELETE_DEF_FILE 1" >>confdefs.h 24183 24184 fi 24185 ac_fn_c_check_func "$LINENO" "acl_extended_file" "ac_cv_func_acl_extended_file" 24186 if test "x$ac_cv_func_acl_extended_file" = xyes 24187 then : 24188 printf "%s\n" "#define HAVE_ACL_EXTENDED_FILE 1" >>confdefs.h 24189 24190 fi 24191 ac_fn_c_check_func "$LINENO" "acl_delete_fd_np" "ac_cv_func_acl_delete_fd_np" 24192 if test "x$ac_cv_func_acl_delete_fd_np" = xyes 24193 then : 24194 printf "%s\n" "#define HAVE_ACL_DELETE_FD_NP 1" >>confdefs.h 24195 24196 fi 24197 ac_fn_c_check_func "$LINENO" "acl_delete_file_np" "ac_cv_func_acl_delete_file_np" 24198 if test "x$ac_cv_func_acl_delete_file_np" = xyes 24199 then : 24200 printf "%s\n" "#define HAVE_ACL_DELETE_FILE_NP 1" >>confdefs.h 24201 24202 fi 24203 ac_fn_c_check_func "$LINENO" "acl_copy_ext_native" "ac_cv_func_acl_copy_ext_native" 24204 if test "x$ac_cv_func_acl_copy_ext_native" = xyes 24205 then : 24206 printf "%s\n" "#define HAVE_ACL_COPY_EXT_NATIVE 1" >>confdefs.h 24207 24208 fi 24209 ac_fn_c_check_func "$LINENO" "acl_create_entry_np" "ac_cv_func_acl_create_entry_np" 24210 if test "x$ac_cv_func_acl_create_entry_np" = xyes 24211 then : 24212 printf "%s\n" "#define HAVE_ACL_CREATE_ENTRY_NP 1" >>confdefs.h 24213 24214 fi 24215 ac_fn_c_check_func "$LINENO" "acl_to_short_text" "ac_cv_func_acl_to_short_text" 24216 if test "x$ac_cv_func_acl_to_short_text" = xyes 24217 then : 24218 printf "%s\n" "#define HAVE_ACL_TO_SHORT_TEXT 1" >>confdefs.h 24219 24220 fi 24221 ac_fn_c_check_func "$LINENO" "acl_free_text" "ac_cv_func_acl_free_text" 24222 if test "x$ac_cv_func_acl_free_text" = xyes 24223 then : 24224 printf "%s\n" "#define HAVE_ACL_FREE_TEXT 1" >>confdefs.h 24225 24226 fi 24227 24228 # If the acl_get_file bug is detected, don't enable the ACL support. 24229 24230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5 24231 printf %s "checking for working acl_get_file... " >&6; } 24232 if test ${gl_cv_func_working_acl_get_file+y} 24233 then : 24234 printf %s "(cached) " >&6 24235 else case e in #( 24236 e) gl_cv_func_working_acl_get_file=no 24237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24238 /* end confdefs.h. */ 24239 #include <sys/types.h> 24240 #include <sys/acl.h> 24241 #include <errno.h> 24242 24243 int 24244 main (void) 24245 { 24246 acl_t acl = acl_get_file (".", ACL_TYPE_ACCESS); 24247 return acl ? acl_free (acl) != 0 : errno == ENOENT; 24248 24249 ; 24250 return 0; 24251 } 24252 _ACEOF 24253 if ac_fn_c_try_link "$LINENO" 24254 then : 24255 if test $cross_compiling = yes; then 24256 gl_cv_func_working_acl_get_file="guessing yes" 24257 elif ./conftest$ac_exeext; then 24258 gl_cv_func_working_acl_get_file=yes 24259 fi 24260 fi 24261 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24262 conftest$ac_exeext conftest.$ac_ext ;; 24263 esac 24264 fi 24265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5 24266 printf "%s\n" "$gl_cv_func_working_acl_get_file" >&6; } 24267 if test "$gl_cv_func_working_acl_get_file" != no 24268 then : 24269 use_acl=1 24270 fi 24271 24272 if test $use_acl = 1; then 24273 ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default" 24274 if test "x$ac_cv_header_acl_libacl_h" = xyes 24275 then : 24276 printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h 24277 24278 fi 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 for ac_func in acl_entries 24290 do : 24291 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries" 24292 if test "x$ac_cv_func_acl_entries" = xyes 24293 then : 24294 printf "%s\n" "#define HAVE_ACL_ENTRIES 1" >>confdefs.h 24295 24296 else case e in #( 24297 e) 24298 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" 24299 ;; 24300 esac 24301 fi 24302 24303 done 24304 24305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5 24306 printf %s "checking for ACL_FIRST_ENTRY... " >&6; } 24307 if test ${gl_cv_acl_ACL_FIRST_ENTRY+y} 24308 then : 24309 printf %s "(cached) " >&6 24310 else case e in #( 24311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24312 /* end confdefs.h. */ 24313 #include <sys/types.h> 24314 #include <sys/acl.h> 24315 int type = ACL_FIRST_ENTRY; 24316 int 24317 main (void) 24318 { 24319 24320 ; 24321 return 0; 24322 } 24323 _ACEOF 24324 if ac_fn_c_try_compile "$LINENO" 24325 then : 24326 gl_cv_acl_ACL_FIRST_ENTRY=yes 24327 else case e in #( 24328 e) gl_cv_acl_ACL_FIRST_ENTRY=no ;; 24329 esac 24330 fi 24331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24332 esac 24333 fi 24334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5 24335 printf "%s\n" "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; } 24336 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then 24337 24338 printf "%s\n" "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h 24339 24340 fi 24341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5 24342 printf %s "checking for ACL_TYPE_EXTENDED... " >&6; } 24343 if test ${gl_cv_acl_ACL_TYPE_EXTENDED+y} 24344 then : 24345 printf %s "(cached) " >&6 24346 else case e in #( 24347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24348 /* end confdefs.h. */ 24349 #include <sys/types.h> 24350 #include <sys/acl.h> 24351 int type = ACL_TYPE_EXTENDED; 24352 int 24353 main (void) 24354 { 24355 24356 ; 24357 return 0; 24358 } 24359 _ACEOF 24360 if ac_fn_c_try_compile "$LINENO" 24361 then : 24362 gl_cv_acl_ACL_TYPE_EXTENDED=yes 24363 else case e in #( 24364 e) gl_cv_acl_ACL_TYPE_EXTENDED=no ;; 24365 esac 24366 fi 24367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24368 esac 24369 fi 24370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5 24371 printf "%s\n" "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; } 24372 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then 24373 24374 printf "%s\n" "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h 24375 24376 fi 24377 else 24378 LIB_ACL= 24379 fi 24380 24381 fi 24382 24383 fi 24384 24385 if test $use_acl = 0; then 24386 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl" 24387 if test "x$ac_cv_func_facl" = xyes 24388 then : 24389 printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h 24390 24391 fi 24392 24393 if test $ac_cv_func_facl = yes; then 24394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5 24395 printf %s "checking for library containing acl_trivial... " >&6; } 24396 if test ${ac_cv_search_acl_trivial+y} 24397 then : 24398 printf %s "(cached) " >&6 24399 else case e in #( 24400 e) ac_func_search_save_LIBS=$LIBS 24401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24402 /* end confdefs.h. */ 24403 24404 /* Override any GCC internal prototype to avoid an error. 24405 Use char because int might match the return type of a GCC 24406 builtin and then its argument prototype would still apply. 24407 The 'extern "C"' is for builds by C++ compilers; 24408 although this is not generally supported in C code, supporting it here 24409 has little cost and some practical benefit (sr 110532). */ 24410 #ifdef __cplusplus 24411 extern "C" 24412 #endif 24413 char acl_trivial (void); 24414 int 24415 main (void) 24416 { 24417 return acl_trivial (); 24418 ; 24419 return 0; 24420 } 24421 _ACEOF 24422 for ac_lib in '' sec 24423 do 24424 if test -z "$ac_lib"; then 24425 ac_res="none required" 24426 else 24427 ac_res=-l$ac_lib 24428 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24429 fi 24430 if ac_fn_c_try_link "$LINENO" 24431 then : 24432 ac_cv_search_acl_trivial=$ac_res 24433 fi 24434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24435 conftest$ac_exeext 24436 if test ${ac_cv_search_acl_trivial+y} 24437 then : 24438 break 24439 fi 24440 done 24441 if test ${ac_cv_search_acl_trivial+y} 24442 then : 24443 24444 else case e in #( 24445 e) ac_cv_search_acl_trivial=no ;; 24446 esac 24447 fi 24448 rm conftest.$ac_ext 24449 LIBS=$ac_func_search_save_LIBS ;; 24450 esac 24451 fi 24452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5 24453 printf "%s\n" "$ac_cv_search_acl_trivial" >&6; } 24454 ac_res=$ac_cv_search_acl_trivial 24455 if test "$ac_res" != no 24456 then : 24457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24458 if test "$ac_cv_search_acl_trivial" != "none required"; then 24459 LIB_ACL=$ac_cv_search_acl_trivial 24460 fi 24461 24462 fi 24463 24464 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial" 24465 if test "x$ac_cv_func_acl_trivial" = xyes 24466 then : 24467 printf "%s\n" "#define HAVE_ACL_TRIVIAL 1" >>confdefs.h 24468 24469 fi 24470 24471 use_acl=1 24472 fi 24473 fi 24474 24475 if test $use_acl = 0; then 24476 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl" 24477 if test "x$ac_cv_func_getacl" = xyes 24478 then : 24479 printf "%s\n" "#define HAVE_GETACL 1" >>confdefs.h 24480 24481 fi 24482 24483 if test $ac_cv_func_getacl = yes; then 24484 use_acl=1 24485 fi 24486 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h> 24487 " 24488 if test "x$ac_cv_header_aclv_h" = xyes 24489 then : 24490 printf "%s\n" "#define HAVE_ACLV_H 1" >>confdefs.h 24491 24492 fi 24493 24494 fi 24495 24496 if test $use_acl = 0; then 24497 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get" 24498 if test "x$ac_cv_func_aclx_get" = xyes 24499 then : 24500 printf "%s\n" "#define HAVE_ACLX_GET 1" >>confdefs.h 24501 24502 fi 24503 24504 if test $ac_cv_func_aclx_get = yes; then 24505 use_acl=1 24506 fi 24507 fi 24508 24509 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then 24510 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl" 24511 if test "x$ac_cv_func_statacl" = xyes 24512 then : 24513 printf "%s\n" "#define HAVE_STATACL 1" >>confdefs.h 24514 24515 fi 24516 24517 if test $ac_cv_func_statacl = yes; then 24518 use_acl=1 24519 fi 24520 fi 24521 24522 if test $use_acl = 0; then 24523 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort" 24524 if test "x$ac_cv_func_aclsort" = xyes 24525 then : 24526 printf "%s\n" "#define HAVE_ACLSORT 1" >>confdefs.h 24527 24528 fi 24529 24530 if test $ac_cv_func_aclsort = yes; then 24531 use_acl=1 24532 fi 24533 fi 24534 24535 LIBS=$ac_save_LIBS 24536 fi 24537 24538 if test "$enable_acl$use_acl" = yes0; then 24539 as_fn_error $? "ACLs enabled but support not detected" "$LINENO" 5 24540 elif test "$enable_acl$use_acl" = auto0; then 24541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5 24542 printf "%s\n" "$as_me: WARNING: libacl development library was not found or not usable." >&2;} 24543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be built without ACL support." >&5 24544 printf "%s\n" "$as_me: WARNING: GNU sed will be built without ACL support." >&2;} 24545 fi 24546 fi 24547 test -n "$gl_need_lib_has_acl" && LIB_HAS_ACL=$LIB_ACL 24548 24549 24550 printf "%s\n" "#define USE_ACL $use_acl" >>confdefs.h 24551 24552 USE_ACL=$use_acl 24553 24554 24555 24556 24557 if test $ac_cv_func_alloca_works = no; then 24558 : 24559 fi 24560 24561 # Define an additional variable used in the Makefile substitution. 24562 if test $ac_cv_working_alloca_h = yes; then 24563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 24564 printf %s "checking for alloca as a compiler built-in... " >&6; } 24565 if test ${gl_cv_rpl_alloca+y} 24566 then : 24567 printf %s "(cached) " >&6 24568 else case e in #( 24569 e) 24570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24571 /* end confdefs.h. */ 24572 24573 #if defined __GNUC__ || defined _AIX || defined _MSC_VER 24574 Need own alloca 24575 #endif 24576 24577 _ACEOF 24578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24579 $EGREP_TRADITIONAL "Need own alloca" >/dev/null 2>&1 24580 then : 24581 gl_cv_rpl_alloca=yes 24582 else case e in #( 24583 e) gl_cv_rpl_alloca=no ;; 24584 esac 24585 fi 24586 rm -rf conftest* 24587 24588 ;; 24589 esac 24590 fi 24591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 24592 printf "%s\n" "$gl_cv_rpl_alloca" >&6; } 24593 if test $gl_cv_rpl_alloca = yes; then 24594 24595 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 24596 24597 GL_GENERATE_ALLOCA_H=true 24598 else 24599 GL_GENERATE_ALLOCA_H=false 24600 fi 24601 else 24602 GL_GENERATE_ALLOCA_H=true 24603 fi 24604 24605 if test $ac_cv_working_alloca_h = yes; then 24606 HAVE_ALLOCA_H=1 24607 else 24608 HAVE_ALLOCA_H=0 24609 fi 24610 24611 24612 24613 24614 24615 24616 case "$GL_GENERATE_ALLOCA_H" in 24617 false) ALLOCA_H='' ;; 24618 true) 24619 if test -z "$ALLOCA_H"; then 24620 ALLOCA_H="${gl_source_base_prefix}alloca.h" 24621 fi 24622 ;; 24623 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;; 24624 esac 24625 24626 24627 if $GL_GENERATE_ALLOCA_H; then 24628 GL_GENERATE_ALLOCA_H_TRUE= 24629 GL_GENERATE_ALLOCA_H_FALSE='#' 7435 24630 else 7436 if test "$cross_compiling" = yes; then 7437 ac_cv_func_mmap_fixed_mapped=no 24631 GL_GENERATE_ALLOCA_H_TRUE='#' 24632 GL_GENERATE_ALLOCA_H_FALSE= 24633 fi 24634 : 24635 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 24636 GL_GENERATE_ALLOCA_H_TRUE='#' 24637 GL_GENERATE_ALLOCA_H_FALSE='#' 24638 fi 24639 24640 24641 24642 24643 24644 24645 24646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 24647 printf %s "checking whether to enable assertions... " >&6; } 24648 # Check whether --enable-assert was given. 24649 if test ${enable_assert+y} 24650 then : 24651 enableval=$enable_assert; if test "x$enableval" = xno 24652 then : 24653 24654 printf "%s\n" "#define NDEBUG 1" >>confdefs.h 24655 24656 elif test "x$enableval" != xyes 24657 then : 24658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 24659 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 24660 enable_assert=yes 24661 fi 24662 else case e in #( 24663 e) enable_assert=yes ;; 24664 esac 24665 fi 24666 24667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_assert" >&5 24668 printf "%s\n" "$enable_assert" >&6; } 24669 24670 24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5 24672 printf %s "checking for static_assert... " >&6; } 24673 if test ${gl_cv_static_assert+y} 24674 then : 24675 printf %s "(cached) " >&6 24676 else case e in #( 24677 e) gl_save_CFLAGS=$CFLAGS 24678 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do 24679 case $gl_working in #( 24680 *assert.h*) : 24681 CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #( 24682 *) : 24683 ;; 24684 esac 24685 24686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24687 /* end confdefs.h. */ 24688 #if defined __clang__ && __STDC_VERSION__ < 202311 24689 #pragma clang diagnostic error "-Wc2x-extensions" 24690 #pragma clang diagnostic error "-Wc++17-extensions" 24691 #endif 24692 #ifdef INCLUDE_ASSERT_H 24693 #include <assert.h> 24694 #endif 24695 static_assert (2 + 2 == 4, "arithmetic does not work"); 24696 static_assert (2 + 2 == 4); 24697 24698 int 24699 main (void) 24700 { 24701 24702 static_assert (sizeof (char) == 1, "sizeof does not work"); 24703 static_assert (sizeof (char) == 1); 24704 24705 ; 24706 return 0; 24707 } 24708 _ACEOF 24709 if ac_fn_c_try_compile "$LINENO" 24710 then : 24711 gl_cv_static_assert=$gl_working 24712 else case e in #( 24713 e) gl_cv_static_assert=no ;; 24714 esac 24715 fi 24716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24717 CFLAGS=$gl_save_CFLAGS 24718 test "$gl_cv_static_assert" != no && break 24719 done ;; 24720 esac 24721 fi 24722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5 24723 printf "%s\n" "$gl_cv_static_assert" >&6; } 24724 24725 GL_GENERATE_ASSERT_H=false 24726 case $gl_cv_static_assert in #( 24727 yes*keyword*) : 24728 24729 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h 24730 ;; #( 24731 no) : 24732 GL_GENERATE_ASSERT_H=true 24733 24734 24735 24736 24737 24738 24739 24740 24741 if test $gl_cv_have_include_next = yes; then 24742 gl_cv_next_assert_h='<'assert.h'>' 24743 else 24744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5 24745 printf %s "checking absolute name of <assert.h>... " >&6; } 24746 if test ${gl_cv_next_assert_h+y} 24747 then : 24748 printf %s "(cached) " >&6 24749 else case e in #( 24750 e) 24751 24752 24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24754 /* end confdefs.h. */ 24755 #include <assert.h> 24756 _ACEOF 24757 case "$host_os" in 24758 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24759 *) gl_absname_cpp="$ac_cpp" ;; 24760 esac 24761 24762 case "$host_os" in 24763 mingw*) 24764 gl_dirsep_regex='[/\\]' 24765 ;; 24766 *) 24767 gl_dirsep_regex='\/' 24768 ;; 24769 esac 24770 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24771 gl_header_literal_regex=`echo 'assert.h' \ 24772 | sed -e "$gl_make_literal_regex_sed"` 24773 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24774 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24775 s|^/[^/]|//&| 24776 p 24777 q 24778 }' 24779 24780 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24781 sed -n "$gl_absolute_header_sed"` 24782 24783 gl_header=$gl_cv_absolute_assert_h 24784 gl_cv_next_assert_h='"'$gl_header'"' 24785 24786 ;; 24787 esac 24788 fi 24789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5 24790 printf "%s\n" "$gl_cv_next_assert_h" >&6; } 24791 fi 24792 NEXT_ASSERT_H=$gl_cv_next_assert_h 24793 24794 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24796 gl_next_as_first_directive='<'assert.h'>' 24797 else 24798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24799 gl_next_as_first_directive=$gl_cv_next_assert_h 24800 fi 24801 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive 24802 24803 24804 24805 ;; #( 24806 *) : 24807 ;; 24808 esac 24809 24810 24811 24812 24813 24814 24815 24816 case "$GL_GENERATE_ASSERT_H" in 24817 false) ASSERT_H='' ;; 24818 true) 24819 if test -z "$ASSERT_H"; then 24820 ASSERT_H="${gl_source_base_prefix}assert.h" 24821 fi 24822 ;; 24823 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;; 24824 esac 24825 24826 24827 if $GL_GENERATE_ASSERT_H; then 24828 GL_GENERATE_ASSERT_H_TRUE= 24829 GL_GENERATE_ASSERT_H_FALSE='#' 7438 24830 else 7439 cat >conftest.$ac_ext <<_ACEOF 7440 /* confdefs.h. */ 24831 GL_GENERATE_ASSERT_H_TRUE='#' 24832 GL_GENERATE_ASSERT_H_FALSE= 24833 fi 24834 : 24835 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then 24836 GL_GENERATE_ASSERT_H_TRUE='#' 24837 GL_GENERATE_ASSERT_H_FALSE='#' 24838 fi 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 if test $ac_cv_func_btowc = no; then 24852 HAVE_BTOWC=0 24853 else 24854 24855 24856 24857 24858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 24859 printf %s "checking whether btowc(0) is correct... " >&6; } 24860 if test ${gl_cv_func_btowc_nul+y} 24861 then : 24862 printf %s "(cached) " >&6 24863 else case e in #( 24864 e) 24865 if test "$cross_compiling" = yes 24866 then : 24867 24868 case "$host_os" in 24869 # Guess no on Cygwin. 24870 cygwin*) gl_cv_func_btowc_nul="guessing no" ;; 24871 # Guess yes on native Windows. 24872 mingw*) gl_cv_func_btowc_nul="guessing yes" ;; 24873 # Guess yes otherwise. 24874 *) gl_cv_func_btowc_nul="guessing yes" ;; 24875 esac 24876 24877 else case e in #( 24878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24879 /* end confdefs.h. */ 24880 24881 #include <wchar.h> 24882 int main () 24883 { 24884 if (btowc ('\0') != 0) 24885 return 1; 24886 return 0; 24887 } 7441 24888 _ACEOF 7442 cat confdefs.h >>conftest.$ac_ext 7443 cat >>conftest.$ac_ext <<_ACEOF 24889 if ac_fn_c_try_run "$LINENO" 24890 then : 24891 gl_cv_func_btowc_nul=yes 24892 else case e in #( 24893 e) gl_cv_func_btowc_nul=no ;; 24894 esac 24895 fi 24896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24897 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24898 esac 24899 fi 24900 24901 ;; 24902 esac 24903 fi 24904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 24905 printf "%s\n" "$gl_cv_func_btowc_nul" >&6; } 24906 24907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 24908 printf %s "checking whether btowc(EOF) is correct... " >&6; } 24909 if test ${gl_cv_func_btowc_eof+y} 24910 then : 24911 printf %s "(cached) " >&6 24912 else case e in #( 24913 e) 24914 case "$host_os" in 24915 # Guess no on IRIX. 24916 irix*) gl_cv_func_btowc_eof="guessing no" ;; 24917 # Guess yes on native Windows. 24918 mingw*) gl_cv_func_btowc_eof="guessing yes" ;; 24919 # Guess yes otherwise. 24920 *) gl_cv_func_btowc_eof="guessing yes" ;; 24921 esac 24922 if test $LOCALE_FR != none; then 24923 if test "$cross_compiling" = yes 24924 then : 24925 : 24926 else case e in #( 24927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24928 /* end confdefs.h. */ 24929 24930 #include <locale.h> 24931 #include <stdio.h> 24932 #include <wchar.h> 24933 int main () 24934 { 24935 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 24936 { 24937 if (btowc (EOF) != WEOF) 24938 return 1; 24939 } 24940 return 0; 24941 } 24942 _ACEOF 24943 if ac_fn_c_try_run "$LINENO" 24944 then : 24945 gl_cv_func_btowc_eof=yes 24946 else case e in #( 24947 e) gl_cv_func_btowc_eof=no ;; 24948 esac 24949 fi 24950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24951 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 24952 esac 24953 fi 24954 24955 fi 24956 ;; 24957 esac 24958 fi 24959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 24960 printf "%s\n" "$gl_cv_func_btowc_eof" >&6; } 24961 24962 case "$gl_cv_func_btowc_nul" in 24963 *yes) ;; 24964 *) REPLACE_BTOWC=1 ;; 24965 esac 24966 case "$gl_cv_func_btowc_eof" in 24967 *yes) ;; 24968 *) REPLACE_BTOWC=1 ;; 24969 esac 24970 fi 24971 24972 24973 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 24974 GL_COND_OBJ_BTOWC_TRUE= 24975 GL_COND_OBJ_BTOWC_FALSE='#' 24976 else 24977 GL_COND_OBJ_BTOWC_TRUE='#' 24978 GL_COND_OBJ_BTOWC_FALSE= 24979 fi 24980 : 24981 if test -z "${GL_COND_OBJ_BTOWC_TRUE}" && test -z "${GL_COND_OBJ_BTOWC_FALSE}"; then 24982 GL_COND_OBJ_BTOWC_TRUE='#' 24983 GL_COND_OBJ_BTOWC_FALSE='#' 24984 fi 24985 24986 if test -z "$GL_COND_OBJ_BTOWC_TRUE"; then : 24987 24988 24989 : 24990 24991 24992 fi 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 GL_GNULIB_BTOWC=1 25008 25009 25010 25011 25012 25013 printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h 25014 25015 25016 25017 25018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 25019 printf %s "checking for __builtin_expect... " >&6; } 25020 if test ${gl_cv___builtin_expect+y} 25021 then : 25022 printf %s "(cached) " >&6 25023 else case e in #( 25024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25025 /* end confdefs.h. */ 25026 25027 int 25028 main (int argc, char **argv) 25029 { 25030 argc = __builtin_expect (argc, 100); 25031 return argv[argc != 100][0]; 25032 } 25033 _ACEOF 25034 if ac_fn_c_try_link "$LINENO" 25035 then : 25036 gl_cv___builtin_expect=yes 25037 else case e in #( 25038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25039 /* end confdefs.h. */ 25040 25041 #include <builtins.h> 25042 int 25043 main (int argc, char **argv) 25044 { 25045 argc = __builtin_expect (argc, 100); 25046 return argv[argc != 100][0]; 25047 } 25048 _ACEOF 25049 if ac_fn_c_try_link "$LINENO" 25050 then : 25051 gl_cv___builtin_expect="in <builtins.h>" 25052 else case e in #( 25053 e) gl_cv___builtin_expect=no ;; 25054 esac 25055 fi 25056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25057 conftest$ac_exeext conftest.$ac_ext ;; 25058 esac 25059 fi 25060 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25061 conftest$ac_exeext conftest.$ac_ext ;; 25062 esac 25063 fi 25064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5 25065 printf "%s\n" "$gl_cv___builtin_expect" >&6; } 25066 if test "$gl_cv___builtin_expect" = yes; then 25067 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h 25068 25069 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then 25070 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h 25071 25072 fi 25073 25074 25075 25076 25077 25078 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX" 25079 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then 25080 25081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5 25082 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; } 25083 if test ${ac_cv_func_calloc_0_nonnull+y} 25084 then : 25085 printf %s "(cached) " >&6 25086 else case e in #( 25087 e) if test $cross_compiling != yes; then 25088 ac_cv_func_calloc_0_nonnull=yes 25089 if test "$cross_compiling" = yes 25090 then : 25091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25093 as_fn_error $? "cannot run test program while cross compiling 25094 See 'config.log' for more details" "$LINENO" 5; } 25095 else case e in #( 25096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444 25097 /* end confdefs.h. */ 7445 25098 $ac_includes_default 7446 /* malloc might have been renamed as rpl_malloc. */ 7447 #undef malloc 7448 7449 /* Thanks to Mike Haertel and Jim Avera for this test. 7450 Here is a matrix of mmap possibilities: 7451 mmap private not fixed 7452 mmap private fixed at somewhere currently unmapped 7453 mmap private fixed at somewhere already mapped 7454 mmap shared not fixed 7455 mmap shared fixed at somewhere currently unmapped 7456 mmap shared fixed at somewhere already mapped 7457 For private mappings, we should verify that changes cannot be read() 7458 back from the file, nor mmap's back from the file at a different 7459 address. (There have been systems where private was not correctly 7460 implemented like the infamous i386 svr4.0, and systems where the 7461 VM page cache was not coherent with the file system buffer cache 7462 like early versions of FreeBSD and possibly contemporary NetBSD.) 7463 For shared mappings, we should conversely verify that changes get 7464 propagated back to all the places they're supposed to be. 7465 7466 Grep wants private fixed already mapped. 7467 The main things grep needs to know about mmap are: 7468 * does it exist and is it safe to write into the mmap'd area 7469 * how to use it (BSD variants) */ 7470 25099 int 25100 main (void) 25101 { 25102 int result = 0; 25103 char * volatile p = calloc (0, 0); 25104 if (!p) 25105 result |= 1; 25106 free (p); 25107 return result; 25108 25109 ; 25110 return 0; 25111 } 25112 _ACEOF 25113 if ac_fn_c_try_run "$LINENO" 25114 then : 25115 25116 else case e in #( 25117 e) ac_cv_func_calloc_0_nonnull=no ;; 25118 esac 25119 fi 25120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25121 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 25122 esac 25123 fi 25124 25125 else 25126 case "$host_os" in 25127 # Guess yes on glibc systems. 25128 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 25129 # Guess yes on musl systems. 25130 *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 25131 # Guess yes on native Windows. 25132 mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; 25133 # If we don't know, obey --enable-cross-guesses. 25134 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;; 25135 esac 25136 fi 25137 ;; 25138 esac 25139 fi 25140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 25141 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; } 25142 case $ac_cv_func_calloc_0_nonnull in #( 25143 *yes) : 25144 ;; #( 25145 *) : 25146 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;; 25147 esac 25148 25149 fi 25150 25151 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then 25152 25153 25154 25155 25156 25157 25158 25159 25160 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" 25161 25162 fi 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 GL_GNULIB_CALLOC_GNU=1 25173 25174 25175 25176 25177 25178 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h 25179 25180 25181 25182 25183 25184 25185 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then 25186 REPLACE_CALLOC_FOR_CALLOC_POSIX=1 25187 fi 25188 25189 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then 25190 25191 25192 25193 25194 25195 25196 25197 25198 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" 25199 25200 fi 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 GL_GNULIB_CALLOC_POSIX=1 25211 25212 25213 25214 25215 25216 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h 25217 25218 25219 25220 25221 25222 25223 if test $ac_cv_func_canonicalize_file_name = no; then 25224 HAVE_CANONICALIZE_FILE_NAME=0 25225 if test $ac_cv_func_realpath = no; then 25226 HAVE_REALPATH=0 25227 else 25228 case "$gl_cv_func_realpath_works" in 25229 *yes) ;; 25230 *) REPLACE_REALPATH=1 ;; 25231 esac 25232 fi 25233 else 25234 case "$gl_cv_func_realpath_works" in 25235 *yes) 25236 ;; 25237 *) 25238 REPLACE_CANONICALIZE_FILE_NAME=1 25239 REPLACE_REALPATH=1 25240 ;; 25241 esac 25242 fi 25243 25244 25245 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then 25246 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE= 25247 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#' 25248 else 25249 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#' 25250 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE= 25251 fi 25252 : 25253 if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then 25254 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#' 25255 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#' 25256 fi 25257 25258 25259 25260 printf "%s\n" "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 GL_GNULIB_CANONICALIZE_FILE_NAME=1 25273 25274 25275 25276 25277 25278 printf "%s\n" "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 GL_GNULIB_REALPATH=1 25292 25293 25294 25295 25296 25297 printf "%s\n" "#define GNULIB_TEST_REALPATH 1" >>confdefs.h 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 GL_GNULIB_CHDIR=1 25311 25312 25313 25314 25315 25316 printf "%s\n" "#define GNULIB_TEST_CHDIR 1" >>confdefs.h 25317 25318 25319 25320 25321 25322 25323 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. 25324 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 25325 25326 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* 25327 # programs in the package would end up linked with that potentially-shared 25328 # library, inducing unnecessary run-time overhead. 25329 LIB_CLOCK_GETTIME= 25330 25331 gl_saved_libs=$LIBS 25332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 25333 printf %s "checking for library containing clock_gettime... " >&6; } 25334 if test ${ac_cv_search_clock_gettime+y} 25335 then : 25336 printf %s "(cached) " >&6 25337 else case e in #( 25338 e) ac_func_search_save_LIBS=$LIBS 25339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25340 /* end confdefs.h. */ 25341 25342 /* Override any GCC internal prototype to avoid an error. 25343 Use char because int might match the return type of a GCC 25344 builtin and then its argument prototype would still apply. 25345 The 'extern "C"' is for builds by C++ compilers; 25346 although this is not generally supported in C code, supporting it here 25347 has little cost and some practical benefit (sr 110532). */ 25348 #ifdef __cplusplus 25349 extern "C" 25350 #endif 25351 char clock_gettime (void); 25352 int 25353 main (void) 25354 { 25355 return clock_gettime (); 25356 ; 25357 return 0; 25358 } 25359 _ACEOF 25360 for ac_lib in '' rt posix4 25361 do 25362 if test -z "$ac_lib"; then 25363 ac_res="none required" 25364 else 25365 ac_res=-l$ac_lib 25366 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25367 fi 25368 if ac_fn_c_try_link "$LINENO" 25369 then : 25370 ac_cv_search_clock_gettime=$ac_res 25371 fi 25372 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25373 conftest$ac_exeext 25374 if test ${ac_cv_search_clock_gettime+y} 25375 then : 25376 break 25377 fi 25378 done 25379 if test ${ac_cv_search_clock_gettime+y} 25380 then : 25381 25382 else case e in #( 25383 e) ac_cv_search_clock_gettime=no ;; 25384 esac 25385 fi 25386 rm conftest.$ac_ext 25387 LIBS=$ac_func_search_save_LIBS ;; 25388 esac 25389 fi 25390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 25391 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 25392 ac_res=$ac_cv_search_clock_gettime 25393 if test "$ac_res" != no 25394 then : 25395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25396 test "$ac_cv_search_clock_gettime" = "none required" || 25397 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime 25398 fi 25399 25400 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 25401 if test "x$ac_cv_func_clock_getres" = xyes 25402 then : 25403 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 25404 25405 fi 25406 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 25407 if test "x$ac_cv_func_clock_gettime" = xyes 25408 then : 25409 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 25410 25411 fi 25412 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 25413 if test "x$ac_cv_func_clock_settime" = xyes 25414 then : 25415 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 25416 25417 fi 25418 25419 LIBS=$gl_saved_libs 25420 25421 25422 25423 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 25424 25425 25426 25427 25428 25429 25430 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 25431 REPLACE_CLOSE=1 25432 fi 25433 25434 25435 25436 25437 25438 25439 if test $ac_cv_header_sys_socket_h != yes; then 25440 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 25441 if test "x$ac_cv_header_winsock2_h" = xyes 25442 then : 25443 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 25444 25445 fi 25446 25447 fi 25448 if test "$ac_cv_header_winsock2_h" = yes; then 25449 HAVE_WINSOCK2_H=1 25450 UNISTD_H_HAVE_WINSOCK2_H=1 25451 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 25452 else 25453 HAVE_WINSOCK2_H=0 25454 fi 25455 25456 25457 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 25458 REPLACE_CLOSE=1 25459 fi 25460 25461 25462 25463 25464 if test $REPLACE_CLOSE = 1; then 25465 GL_COND_OBJ_CLOSE_TRUE= 25466 GL_COND_OBJ_CLOSE_FALSE='#' 25467 else 25468 GL_COND_OBJ_CLOSE_TRUE='#' 25469 GL_COND_OBJ_CLOSE_FALSE= 25470 fi 25471 : 25472 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then 25473 GL_COND_OBJ_CLOSE_TRUE='#' 25474 GL_COND_OBJ_CLOSE_FALSE='#' 25475 fi 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 GL_GNULIB_CLOSE=1 25487 25488 25489 25490 25491 25492 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 25493 25494 25495 25496 25497 25498 printf "%s\n" "#define GNULIB_CLOSE_STREAM 1" >>confdefs.h 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 25512 printf %s "checking whether // is distinct from /... " >&6; } 25513 if test ${gl_cv_double_slash_root+y} 25514 then : 25515 printf %s "(cached) " >&6 25516 else case e in #( 25517 e) if test x"$cross_compiling" = xyes ; then 25518 # When cross-compiling, there is no way to tell whether // is special 25519 # short of a list of hosts. However, the only known hosts to date 25520 # that have a distinct // are Apollo DomainOS (too old to port to), 25521 # Cygwin, and z/OS. If anyone knows of another system for which // has 25522 # special semantics and is distinct from /, please report it to 25523 # <[email protected]>. 25524 case $host in 25525 *-cygwin | i370-ibm-openedition) 25526 gl_cv_double_slash_root=yes ;; 25527 *) 25528 # Be optimistic and assume that / and // are the same when we 25529 # don't know. 25530 gl_cv_double_slash_root='unknown, assuming no' ;; 25531 esac 25532 else 25533 set x `ls -di / // 2>/dev/null` 25534 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 25535 gl_cv_double_slash_root=no 25536 else 25537 gl_cv_double_slash_root=yes 25538 fi 25539 fi ;; 25540 esac 25541 fi 25542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 25543 printf "%s\n" "$gl_cv_double_slash_root" >&6; } 25544 if test "$gl_cv_double_slash_root" = yes; then 25545 25546 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 25547 25548 fi 25549 25550 25551 25552 25553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 25554 printf %s "checking whether dup2 works... " >&6; } 25555 if test ${gl_cv_func_dup2_works+y} 25556 then : 25557 printf %s "(cached) " >&6 25558 else case e in #( 25559 e) if test "$cross_compiling" = yes 25560 then : 25561 case "$host_os" in 25562 mingw*) # on this platform, dup2 always returns 0 for success 25563 gl_cv_func_dup2_works="guessing no" ;; 25564 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 25565 gl_cv_func_dup2_works="guessing no" ;; 25566 aix* | freebsd*) 25567 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 25568 # not EBADF. 25569 gl_cv_func_dup2_works="guessing no" ;; 25570 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 25571 gl_cv_func_dup2_works="guessing no" ;; 25572 *-android*) # implemented using dup3(), which fails if oldfd == newfd 25573 gl_cv_func_dup2_works="guessing no" ;; 25574 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 25575 gl_cv_func_dup2_works="guessing no" ;; 25576 *) gl_cv_func_dup2_works="guessing yes" ;; 25577 esac 25578 else case e in #( 25579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25580 /* end confdefs.h. */ 25581 25582 #include <errno.h> 25583 #include <fcntl.h> 25584 #include <limits.h> 25585 #include <sys/resource.h> 25586 #include <unistd.h> 25587 25588 25589 $gl_mda_defines 25590 25591 #ifndef RLIM_SAVED_CUR 25592 # define RLIM_SAVED_CUR RLIM_INFINITY 25593 #endif 25594 #ifndef RLIM_SAVED_MAX 25595 # define RLIM_SAVED_MAX RLIM_INFINITY 25596 #endif 25597 25598 int 25599 main (void) 25600 { 25601 int result = 0; 25602 int bad_fd = INT_MAX; 25603 struct rlimit rlim; 25604 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 25605 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 25606 && rlim.rlim_cur != RLIM_INFINITY 25607 && rlim.rlim_cur != RLIM_SAVED_MAX 25608 && rlim.rlim_cur != RLIM_SAVED_CUR) 25609 bad_fd = rlim.rlim_cur; 25610 #ifdef FD_CLOEXEC 25611 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 25612 result |= 1; 25613 #endif 25614 if (dup2 (1, 1) != 1) 25615 result |= 2; 25616 #ifdef FD_CLOEXEC 25617 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 25618 result |= 4; 25619 #endif 25620 close (0); 25621 if (dup2 (0, 0) != -1) 25622 result |= 8; 25623 /* Many gnulib modules require POSIX conformance of EBADF. */ 25624 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 25625 result |= 16; 25626 /* Flush out some cygwin core dumps. */ 25627 if (dup2 (2, -1) != -1 || errno != EBADF) 25628 result |= 32; 25629 dup2 (2, 255); 25630 dup2 (2, 256); 25631 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 25632 { 25633 int fd = open (".", O_RDONLY); 25634 if (fd == -1) 25635 result |= 64; 25636 else if (dup2 (fd, fd + 1) == -1) 25637 result |= 128; 25638 close (fd); 25639 } 25640 return result; 25641 ; 25642 return 0; 25643 } 25644 25645 _ACEOF 25646 if ac_fn_c_try_run "$LINENO" 25647 then : 25648 gl_cv_func_dup2_works=yes 25649 else case e in #( 25650 e) gl_cv_func_dup2_works=no ;; 25651 esac 25652 fi 25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25654 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 25655 esac 25656 fi 25657 25658 ;; 25659 esac 25660 fi 25661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 25662 printf "%s\n" "$gl_cv_func_dup2_works" >&6; } 25663 case "$gl_cv_func_dup2_works" in 25664 *yes) ;; 25665 *) 25666 REPLACE_DUP2=1 25667 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 25668 if test "x$ac_cv_func_setdtablesize" = xyes 25669 then : 25670 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h 25671 25672 fi 25673 25674 ;; 25675 esac 25676 25677 25678 25679 if test $REPLACE_DUP2 = 1; then 25680 GL_COND_OBJ_DUP2_TRUE= 25681 GL_COND_OBJ_DUP2_FALSE='#' 25682 else 25683 GL_COND_OBJ_DUP2_TRUE='#' 25684 GL_COND_OBJ_DUP2_FALSE= 25685 fi 25686 : 25687 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then 25688 GL_COND_OBJ_DUP2_TRUE='#' 25689 GL_COND_OBJ_DUP2_FALSE='#' 25690 fi 25691 25692 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then : 25693 25694 25695 25696 fi 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 GL_GNULIB_DUP2=1 25707 25708 25709 25710 25711 25712 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h 25713 25714 25715 25716 25717 25718 25719 25720 25721 case "$GL_GENERATE_ERRNO_H" in 25722 false) ERRNO_H='' ;; 25723 true) 25724 if test -z "$ERRNO_H"; then 25725 ERRNO_H="${gl_source_base_prefix}errno.h" 25726 fi 25727 ;; 25728 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;; 25729 esac 25730 25731 25732 if $GL_GENERATE_ERRNO_H; then 25733 GL_GENERATE_ERRNO_H_TRUE= 25734 GL_GENERATE_ERRNO_H_FALSE='#' 25735 else 25736 GL_GENERATE_ERRNO_H_TRUE='#' 25737 GL_GENERATE_ERRNO_H_FALSE= 25738 fi 25739 : 25740 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 25741 GL_GENERATE_ERRNO_H_TRUE='#' 25742 GL_GENERATE_ERRNO_H_FALSE='#' 25743 fi 25744 25745 25746 25747 25748 25749 25750 25751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 25752 printf %s "checking for error_at_line... " >&6; } 25753 if test ${ac_cv_lib_error_at_line+y} 25754 then : 25755 printf %s "(cached) " >&6 25756 else case e in #( 25757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25758 /* end confdefs.h. */ 25759 #include <error.h> 25760 int 25761 main (void) 25762 { 25763 error_at_line (0, 0, "", 0, "an error occurred"); 25764 ; 25765 return 0; 25766 } 25767 _ACEOF 25768 if ac_fn_c_try_link "$LINENO" 25769 then : 25770 ac_cv_lib_error_at_line=yes 25771 else case e in #( 25772 e) ac_cv_lib_error_at_line=no ;; 25773 esac 25774 fi 25775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25776 conftest$ac_exeext conftest.$ac_ext ;; 25777 esac 25778 fi 25779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 25780 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } 25781 25782 25783 if test "$ac_cv_lib_error_at_line" = no; then 25784 GL_COND_OBJ_ERROR_TRUE= 25785 GL_COND_OBJ_ERROR_FALSE='#' 25786 else 25787 GL_COND_OBJ_ERROR_TRUE='#' 25788 GL_COND_OBJ_ERROR_FALSE= 25789 fi 25790 : 25791 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then 25792 GL_COND_OBJ_ERROR_TRUE='#' 25793 GL_COND_OBJ_ERROR_FALSE='#' 25794 fi 25795 25796 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then : 25797 25798 25799 25800 25801 25802 : 25803 25804 25805 fi 25806 25807 25808 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 25809 25810 25811 25812 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 25813 25814 25815 25816 25817 25818 25819 25820 if test $ac_cv_func_fcntl = no; then 25821 25822 25823 25824 if test $ac_cv_func_fcntl = no; then 25825 HAVE_FCNTL=0 25826 else 25827 REPLACE_FCNTL=1 25828 fi 25829 25830 else 25831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 25832 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } 25833 if test ${gl_cv_func_fcntl_f_dupfd_works+y} 25834 then : 25835 printf %s "(cached) " >&6 25836 else case e in #( 25837 e) if test "$cross_compiling" = yes 25838 then : 25839 case $host_os in 25840 aix* | cygwin* | haiku*) 25841 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 25842 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 25843 esac 25844 else case e in #( 25845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25846 /* end confdefs.h. */ 25847 #include <errno.h> 25848 #include <fcntl.h> 25849 #include <limits.h> 25850 #include <sys/resource.h> 25851 #include <unistd.h> 25852 25853 25854 $gl_mda_defines 25855 25856 #ifndef RLIM_SAVED_CUR 25857 # define RLIM_SAVED_CUR RLIM_INFINITY 25858 #endif 25859 #ifndef RLIM_SAVED_MAX 25860 # define RLIM_SAVED_MAX RLIM_INFINITY 25861 #endif 25862 25863 int 25864 main (void) 25865 { 25866 int result = 0; 25867 int bad_fd = INT_MAX; 25868 struct rlimit rlim; 25869 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 25870 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 25871 && rlim.rlim_cur != RLIM_INFINITY 25872 && rlim.rlim_cur != RLIM_SAVED_MAX 25873 && rlim.rlim_cur != RLIM_SAVED_CUR) 25874 bad_fd = rlim.rlim_cur; 25875 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 25876 if (errno != EINVAL) result |= 2; 25877 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 25878 if (errno != EINVAL) result |= 8; 25879 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 25880 { 25881 int fd; 25882 fd = open (".", O_RDONLY); 25883 if (fd == -1) 25884 result |= 16; 25885 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 25886 result |= 32; 25887 25888 close (fd); 25889 } 25890 return result; 25891 ; 25892 return 0; 25893 } 25894 _ACEOF 25895 if ac_fn_c_try_run "$LINENO" 25896 then : 25897 gl_cv_func_fcntl_f_dupfd_works=yes 25898 else case e in #( 25899 e) gl_cv_func_fcntl_f_dupfd_works=no ;; 25900 esac 25901 fi 25902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25903 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 25904 esac 25905 fi 25906 ;; 25907 esac 25908 fi 25909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 25910 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 25911 case $gl_cv_func_fcntl_f_dupfd_works in 25912 *yes) ;; 25913 *) 25914 25915 25916 if test $ac_cv_func_fcntl = no; then 25917 HAVE_FCNTL=0 25918 else 25919 REPLACE_FCNTL=1 25920 fi 25921 25922 25923 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 25924 ;; 25925 esac 25926 25927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 25928 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 25929 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} 25930 then : 25931 printf %s "(cached) " >&6 25932 else case e in #( 25933 e) if test "$cross_compiling" = yes 25934 then : 25935 case "$host_os" in 25936 # Guess no on NetBSD. 25937 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; 25938 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; 25939 esac 25940 25941 else case e in #( 25942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25943 /* end confdefs.h. */ 7471 25944 #include <fcntl.h> 7472 #include <sys/mman.h> 7473 7474 #if !STDC_HEADERS && !HAVE_STDLIB_H 7475 char *malloc (); 25945 #include <unistd.h> 25946 int main (int argc, char *argv[]) 25947 { 25948 if (argc == 1) 25949 /* parent process */ 25950 { 25951 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) 25952 return 1; 25953 return execl ("./conftest", "./conftest", "child", NULL); 25954 } 25955 else 25956 /* child process */ 25957 return (fcntl (10, F_GETFL) < 0 ? 0 : 42); 25958 } 25959 25960 25961 _ACEOF 25962 if ac_fn_c_try_run "$LINENO" 25963 then : 25964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25965 /* end confdefs.h. */ 25966 25967 #ifdef __linux__ 25968 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 25969 it to support the semantics on older kernels that failed with EINVAL. */ 25970 choke me 7476 25971 #endif 7477 25972 7478 /* This mess was copied from the GNU getpagesize.h. */ 7479 #if !HAVE_GETPAGESIZE 7480 /* Assume that all systems that can run configure have sys/param.h. */ 7481 # if !HAVE_SYS_PARAM_H 7482 # define HAVE_SYS_PARAM_H 1 7483 # endif 7484 7485 # ifdef _SC_PAGESIZE 7486 # define getpagesize() sysconf(_SC_PAGESIZE) 7487 # else /* no _SC_PAGESIZE */ 7488 # if HAVE_SYS_PARAM_H 7489 # include <sys/param.h> 7490 # ifdef EXEC_PAGESIZE 7491 # define getpagesize() EXEC_PAGESIZE 7492 # else /* no EXEC_PAGESIZE */ 7493 # ifdef NBPG 7494 # define getpagesize() NBPG * CLSIZE 7495 # ifndef CLSIZE 7496 # define CLSIZE 1 7497 # endif /* no CLSIZE */ 7498 # else /* no NBPG */ 7499 # ifdef NBPC 7500 # define getpagesize() NBPC 7501 # else /* no NBPC */ 7502 # ifdef PAGESIZE 7503 # define getpagesize() PAGESIZE 7504 # endif /* PAGESIZE */ 7505 # endif /* no NBPC */ 7506 # endif /* no NBPG */ 7507 # endif /* no EXEC_PAGESIZE */ 7508 # else /* no HAVE_SYS_PARAM_H */ 7509 # define getpagesize() 8192 /* punt totally */ 7510 # endif /* no HAVE_SYS_PARAM_H */ 7511 # endif /* no _SC_PAGESIZE */ 7512 7513 #endif /* no HAVE_GETPAGESIZE */ 25973 int 25974 main (void) 25975 { 25976 25977 ; 25978 return 0; 25979 } 25980 _ACEOF 25981 if ac_fn_c_try_compile "$LINENO" 25982 then : 25983 gl_cv_func_fcntl_f_dupfd_cloexec=yes 25984 else case e in #( 25985 e) gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" ;; 25986 esac 25987 fi 25988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25989 25990 else case e in #( 25991 e) gl_cv_func_fcntl_f_dupfd_cloexec=no ;; 25992 esac 25993 fi 25994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25995 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 25996 esac 25997 fi 25998 25999 ;; 26000 esac 26001 fi 26002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 26003 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 26004 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in 26005 *yes) ;; 26006 *) 26007 26008 26009 if test $ac_cv_func_fcntl = no; then 26010 HAVE_FCNTL=0 26011 else 26012 REPLACE_FCNTL=1 26013 fi 26014 26015 ;; 26016 esac 26017 fi 26018 26019 26020 26021 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 26022 GL_COND_OBJ_FCNTL_TRUE= 26023 GL_COND_OBJ_FCNTL_FALSE='#' 26024 else 26025 GL_COND_OBJ_FCNTL_TRUE='#' 26026 GL_COND_OBJ_FCNTL_FALSE= 26027 fi 26028 : 26029 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then 26030 GL_COND_OBJ_FCNTL_TRUE='#' 26031 GL_COND_OBJ_FCNTL_FALSE='#' 26032 fi 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 GL_GNULIB_FCNTL=1 26044 26045 26046 26047 26048 26049 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 26062 printf %s "checking for flexible array member... " >&6; } 26063 if test ${ac_cv_c_flexmember+y} 26064 then : 26065 printf %s "(cached) " >&6 26066 else case e in #( 26067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26068 /* end confdefs.h. */ 26069 #include <stdlib.h> 26070 #include <stdio.h> 26071 #include <stddef.h> 26072 struct m { struct m *next, **list; char name[]; }; 26073 struct s { struct s *p; struct m *m; int n; double d[]; }; 26074 int 26075 main (void) 26076 { 26077 int m = getchar (); 26078 size_t nbytes = offsetof (struct s, d) + m * sizeof (double); 26079 nbytes += sizeof (struct s) - 1; 26080 nbytes -= nbytes % sizeof (struct s); 26081 struct s *p = malloc (nbytes); 26082 p->p = p; 26083 p->m = NULL; 26084 p->d[0] = 0.0; 26085 return p->d != (double *) NULL; 26086 ; 26087 return 0; 26088 } 26089 _ACEOF 26090 if ac_fn_c_try_compile "$LINENO" 26091 then : 26092 ac_cv_c_flexmember=yes 26093 else case e in #( 26094 e) ac_cv_c_flexmember=no ;; 26095 esac 26096 fi 26097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 26098 esac 26099 fi 26100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 26101 printf "%s\n" "$ac_cv_c_flexmember" >&6; } 26102 if test $ac_cv_c_flexmember = yes; then 26103 26104 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 26105 26106 else 26107 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 26108 26109 fi 26110 26111 26112 26113 fp_headers=' 26114 #include <stdio.h> 26115 #if HAVE_STDIO_EXT_H 26116 # include <stdio_ext.h> 26117 #endif 26118 ' 26119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5 26120 printf %s "checking for __fpending... " >&6; } 26121 if test ${gl_cv_func___fpending+y} 26122 then : 26123 printf %s "(cached) " >&6 26124 else case e in #( 26125 e) 26126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26127 /* end confdefs.h. */ 26128 $fp_headers 26129 int 26130 main (void) 26131 { 26132 return ! __fpending (stdin); 26133 ; 26134 return 0; 26135 } 26136 _ACEOF 26137 if ac_fn_c_try_link "$LINENO" 26138 then : 26139 gl_cv_func___fpending=yes 26140 else case e in #( 26141 e) gl_cv_func___fpending=no ;; 26142 esac 26143 fi 26144 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26145 conftest$ac_exeext conftest.$ac_ext 26146 ;; 26147 esac 26148 fi 26149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5 26150 printf "%s\n" "$gl_cv_func___fpending" >&6; } 26151 if test $gl_cv_func___fpending = yes; then 26152 ac_fn_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers 26153 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26154 if test "x$ac_cv_have_decl___fpending" = xyes 26155 then : 26156 ac_have_decl=1 26157 else case e in #( 26158 e) ac_have_decl=0 ;; 26159 esac 26160 fi 26161 printf "%s\n" "#define HAVE_DECL___FPENDING $ac_have_decl" >>confdefs.h 26162 26163 fi 26164 26165 26166 if test $gl_cv_func___fpending = no; then 26167 GL_COND_OBJ_FPENDING_TRUE= 26168 GL_COND_OBJ_FPENDING_FALSE='#' 26169 else 26170 GL_COND_OBJ_FPENDING_TRUE='#' 26171 GL_COND_OBJ_FPENDING_FALSE= 26172 fi 26173 : 26174 if test -z "${GL_COND_OBJ_FPENDING_TRUE}" && test -z "${GL_COND_OBJ_FPENDING_FALSE}"; then 26175 GL_COND_OBJ_FPENDING_TRUE='#' 26176 GL_COND_OBJ_FPENDING_FALSE='#' 26177 fi 26178 26179 26180 26181 26182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5 26183 printf %s "checking whether free is known to preserve errno... " >&6; } 26184 if test ${gl_cv_func_free_preserves_errno+y} 26185 then : 26186 printf %s "(cached) " >&6 26187 else case e in #( 26188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26189 /* end confdefs.h. */ 26190 #include <stdlib.h> 26191 26192 int 26193 main (void) 26194 { 26195 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__) 26196 #elif defined __OpenBSD__ 26197 #elif defined __sun 26198 #else 26199 #error "'free' is not known to preserve errno" 26200 #endif 26201 26202 ; 26203 return 0; 26204 } 26205 _ACEOF 26206 if ac_fn_c_try_compile "$LINENO" 26207 then : 26208 gl_cv_func_free_preserves_errno=yes 26209 else case e in #( 26210 e) gl_cv_func_free_preserves_errno=no ;; 26211 esac 26212 fi 26213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26214 ;; 26215 esac 26216 fi 26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5 26218 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; } 26219 26220 case $gl_cv_func_free_preserves_errno in 26221 *yes) 26222 26223 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h 26224 26225 ;; 26226 *) REPLACE_FREE=1 ;; 26227 esac 26228 26229 26230 if test $REPLACE_FREE = 1; then 26231 GL_COND_OBJ_FREE_TRUE= 26232 GL_COND_OBJ_FREE_FALSE='#' 26233 else 26234 GL_COND_OBJ_FREE_TRUE='#' 26235 GL_COND_OBJ_FREE_FALSE= 26236 fi 26237 : 26238 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then 26239 GL_COND_OBJ_FREE_TRUE='#' 26240 GL_COND_OBJ_FREE_FALSE='#' 26241 fi 26242 26243 if test -z "$GL_COND_OBJ_FREE_TRUE"; then : 26244 26245 : 26246 26247 fi 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 GL_GNULIB_FREE_POSIX=1 26258 26259 26260 26261 26262 26263 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h 26264 26265 26266 26267 26268 26269 26270 26271 case "$host_os" in 26272 mingw* | solaris*) 26273 REPLACE_FSTAT=1 26274 ;; 26275 esac 26276 26277 26278 26279 26280 if test $REPLACE_FSTAT = 1; then 26281 GL_COND_OBJ_FSTAT_TRUE= 26282 GL_COND_OBJ_FSTAT_FALSE='#' 26283 else 26284 GL_COND_OBJ_FSTAT_TRUE='#' 26285 GL_COND_OBJ_FSTAT_FALSE= 26286 fi 26287 : 26288 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then 26289 GL_COND_OBJ_FSTAT_TRUE='#' 26290 GL_COND_OBJ_FSTAT_FALSE='#' 26291 fi 26292 26293 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then : 26294 26295 case "$host_os" in 26296 mingw*) 26297 26298 26299 26300 26301 26302 26303 26304 26305 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 26306 26307 ;; 26308 esac 26309 26310 26311 26312 : 26313 26314 26315 fi 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 GL_GNULIB_FSTAT=1 26326 26327 26328 26329 26330 26331 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 26332 26333 26334 26335 26336 26337 26338 26339 26340 if test $ac_cv_func___fwriting = no; then 26341 GL_COND_OBJ_FWRITING_TRUE= 26342 GL_COND_OBJ_FWRITING_FALSE='#' 26343 else 26344 GL_COND_OBJ_FWRITING_TRUE='#' 26345 GL_COND_OBJ_FWRITING_FALSE= 26346 fi 26347 : 26348 if test -z "${GL_COND_OBJ_FWRITING_TRUE}" && test -z "${GL_COND_OBJ_FWRITING_FALSE}"; then 26349 GL_COND_OBJ_FWRITING_TRUE='#' 26350 GL_COND_OBJ_FWRITING_FALSE='#' 26351 fi 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 if test $ac_cv_func_getdelim = yes; then 26363 HAVE_GETDELIM=1 26364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 26365 printf %s "checking for working getdelim function... " >&6; } 26366 if test ${gl_cv_func_working_getdelim+y} 26367 then : 26368 printf %s "(cached) " >&6 26369 else case e in #( 26370 e) case "$host_os" in 26371 darwin*) 26372 gl_cv_func_working_getdelim=no ;; 26373 *) 26374 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 26375 if test "$cross_compiling" = yes 26376 then : 26377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26378 /* end confdefs.h. */ 26379 26380 #include <features.h> 26381 #ifdef __GNU_LIBRARY__ 26382 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 26383 Lucky GNU user 26384 #endif 26385 #endif 26386 26387 _ACEOF 26388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26389 $EGREP_TRADITIONAL "Lucky GNU user" >/dev/null 2>&1 26390 then : 26391 gl_cv_func_working_getdelim="guessing yes" 26392 else case e in #( 26393 e) case "$host_os" in 26394 *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; 26395 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; 26396 esac 26397 ;; 26398 esac 26399 fi 26400 rm -rf conftest* 26401 26402 26403 else case e in #( 26404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26405 /* end confdefs.h. */ 26406 26407 # include <stdio.h> 26408 # include <stdlib.h> 26409 # include <string.h> 26410 int main () 26411 { 26412 FILE *in = fopen ("./conftest.data", "r"); 26413 if (!in) 26414 return 1; 26415 { 26416 /* Test result for a NULL buffer and a zero size. 26417 Based on a test program from Karl Heuer. */ 26418 char *line = NULL; 26419 size_t siz = 0; 26420 int len = getdelim (&line, &siz, '\n', in); 26421 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 26422 { free (line); fclose (in); return 2; } 26423 free (line); 26424 } 26425 { 26426 /* Test result for a NULL buffer and a non-zero size. 26427 This crashes on FreeBSD 8.0. */ 26428 char *line = NULL; 26429 size_t siz = (size_t)(~0) / 4; 26430 if (getdelim (&line, &siz, '\n', in) == -1) 26431 { fclose (in); return 3; } 26432 free (line); 26433 } 26434 fclose (in); 26435 return 0; 26436 } 26437 26438 _ACEOF 26439 if ac_fn_c_try_run "$LINENO" 26440 then : 26441 gl_cv_func_working_getdelim=yes 26442 else case e in #( 26443 e) gl_cv_func_working_getdelim=no ;; 26444 esac 26445 fi 26446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26447 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 26448 esac 26449 fi 26450 26451 ;; 26452 esac 26453 ;; 26454 esac 26455 fi 26456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 26457 printf "%s\n" "$gl_cv_func_working_getdelim" >&6; } 26458 case "$gl_cv_func_working_getdelim" in 26459 *yes) ;; 26460 *) REPLACE_GETDELIM=1 ;; 26461 esac 26462 else 26463 HAVE_GETDELIM=0 26464 fi 26465 26466 if test $ac_cv_have_decl_getdelim = no; then 26467 HAVE_DECL_GETDELIM=0 26468 fi 26469 26470 26471 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 26472 GL_COND_OBJ_GETDELIM_TRUE= 26473 GL_COND_OBJ_GETDELIM_FALSE='#' 26474 else 26475 GL_COND_OBJ_GETDELIM_TRUE='#' 26476 GL_COND_OBJ_GETDELIM_FALSE= 26477 fi 26478 : 26479 if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then 26480 GL_COND_OBJ_GETDELIM_TRUE='#' 26481 GL_COND_OBJ_GETDELIM_FALSE='#' 26482 fi 26483 26484 if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then : 26485 26486 26487 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 26488 if test "x$ac_cv_func_flockfile" = xyes 26489 then : 26490 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h 26491 26492 fi 26493 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile" 26494 if test "x$ac_cv_func_funlockfile" = xyes 26495 then : 26496 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h 26497 26498 fi 26499 26500 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 26501 if test "x$ac_cv_have_decl_getc_unlocked" = xyes 26502 then : 26503 ac_have_decl=1 26504 else case e in #( 26505 e) ac_have_decl=0 ;; 26506 esac 26507 fi 26508 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h 26509 26510 26511 26512 fi 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 GL_GNULIB_GETDELIM=1 26523 26524 26525 26526 26527 26528 printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h 26529 26530 26531 26532 26533 26534 26535 26536 26537 if test $ac_cv_func_getdtablesize = yes && 26538 test $ac_cv_have_decl_getdtablesize = yes; then 26539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 26540 printf %s "checking whether getdtablesize works... " >&6; } 26541 if test ${gl_cv_func_getdtablesize_works+y} 26542 then : 26543 printf %s "(cached) " >&6 26544 else case e in #( 26545 e) case "$host_os" in 26546 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; 26547 *) 26548 if test "$cross_compiling" = yes 26549 then : 26550 case "$host_os" in 26551 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 26552 gl_cv_func_getdtablesize_works="guessing no" ;; 26553 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 26554 esac 26555 26556 else case e in #( 26557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26558 /* end confdefs.h. */ 26559 26560 #include <unistd.h> 26561 26562 26563 $gl_mda_defines 26564 26565 26566 int 26567 main (void) 26568 { 26569 int size = getdtablesize(); 26570 if (dup2 (0, getdtablesize()) != -1) 26571 return 1; 26572 if (size != getdtablesize()) 26573 return 2; 26574 26575 ; 26576 return 0; 26577 } 26578 _ACEOF 26579 if ac_fn_c_try_run "$LINENO" 26580 then : 26581 gl_cv_func_getdtablesize_works=yes 26582 else case e in #( 26583 e) gl_cv_func_getdtablesize_works=no ;; 26584 esac 26585 fi 26586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26587 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 26588 esac 26589 fi 26590 26591 ;; 26592 esac 26593 ;; 26594 esac 26595 fi 26596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 26597 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } 26598 case "$gl_cv_func_getdtablesize_works" in 26599 *yes | "no (limitation)") ;; 26600 *) REPLACE_GETDTABLESIZE=1 ;; 26601 esac 26602 else 26603 HAVE_GETDTABLESIZE=0 26604 fi 26605 26606 26607 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 26608 GL_COND_OBJ_GETDTABLESIZE_TRUE= 26609 GL_COND_OBJ_GETDTABLESIZE_FALSE='#' 26610 else 26611 GL_COND_OBJ_GETDTABLESIZE_TRUE='#' 26612 GL_COND_OBJ_GETDTABLESIZE_FALSE= 26613 fi 26614 : 26615 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then 26616 GL_COND_OBJ_GETDTABLESIZE_TRUE='#' 26617 GL_COND_OBJ_GETDTABLESIZE_FALSE='#' 26618 fi 26619 26620 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then : 26621 26622 : 26623 26624 fi 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 GL_GNULIB_GETDTABLESIZE=1 26635 26636 26637 26638 26639 26640 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 26641 26642 26643 26644 26645 26646 26647 ac_found=0 26648 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 26649 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26650 if test "x$ac_cv_have_decl_program_invocation_name" = xyes 26651 then : 26652 ac_have_decl=1 26653 else case e in #( 26654 e) ac_have_decl=0 ;; 26655 esac 26656 fi 26657 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h 26658 if test $ac_have_decl = 1 26659 then : 26660 ac_found=1 26661 fi 26662 26663 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 26664 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26665 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 26666 then : 26667 ac_have_decl=1 26668 else case e in #( 26669 e) ac_have_decl=0 ;; 26670 esac 26671 fi 26672 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 26673 if test $ac_have_decl = 1 26674 then : 26675 ac_found=1 26676 fi 26677 26678 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> 26679 " "$ac_c_undeclared_builtin_options" "CFLAGS" 26680 if test "x$ac_cv_have_decl___argv" = xyes 26681 then : 26682 ac_have_decl=1 26683 else case e in #( 26684 e) ac_have_decl=0 ;; 26685 esac 26686 fi 26687 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h 26688 if test $ac_have_decl = 1 26689 then : 26690 ac_found=1 26691 fi 26692 26693 26694 # Incur the cost of this test only if none of the above worked. 26695 if test $ac_found = 0; then 26696 # On OpenBSD 5.1, using the global __progname variable appears to be 26697 # the only way to implement getprogname. 26698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 26699 printf %s "checking whether __progname is defined in default libraries... " >&6; } 26700 if test ${gl_cv_var___progname+y} 26701 then : 26702 printf %s "(cached) " >&6 26703 else case e in #( 26704 e) 26705 gl_cv_var___progname= 26706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26707 /* end confdefs.h. */ 26708 extern char *__progname; 26709 int 26710 main (void) 26711 { 26712 return *__progname; 26713 26714 ; 26715 return 0; 26716 } 26717 _ACEOF 26718 if ac_fn_c_try_link "$LINENO" 26719 then : 26720 gl_cv_var___progname=yes 26721 26722 fi 26723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26724 conftest$ac_exeext conftest.$ac_ext 26725 26726 ;; 26727 esac 26728 fi 26729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 26730 printf "%s\n" "$gl_cv_var___progname" >&6; } 26731 if test "$gl_cv_var___progname" = yes; then 26732 26733 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h 26734 26735 fi 26736 fi 26737 26738 26739 26740 26741 26742 if test "$ac_cv_func_getrandom" != yes; then 26743 HAVE_GETRANDOM=0 26744 else 26745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5 26746 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; } 26747 if test ${gl_cv_func_getrandom_ok+y} 26748 then : 26749 printf %s "(cached) " >&6 26750 else case e in #( 26751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26752 /* end confdefs.h. */ 26753 /* Additional includes are needed before <sys/random.h> on uClibc 26754 and Mac OS X. */ 26755 #include <sys/types.h> 26756 #include <stdlib.h> 26757 #include <sys/random.h> 26758 ssize_t getrandom (void *, size_t, unsigned int); 26759 26760 int 26761 main (void) 26762 { 26763 26764 ; 26765 return 0; 26766 } 26767 26768 _ACEOF 26769 if ac_fn_c_try_compile "$LINENO" 26770 then : 26771 gl_cv_func_getrandom_ok=yes 26772 else case e in #( 26773 e) gl_cv_func_getrandom_ok=no ;; 26774 esac 26775 fi 26776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26777 ;; 26778 esac 26779 fi 26780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5 26781 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; } 26782 if test $gl_cv_func_getrandom_ok = no; then 26783 REPLACE_GETRANDOM=1 26784 fi 26785 fi 26786 26787 case "$host_os" in 26788 mingw*) 26789 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h> 26790 26791 " 26792 if test "x$ac_cv_header_bcrypt_h" = xyes 26793 then : 26794 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h 26795 26796 fi 26797 26798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5 26799 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; } 26800 if test ${gl_cv_lib_assume_bcrypt+y} 26801 then : 26802 printf %s "(cached) " >&6 26803 else case e in #( 26804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26805 /* end confdefs.h. */ 26806 #include <windows.h> 26807 int 26808 main (void) 26809 { 26810 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7) 26811 cannot assume it 26812 #endif 26813 26814 ; 26815 return 0; 26816 } 26817 26818 _ACEOF 26819 if ac_fn_c_try_compile "$LINENO" 26820 then : 26821 gl_cv_lib_assume_bcrypt=yes 26822 else case e in #( 26823 e) gl_cv_lib_assume_bcrypt=no ;; 26824 esac 26825 fi 26826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26827 ;; 26828 esac 26829 fi 26830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5 26831 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; } 26832 if test $gl_cv_lib_assume_bcrypt = yes; then 26833 26834 printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h 26835 26836 LIB_GETRANDOM='-lbcrypt' 26837 else 26838 LIB_GETRANDOM='-ladvapi32' 26839 fi 26840 ;; 26841 *) 26842 LIB_GETRANDOM= ;; 26843 esac 26844 26845 26846 26847 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then 26848 GL_COND_OBJ_GETRANDOM_TRUE= 26849 GL_COND_OBJ_GETRANDOM_FALSE='#' 26850 else 26851 GL_COND_OBJ_GETRANDOM_TRUE='#' 26852 GL_COND_OBJ_GETRANDOM_FALSE= 26853 fi 26854 : 26855 if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then 26856 GL_COND_OBJ_GETRANDOM_TRUE='#' 26857 GL_COND_OBJ_GETRANDOM_FALSE='#' 26858 fi 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 GL_GNULIB_GETRANDOM=1 26870 26871 26872 26873 26874 26875 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h 26876 26877 26878 26879 26880 26881 26882 26883 # Autoconf 2.61a.99 and earlier don't support linking a file only 26884 # in VPATH builds. But since GNUmakefile is for maintainer use 26885 # only, it does not matter if we skip the link with older autoconf. 26886 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 26887 # builds, so use a shell variable to bypass this. 26888 GNUmakefile=GNUmakefile 26889 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 26890 26891 26892 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL" 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 26911 printf %s "checking whether the compiler supports the __inline keyword... " >&6; } 26912 if test ${gl_cv_c___inline+y} 26913 then : 26914 printf %s "(cached) " >&6 26915 else case e in #( 26916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26917 /* end confdefs.h. */ 26918 typedef int foo_t; 26919 static __inline foo_t foo (void) { return 0; } 26920 int 26921 main (void) 26922 { 26923 return foo (); 26924 ; 26925 return 0; 26926 } 26927 _ACEOF 26928 if ac_fn_c_try_compile "$LINENO" 26929 then : 26930 gl_cv_c___inline=yes 26931 else case e in #( 26932 e) gl_cv_c___inline=no ;; 26933 esac 26934 fi 26935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 26936 esac 26937 fi 26938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 26939 printf "%s\n" "$gl_cv_c___inline" >&6; } 26940 if test $gl_cv_c___inline = yes; then 26941 26942 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h 26943 26944 fi 26945 26946 26947 26948 26949 26950 26951 case "$GL_GENERATE_LIMITS_H" in 26952 false) LIMITS_H='' ;; 26953 true) 26954 if test -z "$LIMITS_H"; then 26955 LIMITS_H="${gl_source_base_prefix}limits.h" 26956 fi 26957 ;; 26958 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; 26959 esac 26960 26961 26962 if $GL_GENERATE_LIMITS_H; then 26963 GL_GENERATE_LIMITS_H_TRUE= 26964 GL_GENERATE_LIMITS_H_FALSE='#' 26965 else 26966 GL_GENERATE_LIMITS_H_TRUE='#' 26967 GL_GENERATE_LIMITS_H_FALSE= 26968 fi 26969 : 26970 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 26971 GL_GENERATE_LIMITS_H_TRUE='#' 26972 GL_GENERATE_LIMITS_H_FALSE='#' 26973 fi 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 LOCALCHARSET_TESTS_ENVIRONMENT= 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 if test $REPLACE_STRUCT_LCONV = 1; then 26997 REPLACE_LOCALECONV=1 26998 fi 26999 27000 27001 if test $REPLACE_LOCALECONV = 1; then 27002 GL_COND_OBJ_LOCALECONV_TRUE= 27003 GL_COND_OBJ_LOCALECONV_FALSE='#' 27004 else 27005 GL_COND_OBJ_LOCALECONV_TRUE='#' 27006 GL_COND_OBJ_LOCALECONV_FALSE= 27007 fi 27008 : 27009 if test -z "${GL_COND_OBJ_LOCALECONV_TRUE}" && test -z "${GL_COND_OBJ_LOCALECONV_FALSE}"; then 27010 GL_COND_OBJ_LOCALECONV_TRUE='#' 27011 GL_COND_OBJ_LOCALECONV_FALSE='#' 27012 fi 27013 27014 if test -z "$GL_COND_OBJ_LOCALECONV_TRUE"; then : 27015 27016 27017 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 27018 " 27019 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes 27020 then : 27021 27022 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h 27023 27024 27025 fi 27026 27027 27028 27029 fi 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 GL_GNULIB_LOCALECONV=1 27040 27041 27042 27043 27044 27045 printf "%s\n" "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h 27046 27047 27048 27049 27050 27051 if test "$gl_threads_api" = posix; then 27052 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 27053 # pthread_rwlock_* functions. 27054 has_rwlock=false 27055 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 27056 " 27057 if test "x$ac_cv_type_pthread_rwlock_t" = xyes 27058 then : 27059 has_rwlock=true 27060 27061 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 27062 27063 fi 27064 27065 if $has_rwlock; then 27066 27067 27068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 27069 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } 27070 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y} 27071 then : 27072 printf %s "(cached) " >&6 27073 else case e in #( 27074 e) save_LIBS="$LIBS" 27075 LIBS="$LIBS $LIBMULTITHREAD" 27076 if test "$cross_compiling" = yes 27077 then : 27078 case "$host_os" in 27079 # Guess no on glibc systems. 27080 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 27081 # Guess no on musl systems. 27082 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 27083 # Guess no on bionic systems. 27084 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 27085 # Guess yes on native Windows with the mingw-w64 winpthreads library. 27086 # Guess no on native Windows with the gnulib windows-rwlock module. 27087 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 27088 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" 27089 else 27090 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" 27091 fi 27092 ;; 27093 # If we don't know, obey --enable-cross-guesses. 27094 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; 27095 esac 27096 27097 else case e in #( 27098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27099 /* end confdefs.h. */ 27100 27101 #include <errno.h> 27102 #include <pthread.h> 27103 #include <stdlib.h> 27104 #include <unistd.h> 27105 27106 #define SUCCEED() exit (0) 27107 #define FAILURE() exit (1) 27108 #define UNEXPECTED(n) (exit (10 + (n))) 27109 27110 /* The main thread creates the waiting writer and the requesting reader threads 27111 in the default way; this guarantees that they have the same priority. 27112 We can reuse the main thread as first reader thread. */ 27113 27114 static pthread_rwlock_t lock; 27115 static pthread_t reader1; 27116 static pthread_t writer; 27117 static pthread_t reader2; 27118 static pthread_t timer; 27119 /* Used to pass control from writer to reader2 and from reader2 to timer, 27120 as in a relay race. 27121 Passing control from one running thread to another running thread 27122 is most likely faster than to create the second thread. */ 27123 static pthread_mutex_t baton; 27124 27125 static void * 27126 timer_func (void *ignored) 27127 { 27128 /* Step 13 (can be before or after step 12): 27129 The timer thread takes the baton, then waits a moment to make sure 27130 it can tell whether the second reader thread is blocked at step 12. */ 27131 if (pthread_mutex_lock (&baton)) 27132 UNEXPECTED (13); 27133 usleep (100000); 27134 /* By the time we get here, it's clear that the second reader thread is 27135 blocked at step 12. This is the desired behaviour. */ 27136 SUCCEED (); 27137 } 27138 27139 static void * 27140 reader2_func (void *ignored) 27141 { 27142 int err; 27143 27144 /* Step 8 (can be before or after step 7): 27145 The second reader thread takes the baton, then waits a moment to make sure 27146 the writer thread has reached step 7. */ 27147 if (pthread_mutex_lock (&baton)) 27148 UNEXPECTED (8); 27149 usleep (100000); 27150 /* Step 9: The second reader thread requests the lock. */ 27151 err = pthread_rwlock_tryrdlock (&lock); 27152 if (err == 0) 27153 FAILURE (); 27154 else if (err != EBUSY) 27155 UNEXPECTED (9); 27156 /* Step 10: Launch a timer, to test whether the next call blocks. */ 27157 if (pthread_create (&timer, NULL, timer_func, NULL)) 27158 UNEXPECTED (10); 27159 /* Step 11: Release the baton. */ 27160 if (pthread_mutex_unlock (&baton)) 27161 UNEXPECTED (11); 27162 /* Step 12: The second reader thread requests the lock. */ 27163 err = pthread_rwlock_rdlock (&lock); 27164 if (err == 0) 27165 FAILURE (); 27166 else 27167 UNEXPECTED (12); 27168 } 27169 27170 static void * 27171 writer_func (void *ignored) 27172 { 27173 /* Step 4: Take the baton, so that the second reader thread does not go ahead 27174 too early. */ 27175 if (pthread_mutex_lock (&baton)) 27176 UNEXPECTED (4); 27177 /* Step 5: Create the second reader thread. */ 27178 if (pthread_create (&reader2, NULL, reader2_func, NULL)) 27179 UNEXPECTED (5); 27180 /* Step 6: Release the baton. */ 27181 if (pthread_mutex_unlock (&baton)) 27182 UNEXPECTED (6); 27183 /* Step 7: The writer thread requests the lock. */ 27184 if (pthread_rwlock_wrlock (&lock)) 27185 UNEXPECTED (7); 27186 return NULL; 27187 } 7514 27188 7515 27189 int 7516 27190 main () 7517 27191 { 7518 char *data, *data2, *data3; 7519 int i, pagesize; 7520 int fd; 7521 7522 pagesize = getpagesize (); 7523 7524 /* First, make a file with some known garbage in it. */ 7525 data = (char *) malloc (pagesize); 7526 if (!data) 7527 exit (1); 7528 for (i = 0; i < pagesize; ++i) 7529 *(data + i) = rand (); 7530 umask (0); 7531 fd = creat ("conftest.mmap", 0600); 7532 if (fd < 0) 7533 exit (1); 7534 if (write (fd, data, pagesize) != pagesize) 7535 exit (1); 7536 close (fd); 7537 7538 /* Next, try to mmap the file at a fixed address which already has 7539 something else allocated at it. If we can, also make sure that 7540 we see the same garbage. */ 7541 fd = open ("conftest.mmap", O_RDWR); 7542 if (fd < 0) 7543 exit (1); 7544 data2 = (char *) malloc (2 * pagesize); 7545 if (!data2) 7546 exit (1); 7547 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 7548 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7549 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7550 exit (1); 7551 for (i = 0; i < pagesize; ++i) 7552 if (*(data + i) != *(data2 + i)) 7553 exit (1); 7554 7555 /* Finally, make sure that changes to the mapped area do not 7556 percolate back to the file as seen by read(). (This is a bug on 7557 some variants of i386 svr4.0.) */ 7558 for (i = 0; i < pagesize; ++i) 7559 *(data2 + i) = *(data2 + i) + 1; 7560 data3 = (char *) malloc (pagesize); 7561 if (!data3) 7562 exit (1); 7563 if (read (fd, data3, pagesize) != pagesize) 7564 exit (1); 7565 for (i = 0; i < pagesize; ++i) 7566 if (*(data + i) != *(data3 + i)) 7567 exit (1); 7568 close (fd); 7569 exit (0); 27192 reader1 = pthread_self (); 27193 27194 /* Step 1: The main thread initializes the lock and the baton. */ 27195 if (pthread_rwlock_init (&lock, NULL)) 27196 UNEXPECTED (1); 27197 if (pthread_mutex_init (&baton, NULL)) 27198 UNEXPECTED (1); 27199 /* Step 2: The main thread acquires the lock as a reader. */ 27200 if (pthread_rwlock_rdlock (&lock)) 27201 UNEXPECTED (2); 27202 /* Step 3: Create the writer thread. */ 27203 if (pthread_create (&writer, NULL, writer_func, NULL)) 27204 UNEXPECTED (3); 27205 /* Job done. Go to sleep. */ 27206 for (;;) 27207 { 27208 sleep (1); 27209 } 27210 } 27211 27212 _ACEOF 27213 if ac_fn_c_try_run "$LINENO" 27214 then : 27215 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes 27216 else case e in #( 27217 e) gl_cv_pthread_rwlock_rdlock_prefer_writer=no ;; 27218 esac 27219 fi 27220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27221 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27222 esac 27223 fi 27224 27225 LIBS="$save_LIBS" 27226 ;; 27227 esac 27228 fi 27229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 27230 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } 27231 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in 27232 *yes) 27233 27234 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h 27235 27236 ;; 27237 esac 27238 27239 fi 27240 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 27241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27242 /* end confdefs.h. */ 27243 27244 #include <pthread.h> 27245 int 27246 main (void) 27247 { 27248 27249 #if __FreeBSD__ == 4 27250 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 27251 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 27252 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 27253 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 27254 #else 27255 int x = (int)PTHREAD_MUTEX_RECURSIVE; 27256 return !x; 27257 #endif 27258 27259 ; 27260 return 0; 7570 27261 } 7571 27262 _ACEOF 7572 rm -f conftest$ac_exeext 7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27263 if ac_fn_c_try_compile "$LINENO" 27264 then : 27265 27266 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 27267 27268 fi 27269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27270 fi 27271 : 27272 27273 27274 27275 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h 27276 27277 27278 27279 27280 27281 27282 if test $ac_cv_func_lstat = yes; then 27283 27284 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in 27285 solaris* | *no) 27286 REPLACE_LSTAT=1 27287 ;; 27288 esac 27289 else 27290 HAVE_LSTAT=0 27291 fi 27292 27293 27294 if test $REPLACE_LSTAT = 1; then 27295 GL_COND_OBJ_LSTAT_TRUE= 27296 GL_COND_OBJ_LSTAT_FALSE='#' 27297 else 27298 GL_COND_OBJ_LSTAT_TRUE='#' 27299 GL_COND_OBJ_LSTAT_FALSE= 27300 fi 27301 : 27302 if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then 27303 GL_COND_OBJ_LSTAT_TRUE='#' 27304 GL_COND_OBJ_LSTAT_FALSE='#' 27305 fi 27306 27307 if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then : 27308 27309 : 27310 27311 fi 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 GL_GNULIB_LSTAT=1 27322 27323 27324 27325 27326 27327 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX" 27338 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then 27339 27340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 27341 printf %s "checking whether malloc (0) returns nonnull... " >&6; } 27342 if test ${ac_cv_func_malloc_0_nonnull+y} 27343 then : 27344 printf %s "(cached) " >&6 27345 else case e in #( 27346 e) if test "$cross_compiling" = yes 27347 then : 27348 case "$host_os" in 27349 # Guess yes on platforms where we know the result. 27350 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ 27351 | gnu* | *-musl* | midnightbsd* \ 27352 | hpux* | solaris* | cygwin* | mingw* | msys* ) 27353 ac_cv_func_malloc_0_nonnull="guessing yes" ;; 27354 # If we don't know, obey --enable-cross-guesses. 27355 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; 27356 esac 27357 27358 else case e in #( 27359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27360 /* end confdefs.h. */ 27361 #include <stdlib.h> 27362 27363 int 27364 main (void) 27365 { 27366 void *p = malloc (0); 27367 int result = !p; 27368 free (p); 27369 return result; 27370 ; 27371 return 0; 27372 } 27373 27374 _ACEOF 27375 if ac_fn_c_try_run "$LINENO" 27376 then : 27377 ac_cv_func_malloc_0_nonnull=yes 27378 else case e in #( 27379 e) ac_cv_func_malloc_0_nonnull=no ;; 27380 esac 27381 fi 27382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27383 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27384 esac 27385 fi 27386 27387 ;; 27388 esac 27389 fi 27390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 27391 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 27392 case $ac_cv_func_malloc_0_nonnull in #( 27393 *yes) : 27394 ;; #( 27395 *) : 27396 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;; 27397 esac 27398 27399 fi 27400 27401 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then 27402 27403 27404 27405 27406 27407 27408 27409 27410 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 27411 27412 fi 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 GL_GNULIB_MALLOC_GNU=1 27423 27424 27425 27426 27427 27428 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h 27429 27430 27431 27432 27433 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then 27434 27435 27436 27437 27438 27439 27440 27441 27442 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 27443 27444 fi 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 GL_GNULIB_MALLOC_POSIX=1 27455 27456 27457 27458 27459 27460 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 if test $ac_cv_func_mbrlen = no; then 27474 HAVE_MBRLEN=0 27475 ac_fn_check_decl "$LINENO" "mbrlen" "ac_cv_have_decl_mbrlen" " 27476 #include <wchar.h> 27477 27478 " "$ac_c_undeclared_builtin_options" "CFLAGS" 27479 if test "x$ac_cv_have_decl_mbrlen" = xyes 27480 then : 27481 ac_have_decl=1 27482 else case e in #( 27483 e) ac_have_decl=0 ;; 27484 esac 27485 fi 27486 printf "%s\n" "#define HAVE_DECL_MBRLEN $ac_have_decl" >>confdefs.h 27487 27488 if test $ac_cv_have_decl_mbrlen = yes; then 27489 REPLACE_MBRLEN=1 27490 fi 27491 else 27492 if test $REPLACE_MBRTOWC = 1; then 27493 REPLACE_MBRLEN=1 27494 fi 27495 fi 27496 27497 27498 if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then 27499 GL_COND_OBJ_MBRLEN_TRUE= 27500 GL_COND_OBJ_MBRLEN_FALSE='#' 27501 else 27502 GL_COND_OBJ_MBRLEN_TRUE='#' 27503 GL_COND_OBJ_MBRLEN_FALSE= 27504 fi 27505 : 27506 if test -z "${GL_COND_OBJ_MBRLEN_TRUE}" && test -z "${GL_COND_OBJ_MBRLEN_FALSE}"; then 27507 GL_COND_OBJ_MBRLEN_TRUE='#' 27508 GL_COND_OBJ_MBRLEN_FALSE='#' 27509 fi 27510 27511 if test -z "$GL_COND_OBJ_MBRLEN_TRUE"; then : 27512 27513 27514 : 27515 27516 27517 fi 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 GL_GNULIB_MBRLEN=1 27533 27534 27535 27536 27537 27538 printf "%s\n" "#define GNULIB_TEST_MBRLEN 1" >>confdefs.h 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 if case "$host_os" in 27556 mingw*) true ;; 27557 *) test $ac_cv_func_mbsinit = yes ;; 27558 esac \ 27559 && test $ac_cv_func_mbrtowc = yes; then 27560 27561 27562 27563 27564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 27565 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 27566 if test ${gl_cv_func_mbrtowc_incomplete_state+y} 27567 then : 27568 printf %s "(cached) " >&6 27569 else case e in #( 27570 e) 27571 case "$host_os" in 27572 # Guess no on AIX and OSF/1. 27573 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 27574 # Guess yes otherwise. 27575 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 27576 esac 27577 if test $LOCALE_JA != none; then 27578 if test "$cross_compiling" = yes 27579 then : 27580 : 27581 else case e in #( 27582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27583 /* end confdefs.h. */ 27584 27585 #include <locale.h> 27586 #include <string.h> 27587 #include <wchar.h> 27588 int main () 27589 { 27590 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 27591 { 27592 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 27593 mbstate_t state; 27594 wchar_t wc; 27595 27596 memset (&state, '\0', sizeof (mbstate_t)); 27597 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 27598 if (mbsinit (&state)) 27599 return 2; 27600 } 27601 return 0; 27602 } 27603 _ACEOF 27604 if ac_fn_c_try_run "$LINENO" 27605 then : 27606 gl_cv_func_mbrtowc_incomplete_state=yes 27607 else case e in #( 27608 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 27609 esac 27610 fi 27611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27612 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27613 esac 27614 fi 27615 27616 else 27617 if test $LOCALE_FR_UTF8 != none; then 27618 if test "$cross_compiling" = yes 27619 then : 27620 : 27621 else case e in #( 27622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27623 /* end confdefs.h. */ 27624 27625 #include <locale.h> 27626 #include <string.h> 27627 #include <wchar.h> 27628 int main () 27629 { 27630 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 27631 { 27632 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 27633 mbstate_t state; 27634 wchar_t wc; 27635 27636 memset (&state, '\0', sizeof (mbstate_t)); 27637 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 27638 if (mbsinit (&state)) 27639 return 2; 27640 } 27641 return 0; 27642 } 27643 _ACEOF 27644 if ac_fn_c_try_run "$LINENO" 27645 then : 27646 gl_cv_func_mbrtowc_incomplete_state=yes 27647 else case e in #( 27648 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 27649 esac 27650 fi 27651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27652 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27653 esac 27654 fi 27655 27656 fi 27657 fi 27658 ;; 27659 esac 27660 fi 27661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 27662 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 27663 27664 27665 27666 27667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 27668 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 27669 if test ${gl_cv_func_mbrtowc_sanitycheck+y} 27670 then : 27671 printf %s "(cached) " >&6 27672 else case e in #( 27673 e) 27674 case "$host_os" in 27675 # Guess no on Solaris 8. 27676 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 27677 # Guess yes otherwise. 27678 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 27679 esac 27680 if test $LOCALE_ZH_CN != none; then 27681 if test "$cross_compiling" = yes 27682 then : 27683 : 27684 else case e in #( 27685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27686 /* end confdefs.h. */ 27687 27688 #include <locale.h> 27689 #include <stdlib.h> 27690 #include <string.h> 27691 #include <wchar.h> 27692 int main () 27693 { 27694 /* This fails on Solaris 8: 27695 mbrtowc returns 2, and sets wc to 0x00F0. 27696 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 27697 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 27698 { 27699 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 27700 mbstate_t state; 27701 wchar_t wc; 27702 27703 memset (&state, '\0', sizeof (mbstate_t)); 27704 if (mbrtowc (&wc, input + 3, 6, &state) != 4 27705 && mbtowc (&wc, input + 3, 6) == 4) 27706 return 2; 27707 } 27708 return 0; 27709 } 27710 _ACEOF 27711 if ac_fn_c_try_run "$LINENO" 27712 then : 27713 gl_cv_func_mbrtowc_sanitycheck=yes 27714 else case e in #( 27715 e) gl_cv_func_mbrtowc_sanitycheck=no ;; 27716 esac 27717 fi 27718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27719 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27720 esac 27721 fi 27722 27723 fi 27724 ;; 27725 esac 27726 fi 27727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 27728 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 27729 27730 REPLACE_MBSTATE_T=0 27731 case "$gl_cv_func_mbrtowc_incomplete_state" in 27732 *yes) ;; 27733 *) REPLACE_MBSTATE_T=1 ;; 27734 esac 27735 case "$gl_cv_func_mbrtowc_sanitycheck" in 27736 *yes) ;; 27737 *) REPLACE_MBSTATE_T=1 ;; 27738 esac 27739 else 27740 REPLACE_MBSTATE_T=1 27741 fi 27742 27743 27744 27745 if test $ac_cv_func_mbrtowc = no; then 27746 HAVE_MBRTOWC=0 27747 ac_fn_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 27748 #include <wchar.h> 27749 27750 " "$ac_c_undeclared_builtin_options" "CFLAGS" 27751 if test "x$ac_cv_have_decl_mbrtowc" = xyes 27752 then : 27753 ac_have_decl=1 27754 else case e in #( 27755 e) ac_have_decl=0 ;; 27756 esac 27757 fi 27758 printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h 27759 27760 if test $ac_cv_have_decl_mbrtowc = yes; then 27761 REPLACE_MBRTOWC=1 27762 fi 27763 else 27764 if test $REPLACE_MBSTATE_T = 1; then 27765 REPLACE_MBRTOWC=1 27766 else 27767 27768 27769 27770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 27771 printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 27772 if test ${gl_cv_func_mbrtowc_null_arg1+y} 27773 then : 27774 printf %s "(cached) " >&6 27775 else case e in #( 27776 e) 27777 case "$host_os" in 27778 # Guess no on Solaris. 27779 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 27780 # Guess yes otherwise. 27781 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 27782 esac 27783 if test $LOCALE_FR_UTF8 != none; then 27784 if test "$cross_compiling" = yes 27785 then : 27786 : 27787 else case e in #( 27788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27789 /* end confdefs.h. */ 27790 27791 #include <locale.h> 27792 #include <stdlib.h> 27793 #include <string.h> 27794 #include <wchar.h> 27795 int main () 27796 { 27797 int result = 0; 27798 27799 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 27800 { 27801 char input[] = "\303\237er"; 27802 mbstate_t state; 27803 wchar_t wc; 27804 size_t ret; 27805 27806 memset (&state, '\0', sizeof (mbstate_t)); 27807 wc = (wchar_t) 0xBADFACE; 27808 ret = mbrtowc (&wc, input, 5, &state); 27809 if (ret != 2) 27810 result |= 1; 27811 if (!mbsinit (&state)) 27812 result |= 2; 27813 27814 memset (&state, '\0', sizeof (mbstate_t)); 27815 ret = mbrtowc (NULL, input, 5, &state); 27816 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 27817 result |= 4; 27818 if (!mbsinit (&state)) 27819 result |= 8; 27820 } 27821 return result; 27822 } 27823 _ACEOF 27824 if ac_fn_c_try_run "$LINENO" 27825 then : 27826 gl_cv_func_mbrtowc_null_arg1=yes 27827 else case e in #( 27828 e) gl_cv_func_mbrtowc_null_arg1=no ;; 27829 esac 27830 fi 27831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27832 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27833 esac 27834 fi 27835 27836 fi 27837 ;; 27838 esac 27839 fi 27840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 27841 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; } 27842 27843 27844 27845 27846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 27847 printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; } 27848 if test ${gl_cv_func_mbrtowc_null_arg2+y} 27849 then : 27850 printf %s "(cached) " >&6 27851 else case e in #( 27852 e) 27853 case "$host_os" in 27854 # Guess no on OSF/1. 27855 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 27856 # Guess yes otherwise. 27857 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 27858 esac 27859 if test $LOCALE_FR_UTF8 != none; then 27860 if test "$cross_compiling" = yes 27861 then : 27862 : 27863 else case e in #( 27864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27865 /* end confdefs.h. */ 27866 27867 #include <locale.h> 27868 #include <string.h> 27869 #include <wchar.h> 27870 int main () 27871 { 27872 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 27873 { 27874 mbstate_t state; 27875 wchar_t wc; 27876 int ret; 27877 27878 memset (&state, '\0', sizeof (mbstate_t)); 27879 wc = (wchar_t) 0xBADFACE; 27880 mbrtowc (&wc, NULL, 5, &state); 27881 /* Check that wc was not modified. */ 27882 if (wc != (wchar_t) 0xBADFACE) 27883 return 2; 27884 } 27885 return 0; 27886 } 27887 _ACEOF 27888 if ac_fn_c_try_run "$LINENO" 27889 then : 27890 gl_cv_func_mbrtowc_null_arg2=yes 27891 else case e in #( 27892 e) gl_cv_func_mbrtowc_null_arg2=no ;; 27893 esac 27894 fi 27895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27896 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 27897 esac 27898 fi 27899 27900 fi 27901 ;; 27902 esac 27903 fi 27904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 27905 printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; } 27906 27907 27908 27909 27910 27911 27912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 27913 printf %s "checking whether mbrtowc has a correct return value... " >&6; } 27914 if test ${gl_cv_func_mbrtowc_retval+y} 27915 then : 27916 printf %s "(cached) " >&6 27917 else case e in #( 27918 e) 27919 case "$host_os" in 27920 # Guess no on HP-UX, Solaris, native Windows. 27921 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 27922 # Guess yes otherwise. 27923 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 27924 esac 27925 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 27926 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 27927 if test "$cross_compiling" = yes 27928 then : 27929 : 27930 else case e in #( 27931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27932 /* end confdefs.h. */ 27933 27934 #include <locale.h> 27935 #include <string.h> 27936 #include <wchar.h> 27937 int main () 27938 { 27939 int result = 0; 27940 int found_some_locale = 0; 27941 /* This fails on Solaris. */ 27942 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 27943 { 27944 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 27945 mbstate_t state; 27946 wchar_t wc; 27947 27948 memset (&state, '\0', sizeof (mbstate_t)); 27949 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 27950 { 27951 input[1] = '\0'; 27952 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 27953 result |= 1; 27954 } 27955 found_some_locale = 1; 27956 } 27957 /* This fails on HP-UX 11.11. */ 27958 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 27959 { 27960 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 27961 mbstate_t state; 27962 wchar_t wc; 27963 27964 memset (&state, '\0', sizeof (mbstate_t)); 27965 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 27966 { 27967 input[1] = '\0'; 27968 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 27969 result |= 2; 27970 } 27971 found_some_locale = 1; 27972 } 27973 /* This fails on native Windows. */ 27974 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 27975 { 27976 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 27977 mbstate_t state; 27978 wchar_t wc; 27979 27980 memset (&state, '\0', sizeof (mbstate_t)); 27981 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 27982 { 27983 input[3] = '\0'; 27984 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 27985 result |= 4; 27986 } 27987 found_some_locale = 1; 27988 } 27989 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 27990 { 27991 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 27992 mbstate_t state; 27993 wchar_t wc; 27994 27995 memset (&state, '\0', sizeof (mbstate_t)); 27996 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 27997 { 27998 input[3] = '\0'; 27999 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 28000 result |= 8; 28001 } 28002 found_some_locale = 1; 28003 } 28004 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 28005 { 28006 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 28007 mbstate_t state; 28008 wchar_t wc; 28009 28010 memset (&state, '\0', sizeof (mbstate_t)); 28011 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 28012 { 28013 input[3] = '\0'; 28014 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 28015 result |= 16; 28016 } 28017 found_some_locale = 1; 28018 } 28019 return (found_some_locale ? result : 77); 28020 } 28021 _ACEOF 28022 if ac_fn_c_try_run "$LINENO" 28023 then : 28024 gl_cv_func_mbrtowc_retval=yes 28025 else case e in #( 28026 e) if test $? != 77; then 28027 gl_cv_func_mbrtowc_retval=no 28028 fi 28029 ;; 28030 esac 28031 fi 28032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28033 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28034 esac 28035 fi 28036 28037 fi 28038 ;; 28039 esac 28040 fi 28041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 28042 printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; } 28043 28044 28045 28046 28047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 28048 printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 28049 if test ${gl_cv_func_mbrtowc_nul_retval+y} 28050 then : 28051 printf %s "(cached) " >&6 28052 else case e in #( 28053 e) 28054 case "$host_os" in 28055 # Guess no on Solaris 8 and 9. 28056 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 28057 # Guess yes otherwise. 28058 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 28059 esac 28060 if test $LOCALE_ZH_CN != none; then 28061 if test "$cross_compiling" = yes 28062 then : 28063 : 28064 else case e in #( 28065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28066 /* end confdefs.h. */ 28067 28068 #include <locale.h> 28069 #include <string.h> 28070 #include <wchar.h> 28071 int main () 28072 { 28073 /* This fails on Solaris 8 and 9. */ 28074 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 28075 { 28076 mbstate_t state; 28077 wchar_t wc; 28078 28079 memset (&state, '\0', sizeof (mbstate_t)); 28080 if (mbrtowc (&wc, "", 1, &state) != 0) 28081 return 2; 28082 } 28083 return 0; 28084 } 28085 _ACEOF 28086 if ac_fn_c_try_run "$LINENO" 28087 then : 28088 gl_cv_func_mbrtowc_nul_retval=yes 28089 else case e in #( 28090 e) gl_cv_func_mbrtowc_nul_retval=no ;; 28091 esac 28092 fi 28093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28094 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28095 esac 28096 fi 28097 28098 fi 28099 ;; 28100 esac 28101 fi 28102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 28103 printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; } 28104 28105 28106 28107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 28108 printf %s "checking whether mbrtowc stores incomplete characters... " >&6; } 28109 if test ${gl_cv_func_mbrtowc_stores_incomplete+y} 28110 then : 28111 printf %s "(cached) " >&6 28112 else case e in #( 28113 e) 28114 case "$host_os" in 28115 # Guess yes on native Windows. 28116 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;; 28117 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;; 28118 esac 28119 case "$host_os" in 28120 mingw*) 28121 if test "$cross_compiling" = yes 28122 then : 28123 : 28124 else case e in #( 28125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28126 /* end confdefs.h. */ 28127 28128 #include <locale.h> 28129 #include <string.h> 28130 #include <wchar.h> 28131 int main () 28132 { 28133 int result = 0; 28134 if (setlocale (LC_ALL, "French_France.65001") != NULL) 28135 { 28136 wchar_t wc = (wchar_t) 0xBADFACE; 28137 mbstate_t state; 28138 28139 memset (&state, '\0', sizeof (mbstate_t)); 28140 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 28141 && wc != (wchar_t) 0xBADFACE) 28142 result |= 1; 28143 } 28144 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 28145 { 28146 wchar_t wc = (wchar_t) 0xBADFACE; 28147 mbstate_t state; 28148 28149 memset (&state, '\0', sizeof (mbstate_t)); 28150 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2) 28151 && wc != (wchar_t) 0xBADFACE) 28152 result |= 2; 28153 } 28154 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 28155 { 28156 wchar_t wc = (wchar_t) 0xBADFACE; 28157 mbstate_t state; 28158 28159 memset (&state, '\0', sizeof (mbstate_t)); 28160 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2) 28161 && wc != (wchar_t) 0xBADFACE) 28162 result |= 4; 28163 } 28164 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 28165 { 28166 wchar_t wc = (wchar_t) 0xBADFACE; 28167 mbstate_t state; 28168 28169 memset (&state, '\0', sizeof (mbstate_t)); 28170 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2) 28171 && wc != (wchar_t) 0xBADFACE) 28172 result |= 8; 28173 } 28174 return result; 28175 } 28176 _ACEOF 28177 if ac_fn_c_try_run "$LINENO" 28178 then : 28179 gl_cv_func_mbrtowc_stores_incomplete=no 28180 else case e in #( 28181 e) gl_cv_func_mbrtowc_stores_incomplete=yes ;; 28182 esac 28183 fi 28184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28185 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28186 esac 28187 fi 28188 28189 ;; 28190 *) 28191 28192 if test $LOCALE_FR_UTF8 != none; then 28193 if test "$cross_compiling" = yes 28194 then : 28195 : 28196 else case e in #( 28197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28198 /* end confdefs.h. */ 28199 28200 #include <locale.h> 28201 #include <string.h> 28202 #include <wchar.h> 28203 int main () 28204 { 28205 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 28206 { 28207 wchar_t wc = (wchar_t) 0xBADFACE; 28208 mbstate_t state; 28209 28210 memset (&state, '\0', sizeof (mbstate_t)); 28211 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 28212 && wc != (wchar_t) 0xBADFACE) 28213 return 1; 28214 } 28215 return 0; 28216 } 28217 _ACEOF 28218 if ac_fn_c_try_run "$LINENO" 28219 then : 28220 gl_cv_func_mbrtowc_stores_incomplete=no 28221 else case e in #( 28222 e) gl_cv_func_mbrtowc_stores_incomplete=yes ;; 28223 esac 28224 fi 28225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28226 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28227 esac 28228 fi 28229 28230 fi 28231 ;; 28232 esac 28233 ;; 28234 esac 28235 fi 28236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 28237 printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } 28238 28239 28240 28241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 28242 printf %s "checking whether mbrtowc works on empty input... " >&6; } 28243 if test ${gl_cv_func_mbrtowc_empty_input+y} 28244 then : 28245 printf %s "(cached) " >&6 28246 else case e in #( 28247 e) 28248 case "$host_os" in 28249 # Guess no on AIX and glibc systems. 28250 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; 28251 # Guess yes on native Windows. 28252 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 28253 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 28254 esac 28255 if test "$cross_compiling" = yes 28256 then : 28257 : 28258 else case e in #( 28259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28260 /* end confdefs.h. */ 28261 28262 #include <wchar.h> 28263 static wchar_t wc; 28264 static mbstate_t mbs; 28265 int 28266 main (void) 28267 { 28268 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; 28269 } 28270 _ACEOF 28271 if ac_fn_c_try_run "$LINENO" 28272 then : 28273 gl_cv_func_mbrtowc_empty_input=yes 28274 else case e in #( 28275 e) gl_cv_func_mbrtowc_empty_input=no ;; 28276 esac 28277 fi 28278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28279 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28280 esac 28281 fi 28282 28283 ;; 28284 esac 28285 fi 28286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 28287 printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; } 28288 28289 28290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 28291 printf %s "checking whether the C locale is free of encoding errors... " >&6; } 28292 if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y} 28293 then : 28294 printf %s "(cached) " >&6 28295 else case e in #( 28296 e) 28297 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" 28298 28299 if test "$cross_compiling" = yes 28300 then : 28301 case "$host_os" in 28302 # Guess yes on native Windows. 28303 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; 28304 esac 28305 28306 else case e in #( 28307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28308 /* end confdefs.h. */ 28309 #include <limits.h> 28310 #include <locale.h> 28311 #include <wchar.h> 28312 28313 int 28314 main (void) 28315 { 28316 28317 int i; 28318 char *locale = setlocale (LC_ALL, "C"); 28319 if (! locale) 28320 return 2; 28321 for (i = CHAR_MIN; i <= CHAR_MAX; i++) 28322 { 28323 char c = i; 28324 wchar_t wc; 28325 mbstate_t mbs = { 0, }; 28326 size_t ss = mbrtowc (&wc, &c, 1, &mbs); 28327 if (1 < ss) 28328 return 3; 28329 } 28330 return 0; 28331 28332 ; 28333 return 0; 28334 } 28335 _ACEOF 28336 if ac_fn_c_try_run "$LINENO" 28337 then : 28338 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes 28339 else case e in #( 28340 e) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no ;; 28341 esac 28342 fi 28343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28344 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28345 esac 28346 fi 28347 28348 ;; 28349 esac 28350 fi 28351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 28352 printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } 28353 28354 case "$gl_cv_func_mbrtowc_null_arg1" in 28355 *yes) ;; 28356 *) 28357 printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 28358 28359 REPLACE_MBRTOWC=1 28360 ;; 28361 esac 28362 case "$gl_cv_func_mbrtowc_null_arg2" in 28363 *yes) ;; 28364 *) 28365 printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 28366 28367 REPLACE_MBRTOWC=1 28368 ;; 28369 esac 28370 case "$gl_cv_func_mbrtowc_retval" in 28371 *yes) ;; 28372 *) 28373 printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 28374 28375 REPLACE_MBRTOWC=1 28376 ;; 28377 esac 28378 case "$gl_cv_func_mbrtowc_nul_retval" in 28379 *yes) ;; 28380 *) 28381 printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 28382 28383 REPLACE_MBRTOWC=1 28384 ;; 28385 esac 28386 case "$gl_cv_func_mbrtowc_stores_incomplete" in 28387 *no) ;; 28388 *) 28389 printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h 28390 28391 REPLACE_MBRTOWC=1 28392 ;; 28393 esac 28394 case "$gl_cv_func_mbrtowc_empty_input" in 28395 *yes) ;; 28396 *) 28397 printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 28398 28399 REPLACE_MBRTOWC=1 28400 ;; 28401 esac 28402 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in 28403 *yes) ;; 28404 *) 28405 printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h 28406 28407 REPLACE_MBRTOWC=1 28408 ;; 28409 esac 28410 fi 28411 fi 28412 if test $REPLACE_MBSTATE_T = 1; then 28413 case "$host_os" in 28414 mingw*) LIB_MBRTOWC= ;; 28415 *) 28416 28417 28418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 28419 printf %s "checking whether imported symbols can be declared weak... " >&6; } 28420 if test ${gl_cv_have_weak+y} 28421 then : 28422 printf %s "(cached) " >&6 28423 else case e in #( 28424 e) case "$host_os" in 28425 cygwin*) 28426 gl_cv_have_weak="guessing no" 28427 ;; 28428 *) 28429 gl_cv_have_weak=no 28430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28431 /* end confdefs.h. */ 28432 extern void xyzzy (); 28433 #pragma weak xyzzy 28434 int 28435 main (void) 28436 { 28437 xyzzy(); 28438 ; 28439 return 0; 28440 } 28441 _ACEOF 28442 if ac_fn_c_try_link "$LINENO" 28443 then : 28444 gl_cv_have_weak=maybe 28445 fi 28446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28447 conftest$ac_exeext conftest.$ac_ext 28448 if test $gl_cv_have_weak = maybe; then 28449 if test "$cross_compiling" = yes 28450 then : 28451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28452 /* end confdefs.h. */ 28453 #ifdef __ELF__ 28454 Extensible Linking Format 28455 #endif 28456 28457 _ACEOF 28458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28459 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1 28460 then : 28461 gl_cv_have_weak="guessing yes" 28462 else case e in #( 28463 e) gl_cv_have_weak="guessing no" ;; 28464 esac 28465 fi 28466 rm -rf conftest* 28467 28468 28469 else case e in #( 28470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28471 /* end confdefs.h. */ 28472 28473 #include <stdio.h> 28474 #pragma weak fputs 28475 int main () 28476 { 28477 return (fputs == NULL); 28478 } 28479 _ACEOF 28480 if ac_fn_c_try_run "$LINENO" 28481 then : 28482 gl_cv_have_weak=yes 28483 else case e in #( 28484 e) gl_cv_have_weak=no ;; 28485 esac 28486 fi 28487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28488 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28489 esac 28490 fi 28491 28492 fi 28493 ;; 28494 esac 28495 case " $LDFLAGS " in 28496 *" -static "*) gl_cv_have_weak=no ;; 28497 esac 28498 case "$gl_cv_have_weak" in 28499 *yes) 28500 case "$host_os" in 28501 freebsd* | dragonfly* | midnightbsd*) 28502 : > conftest1.c 28503 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 28504 cat <<EOF > conftest2.c 28505 #include <pthread.h> 28506 #pragma weak pthread_mutexattr_gettype 28507 int main () 28508 { 28509 return (pthread_mutexattr_gettype != NULL); 28510 } 28511 EOF 28512 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 28513 || gl_cv_have_weak=no 28514 rm -f conftest1.c libempty.so conftest2.c conftest 28515 ;; 28516 esac 28517 ;; 28518 esac 28519 ;; 28520 esac 28521 fi 28522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 28523 printf "%s\n" "$gl_cv_have_weak" >&6; } 28524 case "$gl_cv_have_weak" in 28525 *yes) 28526 28527 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 28528 28529 ;; 28530 esac 28531 28532 case "$gl_cv_have_weak" in 28533 *yes) LIB_MBRTOWC= ;; 28534 *) LIB_MBRTOWC="$LIBPTHREAD" ;; 28535 esac 28536 ;; 28537 esac 28538 else 28539 LIB_MBRTOWC= 28540 fi 28541 28542 28543 28544 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 28545 GL_COND_OBJ_MBRTOWC_TRUE= 28546 GL_COND_OBJ_MBRTOWC_FALSE='#' 28547 else 28548 GL_COND_OBJ_MBRTOWC_TRUE='#' 28549 GL_COND_OBJ_MBRTOWC_FALSE= 28550 fi 28551 : 28552 if test -z "${GL_COND_OBJ_MBRTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBRTOWC_FALSE}"; then 28553 GL_COND_OBJ_MBRTOWC_TRUE='#' 28554 GL_COND_OBJ_MBRTOWC_FALSE='#' 28555 fi 28556 28557 if test -z "$GL_COND_OBJ_MBRTOWC_TRUE"; then : 28558 28559 if test $REPLACE_MBSTATE_T = 1; then 28560 28561 28562 28563 28564 28565 28566 28567 28568 gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext" 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext" 28579 28580 28581 28582 28583 CFLAG_VISIBILITY= 28584 HAVE_VISIBILITY=0 28585 if test -n "$GCC"; then 28586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 28587 printf %s "checking whether the -Werror option is usable... " >&6; } 28588 if test ${gl_cv_cc_vis_werror+y} 28589 then : 28590 printf %s "(cached) " >&6 28591 else case e in #( 28592 e) gl_save_CFLAGS="$CFLAGS" 28593 CFLAGS="$CFLAGS -Werror" 28594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28595 /* end confdefs.h. */ 28596 28597 int 28598 main (void) 28599 { 28600 28601 ; 28602 return 0; 28603 } 28604 _ACEOF 28605 if ac_fn_c_try_compile "$LINENO" 28606 then : 28607 gl_cv_cc_vis_werror=yes 28608 else case e in #( 28609 e) gl_cv_cc_vis_werror=no ;; 28610 esac 28611 fi 28612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28613 CFLAGS="$gl_save_CFLAGS" 28614 ;; 28615 esac 28616 fi 28617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 28618 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 28619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 28620 printf %s "checking for simple visibility declarations... " >&6; } 28621 if test ${gl_cv_cc_visibility+y} 28622 then : 28623 printf %s "(cached) " >&6 28624 else case e in #( 28625 e) gl_save_CFLAGS="$CFLAGS" 28626 CFLAGS="$CFLAGS -fvisibility=hidden" 28627 if test $gl_cv_cc_vis_werror = yes; then 28628 CFLAGS="$CFLAGS -Werror" 28629 fi 28630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28631 /* end confdefs.h. */ 28632 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 28633 extern __attribute__((__visibility__("default"))) int exportedvar; 28634 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 28635 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 28636 void dummyfunc (void); 28637 int hiddenvar; 28638 int exportedvar; 28639 int hiddenfunc (void) { return 51; } 28640 int exportedfunc (void) { return 1225736919; } 28641 void dummyfunc (void) {} 28642 28643 int 28644 main (void) 28645 { 28646 28647 ; 28648 return 0; 28649 } 28650 _ACEOF 28651 if ac_fn_c_try_compile "$LINENO" 28652 then : 28653 gl_cv_cc_visibility=yes 28654 else case e in #( 28655 e) gl_cv_cc_visibility=no ;; 28656 esac 28657 fi 28658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28659 CFLAGS="$gl_save_CFLAGS" 28660 ;; 28661 esac 28662 fi 28663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 28664 printf "%s\n" "$gl_cv_cc_visibility" >&6; } 28665 if test $gl_cv_cc_visibility = yes; then 28666 CFLAG_VISIBILITY="-fvisibility=hidden" 28667 HAVE_VISIBILITY=1 28668 fi 28669 fi 28670 28671 28672 28673 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 28674 28675 28676 28677 fi 28678 28679 28680 : 28681 28682 28683 fi 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 GL_GNULIB_MBRTOWC=1 28699 28700 28701 28702 28703 28704 printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 if case "$host_os" in 28721 mingw*) true ;; 28722 *) test $ac_cv_func_mbsinit = yes ;; 28723 esac \ 28724 && test $ac_cv_func_mbrtowc = yes; then 28725 28726 28727 28728 28729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 28730 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 28731 if test ${gl_cv_func_mbrtowc_incomplete_state+y} 28732 then : 28733 printf %s "(cached) " >&6 28734 else case e in #( 28735 e) 28736 case "$host_os" in 28737 # Guess no on AIX and OSF/1. 28738 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 28739 # Guess yes otherwise. 28740 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 28741 esac 28742 if test $LOCALE_JA != none; then 28743 if test "$cross_compiling" = yes 28744 then : 28745 : 28746 else case e in #( 28747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28748 /* end confdefs.h. */ 28749 28750 #include <locale.h> 28751 #include <string.h> 28752 #include <wchar.h> 28753 int main () 28754 { 28755 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 28756 { 28757 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 28758 mbstate_t state; 28759 wchar_t wc; 28760 28761 memset (&state, '\0', sizeof (mbstate_t)); 28762 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 28763 if (mbsinit (&state)) 28764 return 2; 28765 } 28766 return 0; 28767 } 28768 _ACEOF 28769 if ac_fn_c_try_run "$LINENO" 28770 then : 28771 gl_cv_func_mbrtowc_incomplete_state=yes 28772 else case e in #( 28773 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 28774 esac 28775 fi 28776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28777 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28778 esac 28779 fi 28780 28781 else 28782 if test $LOCALE_FR_UTF8 != none; then 28783 if test "$cross_compiling" = yes 28784 then : 28785 : 28786 else case e in #( 28787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28788 /* end confdefs.h. */ 28789 28790 #include <locale.h> 28791 #include <string.h> 28792 #include <wchar.h> 28793 int main () 28794 { 28795 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 28796 { 28797 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 28798 mbstate_t state; 28799 wchar_t wc; 28800 28801 memset (&state, '\0', sizeof (mbstate_t)); 28802 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 28803 if (mbsinit (&state)) 28804 return 2; 28805 } 28806 return 0; 28807 } 28808 _ACEOF 28809 if ac_fn_c_try_run "$LINENO" 28810 then : 28811 gl_cv_func_mbrtowc_incomplete_state=yes 28812 else case e in #( 28813 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 28814 esac 28815 fi 28816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28817 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28818 esac 28819 fi 28820 28821 fi 28822 fi 28823 ;; 28824 esac 28825 fi 28826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 28827 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 28828 28829 28830 28831 28832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 28833 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 28834 if test ${gl_cv_func_mbrtowc_sanitycheck+y} 28835 then : 28836 printf %s "(cached) " >&6 28837 else case e in #( 28838 e) 28839 case "$host_os" in 28840 # Guess no on Solaris 8. 28841 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 28842 # Guess yes otherwise. 28843 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 28844 esac 28845 if test $LOCALE_ZH_CN != none; then 28846 if test "$cross_compiling" = yes 28847 then : 28848 : 28849 else case e in #( 28850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28851 /* end confdefs.h. */ 28852 28853 #include <locale.h> 28854 #include <stdlib.h> 28855 #include <string.h> 28856 #include <wchar.h> 28857 int main () 28858 { 28859 /* This fails on Solaris 8: 28860 mbrtowc returns 2, and sets wc to 0x00F0. 28861 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 28862 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 28863 { 28864 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 28865 mbstate_t state; 28866 wchar_t wc; 28867 28868 memset (&state, '\0', sizeof (mbstate_t)); 28869 if (mbrtowc (&wc, input + 3, 6, &state) != 4 28870 && mbtowc (&wc, input + 3, 6) == 4) 28871 return 2; 28872 } 28873 return 0; 28874 } 28875 _ACEOF 28876 if ac_fn_c_try_run "$LINENO" 28877 then : 28878 gl_cv_func_mbrtowc_sanitycheck=yes 28879 else case e in #( 28880 e) gl_cv_func_mbrtowc_sanitycheck=no ;; 28881 esac 28882 fi 28883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28884 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 28885 esac 28886 fi 28887 28888 fi 28889 ;; 28890 esac 28891 fi 28892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 28893 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 28894 28895 REPLACE_MBSTATE_T=0 28896 case "$gl_cv_func_mbrtowc_incomplete_state" in 28897 *yes) ;; 28898 *) REPLACE_MBSTATE_T=1 ;; 28899 esac 28900 case "$gl_cv_func_mbrtowc_sanitycheck" in 28901 *yes) ;; 28902 *) REPLACE_MBSTATE_T=1 ;; 28903 esac 28904 else 28905 REPLACE_MBSTATE_T=1 28906 fi 28907 28908 28909 28910 if test $ac_cv_func_mbsinit = no; then 28911 HAVE_MBSINIT=0 28912 ac_fn_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 28913 #include <wchar.h> 28914 28915 " "$ac_c_undeclared_builtin_options" "CFLAGS" 28916 if test "x$ac_cv_have_decl_mbsinit" = xyes 28917 then : 28918 ac_have_decl=1 28919 else case e in #( 28920 e) ac_have_decl=0 ;; 28921 esac 28922 fi 28923 printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h 28924 28925 if test $ac_cv_have_decl_mbsinit = yes; then 28926 REPLACE_MBSINIT=1 28927 fi 28928 else 28929 if test $REPLACE_MBSTATE_T = 1; then 28930 REPLACE_MBSINIT=1 28931 else 28932 case "$host_os" in 28933 mingw*) REPLACE_MBSINIT=1 ;; 28934 esac 28935 fi 28936 fi 28937 28938 28939 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 28940 GL_COND_OBJ_MBSINIT_TRUE= 28941 GL_COND_OBJ_MBSINIT_FALSE='#' 28942 else 28943 GL_COND_OBJ_MBSINIT_TRUE='#' 28944 GL_COND_OBJ_MBSINIT_FALSE= 28945 fi 28946 : 28947 if test -z "${GL_COND_OBJ_MBSINIT_TRUE}" && test -z "${GL_COND_OBJ_MBSINIT_FALSE}"; then 28948 GL_COND_OBJ_MBSINIT_TRUE='#' 28949 GL_COND_OBJ_MBSINIT_FALSE='#' 28950 fi 28951 28952 if test -z "$GL_COND_OBJ_MBSINIT_TRUE"; then : 28953 28954 28955 : 28956 28957 28958 fi 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 GL_GNULIB_MBSINIT=1 28974 28975 28976 28977 28978 28979 printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 28980 28981 28982 28983 28984 28985 28986 ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc" 28987 if test "x$ac_cv_func_mbtowc" = xyes 28988 then : 28989 printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h 28990 28991 fi 28992 28993 if test $ac_cv_func_mbtowc = no; then 28994 HAVE_MBTOWC=0 28995 else 28996 if false; then 28997 REPLACE_MBTOWC=1 28998 fi 28999 fi 29000 29001 29002 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then 29003 GL_COND_OBJ_MBTOWC_TRUE= 29004 GL_COND_OBJ_MBTOWC_FALSE='#' 29005 else 29006 GL_COND_OBJ_MBTOWC_TRUE='#' 29007 GL_COND_OBJ_MBTOWC_FALSE= 29008 fi 29009 : 29010 if test -z "${GL_COND_OBJ_MBTOWC_TRUE}" && test -z "${GL_COND_OBJ_MBTOWC_FALSE}"; then 29011 GL_COND_OBJ_MBTOWC_TRUE='#' 29012 GL_COND_OBJ_MBTOWC_FALSE='#' 29013 fi 29014 29015 if test -z "$GL_COND_OBJ_MBTOWC_TRUE"; then : 29016 29017 29018 : 29019 29020 29021 fi 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 GL_GNULIB_MBTOWC=1 29032 29033 29034 29035 29036 29037 printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h 29038 29039 29040 29041 29042 29043 if test $REPLACE_MEMCHR = 1; then 29044 GL_COND_OBJ_MEMCHR_TRUE= 29045 GL_COND_OBJ_MEMCHR_FALSE='#' 29046 else 29047 GL_COND_OBJ_MEMCHR_TRUE='#' 29048 GL_COND_OBJ_MEMCHR_FALSE= 29049 fi 29050 : 29051 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then 29052 GL_COND_OBJ_MEMCHR_TRUE='#' 29053 GL_COND_OBJ_MEMCHR_FALSE='#' 29054 fi 29055 29056 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then : 29057 29058 29059 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 29060 if test "x$ac_cv_header_bp_sym_h" = xyes 29061 then : 29062 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h 29063 29064 fi 29065 29066 29067 29068 fi 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 GL_GNULIB_MEMCHR=1 29084 29085 29086 29087 29088 29089 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 29100 if test "x$ac_cv_func_mempcpy" = xyes 29101 then : 29102 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h 29103 29104 fi 29105 29106 if test $ac_cv_func_mempcpy = no; then 29107 HAVE_MEMPCPY=0 29108 fi 29109 29110 29111 if test $HAVE_MEMPCPY = 0; then 29112 GL_COND_OBJ_MEMPCPY_TRUE= 29113 GL_COND_OBJ_MEMPCPY_FALSE='#' 29114 else 29115 GL_COND_OBJ_MEMPCPY_TRUE='#' 29116 GL_COND_OBJ_MEMPCPY_FALSE= 29117 fi 29118 : 29119 if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then 29120 GL_COND_OBJ_MEMPCPY_TRUE='#' 29121 GL_COND_OBJ_MEMPCPY_FALSE='#' 29122 fi 29123 29124 if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then : 29125 29126 29127 : 29128 29129 29130 fi 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 GL_GNULIB_MEMPCPY=1 29146 29147 29148 29149 29150 29151 printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h 29152 29153 29154 29155 29156 29157 29158 29159 29160 if test $ac_cv_have_decl_memrchr = no; then 29161 HAVE_DECL_MEMRCHR=0 29162 fi 29163 29164 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 29165 if test "x$ac_cv_func_memrchr" = xyes 29166 then : 29167 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 29168 29169 fi 29170 29171 29172 29173 if test $ac_cv_func_memrchr = no; then 29174 GL_COND_OBJ_MEMRCHR_TRUE= 29175 GL_COND_OBJ_MEMRCHR_FALSE='#' 29176 else 29177 GL_COND_OBJ_MEMRCHR_TRUE='#' 29178 GL_COND_OBJ_MEMRCHR_FALSE= 29179 fi 29180 : 29181 if test -z "${GL_COND_OBJ_MEMRCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMRCHR_FALSE}"; then 29182 GL_COND_OBJ_MEMRCHR_TRUE='#' 29183 GL_COND_OBJ_MEMRCHR_FALSE='#' 29184 fi 29185 29186 if test -z "$GL_COND_OBJ_MEMRCHR_TRUE"; then : 29187 29188 : 29189 29190 fi 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 GL_GNULIB_MEMRCHR=1 29206 29207 29208 29209 29210 29211 printf "%s\n" "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h 29212 29213 29214 29215 29216 29217 29218 29219 29220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5 29221 printf %s "checking whether mkdir handles trailing slash... " >&6; } 29222 if test ${gl_cv_func_mkdir_trailing_slash_works+y} 29223 then : 29224 printf %s "(cached) " >&6 29225 else case e in #( 29226 e) rm -rf conftest.dir 29227 if test "$cross_compiling" = yes 29228 then : 29229 case "$host_os" in 29230 # Guess yes on Linux systems. 29231 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;; 29232 # Guess yes on glibc systems. 29233 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;; 29234 # Guess yes on MSVC, no on mingw. 29235 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29236 /* end confdefs.h. */ 29237 29238 #ifdef _MSC_VER 29239 Known 29240 #endif 29241 29242 _ACEOF 29243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29244 $EGREP_TRADITIONAL "Known" >/dev/null 2>&1 29245 then : 29246 gl_cv_func_mkdir_trailing_slash_works="guessing yes" 29247 else case e in #( 29248 e) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;; 29249 esac 29250 fi 29251 rm -rf conftest* 29252 29253 ;; 29254 # If we don't know, obey --enable-cross-guesses. 29255 *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;; 29256 esac 29257 29258 else case e in #( 29259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29260 /* end confdefs.h. */ 29261 29262 #include <sys/types.h> 29263 #include <sys/stat.h> 29264 29265 29266 $gl_mda_defines 29267 29268 int 29269 main (void) 29270 { 29271 return mkdir ("conftest.dir/", 0700); 29272 ; 29273 return 0; 29274 } 29275 _ACEOF 29276 if ac_fn_c_try_run "$LINENO" 29277 then : 29278 gl_cv_func_mkdir_trailing_slash_works=yes 29279 else case e in #( 29280 e) gl_cv_func_mkdir_trailing_slash_works=no ;; 29281 esac 29282 fi 29283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29284 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 29285 esac 29286 fi 29287 29288 rm -rf conftest.dir 29289 ;; 29290 esac 29291 fi 29292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5 29293 printf "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; } 29294 case "$gl_cv_func_mkdir_trailing_slash_works" in 29295 *yes) ;; 29296 *) 29297 REPLACE_MKDIR=1 29298 ;; 29299 esac 29300 29301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5 29302 printf %s "checking whether mkdir handles trailing dot... " >&6; } 29303 if test ${gl_cv_func_mkdir_trailing_dot_works+y} 29304 then : 29305 printf %s "(cached) " >&6 29306 else case e in #( 29307 e) rm -rf conftest.dir 29308 if test "$cross_compiling" = yes 29309 then : 29310 case "$host_os" in 29311 # Guess yes on glibc systems. 29312 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; 29313 # Guess yes on musl systems. 29314 *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; 29315 # Guess no on native Windows. 29316 mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;; 29317 # If we don't know, obey --enable-cross-guesses. 29318 *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;; 29319 esac 29320 29321 else case e in #( 29322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29323 /* end confdefs.h. */ 29324 29325 #include <sys/types.h> 29326 #include <sys/stat.h> 29327 29328 29329 $gl_mda_defines 29330 29331 int 29332 main (void) 29333 { 29334 return !mkdir ("conftest.dir/./", 0700); 29335 ; 29336 return 0; 29337 } 29338 _ACEOF 29339 if ac_fn_c_try_run "$LINENO" 29340 then : 29341 gl_cv_func_mkdir_trailing_dot_works=yes 29342 else case e in #( 29343 e) gl_cv_func_mkdir_trailing_dot_works=no ;; 29344 esac 29345 fi 29346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29347 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 29348 esac 29349 fi 29350 29351 rm -rf conftest.dir 29352 29353 ;; 29354 esac 29355 fi 29356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5 29357 printf "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; } 29358 case "$gl_cv_func_mkdir_trailing_dot_works" in 29359 *yes) ;; 29360 *) 29361 REPLACE_MKDIR=1 29362 29363 printf "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h 29364 29365 ;; 29366 esac 29367 29368 29369 if test $REPLACE_MKDIR = 1; then 29370 GL_COND_OBJ_MKDIR_TRUE= 29371 GL_COND_OBJ_MKDIR_FALSE='#' 29372 else 29373 GL_COND_OBJ_MKDIR_TRUE='#' 29374 GL_COND_OBJ_MKDIR_FALSE= 29375 fi 29376 : 29377 if test -z "${GL_COND_OBJ_MKDIR_TRUE}" && test -z "${GL_COND_OBJ_MKDIR_FALSE}"; then 29378 GL_COND_OBJ_MKDIR_TRUE='#' 29379 GL_COND_OBJ_MKDIR_FALSE='#' 29380 fi 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 GL_GNULIB_MKDIR=1 29392 29393 29394 29395 29396 29397 printf "%s\n" "#define GNULIB_TEST_MKDIR 1" >>confdefs.h 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 if test $ac_cv_func_mkostemp != yes; then 29408 HAVE_MKOSTEMP=0 29409 fi 29410 29411 29412 if test $HAVE_MKOSTEMP = 0; then 29413 GL_COND_OBJ_MKOSTEMP_TRUE= 29414 GL_COND_OBJ_MKOSTEMP_FALSE='#' 29415 else 29416 GL_COND_OBJ_MKOSTEMP_TRUE='#' 29417 GL_COND_OBJ_MKOSTEMP_FALSE= 29418 fi 29419 : 29420 if test -z "${GL_COND_OBJ_MKOSTEMP_TRUE}" && test -z "${GL_COND_OBJ_MKOSTEMP_FALSE}"; then 29421 GL_COND_OBJ_MKOSTEMP_TRUE='#' 29422 GL_COND_OBJ_MKOSTEMP_FALSE='#' 29423 fi 29424 29425 if test -z "$GL_COND_OBJ_MKOSTEMP_TRUE"; then : 29426 29427 29428 29429 29430 fi 29431 29432 29433 printf "%s\n" "#define GNULIB_MKOSTEMP 1" >>confdefs.h 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 GL_GNULIB_MKOSTEMP=1 29446 29447 29448 29449 29450 29451 printf "%s\n" "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h 29452 29453 29454 29455 29456 29457 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 29458 GL_COND_OBJ_MSVC_INVAL_TRUE= 29459 GL_COND_OBJ_MSVC_INVAL_FALSE='#' 29460 else 29461 GL_COND_OBJ_MSVC_INVAL_TRUE='#' 29462 GL_COND_OBJ_MSVC_INVAL_FALSE= 29463 fi 29464 : 29465 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then 29466 GL_COND_OBJ_MSVC_INVAL_TRUE='#' 29467 GL_COND_OBJ_MSVC_INVAL_FALSE='#' 29468 fi 29469 29470 29471 29472 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 29473 GL_COND_OBJ_MSVC_NOTHROW_TRUE= 29474 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' 29475 else 29476 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' 29477 GL_COND_OBJ_MSVC_NOTHROW_FALSE= 29478 fi 29479 : 29480 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then 29481 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' 29482 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' 29483 fi 29484 29485 29486 29487 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 if test $ac_cv_func_nl_langinfo = yes; then 29500 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken. 29501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5 29502 printf %s "checking whether YESEXPR works... " >&6; } 29503 if test ${gl_cv_func_nl_langinfo_yesexpr_works+y} 29504 then : 29505 printf %s "(cached) " >&6 29506 else case e in #( 29507 e) if test "$cross_compiling" = yes 29508 then : 29509 29510 case "$host_os" in 29511 # Guess no on irix systems. 29512 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";; 29513 # Guess yes elsewhere. 29514 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";; 29515 esac 29516 29517 else case e in #( 29518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29519 /* end confdefs.h. */ 29520 #include <langinfo.h> 29521 29522 int 29523 main (void) 29524 { 29525 return !*nl_langinfo(YESEXPR); 29526 29527 ; 29528 return 0; 29529 } 29530 _ACEOF 29531 if ac_fn_c_try_run "$LINENO" 29532 then : 29533 gl_cv_func_nl_langinfo_yesexpr_works=yes 29534 else case e in #( 29535 e) gl_cv_func_nl_langinfo_yesexpr_works=no ;; 29536 esac 29537 fi 29538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29539 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 29540 esac 29541 fi 29542 29543 ;; 29544 esac 29545 fi 29546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5 29547 printf "%s\n" "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; } 29548 case $gl_cv_func_nl_langinfo_yesexpr_works in 29549 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;; 29550 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;; 29551 esac 29552 29553 printf "%s\n" "#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS" >>confdefs.h 29554 29555 # On Solaris 10 and Solaris 11.3, nl_langinfo is not multithread-safe. 29556 case "$host_os" in 29557 solaris*) NL_LANGINFO_MTSAFE=0 ;; 29558 *) NL_LANGINFO_MTSAFE=1 ;; 29559 esac 29560 29561 printf "%s\n" "#define NL_LANGINFO_MTSAFE $NL_LANGINFO_MTSAFE" >>confdefs.h 29562 29563 if test $HAVE_LANGINFO_CODESET = 1 \ 29564 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ 29565 && test $HAVE_LANGINFO_ALTMON = 1 \ 29566 && test $HAVE_LANGINFO_ERA = 1 \ 29567 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \ 29568 && test $NL_LANGINFO_MTSAFE = 1; then 29569 : 29570 else 29571 REPLACE_NL_LANGINFO=1 29572 29573 printf "%s\n" "#define REPLACE_NL_LANGINFO 1" >>confdefs.h 29574 29575 fi 29576 else 29577 HAVE_NL_LANGINFO=0 29578 fi 29579 if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then 29580 LIB_NL_LANGINFO="$LIB_SETLOCALE_NULL" 29581 else 29582 LIB_NL_LANGINFO= 29583 fi 29584 29585 29586 29587 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 29588 GL_COND_OBJ_NL_LANGINFO_TRUE= 29589 GL_COND_OBJ_NL_LANGINFO_FALSE='#' 29590 else 29591 GL_COND_OBJ_NL_LANGINFO_TRUE='#' 29592 GL_COND_OBJ_NL_LANGINFO_FALSE= 29593 fi 29594 : 29595 if test -z "${GL_COND_OBJ_NL_LANGINFO_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_FALSE}"; then 29596 GL_COND_OBJ_NL_LANGINFO_TRUE='#' 29597 GL_COND_OBJ_NL_LANGINFO_FALSE='#' 29598 fi 29599 29600 29601 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then 29602 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE= 29603 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#' 29604 else 29605 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#' 29606 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE= 29607 fi 29608 : 29609 if test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE}" && test -z "${GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE}"; then 29610 GL_COND_OBJ_NL_LANGINFO_LOCK_TRUE='#' 29611 GL_COND_OBJ_NL_LANGINFO_LOCK_FALSE='#' 29612 fi 29613 29614 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then 29615 29616 29617 29618 CFLAG_VISIBILITY= 29619 HAVE_VISIBILITY=0 29620 if test -n "$GCC"; then 29621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 29622 printf %s "checking whether the -Werror option is usable... " >&6; } 29623 if test ${gl_cv_cc_vis_werror+y} 29624 then : 29625 printf %s "(cached) " >&6 29626 else case e in #( 29627 e) gl_save_CFLAGS="$CFLAGS" 29628 CFLAGS="$CFLAGS -Werror" 29629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29630 /* end confdefs.h. */ 29631 29632 int 29633 main (void) 29634 { 29635 29636 ; 29637 return 0; 29638 } 29639 _ACEOF 29640 if ac_fn_c_try_compile "$LINENO" 29641 then : 29642 gl_cv_cc_vis_werror=yes 29643 else case e in #( 29644 e) gl_cv_cc_vis_werror=no ;; 29645 esac 29646 fi 29647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29648 CFLAGS="$gl_save_CFLAGS" 29649 ;; 29650 esac 29651 fi 29652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 29653 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 29654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 29655 printf %s "checking for simple visibility declarations... " >&6; } 29656 if test ${gl_cv_cc_visibility+y} 29657 then : 29658 printf %s "(cached) " >&6 29659 else case e in #( 29660 e) gl_save_CFLAGS="$CFLAGS" 29661 CFLAGS="$CFLAGS -fvisibility=hidden" 29662 if test $gl_cv_cc_vis_werror = yes; then 29663 CFLAGS="$CFLAGS -Werror" 29664 fi 29665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29666 /* end confdefs.h. */ 29667 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 29668 extern __attribute__((__visibility__("default"))) int exportedvar; 29669 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 29670 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 29671 void dummyfunc (void); 29672 int hiddenvar; 29673 int exportedvar; 29674 int hiddenfunc (void) { return 51; } 29675 int exportedfunc (void) { return 1225736919; } 29676 void dummyfunc (void) {} 29677 29678 int 29679 main (void) 29680 { 29681 29682 ; 29683 return 0; 29684 } 29685 _ACEOF 29686 if ac_fn_c_try_compile "$LINENO" 29687 then : 29688 gl_cv_cc_visibility=yes 29689 else case e in #( 29690 e) gl_cv_cc_visibility=no ;; 29691 esac 29692 fi 29693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29694 CFLAGS="$gl_save_CFLAGS" 29695 ;; 29696 esac 29697 fi 29698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 29699 printf "%s\n" "$gl_cv_cc_visibility" >&6; } 29700 if test $gl_cv_cc_visibility = yes; then 29701 CFLAG_VISIBILITY="-fvisibility=hidden" 29702 HAVE_VISIBILITY=1 29703 fi 29704 fi 29705 29706 29707 29708 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 29709 29710 29711 29712 fi 29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 GL_GNULIB_NL_LANGINFO=1 29723 29724 29725 29726 29727 29728 printf "%s\n" "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h 29729 29730 29731 29732 29733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5 29734 printf %s "checking for obstacks that work with any size object... " >&6; } 29735 if test ${gl_cv_func_obstack+y} 29736 then : 29737 printf %s "(cached) " >&6 29738 else case e in #( 29739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29740 /* end confdefs.h. */ 29741 #include "obstack.h" 29742 void *obstack_chunk_alloc (size_t n) { return 0; } 29743 void obstack_chunk_free (void *p) { } 29744 /* Check that an internal function returns size_t, not int. */ 29745 size_t _obstack_memory_used (struct obstack *); 29746 29747 int 29748 main (void) 29749 { 29750 struct obstack mem; 29751 obstack_init (&mem); 29752 obstack_free (&mem, 0); 29753 29754 ; 29755 return 0; 29756 } 29757 _ACEOF 29758 if ac_fn_c_try_link "$LINENO" 29759 then : 29760 gl_cv_func_obstack=yes 29761 else case e in #( 29762 e) gl_cv_func_obstack=no ;; 29763 esac 29764 fi 29765 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29766 conftest$ac_exeext conftest.$ac_ext ;; 29767 esac 29768 fi 29769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_obstack" >&5 29770 printf "%s\n" "$gl_cv_func_obstack" >&6; } 29771 if test "$gl_cv_func_obstack" = yes; then 29772 29773 printf "%s\n" "#define HAVE_OBSTACK 1" >>confdefs.h 29774 29775 fi 29776 29777 29778 if test "$gl_cv_func_obstack" != yes; then 29779 GL_COND_OBJ_OBSTACK_TRUE= 29780 GL_COND_OBJ_OBSTACK_FALSE='#' 29781 else 29782 GL_COND_OBJ_OBSTACK_TRUE='#' 29783 GL_COND_OBJ_OBSTACK_FALSE= 29784 fi 29785 : 29786 if test -z "${GL_COND_OBJ_OBSTACK_TRUE}" && test -z "${GL_COND_OBJ_OBSTACK_FALSE}"; then 29787 GL_COND_OBJ_OBSTACK_TRUE='#' 29788 GL_COND_OBJ_OBSTACK_FALSE='#' 29789 fi 29790 29791 29792 29793 29794 case "$host_os" in 29795 mingw* | pw*) 29796 REPLACE_OPEN=1 29797 ;; 29798 *) 29799 29800 if test "$gl_cv_macro_O_CLOEXEC" != yes; then 29801 REPLACE_OPEN=1 29802 fi 29803 29804 29805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 29806 printf %s "checking whether open recognizes a trailing slash... " >&6; } 29807 if test ${gl_cv_func_open_slash+y} 29808 then : 29809 printf %s "(cached) " >&6 29810 else case e in #( 29811 e) # Assume that if we have lstat, we can also check symlinks. 29812 if test $ac_cv_func_lstat = yes; then 29813 touch conftest.tmp 29814 ln -s conftest.tmp conftest.lnk 29815 fi 29816 if test "$cross_compiling" = yes 29817 then : 29818 29819 case "$host_os" in 29820 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 29821 gl_cv_func_open_slash="guessing no" ;; 29822 *) 29823 gl_cv_func_open_slash="guessing yes" ;; 29824 esac 29825 29826 else case e in #( 29827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29828 /* end confdefs.h. */ 29829 29830 #include <fcntl.h> 29831 #if HAVE_UNISTD_H 29832 # include <unistd.h> 29833 #endif 29834 29835 29836 $gl_mda_defines 29837 29838 int main () 29839 { 29840 int result = 0; 29841 #if HAVE_LSTAT 29842 if (open ("conftest.lnk/", O_RDONLY) != -1) 29843 result |= 1; 29844 #endif 29845 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 29846 result |= 2; 29847 return result; 29848 } 29849 _ACEOF 29850 if ac_fn_c_try_run "$LINENO" 29851 then : 29852 gl_cv_func_open_slash=yes 29853 else case e in #( 29854 e) gl_cv_func_open_slash=no ;; 29855 esac 29856 fi 29857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29858 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 29859 esac 29860 fi 29861 29862 rm -f conftest.sl conftest.tmp conftest.lnk 29863 ;; 29864 esac 29865 fi 29866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 29867 printf "%s\n" "$gl_cv_func_open_slash" >&6; } 29868 case "$gl_cv_func_open_slash" in 29869 *no) 29870 29871 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 29872 29873 ;; 29874 esac 29875 29876 case "$gl_cv_func_open_slash" in 29877 *no) 29878 REPLACE_OPEN=1 29879 ;; 29880 esac 29881 ;; 29882 esac 29883 29884 29885 29886 29887 if test $REPLACE_OPEN = 1; then 29888 GL_COND_OBJ_OPEN_TRUE= 29889 GL_COND_OBJ_OPEN_FALSE='#' 29890 else 29891 GL_COND_OBJ_OPEN_TRUE='#' 29892 GL_COND_OBJ_OPEN_FALSE= 29893 fi 29894 : 29895 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then 29896 GL_COND_OBJ_OPEN_TRUE='#' 29897 GL_COND_OBJ_OPEN_FALSE='#' 29898 fi 29899 29900 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then : 29901 29902 29903 29904 : 29905 29906 29907 fi 29908 29909 29910 29911 29912 29913 29914 29915 29916 29917 GL_GNULIB_OPEN=1 29918 29919 29920 29921 29922 29923 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h 29924 29925 29926 29927 29928 29929 29930 29931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl 5.005 or newer" >&5 29932 printf %s "checking for Perl 5.005 or newer... " >&6; } 29933 if test ${gl_cv_prog_perl+y} 29934 then : 29935 printf %s "(cached) " >&6 29936 else case e in #( 29937 e) 29938 if test "${PERL+set}" = set; then 29939 # 'PERL' is set in the user's environment. 29940 candidate_perl_names="$PERL" 29941 perl_specified=yes 29942 else 29943 candidate_perl_names='perl perl5' 29944 perl_specified=no 29945 fi 29946 29947 gl_cv_prog_perl=no 29948 for perl in $candidate_perl_names; do 29949 # Run test in a subshell; some versions of sh will print an error if 29950 # an executable is not found, even if stderr is redirected. 29951 if ( $perl -e 'require 5.005; use File::Compare; use warnings;' ) > /dev/null 2>&1; then 29952 gl_cv_prog_perl=$perl 29953 break 29954 fi 29955 done 29956 ;; 29957 esac 29958 fi 29959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_perl" >&5 29960 printf "%s\n" "$gl_cv_prog_perl" >&6; } 29961 29962 if test "$gl_cv_prog_perl" != no; then 29963 PERL=$gl_cv_prog_perl 29964 else 29965 PERL="$am_missing_run perl" 29966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 29967 WARNING: You don't seem to have perl5.005 or newer installed, or you lack 29968 a usable version of the Perl File::Compare module. As a result, 29969 you may be unable to run a few tests or to regenerate certain 29970 files if you modify the sources from which they are derived. 29971 " >&5 29972 printf "%s\n" "$as_me: WARNING: 29973 WARNING: You don't seem to have perl5.005 or newer installed, or you lack 29974 a usable version of the Perl File::Compare module. As a result, 29975 you may be unable to run a few tests or to regenerate certain 29976 files if you modify the sources from which they are derived. 29977 " >&2;} 29978 fi 29979 29980 29981 29982 29983 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 29984 " "$ac_c_undeclared_builtin_options" "CFLAGS" 29985 if test "x$ac_cv_have_decl_program_invocation_name" = xyes 29986 then : 29987 ac_have_decl=1 29988 else case e in #( 29989 e) ac_have_decl=0 ;; 29990 esac 29991 fi 29992 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h 29993 29994 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 29995 " "$ac_c_undeclared_builtin_options" "CFLAGS" 29996 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 29997 then : 29998 ac_have_decl=1 29999 else case e in #( 30000 e) ac_have_decl=0 ;; 30001 esac 30002 fi 30003 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 30004 30005 30006 : 30007 30008 30009 30010 : 30011 30012 30013 30014 30015 30016 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr" 30017 if test "x$ac_cv_func_rawmemchr" = xyes 30018 then : 30019 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h 30020 30021 fi 30022 30023 if test $ac_cv_func_rawmemchr = no; then 30024 HAVE_RAWMEMCHR=0 30025 fi 30026 30027 30028 if test $HAVE_RAWMEMCHR = 0; then 30029 GL_COND_OBJ_RAWMEMCHR_TRUE= 30030 GL_COND_OBJ_RAWMEMCHR_FALSE='#' 30031 else 30032 GL_COND_OBJ_RAWMEMCHR_TRUE='#' 30033 GL_COND_OBJ_RAWMEMCHR_FALSE= 30034 fi 30035 : 30036 if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then 30037 GL_COND_OBJ_RAWMEMCHR_TRUE='#' 30038 GL_COND_OBJ_RAWMEMCHR_FALSE='#' 30039 fi 30040 30041 if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then : 30042 30043 : 30044 30045 fi 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 GL_GNULIB_RAWMEMCHR=1 30061 30062 30063 30064 30065 30066 printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h 30067 30068 30069 30070 30071 30072 30073 if test $ac_cv_func_readlink = no; then 30074 HAVE_READLINK=0 30075 else 30076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 30077 printf %s "checking whether readlink signature is correct... " >&6; } 30078 if test ${gl_cv_decl_readlink_works+y} 30079 then : 30080 printf %s "(cached) " >&6 30081 else case e in #( 30082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30083 /* end confdefs.h. */ 30084 #include <unistd.h> 30085 /* Cause compilation failure if original declaration has wrong type. */ 30086 ssize_t readlink (const char *, char *, size_t); 30087 int 30088 main (void) 30089 { 30090 30091 ; 30092 return 0; 30093 } 30094 _ACEOF 30095 if ac_fn_c_try_compile "$LINENO" 30096 then : 30097 gl_cv_decl_readlink_works=yes 30098 else case e in #( 30099 e) gl_cv_decl_readlink_works=no ;; 30100 esac 30101 fi 30102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 30103 esac 30104 fi 30105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 30106 printf "%s\n" "$gl_cv_decl_readlink_works" >&6; } 30107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 30108 printf %s "checking whether readlink handles trailing slash correctly... " >&6; } 30109 if test ${gl_cv_func_readlink_trailing_slash+y} 30110 then : 30111 printf %s "(cached) " >&6 30112 else case e in #( 30113 e) # We have readlink, so assume ln -s works. 30114 ln -s conftest.no-such conftest.link 30115 ln -s conftest.link conftest.lnk2 30116 if test "$cross_compiling" = yes 30117 then : 30118 case "$host_os" in 30119 # Guess yes on Linux or glibc systems. 30120 linux-* | linux | *-gnu* | gnu*) 30121 gl_cv_func_readlink_trailing_slash="guessing yes" ;; 30122 # Guess no on AIX or HP-UX. 30123 aix* | hpux*) 30124 gl_cv_func_readlink_trailing_slash="guessing no" ;; 30125 # If we don't know, obey --enable-cross-guesses. 30126 *) 30127 gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;; 30128 esac 30129 30130 else case e in #( 30131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30132 /* end confdefs.h. */ 30133 #include <unistd.h> 30134 30135 int 30136 main (void) 30137 { 30138 char buf[20]; 30139 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; 30140 ; 30141 return 0; 30142 } 30143 _ACEOF 30144 if ac_fn_c_try_run "$LINENO" 30145 then : 30146 gl_cv_func_readlink_trailing_slash=yes 30147 else case e in #( 30148 e) gl_cv_func_readlink_trailing_slash=no ;; 30149 esac 30150 fi 30151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30152 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 30153 esac 30154 fi 30155 30156 rm -f conftest.link conftest.lnk2 ;; 30157 esac 30158 fi 30159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5 30160 printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; } 30161 case "$gl_cv_func_readlink_trailing_slash" in 30162 *yes) 30163 if test "$gl_cv_decl_readlink_works" != yes; then 30164 REPLACE_READLINK=1 30165 fi 30166 ;; 30167 *) 30168 30169 printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h 30170 30171 REPLACE_READLINK=1 30172 ;; 30173 esac 30174 30175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5 30176 printf %s "checking whether readlink truncates results correctly... " >&6; } 30177 if test ${gl_cv_func_readlink_truncate+y} 30178 then : 30179 printf %s "(cached) " >&6 30180 else case e in #( 30181 e) # We have readlink, so assume ln -s works. 30182 ln -s ab conftest.link 30183 if test "$cross_compiling" = yes 30184 then : 30185 case "$host_os" in 30186 # Guess yes on Linux or glibc systems. 30187 linux-* | linux | *-gnu* | gnu*) 30188 gl_cv_func_readlink_truncate="guessing yes" ;; 30189 # Guess no on AIX or HP-UX. 30190 aix* | hpux*) 30191 gl_cv_func_readlink_truncate="guessing no" ;; 30192 # If we don't know, obey --enable-cross-guesses. 30193 *) 30194 gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;; 30195 esac 30196 30197 else case e in #( 30198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30199 /* end confdefs.h. */ 30200 #include <unistd.h> 30201 30202 int 30203 main (void) 30204 { 30205 char c; 30206 return readlink ("conftest.link", &c, 1) != 1; 30207 ; 30208 return 0; 30209 } 30210 _ACEOF 30211 if ac_fn_c_try_run "$LINENO" 30212 then : 30213 gl_cv_func_readlink_truncate=yes 30214 else case e in #( 30215 e) gl_cv_func_readlink_truncate=no ;; 30216 esac 30217 fi 30218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30219 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 30220 esac 30221 fi 30222 30223 rm -f conftest.link conftest.lnk2 ;; 30224 esac 30225 fi 30226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5 30227 printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; } 30228 case $gl_cv_func_readlink_truncate in 30229 *yes) 30230 if test "$gl_cv_decl_readlink_works" != yes; then 30231 REPLACE_READLINK=1 30232 fi 30233 ;; 30234 *) 30235 30236 printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h 30237 30238 REPLACE_READLINK=1 30239 ;; 30240 esac 30241 fi 30242 30243 30244 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then 30245 GL_COND_OBJ_READLINK_TRUE= 30246 GL_COND_OBJ_READLINK_FALSE='#' 30247 else 30248 GL_COND_OBJ_READLINK_TRUE='#' 30249 GL_COND_OBJ_READLINK_FALSE= 30250 fi 30251 : 30252 if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then 30253 GL_COND_OBJ_READLINK_TRUE='#' 30254 GL_COND_OBJ_READLINK_FALSE='#' 30255 fi 30256 30257 if test -z "$GL_COND_OBJ_READLINK_TRUE"; then : 30258 30259 30260 : 30261 30262 30263 fi 30264 30265 30266 30267 30268 30269 30270 30271 30272 30273 GL_GNULIB_READLINK=1 30274 30275 30276 30277 30278 30279 printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h 30280 30281 30282 30283 30284 30285 30286 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then 30287 30288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5 30289 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; } 30290 if test ${ac_cv_func_realloc_0_nonnull+y} 30291 then : 30292 printf %s "(cached) " >&6 30293 else case e in #( 30294 e) if test "$cross_compiling" = yes 30295 then : 30296 case "$host_os" in 30297 # Guess yes on platforms where we know the result. 30298 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ 30299 | gnu* | *-musl* | midnightbsd* \ 30300 | hpux* | solaris* | cygwin* | mingw* | msys* ) 30301 ac_cv_func_realloc_0_nonnull="guessing yes" ;; 30302 # If we don't know, obey --enable-cross-guesses. 30303 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; 30304 esac 30305 30306 else case e in #( 30307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30308 /* end confdefs.h. */ 30309 #include <stdlib.h> 30310 30311 int 30312 main (void) 30313 { 30314 void *p = realloc (0, 0); 30315 int result = !p; 30316 free (p); 30317 return result; 30318 ; 30319 return 0; 30320 } 30321 30322 _ACEOF 30323 if ac_fn_c_try_run "$LINENO" 30324 then : 30325 ac_cv_func_realloc_0_nonnull=yes 30326 else case e in #( 30327 e) ac_cv_func_realloc_0_nonnull=no ;; 30328 esac 30329 fi 30330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30331 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 30332 esac 30333 fi 30334 30335 ;; 30336 esac 30337 fi 30338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 30339 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } 30340 case $ac_cv_func_realloc_0_nonnull in #( 30341 *yes) : 30342 ;; #( 30343 *) : 30344 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;; 30345 esac 30346 30347 fi 30348 30349 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then 30350 30351 30352 30353 30354 30355 30356 30357 30358 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" 30359 30360 fi 30361 30362 30363 30364 30365 30366 30367 30368 30369 30370 GL_GNULIB_REALLOC_GNU=1 30371 30372 30373 30374 30375 30376 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h 30377 30378 30379 30380 30381 30382 30383 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then 30384 REPLACE_REALLOC_FOR_REALLOC_POSIX=1 30385 fi 30386 30387 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then 30388 30389 30390 30391 30392 30393 30394 30395 30396 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" 30397 30398 fi 30399 30400 30401 30402 30403 30404 30405 30406 30407 30408 GL_GNULIB_REALLOC_POSIX=1 30409 30410 30411 30412 30413 30414 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h 30415 30416 30417 30418 30419 30420 30421 30422 30423 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 30424 if test "x$ac_cv_func_reallocarray" = xyes 30425 then : 30426 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 30427 30428 fi 30429 30430 if test "$ac_cv_func_reallocarray" = no; then 30431 HAVE_REALLOCARRAY=0 30432 elif test "$gl_cv_malloc_ptrdiff" = no; then 30433 REPLACE_REALLOCARRAY=1 30434 fi 30435 30436 30437 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then 30438 GL_COND_OBJ_REALLOCARRAY_TRUE= 30439 GL_COND_OBJ_REALLOCARRAY_FALSE='#' 30440 else 30441 GL_COND_OBJ_REALLOCARRAY_TRUE='#' 30442 GL_COND_OBJ_REALLOCARRAY_FALSE= 30443 fi 30444 : 30445 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then 30446 GL_COND_OBJ_REALLOCARRAY_TRUE='#' 30447 GL_COND_OBJ_REALLOCARRAY_FALSE='#' 30448 fi 30449 30450 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then : 30451 30452 : 30453 30454 fi 30455 30456 30457 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 GL_GNULIB_REALLOCARRAY=1 30470 30471 30472 30473 30474 30475 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h 30476 30477 30478 30479 30480 30481 # Check whether --with-included-regex was given. 30482 if test ${with_included_regex+y} 30483 then : 30484 withval=$with_included_regex; 30485 fi 30486 30487 30488 case $with_included_regex in #( 30489 yes|no) ac_use_included_regex=$with_included_regex 30490 ;; 30491 '') 30492 # If the system regex support is good enough that it passes the 30493 # following run test, then default to *not* using the included regex.c. 30494 # If cross compiling, assume the test would fail and use the included 30495 # regex.c. 30496 30497 30498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 30499 printf %s "checking for working re_compile_pattern... " >&6; } 30500 if test ${gl_cv_func_re_compile_pattern_working+y} 30501 then : 30502 printf %s "(cached) " >&6 30503 else case e in #( 30504 e) if test "$cross_compiling" = yes 30505 then : 30506 case "$host_os" in 30507 # Guess no on native Windows. 30508 mingw*) gl_cv_func_re_compile_pattern_working="guessing no" ;; 30509 # Otherwise obey --enable-cross-guesses. 30510 *) gl_cv_func_re_compile_pattern_working="$gl_cross_guess_normal" ;; 30511 esac 30512 30513 else case e in #( 30514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30515 /* end confdefs.h. */ 30516 #include <regex.h> 30517 30518 #include <locale.h> 30519 #include <limits.h> 30520 #include <string.h> 30521 30522 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM 30523 # include <signal.h> 30524 # include <unistd.h> 30525 #endif 30526 30527 #if HAVE_MALLOC_H 30528 # include <malloc.h> 30529 #endif 30530 30531 #ifdef M_CHECK_ACTION 30532 /* Exit with distinguishable exit code. */ 30533 static void sigabrt_no_core (int sig) { raise (SIGTERM); } 30534 #endif 30535 30536 int 30537 main (void) 30538 { 30539 int result = 0; 30540 static struct re_pattern_buffer regex; 30541 unsigned char folded_chars[UCHAR_MAX + 1]; 30542 int i; 30543 const char *s; 30544 struct re_registers regs; 30545 30546 /* Some builds of glibc go into an infinite loop on this 30547 test. Use alarm to force death, and mallopt to avoid 30548 malloc recursion in diagnosing the corrupted heap. */ 30549 #if HAVE_DECL_ALARM 30550 signal (SIGALRM, SIG_DFL); 30551 alarm (2); 30552 #endif 30553 #ifdef M_CHECK_ACTION 30554 signal (SIGABRT, sigabrt_no_core); 30555 mallopt (M_CHECK_ACTION, 2); 30556 #endif 30557 30558 if (setlocale (LC_ALL, "en_US.UTF-8")) 30559 { 30560 { 30561 /* https://sourceware.org/ml/libc-hacker/2006-09/msg00008.html 30562 This test needs valgrind to catch the bug on Debian 30563 GNU/Linux 3.1 x86, but it might catch the bug better 30564 on other platforms and it shouldn't hurt to try the 30565 test here. */ 30566 static char const pat[] = "insert into"; 30567 static char const data[] = 30568 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; 30569 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE 30570 | RE_ICASE); 30571 memset (®ex, 0, sizeof regex); 30572 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 30573 if (s) 30574 result |= 1; 30575 else 30576 { 30577 if (re_search (®ex, data, sizeof data - 1, 30578 0, sizeof data - 1, ®s) 30579 != -1) 30580 result |= 1; 30581 regfree (®ex); 30582 } 30583 } 30584 30585 { 30586 /* This test is from glibc bug 15078. 30587 The test case is from Andreas Schwab in 30588 <https://sourceware.org/ml/libc-alpha/2013-01/msg00967.html>. 30589 */ 30590 static char const pat[] = "[^x]x"; 30591 static char const data[] = 30592 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */ 30593 "\xe1\x80\x80" 30594 "\xe1\x80\xbb" 30595 "\xe1\x80\xbd" 30596 "\xe1\x80\x94" 30597 "\xe1\x80\xba" 30598 "\xe1\x80\xaf" 30599 "\xe1\x80\x95" 30600 "\xe1\x80\xba" 30601 "x"; 30602 re_set_syntax (0); 30603 memset (®ex, 0, sizeof regex); 30604 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 30605 if (s) 30606 result |= 1; 30607 else 30608 { 30609 i = re_search (®ex, data, sizeof data - 1, 30610 0, sizeof data - 1, 0); 30611 if (i != 0 && i != 21) 30612 result |= 1; 30613 regfree (®ex); 30614 } 30615 } 30616 30617 if (! setlocale (LC_ALL, "C")) 30618 return 1; 30619 } 30620 30621 /* This test is from glibc bug 3957, reported by Andrew Mackey. */ 30622 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); 30623 memset (®ex, 0, sizeof regex); 30624 s = re_compile_pattern ("a[^x]b", 6, ®ex); 30625 if (s) 30626 result |= 2; 30627 else 30628 { 30629 /* This should fail, but succeeds for glibc-2.5. */ 30630 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) 30631 result |= 2; 30632 regfree (®ex); 30633 } 30634 30635 /* This regular expression is from Spencer ere test number 75 30636 in grep-2.3. */ 30637 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 30638 memset (®ex, 0, sizeof regex); 30639 for (i = 0; i <= UCHAR_MAX; i++) 30640 folded_chars[i] = i; 30641 regex.translate = folded_chars; 30642 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex); 30643 /* This should fail with _Invalid character class name_ error. */ 30644 if (!s) 30645 { 30646 result |= 4; 30647 regfree (®ex); 30648 } 30649 30650 /* Ensure that [b-a] is diagnosed as invalid, when 30651 using RE_NO_EMPTY_RANGES. */ 30652 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES); 30653 memset (®ex, 0, sizeof regex); 30654 s = re_compile_pattern ("a[b-a]", 6, ®ex); 30655 if (s == 0) 30656 { 30657 result |= 8; 30658 regfree (®ex); 30659 } 30660 30661 /* This should succeed, but does not for glibc-2.1.3. */ 30662 memset (®ex, 0, sizeof regex); 30663 s = re_compile_pattern ("{1", 2, ®ex); 30664 if (s) 30665 result |= 8; 30666 else 30667 regfree (®ex); 30668 30669 /* The following example is derived from a problem report 30670 against gawk from Jorge Stolfi <[email protected]>. */ 30671 memset (®ex, 0, sizeof regex); 30672 s = re_compile_pattern ("[an\371]*n", 7, ®ex); 30673 if (s) 30674 result |= 8; 30675 else 30676 { 30677 /* This should match, but does not for glibc-2.2.1. */ 30678 if (re_match (®ex, "an", 2, 0, ®s) != 2) 30679 result |= 8; 30680 else 30681 { 30682 free (regs.start); 30683 free (regs.end); 30684 } 30685 regfree (®ex); 30686 } 30687 30688 memset (®ex, 0, sizeof regex); 30689 s = re_compile_pattern ("x", 1, ®ex); 30690 if (s) 30691 result |= 8; 30692 else 30693 { 30694 /* glibc-2.2.93 does not work with a negative RANGE argument. */ 30695 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) 30696 result |= 8; 30697 else 30698 { 30699 free (regs.start); 30700 free (regs.end); 30701 } 30702 regfree (®ex); 30703 } 30704 30705 /* The version of regex.c in older versions of gnulib 30706 ignored RE_ICASE. Detect that problem too. */ 30707 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); 30708 memset (®ex, 0, sizeof regex); 30709 s = re_compile_pattern ("x", 1, ®ex); 30710 if (s) 30711 result |= 16; 30712 else 30713 { 30714 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) 30715 result |= 16; 30716 else 30717 { 30718 free (regs.start); 30719 free (regs.end); 30720 } 30721 regfree (®ex); 30722 } 30723 30724 /* Catch a bug reported by Vin Shelton in 30725 https://lists.gnu.org/r/bug-coreutils/2007-06/msg00089.html 30726 */ 30727 re_set_syntax (RE_SYNTAX_POSIX_BASIC 30728 & ~RE_CONTEXT_INVALID_DUP 30729 & ~RE_NO_EMPTY_RANGES); 30730 memset (®ex, 0, sizeof regex); 30731 s = re_compile_pattern ("[[:alnum:]_-]\\\\+\$", 16, ®ex); 30732 if (s) 30733 result |= 32; 30734 else 30735 regfree (®ex); 30736 30737 /* REG_STARTEND was added to glibc on 2004-01-15. 30738 Reject older versions. */ 30739 if (! REG_STARTEND) 30740 result |= 64; 30741 30742 /* Matching with the compiled form of this regexp would provoke 30743 an assertion failure prior to glibc-2.28: 30744 regexec.c:1375: pop_fail_stack: Assertion 'num >= 0' failed 30745 With glibc-2.28, compilation fails and reports the invalid 30746 back reference. */ 30747 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 30748 memset (®ex, 0, sizeof regex); 30749 s = re_compile_pattern ("0|()0|\\\\1|0", 10, ®ex); 30750 if (!s) 30751 { 30752 memset (®s, 0, sizeof regs); 30753 i = re_search (®ex, "x", 1, 0, 1, ®s); 30754 if (i != -1) 30755 result |= 64; 30756 if (0 <= i) 30757 { 30758 free (regs.start); 30759 free (regs.end); 30760 } 30761 regfree (®ex); 30762 } 30763 else 30764 { 30765 if (strcmp (s, "Invalid back reference")) 30766 result |= 64; 30767 } 30768 30769 /* glibc bug 11053. */ 30770 re_set_syntax (RE_SYNTAX_POSIX_BASIC); 30771 memset (®ex, 0, sizeof regex); 30772 static char const pat_sub2[] = "\\\\(a*\\\\)*a*\\\\1"; 30773 s = re_compile_pattern (pat_sub2, sizeof pat_sub2 - 1, ®ex); 30774 if (s) 30775 result |= 64; 30776 else 30777 { 30778 memset (®s, 0, sizeof regs); 30779 static char const data[] = "a"; 30780 int datalen = sizeof data - 1; 30781 i = re_search (®ex, data, datalen, 0, datalen, ®s); 30782 if (i != 0) 30783 result |= 64; 30784 else if (regs.num_regs < 2) 30785 result |= 64; 30786 else if (! (regs.start[0] == 0 && regs.end[0] == 1)) 30787 result |= 64; 30788 else if (! (regs.start[1] == 0 && regs.end[1] == 0)) 30789 result |= 64; 30790 regfree (®ex); 30791 free (regs.start); 30792 free (regs.end); 30793 } 30794 30795 #if 0 30796 /* It would be nice to reject hosts whose regoff_t values are too 30797 narrow (including glibc on hosts with 64-bit ptrdiff_t and 30798 32-bit int), but we should wait until glibc implements this 30799 feature. Otherwise, support for equivalence classes and 30800 multibyte collation symbols would always be broken except 30801 when compiling --without-included-regex. */ 30802 if (sizeof (regoff_t) < sizeof (ptrdiff_t) 30803 || sizeof (regoff_t) < sizeof (ssize_t)) 30804 result |= 64; 30805 #endif 30806 30807 return result; 30808 30809 ; 30810 return 0; 30811 } 30812 _ACEOF 30813 if ac_fn_c_try_run "$LINENO" 30814 then : 30815 gl_cv_func_re_compile_pattern_working=yes 30816 else case e in #( 30817 e) gl_cv_func_re_compile_pattern_working=no ;; 30818 esac 30819 fi 30820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 30822 esac 30823 fi 30824 30825 ;; 30826 esac 30827 fi 30828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 30829 printf "%s\n" "$gl_cv_func_re_compile_pattern_working" >&6; } 30830 case "$gl_cv_func_re_compile_pattern_working" in #( 30831 *yes) ac_use_included_regex=no;; #( 30832 *no) ac_use_included_regex=yes;; 30833 esac 30834 ;; 30835 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 30836 ;; 30837 esac 30838 30839 if test $ac_use_included_regex = yes; then 30840 30841 printf "%s\n" "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h 30842 30843 30844 printf "%s\n" "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h 30845 30846 30847 printf "%s\n" "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h 30848 30849 30850 printf "%s\n" "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h 30851 30852 30853 printf "%s\n" "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h 30854 30855 30856 printf "%s\n" "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h 30857 30858 30859 printf "%s\n" "#define re_search rpl_re_search" >>confdefs.h 30860 30861 30862 printf "%s\n" "#define re_search_2 rpl_re_search_2" >>confdefs.h 30863 30864 30865 printf "%s\n" "#define re_match rpl_re_match" >>confdefs.h 30866 30867 30868 printf "%s\n" "#define re_match_2 rpl_re_match_2" >>confdefs.h 30869 30870 30871 printf "%s\n" "#define re_set_registers rpl_re_set_registers" >>confdefs.h 30872 30873 30874 printf "%s\n" "#define re_comp rpl_re_comp" >>confdefs.h 30875 30876 30877 printf "%s\n" "#define re_exec rpl_re_exec" >>confdefs.h 30878 30879 30880 printf "%s\n" "#define regcomp rpl_regcomp" >>confdefs.h 30881 30882 30883 printf "%s\n" "#define regexec rpl_regexec" >>confdefs.h 30884 30885 30886 printf "%s\n" "#define regerror rpl_regerror" >>confdefs.h 30887 30888 30889 printf "%s\n" "#define regfree rpl_regfree" >>confdefs.h 30890 30891 fi 30892 30893 30894 if test $ac_use_included_regex = yes; then 30895 GL_COND_OBJ_REGEX_TRUE= 30896 GL_COND_OBJ_REGEX_FALSE='#' 30897 else 30898 GL_COND_OBJ_REGEX_TRUE='#' 30899 GL_COND_OBJ_REGEX_FALSE= 30900 fi 30901 : 30902 if test -z "${GL_COND_OBJ_REGEX_TRUE}" && test -z "${GL_COND_OBJ_REGEX_FALSE}"; then 30903 GL_COND_OBJ_REGEX_TRUE='#' 30904 GL_COND_OBJ_REGEX_FALSE='#' 30905 fi 30906 30907 if test -z "$GL_COND_OBJ_REGEX_TRUE"; then : 30908 30909 30910 30911 30912 30913 30914 30915 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 30916 if test "x$ac_cv_header_libintl_h" = xyes 30917 then : 30918 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h 30919 30920 fi 30921 30922 30923 ac_fn_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h> 30924 " "$ac_c_undeclared_builtin_options" "CFLAGS" 30925 if test "x$ac_cv_have_decl_isblank" = xyes 30926 then : 30927 ac_have_decl=1 30928 else case e in #( 30929 e) ac_have_decl=0 ;; 30930 esac 30931 fi 30932 printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h 30933 30934 30935 30936 fi 30937 30938 30939 30940 30941 30942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5 30943 printf %s "checking whether rename honors trailing slash on destination... " >&6; } 30944 if test ${gl_cv_func_rename_slash_dst_works+y} 30945 then : 30946 printf %s "(cached) " >&6 30947 else case e in #( 30948 e) rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk 30949 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 || 30950 as_fn_error $? "cannot create temporary files" "$LINENO" 5 30951 # Assume that if we have lstat, we can also check symlinks. 30952 if test $ac_cv_func_lstat = yes; then 30953 ln -s conftest.f conftest.lnk 30954 fi 30955 if test "$cross_compiling" = yes 30956 then : 30957 case "$host_os" in 30958 # Guess yes on Linux systems. 30959 linux-* | linux) gl_cv_func_rename_slash_dst_works="guessing yes" ;; 30960 # Guess yes on glibc systems. 30961 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;; 30962 # Guess no on native Windows. 30963 mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;; 30964 # If we don't know, obey --enable-cross-guesses. 30965 *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;; 30966 esac 30967 30968 else case e in #( 30969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30970 /* end confdefs.h. */ 30971 30972 # include <stdio.h> 30973 # include <stdlib.h> 30974 30975 int 30976 main (void) 30977 { 30978 int result = 0; 30979 if (rename ("conftest.f1", "conftest.f2/") == 0) 30980 result |= 1; 30981 if (rename ("conftest.d1", "conftest.d2/") != 0) 30982 result |= 2; 30983 #if HAVE_LSTAT 30984 if (rename ("conftest.f", "conftest.lnk/") == 0) 30985 result |= 4; 30986 #endif 30987 return result; 30988 30989 ; 30990 return 0; 30991 } 30992 _ACEOF 30993 if ac_fn_c_try_run "$LINENO" 30994 then : 30995 gl_cv_func_rename_slash_dst_works=yes 30996 else case e in #( 30997 e) gl_cv_func_rename_slash_dst_works=no ;; 30998 esac 30999 fi 31000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31001 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31002 esac 31003 fi 31004 31005 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk 31006 ;; 31007 esac 31008 fi 31009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5 31010 printf "%s\n" "$gl_cv_func_rename_slash_dst_works" >&6; } 31011 case "$gl_cv_func_rename_slash_dst_works" in 31012 *yes) ;; 31013 *) 31014 REPLACE_RENAME=1 31015 31016 printf "%s\n" "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h 31017 31018 ;; 31019 esac 31020 31021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5 31022 printf %s "checking whether rename honors trailing slash on source... " >&6; } 31023 if test ${gl_cv_func_rename_slash_src_works+y} 31024 then : 31025 printf %s "(cached) " >&6 31026 else case e in #( 31027 e) rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk 31028 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 || 31029 as_fn_error $? "cannot create temporary files" "$LINENO" 5 31030 # Assume that if we have lstat, we can also check symlinks. 31031 if test $ac_cv_func_lstat = yes; then 31032 ln -s conftest.f conftest.lnk 31033 fi 31034 if test "$cross_compiling" = yes 31035 then : 31036 case "$host_os" in 31037 # Guess yes on Linux systems. 31038 linux-* | linux) gl_cv_func_rename_slash_src_works="guessing yes" ;; 31039 # Guess yes on glibc systems. 31040 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;; 31041 # Guess yes on native Windows. 31042 mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;; 31043 # If we don't know, obey --enable-cross-guesses. 31044 *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;; 31045 esac 31046 31047 else case e in #( 31048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31049 /* end confdefs.h. */ 31050 31051 # include <stdio.h> 31052 # include <stdlib.h> 31053 31054 int 31055 main (void) 31056 { 31057 int result = 0; 31058 if (rename ("conftest.f1/", "conftest.d3") == 0) 31059 result |= 1; 31060 if (rename ("conftest.d1/", "conftest.d2") != 0) 31061 result |= 2; 31062 #if HAVE_LSTAT 31063 if (rename ("conftest.lnk/", "conftest.f") == 0) 31064 result |= 4; 31065 #endif 31066 return result; 31067 31068 ; 31069 return 0; 31070 } 31071 _ACEOF 31072 if ac_fn_c_try_run "$LINENO" 31073 then : 31074 gl_cv_func_rename_slash_src_works=yes 31075 else case e in #( 31076 e) gl_cv_func_rename_slash_src_works=no ;; 31077 esac 31078 fi 31079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31080 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31081 esac 31082 fi 31083 31084 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk 31085 ;; 31086 esac 31087 fi 31088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5 31089 printf "%s\n" "$gl_cv_func_rename_slash_src_works" >&6; } 31090 case "$gl_cv_func_rename_slash_src_works" in 31091 *yes) ;; 31092 *) 31093 REPLACE_RENAME=1 31094 31095 printf "%s\n" "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h 31096 31097 ;; 31098 esac 31099 31100 31101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5 31102 printf %s "checking whether rename manages hard links correctly... " >&6; } 31103 if test ${gl_cv_func_rename_link_works+y} 31104 then : 31105 printf %s "(cached) " >&6 31106 else case e in #( 31107 e) if test $ac_cv_func_link = yes; then 31108 if test $cross_compiling != yes; then 31109 rm -rf conftest.f conftest.f1 conftest.f2 31110 if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 && 31111 set x `ls -i conftest.f conftest.f1` && test "" = ""; then 31112 if test "$cross_compiling" = yes 31113 then : 31114 : 31115 31116 else case e in #( 31117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31118 /* end confdefs.h. */ 31119 31120 # include <errno.h> 31121 # include <stdio.h> 31122 # include <stdlib.h> 31123 # include <unistd.h> 31124 31125 31126 $gl_mda_defines 31127 31128 int 31129 main (void) 31130 { 31131 int result = 0; 31132 if (rename ("conftest.f", "conftest.f1")) 31133 result |= 1; 31134 if (unlink ("conftest.f1")) 31135 result |= 2; 31136 31137 /* Allow either the POSIX-required behavior, where the 31138 previous rename kept conftest.f, or the (better) NetBSD 31139 behavior, where it removed conftest.f. */ 31140 if (rename ("conftest.f", "conftest.f") != 0 31141 && errno != ENOENT) 31142 result |= 4; 31143 31144 if (rename ("conftest.f1", "conftest.f1") == 0) 31145 result |= 8; 31146 if (rename ("conftest.f2", "conftest.f2") != 0) 31147 result |= 16; 31148 return result; 31149 31150 ; 31151 return 0; 31152 } 31153 _ACEOF 31154 if ac_fn_c_try_run "$LINENO" 31155 then : 31156 gl_cv_func_rename_link_works=yes 31157 else case e in #( 31158 e) gl_cv_func_rename_link_works=no ;; 31159 esac 31160 fi 31161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31162 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31163 esac 31164 fi 31165 31166 else 31167 gl_cv_func_rename_link_works="guessing no" 31168 fi 31169 rm -rf conftest.f conftest.f1 conftest.f2 31170 else 31171 case "$host_os" in 31172 # Guess yes on Linux systems. 31173 linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;; 31174 # Guess yes on glibc systems. 31175 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;; 31176 # Guess yes on native Windows. 31177 mingw*) gl_cv_func_rename_link_works="guessing yes" ;; 31178 # If we don't know, obey --enable-cross-guesses. 31179 *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;; 31180 esac 31181 fi 31182 else 31183 gl_cv_func_rename_link_works=yes 31184 fi 31185 ;; 31186 esac 31187 fi 31188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5 31189 printf "%s\n" "$gl_cv_func_rename_link_works" >&6; } 31190 case "$gl_cv_func_rename_link_works" in 31191 *yes) ;; 31192 *) 31193 REPLACE_RENAME=1 31194 31195 printf "%s\n" "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h 31196 31197 ;; 31198 esac 31199 31200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5 31201 printf %s "checking whether rename manages existing destinations correctly... " >&6; } 31202 if test ${gl_cv_func_rename_dest_works+y} 31203 then : 31204 printf %s "(cached) " >&6 31205 else case e in #( 31206 e) rm -rf conftest.f conftest.d1 conftest.d2 31207 touch conftest.f && mkdir conftest.d1 conftest.d2 || 31208 as_fn_error $? "cannot create temporary files" "$LINENO" 5 31209 if test "$cross_compiling" = yes 31210 then : 31211 case "$host_os" in 31212 # Guess yes on Linux systems. 31213 linux-* | linux) gl_cv_func_rename_dest_works="guessing yes" ;; 31214 # Guess yes on glibc systems. 31215 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;; 31216 # Guess no on native Windows. 31217 mingw*) gl_cv_func_rename_dest_works="guessing no" ;; 31218 # If we don't know, obey --enable-cross-guesses. 31219 *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;; 31220 esac 31221 31222 else case e in #( 31223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31224 /* end confdefs.h. */ 31225 31226 # include <stdio.h> 31227 # include <stdlib.h> 31228 31229 int 31230 main (void) 31231 { 31232 int result = 0; 31233 if (rename ("conftest.d1", "conftest.d2") != 0) 31234 result |= 1; 31235 if (rename ("conftest.d2", "conftest.f") == 0) 31236 result |= 2; 31237 return result; 31238 31239 ; 31240 return 0; 31241 } 31242 _ACEOF 31243 if ac_fn_c_try_run "$LINENO" 31244 then : 31245 gl_cv_func_rename_dest_works=yes 31246 else case e in #( 31247 e) gl_cv_func_rename_dest_works=no ;; 31248 esac 31249 fi 31250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31251 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31252 esac 31253 fi 31254 31255 rm -rf conftest.f conftest.d1 conftest.d2 31256 ;; 31257 esac 31258 fi 31259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5 31260 printf "%s\n" "$gl_cv_func_rename_dest_works" >&6; } 31261 case "$gl_cv_func_rename_dest_works" in 31262 *yes) ;; 31263 *) 31264 REPLACE_RENAME=1 31265 31266 printf "%s\n" "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h 31267 31268 ;; 31269 esac 31270 31271 31272 if test $REPLACE_RENAME = 1; then 31273 GL_COND_OBJ_RENAME_TRUE= 31274 GL_COND_OBJ_RENAME_FALSE='#' 31275 else 31276 GL_COND_OBJ_RENAME_TRUE='#' 31277 GL_COND_OBJ_RENAME_FALSE= 31278 fi 31279 : 31280 if test -z "${GL_COND_OBJ_RENAME_TRUE}" && test -z "${GL_COND_OBJ_RENAME_FALSE}"; then 31281 GL_COND_OBJ_RENAME_TRUE='#' 31282 GL_COND_OBJ_RENAME_FALSE='#' 31283 fi 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 GL_GNULIB_RENAME=1 31295 31296 31297 31298 31299 31300 printf "%s\n" "#define GNULIB_TEST_RENAME 1" >>confdefs.h 31301 31302 31303 31304 31305 31306 31307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5 31308 printf %s "checking whether rmdir works... " >&6; } 31309 if test ${gl_cv_func_rmdir_works+y} 31310 then : 31311 printf %s "(cached) " >&6 31312 else case e in #( 31313 e) mkdir conftest.dir 31314 touch conftest.file 31315 if test "$cross_compiling" = yes 31316 then : 31317 case "$host_os" in 31318 # Guess yes on Linux systems. 31319 linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;; 31320 # Guess yes on glibc systems. 31321 *-gnu* | gnu*) gl_cv_func_rmdir_works="guessing yes" ;; 31322 # Guess no on native Windows. 31323 mingw*) gl_cv_func_rmdir_works="guessing no" ;; 31324 # If we don't know, obey --enable-cross-guesses. 31325 *) gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;; 31326 esac 31327 31328 else case e in #( 31329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31330 /* end confdefs.h. */ 31331 #include <stdio.h> 31332 #include <errno.h> 31333 #if HAVE_UNISTD_H 31334 # include <unistd.h> 31335 #else /* on Windows with MSVC */ 31336 # include <direct.h> 31337 #endif 31338 31339 31340 $gl_mda_defines 31341 31342 int 31343 main (void) 31344 { 31345 int result = 0; 31346 if (!rmdir ("conftest.file/")) 31347 result |= 1; 31348 else if (errno != ENOTDIR) 31349 result |= 2; 31350 if (!rmdir ("conftest.dir/./")) 31351 result |= 4; 31352 return result; 31353 31354 ; 31355 return 0; 31356 } 31357 _ACEOF 31358 if ac_fn_c_try_run "$LINENO" 31359 then : 31360 gl_cv_func_rmdir_works=yes 31361 else case e in #( 31362 e) gl_cv_func_rmdir_works=no ;; 31363 esac 31364 fi 31365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31366 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31367 esac 31368 fi 31369 31370 rm -rf conftest.dir conftest.file ;; 31371 esac 31372 fi 31373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5 31374 printf "%s\n" "$gl_cv_func_rmdir_works" >&6; } 31375 case "$gl_cv_func_rmdir_works" in 31376 *yes) ;; 31377 *) 31378 REPLACE_RMDIR=1 31379 ;; 31380 esac 31381 31382 31383 if test $REPLACE_RMDIR = 1; then 31384 GL_COND_OBJ_RMDIR_TRUE= 31385 GL_COND_OBJ_RMDIR_FALSE='#' 31386 else 31387 GL_COND_OBJ_RMDIR_TRUE='#' 31388 GL_COND_OBJ_RMDIR_FALSE= 31389 fi 31390 : 31391 if test -z "${GL_COND_OBJ_RMDIR_TRUE}" && test -z "${GL_COND_OBJ_RMDIR_FALSE}"; then 31392 GL_COND_OBJ_RMDIR_TRUE='#' 31393 GL_COND_OBJ_RMDIR_FALSE='#' 31394 fi 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 GL_GNULIB_RMDIR=1 31406 31407 31408 31409 31410 31411 printf "%s\n" "#define GNULIB_TEST_RMDIR 1" >>confdefs.h 31412 31413 31414 31415 31416 31417 if test "$with_selinux" != no; then 31418 ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 31419 if test "x$ac_cv_header_selinux_selinux_h" = xyes 31420 then : 31421 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h 31422 31423 fi 31424 31425 31426 if test "$ac_cv_header_selinux_selinux_h" = yes; then 31427 # We do have <selinux/selinux.h>, so do compile getfilecon.c 31428 # and arrange to use its wrappers. 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 if test $gl_cv_have_include_next = yes; then 31439 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>' 31440 else 31441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <selinux/selinux.h>" >&5 31442 printf %s "checking absolute name of <selinux/selinux.h>... " >&6; } 31443 if test ${gl_cv_next_selinux_selinux_h+y} 31444 then : 31445 printf %s "(cached) " >&6 31446 else case e in #( 31447 e) 31448 if test $ac_cv_header_selinux_selinux_h = yes; then 31449 31450 31451 31452 31453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31454 /* end confdefs.h. */ 31455 #include <selinux/selinux.h> 31456 _ACEOF 31457 case "$host_os" in 31458 aix*) gl_absname_cpp="$ac_cpp -C" ;; 31459 *) gl_absname_cpp="$ac_cpp" ;; 31460 esac 31461 31462 case "$host_os" in 31463 mingw*) 31464 gl_dirsep_regex='[/\\]' 31465 ;; 31466 *) 31467 gl_dirsep_regex='\/' 31468 ;; 31469 esac 31470 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 31471 gl_header_literal_regex=`echo 'selinux/selinux.h' \ 31472 | sed -e "$gl_make_literal_regex_sed"` 31473 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 31474 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 31475 s|^/[^/]|//&| 31476 p 31477 q 31478 }' 31479 31480 gl_cv_absolute_selinux_selinux_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 31481 sed -n "$gl_absolute_header_sed"` 31482 31483 gl_header=$gl_cv_absolute_selinux_selinux_h 31484 gl_cv_next_selinux_selinux_h='"'$gl_header'"' 31485 else 31486 gl_cv_next_selinux_selinux_h='<'selinux/selinux.h'>' 31487 fi 31488 31489 ;; 31490 esac 31491 fi 31492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_selinux_selinux_h" >&5 31493 printf "%s\n" "$gl_cv_next_selinux_selinux_h" >&6; } 31494 fi 31495 NEXT_SELINUX_SELINUX_H=$gl_cv_next_selinux_selinux_h 31496 31497 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 31498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 31499 gl_next_as_first_directive='<'selinux/selinux.h'>' 31500 else 31501 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 31502 gl_next_as_first_directive=$gl_cv_next_selinux_selinux_h 31503 fi 31504 NEXT_AS_FIRST_DIRECTIVE_SELINUX_SELINUX_H=$gl_next_as_first_directive 31505 31506 31507 31508 31509 31510 printf "%s\n" "#define getfilecon rpl_getfilecon" >>confdefs.h 31511 31512 31513 printf "%s\n" "#define lgetfilecon rpl_lgetfilecon" >>confdefs.h 31514 31515 31516 printf "%s\n" "#define fgetfilecon rpl_fgetfilecon" >>confdefs.h 31517 31518 fi 31519 31520 case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in 31521 no:*) # already warned 31522 ;; 31523 *:no) 31524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libselinux was found but selinux/selinux.h is missing." >&5 31525 printf "%s\n" "$as_me: WARNING: libselinux was found but selinux/selinux.h is missing." >&2;} 31526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU sed will be compiled without SELinux support." >&5 31527 printf "%s\n" "$as_me: WARNING: GNU sed will be compiled without SELinux support." >&2;} 31528 esac 31529 else 31530 # Do as if <selinux/selinux.h> does not exist, even if 31531 # AC_CHECK_HEADERS_ONCE has already determined that it exists. 31532 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 0" >>confdefs.h 31533 31534 fi 31535 31536 31537 31538 if test "$with_selinux" != no; then 31539 for ac_header in selinux/context.h 31540 do : 31541 ac_fn_c_check_header_compile "$LINENO" "selinux/context.h" "ac_cv_header_selinux_context_h" "$ac_includes_default" 31542 if test "x$ac_cv_header_selinux_context_h" = xyes 31543 then : 31544 printf "%s\n" "#define HAVE_SELINUX_CONTEXT_H 1" >>confdefs.h 31545 GL_GENERATE_SELINUX_CONTEXT_H=false 31546 else case e in #( 31547 e) GL_GENERATE_SELINUX_CONTEXT_H=true ;; 31548 esac 31549 fi 31550 31551 done 31552 else 31553 GL_GENERATE_SELINUX_CONTEXT_H=true 31554 fi 31555 31556 31557 31558 GL_GENERATE_SELINUX_LABEL_H=true 31559 if test "$with_selinux" != no; then 31560 for ac_header in selinux/label.h 31561 do : 31562 ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" 31563 if test "x$ac_cv_header_selinux_label_h" = xyes 31564 then : 31565 printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h 31566 GL_GENERATE_SELINUX_LABEL_H=false 31567 fi 31568 31569 done 31570 fi 31571 31572 31573 31574 31575 31576 case "$GL_GENERATE_SELINUX_CONTEXT_H" in 31577 false) SELINUX_CONTEXT_H='' ;; 31578 true) 31579 if test -z "$SELINUX_CONTEXT_H"; then 31580 SELINUX_CONTEXT_H="${gl_source_base_prefix}selinux/context.h" 31581 fi 31582 ;; 31583 *) echo "*** GL_GENERATE_SELINUX_CONTEXT_H is not set correctly" 1>&2; exit 1 ;; 31584 esac 31585 31586 31587 if $GL_GENERATE_SELINUX_CONTEXT_H; then 31588 GL_GENERATE_SELINUX_CONTEXT_H_TRUE= 31589 GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#' 31590 else 31591 GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#' 31592 GL_GENERATE_SELINUX_CONTEXT_H_FALSE= 31593 fi 31594 : 31595 if test -z "${GL_GENERATE_SELINUX_CONTEXT_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_CONTEXT_H_FALSE}"; then 31596 GL_GENERATE_SELINUX_CONTEXT_H_TRUE='#' 31597 GL_GENERATE_SELINUX_CONTEXT_H_FALSE='#' 31598 fi 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 case "$GL_GENERATE_SELINUX_LABEL_H" in 31609 false) SELINUX_LABEL_H='' ;; 31610 true) 31611 if test -z "$SELINUX_LABEL_H"; then 31612 SELINUX_LABEL_H="${gl_source_base_prefix}selinux/label.h" 31613 fi 31614 ;; 31615 *) echo "*** GL_GENERATE_SELINUX_LABEL_H is not set correctly" 1>&2; exit 1 ;; 31616 esac 31617 31618 31619 if $GL_GENERATE_SELINUX_LABEL_H; then 31620 GL_GENERATE_SELINUX_LABEL_H_TRUE= 31621 GL_GENERATE_SELINUX_LABEL_H_FALSE='#' 31622 else 31623 GL_GENERATE_SELINUX_LABEL_H_TRUE='#' 31624 GL_GENERATE_SELINUX_LABEL_H_FALSE= 31625 fi 31626 : 31627 if test -z "${GL_GENERATE_SELINUX_LABEL_H_TRUE}" && test -z "${GL_GENERATE_SELINUX_LABEL_H_FALSE}"; then 31628 GL_GENERATE_SELINUX_LABEL_H_TRUE='#' 31629 GL_GENERATE_SELINUX_LABEL_H_FALSE='#' 31630 fi 31631 31632 31633 31634 31635 31636 31637 31638 if test "$with_selinux" != no && test "$ac_cv_header_selinux_selinux_h" = yes; then 31639 GL_COND_OBJ_GETFILECON_TRUE= 31640 GL_COND_OBJ_GETFILECON_FALSE='#' 31641 else 31642 GL_COND_OBJ_GETFILECON_TRUE='#' 31643 GL_COND_OBJ_GETFILECON_FALSE= 31644 fi 31645 : 31646 if test -z "${GL_COND_OBJ_GETFILECON_TRUE}" && test -z "${GL_COND_OBJ_GETFILECON_FALSE}"; then 31647 GL_COND_OBJ_GETFILECON_TRUE='#' 31648 GL_COND_OBJ_GETFILECON_FALSE='#' 31649 fi 31650 31651 31652 31653 31654 31655 31656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 31657 printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 31658 if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 31659 then : 31660 printf %s "(cached) " >&6 31661 else case e in #( 31662 e) case "$host_os" in 31663 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 31664 *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 31665 gl_cv_func_setlocale_null_all_mtsafe=no ;; 31666 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 31667 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 31668 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 31669 # If we don't know, obey --enable-cross-guesses. 31670 *) 31671 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 31672 esac 31673 ;; 31674 esac 31675 fi 31676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 31677 printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 31678 case "$host_os" in 31679 mingw*) ;; 31680 *) 31681 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 31682 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 31683 fi 31684 ;; 31685 esac 31686 case "$gl_cv_func_setlocale_null_all_mtsafe" in 31687 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 31688 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 31689 esac 31690 31691 printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 31692 31693 31694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 31695 printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 31696 if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 31697 then : 31698 printf %s "(cached) " >&6 31699 else case e in #( 31700 e) case "$host_os" in 31701 # Guess no on OpenBSD, AIX. 31702 openbsd* | aix*) 31703 gl_cv_func_setlocale_null_one_mtsafe=no ;; 31704 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 31705 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 31706 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 31707 # If we don't know, obey --enable-cross-guesses. 31708 *) 31709 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 31710 esac 31711 ;; 31712 esac 31713 fi 31714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 31715 printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 31716 case "$host_os" in 31717 mingw*) ;; 31718 *) 31719 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 31720 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 31721 fi 31722 ;; 31723 esac 31724 case "$gl_cv_func_setlocale_null_one_mtsafe" in 31725 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 31726 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 31727 esac 31728 31729 printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 31730 31731 31732 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 31733 case "$host_os" in 31734 mingw*) LIB_SETLOCALE_NULL= ;; 31735 *) 31736 31737 31738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 31739 printf %s "checking whether imported symbols can be declared weak... " >&6; } 31740 if test ${gl_cv_have_weak+y} 31741 then : 31742 printf %s "(cached) " >&6 31743 else case e in #( 31744 e) case "$host_os" in 31745 cygwin*) 31746 gl_cv_have_weak="guessing no" 31747 ;; 31748 *) 31749 gl_cv_have_weak=no 31750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31751 /* end confdefs.h. */ 31752 extern void xyzzy (); 31753 #pragma weak xyzzy 31754 int 31755 main (void) 31756 { 31757 xyzzy(); 31758 ; 31759 return 0; 31760 } 31761 _ACEOF 31762 if ac_fn_c_try_link "$LINENO" 31763 then : 31764 gl_cv_have_weak=maybe 31765 fi 31766 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31767 conftest$ac_exeext conftest.$ac_ext 31768 if test $gl_cv_have_weak = maybe; then 31769 if test "$cross_compiling" = yes 31770 then : 31771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31772 /* end confdefs.h. */ 31773 #ifdef __ELF__ 31774 Extensible Linking Format 31775 #endif 31776 31777 _ACEOF 31778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31779 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1 31780 then : 31781 gl_cv_have_weak="guessing yes" 31782 else case e in #( 31783 e) gl_cv_have_weak="guessing no" ;; 31784 esac 31785 fi 31786 rm -rf conftest* 31787 31788 31789 else case e in #( 31790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31791 /* end confdefs.h. */ 31792 31793 #include <stdio.h> 31794 #pragma weak fputs 31795 int main () 31796 { 31797 return (fputs == NULL); 31798 } 31799 _ACEOF 31800 if ac_fn_c_try_run "$LINENO" 31801 then : 31802 gl_cv_have_weak=yes 31803 else case e in #( 31804 e) gl_cv_have_weak=no ;; 31805 esac 31806 fi 31807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31808 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 31809 esac 31810 fi 31811 31812 fi 31813 ;; 31814 esac 31815 case " $LDFLAGS " in 31816 *" -static "*) gl_cv_have_weak=no ;; 31817 esac 31818 case "$gl_cv_have_weak" in 31819 *yes) 31820 case "$host_os" in 31821 freebsd* | dragonfly* | midnightbsd*) 31822 : > conftest1.c 31823 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 31824 cat <<EOF > conftest2.c 31825 #include <pthread.h> 31826 #pragma weak pthread_mutexattr_gettype 31827 int main () 31828 { 31829 return (pthread_mutexattr_gettype != NULL); 31830 } 31831 EOF 31832 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 31833 || gl_cv_have_weak=no 31834 rm -f conftest1.c libempty.so conftest2.c conftest 31835 ;; 31836 esac 31837 ;; 31838 esac 31839 ;; 31840 esac 31841 fi 31842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 31843 printf "%s\n" "$gl_cv_have_weak" >&6; } 31844 case "$gl_cv_have_weak" in 31845 *yes) 31846 31847 printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 31848 31849 ;; 31850 esac 31851 31852 case "$gl_cv_have_weak" in 31853 *yes) LIB_SETLOCALE_NULL= ;; 31854 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 31855 esac 31856 ;; 31857 esac 31858 else 31859 LIB_SETLOCALE_NULL= 31860 fi 31861 31862 31863 31864 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 31865 GL_COND_OBJ_SETLOCALE_LOCK_TRUE= 31866 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#' 31867 else 31868 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#' 31869 GL_COND_OBJ_SETLOCALE_LOCK_FALSE= 31870 fi 31871 : 31872 if test -z "${GL_COND_OBJ_SETLOCALE_LOCK_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_LOCK_FALSE}"; then 31873 GL_COND_OBJ_SETLOCALE_LOCK_TRUE='#' 31874 GL_COND_OBJ_SETLOCALE_LOCK_FALSE='#' 31875 fi 31876 31877 if test -z "$GL_COND_OBJ_SETLOCALE_LOCK_TRUE"; then : 31878 31879 31880 31881 31882 CFLAG_VISIBILITY= 31883 HAVE_VISIBILITY=0 31884 if test -n "$GCC"; then 31885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 31886 printf %s "checking whether the -Werror option is usable... " >&6; } 31887 if test ${gl_cv_cc_vis_werror+y} 31888 then : 31889 printf %s "(cached) " >&6 31890 else case e in #( 31891 e) gl_save_CFLAGS="$CFLAGS" 31892 CFLAGS="$CFLAGS -Werror" 31893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31894 /* end confdefs.h. */ 31895 31896 int 31897 main (void) 31898 { 31899 31900 ; 31901 return 0; 31902 } 31903 _ACEOF 31904 if ac_fn_c_try_compile "$LINENO" 31905 then : 31906 gl_cv_cc_vis_werror=yes 31907 else case e in #( 31908 e) gl_cv_cc_vis_werror=no ;; 31909 esac 31910 fi 31911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31912 CFLAGS="$gl_save_CFLAGS" 31913 ;; 31914 esac 31915 fi 31916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 31917 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 31918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 31919 printf %s "checking for simple visibility declarations... " >&6; } 31920 if test ${gl_cv_cc_visibility+y} 31921 then : 31922 printf %s "(cached) " >&6 31923 else case e in #( 31924 e) gl_save_CFLAGS="$CFLAGS" 31925 CFLAGS="$CFLAGS -fvisibility=hidden" 31926 if test $gl_cv_cc_vis_werror = yes; then 31927 CFLAGS="$CFLAGS -Werror" 31928 fi 31929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31930 /* end confdefs.h. */ 31931 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 31932 extern __attribute__((__visibility__("default"))) int exportedvar; 31933 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 31934 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 31935 void dummyfunc (void); 31936 int hiddenvar; 31937 int exportedvar; 31938 int hiddenfunc (void) { return 51; } 31939 int exportedfunc (void) { return 1225736919; } 31940 void dummyfunc (void) {} 31941 31942 int 31943 main (void) 31944 { 31945 31946 ; 31947 return 0; 31948 } 31949 _ACEOF 31950 if ac_fn_c_try_compile "$LINENO" 31951 then : 31952 gl_cv_cc_visibility=yes 31953 else case e in #( 31954 e) gl_cv_cc_visibility=no ;; 31955 esac 31956 fi 31957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31958 CFLAGS="$gl_save_CFLAGS" 31959 ;; 31960 esac 31961 fi 31962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 31963 printf "%s\n" "$gl_cv_cc_visibility" >&6; } 31964 if test $gl_cv_cc_visibility = yes; then 31965 CFLAG_VISIBILITY="-fvisibility=hidden" 31966 HAVE_VISIBILITY=1 31967 fi 31968 fi 31969 31970 31971 31972 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 31973 31974 31975 31976 31977 fi 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 GL_GNULIB_SETLOCALE_NULL=1 31988 31989 31990 31991 31992 31993 printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h 31994 31995 31996 31997 31998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 31999 printf %s "checking for ssize_t... " >&6; } 32000 if test ${gt_cv_ssize_t+y} 32001 then : 32002 printf %s "(cached) " >&6 32003 else case e in #( 32004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32005 /* end confdefs.h. */ 32006 #include <sys/types.h> 32007 int 32008 main (void) 32009 { 32010 int x = sizeof (ssize_t *) + sizeof (ssize_t); 32011 return !x; 32012 ; 32013 return 0; 32014 } 32015 _ACEOF 32016 if ac_fn_c_try_compile "$LINENO" 32017 then : 32018 gt_cv_ssize_t=yes 32019 else case e in #( 32020 e) gt_cv_ssize_t=no ;; 32021 esac 32022 fi 32023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 32024 esac 32025 fi 32026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 32027 printf "%s\n" "$gt_cv_ssize_t" >&6; } 32028 if test $gt_cv_ssize_t = no; then 32029 32030 printf "%s\n" "#define ssize_t int" >>confdefs.h 32031 32032 fi 32033 32034 32035 32036 32037 32038 case "$host_os" in 32039 mingw*) 32040 REPLACE_STAT=1 32041 ;; 32042 *) 32043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 32044 printf %s "checking whether stat handles trailing slashes on files... " >&6; } 32045 if test ${gl_cv_func_stat_file_slash+y} 32046 then : 32047 printf %s "(cached) " >&6 32048 else case e in #( 32049 e) touch conftest.tmp 32050 # Assume that if we have lstat, we can also check symlinks. 32051 if test $ac_cv_func_lstat = yes; then 32052 ln -s conftest.tmp conftest.lnk 32053 fi 32054 if test "$cross_compiling" = yes 32055 then : 32056 case "$host_os" in 32057 # Guess yes on Linux systems. 32058 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; 32059 # Guess yes on glibc systems. 32060 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 32061 # If we don't know, obey --enable-cross-guesses. 32062 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; 32063 esac 32064 32065 else case e in #( 32066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32067 /* end confdefs.h. */ 32068 #include <sys/stat.h> 32069 32070 int 32071 main (void) 32072 { 32073 int result = 0; 32074 struct stat st; 32075 if (!stat ("conftest.tmp/", &st)) 32076 result |= 1; 32077 #if HAVE_LSTAT 32078 if (!stat ("conftest.lnk/", &st)) 32079 result |= 2; 32080 #endif 32081 return result; 32082 32083 ; 32084 return 0; 32085 } 32086 _ACEOF 32087 if ac_fn_c_try_run "$LINENO" 32088 then : 32089 gl_cv_func_stat_file_slash=yes 32090 else case e in #( 32091 e) gl_cv_func_stat_file_slash=no ;; 32092 esac 32093 fi 32094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32095 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 32096 esac 32097 fi 32098 32099 rm -f conftest.tmp conftest.lnk ;; 32100 esac 32101 fi 32102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 32103 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } 32104 case $gl_cv_func_stat_file_slash in 32105 *no) 32106 REPLACE_STAT=1 32107 32108 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 32109 ;; 32110 esac 32111 case $host_os in 32112 solaris*) 32113 REPLACE_FSTAT=1 ;; 32114 esac 32115 ;; 32116 esac 32117 32118 32119 if test $REPLACE_STAT = 1; then 32120 GL_COND_OBJ_STAT_TRUE= 32121 GL_COND_OBJ_STAT_FALSE='#' 32122 else 32123 GL_COND_OBJ_STAT_TRUE='#' 32124 GL_COND_OBJ_STAT_FALSE= 32125 fi 32126 : 32127 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then 32128 GL_COND_OBJ_STAT_TRUE='#' 32129 GL_COND_OBJ_STAT_FALSE='#' 32130 fi 32131 32132 if test -z "$GL_COND_OBJ_STAT_TRUE"; then : 32133 32134 case "$host_os" in 32135 mingw*) 32136 32137 32138 32139 32140 32141 32142 32143 32144 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 32145 32146 ;; 32147 esac 32148 32149 32150 32151 : 32152 32153 32154 fi 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 GL_GNULIB_STAT=1 32165 32166 32167 32168 32169 32170 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h 32171 32172 32173 32174 32175 32176 32177 32178 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> 32179 #include <sys/stat.h> 32180 " 32181 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes 32182 then : 32183 32184 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h 32185 32186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 32187 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } 32188 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} 32189 then : 32190 printf %s "(cached) " >&6 32191 else case e in #( 32192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32193 /* end confdefs.h. */ 32194 32195 #include <sys/types.h> 32196 #include <sys/stat.h> 32197 #if HAVE_SYS_TIME_H 32198 # include <sys/time.h> 32199 #endif 32200 #include <time.h> 32201 struct timespec ts; 32202 struct stat st; 32203 32204 int 32205 main (void) 32206 { 32207 32208 st.st_atim = ts; 32209 32210 ; 32211 return 0; 32212 } 32213 _ACEOF 32214 if ac_fn_c_try_compile "$LINENO" 32215 then : 32216 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes 32217 else case e in #( 32218 e) ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no ;; 32219 esac 32220 fi 32221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 32222 esac 32223 fi 32224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 32225 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } 32226 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then 32227 32228 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h 32229 32230 fi 32231 else case e in #( 32232 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> 32233 #include <sys/stat.h> 32234 " 32235 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes 32236 then : 32237 32238 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h 32239 32240 32241 else case e in #( 32242 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> 32243 #include <sys/stat.h> 32244 " 32245 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes 32246 then : 32247 32248 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h 32249 32250 32251 else case e in #( 32252 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> 32253 #include <sys/stat.h> 32254 " 32255 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes 32256 then : 32257 32258 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h 32259 32260 32261 fi 32262 ;; 32263 esac 32264 fi 32265 ;; 32266 esac 32267 fi 32268 ;; 32269 esac 32270 fi 32271 32272 32273 32274 32275 32276 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h> 32277 #include <sys/stat.h> 32278 " 32279 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes 32280 then : 32281 32282 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h 32283 32284 32285 else case e in #( 32286 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> 32287 #include <sys/stat.h> 32288 " 32289 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes 32290 then : 32291 32292 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h 32293 32294 32295 else case e in #( 32296 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h> 32297 #include <sys/stat.h> 32298 " 32299 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes 32300 then : 32301 32302 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h 32303 32304 32305 fi 32306 ;; 32307 esac 32308 fi 32309 ;; 32310 esac 32311 fi 32312 32313 32314 32315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5 32316 printf %s "checking for alignas and alignof... " >&6; } 32317 if test ${gl_cv_header_working_stdalign_h+y} 32318 then : 32319 printf %s "(cached) " >&6 32320 else case e in #( 32321 e) gl_save_CFLAGS=$CFLAGS 32322 for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do 32323 case $gl_working in #( 32324 *stdalign.h*) : 32325 CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H" ;; #( 32326 *) : 32327 ;; 32328 esac 32329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32330 /* end confdefs.h. */ 32331 #include <stdint.h> 32332 #ifdef INCLUDE_STDALIGN_H 32333 #include <stdalign.h> 32334 #endif 32335 #include <stddef.h> 32336 32337 /* Test that alignof yields a result consistent with offsetof. 32338 This catches GCC bug 52023 32339 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 32340 #ifdef __cplusplus 32341 template <class t> struct alignof_helper { char a; t b; }; 32342 # define ao(type) offsetof (alignof_helper<type>, b) 32343 #else 32344 # define ao(type) offsetof (struct { char a; type b; }, b) 32345 #endif 32346 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 32347 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 32348 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 32349 32350 /* Test alignas only on platforms where gnulib can help. */ 32351 #if \ 32352 ((defined __cplusplus && 201103 <= __cplusplus) \ 32353 || (__TINYC__ && defined __attribute__) \ 32354 || (defined __APPLE__ && defined __MACH__ \ 32355 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 32356 : __GNUC__) \ 32357 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ 32358 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ 32359 || 1300 <= _MSC_VER) 32360 struct alignas_test { char c; char alignas (8) alignas_8; }; 32361 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 32362 ? 1 : -1]; 32363 #endif 32364 32365 int 32366 main (void) 32367 { 32368 32369 ; 32370 return 0; 32371 } 32372 _ACEOF 32373 if ac_fn_c_try_compile "$LINENO" 32374 then : 32375 gl_cv_header_working_stdalign_h=$gl_working 32376 else case e in #( 32377 e) gl_cv_header_working_stdalign_h=no ;; 32378 esac 32379 fi 32380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32381 32382 CFLAGS=$gl_save_CFLAGS 32383 test "$gl_cv_header_working_stdalign_h" != no && break 32384 done ;; 32385 esac 32386 fi 32387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 32388 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; } 32389 32390 GL_GENERATE_STDALIGN_H=false 32391 case $gl_cv_header_working_stdalign_h in #( 32392 no) : 32393 GL_GENERATE_STDALIGN_H=true ;; #( 32394 yes*keyword*) : 32395 32396 printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h 32397 ;; #( 32398 *) : 32399 ;; 32400 esac 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 case "$GL_GENERATE_STDALIGN_H" in 32411 false) STDALIGN_H='' ;; 32412 true) 32413 if test -z "$STDALIGN_H"; then 32414 STDALIGN_H="${gl_source_base_prefix}stdalign.h" 32415 fi 32416 ;; 32417 *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;; 32418 esac 32419 32420 32421 if $GL_GENERATE_STDALIGN_H; then 32422 GL_GENERATE_STDALIGN_H_TRUE= 32423 GL_GENERATE_STDALIGN_H_FALSE='#' 32424 else 32425 GL_GENERATE_STDALIGN_H_TRUE='#' 32426 GL_GENERATE_STDALIGN_H_FALSE= 32427 fi 32428 : 32429 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 32430 GL_GENERATE_STDALIGN_H_TRUE='#' 32431 GL_GENERATE_STDALIGN_H_FALSE='#' 32432 fi 32433 32434 32435 32436 32437 32438 32439 32440 GL_GENERATE_STDARG_H=false 32441 NEXT_STDARG_H='<stdarg.h>' 32442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 32443 printf %s "checking for va_copy... " >&6; } 32444 if test ${gl_cv_func_va_copy+y} 32445 then : 32446 printf %s "(cached) " >&6 32447 else case e in #( 32448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32449 /* end confdefs.h. */ 32450 #include <stdarg.h> 32451 int 32452 main (void) 32453 { 32454 32455 #ifndef va_copy 32456 void (*func) (va_list, va_list) = va_copy; 32457 #endif 32458 32459 ; 32460 return 0; 32461 } 32462 _ACEOF 32463 if ac_fn_c_try_compile "$LINENO" 32464 then : 32465 gl_cv_func_va_copy=yes 32466 else case e in #( 32467 e) gl_cv_func_va_copy=no ;; 32468 esac 32469 fi 32470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32471 ;; 32472 esac 32473 fi 32474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 32475 printf "%s\n" "$gl_cv_func_va_copy" >&6; } 32476 if test $gl_cv_func_va_copy = no; then 32477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32478 /* end confdefs.h. */ 32479 #if defined _AIX && !defined __GNUC__ 32480 AIX vaccine 32481 #endif 32482 32483 _ACEOF 32484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32485 $EGREP_TRADITIONAL "vaccine" >/dev/null 2>&1 32486 then : 32487 gl_aixcc=yes 32488 else case e in #( 32489 e) gl_aixcc=no ;; 32490 esac 32491 fi 32492 rm -rf conftest* 32493 32494 if test $gl_aixcc = yes; then 32495 GL_GENERATE_STDARG_H=true 32496 32497 32498 32499 32500 32501 32502 32503 32504 if test $gl_cv_have_include_next = yes; then 32505 gl_cv_next_stdarg_h='<'stdarg.h'>' 32506 else 32507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 32508 printf %s "checking absolute name of <stdarg.h>... " >&6; } 32509 if test ${gl_cv_next_stdarg_h+y} 32510 then : 32511 printf %s "(cached) " >&6 32512 else case e in #( 32513 e) 32514 32515 32516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32517 /* end confdefs.h. */ 32518 #include <stdarg.h> 32519 _ACEOF 32520 case "$host_os" in 32521 aix*) gl_absname_cpp="$ac_cpp -C" ;; 32522 *) gl_absname_cpp="$ac_cpp" ;; 32523 esac 32524 32525 case "$host_os" in 32526 mingw*) 32527 gl_dirsep_regex='[/\\]' 32528 ;; 32529 *) 32530 gl_dirsep_regex='\/' 32531 ;; 32532 esac 32533 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 32534 gl_header_literal_regex=`echo 'stdarg.h' \ 32535 | sed -e "$gl_make_literal_regex_sed"` 32536 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 32537 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 32538 s|^/[^/]|//&| 32539 p 32540 q 32541 }' 32542 32543 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 32544 sed -n "$gl_absolute_header_sed"` 32545 32546 gl_header=$gl_cv_absolute_stdarg_h 32547 gl_cv_next_stdarg_h='"'$gl_header'"' 32548 32549 ;; 32550 esac 32551 fi 32552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 32553 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; } 32554 fi 32555 NEXT_STDARG_H=$gl_cv_next_stdarg_h 32556 32557 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 32558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 32559 gl_next_as_first_directive='<'stdarg.h'>' 32560 else 32561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 32562 gl_next_as_first_directive=$gl_cv_next_stdarg_h 32563 fi 32564 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 32565 32566 32567 32568 32569 if test "$gl_cv_next_stdarg_h" = '""'; then 32570 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 32571 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 32572 fi 32573 else 32574 32575 32576 exec 9>&6 6>/dev/null 32577 32578 if test ${gl_cv_func___va_copy+y} 32579 then : 32580 printf %s "(cached) " >&6 32581 else case e in #( 32582 e) 32583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32584 /* end confdefs.h. */ 32585 #include <stdarg.h> 32586 int 32587 main (void) 32588 { 32589 32590 #ifndef __va_copy 32591 error, bail out 32592 #endif 32593 32594 ; 32595 return 0; 32596 } 32597 _ACEOF 32598 if ac_fn_c_try_compile "$LINENO" 32599 then : 32600 gl_cv_func___va_copy=yes 32601 else case e in #( 32602 e) gl_cv_func___va_copy=no ;; 32603 esac 32604 fi 32605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 32606 esac 32607 fi 32608 32609 32610 exec 6>&9 9>&- 32611 32612 32613 if test $gl_cv_func___va_copy = yes; then 32614 32615 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h 32616 32617 else 32618 32619 32620 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h 32621 32622 fi 32623 fi 32624 fi 32625 32626 32627 32628 32629 32630 32631 case "$GL_GENERATE_STDARG_H" in 32632 false) STDARG_H='' ;; 32633 true) 32634 if test -z "$STDARG_H"; then 32635 STDARG_H="${gl_source_base_prefix}stdarg.h" 32636 fi 32637 ;; 32638 *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;; 32639 esac 32640 32641 32642 if $GL_GENERATE_STDARG_H; then 32643 GL_GENERATE_STDARG_H_TRUE= 32644 GL_GENERATE_STDARG_H_FALSE='#' 32645 else 32646 GL_GENERATE_STDARG_H_TRUE='#' 32647 GL_GENERATE_STDARG_H_FALSE= 32648 fi 32649 : 32650 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 32651 GL_GENERATE_STDARG_H_TRUE='#' 32652 GL_GENERATE_STDARG_H_FALSE='#' 32653 fi 32654 32655 32656 32657 32658 32659 32660 32661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5 32662 printf %s "checking for bool, true, false... " >&6; } 32663 if test ${gl_cv_c_bool+y} 32664 then : 32665 printf %s "(cached) " >&6 32666 else case e in #( 32667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32668 /* end confdefs.h. */ 32669 32670 #if true == false 32671 #error "true == false" 32672 #endif 32673 extern bool b; 32674 bool b = true == false; 32675 _ACEOF 32676 if ac_fn_c_try_compile "$LINENO" 32677 then : 32678 gl_cv_c_bool=yes 32679 else case e in #( 32680 e) gl_cv_c_bool=no ;; 32681 esac 32682 fi 32683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 32684 esac 32685 fi 32686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5 32687 printf "%s\n" "$gl_cv_c_bool" >&6; } 32688 if test "$gl_cv_c_bool" = yes; then 32689 32690 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h 32691 32692 fi 32693 32694 32695 32696 32697 32698 32699 if test $ac_cv_header_stdckdint_h = yes; then 32700 GL_GENERATE_STDCKDINT_H=false 32701 else 32702 GL_GENERATE_STDCKDINT_H=true 32703 fi 32704 32705 32706 32707 32708 case "$GL_GENERATE_STDCKDINT_H" in 32709 false) STDCKDINT_H='' ;; 32710 true) 32711 if test -z "$STDCKDINT_H"; then 32712 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h" 32713 fi 32714 ;; 32715 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;; 32716 esac 32717 32718 32719 if $GL_GENERATE_STDCKDINT_H; then 32720 GL_GENERATE_STDCKDINT_H_TRUE= 32721 GL_GENERATE_STDCKDINT_H_FALSE='#' 32722 else 32723 GL_GENERATE_STDCKDINT_H_TRUE='#' 32724 GL_GENERATE_STDCKDINT_H_FALSE= 32725 fi 32726 : 32727 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then 32728 GL_GENERATE_STDCKDINT_H_TRUE='#' 32729 GL_GENERATE_STDCKDINT_H_FALSE='#' 32730 fi 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 case "$GL_GENERATE_STDDEF_H" in 32748 false) STDDEF_H='' ;; 32749 true) 32750 if test -z "$STDDEF_H"; then 32751 STDDEF_H="${gl_source_base_prefix}stddef.h" 32752 fi 32753 ;; 32754 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;; 32755 esac 32756 32757 32758 if $GL_GENERATE_STDDEF_H; then 32759 GL_GENERATE_STDDEF_H_TRUE= 32760 GL_GENERATE_STDDEF_H_FALSE='#' 32761 else 32762 GL_GENERATE_STDDEF_H_TRUE='#' 32763 GL_GENERATE_STDDEF_H_FALSE= 32764 fi 32765 : 32766 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 32767 GL_GENERATE_STDDEF_H_TRUE='#' 32768 GL_GENERATE_STDDEF_H_FALSE='#' 32769 fi 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 case "$GL_GENERATE_STDINT_H" in 32782 false) STDINT_H='' ;; 32783 true) 32784 if test -z "$STDINT_H"; then 32785 STDINT_H="${gl_source_base_prefix}stdint.h" 32786 fi 32787 ;; 32788 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;; 32789 esac 32790 32791 32792 if $GL_GENERATE_STDINT_H; then 32793 GL_GENERATE_STDINT_H_TRUE= 32794 GL_GENERATE_STDINT_H_FALSE='#' 32795 else 32796 GL_GENERATE_STDINT_H_TRUE='#' 32797 GL_GENERATE_STDINT_H_FALSE= 32798 fi 32799 : 32800 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 32801 GL_GENERATE_STDINT_H_TRUE='#' 32802 GL_GENERATE_STDINT_H_FALSE='#' 32803 fi 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 case "$GL_GENERATE_LIMITS_H" in 32814 false) LIMITS_H='' ;; 32815 true) 32816 if test -z "$LIMITS_H"; then 32817 LIMITS_H="${gl_source_base_prefix}limits.h" 32818 fi 32819 ;; 32820 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; 32821 esac 32822 32823 32824 if $GL_GENERATE_LIMITS_H; then 32825 GL_GENERATE_LIMITS_H_TRUE= 32826 GL_GENERATE_LIMITS_H_FALSE='#' 32827 else 32828 GL_GENERATE_LIMITS_H_TRUE='#' 32829 GL_GENERATE_LIMITS_H_FALSE= 32830 fi 32831 : 32832 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 32833 GL_GENERATE_LIMITS_H_TRUE='#' 32834 GL_GENERATE_LIMITS_H_FALSE='#' 32835 fi 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 if test $REPLACE_STDIO_READ_FUNCS = 1; then 32851 GL_COND_OBJ_STDIO_READ_TRUE= 32852 GL_COND_OBJ_STDIO_READ_FALSE='#' 32853 else 32854 GL_COND_OBJ_STDIO_READ_TRUE='#' 32855 GL_COND_OBJ_STDIO_READ_FALSE= 32856 fi 32857 : 32858 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then 32859 GL_COND_OBJ_STDIO_READ_TRUE='#' 32860 GL_COND_OBJ_STDIO_READ_FALSE='#' 32861 fi 32862 32863 32864 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then 32865 GL_COND_OBJ_STDIO_WRITE_TRUE= 32866 GL_COND_OBJ_STDIO_WRITE_FALSE='#' 32867 else 32868 GL_COND_OBJ_STDIO_WRITE_TRUE='#' 32869 GL_COND_OBJ_STDIO_WRITE_FALSE= 32870 fi 32871 : 32872 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then 32873 GL_COND_OBJ_STDIO_WRITE_TRUE='#' 32874 GL_COND_OBJ_STDIO_WRITE_FALSE='#' 32875 fi 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 GL_GNULIB_FSCANF=1 32887 32888 32889 32890 32891 32892 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h 32893 32894 32895 32896 32897 32898 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 GL_GNULIB_SCANF=1 32911 32912 32913 32914 32915 32916 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h 32917 32918 32919 32920 32921 32922 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h 32923 32924 32925 32926 32927 32928 32929 32930 32931 32932 32933 32934 GL_GNULIB_FGETC=1 32935 32936 32937 32938 32939 32940 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h 32941 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 32952 32953 GL_GNULIB_GETC=1 32954 32955 32956 32957 32958 32959 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h 32960 32961 32962 32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 GL_GNULIB_GETCHAR=1 32973 32974 32975 32976 32977 32978 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h 32979 32980 32981 32982 32983 32984 32985 32986 32987 32988 32989 32990 32991 GL_GNULIB_FGETS=1 32992 32993 32994 32995 32996 32997 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 33008 33009 33010 GL_GNULIB_FREAD=1 33011 33012 33013 33014 33015 33016 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h 33017 33018 33019 33020 33021 33022 33023 33024 33025 33026 33027 33028 33029 GL_GNULIB_FPRINTF=1 33030 33031 33032 33033 33034 33035 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h 33036 33037 33038 33039 33040 33041 33042 33043 33044 33045 33046 33047 33048 GL_GNULIB_PRINTF=1 33049 33050 33051 33052 33053 33054 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h 33055 33056 33057 33058 33059 33060 33061 33062 33063 33064 33065 33066 33067 GL_GNULIB_VFPRINTF=1 33068 33069 33070 33071 33072 33073 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 GL_GNULIB_VPRINTF=1 33087 33088 33089 33090 33091 33092 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 33104 33105 GL_GNULIB_FPUTC=1 33106 33107 33108 33109 33110 33111 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 GL_GNULIB_PUTC=1 33125 33126 33127 33128 33129 33130 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h 33131 33132 33133 33134 33135 33136 33137 33138 33139 33140 33141 33142 33143 GL_GNULIB_PUTCHAR=1 33144 33145 33146 33147 33148 33149 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 GL_GNULIB_FPUTS=1 33163 33164 33165 33166 33167 33168 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 GL_GNULIB_PUTS=1 33182 33183 33184 33185 33186 33187 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 GL_GNULIB_FWRITE=1 33201 33202 33203 33204 33205 33206 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h 33207 33208 33209 33210 33211 33212 33213 33214 33215 33216 33217 33218 33219 33220 33221 33222 33223 33224 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then 33225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 33226 printf %s "checking for working strerror function... " >&6; } 33227 if test ${gl_cv_func_working_strerror+y} 33228 then : 33229 printf %s "(cached) " >&6 33230 else case e in #( 33231 e) if test "$cross_compiling" = yes 33232 then : 33233 case "$host_os" in 33234 # Guess yes on glibc systems. 33235 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 33236 # Guess yes on musl systems. 33237 *-musl*) gl_cv_func_working_strerror="guessing yes" ;; 33238 # If we don't know, obey --enable-cross-guesses. 33239 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; 33240 esac 33241 33242 else case e in #( 33243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33244 /* end confdefs.h. */ 33245 #include <string.h> 33246 33247 int 33248 main (void) 33249 { 33250 if (!*strerror (-2)) return 1; 33251 ; 33252 return 0; 33253 } 33254 _ACEOF 33255 if ac_fn_c_try_run "$LINENO" 33256 then : 33257 gl_cv_func_working_strerror=yes 33258 else case e in #( 33259 e) gl_cv_func_working_strerror=no ;; 33260 esac 33261 fi 33262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33263 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33264 esac 33265 fi 33266 33267 ;; 33268 esac 33269 fi 33270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 33271 printf "%s\n" "$gl_cv_func_working_strerror" >&6; } 33272 case "$gl_cv_func_working_strerror" in 33273 *yes) ;; 33274 *) 33275 REPLACE_STRERROR=1 33276 ;; 33277 esac 33278 33279 case "$gl_cv_func_strerror_r_works" in 33280 *no) REPLACE_STRERROR=1 ;; 33281 esac 33282 33283 else 33284 REPLACE_STRERROR=1 33285 fi 33286 33287 33288 if test $REPLACE_STRERROR = 1; then 33289 GL_COND_OBJ_STRERROR_TRUE= 33290 GL_COND_OBJ_STRERROR_FALSE='#' 33291 else 33292 GL_COND_OBJ_STRERROR_TRUE='#' 33293 GL_COND_OBJ_STRERROR_FALSE= 33294 fi 33295 : 33296 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then 33297 GL_COND_OBJ_STRERROR_TRUE='#' 33298 GL_COND_OBJ_STRERROR_FALSE='#' 33299 fi 33300 33301 33302 33303 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 GL_GNULIB_STRERROR=1 33321 33322 33323 33324 33325 33326 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 33327 33328 33329 33330 33331 33332 33333 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 33334 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE= 33335 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' 33336 else 33337 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' 33338 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE= 33339 fi 33340 : 33341 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then 33342 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' 33343 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' 33344 fi 33345 33346 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then : 33347 33348 33349 33350 33351 33352 if test $ac_cv_header_sys_socket_h != yes; then 33353 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 33354 if test "x$ac_cv_header_winsock2_h" = xyes 33355 then : 33356 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 33357 33358 fi 33359 33360 fi 33361 if test "$ac_cv_header_winsock2_h" = yes; then 33362 HAVE_WINSOCK2_H=1 33363 UNISTD_H_HAVE_WINSOCK2_H=1 33364 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 33365 else 33366 HAVE_WINSOCK2_H=0 33367 fi 33368 33369 33370 33371 fi 33372 33373 33374 33375 33376 33377 33378 33379 33380 33381 33382 33383 33384 33385 33386 33387 33388 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" 33389 if test "x$ac_cv_func_strverscmp" = xyes 33390 then : 33391 printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h 33392 33393 fi 33394 33395 if test $ac_cv_func_strverscmp = no; then 33396 HAVE_STRVERSCMP=0 33397 fi 33398 33399 33400 if test $HAVE_STRVERSCMP = 0; then 33401 GL_COND_OBJ_STRVERSCMP_TRUE= 33402 GL_COND_OBJ_STRVERSCMP_FALSE='#' 33403 else 33404 GL_COND_OBJ_STRVERSCMP_TRUE='#' 33405 GL_COND_OBJ_STRVERSCMP_FALSE= 33406 fi 33407 : 33408 if test -z "${GL_COND_OBJ_STRVERSCMP_TRUE}" && test -z "${GL_COND_OBJ_STRVERSCMP_FALSE}"; then 33409 GL_COND_OBJ_STRVERSCMP_TRUE='#' 33410 GL_COND_OBJ_STRVERSCMP_FALSE='#' 33411 fi 33412 33413 if test -z "$GL_COND_OBJ_STRVERSCMP_TRUE"; then : 33414 33415 33416 : 33417 33418 33419 fi 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 GL_GNULIB_STRVERSCMP=1 33435 33436 33437 33438 33439 33440 printf "%s\n" "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h 33441 33442 33443 33444 33445 33446 33447 33448 33449 33450 33451 33452 33453 33454 33455 33456 33457 33458 33459 33460 33461 33462 33463 33464 33465 33466 33467 : 33468 33469 33470 33471 33472 printf "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h 33473 33474 33475 33476 33477 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 printf "%s\n" "#define GNULIB_STDIO_SINGLE_THREAD 1" >>confdefs.h 33492 33493 33494 printf "%s\n" "#define USE_UNLOCKED_IO GNULIB_STDIO_SINGLE_THREAD" >>confdefs.h 33495 33496 33497 33498 33499 33500 33501 33502 33503 33504 33505 33506 33507 33508 33509 33510 33511 33512 33513 33514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 33515 printf %s "checking for variable-length arrays... " >&6; } 33516 if test ${ac_cv_c_vararrays+y} 33517 then : 33518 printf %s "(cached) " >&6 33519 else case e in #( 33520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33521 /* end confdefs.h. */ 33522 #ifdef __STDC_NO_VLA__ 33523 defined 33524 #endif 33525 33526 _ACEOF 33527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33528 $EGREP_TRADITIONAL "defined" >/dev/null 2>&1 33529 then : 33530 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' 33531 else case e in #( 33532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33533 /* end confdefs.h. */ 33534 /* Test for VLA support. This test is partly inspired 33535 from examples in the C standard. Use at least two VLA 33536 functions to detect the GCC 3.4.3 bug described in: 33537 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html 33538 */ 33539 #ifdef __STDC_NO_VLA__ 33540 syntax error; 33541 #else 33542 extern int n; 33543 int B[100]; 33544 int fvla (int m, int C[m][m]); 33545 33546 int 33547 simple (int count, int all[static count]) 33548 { 33549 return all[count - 1]; 33550 } 33551 33552 int 33553 fvla (int m, int C[m][m]) 33554 { 33555 typedef int VLA[m][m]; 33556 VLA x; 33557 int D[m]; 33558 static int (*q)[m] = &B; 33559 int (*s)[n] = q; 33560 return C && &x[0][0] == &D[0] && &D[0] == s[0]; 33561 } 33562 #endif 33563 33564 int 33565 main (void) 33566 { 33567 33568 ; 33569 return 0; 33570 } 33571 _ACEOF 33572 if ac_fn_c_try_compile "$LINENO" 33573 then : 33574 ac_cv_c_vararrays=yes 33575 else case e in #( 33576 e) ac_cv_c_vararrays=no ;; 33577 esac 33578 fi 33579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33580 esac 33581 fi 33582 rm -rf conftest* 33583 ;; 33584 esac 33585 fi 33586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 33587 printf "%s\n" "$ac_cv_c_vararrays" >&6; } 33588 if test "$ac_cv_c_vararrays" = yes; then 33589 33590 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h 33591 33592 elif test "$ac_cv_c_vararrays" = no; then 33593 33594 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h 33595 33596 fi 33597 33598 33599 # Check whether --with-packager was given. 33600 if test ${with_packager+y} 33601 then : 33602 withval=$with_packager; case $withval in 33603 yes|no) ;; 33604 *) 33605 printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h 33606 ;; 33607 esac 33608 33609 fi 33610 33611 33612 33613 # Check whether --with-packager-version was given. 33614 if test ${with_packager_version+y} 33615 then : 33616 withval=$with_packager_version; case $withval in 33617 yes|no) ;; 33618 *) 33619 printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h 33620 ;; 33621 esac 33622 33623 fi 33624 33625 33626 33627 # Check whether --with-packager-bug-reports was given. 33628 if test ${with_packager_bug_reports+y} 33629 then : 33630 withval=$with_packager_bug_reports; case $withval in 33631 yes|no) ;; 33632 *) 33633 printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h 33634 ;; 33635 esac 33636 33637 fi 33638 33639 33640 if test "X$with_packager" = "X" && \ 33641 test "X$with_packager_version$with_packager_bug_reports" != "X" 33642 then 33643 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5 33644 fi 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 if case "$host_os" in 33670 mingw*) true ;; 33671 *) test $ac_cv_func_mbsinit = yes ;; 33672 esac \ 33673 && test $ac_cv_func_mbrtowc = yes; then 33674 33675 33676 33677 33678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 33679 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 33680 if test ${gl_cv_func_mbrtowc_incomplete_state+y} 33681 then : 33682 printf %s "(cached) " >&6 33683 else case e in #( 33684 e) 33685 case "$host_os" in 33686 # Guess no on AIX and OSF/1. 33687 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 33688 # Guess yes otherwise. 33689 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 33690 esac 33691 if test $LOCALE_JA != none; then 33692 if test "$cross_compiling" = yes 33693 then : 33694 : 33695 else case e in #( 33696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33697 /* end confdefs.h. */ 33698 33699 #include <locale.h> 33700 #include <string.h> 33701 #include <wchar.h> 33702 int main () 33703 { 33704 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 33705 { 33706 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 33707 mbstate_t state; 33708 wchar_t wc; 33709 33710 memset (&state, '\0', sizeof (mbstate_t)); 33711 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 33712 if (mbsinit (&state)) 33713 return 2; 33714 } 33715 return 0; 33716 } 33717 _ACEOF 33718 if ac_fn_c_try_run "$LINENO" 33719 then : 33720 gl_cv_func_mbrtowc_incomplete_state=yes 33721 else case e in #( 33722 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 33723 esac 33724 fi 33725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33726 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33727 esac 33728 fi 33729 33730 else 33731 if test $LOCALE_FR_UTF8 != none; then 33732 if test "$cross_compiling" = yes 33733 then : 33734 : 33735 else case e in #( 33736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33737 /* end confdefs.h. */ 33738 33739 #include <locale.h> 33740 #include <string.h> 33741 #include <wchar.h> 33742 int main () 33743 { 33744 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 33745 { 33746 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 33747 mbstate_t state; 33748 wchar_t wc; 33749 33750 memset (&state, '\0', sizeof (mbstate_t)); 33751 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 33752 if (mbsinit (&state)) 33753 return 2; 33754 } 33755 return 0; 33756 } 33757 _ACEOF 33758 if ac_fn_c_try_run "$LINENO" 33759 then : 33760 gl_cv_func_mbrtowc_incomplete_state=yes 33761 else case e in #( 33762 e) gl_cv_func_mbrtowc_incomplete_state=no ;; 33763 esac 33764 fi 33765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33766 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33767 esac 33768 fi 33769 33770 fi 33771 fi 33772 ;; 33773 esac 33774 fi 33775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 33776 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 33777 33778 33779 33780 33781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 33782 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 33783 if test ${gl_cv_func_mbrtowc_sanitycheck+y} 33784 then : 33785 printf %s "(cached) " >&6 33786 else case e in #( 33787 e) 33788 case "$host_os" in 33789 # Guess no on Solaris 8. 33790 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 33791 # Guess yes otherwise. 33792 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 33793 esac 33794 if test $LOCALE_ZH_CN != none; then 33795 if test "$cross_compiling" = yes 33796 then : 33797 : 33798 else case e in #( 33799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33800 /* end confdefs.h. */ 33801 33802 #include <locale.h> 33803 #include <stdlib.h> 33804 #include <string.h> 33805 #include <wchar.h> 33806 int main () 33807 { 33808 /* This fails on Solaris 8: 33809 mbrtowc returns 2, and sets wc to 0x00F0. 33810 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 33811 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 33812 { 33813 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 33814 mbstate_t state; 33815 wchar_t wc; 33816 33817 memset (&state, '\0', sizeof (mbstate_t)); 33818 if (mbrtowc (&wc, input + 3, 6, &state) != 4 33819 && mbtowc (&wc, input + 3, 6) == 4) 33820 return 2; 33821 } 33822 return 0; 33823 } 33824 _ACEOF 33825 if ac_fn_c_try_run "$LINENO" 33826 then : 33827 gl_cv_func_mbrtowc_sanitycheck=yes 33828 else case e in #( 33829 e) gl_cv_func_mbrtowc_sanitycheck=no ;; 33830 esac 33831 fi 33832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33833 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33834 esac 33835 fi 33836 33837 fi 33838 ;; 33839 esac 33840 fi 33841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 33842 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 33843 33844 REPLACE_MBSTATE_T=0 33845 case "$gl_cv_func_mbrtowc_incomplete_state" in 33846 *yes) ;; 33847 *) REPLACE_MBSTATE_T=1 ;; 33848 esac 33849 case "$gl_cv_func_mbrtowc_sanitycheck" in 33850 *yes) ;; 33851 *) REPLACE_MBSTATE_T=1 ;; 33852 esac 33853 else 33854 REPLACE_MBSTATE_T=1 33855 fi 33856 33857 33858 33859 if test $ac_cv_func_wcrtomb = no; then 33860 HAVE_WCRTOMB=0 33861 ac_fn_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " 33862 #include <wchar.h> 33863 33864 " "$ac_c_undeclared_builtin_options" "CFLAGS" 33865 if test "x$ac_cv_have_decl_wcrtomb" = xyes 33866 then : 33867 ac_have_decl=1 33868 else case e in #( 33869 e) ac_have_decl=0 ;; 33870 esac 33871 fi 33872 printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h 33873 33874 if test $ac_cv_have_decl_wcrtomb = yes; then 33875 REPLACE_WCRTOMB=1 33876 fi 33877 else 33878 if test $REPLACE_WCRTOMB = 0; then 33879 33880 33881 33882 33883 33884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5 33885 printf %s "checking whether wcrtomb works in the C locale... " >&6; } 33886 if test ${gl_cv_func_wcrtomb_works+y} 33887 then : 33888 printf %s "(cached) " >&6 33889 else case e in #( 33890 e) if test "$cross_compiling" = yes 33891 then : 33892 case "$host_os" in 33893 # Guess no on Android. 33894 linux*-android*) gl_cv_func_wcrtomb_works="guessing no";; 33895 # Guess yes otherwise. 33896 *) gl_cv_func_wcrtomb_works="guessing yes";; 33897 esac 33898 33899 else case e in #( 33900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33901 /* end confdefs.h. */ 33902 33903 #include <string.h> 33904 #include <stdlib.h> 33905 #include <wchar.h> 33906 int main () 33907 { 33908 mbstate_t state; 33909 char out[64]; 33910 int count; 33911 memset (&state, 0, sizeof (state)); 33912 out[0] = 'x'; 33913 count = wcrtomb (out, L'a', &state); 33914 return !(count == 1 && out[0] == 'a'); 33915 } 33916 _ACEOF 33917 if ac_fn_c_try_run "$LINENO" 33918 then : 33919 gl_cv_func_wcrtomb_works=yes 33920 else case e in #( 33921 e) gl_cv_func_wcrtomb_works=no ;; 33922 esac 33923 fi 33924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33925 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 33926 esac 33927 fi 33928 33929 ;; 33930 esac 33931 fi 33932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5 33933 printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; } 33934 case "$gl_cv_func_wcrtomb_works" in 33935 *yes) ;; 33936 *) 33937 printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h 33938 33939 REPLACE_WCRTOMB=1 ;; 33940 esac 33941 fi 33942 if test $REPLACE_WCRTOMB = 0; then 33943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 33944 printf %s "checking whether wcrtomb return value is correct... " >&6; } 33945 if test ${gl_cv_func_wcrtomb_retval+y} 33946 then : 33947 printf %s "(cached) " >&6 33948 else case e in #( 33949 e) 33950 case "$host_os" in 33951 # Guess no on AIX 4, OSF/1, Solaris, native Windows. 33952 aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;; 33953 # Guess yes otherwise. 33954 *) gl_cv_func_wcrtomb_retval="guessing yes" ;; 33955 esac 33956 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 33957 if test "$cross_compiling" = yes 33958 then : 33959 : 33960 else case e in #( 33961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33962 /* end confdefs.h. */ 33963 33964 #include <locale.h> 33965 #include <string.h> 33966 #include <wchar.h> 33967 #include <stdlib.h> 33968 int main () 33969 { 33970 int result = 0; 33971 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 33972 { 33973 if (wcrtomb (NULL, 0, NULL) != 1) 33974 result |= 1; 33975 } 33976 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 33977 { 33978 if (wcrtomb (NULL, 0, NULL) != 1) 33979 result |= 2; 33980 { 33981 wchar_t wc = (wchar_t) 0xBADFACE; 33982 if (mbtowc (&wc, "\303\274", 2) == 2) 33983 if (wcrtomb (NULL, wc, NULL) != 1) 33984 result |= 2; 33985 } 33986 } 33987 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 33988 { 33989 if (wcrtomb (NULL, 0, NULL) != 1) 33990 result |= 4; 33991 } 33992 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 33993 { 33994 if (wcrtomb (NULL, 0, NULL) != 1) 33995 result |= 8; 33996 } 33997 return result; 33998 } 33999 _ACEOF 34000 if ac_fn_c_try_run "$LINENO" 34001 then : 34002 gl_cv_func_wcrtomb_retval=yes 34003 else case e in #( 34004 e) gl_cv_func_wcrtomb_retval=no ;; 34005 esac 34006 fi 34007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34008 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 34009 esac 34010 fi 34011 34012 fi 34013 ;; 34014 esac 34015 fi 34016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 34017 printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; } 34018 case "$gl_cv_func_wcrtomb_retval" in 34019 *yes) ;; 34020 *) 34021 printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h 34022 34023 REPLACE_WCRTOMB=1 ;; 34024 esac 34025 fi 34026 fi 34027 34028 34029 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 34030 GL_COND_OBJ_WCRTOMB_TRUE= 34031 GL_COND_OBJ_WCRTOMB_FALSE='#' 34032 else 34033 GL_COND_OBJ_WCRTOMB_TRUE='#' 34034 GL_COND_OBJ_WCRTOMB_FALSE= 34035 fi 34036 : 34037 if test -z "${GL_COND_OBJ_WCRTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCRTOMB_FALSE}"; then 34038 GL_COND_OBJ_WCRTOMB_TRUE='#' 34039 GL_COND_OBJ_WCRTOMB_FALSE='#' 34040 fi 34041 34042 if test -z "$GL_COND_OBJ_WCRTOMB_TRUE"; then : 34043 34044 34045 : 34046 34047 34048 fi 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 34062 34063 GL_GNULIB_WCRTOMB=1 34064 34065 34066 34067 34068 34069 printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h 34070 34071 34072 34073 34074 34075 34076 34077 if test $ac_cv_func_wctob = no; then 34078 HAVE_WCTOB=0 34079 HAVE_DECL_WCTOB=0 34080 else 34081 HAVE_WCTOB=1 34082 34083 34084 34085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5 34086 printf %s "checking whether wctob works... " >&6; } 34087 if test ${gl_cv_func_wctob_works+y} 34088 then : 34089 printf %s "(cached) " >&6 34090 else case e in #( 34091 e) 34092 case "$host_os" in 34093 # Guess no on Solaris <= 9 and Cygwin. 34094 solaris2.[1-9] | solaris2.[1-9].* | cygwin*) 34095 gl_cv_func_wctob_works="guessing no" ;; 34096 # Guess no on native Windows. 34097 mingw*) 34098 gl_cv_func_wctob_works="guessing no" ;; 34099 # Guess yes otherwise. 34100 *) gl_cv_func_wctob_works="guessing yes" ;; 34101 esac 34102 case "$host_os" in 34103 cygwin*) 34104 if test "$cross_compiling" = yes 34105 then : 34106 : 34107 else case e in #( 34108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34109 /* end confdefs.h. */ 34110 34111 #include <locale.h> 34112 #include <wchar.h> 34113 34114 register long global __asm__ ("%ebx"); 34115 34116 int main () 34117 { 34118 setlocale (LC_ALL, "en_US.UTF-8"); 34119 34120 global = 0x12345678; 34121 if (wctob (0x00FC) != -1) 34122 return 1; 34123 if (global != 0x12345678) 34124 return 2; 34125 return 0; 34126 } 34127 _ACEOF 34128 if ac_fn_c_try_run "$LINENO" 34129 then : 34130 : 34131 else case e in #( 34132 e) gl_cv_func_wctob_works=no ;; 34133 esac 34134 fi 34135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34136 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 34137 esac 34138 fi 34139 34140 ;; 34141 esac 34142 if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then 34143 if test "$cross_compiling" = yes 34144 then : 34145 : 34146 else case e in #( 34147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34148 /* end confdefs.h. */ 34149 34150 #include <locale.h> 34151 #include <stdlib.h> 34152 #include <wchar.h> 34153 int main () 34154 { 34155 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 34156 { 34157 wchar_t wc; 34158 34159 if (mbtowc (&wc, "\374", 1) == 1) 34160 if (wctob (wc) != (unsigned char) '\374') 34161 return 1; 34162 } 34163 return 0; 34164 } 34165 _ACEOF 34166 if ac_fn_c_try_run "$LINENO" 34167 then : 34168 gl_cv_func_wctob_works=yes 34169 else case e in #( 34170 e) gl_cv_func_wctob_works=no ;; 34171 esac 34172 fi 34173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34174 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 34175 esac 34176 fi 34177 34178 fi 34179 ;; 34180 esac 34181 fi 34182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5 34183 printf "%s\n" "$gl_cv_func_wctob_works" >&6; } 34184 case "$gl_cv_func_wctob_works" in 34185 *yes) ;; 34186 *) REPLACE_WCTOB=1 ;; 34187 esac 34188 if test $REPLACE_WCTOB = 0; then 34189 34190 ac_fn_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" " 34191 #include <wchar.h> 34192 34193 " "$ac_c_undeclared_builtin_options" "CFLAGS" 34194 if test "x$ac_cv_have_decl_wctob" = xyes 34195 then : 34196 ac_have_decl=1 34197 else case e in #( 34198 e) ac_have_decl=0 ;; 34199 esac 34200 fi 34201 printf "%s\n" "#define HAVE_DECL_WCTOB $ac_have_decl" >>confdefs.h 34202 34203 if test $ac_cv_have_decl_wctob != yes; then 34204 HAVE_DECL_WCTOB=0 34205 fi 34206 fi 34207 fi 34208 34209 34210 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then 34211 GL_COND_OBJ_WCTOB_TRUE= 34212 GL_COND_OBJ_WCTOB_FALSE='#' 34213 else 34214 GL_COND_OBJ_WCTOB_TRUE='#' 34215 GL_COND_OBJ_WCTOB_FALSE= 34216 fi 34217 : 34218 if test -z "${GL_COND_OBJ_WCTOB_TRUE}" && test -z "${GL_COND_OBJ_WCTOB_FALSE}"; then 34219 GL_COND_OBJ_WCTOB_TRUE='#' 34220 GL_COND_OBJ_WCTOB_FALSE='#' 34221 fi 34222 34223 if test -z "$GL_COND_OBJ_WCTOB_TRUE"; then : 34224 34225 34226 : 34227 34228 34229 fi 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 GL_GNULIB_WCTOB=1 34245 34246 34247 34248 34249 34250 printf "%s\n" "#define GNULIB_TEST_WCTOB 1" >>confdefs.h 34251 34252 34253 34254 34255 34256 34257 if false; then 34258 REPLACE_WCTOMB=1 34259 fi 34260 34261 34262 if test $REPLACE_WCTOMB = 1; then 34263 GL_COND_OBJ_WCTOMB_TRUE= 34264 GL_COND_OBJ_WCTOMB_FALSE='#' 34265 else 34266 GL_COND_OBJ_WCTOMB_TRUE='#' 34267 GL_COND_OBJ_WCTOMB_FALSE= 34268 fi 34269 : 34270 if test -z "${GL_COND_OBJ_WCTOMB_TRUE}" && test -z "${GL_COND_OBJ_WCTOMB_FALSE}"; then 34271 GL_COND_OBJ_WCTOMB_TRUE='#' 34272 GL_COND_OBJ_WCTOMB_FALSE='#' 34273 fi 34274 34275 if test -z "$GL_COND_OBJ_WCTOMB_TRUE"; then : 34276 34277 34278 : 34279 34280 34281 fi 34282 34283 34284 34285 34286 34287 34288 34289 34290 34291 GL_GNULIB_WCTOMB=1 34292 34293 34294 34295 34296 34297 printf "%s\n" "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h 34298 34299 34300 34301 34302 34303 34304 34305 34306 34307 34308 34309 34310 if case "$host_os" in mingw*) true;; *) false;; esac; then 34311 GL_COND_OBJ_WINDOWS_MUTEX_TRUE= 34312 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#' 34313 else 34314 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#' 34315 GL_COND_OBJ_WINDOWS_MUTEX_FALSE= 34316 fi 34317 : 34318 if test -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then 34319 GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#' 34320 GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#' 34321 fi 34322 34323 34324 34325 if case "$host_os" in mingw*) true;; *) false;; esac; then 34326 GL_COND_OBJ_WINDOWS_ONCE_TRUE= 34327 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#' 34328 else 34329 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#' 34330 GL_COND_OBJ_WINDOWS_ONCE_FALSE= 34331 fi 34332 : 34333 if test -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then 34334 GL_COND_OBJ_WINDOWS_ONCE_TRUE='#' 34335 GL_COND_OBJ_WINDOWS_ONCE_FALSE='#' 34336 fi 34337 34338 34339 34340 if case "$host_os" in mingw*) true;; *) false;; esac; then 34341 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE= 34342 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#' 34343 else 34344 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#' 34345 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE= 34346 fi 34347 : 34348 if test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then 34349 GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#' 34350 GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#' 34351 fi 34352 34353 34354 34355 if case "$host_os" in mingw*) true;; *) false;; esac; then 34356 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE= 34357 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#' 34358 else 34359 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#' 34360 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE= 34361 fi 34362 : 34363 if test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then 34364 GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#' 34365 GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#' 34366 fi 34367 34368 : 34369 34370 34371 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h 34372 34373 34374 34375 34376 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h 34377 34378 34379 # End of code from modules 34380 34381 34382 34383 34384 34385 34386 34387 34388 34389 34390 34391 gltests_libdeps= 34392 gltests_ltlibdeps= 34393 34394 34395 34396 34397 34398 34399 34400 34401 34402 34403 34404 34405 34406 34407 gl_source_base='gnulib-tests' 34408 gl_source_base_prefix= 34409 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 34410 34411 gl_module_indicator_condition=$gltests_WITNESS 34412 34413 34414 34415 if test "$ac_cv_header_winsock2_h" = yes; then 34416 GL_COND_OBJ_ACCEPT_TRUE= 34417 GL_COND_OBJ_ACCEPT_FALSE='#' 34418 else 34419 GL_COND_OBJ_ACCEPT_TRUE='#' 34420 GL_COND_OBJ_ACCEPT_FALSE= 34421 fi 34422 : 34423 if test -z "${GL_COND_OBJ_ACCEPT_TRUE}" && test -z "${GL_COND_OBJ_ACCEPT_FALSE}"; then 34424 GL_COND_OBJ_ACCEPT_TRUE='#' 34425 GL_COND_OBJ_ACCEPT_FALSE='#' 34426 fi 34427 34428 34429 34430 34431 34432 34433 34434 34435 34436 34437 if test "$GL_GNULIB_ACCEPT" != 1; then 34438 if test "$GL_GNULIB_ACCEPT" = 0; then 34439 GL_GNULIB_ACCEPT=$gl_module_indicator_condition 34440 else 34441 GL_GNULIB_ACCEPT="($GL_GNULIB_ACCEPT || $gl_module_indicator_condition)" 34442 fi 34443 fi 34444 34445 34446 34447 34448 34449 printf "%s\n" "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h 34450 34451 34452 34453 34454 34455 34456 34457 34458 34459 34460 34461 34462 if test "$ac_cv_header_winsock2_h" = yes; then 34463 GL_COND_OBJ_BIND_TRUE= 34464 GL_COND_OBJ_BIND_FALSE='#' 34465 else 34466 GL_COND_OBJ_BIND_TRUE='#' 34467 GL_COND_OBJ_BIND_FALSE= 34468 fi 34469 : 34470 if test -z "${GL_COND_OBJ_BIND_TRUE}" && test -z "${GL_COND_OBJ_BIND_FALSE}"; then 34471 GL_COND_OBJ_BIND_TRUE='#' 34472 GL_COND_OBJ_BIND_FALSE='#' 34473 fi 34474 34475 34476 34477 34478 34479 34480 34481 34482 34483 34484 if test "$GL_GNULIB_BIND" != 1; then 34485 if test "$GL_GNULIB_BIND" = 0; then 34486 GL_GNULIB_BIND=$gl_module_indicator_condition 34487 else 34488 GL_GNULIB_BIND="($GL_GNULIB_BIND || $gl_module_indicator_condition)" 34489 fi 34490 fi 34491 34492 34493 34494 34495 34496 printf "%s\n" "#define GNULIB_TEST_BIND 1" >>confdefs.h 34497 34498 34499 34500 34501 34502 34503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 34504 printf %s "checking for a traditional french locale... " >&6; } 34505 if test ${gt_cv_locale_fr+y} 34506 then : 34507 printf %s "(cached) " >&6 34508 else case e in #( 34509 e) 34510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34511 /* end confdefs.h. */ 34512 34513 #include <locale.h> 34514 #include <time.h> 34515 #if HAVE_LANGINFO_CODESET 34516 # include <langinfo.h> 34517 #endif 34518 #include <stdlib.h> 34519 #include <string.h> 34520 struct tm t; 34521 char buf[16]; 34522 int main () { 34523 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 34524 imitates locale dependent behaviour by looking at the environment 34525 variables, and all locales use the UTF-8 encoding. */ 34526 #if defined __BEOS__ || defined __HAIKU__ 34527 return 1; 34528 #else 34529 /* Check whether the given locale name is recognized by the system. */ 34530 # if defined _WIN32 && !defined __CYGWIN__ 34531 /* On native Windows, setlocale(category, "") looks at the system settings, 34532 not at the environment variables. Also, when an encoding suffix such 34533 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 34534 category of the locale to "C". */ 34535 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 34536 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 34537 return 1; 34538 # else 34539 if (setlocale (LC_ALL, "") == NULL) return 1; 34540 # endif 34541 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 34542 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 34543 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 34544 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 34545 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 34546 some unit tests fail. 34547 On MirBSD 10, when an unsupported locale is specified, setlocale() 34548 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 34549 # if HAVE_LANGINFO_CODESET 34550 { 34551 const char *cs = nl_langinfo (CODESET); 34552 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 34553 || strcmp (cs, "UTF-8") == 0) 34554 return 1; 34555 } 34556 # endif 34557 # ifdef __CYGWIN__ 34558 /* On Cygwin, avoid locale names without encoding suffix, because the 34559 locale_charset() function relies on the encoding suffix. Note that 34560 LC_ALL is set on the command line. */ 34561 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 34562 # endif 34563 /* Check whether in the abbreviation of the second month, the second 34564 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 34565 one byte long. This excludes the UTF-8 encoding. */ 34566 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 34567 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 34568 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 34569 /* Check whether the decimal separator is a comma. 34570 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 34571 are nl_langinfo(RADIXCHAR) are both ".". */ 34572 if (localeconv () ->decimal_point[0] != ',') return 1; 34573 # endif 34574 return 0; 34575 #endif 34576 } 34577 34578 _ACEOF 34579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7574 34580 (eval $ac_link) 2>&5 7575 34581 ac_status=$? 7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7579 (eval $ac_try) 2>&5 34582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34583 test $ac_status = 0; } && test -s conftest$ac_exeext; then 34584 case "$host_os" in 34585 # Handle native Windows specially, because there setlocale() interprets 34586 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 34587 # "fr" or "fra" as "French" or "French_France.1252", 34588 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 34589 # "ja" as "Japanese" or "Japanese_Japan.932", 34590 # and similar. 34591 mingw*) 34592 # Test for the native Windows locale name. 34593 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34594 gt_cv_locale_fr=French_France.1252 34595 else 34596 # None found. 34597 gt_cv_locale_fr=none 34598 fi 34599 ;; 34600 *) 34601 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 34602 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 34603 # configure script would override the LC_ALL setting. Likewise for 34604 # LC_CTYPE, which is also set at the beginning of the configure script. 34605 # Test for the usual locale name. 34606 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34607 gt_cv_locale_fr=fr_FR 34608 else 34609 # Test for the locale name with explicit encoding suffix. 34610 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34611 gt_cv_locale_fr=fr_FR.ISO-8859-1 34612 else 34613 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 34614 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34615 gt_cv_locale_fr=fr_FR.ISO8859-1 34616 else 34617 # Test for the HP-UX locale name. 34618 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34619 gt_cv_locale_fr=fr_FR.iso88591 34620 else 34621 # Test for the Solaris 7 locale name. 34622 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34623 gt_cv_locale_fr=fr 34624 else 34625 # None found. 34626 gt_cv_locale_fr=none 34627 fi 34628 fi 34629 fi 34630 fi 34631 fi 34632 ;; 34633 esac 34634 fi 34635 rm -fr conftest* 34636 ;; 34637 esac 34638 fi 34639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 34640 printf "%s\n" "$gt_cv_locale_fr" >&6; } 34641 LOCALE_FR=$gt_cv_locale_fr 34642 34643 34644 34645 34646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 34647 printf %s "checking for a french Unicode locale... " >&6; } 34648 if test ${gt_cv_locale_fr_utf8+y} 34649 then : 34650 printf %s "(cached) " >&6 34651 else case e in #( 34652 e) 34653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34654 /* end confdefs.h. */ 34655 34656 #include <locale.h> 34657 #include <time.h> 34658 #if HAVE_LANGINFO_CODESET 34659 # include <langinfo.h> 34660 #endif 34661 #include <stdlib.h> 34662 #include <string.h> 34663 struct tm t; 34664 char buf[16]; 34665 int main () { 34666 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 34667 imitates locale dependent behaviour by looking at the environment 34668 variables, and all locales use the UTF-8 encoding. */ 34669 #if !(defined __BEOS__ || defined __HAIKU__) 34670 /* Check whether the given locale name is recognized by the system. */ 34671 # if defined _WIN32 && !defined __CYGWIN__ 34672 /* On native Windows, setlocale(category, "") looks at the system settings, 34673 not at the environment variables. Also, when an encoding suffix such 34674 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 34675 category of the locale to "C". */ 34676 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 34677 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 34678 return 1; 34679 # else 34680 if (setlocale (LC_ALL, "") == NULL) return 1; 34681 # endif 34682 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 34683 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 34684 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 34685 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 34686 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 34687 some unit tests fail. */ 34688 # if HAVE_LANGINFO_CODESET 34689 { 34690 const char *cs = nl_langinfo (CODESET); 34691 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 34692 return 1; 34693 } 34694 # endif 34695 # ifdef __CYGWIN__ 34696 /* On Cygwin, avoid locale names without encoding suffix, because the 34697 locale_charset() function relies on the encoding suffix. Note that 34698 LC_ALL is set on the command line. */ 34699 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 34700 # endif 34701 /* Check whether in the abbreviation of the second month, the second 34702 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 34703 two bytes long, with UTF-8 encoding. */ 34704 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 34705 if (strftime (buf, sizeof (buf), "%b", &t) < 4 34706 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 34707 return 1; 34708 #endif 34709 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 34710 /* Check whether the decimal separator is a comma. 34711 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 34712 are nl_langinfo(RADIXCHAR) are both ".". */ 34713 if (localeconv () ->decimal_point[0] != ',') return 1; 34714 #endif 34715 return 0; 34716 } 34717 34718 _ACEOF 34719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 34720 (eval $ac_link) 2>&5 7580 34721 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); }; }; then 7583 ac_cv_func_mmap_fixed_mapped=yes 34722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34723 test $ac_status = 0; } && test -s conftest$ac_exeext; then 34724 case "$host_os" in 34725 # Handle native Windows specially, because there setlocale() interprets 34726 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 34727 # "fr" or "fra" as "French" or "French_France.1252", 34728 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 34729 # "ja" as "Japanese" or "Japanese_Japan.932", 34730 # and similar. 34731 mingw*) 34732 # Test for the hypothetical native Windows locale name. 34733 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34734 gt_cv_locale_fr_utf8=French_France.65001 34735 else 34736 # None found. 34737 gt_cv_locale_fr_utf8=none 34738 fi 34739 ;; 34740 *) 34741 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 34742 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 34743 # configure script would override the LC_ALL setting. Likewise for 34744 # LC_CTYPE, which is also set at the beginning of the configure script. 34745 # Test for the usual locale name. 34746 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34747 gt_cv_locale_fr_utf8=fr_FR 34748 else 34749 # Test for the locale name with explicit encoding suffix. 34750 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34751 gt_cv_locale_fr_utf8=fr_FR.UTF-8 34752 else 34753 # Test for the Solaris 7 locale name. 34754 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34755 gt_cv_locale_fr_utf8=fr.UTF-8 34756 else 34757 # None found. 34758 gt_cv_locale_fr_utf8=none 34759 fi 34760 fi 34761 fi 34762 ;; 34763 esac 34764 fi 34765 rm -fr conftest* 34766 ;; 34767 esac 34768 fi 34769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 34770 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 34771 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 34772 34773 34774 34775 34776 34777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 34778 printf %s "checking for a traditional french locale... " >&6; } 34779 if test ${gt_cv_locale_fr+y} 34780 then : 34781 printf %s "(cached) " >&6 34782 else case e in #( 34783 e) 34784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34785 /* end confdefs.h. */ 34786 34787 #include <locale.h> 34788 #include <time.h> 34789 #if HAVE_LANGINFO_CODESET 34790 # include <langinfo.h> 34791 #endif 34792 #include <stdlib.h> 34793 #include <string.h> 34794 struct tm t; 34795 char buf[16]; 34796 int main () { 34797 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 34798 imitates locale dependent behaviour by looking at the environment 34799 variables, and all locales use the UTF-8 encoding. */ 34800 #if defined __BEOS__ || defined __HAIKU__ 34801 return 1; 34802 #else 34803 /* Check whether the given locale name is recognized by the system. */ 34804 # if defined _WIN32 && !defined __CYGWIN__ 34805 /* On native Windows, setlocale(category, "") looks at the system settings, 34806 not at the environment variables. Also, when an encoding suffix such 34807 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 34808 category of the locale to "C". */ 34809 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 34810 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 34811 return 1; 34812 # else 34813 if (setlocale (LC_ALL, "") == NULL) return 1; 34814 # endif 34815 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 34816 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 34817 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 34818 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 34819 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 34820 some unit tests fail. 34821 On MirBSD 10, when an unsupported locale is specified, setlocale() 34822 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 34823 # if HAVE_LANGINFO_CODESET 34824 { 34825 const char *cs = nl_langinfo (CODESET); 34826 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 34827 || strcmp (cs, "UTF-8") == 0) 34828 return 1; 34829 } 34830 # endif 34831 # ifdef __CYGWIN__ 34832 /* On Cygwin, avoid locale names without encoding suffix, because the 34833 locale_charset() function relies on the encoding suffix. Note that 34834 LC_ALL is set on the command line. */ 34835 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 34836 # endif 34837 /* Check whether in the abbreviation of the second month, the second 34838 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 34839 one byte long. This excludes the UTF-8 encoding. */ 34840 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 34841 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 34842 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 34843 /* Check whether the decimal separator is a comma. 34844 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 34845 are nl_langinfo(RADIXCHAR) are both ".". */ 34846 if (localeconv () ->decimal_point[0] != ',') return 1; 34847 # endif 34848 return 0; 34849 #endif 34850 } 34851 34852 _ACEOF 34853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 34854 (eval $ac_link) 2>&5 34855 ac_status=$? 34856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34857 test $ac_status = 0; } && test -s conftest$ac_exeext; then 34858 case "$host_os" in 34859 # Handle native Windows specially, because there setlocale() interprets 34860 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 34861 # "fr" or "fra" as "French" or "French_France.1252", 34862 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 34863 # "ja" as "Japanese" or "Japanese_Japan.932", 34864 # and similar. 34865 mingw*) 34866 # Test for the native Windows locale name. 34867 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34868 gt_cv_locale_fr=French_France.1252 34869 else 34870 # None found. 34871 gt_cv_locale_fr=none 34872 fi 34873 ;; 34874 *) 34875 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 34876 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 34877 # configure script would override the LC_ALL setting. Likewise for 34878 # LC_CTYPE, which is also set at the beginning of the configure script. 34879 # Test for the usual locale name. 34880 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34881 gt_cv_locale_fr=fr_FR 34882 else 34883 # Test for the locale name with explicit encoding suffix. 34884 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34885 gt_cv_locale_fr=fr_FR.ISO-8859-1 34886 else 34887 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 34888 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34889 gt_cv_locale_fr=fr_FR.ISO8859-1 34890 else 34891 # Test for the HP-UX locale name. 34892 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34893 gt_cv_locale_fr=fr_FR.iso88591 34894 else 34895 # Test for the Solaris 7 locale name. 34896 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 34897 gt_cv_locale_fr=fr 34898 else 34899 # None found. 34900 gt_cv_locale_fr=none 34901 fi 34902 fi 34903 fi 34904 fi 34905 fi 34906 ;; 34907 esac 34908 fi 34909 rm -fr conftest* 34910 ;; 34911 esac 34912 fi 34913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 34914 printf "%s\n" "$gt_cv_locale_fr" >&6; } 34915 LOCALE_FR=$gt_cv_locale_fr 34916 34917 34918 34919 34920 34921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5 34922 printf %s "checking for a turkish Unicode locale... " >&6; } 34923 if test ${gt_cv_locale_tr_utf8+y} 34924 then : 34925 printf %s "(cached) " >&6 34926 else case e in #( 34927 e) 34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34929 /* end confdefs.h. */ 34930 34931 #include <locale.h> 34932 #include <time.h> 34933 #if HAVE_LANGINFO_CODESET 34934 # include <langinfo.h> 34935 #endif 34936 #include <stdlib.h> 34937 #include <string.h> 34938 #include <wctype.h> 34939 struct tm t; 34940 char buf[16]; 34941 int main () { 34942 /* On BeOS, locales are not implemented in libc. Rather, libintl 34943 imitates locale dependent behaviour by looking at the environment 34944 variables, and all locales use the UTF-8 encoding. But BeOS does not 34945 implement the Turkish upper-/lowercase mappings. Therefore, let this 34946 program return 1 on BeOS. */ 34947 /* Check whether the given locale name is recognized by the system. */ 34948 #if defined _WIN32 && !defined __CYGWIN__ 34949 /* On native Windows, setlocale(category, "") looks at the system settings, 34950 not at the environment variables. Also, when an encoding suffix such 34951 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 34952 category of the locale to "C". */ 34953 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 34954 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 34955 return 1; 34956 #else 34957 if (setlocale (LC_ALL, "") == NULL) return 1; 34958 #endif 34959 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 34960 On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) 34961 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 34962 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 34963 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 34964 some unit tests fail. */ 34965 #if HAVE_LANGINFO_CODESET 34966 { 34967 const char *cs = nl_langinfo (CODESET); 34968 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 34969 return 1; 34970 } 34971 #endif 34972 #ifdef __CYGWIN__ 34973 /* On Cygwin, avoid locale names without encoding suffix, because the 34974 locale_charset() function relies on the encoding suffix. Note that 34975 LC_ALL is set on the command line. */ 34976 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 34977 #endif 34978 /* Check whether in the abbreviation of the eighth month, the second 34979 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is 34980 two bytes long, with UTF-8 encoding. */ 34981 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19; 34982 if (strftime (buf, sizeof (buf), "%b", &t) < 4 34983 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f) 34984 return 1; 34985 /* Check whether the upper-/lowercase mappings are as expected for 34986 Turkish. */ 34987 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' 34988 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) 34989 return 1; 34990 return 0; 34991 } 34992 34993 _ACEOF 34994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 34995 (eval $ac_link) 2>&5 34996 ac_status=$? 34997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34998 test $ac_status = 0; } && test -s conftest$ac_exeext; then 34999 case "$host_os" in 35000 # Handle native Windows specially, because there setlocale() interprets 35001 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 35002 # "fr" or "fra" as "French" or "French_France.1252", 35003 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 35004 # "ja" as "Japanese" or "Japanese_Japan.932", 35005 # and similar. 35006 mingw*) 35007 # Test for the hypothetical native Windows locale name. 35008 if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35009 gt_cv_locale_tr_utf8=Turkish_Turkey.65001 35010 else 35011 # None found. 35012 gt_cv_locale_tr_utf8=none 35013 fi 35014 ;; 35015 *) 35016 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 35017 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 35018 # configure script would override the LC_ALL setting. Likewise for 35019 # LC_CTYPE, which is also set at the beginning of the configure script. 35020 # Test for the usual locale name. 35021 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35022 gt_cv_locale_tr_utf8=tr_TR 35023 else 35024 # Test for the locale name with explicit encoding suffix. 35025 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35026 gt_cv_locale_tr_utf8=tr_TR.UTF-8 35027 else 35028 # Test for the Solaris 7 locale name. 35029 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35030 gt_cv_locale_tr_utf8=tr.UTF-8 35031 else 35032 # None found. 35033 gt_cv_locale_tr_utf8=none 35034 fi 35035 fi 35036 fi 35037 ;; 35038 esac 35039 else 35040 gt_cv_locale_tr_utf8=none 35041 fi 35042 rm -fr conftest* 35043 ;; 35044 esac 35045 fi 35046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5 35047 printf "%s\n" "$gt_cv_locale_tr_utf8" >&6; } 35048 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8 35049 35050 35051 35052 35053 35054 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir" 35055 if test "x$ac_cv_func_closedir" = xyes 35056 then : 35057 printf "%s\n" "#define HAVE_CLOSEDIR 1" >>confdefs.h 35058 35059 fi 35060 35061 if test $ac_cv_func_closedir = no; then 35062 HAVE_CLOSEDIR=0 35063 fi 35064 35065 case $host_os,$HAVE_CLOSEDIR in 35066 os2*,1) 35067 REPLACE_CLOSEDIR=1;; 35068 esac 35069 35070 35071 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then 35072 GL_COND_OBJ_CLOSEDIR_TRUE= 35073 GL_COND_OBJ_CLOSEDIR_FALSE='#' 7584 35074 else 7585 echo "$as_me: program exited with status $ac_status" >&5 7586 echo "$as_me: failed program was:" >&5 7587 sed 's/^/| /' conftest.$ac_ext >&5 7588 7589 ( exit $ac_status ) 7590 ac_cv_func_mmap_fixed_mapped=no 7591 fi 7592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7593 fi 7594 fi 7595 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 7596 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 7597 if test $ac_cv_func_mmap_fixed_mapped = yes; then 7598 7599 cat >>confdefs.h <<\_ACEOF 7600 #define HAVE_MMAP 1 7601 _ACEOF 7602 7603 fi 7604 rm -f conftest.mmap 7605 7606 7607 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 7608 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 7609 if test "${ac_cv_gnu_library_2_1+set}" = set; then 7610 echo $ECHO_N "(cached) $ECHO_C" >&6 35075 GL_COND_OBJ_CLOSEDIR_TRUE='#' 35076 GL_COND_OBJ_CLOSEDIR_FALSE= 35077 fi 35078 : 35079 if test -z "${GL_COND_OBJ_CLOSEDIR_TRUE}" && test -z "${GL_COND_OBJ_CLOSEDIR_FALSE}"; then 35080 GL_COND_OBJ_CLOSEDIR_TRUE='#' 35081 GL_COND_OBJ_CLOSEDIR_FALSE='#' 35082 fi 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 35093 if test "$GL_GNULIB_CLOSEDIR" != 1; then 35094 if test "$GL_GNULIB_CLOSEDIR" = 0; then 35095 GL_GNULIB_CLOSEDIR=$gl_module_indicator_condition 35096 else 35097 GL_GNULIB_CLOSEDIR="($GL_GNULIB_CLOSEDIR || $gl_module_indicator_condition)" 35098 fi 35099 fi 35100 35101 35102 35103 35104 35105 printf "%s\n" "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h 35106 35107 35108 35109 35110 35111 if test "$ac_cv_header_winsock2_h" = yes; then 35112 GL_COND_OBJ_CONNECT_TRUE= 35113 GL_COND_OBJ_CONNECT_FALSE='#' 7611 35114 else 7612 cat >conftest.$ac_ext <<_ACEOF 7613 /* confdefs.h. */ 7614 _ACEOF 7615 cat confdefs.h >>conftest.$ac_ext 7616 cat >>conftest.$ac_ext <<_ACEOF 35115 GL_COND_OBJ_CONNECT_TRUE='#' 35116 GL_COND_OBJ_CONNECT_FALSE= 35117 fi 35118 : 35119 if test -z "${GL_COND_OBJ_CONNECT_TRUE}" && test -z "${GL_COND_OBJ_CONNECT_FALSE}"; then 35120 GL_COND_OBJ_CONNECT_TRUE='#' 35121 GL_COND_OBJ_CONNECT_FALSE='#' 35122 fi 35123 35124 35125 35126 35127 35128 35129 35130 35131 35132 35133 if test "$GL_GNULIB_CONNECT" != 1; then 35134 if test "$GL_GNULIB_CONNECT" = 0; then 35135 GL_GNULIB_CONNECT=$gl_module_indicator_condition 35136 else 35137 GL_GNULIB_CONNECT="($GL_GNULIB_CONNECT || $gl_module_indicator_condition)" 35138 fi 35139 fi 35140 35141 35142 35143 35144 35145 printf "%s\n" "#define GNULIB_TEST_CONNECT 1" >>confdefs.h 35146 35147 35148 35149 35150 35151 35152 35153 35154 35155 35156 35157 35158 35159 35160 35161 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" 35162 if test "x$ac_cv_func_dirfd" = xyes 35163 then : 35164 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h 35165 35166 fi 35167 35168 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 35169 #include <dirent.h> 35170 " "$ac_c_undeclared_builtin_options" "CFLAGS" 35171 if test "x$ac_cv_have_decl_dirfd" = xyes 35172 then : 35173 ac_have_decl=1 35174 else case e in #( 35175 e) ac_have_decl=0 ;; 35176 esac 35177 fi 35178 printf "%s\n" "#define HAVE_DECL_DIRFD $ac_have_decl" >>confdefs.h 35179 35180 if test $ac_cv_have_decl_dirfd = no; then 35181 HAVE_DECL_DIRFD=0 35182 fi 35183 35184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5 35185 printf %s "checking whether dirfd is a macro... " >&6; } 35186 if test ${gl_cv_func_dirfd_macro+y} 35187 then : 35188 printf %s "(cached) " >&6 35189 else case e in #( 35190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7617 35191 /* end confdefs.h. */ 7618 35192 7619 #include <features.h> 7620 #ifdef __GNU_LIBRARY__ 7621 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 7622 Lucky GNU user 7623 #endif 35193 #include <sys/types.h> 35194 #include <dirent.h> 35195 #ifdef dirfd 35196 dirent_header_defines_dirfd 7624 35197 #endif 7625 7626 35198 _ACEOF 7627 35199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7628 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 7629 ac_cv_gnu_library_2_1=yes 35200 $EGREP_TRADITIONAL "dirent_header_defines_dirfd" >/dev/null 2>&1 35201 then : 35202 gl_cv_func_dirfd_macro=yes 35203 else case e in #( 35204 e) gl_cv_func_dirfd_macro=no ;; 35205 esac 35206 fi 35207 rm -rf conftest* 35208 ;; 35209 esac 35210 fi 35211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5 35212 printf "%s\n" "$gl_cv_func_dirfd_macro" >&6; } 35213 35214 # Use the replacement if we have no function or macro with that name, 35215 # or if OS/2 kLIBC whose dirfd() does not work. 35216 # Replace only if the system declares dirfd already. 35217 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in 35218 no,no,*,yes | *,*,os2*,yes) 35219 REPLACE_DIRFD=1 35220 35221 printf "%s\n" "#define REPLACE_DIRFD 1" >>confdefs.h 35222 ;; 35223 esac 35224 35225 35226 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1; then 35227 GL_COND_OBJ_DIRFD_TRUE= 35228 GL_COND_OBJ_DIRFD_FALSE='#' 7630 35229 else 7631 ac_cv_gnu_library_2_1=no 7632 fi 7633 rm -f conftest* 7634 7635 7636 7637 fi 7638 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 7639 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 7640 7641 GLIBC21="$ac_cv_gnu_library_2_1" 35230 GL_COND_OBJ_DIRFD_TRUE='#' 35231 GL_COND_OBJ_DIRFD_FALSE= 35232 fi 35233 : 35234 if test -z "${GL_COND_OBJ_DIRFD_TRUE}" && test -z "${GL_COND_OBJ_DIRFD_FALSE}"; then 35235 GL_COND_OBJ_DIRFD_TRUE='#' 35236 GL_COND_OBJ_DIRFD_FALSE='#' 35237 fi 35238 35239 if test -z "$GL_COND_OBJ_DIRFD_TRUE"; then : 35240 35241 35242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5 35243 printf %s "checking how to get the file descriptor associated with an open DIR*... " >&6; } 35244 if test ${gl_cv_sys_dir_fd_member_name+y} 35245 then : 35246 printf %s "(cached) " >&6 35247 else case e in #( 35248 e) 35249 dirfd_save_CFLAGS=$CFLAGS 35250 for ac_expr in d_fd dd_fd; do 35251 35252 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr" 35253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35254 /* end confdefs.h. */ 35255 35256 #include <sys/types.h> 35257 #include <dirent.h> 35258 int 35259 main (void) 35260 { 35261 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME; 35262 ; 35263 return 0; 35264 } 35265 _ACEOF 35266 if ac_fn_c_try_compile "$LINENO" 35267 then : 35268 dir_fd_found=yes 35269 35270 fi 35271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35272 CFLAGS=$dirfd_save_CFLAGS 35273 test "$dir_fd_found" = yes && break 35274 done 35275 test "$dir_fd_found" = yes || ac_expr=no_such_member 35276 35277 gl_cv_sys_dir_fd_member_name=$ac_expr 35278 35279 ;; 35280 esac 35281 fi 35282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5 35283 printf "%s\n" "$gl_cv_sys_dir_fd_member_name" >&6; } 35284 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then 35285 35286 printf "%s\n" "#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name" >>confdefs.h 35287 35288 fi 35289 35290 35291 35292 fi 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 if test "$GL_GNULIB_DIRFD" != 1; then 35303 if test "$GL_GNULIB_DIRFD" = 0; then 35304 GL_GNULIB_DIRFD=$gl_module_indicator_condition 35305 else 35306 GL_GNULIB_DIRFD="($GL_GNULIB_DIRFD || $gl_module_indicator_condition)" 35307 fi 35308 fi 35309 35310 35311 35312 35313 35314 printf "%s\n" "#define GNULIB_TEST_DIRFD 1" >>confdefs.h 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 if test "$GL_GNULIB_ENVIRON" != 1; then 35329 if test "$GL_GNULIB_ENVIRON" = 0; then 35330 GL_GNULIB_ENVIRON=$gl_module_indicator_condition 35331 else 35332 GL_GNULIB_ENVIRON="($GL_GNULIB_ENVIRON || $gl_module_indicator_condition)" 35333 fi 35334 fi 35335 35336 35337 35338 35339 35340 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 if test $ac_cv_func_explicit_bzero = no; then 35351 HAVE_EXPLICIT_BZERO=0 35352 fi 35353 35354 35355 if test $HAVE_EXPLICIT_BZERO = 0; then 35356 GL_COND_OBJ_EXPLICIT_BZERO_TRUE= 35357 GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#' 35358 else 35359 GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#' 35360 GL_COND_OBJ_EXPLICIT_BZERO_FALSE= 35361 fi 35362 : 35363 if test -z "${GL_COND_OBJ_EXPLICIT_BZERO_TRUE}" && test -z "${GL_COND_OBJ_EXPLICIT_BZERO_FALSE}"; then 35364 GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#' 35365 GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#' 35366 fi 35367 35368 if test -z "$GL_COND_OBJ_EXPLICIT_BZERO_TRUE"; then : 35369 35370 35371 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" 35372 if test "x$ac_cv_func_explicit_memset" = xyes 35373 then : 35374 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h 35375 35376 fi 35377 35378 35379 35380 35381 fi 35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 35393 35394 35395 35396 if test "$GL_GNULIB_EXPLICIT_BZERO" != 1; then 35397 if test "$GL_GNULIB_EXPLICIT_BZERO" = 0; then 35398 GL_GNULIB_EXPLICIT_BZERO=$gl_module_indicator_condition 35399 else 35400 GL_GNULIB_EXPLICIT_BZERO="($GL_GNULIB_EXPLICIT_BZERO || $gl_module_indicator_condition)" 35401 fi 35402 fi 35403 35404 35405 35406 35407 35408 printf "%s\n" "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h 35409 35410 35411 35412 35413 35414 35415 35416 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 35417 REPLACE_FDOPEN=1 35418 fi 35419 35420 if test $REPLACE_FDOPEN = 0; then 35421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5 35422 printf %s "checking whether fdopen sets errno... " >&6; } 35423 if test ${gl_cv_func_fdopen_works+y} 35424 then : 35425 printf %s "(cached) " >&6 35426 else case e in #( 35427 e) 35428 if test "$cross_compiling" = yes 35429 then : 35430 case "$host_os" in 35431 mingw*) gl_cv_func_fdopen_works="guessing no" ;; 35432 *) gl_cv_func_fdopen_works="guessing yes" ;; 35433 esac 35434 35435 else case e in #( 35436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35437 /* end confdefs.h. */ 35438 35439 #include <stdio.h> 35440 #include <errno.h> 35441 35442 35443 $gl_mda_defines 35444 35445 int 35446 main (void) 35447 { 35448 FILE *fp; 35449 errno = 0; 35450 fp = fdopen (-1, "r"); 35451 if (fp == NULL && errno == 0) 35452 return 1; 35453 return 0; 35454 } 35455 _ACEOF 35456 if ac_fn_c_try_run "$LINENO" 35457 then : 35458 gl_cv_func_fdopen_works=yes 35459 else case e in #( 35460 e) gl_cv_func_fdopen_works=no ;; 35461 esac 35462 fi 35463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35464 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 35465 esac 35466 fi 35467 35468 ;; 35469 esac 35470 fi 35471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5 35472 printf "%s\n" "$gl_cv_func_fdopen_works" >&6; } 35473 case "$gl_cv_func_fdopen_works" in 35474 *no) REPLACE_FDOPEN=1 ;; 35475 esac 35476 fi 35477 35478 35479 if test $REPLACE_FDOPEN = 1; then 35480 GL_COND_OBJ_FDOPEN_TRUE= 35481 GL_COND_OBJ_FDOPEN_FALSE='#' 35482 else 35483 GL_COND_OBJ_FDOPEN_TRUE='#' 35484 GL_COND_OBJ_FDOPEN_FALSE= 35485 fi 35486 : 35487 if test -z "${GL_COND_OBJ_FDOPEN_TRUE}" && test -z "${GL_COND_OBJ_FDOPEN_FALSE}"; then 35488 GL_COND_OBJ_FDOPEN_TRUE='#' 35489 GL_COND_OBJ_FDOPEN_FALSE='#' 35490 fi 35491 35492 if test -z "$GL_COND_OBJ_FDOPEN_TRUE"; then : 35493 35494 35495 35496 fi 35497 35498 35499 35500 35501 35502 35503 35504 35505 35506 if test "$GL_GNULIB_FDOPEN" != 1; then 35507 if test "$GL_GNULIB_FDOPEN" = 0; then 35508 GL_GNULIB_FDOPEN=$gl_module_indicator_condition 35509 else 35510 GL_GNULIB_FDOPEN="($GL_GNULIB_FDOPEN || $gl_module_indicator_condition)" 35511 fi 35512 fi 35513 35514 35515 35516 35517 35518 printf "%s\n" "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h 35519 35520 35521 35522 35523 35524 35525 35526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 35527 printf %s "checking whether fflush works on input streams... " >&6; } 35528 if test ${gl_cv_func_fflush_stdin+y} 35529 then : 35530 printf %s "(cached) " >&6 35531 else case e in #( 35532 e) echo hello world > conftest.txt 35533 if test "$cross_compiling" = yes 35534 then : 35535 case "$host_os" in 35536 # Guess no on native Windows. 35537 mingw*) gl_cv_func_fflush_stdin="guessing no" ;; 35538 *) gl_cv_func_fflush_stdin=cross ;; 35539 esac 35540 35541 else case e in #( 35542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35543 /* end confdefs.h. */ 35544 35545 #include <stdio.h> 35546 #if HAVE_UNISTD_H 35547 # include <unistd.h> 35548 #else /* on Windows with MSVC */ 35549 # include <io.h> 35550 #endif 35551 35552 35553 $gl_mda_defines 35554 35555 int 35556 main (void) 35557 { 35558 FILE *f = fopen ("conftest.txt", "r"); 35559 char buffer[10]; 35560 int fd; 35561 int c; 35562 if (f == NULL) 35563 return 1; 35564 fd = fileno (f); 35565 if (fd < 0 || fread (buffer, 1, 5, f) != 5) 35566 { fclose (f); return 2; } 35567 /* For deterministic results, ensure f read a bigger buffer. */ 35568 if (lseek (fd, 0, SEEK_CUR) == 5) 35569 { fclose (f); return 3; } 35570 /* POSIX requires fflush-fseek to set file offset of fd. This fails 35571 on BSD systems and on mingw. */ 35572 if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) 35573 { fclose (f); return 4; } 35574 if (lseek (fd, 0, SEEK_CUR) != 5) 35575 { fclose (f); return 5; } 35576 /* Verify behaviour of fflush after ungetc. See 35577 <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */ 35578 /* Verify behaviour of fflush after a backup ungetc. This fails on 35579 mingw. */ 35580 c = fgetc (f); 35581 ungetc (c, f); 35582 fflush (f); 35583 if (fgetc (f) != c) 35584 { fclose (f); return 6; } 35585 /* Verify behaviour of fflush after a non-backup ungetc. This fails 35586 on glibc 2.8 and on BSD systems. */ 35587 c = fgetc (f); 35588 ungetc ('@', f); 35589 fflush (f); 35590 if (fgetc (f) != c) 35591 { fclose (f); return 7; } 35592 fclose (f); 35593 return 0; 35594 35595 ; 35596 return 0; 35597 } 35598 _ACEOF 35599 if ac_fn_c_try_run "$LINENO" 35600 then : 35601 gl_cv_func_fflush_stdin=yes 35602 else case e in #( 35603 e) gl_cv_func_fflush_stdin=no ;; 35604 esac 35605 fi 35606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35607 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 35608 esac 35609 fi 35610 35611 rm conftest.txt 35612 ;; 35613 esac 35614 fi 35615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 35616 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } 35617 case "$gl_cv_func_fflush_stdin" in 35618 *yes) gl_func_fflush_stdin=1 ;; 35619 *no) gl_func_fflush_stdin=0 ;; 35620 *) gl_func_fflush_stdin='(-1)' ;; 35621 esac 35622 35623 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h 35624 35625 35626 case "$gl_cv_func_fflush_stdin" in 35627 *yes) ;; 35628 *) REPLACE_FFLUSH=1 ;; 35629 esac 35630 35631 35632 if test $REPLACE_FFLUSH = 1; then 35633 GL_COND_OBJ_FFLUSH_TRUE= 35634 GL_COND_OBJ_FFLUSH_FALSE='#' 35635 else 35636 GL_COND_OBJ_FFLUSH_TRUE='#' 35637 GL_COND_OBJ_FFLUSH_FALSE= 35638 fi 35639 : 35640 if test -z "${GL_COND_OBJ_FFLUSH_TRUE}" && test -z "${GL_COND_OBJ_FFLUSH_FALSE}"; then 35641 GL_COND_OBJ_FFLUSH_TRUE='#' 35642 GL_COND_OBJ_FFLUSH_FALSE='#' 35643 fi 35644 35645 if test -z "$GL_COND_OBJ_FFLUSH_TRUE"; then : 35646 35647 : 35648 35649 fi 35650 35651 35652 printf "%s\n" "#define GNULIB_FFLUSH $gl_module_indicator_condition" >>confdefs.h 35653 35654 35655 35656 35657 35658 35659 35660 35661 35662 35663 35664 if test "$GL_GNULIB_FFLUSH" != 1; then 35665 if test "$GL_GNULIB_FFLUSH" = 0; then 35666 GL_GNULIB_FFLUSH=$gl_module_indicator_condition 35667 else 35668 GL_GNULIB_FFLUSH="($GL_GNULIB_FFLUSH || $gl_module_indicator_condition)" 35669 fi 35670 fi 35671 35672 35673 35674 35675 35676 printf "%s\n" "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h 35677 35678 35679 35680 35681 35682 if test "$enable_acl" != no; then 35683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getxattr with XATTR_NAME_POSIX_ACL macros" >&5 35684 printf %s "checking for getxattr with XATTR_NAME_POSIX_ACL macros... " >&6; } 35685 if test ${gl_cv_getxattr_with_posix_acls+y} 35686 then : 35687 printf %s "(cached) " >&6 35688 else case e in #( 35689 e) gl_cv_getxattr_with_posix_acls=no 35690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35691 /* end confdefs.h. */ 35692 #include <sys/types.h> 35693 #include <sys/xattr.h> 35694 #include <linux/xattr.h> 35695 35696 int 35697 main (void) 35698 { 35699 ssize_t a = getxattr (".", XATTR_NAME_POSIX_ACL_ACCESS, 0, 0); 35700 ssize_t b = getxattr (".", XATTR_NAME_POSIX_ACL_DEFAULT, 0, 0); 35701 return a < 0 || b < 0; 35702 35703 ; 35704 return 0; 35705 } 35706 _ACEOF 35707 if ac_fn_c_try_link "$LINENO" 35708 then : 35709 gl_cv_getxattr_with_posix_acls=yes 35710 fi 35711 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35712 conftest$ac_exeext conftest.$ac_ext ;; 35713 esac 35714 fi 35715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_getxattr_with_posix_acls" >&5 35716 printf "%s\n" "$gl_cv_getxattr_with_posix_acls" >&6; } 35717 fi 35718 if test "$gl_cv_getxattr_with_posix_acls" = yes; then 35719 LIB_HAS_ACL= 35720 35721 printf "%s\n" "#define GETXATTR_WITH_POSIX_ACLS 1" >>confdefs.h 35722 35723 else 35724 gl_need_lib_has_acl=1 35725 LIB_HAS_ACL=$LIB_ACL 35726 fi 35727 35728 35729 35730 35731 35732 35733 case "$host_os" in 35734 mingw* | pw*) 35735 REPLACE_FOPEN=1 35736 gl_cv_func_fopen_slash="guessing no" 35737 ;; 35738 *) 35739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 35740 printf %s "checking whether fopen recognizes a trailing slash... " >&6; } 35741 if test ${gl_cv_func_fopen_slash+y} 35742 then : 35743 printf %s "(cached) " >&6 35744 else case e in #( 35745 e) 35746 if test "$cross_compiling" = yes 35747 then : 35748 35749 case "$host_os" in 35750 aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 35751 gl_cv_func_fopen_slash="guessing no" ;; 35752 *) 35753 gl_cv_func_fopen_slash="guessing yes" ;; 35754 esac 35755 35756 else case e in #( 35757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35758 /* end confdefs.h. */ 35759 35760 #include <stddef.h> 35761 #include <stdio.h> 35762 int main () 35763 { 35764 FILE *fp = fopen ("conftest.sl/", "w"); 35765 int result = (fp != NULL); 35766 if (fp != NULL) 35767 fclose (fp); 35768 return result; 35769 } 35770 _ACEOF 35771 if ac_fn_c_try_run "$LINENO" 35772 then : 35773 gl_cv_func_fopen_slash=yes 35774 else case e in #( 35775 e) gl_cv_func_fopen_slash=no ;; 35776 esac 35777 fi 35778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35779 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 35780 esac 35781 fi 35782 35783 rm -f conftest.sl 35784 ;; 35785 esac 35786 fi 35787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 35788 printf "%s\n" "$gl_cv_func_fopen_slash" >&6; } 35789 ;; 35790 esac 35791 case "$gl_cv_func_fopen_slash" in 35792 *no) 35793 35794 printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 35795 35796 REPLACE_FOPEN=1 35797 ;; 35798 esac 35799 35800 if test $REPLACE_FOPEN = 1; then 35801 35802 35803 35804 35805 35806 35807 35808 35809 gltests_LIBOBJS="$gltests_LIBOBJS fopen.$ac_objext" 35810 35811 : 35812 fi 35813 35814 35815 35816 35817 35818 35819 35820 35821 35822 if test "$GL_GNULIB_FOPEN" != 1; then 35823 if test "$GL_GNULIB_FOPEN" = 0; then 35824 GL_GNULIB_FOPEN=$gl_module_indicator_condition 35825 else 35826 GL_GNULIB_FOPEN="($GL_GNULIB_FOPEN || $gl_module_indicator_condition)" 35827 fi 35828 fi 35829 35830 35831 35832 35833 35834 printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h 35835 35836 35837 35838 35839 35840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5 35841 printf %s "checking whether fopen supports the mode character 'x'... " >&6; } 35842 if test ${gl_cv_func_fopen_mode_x+y} 35843 then : 35844 printf %s "(cached) " >&6 35845 else case e in #( 35846 e) rm -f conftest.x 35847 if test "$cross_compiling" = yes 35848 then : 35849 case "$host_os" in 35850 # Guess yes on glibc and musl systems. 35851 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) 35852 gl_cv_func_fopen_mode_x="guessing yes" ;; 35853 # If we don't know, obey --enable-cross-guesses. 35854 *) 35855 gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;; 35856 esac 35857 35858 else case e in #( 35859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35860 /* end confdefs.h. */ 35861 35862 #include <stdio.h> 35863 #include <errno.h> 35864 int main () 35865 { 35866 FILE *fp; 35867 fp = fopen ("conftest.x", "w"); 35868 fclose (fp); 35869 fp = fopen ("conftest.x", "wx"); 35870 if (fp != NULL) 35871 /* 'x' ignored */ 35872 return 1; 35873 else if (errno == EEXIST) 35874 return 0; 35875 else 35876 /* 'x' rejected */ 35877 return 2; 35878 } 35879 _ACEOF 35880 if ac_fn_c_try_run "$LINENO" 35881 then : 35882 gl_cv_func_fopen_mode_x=yes 35883 else case e in #( 35884 e) gl_cv_func_fopen_mode_x=no ;; 35885 esac 35886 fi 35887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35888 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 35889 esac 35890 fi 35891 35892 rm -f conftest.x 35893 ;; 35894 esac 35895 fi 35896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5 35897 printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; } 35898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5 35899 printf %s "checking whether fopen supports the mode character 'e'... " >&6; } 35900 if test ${gl_cv_func_fopen_mode_e+y} 35901 then : 35902 printf %s "(cached) " >&6 35903 else case e in #( 35904 e) echo foo > conftest.x 35905 if test "$cross_compiling" = yes 35906 then : 35907 case "$host_os" in 35908 # Guess yes on glibc and musl systems. 35909 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) 35910 gl_cv_func_fopen_mode_e="guessing yes" ;; 35911 # Guess no on native Windows. 35912 mingw*) 35913 gl_cv_func_fopen_mode_e="guessing no" ;; 35914 # If we don't know, obey --enable-cross-guesses. 35915 *) 35916 gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;; 35917 esac 35918 35919 else case e in #( 35920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35921 /* end confdefs.h. */ 35922 35923 #include <stdio.h> 35924 #include <errno.h> 35925 #include <fcntl.h> 35926 35927 35928 $gl_mda_defines 35929 35930 int main () 35931 { 35932 FILE *fp = fopen ("conftest.x", "re"); 35933 if (fp != NULL) 35934 { 35935 if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC) 35936 return 0; 35937 else 35938 /* 'e' ignored */ 35939 return 1; 35940 } 35941 else 35942 /* 'e' rejected */ 35943 return 2; 35944 } 35945 _ACEOF 35946 if ac_fn_c_try_run "$LINENO" 35947 then : 35948 gl_cv_func_fopen_mode_e=yes 35949 else case e in #( 35950 e) gl_cv_func_fopen_mode_e=no ;; 35951 esac 35952 fi 35953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35954 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 35955 esac 35956 fi 35957 35958 rm -f conftest.x 35959 ;; 35960 esac 35961 fi 35962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5 35963 printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; } 35964 REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN" 35965 case "$gl_cv_func_fopen_mode_x" in 35966 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; 35967 esac 35968 case "$gl_cv_func_fopen_mode_e" in 35969 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; 35970 esac 35971 35972 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then 35973 35974 35975 35976 35977 35978 35979 35980 35981 gltests_LIBOBJS="$gltests_LIBOBJS fopen.$ac_objext" 35982 35983 : 35984 fi 35985 35986 35987 printf "%s\n" "#define GNULIB_FOPEN_GNU $gl_module_indicator_condition" >>confdefs.h 35988 35989 35990 35991 35992 35993 35994 35995 35996 35997 35998 35999 if test "$GL_GNULIB_FOPEN_GNU" != 1; then 36000 if test "$GL_GNULIB_FOPEN_GNU" = 0; then 36001 GL_GNULIB_FOPEN_GNU=$gl_module_indicator_condition 36002 else 36003 GL_GNULIB_FOPEN_GNU="($GL_GNULIB_FOPEN_GNU || $gl_module_indicator_condition)" 36004 fi 36005 fi 36006 36007 36008 36009 36010 36011 printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h 36012 36013 36014 36015 36016 36017 36018 36019 36020 ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h> 36021 " "$ac_c_undeclared_builtin_options" "CFLAGS" 36022 if test "x$ac_cv_have_decl_fpurge" = xyes 36023 then : 36024 ac_have_decl=1 36025 else case e in #( 36026 e) ac_have_decl=0 ;; 36027 esac 36028 fi 36029 printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h 36030 36031 if test "x$ac_cv_func_fpurge" = xyes; then 36032 HAVE_FPURGE=1 36033 # Detect BSD bug. Only cygwin 1.7 and musl are known to be immune. 36034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5 36035 printf %s "checking whether fpurge works... " >&6; } 36036 if test ${gl_cv_func_fpurge_works+y} 36037 then : 36038 printf %s "(cached) " >&6 36039 else case e in #( 36040 e) if test "$cross_compiling" = yes 36041 then : 36042 case "$host_os" in 36043 # Guess yes on musl systems. 36044 *-musl*) gl_cv_func_fpurge_works="guessing yes" ;; 36045 # Otherwise obey --enable-cross-guesses. 36046 *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;; 36047 esac 36048 36049 else case e in #( 36050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36051 /* end confdefs.h. */ 36052 #include <stdio.h> 36053 36054 int 36055 main (void) 36056 { 36057 FILE *f = fopen ("conftest.txt", "w+"); 36058 if (!f) 36059 return 1; 36060 if (fputc ('a', f) != 'a') 36061 { fclose (f); return 2; } 36062 rewind (f); 36063 if (fgetc (f) != 'a') 36064 { fclose (f); return 3; } 36065 if (fgetc (f) != EOF) 36066 { fclose (f); return 4; } 36067 if (fpurge (f) != 0) 36068 { fclose (f); return 5; } 36069 if (putc ('b', f) != 'b') 36070 { fclose (f); return 6; } 36071 if (fclose (f) != 0) 36072 return 7; 36073 if ((f = fopen ("conftest.txt", "r")) == NULL) 36074 return 8; 36075 if (fgetc (f) != 'a') 36076 { fclose (f); return 9; } 36077 if (fgetc (f) != 'b') 36078 { fclose (f); return 10; } 36079 if (fgetc (f) != EOF) 36080 { fclose (f); return 11; } 36081 if (fclose (f) != 0) 36082 return 12; 36083 if (remove ("conftest.txt") != 0) 36084 return 13; 36085 return 0; 36086 36087 ; 36088 return 0; 36089 } 36090 _ACEOF 36091 if ac_fn_c_try_run "$LINENO" 36092 then : 36093 gl_cv_func_fpurge_works=yes 36094 else case e in #( 36095 e) gl_cv_func_fpurge_works=no ;; 36096 esac 36097 fi 36098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36099 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 36100 esac 36101 fi 36102 36103 ;; 36104 esac 36105 fi 36106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5 36107 printf "%s\n" "$gl_cv_func_fpurge_works" >&6; } 36108 case "$gl_cv_func_fpurge_works" in 36109 *yes) ;; 36110 *) REPLACE_FPURGE=1 ;; 36111 esac 36112 else 36113 HAVE_FPURGE=0 36114 fi 36115 if test "x$ac_cv_have_decl_fpurge" = xno; then 36116 HAVE_DECL_FPURGE=0 36117 fi 36118 36119 36120 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then 36121 GL_COND_OBJ_FPURGE_TRUE= 36122 GL_COND_OBJ_FPURGE_FALSE='#' 36123 else 36124 GL_COND_OBJ_FPURGE_TRUE='#' 36125 GL_COND_OBJ_FPURGE_FALSE= 36126 fi 36127 : 36128 if test -z "${GL_COND_OBJ_FPURGE_TRUE}" && test -z "${GL_COND_OBJ_FPURGE_FALSE}"; then 36129 GL_COND_OBJ_FPURGE_TRUE='#' 36130 GL_COND_OBJ_FPURGE_FALSE='#' 36131 fi 36132 36133 36134 36135 36136 36137 36138 36139 36140 36141 36142 if test "$GL_GNULIB_FPURGE" != 1; then 36143 if test "$GL_GNULIB_FPURGE" = 0; then 36144 GL_GNULIB_FPURGE=$gl_module_indicator_condition 36145 else 36146 GL_GNULIB_FPURGE="($GL_GNULIB_FPURGE || $gl_module_indicator_condition)" 36147 fi 36148 fi 36149 36150 36151 36152 36153 36154 printf "%s\n" "#define GNULIB_TEST_FPURGE 1" >>confdefs.h 36155 36156 36157 36158 36159 36160 36161 36162 36163 36164 36165 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 36166 REPLACE_FSEEK=1 36167 fi 36168 36169 36170 if test $REPLACE_FSEEK = 1; then 36171 GL_COND_OBJ_FSEEK_TRUE= 36172 GL_COND_OBJ_FSEEK_FALSE='#' 36173 else 36174 GL_COND_OBJ_FSEEK_TRUE='#' 36175 GL_COND_OBJ_FSEEK_FALSE= 36176 fi 36177 : 36178 if test -z "${GL_COND_OBJ_FSEEK_TRUE}" && test -z "${GL_COND_OBJ_FSEEK_FALSE}"; then 36179 GL_COND_OBJ_FSEEK_TRUE='#' 36180 GL_COND_OBJ_FSEEK_FALSE='#' 36181 fi 36182 36183 36184 36185 36186 36187 36188 36189 36190 36191 36192 if test "$GL_GNULIB_FSEEK" != 1; then 36193 if test "$GL_GNULIB_FSEEK" = 0; then 36194 GL_GNULIB_FSEEK=$gl_module_indicator_condition 36195 else 36196 GL_GNULIB_FSEEK="($GL_GNULIB_FSEEK || $gl_module_indicator_condition)" 36197 fi 36198 fi 36199 36200 36201 36202 36203 36204 printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 36218 printf %s "checking for fseeko... " >&6; } 36219 if test ${gl_cv_func_fseeko+y} 36220 then : 36221 printf %s "(cached) " >&6 36222 else case e in #( 36223 e) 36224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36225 /* end confdefs.h. */ 36226 #include <stdio.h> 36227 36228 int 36229 main (void) 36230 { 36231 fseeko (stdin, 0, 0); 36232 ; 36233 return 0; 36234 } 36235 _ACEOF 36236 if ac_fn_c_try_link "$LINENO" 36237 then : 36238 gl_cv_func_fseeko=yes 36239 else case e in #( 36240 e) gl_cv_func_fseeko=no ;; 36241 esac 36242 fi 36243 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36244 conftest$ac_exeext conftest.$ac_ext 36245 ;; 36246 esac 36247 fi 36248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 36249 printf "%s\n" "$gl_cv_func_fseeko" >&6; } 36250 36251 36252 if test $ac_cv_have_decl_fseeko = no; then 36253 HAVE_DECL_FSEEKO=0 36254 fi 36255 36256 if test $gl_cv_func_fseeko = no; then 36257 HAVE_FSEEKO=0 36258 else 36259 if test $WINDOWS_64_BIT_OFF_T = 1; then 36260 REPLACE_FSEEKO=1 36261 fi 36262 if test $gl_cv_var_stdin_large_offset = no; then 36263 REPLACE_FSEEKO=1 36264 fi 36265 36266 36267 36268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 36269 printf %s "checking whether fflush works on input streams... " >&6; } 36270 if test ${gl_cv_func_fflush_stdin+y} 36271 then : 36272 printf %s "(cached) " >&6 36273 else case e in #( 36274 e) echo hello world > conftest.txt 36275 if test "$cross_compiling" = yes 36276 then : 36277 case "$host_os" in 36278 # Guess no on native Windows. 36279 mingw*) gl_cv_func_fflush_stdin="guessing no" ;; 36280 *) gl_cv_func_fflush_stdin=cross ;; 36281 esac 36282 36283 else case e in #( 36284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36285 /* end confdefs.h. */ 36286 36287 #include <stdio.h> 36288 #if HAVE_UNISTD_H 36289 # include <unistd.h> 36290 #else /* on Windows with MSVC */ 36291 # include <io.h> 36292 #endif 36293 36294 36295 $gl_mda_defines 36296 36297 int 36298 main (void) 36299 { 36300 FILE *f = fopen ("conftest.txt", "r"); 36301 char buffer[10]; 36302 int fd; 36303 int c; 36304 if (f == NULL) 36305 return 1; 36306 fd = fileno (f); 36307 if (fd < 0 || fread (buffer, 1, 5, f) != 5) 36308 { fclose (f); return 2; } 36309 /* For deterministic results, ensure f read a bigger buffer. */ 36310 if (lseek (fd, 0, SEEK_CUR) == 5) 36311 { fclose (f); return 3; } 36312 /* POSIX requires fflush-fseek to set file offset of fd. This fails 36313 on BSD systems and on mingw. */ 36314 if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) 36315 { fclose (f); return 4; } 36316 if (lseek (fd, 0, SEEK_CUR) != 5) 36317 { fclose (f); return 5; } 36318 /* Verify behaviour of fflush after ungetc. See 36319 <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */ 36320 /* Verify behaviour of fflush after a backup ungetc. This fails on 36321 mingw. */ 36322 c = fgetc (f); 36323 ungetc (c, f); 36324 fflush (f); 36325 if (fgetc (f) != c) 36326 { fclose (f); return 6; } 36327 /* Verify behaviour of fflush after a non-backup ungetc. This fails 36328 on glibc 2.8 and on BSD systems. */ 36329 c = fgetc (f); 36330 ungetc ('@', f); 36331 fflush (f); 36332 if (fgetc (f) != c) 36333 { fclose (f); return 7; } 36334 fclose (f); 36335 return 0; 36336 36337 ; 36338 return 0; 36339 } 36340 _ACEOF 36341 if ac_fn_c_try_run "$LINENO" 36342 then : 36343 gl_cv_func_fflush_stdin=yes 36344 else case e in #( 36345 e) gl_cv_func_fflush_stdin=no ;; 36346 esac 36347 fi 36348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36349 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 36350 esac 36351 fi 36352 36353 rm conftest.txt 36354 ;; 36355 esac 36356 fi 36357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 36358 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } 36359 case "$gl_cv_func_fflush_stdin" in 36360 *yes) gl_func_fflush_stdin=1 ;; 36361 *no) gl_func_fflush_stdin=0 ;; 36362 *) gl_func_fflush_stdin='(-1)' ;; 36363 esac 36364 36365 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h 36366 36367 36368 case "$gl_cv_func_fflush_stdin" in 36369 *yes) ;; 36370 *) REPLACE_FSEEKO=1 ;; 36371 esac 36372 36373 fi 36374 36375 36376 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 36377 GL_COND_OBJ_FSEEKO_TRUE= 36378 GL_COND_OBJ_FSEEKO_FALSE='#' 36379 else 36380 GL_COND_OBJ_FSEEKO_TRUE='#' 36381 GL_COND_OBJ_FSEEKO_FALSE= 36382 fi 36383 : 36384 if test -z "${GL_COND_OBJ_FSEEKO_TRUE}" && test -z "${GL_COND_OBJ_FSEEKO_FALSE}"; then 36385 GL_COND_OBJ_FSEEKO_TRUE='#' 36386 GL_COND_OBJ_FSEEKO_FALSE='#' 36387 fi 36388 36389 if test -z "$GL_COND_OBJ_FSEEKO_TRUE"; then : 36390 36391 36392 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" 36393 if test "x$ac_cv_func__fseeki64" = xyes 36394 then : 36395 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h 36396 36397 fi 36398 36399 if test $ac_cv_func__fseeki64 = yes; then 36400 ac_fn_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 36401 if test "x$ac_cv_have_decl__fseeki64" = xyes 36402 then : 36403 ac_have_decl=1 36404 else case e in #( 36405 e) ac_have_decl=0 ;; 36406 esac 36407 fi 36408 printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h 36409 36410 fi 36411 36412 36413 fi 36414 36415 36416 36417 36418 36419 36420 36421 36422 36423 if test "$GL_GNULIB_FSEEKO" != 1; then 36424 if test "$GL_GNULIB_FSEEKO" = 0; then 36425 GL_GNULIB_FSEEKO=$gl_module_indicator_condition 36426 else 36427 GL_GNULIB_FSEEKO="($GL_GNULIB_FSEEKO || $gl_module_indicator_condition)" 36428 fi 36429 fi 36430 36431 36432 36433 36434 36435 printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h 36436 36437 36438 36439 36440 36441 36442 36443 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then 36444 REPLACE_FTELL=1 36445 fi 36446 36447 36448 if test $REPLACE_FTELL = 1; then 36449 GL_COND_OBJ_FTELL_TRUE= 36450 GL_COND_OBJ_FTELL_FALSE='#' 36451 else 36452 GL_COND_OBJ_FTELL_TRUE='#' 36453 GL_COND_OBJ_FTELL_FALSE= 36454 fi 36455 : 36456 if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then 36457 GL_COND_OBJ_FTELL_TRUE='#' 36458 GL_COND_OBJ_FTELL_FALSE='#' 36459 fi 36460 36461 36462 36463 36464 36465 36466 36467 36468 36469 36470 if test "$GL_GNULIB_FTELL" != 1; then 36471 if test "$GL_GNULIB_FTELL" = 0; then 36472 GL_GNULIB_FTELL=$gl_module_indicator_condition 36473 else 36474 GL_GNULIB_FTELL="($GL_GNULIB_FTELL || $gl_module_indicator_condition)" 36475 fi 36476 fi 36477 36478 36479 36480 36481 36482 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h 36483 36484 36485 36486 36487 36488 36489 36490 36491 36492 36493 36494 36495 36496 if test $ac_cv_have_decl_ftello = no; then 36497 HAVE_DECL_FTELLO=0 36498 fi 36499 36500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 36501 printf %s "checking for ftello... " >&6; } 36502 if test ${gl_cv_func_ftello+y} 36503 then : 36504 printf %s "(cached) " >&6 36505 else case e in #( 36506 e) 36507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36508 /* end confdefs.h. */ 36509 #include <stdio.h> 36510 int 36511 main (void) 36512 { 36513 ftello (stdin); 36514 ; 36515 return 0; 36516 } 36517 _ACEOF 36518 if ac_fn_c_try_link "$LINENO" 36519 then : 36520 gl_cv_func_ftello=yes 36521 else case e in #( 36522 e) gl_cv_func_ftello=no ;; 36523 esac 36524 fi 36525 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36526 conftest$ac_exeext conftest.$ac_ext 36527 ;; 36528 esac 36529 fi 36530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 36531 printf "%s\n" "$gl_cv_func_ftello" >&6; } 36532 if test $gl_cv_func_ftello = no; then 36533 HAVE_FTELLO=0 36534 else 36535 if test $WINDOWS_64_BIT_OFF_T = 1; then 36536 REPLACE_FTELLO=1 36537 fi 36538 if test $gl_cv_var_stdin_large_offset = no; then 36539 REPLACE_FTELLO=1 36540 fi 36541 if test $REPLACE_FTELLO = 0; then 36542 36543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 36544 printf %s "checking whether ftello works... " >&6; } 36545 if test ${gl_cv_func_ftello_works+y} 36546 then : 36547 printf %s "(cached) " >&6 36548 else case e in #( 36549 e) 36550 case "$host_os" in 36551 # Guess no on Solaris. 36552 solaris*) gl_cv_func_ftello_works="guessing no" ;; 36553 # Guess yes on native Windows. 36554 mingw*) gl_cv_func_ftello_works="guessing yes" ;; 36555 # Guess yes otherwise. 36556 *) gl_cv_func_ftello_works="guessing yes" ;; 36557 esac 36558 if test "$cross_compiling" = yes 36559 then : 36560 : 36561 else case e in #( 36562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36563 /* end confdefs.h. */ 36564 36565 #include <stdio.h> 36566 #include <stdlib.h> 36567 #include <string.h> 36568 #define TESTFILE "conftest.tmp" 36569 int 36570 main (void) 36571 { 36572 FILE *fp; 36573 36574 /* Create a file with some contents. */ 36575 fp = fopen (TESTFILE, "w"); 36576 if (fp == NULL) 36577 return 70; 36578 if (fwrite ("foogarsh", 1, 8, fp) < 8) 36579 { fclose (fp); return 71; } 36580 if (fclose (fp)) 36581 return 72; 36582 36583 /* The file's contents is now "foogarsh". */ 36584 36585 /* Try writing after reading to EOF. */ 36586 fp = fopen (TESTFILE, "r+"); 36587 if (fp == NULL) 36588 return 73; 36589 if (fseek (fp, -1, SEEK_END)) 36590 { fclose (fp); return 74; } 36591 if (!(getc (fp) == 'h')) 36592 { fclose (fp); return 1; } 36593 if (!(getc (fp) == EOF)) 36594 { fclose (fp); return 2; } 36595 if (!(ftell (fp) == 8)) 36596 { fclose (fp); return 3; } 36597 if (!(ftell (fp) == 8)) 36598 { fclose (fp); return 4; } 36599 if (!(putc ('!', fp) == '!')) 36600 { fclose (fp); return 5; } 36601 if (!(ftell (fp) == 9)) 36602 { fclose (fp); return 6; } 36603 if (!(fclose (fp) == 0)) 36604 return 7; 36605 fp = fopen (TESTFILE, "r"); 36606 if (fp == NULL) 36607 return 75; 36608 { 36609 char buf[10]; 36610 if (!(fread (buf, 1, 10, fp) == 9)) 36611 { fclose (fp); return 10; } 36612 if (!(memcmp (buf, "foogarsh!", 9) == 0)) 36613 { fclose (fp); return 11; } 36614 } 36615 if (!(fclose (fp) == 0)) 36616 return 12; 36617 36618 /* The file's contents is now "foogarsh!". */ 36619 36620 return 0; 36621 } 36622 _ACEOF 36623 if ac_fn_c_try_run "$LINENO" 36624 then : 36625 gl_cv_func_ftello_works=yes 36626 else case e in #( 36627 e) gl_cv_func_ftello_works=no ;; 36628 esac 36629 fi 36630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36631 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 36632 esac 36633 fi 36634 36635 ;; 36636 esac 36637 fi 36638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 36639 printf "%s\n" "$gl_cv_func_ftello_works" >&6; } 36640 case "$gl_cv_func_ftello_works" in 36641 *yes) ;; 36642 *) 36643 REPLACE_FTELLO=1 36644 36645 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h 36646 36647 ;; 36648 esac 36649 fi 36650 if test $REPLACE_FTELLO = 0; then 36651 36652 if test $gl_ftello_broken_after_ungetc = yes; then 36653 REPLACE_FTELLO=1 36654 36655 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h 36656 36657 fi 36658 fi 36659 fi 36660 36661 36662 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then 36663 GL_COND_OBJ_FTELLO_TRUE= 36664 GL_COND_OBJ_FTELLO_FALSE='#' 36665 else 36666 GL_COND_OBJ_FTELLO_TRUE='#' 36667 GL_COND_OBJ_FTELLO_FALSE= 36668 fi 36669 : 36670 if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then 36671 GL_COND_OBJ_FTELLO_TRUE='#' 36672 GL_COND_OBJ_FTELLO_FALSE='#' 36673 fi 36674 36675 if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then : 36676 36677 36678 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64" 36679 if test "x$ac_cv_func__ftelli64" = xyes 36680 then : 36681 printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h 36682 36683 fi 36684 36685 36686 36687 fi 36688 36689 36690 36691 36692 36693 36694 36695 36696 36697 if test "$GL_GNULIB_FTELLO" != 1; then 36698 if test "$GL_GNULIB_FTELLO" = 0; then 36699 GL_GNULIB_FTELLO=$gl_module_indicator_condition 36700 else 36701 GL_GNULIB_FTELLO="($GL_GNULIB_FTELLO || $gl_module_indicator_condition)" 36702 fi 36703 fi 36704 36705 36706 36707 36708 36709 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h 36710 36711 36712 36713 36714 36715 36716 36717 if test $ac_cv_func_ftruncate = yes; then 36718 36719 36720 case "$host_os" in 36721 mingw*) 36722 REPLACE_FTRUNCATE=1 36723 ;; 36724 esac 36725 36726 else 36727 HAVE_FTRUNCATE=0 36728 fi 36729 36730 36731 if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then 36732 GL_COND_OBJ_FTRUNCATE_TRUE= 36733 GL_COND_OBJ_FTRUNCATE_FALSE='#' 36734 else 36735 GL_COND_OBJ_FTRUNCATE_TRUE='#' 36736 GL_COND_OBJ_FTRUNCATE_FALSE= 36737 fi 36738 : 36739 if test -z "${GL_COND_OBJ_FTRUNCATE_TRUE}" && test -z "${GL_COND_OBJ_FTRUNCATE_FALSE}"; then 36740 GL_COND_OBJ_FTRUNCATE_TRUE='#' 36741 GL_COND_OBJ_FTRUNCATE_FALSE='#' 36742 fi 36743 36744 if test -z "$GL_COND_OBJ_FTRUNCATE_TRUE"; then : 36745 36746 36747 ac_fn_c_check_func "$LINENO" "_chsize" "ac_cv_func__chsize" 36748 if test "x$ac_cv_func__chsize" = xyes 36749 then : 36750 printf "%s\n" "#define HAVE__CHSIZE 1" >>confdefs.h 36751 36752 fi 36753 36754 36755 36756 fi 36757 36758 36759 36760 36761 36762 36763 36764 36765 36766 if test "$GL_GNULIB_FTRUNCATE" != 1; then 36767 if test "$GL_GNULIB_FTRUNCATE" = 0; then 36768 GL_GNULIB_FTRUNCATE=$gl_module_indicator_condition 36769 else 36770 GL_GNULIB_FTRUNCATE="($GL_GNULIB_FTRUNCATE || $gl_module_indicator_condition)" 36771 fi 36772 fi 36773 36774 36775 36776 36777 36778 printf "%s\n" "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h 36779 36780 36781 36782 36783 36784 36785 36786 36787 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in 36788 *yes,yes) ;; 36789 *) 36790 REPLACE_GETCWD=1 36791 ;; 36792 esac 36793 36794 36795 if test $REPLACE_GETCWD = 1; then 36796 GL_COND_OBJ_GETCWD_LGPL_TRUE= 36797 GL_COND_OBJ_GETCWD_LGPL_FALSE='#' 36798 else 36799 GL_COND_OBJ_GETCWD_LGPL_TRUE='#' 36800 GL_COND_OBJ_GETCWD_LGPL_FALSE= 36801 fi 36802 : 36803 if test -z "${GL_COND_OBJ_GETCWD_LGPL_TRUE}" && test -z "${GL_COND_OBJ_GETCWD_LGPL_FALSE}"; then 36804 GL_COND_OBJ_GETCWD_LGPL_TRUE='#' 36805 GL_COND_OBJ_GETCWD_LGPL_FALSE='#' 36806 fi 36807 36808 36809 36810 36811 36812 36813 36814 36815 36816 36817 if test "$GL_GNULIB_GETCWD" != 1; then 36818 if test "$GL_GNULIB_GETCWD" = 0; then 36819 GL_GNULIB_GETCWD=$gl_module_indicator_condition 36820 else 36821 GL_GNULIB_GETCWD="($GL_GNULIB_GETCWD || $gl_module_indicator_condition)" 36822 fi 36823 fi 36824 36825 36826 36827 36828 36829 printf "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h 36830 36831 36832 36833 36834 36835 36836 36837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 36838 printf %s "checking for getpagesize... " >&6; } 36839 if test ${gl_cv_func_getpagesize+y} 36840 then : 36841 printf %s "(cached) " >&6 36842 else case e in #( 36843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36844 /* end confdefs.h. */ 36845 #include <unistd.h> 36846 int 36847 main (void) 36848 { 36849 return getpagesize(); 36850 ; 36851 return 0; 36852 } 36853 36854 _ACEOF 36855 if ac_fn_c_try_link "$LINENO" 36856 then : 36857 gl_cv_func_getpagesize=yes 36858 else case e in #( 36859 e) gl_cv_func_getpagesize=no ;; 36860 esac 36861 fi 36862 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36863 conftest$ac_exeext conftest.$ac_ext 36864 ;; 36865 esac 36866 fi 36867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5 36868 printf "%s\n" "$gl_cv_func_getpagesize" >&6; } 36869 36870 if test $gl_cv_func_getpagesize = no; then 36871 HAVE_GETPAGESIZE=0 36872 ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" 36873 if test "x$ac_cv_header_OS_h" = xyes 36874 then : 36875 printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h 36876 36877 fi 36878 36879 if test $ac_cv_header_OS_h = yes; then 36880 HAVE_OS_H=1 36881 fi 36882 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 36883 if test "x$ac_cv_header_sys_param_h" = xyes 36884 then : 36885 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 36886 36887 fi 36888 36889 if test $ac_cv_header_sys_param_h = yes; then 36890 HAVE_SYS_PARAM_H=1 36891 fi 36892 fi 36893 case "$host_os" in 36894 mingw*) 36895 REPLACE_GETPAGESIZE=1 36896 ;; 36897 esac 36898 ac_fn_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 36899 if test "x$ac_cv_have_decl_getpagesize" = xyes 36900 then : 36901 36902 else case e in #( 36903 e) HAVE_DECL_GETPAGESIZE=0 ;; 36904 esac 36905 fi 36906 36907 36908 if test $REPLACE_GETPAGESIZE = 1; then 36909 GL_COND_OBJ_GETPAGESIZE_TRUE= 36910 GL_COND_OBJ_GETPAGESIZE_FALSE='#' 36911 else 36912 GL_COND_OBJ_GETPAGESIZE_TRUE='#' 36913 GL_COND_OBJ_GETPAGESIZE_FALSE= 36914 fi 36915 : 36916 if test -z "${GL_COND_OBJ_GETPAGESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETPAGESIZE_FALSE}"; then 36917 GL_COND_OBJ_GETPAGESIZE_TRUE='#' 36918 GL_COND_OBJ_GETPAGESIZE_FALSE='#' 36919 fi 36920 36921 36922 36923 36924 36925 36926 36927 36928 36929 36930 if test "$GL_GNULIB_GETPAGESIZE" != 1; then 36931 if test "$GL_GNULIB_GETPAGESIZE" = 0; then 36932 GL_GNULIB_GETPAGESIZE=$gl_module_indicator_condition 36933 else 36934 GL_GNULIB_GETPAGESIZE="($GL_GNULIB_GETPAGESIZE || $gl_module_indicator_condition)" 36935 fi 36936 fi 36937 36938 36939 36940 36941 36942 printf "%s\n" "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h 36943 36944 36945 36946 36947 36948 36949 36950 36951 36952 36953 gl_gettimeofday_timezone=void 36954 if test $ac_cv_func_gettimeofday != yes; then 36955 HAVE_GETTIMEOFDAY=0 36956 else 36957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 36958 printf %s "checking for gettimeofday with POSIX signature... " >&6; } 36959 if test ${gl_cv_func_gettimeofday_posix_signature+y} 36960 then : 36961 printf %s "(cached) " >&6 36962 else case e in #( 36963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36964 /* end confdefs.h. */ 36965 #include <sys/time.h> 36966 struct timeval c; 36967 int gettimeofday (struct timeval *restrict, void *restrict); 36968 36969 int 36970 main (void) 36971 { 36972 /* glibc uses struct timezone * rather than the POSIX void * 36973 if _GNU_SOURCE is defined. However, since the only portable 36974 use of gettimeofday uses NULL as the second parameter, and 36975 since the glibc definition is actually more typesafe, it is 36976 not worth wrapping this to get a compliant signature. */ 36977 int (*f) (struct timeval *restrict, void *restrict) 36978 = gettimeofday; 36979 int x = f (&c, 0); 36980 return !(x | c.tv_sec | c.tv_usec); 36981 36982 ; 36983 return 0; 36984 } 36985 _ACEOF 36986 if ac_fn_c_try_compile "$LINENO" 36987 then : 36988 gl_cv_func_gettimeofday_posix_signature=yes 36989 else case e in #( 36990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36991 /* end confdefs.h. */ 36992 #include <sys/time.h> 36993 int gettimeofday (struct timeval *restrict, struct timezone *restrict); 36994 36995 int 36996 main (void) 36997 { 36998 36999 ; 37000 return 0; 37001 } 37002 _ACEOF 37003 if ac_fn_c_try_compile "$LINENO" 37004 then : 37005 gl_cv_func_gettimeofday_posix_signature=almost 37006 else case e in #( 37007 e) gl_cv_func_gettimeofday_posix_signature=no ;; 37008 esac 37009 fi 37010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 37011 esac 37012 fi 37013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 37014 esac 37015 fi 37016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 37017 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; } 37018 if test $gl_cv_func_gettimeofday_posix_signature = almost; then 37019 gl_gettimeofday_timezone='struct timezone' 37020 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then 37021 REPLACE_GETTIMEOFDAY=1 37022 fi 37023 if test $REPLACE_STRUCT_TIMEVAL = 1; then 37024 REPLACE_GETTIMEOFDAY=1 37025 fi 37026 case "$host_os" in 37027 mingw*) REPLACE_GETTIMEOFDAY=1 ;; 37028 esac 37029 fi 37030 37031 printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h 37032 37033 37034 37035 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then 37036 GL_COND_OBJ_GETTIMEOFDAY_TRUE= 37037 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' 37038 else 37039 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' 37040 GL_COND_OBJ_GETTIMEOFDAY_FALSE= 37041 fi 37042 : 37043 if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then 37044 GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' 37045 GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' 37046 fi 37047 37048 if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then : 37049 37050 : 37051 37052 fi 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 if test "$GL_GNULIB_GETTIMEOFDAY" != 1; then 37063 if test "$GL_GNULIB_GETTIMEOFDAY" = 0; then 37064 GL_GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition 37065 else 37066 GL_GNULIB_GETTIMEOFDAY="($GL_GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)" 37067 fi 37068 fi 37069 37070 37071 37072 37073 37074 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 37086 37087 HAVE_INET_PTON=1 37088 INET_PTON_LIB= 37089 37090 37091 37092 37093 if test $ac_cv_header_sys_socket_h != yes; then 37094 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 37095 if test "x$ac_cv_header_winsock2_h" = xyes 37096 then : 37097 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 37098 37099 fi 37100 37101 fi 37102 if test "$ac_cv_header_winsock2_h" = yes; then 37103 HAVE_WINSOCK2_H=1 37104 UNISTD_H_HAVE_WINSOCK2_H=1 37105 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 37106 else 37107 HAVE_WINSOCK2_H=0 37108 fi 37109 37110 37111 if test $HAVE_WINSOCK2_H = 1; then 37112 REPLACE_INET_PTON=1 37113 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h> 37114 " "$ac_c_undeclared_builtin_options" "CFLAGS" 37115 if test "x$ac_cv_have_decl_inet_pton" = xyes 37116 then : 37117 ac_have_decl=1 37118 else case e in #( 37119 e) ac_have_decl=0 ;; 37120 esac 37121 fi 37122 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 37123 37124 if test $ac_cv_have_decl_inet_pton = yes; then 37125 INET_PTON_LIB="-lws2_32" 37126 else 37127 HAVE_DECL_INET_PTON=0 37128 fi 37129 else 37130 gl_save_LIBS=$LIBS 37131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 37132 printf %s "checking for library containing inet_pton... " >&6; } 37133 if test ${ac_cv_search_inet_pton+y} 37134 then : 37135 printf %s "(cached) " >&6 37136 else case e in #( 37137 e) ac_func_search_save_LIBS=$LIBS 37138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37139 /* end confdefs.h. */ 37140 37141 /* Override any GCC internal prototype to avoid an error. 37142 Use char because int might match the return type of a GCC 37143 builtin and then its argument prototype would still apply. 37144 The 'extern "C"' is for builds by C++ compilers; 37145 although this is not generally supported in C code, supporting it here 37146 has little cost and some practical benefit (sr 110532). */ 37147 #ifdef __cplusplus 37148 extern "C" 37149 #endif 37150 char inet_pton (void); 37151 int 37152 main (void) 37153 { 37154 return inet_pton (); 37155 ; 37156 return 0; 37157 } 37158 _ACEOF 37159 for ac_lib in '' nsl resolv network 37160 do 37161 if test -z "$ac_lib"; then 37162 ac_res="none required" 37163 else 37164 ac_res=-l$ac_lib 37165 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 37166 fi 37167 if ac_fn_c_try_link "$LINENO" 37168 then : 37169 ac_cv_search_inet_pton=$ac_res 37170 fi 37171 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37172 conftest$ac_exeext 37173 if test ${ac_cv_search_inet_pton+y} 37174 then : 37175 break 37176 fi 37177 done 37178 if test ${ac_cv_search_inet_pton+y} 37179 then : 37180 37181 else case e in #( 37182 e) ac_cv_search_inet_pton=no ;; 37183 esac 37184 fi 37185 rm conftest.$ac_ext 37186 LIBS=$ac_func_search_save_LIBS ;; 37187 esac 37188 fi 37189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 37190 printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 37191 ac_res=$ac_cv_search_inet_pton 37192 if test "$ac_res" != no 37193 then : 37194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 37195 37196 else case e in #( 37197 e) ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 37198 if test "x$ac_cv_func_inet_pton" = xyes 37199 then : 37200 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 37201 37202 fi 37203 37204 if test $ac_cv_func_inet_pton = no; then 37205 HAVE_INET_PTON=0 37206 fi 37207 ;; 37208 esac 37209 fi 37210 37211 LIBS=$gl_save_LIBS 37212 37213 if test "$ac_cv_search_inet_pton" != "no" \ 37214 && test "$ac_cv_search_inet_pton" != "none required"; then 37215 INET_PTON_LIB="$ac_cv_search_inet_pton" 37216 fi 37217 37218 37219 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h> 37220 #if HAVE_NETDB_H 37221 # include <netdb.h> 37222 #endif 37223 37224 " "$ac_c_undeclared_builtin_options" "CFLAGS" 37225 if test "x$ac_cv_have_decl_inet_pton" = xyes 37226 then : 37227 ac_have_decl=1 37228 else case e in #( 37229 e) ac_have_decl=0 ;; 37230 esac 37231 fi 37232 printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 37233 37234 if test $ac_cv_have_decl_inet_pton = no; then 37235 HAVE_DECL_INET_PTON=0 37236 fi 37237 fi 37238 37239 37240 37241 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then 37242 GL_COND_OBJ_INET_PTON_TRUE= 37243 GL_COND_OBJ_INET_PTON_FALSE='#' 37244 else 37245 GL_COND_OBJ_INET_PTON_TRUE='#' 37246 GL_COND_OBJ_INET_PTON_FALSE= 37247 fi 37248 : 37249 if test -z "${GL_COND_OBJ_INET_PTON_TRUE}" && test -z "${GL_COND_OBJ_INET_PTON_FALSE}"; then 37250 GL_COND_OBJ_INET_PTON_TRUE='#' 37251 GL_COND_OBJ_INET_PTON_FALSE='#' 37252 fi 37253 37254 if test -z "$GL_COND_OBJ_INET_PTON_TRUE"; then : 37255 37256 37257 37258 37259 37260 fi 37261 37262 37263 37264 37265 37266 37267 37268 37269 37270 if test "$GL_GNULIB_INET_PTON" != 1; then 37271 if test "$GL_GNULIB_INET_PTON" = 0; then 37272 GL_GNULIB_INET_PTON=$gl_module_indicator_condition 37273 else 37274 GL_GNULIB_INET_PTON="($GL_GNULIB_INET_PTON || $gl_module_indicator_condition)" 37275 fi 37276 fi 37277 37278 37279 37280 37281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 37282 printf %s "checking whether byte ordering is bigendian... " >&6; } 37283 if test ${ac_cv_c_bigendian+y} 37284 then : 37285 printf %s "(cached) " >&6 37286 else case e in #( 37287 e) ac_cv_c_bigendian=unknown 37288 # See if we're dealing with a universal compiler. 37289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37290 /* end confdefs.h. */ 37291 #ifndef __APPLE_CC__ 37292 not a universal capable compiler 37293 #endif 37294 typedef int dummy; 37295 37296 _ACEOF 37297 if ac_fn_c_try_compile "$LINENO" 37298 then : 37299 37300 # Check for potential -arch flags. It is not universal unless 37301 # there are at least two -arch flags with different values. 37302 ac_arch= 37303 ac_prev= 37304 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 37305 if test -n "$ac_prev"; then 37306 case $ac_word in 37307 i?86 | x86_64 | ppc | ppc64) 37308 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 37309 ac_arch=$ac_word 37310 else 37311 ac_cv_c_bigendian=universal 37312 break 37313 fi 37314 ;; 37315 esac 37316 ac_prev= 37317 elif test "x$ac_word" = "x-arch"; then 37318 ac_prev=arch 37319 fi 37320 done 37321 fi 37322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37323 if test $ac_cv_c_bigendian = unknown; then 37324 # See if sys/param.h defines the BYTE_ORDER macro. 37325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37326 /* end confdefs.h. */ 37327 #include <sys/types.h> 37328 #include <sys/param.h> 37329 37330 int 37331 main (void) 37332 { 37333 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 37334 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 37335 && LITTLE_ENDIAN) 37336 bogus endian macros 37337 #endif 37338 37339 ; 37340 return 0; 37341 } 37342 _ACEOF 37343 if ac_fn_c_try_compile "$LINENO" 37344 then : 37345 # It does; now see whether it defined to BIG_ENDIAN or not. 37346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37347 /* end confdefs.h. */ 37348 #include <sys/types.h> 37349 #include <sys/param.h> 37350 37351 int 37352 main (void) 37353 { 37354 #if BYTE_ORDER != BIG_ENDIAN 37355 not big endian 37356 #endif 37357 37358 ; 37359 return 0; 37360 } 37361 _ACEOF 37362 if ac_fn_c_try_compile "$LINENO" 37363 then : 37364 ac_cv_c_bigendian=yes 37365 else case e in #( 37366 e) ac_cv_c_bigendian=no ;; 37367 esac 37368 fi 37369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37370 fi 37371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37372 fi 37373 if test $ac_cv_c_bigendian = unknown; then 37374 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 37375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37376 /* end confdefs.h. */ 37377 #include <limits.h> 37378 37379 int 37380 main (void) 37381 { 37382 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 37383 bogus endian macros 37384 #endif 37385 37386 ; 37387 return 0; 37388 } 37389 _ACEOF 37390 if ac_fn_c_try_compile "$LINENO" 37391 then : 37392 # It does; now see whether it defined to _BIG_ENDIAN or not. 37393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37394 /* end confdefs.h. */ 37395 #include <limits.h> 37396 37397 int 37398 main (void) 37399 { 37400 #ifndef _BIG_ENDIAN 37401 not big endian 37402 #endif 37403 37404 ; 37405 return 0; 37406 } 37407 _ACEOF 37408 if ac_fn_c_try_compile "$LINENO" 37409 then : 37410 ac_cv_c_bigendian=yes 37411 else case e in #( 37412 e) ac_cv_c_bigendian=no ;; 37413 esac 37414 fi 37415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37416 fi 37417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37418 fi 37419 if test $ac_cv_c_bigendian = unknown; then 37420 # Compile a test program. 37421 if test "$cross_compiling" = yes 37422 then : 37423 # Try to guess by grepping values from an object file. 37424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37425 /* end confdefs.h. */ 37426 unsigned short int ascii_mm[] = 37427 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 37428 unsigned short int ascii_ii[] = 37429 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 37430 int use_ascii (int i) { 37431 return ascii_mm[i] + ascii_ii[i]; 37432 } 37433 unsigned short int ebcdic_ii[] = 37434 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 37435 unsigned short int ebcdic_mm[] = 37436 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 37437 int use_ebcdic (int i) { 37438 return ebcdic_mm[i] + ebcdic_ii[i]; 37439 } 37440 int 37441 main (int argc, char **argv) 37442 { 37443 /* Intimidate the compiler so that it does not 37444 optimize the arrays away. */ 37445 char *p = argv[0]; 37446 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 37447 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 37448 return use_ascii (argc) == use_ebcdic (*p); 37449 } 37450 _ACEOF 37451 if ac_fn_c_try_link "$LINENO" 37452 then : 37453 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 37454 ac_cv_c_bigendian=yes 37455 fi 37456 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 37457 if test "$ac_cv_c_bigendian" = unknown; then 37458 ac_cv_c_bigendian=no 37459 else 37460 # finding both strings is unlikely to happen, but who knows? 37461 ac_cv_c_bigendian=unknown 37462 fi 37463 fi 37464 fi 37465 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37466 conftest$ac_exeext conftest.$ac_ext 37467 else case e in #( 37468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37469 /* end confdefs.h. */ 37470 $ac_includes_default 37471 int 37472 main (void) 37473 { 37474 37475 /* Are we little or big endian? From Harbison&Steele. */ 37476 union 37477 { 37478 long int l; 37479 char c[sizeof (long int)]; 37480 } u; 37481 u.l = 1; 37482 return u.c[sizeof (long int) - 1] == 1; 37483 37484 ; 37485 return 0; 37486 } 37487 _ACEOF 37488 if ac_fn_c_try_run "$LINENO" 37489 then : 37490 ac_cv_c_bigendian=no 37491 else case e in #( 37492 e) ac_cv_c_bigendian=yes ;; 37493 esac 37494 fi 37495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37496 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 37497 esac 37498 fi 37499 37500 fi ;; 37501 esac 37502 fi 37503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 37504 printf "%s\n" "$ac_cv_c_bigendian" >&6; } 37505 case $ac_cv_c_bigendian in #( 37506 yes) 37507 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 37508 ;; #( 37509 no) 37510 ;; #( 37511 universal) 37512 37513 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 37514 37515 ;; #( 37516 *) 37517 as_fn_error $? "unknown endianness 37518 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 37519 esac 37520 37521 37522 37523 37524 37525 HAVE_IOCTL=1 37526 if test "$ac_cv_header_winsock2_h" = yes; then 37527 HAVE_IOCTL=0 37528 else 37529 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" 37530 if test "x$ac_cv_func_ioctl" = xyes 37531 then : 37532 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 37533 37534 fi 37535 37536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5 37537 printf %s "checking for ioctl with POSIX signature... " >&6; } 37538 if test ${gl_cv_func_ioctl_posix_signature+y} 37539 then : 37540 printf %s "(cached) " >&6 37541 else case e in #( 37542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37543 /* end confdefs.h. */ 37544 #include <sys/ioctl.h> 37545 /* On some platforms, ioctl() is declared in <unistd.h>. */ 37546 #include <unistd.h> 37547 37548 int 37549 main (void) 37550 { 37551 extern 37552 #ifdef __cplusplus 37553 "C" 37554 #endif 37555 int ioctl (int, int, ...); 37556 37557 ; 37558 return 0; 37559 } 37560 37561 _ACEOF 37562 if ac_fn_c_try_compile "$LINENO" 37563 then : 37564 gl_cv_func_ioctl_posix_signature=yes 37565 else case e in #( 37566 e) gl_cv_func_ioctl_posix_signature=no ;; 37567 esac 37568 fi 37569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37570 ;; 37571 esac 37572 fi 37573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5 37574 printf "%s\n" "$gl_cv_func_ioctl_posix_signature" >&6; } 37575 if test $gl_cv_func_ioctl_posix_signature != yes; then 37576 REPLACE_IOCTL=1 37577 fi 37578 fi 37579 37580 37581 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then 37582 GL_COND_OBJ_IOCTL_TRUE= 37583 GL_COND_OBJ_IOCTL_FALSE='#' 37584 else 37585 GL_COND_OBJ_IOCTL_TRUE='#' 37586 GL_COND_OBJ_IOCTL_FALSE= 37587 fi 37588 : 37589 if test -z "${GL_COND_OBJ_IOCTL_TRUE}" && test -z "${GL_COND_OBJ_IOCTL_FALSE}"; then 37590 GL_COND_OBJ_IOCTL_TRUE='#' 37591 GL_COND_OBJ_IOCTL_FALSE='#' 37592 fi 37593 37594 37595 37596 37597 37598 37599 37600 37601 37602 37603 if test "$GL_GNULIB_IOCTL" != 1; then 37604 if test "$GL_GNULIB_IOCTL" = 0; then 37605 GL_GNULIB_IOCTL=$gl_module_indicator_condition 37606 else 37607 GL_GNULIB_IOCTL="($GL_GNULIB_IOCTL || $gl_module_indicator_condition)" 37608 fi 37609 fi 37610 37611 37612 37613 37614 37615 printf "%s\n" "#define GNULIB_TEST_IOCTL 1" >>confdefs.h 37616 37617 37618 37619 37620 37621 37622 37623 37624 if test $ac_cv_func_isblank = no; then 37625 HAVE_ISBLANK=0 37626 fi 37627 37628 37629 if test $HAVE_ISBLANK = 0; then 37630 GL_COND_OBJ_ISBLANK_TRUE= 37631 GL_COND_OBJ_ISBLANK_FALSE='#' 37632 else 37633 GL_COND_OBJ_ISBLANK_TRUE='#' 37634 GL_COND_OBJ_ISBLANK_FALSE= 37635 fi 37636 : 37637 if test -z "${GL_COND_OBJ_ISBLANK_TRUE}" && test -z "${GL_COND_OBJ_ISBLANK_FALSE}"; then 37638 GL_COND_OBJ_ISBLANK_TRUE='#' 37639 GL_COND_OBJ_ISBLANK_FALSE='#' 37640 fi 37641 37642 37643 37644 printf "%s\n" "#define GNULIB_ISBLANK $gl_module_indicator_condition" >>confdefs.h 37645 37646 37647 37648 37649 37650 37651 37652 37653 37654 37655 37656 if test "$GL_GNULIB_ISBLANK" != 1; then 37657 if test "$GL_GNULIB_ISBLANK" = 0; then 37658 GL_GNULIB_ISBLANK=$gl_module_indicator_condition 37659 else 37660 GL_GNULIB_ISBLANK="($GL_GNULIB_ISBLANK || $gl_module_indicator_condition)" 37661 fi 37662 fi 37663 37664 37665 37666 37667 37668 37669 37670 if test $ac_cv_func_link = no; then 37671 HAVE_LINK=0 37672 else 37673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether link obeys POSIX" >&5 37674 printf %s "checking whether link obeys POSIX... " >&6; } 37675 if test ${gl_cv_func_link_works+y} 37676 then : 37677 printf %s "(cached) " >&6 37678 else case e in #( 37679 e) touch conftest.a 37680 # Assume that if we have lstat, we can also check symlinks. 37681 if test $ac_cv_func_lstat = yes; then 37682 ln -s conftest.a conftest.lnk 37683 fi 37684 if test "$cross_compiling" = yes 37685 then : 37686 case "$host_os" in 37687 # Guess yes on Linux systems. 37688 linux-* | linux) gl_cv_func_link_works="guessing yes" ;; 37689 # Guess yes on glibc systems. 37690 *-gnu* | gnu*) gl_cv_func_link_works="guessing yes" ;; 37691 # If we don't know, obey --enable-cross-guesses. 37692 *) gl_cv_func_link_works="$gl_cross_guess_normal" ;; 37693 esac 37694 37695 else case e in #( 37696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37697 /* end confdefs.h. */ 37698 #include <unistd.h> 37699 #include <stdio.h> 37700 37701 int 37702 main (void) 37703 { 37704 int result = 0; 37705 if (!link ("conftest.a", "conftest.b/")) 37706 result |= 1; 37707 #if HAVE_LSTAT 37708 if (!link ("conftest.lnk/", "conftest.b")) 37709 result |= 2; 37710 if (rename ("conftest.a", "conftest.b")) 37711 result |= 4; 37712 if (!link ("conftest.b", "conftest.lnk")) 37713 result |= 8; 37714 #endif 37715 return result; 37716 37717 ; 37718 return 0; 37719 } 37720 _ACEOF 37721 if ac_fn_c_try_run "$LINENO" 37722 then : 37723 gl_cv_func_link_works=yes 37724 else case e in #( 37725 e) gl_cv_func_link_works=no ;; 37726 esac 37727 fi 37728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37729 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 37730 esac 37731 fi 37732 37733 rm -f conftest.a conftest.b conftest.lnk ;; 37734 esac 37735 fi 37736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_link_works" >&5 37737 printf "%s\n" "$gl_cv_func_link_works" >&6; } 37738 case "$gl_cv_func_link_works" in 37739 *yes) ;; 37740 *) 37741 REPLACE_LINK=1 37742 ;; 37743 esac 37744 fi 37745 37746 37747 if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then 37748 GL_COND_OBJ_LINK_TRUE= 37749 GL_COND_OBJ_LINK_FALSE='#' 37750 else 37751 GL_COND_OBJ_LINK_TRUE='#' 37752 GL_COND_OBJ_LINK_FALSE= 37753 fi 37754 : 37755 if test -z "${GL_COND_OBJ_LINK_TRUE}" && test -z "${GL_COND_OBJ_LINK_FALSE}"; then 37756 GL_COND_OBJ_LINK_TRUE='#' 37757 GL_COND_OBJ_LINK_FALSE='#' 37758 fi 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 if test "$GL_GNULIB_LINK" != 1; then 37770 if test "$GL_GNULIB_LINK" = 0; then 37771 GL_GNULIB_LINK=$gl_module_indicator_condition 37772 else 37773 GL_GNULIB_LINK="($GL_GNULIB_LINK || $gl_module_indicator_condition)" 37774 fi 37775 fi 37776 37777 37778 37779 37780 37781 printf "%s\n" "#define GNULIB_TEST_LINK 1" >>confdefs.h 37782 37783 37784 37785 37786 37787 if test "$ac_cv_header_winsock2_h" = yes; then 37788 GL_COND_OBJ_LISTEN_TRUE= 37789 GL_COND_OBJ_LISTEN_FALSE='#' 37790 else 37791 GL_COND_OBJ_LISTEN_TRUE='#' 37792 GL_COND_OBJ_LISTEN_FALSE= 37793 fi 37794 : 37795 if test -z "${GL_COND_OBJ_LISTEN_TRUE}" && test -z "${GL_COND_OBJ_LISTEN_FALSE}"; then 37796 GL_COND_OBJ_LISTEN_TRUE='#' 37797 GL_COND_OBJ_LISTEN_FALSE='#' 37798 fi 37799 37800 37801 37802 37803 37804 37805 37806 37807 37808 37809 if test "$GL_GNULIB_LISTEN" != 1; then 37810 if test "$GL_GNULIB_LISTEN" = 0; then 37811 GL_GNULIB_LISTEN=$gl_module_indicator_condition 37812 else 37813 GL_GNULIB_LISTEN="($GL_GNULIB_LISTEN || $gl_module_indicator_condition)" 37814 fi 37815 fi 37816 37817 37818 37819 37820 37821 printf "%s\n" "#define GNULIB_TEST_LISTEN 1" >>confdefs.h 37822 37823 37824 37825 37826 37827 37828 37829 37830 37831 37832 37833 if test $HAVE_LOCALE_T = 1; then 37834 37835 gl_func_newlocale="$ac_cv_func_newlocale" 37836 gl_func_duplocale="$ac_cv_func_duplocale" 37837 gl_func_freelocale="$ac_cv_func_freelocale" 37838 else 37839 gl_func_newlocale=no 37840 gl_func_duplocale=no 37841 gl_func_freelocale=no 37842 fi 37843 if test $gl_func_newlocale != yes; then 37844 HAVE_NEWLOCALE=0 37845 fi 37846 if test $gl_func_duplocale != yes; then 37847 HAVE_DUPLOCALE=0 37848 fi 37849 if test $gl_func_freelocale != yes; then 37850 HAVE_FREELOCALE=0 37851 fi 37852 if test $gt_localename_enhances_locale_funcs = yes; then 37853 REPLACE_NEWLOCALE=1 37854 REPLACE_DUPLOCALE=1 37855 REPLACE_FREELOCALE=1 37856 fi 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 if test "$GL_GNULIB_LOCALENAME" != 1; then 37868 if test "$GL_GNULIB_LOCALENAME" = 0; then 37869 GL_GNULIB_LOCALENAME=$gl_module_indicator_condition 37870 else 37871 GL_GNULIB_LOCALENAME="($GL_GNULIB_LOCALENAME || $gl_module_indicator_condition)" 37872 fi 37873 fi 37874 37875 37876 37877 37878 37879 printf "%s\n" "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 37891 printf %s "checking whether lseek detects pipes... " >&6; } 37892 if test ${gl_cv_func_lseek_pipe+y} 37893 then : 37894 printf %s "(cached) " >&6 37895 else case e in #( 37896 e) case "$host_os" in 37897 mingw*) 37898 gl_cv_func_lseek_pipe=no 37899 ;; 37900 *) 37901 if test $cross_compiling = no; then 37902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37903 /* end confdefs.h. */ 37904 37905 #include <sys/types.h> /* for off_t */ 37906 #include <stdio.h> /* for SEEK_CUR */ 37907 #if HAVE_UNISTD_H 37908 # include <unistd.h> 37909 #else /* on Windows with MSVC */ 37910 # include <io.h> 37911 #endif 37912 37913 37914 $gl_mda_defines 37915 37916 int 37917 main (void) 37918 { 37919 37920 /* Exit with success only if stdin is seekable. */ 37921 return lseek (0, (off_t)0, SEEK_CUR) < 0; 37922 37923 ; 37924 return 0; 37925 } 37926 _ACEOF 37927 if ac_fn_c_try_link "$LINENO" 37928 then : 37929 if test -s conftest$ac_exeext \ 37930 && ./conftest$ac_exeext < conftest.$ac_ext \ 37931 && test 1 = "`echo hi \ 37932 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then 37933 gl_cv_func_lseek_pipe=yes 37934 else 37935 gl_cv_func_lseek_pipe=no 37936 fi 37937 37938 else case e in #( 37939 e) gl_cv_func_lseek_pipe=no ;; 37940 esac 37941 fi 37942 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37943 conftest$ac_exeext conftest.$ac_ext 37944 else 37945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37946 /* end confdefs.h. */ 37947 37948 #if defined __BEOS__ 37949 /* BeOS mistakenly return 0 when trying to seek on pipes. */ 37950 Choke me. 37951 #endif 37952 _ACEOF 37953 if ac_fn_c_try_compile "$LINENO" 37954 then : 37955 gl_cv_func_lseek_pipe=yes 37956 else case e in #( 37957 e) gl_cv_func_lseek_pipe=no ;; 37958 esac 37959 fi 37960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37961 fi 37962 ;; 37963 esac 37964 ;; 37965 esac 37966 fi 37967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 37968 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; } 37969 if test "$gl_cv_func_lseek_pipe" = no; then 37970 REPLACE_LSEEK=1 37971 37972 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h 37973 37974 fi 37975 37976 37977 if test $WINDOWS_64_BIT_OFF_T = 1; then 37978 REPLACE_LSEEK=1 37979 fi 37980 37981 case $host_os in 37982 darwin*) 37983 REPLACE_LSEEK=1;; 37984 esac 37985 37986 37987 if test $REPLACE_LSEEK = 1; then 37988 GL_COND_OBJ_LSEEK_TRUE= 37989 GL_COND_OBJ_LSEEK_FALSE='#' 37990 else 37991 GL_COND_OBJ_LSEEK_TRUE='#' 37992 GL_COND_OBJ_LSEEK_FALSE= 37993 fi 37994 : 37995 if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then 37996 GL_COND_OBJ_LSEEK_TRUE='#' 37997 GL_COND_OBJ_LSEEK_FALSE='#' 37998 fi 37999 38000 38001 38002 38003 38004 38005 38006 38007 38008 38009 if test "$GL_GNULIB_LSEEK" != 1; then 38010 if test "$GL_GNULIB_LSEEK" = 0; then 38011 GL_GNULIB_LSEEK=$gl_module_indicator_condition 38012 else 38013 GL_GNULIB_LSEEK="($GL_GNULIB_LSEEK || $gl_module_indicator_condition)" 38014 fi 38015 fi 38016 38017 38018 38019 38020 38021 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h 38022 38023 38024 38025 38026 38027 38028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 38029 printf %s "checking for a traditional french locale... " >&6; } 38030 if test ${gt_cv_locale_fr+y} 38031 then : 38032 printf %s "(cached) " >&6 38033 else case e in #( 38034 e) 38035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38036 /* end confdefs.h. */ 38037 38038 #include <locale.h> 38039 #include <time.h> 38040 #if HAVE_LANGINFO_CODESET 38041 # include <langinfo.h> 38042 #endif 38043 #include <stdlib.h> 38044 #include <string.h> 38045 struct tm t; 38046 char buf[16]; 38047 int main () { 38048 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 38049 imitates locale dependent behaviour by looking at the environment 38050 variables, and all locales use the UTF-8 encoding. */ 38051 #if defined __BEOS__ || defined __HAIKU__ 38052 return 1; 38053 #else 38054 /* Check whether the given locale name is recognized by the system. */ 38055 # if defined _WIN32 && !defined __CYGWIN__ 38056 /* On native Windows, setlocale(category, "") looks at the system settings, 38057 not at the environment variables. Also, when an encoding suffix such 38058 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 38059 category of the locale to "C". */ 38060 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 38061 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 38062 return 1; 38063 # else 38064 if (setlocale (LC_ALL, "") == NULL) return 1; 38065 # endif 38066 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 38067 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 38068 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 38069 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 38070 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 38071 some unit tests fail. 38072 On MirBSD 10, when an unsupported locale is specified, setlocale() 38073 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 38074 # if HAVE_LANGINFO_CODESET 38075 { 38076 const char *cs = nl_langinfo (CODESET); 38077 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 38078 || strcmp (cs, "UTF-8") == 0) 38079 return 1; 38080 } 38081 # endif 38082 # ifdef __CYGWIN__ 38083 /* On Cygwin, avoid locale names without encoding suffix, because the 38084 locale_charset() function relies on the encoding suffix. Note that 38085 LC_ALL is set on the command line. */ 38086 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 38087 # endif 38088 /* Check whether in the abbreviation of the second month, the second 38089 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 38090 one byte long. This excludes the UTF-8 encoding. */ 38091 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 38092 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 38093 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 38094 /* Check whether the decimal separator is a comma. 38095 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 38096 are nl_langinfo(RADIXCHAR) are both ".". */ 38097 if (localeconv () ->decimal_point[0] != ',') return 1; 38098 # endif 38099 return 0; 38100 #endif 38101 } 38102 38103 _ACEOF 38104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 38105 (eval $ac_link) 2>&5 38106 ac_status=$? 38107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38108 test $ac_status = 0; } && test -s conftest$ac_exeext; then 38109 case "$host_os" in 38110 # Handle native Windows specially, because there setlocale() interprets 38111 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 38112 # "fr" or "fra" as "French" or "French_France.1252", 38113 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 38114 # "ja" as "Japanese" or "Japanese_Japan.932", 38115 # and similar. 38116 mingw*) 38117 # Test for the native Windows locale name. 38118 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38119 gt_cv_locale_fr=French_France.1252 38120 else 38121 # None found. 38122 gt_cv_locale_fr=none 38123 fi 38124 ;; 38125 *) 38126 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 38127 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 38128 # configure script would override the LC_ALL setting. Likewise for 38129 # LC_CTYPE, which is also set at the beginning of the configure script. 38130 # Test for the usual locale name. 38131 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38132 gt_cv_locale_fr=fr_FR 38133 else 38134 # Test for the locale name with explicit encoding suffix. 38135 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38136 gt_cv_locale_fr=fr_FR.ISO-8859-1 38137 else 38138 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 38139 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38140 gt_cv_locale_fr=fr_FR.ISO8859-1 38141 else 38142 # Test for the HP-UX locale name. 38143 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38144 gt_cv_locale_fr=fr_FR.iso88591 38145 else 38146 # Test for the Solaris 7 locale name. 38147 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38148 gt_cv_locale_fr=fr 38149 else 38150 # None found. 38151 gt_cv_locale_fr=none 38152 fi 38153 fi 38154 fi 38155 fi 38156 fi 38157 ;; 38158 esac 38159 fi 38160 rm -fr conftest* 38161 ;; 38162 esac 38163 fi 38164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 38165 printf "%s\n" "$gt_cv_locale_fr" >&6; } 38166 LOCALE_FR=$gt_cv_locale_fr 38167 38168 38169 38170 38171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 38172 printf %s "checking for a french Unicode locale... " >&6; } 38173 if test ${gt_cv_locale_fr_utf8+y} 38174 then : 38175 printf %s "(cached) " >&6 38176 else case e in #( 38177 e) 38178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38179 /* end confdefs.h. */ 38180 38181 #include <locale.h> 38182 #include <time.h> 38183 #if HAVE_LANGINFO_CODESET 38184 # include <langinfo.h> 38185 #endif 38186 #include <stdlib.h> 38187 #include <string.h> 38188 struct tm t; 38189 char buf[16]; 38190 int main () { 38191 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 38192 imitates locale dependent behaviour by looking at the environment 38193 variables, and all locales use the UTF-8 encoding. */ 38194 #if !(defined __BEOS__ || defined __HAIKU__) 38195 /* Check whether the given locale name is recognized by the system. */ 38196 # if defined _WIN32 && !defined __CYGWIN__ 38197 /* On native Windows, setlocale(category, "") looks at the system settings, 38198 not at the environment variables. Also, when an encoding suffix such 38199 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 38200 category of the locale to "C". */ 38201 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 38202 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 38203 return 1; 38204 # else 38205 if (setlocale (LC_ALL, "") == NULL) return 1; 38206 # endif 38207 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 38208 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 38209 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 38210 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 38211 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 38212 some unit tests fail. */ 38213 # if HAVE_LANGINFO_CODESET 38214 { 38215 const char *cs = nl_langinfo (CODESET); 38216 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 38217 return 1; 38218 } 38219 # endif 38220 # ifdef __CYGWIN__ 38221 /* On Cygwin, avoid locale names without encoding suffix, because the 38222 locale_charset() function relies on the encoding suffix. Note that 38223 LC_ALL is set on the command line. */ 38224 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 38225 # endif 38226 /* Check whether in the abbreviation of the second month, the second 38227 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 38228 two bytes long, with UTF-8 encoding. */ 38229 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 38230 if (strftime (buf, sizeof (buf), "%b", &t) < 4 38231 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 38232 return 1; 38233 #endif 38234 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 38235 /* Check whether the decimal separator is a comma. 38236 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 38237 are nl_langinfo(RADIXCHAR) are both ".". */ 38238 if (localeconv () ->decimal_point[0] != ',') return 1; 38239 #endif 38240 return 0; 38241 } 38242 38243 _ACEOF 38244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 38245 (eval $ac_link) 2>&5 38246 ac_status=$? 38247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38248 test $ac_status = 0; } && test -s conftest$ac_exeext; then 38249 case "$host_os" in 38250 # Handle native Windows specially, because there setlocale() interprets 38251 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 38252 # "fr" or "fra" as "French" or "French_France.1252", 38253 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 38254 # "ja" as "Japanese" or "Japanese_Japan.932", 38255 # and similar. 38256 mingw*) 38257 # Test for the hypothetical native Windows locale name. 38258 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38259 gt_cv_locale_fr_utf8=French_France.65001 38260 else 38261 # None found. 38262 gt_cv_locale_fr_utf8=none 38263 fi 38264 ;; 38265 *) 38266 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 38267 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 38268 # configure script would override the LC_ALL setting. Likewise for 38269 # LC_CTYPE, which is also set at the beginning of the configure script. 38270 # Test for the usual locale name. 38271 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38272 gt_cv_locale_fr_utf8=fr_FR 38273 else 38274 # Test for the locale name with explicit encoding suffix. 38275 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38276 gt_cv_locale_fr_utf8=fr_FR.UTF-8 38277 else 38278 # Test for the Solaris 7 locale name. 38279 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38280 gt_cv_locale_fr_utf8=fr.UTF-8 38281 else 38282 # None found. 38283 gt_cv_locale_fr_utf8=none 38284 fi 38285 fi 38286 fi 38287 ;; 38288 esac 38289 fi 38290 rm -fr conftest* 38291 ;; 38292 esac 38293 fi 38294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 38295 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 38296 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 38297 38298 38299 38300 38301 38302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 38303 printf %s "checking for a traditional japanese locale... " >&6; } 38304 if test ${gt_cv_locale_ja+y} 38305 then : 38306 printf %s "(cached) " >&6 38307 else case e in #( 38308 e) 38309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38310 /* end confdefs.h. */ 38311 38312 #include <locale.h> 38313 #include <time.h> 38314 #if HAVE_LANGINFO_CODESET 38315 # include <langinfo.h> 38316 #endif 38317 #include <stdlib.h> 38318 #include <string.h> 38319 struct tm t; 38320 char buf[16]; 38321 int main () 38322 { 38323 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 38324 imitates locale dependent behaviour by looking at the environment 38325 variables, and all locales use the UTF-8 encoding. */ 38326 #if defined __BEOS__ || defined __HAIKU__ 38327 return 1; 38328 #else 38329 /* Check whether the given locale name is recognized by the system. */ 38330 # if defined _WIN32 && !defined __CYGWIN__ 38331 /* On native Windows, setlocale(category, "") looks at the system settings, 38332 not at the environment variables. Also, when an encoding suffix such 38333 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 38334 category of the locale to "C". */ 38335 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 38336 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 38337 return 1; 38338 # else 38339 if (setlocale (LC_ALL, "") == NULL) return 1; 38340 # endif 38341 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 38342 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 38343 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 38344 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 38345 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 38346 some unit tests fail. 38347 On MirBSD 10, when an unsupported locale is specified, setlocale() 38348 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 38349 # if HAVE_LANGINFO_CODESET 38350 { 38351 const char *cs = nl_langinfo (CODESET); 38352 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 38353 || strcmp (cs, "UTF-8") == 0) 38354 return 1; 38355 } 38356 # endif 38357 # ifdef __CYGWIN__ 38358 /* On Cygwin, avoid locale names without encoding suffix, because the 38359 locale_charset() function relies on the encoding suffix. Note that 38360 LC_ALL is set on the command line. */ 38361 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 38362 # endif 38363 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 38364 on Cygwin 1.5.x. */ 38365 if (MB_CUR_MAX == 1) 38366 return 1; 38367 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 38368 This excludes the UTF-8 encoding (except on MirBSD). */ 38369 { 38370 const char *p; 38371 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 38372 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 38373 for (p = buf; *p != '\0'; p++) 38374 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 38375 return 1; 38376 } 38377 return 0; 38378 #endif 38379 } 38380 38381 _ACEOF 38382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 38383 (eval $ac_link) 2>&5 38384 ac_status=$? 38385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38386 test $ac_status = 0; } && test -s conftest$ac_exeext; then 38387 case "$host_os" in 38388 # Handle native Windows specially, because there setlocale() interprets 38389 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 38390 # "fr" or "fra" as "French" or "French_France.1252", 38391 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 38392 # "ja" as "Japanese" or "Japanese_Japan.932", 38393 # and similar. 38394 mingw*) 38395 # Note that on native Windows, the Japanese locale is 38396 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 38397 # cannot use it here. 38398 gt_cv_locale_ja=none 38399 ;; 38400 *) 38401 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 38402 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 38403 # configure script would override the LC_ALL setting. Likewise for 38404 # LC_CTYPE, which is also set at the beginning of the configure script. 38405 # Test for the AIX locale name. 38406 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38407 gt_cv_locale_ja=ja_JP 38408 else 38409 # Test for the locale name with explicit encoding suffix. 38410 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38411 gt_cv_locale_ja=ja_JP.EUC-JP 38412 else 38413 # Test for the HP-UX, OSF/1, NetBSD locale name. 38414 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38415 gt_cv_locale_ja=ja_JP.eucJP 38416 else 38417 # Test for the IRIX, FreeBSD locale name. 38418 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38419 gt_cv_locale_ja=ja_JP.EUC 38420 else 38421 # Test for the Solaris 7 locale name. 38422 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38423 gt_cv_locale_ja=ja 38424 else 38425 # Special test for NetBSD 1.6. 38426 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 38427 gt_cv_locale_ja=ja_JP.eucJP 38428 else 38429 # None found. 38430 gt_cv_locale_ja=none 38431 fi 38432 fi 38433 fi 38434 fi 38435 fi 38436 fi 38437 ;; 38438 esac 38439 fi 38440 rm -fr conftest* 38441 ;; 38442 esac 38443 fi 38444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 38445 printf "%s\n" "$gt_cv_locale_ja" >&6; } 38446 LOCALE_JA=$gt_cv_locale_ja 38447 38448 38449 38450 38451 38452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 38453 printf %s "checking for a transitional chinese locale... " >&6; } 38454 if test ${gt_cv_locale_zh_CN+y} 38455 then : 38456 printf %s "(cached) " >&6 38457 else case e in #( 38458 e) 38459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38460 /* end confdefs.h. */ 38461 38462 #include <locale.h> 38463 #include <stdlib.h> 38464 #include <time.h> 38465 #if HAVE_LANGINFO_CODESET 38466 # include <langinfo.h> 38467 #endif 38468 #include <stdlib.h> 38469 #include <string.h> 38470 struct tm t; 38471 char buf[16]; 38472 int main () 38473 { 38474 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 38475 imitates locale dependent behaviour by looking at the environment 38476 variables, and all locales use the UTF-8 encoding. */ 38477 #if defined __BEOS__ || defined __HAIKU__ 38478 return 1; 38479 #else 38480 /* Check whether the given locale name is recognized by the system. */ 38481 # if defined _WIN32 && !defined __CYGWIN__ 38482 /* On native Windows, setlocale(category, "") looks at the system settings, 38483 not at the environment variables. Also, when an encoding suffix such 38484 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 38485 category of the locale to "C". */ 38486 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 38487 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 38488 return 1; 38489 # else 38490 if (setlocale (LC_ALL, "") == NULL) return 1; 38491 # endif 38492 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 38493 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 38494 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 38495 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 38496 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 38497 some unit tests fail. 38498 On MirBSD 10, when an unsupported locale is specified, setlocale() 38499 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 38500 # if HAVE_LANGINFO_CODESET 38501 { 38502 const char *cs = nl_langinfo (CODESET); 38503 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 38504 || strcmp (cs, "UTF-8") == 0) 38505 return 1; 38506 } 38507 # endif 38508 # ifdef __CYGWIN__ 38509 /* On Cygwin, avoid locale names without encoding suffix, because the 38510 locale_charset() function relies on the encoding suffix. Note that 38511 LC_ALL is set on the command line. */ 38512 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 38513 # endif 38514 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 38515 This excludes the UTF-8 encoding (except on MirBSD). */ 38516 { 38517 const char *p; 38518 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 38519 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 38520 for (p = buf; *p != '\0'; p++) 38521 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 38522 return 1; 38523 } 38524 /* Check whether a typical GB18030 multibyte sequence is recognized as a 38525 single wide character. This excludes the GB2312 and GBK encodings. */ 38526 if (mblen ("\203\062\332\066", 5) != 4) 38527 return 1; 38528 return 0; 38529 #endif 38530 } 38531 38532 _ACEOF 38533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 38534 (eval $ac_link) 2>&5 38535 ac_status=$? 38536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38537 test $ac_status = 0; } && test -s conftest$ac_exeext; then 38538 case "$host_os" in 38539 # Handle native Windows specially, because there setlocale() interprets 38540 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 38541 # "fr" or "fra" as "French" or "French_France.1252", 38542 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 38543 # "ja" as "Japanese" or "Japanese_Japan.932", 38544 # and similar. 38545 mingw*) 38546 # Test for the hypothetical native Windows locale name. 38547 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38548 gt_cv_locale_zh_CN=Chinese_China.54936 38549 else 38550 # None found. 38551 gt_cv_locale_zh_CN=none 38552 fi 38553 ;; 38554 solaris2.8) 38555 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 38556 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 38557 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 38558 gt_cv_locale_zh_CN=none 38559 ;; 38560 *) 38561 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 38562 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 38563 # configure script would override the LC_ALL setting. Likewise for 38564 # LC_CTYPE, which is also set at the beginning of the configure script. 38565 # Test for the locale name without encoding suffix. 38566 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38567 gt_cv_locale_zh_CN=zh_CN 38568 else 38569 # Test for the locale name with explicit encoding suffix. 38570 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38571 gt_cv_locale_zh_CN=zh_CN.GB18030 38572 else 38573 # None found. 38574 gt_cv_locale_zh_CN=none 38575 fi 38576 fi 38577 ;; 38578 esac 38579 else 38580 # If there was a link error, due to mblen(), the system is so old that 38581 # it certainly doesn't have a chinese locale. 38582 gt_cv_locale_zh_CN=none 38583 fi 38584 rm -fr conftest* 38585 ;; 38586 esac 38587 fi 38588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 38589 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 38590 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 38591 38592 38593 38594 38595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 38596 printf %s "checking for a french Unicode locale... " >&6; } 38597 if test ${gt_cv_locale_fr_utf8+y} 38598 then : 38599 printf %s "(cached) " >&6 38600 else case e in #( 38601 e) 38602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38603 /* end confdefs.h. */ 38604 38605 #include <locale.h> 38606 #include <time.h> 38607 #if HAVE_LANGINFO_CODESET 38608 # include <langinfo.h> 38609 #endif 38610 #include <stdlib.h> 38611 #include <string.h> 38612 struct tm t; 38613 char buf[16]; 38614 int main () { 38615 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 38616 imitates locale dependent behaviour by looking at the environment 38617 variables, and all locales use the UTF-8 encoding. */ 38618 #if !(defined __BEOS__ || defined __HAIKU__) 38619 /* Check whether the given locale name is recognized by the system. */ 38620 # if defined _WIN32 && !defined __CYGWIN__ 38621 /* On native Windows, setlocale(category, "") looks at the system settings, 38622 not at the environment variables. Also, when an encoding suffix such 38623 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 38624 category of the locale to "C". */ 38625 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 38626 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 38627 return 1; 38628 # else 38629 if (setlocale (LC_ALL, "") == NULL) return 1; 38630 # endif 38631 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 38632 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 38633 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 38634 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 38635 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 38636 some unit tests fail. */ 38637 # if HAVE_LANGINFO_CODESET 38638 { 38639 const char *cs = nl_langinfo (CODESET); 38640 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 38641 return 1; 38642 } 38643 # endif 38644 # ifdef __CYGWIN__ 38645 /* On Cygwin, avoid locale names without encoding suffix, because the 38646 locale_charset() function relies on the encoding suffix. Note that 38647 LC_ALL is set on the command line. */ 38648 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 38649 # endif 38650 /* Check whether in the abbreviation of the second month, the second 38651 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 38652 two bytes long, with UTF-8 encoding. */ 38653 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 38654 if (strftime (buf, sizeof (buf), "%b", &t) < 4 38655 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 38656 return 1; 38657 #endif 38658 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 38659 /* Check whether the decimal separator is a comma. 38660 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 38661 are nl_langinfo(RADIXCHAR) are both ".". */ 38662 if (localeconv () ->decimal_point[0] != ',') return 1; 38663 #endif 38664 return 0; 38665 } 38666 38667 _ACEOF 38668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 38669 (eval $ac_link) 2>&5 38670 ac_status=$? 38671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38672 test $ac_status = 0; } && test -s conftest$ac_exeext; then 38673 case "$host_os" in 38674 # Handle native Windows specially, because there setlocale() interprets 38675 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 38676 # "fr" or "fra" as "French" or "French_France.1252", 38677 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 38678 # "ja" as "Japanese" or "Japanese_Japan.932", 38679 # and similar. 38680 mingw*) 38681 # Test for the hypothetical native Windows locale name. 38682 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38683 gt_cv_locale_fr_utf8=French_France.65001 38684 else 38685 # None found. 38686 gt_cv_locale_fr_utf8=none 38687 fi 38688 ;; 38689 *) 38690 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 38691 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 38692 # configure script would override the LC_ALL setting. Likewise for 38693 # LC_CTYPE, which is also set at the beginning of the configure script. 38694 # Test for the usual locale name. 38695 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38696 gt_cv_locale_fr_utf8=fr_FR 38697 else 38698 # Test for the locale name with explicit encoding suffix. 38699 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38700 gt_cv_locale_fr_utf8=fr_FR.UTF-8 38701 else 38702 # Test for the Solaris 7 locale name. 38703 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 38704 gt_cv_locale_fr_utf8=fr.UTF-8 38705 else 38706 # None found. 38707 gt_cv_locale_fr_utf8=none 38708 fi 38709 fi 38710 fi 38711 ;; 38712 esac 38713 fi 38714 rm -fr conftest* 38715 ;; 38716 esac 38717 fi 38718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 38719 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 38720 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 38721 38722 38723 38724 38725 38726 38727 38728 38729 38730 38731 38732 38733 38734 38735 38736 nanosleep_save_libs=$LIBS 38737 38738 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. 38739 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 38740 LIB_NANOSLEEP= 38741 38742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 38743 printf %s "checking for library containing nanosleep... " >&6; } 38744 if test ${ac_cv_search_nanosleep+y} 38745 then : 38746 printf %s "(cached) " >&6 38747 else case e in #( 38748 e) ac_func_search_save_LIBS=$LIBS 38749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38750 /* end confdefs.h. */ 38751 38752 /* Override any GCC internal prototype to avoid an error. 38753 Use char because int might match the return type of a GCC 38754 builtin and then its argument prototype would still apply. 38755 The 'extern "C"' is for builds by C++ compilers; 38756 although this is not generally supported in C code, supporting it here 38757 has little cost and some practical benefit (sr 110532). */ 38758 #ifdef __cplusplus 38759 extern "C" 38760 #endif 38761 char nanosleep (void); 38762 int 38763 main (void) 38764 { 38765 return nanosleep (); 38766 ; 38767 return 0; 38768 } 38769 _ACEOF 38770 for ac_lib in '' rt posix4 38771 do 38772 if test -z "$ac_lib"; then 38773 ac_res="none required" 38774 else 38775 ac_res=-l$ac_lib 38776 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 38777 fi 38778 if ac_fn_c_try_link "$LINENO" 38779 then : 38780 ac_cv_search_nanosleep=$ac_res 38781 fi 38782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38783 conftest$ac_exeext 38784 if test ${ac_cv_search_nanosleep+y} 38785 then : 38786 break 38787 fi 38788 done 38789 if test ${ac_cv_search_nanosleep+y} 38790 then : 38791 38792 else case e in #( 38793 e) ac_cv_search_nanosleep=no ;; 38794 esac 38795 fi 38796 rm conftest.$ac_ext 38797 LIBS=$ac_func_search_save_LIBS ;; 38798 esac 38799 fi 38800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 38801 printf "%s\n" "$ac_cv_search_nanosleep" >&6; } 38802 ac_res=$ac_cv_search_nanosleep 38803 if test "$ac_res" != no 38804 then : 38805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 38806 test "$ac_cv_search_nanosleep" = "none required" || 38807 LIB_NANOSLEEP=$ac_cv_search_nanosleep 38808 fi 38809 38810 if test "x$ac_cv_search_nanosleep" != xno; then 38811 38812 38813 if test $APPLE_UNIVERSAL_BUILD = 1; then 38814 # A universal build on Apple Mac OS X platforms. 38815 # The test result would be 'no (mishandles large arguments)' in 64-bit 38816 # mode but 'yes' in 32-bit mode. But we need a configuration result that 38817 # is valid in both modes. 38818 gl_cv_func_nanosleep='no (mishandles large arguments)' 38819 fi 38820 38821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5 38822 printf %s "checking for working nanosleep... " >&6; } 38823 if test ${gl_cv_func_nanosleep+y} 38824 then : 38825 printf %s "(cached) " >&6 38826 else case e in #( 38827 e) 38828 if test "$cross_compiling" = yes 38829 then : 38830 case "$host_os" in 38831 linux*) # Guess it halfway works when the kernel is Linux. 38832 gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;; 38833 mingw*) # Guess no on native Windows. 38834 gl_cv_func_nanosleep='guessing no' ;; 38835 *) # If we don't know, obey --enable-cross-guesses. 38836 gl_cv_func_nanosleep="$gl_cross_guess_normal" ;; 38837 esac 38838 38839 else case e in #( 38840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38841 /* end confdefs.h. */ 38842 38843 #include <errno.h> 38844 #include <limits.h> 38845 #include <signal.h> 38846 #include <time.h> 38847 #include <unistd.h> 38848 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) 38849 #define TYPE_MAXIMUM(t) \ 38850 ((t) (! TYPE_SIGNED (t) \ 38851 ? (t) -1 \ 38852 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 38853 38854 #if HAVE_DECL_ALARM 38855 static void 38856 check_for_SIGALRM (int sig) 38857 { 38858 if (sig != SIGALRM) 38859 _exit (1); 38860 } 38861 #endif 38862 38863 int 38864 main () 38865 { 38866 static struct timespec ts_sleep; 38867 static struct timespec ts_remaining; 38868 /* Test for major problems first. */ 38869 if (! nanosleep) 38870 return 2; 38871 ts_sleep.tv_sec = 0; 38872 ts_sleep.tv_nsec = 1; 38873 #if HAVE_DECL_ALARM 38874 { 38875 static struct sigaction act; 38876 act.sa_handler = check_for_SIGALRM; 38877 sigemptyset (&act.sa_mask); 38878 sigaction (SIGALRM, &act, NULL); 38879 alarm (1); 38880 if (nanosleep (&ts_sleep, NULL) != 0) 38881 return 3; 38882 /* Test for a minor problem: the handling of large arguments. */ 38883 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t); 38884 ts_sleep.tv_nsec = 999999999; 38885 alarm (1); 38886 if (nanosleep (&ts_sleep, &ts_remaining) != -1) 38887 return 4; 38888 if (errno != EINTR) 38889 return 5; 38890 if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10) 38891 return 6; 38892 } 38893 #else /* A simpler test for native Windows. */ 38894 if (nanosleep (&ts_sleep, &ts_remaining) < 0) 38895 return 3; 38896 /* Test for 32-bit mingw bug: negative nanosecond values do not 38897 cause failure. */ 38898 ts_sleep.tv_sec = 1; 38899 ts_sleep.tv_nsec = -1; 38900 if (nanosleep (&ts_sleep, &ts_remaining) != -1) 38901 return 7; 38902 #endif 38903 return 0; 38904 } 38905 _ACEOF 38906 if ac_fn_c_try_run "$LINENO" 38907 then : 38908 gl_cv_func_nanosleep=yes 38909 else case e in #( 38910 e) case $? in 38911 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)' ;; 38912 7) gl_cv_func_nanosleep='no (mishandles negative tv_nsec)' ;; 38913 *) gl_cv_func_nanosleep=no ;; 38914 esac ;; 38915 esac 38916 fi 38917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38918 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 38919 esac 38920 fi 38921 38922 ;; 38923 esac 38924 fi 38925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5 38926 printf "%s\n" "$gl_cv_func_nanosleep" >&6; } 38927 case "$gl_cv_func_nanosleep" in 38928 *yes) 38929 REPLACE_NANOSLEEP=0 38930 ;; 38931 *) 38932 REPLACE_NANOSLEEP=1 38933 case "$gl_cv_func_nanosleep" in 38934 *"mishandles large arguments"*) 38935 38936 printf "%s\n" "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h 38937 38938 ;; 38939 esac 38940 ;; 38941 esac 38942 else 38943 HAVE_NANOSLEEP=0 38944 fi 38945 LIBS=$nanosleep_save_libs 38946 38947 38948 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then 38949 GL_COND_OBJ_NANOSLEEP_TRUE= 38950 GL_COND_OBJ_NANOSLEEP_FALSE='#' 38951 else 38952 GL_COND_OBJ_NANOSLEEP_TRUE='#' 38953 GL_COND_OBJ_NANOSLEEP_FALSE= 38954 fi 38955 : 38956 if test -z "${GL_COND_OBJ_NANOSLEEP_TRUE}" && test -z "${GL_COND_OBJ_NANOSLEEP_FALSE}"; then 38957 GL_COND_OBJ_NANOSLEEP_TRUE='#' 38958 GL_COND_OBJ_NANOSLEEP_FALSE='#' 38959 fi 38960 38961 38962 38963 38964 38965 38966 38967 38968 38969 38970 if test "$GL_GNULIB_NANOSLEEP" != 1; then 38971 if test "$GL_GNULIB_NANOSLEEP" = 0; then 38972 GL_GNULIB_NANOSLEEP=$gl_module_indicator_condition 38973 else 38974 GL_GNULIB_NANOSLEEP="($GL_GNULIB_NANOSLEEP || $gl_module_indicator_condition)" 38975 fi 38976 fi 38977 38978 38979 38980 38981 38982 printf "%s\n" "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h 38983 38984 38985 38986 38987 38988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5 38989 printf %s "checking whether <netinet/in.h> is self-contained... " >&6; } 38990 if test ${gl_cv_header_netinet_in_h_selfcontained+y} 38991 then : 38992 printf %s "(cached) " >&6 38993 else case e in #( 38994 e) 38995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38996 /* end confdefs.h. */ 38997 #include <netinet/in.h> 38998 int 38999 main (void) 39000 { 39001 39002 ; 39003 return 0; 39004 } 39005 _ACEOF 39006 if ac_fn_c_try_compile "$LINENO" 39007 then : 39008 gl_cv_header_netinet_in_h_selfcontained=yes 39009 else case e in #( 39010 e) gl_cv_header_netinet_in_h_selfcontained=no ;; 39011 esac 39012 fi 39013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39014 ;; 39015 esac 39016 fi 39017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 39018 printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; } 39019 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then 39020 GL_GENERATE_NETINET_IN_H=false 39021 else 39022 GL_GENERATE_NETINET_IN_H=true 39023 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 39024 if test "x$ac_cv_header_netinet_in_h" = xyes 39025 then : 39026 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 39027 39028 fi 39029 39030 39031 39032 39033 39034 39035 39036 39037 39038 39039 if test $gl_cv_have_include_next = yes; then 39040 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 39041 else 39042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5 39043 printf %s "checking absolute name of <netinet/in.h>... " >&6; } 39044 if test ${gl_cv_next_netinet_in_h+y} 39045 then : 39046 printf %s "(cached) " >&6 39047 else case e in #( 39048 e) 39049 if test $ac_cv_header_netinet_in_h = yes; then 39050 39051 39052 39053 39054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39055 /* end confdefs.h. */ 39056 #include <netinet/in.h> 39057 _ACEOF 39058 case "$host_os" in 39059 aix*) gl_absname_cpp="$ac_cpp -C" ;; 39060 *) gl_absname_cpp="$ac_cpp" ;; 39061 esac 39062 39063 case "$host_os" in 39064 mingw*) 39065 gl_dirsep_regex='[/\\]' 39066 ;; 39067 *) 39068 gl_dirsep_regex='\/' 39069 ;; 39070 esac 39071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 39072 gl_header_literal_regex=`echo 'netinet/in.h' \ 39073 | sed -e "$gl_make_literal_regex_sed"` 39074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 39075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 39076 s|^/[^/]|//&| 39077 p 39078 q 39079 }' 39080 39081 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 39082 sed -n "$gl_absolute_header_sed"` 39083 39084 gl_header=$gl_cv_absolute_netinet_in_h 39085 gl_cv_next_netinet_in_h='"'$gl_header'"' 39086 else 39087 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 39088 fi 39089 39090 ;; 39091 esac 39092 fi 39093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 39094 printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; } 39095 fi 39096 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h 39097 39098 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 39099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 39100 gl_next_as_first_directive='<'netinet/in.h'>' 39101 else 39102 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 39103 gl_next_as_first_directive=$gl_cv_next_netinet_in_h 39104 fi 39105 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive 39106 39107 39108 39109 39110 if test $ac_cv_header_netinet_in_h = yes; then 39111 HAVE_NETINET_IN_H=1 39112 else 39113 HAVE_NETINET_IN_H=0 39114 fi 39115 39116 fi 39117 39118 39119 39120 39121 39122 case "$GL_GENERATE_NETINET_IN_H" in 39123 false) NETINET_IN_H='' ;; 39124 true) 39125 if test -z "$NETINET_IN_H"; then 39126 NETINET_IN_H="${gl_source_base_prefix}netinet/in.h" 39127 fi 39128 ;; 39129 *) echo "*** GL_GENERATE_NETINET_IN_H is not set correctly" 1>&2; exit 1 ;; 39130 esac 39131 39132 39133 if $GL_GENERATE_NETINET_IN_H; then 39134 GL_GENERATE_NETINET_IN_H_TRUE= 39135 GL_GENERATE_NETINET_IN_H_FALSE='#' 39136 else 39137 GL_GENERATE_NETINET_IN_H_TRUE='#' 39138 GL_GENERATE_NETINET_IN_H_FALSE= 39139 fi 39140 : 39141 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then 39142 GL_GENERATE_NETINET_IN_H_TRUE='#' 39143 GL_GENERATE_NETINET_IN_H_FALSE='#' 39144 fi 39145 39146 39147 39148 39149 39150 39151 39152 39153 39154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 39155 printf %s "checking for a traditional french locale... " >&6; } 39156 if test ${gt_cv_locale_fr+y} 39157 then : 39158 printf %s "(cached) " >&6 39159 else case e in #( 39160 e) 39161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39162 /* end confdefs.h. */ 39163 39164 #include <locale.h> 39165 #include <time.h> 39166 #if HAVE_LANGINFO_CODESET 39167 # include <langinfo.h> 39168 #endif 39169 #include <stdlib.h> 39170 #include <string.h> 39171 struct tm t; 39172 char buf[16]; 39173 int main () { 39174 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 39175 imitates locale dependent behaviour by looking at the environment 39176 variables, and all locales use the UTF-8 encoding. */ 39177 #if defined __BEOS__ || defined __HAIKU__ 39178 return 1; 39179 #else 39180 /* Check whether the given locale name is recognized by the system. */ 39181 # if defined _WIN32 && !defined __CYGWIN__ 39182 /* On native Windows, setlocale(category, "") looks at the system settings, 39183 not at the environment variables. Also, when an encoding suffix such 39184 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 39185 category of the locale to "C". */ 39186 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 39187 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 39188 return 1; 39189 # else 39190 if (setlocale (LC_ALL, "") == NULL) return 1; 39191 # endif 39192 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 39193 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 39194 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 39195 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 39196 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 39197 some unit tests fail. 39198 On MirBSD 10, when an unsupported locale is specified, setlocale() 39199 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 39200 # if HAVE_LANGINFO_CODESET 39201 { 39202 const char *cs = nl_langinfo (CODESET); 39203 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 39204 || strcmp (cs, "UTF-8") == 0) 39205 return 1; 39206 } 39207 # endif 39208 # ifdef __CYGWIN__ 39209 /* On Cygwin, avoid locale names without encoding suffix, because the 39210 locale_charset() function relies on the encoding suffix. Note that 39211 LC_ALL is set on the command line. */ 39212 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 39213 # endif 39214 /* Check whether in the abbreviation of the second month, the second 39215 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 39216 one byte long. This excludes the UTF-8 encoding. */ 39217 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 39218 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 39219 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 39220 /* Check whether the decimal separator is a comma. 39221 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 39222 are nl_langinfo(RADIXCHAR) are both ".". */ 39223 if (localeconv () ->decimal_point[0] != ',') return 1; 39224 # endif 39225 return 0; 39226 #endif 39227 } 39228 39229 _ACEOF 39230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 39231 (eval $ac_link) 2>&5 39232 ac_status=$? 39233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39234 test $ac_status = 0; } && test -s conftest$ac_exeext; then 39235 case "$host_os" in 39236 # Handle native Windows specially, because there setlocale() interprets 39237 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 39238 # "fr" or "fra" as "French" or "French_France.1252", 39239 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 39240 # "ja" as "Japanese" or "Japanese_Japan.932", 39241 # and similar. 39242 mingw*) 39243 # Test for the native Windows locale name. 39244 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39245 gt_cv_locale_fr=French_France.1252 39246 else 39247 # None found. 39248 gt_cv_locale_fr=none 39249 fi 39250 ;; 39251 *) 39252 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 39253 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 39254 # configure script would override the LC_ALL setting. Likewise for 39255 # LC_CTYPE, which is also set at the beginning of the configure script. 39256 # Test for the usual locale name. 39257 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39258 gt_cv_locale_fr=fr_FR 39259 else 39260 # Test for the locale name with explicit encoding suffix. 39261 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39262 gt_cv_locale_fr=fr_FR.ISO-8859-1 39263 else 39264 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 39265 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39266 gt_cv_locale_fr=fr_FR.ISO8859-1 39267 else 39268 # Test for the HP-UX locale name. 39269 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39270 gt_cv_locale_fr=fr_FR.iso88591 39271 else 39272 # Test for the Solaris 7 locale name. 39273 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39274 gt_cv_locale_fr=fr 39275 else 39276 # None found. 39277 gt_cv_locale_fr=none 39278 fi 39279 fi 39280 fi 39281 fi 39282 fi 39283 ;; 39284 esac 39285 fi 39286 rm -fr conftest* 39287 ;; 39288 esac 39289 fi 39290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 39291 printf "%s\n" "$gt_cv_locale_fr" >&6; } 39292 LOCALE_FR=$gt_cv_locale_fr 39293 39294 39295 39296 39297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 39298 printf %s "checking for a french Unicode locale... " >&6; } 39299 if test ${gt_cv_locale_fr_utf8+y} 39300 then : 39301 printf %s "(cached) " >&6 39302 else case e in #( 39303 e) 39304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39305 /* end confdefs.h. */ 39306 39307 #include <locale.h> 39308 #include <time.h> 39309 #if HAVE_LANGINFO_CODESET 39310 # include <langinfo.h> 39311 #endif 39312 #include <stdlib.h> 39313 #include <string.h> 39314 struct tm t; 39315 char buf[16]; 39316 int main () { 39317 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 39318 imitates locale dependent behaviour by looking at the environment 39319 variables, and all locales use the UTF-8 encoding. */ 39320 #if !(defined __BEOS__ || defined __HAIKU__) 39321 /* Check whether the given locale name is recognized by the system. */ 39322 # if defined _WIN32 && !defined __CYGWIN__ 39323 /* On native Windows, setlocale(category, "") looks at the system settings, 39324 not at the environment variables. Also, when an encoding suffix such 39325 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 39326 category of the locale to "C". */ 39327 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 39328 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 39329 return 1; 39330 # else 39331 if (setlocale (LC_ALL, "") == NULL) return 1; 39332 # endif 39333 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 39334 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 39335 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 39336 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 39337 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 39338 some unit tests fail. */ 39339 # if HAVE_LANGINFO_CODESET 39340 { 39341 const char *cs = nl_langinfo (CODESET); 39342 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 39343 return 1; 39344 } 39345 # endif 39346 # ifdef __CYGWIN__ 39347 /* On Cygwin, avoid locale names without encoding suffix, because the 39348 locale_charset() function relies on the encoding suffix. Note that 39349 LC_ALL is set on the command line. */ 39350 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 39351 # endif 39352 /* Check whether in the abbreviation of the second month, the second 39353 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 39354 two bytes long, with UTF-8 encoding. */ 39355 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 39356 if (strftime (buf, sizeof (buf), "%b", &t) < 4 39357 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 39358 return 1; 39359 #endif 39360 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 39361 /* Check whether the decimal separator is a comma. 39362 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 39363 are nl_langinfo(RADIXCHAR) are both ".". */ 39364 if (localeconv () ->decimal_point[0] != ',') return 1; 39365 #endif 39366 return 0; 39367 } 39368 39369 _ACEOF 39370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 39371 (eval $ac_link) 2>&5 39372 ac_status=$? 39373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39374 test $ac_status = 0; } && test -s conftest$ac_exeext; then 39375 case "$host_os" in 39376 # Handle native Windows specially, because there setlocale() interprets 39377 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 39378 # "fr" or "fra" as "French" or "French_France.1252", 39379 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 39380 # "ja" as "Japanese" or "Japanese_Japan.932", 39381 # and similar. 39382 mingw*) 39383 # Test for the hypothetical native Windows locale name. 39384 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39385 gt_cv_locale_fr_utf8=French_France.65001 39386 else 39387 # None found. 39388 gt_cv_locale_fr_utf8=none 39389 fi 39390 ;; 39391 *) 39392 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 39393 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 39394 # configure script would override the LC_ALL setting. Likewise for 39395 # LC_CTYPE, which is also set at the beginning of the configure script. 39396 # Test for the usual locale name. 39397 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39398 gt_cv_locale_fr_utf8=fr_FR 39399 else 39400 # Test for the locale name with explicit encoding suffix. 39401 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39402 gt_cv_locale_fr_utf8=fr_FR.UTF-8 39403 else 39404 # Test for the Solaris 7 locale name. 39405 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 39406 gt_cv_locale_fr_utf8=fr.UTF-8 39407 else 39408 # None found. 39409 gt_cv_locale_fr_utf8=none 39410 fi 39411 fi 39412 fi 39413 ;; 39414 esac 39415 fi 39416 rm -fr conftest* 39417 ;; 39418 esac 39419 fi 39420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 39421 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 39422 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 39423 39424 39425 39426 39427 39428 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 39429 if test "x$ac_cv_func_opendir" = xyes 39430 then : 39431 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h 39432 39433 fi 39434 39435 if test $ac_cv_func_opendir = no; then 39436 HAVE_OPENDIR=0 39437 fi 39438 39439 case $host_os,$HAVE_OPENDIR in 39440 os2*,1) 39441 REPLACE_OPENDIR=1;; 39442 esac 39443 39444 39445 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then 39446 GL_COND_OBJ_OPENDIR_TRUE= 39447 GL_COND_OBJ_OPENDIR_FALSE='#' 39448 else 39449 GL_COND_OBJ_OPENDIR_TRUE='#' 39450 GL_COND_OBJ_OPENDIR_FALSE= 39451 fi 39452 : 39453 if test -z "${GL_COND_OBJ_OPENDIR_TRUE}" && test -z "${GL_COND_OBJ_OPENDIR_FALSE}"; then 39454 GL_COND_OBJ_OPENDIR_TRUE='#' 39455 GL_COND_OBJ_OPENDIR_FALSE='#' 39456 fi 39457 39458 39459 39460 39461 39462 39463 39464 39465 39466 39467 if test "$GL_GNULIB_OPENDIR" != 1; then 39468 if test "$GL_GNULIB_OPENDIR" = 0; then 39469 GL_GNULIB_OPENDIR=$gl_module_indicator_condition 39470 else 39471 GL_GNULIB_OPENDIR="($GL_GNULIB_OPENDIR || $gl_module_indicator_condition)" 39472 fi 39473 fi 39474 39475 39476 39477 39478 39479 printf "%s\n" "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h 39480 39481 39482 39483 39484 39485 39486 39487 39488 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" != false:0; then 39489 REPLACE_PERROR=1 39490 fi 39491 case ${gl_cv_func_strerror_r_works-unset} in 39492 unset|*yes) 39493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5 39494 printf %s "checking whether perror matches strerror... " >&6; } 39495 if test ${gl_cv_func_perror_works+y} 39496 then : 39497 printf %s "(cached) " >&6 39498 else case e in #( 39499 e) if test "$cross_compiling" = yes 39500 then : 39501 case "$host_os" in 39502 # Guess yes on musl systems. 39503 *-musl*) gl_cv_func_perror_works="guessing yes" ;; 39504 # Guess yes on native Windows. 39505 mingw*) gl_cv_func_perror_works="guessing yes" ;; 39506 # Otherwise obey --enable-cross-guesses. 39507 *) gl_cv_func_perror_works="$gl_cross_guess_normal" ;; 39508 esac 39509 39510 else case e in #( 39511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39512 /* end confdefs.h. */ 39513 #include <errno.h> 39514 #include <stdio.h> 39515 #include <stdlib.h> 39516 #include <string.h> 39517 39518 int 39519 main (void) 39520 { 39521 char *str = strerror (-1); 39522 if (!getenv("CONFTEST_OUTPUT")) return 0; 39523 if (!str) str = ""; 39524 puts (str); 39525 errno = -1; 39526 perror (""); 39527 return 0; 39528 39529 ; 39530 return 0; 39531 } 39532 _ACEOF 39533 if ac_fn_c_try_run "$LINENO" 39534 then : 39535 if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \ 39536 && cmp conftest.txt1 conftest.txt2 >/dev/null; then 39537 gl_cv_func_perror_works=yes 39538 else 39539 gl_cv_func_perror_works=no 39540 fi 39541 rm -rf conftest.txt1 conftest.txt2 39542 else case e in #( 39543 e) gl_cv_func_perror_works=no ;; 39544 esac 39545 fi 39546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39547 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 39548 esac 39549 fi 39550 39551 ;; 39552 esac 39553 fi 39554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5 39555 printf "%s\n" "$gl_cv_func_perror_works" >&6; } 39556 case "$gl_cv_func_perror_works" in 39557 *yes) ;; 39558 *) REPLACE_PERROR=1 ;; 39559 esac 39560 ;; 39561 *) 39562 REPLACE_PERROR=1 39563 ;; 39564 esac 39565 39566 39567 if test $REPLACE_PERROR = 1; then 39568 GL_COND_OBJ_PERROR_TRUE= 39569 GL_COND_OBJ_PERROR_FALSE='#' 39570 else 39571 GL_COND_OBJ_PERROR_TRUE='#' 39572 GL_COND_OBJ_PERROR_FALSE= 39573 fi 39574 : 39575 if test -z "${GL_COND_OBJ_PERROR_TRUE}" && test -z "${GL_COND_OBJ_PERROR_FALSE}"; then 39576 GL_COND_OBJ_PERROR_TRUE='#' 39577 GL_COND_OBJ_PERROR_FALSE='#' 39578 fi 39579 39580 39581 39582 39583 39584 39585 39586 39587 39588 39589 39590 39591 39592 39593 39594 if test "$GL_GNULIB_PERROR" != 1; then 39595 if test "$GL_GNULIB_PERROR" = 0; then 39596 GL_GNULIB_PERROR=$gl_module_indicator_condition 39597 else 39598 GL_GNULIB_PERROR="($GL_GNULIB_PERROR || $gl_module_indicator_condition)" 39599 fi 39600 fi 39601 39602 39603 39604 39605 39606 printf "%s\n" "#define GNULIB_TEST_PERROR 1" >>confdefs.h 39607 39608 39609 39610 39611 39612 39613 39614 if test $ac_cv_func_pipe != yes; then 39615 HAVE_PIPE=0 39616 fi 39617 39618 39619 if test $HAVE_PIPE = 0; then 39620 GL_COND_OBJ_PIPE_TRUE= 39621 GL_COND_OBJ_PIPE_FALSE='#' 39622 else 39623 GL_COND_OBJ_PIPE_TRUE='#' 39624 GL_COND_OBJ_PIPE_FALSE= 39625 fi 39626 : 39627 if test -z "${GL_COND_OBJ_PIPE_TRUE}" && test -z "${GL_COND_OBJ_PIPE_FALSE}"; then 39628 GL_COND_OBJ_PIPE_TRUE='#' 39629 GL_COND_OBJ_PIPE_FALSE='#' 39630 fi 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 39641 if test "$GL_GNULIB_PIPE" != 1; then 39642 if test "$GL_GNULIB_PIPE" = 0; then 39643 GL_GNULIB_PIPE=$gl_module_indicator_condition 39644 else 39645 GL_GNULIB_PIPE="($GL_GNULIB_PIPE || $gl_module_indicator_condition)" 39646 fi 39647 fi 39648 39649 39650 39651 39652 39653 printf "%s\n" "#define GNULIB_TEST_PIPE 1" >>confdefs.h 39654 39655 39656 39657 39658 39659 39660 39661 39662 if test $ac_cv_func_pselect = yes; then 39663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5 39664 printf %s "checking whether signature of pselect conforms to POSIX... " >&6; } 39665 if test ${gl_cv_sig_pselect+y} 39666 then : 39667 printf %s "(cached) " >&6 39668 else case e in #( 39669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39670 /* end confdefs.h. */ 39671 #include <sys/select.h> 39672 39673 int 39674 main (void) 39675 { 39676 int (*p) (int, fd_set *, fd_set *, fd_set *restrict, 39677 struct timespec const *restrict, 39678 sigset_t const *restrict) = pselect; 39679 return !p; 39680 ; 39681 return 0; 39682 } 39683 _ACEOF 39684 if ac_fn_c_try_link "$LINENO" 39685 then : 39686 gl_cv_sig_pselect=yes 39687 else case e in #( 39688 e) gl_cv_sig_pselect=no ;; 39689 esac 39690 fi 39691 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39692 conftest$ac_exeext conftest.$ac_ext ;; 39693 esac 39694 fi 39695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5 39696 printf "%s\n" "$gl_cv_sig_pselect" >&6; } 39697 39698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5 39699 printf %s "checking whether pselect detects invalid fds... " >&6; } 39700 if test ${gl_cv_func_pselect_detects_ebadf+y} 39701 then : 39702 printf %s "(cached) " >&6 39703 else case e in #( 39704 e) 39705 if test "$cross_compiling" = yes 39706 then : 39707 39708 case "$host_os" in 39709 # Guess yes on Linux systems. 39710 linux-* | linux) gl_cv_func_pselect_detects_ebadf="guessing yes" ;; 39711 # Guess yes on glibc systems. 39712 *-gnu* | gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;; 39713 # If we don't know, obey --enable-cross-guesses. 39714 *) gl_cv_func_pselect_detects_ebadf="$gl_cross_guess_normal" ;; 39715 esac 39716 39717 else case e in #( 39718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39719 /* end confdefs.h. */ 39720 39721 #include <sys/types.h> 39722 #include <sys/time.h> 39723 #if HAVE_SYS_SELECT_H 39724 # include <sys/select.h> 39725 #endif 39726 #include <unistd.h> 39727 #include <errno.h> 39728 39729 39730 $gl_mda_defines 39731 39732 int 39733 main (void) 39734 { 39735 39736 fd_set set; 39737 dup2(0, 16); 39738 FD_ZERO(&set); 39739 FD_SET(16, &set); 39740 close(16); 39741 struct timespec timeout; 39742 timeout.tv_sec = 0; 39743 timeout.tv_nsec = 5000; 39744 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF; 39745 39746 ; 39747 return 0; 39748 } 39749 _ACEOF 39750 if ac_fn_c_try_run "$LINENO" 39751 then : 39752 gl_cv_func_pselect_detects_ebadf=yes 39753 else case e in #( 39754 e) gl_cv_func_pselect_detects_ebadf=no ;; 39755 esac 39756 fi 39757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39758 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 39759 esac 39760 fi 39761 39762 ;; 39763 esac 39764 fi 39765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5 39766 printf "%s\n" "$gl_cv_func_pselect_detects_ebadf" >&6; } 39767 case $gl_cv_func_pselect_detects_ebadf in 39768 *yes) ;; 39769 *) REPLACE_PSELECT=1 ;; 39770 esac 39771 fi 39772 39773 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then 39774 REPLACE_PSELECT=1 39775 fi 39776 39777 39778 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then 39779 GL_COND_OBJ_PSELECT_TRUE= 39780 GL_COND_OBJ_PSELECT_FALSE='#' 39781 else 39782 GL_COND_OBJ_PSELECT_TRUE='#' 39783 GL_COND_OBJ_PSELECT_FALSE= 39784 fi 39785 : 39786 if test -z "${GL_COND_OBJ_PSELECT_TRUE}" && test -z "${GL_COND_OBJ_PSELECT_FALSE}"; then 39787 GL_COND_OBJ_PSELECT_TRUE='#' 39788 GL_COND_OBJ_PSELECT_FALSE='#' 39789 fi 39790 39791 39792 39793 39794 39795 39796 39797 39798 39799 39800 if test "$GL_GNULIB_PSELECT" != 1; then 39801 if test "$GL_GNULIB_PSELECT" = 0; then 39802 GL_GNULIB_PSELECT=$gl_module_indicator_condition 39803 else 39804 GL_GNULIB_PSELECT="($GL_GNULIB_PSELECT || $gl_module_indicator_condition)" 39805 fi 39806 fi 39807 39808 39809 39810 39811 39812 printf "%s\n" "#define GNULIB_TEST_PSELECT 1" >>confdefs.h 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 if { case "$host_os" in mingw*) true;; *) false;; esac; } \ 39829 && test $gl_threads_api = windows; then 39830 REPLACE_PTHREAD_CREATE=1 39831 REPLACE_PTHREAD_ATTR_INIT=1 39832 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1 39833 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1 39834 REPLACE_PTHREAD_ATTR_DESTROY=1 39835 REPLACE_PTHREAD_SELF=1 39836 REPLACE_PTHREAD_EQUAL=1 39837 REPLACE_PTHREAD_DETACH=1 39838 REPLACE_PTHREAD_JOIN=1 39839 REPLACE_PTHREAD_EXIT=1 39840 else 39841 if test $HAVE_PTHREAD_H = 0; then 39842 HAVE_PTHREAD_CREATE=0 39843 HAVE_PTHREAD_ATTR_INIT=0 39844 HAVE_PTHREAD_ATTR_GETDETACHSTATE=0 39845 HAVE_PTHREAD_ATTR_SETDETACHSTATE=0 39846 HAVE_PTHREAD_ATTR_DESTROY=0 39847 HAVE_PTHREAD_SELF=0 39848 HAVE_PTHREAD_EQUAL=0 39849 HAVE_PTHREAD_DETACH=0 39850 HAVE_PTHREAD_JOIN=0 39851 HAVE_PTHREAD_EXIT=0 39852 else 39853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5 39854 printf %s "checking whether pthread_create exists as a global function... " >&6; } 39855 if test ${gl_cv_func_pthread_create+y} 39856 then : 39857 printf %s "(cached) " >&6 39858 else case e in #( 39859 e) saved_LIBS="$LIBS" 39860 LIBS="$LIBS $LIBPMULTITHREAD" 39861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39862 /* end confdefs.h. */ 39863 extern 39864 #ifdef __cplusplus 39865 "C" 39866 #endif 39867 int pthread_create (void); 39868 int main () 39869 { 39870 return pthread_create (); 39871 } 39872 39873 _ACEOF 39874 if ac_fn_c_try_link "$LINENO" 39875 then : 39876 gl_cv_func_pthread_create=yes 39877 else case e in #( 39878 e) gl_cv_func_pthread_create=no ;; 39879 esac 39880 fi 39881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39882 conftest$ac_exeext conftest.$ac_ext 39883 LIBS="$saved_LIBS" 39884 ;; 39885 esac 39886 fi 39887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5 39888 printf "%s\n" "$gl_cv_func_pthread_create" >&6; } 39889 if test $gl_cv_func_pthread_create = no; then 39890 REPLACE_PTHREAD_CREATE=1 39891 REPLACE_PTHREAD_ATTR_INIT=1 39892 39893 printf "%s\n" "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h 39894 39895 fi 39896 fi 39897 fi 39898 39899 39900 if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then 39901 GL_COND_OBJ_PTHREAD_THREAD_TRUE= 39902 GL_COND_OBJ_PTHREAD_THREAD_FALSE='#' 39903 else 39904 GL_COND_OBJ_PTHREAD_THREAD_TRUE='#' 39905 GL_COND_OBJ_PTHREAD_THREAD_FALSE= 39906 fi 39907 : 39908 if test -z "${GL_COND_OBJ_PTHREAD_THREAD_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_THREAD_FALSE}"; then 39909 GL_COND_OBJ_PTHREAD_THREAD_TRUE='#' 39910 GL_COND_OBJ_PTHREAD_THREAD_FALSE='#' 39911 fi 39912 39913 39914 39915 39916 39917 39918 39919 39920 39921 39922 if test "$GL_GNULIB_PTHREAD_THREAD" != 1; then 39923 if test "$GL_GNULIB_PTHREAD_THREAD" = 0; then 39924 GL_GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition 39925 else 39926 GL_GNULIB_PTHREAD_THREAD="($GL_GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)" 39927 fi 39928 fi 39929 39930 39931 39932 39933 39934 printf "%s\n" "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h 39935 39936 39937 39938 39939 39940 39941 39942 39943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5 39944 printf %s "checking whether pthread_sigmask is a macro... " >&6; } 39945 if test ${gl_cv_func_pthread_sigmask_macro+y} 39946 then : 39947 printf %s "(cached) " >&6 39948 else case e in #( 39949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39950 /* end confdefs.h. */ 39951 39952 #include <pthread.h> 39953 #include <signal.h> 39954 #ifdef pthread_sigmask 39955 headers_define_pthread_sigmask 39956 #endif 39957 _ACEOF 39958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39959 $EGREP_TRADITIONAL "headers_define_pthread_sigmask" >/dev/null 2>&1 39960 then : 39961 gl_cv_func_pthread_sigmask_macro=yes 39962 else case e in #( 39963 e) gl_cv_func_pthread_sigmask_macro=no ;; 39964 esac 39965 fi 39966 rm -rf conftest* 39967 39968 ;; 39969 esac 39970 fi 39971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5 39972 printf "%s\n" "$gl_cv_func_pthread_sigmask_macro" >&6; } 39973 39974 LIB_PTHREAD_SIGMASK= 39975 39976 if test $gl_cv_func_pthread_sigmask_macro = yes; then 39977 HAVE_PTHREAD_SIGMASK=0 39978 REPLACE_PTHREAD_SIGMASK=1 39979 else 39980 39981 39982 39983 if test "$gl_threads_api" = posix; then 39984 if test $ac_cv_func_pthread_sigmask = yes; then 39985 : 39986 else 39987 if test -n "$LIBMULTITHREAD"; then 39988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5 39989 printf %s "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; } 39990 if test ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+y} 39991 then : 39992 printf %s "(cached) " >&6 39993 else case e in #( 39994 e) gl_save_LIBS="$LIBS" 39995 LIBS="$LIBS $LIBMULTITHREAD" 39996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39997 /* end confdefs.h. */ 39998 #include <pthread.h> 39999 #include <signal.h> 40000 40001 int 40002 main (void) 40003 { 40004 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 40005 ; 40006 return 0; 40007 } 40008 40009 _ACEOF 40010 if ac_fn_c_try_link "$LINENO" 40011 then : 40012 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes 40013 else case e in #( 40014 e) gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no ;; 40015 esac 40016 fi 40017 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40018 conftest$ac_exeext conftest.$ac_ext 40019 LIBS="$gl_save_LIBS" 40020 ;; 40021 esac 40022 fi 40023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5 40024 printf "%s\n" "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; } 40025 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 40026 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" 40027 else 40028 HAVE_PTHREAD_SIGMASK=0 40029 fi 40030 else 40031 HAVE_PTHREAD_SIGMASK=0 40032 fi 40033 fi 40034 else 40035 if test $ac_cv_func_pthread_sigmask = yes; then 40036 REPLACE_PTHREAD_SIGMASK=1 40037 else 40038 HAVE_PTHREAD_SIGMASK=0 40039 fi 40040 fi 40041 40042 fi 40043 40044 40045 40046 if test $HAVE_PTHREAD_SIGMASK = 1; then 40047 40048 40049 if test -z "$LIB_PTHREAD_SIGMASK"; then 40050 case " $LIBS " in 40051 *' -pthread '*) ;; 40052 *' -lpthread '*) ;; 40053 *) 40054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 40055 printf %s "checking whether pthread_sigmask works without -lpthread... " >&6; } 40056 if test ${gl_cv_func_pthread_sigmask_in_libc_works+y} 40057 then : 40058 printf %s "(cached) " >&6 40059 else case e in #( 40060 e) 40061 if test "$cross_compiling" = yes 40062 then : 40063 40064 case "$host_os" in 40065 freebsd* | midnightbsd* | hpux* | solaris | solaris2.[2-9]*) 40066 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; 40067 *) 40068 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; 40069 esac 40070 40071 else case e in #( 40072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40073 /* end confdefs.h. */ 40074 40075 #include <pthread.h> 40076 #include <signal.h> 40077 #include <stddef.h> 40078 int main () 40079 { 40080 sigset_t set; 40081 sigemptyset (&set); 40082 return pthread_sigmask (1729, &set, NULL) != 0; 40083 } 40084 _ACEOF 40085 if ac_fn_c_try_run "$LINENO" 40086 then : 40087 gl_cv_func_pthread_sigmask_in_libc_works=no 40088 else case e in #( 40089 e) gl_cv_func_pthread_sigmask_in_libc_works=yes ;; 40090 esac 40091 fi 40092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40093 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40094 esac 40095 fi 40096 40097 ;; 40098 esac 40099 fi 40100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 40101 printf "%s\n" "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } 40102 case "$gl_cv_func_pthread_sigmask_in_libc_works" in 40103 *no) 40104 REPLACE_PTHREAD_SIGMASK=1 40105 40106 printf "%s\n" "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h 40107 40108 ;; 40109 esac;; 40110 esac 40111 fi 40112 40113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 40114 printf %s "checking whether pthread_sigmask returns error numbers... " >&6; } 40115 if test ${gl_cv_func_pthread_sigmask_return_works+y} 40116 then : 40117 printf %s "(cached) " >&6 40118 else case e in #( 40119 e) 40120 gl_save_LIBS="$LIBS" 40121 LIBS="$LIBS $LIB_PTHREAD_SIGMASK" 40122 if test "$cross_compiling" = yes 40123 then : 40124 case "$host_os" in 40125 cygwin*) 40126 gl_cv_func_pthread_sigmask_return_works="guessing no";; 40127 *) 40128 gl_cv_func_pthread_sigmask_return_works="guessing yes";; 40129 esac 40130 40131 else case e in #( 40132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40133 /* end confdefs.h. */ 40134 40135 #include <pthread.h> 40136 #include <signal.h> 40137 #include <stddef.h> 40138 int main () 40139 { 40140 sigset_t set; 40141 sigemptyset (&set); 40142 if (pthread_sigmask (1729, &set, NULL) == -1) 40143 return 1; 40144 return 0; 40145 } 40146 _ACEOF 40147 if ac_fn_c_try_run "$LINENO" 40148 then : 40149 gl_cv_func_pthread_sigmask_return_works=yes 40150 else case e in #( 40151 e) gl_cv_func_pthread_sigmask_return_works=no ;; 40152 esac 40153 fi 40154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40155 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40156 esac 40157 fi 40158 40159 LIBS="$gl_save_LIBS" 40160 ;; 40161 esac 40162 fi 40163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 40164 printf "%s\n" "$gl_cv_func_pthread_sigmask_return_works" >&6; } 40165 case "$gl_cv_func_pthread_sigmask_return_works" in 40166 *no) 40167 REPLACE_PTHREAD_SIGMASK=1 40168 40169 printf "%s\n" "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h 40170 40171 ;; 40172 esac 40173 40174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 40175 printf %s "checking whether pthread_sigmask unblocks signals correctly... " >&6; } 40176 if test ${gl_cv_func_pthread_sigmask_unblock_works+y} 40177 then : 40178 printf %s "(cached) " >&6 40179 else case e in #( 40180 e) 40181 case "$host_os" in 40182 irix*) 40183 gl_cv_func_pthread_sigmask_unblock_works="guessing no";; 40184 *) 40185 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; 40186 esac 40187 gl_save_LIBS=$LIBS 40188 LIBS="$LIBS $LIBMULTITHREAD" 40189 if test "$cross_compiling" = yes 40190 then : 40191 : 40192 else case e in #( 40193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40194 /* end confdefs.h. */ 40195 40196 #include <pthread.h> 40197 #include <signal.h> 40198 #include <stdio.h> 40199 #include <stdlib.h> 40200 #include <unistd.h> 40201 40202 40203 $gl_mda_defines 40204 40205 static volatile int sigint_occurred; 40206 static void 40207 sigint_handler (int sig) 40208 { 40209 sigint_occurred++; 40210 } 40211 int main () 40212 { 40213 sigset_t set; 40214 int pid = getpid (); 40215 char command[80]; 40216 signal (SIGINT, sigint_handler); 40217 sigemptyset (&set); 40218 sigaddset (&set, SIGINT); 40219 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) 40220 return 1; 40221 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); 40222 if (!(system (command) == 0)) 40223 return 2; 40224 sleep (2); 40225 if (!(sigint_occurred == 0)) 40226 return 3; 40227 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) 40228 return 4; 40229 if (!(sigint_occurred == 1)) /* This fails on IRIX. */ 40230 return 5; 40231 return 0; 40232 } 40233 _ACEOF 40234 if ac_fn_c_try_run "$LINENO" 40235 then : 40236 : 40237 else case e in #( 40238 e) gl_cv_func_pthread_sigmask_unblock_works=no ;; 40239 esac 40240 fi 40241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40242 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40243 esac 40244 fi 40245 40246 LIBS=$gl_save_LIBS 40247 ;; 40248 esac 40249 fi 40250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 40251 printf "%s\n" "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } 40252 case "$gl_cv_func_pthread_sigmask_unblock_works" in 40253 *no) 40254 REPLACE_PTHREAD_SIGMASK=1 40255 40256 printf "%s\n" "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h 40257 40258 ;; 40259 esac 40260 fi 40261 40262 40263 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then 40264 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE= 40265 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#' 40266 else 40267 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#' 40268 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE= 40269 fi 40270 : 40271 if test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_TRUE}" && test -z "${GL_COND_OBJ_PTHREAD_SIGMASK_FALSE}"; then 40272 GL_COND_OBJ_PTHREAD_SIGMASK_TRUE='#' 40273 GL_COND_OBJ_PTHREAD_SIGMASK_FALSE='#' 40274 fi 40275 40276 if test -z "$GL_COND_OBJ_PTHREAD_SIGMASK_TRUE"; then : 40277 40278 40279 if test $HAVE_PTHREAD_SIGMASK = 1; then 40280 40281 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 40282 40283 fi 40284 40285 40286 fi 40287 40288 40289 40290 40291 40292 40293 40294 40295 40296 if test "$GL_GNULIB_PTHREAD_SIGMASK" != 1; then 40297 if test "$GL_GNULIB_PTHREAD_SIGMASK" = 0; then 40298 GL_GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition 40299 else 40300 GL_GNULIB_PTHREAD_SIGMASK="($GL_GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)" 40301 fi 40302 fi 40303 40304 40305 40306 40307 40308 printf "%s\n" "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h 40309 40310 40311 40312 40313 40314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5 40315 printf %s "checking for putenv compatible with GNU and SVID... " >&6; } 40316 if test ${gl_cv_func_svid_putenv+y} 40317 then : 40318 printf %s "(cached) " >&6 40319 else case e in #( 40320 e) if test "$cross_compiling" = yes 40321 then : 40322 case "$host_os" in 40323 # Guess yes on glibc systems. 40324 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; 40325 # Guess yes on musl systems. 40326 *-musl*) gl_cv_func_svid_putenv="guessing yes" ;; 40327 # Guess no on native Windows. 40328 mingw*) gl_cv_func_svid_putenv="guessing no" ;; 40329 # If we don't know, obey --enable-cross-guesses. 40330 *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;; 40331 esac 40332 40333 else case e in #( 40334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40335 /* end confdefs.h. */ 40336 $ac_includes_default 40337 40338 40339 $gl_mda_defines 40340 40341 int 40342 main (void) 40343 { 40344 40345 /* Put it in env. */ 40346 if (putenv ("CONFTEST_putenv=val")) 40347 return 1; 40348 40349 /* Try to remove it. */ 40350 if (putenv ("CONFTEST_putenv")) 40351 return 2; 40352 40353 /* Make sure it was deleted. */ 40354 if (getenv ("CONFTEST_putenv") != 0) 40355 return 3; 40356 40357 return 0; 40358 40359 ; 40360 return 0; 40361 } 40362 _ACEOF 40363 if ac_fn_c_try_run "$LINENO" 40364 then : 40365 gl_cv_func_svid_putenv=yes 40366 else case e in #( 40367 e) gl_cv_func_svid_putenv=no ;; 40368 esac 40369 fi 40370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40371 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40372 esac 40373 fi 40374 40375 ;; 40376 esac 40377 fi 40378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5 40379 printf "%s\n" "$gl_cv_func_svid_putenv" >&6; } 40380 case "$gl_cv_func_svid_putenv" in 40381 *yes) ;; 40382 *) 40383 REPLACE_PUTENV=1 40384 ;; 40385 esac 40386 40387 40388 if test $REPLACE_PUTENV = 1; then 40389 GL_COND_OBJ_PUTENV_TRUE= 40390 GL_COND_OBJ_PUTENV_FALSE='#' 40391 else 40392 GL_COND_OBJ_PUTENV_TRUE='#' 40393 GL_COND_OBJ_PUTENV_FALSE= 40394 fi 40395 : 40396 if test -z "${GL_COND_OBJ_PUTENV_TRUE}" && test -z "${GL_COND_OBJ_PUTENV_FALSE}"; then 40397 GL_COND_OBJ_PUTENV_TRUE='#' 40398 GL_COND_OBJ_PUTENV_FALSE='#' 40399 fi 40400 40401 if test -z "$GL_COND_OBJ_PUTENV_TRUE"; then : 40402 40403 40404 ac_fn_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 40405 if test "x$ac_cv_have_decl__putenv" = xyes 40406 then : 40407 ac_have_decl=1 40408 else case e in #( 40409 e) ac_have_decl=0 ;; 40410 esac 40411 fi 40412 printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h 40413 40414 40415 40416 fi 40417 40418 40419 40420 40421 40422 40423 40424 40425 40426 if test "$GL_GNULIB_PUTENV" != 1; then 40427 if test "$GL_GNULIB_PUTENV" = 0; then 40428 GL_GNULIB_PUTENV=$gl_module_indicator_condition 40429 else 40430 GL_GNULIB_PUTENV="($GL_GNULIB_PUTENV || $gl_module_indicator_condition)" 40431 fi 40432 fi 40433 40434 40435 40436 40437 40438 printf "%s\n" "#define GNULIB_TEST_PUTENV 1" >>confdefs.h 40439 40440 40441 40442 40443 40444 40445 40446 40447 40448 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 40449 if test "x$ac_cv_func_raise" = xyes 40450 then : 40451 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h 40452 40453 fi 40454 40455 if test $ac_cv_func_raise = no; then 40456 HAVE_RAISE=0 40457 else 40458 40459 40460 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 40461 REPLACE_RAISE=1 40462 fi 40463 40464 40465 40466 40467 40468 HAVE_POSIX_SIGNALBLOCKING=0 40469 if test "$gl_cv_type_sigset_t" = yes; then 40470 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 40471 if test "x$ac_cv_func_sigprocmask" = xyes 40472 then : 40473 HAVE_POSIX_SIGNALBLOCKING=1 40474 fi 40475 40476 fi 40477 40478 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 40479 : 40480 fi 40481 40482 fi 40483 40484 40485 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then 40486 GL_COND_OBJ_RAISE_TRUE= 40487 GL_COND_OBJ_RAISE_FALSE='#' 40488 else 40489 GL_COND_OBJ_RAISE_TRUE='#' 40490 GL_COND_OBJ_RAISE_FALSE= 40491 fi 40492 : 40493 if test -z "${GL_COND_OBJ_RAISE_TRUE}" && test -z "${GL_COND_OBJ_RAISE_FALSE}"; then 40494 GL_COND_OBJ_RAISE_TRUE='#' 40495 GL_COND_OBJ_RAISE_FALSE='#' 40496 fi 40497 40498 if test -z "$GL_COND_OBJ_RAISE_TRUE"; then : 40499 40500 : 40501 40502 fi 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 if test "$GL_GNULIB_RAISE" != 1; then 40513 if test "$GL_GNULIB_RAISE" = 0; then 40514 GL_GNULIB_RAISE=$gl_module_indicator_condition 40515 else 40516 GL_GNULIB_RAISE="($GL_GNULIB_RAISE || $gl_module_indicator_condition)" 40517 fi 40518 fi 40519 40520 40521 40522 40523 40524 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h 40525 40526 40527 40528 40529 40530 40531 : 40532 40533 40534 40535 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir" 40536 if test "x$ac_cv_func_readdir" = xyes 40537 then : 40538 printf "%s\n" "#define HAVE_READDIR 1" >>confdefs.h 40539 40540 fi 40541 40542 if test $ac_cv_func_readdir = no; then 40543 HAVE_READDIR=0 40544 fi 40545 40546 40547 if test $HAVE_READDIR = 0; then 40548 GL_COND_OBJ_READDIR_TRUE= 40549 GL_COND_OBJ_READDIR_FALSE='#' 40550 else 40551 GL_COND_OBJ_READDIR_TRUE='#' 40552 GL_COND_OBJ_READDIR_FALSE= 40553 fi 40554 : 40555 if test -z "${GL_COND_OBJ_READDIR_TRUE}" && test -z "${GL_COND_OBJ_READDIR_FALSE}"; then 40556 GL_COND_OBJ_READDIR_TRUE='#' 40557 GL_COND_OBJ_READDIR_FALSE='#' 40558 fi 40559 40560 40561 40562 40563 40564 40565 40566 40567 40568 40569 if test "$GL_GNULIB_READDIR" != 1; then 40570 if test "$GL_GNULIB_READDIR" = 0; then 40571 GL_GNULIB_READDIR=$gl_module_indicator_condition 40572 else 40573 GL_GNULIB_READDIR="($GL_GNULIB_READDIR || $gl_module_indicator_condition)" 40574 fi 40575 fi 40576 40577 40578 40579 40580 40581 printf "%s\n" "#define GNULIB_TEST_READDIR 1" >>confdefs.h 40582 40583 40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 40594 40595 40596 if test "$ac_cv_header_winsock2_h" = yes; then 40597 REPLACE_SELECT=1 40598 else 40599 40600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 40601 printf %s "checking whether select supports a 0 argument... " >&6; } 40602 if test ${gl_cv_func_select_supports0+y} 40603 then : 40604 printf %s "(cached) " >&6 40605 else case e in #( 40606 e) 40607 if test "$cross_compiling" = yes 40608 then : 40609 40610 case "$host_os" in 40611 # Guess no on Interix. 40612 interix*) gl_cv_func_select_supports0="guessing no";; 40613 # Guess yes otherwise. 40614 *) gl_cv_func_select_supports0="guessing yes";; 40615 esac 40616 40617 else case e in #( 40618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40619 /* end confdefs.h. */ 40620 40621 #include <sys/types.h> 40622 #include <sys/time.h> 40623 #if HAVE_SYS_SELECT_H 40624 #include <sys/select.h> 40625 #endif 40626 int main () 40627 { 40628 struct timeval timeout; 40629 timeout.tv_sec = 0; 40630 timeout.tv_usec = 5; 40631 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; 40632 } 40633 _ACEOF 40634 if ac_fn_c_try_run "$LINENO" 40635 then : 40636 gl_cv_func_select_supports0=yes 40637 else case e in #( 40638 e) gl_cv_func_select_supports0=no ;; 40639 esac 40640 fi 40641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40642 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40643 esac 40644 fi 40645 40646 ;; 40647 esac 40648 fi 40649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5 40650 printf "%s\n" "$gl_cv_func_select_supports0" >&6; } 40651 case "$gl_cv_func_select_supports0" in 40652 *yes) ;; 40653 *) REPLACE_SELECT=1 ;; 40654 esac 40655 40656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 40657 printf %s "checking whether select detects invalid fds... " >&6; } 40658 if test ${gl_cv_func_select_detects_ebadf+y} 40659 then : 40660 printf %s "(cached) " >&6 40661 else case e in #( 40662 e) 40663 if test "$cross_compiling" = yes 40664 then : 40665 40666 case "$host_os" in 40667 # Guess yes on Linux systems. 40668 linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;; 40669 # Guess yes on glibc systems. 40670 *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; 40671 # If we don't know, obey --enable-cross-guesses. 40672 *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;; 40673 esac 40674 40675 else case e in #( 40676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40677 /* end confdefs.h. */ 40678 40679 #include <sys/types.h> 40680 #include <sys/time.h> 40681 #if HAVE_SYS_SELECT_H 40682 # include <sys/select.h> 40683 #endif 40684 #include <unistd.h> 40685 #include <errno.h> 40686 40687 40688 $gl_mda_defines 40689 40690 int 40691 main (void) 40692 { 40693 40694 fd_set set; 40695 dup2(0, 16); 40696 FD_ZERO(&set); 40697 FD_SET(16, &set); 40698 close(16); 40699 struct timeval timeout; 40700 timeout.tv_sec = 0; 40701 timeout.tv_usec = 5; 40702 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; 40703 40704 ; 40705 return 0; 40706 } 40707 _ACEOF 40708 if ac_fn_c_try_run "$LINENO" 40709 then : 40710 gl_cv_func_select_detects_ebadf=yes 40711 else case e in #( 40712 e) gl_cv_func_select_detects_ebadf=no ;; 40713 esac 40714 fi 40715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40716 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40717 esac 40718 fi 40719 40720 ;; 40721 esac 40722 fi 40723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5 40724 printf "%s\n" "$gl_cv_func_select_detects_ebadf" >&6; } 40725 case $gl_cv_func_select_detects_ebadf in 40726 *yes) ;; 40727 *) REPLACE_SELECT=1 ;; 40728 esac 40729 fi 40730 40731 LIB_SELECT="$LIBSOCKET" 40732 if test $REPLACE_SELECT = 1; then 40733 case "$host_os" in 40734 mingw*) 40735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40736 /* end confdefs.h. */ 40737 40738 #define WIN32_LEAN_AND_MEAN 40739 #include <windows.h> 40740 int 40741 main () 40742 { 40743 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); 40744 return 0; 40745 } 40746 _ACEOF 40747 if ac_fn_c_try_link "$LINENO" 40748 then : 40749 40750 else case e in #( 40751 e) LIB_SELECT="$LIB_SELECT -luser32" ;; 40752 esac 40753 fi 40754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40755 conftest$ac_exeext conftest.$ac_ext 40756 ;; 40757 esac 40758 fi 40759 40760 40761 40762 if test $REPLACE_SELECT = 1; then 40763 GL_COND_OBJ_SELECT_TRUE= 40764 GL_COND_OBJ_SELECT_FALSE='#' 40765 else 40766 GL_COND_OBJ_SELECT_TRUE='#' 40767 GL_COND_OBJ_SELECT_FALSE= 40768 fi 40769 : 40770 if test -z "${GL_COND_OBJ_SELECT_TRUE}" && test -z "${GL_COND_OBJ_SELECT_FALSE}"; then 40771 GL_COND_OBJ_SELECT_TRUE='#' 40772 GL_COND_OBJ_SELECT_FALSE='#' 40773 fi 40774 40775 40776 40777 40778 40779 40780 40781 40782 40783 40784 if test "$GL_GNULIB_SELECT" != 1; then 40785 if test "$GL_GNULIB_SELECT" = 0; then 40786 GL_GNULIB_SELECT=$gl_module_indicator_condition 40787 else 40788 GL_GNULIB_SELECT="($GL_GNULIB_SELECT || $gl_module_indicator_condition)" 40789 fi 40790 fi 40791 40792 40793 40794 40795 40796 printf "%s\n" "#define GNULIB_TEST_SELECT 1" >>confdefs.h 40797 40798 40799 40800 40801 40802 40803 if test $ac_cv_func_setenv = no; then 40804 HAVE_SETENV=0 40805 else 40806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 40807 printf %s "checking whether setenv validates arguments... " >&6; } 40808 if test ${gl_cv_func_setenv_works+y} 40809 then : 40810 printf %s "(cached) " >&6 40811 else case e in #( 40812 e) if test "$cross_compiling" = yes 40813 then : 40814 case "$host_os" in 40815 # Guess yes on glibc systems. 40816 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; 40817 # Guess yes on musl systems. 40818 *-musl*) gl_cv_func_setenv_works="guessing yes" ;; 40819 # If we don't know, obey --enable-cross-guesses. 40820 *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; 40821 esac 40822 40823 else case e in #( 40824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40825 /* end confdefs.h. */ 40826 40827 #include <stdlib.h> 40828 #include <errno.h> 40829 #include <string.h> 40830 40831 int 40832 main (void) 40833 { 40834 40835 int result = 0; 40836 { 40837 if (setenv ("", "", 0) != -1) 40838 result |= 1; 40839 else if (errno != EINVAL) 40840 result |= 2; 40841 } 40842 { 40843 if (setenv ("a", "=", 1) != 0) 40844 result |= 4; 40845 else if (strcmp (getenv ("a"), "=") != 0) 40846 result |= 8; 40847 } 40848 return result; 40849 40850 ; 40851 return 0; 40852 } 40853 _ACEOF 40854 if ac_fn_c_try_run "$LINENO" 40855 then : 40856 gl_cv_func_setenv_works=yes 40857 else case e in #( 40858 e) gl_cv_func_setenv_works=no ;; 40859 esac 40860 fi 40861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40862 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40863 esac 40864 fi 40865 ;; 40866 esac 40867 fi 40868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 40869 printf "%s\n" "$gl_cv_func_setenv_works" >&6; } 40870 case "$gl_cv_func_setenv_works" in 40871 *yes) ;; 40872 *) 40873 REPLACE_SETENV=1 40874 ;; 40875 esac 40876 fi 40877 40878 40879 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 40880 GL_COND_OBJ_SETENV_TRUE= 40881 GL_COND_OBJ_SETENV_FALSE='#' 40882 else 40883 GL_COND_OBJ_SETENV_TRUE='#' 40884 GL_COND_OBJ_SETENV_FALSE= 40885 fi 40886 : 40887 if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then 40888 GL_COND_OBJ_SETENV_TRUE='#' 40889 GL_COND_OBJ_SETENV_FALSE='#' 40890 fi 40891 40892 40893 40894 40895 40896 40897 40898 40899 40900 40901 if test "$GL_GNULIB_SETENV" != 1; then 40902 if test "$GL_GNULIB_SETENV" = 0; then 40903 GL_GNULIB_SETENV=$gl_module_indicator_condition 40904 else 40905 GL_GNULIB_SETENV="($GL_GNULIB_SETENV || $gl_module_indicator_condition)" 40906 fi 40907 fi 40908 40909 40910 40911 40912 40913 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h 40914 40915 40916 40917 40918 40919 40920 40921 40922 NEED_SETLOCALE_IMPROVED=0 40923 case "$host_os" in 40924 mingw*) NEED_SETLOCALE_IMPROVED=1 ;; 40925 cygwin*) 40926 case `uname -r` in 40927 1.5.*) NEED_SETLOCALE_IMPROVED=1 ;; 40928 esac 40929 ;; 40930 *) 40931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5 40932 printf %s "checking whether setlocale supports the C locale... " >&6; } 40933 if test ${gl_cv_func_setlocale_works+y} 40934 then : 40935 printf %s "(cached) " >&6 40936 else case e in #( 40937 e) if test "$cross_compiling" = yes 40938 then : 40939 case "$host_os" in 40940 # Guess no on Android. 40941 linux*-android*) gl_cv_func_setlocale_works="guessing no";; 40942 # Guess yes otherwise. 40943 *) gl_cv_func_setlocale_works="guessing yes";; 40944 esac 40945 40946 else case e in #( 40947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40948 /* end confdefs.h. */ 40949 40950 #include <locale.h> 40951 int main () 40952 { 40953 return setlocale (LC_ALL, "C") == NULL; 40954 } 40955 _ACEOF 40956 if ac_fn_c_try_run "$LINENO" 40957 then : 40958 gl_cv_func_setlocale_works=yes 40959 else case e in #( 40960 e) gl_cv_func_setlocale_works=no ;; 40961 esac 40962 fi 40963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40964 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 40965 esac 40966 fi 40967 40968 ;; 40969 esac 40970 fi 40971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5 40972 printf "%s\n" "$gl_cv_func_setlocale_works" >&6; } 40973 case "$gl_cv_func_setlocale_works" in 40974 *yes) ;; 40975 *) NEED_SETLOCALE_IMPROVED=1 ;; 40976 esac 40977 ;; 40978 esac 40979 40980 printf "%s\n" "#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED" >>confdefs.h 40981 40982 40983 NEED_SETLOCALE_MTSAFE=0 40984 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 40985 NEED_SETLOCALE_MTSAFE=1 40986 fi 40987 40988 printf "%s\n" "#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE" >>confdefs.h 40989 40990 40991 if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then 40992 REPLACE_SETLOCALE=1 40993 fi 40994 40995 if test $NEED_SETLOCALE_MTSAFE = 1; then 40996 LIB_SETLOCALE="$LIB_SETLOCALE_NULL" 40997 else 40998 LIB_SETLOCALE= 40999 fi 41000 41001 41002 41003 if test $REPLACE_SETLOCALE = 1; then 41004 GL_COND_OBJ_SETLOCALE_TRUE= 41005 GL_COND_OBJ_SETLOCALE_FALSE='#' 41006 else 41007 GL_COND_OBJ_SETLOCALE_TRUE='#' 41008 GL_COND_OBJ_SETLOCALE_FALSE= 41009 fi 41010 : 41011 if test -z "${GL_COND_OBJ_SETLOCALE_TRUE}" && test -z "${GL_COND_OBJ_SETLOCALE_FALSE}"; then 41012 GL_COND_OBJ_SETLOCALE_TRUE='#' 41013 GL_COND_OBJ_SETLOCALE_FALSE='#' 41014 fi 41015 41016 if test -z "$GL_COND_OBJ_SETLOCALE_TRUE"; then : 41017 41018 41019 : 41020 41021 41022 fi 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 if test "$GL_GNULIB_SETLOCALE" != 1; then 41033 if test "$GL_GNULIB_SETLOCALE" = 0; then 41034 GL_GNULIB_SETLOCALE=$gl_module_indicator_condition 41035 else 41036 GL_GNULIB_SETLOCALE="($GL_GNULIB_SETLOCALE || $gl_module_indicator_condition)" 41037 fi 41038 fi 41039 41040 41041 41042 41043 41044 printf "%s\n" "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h 41045 41046 41047 41048 41049 41050 41051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 41052 printf %s "checking for a traditional french locale... " >&6; } 41053 if test ${gt_cv_locale_fr+y} 41054 then : 41055 printf %s "(cached) " >&6 41056 else case e in #( 41057 e) 41058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41059 /* end confdefs.h. */ 41060 41061 #include <locale.h> 41062 #include <time.h> 41063 #if HAVE_LANGINFO_CODESET 41064 # include <langinfo.h> 41065 #endif 41066 #include <stdlib.h> 41067 #include <string.h> 41068 struct tm t; 41069 char buf[16]; 41070 int main () { 41071 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 41072 imitates locale dependent behaviour by looking at the environment 41073 variables, and all locales use the UTF-8 encoding. */ 41074 #if defined __BEOS__ || defined __HAIKU__ 41075 return 1; 41076 #else 41077 /* Check whether the given locale name is recognized by the system. */ 41078 # if defined _WIN32 && !defined __CYGWIN__ 41079 /* On native Windows, setlocale(category, "") looks at the system settings, 41080 not at the environment variables. Also, when an encoding suffix such 41081 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 41082 category of the locale to "C". */ 41083 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 41084 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 41085 return 1; 41086 # else 41087 if (setlocale (LC_ALL, "") == NULL) return 1; 41088 # endif 41089 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 41090 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 41091 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 41092 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 41093 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 41094 some unit tests fail. 41095 On MirBSD 10, when an unsupported locale is specified, setlocale() 41096 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 41097 # if HAVE_LANGINFO_CODESET 41098 { 41099 const char *cs = nl_langinfo (CODESET); 41100 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 41101 || strcmp (cs, "UTF-8") == 0) 41102 return 1; 41103 } 41104 # endif 41105 # ifdef __CYGWIN__ 41106 /* On Cygwin, avoid locale names without encoding suffix, because the 41107 locale_charset() function relies on the encoding suffix. Note that 41108 LC_ALL is set on the command line. */ 41109 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 41110 # endif 41111 /* Check whether in the abbreviation of the second month, the second 41112 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 41113 one byte long. This excludes the UTF-8 encoding. */ 41114 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 41115 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 41116 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 41117 /* Check whether the decimal separator is a comma. 41118 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 41119 are nl_langinfo(RADIXCHAR) are both ".". */ 41120 if (localeconv () ->decimal_point[0] != ',') return 1; 41121 # endif 41122 return 0; 41123 #endif 41124 } 41125 41126 _ACEOF 41127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 41128 (eval $ac_link) 2>&5 41129 ac_status=$? 41130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 41131 test $ac_status = 0; } && test -s conftest$ac_exeext; then 41132 case "$host_os" in 41133 # Handle native Windows specially, because there setlocale() interprets 41134 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 41135 # "fr" or "fra" as "French" or "French_France.1252", 41136 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 41137 # "ja" as "Japanese" or "Japanese_Japan.932", 41138 # and similar. 41139 mingw*) 41140 # Test for the native Windows locale name. 41141 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41142 gt_cv_locale_fr=French_France.1252 41143 else 41144 # None found. 41145 gt_cv_locale_fr=none 41146 fi 41147 ;; 41148 *) 41149 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 41150 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 41151 # configure script would override the LC_ALL setting. Likewise for 41152 # LC_CTYPE, which is also set at the beginning of the configure script. 41153 # Test for the usual locale name. 41154 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41155 gt_cv_locale_fr=fr_FR 41156 else 41157 # Test for the locale name with explicit encoding suffix. 41158 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41159 gt_cv_locale_fr=fr_FR.ISO-8859-1 41160 else 41161 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 41162 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41163 gt_cv_locale_fr=fr_FR.ISO8859-1 41164 else 41165 # Test for the HP-UX locale name. 41166 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41167 gt_cv_locale_fr=fr_FR.iso88591 41168 else 41169 # Test for the Solaris 7 locale name. 41170 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41171 gt_cv_locale_fr=fr 41172 else 41173 # None found. 41174 gt_cv_locale_fr=none 41175 fi 41176 fi 41177 fi 41178 fi 41179 fi 41180 ;; 41181 esac 41182 fi 41183 rm -fr conftest* 41184 ;; 41185 esac 41186 fi 41187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 41188 printf "%s\n" "$gt_cv_locale_fr" >&6; } 41189 LOCALE_FR=$gt_cv_locale_fr 41190 41191 41192 41193 41194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 41195 printf %s "checking for a french Unicode locale... " >&6; } 41196 if test ${gt_cv_locale_fr_utf8+y} 41197 then : 41198 printf %s "(cached) " >&6 41199 else case e in #( 41200 e) 41201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41202 /* end confdefs.h. */ 41203 41204 #include <locale.h> 41205 #include <time.h> 41206 #if HAVE_LANGINFO_CODESET 41207 # include <langinfo.h> 41208 #endif 41209 #include <stdlib.h> 41210 #include <string.h> 41211 struct tm t; 41212 char buf[16]; 41213 int main () { 41214 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 41215 imitates locale dependent behaviour by looking at the environment 41216 variables, and all locales use the UTF-8 encoding. */ 41217 #if !(defined __BEOS__ || defined __HAIKU__) 41218 /* Check whether the given locale name is recognized by the system. */ 41219 # if defined _WIN32 && !defined __CYGWIN__ 41220 /* On native Windows, setlocale(category, "") looks at the system settings, 41221 not at the environment variables. Also, when an encoding suffix such 41222 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 41223 category of the locale to "C". */ 41224 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 41225 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 41226 return 1; 41227 # else 41228 if (setlocale (LC_ALL, "") == NULL) return 1; 41229 # endif 41230 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 41231 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 41232 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 41233 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 41234 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 41235 some unit tests fail. */ 41236 # if HAVE_LANGINFO_CODESET 41237 { 41238 const char *cs = nl_langinfo (CODESET); 41239 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 41240 return 1; 41241 } 41242 # endif 41243 # ifdef __CYGWIN__ 41244 /* On Cygwin, avoid locale names without encoding suffix, because the 41245 locale_charset() function relies on the encoding suffix. Note that 41246 LC_ALL is set on the command line. */ 41247 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 41248 # endif 41249 /* Check whether in the abbreviation of the second month, the second 41250 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 41251 two bytes long, with UTF-8 encoding. */ 41252 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 41253 if (strftime (buf, sizeof (buf), "%b", &t) < 4 41254 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 41255 return 1; 41256 #endif 41257 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 41258 /* Check whether the decimal separator is a comma. 41259 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 41260 are nl_langinfo(RADIXCHAR) are both ".". */ 41261 if (localeconv () ->decimal_point[0] != ',') return 1; 41262 #endif 41263 return 0; 41264 } 41265 41266 _ACEOF 41267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 41268 (eval $ac_link) 2>&5 41269 ac_status=$? 41270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 41271 test $ac_status = 0; } && test -s conftest$ac_exeext; then 41272 case "$host_os" in 41273 # Handle native Windows specially, because there setlocale() interprets 41274 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 41275 # "fr" or "fra" as "French" or "French_France.1252", 41276 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 41277 # "ja" as "Japanese" or "Japanese_Japan.932", 41278 # and similar. 41279 mingw*) 41280 # Test for the hypothetical native Windows locale name. 41281 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41282 gt_cv_locale_fr_utf8=French_France.65001 41283 else 41284 # None found. 41285 gt_cv_locale_fr_utf8=none 41286 fi 41287 ;; 41288 *) 41289 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 41290 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 41291 # configure script would override the LC_ALL setting. Likewise for 41292 # LC_CTYPE, which is also set at the beginning of the configure script. 41293 # Test for the usual locale name. 41294 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41295 gt_cv_locale_fr_utf8=fr_FR 41296 else 41297 # Test for the locale name with explicit encoding suffix. 41298 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41299 gt_cv_locale_fr_utf8=fr_FR.UTF-8 41300 else 41301 # Test for the Solaris 7 locale name. 41302 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41303 gt_cv_locale_fr_utf8=fr.UTF-8 41304 else 41305 # None found. 41306 gt_cv_locale_fr_utf8=none 41307 fi 41308 fi 41309 fi 41310 ;; 41311 esac 41312 fi 41313 rm -fr conftest* 41314 ;; 41315 esac 41316 fi 41317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 41318 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 41319 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 41320 41321 41322 41323 41324 41325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 41326 printf %s "checking for a traditional japanese locale... " >&6; } 41327 if test ${gt_cv_locale_ja+y} 41328 then : 41329 printf %s "(cached) " >&6 41330 else case e in #( 41331 e) 41332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41333 /* end confdefs.h. */ 41334 41335 #include <locale.h> 41336 #include <time.h> 41337 #if HAVE_LANGINFO_CODESET 41338 # include <langinfo.h> 41339 #endif 41340 #include <stdlib.h> 41341 #include <string.h> 41342 struct tm t; 41343 char buf[16]; 41344 int main () 41345 { 41346 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 41347 imitates locale dependent behaviour by looking at the environment 41348 variables, and all locales use the UTF-8 encoding. */ 41349 #if defined __BEOS__ || defined __HAIKU__ 41350 return 1; 41351 #else 41352 /* Check whether the given locale name is recognized by the system. */ 41353 # if defined _WIN32 && !defined __CYGWIN__ 41354 /* On native Windows, setlocale(category, "") looks at the system settings, 41355 not at the environment variables. Also, when an encoding suffix such 41356 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 41357 category of the locale to "C". */ 41358 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 41359 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 41360 return 1; 41361 # else 41362 if (setlocale (LC_ALL, "") == NULL) return 1; 41363 # endif 41364 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 41365 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 41366 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 41367 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 41368 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 41369 some unit tests fail. 41370 On MirBSD 10, when an unsupported locale is specified, setlocale() 41371 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 41372 # if HAVE_LANGINFO_CODESET 41373 { 41374 const char *cs = nl_langinfo (CODESET); 41375 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 41376 || strcmp (cs, "UTF-8") == 0) 41377 return 1; 41378 } 41379 # endif 41380 # ifdef __CYGWIN__ 41381 /* On Cygwin, avoid locale names without encoding suffix, because the 41382 locale_charset() function relies on the encoding suffix. Note that 41383 LC_ALL is set on the command line. */ 41384 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 41385 # endif 41386 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 41387 on Cygwin 1.5.x. */ 41388 if (MB_CUR_MAX == 1) 41389 return 1; 41390 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 41391 This excludes the UTF-8 encoding (except on MirBSD). */ 41392 { 41393 const char *p; 41394 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 41395 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 41396 for (p = buf; *p != '\0'; p++) 41397 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 41398 return 1; 41399 } 41400 return 0; 41401 #endif 41402 } 41403 41404 _ACEOF 41405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 41406 (eval $ac_link) 2>&5 41407 ac_status=$? 41408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 41409 test $ac_status = 0; } && test -s conftest$ac_exeext; then 41410 case "$host_os" in 41411 # Handle native Windows specially, because there setlocale() interprets 41412 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 41413 # "fr" or "fra" as "French" or "French_France.1252", 41414 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 41415 # "ja" as "Japanese" or "Japanese_Japan.932", 41416 # and similar. 41417 mingw*) 41418 # Note that on native Windows, the Japanese locale is 41419 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 41420 # cannot use it here. 41421 gt_cv_locale_ja=none 41422 ;; 41423 *) 41424 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 41425 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 41426 # configure script would override the LC_ALL setting. Likewise for 41427 # LC_CTYPE, which is also set at the beginning of the configure script. 41428 # Test for the AIX locale name. 41429 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41430 gt_cv_locale_ja=ja_JP 41431 else 41432 # Test for the locale name with explicit encoding suffix. 41433 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41434 gt_cv_locale_ja=ja_JP.EUC-JP 41435 else 41436 # Test for the HP-UX, OSF/1, NetBSD locale name. 41437 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41438 gt_cv_locale_ja=ja_JP.eucJP 41439 else 41440 # Test for the IRIX, FreeBSD locale name. 41441 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41442 gt_cv_locale_ja=ja_JP.EUC 41443 else 41444 # Test for the Solaris 7 locale name. 41445 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41446 gt_cv_locale_ja=ja 41447 else 41448 # Special test for NetBSD 1.6. 41449 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 41450 gt_cv_locale_ja=ja_JP.eucJP 41451 else 41452 # None found. 41453 gt_cv_locale_ja=none 41454 fi 41455 fi 41456 fi 41457 fi 41458 fi 41459 fi 41460 ;; 41461 esac 41462 fi 41463 rm -fr conftest* 41464 ;; 41465 esac 41466 fi 41467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 41468 printf "%s\n" "$gt_cv_locale_ja" >&6; } 41469 LOCALE_JA=$gt_cv_locale_ja 41470 41471 41472 41473 41474 41475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 41476 printf %s "checking for a transitional chinese locale... " >&6; } 41477 if test ${gt_cv_locale_zh_CN+y} 41478 then : 41479 printf %s "(cached) " >&6 41480 else case e in #( 41481 e) 41482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41483 /* end confdefs.h. */ 41484 41485 #include <locale.h> 41486 #include <stdlib.h> 41487 #include <time.h> 41488 #if HAVE_LANGINFO_CODESET 41489 # include <langinfo.h> 41490 #endif 41491 #include <stdlib.h> 41492 #include <string.h> 41493 struct tm t; 41494 char buf[16]; 41495 int main () 41496 { 41497 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 41498 imitates locale dependent behaviour by looking at the environment 41499 variables, and all locales use the UTF-8 encoding. */ 41500 #if defined __BEOS__ || defined __HAIKU__ 41501 return 1; 41502 #else 41503 /* Check whether the given locale name is recognized by the system. */ 41504 # if defined _WIN32 && !defined __CYGWIN__ 41505 /* On native Windows, setlocale(category, "") looks at the system settings, 41506 not at the environment variables. Also, when an encoding suffix such 41507 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 41508 category of the locale to "C". */ 41509 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 41510 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 41511 return 1; 41512 # else 41513 if (setlocale (LC_ALL, "") == NULL) return 1; 41514 # endif 41515 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 41516 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 41517 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 41518 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 41519 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 41520 some unit tests fail. 41521 On MirBSD 10, when an unsupported locale is specified, setlocale() 41522 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 41523 # if HAVE_LANGINFO_CODESET 41524 { 41525 const char *cs = nl_langinfo (CODESET); 41526 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 41527 || strcmp (cs, "UTF-8") == 0) 41528 return 1; 41529 } 41530 # endif 41531 # ifdef __CYGWIN__ 41532 /* On Cygwin, avoid locale names without encoding suffix, because the 41533 locale_charset() function relies on the encoding suffix. Note that 41534 LC_ALL is set on the command line. */ 41535 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 41536 # endif 41537 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 41538 This excludes the UTF-8 encoding (except on MirBSD). */ 41539 { 41540 const char *p; 41541 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 41542 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 41543 for (p = buf; *p != '\0'; p++) 41544 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 41545 return 1; 41546 } 41547 /* Check whether a typical GB18030 multibyte sequence is recognized as a 41548 single wide character. This excludes the GB2312 and GBK encodings. */ 41549 if (mblen ("\203\062\332\066", 5) != 4) 41550 return 1; 41551 return 0; 41552 #endif 41553 } 41554 41555 _ACEOF 41556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 41557 (eval $ac_link) 2>&5 41558 ac_status=$? 41559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 41560 test $ac_status = 0; } && test -s conftest$ac_exeext; then 41561 case "$host_os" in 41562 # Handle native Windows specially, because there setlocale() interprets 41563 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 41564 # "fr" or "fra" as "French" or "French_France.1252", 41565 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 41566 # "ja" as "Japanese" or "Japanese_Japan.932", 41567 # and similar. 41568 mingw*) 41569 # Test for the hypothetical native Windows locale name. 41570 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41571 gt_cv_locale_zh_CN=Chinese_China.54936 41572 else 41573 # None found. 41574 gt_cv_locale_zh_CN=none 41575 fi 41576 ;; 41577 solaris2.8) 41578 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 41579 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 41580 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 41581 gt_cv_locale_zh_CN=none 41582 ;; 41583 *) 41584 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 41585 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 41586 # configure script would override the LC_ALL setting. Likewise for 41587 # LC_CTYPE, which is also set at the beginning of the configure script. 41588 # Test for the locale name without encoding suffix. 41589 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41590 gt_cv_locale_zh_CN=zh_CN 41591 else 41592 # Test for the locale name with explicit encoding suffix. 41593 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 41594 gt_cv_locale_zh_CN=zh_CN.GB18030 41595 else 41596 # None found. 41597 gt_cv_locale_zh_CN=none 41598 fi 41599 fi 41600 ;; 41601 esac 41602 else 41603 # If there was a link error, due to mblen(), the system is so old that 41604 # it certainly doesn't have a chinese locale. 41605 gt_cv_locale_zh_CN=none 41606 fi 41607 rm -fr conftest* 41608 ;; 41609 esac 41610 fi 41611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 41612 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 41613 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 41614 41615 41616 41617 41618 if test "$ac_cv_header_winsock2_h" = yes; then 41619 GL_COND_OBJ_SETSOCKOPT_TRUE= 41620 GL_COND_OBJ_SETSOCKOPT_FALSE='#' 41621 else 41622 GL_COND_OBJ_SETSOCKOPT_TRUE='#' 41623 GL_COND_OBJ_SETSOCKOPT_FALSE= 41624 fi 41625 : 41626 if test -z "${GL_COND_OBJ_SETSOCKOPT_TRUE}" && test -z "${GL_COND_OBJ_SETSOCKOPT_FALSE}"; then 41627 GL_COND_OBJ_SETSOCKOPT_TRUE='#' 41628 GL_COND_OBJ_SETSOCKOPT_FALSE='#' 41629 fi 41630 41631 41632 41633 41634 41635 41636 41637 41638 41639 41640 if test "$GL_GNULIB_SETSOCKOPT" != 1; then 41641 if test "$GL_GNULIB_SETSOCKOPT" = 0; then 41642 GL_GNULIB_SETSOCKOPT=$gl_module_indicator_condition 41643 else 41644 GL_GNULIB_SETSOCKOPT="($GL_GNULIB_SETSOCKOPT || $gl_module_indicator_condition)" 41645 fi 41646 fi 41647 41648 41649 41650 41651 41652 printf "%s\n" "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h 41653 41654 41655 41656 41657 41658 41659 41660 41661 41662 41663 41664 41665 41666 HAVE_POSIX_SIGNALBLOCKING=0 41667 if test "$gl_cv_type_sigset_t" = yes; then 41668 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 41669 if test "x$ac_cv_func_sigprocmask" = xyes 41670 then : 41671 HAVE_POSIX_SIGNALBLOCKING=1 41672 fi 41673 41674 fi 41675 41676 41677 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 41678 GL_COND_OBJ_SIGPROCMASK_TRUE= 41679 GL_COND_OBJ_SIGPROCMASK_FALSE='#' 41680 else 41681 GL_COND_OBJ_SIGPROCMASK_TRUE='#' 41682 GL_COND_OBJ_SIGPROCMASK_FALSE= 41683 fi 41684 : 41685 if test -z "${GL_COND_OBJ_SIGPROCMASK_TRUE}" && test -z "${GL_COND_OBJ_SIGPROCMASK_FALSE}"; then 41686 GL_COND_OBJ_SIGPROCMASK_TRUE='#' 41687 GL_COND_OBJ_SIGPROCMASK_FALSE='#' 41688 fi 41689 41690 if test -z "$GL_COND_OBJ_SIGPROCMASK_TRUE"; then : 41691 41692 : 41693 41694 fi 41695 41696 41697 41698 41699 41700 41701 41702 41703 41704 if test "$GL_GNULIB_SIGPROCMASK" != 1; then 41705 if test "$GL_GNULIB_SIGPROCMASK" = 0; then 41706 GL_GNULIB_SIGPROCMASK=$gl_module_indicator_condition 41707 else 41708 GL_GNULIB_SIGPROCMASK="($GL_GNULIB_SIGPROCMASK || $gl_module_indicator_condition)" 41709 fi 41710 fi 41711 41712 41713 41714 41715 41716 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h 41717 41718 41719 41720 41721 41722 ac_fn_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h> 41723 " "$ac_c_undeclared_builtin_options" "CFLAGS" 41724 if test "x$ac_cv_have_decl_sleep" = xyes 41725 then : 41726 ac_have_decl=1 41727 else case e in #( 41728 e) ac_have_decl=0 ;; 41729 esac 41730 fi 41731 printf "%s\n" "#define HAVE_DECL_SLEEP $ac_have_decl" >>confdefs.h 41732 41733 41734 if test $ac_cv_have_decl_sleep != yes; then 41735 HAVE_SLEEP=0 41736 else 41737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5 41738 printf %s "checking for working sleep... " >&6; } 41739 if test ${gl_cv_func_sleep_works+y} 41740 then : 41741 printf %s "(cached) " >&6 41742 else case e in #( 41743 e) if test "$cross_compiling" = yes 41744 then : 41745 case "$host_os" in 41746 # Guess yes on glibc systems. 41747 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; 41748 # Guess yes on musl systems. 41749 *-musl*) gl_cv_func_sleep_works="guessing yes" ;; 41750 # Guess no on native Windows. 41751 mingw*) gl_cv_func_sleep_works="guessing no" ;; 41752 # If we don't know, obey --enable-cross-guesses. 41753 *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;; 41754 esac 41755 41756 else case e in #( 41757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41758 /* end confdefs.h. */ 41759 41760 #include <errno.h> 41761 #include <unistd.h> 41762 #include <signal.h> 41763 static void 41764 handle_alarm (int sig) 41765 { 41766 if (sig != SIGALRM) 41767 _exit (2); 41768 } 41769 41770 int 41771 main (void) 41772 { 41773 41774 /* Failure to compile this test due to missing alarm is okay, 41775 since all such platforms (mingw) also lack sleep. */ 41776 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */ 41777 unsigned int remaining; 41778 signal (SIGALRM, handle_alarm); 41779 alarm (1); 41780 remaining = sleep (pentecost); 41781 if (remaining > pentecost) 41782 return 3; 41783 if (remaining <= pentecost - 10) 41784 return 4; 41785 return 0; 41786 41787 ; 41788 return 0; 41789 } 41790 _ACEOF 41791 if ac_fn_c_try_run "$LINENO" 41792 then : 41793 gl_cv_func_sleep_works=yes 41794 else case e in #( 41795 e) gl_cv_func_sleep_works=no ;; 41796 esac 41797 fi 41798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41799 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 41800 esac 41801 fi 41802 ;; 41803 esac 41804 fi 41805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5 41806 printf "%s\n" "$gl_cv_func_sleep_works" >&6; } 41807 case "$gl_cv_func_sleep_works" in 41808 *yes) ;; 41809 *) 41810 REPLACE_SLEEP=1 41811 ;; 41812 esac 41813 fi 41814 41815 41816 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then 41817 GL_COND_OBJ_SLEEP_TRUE= 41818 GL_COND_OBJ_SLEEP_FALSE='#' 41819 else 41820 GL_COND_OBJ_SLEEP_TRUE='#' 41821 GL_COND_OBJ_SLEEP_FALSE= 41822 fi 41823 : 41824 if test -z "${GL_COND_OBJ_SLEEP_TRUE}" && test -z "${GL_COND_OBJ_SLEEP_FALSE}"; then 41825 GL_COND_OBJ_SLEEP_TRUE='#' 41826 GL_COND_OBJ_SLEEP_FALSE='#' 41827 fi 41828 41829 41830 41831 41832 41833 41834 41835 41836 41837 41838 if test "$GL_GNULIB_SLEEP" != 1; then 41839 if test "$GL_GNULIB_SLEEP" = 0; then 41840 GL_GNULIB_SLEEP=$gl_module_indicator_condition 41841 else 41842 GL_GNULIB_SLEEP="($GL_GNULIB_SLEEP || $gl_module_indicator_condition)" 41843 fi 41844 fi 41845 41846 41847 41848 41849 41850 printf "%s\n" "#define GNULIB_TEST_SLEEP 1" >>confdefs.h 41851 41852 41853 41854 41855 41856 41857 if test "$ac_cv_header_winsock2_h" = yes; then 41858 GL_COND_OBJ_SOCKET_TRUE= 41859 GL_COND_OBJ_SOCKET_FALSE='#' 41860 else 41861 GL_COND_OBJ_SOCKET_TRUE='#' 41862 GL_COND_OBJ_SOCKET_FALSE= 41863 fi 41864 : 41865 if test -z "${GL_COND_OBJ_SOCKET_TRUE}" && test -z "${GL_COND_OBJ_SOCKET_FALSE}"; then 41866 GL_COND_OBJ_SOCKET_TRUE='#' 41867 GL_COND_OBJ_SOCKET_FALSE='#' 41868 fi 41869 41870 # When this module is used, sockets may actually occur as file descriptors, 41871 # hence it is worth warning if the modules 'close' and 'ioctl' are not used. 41872 41873 41874 41875 41876 41877 41878 41879 41880 41881 41882 41883 if test "$ac_cv_header_winsock2_h" = yes; then 41884 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 41885 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 41886 fi 41887 41888 41889 41890 41891 41892 41893 41894 41895 41896 if test "$GL_GNULIB_SOCKET" != 1; then 41897 if test "$GL_GNULIB_SOCKET" = 0; then 41898 GL_GNULIB_SOCKET=$gl_module_indicator_condition 41899 else 41900 GL_GNULIB_SOCKET="($GL_GNULIB_SOCKET || $gl_module_indicator_condition)" 41901 fi 41902 fi 41903 41904 41905 41906 41907 41908 printf "%s\n" "#define GNULIB_TEST_SOCKET 1" >>confdefs.h 41909 41910 41911 41912 41913 41914 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 41915 /* <sys/types.h> is not needed according to POSIX, but the 41916 <sys/socket.h> in i386-unknown-freebsd4.10 and 41917 powerpc-apple-darwin5.5 required it. */ 41918 #include <sys/types.h> 41919 #if HAVE_SYS_SOCKET_H 41920 # include <sys/socket.h> 41921 #elif HAVE_WS2TCPIP_H 41922 # include <ws2tcpip.h> 41923 #endif 41924 41925 " 41926 if test "x$ac_cv_type_socklen_t" = xyes 41927 then : 41928 41929 else case e in #( 41930 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 41931 printf %s "checking for socklen_t equivalent... " >&6; } 41932 if test ${gl_cv_socklen_t_equiv+y} 41933 then : 41934 printf %s "(cached) " >&6 41935 else case e in #( 41936 e) # Systems have either "struct sockaddr *" or 41937 # "void *" as the second argument to getpeername 41938 gl_cv_socklen_t_equiv= 41939 for arg2 in "struct sockaddr" void; do 41940 for t in int size_t "unsigned int" "long int" "unsigned long int"; do 41941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41942 /* end confdefs.h. */ 41943 #include <sys/types.h> 41944 #include <sys/socket.h> 41945 41946 int getpeername (int, $arg2 *, $t *); 41947 int 41948 main (void) 41949 { 41950 $t len; 41951 getpeername (0, 0, &len); 41952 ; 41953 return 0; 41954 } 41955 _ACEOF 41956 if ac_fn_c_try_compile "$LINENO" 41957 then : 41958 gl_cv_socklen_t_equiv="$t" 41959 fi 41960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41961 test "$gl_cv_socklen_t_equiv" != "" && break 41962 done 41963 test "$gl_cv_socklen_t_equiv" != "" && break 41964 done 41965 if test "$gl_cv_socklen_t_equiv" = ""; then 41966 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 41967 fi 41968 ;; 41969 esac 41970 fi 41971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 41972 printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; } 41973 41974 printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h 41975 ;; 41976 esac 41977 fi 41978 41979 41980 41981 41982 41983 41984 if test $gl_cv_func_malloc_posix != yes; then 41985 REPLACE_STRDUP=1 41986 fi 41987 41988 if test $ac_cv_have_decl_strdup = no; then 41989 HAVE_DECL_STRDUP=0 41990 fi 41991 41992 41993 if test $REPLACE_STRDUP = 1; then 41994 GL_COND_OBJ_STRDUP_TRUE= 41995 GL_COND_OBJ_STRDUP_FALSE='#' 41996 else 41997 GL_COND_OBJ_STRDUP_TRUE='#' 41998 GL_COND_OBJ_STRDUP_FALSE= 41999 fi 42000 : 42001 if test -z "${GL_COND_OBJ_STRDUP_TRUE}" && test -z "${GL_COND_OBJ_STRDUP_FALSE}"; then 42002 GL_COND_OBJ_STRDUP_TRUE='#' 42003 GL_COND_OBJ_STRDUP_FALSE='#' 42004 fi 42005 42006 if test -z "$GL_COND_OBJ_STRDUP_TRUE"; then : 42007 42008 : 42009 42010 fi 42011 42012 42013 42014 42015 42016 42017 42018 42019 42020 42021 42022 42023 42024 42025 if test "$GL_GNULIB_STRDUP" != 1; then 42026 if test "$GL_GNULIB_STRDUP" = 0; then 42027 GL_GNULIB_STRDUP=$gl_module_indicator_condition 42028 else 42029 GL_GNULIB_STRDUP="($GL_GNULIB_STRDUP || $gl_module_indicator_condition)" 42030 fi 42031 fi 42032 42033 42034 42035 42036 42037 printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h 42038 42039 42040 42041 42042 42043 42044 42045 42046 if test $ac_cv_have_decl_strerror_r = no; then 42047 HAVE_DECL_STRERROR_R=0 42048 fi 42049 42050 if test $ac_cv_func_strerror_r = yes; then 42051 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then 42052 if test $gl_cv_func_strerror_r_posix_signature = yes; then 42053 case "$gl_cv_func_strerror_r_works" in 42054 *no) REPLACE_STRERROR_R=1 ;; 42055 esac 42056 else 42057 REPLACE_STRERROR_R=1 42058 fi 42059 else 42060 REPLACE_STRERROR_R=1 42061 fi 42062 fi 42063 42064 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1 42065 then : 42066 42067 42068 42069 42070 42071 42072 42073 42074 42075 gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext" 42076 42077 42078 42079 42080 42081 42082 42083 42084 fi 42085 42086 42087 42088 42089 42090 42091 42092 42093 42094 42095 42096 42097 42098 42099 if test "$GL_GNULIB_STRERROR_R" != 1; then 42100 if test "$GL_GNULIB_STRERROR_R" = 0; then 42101 GL_GNULIB_STRERROR_R=$gl_module_indicator_condition 42102 else 42103 GL_GNULIB_STRERROR_R="($GL_GNULIB_STRERROR_R || $gl_module_indicator_condition)" 42104 fi 42105 fi 42106 42107 42108 42109 42110 42111 printf "%s\n" "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h 42112 42113 42114 42115 42116 42117 printf "%s\n" "#define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition" >>confdefs.h 42118 42119 42120 42121 42122 42123 if test $ac_cv_func_symlink = no; then 42124 HAVE_SYMLINK=0 42125 else 42126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 42127 printf %s "checking whether symlink handles trailing slash correctly... " >&6; } 42128 if test ${gl_cv_func_symlink_works+y} 42129 then : 42130 printf %s "(cached) " >&6 42131 else case e in #( 42132 e) if test "$cross_compiling" = yes 42133 then : 42134 case "$host_os" in 42135 # Guess yes on Linux systems. 42136 linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;; 42137 # Guess yes on glibc systems. 42138 *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;; 42139 # If we don't know, obey --enable-cross-guesses. 42140 *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;; 42141 esac 42142 42143 else case e in #( 42144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42145 /* end confdefs.h. */ 42146 #include <unistd.h> 42147 42148 int 42149 main (void) 42150 { 42151 int result = 0; 42152 if (!symlink ("a", "conftest.link/")) 42153 result |= 1; 42154 if (symlink ("conftest.f", "conftest.lnk2")) 42155 result |= 2; 42156 else if (!symlink ("a", "conftest.lnk2/")) 42157 result |= 4; 42158 return result; 42159 42160 ; 42161 return 0; 42162 } 42163 _ACEOF 42164 if ac_fn_c_try_run "$LINENO" 42165 then : 42166 gl_cv_func_symlink_works=yes 42167 else case e in #( 42168 e) gl_cv_func_symlink_works=no ;; 42169 esac 42170 fi 42171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42172 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 42173 esac 42174 fi 42175 42176 rm -f conftest.f conftest.link conftest.lnk2 ;; 42177 esac 42178 fi 42179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 42180 printf "%s\n" "$gl_cv_func_symlink_works" >&6; } 42181 case "$gl_cv_func_symlink_works" in 42182 *yes) ;; 42183 *) 42184 REPLACE_SYMLINK=1 42185 ;; 42186 esac 42187 fi 42188 42189 42190 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then 42191 GL_COND_OBJ_SYMLINK_TRUE= 42192 GL_COND_OBJ_SYMLINK_FALSE='#' 42193 else 42194 GL_COND_OBJ_SYMLINK_TRUE='#' 42195 GL_COND_OBJ_SYMLINK_FALSE= 42196 fi 42197 : 42198 if test -z "${GL_COND_OBJ_SYMLINK_TRUE}" && test -z "${GL_COND_OBJ_SYMLINK_FALSE}"; then 42199 GL_COND_OBJ_SYMLINK_TRUE='#' 42200 GL_COND_OBJ_SYMLINK_FALSE='#' 42201 fi 42202 42203 42204 42205 42206 42207 42208 42209 42210 42211 42212 if test "$GL_GNULIB_SYMLINK" != 1; then 42213 if test "$GL_GNULIB_SYMLINK" = 0; then 42214 GL_GNULIB_SYMLINK=$gl_module_indicator_condition 42215 else 42216 GL_GNULIB_SYMLINK="($GL_GNULIB_SYMLINK || $gl_module_indicator_condition)" 42217 fi 42218 fi 42219 42220 42221 42222 42223 42224 printf "%s\n" "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h 42225 42226 42227 42228 42229 42230 42231 42232 42233 42234 42235 42236 42237 42238 42239 42240 42241 42242 42243 42244 42245 42246 42247 42248 42249 42250 42251 42252 42253 42254 42255 42256 42257 42258 42259 42260 42261 42262 42263 42264 42265 42266 42267 if test $gl_threads_api = posix; then 42268 gl_save_LIBS="$LIBS" 42269 LIBS="$LIBS $LIBMULTITHREAD" 42270 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 42271 if test "x$ac_cv_func_pthread_atfork" = xyes 42272 then : 42273 printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h 42274 42275 fi 42276 42277 LIBS="$gl_save_LIBS" 42278 fi 42279 42280 ac_fn_c_check_header_compile "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default" 42281 if test "x$ac_cv_header_sys_single_threaded_h" = xyes 42282 then : 42283 printf "%s\n" "#define HAVE_SYS_SINGLE_THREADED_H 1" >>confdefs.h 42284 42285 fi 42286 42287 42288 42289 42290 if test $ac_cv_have_decl_unsetenv = no; then 42291 HAVE_DECL_UNSETENV=0 42292 fi 42293 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 42294 if test "x$ac_cv_func_unsetenv" = xyes 42295 then : 42296 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 42297 42298 fi 42299 42300 if test $ac_cv_func_unsetenv = no; then 42301 HAVE_UNSETENV=0 42302 else 42303 HAVE_UNSETENV=1 42304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 42305 printf %s "checking for unsetenv() return type... " >&6; } 42306 if test ${gt_cv_func_unsetenv_ret+y} 42307 then : 42308 printf %s "(cached) " >&6 42309 else case e in #( 42310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42311 /* end confdefs.h. */ 42312 42313 #undef _BSD 42314 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */ 42315 #include <stdlib.h> 42316 extern 42317 #ifdef __cplusplus 42318 "C" 42319 #endif 42320 int unsetenv (const char *name); 42321 42322 int 42323 main (void) 42324 { 42325 42326 ; 42327 return 0; 42328 } 42329 _ACEOF 42330 if ac_fn_c_try_compile "$LINENO" 42331 then : 42332 gt_cv_func_unsetenv_ret='int' 42333 else case e in #( 42334 e) gt_cv_func_unsetenv_ret='void' ;; 42335 esac 42336 fi 42337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 42338 esac 42339 fi 42340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 42341 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; } 42342 if test $gt_cv_func_unsetenv_ret = 'void'; then 42343 42344 printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h 42345 42346 REPLACE_UNSETENV=1 42347 fi 42348 42349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 42350 printf %s "checking whether unsetenv obeys POSIX... " >&6; } 42351 if test ${gl_cv_func_unsetenv_works+y} 42352 then : 42353 printf %s "(cached) " >&6 42354 else case e in #( 42355 e) if test "$cross_compiling" = yes 42356 then : 42357 case "$host_os" in 42358 # Guess yes on glibc systems. 42359 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; 42360 # If we don't know, obey --enable-cross-guesses. 42361 *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;; 42362 esac 42363 42364 else case e in #( 42365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42366 /* end confdefs.h. */ 42367 42368 #include <stdlib.h> 42369 #include <errno.h> 42370 extern char **environ; 42371 42372 42373 $gl_mda_defines 42374 42375 int 42376 main (void) 42377 { 42378 42379 char entry1[] = "a=1"; 42380 char entry2[] = "b=2"; 42381 char *env[] = { entry1, entry2, NULL }; 42382 if (putenv ((char *) "a=1")) return 1; 42383 if (putenv (entry2)) return 2; 42384 entry2[0] = 'a'; 42385 unsetenv ("a"); 42386 if (getenv ("a")) return 3; 42387 if (!unsetenv ("") || errno != EINVAL) return 4; 42388 entry2[0] = 'b'; 42389 environ = env; 42390 if (!getenv ("a")) return 5; 42391 entry2[0] = 'a'; 42392 unsetenv ("a"); 42393 if (getenv ("a")) return 6; 42394 42395 ; 42396 return 0; 42397 } 42398 _ACEOF 42399 if ac_fn_c_try_run "$LINENO" 42400 then : 42401 gl_cv_func_unsetenv_works=yes 42402 else case e in #( 42403 e) gl_cv_func_unsetenv_works=no ;; 42404 esac 42405 fi 42406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42407 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 42408 esac 42409 fi 42410 42411 ;; 42412 esac 42413 fi 42414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 42415 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; } 42416 case "$gl_cv_func_unsetenv_works" in 42417 *yes) ;; 42418 *) 42419 REPLACE_UNSETENV=1 42420 ;; 42421 esac 42422 fi 42423 42424 42425 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 42426 GL_COND_OBJ_UNSETENV_TRUE= 42427 GL_COND_OBJ_UNSETENV_FALSE='#' 42428 else 42429 GL_COND_OBJ_UNSETENV_TRUE='#' 42430 GL_COND_OBJ_UNSETENV_FALSE= 42431 fi 42432 : 42433 if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then 42434 GL_COND_OBJ_UNSETENV_TRUE='#' 42435 GL_COND_OBJ_UNSETENV_FALSE='#' 42436 fi 42437 42438 if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then : 42439 42440 42441 42442 42443 42444 42445 fi 42446 42447 42448 42449 42450 42451 42452 42453 42454 42455 if test "$GL_GNULIB_UNSETENV" != 1; then 42456 if test "$GL_GNULIB_UNSETENV" = 0; then 42457 GL_GNULIB_UNSETENV=$gl_module_indicator_condition 42458 else 42459 GL_GNULIB_UNSETENV="($GL_GNULIB_UNSETENV || $gl_module_indicator_condition)" 42460 fi 42461 fi 42462 42463 42464 42465 42466 42467 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h 42468 42469 42470 42471 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 42472 42473 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 42474 42475 42476 42477 42478 42479 42480 42481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 42482 printf %s "checking for a traditional french locale... " >&6; } 42483 if test ${gt_cv_locale_fr+y} 42484 then : 42485 printf %s "(cached) " >&6 42486 else case e in #( 42487 e) 42488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42489 /* end confdefs.h. */ 42490 42491 #include <locale.h> 42492 #include <time.h> 42493 #if HAVE_LANGINFO_CODESET 42494 # include <langinfo.h> 42495 #endif 42496 #include <stdlib.h> 42497 #include <string.h> 42498 struct tm t; 42499 char buf[16]; 42500 int main () { 42501 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42502 imitates locale dependent behaviour by looking at the environment 42503 variables, and all locales use the UTF-8 encoding. */ 42504 #if defined __BEOS__ || defined __HAIKU__ 42505 return 1; 42506 #else 42507 /* Check whether the given locale name is recognized by the system. */ 42508 # if defined _WIN32 && !defined __CYGWIN__ 42509 /* On native Windows, setlocale(category, "") looks at the system settings, 42510 not at the environment variables. Also, when an encoding suffix such 42511 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42512 category of the locale to "C". */ 42513 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42514 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42515 return 1; 42516 # else 42517 if (setlocale (LC_ALL, "") == NULL) return 1; 42518 # endif 42519 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42520 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42521 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42522 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42523 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42524 some unit tests fail. 42525 On MirBSD 10, when an unsupported locale is specified, setlocale() 42526 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 42527 # if HAVE_LANGINFO_CODESET 42528 { 42529 const char *cs = nl_langinfo (CODESET); 42530 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 42531 || strcmp (cs, "UTF-8") == 0) 42532 return 1; 42533 } 42534 # endif 42535 # ifdef __CYGWIN__ 42536 /* On Cygwin, avoid locale names without encoding suffix, because the 42537 locale_charset() function relies on the encoding suffix. Note that 42538 LC_ALL is set on the command line. */ 42539 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42540 # endif 42541 /* Check whether in the abbreviation of the second month, the second 42542 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 42543 one byte long. This excludes the UTF-8 encoding. */ 42544 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42545 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 42546 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 42547 /* Check whether the decimal separator is a comma. 42548 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 42549 are nl_langinfo(RADIXCHAR) are both ".". */ 42550 if (localeconv () ->decimal_point[0] != ',') return 1; 42551 # endif 42552 return 0; 42553 #endif 42554 } 42555 42556 _ACEOF 42557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42558 (eval $ac_link) 2>&5 42559 ac_status=$? 42560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42561 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42562 case "$host_os" in 42563 # Handle native Windows specially, because there setlocale() interprets 42564 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42565 # "fr" or "fra" as "French" or "French_France.1252", 42566 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42567 # "ja" as "Japanese" or "Japanese_Japan.932", 42568 # and similar. 42569 mingw*) 42570 # Test for the native Windows locale name. 42571 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42572 gt_cv_locale_fr=French_France.1252 42573 else 42574 # None found. 42575 gt_cv_locale_fr=none 42576 fi 42577 ;; 42578 *) 42579 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42580 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42581 # configure script would override the LC_ALL setting. Likewise for 42582 # LC_CTYPE, which is also set at the beginning of the configure script. 42583 # Test for the usual locale name. 42584 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42585 gt_cv_locale_fr=fr_FR 42586 else 42587 # Test for the locale name with explicit encoding suffix. 42588 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42589 gt_cv_locale_fr=fr_FR.ISO-8859-1 42590 else 42591 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 42592 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42593 gt_cv_locale_fr=fr_FR.ISO8859-1 42594 else 42595 # Test for the HP-UX locale name. 42596 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42597 gt_cv_locale_fr=fr_FR.iso88591 42598 else 42599 # Test for the Solaris 7 locale name. 42600 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42601 gt_cv_locale_fr=fr 42602 else 42603 # None found. 42604 gt_cv_locale_fr=none 42605 fi 42606 fi 42607 fi 42608 fi 42609 fi 42610 ;; 42611 esac 42612 fi 42613 rm -fr conftest* 42614 ;; 42615 esac 42616 fi 42617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 42618 printf "%s\n" "$gt_cv_locale_fr" >&6; } 42619 LOCALE_FR=$gt_cv_locale_fr 42620 42621 42622 42623 42624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 42625 printf %s "checking for a french Unicode locale... " >&6; } 42626 if test ${gt_cv_locale_fr_utf8+y} 42627 then : 42628 printf %s "(cached) " >&6 42629 else case e in #( 42630 e) 42631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42632 /* end confdefs.h. */ 42633 42634 #include <locale.h> 42635 #include <time.h> 42636 #if HAVE_LANGINFO_CODESET 42637 # include <langinfo.h> 42638 #endif 42639 #include <stdlib.h> 42640 #include <string.h> 42641 struct tm t; 42642 char buf[16]; 42643 int main () { 42644 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42645 imitates locale dependent behaviour by looking at the environment 42646 variables, and all locales use the UTF-8 encoding. */ 42647 #if !(defined __BEOS__ || defined __HAIKU__) 42648 /* Check whether the given locale name is recognized by the system. */ 42649 # if defined _WIN32 && !defined __CYGWIN__ 42650 /* On native Windows, setlocale(category, "") looks at the system settings, 42651 not at the environment variables. Also, when an encoding suffix such 42652 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42653 category of the locale to "C". */ 42654 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42655 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42656 return 1; 42657 # else 42658 if (setlocale (LC_ALL, "") == NULL) return 1; 42659 # endif 42660 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42661 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42662 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42663 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42664 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42665 some unit tests fail. */ 42666 # if HAVE_LANGINFO_CODESET 42667 { 42668 const char *cs = nl_langinfo (CODESET); 42669 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 42670 return 1; 42671 } 42672 # endif 42673 # ifdef __CYGWIN__ 42674 /* On Cygwin, avoid locale names without encoding suffix, because the 42675 locale_charset() function relies on the encoding suffix. Note that 42676 LC_ALL is set on the command line. */ 42677 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42678 # endif 42679 /* Check whether in the abbreviation of the second month, the second 42680 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 42681 two bytes long, with UTF-8 encoding. */ 42682 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42683 if (strftime (buf, sizeof (buf), "%b", &t) < 4 42684 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 42685 return 1; 42686 #endif 42687 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 42688 /* Check whether the decimal separator is a comma. 42689 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 42690 are nl_langinfo(RADIXCHAR) are both ".". */ 42691 if (localeconv () ->decimal_point[0] != ',') return 1; 42692 #endif 42693 return 0; 42694 } 42695 42696 _ACEOF 42697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42698 (eval $ac_link) 2>&5 42699 ac_status=$? 42700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42701 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42702 case "$host_os" in 42703 # Handle native Windows specially, because there setlocale() interprets 42704 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42705 # "fr" or "fra" as "French" or "French_France.1252", 42706 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42707 # "ja" as "Japanese" or "Japanese_Japan.932", 42708 # and similar. 42709 mingw*) 42710 # Test for the hypothetical native Windows locale name. 42711 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42712 gt_cv_locale_fr_utf8=French_France.65001 42713 else 42714 # None found. 42715 gt_cv_locale_fr_utf8=none 42716 fi 42717 ;; 42718 *) 42719 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42720 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42721 # configure script would override the LC_ALL setting. Likewise for 42722 # LC_CTYPE, which is also set at the beginning of the configure script. 42723 # Test for the usual locale name. 42724 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42725 gt_cv_locale_fr_utf8=fr_FR 42726 else 42727 # Test for the locale name with explicit encoding suffix. 42728 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42729 gt_cv_locale_fr_utf8=fr_FR.UTF-8 42730 else 42731 # Test for the Solaris 7 locale name. 42732 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42733 gt_cv_locale_fr_utf8=fr.UTF-8 42734 else 42735 # None found. 42736 gt_cv_locale_fr_utf8=none 42737 fi 42738 fi 42739 fi 42740 ;; 42741 esac 42742 fi 42743 rm -fr conftest* 42744 ;; 42745 esac 42746 fi 42747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 42748 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 42749 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 42750 42751 42752 42753 42754 42755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 42756 printf %s "checking for a traditional japanese locale... " >&6; } 42757 if test ${gt_cv_locale_ja+y} 42758 then : 42759 printf %s "(cached) " >&6 42760 else case e in #( 42761 e) 42762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42763 /* end confdefs.h. */ 42764 42765 #include <locale.h> 42766 #include <time.h> 42767 #if HAVE_LANGINFO_CODESET 42768 # include <langinfo.h> 42769 #endif 42770 #include <stdlib.h> 42771 #include <string.h> 42772 struct tm t; 42773 char buf[16]; 42774 int main () 42775 { 42776 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42777 imitates locale dependent behaviour by looking at the environment 42778 variables, and all locales use the UTF-8 encoding. */ 42779 #if defined __BEOS__ || defined __HAIKU__ 42780 return 1; 42781 #else 42782 /* Check whether the given locale name is recognized by the system. */ 42783 # if defined _WIN32 && !defined __CYGWIN__ 42784 /* On native Windows, setlocale(category, "") looks at the system settings, 42785 not at the environment variables. Also, when an encoding suffix such 42786 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42787 category of the locale to "C". */ 42788 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42789 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42790 return 1; 42791 # else 42792 if (setlocale (LC_ALL, "") == NULL) return 1; 42793 # endif 42794 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42795 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42796 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42797 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42798 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42799 some unit tests fail. 42800 On MirBSD 10, when an unsupported locale is specified, setlocale() 42801 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 42802 # if HAVE_LANGINFO_CODESET 42803 { 42804 const char *cs = nl_langinfo (CODESET); 42805 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 42806 || strcmp (cs, "UTF-8") == 0) 42807 return 1; 42808 } 42809 # endif 42810 # ifdef __CYGWIN__ 42811 /* On Cygwin, avoid locale names without encoding suffix, because the 42812 locale_charset() function relies on the encoding suffix. Note that 42813 LC_ALL is set on the command line. */ 42814 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42815 # endif 42816 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 42817 on Cygwin 1.5.x. */ 42818 if (MB_CUR_MAX == 1) 42819 return 1; 42820 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 42821 This excludes the UTF-8 encoding (except on MirBSD). */ 42822 { 42823 const char *p; 42824 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42825 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 42826 for (p = buf; *p != '\0'; p++) 42827 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 42828 return 1; 42829 } 42830 return 0; 42831 #endif 42832 } 42833 42834 _ACEOF 42835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42836 (eval $ac_link) 2>&5 42837 ac_status=$? 42838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42839 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42840 case "$host_os" in 42841 # Handle native Windows specially, because there setlocale() interprets 42842 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42843 # "fr" or "fra" as "French" or "French_France.1252", 42844 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42845 # "ja" as "Japanese" or "Japanese_Japan.932", 42846 # and similar. 42847 mingw*) 42848 # Note that on native Windows, the Japanese locale is 42849 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 42850 # cannot use it here. 42851 gt_cv_locale_ja=none 42852 ;; 42853 *) 42854 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42855 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42856 # configure script would override the LC_ALL setting. Likewise for 42857 # LC_CTYPE, which is also set at the beginning of the configure script. 42858 # Test for the AIX locale name. 42859 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42860 gt_cv_locale_ja=ja_JP 42861 else 42862 # Test for the locale name with explicit encoding suffix. 42863 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42864 gt_cv_locale_ja=ja_JP.EUC-JP 42865 else 42866 # Test for the HP-UX, OSF/1, NetBSD locale name. 42867 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42868 gt_cv_locale_ja=ja_JP.eucJP 42869 else 42870 # Test for the IRIX, FreeBSD locale name. 42871 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42872 gt_cv_locale_ja=ja_JP.EUC 42873 else 42874 # Test for the Solaris 7 locale name. 42875 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42876 gt_cv_locale_ja=ja 42877 else 42878 # Special test for NetBSD 1.6. 42879 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 42880 gt_cv_locale_ja=ja_JP.eucJP 42881 else 42882 # None found. 42883 gt_cv_locale_ja=none 42884 fi 42885 fi 42886 fi 42887 fi 42888 fi 42889 fi 42890 ;; 42891 esac 42892 fi 42893 rm -fr conftest* 42894 ;; 42895 esac 42896 fi 42897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 42898 printf "%s\n" "$gt_cv_locale_ja" >&6; } 42899 LOCALE_JA=$gt_cv_locale_ja 42900 42901 42902 42903 42904 42905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 42906 printf %s "checking for a transitional chinese locale... " >&6; } 42907 if test ${gt_cv_locale_zh_CN+y} 42908 then : 42909 printf %s "(cached) " >&6 42910 else case e in #( 42911 e) 42912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42913 /* end confdefs.h. */ 42914 42915 #include <locale.h> 42916 #include <stdlib.h> 42917 #include <time.h> 42918 #if HAVE_LANGINFO_CODESET 42919 # include <langinfo.h> 42920 #endif 42921 #include <stdlib.h> 42922 #include <string.h> 42923 struct tm t; 42924 char buf[16]; 42925 int main () 42926 { 42927 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42928 imitates locale dependent behaviour by looking at the environment 42929 variables, and all locales use the UTF-8 encoding. */ 42930 #if defined __BEOS__ || defined __HAIKU__ 42931 return 1; 42932 #else 42933 /* Check whether the given locale name is recognized by the system. */ 42934 # if defined _WIN32 && !defined __CYGWIN__ 42935 /* On native Windows, setlocale(category, "") looks at the system settings, 42936 not at the environment variables. Also, when an encoding suffix such 42937 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42938 category of the locale to "C". */ 42939 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42940 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42941 return 1; 42942 # else 42943 if (setlocale (LC_ALL, "") == NULL) return 1; 42944 # endif 42945 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42946 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42947 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42948 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42949 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42950 some unit tests fail. 42951 On MirBSD 10, when an unsupported locale is specified, setlocale() 42952 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 42953 # if HAVE_LANGINFO_CODESET 42954 { 42955 const char *cs = nl_langinfo (CODESET); 42956 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 42957 || strcmp (cs, "UTF-8") == 0) 42958 return 1; 42959 } 42960 # endif 42961 # ifdef __CYGWIN__ 42962 /* On Cygwin, avoid locale names without encoding suffix, because the 42963 locale_charset() function relies on the encoding suffix. Note that 42964 LC_ALL is set on the command line. */ 42965 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42966 # endif 42967 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 42968 This excludes the UTF-8 encoding (except on MirBSD). */ 42969 { 42970 const char *p; 42971 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42972 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 42973 for (p = buf; *p != '\0'; p++) 42974 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 42975 return 1; 42976 } 42977 /* Check whether a typical GB18030 multibyte sequence is recognized as a 42978 single wide character. This excludes the GB2312 and GBK encodings. */ 42979 if (mblen ("\203\062\332\066", 5) != 4) 42980 return 1; 42981 return 0; 42982 #endif 42983 } 42984 42985 _ACEOF 42986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42987 (eval $ac_link) 2>&5 42988 ac_status=$? 42989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42990 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42991 case "$host_os" in 42992 # Handle native Windows specially, because there setlocale() interprets 42993 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42994 # "fr" or "fra" as "French" or "French_France.1252", 42995 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42996 # "ja" as "Japanese" or "Japanese_Japan.932", 42997 # and similar. 42998 mingw*) 42999 # Test for the hypothetical native Windows locale name. 43000 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 43001 gt_cv_locale_zh_CN=Chinese_China.54936 43002 else 43003 # None found. 43004 gt_cv_locale_zh_CN=none 43005 fi 43006 ;; 43007 solaris2.8) 43008 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 43009 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 43010 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 43011 gt_cv_locale_zh_CN=none 43012 ;; 43013 *) 43014 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 43015 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 43016 # configure script would override the LC_ALL setting. Likewise for 43017 # LC_CTYPE, which is also set at the beginning of the configure script. 43018 # Test for the locale name without encoding suffix. 43019 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 43020 gt_cv_locale_zh_CN=zh_CN 43021 else 43022 # Test for the locale name with explicit encoding suffix. 43023 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 43024 gt_cv_locale_zh_CN=zh_CN.GB18030 43025 else 43026 # None found. 43027 gt_cv_locale_zh_CN=none 43028 fi 43029 fi 43030 ;; 43031 esac 43032 else 43033 # If there was a link error, due to mblen(), the system is so old that 43034 # it certainly doesn't have a chinese locale. 43035 gt_cv_locale_zh_CN=none 43036 fi 43037 rm -fr conftest* 43038 ;; 43039 esac 43040 fi 43041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 43042 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 43043 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 43044 43045 43046 43047 43048 if case "$host_os" in mingw*) true;; *) false;; esac; then 43049 GL_COND_OBJ_WINDOWS_THREAD_TRUE= 43050 GL_COND_OBJ_WINDOWS_THREAD_FALSE='#' 43051 else 43052 GL_COND_OBJ_WINDOWS_THREAD_TRUE='#' 43053 GL_COND_OBJ_WINDOWS_THREAD_FALSE= 43054 fi 43055 : 43056 if test -z "${GL_COND_OBJ_WINDOWS_THREAD_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_THREAD_FALSE}"; then 43057 GL_COND_OBJ_WINDOWS_THREAD_TRUE='#' 43058 GL_COND_OBJ_WINDOWS_THREAD_FALSE='#' 43059 fi 43060 43061 43062 43063 if case "$host_os" in mingw*) true;; *) false;; esac; then 43064 GL_COND_OBJ_WINDOWS_TLS_TRUE= 43065 GL_COND_OBJ_WINDOWS_TLS_FALSE='#' 43066 else 43067 GL_COND_OBJ_WINDOWS_TLS_TRUE='#' 43068 GL_COND_OBJ_WINDOWS_TLS_FALSE= 43069 fi 43070 : 43071 if test -z "${GL_COND_OBJ_WINDOWS_TLS_TRUE}" && test -z "${GL_COND_OBJ_WINDOWS_TLS_FALSE}"; then 43072 GL_COND_OBJ_WINDOWS_TLS_TRUE='#' 43073 GL_COND_OBJ_WINDOWS_TLS_FALSE='#' 43074 fi 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 LIBSED_LIBDEPS="$gl_libdeps" 43090 43091 LIBSED_LTLIBDEPS="$gl_ltlibdeps" 43092 43093 LIBTESTS_LIBDEPS="$gltests_libdeps" 43094 43095 43096 43097 43098 43099 43100 # Ensure VLAs are not used. 43101 # Note -Wvla is implicitly added by gl_MANYWARN_ALL_GCC 43102 43103 printf "%s\n" "#define GNULIB_NO_VLA 1" >>confdefs.h 43104 43105 43106 # The test suite needs to know if we have a working perl. 43107 if test "$gl_cv_prog_perl" != no; then 43108 HAVE_PERL_TRUE= 43109 HAVE_PERL_FALSE='#' 43110 else 43111 HAVE_PERL_TRUE='#' 43112 HAVE_PERL_FALSE= 43113 fi 43114 43115 43116 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) 43117 # ------------------------------------------------ 43118 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND. 43119 # Otherwise, run RUN-IF-NOT-FOUND. 43120 43121 43122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"rt\" can be used with fopen" >&5 43123 printf %s "checking whether \"rt\" can be used with fopen... " >&6; } 43124 if test ${sed_cv_fopen_rt+y} 43125 then : 43126 printf %s "(cached) " >&6 43127 else case e in #( 43128 e) 43129 if test "$cross_compiling" = yes 43130 then : 43131 case $host in 43132 *cygwin* | *mingw*) sed_cv_fopen_rt=yes ;; 43133 *) sed_cv_fopen_rt='assuming no' ;; 43134 esac 43135 else case e in #( 43136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43137 /* end confdefs.h. */ 43138 43139 #include <stdio.h> 43140 #include <errno.h> 43141 43142 int main() 43143 { 43144 FILE *fp; 43145 int result; 43146 errno = 0; 43147 fp = fopen ("conftest.c", "rt"); 43148 if (fp) fclose (fp); 43149 return fp ? 0 : 1; 43150 } 43151 _ACEOF 43152 if ac_fn_c_try_run "$LINENO" 43153 then : 43154 sed_cv_fopen_rt=yes 43155 else case e in #( 43156 e) sed_cv_fopen_rt=no ;; 43157 esac 43158 fi 43159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43160 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 43161 esac 43162 fi 43163 ;; 43164 esac 43165 fi 43166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sed_cv_fopen_rt" >&5 43167 printf "%s\n" "$sed_cv_fopen_rt" >&6; } 43168 if test "$sed_cv_fopen_rt" = yes; then 43169 43170 printf "%s\n" "#define HAVE_FOPEN_RT 1" >>confdefs.h 43171 43172 fi 43173 43174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lcP is needed" >&5 43175 printf %s "checking whether -lcP is needed... " >&6; } 43176 if test ${sed_cv_libcp_needed+y} 43177 then : 43178 printf %s "(cached) " >&6 43179 else case e in #( 43180 e) 43181 if test "$cross_compiling" = yes 43182 then : 43183 sed_cv_libcp_needed="assuming no" 43184 else case e in #( 43185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43186 /* end confdefs.h. */ 43187 43188 #include <stdio.h> 43189 #include <errno.h> 43190 43191 int main() 43192 { 43193 FILE *fp; 43194 int result; 43195 errno = 0; 43196 fp = fopen ("conftest.c", "r"); 43197 if (!fp) return 0; /* error, assume not needed */ 43198 result = fflush (fp) == EOF && errno == 0; 43199 fclose (fp); 43200 return result; 43201 } 43202 _ACEOF 43203 if ac_fn_c_try_run "$LINENO" 43204 then : 43205 sed_cv_libcp_needed=no 43206 else case e in #( 43207 e) sed_cv_libcp_needed=yes ;; 43208 esac 43209 fi 43210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43211 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 43212 esac 43213 fi 43214 43215 ;; 43216 esac 43217 fi 43218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sed_cv_libcp_needed" >&5 43219 printf "%s\n" "$sed_cv_libcp_needed" >&6; } 43220 if test "$sed_cv_libcp_needed" = yes; then 43221 LIBS="-lcP $LIBS" 43222 fi 43223 43224 43225 43226 43227 43228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 43229 printf %s "checking for an ANSI C-conforming const... " >&6; } 43230 if test ${ac_cv_c_const+y} 43231 then : 43232 printf %s "(cached) " >&6 43233 else case e in #( 43234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43235 /* end confdefs.h. */ 43236 43237 int 43238 main (void) 43239 { 43240 43241 #ifndef __cplusplus 43242 /* Ultrix mips cc rejects this sort of thing. */ 43243 typedef int charset[2]; 43244 const charset cs = { 0, 0 }; 43245 /* SunOS 4.1.1 cc rejects this. */ 43246 char const *const *pcpcc; 43247 char **ppc; 43248 /* NEC SVR4.0.2 mips cc rejects this. */ 43249 struct point {int x, y;}; 43250 static struct point const zero = {0,0}; 43251 /* IBM XL C 1.02.0.0 rejects this. 43252 It does not let you subtract one const X* pointer from another in 43253 an arm of an if-expression whose if-part is not a constant 43254 expression */ 43255 const char *g = "string"; 43256 pcpcc = &g + (g ? g-g : 0); 43257 /* HPUX 7.0 cc rejects these. */ 43258 ++pcpcc; 43259 ppc = (char**) pcpcc; 43260 pcpcc = (char const *const *) ppc; 43261 { /* SCO 3.2v4 cc rejects this sort of thing. */ 43262 char tx; 43263 char *t = &tx; 43264 char const *s = 0 ? (char *) 0 : (char const *) 0; 43265 43266 *t++ = 0; 43267 if (s) return 0; 43268 } 43269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 43270 int x[] = {25, 17}; 43271 const int *foo = &x[0]; 43272 ++foo; 43273 } 43274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 43275 typedef const int *iptr; 43276 iptr p = 0; 43277 ++p; 43278 } 43279 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 43280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 43281 struct s { int j; const int *ap[3]; } bx; 43282 struct s *b = &bx; b->j = 5; 43283 } 43284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 43285 const int foo = 10; 43286 if (!foo) return 0; 43287 } 43288 return !cs[0] && !zero.x; 43289 #endif 43290 43291 ; 43292 return 0; 43293 } 43294 _ACEOF 43295 if ac_fn_c_try_compile "$LINENO" 43296 then : 43297 ac_cv_c_const=yes 43298 else case e in #( 43299 e) ac_cv_c_const=no ;; 43300 esac 43301 fi 43302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 43303 esac 43304 fi 43305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 43306 printf "%s\n" "$ac_cv_c_const" >&6; } 43307 if test $ac_cv_c_const = no; then 43308 43309 printf "%s\n" "#define const /**/" >>confdefs.h 43310 43311 fi 43312 43313 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 43314 if test "x$ac_cv_type_size_t" = xyes 43315 then : 43316 43317 else case e in #( 43318 e) 43319 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 43320 ;; 43321 esac 43322 fi 43323 43324 43325 43326 43327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 43328 printf %s "checking whether NLS is requested... " >&6; } 43329 # Check whether --enable-nls was given. 43330 if test ${enable_nls+y} 43331 then : 43332 enableval=$enable_nls; USE_NLS=$enableval 43333 else case e in #( 43334 e) USE_NLS=yes ;; 43335 esac 43336 fi 43337 43338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 43339 printf "%s\n" "$USE_NLS" >&6; } 43340 43341 43342 43343 43344 GETTEXT_MACRO_VERSION=0.19 43345 43346 43347 43348 43349 # Prepare PATH_SEPARATOR. 43350 # The user is always right. 43351 if test "${PATH_SEPARATOR+set}" != set; then 43352 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 43353 # contains only /bin. Note that ksh looks also at the FPATH variable, 43354 # so we have to set that as well for the test. 43355 PATH_SEPARATOR=: 43356 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43357 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43358 || PATH_SEPARATOR=';' 43359 } 43360 fi 43361 43362 # Find out how to test for executable files. Don't use a zero-byte file, 43363 # as systems may use methods other than mode bits to determine executability. 43364 cat >conf$$.file <<_ASEOF 43365 #! /bin/sh 43366 exit 0 43367 _ASEOF 43368 chmod +x conf$$.file 43369 if test -x conf$$.file >/dev/null 2>&1; then 43370 ac_executable_p="test -x" 43371 else 43372 ac_executable_p="test -f" 43373 fi 43374 rm -f conf$$.file 43375 43376 # Extract the first word of "msgfmt", so it can be a program name with args. 43377 set dummy msgfmt; ac_word=$2 43378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43379 printf %s "checking for $ac_word... " >&6; } 43380 if test ${ac_cv_path_MSGFMT+y} 43381 then : 43382 printf %s "(cached) " >&6 43383 else case e in #( 43384 e) case "$MSGFMT" in 43385 [\\/]* | ?:[\\/]*) 43386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 43387 ;; 43388 *) 43389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 43390 for ac_dir in $PATH; do 43391 IFS="$ac_save_IFS" 43392 test -z "$ac_dir" && ac_dir=. 43393 for ac_exec_ext in '' $ac_executable_extensions; do 43394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 43395 echo "$as_me: trying $ac_dir/$ac_word..." >&5 43396 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 43397 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 43398 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 43399 break 2 43400 fi 43401 fi 43402 done 43403 done 43404 IFS="$ac_save_IFS" 43405 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 43406 ;; 43407 esac ;; 43408 esac 43409 fi 43410 MSGFMT="$ac_cv_path_MSGFMT" 43411 if test "$MSGFMT" != ":"; then 43412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 43413 printf "%s\n" "$MSGFMT" >&6; } 43414 else 43415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43416 printf "%s\n" "no" >&6; } 43417 fi 43418 43419 # Extract the first word of "gmsgfmt", so it can be a program name with args. 43420 set dummy gmsgfmt; ac_word=$2 43421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43422 printf %s "checking for $ac_word... " >&6; } 43423 if test ${ac_cv_path_GMSGFMT+y} 43424 then : 43425 printf %s "(cached) " >&6 43426 else case e in #( 43427 e) case $GMSGFMT in 43428 [\\/]* | ?:[\\/]*) 43429 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 43430 ;; 43431 *) 43432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43433 for as_dir in $PATH 43434 do 43435 IFS=$as_save_IFS 43436 case $as_dir in #((( 43437 '') as_dir=./ ;; 43438 */) ;; 43439 *) as_dir=$as_dir/ ;; 43440 esac 43441 for ac_exec_ext in '' $ac_executable_extensions; do 43442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 43443 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" 43444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 43445 break 2 43446 fi 43447 done 43448 done 43449 IFS=$as_save_IFS 43450 43451 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 43452 ;; 43453 esac ;; 43454 esac 43455 fi 43456 GMSGFMT=$ac_cv_path_GMSGFMT 43457 if test -n "$GMSGFMT"; then 43458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 43459 printf "%s\n" "$GMSGFMT" >&6; } 43460 else 43461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43462 printf "%s\n" "no" >&6; } 43463 fi 43464 43465 43466 43467 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 43468 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 43469 *) MSGFMT_015=$MSGFMT ;; 43470 esac 43471 43472 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 43473 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 43474 *) GMSGFMT_015=$GMSGFMT ;; 43475 esac 43476 43477 43478 43479 # Prepare PATH_SEPARATOR. 43480 # The user is always right. 43481 if test "${PATH_SEPARATOR+set}" != set; then 43482 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 43483 # contains only /bin. Note that ksh looks also at the FPATH variable, 43484 # so we have to set that as well for the test. 43485 PATH_SEPARATOR=: 43486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43487 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43488 || PATH_SEPARATOR=';' 43489 } 43490 fi 43491 43492 # Find out how to test for executable files. Don't use a zero-byte file, 43493 # as systems may use methods other than mode bits to determine executability. 43494 cat >conf$$.file <<_ASEOF 43495 #! /bin/sh 43496 exit 0 43497 _ASEOF 43498 chmod +x conf$$.file 43499 if test -x conf$$.file >/dev/null 2>&1; then 43500 ac_executable_p="test -x" 43501 else 43502 ac_executable_p="test -f" 43503 fi 43504 rm -f conf$$.file 43505 43506 # Extract the first word of "xgettext", so it can be a program name with args. 43507 set dummy xgettext; ac_word=$2 43508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43509 printf %s "checking for $ac_word... " >&6; } 43510 if test ${ac_cv_path_XGETTEXT+y} 43511 then : 43512 printf %s "(cached) " >&6 43513 else case e in #( 43514 e) case "$XGETTEXT" in 43515 [\\/]* | ?:[\\/]*) 43516 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 43517 ;; 43518 *) 43519 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 43520 for ac_dir in $PATH; do 43521 IFS="$ac_save_IFS" 43522 test -z "$ac_dir" && ac_dir=. 43523 for ac_exec_ext in '' $ac_executable_extensions; do 43524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 43525 echo "$as_me: trying $ac_dir/$ac_word..." >&5 43526 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 43527 (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 43528 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 43529 break 2 43530 fi 43531 fi 43532 done 43533 done 43534 IFS="$ac_save_IFS" 43535 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 43536 ;; 43537 esac ;; 43538 esac 43539 fi 43540 XGETTEXT="$ac_cv_path_XGETTEXT" 43541 if test "$XGETTEXT" != ":"; then 43542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 43543 printf "%s\n" "$XGETTEXT" >&6; } 43544 else 43545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43546 printf "%s\n" "no" >&6; } 43547 fi 43548 43549 rm -f messages.po 43550 43551 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 43552 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 43553 *) XGETTEXT_015=$XGETTEXT ;; 43554 esac 43555 43556 43557 43558 # Prepare PATH_SEPARATOR. 43559 # The user is always right. 43560 if test "${PATH_SEPARATOR+set}" != set; then 43561 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 43562 # contains only /bin. Note that ksh looks also at the FPATH variable, 43563 # so we have to set that as well for the test. 43564 PATH_SEPARATOR=: 43565 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43566 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43567 || PATH_SEPARATOR=';' 43568 } 43569 fi 43570 43571 # Find out how to test for executable files. Don't use a zero-byte file, 43572 # as systems may use methods other than mode bits to determine executability. 43573 cat >conf$$.file <<_ASEOF 43574 #! /bin/sh 43575 exit 0 43576 _ASEOF 43577 chmod +x conf$$.file 43578 if test -x conf$$.file >/dev/null 2>&1; then 43579 ac_executable_p="test -x" 43580 else 43581 ac_executable_p="test -f" 43582 fi 43583 rm -f conf$$.file 43584 43585 # Extract the first word of "msgmerge", so it can be a program name with args. 43586 set dummy msgmerge; ac_word=$2 43587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43588 printf %s "checking for $ac_word... " >&6; } 43589 if test ${ac_cv_path_MSGMERGE+y} 43590 then : 43591 printf %s "(cached) " >&6 43592 else case e in #( 43593 e) case "$MSGMERGE" in 43594 [\\/]* | ?:[\\/]*) 43595 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 43596 ;; 43597 *) 43598 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 43599 for ac_dir in $PATH; do 43600 IFS="$ac_save_IFS" 43601 test -z "$ac_dir" && ac_dir=. 43602 for ac_exec_ext in '' $ac_executable_extensions; do 43603 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 43604 echo "$as_me: trying $ac_dir/$ac_word..." >&5 43605 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 43606 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 43607 break 2 43608 fi 43609 fi 43610 done 43611 done 43612 IFS="$ac_save_IFS" 43613 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 43614 ;; 43615 esac ;; 43616 esac 43617 fi 43618 MSGMERGE="$ac_cv_path_MSGMERGE" 43619 if test "$MSGMERGE" != ":"; then 43620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 43621 printf "%s\n" "$MSGMERGE" >&6; } 43622 else 43623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43624 printf "%s\n" "no" >&6; } 43625 fi 43626 43627 43628 test -n "$localedir" || localedir='${datadir}/locale' 43629 43630 43631 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 43632 43633 43634 ac_config_commands="$ac_config_commands po-directories" 7642 43635 7643 43636 … … 7659 43652 7660 43653 7661 # Check whether --with-gnu-ld or --without-gnu-ld was given. 7662 if test "${with_gnu_ld+set}" = set; then 7663 withval="$with_gnu_ld" 7664 test "$withval" = no || with_gnu_ld=yes 7665 else 7666 with_gnu_ld=no 7667 fi; 43654 43655 # Check whether --with-gnu-ld was given. 43656 if test ${with_gnu_ld+y} 43657 then : 43658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 43659 else case e in #( 43660 e) with_gnu_ld=no ;; 43661 esac 43662 fi 43663 43664 # Prepare PATH_SEPARATOR. 43665 # The user is always right. 43666 if test "${PATH_SEPARATOR+set}" != set; then 43667 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 43668 # contains only /bin. Note that ksh looks also at the FPATH variable, 43669 # so we have to set that as well for the test. 43670 PATH_SEPARATOR=: 43671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43672 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 43673 || PATH_SEPARATOR=';' 43674 } 43675 fi 43676 7668 43677 ac_prog=ld 7669 43678 if test "$GCC" = yes; then 7670 43679 # Check if gcc -print-prog-name=ld gives a path. 7671 echo "$as_me:$LINENO: checking for ld used by GCC" >&57672 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 43680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 43681 printf %s "checking for ld used by $CC... " >&6; } 7673 43682 case $host in 7674 43683 *-*-mingw*) … … 7680 43689 case $ac_prog in 7681 43690 # Accept absolute paths. 7682 [\\/]* | [A-Za-z]:[\\/]*)43691 [\\/]* | ?:[\\/]*) 7683 43692 re_direlt='/[^/][^/]*/\.\./' 7684 # Canonicalize the path of ld7685 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`7686 while echo $ac_prog| grep "$re_direlt" > /dev/null 2>&1; do7687 43693 # Canonicalize the pathname of ld 43694 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 43695 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 43696 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7688 43697 done 7689 43698 test -z "$LD" && LD="$ac_prog" … … 7699 43708 esac 7700 43709 elif test "$with_gnu_ld" = yes; then 7701 echo "$as_me:$LINENO: checking for GNU ld" >&57702 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 43710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 43711 printf %s "checking for GNU ld... " >&6; } 7703 43712 else 7704 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7705 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 7706 fi 7707 if test "${acl_cv_path_LD+set}" = set; then 7708 echo $ECHO_N "(cached) $ECHO_C" >&6 7709 else 7710 if test -z "$LD"; then 7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 43713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 43714 printf %s "checking for non-GNU ld... " >&6; } 43715 fi 43716 if test ${acl_cv_path_LD+y} 43717 then : 43718 printf %s "(cached) " >&6 43719 else case e in #( 43720 e) if test -z "$LD"; then 43721 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7712 43722 for ac_dir in $PATH; do 43723 IFS="$acl_save_ifs" 7713 43724 test -z "$ac_dir" && ac_dir=. 7714 43725 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7715 43726 acl_cv_path_LD="$ac_dir/$ac_prog" 7716 43727 # Check to see if the program is GNU ld. I'd rather use --version, 7717 # but apparently some GNU ld'sonly accept -v.43728 # but apparently some variants of GNU ld only accept -v. 7718 43729 # Break only if it was the GNU/non-GNU ld that we prefer. 7719 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 7720 test "$with_gnu_ld" != no && break 7721 else 7722 test "$with_gnu_ld" != yes && break 7723 fi 43730 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 43731 *GNU* | *'with BFD'*) 43732 test "$with_gnu_ld" != no && break 43733 ;; 43734 *) 43735 test "$with_gnu_ld" != yes && break 43736 ;; 43737 esac 7724 43738 fi 7725 43739 done 7726 IFS="$ac _save_ifs"43740 IFS="$acl_save_ifs" 7727 43741 else 7728 43742 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7729 fi 43743 fi ;; 43744 esac 7730 43745 fi 7731 43746 7732 43747 LD="$acl_cv_path_LD" 7733 43748 if test -n "$LD"; then 7734 echo "$as_me:$LINENO: result: $LD" >&57735 echo "${ECHO_T}$LD" >&6 43749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 43750 printf "%s\n" "$LD" >&6; } 7736 43751 else 7737 echo "$as_me:$LINENO: result: no" >&57738 echo "${ECHO_T}no" >&6 7739 fi 7740 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&57741 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7742 { (exit 1); exit 1; }; }7743 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7744 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 7745 if test "${acl_cv_prog_gnu_ld+set}" = set; then 7746 echo $ECHO_N "(cached) $ECHO_C" >&6 7747 else 7748 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7749 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 43752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43753 printf "%s\n" "no" >&6; } 43754 fi 43755 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 43756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 43757 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 43758 if test ${acl_cv_prog_gnu_ld+y} 43759 then : 43760 printf %s "(cached) " >&6 43761 else case e in #( 43762 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 43763 case `$LD -v 2>&1 </dev/null` in 43764 *GNU* | *'with BFD'*) 7750 43765 acl_cv_prog_gnu_ld=yes 7751 else 43766 ;; 43767 *) 7752 43768 acl_cv_prog_gnu_ld=no 7753 fi 7754 fi 7755 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 7756 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 43769 ;; 43770 esac ;; 43771 esac 43772 fi 43773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 43774 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } 7757 43775 with_gnu_ld=$acl_cv_prog_gnu_ld 7758 43776 7759 43777 7760 43778 7761 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 7762 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 7763 if test "${acl_cv_rpath+set}" = set; then 7764 echo $ECHO_N "(cached) $ECHO_C" >&6 7765 else 7766 43779 43780 43781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 43782 printf %s "checking for shared library run path origin... " >&6; } 43783 if test ${acl_cv_rpath+y} 43784 then : 43785 printf %s "(cached) " >&6 43786 else case e in #( 43787 e) 7767 43788 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7768 43789 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh … … 7770 43791 rm -f ./conftest.sh 7771 43792 acl_cv_rpath=done 7772 7773 fi 7774 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 7775 echo "${ECHO_T}$acl_cv_rpath" >&6 43793 ;; 43794 esac 43795 fi 43796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 43797 printf "%s\n" "$acl_cv_rpath" >&6; } 7776 43798 wl="$acl_cv_wl" 7777 libext="$acl_cv_libext" 7778 shlibext="$acl_cv_shlibext" 7779 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7780 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7781 hardcode_direct="$acl_cv_hardcode_direct" 7782 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7783 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 7784 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 43799 acl_libext="$acl_cv_libext" 43800 acl_shlibext="$acl_cv_shlibext" 43801 acl_libname_spec="$acl_cv_libname_spec" 43802 acl_library_names_spec="$acl_cv_library_names_spec" 43803 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 43804 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 43805 acl_hardcode_direct="$acl_cv_hardcode_direct" 43806 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 43807 # Check whether --enable-rpath was given. 43808 if test ${enable_rpath+y} 43809 then : 43810 enableval=$enable_rpath; : 43811 else case e in #( 43812 e) enable_rpath=yes ;; 43813 esac 43814 fi 43815 43816 43817 43818 43819 acl_libdirstem=lib 43820 acl_libdirstem2= 43821 case "$host_os" in 43822 solaris*) 43823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 43824 printf %s "checking for 64-bit host... " >&6; } 43825 if test ${gl_cv_solaris_64bit+y} 43826 then : 43827 printf %s "(cached) " >&6 43828 else case e in #( 43829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43830 /* end confdefs.h. */ 43831 43832 #ifdef _LP64 43833 sixtyfour bits 43834 #endif 43835 43836 _ACEOF 43837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43838 $EGREP_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1 43839 then : 43840 gl_cv_solaris_64bit=yes 43841 else case e in #( 43842 e) gl_cv_solaris_64bit=no ;; 43843 esac 43844 fi 43845 rm -rf conftest* 43846 43847 ;; 43848 esac 43849 fi 43850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 43851 printf "%s\n" "$gl_cv_solaris_64bit" >&6; } 43852 if test $gl_cv_solaris_64bit = yes; then 43853 acl_libdirstem=lib/64 43854 case "$host_cpu" in 43855 sparc*) acl_libdirstem2=lib/sparcv9 ;; 43856 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 43857 esac 43858 fi 43859 ;; 43860 *) 43861 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 43862 if test -n "$searchpath"; then 43863 acl_save_IFS="${IFS= }"; IFS=":" 43864 for searchdir in $searchpath; do 43865 if test -d "$searchdir"; then 43866 case "$searchdir" in 43867 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 43868 */../ | */.. ) 43869 # Better ignore directories of this form. They are misleading. 43870 ;; 43871 *) searchdir=`cd "$searchdir" && pwd` 43872 case "$searchdir" in 43873 */lib64 ) acl_libdirstem=lib64 ;; 43874 esac ;; 43875 esac 43876 fi 43877 done 43878 IFS="$acl_save_IFS" 43879 fi 43880 ;; 43881 esac 43882 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 43883 43884 43885 43886 7785 43887 7786 43888 … … 7805 43907 7806 43908 7807 # Check whether --with-libiconv-prefix or --without-libiconv-prefixwas given.7808 if test "${with_libiconv_prefix+set}" = set; then7809 withval="$with_libiconv_prefix" 7810 43909 # Check whether --with-libiconv-prefix was given. 43910 if test ${with_libiconv_prefix+y} 43911 then : 43912 withval=$with_libiconv_prefix; 7811 43913 if test "X$withval" = "Xno"; then 7812 43914 use_additional=no … … 7827 43929 else 7828 43930 additional_includedir="$withval/include" 7829 additional_libdir="$withval/lib" 43931 additional_libdir="$withval/$acl_libdirstem" 43932 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 43933 && ! test -d "$withval/$acl_libdirstem"; then 43934 additional_libdir="$withval/$acl_libdirstem2" 43935 fi 7830 43936 fi 7831 43937 fi 7832 43938 7833 fi; 43939 fi 43940 7834 43941 LIBICONV= 7835 43942 LTLIBICONV= 7836 43943 INCICONV= 43944 LIBICONV_PREFIX= 43945 HAVE_LIBICONV= 7837 43946 rpathdirs= 7838 43947 ltrpathdirs= … … 7852 43961 if test -z "$already_handled"; then 7853 43962 names_already_handled="$names_already_handled $name" 7854 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./ -|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`43963 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 7855 43964 eval value=\"\$HAVE_LIB$uppername\" 7856 43965 if test -n "$value"; then … … 7868 43977 found_so= 7869 43978 found_a= 43979 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 43980 if test -n "$acl_shlibext"; then 43981 shrext=".$acl_shlibext" # typically: shrext=.so 43982 else 43983 shrext= 43984 fi 7870 43985 if test $use_additional = yes; then 7871 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7872 found_dir="$additional_libdir" 7873 found_so="$additional_libdir/lib$name.$shlibext" 7874 if test -f "$additional_libdir/lib$name.la"; then 7875 found_la="$additional_libdir/lib$name.la" 43986 dir="$additional_libdir" 43987 if test -n "$acl_shlibext"; then 43988 if test -f "$dir/$libname$shrext"; then 43989 found_dir="$dir" 43990 found_so="$dir/$libname$shrext" 43991 else 43992 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 43993 ver=`(cd "$dir" && \ 43994 for f in "$libname$shrext".*; do echo "$f"; done \ 43995 | sed -e "s,^$libname$shrext\\\\.,," \ 43996 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 43997 | sed 1q ) 2>/dev/null` 43998 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 43999 found_dir="$dir" 44000 found_so="$dir/$libname$shrext.$ver" 44001 fi 44002 else 44003 eval library_names=\"$acl_library_names_spec\" 44004 for f in $library_names; do 44005 if test -f "$dir/$f"; then 44006 found_dir="$dir" 44007 found_so="$dir/$f" 44008 break 44009 fi 44010 done 44011 fi 7876 44012 fi 7877 else 7878 if test -f "$additional_libdir/lib$name.$libext"; then 7879 found_dir="$additional_libdir" 7880 found_a="$additional_libdir/lib$name.$libext" 7881 if test -f "$additional_libdir/lib$name.la"; then 7882 found_la="$additional_libdir/lib$name.la" 7883 fi 44013 fi 44014 if test "X$found_dir" = "X"; then 44015 if test -f "$dir/$libname.$acl_libext"; then 44016 found_dir="$dir" 44017 found_a="$dir/$libname.$acl_libext" 44018 fi 44019 fi 44020 if test "X$found_dir" != "X"; then 44021 if test -f "$dir/$libname.la"; then 44022 found_la="$dir/$libname.la" 7884 44023 fi 7885 44024 fi … … 7899 44038 -L*) 7900 44039 dir=`echo "X$x" | sed -e 's/^X-L//'` 7901 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7902 found_dir="$dir" 7903 found_so="$dir/lib$name.$shlibext" 7904 if test -f "$dir/lib$name.la"; then 7905 found_la="$dir/lib$name.la" 44040 if test -n "$acl_shlibext"; then 44041 if test -f "$dir/$libname$shrext"; then 44042 found_dir="$dir" 44043 found_so="$dir/$libname$shrext" 44044 else 44045 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 44046 ver=`(cd "$dir" && \ 44047 for f in "$libname$shrext".*; do echo "$f"; done \ 44048 | sed -e "s,^$libname$shrext\\\\.,," \ 44049 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 44050 | sed 1q ) 2>/dev/null` 44051 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 44052 found_dir="$dir" 44053 found_so="$dir/$libname$shrext.$ver" 44054 fi 44055 else 44056 eval library_names=\"$acl_library_names_spec\" 44057 for f in $library_names; do 44058 if test -f "$dir/$f"; then 44059 found_dir="$dir" 44060 found_so="$dir/$f" 44061 break 44062 fi 44063 done 44064 fi 7906 44065 fi 7907 else 7908 if test -f "$dir/lib$name.$libext"; then 44066 fi 44067 if test "X$found_dir" = "X"; then 44068 if test -f "$dir/$libname.$acl_libext"; then 7909 44069 found_dir="$dir" 7910 found_a="$dir/lib$name.$libext" 7911 if test -f "$dir/lib$name.la"; then 7912 found_la="$dir/lib$name.la" 7913 fi 44070 found_a="$dir/$libname.$acl_libext" 44071 fi 44072 fi 44073 if test "X$found_dir" != "X"; then 44074 if test -f "$dir/$libname.la"; then 44075 found_la="$dir/$libname.la" 7914 44076 fi 7915 44077 fi … … 7924 44086 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7925 44087 if test "X$found_so" != "X"; then 7926 if test "X$found_dir" = "X/usr/lib"; then 44088 if test "$enable_rpath" = no \ 44089 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 44090 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 7927 44091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7928 44092 else … … 7937 44101 ltrpathdirs="$ltrpathdirs $found_dir" 7938 44102 fi 7939 if test "$ hardcode_direct" = yes; then44103 if test "$acl_hardcode_direct" = yes; then 7940 44104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7941 44105 else 7942 if test -n "$ hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then44106 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7943 44107 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7944 44108 haveit= … … 7972 44136 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7973 44137 fi 7974 if test "$ hardcode_minus_L" != no; then44138 if test "$acl_hardcode_minus_L" != no; then 7975 44139 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7976 44140 else … … 7989 44153 additional_includedir= 7990 44154 case "$found_dir" in 7991 */lib | */lib/) 7992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 44155 */$acl_libdirstem | */$acl_libdirstem/) 44156 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 44157 if test "$name" = 'iconv'; then 44158 LIBICONV_PREFIX="$basedir" 44159 fi 44160 additional_includedir="$basedir/include" 44161 ;; 44162 */$acl_libdirstem2 | */$acl_libdirstem2/) 44163 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 44164 if test "$name" = 'iconv'; then 44165 LIBICONV_PREFIX="$basedir" 44166 fi 7993 44167 additional_includedir="$basedir/include" 7994 44168 ;; … … 8000 44174 if test -n "$GCC"; then 8001 44175 case $host_os in 8002 linux* ) haveit=yes;;44176 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8003 44177 esac 8004 44178 fi … … 8039 44213 -L*) 8040 44214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8041 if test "X$additional_libdir" != "X/usr/lib"; then 44215 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 44216 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 8042 44217 haveit= 8043 if test "X$additional_libdir" = "X/usr/local/lib"; then 44218 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 44219 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 8044 44220 if test -n "$GCC"; then 8045 44221 case $host_os in 8046 linux* ) haveit=yes;;44222 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8047 44223 esac 8048 44224 fi … … 8091 44267 fi 8092 44268 fi 44269 fi 44270 fi 44271 ;; 44272 -R*) 44273 dir=`echo "X$dep" | sed -e 's/^X-R//'` 44274 if test "$enable_rpath" != no; then 44275 haveit= 44276 for x in $rpathdirs; do 44277 if test "X$x" = "X$dir"; then 44278 haveit=yes 44279 break 44280 fi 44281 done 44282 if test -z "$haveit"; then 44283 rpathdirs="$rpathdirs $dir" 44284 fi 44285 haveit= 44286 for x in $ltrpathdirs; do 44287 if test "X$x" = "X$dir"; then 44288 haveit=yes 44289 break 44290 fi 44291 done 44292 if test -z "$haveit"; then 44293 ltrpathdirs="$ltrpathdirs $dir" 8093 44294 fi 8094 44295 fi … … 8116 44317 done 8117 44318 if test "X$rpathdirs" != "X"; then 8118 if test -n "$ hardcode_libdir_separator"; then44319 if test -n "$acl_hardcode_libdir_separator"; then 8119 44320 alldirs= 8120 44321 for found_dir in $rpathdirs; do 8121 alldirs="${alldirs}${alldirs:+$ hardcode_libdir_separator}$found_dir"44322 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8122 44323 done 8123 44324 acl_save_libdir="$libdir" 8124 44325 libdir="$alldirs" 8125 eval flag=\"$ hardcode_libdir_flag_spec\"44326 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8126 44327 libdir="$acl_save_libdir" 8127 44328 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" … … 8130 44331 acl_save_libdir="$libdir" 8131 44332 libdir="$found_dir" 8132 eval flag=\"$ hardcode_libdir_flag_spec\"44333 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8133 44334 libdir="$acl_save_libdir" 8134 44335 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" … … 8141 44342 done 8142 44343 fi 44344 44345 44346 44347 44348 44349 44350 44351 44352 44353 44354 44355 44356 44357 44358 44359 44360 44361 44362 44363 44364 44365 44366 44367 44368 44369 44370 44371 44372 44373 44374 44375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 44376 printf %s "checking for CFPreferencesCopyAppValue... " >&6; } 44377 if test ${gt_cv_func_CFPreferencesCopyAppValue+y} 44378 then : 44379 printf %s "(cached) " >&6 44380 else case e in #( 44381 e) gt_save_LIBS="$LIBS" 44382 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 44383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44384 /* end confdefs.h. */ 44385 #include <CoreFoundation/CFPreferences.h> 44386 int 44387 main (void) 44388 { 44389 CFPreferencesCopyAppValue(NULL, NULL) 44390 ; 44391 return 0; 44392 } 44393 _ACEOF 44394 if ac_fn_c_try_link "$LINENO" 44395 then : 44396 gt_cv_func_CFPreferencesCopyAppValue=yes 44397 else case e in #( 44398 e) gt_cv_func_CFPreferencesCopyAppValue=no ;; 44399 esac 44400 fi 44401 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44402 conftest$ac_exeext conftest.$ac_ext 44403 LIBS="$gt_save_LIBS" ;; 44404 esac 44405 fi 44406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 44407 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 44408 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 44409 44410 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 44411 44412 fi 44413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 44414 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 44415 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 44416 then : 44417 printf %s "(cached) " >&6 44418 else case e in #( 44419 e) gt_save_LIBS="$LIBS" 44420 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 44421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44422 /* end confdefs.h. */ 44423 #include <CoreFoundation/CFLocale.h> 44424 int 44425 main (void) 44426 { 44427 CFLocaleCopyPreferredLanguages(); 44428 ; 44429 return 0; 44430 } 44431 _ACEOF 44432 if ac_fn_c_try_link "$LINENO" 44433 then : 44434 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 44435 else case e in #( 44436 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;; 44437 esac 44438 fi 44439 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44440 conftest$ac_exeext conftest.$ac_ext 44441 LIBS="$gt_save_LIBS" ;; 44442 esac 44443 fi 44444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 44445 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 44446 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 44447 44448 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 44449 44450 fi 44451 INTL_MACOSX_LIBS= 44452 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 44453 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 44454 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 44455 fi 44456 44457 44458 44459 44460 44461 44462 LIBINTL= 44463 LTLIBINTL= 44464 POSUB= 44465 44466 case " $gt_needs " in 44467 *" need-formatstring-macros "*) gt_api_version=3 ;; 44468 *" need-ngettext "*) gt_api_version=2 ;; 44469 *) gt_api_version=1 ;; 44470 esac 44471 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 44472 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 44473 44474 if test "$USE_NLS" = "yes"; then 44475 gt_use_preinstalled_gnugettext=no 44476 44477 44478 if test $gt_api_version -ge 3; then 44479 gt_revision_test_code=' 44480 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 44481 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 44482 #endif 44483 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 44484 ' 44485 else 44486 gt_revision_test_code= 44487 fi 44488 if test $gt_api_version -ge 2; then 44489 gt_expression_test_code=' + * ngettext ("", "", 0)' 44490 else 44491 gt_expression_test_code= 44492 fi 44493 44494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 44495 printf %s "checking for GNU gettext in libc... " >&6; } 44496 if eval test \${$gt_func_gnugettext_libc+y} 44497 then : 44498 printf %s "(cached) " >&6 44499 else case e in #( 44500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44501 /* end confdefs.h. */ 44502 44503 #include <libintl.h> 44504 $gt_revision_test_code 44505 extern int _nl_msg_cat_cntr; 44506 extern int *_nl_domain_bindings; 44507 44508 int 44509 main (void) 44510 { 44511 44512 bindtextdomain ("", ""); 44513 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 44514 44515 ; 44516 return 0; 44517 } 44518 _ACEOF 44519 if ac_fn_c_try_link "$LINENO" 44520 then : 44521 eval "$gt_func_gnugettext_libc=yes" 44522 else case e in #( 44523 e) eval "$gt_func_gnugettext_libc=no" ;; 44524 esac 44525 fi 44526 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44527 conftest$ac_exeext conftest.$ac_ext ;; 44528 esac 44529 fi 44530 eval ac_res=\$$gt_func_gnugettext_libc 44531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 44532 printf "%s\n" "$ac_res" >&6; } 44533 44534 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 44535 44536 44537 8143 44538 8144 44539 … … 8168 44563 8169 44564 8170 echo "$as_me:$LINENO: checking for iconv" >&5 8171 echo $ECHO_N "checking for iconv... $ECHO_C" >&6 8172 if test "${am_cv_func_iconv+set}" = set; then 8173 echo $ECHO_N "(cached) $ECHO_C" >&6 8174 else 8175 44565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 44566 printf %s "checking for iconv... " >&6; } 44567 if test ${am_cv_func_iconv+y} 44568 then : 44569 printf %s "(cached) " >&6 44570 else case e in #( 44571 e) 8176 44572 am_cv_func_iconv="no, consider installing GNU libiconv" 8177 44573 am_cv_lib_iconv=no 8178 cat >conftest.$ac_ext <<_ACEOF 8179 /* confdefs.h. */ 8180 _ACEOF 8181 cat confdefs.h >>conftest.$ac_ext 8182 cat >>conftest.$ac_ext <<_ACEOF 44574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183 44575 /* end confdefs.h. */ 44576 8184 44577 #include <stdlib.h> 8185 44578 #include <iconv.h> 44579 8186 44580 int 8187 main ( )44581 main (void) 8188 44582 { 8189 44583 iconv_t cd = iconv_open("",""); 8190 iconv(cd,NULL,NULL,NULL,NULL);8191 iconv_close(cd);44584 iconv(cd,NULL,NULL,NULL,NULL); 44585 iconv_close(cd); 8192 44586 ; 8193 44587 return 0; 8194 44588 } 8195 44589 _ACEOF 8196 rm -f conftest.$ac_objext conftest$ac_exeext 8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8198 (eval $ac_link) 2>conftest.er1 8199 ac_status=$? 8200 grep -v '^ *+' conftest.er1 >conftest.err 8201 rm -f conftest.er1 8202 cat conftest.err >&5 8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8204 (exit $ac_status); } && 8205 { ac_try='test -z "$ac_c_werror_flag" 8206 || test ! -s conftest.err' 8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8208 (eval $ac_try) 2>&5 8209 ac_status=$? 8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8211 (exit $ac_status); }; } && 8212 { ac_try='test -s conftest$ac_exeext' 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8214 (eval $ac_try) 2>&5 8215 ac_status=$? 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8217 (exit $ac_status); }; }; then 44590 if ac_fn_c_try_link "$LINENO" 44591 then : 8218 44592 am_cv_func_iconv=yes 8219 else 8220 echo "$as_me: failed program was:" >&5 8221 sed 's/^/| /' conftest.$ac_ext >&5 8222 8223 fi 8224 rm -f conftest.err conftest.$ac_objext \ 8225 conftest$ac_exeext conftest.$ac_ext 44593 fi 44594 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44595 conftest$ac_exeext conftest.$ac_ext 8226 44596 if test "$am_cv_func_iconv" != yes; then 8227 44597 am_save_LIBS="$LIBS" 8228 44598 LIBS="$LIBS $LIBICONV" 8229 cat >conftest.$ac_ext <<_ACEOF 8230 /* confdefs.h. */ 8231 _ACEOF 8232 cat confdefs.h >>conftest.$ac_ext 8233 cat >>conftest.$ac_ext <<_ACEOF 44599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234 44600 /* end confdefs.h. */ 44601 8235 44602 #include <stdlib.h> 8236 44603 #include <iconv.h> 44604 8237 44605 int 8238 main ( )44606 main (void) 8239 44607 { 8240 44608 iconv_t cd = iconv_open("",""); 8241 iconv(cd,NULL,NULL,NULL,NULL);8242 iconv_close(cd);44609 iconv(cd,NULL,NULL,NULL,NULL); 44610 iconv_close(cd); 8243 44611 ; 8244 44612 return 0; 8245 44613 } 8246 44614 _ACEOF 8247 rm -f conftest.$ac_objext conftest$ac_exeext 8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8249 (eval $ac_link) 2>conftest.er1 8250 ac_status=$? 8251 grep -v '^ *+' conftest.er1 >conftest.err 8252 rm -f conftest.er1 8253 cat conftest.err >&5 8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8255 (exit $ac_status); } && 8256 { ac_try='test -z "$ac_c_werror_flag" 8257 || test ! -s conftest.err' 8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8259 (eval $ac_try) 2>&5 8260 ac_status=$? 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8262 (exit $ac_status); }; } && 8263 { ac_try='test -s conftest$ac_exeext' 8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8265 (eval $ac_try) 2>&5 8266 ac_status=$? 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 (exit $ac_status); }; }; then 44615 if ac_fn_c_try_link "$LINENO" 44616 then : 8269 44617 am_cv_lib_iconv=yes 8270 44618 am_cv_func_iconv=yes 8271 else 8272 echo "$as_me: failed program was:" >&5 8273 sed 's/^/| /' conftest.$ac_ext >&5 8274 8275 fi 8276 rm -f conftest.err conftest.$ac_objext \ 8277 conftest$ac_exeext conftest.$ac_ext 44619 fi 44620 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44621 conftest$ac_exeext conftest.$ac_ext 8278 44622 LIBS="$am_save_LIBS" 8279 44623 fi 8280 8281 fi 8282 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 8283 echo "${ECHO_T}$am_cv_func_iconv" >&6 44624 ;; 44625 esac 44626 fi 44627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 44628 printf "%s\n" "$am_cv_func_iconv" >&6; } 8284 44629 if test "$am_cv_func_iconv" = yes; then 8285 8286 cat >>confdefs.h <<\_ACEOF 8287 #define HAVE_ICONV 1 44630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 44631 printf %s "checking for working iconv... " >&6; } 44632 if test ${am_cv_func_iconv_works+y} 44633 then : 44634 printf %s "(cached) " >&6 44635 else case e in #( 44636 e) 44637 am_save_LIBS="$LIBS" 44638 if test $am_cv_lib_iconv = yes; then 44639 LIBS="$LIBS $LIBICONV" 44640 fi 44641 if test "$cross_compiling" = yes 44642 then : 44643 44644 case "$host_os" in 44645 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 44646 *) am_cv_func_iconv_works="guessing yes" ;; 44647 esac 44648 44649 else case e in #( 44650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44651 /* end confdefs.h. */ 44652 44653 #include <iconv.h> 44654 #include <string.h> 44655 int main () 44656 { 44657 int result = 0; 44658 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 44659 returns. */ 44660 { 44661 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 44662 if (cd_utf8_to_88591 != (iconv_t)(-1)) 44663 { 44664 static const char input[] = "\342\202\254"; /* EURO SIGN */ 44665 char buf[10]; 44666 const char *inptr = input; 44667 size_t inbytesleft = strlen (input); 44668 char *outptr = buf; 44669 size_t outbytesleft = sizeof (buf); 44670 size_t res = iconv (cd_utf8_to_88591, 44671 (char **) &inptr, &inbytesleft, 44672 &outptr, &outbytesleft); 44673 if (res == 0) 44674 result |= 1; 44675 iconv_close (cd_utf8_to_88591); 44676 } 44677 } 44678 /* Test against Solaris 10 bug: Failures are not distinguishable from 44679 successful returns. */ 44680 { 44681 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 44682 if (cd_ascii_to_88591 != (iconv_t)(-1)) 44683 { 44684 static const char input[] = "\263"; 44685 char buf[10]; 44686 const char *inptr = input; 44687 size_t inbytesleft = strlen (input); 44688 char *outptr = buf; 44689 size_t outbytesleft = sizeof (buf); 44690 size_t res = iconv (cd_ascii_to_88591, 44691 (char **) &inptr, &inbytesleft, 44692 &outptr, &outbytesleft); 44693 if (res == 0) 44694 result |= 2; 44695 iconv_close (cd_ascii_to_88591); 44696 } 44697 } 44698 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 44699 { 44700 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 44701 if (cd_88591_to_utf8 != (iconv_t)(-1)) 44702 { 44703 static const char input[] = "\304"; 44704 static char buf[2] = { (char)0xDE, (char)0xAD }; 44705 const char *inptr = input; 44706 size_t inbytesleft = 1; 44707 char *outptr = buf; 44708 size_t outbytesleft = 1; 44709 size_t res = iconv (cd_88591_to_utf8, 44710 (char **) &inptr, &inbytesleft, 44711 &outptr, &outbytesleft); 44712 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 44713 result |= 4; 44714 iconv_close (cd_88591_to_utf8); 44715 } 44716 } 44717 #if 0 /* This bug could be worked around by the caller. */ 44718 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 44719 { 44720 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 44721 if (cd_88591_to_utf8 != (iconv_t)(-1)) 44722 { 44723 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 44724 char buf[50]; 44725 const char *inptr = input; 44726 size_t inbytesleft = strlen (input); 44727 char *outptr = buf; 44728 size_t outbytesleft = sizeof (buf); 44729 size_t res = iconv (cd_88591_to_utf8, 44730 (char **) &inptr, &inbytesleft, 44731 &outptr, &outbytesleft); 44732 if ((int)res > 0) 44733 result |= 8; 44734 iconv_close (cd_88591_to_utf8); 44735 } 44736 } 44737 #endif 44738 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 44739 provided. */ 44740 if (/* Try standardized names. */ 44741 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 44742 /* Try IRIX, OSF/1 names. */ 44743 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 44744 /* Try AIX names. */ 44745 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 44746 /* Try HP-UX names. */ 44747 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 44748 result |= 16; 44749 return result; 44750 } 8288 44751 _ACEOF 44752 if ac_fn_c_try_run "$LINENO" 44753 then : 44754 am_cv_func_iconv_works=yes 44755 else case e in #( 44756 e) am_cv_func_iconv_works=no ;; 44757 esac 44758 fi 44759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 44760 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 44761 esac 44762 fi 44763 44764 LIBS="$am_save_LIBS" 44765 ;; 44766 esac 44767 fi 44768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 44769 printf "%s\n" "$am_cv_func_iconv_works" >&6; } 44770 case "$am_cv_func_iconv_works" in 44771 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 44772 *) am_func_iconv=yes ;; 44773 esac 44774 else 44775 am_func_iconv=no am_cv_lib_iconv=no 44776 fi 44777 if test "$am_func_iconv" = yes; then 44778 44779 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 8289 44780 8290 44781 fi 8291 44782 if test "$am_cv_lib_iconv" = yes; then 8292 echo "$as_me:$LINENO: checking how to link with libiconv" >&58293 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 8294 echo "$as_me:$LINENO: result: $LIBICONV" >&58295 echo "${ECHO_T}$LIBICONV" >&6 44783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 44784 printf %s "checking how to link with libiconv... " >&6; } 44785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 44786 printf "%s\n" "$LIBICONV" >&6; } 8296 44787 else 8297 44788 CPPFLAGS="$am_save_CPPFLAGS" … … 8310 44801 8311 44802 8312 8313 8314 8315 8316 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \8317 stdlib.h string.h unistd.h sys/param.h8318 do8319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then8321 echo "$as_me:$LINENO: checking for $ac_header" >&58322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&68323 if eval "test \"\${$as_ac_Header+set}\" = set"; then8324 echo $ECHO_N "(cached) $ECHO_C" >&68325 fi8326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&58327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&68328 else8329 # Is the header compilable?8330 echo "$as_me:$LINENO: checking $ac_header usability" >&58331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&68332 cat >conftest.$ac_ext <<_ACEOF8333 /* confdefs.h. */8334 _ACEOF8335 cat confdefs.h >>conftest.$ac_ext8336 cat >>conftest.$ac_ext <<_ACEOF8337 /* end confdefs.h. */8338 $ac_includes_default8339 #include <$ac_header>8340 _ACEOF8341 rm -f conftest.$ac_objext8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&58343 (eval $ac_compile) 2>conftest.er18344 ac_status=$?8345 grep -v '^ *+' conftest.er1 >conftest.err8346 rm -f conftest.er18347 cat conftest.err >&58348 echo "$as_me:$LINENO: \$? = $ac_status" >&58349 (exit $ac_status); } &&8350 { ac_try='test -z "$ac_c_werror_flag"8351 || test ! -s conftest.err'8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58353 (eval $ac_try) 2>&58354 ac_status=$?8355 echo "$as_me:$LINENO: \$? = $ac_status" >&58356 (exit $ac_status); }; } &&8357 { ac_try='test -s conftest.$ac_objext'8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58359 (eval $ac_try) 2>&58360 ac_status=$?8361 echo "$as_me:$LINENO: \$? = $ac_status" >&58362 (exit $ac_status); }; }; then8363 ac_header_compiler=yes8364 else8365 echo "$as_me: failed program was:" >&58366 sed 's/^/| /' conftest.$ac_ext >&58367 8368 ac_header_compiler=no8369 fi8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext8371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&58372 echo "${ECHO_T}$ac_header_compiler" >&68373 8374 # Is the header present?8375 echo "$as_me:$LINENO: checking $ac_header presence" >&58376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&68377 cat >conftest.$ac_ext <<_ACEOF8378 /* confdefs.h. */8379 _ACEOF8380 cat confdefs.h >>conftest.$ac_ext8381 cat >>conftest.$ac_ext <<_ACEOF8382 /* end confdefs.h. */8383 #include <$ac_header>8384 _ACEOF8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&58386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er18387 ac_status=$?8388 grep -v '^ *+' conftest.er1 >conftest.err8389 rm -f conftest.er18390 cat conftest.err >&58391 echo "$as_me:$LINENO: \$? = $ac_status" >&58392 (exit $ac_status); } >/dev/null; then8393 if test -s conftest.err; then8394 ac_cpp_err=$ac_c_preproc_warn_flag8395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag8396 else8397 ac_cpp_err=8398 fi8399 else8400 ac_cpp_err=yes8401 fi8402 if test -z "$ac_cpp_err"; then8403 ac_header_preproc=yes8404 else8405 echo "$as_me: failed program was:" >&58406 sed 's/^/| /' conftest.$ac_ext >&58407 8408 ac_header_preproc=no8409 fi8410 rm -f conftest.err conftest.$ac_ext8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&58412 echo "${ECHO_T}$ac_header_preproc" >&68413 8414 # So? What about this header?8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in8416 yes:no: )8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&58418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&58420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}8421 ac_header_preproc=yes8422 ;;8423 no:yes:* )8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&58425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&58427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&58429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&58431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&58433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&58435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}8436 (8437 cat <<\_ASBOX8438 ## ------------------------------ ##8439 ## Report this to [email protected] ##8440 ## ------------------------------ ##8441 _ASBOX8442 ) |8443 sed "s/^/$as_me: WARNING: /" >&28444 ;;8445 esac8446 echo "$as_me:$LINENO: checking for $ac_header" >&58447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&68448 if eval "test \"\${$as_ac_Header+set}\" = set"; then8449 echo $ECHO_N "(cached) $ECHO_C" >&68450 else8451 eval "$as_ac_Header=\$ac_header_preproc"8452 fi8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&58454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&68455 8456 fi8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then8458 cat >>confdefs.h <<_ACEOF8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 18460 _ACEOF8461 8462 fi8463 8464 done8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \8488 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \8489 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next8490 do8491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`8492 echo "$as_me:$LINENO: checking for $ac_func" >&58493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&68494 if eval "test \"\${$as_ac_var+set}\" = set"; then8495 echo $ECHO_N "(cached) $ECHO_C" >&68496 else8497 cat >conftest.$ac_ext <<_ACEOF8498 /* confdefs.h. */8499 _ACEOF8500 cat confdefs.h >>conftest.$ac_ext8501 cat >>conftest.$ac_ext <<_ACEOF8502 /* end confdefs.h. */8503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.8504 For example, HP-UX 11i <limits.h> declares gettimeofday. */8505 #define $ac_func innocuous_$ac_func8506 8507 /* System header to define __stub macros and hopefully few prototypes,8508 which can conflict with char $ac_func (); below.8509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since8510 <limits.h> exists even on freestanding compilers. */8511 8512 #ifdef __STDC__8513 # include <limits.h>8514 #else8515 # include <assert.h>8516 #endif8517 8518 #undef $ac_func8519 8520 /* Override any gcc2 internal prototype to avoid an error. */8521 #ifdef __cplusplus8522 extern "C"8523 {8524 #endif8525 /* We use char because int might match the return type of a gcc28526 builtin and then its argument prototype would still apply. */8527 char $ac_func ();8528 /* The GNU C library defines this for functions which it implements8529 to always fail with ENOSYS. Some functions are actually named8530 something starting with __ and the normal name is an alias. */8531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)8532 choke me8533 #else8534 char (*f) () = $ac_func;8535 #endif8536 #ifdef __cplusplus8537 }8538 #endif8539 8540 int8541 main ()8542 {8543 return f != $ac_func;8544 ;8545 return 0;8546 }8547 _ACEOF8548 rm -f conftest.$ac_objext conftest$ac_exeext8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&58550 (eval $ac_link) 2>conftest.er18551 ac_status=$?8552 grep -v '^ *+' conftest.er1 >conftest.err8553 rm -f conftest.er18554 cat conftest.err >&58555 echo "$as_me:$LINENO: \$? = $ac_status" >&58556 (exit $ac_status); } &&8557 { ac_try='test -z "$ac_c_werror_flag"8558 || test ! -s conftest.err'8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58560 (eval $ac_try) 2>&58561 ac_status=$?8562 echo "$as_me:$LINENO: \$? = $ac_status" >&58563 (exit $ac_status); }; } &&8564 { ac_try='test -s conftest$ac_exeext'8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58566 (eval $ac_try) 2>&58567 ac_status=$?8568 echo "$as_me:$LINENO: \$? = $ac_status" >&58569 (exit $ac_status); }; }; then8570 eval "$as_ac_var=yes"8571 else8572 echo "$as_me: failed program was:" >&58573 sed 's/^/| /' conftest.$ac_ext >&58574 8575 eval "$as_ac_var=no"8576 fi8577 rm -f conftest.err conftest.$ac_objext \8578 conftest$ac_exeext conftest.$ac_ext8579 fi8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&58581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&68582 if test `eval echo '${'$as_ac_var'}'` = yes; then8583 cat >>confdefs.h <<_ACEOF8584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 18585 _ACEOF8586 8587 fi8588 done8589 8590 8591 8592 8593 if test "$am_cv_func_iconv" = yes; then8594 echo "$as_me:$LINENO: checking for iconv declaration" >&58595 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&68596 if test "${am_cv_proto_iconv+set}" = set; then8597 echo $ECHO_N "(cached) $ECHO_C" >&68598 else8599 8600 cat >conftest.$ac_ext <<_ACEOF8601 /* confdefs.h. */8602 _ACEOF8603 cat confdefs.h >>conftest.$ac_ext8604 cat >>conftest.$ac_ext <<_ACEOF8605 /* end confdefs.h. */8606 8607 #include <stdlib.h>8608 #include <iconv.h>8609 extern8610 #ifdef __cplusplus8611 "C"8612 #endif8613 #if defined(__STDC__) || defined(__cplusplus)8614 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);8615 #else8616 size_t iconv();8617 #endif8618 8619 int8620 main ()8621 {8622 8623 ;8624 return 0;8625 }8626 _ACEOF8627 rm -f conftest.$ac_objext8628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&58629 (eval $ac_compile) 2>conftest.er18630 ac_status=$?8631 grep -v '^ *+' conftest.er1 >conftest.err8632 rm -f conftest.er18633 cat conftest.err >&58634 echo "$as_me:$LINENO: \$? = $ac_status" >&58635 (exit $ac_status); } &&8636 { ac_try='test -z "$ac_c_werror_flag"8637 || test ! -s conftest.err'8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58639 (eval $ac_try) 2>&58640 ac_status=$?8641 echo "$as_me:$LINENO: \$? = $ac_status" >&58642 (exit $ac_status); }; } &&8643 { ac_try='test -s conftest.$ac_objext'8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58645 (eval $ac_try) 2>&58646 ac_status=$?8647 echo "$as_me:$LINENO: \$? = $ac_status" >&58648 (exit $ac_status); }; }; then8649 am_cv_proto_iconv_arg1=""8650 else8651 echo "$as_me: failed program was:" >&58652 sed 's/^/| /' conftest.$ac_ext >&58653 8654 am_cv_proto_iconv_arg1="const"8655 fi8656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext8657 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"8658 fi8659 8660 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`8661 echo "$as_me:$LINENO: result: ${ac_t:-8662 }$am_cv_proto_iconv" >&58663 echo "${ECHO_T}${ac_t:-8664 }$am_cv_proto_iconv" >&68665 8666 cat >>confdefs.h <<_ACEOF8667 #define ICONV_CONST $am_cv_proto_iconv_arg18668 _ACEOF8669 8670 fi8671 8672 8673 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&58674 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&68675 if test "${am_cv_langinfo_codeset+set}" = set; then8676 echo $ECHO_N "(cached) $ECHO_C" >&68677 else8678 cat >conftest.$ac_ext <<_ACEOF8679 /* confdefs.h. */8680 _ACEOF8681 cat confdefs.h >>conftest.$ac_ext8682 cat >>conftest.$ac_ext <<_ACEOF8683 /* end confdefs.h. */8684 #include <langinfo.h>8685 int8686 main ()8687 {8688 char* cs = nl_langinfo(CODESET);8689 ;8690 return 0;8691 }8692 _ACEOF8693 rm -f conftest.$ac_objext conftest$ac_exeext8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&58695 (eval $ac_link) 2>conftest.er18696 ac_status=$?8697 grep -v '^ *+' conftest.er1 >conftest.err8698 rm -f conftest.er18699 cat conftest.err >&58700 echo "$as_me:$LINENO: \$? = $ac_status" >&58701 (exit $ac_status); } &&8702 { ac_try='test -z "$ac_c_werror_flag"8703 || test ! -s conftest.err'8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58705 (eval $ac_try) 2>&58706 ac_status=$?8707 echo "$as_me:$LINENO: \$? = $ac_status" >&58708 (exit $ac_status); }; } &&8709 { ac_try='test -s conftest$ac_exeext'8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58711 (eval $ac_try) 2>&58712 ac_status=$?8713 echo "$as_me:$LINENO: \$? = $ac_status" >&58714 (exit $ac_status); }; }; then8715 am_cv_langinfo_codeset=yes8716 else8717 echo "$as_me: failed program was:" >&58718 sed 's/^/| /' conftest.$ac_ext >&58719 8720 am_cv_langinfo_codeset=no8721 fi8722 rm -f conftest.err conftest.$ac_objext \8723 conftest$ac_exeext conftest.$ac_ext8724 8725 fi8726 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&58727 echo "${ECHO_T}$am_cv_langinfo_codeset" >&68728 if test $am_cv_langinfo_codeset = yes; then8729 8730 cat >>confdefs.h <<\_ACEOF8731 #define HAVE_LANGINFO_CODESET 18732 _ACEOF8733 8734 fi8735 8736 if test $ac_cv_header_locale_h = yes; then8737 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&58738 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&68739 if test "${am_cv_val_LC_MESSAGES+set}" = set; then8740 echo $ECHO_N "(cached) $ECHO_C" >&68741 else8742 cat >conftest.$ac_ext <<_ACEOF8743 /* confdefs.h. */8744 _ACEOF8745 cat confdefs.h >>conftest.$ac_ext8746 cat >>conftest.$ac_ext <<_ACEOF8747 /* end confdefs.h. */8748 #include <locale.h>8749 int8750 main ()8751 {8752 return LC_MESSAGES8753 ;8754 return 0;8755 }8756 _ACEOF8757 rm -f conftest.$ac_objext conftest$ac_exeext8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&58759 (eval $ac_link) 2>conftest.er18760 ac_status=$?8761 grep -v '^ *+' conftest.er1 >conftest.err8762 rm -f conftest.er18763 cat conftest.err >&58764 echo "$as_me:$LINENO: \$? = $ac_status" >&58765 (exit $ac_status); } &&8766 { ac_try='test -z "$ac_c_werror_flag"8767 || test ! -s conftest.err'8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58769 (eval $ac_try) 2>&58770 ac_status=$?8771 echo "$as_me:$LINENO: \$? = $ac_status" >&58772 (exit $ac_status); }; } &&8773 { ac_try='test -s conftest$ac_exeext'8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58775 (eval $ac_try) 2>&58776 ac_status=$?8777 echo "$as_me:$LINENO: \$? = $ac_status" >&58778 (exit $ac_status); }; }; then8779 am_cv_val_LC_MESSAGES=yes8780 else8781 echo "$as_me: failed program was:" >&58782 sed 's/^/| /' conftest.$ac_ext >&58783 8784 am_cv_val_LC_MESSAGES=no8785 fi8786 rm -f conftest.err conftest.$ac_objext \8787 conftest$ac_exeext conftest.$ac_ext8788 fi8789 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&58790 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&68791 if test $am_cv_val_LC_MESSAGES = yes; then8792 8793 cat >>confdefs.h <<\_ACEOF8794 #define HAVE_LC_MESSAGES 18795 _ACEOF8796 8797 fi8798 fi8799 8800 for ac_prog in bison8801 do8802 # Extract the first word of "$ac_prog", so it can be a program name with args.8803 set dummy $ac_prog; ac_word=$28804 echo "$as_me:$LINENO: checking for $ac_word" >&58805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&68806 if test "${ac_cv_prog_INTLBISON+set}" = set; then8807 echo $ECHO_N "(cached) $ECHO_C" >&68808 else8809 if test -n "$INTLBISON"; then8810 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.8811 else8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8813 for as_dir in $PATH8814 do8815 IFS=$as_save_IFS8816 test -z "$as_dir" && as_dir=.8817 for ac_exec_ext in '' $ac_executable_extensions; do8818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8819 ac_cv_prog_INTLBISON="$ac_prog"8820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&58821 break 28822 fi8823 done8824 done8825 8826 fi8827 fi8828 INTLBISON=$ac_cv_prog_INTLBISON8829 if test -n "$INTLBISON"; then8830 echo "$as_me:$LINENO: result: $INTLBISON" >&58831 echo "${ECHO_T}$INTLBISON" >&68832 else8833 echo "$as_me:$LINENO: result: no" >&58834 echo "${ECHO_T}no" >&68835 fi8836 8837 test -n "$INTLBISON" && break8838 done8839 8840 if test -z "$INTLBISON"; then8841 ac_verc_fail=yes8842 else8843 echo "$as_me:$LINENO: checking version of bison" >&58844 echo $ECHO_N "checking version of bison... $ECHO_C" >&68845 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`8846 case $ac_prog_version in8847 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;8848 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)8849 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;8850 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;8851 esac8852 echo "$as_me:$LINENO: result: $ac_prog_version" >&58853 echo "${ECHO_T}$ac_prog_version" >&68854 fi8855 if test $ac_verc_fail = yes; then8856 INTLBISON=:8857 fi8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 echo "$as_me:$LINENO: checking whether NLS is requested" >&58872 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&68873 # Check whether --enable-nls or --disable-nls was given.8874 if test "${enable_nls+set}" = set; then8875 enableval="$enable_nls"8876 USE_NLS=$enableval8877 else8878 USE_NLS=yes8879 fi;8880 echo "$as_me:$LINENO: result: $USE_NLS" >&58881 echo "${ECHO_T}$USE_NLS" >&68882 8883 8884 8885 BUILD_INCLUDED_LIBINTL=no8886 USE_INCLUDED_LIBINTL=no8887 8888 LIBINTL=8889 LTLIBINTL=8890 POSUB=8891 8892 if test "$USE_NLS" = "yes"; then8893 gt_use_preinstalled_gnugettext=no8894 8895 echo "$as_me:$LINENO: checking whether included gettext is requested" >&58896 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&68897 8898 # Check whether --with-included-gettext or --without-included-gettext was given.8899 if test "${with_included_gettext+set}" = set; then8900 withval="$with_included_gettext"8901 nls_cv_force_use_gnu_gettext=$withval8902 else8903 nls_cv_force_use_gnu_gettext=no8904 fi;8905 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&58906 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&68907 8908 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"8909 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then8910 8911 8912 8913 8914 8915 8916 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&58917 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&68918 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then8919 echo $ECHO_N "(cached) $ECHO_C" >&68920 else8921 cat >conftest.$ac_ext <<_ACEOF8922 /* confdefs.h. */8923 _ACEOF8924 cat confdefs.h >>conftest.$ac_ext8925 cat >>conftest.$ac_ext <<_ACEOF8926 /* end confdefs.h. */8927 #include <libintl.h>8928 extern int _nl_msg_cat_cntr;8929 int8930 main ()8931 {8932 bindtextdomain ("", "");8933 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr8934 ;8935 return 0;8936 }8937 _ACEOF8938 rm -f conftest.$ac_objext conftest$ac_exeext8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&58940 (eval $ac_link) 2>conftest.er18941 ac_status=$?8942 grep -v '^ *+' conftest.er1 >conftest.err8943 rm -f conftest.er18944 cat conftest.err >&58945 echo "$as_me:$LINENO: \$? = $ac_status" >&58946 (exit $ac_status); } &&8947 { ac_try='test -z "$ac_c_werror_flag"8948 || test ! -s conftest.err'8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58950 (eval $ac_try) 2>&58951 ac_status=$?8952 echo "$as_me:$LINENO: \$? = $ac_status" >&58953 (exit $ac_status); }; } &&8954 { ac_try='test -s conftest$ac_exeext'8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&58956 (eval $ac_try) 2>&58957 ac_status=$?8958 echo "$as_me:$LINENO: \$? = $ac_status" >&58959 (exit $ac_status); }; }; then8960 gt_cv_func_gnugettext2_libc=yes8961 else8962 echo "$as_me: failed program was:" >&58963 sed 's/^/| /' conftest.$ac_ext >&58964 8965 gt_cv_func_gnugettext2_libc=no8966 fi8967 rm -f conftest.err conftest.$ac_objext \8968 conftest$ac_exeext conftest.$ac_ext8969 fi8970 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&58971 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&68972 8973 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then8974 8975 8976 8977 44803 use_additional=yes 8978 44804 … … 8989 44815 8990 44816 8991 # Check whether --with-libintl-prefix or --without-libintl-prefixwas given.8992 if test "${with_libintl_prefix+set}" = set; then8993 withval="$with_libintl_prefix" 8994 44817 # Check whether --with-libintl-prefix was given. 44818 if test ${with_libintl_prefix+y} 44819 then : 44820 withval=$with_libintl_prefix; 8995 44821 if test "X$withval" = "Xno"; then 8996 44822 use_additional=no … … 9011 44837 else 9012 44838 additional_includedir="$withval/include" 9013 additional_libdir="$withval/lib" 44839 additional_libdir="$withval/$acl_libdirstem" 44840 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 44841 && ! test -d "$withval/$acl_libdirstem"; then 44842 additional_libdir="$withval/$acl_libdirstem2" 44843 fi 9014 44844 fi 9015 44845 fi 9016 44846 9017 fi; 44847 fi 44848 9018 44849 LIBINTL= 9019 44850 LTLIBINTL= 9020 44851 INCINTL= 44852 LIBINTL_PREFIX= 44853 HAVE_LIBINTL= 9021 44854 rpathdirs= 9022 44855 ltrpathdirs= … … 9036 44869 if test -z "$already_handled"; then 9037 44870 names_already_handled="$names_already_handled $name" 9038 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./ -|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`44871 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 9039 44872 eval value=\"\$HAVE_LIB$uppername\" 9040 44873 if test -n "$value"; then … … 9052 44885 found_so= 9053 44886 found_a= 44887 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 44888 if test -n "$acl_shlibext"; then 44889 shrext=".$acl_shlibext" # typically: shrext=.so 44890 else 44891 shrext= 44892 fi 9054 44893 if test $use_additional = yes; then 9055 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 9056 found_dir="$additional_libdir" 9057 found_so="$additional_libdir/lib$name.$shlibext" 9058 if test -f "$additional_libdir/lib$name.la"; then 9059 found_la="$additional_libdir/lib$name.la" 44894 dir="$additional_libdir" 44895 if test -n "$acl_shlibext"; then 44896 if test -f "$dir/$libname$shrext"; then 44897 found_dir="$dir" 44898 found_so="$dir/$libname$shrext" 44899 else 44900 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 44901 ver=`(cd "$dir" && \ 44902 for f in "$libname$shrext".*; do echo "$f"; done \ 44903 | sed -e "s,^$libname$shrext\\\\.,," \ 44904 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 44905 | sed 1q ) 2>/dev/null` 44906 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 44907 found_dir="$dir" 44908 found_so="$dir/$libname$shrext.$ver" 44909 fi 44910 else 44911 eval library_names=\"$acl_library_names_spec\" 44912 for f in $library_names; do 44913 if test -f "$dir/$f"; then 44914 found_dir="$dir" 44915 found_so="$dir/$f" 44916 break 44917 fi 44918 done 44919 fi 9060 44920 fi 9061 else 9062 if test -f "$additional_libdir/lib$name.$libext"; then 9063 found_dir="$additional_libdir" 9064 found_a="$additional_libdir/lib$name.$libext" 9065 if test -f "$additional_libdir/lib$name.la"; then 9066 found_la="$additional_libdir/lib$name.la" 9067 fi 44921 fi 44922 if test "X$found_dir" = "X"; then 44923 if test -f "$dir/$libname.$acl_libext"; then 44924 found_dir="$dir" 44925 found_a="$dir/$libname.$acl_libext" 44926 fi 44927 fi 44928 if test "X$found_dir" != "X"; then 44929 if test -f "$dir/$libname.la"; then 44930 found_la="$dir/$libname.la" 9068 44931 fi 9069 44932 fi … … 9083 44946 -L*) 9084 44947 dir=`echo "X$x" | sed -e 's/^X-L//'` 9085 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 9086 found_dir="$dir" 9087 found_so="$dir/lib$name.$shlibext" 9088 if test -f "$dir/lib$name.la"; then 9089 found_la="$dir/lib$name.la" 44948 if test -n "$acl_shlibext"; then 44949 if test -f "$dir/$libname$shrext"; then 44950 found_dir="$dir" 44951 found_so="$dir/$libname$shrext" 44952 else 44953 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 44954 ver=`(cd "$dir" && \ 44955 for f in "$libname$shrext".*; do echo "$f"; done \ 44956 | sed -e "s,^$libname$shrext\\\\.,," \ 44957 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 44958 | sed 1q ) 2>/dev/null` 44959 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 44960 found_dir="$dir" 44961 found_so="$dir/$libname$shrext.$ver" 44962 fi 44963 else 44964 eval library_names=\"$acl_library_names_spec\" 44965 for f in $library_names; do 44966 if test -f "$dir/$f"; then 44967 found_dir="$dir" 44968 found_so="$dir/$f" 44969 break 44970 fi 44971 done 44972 fi 9090 44973 fi 9091 else 9092 if test -f "$dir/lib$name.$libext"; then 44974 fi 44975 if test "X$found_dir" = "X"; then 44976 if test -f "$dir/$libname.$acl_libext"; then 9093 44977 found_dir="$dir" 9094 found_a="$dir/lib$name.$libext" 9095 if test -f "$dir/lib$name.la"; then 9096 found_la="$dir/lib$name.la" 9097 fi 44978 found_a="$dir/$libname.$acl_libext" 44979 fi 44980 fi 44981 if test "X$found_dir" != "X"; then 44982 if test -f "$dir/$libname.la"; then 44983 found_la="$dir/$libname.la" 9098 44984 fi 9099 44985 fi … … 9108 44994 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 9109 44995 if test "X$found_so" != "X"; then 9110 if test "X$found_dir" = "X/usr/lib"; then 44996 if test "$enable_rpath" = no \ 44997 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 44998 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 9111 44999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9112 45000 else … … 9121 45009 ltrpathdirs="$ltrpathdirs $found_dir" 9122 45010 fi 9123 if test "$ hardcode_direct" = yes; then45011 if test "$acl_hardcode_direct" = yes; then 9124 45012 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9125 45013 else 9126 if test -n "$ hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then45014 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9127 45015 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9128 45016 haveit= … … 9156 45044 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 9157 45045 fi 9158 if test "$ hardcode_minus_L" != no; then45046 if test "$acl_hardcode_minus_L" != no; then 9159 45047 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9160 45048 else … … 9173 45061 additional_includedir= 9174 45062 case "$found_dir" in 9175 */lib | */lib/) 9176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 45063 */$acl_libdirstem | */$acl_libdirstem/) 45064 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 45065 if test "$name" = 'intl'; then 45066 LIBINTL_PREFIX="$basedir" 45067 fi 45068 additional_includedir="$basedir/include" 45069 ;; 45070 */$acl_libdirstem2 | */$acl_libdirstem2/) 45071 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 45072 if test "$name" = 'intl'; then 45073 LIBINTL_PREFIX="$basedir" 45074 fi 9177 45075 additional_includedir="$basedir/include" 9178 45076 ;; … … 9184 45082 if test -n "$GCC"; then 9185 45083 case $host_os in 9186 linux* ) haveit=yes;;45084 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9187 45085 esac 9188 45086 fi … … 9223 45121 -L*) 9224 45122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9225 if test "X$additional_libdir" != "X/usr/lib"; then 45123 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 45124 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 9226 45125 haveit= 9227 if test "X$additional_libdir" = "X/usr/local/lib"; then 45126 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 45127 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 9228 45128 if test -n "$GCC"; then 9229 45129 case $host_os in 9230 linux* ) haveit=yes;;45130 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9231 45131 esac 9232 45132 fi … … 9275 45175 fi 9276 45176 fi 45177 fi 45178 fi 45179 ;; 45180 -R*) 45181 dir=`echo "X$dep" | sed -e 's/^X-R//'` 45182 if test "$enable_rpath" != no; then 45183 haveit= 45184 for x in $rpathdirs; do 45185 if test "X$x" = "X$dir"; then 45186 haveit=yes 45187 break 45188 fi 45189 done 45190 if test -z "$haveit"; then 45191 rpathdirs="$rpathdirs $dir" 45192 fi 45193 haveit= 45194 for x in $ltrpathdirs; do 45195 if test "X$x" = "X$dir"; then 45196 haveit=yes 45197 break 45198 fi 45199 done 45200 if test -z "$haveit"; then 45201 ltrpathdirs="$ltrpathdirs $dir" 9277 45202 fi 9278 45203 fi … … 9300 45225 done 9301 45226 if test "X$rpathdirs" != "X"; then 9302 if test -n "$ hardcode_libdir_separator"; then45227 if test -n "$acl_hardcode_libdir_separator"; then 9303 45228 alldirs= 9304 45229 for found_dir in $rpathdirs; do 9305 alldirs="${alldirs}${alldirs:+$ hardcode_libdir_separator}$found_dir"45230 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 9306 45231 done 9307 45232 acl_save_libdir="$libdir" 9308 45233 libdir="$alldirs" 9309 eval flag=\"$ hardcode_libdir_flag_spec\"45234 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9310 45235 libdir="$acl_save_libdir" 9311 45236 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" … … 9314 45239 acl_save_libdir="$libdir" 9315 45240 libdir="$found_dir" 9316 eval flag=\"$ hardcode_libdir_flag_spec\"45241 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9317 45242 libdir="$acl_save_libdir" 9318 45243 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" … … 9326 45251 fi 9327 45252 9328 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 9329 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 9330 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then 9331 echo $ECHO_N "(cached) $ECHO_C" >&6 9332 else 9333 gt_save_CPPFLAGS="$CPPFLAGS" 45253 45254 45255 45256 45257 45258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 45259 printf %s "checking for GNU gettext in libintl... " >&6; } 45260 if eval test \${$gt_func_gnugettext_libintl+y} 45261 then : 45262 printf %s "(cached) " >&6 45263 else case e in #( 45264 e) gt_save_CPPFLAGS="$CPPFLAGS" 9334 45265 CPPFLAGS="$CPPFLAGS $INCINTL" 9335 45266 gt_save_LIBS="$LIBS" 9336 45267 LIBS="$LIBS $LIBINTL" 9337 cat >conftest.$ac_ext <<_ACEOF 9338 /* confdefs.h. */ 9339 _ACEOF 9340 cat confdefs.h >>conftest.$ac_ext 9341 cat >>conftest.$ac_ext <<_ACEOF 45268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342 45269 /* end confdefs.h. */ 45270 9343 45271 #include <libintl.h> 45272 $gt_revision_test_code 9344 45273 extern int _nl_msg_cat_cntr; 45274 extern 45275 #ifdef __cplusplus 45276 "C" 45277 #endif 45278 const char *_nl_expand_alias (const char *); 45279 9345 45280 int 9346 main ( )45281 main (void) 9347 45282 { 45283 9348 45284 bindtextdomain ("", ""); 9349 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr 45285 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 45286 9350 45287 ; 9351 45288 return 0; 9352 45289 } 9353 45290 _ACEOF 9354 rm -f conftest.$ac_objext conftest$ac_exeext 9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9356 (eval $ac_link) 2>conftest.er1 9357 ac_status=$? 9358 grep -v '^ *+' conftest.er1 >conftest.err 9359 rm -f conftest.er1 9360 cat conftest.err >&5 9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 (exit $ac_status); } && 9363 { ac_try='test -z "$ac_c_werror_flag" 9364 || test ! -s conftest.err' 9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9366 (eval $ac_try) 2>&5 9367 ac_status=$? 9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9369 (exit $ac_status); }; } && 9370 { ac_try='test -s conftest$ac_exeext' 9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9372 (eval $ac_try) 2>&5 9373 ac_status=$? 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 (exit $ac_status); }; }; then 9376 gt_cv_func_gnugettext2_libintl=yes 9377 else 9378 echo "$as_me: failed program was:" >&5 9379 sed 's/^/| /' conftest.$ac_ext >&5 9380 9381 gt_cv_func_gnugettext2_libintl=no 9382 fi 9383 rm -f conftest.err conftest.$ac_objext \ 9384 conftest$ac_exeext conftest.$ac_ext 9385 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 45291 if ac_fn_c_try_link "$LINENO" 45292 then : 45293 eval "$gt_func_gnugettext_libintl=yes" 45294 else case e in #( 45295 e) eval "$gt_func_gnugettext_libintl=no" ;; 45296 esac 45297 fi 45298 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45299 conftest$ac_exeext conftest.$ac_ext 45300 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 9386 45301 LIBS="$LIBS $LIBICONV" 9387 cat >conftest.$ac_ext <<_ACEOF 9388 /* confdefs.h. */ 9389 _ACEOF 9390 cat confdefs.h >>conftest.$ac_ext 9391 cat >>conftest.$ac_ext <<_ACEOF 45302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9392 45303 /* end confdefs.h. */ 45304 9393 45305 #include <libintl.h> 45306 $gt_revision_test_code 9394 45307 extern int _nl_msg_cat_cntr; 45308 extern 45309 #ifdef __cplusplus 45310 "C" 45311 #endif 45312 const char *_nl_expand_alias (const char *); 45313 9395 45314 int 9396 main ( )45315 main (void) 9397 45316 { 45317 9398 45318 bindtextdomain ("", ""); 9399 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr 45319 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 45320 9400 45321 ; 9401 45322 return 0; 9402 45323 } 9403 45324 _ACEOF 9404 rm -f conftest.$ac_objext conftest$ac_exeext 9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9406 (eval $ac_link) 2>conftest.er1 9407 ac_status=$? 9408 grep -v '^ *+' conftest.er1 >conftest.err 9409 rm -f conftest.er1 9410 cat conftest.err >&5 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 (exit $ac_status); } && 9413 { ac_try='test -z "$ac_c_werror_flag" 9414 || test ! -s conftest.err' 9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9416 (eval $ac_try) 2>&5 9417 ac_status=$? 9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9419 (exit $ac_status); }; } && 9420 { ac_try='test -s conftest$ac_exeext' 9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9422 (eval $ac_try) 2>&5 9423 ac_status=$? 9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9425 (exit $ac_status); }; }; then 45325 if ac_fn_c_try_link "$LINENO" 45326 then : 9426 45327 LIBINTL="$LIBINTL $LIBICONV" 9427 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 9428 gt_cv_func_gnugettext2_libintl=yes 9429 9430 else 9431 echo "$as_me: failed program was:" >&5 9432 sed 's/^/| /' conftest.$ac_ext >&5 9433 9434 fi 9435 rm -f conftest.err conftest.$ac_objext \ 9436 conftest$ac_exeext conftest.$ac_ext 45328 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 45329 eval "$gt_func_gnugettext_libintl=yes" 45330 45331 fi 45332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45333 conftest$ac_exeext conftest.$ac_ext 9437 45334 fi 9438 45335 CPPFLAGS="$gt_save_CPPFLAGS" 9439 LIBS="$gt_save_LIBS" 9440 fi 9441 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 9442 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6 45336 LIBS="$gt_save_LIBS" ;; 45337 esac 45338 fi 45339 eval ac_res=\$$gt_func_gnugettext_libintl 45340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 45341 printf "%s\n" "$ac_res" >&6; } 9443 45342 fi 9444 45343 9445 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 9446 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 9447 && test "$PACKAGE" != gettext; }; then 45344 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 45345 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 45346 && test "$PACKAGE" != gettext-runtime \ 45347 && test "$PACKAGE" != gettext-tools; }; then 9448 45348 gt_use_preinstalled_gnugettext=yes 45349 else 45350 LIBINTL= 45351 LTLIBINTL= 45352 INCINTL= 9449 45353 fi 9450 45354 9451 45355 9452 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 9453 nls_cv_use_gnu_gettext=yes 9454 fi 9455 fi 9456 9457 if test "$nls_cv_use_gnu_gettext" = "yes"; then 9458 INTLOBJS="\$(GETTOBJS)" 9459 BUILD_INCLUDED_LIBINTL=yes 9460 USE_INCLUDED_LIBINTL=yes 9461 LIBINTL="../intl/libintl.a $LIBICONV" 9462 LTLIBINTL="../intl/libintl.a $LTLIBICONV" 9463 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 9464 fi 9465 45356 45357 if test -n "$INTL_MACOSX_LIBS"; then 9466 45358 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9467 45359 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9468 CATOBJEXT=.gmo 45360 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 45361 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 9469 45362 fi 9470 45363 fi 9471 45364 9472 45365 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9473 45366 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9474 45367 9475 cat >>confdefs.h <<\_ACEOF 9476 #define ENABLE_NLS 1 9477 _ACEOF 45368 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h 9478 45369 9479 45370 else … … 9482 45373 fi 9483 45374 45375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 45376 printf %s "checking whether to use NLS... " >&6; } 45377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 45378 printf "%s\n" "$USE_NLS" >&6; } 9484 45379 if test "$USE_NLS" = "yes"; then 9485 45380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 45381 printf %s "checking where the gettext function comes from... " >&6; } 9486 45382 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9487 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 9488 echo "$as_me:$LINENO: checking how to link with libintl" >&5 9489 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 9490 echo "$as_me:$LINENO: result: $LIBINTL" >&5 9491 echo "${ECHO_T}$LIBINTL" >&6 45383 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 45384 gt_source="external libintl" 45385 else 45386 gt_source="libc" 45387 fi 45388 else 45389 gt_source="included intl directory" 45390 fi 45391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 45392 printf "%s\n" "$gt_source" >&6; } 45393 fi 45394 45395 if test "$USE_NLS" = "yes"; then 45396 45397 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 45398 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 45399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 45400 printf %s "checking how to link with libintl... " >&6; } 45401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 45402 printf "%s\n" "$LIBINTL" >&6; } 9492 45403 9493 45404 for element in $INCINTL; do … … 9516 45427 9517 45428 9518 cat >>confdefs.h <<\_ACEOF 9519 #define HAVE_GETTEXT 1 45429 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h 45430 45431 45432 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h 45433 45434 fi 45435 45436 POSUB=po 45437 fi 45438 45439 45440 45441 INTLLIBS="$LIBINTL" 45442 45443 45444 45445 45446 45447 45448 45449 45450 45451 45452 45453 45454 45455 45456 45457 45458 45459 45460 if test "$ac_cv_func_readlink" = yes; then 45461 TEST_SYMLINKS_TRUE= 45462 TEST_SYMLINKS_FALSE='#' 45463 else 45464 TEST_SYMLINKS_TRUE='#' 45465 TEST_SYMLINKS_FALSE= 45466 fi 45467 45468 45469 # Check whether --enable-i18n was given. 45470 if test ${enable_i18n+y} 45471 then : 45472 enableval=$enable_i18n; 45473 else case e in #( 45474 e) enable_i18n=yes ;; 45475 esac 45476 fi 45477 45478 if test "x$enable_i18n" = xno; then 45479 ac_cv_func_wcscoll=no 45480 fi 45481 45482 45483 # Determine whether we should run UTF-8 tests by checking if cyrillic 45484 # letters are case-folded properly. The test for UTF-8 locales (both 45485 # in general and specifically for a Russian one) is a bit weak, but it 45486 # should match exactly what is done in the testsuite. In fact, sed's 45487 # logic is portable (though testing it requires care) so it is enough to 45488 # have a couple of platforms where these tests pass. Right now, only 45489 # Windows and HP/UX do not support the tests. 45490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTF-8 case folding tests should pass" >&5 45491 printf %s "checking whether UTF-8 case folding tests should pass... " >&6; } 45492 if test "$cross_compiling" = yes 45493 then : 45494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: don't care (cross compiling)" >&5 45495 printf "%s\n" "don't care (cross compiling)" >&6; }; XFAIL_TESTS= 45496 else case e in #( 45497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45498 /* end confdefs.h. */ 45499 45500 #include <locale.h> 45501 #include <string.h> 45502 #include <stdlib.h> 45503 #include <wchar.h> 45504 #ifdef HAVE_WCTYPE_H 45505 #include <wctype.h> 45506 #endif 45507 45508 int test(void) 45509 { 45510 char in[] = "\xD0\xB4"; 45511 char good[] = "\xD0\x94"; 45512 char out[10]; 45513 wchar_t in_wc, good_wc; 45514 if (mbtowc (&in_wc, in, 3) == -1) 45515 return 0; 45516 if (mbtowc (&good_wc, good, 3) == -1) 45517 return 0; 45518 if (towupper (in_wc) != good_wc) 45519 return 0; 45520 if (wctomb (out, good_wc) != 2) 45521 return 0; 45522 if (memcmp (out, good, 2)) 45523 return 0; 45524 return 1; 45525 } 45526 45527 int main() 45528 { 45529 char *old; 45530 int len; 45531 45532 /* Try hardcoding a Russian UTF-8 locale. If the name "ru_RU.UTF-8" 45533 is invalid, use setlocale again just to get the current locale. */ 45534 old = setlocale (LC_CTYPE, "ru_RU.UTF-8"); 45535 if (old) 45536 { 45537 if (test()) 45538 exit (0); 45539 } 45540 else 45541 old = setlocale (LC_CTYPE, "C"); 45542 45543 /* Maybe cyrillic case folding is implemented for all UTF-8 locales. 45544 If the current locale is not UTF-8, the test will be skipped. */ 45545 len = strlen (old); 45546 if ((len > 6 && !strcmp (old + len - 6, ".UTF-8")) 45547 || (len > 6 && !strcmp (old + len - 6, ".utf-8")) 45548 || (len > 5 && !strcmp (old + len - 5, ".UTF8")) 45549 || (len > 5 && !strcmp (old + len - 5, ".utf8"))) 45550 45551 /* ok */ 45552 ; 45553 else 45554 exit (1); 45555 45556 /* Run the test in the detected UTF-8 locale. */ 45557 setlocale (LC_CTYPE, old); 45558 exit (!test ()); 45559 } 45560 9520 45561 _ACEOF 9521 9522 9523 cat >>confdefs.h <<\_ACEOF 9524 #define HAVE_DCGETTEXT 1 45562 if ac_fn_c_try_run "$LINENO" 45563 then : 45564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45565 printf "%s\n" "yes" >&6; }; XFAIL_TESTS= 45566 else case e in #( 45567 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45568 printf "%s\n" "no" >&6; }; XFAIL_TESTS='testsuite/utf8-1 testsuite/utf8-2 \ 45569 testsuite/utf8-3 testsuite/utf8-4' ;; 45570 esac 45571 fi 45572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 45573 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 45574 esac 45575 fi 45576 45577 45578 # Under MinGW, the bsd.sh test fails because of the EOF character (^Z). 45579 case $host in 45580 *mingw*) XFAIL_TESTS="$XFAIL_TESTS bsd" ;; 45581 *) ;; 45582 esac 45583 45584 45585 # Check whether --enable-gcc-warnings was given. 45586 if test ${enable_gcc_warnings+y} 45587 then : 45588 enableval=$enable_gcc_warnings; case $enableval in 45589 yes|no) ;; 45590 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; 45591 esac 45592 gl_gcc_warnings=$enableval 45593 else case e in #( 45594 e) 45595 # GCC provides fine-grained control over diagnostics which 45596 # is used in gnulib for example to suppress warnings from 45597 # certain sections of code. So if this is available and 45598 # we're running from a git repo, then auto enable the warnings. 45599 gl_gcc_warnings=no 45600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45601 /* end confdefs.h. */ 45602 45603 #if (4) < __GNUC__ || ((4) == __GNUC__ && (6) <= __GNUC_MINOR__) 45604 /* ok */ 45605 #else 45606 # error "your version of gcc is older than 4.6" 45607 #endif 45608 45609 int 45610 main (void) 45611 { 45612 45613 ; 45614 return 0; 45615 }, 45616 9525 45617 _ACEOF 9526 45618 if ac_fn_c_try_cpp "$LINENO" 45619 then : 45620 test -d "$srcdir"/.git \ 45621 && ! test -f "$srcdir"/.tarball-version \ 45622 && gl_gcc_warnings=yes 45623 fi 45624 rm -f conftest.err conftest.i conftest.$ac_ext 45625 45626 45627 ;; 45628 esac 45629 fi 45630 45631 45632 if test "$gl_gcc_warnings" = yes; then 45633 45634 ac_ext=c 45635 ac_cpp='$CPP $CPPFLAGS' 45636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45638 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45639 45640 45641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 45642 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } 45643 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y} 45644 then : 45645 printf %s "(cached) " >&6 45646 else case e in #( 45647 e) 45648 gl_save_compiler_FLAGS="$CFLAGS" 45649 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 45650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45651 /* end confdefs.h. */ 45652 45653 int 45654 main (void) 45655 { 45656 45657 ; 45658 return 0; 45659 } 45660 _ACEOF 45661 if ac_fn_c_try_link "$LINENO" 45662 then : 45663 gl_cv_warn_c__Werror__Wunknown_warning_option=yes 45664 else case e in #( 45665 e) gl_cv_warn_c__Werror__Wunknown_warning_option=no ;; 45666 esac 45667 fi 45668 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45669 conftest$ac_exeext conftest.$ac_ext 45670 CFLAGS="$gl_save_compiler_FLAGS" 45671 ;; 45672 esac 45673 fi 45674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 45675 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } 45676 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes 45677 then : 45678 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 45679 else case e in #( 45680 e) gl_unknown_warnings_are_errors= ;; 45681 esac 45682 fi 45683 45684 ac_ext=c 45685 ac_cpp='$CPP $CPPFLAGS' 45686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45688 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45689 45690 45691 45692 45693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 45694 printf %s "checking whether C compiler handles -Werror... " >&6; } 45695 if test ${gl_cv_warn_c__Werror+y} 45696 then : 45697 printf %s "(cached) " >&6 45698 else case e in #( 45699 e) 45700 gl_save_compiler_FLAGS="$CFLAGS" 45701 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror" 45702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45703 /* end confdefs.h. */ 45704 45705 int 45706 main (void) 45707 { 45708 45709 ; 45710 return 0; 45711 } 45712 _ACEOF 45713 if ac_fn_c_try_link "$LINENO" 45714 then : 45715 gl_cv_warn_c__Werror=yes 45716 else case e in #( 45717 e) gl_cv_warn_c__Werror=no ;; 45718 esac 45719 fi 45720 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45721 conftest$ac_exeext conftest.$ac_ext 45722 CFLAGS="$gl_save_compiler_FLAGS" 45723 ;; 45724 esac 45725 fi 45726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 45727 printf "%s\n" "$gl_cv_warn_c__Werror" >&6; } 45728 if test "x$gl_cv_warn_c__Werror" = xyes 45729 then : 45730 as_fn_append WERROR_CFLAGS " -Werror" 45731 fi 45732 45733 45734 45735 45736 nw= 45737 # This, $nw, is the list of warnings we disable. 45738 nw="$nw -Wdeclaration-after-statement" # too useful to forbid 45739 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings 45740 nw="$nw -Wsign-conversion" # Too many warnings for now 45741 nw="$nw -Wformat-nonliteral" # who.c and pinky.c strftime uses 45742 nw="$nw -Wswitch-default" # Too many warnings for now 45743 45744 45745 ac_ext=c 45746 ac_cpp='$CPP $CPPFLAGS' 45747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45750 45751 45752 45753 if test -n "$GCC"; then 45754 45755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 45756 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; } 45757 if test ${gl_cv_cc_nomfi_supported+y} 45758 then : 45759 printf %s "(cached) " >&6 45760 else case e in #( 45761 e) gl_save_CFLAGS="$CFLAGS" 45762 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers" 45763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45764 /* end confdefs.h. */ 45765 45766 int 45767 main (void) 45768 { 45769 45770 ; 45771 return 0; 45772 } 45773 _ACEOF 45774 if ac_fn_c_try_compile "$LINENO" 45775 then : 45776 gl_cv_cc_nomfi_supported=yes 45777 else case e in #( 45778 e) gl_cv_cc_nomfi_supported=no ;; 45779 esac 45780 fi 45781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45782 CFLAGS="$gl_save_CFLAGS" 45783 ;; 45784 esac 45785 fi 45786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 45787 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; } 45788 45789 if test "$gl_cv_cc_nomfi_supported" = yes; then 45790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 45791 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; } 45792 if test ${gl_cv_cc_nomfi_needed+y} 45793 then : 45794 printf %s "(cached) " >&6 45795 else case e in #( 45796 e) gl_save_CFLAGS="$CFLAGS" 45797 CFLAGS="$CFLAGS -Wextra -Werror" 45798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45799 /* end confdefs.h. */ 45800 int f (void) 45801 { 45802 typedef struct { int a; int b; } s_t; 45803 s_t s1 = { 0, }; 45804 return s1.b; 45805 } 45806 45807 int 45808 main (void) 45809 { 45810 45811 ; 45812 return 0; 45813 } 45814 _ACEOF 45815 if ac_fn_c_try_compile "$LINENO" 45816 then : 45817 gl_cv_cc_nomfi_needed=no 45818 else case e in #( 45819 e) gl_cv_cc_nomfi_needed=yes ;; 45820 esac 45821 fi 45822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45823 CFLAGS="$gl_save_CFLAGS" 45824 ;; 45825 esac 45826 fi 45827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 45828 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; } 9527 45829 fi 9528 45830 9529 POSUB=po 9530 fi 9531 9532 9533 if test "$PACKAGE" = gettext; then 9534 BUILD_INCLUDED_LIBINTL=yes 9535 fi 9536 9537 9538 9539 9540 9541 9542 nls_cv_header_intl= 9543 nls_cv_header_libgt= 9544 9545 DATADIRNAME=share 9546 9547 9548 INSTOBJEXT=.mo 9549 9550 9551 GENCAT=gencat 9552 9553 9554 INTL_LIBTOOL_SUFFIX_PREFIX= 9555 9556 9557 9558 INTLLIBS="$LIBINTL" 9559 9560 9561 9562 9563 9564 9565 ac_config_commands="$ac_config_commands gettext-fix" 9566 9567 9568 ac_config_files="$ac_config_files bootstrap.sh" 9569 9570 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile po/Makefile.in intl/Makefile" 45831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 45832 printf %s "checking whether -Wuninitialized is supported... " >&6; } 45833 if test ${gl_cv_cc_uninitialized_supported+y} 45834 then : 45835 printf %s "(cached) " >&6 45836 else case e in #( 45837 e) gl_save_CFLAGS="$CFLAGS" 45838 CFLAGS="$CFLAGS -Werror -Wuninitialized" 45839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45840 /* end confdefs.h. */ 45841 45842 int 45843 main (void) 45844 { 45845 45846 ; 45847 return 0; 45848 } 45849 _ACEOF 45850 if ac_fn_c_try_compile "$LINENO" 45851 then : 45852 gl_cv_cc_uninitialized_supported=yes 45853 else case e in #( 45854 e) gl_cv_cc_uninitialized_supported=no ;; 45855 esac 45856 fi 45857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45858 CFLAGS="$gl_save_CFLAGS" 45859 ;; 45860 esac 45861 fi 45862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 45863 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; } 45864 45865 fi 45866 45867 # List all gcc warning categories. 45868 # To compare this list to your installed GCC's, run this Bash command: 45869 # 45870 # comm -3 \ 45871 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \ 45872 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \ 45873 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort) 45874 45875 ws= 45876 for gl_manywarn_item in -fanalyzer -fno-common \ 45877 -Wall \ 45878 -Warith-conversion \ 45879 -Wbad-function-cast \ 45880 -Wcast-align=strict \ 45881 -Wdate-time \ 45882 -Wdisabled-optimization \ 45883 -Wdouble-promotion \ 45884 -Wduplicated-branches \ 45885 -Wduplicated-cond \ 45886 -Wextra \ 45887 -Wformat-signedness \ 45888 -Winit-self \ 45889 -Winline \ 45890 -Winvalid-pch \ 45891 -Wlogical-op \ 45892 -Wmissing-declarations \ 45893 -Wmissing-include-dirs \ 45894 -Wmissing-prototypes \ 45895 -Wnested-externs \ 45896 -Wnull-dereference \ 45897 -Wold-style-definition \ 45898 -Wopenmp-simd \ 45899 -Woverlength-strings \ 45900 -Wpacked \ 45901 -Wpointer-arith \ 45902 -Wshadow \ 45903 -Wstack-protector \ 45904 -Wstrict-overflow \ 45905 -Wstrict-prototypes \ 45906 -Wsuggest-attribute=cold \ 45907 -Wsuggest-attribute=const \ 45908 -Wsuggest-attribute=format \ 45909 -Wsuggest-attribute=malloc \ 45910 -Wsuggest-attribute=noreturn \ 45911 -Wsuggest-attribute=pure \ 45912 -Wsuggest-final-methods \ 45913 -Wsuggest-final-types \ 45914 -Wsync-nand \ 45915 -Wsystem-headers \ 45916 -Wtrampolines \ 45917 -Wuninitialized \ 45918 -Wunknown-pragmas \ 45919 -Wunsafe-loop-optimizations \ 45920 -Wunused-macros \ 45921 -Wvariadic-macros \ 45922 -Wvector-operation-performance \ 45923 -Wvla \ 45924 -Wwrite-strings \ 45925 \ 45926 ; do 45927 as_fn_append ws " $gl_manywarn_item" 45928 done 45929 45930 # gcc --help=warnings outputs an unusual form for these options; list 45931 # them here so that the above 'comm' command doesn't report a false match. 45932 as_fn_append ws ' -Warray-bounds=2' 45933 as_fn_append ws ' -Wattribute-alias=2' 45934 as_fn_append ws ' -Wbidi-chars=any,ucn' 45935 as_fn_append ws ' -Wformat-overflow=2' 45936 as_fn_append ws ' -Wformat=2' 45937 as_fn_append ws ' -Wformat-truncation=2' 45938 as_fn_append ws ' -Wimplicit-fallthrough=5' 45939 as_fn_append ws ' -Wshift-overflow=2' 45940 as_fn_append ws ' -Wuse-after-free=3' 45941 as_fn_append ws ' -Wunused-const-variable=2' 45942 as_fn_append ws ' -Wvla-larger-than=4031' 45943 45944 # These are needed for older GCC versions. 45945 if test -n "$GCC"; then 45946 case `($CC --version) 2>/dev/null` in 45947 'gcc (GCC) '[0-3].* | \ 45948 'gcc (GCC) '4.[0-7].*) 45949 as_fn_append ws ' -fdiagnostics-show-option' 45950 as_fn_append ws ' -funit-at-a-time' 45951 ;; 45952 esac 45953 fi 45954 45955 # Disable specific options as needed. 45956 if test "$gl_cv_cc_nomfi_needed" = yes; then 45957 as_fn_append ws ' -Wno-missing-field-initializers' 45958 fi 45959 45960 if test "$gl_cv_cc_uninitialized_supported" = no; then 45961 as_fn_append ws ' -Wno-uninitialized' 45962 fi 45963 45964 # This warning have too many false alarms in GCC 11.2.1. 45965 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713 45966 as_fn_append ws ' -Wno-analyzer-malloc-leak' 45967 45968 ac_ext=c 45969 ac_cpp='$CPP $CPPFLAGS' 45970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45972 ac_compiler_gnu=$ac_cv_c_compiler_gnu 45973 45974 45975 45976 gl_warn_set= 45977 set x $ws; shift 45978 for gl_warn_item 45979 do 45980 case " $nw " in 45981 *" $gl_warn_item "*) 45982 ;; 45983 *) 45984 as_fn_append gl_warn_set " $gl_warn_item" 45985 ;; 45986 esac 45987 done 45988 ws=$gl_warn_set 45989 45990 for w in $ws; do 45991 45992 45993 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | sed "$as_sed_sh"` 45994 gl_positive="$w" 45995 case $gl_positive in 45996 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 45997 esac 45998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 45999 printf %s "checking whether C compiler handles $w... " >&6; } 46000 if eval test \${$as_gl_Warn+y} 46001 then : 46002 printf %s "(cached) " >&6 46003 else case e in #( 46004 e) 46005 gl_save_compiler_FLAGS="$CFLAGS" 46006 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 46007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46008 /* end confdefs.h. */ 46009 46010 int 46011 main (void) 46012 { 46013 46014 ; 46015 return 0; 46016 } 46017 _ACEOF 46018 if ac_fn_c_try_link "$LINENO" 46019 then : 46020 eval "$as_gl_Warn=yes" 46021 else case e in #( 46022 e) eval "$as_gl_Warn=no" ;; 46023 esac 46024 fi 46025 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46026 conftest$ac_exeext conftest.$ac_ext 46027 CFLAGS="$gl_save_compiler_FLAGS" 46028 ;; 46029 esac 46030 fi 46031 eval ac_res=\$$as_gl_Warn 46032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 46033 printf "%s\n" "$ac_res" >&6; } 46034 if eval test \"x\$"$as_gl_Warn"\" = x"yes" 46035 then : 46036 as_fn_append WARN_CFLAGS " $w" 46037 fi 46038 46039 46040 done 46041 46042 46043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5 46044 printf %s "checking whether C compiler handles -Wno-sign-compare... " >&6; } 46045 if test ${gl_cv_warn_c__Wno_sign_compare+y} 46046 then : 46047 printf %s "(cached) " >&6 46048 else case e in #( 46049 e) 46050 gl_save_compiler_FLAGS="$CFLAGS" 46051 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare" 46052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46053 /* end confdefs.h. */ 46054 46055 int 46056 main (void) 46057 { 46058 46059 ; 46060 return 0; 46061 } 46062 _ACEOF 46063 if ac_fn_c_try_link "$LINENO" 46064 then : 46065 gl_cv_warn_c__Wno_sign_compare=yes 46066 else case e in #( 46067 e) gl_cv_warn_c__Wno_sign_compare=no ;; 46068 esac 46069 fi 46070 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46071 conftest$ac_exeext conftest.$ac_ext 46072 CFLAGS="$gl_save_compiler_FLAGS" 46073 ;; 46074 esac 46075 fi 46076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5 46077 printf "%s\n" "$gl_cv_warn_c__Wno_sign_compare" >&6; } 46078 if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes 46079 then : 46080 as_fn_append WARN_CFLAGS " -Wno-sign-compare" 46081 fi 46082 46083 # Too many warnings for now 46084 46085 # clang is unduly picky about some things. 46086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 46087 printf %s "checking whether the compiler is clang... " >&6; } 46088 if test ${utils_cv_clang+y} 46089 then : 46090 printf %s "(cached) " >&6 46091 else case e in #( 46092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46093 /* end confdefs.h. */ 46094 46095 #ifndef __clang__ 46096 #error "not clang" 46097 #endif 46098 46099 int 46100 main (void) 46101 { 46102 46103 ; 46104 return 0; 46105 } 46106 _ACEOF 46107 if ac_fn_c_try_compile "$LINENO" 46108 then : 46109 utils_cv_clang=yes 46110 else case e in #( 46111 e) utils_cv_clang=no ;; 46112 esac 46113 fi 46114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 46115 esac 46116 fi 46117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $utils_cv_clang" >&5 46118 printf "%s\n" "$utils_cv_clang" >&6; } 46119 if test $utils_cv_clang = yes; then 46120 46121 46122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5 46123 printf %s "checking whether C compiler handles -Wno-format-extra-args... " >&6; } 46124 if test ${gl_cv_warn_c__Wno_format_extra_args+y} 46125 then : 46126 printf %s "(cached) " >&6 46127 else case e in #( 46128 e) 46129 gl_save_compiler_FLAGS="$CFLAGS" 46130 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args" 46131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46132 /* end confdefs.h. */ 46133 46134 int 46135 main (void) 46136 { 46137 46138 ; 46139 return 0; 46140 } 46141 _ACEOF 46142 if ac_fn_c_try_link "$LINENO" 46143 then : 46144 gl_cv_warn_c__Wno_format_extra_args=yes 46145 else case e in #( 46146 e) gl_cv_warn_c__Wno_format_extra_args=no ;; 46147 esac 46148 fi 46149 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46150 conftest$ac_exeext conftest.$ac_ext 46151 CFLAGS="$gl_save_compiler_FLAGS" 46152 ;; 46153 esac 46154 fi 46155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5 46156 printf "%s\n" "$gl_cv_warn_c__Wno_format_extra_args" >&6; } 46157 if test "x$gl_cv_warn_c__Wno_format_extra_args" = xyes 46158 then : 46159 as_fn_append WARN_CFLAGS " -Wno-format-extra-args" 46160 fi 46161 46162 46163 46164 46165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5 46166 printf %s "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; } 46167 if test ${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+y} 46168 then : 46169 printf %s "(cached) " >&6 46170 else case e in #( 46171 e) 46172 gl_save_compiler_FLAGS="$CFLAGS" 46173 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare" 46174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46175 /* end confdefs.h. */ 46176 46177 int 46178 main (void) 46179 { 46180 46181 ; 46182 return 0; 46183 } 46184 _ACEOF 46185 if ac_fn_c_try_link "$LINENO" 46186 then : 46187 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes 46188 else case e in #( 46189 e) gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no ;; 46190 esac 46191 fi 46192 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46193 conftest$ac_exeext conftest.$ac_ext 46194 CFLAGS="$gl_save_compiler_FLAGS" 46195 ;; 46196 esac 46197 fi 46198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5 46199 printf "%s\n" "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; } 46200 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = xyes 46201 then : 46202 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare" 46203 fi 46204 46205 46206 fi 46207 46208 46209 46210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 46211 printf %s "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } 46212 if test ${gl_cv_warn_c__fdiagnostics_show_option+y} 46213 then : 46214 printf %s "(cached) " >&6 46215 else case e in #( 46216 e) 46217 gl_save_compiler_FLAGS="$CFLAGS" 46218 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option" 46219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46220 /* end confdefs.h. */ 46221 46222 int 46223 main (void) 46224 { 46225 46226 ; 46227 return 0; 46228 } 46229 _ACEOF 46230 if ac_fn_c_try_link "$LINENO" 46231 then : 46232 gl_cv_warn_c__fdiagnostics_show_option=yes 46233 else case e in #( 46234 e) gl_cv_warn_c__fdiagnostics_show_option=no ;; 46235 esac 46236 fi 46237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46238 conftest$ac_exeext conftest.$ac_ext 46239 CFLAGS="$gl_save_compiler_FLAGS" 46240 ;; 46241 esac 46242 fi 46243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 46244 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } 46245 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes 46246 then : 46247 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" 46248 fi 46249 46250 46251 46252 46253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5 46254 printf %s "checking whether C compiler handles -funit-at-a-time... " >&6; } 46255 if test ${gl_cv_warn_c__funit_at_a_time+y} 46256 then : 46257 printf %s "(cached) " >&6 46258 else case e in #( 46259 e) 46260 gl_save_compiler_FLAGS="$CFLAGS" 46261 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time" 46262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46263 /* end confdefs.h. */ 46264 46265 int 46266 main (void) 46267 { 46268 46269 ; 46270 return 0; 46271 } 46272 _ACEOF 46273 if ac_fn_c_try_link "$LINENO" 46274 then : 46275 gl_cv_warn_c__funit_at_a_time=yes 46276 else case e in #( 46277 e) gl_cv_warn_c__funit_at_a_time=no ;; 46278 esac 46279 fi 46280 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46281 conftest$ac_exeext conftest.$ac_ext 46282 CFLAGS="$gl_save_compiler_FLAGS" 46283 ;; 46284 esac 46285 fi 46286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5 46287 printf "%s\n" "$gl_cv_warn_c__funit_at_a_time" >&6; } 46288 if test "x$gl_cv_warn_c__funit_at_a_time" = xyes 46289 then : 46290 as_fn_append WARN_CFLAGS " -funit-at-a-time" 46291 fi 46292 46293 46294 46295 46296 46297 46298 printf "%s\n" "#define lint 1" >>confdefs.h 46299 46300 46301 46302 printf "%s\n" "#define GNULIB_PORTCHECK 1" >>confdefs.h 46303 46304 46305 # For gnulib-tests, the set is slightly smaller still. 46306 nw= 46307 46308 gl_warn_set= 46309 set x $WARN_CFLAGS; shift 46310 for gl_warn_item 46311 do 46312 case " $nw " in 46313 *" $gl_warn_item "*) 46314 ;; 46315 *) 46316 as_fn_append gl_warn_set " $gl_warn_item" 46317 ;; 46318 esac 46319 done 46320 GNULIB_TEST_WARN_CFLAGS=$gl_warn_set 46321 46322 46323 fi 46324 46325 # Check whether --enable-bold-man-page-references was given. 46326 if test ${enable_bold_man_page_references+y} 46327 then : 46328 enableval=$enable_bold_man_page_references; gl_bold_manpages=yes ; 46329 case $enableval in 46330 no|yes) gl_bold_manpages=$enableval ;; 46331 *) as_fn_error $? "bad value $enableval for bold-man-page-references. 46332 Options are: yes, no." "$LINENO" 5 ;; 46333 esac 46334 else case e in #( 46335 e) gl_bold_manpages=yes 46336 ;; 46337 esac 46338 fi 46339 46340 if test "$gl_bold_manpages" != no; then 46341 BOLD_MAN_REFS_TRUE= 46342 BOLD_MAN_REFS_FALSE='#' 46343 else 46344 BOLD_MAN_REFS_TRUE='#' 46345 BOLD_MAN_REFS_FALSE= 46346 fi 46347 46348 46349 if test "$cross_compiling" = yes; then 46350 CROSS_COMPILING_TRUE= 46351 CROSS_COMPILING_FALSE='#' 46352 else 46353 CROSS_COMPILING_TRUE='#' 46354 CROSS_COMPILING_FALSE= 46355 fi 46356 46357 46358 # Perl is needed for help2man 46359 # Extract the first word of "perl", so it can be a program name with args. 46360 set dummy perl; ac_word=$2 46361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46362 printf %s "checking for $ac_word... " >&6; } 46363 if test ${ac_cv_path_PERL+y} 46364 then : 46365 printf %s "(cached) " >&6 46366 else case e in #( 46367 e) case $PERL in 46368 [\\/]* | ?:[\\/]*) 46369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 46370 ;; 46371 *) 46372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46373 for as_dir in $PATH 46374 do 46375 IFS=$as_save_IFS 46376 case $as_dir in #((( 46377 '') as_dir=./ ;; 46378 */) ;; 46379 *) as_dir=$as_dir/ ;; 46380 esac 46381 for ac_exec_ext in '' $ac_executable_extensions; do 46382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 46383 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 46384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 46385 break 2 46386 fi 46387 done 46388 done 46389 IFS=$as_save_IFS 46390 46391 ;; 46392 esac ;; 46393 esac 46394 fi 46395 PERL=$ac_cv_path_PERL 46396 if test -n "$PERL"; then 46397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 46398 printf "%s\n" "$PERL" >&6; } 46399 else 46400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46401 printf "%s\n" "no" >&6; } 46402 fi 46403 46404 46405 46406 # This is needed when building outside the source dir 46407 # with --disable-dependency-tracking, see https://bugs.gnu.org/25371 46408 as_dir=lib; as_fn_mkdir_p 46409 as_dir=sed; as_fn_mkdir_p 46410 as_dir=doc; as_fn_mkdir_p 46411 as_dir=testsuite; as_fn_mkdir_p 46412 46413 ac_config_files="$ac_config_files Makefile po/Makefile.in gnulib-tests/Makefile" 9571 46414 9572 46415 cat >confcache <<\_ACEOF … … 9580 46423 # the --recheck option to rerun configure. 9581 46424 # 9582 # `ac_cv_env_foo' variables (set or unset) will be overridden when9583 # loading this file, other *unset* `ac_cv_foo' will be assigned the46425 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 46426 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 9584 46427 # following values. 9585 46428 … … 9588 46431 # The following way of writing the cache mishandles newlines in values, 9589 46432 # but we know of no workaround that is simple, portable, and efficient. 9590 # So, don't put newlines in cache variables' values.46433 # So, we kill variables containing newlines. 9591 46434 # Ultrix sh set writes to stderr and can't be redirected directly, 9592 46435 # and sets the high bit in the cache file unless we assign to the vars. 9593 { 46436 ( 46437 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 46438 eval ac_val=\$$ac_var 46439 case $ac_val in #( 46440 *${as_nl}*) 46441 case $ac_var in #( 46442 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 46443 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 46444 esac 46445 case $ac_var in #( 46446 _ | IFS | as_nl) ;; #( 46447 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 46448 *) { eval $ac_var=; unset $ac_var;} ;; 46449 esac ;; 46450 esac 46451 done 46452 9594 46453 (set) 2>&1 | 9595 case `(ac_space=' '; set | grep ac_space) 2>&1` in9596 * ac_space=\ *)9597 # `set' does not quote correctly, so add quotes (double-quote9598 # substitution turns \\\\ into \\, and sed turns \\ into \ ).46454 case $as_nl`(ac_space=' '; set) 2>&1` in #( 46455 *${as_nl}ac_space=\ *) 46456 # 'set' does not quote correctly, so add quotes: double-quote 46457 # substitution turns \\\\ into \\, and sed turns \\ into \. 9599 46458 sed -n \ 9600 46459 "s/'/'\\\\''/g; 9601 46460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 46461 ;; #( 46462 *) 46463 # 'set' quotes correctly as required by POSIX, so do not add quotes. 46464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9602 46465 ;; 9603 *) 9604 # `set' quotes correctly as required by POSIX, so do not add quotes. 9605 sed -n \ 9606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 9607 ;; 9608 esac; 9609 } | 46466 esac | 46467 sort 46468 ) | 9610 46469 sed ' 46470 /^ac_cv_env_/b end 9611 46471 t clear 9612 : 9613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set|| &/46472 :clear 46473 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 9614 46474 t end 9615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9616 : end' >>confcache 9617 if diff $cache_file confcache >/dev/null 2>&1; then :; else 9618 if test -w $cache_file; then 9619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 9620 cat confcache >$cache_file 46475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 46476 :end' >>confcache 46477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 46478 if test -w "$cache_file"; then 46479 if test "x$cache_file" != "x/dev/null"; then 46480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 46481 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 46482 if test ! -f "$cache_file" || test -h "$cache_file"; then 46483 cat confcache >"$cache_file" 46484 else 46485 case $cache_file in #( 46486 */* | ?:*) 46487 mv -f confcache "$cache_file"$$ && 46488 mv -f "$cache_file"$$ "$cache_file" ;; #( 46489 *) 46490 mv -f confcache "$cache_file" ;; 46491 esac 46492 fi 46493 fi 9621 46494 else 9622 echo "not updating unwritable cache $cache_file" 46495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 46496 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 9623 46497 fi 9624 46498 fi … … 9629 46503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9630 46504 9631 # VPATH may cause trouble with some makes, so we remove $(srcdir),9632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and9633 # trailing colons and then remove the whole line if VPATH becomes empty9634 # (actually we leave an empty line to preserve line numbers).9635 if test "x$srcdir" = x.; then9636 ac_vpsub='/^[ ]*VPATH[ ]*=/{9637 s/:*\$(srcdir):*/:/;9638 s/:*\${srcdir}:*/:/;9639 s/:*@srcdir@:*/:/;9640 s/^\([^=]*=[ ]*\):*/\1/;9641 s/:*$//;9642 s/^[^=]*=[ ]*$//;9643 }'9644 fi9645 9646 46505 DEFS=-DHAVE_CONFIG_H 9647 46506 9648 46507 ac_libobjs= 9649 46508 ac_ltlibobjs= 46509 U= 9650 46510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9651 46511 # 1. Remove the extension, and $U if already installed. 9652 ac_i=`echo "$ac_i" | 9653 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 9654 # 2. Add them. 9655 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 9656 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 46512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 46513 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 46514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 46515 # will be set to the directory where LIBOBJS objects are built. 46516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 46517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9657 46518 done 9658 46519 LIBOBJS=$ac_libobjs … … 9661 46522 9662 46523 46524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 46525 printf %s "checking that generated files are newer than configure... " >&6; } 46526 if test -n "$am_sleep_pid"; then 46527 # Hide warnings about reused PIDs. 46528 wait $am_sleep_pid 2>/dev/null 46529 fi 46530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 46531 printf "%s\n" "done" >&6; } 46532 case $enable_silent_rules in # ((( 46533 yes) AM_DEFAULT_VERBOSITY=0;; 46534 no) AM_DEFAULT_VERBOSITY=1;; 46535 esac 46536 if test $am_cv_make_support_nested_variables = yes; then 46537 AM_V='$(V)' 46538 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 46539 else 46540 AM_V=$AM_DEFAULT_VERBOSITY 46541 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 46542 fi 46543 46544 if test -n "$EXEEXT"; then 46545 am__EXEEXT_TRUE= 46546 am__EXEEXT_FALSE='#' 46547 else 46548 am__EXEEXT_TRUE='#' 46549 am__EXEEXT_FALSE= 46550 fi 46551 9663 46552 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9664 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 9665 Usually this means the macro was only invoked conditionally." >&5 9666 echo "$as_me: error: conditional \"AMDEP\" was never defined. 9667 Usually this means the macro was only invoked conditionally." >&2;} 9668 { (exit 1); exit 1; }; } 46553 as_fn_error $? "conditional \"AMDEP\" was never defined. 46554 Usually this means the macro was only invoked conditionally." "$LINENO" 5 9669 46555 fi 9670 46556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 9672 Usually this means the macro was only invoked conditionally." >&5 9673 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 9674 Usually this means the macro was only invoked conditionally." >&2;} 9675 { (exit 1); exit 1; }; } 9676 fi 9677 if test -z "${TEST_REGEX_TRUE}" && test -z "${TEST_REGEX_FALSE}"; then 9678 { { echo "$as_me:$LINENO: error: conditional \"TEST_REGEX\" was never defined. 9679 Usually this means the macro was only invoked conditionally." >&5 9680 echo "$as_me: error: conditional \"TEST_REGEX\" was never defined. 9681 Usually this means the macro was only invoked conditionally." >&2;} 9682 { (exit 1); exit 1; }; } 9683 fi 9684 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then 9685 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HTML\" was never defined. 9686 Usually this means the macro was only invoked conditionally." >&5 9687 echo "$as_me: error: conditional \"BUILD_HTML\" was never defined. 9688 Usually this means the macro was only invoked conditionally." >&2;} 9689 { (exit 1); exit 1; }; } 9690 fi 9691 if test -z "${MAKEINFO_HTML_TRUE}" && test -z "${MAKEINFO_HTML_FALSE}"; then 9692 { { echo "$as_me:$LINENO: error: conditional \"MAKEINFO_HTML\" was never defined. 9693 Usually this means the macro was only invoked conditionally." >&5 9694 echo "$as_me: error: conditional \"MAKEINFO_HTML\" was never defined. 9695 Usually this means the macro was only invoked conditionally." >&2;} 9696 { (exit 1); exit 1; }; } 9697 fi 9698 if test -z "${TEXI2HTML_HTML_TRUE}" && test -z "${TEXI2HTML_HTML_FALSE}"; then 9699 { { echo "$as_me:$LINENO: error: conditional \"TEXI2HTML_HTML\" was never defined. 9700 Usually this means the macro was only invoked conditionally." >&5 9701 echo "$as_me: error: conditional \"TEXI2HTML_HTML\" was never defined. 9702 Usually this means the macro was only invoked conditionally." >&2;} 9703 { (exit 1); exit 1; }; } 9704 fi 9705 9706 : ${CONFIG_STATUS=./config.status} 46557 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 46558 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46559 fi 46560 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 46561 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 46562 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46563 fi 46564 CONFIG_INCLUDE=config.h 46565 46566 46567 gl_libobjs= 46568 gl_ltlibobjs= 46569 gl_libobjdeps= 46570 if test -n "$gl_LIBOBJS"; then 46571 # Remove the extension. 46572 sed_drop_objext='s/\.o$//;s/\.obj$//' 46573 sed_dirname1='s,//*,/,g' 46574 sed_dirname2='s,\(.\)/$,\1,' 46575 sed_dirname3='s,^[^/]*$,.,' 46576 sed_dirname4='s,\(.\)/[^/]*$,\1,' 46577 sed_basename1='s,.*/,,' 46578 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 46579 gl_libobjs="$gl_libobjs lib/$i.$ac_objext" 46580 gl_ltlibobjs="$gl_ltlibobjs lib/$i.lo" 46581 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` 46582 i_base=`echo "$i" | sed -e "$sed_basename1"` 46583 gl_libobjdeps="$gl_libobjdeps lib/$i_dir/\$(DEPDIR)/$i_base.Po" 46584 done 46585 fi 46586 gl_LIBOBJS=$gl_libobjs 46587 46588 gl_LTLIBOBJS=$gl_ltlibobjs 46589 46590 gl_LIBOBJDEPS=$gl_libobjdeps 46591 46592 46593 46594 46595 gltests_libobjs= 46596 gltests_ltlibobjs= 46597 gltests_libobjdeps= 46598 if test -n "$gltests_LIBOBJS"; then 46599 # Remove the extension. 46600 sed_drop_objext='s/\.o$//;s/\.obj$//' 46601 sed_dirname1='s,//*,/,g' 46602 sed_dirname2='s,\(.\)/$,\1,' 46603 sed_dirname3='s,^[^/]*$,.,' 46604 sed_dirname4='s,\(.\)/[^/]*$,\1,' 46605 sed_basename1='s,.*/,,' 46606 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 46607 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 46608 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 46609 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` 46610 i_base=`echo "$i" | sed -e "$sed_basename1"` 46611 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po" 46612 done 46613 fi 46614 gltests_LIBOBJS=$gltests_libobjs 46615 46616 gltests_LTLIBOBJS=$gltests_ltlibobjs 46617 46618 gltests_LIBOBJDEPS=$gltests_libobjdeps 46619 46620 46621 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 46622 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 46623 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46624 fi 46625 if test -z "${TEST_SYMLINKS_TRUE}" && test -z "${TEST_SYMLINKS_FALSE}"; then 46626 as_fn_error $? "conditional \"TEST_SYMLINKS\" was never defined. 46627 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46628 fi 46629 if test -z "${BOLD_MAN_REFS_TRUE}" && test -z "${BOLD_MAN_REFS_FALSE}"; then 46630 as_fn_error $? "conditional \"BOLD_MAN_REFS\" was never defined. 46631 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46632 fi 46633 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 46634 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 46635 Usually this means the macro was only invoked conditionally." "$LINENO" 5 46636 fi 46637 46638 : "${CONFIG_STATUS=./config.status}" 46639 ac_write_fail=0 9707 46640 ac_clean_files_save=$ac_clean_files 9708 46641 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 9710 echo "$as_me: creating $CONFIG_STATUS" >&6;} 9711 cat >$CONFIG_STATUS <<_ACEOF 46642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 46643 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 46644 as_write_fail=0 46645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9712 46646 #! $SHELL 9713 46647 # Generated by $as_me. … … 9719 46653 ac_cs_recheck=false 9720 46654 ac_cs_silent=false 46655 9721 46656 SHELL=\${CONFIG_SHELL-$SHELL} 9722 _ACEOF 9723 9724 cat >>$CONFIG_STATUS <<\_ACEOF 9725 ## --------------------- ## 9726 ## M4sh Initialization. ## 9727 ## --------------------- ## 9728 9729 # Be Bourne compatible 9730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 46657 export SHELL 46658 _ASEOF 46659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 46660 ## -------------------- ## 46661 ## M4sh Initialization. ## 46662 ## -------------------- ## 46663 46664 # Be more Bourne compatible 46665 DUALCASE=1; export DUALCASE # for MKS sh 46666 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 46667 then : 9731 46668 emulate sh 9732 46669 NULLCMD=: 9733 # Zsh 3.x and 4.x performsword splitting on ${1+"$@"}, which46670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9734 46671 # is contrary to our usage. Disable this feature. 9735 46672 alias -g '${1+"$@"}'='"$@"' 9736 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 9737 set -o posix 9738 fi 9739 DUALCASE=1; export DUALCASE # for MKS sh 9740 9741 # Support unset when possible. 9742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9743 as_unset=unset 9744 else 9745 as_unset=false 9746 fi 9747 9748 9749 # Work around bugs in pre-3.0 UWIN ksh. 9750 $as_unset ENV MAIL MAILPATH 46673 setopt NO_GLOB_SUBST 46674 else case e in #( 46675 e) case `(set -o) 2>/dev/null` in #( 46676 *posix*) : 46677 set -o posix ;; #( 46678 *) : 46679 ;; 46680 esac ;; 46681 esac 46682 fi 46683 46684 46685 46686 # Reset variables that may have inherited troublesome values from 46687 # the environment. 46688 46689 # IFS needs to be set, to space, tab, and newline, in precisely that order. 46690 # (If _AS_PATH_WALK were called with IFS unset, it would have the 46691 # side effect of setting IFS to empty, thus disabling word splitting.) 46692 # Quoting is to prevent editors from complaining about space-tab. 46693 as_nl=' 46694 ' 46695 export as_nl 46696 IFS=" "" $as_nl" 46697 9751 46698 PS1='$ ' 9752 46699 PS2='> ' 9753 46700 PS4='+ ' 9754 46701 9755 # NLS nuisances. 9756 for as_var in \ 9757 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 9758 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 9759 LC_TELEPHONE LC_TIME 46702 # Ensure predictable behavior from utilities with locale-dependent output. 46703 LC_ALL=C 46704 export LC_ALL 46705 LANGUAGE=C 46706 export LANGUAGE 46707 46708 # We cannot yet rely on "unset" to work, but we need these variables 46709 # to be unset--not just set to an empty or harmless value--now, to 46710 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 46711 # also avoids known problems related to "unset" and subshell syntax 46712 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 46713 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 46714 do eval test \${$as_var+y} \ 46715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 46716 done 46717 46718 # Ensure that fds 0, 1, and 2 are open. 46719 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 46720 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 46721 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 46722 46723 # The user is always right. 46724 if ${PATH_SEPARATOR+false} :; then 46725 PATH_SEPARATOR=: 46726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 46727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 46728 PATH_SEPARATOR=';' 46729 } 46730 fi 46731 46732 46733 # Find who we are. Look in the path if we contain no directory separator. 46734 as_myself= 46735 case $0 in #(( 46736 *[\\/]* ) as_myself=$0 ;; 46737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46738 for as_dir in $PATH 9760 46739 do 9761 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 9762 eval $as_var=C; export $as_var 9763 else 9764 $as_unset $as_var 9765 fi 9766 done 9767 9768 # Required to use basename. 9769 if expr a : '\(a\)' >/dev/null 2>&1; then 46740 IFS=$as_save_IFS 46741 case $as_dir in #((( 46742 '') as_dir=./ ;; 46743 */) ;; 46744 *) as_dir=$as_dir/ ;; 46745 esac 46746 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 46747 done 46748 IFS=$as_save_IFS 46749 46750 ;; 46751 esac 46752 # We did not find ourselves, most probably we were run as 'sh COMMAND' 46753 # in which case we are not to be found in the path. 46754 if test "x$as_myself" = x; then 46755 as_myself=$0 46756 fi 46757 if test ! -f "$as_myself"; then 46758 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 46759 exit 1 46760 fi 46761 46762 46763 46764 # as_fn_error STATUS ERROR [LINENO LOG_FD] 46765 # ---------------------------------------- 46766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 46767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 46768 # script with STATUS, using 1 if that was 0. 46769 as_fn_error () 46770 { 46771 as_status=$1; test $as_status -eq 0 && as_status=1 46772 if test "$4"; then 46773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 46774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 46775 fi 46776 printf "%s\n" "$as_me: error: $2" >&2 46777 as_fn_exit $as_status 46778 } # as_fn_error 46779 46780 46781 # as_fn_set_status STATUS 46782 # ----------------------- 46783 # Set $? to STATUS, without forking. 46784 as_fn_set_status () 46785 { 46786 return $1 46787 } # as_fn_set_status 46788 46789 # as_fn_exit STATUS 46790 # ----------------- 46791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 46792 as_fn_exit () 46793 { 46794 set +e 46795 as_fn_set_status $1 46796 exit $1 46797 } # as_fn_exit 46798 46799 # as_fn_unset VAR 46800 # --------------- 46801 # Portably unset VAR. 46802 as_fn_unset () 46803 { 46804 { eval $1=; unset $1;} 46805 } 46806 as_unset=as_fn_unset 46807 46808 # as_fn_append VAR VALUE 46809 # ---------------------- 46810 # Append the text in VALUE to the end of the definition contained in VAR. Take 46811 # advantage of any shell optimizations that allow amortized linear growth over 46812 # repeated appends, instead of the typical quadratic growth present in naive 46813 # implementations. 46814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 46815 then : 46816 eval 'as_fn_append () 46817 { 46818 eval $1+=\$2 46819 }' 46820 else case e in #( 46821 e) as_fn_append () 46822 { 46823 eval $1=\$$1\$2 46824 } ;; 46825 esac 46826 fi # as_fn_append 46827 46828 # as_fn_arith ARG... 46829 # ------------------ 46830 # Perform arithmetic evaluation on the ARGs, and store the result in the 46831 # global $as_val. Take advantage of shells that can avoid forks. The arguments 46832 # must be portable across $(()) and expr. 46833 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 46834 then : 46835 eval 'as_fn_arith () 46836 { 46837 as_val=$(( $* )) 46838 }' 46839 else case e in #( 46840 e) as_fn_arith () 46841 { 46842 as_val=`expr "$@" || test $? -eq 1` 46843 } ;; 46844 esac 46845 fi # as_fn_arith 46846 46847 46848 if expr a : '\(a\)' >/dev/null 2>&1 && 46849 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9770 46850 as_expr=expr 9771 46851 else … … 9773 46853 fi 9774 46854 9775 if (basename /) >/dev/null 2>&1 && test "X`basename/ 2>&1`" = "X/"; then46855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9776 46856 as_basename=basename 9777 46857 else … … 9779 46859 fi 9780 46860 9781 9782 # Name of the executable. 9783 as_me=`$as_basename "$0" || 46861 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 46862 as_dirname=dirname 46863 else 46864 as_dirname=false 46865 fi 46866 46867 as_me=`$as_basename -- "$0" || 9784 46868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9785 46869 X"$0" : 'X\(//\)$' \| \ 9786 X"$0" : 'X\(/\)$' \| \ 9787 . : '\(.\)' 2>/dev/null || 9788 echo X/"$0" | 9789 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 9790 /^X\/\(\/\/\)$/{ s//\1/; q; } 9791 /^X\/\(\/\).*/{ s//\1/; q; } 9792 s/.*/./; q'` 9793 9794 9795 # PATH needs CR, and LINENO needs CR and PATH. 46870 X"$0" : 'X\(/\)' \| . 2>/dev/null || 46871 printf "%s\n" X/"$0" | 46872 sed '/^.*\/\([^/][^/]*\)\/*$/{ 46873 s//\1/ 46874 q 46875 } 46876 /^X\/\(\/\/\)$/{ 46877 s//\1/ 46878 q 46879 } 46880 /^X\/\(\/\).*/{ 46881 s//\1/ 46882 q 46883 } 46884 s/.*/./; q'` 46885 9796 46886 # Avoid depending upon Character Ranges. 9797 46887 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 9801 46891 as_cr_alnum=$as_cr_Letters$as_cr_digits 9802 46892 9803 # The user is always right. 9804 if test "${PATH_SEPARATOR+set}" != set; then 9805 echo "#! /bin/sh" >conf$$.sh 9806 echo "exit 0" >>conf$$.sh 9807 chmod +x conf$$.sh 9808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 9809 PATH_SEPARATOR=';' 46893 46894 # Determine whether it's possible to make 'echo' print without a newline. 46895 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 46896 # for compatibility with existing Makefiles. 46897 ECHO_C= ECHO_N= ECHO_T= 46898 case `echo -n x` in #((((( 46899 -n*) 46900 case `echo 'xy\c'` in 46901 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 46902 xy) ECHO_C='\c';; 46903 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 46904 ECHO_T=' ';; 46905 esac;; 46906 *) 46907 ECHO_N='-n';; 46908 esac 46909 46910 # For backward compatibility with old third-party macros, we provide 46911 # the shell variables $as_echo and $as_echo_n. New code should use 46912 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 46913 as_echo='printf %s\n' 46914 as_echo_n='printf %s' 46915 46916 rm -f conf$$ conf$$.exe conf$$.file 46917 if test -d conf$$.dir; then 46918 rm -f conf$$.dir/conf$$.file 46919 else 46920 rm -f conf$$.dir 46921 mkdir conf$$.dir 2>/dev/null 46922 fi 46923 if (echo >conf$$.file) 2>/dev/null; then 46924 if ln -s conf$$.file conf$$ 2>/dev/null; then 46925 as_ln_s='ln -s' 46926 # ... but there are two gotchas: 46927 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 46928 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 46929 # In both cases, we have to default to 'cp -pR'. 46930 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 46931 as_ln_s='cp -pR' 46932 elif ln conf$$.file conf$$ 2>/dev/null; then 46933 as_ln_s=ln 9810 46934 else 9811 PATH_SEPARATOR=: 9812 fi 9813 rm -f conf$$.sh 9814 fi 9815 9816 9817 as_lineno_1=$LINENO 9818 as_lineno_2=$LINENO 9819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9820 test "x$as_lineno_1" != "x$as_lineno_2" && 9821 test "x$as_lineno_3" = "x$as_lineno_2" || { 9822 # Find who we are. Look in the path if we contain no path at all 9823 # relative or not. 9824 case $0 in 9825 *[\\/]* ) as_myself=$0 ;; 9826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9827 for as_dir in $PATH 9828 do 9829 IFS=$as_save_IFS 9830 test -z "$as_dir" && as_dir=. 9831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9832 done 9833 9834 ;; 46935 as_ln_s='cp -pR' 46936 fi 46937 else 46938 as_ln_s='cp -pR' 46939 fi 46940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 46941 rmdir conf$$.dir 2>/dev/null 46942 46943 46944 # as_fn_mkdir_p 46945 # ------------- 46946 # Create "$as_dir" as a directory, including parents if necessary. 46947 as_fn_mkdir_p () 46948 { 46949 46950 case $as_dir in #( 46951 -*) as_dir=./$as_dir;; 9835 46952 esac 9836 # We did not find ourselves, most probably we were run as `sh COMMAND' 9837 # in which case we are not to be found in the path. 9838 if test "x$as_myself" = x; then 9839 as_myself=$0 9840 fi 9841 if test ! -f "$as_myself"; then 9842 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 9843 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 9844 { (exit 1); exit 1; }; } 9845 fi 9846 case $CONFIG_SHELL in 9847 '') 9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9849 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 9850 do 9851 IFS=$as_save_IFS 9852 test -z "$as_dir" && as_dir=. 9853 for as_base in sh bash ksh sh5; do 9854 case $as_dir in 9855 /*) 9856 if ("$as_dir/$as_base" -c ' 9857 as_lineno_1=$LINENO 9858 as_lineno_2=$LINENO 9859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9860 test "x$as_lineno_1" != "x$as_lineno_2" && 9861 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 9862 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 9863 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 9864 CONFIG_SHELL=$as_dir/$as_base 9865 export CONFIG_SHELL 9866 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 9867 fi;; 9868 esac 9869 done 9870 done 9871 ;; 9872 esac 9873 9874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9875 # uniformly replaced by the line number. The first 'sed' inserts a 9876 # line-number line before each line; the second 'sed' does the real 9877 # work. The second script uses 'N' to pair each line-number line 9878 # with the numbered line, and appends trailing '-' during 9879 # substitution so that $LINENO is not a special case at line end. 9880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9881 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 9882 sed '=' <$as_myself | 9883 sed ' 9884 N 9885 s,$,-, 9886 : loop 9887 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 9888 t loop 9889 s,-$,, 9890 s,^['$as_cr_digits']*\n,, 9891 ' >$as_me.lineno && 9892 chmod +x $as_me.lineno || 9893 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 9894 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 9895 { (exit 1); exit 1; }; } 9896 9897 # Don't try to exec as it changes $[0], causing all sort of problems 9898 # (the dirname of $[0] is not the place where we might find the 9899 # original and so on. Autoconf is especially sensible to this). 9900 . ./$as_me.lineno 9901 # Exit status is that of the last command. 9902 exit 9903 } 9904 9905 9906 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 9907 *c*,-n*) ECHO_N= ECHO_C=' 9908 ' ECHO_T=' ' ;; 9909 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 9910 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 9911 esac 9912 9913 if expr a : '\(a\)' >/dev/null 2>&1; then 9914 as_expr=expr 9915 else 9916 as_expr=false 9917 fi 9918 9919 rm -f conf$$ conf$$.exe conf$$.file 9920 echo >conf$$.file 9921 if ln -s conf$$.file conf$$ 2>/dev/null; then 9922 # We could just check for DJGPP; but this test a) works b) is more generic 9923 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 9924 if test -f conf$$.exe; then 9925 # Don't use ln at all; we don't have any links 9926 as_ln_s='cp -p' 9927 else 9928 as_ln_s='ln -s' 9929 fi 9930 elif ln conf$$.file conf$$ 2>/dev/null; then 9931 as_ln_s=ln 9932 else 9933 as_ln_s='cp -p' 9934 fi 9935 rm -f conf$$ conf$$.exe conf$$.file 9936 46953 test -d "$as_dir" || eval $as_mkdir_p || { 46954 as_dirs= 46955 while :; do 46956 case $as_dir in #( 46957 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 46958 *) as_qdir=$as_dir;; 46959 esac 46960 as_dirs="'$as_qdir' $as_dirs" 46961 as_dir=`$as_dirname -- "$as_dir" || 46962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 46963 X"$as_dir" : 'X\(//\)[^/]' \| \ 46964 X"$as_dir" : 'X\(//\)$' \| \ 46965 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 46966 printf "%s\n" X"$as_dir" | 46967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 46968 s//\1/ 46969 q 46970 } 46971 /^X\(\/\/\)[^/].*/{ 46972 s//\1/ 46973 q 46974 } 46975 /^X\(\/\/\)$/{ 46976 s//\1/ 46977 q 46978 } 46979 /^X\(\/\).*/{ 46980 s//\1/ 46981 q 46982 } 46983 s/.*/./; q'` 46984 test -d "$as_dir" && break 46985 done 46986 test -z "$as_dirs" || eval "mkdir $as_dirs" 46987 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 46988 46989 46990 } # as_fn_mkdir_p 9937 46991 if mkdir -p . 2>/dev/null; then 9938 as_mkdir_p= :46992 as_mkdir_p='mkdir -p "$as_dir"' 9939 46993 else 9940 46994 test -d ./-p && rmdir ./-p … … 9942 46996 fi 9943 46997 9944 as_executable_p="test -f" 46998 46999 # as_fn_executable_p FILE 47000 # ----------------------- 47001 # Test if FILE is an executable regular file. 47002 as_fn_executable_p () 47003 { 47004 test -f "$1" && test -x "$1" 47005 } # as_fn_executable_p 47006 as_test_x='test -x' 47007 as_executable_p=as_fn_executable_p 9945 47008 9946 47009 # Sed expression to map a string onto a valid CPP name. 9947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 47010 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 47011 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 9948 47012 9949 47013 # Sed expression to map a string onto a valid variable name. 9950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9951 9952 9953 # IFS 9954 # We need space, tab and new line, in precisely that order. 9955 as_nl=' 9956 ' 9957 IFS=" $as_nl" 9958 9959 # CDPATH. 9960 $as_unset CDPATH 47014 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 47015 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 47016 9961 47017 9962 47018 exec 6>&1 9963 9964 # Open the log real soon, to keep \$[0] and so on meaningful, and to 47019 ## ----------------------------------- ## 47020 ## Main body of $CONFIG_STATUS script. ## 47021 ## ----------------------------------- ## 47022 _ASEOF 47023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 47024 47025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47026 # Save the log message, to keep $0 and so on meaningful, and to 9965 47027 # report actual input values of CONFIG_FILES etc. instead of their 9966 # values after options handling. Logging --version etc. is OK. 47028 # values after options handling. 47029 ac_log=" 47030 This file was extended by GNU sed $as_me 4.9, which was 47031 generated by GNU Autoconf 2.72a.65-d081. Invocation command line was 47032 47033 CONFIG_FILES = $CONFIG_FILES 47034 CONFIG_HEADERS = $CONFIG_HEADERS 47035 CONFIG_LINKS = $CONFIG_LINKS 47036 CONFIG_COMMANDS = $CONFIG_COMMANDS 47037 $ $0 $@ 47038 47039 on `(hostname || uname -n) 2>/dev/null | sed 1q` 47040 " 47041 47042 _ACEOF 47043 47044 case $ac_config_files in *" 47045 "*) set x $ac_config_files; shift; ac_config_files=$*;; 47046 esac 47047 47048 case $ac_config_headers in *" 47049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 47050 esac 47051 47052 47053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47054 # Files that config.status was made for. 47055 config_files="$ac_config_files" 47056 config_headers="$ac_config_headers" 47057 config_links="$ac_config_links" 47058 config_commands="$ac_config_commands" 47059 47060 _ACEOF 47061 47062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47063 ac_cs_usage="\ 47064 '$as_me' instantiates files and other configuration actions 47065 from templates according to the current configuration. Unless the files 47066 and actions are specified as TAGs, all are instantiated by default. 47067 47068 Usage: $0 [OPTION]... [TAG]... 47069 47070 -h, --help print this help, then exit 47071 -V, --version print version number and configuration settings, then exit 47072 --config print configuration, then exit 47073 -q, --quiet, --silent 47074 do not print progress messages 47075 -d, --debug don't remove temporary files 47076 --recheck update $as_me by reconfiguring in the same conditions 47077 --file=FILE[:TEMPLATE] 47078 instantiate the configuration file FILE 47079 --header=FILE[:TEMPLATE] 47080 instantiate the configuration header FILE 47081 47082 Configuration files: 47083 $config_files 47084 47085 Configuration headers: 47086 $config_headers 47087 47088 Configuration links: 47089 $config_links 47090 47091 Configuration commands: 47092 $config_commands 47093 47094 Report bugs to <[email protected]>. 47095 GNU sed home page: <https://www.gnu.org/software/sed/>. 47096 General help using GNU software: <https://www.gnu.org/gethelp/>." 47097 47098 _ACEOF 47099 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 47100 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 47101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47102 ac_cs_config='$ac_cs_config_escaped' 47103 ac_cs_version="\\ 47104 GNU sed config.status 4.9 47105 configured by $0, generated by GNU Autoconf 2.72a.65-d081, 47106 with options \\"\$ac_cs_config\\" 47107 47108 Copyright (C) 2022 Free Software Foundation, Inc. 47109 This config.status script is free software; the Free Software Foundation 47110 gives unlimited permission to copy, distribute and modify it." 47111 47112 ac_pwd='$ac_pwd' 47113 srcdir='$srcdir' 47114 INSTALL='$INSTALL' 47115 MKDIR_P='$MKDIR_P' 47116 AWK='$AWK' 47117 test -n "\$AWK" || AWK=awk 47118 _ACEOF 47119 47120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47121 # The default lists apply if the user does not specify any file. 47122 ac_need_defaults=: 47123 while test $# != 0 47124 do 47125 case $1 in 47126 --*=?*) 47127 ac_option=`expr "X$1" : 'X\([^=]*\)='` 47128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 47129 ac_shift=: 47130 ;; 47131 --*=) 47132 ac_option=`expr "X$1" : 'X\([^=]*\)='` 47133 ac_optarg= 47134 ac_shift=: 47135 ;; 47136 *) 47137 ac_option=$1 47138 ac_optarg=$2 47139 ac_shift=shift 47140 ;; 47141 esac 47142 47143 case $ac_option in 47144 # Handling of the options. 47145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 47146 ac_cs_recheck=: ;; 47147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 47148 printf "%s\n" "$ac_cs_version"; exit ;; 47149 --config | --confi | --conf | --con | --co | --c ) 47150 printf "%s\n" "$ac_cs_config"; exit ;; 47151 --debug | --debu | --deb | --de | --d | -d ) 47152 debug=: ;; 47153 --file | --fil | --fi | --f ) 47154 $ac_shift 47155 case $ac_optarg in 47156 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 47157 '') as_fn_error $? "missing file argument" ;; 47158 esac 47159 as_fn_append CONFIG_FILES " '$ac_optarg'" 47160 ac_need_defaults=false;; 47161 --header | --heade | --head | --hea ) 47162 $ac_shift 47163 case $ac_optarg in 47164 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 47165 esac 47166 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 47167 ac_need_defaults=false;; 47168 --he | --h) 47169 # Conflict between --help and --header 47170 as_fn_error $? "ambiguous option: '$1' 47171 Try '$0 --help' for more information.";; 47172 --help | --hel | -h ) 47173 printf "%s\n" "$ac_cs_usage"; exit ;; 47174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 47175 | -silent | --silent | --silen | --sile | --sil | --si | --s) 47176 ac_cs_silent=: ;; 47177 47178 # This is an error. 47179 -*) as_fn_error $? "unrecognized option: '$1' 47180 Try '$0 --help' for more information." ;; 47181 47182 *) as_fn_append ac_config_targets " $1" 47183 ac_need_defaults=false ;; 47184 47185 esac 47186 shift 47187 done 47188 47189 ac_configure_extra_args= 47190 47191 if $ac_cs_silent; then 47192 exec 6>/dev/null 47193 ac_configure_extra_args="$ac_configure_extra_args --silent" 47194 fi 47195 47196 _ACEOF 47197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47198 if \$ac_cs_recheck; then 47199 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 47200 shift 47201 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 47202 CONFIG_SHELL='$SHELL' 47203 export CONFIG_SHELL 47204 exec "\$@" 47205 fi 47206 47207 _ACEOF 47208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9967 47209 exec 5>>config.log 9968 47210 { … … 9971 47213 ## Running $as_me. ## 9972 47214 _ASBOX 47215 printf "%s\n" "$ac_log" 9973 47216 } >&5 9974 cat >&5 <<_CSEOF 9975 9976 This file was extended by sed $as_me 4.1.5, which was 9977 generated by GNU Autoconf 2.59. Invocation command line was 9978 9979 CONFIG_FILES = $CONFIG_FILES 9980 CONFIG_HEADERS = $CONFIG_HEADERS 9981 CONFIG_LINKS = $CONFIG_LINKS 9982 CONFIG_COMMANDS = $CONFIG_COMMANDS 9983 $ $0 $@ 9984 9985 _CSEOF 9986 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 9987 echo >&5 47217 9988 47218 _ACEOF 9989 9990 # Files that config.status was made for. 9991 if test -n "$ac_config_files"; then 9992 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 9993 fi 9994 9995 if test -n "$ac_config_headers"; then 9996 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 9997 fi 9998 9999 if test -n "$ac_config_links"; then 10000 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10001 fi 10002 10003 if test -n "$ac_config_commands"; then 10004 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10005 fi 10006 10007 cat >>$CONFIG_STATUS <<\_ACEOF 10008 10009 ac_cs_usage="\ 10010 \`$as_me' instantiates files from templates according to the 10011 current configuration. 10012 10013 Usage: $0 [OPTIONS] [FILE]... 10014 10015 -h, --help print this help, then exit 10016 -V, --version print version number, then exit 10017 -q, --quiet do not print progress messages 10018 -d, --debug don't remove temporary files 10019 --recheck update $as_me by reconfiguring in the same conditions 10020 --file=FILE[:TEMPLATE] 10021 instantiate the configuration file FILE 10022 --header=FILE[:TEMPLATE] 10023 instantiate the configuration header FILE 10024 10025 Configuration files: 10026 $config_files 10027 10028 Configuration headers: 10029 $config_headers 10030 10031 Configuration links: 10032 $config_links 10033 10034 Configuration commands: 10035 $config_commands 10036 10037 Report bugs to <[email protected]>." 10038 _ACEOF 10039 10040 cat >>$CONFIG_STATUS <<_ACEOF 10041 ac_cs_version="\\ 10042 sed config.status 4.1.5 10043 configured by $0, generated by GNU Autoconf 2.59, 10044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10045 10046 Copyright (C) 2003 Free Software Foundation, Inc. 10047 This config.status script is free software; the Free Software Foundation 10048 gives unlimited permission to copy, distribute and modify it." 10049 srcdir=$srcdir 10050 INSTALL="$INSTALL" 10051 _ACEOF 10052 10053 cat >>$CONFIG_STATUS <<\_ACEOF 10054 # If no file are specified by the user, then we need to provide default 10055 # value. By we need to know if files were specified by the user. 10056 ac_need_defaults=: 10057 while test $# != 0 10058 do 10059 case $1 in 10060 --*=*) 10061 ac_option=`expr "x$1" : 'x\([^=]*\)='` 10062 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 10063 ac_shift=: 10064 ;; 10065 -*) 10066 ac_option=$1 10067 ac_optarg=$2 10068 ac_shift=shift 10069 ;; 10070 *) # This is not an option, so the user has probably given explicit 10071 # arguments. 10072 ac_option=$1 10073 ac_need_defaults=false;; 10074 esac 10075 10076 case $ac_option in 10077 # Handling of the options. 10078 _ACEOF 10079 cat >>$CONFIG_STATUS <<\_ACEOF 10080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10081 ac_cs_recheck=: ;; 10082 --version | --vers* | -V ) 10083 echo "$ac_cs_version"; exit 0 ;; 10084 --he | --h) 10085 # Conflict between --help and --header 10086 { { echo "$as_me:$LINENO: error: ambiguous option: $1 10087 Try \`$0 --help' for more information." >&5 10088 echo "$as_me: error: ambiguous option: $1 10089 Try \`$0 --help' for more information." >&2;} 10090 { (exit 1); exit 1; }; };; 10091 --help | --hel | -h ) 10092 echo "$ac_cs_usage"; exit 0 ;; 10093 --debug | --d* | -d ) 10094 debug=: ;; 10095 --file | --fil | --fi | --f ) 10096 $ac_shift 10097 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10098 ac_need_defaults=false;; 10099 --header | --heade | --head | --hea ) 10100 $ac_shift 10101 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 10102 ac_need_defaults=false;; 10103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10104 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10105 ac_cs_silent=: ;; 10106 10107 # This is an error. 10108 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 10109 Try \`$0 --help' for more information." >&5 10110 echo "$as_me: error: unrecognized option: $1 10111 Try \`$0 --help' for more information." >&2;} 10112 { (exit 1); exit 1; }; } ;; 10113 10114 *) ac_config_targets="$ac_config_targets $1" ;; 10115 10116 esac 10117 shift 10118 done 10119 10120 ac_configure_extra_args= 10121 10122 if $ac_cs_silent; then 10123 exec 6>/dev/null 10124 ac_configure_extra_args="$ac_configure_extra_args --silent" 10125 fi 10126 10127 _ACEOF 10128 cat >>$CONFIG_STATUS <<_ACEOF 10129 if \$ac_cs_recheck; then 10130 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10131 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10132 fi 10133 10134 _ACEOF 10135 10136 cat >>$CONFIG_STATUS <<_ACEOF 47219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10137 47220 # 10138 # INIT-COMMANDS section.47221 # INIT-COMMANDS 10139 47222 # 10140 10141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10142 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute10143 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it10144 # from automake .10145 eval ' ALL_LINGUAS''="$ALL_LINGUAS"'47223 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 47224 GNUmakefile=$GNUmakefile 47225 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 47226 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 47227 # from automake < 1.5. 47228 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 10146 47229 # Capture the value of LINGUAS because we need it to compute CATALOGS. 10147 47230 LINGUAS="${LINGUAS-%UNSET%}" 10148 47231 10149 47232 10150 install_sh="$install_sh"10151 10152 47233 _ACEOF 10153 47234 10154 10155 10156 cat >>$CONFIG_STATUS <<\_ACEOF 47235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47236 47237 # Handling of arguments. 10157 47238 for ac_config_target in $ac_config_targets 10158 47239 do 10159 case "$ac_config_target" in 10160 # Handling of arguments. 10161 "lib/stdbool.h" ) CONFIG_FILES="$CONFIG_FILES lib/stdbool.h:lib/stdbool_.h" ;; 10162 "bootstrap.sh" ) CONFIG_FILES="$CONFIG_FILES bootstrap.sh" ;; 10163 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10164 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 10165 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 10166 "sed/Makefile" ) CONFIG_FILES="$CONFIG_FILES sed/Makefile" ;; 10167 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 10168 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 10169 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 10170 "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex_.h" ;; 10171 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10172 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 10173 "gettext-fix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gettext-fix" ;; 10174 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 10175 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10176 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10177 { (exit 1); exit 1; }; };; 47240 case $ac_config_target in 47241 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;; 47242 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 47243 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 47244 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 47245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 47246 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 47247 "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;; 47248 47249 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 10178 47250 esac 10179 47251 done 47252 10180 47253 10181 47254 # If the user did not use the arguments to specify the items to instantiate, … … 10184 47257 # bizarre bug on SunOS 4.1.3. 10185 47258 if $ac_need_defaults; then 10186 test "${CONFIG_FILES+set}" = set|| CONFIG_FILES=$config_files10187 test "${CONFIG_HEADERS+set}" = set|| CONFIG_HEADERS=$config_headers10188 test "${CONFIG_LINKS+set}" = set|| CONFIG_LINKS=$config_links10189 test "${CONFIG_COMMANDS+set}" = set|| CONFIG_COMMANDS=$config_commands47259 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 47260 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 47261 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links 47262 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 10190 47263 fi 10191 47264 10192 47265 # Have a temporary directory for convenience. Make it in the build tree 10193 # simply because there is no reason to putit here, and in addition,47266 # simply because there is no reason against having it here, and in addition, 10194 47267 # creating and moving files from /tmp can sometimes cause problems. 10195 # Create a temporary directory, and hook for its removal unless debugging. 47268 # Hook for its removal unless debugging. 47269 # Note that there is a small window in which the directory will not be cleaned: 47270 # after its creation but before its name has been assigned to '$tmp'. 10196 47271 $debug || 10197 47272 { 10198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 10199 trap '{ (exit 1); exit 1; }' 1 2 13 15 47273 tmp= ac_tmp= 47274 trap 'exit_status=$? 47275 : "${ac_tmp:=$tmp}" 47276 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 47277 ' 0 47278 trap 'as_fn_exit 1' 1 2 13 15 10200 47279 } 10201 10202 47280 # Create a (secure) tmp directory for tmp files. 10203 47281 10204 47282 { 10205 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&10206 test - n "$tmp" && test -d "$tmp"47283 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 47284 test -d "$tmp" 10207 47285 } || 10208 47286 { 10209 tmp=./confstat$$-$RANDOM 10210 (umask 077 && mkdir $tmp) 10211 } || 47287 tmp=./conf$$-$RANDOM 47288 (umask 077 && mkdir "$tmp") 47289 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 47290 ac_tmp=$tmp 47291 47292 # Set up the scripts for CONFIG_FILES section. 47293 # No need to generate them if there are no CONFIG_FILES. 47294 # This happens for instance with './config.status config.h'. 47295 if test -n "$CONFIG_FILES"; then 47296 47297 47298 ac_cr=`echo X | tr X '\015'` 47299 # On cygwin, bash can eat \r inside `` if the user requested igncr. 47300 # But we know of no other shell where ac_cr would be empty at this 47301 # point, so we can use a bashism as a fallback. 47302 if test "x$ac_cr" = x; then 47303 eval ac_cr=\$\'\\r\' 47304 fi 47305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 47306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 47307 ac_cs_awk_cr='\\r' 47308 else 47309 ac_cs_awk_cr=$ac_cr 47310 fi 47311 47312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 47313 _ACEOF 47314 47315 10212 47316 { 10213 echo "$me: cannot create a temporary directory in ." >&2 10214 { (exit 1); exit 1; } 47317 echo "cat >conf$$subs.awk <<_ACEOF" && 47318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 47319 echo "_ACEOF" 47320 } >conf$$subs.sh || 47321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 47323 ac_delim='%!_!# ' 47324 for ac_last_try in false false false false false :; do 47325 . ./conf$$subs.sh || 47326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47327 47328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 47329 if test $ac_delim_n = $ac_delim_num; then 47330 break 47331 elif $ac_last_try; then 47332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47333 else 47334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 47335 fi 47336 done 47337 rm -f conf$$subs.sh 47338 47339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 47341 _ACEOF 47342 sed -n ' 47343 h 47344 s/^/S["/; s/!.*/"]=/ 47345 p 47346 g 47347 s/^[^!]*!// 47348 :repl 47349 t repl 47350 s/'"$ac_delim"'$// 47351 t delim 47352 :nl 47353 h 47354 s/\(.\{148\}\)..*/\1/ 47355 t more1 47356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 47357 p 47358 n 47359 b repl 47360 :more1 47361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 47362 p 47363 g 47364 s/.\{148\}// 47365 t nl 47366 :delim 47367 h 47368 s/\(.\{148\}\)..*/\1/ 47369 t more2 47370 s/["\\]/\\&/g; s/^/"/; s/$/"/ 47371 p 47372 b 47373 :more2 47374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 47375 p 47376 g 47377 s/.\{148\}// 47378 t delim 47379 ' <conf$$subs.awk | sed ' 47380 /^[^""]/{ 47381 N 47382 s/\n// 10215 47383 } 10216 47384 ' >>$CONFIG_STATUS || ac_write_fail=1 47385 rm -f conf$$subs.awk 47386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47387 _ACAWK 47388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 47389 for (key in S) S_is_set[key] = 1 47390 FS = "" 47391 47392 } 47393 { 47394 line = $ 0 47395 nfields = split(line, field, "@") 47396 substed = 0 47397 len = length(field[1]) 47398 for (i = 2; i < nfields; i++) { 47399 key = field[i] 47400 keylen = length(key) 47401 if (S_is_set[key]) { 47402 value = S[key] 47403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 47404 len += length(value) + length(field[++i]) 47405 substed = 1 47406 } else 47407 len += 1 + keylen 47408 } 47409 47410 print line 47411 } 47412 47413 _ACAWK 10217 47414 _ACEOF 10218 10219 cat >>$CONFIG_STATUS <<_ACEOF 10220 10221 # 10222 # CONFIG_FILES section. 10223 # 10224 10225 # No need to generate the scripts if there are no CONFIG_FILES. 10226 # This happens for instance when ./config.status config.h 10227 if test -n "\$CONFIG_FILES"; then 10228 # Protect against being on the right side of a sed subst in config.status. 10229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 10230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 10231 s,@SHELL@,$SHELL,;t t 10232 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 10233 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 10234 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 10235 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 10236 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 10237 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 10238 s,@exec_prefix@,$exec_prefix,;t t 10239 s,@prefix@,$prefix,;t t 10240 s,@program_transform_name@,$program_transform_name,;t t 10241 s,@bindir@,$bindir,;t t 10242 s,@sbindir@,$sbindir,;t t 10243 s,@libexecdir@,$libexecdir,;t t 10244 s,@datadir@,$datadir,;t t 10245 s,@sysconfdir@,$sysconfdir,;t t 10246 s,@sharedstatedir@,$sharedstatedir,;t t 10247 s,@localstatedir@,$localstatedir,;t t 10248 s,@libdir@,$libdir,;t t 10249 s,@includedir@,$includedir,;t t 10250 s,@oldincludedir@,$oldincludedir,;t t 10251 s,@infodir@,$infodir,;t t 10252 s,@mandir@,$mandir,;t t 10253 s,@build_alias@,$build_alias,;t t 10254 s,@host_alias@,$host_alias,;t t 10255 s,@target_alias@,$target_alias,;t t 10256 s,@DEFS@,$DEFS,;t t 10257 s,@ECHO_C@,$ECHO_C,;t t 10258 s,@ECHO_N@,$ECHO_N,;t t 10259 s,@ECHO_T@,$ECHO_T,;t t 10260 s,@LIBS@,$LIBS,;t t 10261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 10262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 10263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 10264 s,@CYGPATH_W@,$CYGPATH_W,;t t 10265 s,@PACKAGE@,$PACKAGE,;t t 10266 s,@VERSION@,$VERSION,;t t 10267 s,@ACLOCAL@,$ACLOCAL,;t t 10268 s,@AUTOCONF@,$AUTOCONF,;t t 10269 s,@AUTOMAKE@,$AUTOMAKE,;t t 10270 s,@AUTOHEADER@,$AUTOHEADER,;t t 10271 s,@MAKEINFO@,$MAKEINFO,;t t 10272 s,@install_sh@,$install_sh,;t t 10273 s,@STRIP@,$STRIP,;t t 10274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 10275 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 10276 s,@mkdir_p@,$mkdir_p,;t t 10277 s,@AWK@,$AWK,;t t 10278 s,@SET_MAKE@,$SET_MAKE,;t t 10279 s,@am__leading_dot@,$am__leading_dot,;t t 10280 s,@AMTAR@,$AMTAR,;t t 10281 s,@am__tar@,$am__tar,;t t 10282 s,@am__untar@,$am__untar,;t t 10283 s,@SED_FEATURE_VERSION@,$SED_FEATURE_VERSION,;t t 10284 s,@CC@,$CC,;t t 10285 s,@CFLAGS@,$CFLAGS,;t t 10286 s,@LDFLAGS@,$LDFLAGS,;t t 10287 s,@CPPFLAGS@,$CPPFLAGS,;t t 10288 s,@ac_ct_CC@,$ac_ct_CC,;t t 10289 s,@EXEEXT@,$EXEEXT,;t t 10290 s,@OBJEXT@,$OBJEXT,;t t 10291 s,@DEPDIR@,$DEPDIR,;t t 10292 s,@am__include@,$am__include,;t t 10293 s,@am__quote@,$am__quote,;t t 10294 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 10295 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 10296 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 10297 s,@CCDEPMODE@,$CCDEPMODE,;t t 10298 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 10299 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 10300 s,@RANLIB@,$RANLIB,;t t 10301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 10302 s,@CPP@,$CPP,;t t 10303 s,@EGREP@,$EGREP,;t t 10304 s,@HAVE__BOOL@,$HAVE__BOOL,;t t 10305 s,@ALLOCA@,$ALLOCA,;t t 10306 s,@LIBOBJS@,$LIBOBJS,;t t 10307 s,@TEST_REGEX_TRUE@,$TEST_REGEX_TRUE,;t t 10308 s,@TEST_REGEX_FALSE@,$TEST_REGEX_FALSE,;t t 10309 s,@BUILD_HTML_TRUE@,$BUILD_HTML_TRUE,;t t 10310 s,@BUILD_HTML_FALSE@,$BUILD_HTML_FALSE,;t t 10311 s,@TEXI2HTML@,$TEXI2HTML,;t t 10312 s,@MAKEINFO_HTML_TRUE@,$MAKEINFO_HTML_TRUE,;t t 10313 s,@MAKEINFO_HTML_FALSE@,$MAKEINFO_HTML_FALSE,;t t 10314 s,@TEXI2HTML_HTML_TRUE@,$TEXI2HTML_HTML_TRUE,;t t 10315 s,@TEXI2HTML_HTML_FALSE@,$TEXI2HTML_HTML_FALSE,;t t 10316 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 10317 s,@MSGFMT@,$MSGFMT,;t t 10318 s,@GMSGFMT@,$GMSGFMT,;t t 10319 s,@XGETTEXT@,$XGETTEXT,;t t 10320 s,@MSGMERGE@,$MSGMERGE,;t t 10321 s,@build@,$build,;t t 10322 s,@build_cpu@,$build_cpu,;t t 10323 s,@build_vendor@,$build_vendor,;t t 10324 s,@build_os@,$build_os,;t t 10325 s,@host@,$host,;t t 10326 s,@host_cpu@,$host_cpu,;t t 10327 s,@host_vendor@,$host_vendor,;t t 10328 s,@host_os@,$host_os,;t t 10329 s,@GLIBC21@,$GLIBC21,;t t 10330 s,@LIBICONV@,$LIBICONV,;t t 10331 s,@LTLIBICONV@,$LTLIBICONV,;t t 10332 s,@INTLBISON@,$INTLBISON,;t t 10333 s,@USE_NLS@,$USE_NLS,;t t 10334 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 10335 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 10336 s,@CATOBJEXT@,$CATOBJEXT,;t t 10337 s,@INTLOBJS@,$INTLOBJS,;t t 10338 s,@DATADIRNAME@,$DATADIRNAME,;t t 10339 s,@INSTOBJEXT@,$INSTOBJEXT,;t t 10340 s,@GENCAT@,$GENCAT,;t t 10341 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 10342 s,@INTLLIBS@,$INTLLIBS,;t t 10343 s,@LIBINTL@,$LIBINTL,;t t 10344 s,@LTLIBINTL@,$LTLIBINTL,;t t 10345 s,@POSUB@,$POSUB,;t t 10346 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 10347 CEOF 10348 47415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 47417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 47418 else 47419 cat 47420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 47421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10349 47422 _ACEOF 10350 47423 10351 cat >>$CONFIG_STATUS <<\_ACEOF 10352 # Split the substitutions into bite-sized pieces for seds with 10353 # small command number limits, like on Digital OSF/1 and HP-UX. 10354 ac_max_sed_lines=48 10355 ac_sed_frag=1 # Number of current file. 10356 ac_beg=1 # First line for current file. 10357 ac_end=$ac_max_sed_lines # Line after last line for current file. 10358 ac_more_lines=: 10359 ac_sed_cmds= 10360 while $ac_more_lines; do 10361 if test $ac_beg -gt 1; then 10362 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10363 else 10364 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 47424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 47425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 47426 # trailing colons and then remove the whole line if VPATH becomes empty 47427 # (actually we leave an empty line to preserve line numbers). 47428 if test "x$srcdir" = x.; then 47429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 47430 h 47431 s/// 47432 s/^/:/ 47433 s/[ ]*$/:/ 47434 s/:\$(srcdir):/:/g 47435 s/:\${srcdir}:/:/g 47436 s/:@srcdir@:/:/g 47437 s/^:*// 47438 s/:*$// 47439 x 47440 s/\(=[ ]*\).*/\1/ 47441 G 47442 s/\n// 47443 s/^[^=]*=[ ]*$// 47444 }' 47445 fi 47446 47447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47448 fi # test -n "$CONFIG_FILES" 47449 47450 # Set up the scripts for CONFIG_HEADERS section. 47451 # No need to generate them if there are no CONFIG_HEADERS. 47452 # This happens for instance with './config.status Makefile'. 47453 if test -n "$CONFIG_HEADERS"; then 47454 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 47455 BEGIN { 47456 _ACEOF 47457 47458 # Transform confdefs.h into an awk script 'defines.awk', embedded as 47459 # here-document in config.status, that substitutes the proper values into 47460 # config.h.in to produce config.h. 47461 47462 # Create a delimiter string that does not exist in confdefs.h, to ease 47463 # handling of long lines. 47464 ac_delim='%!_!# ' 47465 for ac_last_try in false false :; do 47466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 47467 if test -z "$ac_tt"; then 47468 break 47469 elif $ac_last_try; then 47470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 47471 else 47472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 47473 fi 47474 done 47475 47476 # For the awk script, D is an array of macro values keyed by name, 47477 # likewise P contains macro parameters if any. Preserve backslash 47478 # newline sequences. 47479 47480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 47481 sed -n ' 47482 s/.\{148\}/&'"$ac_delim"'/g 47483 t rset 47484 :rset 47485 s/^[ ]*#[ ]*define[ ][ ]*/ / 47486 t def 47487 d 47488 :def 47489 s/\\$// 47490 t bsnl 47491 s/["\\]/\\&/g 47492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 47493 D["\1"]=" \3"/p 47494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 47495 d 47496 :bsnl 47497 s/["\\]/\\&/g 47498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 47499 D["\1"]=" \3\\\\\\n"\\/p 47500 t cont 47501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 47502 t cont 47503 d 47504 :cont 47505 n 47506 s/.\{148\}/&'"$ac_delim"'/g 47507 t clear 47508 :clear 47509 s/\\$// 47510 t bsnlc 47511 s/["\\]/\\&/g; s/^/"/; s/$/"/p 47512 d 47513 :bsnlc 47514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 47515 b cont 47516 ' <confdefs.h | sed ' 47517 s/'"$ac_delim"'/"\\\ 47518 "/g' >>$CONFIG_STATUS || ac_write_fail=1 47519 47520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47521 for (key in D) D_is_set[key] = 1 47522 FS = "" 47523 } 47524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 47525 line = \$ 0 47526 split(line, arg, " ") 47527 if (arg[1] == "#") { 47528 defundef = arg[2] 47529 mac1 = arg[3] 47530 } else { 47531 defundef = substr(arg[1], 2) 47532 mac1 = arg[2] 47533 } 47534 split(mac1, mac2, "(") #) 47535 macro = mac2[1] 47536 prefix = substr(line, 1, index(line, defundef) - 1) 47537 if (D_is_set[macro]) { 47538 # Preserve the white space surrounding the "#". 47539 print prefix "define", macro P[macro] D[macro] 47540 next 47541 } else { 47542 # Replace #undef with comments. This is necessary, for example, 47543 # in the case of _POSIX_SOURCE, which is predefined and required 47544 # on some systems where configure will not decide to define it. 47545 if (defundef == "undef") { 47546 print "/*", prefix defundef, macro, "*/" 47547 next 47548 } 47549 } 47550 } 47551 { print } 47552 _ACAWK 47553 _ACEOF 47554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 47556 fi # test -n "$CONFIG_HEADERS" 47557 47558 47559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 47560 shift 47561 for ac_tag 47562 do 47563 case $ac_tag in 47564 :[FHLC]) ac_mode=$ac_tag; continue;; 47565 esac 47566 case $ac_mode$ac_tag in 47567 :[FHL]*:*);; 47568 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 47569 :[FH]-) ac_tag=-:-;; 47570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 47571 esac 47572 ac_save_IFS=$IFS 47573 IFS=: 47574 set x $ac_tag 47575 IFS=$ac_save_IFS 47576 shift 47577 ac_file=$1 47578 shift 47579 47580 case $ac_mode in 47581 :L) ac_source=$1;; 47582 :[FH]) 47583 ac_file_inputs= 47584 for ac_f 47585 do 47586 case $ac_f in 47587 -) ac_f="$ac_tmp/stdin";; 47588 *) # Look for the file first in the build tree, then in the source tree 47589 # (if the path is not absolute). The absolute path cannot be DOS-style, 47590 # because $ac_f cannot contain ':'. 47591 test -f "$ac_f" || 47592 case $ac_f in 47593 [\\/$]*) false;; 47594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 47595 esac || 47596 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 47597 esac 47598 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 47599 as_fn_append ac_file_inputs " '$ac_f'" 47600 done 47601 47602 # Let's still pretend it is 'configure' which instantiates (i.e., don't 47603 # use $as_me), people would be surprised to read: 47604 # /* config.h. Generated by config.status. */ 47605 configure_input='Generated from '` 47606 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 47607 `' by configure.' 47608 if test x"$ac_file" != x-; then 47609 configure_input="$ac_file. $configure_input" 47610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 47611 printf "%s\n" "$as_me: creating $ac_file" >&6;} 10365 47612 fi 10366 if test ! -s $tmp/subs.frag; then 10367 ac_more_lines=false 10368 else 10369 # The purpose of the label and of the branching condition is to 10370 # speed up the sed processing (if there are no `@' at all, there 10371 # is no need to browse any of the substitutions). 10372 # These are the two extra sed commands mentioned above. 10373 (echo ':t 10374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 10375 if test -z "$ac_sed_cmds"; then 10376 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 10377 else 10378 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 10379 fi 10380 ac_sed_frag=`expr $ac_sed_frag + 1` 10381 ac_beg=$ac_end 10382 ac_end=`expr $ac_end + $ac_max_sed_lines` 10383 fi 10384 done 10385 if test -z "$ac_sed_cmds"; then 10386 ac_sed_cmds=cat 10387 fi 10388 fi # test -n "$CONFIG_FILES" 10389 10390 _ACEOF 10391 cat >>$CONFIG_STATUS <<\_ACEOF 10392 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 10393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10394 case $ac_file in 10395 - | *:- | *:-:* ) # input from stdin 10396 cat >$tmp/stdin 10397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10401 * ) ac_file_in=$ac_file.in ;; 47613 # Neutralize special characters interpreted by sed in replacement strings. 47614 case $configure_input in #( 47615 *\&* | *\|* | *\\* ) 47616 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 47617 sed 's/[\\\\&|]/\\\\&/g'`;; #( 47618 *) ac_sed_conf_input=$configure_input;; 47619 esac 47620 47621 case $ac_tag in 47622 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 47623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 47624 esac 47625 ;; 10402 47626 esac 10403 47627 10404 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 10405 ac_dir=`(dirname "$ac_file") 2>/dev/null || 47628 ac_dir=`$as_dirname -- "$ac_file" || 10406 47629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10407 47630 X"$ac_file" : 'X\(//\)[^/]' \| \ 10408 47631 X"$ac_file" : 'X\(//\)$' \| \ 10409 X"$ac_file" : 'X\(/\)' \| \ 10410 . : '\(.\)' 2>/dev/null || 10411 echo X"$ac_file" | 10412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10413 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10414 /^X\(\/\/\)$/{ s//\1/; q; } 10415 /^X\(\/\).*/{ s//\1/; q; } 10416 s/.*/./; q'` 10417 { if $as_mkdir_p; then 10418 mkdir -p "$ac_dir" 10419 else 10420 as_dir="$ac_dir" 10421 as_dirs= 10422 while test ! -d "$as_dir"; do 10423 as_dirs="$as_dir $as_dirs" 10424 as_dir=`(dirname "$as_dir") 2>/dev/null || 10425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10426 X"$as_dir" : 'X\(//\)[^/]' \| \ 10427 X"$as_dir" : 'X\(//\)$' \| \ 10428 X"$as_dir" : 'X\(/\)' \| \ 10429 . : '\(.\)' 2>/dev/null || 10430 echo X"$as_dir" | 10431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10432 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10433 /^X\(\/\/\)$/{ s//\1/; q; } 10434 /^X\(\/\).*/{ s//\1/; q; } 10435 s/.*/./; q'` 10436 done 10437 test ! -n "$as_dirs" || mkdir $as_dirs 10438 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10439 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10440 { (exit 1); exit 1; }; }; } 10441 47632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 47633 printf "%s\n" X"$ac_file" | 47634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47635 s//\1/ 47636 q 47637 } 47638 /^X\(\/\/\)[^/].*/{ 47639 s//\1/ 47640 q 47641 } 47642 /^X\(\/\/\)$/{ 47643 s//\1/ 47644 q 47645 } 47646 /^X\(\/\).*/{ 47647 s//\1/ 47648 q 47649 } 47650 s/.*/./; q'` 47651 as_dir="$ac_dir"; as_fn_mkdir_p 10442 47652 ac_builddir=. 10443 47653 10444 if test "$ac_dir" != .; then 10445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10446 # A "../" for each directory in $ac_dir_suffix. 10447 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10448 else 10449 ac_dir_suffix= ac_top_builddir= 10450 fi 47654 case "$ac_dir" in 47655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 47656 *) 47657 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 47658 # A ".." for each directory in $ac_dir_suffix. 47659 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 47660 case $ac_top_builddir_sub in 47661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 47662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 47663 esac ;; 47664 esac 47665 ac_abs_top_builddir=$ac_pwd 47666 ac_abs_builddir=$ac_pwd$ac_dir_suffix 47667 # for backward compatibility: 47668 ac_top_builddir=$ac_top_build_prefix 10451 47669 10452 47670 case $srcdir in 10453 .) # No --srcdir option.We are building in place.47671 .) # We are building in place. 10454 47672 ac_srcdir=. 10455 if test -z "$ac_top_builddir"; then 10456 ac_top_srcdir=. 10457 else 10458 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10459 fi ;; 10460 [\\/]* | ?:[\\/]* ) # Absolute path. 47673 ac_top_srcdir=$ac_top_builddir_sub 47674 ac_abs_top_srcdir=$ac_pwd ;; 47675 [\\/]* | ?:[\\/]* ) # Absolute name. 10461 47676 ac_srcdir=$srcdir$ac_dir_suffix; 10462 ac_top_srcdir=$srcdir ;; 10463 *) # Relative path. 10464 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10465 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10466 esac 10467 10468 # Do not use `cd foo && pwd` to compute absolute paths, because 10469 # the directories may not exist. 10470 case `pwd` in 10471 .) ac_abs_builddir="$ac_dir";; 10472 *) 10473 case "$ac_dir" in 10474 .) ac_abs_builddir=`pwd`;; 10475 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 10476 *) ac_abs_builddir=`pwd`/"$ac_dir";; 10477 esac;; 10478 esac 10479 case $ac_abs_builddir in 10480 .) ac_abs_top_builddir=${ac_top_builddir}.;; 10481 *) 10482 case ${ac_top_builddir}. in 10483 .) ac_abs_top_builddir=$ac_abs_builddir;; 10484 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 10485 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 10486 esac;; 10487 esac 10488 case $ac_abs_builddir in 10489 .) ac_abs_srcdir=$ac_srcdir;; 10490 *) 10491 case $ac_srcdir in 10492 .) ac_abs_srcdir=$ac_abs_builddir;; 10493 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 10494 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 10495 esac;; 10496 esac 10497 case $ac_abs_builddir in 10498 .) ac_abs_top_srcdir=$ac_top_srcdir;; 10499 *) 10500 case $ac_top_srcdir in 10501 .) ac_abs_top_srcdir=$ac_abs_builddir;; 10502 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 10503 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 10504 esac;; 10505 esac 10506 47677 ac_top_srcdir=$srcdir 47678 ac_abs_top_srcdir=$srcdir ;; 47679 *) # Relative name. 47680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 47681 ac_top_srcdir=$ac_top_build_prefix$srcdir 47682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 47683 esac 47684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 47685 47686 47687 case $ac_mode in 47688 :F) 47689 # 47690 # CONFIG_FILE 47691 # 10507 47692 10508 47693 case $INSTALL in 10509 47694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10510 *) ac_INSTALL=$ac_top_build dir$INSTALL ;;47695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10511 47696 esac 10512 10513 if test x"$ac_file" != x-; then 10514 { echo "$as_me:$LINENO: creating $ac_file" >&5 10515 echo "$as_me: creating $ac_file" >&6;} 10516 rm -f "$ac_file" 10517 fi 10518 # Let's still pretend it is `configure' which instantiates (i.e., don't 10519 # use $as_me), people would be surprised to read: 10520 # /* config.h. Generated by config.status. */ 10521 if test x"$ac_file" = x-; then 10522 configure_input= 10523 else 10524 configure_input="$ac_file. " 10525 fi 10526 configure_input=$configure_input"Generated from `echo $ac_file_in | 10527 sed 's,.*/,,'` by configure." 10528 10529 # First look for the input files in the build tree, otherwise in the 10530 # src tree. 10531 ac_file_inputs=`IFS=: 10532 for f in $ac_file_in; do 10533 case $f in 10534 -) echo $tmp/stdin ;; 10535 [\\/$]*) 10536 # Absolute (can't be DOS-style, as IFS=:) 10537 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10538 echo "$as_me: error: cannot find input file: $f" >&2;} 10539 { (exit 1); exit 1; }; } 10540 echo "$f";; 10541 *) # Relative 10542 if test -f "$f"; then 10543 # Build tree 10544 echo "$f" 10545 elif test -f "$srcdir/$f"; then 10546 # Source tree 10547 echo "$srcdir/$f" 10548 else 10549 # /dev/null tree 10550 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10551 echo "$as_me: error: cannot find input file: $f" >&2;} 10552 { (exit 1); exit 1; }; } 10553 fi;; 10554 esac 10555 done` || { (exit 1); exit 1; } 47697 ac_MKDIR_P=$MKDIR_P 47698 case $MKDIR_P in 47699 [\\/$]* | ?:[\\/]* ) ;; 47700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 47701 esac 10556 47702 _ACEOF 10557 cat >>$CONFIG_STATUS <<_ACEOF 10558 sed "$ac_vpsub 47703 47704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47705 # If the template does not know about datarootdir, expand it. 47706 # FIXME: This hack should be removed a few years after 2.60. 47707 ac_datarootdir_hack=; ac_datarootdir_seen= 47708 ac_sed_dataroot=' 47709 /datarootdir/ { 47710 p 47711 q 47712 } 47713 /@datadir@/p 47714 /@docdir@/p 47715 /@infodir@/p 47716 /@localedir@/p 47717 /@mandir@/p' 47718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 47719 *datarootdir*) ac_datarootdir_seen=yes;; 47720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 47721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 47722 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 47723 _ACEOF 47724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47725 ac_datarootdir_hack=' 47726 s&@datadir@&$datadir&g 47727 s&@docdir@&$docdir&g 47728 s&@infodir@&$infodir&g 47729 s&@localedir@&$localedir&g 47730 s&@mandir@&$mandir&g 47731 s&\\\${datarootdir}&$datarootdir&g' ;; 47732 esac 47733 _ACEOF 47734 47735 # Neutralize VPATH when '$srcdir' = '.'. 47736 # Shell code in configure.ac might set extrasub. 47737 # FIXME: do we really want to maintain this feature? 47738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47739 ac_sed_extra="$ac_vpsub 10559 47740 $extrasub 10560 47741 _ACEOF 10561 cat >>$CONFIG_STATUS <<\_ACEOF 47742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10562 47743 :t 10563 47744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10564 s,@configure_input@,$configure_input,;t t 10565 s,@srcdir@,$ac_srcdir,;t t 10566 s,@abs_srcdir@,$ac_abs_srcdir,;t t 10567 s,@top_srcdir@,$ac_top_srcdir,;t t 10568 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 10569 s,@builddir@,$ac_builddir,;t t 10570 s,@abs_builddir@,$ac_abs_builddir,;t t 10571 s,@top_builddir@,$ac_top_builddir,;t t 10572 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 10573 s,@INSTALL@,$ac_INSTALL,;t t 10574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 10575 rm -f $tmp/stdin 47745 s|@configure_input@|$ac_sed_conf_input|;t t 47746 s&@top_builddir@&$ac_top_builddir_sub&;t t 47747 s&@top_build_prefix@&$ac_top_build_prefix&;t t 47748 s&@srcdir@&$ac_srcdir&;t t 47749 s&@abs_srcdir@&$ac_abs_srcdir&;t t 47750 s&@top_srcdir@&$ac_top_srcdir&;t t 47751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 47752 s&@builddir@&$ac_builddir&;t t 47753 s&@abs_builddir@&$ac_abs_builddir&;t t 47754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 47755 s&@INSTALL@&$ac_INSTALL&;t t 47756 s&@MKDIR_P@&$ac_MKDIR_P&;t t 47757 $ac_datarootdir_hack 47758 " 47759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 47760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47761 47762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 47763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 47764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 47765 "$ac_tmp/out"`; test -z "$ac_out"; } && 47766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 47767 which seems to be undefined. Please make sure it is defined" >&5 47768 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 47769 which seems to be undefined. Please make sure it is defined" >&2;} 47770 47771 rm -f "$ac_tmp/stdin" 47772 case $ac_file in 47773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 47774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 47775 esac \ 47776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47777 ;; 47778 :H) 47779 # 47780 # CONFIG_HEADER 47781 # 10576 47782 if test x"$ac_file" != x-; then 10577 mv $tmp/out $ac_file 10578 else 10579 cat $tmp/out 10580 rm -f $tmp/out 10581 fi 10582 10583 # Run the commands associated with the file. 10584 case $ac_file in 10585 bootstrap.sh ) chmod +x bootstrap.sh ;; 10586 esac 10587 done 10588 _ACEOF 10589 cat >>$CONFIG_STATUS <<\_ACEOF 10590 10591 # 10592 # CONFIG_HEADER section. 10593 # 10594 10595 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 10596 # NAME is the cpp macro being defined and VALUE is the value it is being given. 10597 # 10598 # ac_d sets the value in "#define NAME VALUE" lines. 10599 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 10600 ac_dB='[ ].*$,\1#\2' 10601 ac_dC=' ' 10602 ac_dD=',;t' 10603 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 10604 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10605 ac_uB='$,\1#\2define\3' 10606 ac_uC=' ' 10607 ac_uD=',;t' 10608 10609 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 10610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10611 case $ac_file in 10612 - | *:- | *:-:* ) # input from stdin 10613 cat >$tmp/stdin 10614 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10616 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10618 * ) ac_file_in=$ac_file.in ;; 10619 esac 10620 10621 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 10622 echo "$as_me: creating $ac_file" >&6;} 10623 10624 # First look for the input files in the build tree, otherwise in the 10625 # src tree. 10626 ac_file_inputs=`IFS=: 10627 for f in $ac_file_in; do 10628 case $f in 10629 -) echo $tmp/stdin ;; 10630 [\\/$]*) 10631 # Absolute (can't be DOS-style, as IFS=:) 10632 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10633 echo "$as_me: error: cannot find input file: $f" >&2;} 10634 { (exit 1); exit 1; }; } 10635 # Do quote $f, to prevent DOS paths from being IFS'd. 10636 echo "$f";; 10637 *) # Relative 10638 if test -f "$f"; then 10639 # Build tree 10640 echo "$f" 10641 elif test -f "$srcdir/$f"; then 10642 # Source tree 10643 echo "$srcdir/$f" 10644 else 10645 # /dev/null tree 10646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10647 echo "$as_me: error: cannot find input file: $f" >&2;} 10648 { (exit 1); exit 1; }; } 10649 fi;; 10650 esac 10651 done` || { (exit 1); exit 1; } 10652 # Remove the trailing spaces. 10653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 10654 10655 _ACEOF 10656 10657 # Transform confdefs.h into two sed scripts, `conftest.defines' and 10658 # `conftest.undefs', that substitutes the proper values into 10659 # config.h.in to produce config.h. The first handles `#define' 10660 # templates, and the second `#undef' templates. 10661 # And first: Protect against being on the right side of a sed subst in 10662 # config.status. Protect against being in an unquoted here document 10663 # in config.status. 10664 rm -f conftest.defines conftest.undefs 10665 # Using a here document instead of a string reduces the quoting nightmare. 10666 # Putting comments in sed scripts is not portable. 10667 # 10668 # `end' is used to avoid that the second main sed command (meant for 10669 # 0-ary CPP macros) applies to n-ary macro definitions. 10670 # See the Autoconf documentation for `clear'. 10671 cat >confdef2sed.sed <<\_ACEOF 10672 s/[\\&,]/\\&/g 10673 s,[\\$`],\\&,g 10674 t clear 10675 : clear 10676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 10677 t end 10678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 10679 : end 10680 _ACEOF 10681 # If some macros were called several times there might be several times 10682 # the same #defines, which is useless. Nevertheless, we may not want to 10683 # sort them, since we want the *last* AC-DEFINE to be honored. 10684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 10685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 10686 rm -f confdef2sed.sed 10687 10688 # This sed command replaces #undef with comments. This is necessary, for 10689 # example, in the case of _POSIX_SOURCE, which is predefined and required 10690 # on some systems where configure will not decide to define it. 10691 cat >>conftest.undefs <<\_ACEOF 10692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 10693 _ACEOF 10694 10695 # Break up conftest.defines because some shells have a limit on the size 10696 # of here documents, and old seds have small limits too (100 cmds). 10697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 10698 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 10699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 10700 echo ' :' >>$CONFIG_STATUS 10701 rm -f conftest.tail 10702 while grep . conftest.defines >/dev/null 10703 do 10704 # Write a limited-size here document to $tmp/defines.sed. 10705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 10706 # Speed up: don't consider the non `#define' lines. 10707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 10708 # Work around the forget-to-reset-the-flag bug. 10709 echo 't clr' >>$CONFIG_STATUS 10710 echo ': clr' >>$CONFIG_STATUS 10711 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 10712 echo 'CEOF 10713 sed -f $tmp/defines.sed $tmp/in >$tmp/out 10714 rm -f $tmp/in 10715 mv $tmp/out $tmp/in 10716 ' >>$CONFIG_STATUS 10717 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 10718 rm -f conftest.defines 10719 mv conftest.tail conftest.defines 10720 done 10721 rm -f conftest.defines 10722 echo ' fi # grep' >>$CONFIG_STATUS 10723 echo >>$CONFIG_STATUS 10724 10725 # Break up conftest.undefs because some shells have a limit on the size 10726 # of here documents, and old seds have small limits too (100 cmds). 10727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 10728 rm -f conftest.tail 10729 while grep . conftest.undefs >/dev/null 10730 do 10731 # Write a limited-size here document to $tmp/undefs.sed. 10732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 10733 # Speed up: don't consider the non `#undef' 10734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 10735 # Work around the forget-to-reset-the-flag bug. 10736 echo 't clr' >>$CONFIG_STATUS 10737 echo ': clr' >>$CONFIG_STATUS 10738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 10739 echo 'CEOF 10740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 10741 rm -f $tmp/in 10742 mv $tmp/out $tmp/in 10743 ' >>$CONFIG_STATUS 10744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 10745 rm -f conftest.undefs 10746 mv conftest.tail conftest.undefs 10747 done 10748 rm -f conftest.undefs 10749 10750 cat >>$CONFIG_STATUS <<\_ACEOF 10751 # Let's still pretend it is `configure' which instantiates (i.e., don't 10752 # use $as_me), people would be surprised to read: 10753 # /* config.h. Generated by config.status. */ 10754 if test x"$ac_file" = x-; then 10755 echo "/* Generated by configure. */" >$tmp/config.h 10756 else 10757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 10758 fi 10759 cat $tmp/in >>$tmp/config.h 10760 rm -f $tmp/in 10761 if test x"$ac_file" != x-; then 10762 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 10763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10764 echo "$as_me: $ac_file is unchanged" >&6;} 47783 { 47784 printf "%s\n" "/* $configure_input */" >&1 \ 47785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 47786 } >"$ac_tmp/config.h" \ 47787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 47788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 47789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 47790 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 10765 47791 else 10766 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10768 X"$ac_file" : 'X\(//\)[^/]' \| \ 10769 X"$ac_file" : 'X\(//\)$' \| \ 10770 X"$ac_file" : 'X\(/\)' \| \ 10771 . : '\(.\)' 2>/dev/null || 10772 echo X"$ac_file" | 10773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10774 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10775 /^X\(\/\/\)$/{ s//\1/; q; } 10776 /^X\(\/\).*/{ s//\1/; q; } 10777 s/.*/./; q'` 10778 { if $as_mkdir_p; then 10779 mkdir -p "$ac_dir" 10780 else 10781 as_dir="$ac_dir" 10782 as_dirs= 10783 while test ! -d "$as_dir"; do 10784 as_dirs="$as_dir $as_dirs" 10785 as_dir=`(dirname "$as_dir") 2>/dev/null || 10786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10787 X"$as_dir" : 'X\(//\)[^/]' \| \ 10788 X"$as_dir" : 'X\(//\)$' \| \ 10789 X"$as_dir" : 'X\(/\)' \| \ 10790 . : '\(.\)' 2>/dev/null || 10791 echo X"$as_dir" | 10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10793 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10794 /^X\(\/\/\)$/{ s//\1/; q; } 10795 /^X\(\/\).*/{ s//\1/; q; } 10796 s/.*/./; q'` 10797 done 10798 test ! -n "$as_dirs" || mkdir $as_dirs 10799 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 10800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 10801 { (exit 1); exit 1; }; }; } 10802 10803 rm -f $ac_file 10804 mv $tmp/config.h $ac_file 47792 rm -f "$ac_file" 47793 mv "$ac_tmp/config.h" "$ac_file" \ 47794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10805 47795 fi 10806 47796 else 10807 cat $tmp/config.h 10808 rm -f $tmp/config.h 10809 fi 10810 # Compute $ac_file's index in $config_headers. 47797 printf "%s\n" "/* $configure_input */" >&1 \ 47798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 47799 || as_fn_error $? "could not create -" "$LINENO" 5 47800 fi 47801 # Compute "$ac_file"'s index in $config_headers. 47802 _am_arg="$ac_file" 10811 47803 _am_stamp_count=1 10812 47804 for _am_header in $config_headers :; do 10813 47805 case $_am_header in 10814 $ ac_file | $ac_file:* )47806 $_am_arg | $_am_arg:* ) 10815 47807 break ;; 10816 47808 * ) … … 10818 47810 esac 10819 47811 done 10820 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 10821 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10822 X$ac_file : 'X\(//\)[^/]' \| \ 10823 X$ac_file : 'X\(//\)$' \| \ 10824 X$ac_file : 'X\(/\)' \| \ 10825 . : '\(.\)' 2>/dev/null || 10826 echo X$ac_file | 10827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10828 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10829 /^X\(\/\/\)$/{ s//\1/; q; } 10830 /^X\(\/\).*/{ s//\1/; q; } 10831 s/.*/./; q'`/stamp-h$_am_stamp_count 10832 done 10833 _ACEOF 10834 cat >>$CONFIG_STATUS <<\_ACEOF 10835 10836 # 10837 # CONFIG_LINKS section. 10838 # 10839 10840 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 10841 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 10842 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 10843 10844 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 10845 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 10846 10847 if test ! -r $srcdir/$ac_source; then 10848 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 10849 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 10850 { (exit 1); exit 1; }; } 10851 fi 10852 rm -f $ac_dest 10853 10854 # Make relative symlinks. 10855 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 10856 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10857 X"$ac_dest" : 'X\(//\)[^/]' \| \ 10858 X"$ac_dest" : 'X\(//\)$' \| \ 10859 X"$ac_dest" : 'X\(/\)' \| \ 10860 . : '\(.\)' 2>/dev/null || 10861 echo X"$ac_dest" | 10862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10863 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10864 /^X\(\/\/\)$/{ s//\1/; q; } 10865 /^X\(\/\).*/{ s//\1/; q; } 10866 s/.*/./; q'` 10867 { if $as_mkdir_p; then 10868 mkdir -p "$ac_dest_dir" 47812 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 47813 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47814 X"$_am_arg" : 'X\(//\)[^/]' \| \ 47815 X"$_am_arg" : 'X\(//\)$' \| \ 47816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 47817 printf "%s\n" X"$_am_arg" | 47818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47819 s//\1/ 47820 q 47821 } 47822 /^X\(\/\/\)[^/].*/{ 47823 s//\1/ 47824 q 47825 } 47826 /^X\(\/\/\)$/{ 47827 s//\1/ 47828 q 47829 } 47830 /^X\(\/\).*/{ 47831 s//\1/ 47832 q 47833 } 47834 s/.*/./; q'`/stamp-h$_am_stamp_count 47835 ;; 47836 :L) 47837 # 47838 # CONFIG_LINK 47839 # 47840 47841 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 47842 : 10869 47843 else 10870 as_dir="$ac_dest_dir" 10871 as_dirs= 10872 while test ! -d "$as_dir"; do 10873 as_dirs="$as_dir $as_dirs" 10874 as_dir=`(dirname "$as_dir") 2>/dev/null || 10875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10876 X"$as_dir" : 'X\(//\)[^/]' \| \ 10877 X"$as_dir" : 'X\(//\)$' \| \ 10878 X"$as_dir" : 'X\(/\)' \| \ 10879 . : '\(.\)' 2>/dev/null || 10880 echo X"$as_dir" | 10881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10882 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10883 /^X\(\/\/\)$/{ s//\1/; q; } 10884 /^X\(\/\).*/{ s//\1/; q; } 10885 s/.*/./; q'` 10886 done 10887 test ! -n "$as_dirs" || mkdir $as_dirs 10888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 10889 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 10890 { (exit 1); exit 1; }; }; } 10891 10892 ac_builddir=. 10893 10894 if test "$ac_dest_dir" != .; then 10895 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 10896 # A "../" for each directory in $ac_dir_suffix. 10897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10898 else 10899 ac_dir_suffix= ac_top_builddir= 10900 fi 10901 10902 case $srcdir in 10903 .) # No --srcdir option. We are building in place. 10904 ac_srcdir=. 10905 if test -z "$ac_top_builddir"; then 10906 ac_top_srcdir=. 10907 else 10908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10909 fi ;; 10910 [\\/]* | ?:[\\/]* ) # Absolute path. 10911 ac_srcdir=$srcdir$ac_dir_suffix; 10912 ac_top_srcdir=$srcdir ;; 10913 *) # Relative path. 10914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10915 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10916 esac 10917 10918 # Do not use `cd foo && pwd` to compute absolute paths, because 10919 # the directories may not exist. 10920 case `pwd` in 10921 .) ac_abs_builddir="$ac_dest_dir";; 10922 *) 10923 case "$ac_dest_dir" in 10924 .) ac_abs_builddir=`pwd`;; 10925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; 10926 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; 10927 esac;; 10928 esac 10929 case $ac_abs_builddir in 10930 .) ac_abs_top_builddir=${ac_top_builddir}.;; 10931 *) 10932 case ${ac_top_builddir}. in 10933 .) ac_abs_top_builddir=$ac_abs_builddir;; 10934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 10935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 10936 esac;; 10937 esac 10938 case $ac_abs_builddir in 10939 .) ac_abs_srcdir=$ac_srcdir;; 10940 *) 10941 case $ac_srcdir in 10942 .) ac_abs_srcdir=$ac_abs_builddir;; 10943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 10944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 10945 esac;; 10946 esac 10947 case $ac_abs_builddir in 10948 .) ac_abs_top_srcdir=$ac_top_srcdir;; 10949 *) 10950 case $ac_top_srcdir in 10951 .) ac_abs_top_srcdir=$ac_abs_builddir;; 10952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 10953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 10954 esac;; 10955 esac 10956 10957 10958 case $srcdir in 10959 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 10960 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 47844 # Prefer the file from the source tree if names are identical. 47845 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 47846 ac_source=$srcdir/$ac_source 47847 fi 47848 47849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 47850 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} 47851 47852 if test ! -r "$ac_source"; then 47853 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 47854 fi 47855 rm -f "$ac_file" 47856 47857 # Try a relative symlink, then a hard link, then a copy. 47858 case $ac_source in 47859 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 47860 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 47861 esac 47862 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 47863 ln "$ac_source" "$ac_file" 2>/dev/null || 47864 cp -p "$ac_source" "$ac_file" || 47865 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 47866 fi 47867 ;; 47868 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 47869 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 47870 ;; 10961 47871 esac 10962 47872 10963 # Try a symlink, then a hard link, then a copy. 10964 ln -s $ac_rel_source $ac_dest 2>/dev/null || 10965 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 10966 cp -p $srcdir/$ac_source $ac_dest || 10967 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 10968 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 10969 { (exit 1); exit 1; }; } 10970 done 10971 _ACEOF 10972 cat >>$CONFIG_STATUS <<\_ACEOF 10973 10974 # 10975 # CONFIG_COMMANDS section. 10976 # 10977 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 10978 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 10979 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 10980 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 10981 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10982 X"$ac_dest" : 'X\(//\)[^/]' \| \ 10983 X"$ac_dest" : 'X\(//\)$' \| \ 10984 X"$ac_dest" : 'X\(/\)' \| \ 10985 . : '\(.\)' 2>/dev/null || 10986 echo X"$ac_dest" | 10987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10988 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10989 /^X\(\/\/\)$/{ s//\1/; q; } 10990 /^X\(\/\).*/{ s//\1/; q; } 10991 s/.*/./; q'` 10992 { if $as_mkdir_p; then 10993 mkdir -p "$ac_dir" 10994 else 10995 as_dir="$ac_dir" 10996 as_dirs= 10997 while test ! -d "$as_dir"; do 10998 as_dirs="$as_dir $as_dirs" 10999 as_dir=`(dirname "$as_dir") 2>/dev/null || 11000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11001 X"$as_dir" : 'X\(//\)[^/]' \| \ 11002 X"$as_dir" : 'X\(//\)$' \| \ 11003 X"$as_dir" : 'X\(/\)' \| \ 11004 . : '\(.\)' 2>/dev/null || 11005 echo X"$as_dir" | 11006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11007 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11008 /^X\(\/\/\)$/{ s//\1/; q; } 11009 /^X\(\/\).*/{ s//\1/; q; } 11010 s/.*/./; q'` 11011 done 11012 test ! -n "$as_dirs" || mkdir $as_dirs 11013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11014 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11015 { (exit 1); exit 1; }; }; } 11016 11017 ac_builddir=. 11018 11019 if test "$ac_dir" != .; then 11020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11021 # A "../" for each directory in $ac_dir_suffix. 11022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11023 else 11024 ac_dir_suffix= ac_top_builddir= 11025 fi 11026 11027 case $srcdir in 11028 .) # No --srcdir option. We are building in place. 11029 ac_srcdir=. 11030 if test -z "$ac_top_builddir"; then 11031 ac_top_srcdir=. 11032 else 11033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11034 fi ;; 11035 [\\/]* | ?:[\\/]* ) # Absolute path. 11036 ac_srcdir=$srcdir$ac_dir_suffix; 11037 ac_top_srcdir=$srcdir ;; 11038 *) # Relative path. 11039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11040 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11041 esac 11042 11043 # Do not use `cd foo && pwd` to compute absolute paths, because 11044 # the directories may not exist. 11045 case `pwd` in 11046 .) ac_abs_builddir="$ac_dir";; 11047 *) 11048 case "$ac_dir" in 11049 .) ac_abs_builddir=`pwd`;; 11050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 11051 *) ac_abs_builddir=`pwd`/"$ac_dir";; 11052 esac;; 11053 esac 11054 case $ac_abs_builddir in 11055 .) ac_abs_top_builddir=${ac_top_builddir}.;; 11056 *) 11057 case ${ac_top_builddir}. in 11058 .) ac_abs_top_builddir=$ac_abs_builddir;; 11059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 11060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 11061 esac;; 11062 esac 11063 case $ac_abs_builddir in 11064 .) ac_abs_srcdir=$ac_srcdir;; 11065 *) 11066 case $ac_srcdir in 11067 .) ac_abs_srcdir=$ac_abs_builddir;; 11068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 11069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 11070 esac;; 11071 esac 11072 case $ac_abs_builddir in 11073 .) ac_abs_top_srcdir=$ac_top_srcdir;; 11074 *) 11075 case $ac_top_srcdir in 11076 .) ac_abs_top_srcdir=$ac_abs_builddir;; 11077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 11078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 11079 esac;; 11080 esac 11081 11082 11083 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 11084 echo "$as_me: executing $ac_dest commands" >&6;} 11085 case $ac_dest in 11086 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 11087 # Strip MF so we end up with the name of the file. 11088 mf=`echo "$mf" | sed -e 's/:.*$//'` 11089 # Check whether this is an Automake generated Makefile or not. 11090 # We used to match only the files named `Makefile.in', but 11091 # some people rename them; so instead we look at the file content. 11092 # Grep'ing the first line is not enough: some people post-process 11093 # each Makefile.in and add a new line on top of each file to say so. 11094 # So let's grep whole file. 11095 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 11096 dirpart=`(dirname "$mf") 2>/dev/null || 11097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11098 X"$mf" : 'X\(//\)[^/]' \| \ 11099 X"$mf" : 'X\(//\)$' \| \ 11100 X"$mf" : 'X\(/\)' \| \ 11101 . : '\(.\)' 2>/dev/null || 11102 echo X"$mf" | 11103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11104 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11105 /^X\(\/\/\)$/{ s//\1/; q; } 11106 /^X\(\/\).*/{ s//\1/; q; } 11107 s/.*/./; q'` 11108 else 11109 continue 11110 fi 11111 # Extract the definition of DEPDIR, am__include, and am__quote 11112 # from the Makefile without running `make'. 11113 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11114 test -z "$DEPDIR" && continue 11115 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11116 test -z "am__include" && continue 11117 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11118 # When using ansi2knr, U may be empty or an underscore; expand it 11119 U=`sed -n 's/^U = //p' < "$mf"` 11120 # Find all dependency output files, they are included files with 11121 # $(DEPDIR) in their names. We invoke sed twice because it is the 11122 # simplest approach to changing $(DEPDIR) to its actual value in the 11123 # expansion. 11124 for file in `sed -n " 11125 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11126 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11127 # Make sure the directory exists. 11128 test -f "$dirpart/$file" && continue 11129 fdir=`(dirname "$file") 2>/dev/null || 11130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11131 X"$file" : 'X\(//\)[^/]' \| \ 11132 X"$file" : 'X\(//\)$' \| \ 11133 X"$file" : 'X\(/\)' \| \ 11134 . : '\(.\)' 2>/dev/null || 11135 echo X"$file" | 11136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11137 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11138 /^X\(\/\/\)$/{ s//\1/; q; } 11139 /^X\(\/\).*/{ s//\1/; q; } 11140 s/.*/./; q'` 11141 { if $as_mkdir_p; then 11142 mkdir -p $dirpart/$fdir 11143 else 11144 as_dir=$dirpart/$fdir 11145 as_dirs= 11146 while test ! -d "$as_dir"; do 11147 as_dirs="$as_dir $as_dirs" 11148 as_dir=`(dirname "$as_dir") 2>/dev/null || 11149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11150 X"$as_dir" : 'X\(//\)[^/]' \| \ 11151 X"$as_dir" : 'X\(//\)$' \| \ 11152 X"$as_dir" : 'X\(/\)' \| \ 11153 . : '\(.\)' 2>/dev/null || 11154 echo X"$as_dir" | 11155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11156 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11157 /^X\(\/\/\)$/{ s//\1/; q; } 11158 /^X\(\/\).*/{ s//\1/; q; } 11159 s/.*/./; q'` 11160 done 11161 test ! -n "$as_dirs" || mkdir $as_dirs 11162 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 11163 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 11164 { (exit 1); exit 1; }; }; } 11165 11166 # echo "creating $dirpart/$file" 11167 echo '# dummy' > "$dirpart/$file" 47873 47874 case $ac_file$ac_mode in 47875 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 47876 # Older Autoconf quotes --file arguments for eval, but not when files 47877 # are listed without --file. Let's play safe and only enable the eval 47878 # if we detect the quoting. 47879 # TODO: see whether this extra hack can be removed once we start 47880 # requiring Autoconf 2.70 or later. 47881 case $CONFIG_FILES in #( 47882 *\'*) : 47883 eval set x "$CONFIG_FILES" ;; #( 47884 *) : 47885 set x $CONFIG_FILES ;; #( 47886 *) : 47887 ;; 47888 esac 47889 shift 47890 # Used to flag and report bootstrapping failures. 47891 am_rc=0 47892 for am_mf 47893 do 47894 # Strip MF so we end up with the name of the file. 47895 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 47896 # Check whether this is an Automake generated Makefile which includes 47897 # dependency-tracking related rules and includes. 47898 # Grep'ing the whole file directly is not great: AIX grep has a line 47899 # limit of 2048, but all sed's we know have understand at least 4000. 47900 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 47901 || continue 47902 am_dirpart=`$as_dirname -- "$am_mf" || 47903 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47904 X"$am_mf" : 'X\(//\)[^/]' \| \ 47905 X"$am_mf" : 'X\(//\)$' \| \ 47906 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 47907 printf "%s\n" X"$am_mf" | 47908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47909 s//\1/ 47910 q 47911 } 47912 /^X\(\/\/\)[^/].*/{ 47913 s//\1/ 47914 q 47915 } 47916 /^X\(\/\/\)$/{ 47917 s//\1/ 47918 q 47919 } 47920 /^X\(\/\).*/{ 47921 s//\1/ 47922 q 47923 } 47924 s/.*/./; q'` 47925 am_filepart=`$as_basename -- "$am_mf" || 47926 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 47927 X"$am_mf" : 'X\(//\)$' \| \ 47928 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 47929 printf "%s\n" X/"$am_mf" | 47930 sed '/^.*\/\([^/][^/]*\)\/*$/{ 47931 s//\1/ 47932 q 47933 } 47934 /^X\/\(\/\/\)$/{ 47935 s//\1/ 47936 q 47937 } 47938 /^X\/\(\/\).*/{ 47939 s//\1/ 47940 q 47941 } 47942 s/.*/./; q'` 47943 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 47944 && sed -e '/# am--include-marker/d' "$am_filepart" \ 47945 | $MAKE -f - am--depfiles" >&5 47946 (cd "$am_dirpart" \ 47947 && sed -e '/# am--include-marker/d' "$am_filepart" \ 47948 | $MAKE -f - am--depfiles) >&5 2>&5 47949 ac_status=$? 47950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47951 (exit $ac_status); } || am_rc=$? 11168 47952 done 11169 done 47953 if test $am_rc -ne 0; then 47954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 47955 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 47956 as_fn_error $? "Something went wrong bootstrapping makefile fragments 47957 for automatic dependency tracking. If GNU make was not used, consider 47958 re-running the configure script with MAKE=\"gmake\" (or whatever is 47959 necessary). You can also try re-running configure with the 47960 '--disable-dependency-tracking' option to at least be able to build 47961 the package (albeit without support for automatic dependency tracking). 47962 See 'config.log' for more details" "$LINENO" 5; } 47963 fi 47964 { am_dirpart=; unset am_dirpart;} 47965 { am_filepart=; unset am_filepart;} 47966 { am_mf=; unset am_mf;} 47967 { am_rc=; unset am_rc;} 47968 rm -f conftest-deps.mk 47969 } 11170 47970 ;; 11171 default-1)47971 "po-directories":C) 11172 47972 for ac_file in $CONFIG_FILES; do 11173 47973 # Support "outfile[:infile[:infile...]]" … … 11179 47979 # Adjust a relative srcdir. 11180 47980 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 11181 ac_dir_suffix= "/`echo "$ac_dir"|sed 's%^\./%%'`"47981 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 11182 47982 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 11183 47983 # In autoconf-2.13 it is called $ac_given_srcdir. … … 11189 47989 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 11190 47990 esac 47991 # Treat a directory as a PO directory if and only if it has a 47992 # POTFILES.in file. This allows packages to have multiple PO 47993 # directories under different names or in different locations. 11191 47994 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 11192 47995 rm -f "$ac_dir/POTFILES" 11193 47996 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 11194 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 11195 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 47997 gt_tab=`printf '\t'` 47998 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" 47999 POMAKEFILEDEPS="POTFILES.in" 48000 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 11196 48001 # on $ac_dir but don't depend on user-specified configuration 11197 48002 # parameters. 11198 48003 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 11199 48004 # The LINGUAS file contains the set of available languages. 11200 if test -n "$ ALL_LINGUAS"; then48005 if test -n "$OBSOLETE_ALL_LINGUAS"; then 11201 48006 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 11202 48007 fi 11203 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`11204 # Hide the ALL_LINGUAS assig ment from automake.48008 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 48009 # Hide the ALL_LINGUAS assignment from automake < 1.5. 11205 48010 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 48011 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 48012 else 48013 # The set of available languages was given in configure.in. 48014 # Hide the ALL_LINGUAS assignment from automake < 1.5. 48015 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 11206 48016 fi 48017 # Compute POFILES 48018 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 48019 # Compute UPDATEPOFILES 48020 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 48021 # Compute DUMMYPOFILES 48022 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 48023 # Compute GMOFILES 48024 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 11207 48025 case "$ac_given_srcdir" in 11208 48026 .) srcdirpre= ;; … … 11210 48028 esac 11211 48029 POFILES= 11212 GMOFILES=11213 48030 UPDATEPOFILES= 11214 48031 DUMMYPOFILES= 48032 GMOFILES= 11215 48033 for lang in $ALL_LINGUAS; do 11216 48034 POFILES="$POFILES $srcdirpre$lang.po" 11217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"11218 48035 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 11219 48036 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 48037 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 11220 48038 done 11221 48039 # CATALOGS depends on both $ac_dir and the user's LINGUAS … … 11252 48070 fi 11253 48071 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 11254 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@ GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"48072 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" 11255 48073 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 11256 48074 if test -f "$f"; then … … 11265 48083 esac 11266 48084 done ;; 11267 gettext-fix ) 11268 sed -e '/^mkinstalldirs *=/a\' \ 11269 -e "install_sh=$install_sh" \ 11270 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \ 11271 intl/Makefile > intl/Makefile.tmp 11272 mv intl/Makefile.tmp intl/Makefile 11273 sed -e '/^mkinstalldirs *=/a\' \ 11274 -e "install_sh=$install_sh" \ 11275 -e 's/^mkinstalldirs *=.*/mkinstalldirs=$(MKINSTALLDIRS)/' \ 11276 po/Makefile > po/Makefile.tmp 11277 mv po/Makefile.tmp po/Makefile ;; 48085 11278 48086 esac 11279 done 48087 done # for ac_tag 48088 48089 48090 as_fn_exit 0 11280 48091 _ACEOF 11281 11282 cat >>$CONFIG_STATUS <<\_ACEOF11283 11284 { (exit 0); exit 0; }11285 _ACEOF11286 chmod +x $CONFIG_STATUS11287 48092 ac_clean_files=$ac_clean_files_save 48093 48094 test $ac_write_fail = 0 || 48095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11288 48096 11289 48097 … … 11306 48114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11307 48115 # would make configure fail if this is the last instruction. 11308 $ac_cs_success || { (exit 1); exit 1; } 11309 fi 11310 48116 $ac_cs_success || as_fn_exit 1 48117 fi 48118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 48119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 48120 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 48121 fi 48122 48123
Note:
See TracChangeset
for help on using the changeset viewer.