| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.71 for GNU RCS 5.10.1. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 9 | # Inc. |
| 10 | # |
| 11 | # |
| 12 | # This configure script is free software; the Free Software Foundation |
| 13 | # gives unlimited permission to copy, distribute and modify it. |
| 14 | ## -------------------- ## |
| 15 | ## M4sh Initialization. ## |
| 16 | ## -------------------- ## |
| 17 | |
| 18 | # Be more Bourne compatible |
| 19 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20 | as_nop=: |
| 21 | if testscip-shell system . . test. ${ZSH_VERSION+y} && (emulate sh) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 22 | then : |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 26 | # is contrary to our usage. Disable this feature. |
| 27 | alias -g '${1+"$@"}'='"$@"' |
| 28 | setopt NO_GLOB_SUBST |
| 29 | else $as_nop |
| 30 | case `(set -o) 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in #( |
| 31 | *posix*) : |
| 32 | set -o posix ;; #( |
| 33 | *) : |
| 34 | ;; |
| 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 | |
| 52 | PS1='$ ' |
| 53 | PS2='> ' |
| 54 | PS4='+ ' |
| 55 | |
| 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/nullscip-shell filesystem . . `/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/nullscip-shell filesystem . . `/dev/null`.; then :; else exec 0</dev/nullscip-shell filesystem . . `/dev/null`.; fi |
| 74 | if (exec 3>&1) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then :; else exec 1>/dev/nullscip-shell filesystem . . `/dev/null`.; fi |
| 75 | if (exec 3>&2) ; then :; else exec 2>/dev/nullscip-shell filesystem . . `/dev/null`.; fi |
| 76 | |
| 77 | # The user is always right. |
| 78 | if ${PATH_SEPARATOR+false} :; then |
| 79 | PATH_SEPARATOR=: |
| 80 | (PATH='/bin;/binscip-shell filesystem . . `/bin;/bin`.'; FPATH=$PATH; shscip-shell system . . sh. -c :) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && { |
| 81 | (PATH='/bin:/binscip-shell filesystem . . `/bin:/bin`.'; FPATH=$PATH; shscip-shell system . . sh. -c :) >/dev/nullscip-shell filesystem . . `/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 |
| 93 | do |
| 94 | IFS=$as_save_IFS |
| 95 | case $as_dir in #((( |
| 96 | '') as_dir=./ ;; |
| 97 | */) ;; |
| 98 | *) as_dir=$as_dir/ ;; |
| 99 | esac |
| 100 | testscip-shell system . . 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 testscip-shell system . . test. "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if testscip-shell system . . test. ! -f "$as_myself"; then |
| 112 | printfscip-shell system . . 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 testscip-shell system . . test. x"${_as_can_reexec}" != xno && testscip-shell system . . 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/nullscip-shell filesystem . . `/dev/null`. |
| 126 | ENV=/dev/nullscip-shell filesystem . . `/dev/null`. |
| 127 | (unset BASH_ENV) >/dev/nullscip-shell filesystem . . `/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 | printfscip-shell system . . 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 testscip-shell system . . test. "x$CONFIG_SHELL" = x; then |
| 143 | as_bourne_compatible="as_nop=: |
| 144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 145 | then : |
| 146 | emulate sh |
| 147 | NULLCMD=: |
| 148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 149 | # is contrary to our usage. Disable this feature. |
| 150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 151 | setopt NO_GLOB_SUBST |
| 152 | else \$as_nop |
| 153 | case \`(set -o) 2>/dev/null\` in #( |
| 154 | *posix*) : |
| 155 | set -o posix ;; #( |
| 156 | *) : |
| 157 | ;; |
| 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 \$as_nop |
| 176 | exitcode=1; echo positional parameters were not saved. |
| 177 | fi |
| 178 | test x\$exitcode = x0 || exit 1 |
| 179 | blah=\$(echo \$(echo blah)) |
| 180 | test x\"\$blah\" = xblah || exit 1 |
| 181 | test -x / || exit 1" |
| 182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 186 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 187 | if (eval "$as_required") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 188 | then : |
| 189 | as_have_required=yes |
| 190 | else $as_nop |
| 191 | as_have_required=no |
| 192 | fi |
| 193 | if testscip-shell system . . test. x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 194 | then : |
| 195 | |
| 196 | else $as_nop |
| 197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 | as_found=false |
| 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 | do |
| 201 | IFS=$as_save_IFS |
| 202 | case $as_dir in #((( |
| 203 | '') as_dir=./ ;; |
| 204 | */) ;; |
| 205 | *) as_dir=$as_dir/ ;; |
| 206 | esac |
| 207 | as_found=: |
| 208 | case $as_dir in #( |
| 209 | /*) |
| 210 | for as_base in sh bash ksh sh5; do |
| 211 | # Try only shells that exist, to save several forks. |
| 212 | as_shell=$as_dir$as_base |
| 213 | if { testscip-shell system . . test. -f "$as_shell" || testscip-shell system . . test. -f "$as_shell.exe"; } && |
| 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 215 | then : |
| 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 218 | then : |
| 219 | break 2 |
| 220 | fi |
| 221 | fi |
| 222 | done;; |
| 223 | esac |
| 224 | as_found=false |
| 225 | done |
| 226 | IFS=$as_save_IFS |
| 227 | if $as_found |
| 228 | then : |
| 229 | |
| 230 | else $as_nop |
| 231 | if { testscip-shell system . . test. -f "$SHELL" || testscip-shell system . . test. -f "$SHELL.exe"; } && |
| 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 233 | then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi |
| 236 | fi |
| 237 | |
| 238 | |
| 239 | if testscip-shell system . . test. "x$CONFIG_SHELL" != x |
| 240 | then : |
| 241 | export CONFIG_SHELL |
| 242 | # We cannot yet assume a decent shell, so we have to provide a |
| 243 | # neutralization value for shells without unset; and this also |
| 244 | # works around shells that cannot unset nonexistent variables. |
| 245 | # Preserve -v and -x to the replacement shell. |
| 246 | BASH_ENV=/dev/nullscip-shell filesystem . . `/dev/null`. |
| 247 | ENV=/dev/nullscip-shell filesystem . . `/dev/null`. |
| 248 | (unset BASH_ENV) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && unset BASH_ENV ENV |
| 249 | case $- in # (((( |
| 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 251 | *v* ) as_opts=-v ;; |
| 252 | *x* ) as_opts=-x ;; |
| 253 | * ) as_opts= ;; |
| 254 | esac |
| 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 257 | # out after a failed `exec'. |
| 258 | printfscip-shell system . . printf. "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 259 | exit 255 |
| 260 | fi |
| 261 | |
| 262 | if testscip-shell system . . test. x$as_have_required = xno |
| 263 | then : |
| 264 | printfscip-shell system . . printf. "%s\n" "$0: This script requires a shell more modern than all" |
| 265 | printfscip-shell system . . printf. "%s\n" "$0: the shells that I found on your system." |
| 266 | if testscip-shell system . . test. ${ZSH_VERSION+y} ; then |
| 267 | printfscip-shell system . . printf. "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 | printfscip-shell system . . printf. "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 269 | else |
| 270 | printfscip-shell system . . printf. "%s\n" "$0: Please tell [email protected] and [email protected] |
| 271 | $0: about your system, including any error possibly output |
| 272 | $0: before this message. Then install a modern shell, or |
| 273 | $0: manually run the script under such a shell if you do |
| 274 | $0: have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi |
| 278 | fi |
| 279 | fi |
| 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 | export SHELL |
| 282 | # Unset more variables known to interfere with behavior of common tools. |
| 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 | |
| 286 | ## --------------------- ## |
| 287 | ## M4sh Shell Functions. ## |
| 288 | ## --------------------- ## |
| 289 | # as_fn_unset VAR |
| 290 | # --------------- |
| 291 | # Portably unset VAR. |
| 292 | as_fn_unsetscip-shell shell shell-project 0.0.0 as_fn_unset(). () |
| 293 | { |
| 294 | { eval $1=; unset $1;} |
| 295 | } |
| 296 | as_unset=as_fn_unset |
| 297 | |
| 298 | |
| 299 | # as_fn_set_status STATUS |
| 300 | # ----------------------- |
| 301 | # Set $? to STATUS, without forking. |
| 302 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). () |
| 303 | { |
| 304 | return $1 |
| 305 | } # as_fn_set_status |
| 306 | |
| 307 | # as_fn_exit STATUS |
| 308 | # ----------------- |
| 309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 310 | as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). () |
| 311 | { |
| 312 | set +e |
| 313 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $1 |
| 314 | exit $1 |
| 315 | } # as_fn_exit |
| 316 | # as_fn_nop |
| 317 | # --------- |
| 318 | # Do nothing but, unlike ":", preserve the value of $?. |
| 319 | as_fn_nopscip-shell shell shell-project 0.0.0 as_fn_nop(). () |
| 320 | { |
| 321 | return $? |
| 322 | } |
| 323 | as_nop=as_fn_nop |
| 324 | |
| 325 | # as_fn_mkdir_p |
| 326 | # ------------- |
| 327 | # Create "$as_dir" as a directory, including parents if necessary. |
| 328 | as_fn_mkdir_pscip-shell shell shell-project 0.0.0 as_fn_mkdir_p(). () |
| 329 | { |
| 330 | |
| 331 | case $as_dir in #( |
| 332 | -*) as_dir=./$as_dir;; |
| 333 | esac |
| 334 | testscip-shell system . . test. -d "$as_dir" || eval $as_mkdir_p || { |
| 335 | as_dirs= |
| 336 | while :; do |
| 337 | case $as_dir in #( |
| 338 | *\'*) as_qdir=`printfscip-shell system . . printf. "%s\n" "$as_dir" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"`;; #'( |
| 339 | *) as_qdir=$as_dir;; |
| 340 | esac |
| 341 | as_dirs="'$as_qdir' $as_dirs" |
| 342 | as_dir=`$as_dirname -- "$as_dir" || |
| 343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 344 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 345 | X"$as_dir" : 'X\(//\)$' \| \ |
| 346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 347 | printfscip-shell system . . printf. "%s\n" X"$as_dir" | |
| 348 | sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 349 | s//\1/ |
| 350 | q |
| 351 | } |
| 352 | /^X\(\/\/\)[^/].*/{ |
| 353 | s//\1/ |
| 354 | q |
| 355 | } |
| 356 | /^X\(\/\/\)$/{ |
| 357 | s//\1/ |
| 358 | q |
| 359 | } |
| 360 | /^X\(\/\).*/{ |
| 361 | s//\1/ |
| 362 | q |
| 363 | } |
| 364 | s/.*/./; q'` |
| 365 | testscip-shell system . . test. -d "$as_dir" && break |
| 366 | done |
| 367 | testscip-shell system . . test. -z "$as_dirs" || eval "mkdir $as_dirs" |
| 368 | } || testscip-shell system . . test. -d "$as_dir" || as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot create directory $as_dir" |
| 369 | |
| 370 | |
| 371 | } # as_fn_mkdir_p |
| 372 | |
| 373 | # as_fn_executable_p FILE |
| 374 | # ----------------------- |
| 375 | # Test if FILE is an executable regular file. |
| 376 | as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). () |
| 377 | { |
| 378 | testscip-shell system . . test. -f "$1" && testscip-shell system . . test. -x "$1" |
| 379 | } # as_fn_executable_p |
| 380 | # as_fn_append VAR VALUE |
| 381 | # ---------------------- |
| 382 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 383 | # advantage of any shell optimizations that allow amortized linear growth over |
| 384 | # repeated appends, instead of the typical quadratic growth present in naive |
| 385 | # implementations. |
| 386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 387 | then : |
| 388 | eval 'as_fn_append () |
| 389 | { |
| 390 | eval $1+=\$2 |
| 391 | }' |
| 392 | else $as_nop |
| 393 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). () |
| 394 | { |
| 395 | eval $1=\$$1\$2 |
| 396 | } |
| 397 | fi # as_fn_append |
| 398 | |
| 399 | # as_fn_arith ARG... |
| 400 | # ------------------ |
| 401 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 403 | # must be portable across $(()) and expr. |
| 404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 405 | then : |
| 406 | eval 'as_fn_arith () |
| 407 | { |
| 408 | as_val=$(( $* )) |
| 409 | }' |
| 410 | else $as_nop |
| 411 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). () |
| 412 | { |
| 413 | as_val=`exprscip-shell system . . expr. "$@" || testscip-shell system . . test. $? -eq 1` |
| 414 | } |
| 415 | fi # as_fn_arith |
| 416 | |
| 417 | # as_fn_nop |
| 418 | # --------- |
| 419 | # Do nothing but, unlike ":", preserve the value of $?. |
| 420 | as_fn_nopscip-shell shell shell-project 0.0.0 as_fn_nop(). () |
| 421 | { |
| 422 | return $? |
| 423 | } |
| 424 | as_nop=as_fn_nop |
| 425 | |
| 426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 427 | # ---------------------------------------- |
| 428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 429 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 430 | # script with STATUS, using 1 if that was 0. |
| 431 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). () |
| 432 | { |
| 433 | as_status=$1; testscip-shell system . . test. $as_status -eq 0 && as_status=1 |
| 434 | if testscip-shell system . . test. "$4"; then |
| 435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 436 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 437 | fi |
| 438 | printfscip-shell system . . printf. "%s\n" "$as_me: error: $2" >&2 |
| 439 | as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). $as_status |
| 440 | } # as_fn_error |
| 441 | |
| 442 | if exprscip-shell system . . expr. a : '\(a\)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 443 | testscip-shell system . . test. "X`exprscip-shell system . . expr. 00001 : '.*\(...\)'`" = X001; then |
| 444 | as_expr=expr |
| 445 | else |
| 446 | as_expr=false |
| 447 | fi |
| 448 | |
| 449 | if (basenamescip-shell system . . basename. -- /scip-shell filesystem . . `/`.) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && testscip-shell system . . test. "X`basenamescip-shell system . . basename. -- /scip-shell filesystem . . `/`. 2>&1`" = "X/"; then |
| 450 | as_basename=basename |
| 451 | else |
| 452 | as_basename=false |
| 453 | fi |
| 454 | |
| 455 | if (as_dir=`dirnamescip-shell system . . dirname. -- /scip-shell filesystem . . `/`.` && testscip-shell system . . test. "X$as_dir" = X/) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 456 | as_dirname=dirname |
| 457 | else |
| 458 | as_dirname=false |
| 459 | fi |
| 460 | |
| 461 | as_me=`$as_basename -- "$0" || |
| 462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 463 | X"$0" : 'X\(//\)$' \| \ |
| 464 | X"$0" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 465 | printfscip-shell system . . printf. "%s\n" X/"$0" | |
| 466 | sedscip-shell system . . sed. '/^.*\/\([^/][^/]*\)\/*$/{ |
| 467 | s//\1/ |
| 468 | q |
| 469 | } |
| 470 | /^X\/\(\/\/\)$/{ |
| 471 | s//\1/ |
| 472 | q |
| 473 | } |
| 474 | /^X\/\(\/\).*/{ |
| 475 | s//\1/ |
| 476 | q |
| 477 | } |
| 478 | s/.*/./; q'` |
| 479 | |
| 480 | # Avoid depending upon Character Ranges. |
| 481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 484 | as_cr_digits='0123456789' |
| 485 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 486 | |
| 487 | |
| 488 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 489 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 490 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 491 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 492 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 493 | sedscip-shell system . . sed. -n ' |
| 494 | p |
| 495 | /[$]LINENO/= |
| 496 | ' <$as_myself | |
| 497 | sedscip-shell system . . sed. ' |
| 498 | s/[$]LINENO.*/&-/ |
| 499 | t lineno |
| 500 | b |
| 501 | :lineno |
| 502 | N |
| 503 | :loop |
| 504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 505 | t loop |
| 506 | s/-\n.*// |
| 507 | ' >$as_me.lineno && |
| 508 | chmodscip-shell system . . chmod. +x "$as_me.lineno" || |
| 509 | { printfscip-shell system . . printf. "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). 1; } |
| 510 | |
| 511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 512 | # already done that, so ensure we don't try to do so again and fall |
| 513 | # in an infinite loop. This has already happened in practice. |
| 514 | _as_can_reexec=no; export _as_can_reexec |
| 515 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 516 | # (the dirname of $[0] is not the place where we might find the |
| 517 | # original and so on. Autoconf is especially sensitive to this). |
| 518 | . "./$as_me.lineno" |
| 519 | # Exit status is that of the last command. |
| 520 | exit |
| 521 | } |
| 522 | |
| 523 | |
| 524 | # Determine whether it's possible to make 'echo' print without a newline. |
| 525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 526 | # for compatibility with existing Makefiles. |
| 527 | ECHO_C= ECHO_N= ECHO_T= |
| 528 | case `echoscip-shell system . . echo. -n x` in #((((( |
| 529 | -n*) |
| 530 | case `echoscip-shell system . . echo. 'xy\c'` in |
| 531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 532 | xy) ECHO_C='\c';; |
| 533 | *) echoscip-shell system . . echo. `echoscip-shell system . . echo. ksh88 bug on AIX 6.1` > /dev/nullscip-shell filesystem . . `/dev/null`. |
| 534 | ECHO_T=' ';; |
| 535 | esac;; |
| 536 | *) |
| 537 | ECHO_N='-n';; |
| 538 | esac |
| 539 | |
| 540 | # For backward compatibility with old third-party macros, we provide |
| 541 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 543 | as_echo='printf %s\n' |
| 544 | as_echo_n='printf %s' |
| 545 | |
| 546 | |
| 547 | rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.file |
| 548 | if testscip-shell system . . test. -d conf$$.dir; then |
| 549 | rmscip-shell system . . rm. -f conf$$.dir/conf$$.file |
| 550 | else |
| 551 | rmscip-shell system . . rm. -f conf$$.dir |
| 552 | mkdirscip-shell system . . mkdir. conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 553 | fi |
| 554 | if (echoscip-shell system . . echo. >conf$$.file) 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 555 | if lnscip-shell system . . ln. -s conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 556 | as_ln_s='ln -s' |
| 557 | # ... but there are two gotchas: |
| 558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 560 | # In both cases, we have to default to `cp -pR'. |
| 561 | lnscip-shell system . . ln. -s conf$$.file conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`. && testscip-shell system . . test. ! -f conf$$.exe || |
| 562 | as_ln_s='cp -pR' |
| 563 | elif lnscip-shell system . . ln. conf$$.file conf$$ 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 564 | as_ln_s=ln |
| 565 | else |
| 566 | as_ln_s='cp -pR' |
| 567 | fi |
| 568 | else |
| 569 | as_ln_s='cp -pR' |
| 570 | fi |
| 571 | rmscip-shell system . . rm. -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 572 | rmdirscip-shell system . . rmdir. conf$$.dir 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 573 | |
| 574 | if mkdirscip-shell system . . mkdir. -p . 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 575 | as_mkdir_p='mkdir -p "$as_dir"' |
| 576 | else |
| 577 | testscip-shell system . . test. -d ./-p && rmdirscip-shell system . . rmdir. ./-p |
| 578 | as_mkdir_p=false |
| 579 | fi |
| 580 | |
| 581 | as_test_x='test -x' |
| 582 | as_executable_p=as_fn_executable_p |
| 583 | |
| 584 | # Sed expression to map a string onto a valid CPP name. |
| 585 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 586 | |
| 587 | # Sed expression to map a string onto a valid variable name. |
| 588 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 589 | |
| 590 | |
| 591 | testscip-shell system . . test. -n "$DJDIR" || exec 7<&0 </dev/nullscip-shell filesystem . . `/dev/null`. |
| 592 | exec 6>&1 |
| 593 | |
| 594 | # Name of the host. |
| 595 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 596 | # so uname gets run too. |
| 597 | ac_hostname=`(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q` |
| 598 | |
| 599 | # |
| 600 | # Initializations. |
| 601 | # |
| 602 | ac_default_prefix=/usr/localscip-shell filesystem . . `/usr/local`. |
| 603 | ac_clean_files= |
| 604 | ac_config_libobj_dir=. |
| 605 | LIBOBJS= |
| 606 | cross_compiling=no |
| 607 | subdirs= |
| 608 | MFLAGS= |
| 609 | MAKEFLAGS= |
| 610 | |
| 611 | # Identity of this package. |
| 612 | PACKAGE_NAME='GNU RCS' |
| 613 | PACKAGE_TARNAME='rcs' |
| 614 | PACKAGE_VERSION='5.10.1' |
| 615 | PACKAGE_STRING='GNU RCS 5.10.1' |
| 616 | PACKAGE_BUGREPORT='[email protected]' |
| 617 | PACKAGE_URL='https://www.gnu.org/software/rcs/' |
| 618 | |
| 619 | # Factoring default headers for most tests. |
| 620 | ac_includes_default="\ |
| 621 | #include <stddef.h> |
| 622 | #ifdef HAVE_STDIO_H |
| 623 | # include <stdio.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_STDLIB_H |
| 626 | # include <stdlib.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STRING_H |
| 629 | # include <string.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_INTTYPES_H |
| 632 | # include <inttypes.h> |
| 633 | #endif |
| 634 | #ifdef HAVE_STDINT_H |
| 635 | # include <stdint.h> |
| 636 | #endif |
| 637 | #ifdef HAVE_STRINGS_H |
| 638 | # include <strings.h> |
| 639 | #endif |
| 640 | #ifdef HAVE_SYS_TYPES_H |
| 641 | # include <sys/types.h> |
| 642 | #endif |
| 643 | #ifdef HAVE_SYS_STAT_H |
| 644 | # include <sys/stat.h> |
| 645 | #endif |
| 646 | #ifdef HAVE_UNISTD_H |
| 647 | # include <unistd.h> |
| 648 | #endif" |
| 649 | |
| 650 | ac_header_c_list= |
| 651 | gl_use_threads_default= |
| 652 | gl_use_winpthreads_default= |
| 653 | ac_func_c_list= |
| 654 | gl_getopt_required=POSIX |
| 655 | ac_subst_vars='gltests_LIBOBJDEPS |
| 656 | gltests_LTLIBOBJS |
| 657 | gltests_LIBOBJS |
| 658 | gl_LIBOBJDEPS |
| 659 | gl_LTLIBOBJS |
| 660 | gl_LIBOBJS |
| 661 | am__EXEEXT_FALSE |
| 662 | am__EXEEXT_TRUE |
| 663 | LTLIBOBJS |
| 664 | LIBOBJS |
| 665 | ABSFILENAMEGLOB |
| 666 | LIBGNU_LTLIBDEPS |
| 667 | LIBGNU_LIBDEPS |
| 668 | GL_CFLAG_GNULIB_WARNINGS |
| 669 | GL_CFLAG_ALLOW_WARNINGS |
| 670 | gltests_WITNESS |
| 671 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE |
| 672 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE |
| 673 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_FALSE |
| 674 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_TRUE |
| 675 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE |
| 676 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE |
| 677 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE |
| 678 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE |
| 679 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE |
| 680 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE |
| 681 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE |
| 682 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE |
| 683 | gl_GNULIB_ENABLED_tls_FALSE |
| 684 | gl_GNULIB_ENABLED_tls_TRUE |
| 685 | gl_GNULIB_ENABLED_threadlib_FALSE |
| 686 | gl_GNULIB_ENABLED_threadlib_TRUE |
| 687 | gl_GNULIB_ENABLED_tempname_FALSE |
| 688 | gl_GNULIB_ENABLED_tempname_TRUE |
| 689 | gl_GNULIB_ENABLED_sys_random_FALSE |
| 690 | gl_GNULIB_ENABLED_sys_random_TRUE |
| 691 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE |
| 692 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE |
| 693 | gl_GNULIB_ENABLED_strerror_FALSE |
| 694 | gl_GNULIB_ENABLED_strerror_TRUE |
| 695 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_FALSE |
| 696 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_TRUE |
| 697 | gl_GNULIB_ENABLED_stdalign_FALSE |
| 698 | gl_GNULIB_ENABLED_stdalign_TRUE |
| 699 | gl_GNULIB_ENABLED_sigprocmask_FALSE |
| 700 | gl_GNULIB_ENABLED_sigprocmask_TRUE |
| 701 | gl_GNULIB_ENABLED_signbit_FALSE |
| 702 | gl_GNULIB_ENABLED_signbit_TRUE |
| 703 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_FALSE |
| 704 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_TRUE |
| 705 | gl_GNULIB_ENABLED_rewinddir_FALSE |
| 706 | gl_GNULIB_ENABLED_rewinddir_TRUE |
| 707 | gl_GNULIB_ENABLED_raise_FALSE |
| 708 | gl_GNULIB_ENABLED_raise_TRUE |
| 709 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_FALSE |
| 710 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_TRUE |
| 711 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_FALSE |
| 712 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_TRUE |
| 713 | gl_GNULIB_ENABLED_pathmax_FALSE |
| 714 | gl_GNULIB_ENABLED_pathmax_TRUE |
| 715 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE |
| 716 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE |
| 717 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_FALSE |
| 718 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_TRUE |
| 719 | gl_GNULIB_ENABLED_openat_FALSE |
| 720 | gl_GNULIB_ENABLED_openat_TRUE |
| 721 | gl_GNULIB_ENABLED_mkdir_FALSE |
| 722 | gl_GNULIB_ENABLED_mkdir_TRUE |
| 723 | gl_GNULIB_ENABLED_memrchr_FALSE |
| 724 | gl_GNULIB_ENABLED_memrchr_TRUE |
| 725 | gl_GNULIB_ENABLED_math_FALSE |
| 726 | gl_GNULIB_ENABLED_math_TRUE |
| 727 | gl_GNULIB_ENABLED_malloca_FALSE |
| 728 | gl_GNULIB_ENABLED_malloca_TRUE |
| 729 | gl_GNULIB_ENABLED_lock_FALSE |
| 730 | gl_GNULIB_ENABLED_lock_TRUE |
| 731 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE |
| 732 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE |
| 733 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_FALSE |
| 734 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_TRUE |
| 735 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_FALSE |
| 736 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_TRUE |
| 737 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_FALSE |
| 738 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_TRUE |
| 739 | gl_GNULIB_ENABLED_getrandom_FALSE |
| 740 | gl_GNULIB_ENABLED_getrandom_TRUE |
| 741 | gl_GNULIB_ENABLED_getdtablesize_FALSE |
| 742 | gl_GNULIB_ENABLED_getdtablesize_TRUE |
| 743 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_FALSE |
| 744 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_TRUE |
| 745 | gl_GNULIB_ENABLED_fstatat_FALSE |
| 746 | gl_GNULIB_ENABLED_fstatat_TRUE |
| 747 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_FALSE |
| 748 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_TRUE |
| 749 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_FALSE |
| 750 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_TRUE |
| 751 | gl_GNULIB_ENABLED_fpucw_FALSE |
| 752 | gl_GNULIB_ENABLED_fpucw_TRUE |
| 753 | gl_GNULIB_ENABLED_fpieee_FALSE |
| 754 | gl_GNULIB_ENABLED_fpieee_TRUE |
| 755 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_FALSE |
| 756 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_TRUE |
| 757 | gl_GNULIB_ENABLED_fdopendir_FALSE |
| 758 | gl_GNULIB_ENABLED_fdopendir_TRUE |
| 759 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_FALSE |
| 760 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_TRUE |
| 761 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE |
| 762 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE |
| 763 | gl_GNULIB_ENABLED_fchdir_FALSE |
| 764 | gl_GNULIB_ENABLED_fchdir_TRUE |
| 765 | gl_GNULIB_ENABLED_dup2_FALSE |
| 766 | gl_GNULIB_ENABLED_dup2_TRUE |
| 767 | gl_GNULIB_ENABLED_dup_FALSE |
| 768 | gl_GNULIB_ENABLED_dup_TRUE |
| 769 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_FALSE |
| 770 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_TRUE |
| 771 | gl_GNULIB_ENABLED_dirfd_FALSE |
| 772 | gl_GNULIB_ENABLED_dirfd_TRUE |
| 773 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_FALSE |
| 774 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_TRUE |
| 775 | gl_GNULIB_ENABLED_cloexec_FALSE |
| 776 | gl_GNULIB_ENABLED_cloexec_TRUE |
| 777 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_FALSE |
| 778 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_TRUE |
| 779 | gl_GNULIB_ENABLED_chdir_FALSE |
| 780 | gl_GNULIB_ENABLED_chdir_TRUE |
| 781 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE |
| 782 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE |
| 783 | gl_GNULIB_ENABLED_assure_FALSE |
| 784 | gl_GNULIB_ENABLED_assure_TRUE |
| 785 | GL_COND_OBJ_WINDOWS_TLS_FALSE |
| 786 | GL_COND_OBJ_WINDOWS_TLS_TRUE |
| 787 | GL_COND_OBJ_WINDOWS_RWLOCK_FALSE |
| 788 | GL_COND_OBJ_WINDOWS_RWLOCK_TRUE |
| 789 | GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE |
| 790 | GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE |
| 791 | GL_COND_OBJ_WINDOWS_ONCE_FALSE |
| 792 | GL_COND_OBJ_WINDOWS_ONCE_TRUE |
| 793 | GL_COND_OBJ_WINDOWS_MUTEX_FALSE |
| 794 | GL_COND_OBJ_WINDOWS_MUTEX_TRUE |
| 795 | HAVE_SYS_RANDOM_H |
| 796 | NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H |
| 797 | NEXT_SYS_RANDOM_H |
| 798 | GL_COND_OBJ_STRERROR_OVERRIDE_FALSE |
| 799 | GL_COND_OBJ_STRERROR_OVERRIDE_TRUE |
| 800 | GL_COND_OBJ_STRERROR_FALSE |
| 801 | GL_COND_OBJ_STRERROR_TRUE |
| 802 | GL_COND_OBJ_STRDUP_FALSE |
| 803 | GL_COND_OBJ_STRDUP_TRUE |
| 804 | GL_GENERATE_STDALIGN_H_FALSE |
| 805 | GL_GENERATE_STDALIGN_H_TRUE |
| 806 | STDALIGN_H |
| 807 | GL_COND_OBJ_SIGPROCMASK_FALSE |
| 808 | GL_COND_OBJ_SIGPROCMASK_TRUE |
| 809 | GL_COND_OBJ_SIGNBIT3_FALSE |
| 810 | GL_COND_OBJ_SIGNBIT3_TRUE |
| 811 | GL_COND_OBJ_REWINDDIR_FALSE |
| 812 | GL_COND_OBJ_REWINDDIR_TRUE |
| 813 | GL_COND_OBJ_RAISE_FALSE |
| 814 | GL_COND_OBJ_RAISE_TRUE |
| 815 | GL_COND_OBJ_OPENAT_FALSE |
| 816 | GL_COND_OBJ_OPENAT_TRUE |
| 817 | GL_COND_OBJ_MKDIR_FALSE |
| 818 | GL_COND_OBJ_MKDIR_TRUE |
| 819 | GL_COND_OBJ_MEMRCHR_FALSE |
| 820 | GL_COND_OBJ_MEMRCHR_TRUE |
| 821 | NEXT_AS_FIRST_DIRECTIVE_MATH_H |
| 822 | NEXT_MATH_H |
| 823 | LTLIBMULTITHREAD |
| 824 | LIBMULTITHREAD |
| 825 | LTLIBTHREAD |
| 826 | LIBTHREAD |
| 827 | LIBSTDTHREAD |
| 828 | LIB_SCHED_YIELD |
| 829 | LIBPMULTITHREAD |
| 830 | LIBPTHREAD |
| 831 | GL_GNULIB_GETRANDOM |
| 832 | GL_COND_OBJ_GETRANDOM_FALSE |
| 833 | GL_COND_OBJ_GETRANDOM_TRUE |
| 834 | LIB_GETRANDOM |
| 835 | REPLACE_GETRANDOM |
| 836 | HAVE_GETRANDOM |
| 837 | GL_COND_OBJ_GETDTABLESIZE_FALSE |
| 838 | GL_COND_OBJ_GETDTABLESIZE_TRUE |
| 839 | GL_COND_OBJ_GETCWD_LGPL_FALSE |
| 840 | GL_COND_OBJ_GETCWD_LGPL_TRUE |
| 841 | GL_COND_OBJ_FSTATAT_FALSE |
| 842 | GL_COND_OBJ_FSTATAT_TRUE |
| 843 | GL_GNULIB_MDA_YN |
| 844 | GL_GNULIB_MDA_Y1 |
| 845 | GL_GNULIB_MDA_Y0 |
| 846 | GL_GNULIB_MDA_JN |
| 847 | GL_GNULIB_MDA_J1 |
| 848 | GL_GNULIB_MDA_J0 |
| 849 | GL_GNULIB_TRUNCL |
| 850 | GL_GNULIB_TRUNCF |
| 851 | GL_GNULIB_TRUNC |
| 852 | GL_GNULIB_TANHF |
| 853 | GL_GNULIB_TANL |
| 854 | GL_GNULIB_TANF |
| 855 | GL_GNULIB_SQRTL |
| 856 | GL_GNULIB_SQRTF |
| 857 | GL_GNULIB_SINHF |
| 858 | GL_GNULIB_SINL |
| 859 | GL_GNULIB_SINF |
| 860 | GL_GNULIB_SIGNBIT |
| 861 | GL_GNULIB_ROUNDL |
| 862 | GL_GNULIB_ROUNDF |
| 863 | GL_GNULIB_ROUND |
| 864 | GL_GNULIB_RINTL |
| 865 | GL_GNULIB_RINTF |
| 866 | GL_GNULIB_RINT |
| 867 | GL_GNULIB_REMAINDERL |
| 868 | GL_GNULIB_REMAINDERF |
| 869 | GL_GNULIB_REMAINDER |
| 870 | GL_GNULIB_POWF |
| 871 | GL_GNULIB_MODFL |
| 872 | GL_GNULIB_MODFF |
| 873 | GL_GNULIB_MODF |
| 874 | GL_GNULIB_LOGBL |
| 875 | GL_GNULIB_LOGBF |
| 876 | GL_GNULIB_LOGB |
| 877 | GL_GNULIB_LOG2L |
| 878 | GL_GNULIB_LOG2F |
| 879 | GL_GNULIB_LOG2 |
| 880 | GL_GNULIB_LOG1PL |
| 881 | GL_GNULIB_LOG1PF |
| 882 | GL_GNULIB_LOG1P |
| 883 | GL_GNULIB_LOG10L |
| 884 | GL_GNULIB_LOG10F |
| 885 | GL_GNULIB_LOG10 |
| 886 | GL_GNULIB_LOGL |
| 887 | GL_GNULIB_LOGF |
| 888 | GL_GNULIB_LOG |
| 889 | GL_GNULIB_LDEXPL |
| 890 | GL_GNULIB_LDEXPF |
| 891 | GL_GNULIB_ISNANL |
| 892 | GL_GNULIB_ISNAND |
| 893 | GL_GNULIB_ISNANF |
| 894 | GL_GNULIB_ISNAN |
| 895 | GL_GNULIB_ISINF |
| 896 | GL_GNULIB_ISFINITE |
| 897 | GL_GNULIB_ILOGBL |
| 898 | GL_GNULIB_ILOGBF |
| 899 | GL_GNULIB_ILOGB |
| 900 | GL_GNULIB_HYPOTL |
| 901 | GL_GNULIB_HYPOTF |
| 902 | GL_GNULIB_HYPOT |
| 903 | GL_GNULIB_FREXPL |
| 904 | GL_GNULIB_FREXP |
| 905 | GL_GNULIB_FREXPF |
| 906 | GL_GNULIB_FMODL |
| 907 | GL_GNULIB_FMODF |
| 908 | GL_GNULIB_FMOD |
| 909 | GL_GNULIB_FMAL |
| 910 | GL_GNULIB_FMAF |
| 911 | GL_GNULIB_FMA |
| 912 | GL_GNULIB_FLOORL |
| 913 | GL_GNULIB_FLOORF |
| 914 | GL_GNULIB_FLOOR |
| 915 | GL_GNULIB_FABSL |
| 916 | GL_GNULIB_FABSF |
| 917 | GL_GNULIB_EXPM1L |
| 918 | GL_GNULIB_EXPM1F |
| 919 | GL_GNULIB_EXPM1 |
| 920 | GL_GNULIB_EXP2L |
| 921 | GL_GNULIB_EXP2F |
| 922 | GL_GNULIB_EXP2 |
| 923 | GL_GNULIB_EXPL |
| 924 | GL_GNULIB_EXPF |
| 925 | GL_GNULIB_COSHF |
| 926 | GL_GNULIB_COSL |
| 927 | GL_GNULIB_COSF |
| 928 | GL_GNULIB_COPYSIGNL |
| 929 | GL_GNULIB_COPYSIGNF |
| 930 | GL_GNULIB_COPYSIGN |
| 931 | GL_GNULIB_CEILL |
| 932 | GL_GNULIB_CEILF |
| 933 | GL_GNULIB_CEIL |
| 934 | GL_GNULIB_CBRTL |
| 935 | GL_GNULIB_CBRTF |
| 936 | GL_GNULIB_CBRT |
| 937 | GL_GNULIB_ATAN2F |
| 938 | GL_GNULIB_ATANL |
| 939 | GL_GNULIB_ATANF |
| 940 | GL_GNULIB_ASINL |
| 941 | GL_GNULIB_ASINF |
| 942 | GL_GNULIB_ACOSL |
| 943 | GL_GNULIB_ACOSF |
| 944 | REPLACE_TRUNCL |
| 945 | REPLACE_TRUNCF |
| 946 | REPLACE_TRUNC |
| 947 | REPLACE_TANHF |
| 948 | REPLACE_TANF |
| 949 | REPLACE_SQRTL |
| 950 | REPLACE_SQRTF |
| 951 | REPLACE_SINHF |
| 952 | REPLACE_SINF |
| 953 | REPLACE_SIGNBIT_USING_BUILTINS |
| 954 | REPLACE_SIGNBIT |
| 955 | REPLACE_ROUNDL |
| 956 | REPLACE_ROUNDF |
| 957 | REPLACE_ROUND |
| 958 | REPLACE_RINTL |
| 959 | REPLACE_REMAINDERL |
| 960 | REPLACE_REMAINDERF |
| 961 | REPLACE_REMAINDER |
| 962 | REPLACE_NAN |
| 963 | REPLACE_MODFL |
| 964 | REPLACE_MODFF |
| 965 | REPLACE_MODF |
| 966 | REPLACE_LOGBL |
| 967 | REPLACE_LOGBF |
| 968 | REPLACE_LOGB |
| 969 | REPLACE_LOG2L |
| 970 | REPLACE_LOG2F |
| 971 | REPLACE_LOG2 |
| 972 | REPLACE_LOG1PL |
| 973 | REPLACE_LOG1PF |
| 974 | REPLACE_LOG1P |
| 975 | REPLACE_LOG10L |
| 976 | REPLACE_LOG10F |
| 977 | REPLACE_LOG10 |
| 978 | REPLACE_LOGL |
| 979 | REPLACE_LOGF |
| 980 | REPLACE_LOG |
| 981 | REPLACE_LDEXPL |
| 982 | REPLACE_ISNAN |
| 983 | REPLACE_ISINF |
| 984 | REPLACE_ISFINITE |
| 985 | REPLACE_ILOGBL |
| 986 | REPLACE_ILOGBF |
| 987 | REPLACE_ILOGB |
| 988 | REPLACE_HYPOTL |
| 989 | REPLACE_HYPOTF |
| 990 | REPLACE_HYPOT |
| 991 | REPLACE_HUGE_VAL |
| 992 | REPLACE_FREXPL |
| 993 | REPLACE_FREXP |
| 994 | REPLACE_FREXPF |
| 995 | REPLACE_FMODL |
| 996 | REPLACE_FMODF |
| 997 | REPLACE_FMOD |
| 998 | REPLACE_FMAL |
| 999 | REPLACE_FMAF |
| 1000 | REPLACE_FMA |
| 1001 | REPLACE_FLOORL |
| 1002 | REPLACE_FLOORF |
| 1003 | REPLACE_FLOOR |
| 1004 | REPLACE_FABSL |
| 1005 | REPLACE_EXP2L |
| 1006 | REPLACE_EXP2 |
| 1007 | REPLACE_EXPM1L |
| 1008 | REPLACE_EXPM1F |
| 1009 | REPLACE_EXPM1 |
| 1010 | REPLACE_EXPL |
| 1011 | REPLACE_EXPF |
| 1012 | REPLACE_COSHF |
| 1013 | REPLACE_COSF |
| 1014 | REPLACE_CEILL |
| 1015 | REPLACE_CEILF |
| 1016 | REPLACE_CEIL |
| 1017 | REPLACE_CBRTL |
| 1018 | REPLACE_CBRTF |
| 1019 | REPLACE_ATAN2F |
| 1020 | REPLACE_ATANF |
| 1021 | REPLACE_ASINF |
| 1022 | REPLACE_ACOSF |
| 1023 | HAVE_DECL_TRUNCL |
| 1024 | HAVE_DECL_TRUNCF |
| 1025 | HAVE_DECL_TRUNC |
| 1026 | HAVE_DECL_TANL |
| 1027 | HAVE_DECL_SQRTL |
| 1028 | HAVE_DECL_SINL |
| 1029 | HAVE_DECL_ROUNDL |
| 1030 | HAVE_DECL_ROUNDF |
| 1031 | HAVE_DECL_ROUND |
| 1032 | HAVE_DECL_RINTF |
| 1033 | HAVE_DECL_REMAINDERL |
| 1034 | HAVE_DECL_REMAINDER |
| 1035 | HAVE_DECL_LOGB |
| 1036 | HAVE_DECL_LOG2L |
| 1037 | HAVE_DECL_LOG2F |
| 1038 | HAVE_DECL_LOG2 |
| 1039 | HAVE_DECL_LOG10L |
| 1040 | HAVE_DECL_LOGL |
| 1041 | HAVE_DECL_LDEXPL |
| 1042 | HAVE_DECL_FREXPL |
| 1043 | HAVE_DECL_FLOORL |
| 1044 | HAVE_DECL_FLOORF |
| 1045 | HAVE_DECL_EXPM1L |
| 1046 | HAVE_DECL_EXP2L |
| 1047 | HAVE_DECL_EXP2F |
| 1048 | HAVE_DECL_EXP2 |
| 1049 | HAVE_DECL_EXPL |
| 1050 | HAVE_DECL_COSL |
| 1051 | HAVE_DECL_COPYSIGNF |
| 1052 | HAVE_DECL_CEILL |
| 1053 | HAVE_DECL_CEILF |
| 1054 | HAVE_DECL_CBRTL |
| 1055 | HAVE_DECL_CBRTF |
| 1056 | HAVE_DECL_ATANL |
| 1057 | HAVE_DECL_ASINL |
| 1058 | HAVE_DECL_ACOSL |
| 1059 | HAVE_TANHF |
| 1060 | HAVE_TANL |
| 1061 | HAVE_TANF |
| 1062 | HAVE_SQRTL |
| 1063 | HAVE_SQRTF |
| 1064 | HAVE_SINHF |
| 1065 | HAVE_SINL |
| 1066 | HAVE_SINF |
| 1067 | HAVE_RINTL |
| 1068 | HAVE_RINT |
| 1069 | HAVE_REMAINDERF |
| 1070 | HAVE_REMAINDER |
| 1071 | HAVE_POWF |
| 1072 | HAVE_MODFL |
| 1073 | HAVE_MODFF |
| 1074 | HAVE_LOGBL |
| 1075 | HAVE_LOGBF |
| 1076 | HAVE_LOG1PL |
| 1077 | HAVE_LOG1PF |
| 1078 | HAVE_LOG1P |
| 1079 | HAVE_LOG10L |
| 1080 | HAVE_LOG10F |
| 1081 | HAVE_LOGL |
| 1082 | HAVE_LOGF |
| 1083 | HAVE_LDEXPF |
| 1084 | HAVE_ISNANL |
| 1085 | HAVE_ISNAND |
| 1086 | HAVE_ISNANF |
| 1087 | HAVE_ILOGBL |
| 1088 | HAVE_ILOGBF |
| 1089 | HAVE_ILOGB |
| 1090 | HAVE_HYPOTL |
| 1091 | HAVE_HYPOTF |
| 1092 | HAVE_FREXPF |
| 1093 | HAVE_FMODL |
| 1094 | HAVE_FMODF |
| 1095 | HAVE_FMAL |
| 1096 | HAVE_FMAF |
| 1097 | HAVE_FMA |
| 1098 | HAVE_FABSL |
| 1099 | HAVE_FABSF |
| 1100 | HAVE_EXPM1F |
| 1101 | HAVE_EXPM1 |
| 1102 | HAVE_EXPL |
| 1103 | HAVE_EXPF |
| 1104 | HAVE_COSHF |
| 1105 | HAVE_COSL |
| 1106 | HAVE_COSF |
| 1107 | HAVE_COPYSIGNL |
| 1108 | HAVE_COPYSIGN |
| 1109 | HAVE_CBRTL |
| 1110 | HAVE_CBRTF |
| 1111 | HAVE_CBRT |
| 1112 | HAVE_ATAN2F |
| 1113 | HAVE_ATANL |
| 1114 | HAVE_ATANF |
| 1115 | HAVE_ASINL |
| 1116 | HAVE_ASINF |
| 1117 | HAVE_ACOSL |
| 1118 | HAVE_ACOSF |
| 1119 | GL_COND_OBJ_FDOPENDIR_FALSE |
| 1120 | GL_COND_OBJ_FDOPENDIR_TRUE |
| 1121 | GL_COND_OBJ_FCHDIR_FALSE |
| 1122 | GL_COND_OBJ_FCHDIR_TRUE |
| 1123 | GL_COND_OBJ_DUP2_FALSE |
| 1124 | GL_COND_OBJ_DUP2_TRUE |
| 1125 | GL_COND_OBJ_DUP_FALSE |
| 1126 | GL_COND_OBJ_DUP_TRUE |
| 1127 | GL_COND_OBJ_DIRFD_FALSE |
| 1128 | GL_COND_OBJ_DIRFD_TRUE |
| 1129 | GL_COND_OBJ_CHDIR_LONG_FALSE |
| 1130 | GL_COND_OBJ_CHDIR_LONG_TRUE |
| 1131 | GL_GNULIB_MDA_WCSDUP |
| 1132 | GL_GNULIB_WCSFTIME |
| 1133 | GL_GNULIB_WCSWIDTH |
| 1134 | GL_GNULIB_WCSTOK |
| 1135 | GL_GNULIB_WCSSTR |
| 1136 | GL_GNULIB_WCSPBRK |
| 1137 | GL_GNULIB_WCSSPN |
| 1138 | GL_GNULIB_WCSCSPN |
| 1139 | GL_GNULIB_WCSRCHR |
| 1140 | GL_GNULIB_WCSCHR |
| 1141 | GL_GNULIB_WCSDUP |
| 1142 | GL_GNULIB_WCSXFRM |
| 1143 | GL_GNULIB_WCSCOLL |
| 1144 | GL_GNULIB_WCSNCASECMP |
| 1145 | GL_GNULIB_WCSCASECMP |
| 1146 | GL_GNULIB_WCSNCMP |
| 1147 | GL_GNULIB_WCSCMP |
| 1148 | GL_GNULIB_WCSNCAT |
| 1149 | GL_GNULIB_WCSCAT |
| 1150 | GL_GNULIB_WCPNCPY |
| 1151 | GL_GNULIB_WCSNCPY |
| 1152 | GL_GNULIB_WCPCPY |
| 1153 | GL_GNULIB_WCSCPY |
| 1154 | GL_GNULIB_WCSNLEN |
| 1155 | GL_GNULIB_WCSLEN |
| 1156 | GL_GNULIB_WMEMSET |
| 1157 | GL_GNULIB_WMEMPCPY |
| 1158 | GL_GNULIB_WMEMMOVE |
| 1159 | GL_GNULIB_WMEMCPY |
| 1160 | GL_GNULIB_WMEMCMP |
| 1161 | GL_GNULIB_WMEMCHR |
| 1162 | GL_GNULIB_WCWIDTH |
| 1163 | GL_GNULIB_WCSNRTOMBS |
| 1164 | GL_GNULIB_WCSRTOMBS |
| 1165 | GL_GNULIB_WCRTOMB |
| 1166 | GL_GNULIB_MBSNRTOWCS |
| 1167 | GL_GNULIB_MBSRTOWCS |
| 1168 | GL_GNULIB_MBRLEN |
| 1169 | GL_GNULIB_MBRTOWC |
| 1170 | GL_GNULIB_MBSINIT |
| 1171 | GL_GNULIB_WCTOB |
| 1172 | GL_GNULIB_BTOWC |
| 1173 | HAVE_CRTDEFS_H |
| 1174 | HAVE_WINT_T |
| 1175 | NEXT_AS_FIRST_DIRECTIVE_WCHAR_H |
| 1176 | NEXT_WCHAR_H |
| 1177 | REPLACE_WCSTOK |
| 1178 | REPLACE_WCSFTIME |
| 1179 | REPLACE_WCSWIDTH |
| 1180 | REPLACE_WCWIDTH |
| 1181 | REPLACE_WCSNRTOMBS |
| 1182 | REPLACE_WCSRTOMBS |
| 1183 | REPLACE_WCRTOMB |
| 1184 | REPLACE_MBSNRTOWCS |
| 1185 | REPLACE_MBSRTOWCS |
| 1186 | REPLACE_MBRLEN |
| 1187 | REPLACE_MBRTOWC |
| 1188 | REPLACE_MBSINIT |
| 1189 | REPLACE_WCTOB |
| 1190 | REPLACE_BTOWC |
| 1191 | REPLACE_MBSTATE_T |
| 1192 | HAVE_DECL_WCWIDTH |
| 1193 | HAVE_DECL_WCSDUP |
| 1194 | HAVE_DECL_WCTOB |
| 1195 | HAVE_WCSFTIME |
| 1196 | HAVE_WCSWIDTH |
| 1197 | HAVE_WCSTOK |
| 1198 | HAVE_WCSSTR |
| 1199 | HAVE_WCSPBRK |
| 1200 | HAVE_WCSSPN |
| 1201 | HAVE_WCSCSPN |
| 1202 | HAVE_WCSRCHR |
| 1203 | HAVE_WCSCHR |
| 1204 | HAVE_WCSDUP |
| 1205 | HAVE_WCSXFRM |
| 1206 | HAVE_WCSCOLL |
| 1207 | HAVE_WCSNCASECMP |
| 1208 | HAVE_WCSCASECMP |
| 1209 | HAVE_WCSNCMP |
| 1210 | HAVE_WCSCMP |
| 1211 | HAVE_WCSNCAT |
| 1212 | HAVE_WCSCAT |
| 1213 | HAVE_WCPNCPY |
| 1214 | HAVE_WCSNCPY |
| 1215 | HAVE_WCPCPY |
| 1216 | HAVE_WCSCPY |
| 1217 | HAVE_WCSNLEN |
| 1218 | HAVE_WCSLEN |
| 1219 | HAVE_WMEMSET |
| 1220 | HAVE_WMEMPCPY |
| 1221 | HAVE_WMEMMOVE |
| 1222 | HAVE_WMEMCPY |
| 1223 | HAVE_WMEMCMP |
| 1224 | HAVE_WMEMCHR |
| 1225 | HAVE_WCSNRTOMBS |
| 1226 | HAVE_WCSRTOMBS |
| 1227 | HAVE_WCRTOMB |
| 1228 | HAVE_MBSNRTOWCS |
| 1229 | HAVE_MBSRTOWCS |
| 1230 | HAVE_MBRLEN |
| 1231 | HAVE_MBRTOWC |
| 1232 | HAVE_MBSINIT |
| 1233 | HAVE_BTOWC |
| 1234 | GL_COND_OBJ_WAITPID_FALSE |
| 1235 | GL_COND_OBJ_WAITPID_TRUE |
| 1236 | HAVE_UTIME_H |
| 1237 | NEXT_AS_FIRST_DIRECTIVE_UTIME_H |
| 1238 | NEXT_UTIME_H |
| 1239 | GL_GNULIB_MDA_UTIME |
| 1240 | GL_GNULIB_UTIME |
| 1241 | GL_COND_OBJ_UTIME_FALSE |
| 1242 | GL_COND_OBJ_UTIME_TRUE |
| 1243 | REPLACE_UTIME |
| 1244 | HAVE_UTIME |
| 1245 | GL_COND_OBJ_UNLINK_FALSE |
| 1246 | GL_COND_OBJ_UNLINK_TRUE |
| 1247 | HAVE_UNISTD_H |
| 1248 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H |
| 1249 | NEXT_UNISTD_H |
| 1250 | GL_COND_OBJ_TZSET_FALSE |
| 1251 | GL_COND_OBJ_TZSET_TRUE |
| 1252 | GL_COND_OBJ_TIME_R_FALSE |
| 1253 | GL_COND_OBJ_TIME_R_TRUE |
| 1254 | GL_GNULIB_MDA_TZSET |
| 1255 | GL_GNULIB_TZSET |
| 1256 | GL_GNULIB_TIME_RZ |
| 1257 | GL_GNULIB_TIME_R |
| 1258 | GL_GNULIB_TIMESPEC_GETRES |
| 1259 | GL_GNULIB_TIMESPEC_GET |
| 1260 | GL_GNULIB_TIMEGM |
| 1261 | GL_GNULIB_STRPTIME |
| 1262 | GL_GNULIB_STRFTIME |
| 1263 | GL_GNULIB_NANOSLEEP |
| 1264 | GL_GNULIB_LOCALTIME |
| 1265 | GL_GNULIB_MKTIME |
| 1266 | GL_GNULIB_CTIME |
| 1267 | TIME_H_DEFINES_TIME_UTC |
| 1268 | UNISTD_H_DEFINES_STRUCT_TIMESPEC |
| 1269 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 1270 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 1271 | TIME_H_DEFINES_STRUCT_TIMESPEC |
| 1272 | NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 1273 | NEXT_TIME_H |
| 1274 | REPLACE_LOCALTIME |
| 1275 | REPLACE_GMTIME |
| 1276 | GNULIB_GETTIMEOFDAY |
| 1277 | REPLACE_TZSET |
| 1278 | REPLACE_TIMEGM |
| 1279 | REPLACE_STRFTIME |
| 1280 | REPLACE_NANOSLEEP |
| 1281 | REPLACE_MKTIME |
| 1282 | REPLACE_LOCALTIME_R |
| 1283 | REPLACE_CTIME |
| 1284 | HAVE_TIMEZONE_T |
| 1285 | HAVE_TIMESPEC_GETRES |
| 1286 | HAVE_TIMESPEC_GET |
| 1287 | HAVE_TIMEGM |
| 1288 | HAVE_STRPTIME |
| 1289 | HAVE_NANOSLEEP |
| 1290 | HAVE_DECL_LOCALTIME_R |
| 1291 | GL_GNULIB_WAITPID |
| 1292 | NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H |
| 1293 | NEXT_SYS_WAIT_H |
| 1294 | WINDOWS_STAT_INODES |
| 1295 | WINDOWS_64_BIT_OFF_T |
| 1296 | NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H |
| 1297 | NEXT_SYS_TYPES_H |
| 1298 | GL_COND_OBJ_STRTOK_R_FALSE |
| 1299 | GL_COND_OBJ_STRTOK_R_TRUE |
| 1300 | GL_COND_OBJ_STRSIGNAL_FALSE |
| 1301 | GL_COND_OBJ_STRSIGNAL_TRUE |
| 1302 | NEXT_AS_FIRST_DIRECTIVE_STRING_H |
| 1303 | NEXT_STRING_H |
| 1304 | GL_COND_OBJ_STPCPY_FALSE |
| 1305 | GL_COND_OBJ_STPCPY_TRUE |
| 1306 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 1307 | NEXT_STDLIB_H |
| 1308 | GL_COND_OBJ_STDIO_WRITE_FALSE |
| 1309 | GL_COND_OBJ_STDIO_WRITE_TRUE |
| 1310 | GL_COND_OBJ_STDIO_READ_FALSE |
| 1311 | GL_COND_OBJ_STDIO_READ_TRUE |
| 1312 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H |
| 1313 | NEXT_STDIO_H |
| 1314 | GL_GENERATE_STDINT_H_FALSE |
| 1315 | GL_GENERATE_STDINT_H_TRUE |
| 1316 | STDINT_H |
| 1317 | GL_GENERATE_STDDEF_H_FALSE |
| 1318 | GL_GENERATE_STDDEF_H_TRUE |
| 1319 | STDDEF_H |
| 1320 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 1321 | NEXT_STDDEF_H |
| 1322 | HAVE_WCHAR_T |
| 1323 | HAVE_MAX_ALIGN_T |
| 1324 | REPLACE_NULL |
| 1325 | GL_GENERATE_STDBOOL_H_FALSE |
| 1326 | GL_GENERATE_STDBOOL_H_TRUE |
| 1327 | STDBOOL_H |
| 1328 | HAVE__BOOL |
| 1329 | GL_GENERATE_STDARG_H_FALSE |
| 1330 | GL_GENERATE_STDARG_H_TRUE |
| 1331 | STDARG_H |
| 1332 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H |
| 1333 | NEXT_STDARG_H |
| 1334 | GL_COND_OBJ_STAT_FALSE |
| 1335 | GL_COND_OBJ_STAT_TRUE |
| 1336 | HAVE_FEATURES_H |
| 1337 | HAVE_SAME_LONG_DOUBLE_AS_DOUBLE |
| 1338 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H |
| 1339 | NEXT_SIGNAL_H |
| 1340 | GL_GNULIB_SIGACTION |
| 1341 | GL_GNULIB_SIGPROCMASK |
| 1342 | GL_GNULIB_SIGNAL_H_SIGPIPE |
| 1343 | GL_GNULIB_RAISE |
| 1344 | GL_GNULIB_PTHREAD_SIGMASK |
| 1345 | GL_COND_OBJ_SIGACTION_FALSE |
| 1346 | GL_COND_OBJ_SIGACTION_TRUE |
| 1347 | REPLACE_RAISE |
| 1348 | REPLACE_PTHREAD_SIGMASK |
| 1349 | HAVE_SIGHANDLER_T |
| 1350 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T |
| 1351 | HAVE_STRUCT_SIGACTION_SA_SIGACTION |
| 1352 | HAVE_SIGACTION |
| 1353 | HAVE_SIGINFO_T |
| 1354 | HAVE_SIGSET_T |
| 1355 | HAVE_RAISE |
| 1356 | HAVE_PTHREAD_SIGMASK |
| 1357 | HAVE_POSIX_SIGNALBLOCKING |
| 1358 | GL_COND_OBJ_SCANDIR_FALSE |
| 1359 | GL_COND_OBJ_SCANDIR_TRUE |
| 1360 | GL_COND_OBJ_REALLOCARRAY_FALSE |
| 1361 | GL_COND_OBJ_REALLOCARRAY_TRUE |
| 1362 | GL_COND_OBJ_READLINK_FALSE |
| 1363 | GL_COND_OBJ_READLINK_TRUE |
| 1364 | GL_COND_OBJ_READDIR_FALSE |
| 1365 | GL_COND_OBJ_READDIR_TRUE |
| 1366 | GL_COND_OBJ_PIPE_FALSE |
| 1367 | GL_COND_OBJ_PIPE_TRUE |
| 1368 | GL_COND_OBJ_OPENDIR_FALSE |
| 1369 | GL_COND_OBJ_OPENDIR_TRUE |
| 1370 | GL_COND_OBJ_OPEN_FALSE |
| 1371 | GL_COND_OBJ_OPEN_TRUE |
| 1372 | GL_GNULIB_MDA_TEMPNAM |
| 1373 | GL_GNULIB_MDA_PUTW |
| 1374 | GL_GNULIB_MDA_GETW |
| 1375 | GL_GNULIB_MDA_FILENO |
| 1376 | GL_GNULIB_MDA_FDOPEN |
| 1377 | GL_GNULIB_MDA_FCLOSEALL |
| 1378 | GL_GNULIB_VSPRINTF_POSIX |
| 1379 | GL_GNULIB_VSNPRINTF |
| 1380 | GL_GNULIB_VPRINTF_POSIX |
| 1381 | GL_GNULIB_VPRINTF |
| 1382 | GL_GNULIB_VFPRINTF_POSIX |
| 1383 | GL_GNULIB_VFPRINTF |
| 1384 | GL_GNULIB_VDPRINTF |
| 1385 | GL_GNULIB_VSCANF |
| 1386 | GL_GNULIB_VFSCANF |
| 1387 | GL_GNULIB_VASPRINTF |
| 1388 | GL_GNULIB_TMPFILE |
| 1389 | GL_GNULIB_STDIO_H_SIGPIPE |
| 1390 | GL_GNULIB_STDIO_H_NONBLOCKING |
| 1391 | GL_GNULIB_SPRINTF_POSIX |
| 1392 | GL_GNULIB_SNPRINTF |
| 1393 | GL_GNULIB_SCANF |
| 1394 | GL_GNULIB_RENAMEAT |
| 1395 | GL_GNULIB_RENAME |
| 1396 | GL_GNULIB_REMOVE |
| 1397 | GL_GNULIB_PUTS |
| 1398 | GL_GNULIB_PUTCHAR |
| 1399 | GL_GNULIB_PUTC |
| 1400 | GL_GNULIB_PRINTF_POSIX |
| 1401 | GL_GNULIB_PRINTF |
| 1402 | GL_GNULIB_POPEN |
| 1403 | GL_GNULIB_PERROR |
| 1404 | GL_GNULIB_PCLOSE |
| 1405 | GL_GNULIB_OBSTACK_PRINTF_POSIX |
| 1406 | GL_GNULIB_OBSTACK_PRINTF |
| 1407 | GL_GNULIB_GETLINE |
| 1408 | GL_GNULIB_GETDELIM |
| 1409 | GL_GNULIB_GETCHAR |
| 1410 | GL_GNULIB_GETC |
| 1411 | GL_GNULIB_FWRITE |
| 1412 | GL_GNULIB_FTELLO |
| 1413 | GL_GNULIB_FTELL |
| 1414 | GL_GNULIB_FSEEKO |
| 1415 | GL_GNULIB_FSEEK |
| 1416 | GL_GNULIB_FSCANF |
| 1417 | GL_GNULIB_FREOPEN |
| 1418 | GL_GNULIB_FREAD |
| 1419 | GL_GNULIB_FPUTS |
| 1420 | GL_GNULIB_FPUTC |
| 1421 | GL_GNULIB_FPURGE |
| 1422 | GL_GNULIB_FPRINTF_POSIX |
| 1423 | GL_GNULIB_FPRINTF |
| 1424 | GL_GNULIB_FOPEN_GNU |
| 1425 | GL_GNULIB_FOPEN |
| 1426 | GL_GNULIB_FGETS |
| 1427 | GL_GNULIB_FGETC |
| 1428 | GL_GNULIB_FFLUSH |
| 1429 | GL_GNULIB_FDOPEN |
| 1430 | GL_GNULIB_FCLOSE |
| 1431 | GL_GNULIB_DPRINTF |
| 1432 | REPLACE_VSPRINTF |
| 1433 | REPLACE_VSNPRINTF |
| 1434 | REPLACE_VPRINTF |
| 1435 | REPLACE_VFPRINTF |
| 1436 | REPLACE_VDPRINTF |
| 1437 | REPLACE_VASPRINTF |
| 1438 | REPLACE_TMPFILE |
| 1439 | REPLACE_STDIO_WRITE_FUNCS |
| 1440 | REPLACE_STDIO_READ_FUNCS |
| 1441 | REPLACE_SPRINTF |
| 1442 | REPLACE_SNPRINTF |
| 1443 | REPLACE_RENAMEAT |
| 1444 | REPLACE_RENAME |
| 1445 | REPLACE_REMOVE |
| 1446 | REPLACE_PRINTF |
| 1447 | REPLACE_POPEN |
| 1448 | REPLACE_PERROR |
| 1449 | REPLACE_OBSTACK_PRINTF |
| 1450 | REPLACE_GETLINE |
| 1451 | REPLACE_GETDELIM |
| 1452 | REPLACE_FTELLO |
| 1453 | REPLACE_FTELL |
| 1454 | REPLACE_FSEEKO |
| 1455 | REPLACE_FSEEK |
| 1456 | REPLACE_FREOPEN |
| 1457 | REPLACE_FPURGE |
| 1458 | REPLACE_FPRINTF |
| 1459 | REPLACE_FOPEN_FOR_FOPEN_GNU |
| 1460 | REPLACE_FOPEN |
| 1461 | REPLACE_FFLUSH |
| 1462 | REPLACE_FDOPEN |
| 1463 | REPLACE_FCLOSE |
| 1464 | REPLACE_DPRINTF |
| 1465 | HAVE_VDPRINTF |
| 1466 | HAVE_VASPRINTF |
| 1467 | HAVE_RENAMEAT |
| 1468 | HAVE_POPEN |
| 1469 | HAVE_PCLOSE |
| 1470 | HAVE_FTELLO |
| 1471 | HAVE_FSEEKO |
| 1472 | HAVE_DPRINTF |
| 1473 | HAVE_DECL_VSNPRINTF |
| 1474 | HAVE_DECL_SNPRINTF |
| 1475 | HAVE_DECL_OBSTACK_PRINTF |
| 1476 | HAVE_DECL_GETLINE |
| 1477 | HAVE_DECL_GETDELIM |
| 1478 | HAVE_DECL_FTELLO |
| 1479 | HAVE_DECL_FSEEKO |
| 1480 | HAVE_DECL_FPURGE |
| 1481 | HAVE_DECL_FCLOSEALL |
| 1482 | GL_COND_OBJ_OBSTACK_FALSE |
| 1483 | GL_COND_OBJ_OBSTACK_TRUE |
| 1484 | GL_COND_OBJ_MSVC_NOTHROW_FALSE |
| 1485 | GL_COND_OBJ_MSVC_NOTHROW_TRUE |
| 1486 | GL_COND_OBJ_MSVC_INVAL_FALSE |
| 1487 | GL_COND_OBJ_MSVC_INVAL_TRUE |
| 1488 | GL_COND_OBJ_MKSTEMP_FALSE |
| 1489 | GL_COND_OBJ_MKSTEMP_TRUE |
| 1490 | GL_COND_OBJ_MEMPCPY_FALSE |
| 1491 | GL_COND_OBJ_MEMPCPY_TRUE |
| 1492 | GL_GNULIB_MDA_STRDUP |
| 1493 | GL_GNULIB_MDA_MEMCCPY |
| 1494 | GL_GNULIB_STRVERSCMP |
| 1495 | GL_GNULIB_STRSIGNAL |
| 1496 | GL_GNULIB_SIGDESCR_NP |
| 1497 | GL_GNULIB_SIGABBREV_NP |
| 1498 | GL_GNULIB_STRERRORNAME_NP |
| 1499 | GL_GNULIB_STRERROR_R |
| 1500 | GL_GNULIB_STRERROR |
| 1501 | GL_GNULIB_MBSTOK_R |
| 1502 | GL_GNULIB_MBSSEP |
| 1503 | GL_GNULIB_MBSSPN |
| 1504 | GL_GNULIB_MBSPBRK |
| 1505 | GL_GNULIB_MBSCSPN |
| 1506 | GL_GNULIB_MBSCASESTR |
| 1507 | GL_GNULIB_MBSPCASECMP |
| 1508 | GL_GNULIB_MBSNCASECMP |
| 1509 | GL_GNULIB_MBSCASECMP |
| 1510 | GL_GNULIB_MBSSTR |
| 1511 | GL_GNULIB_MBSRCHR |
| 1512 | GL_GNULIB_MBSCHR |
| 1513 | GL_GNULIB_MBSNLEN |
| 1514 | GL_GNULIB_MBSLEN |
| 1515 | GL_GNULIB_STRTOK_R |
| 1516 | GL_GNULIB_STRCASESTR |
| 1517 | GL_GNULIB_STRSTR |
| 1518 | GL_GNULIB_STRSEP |
| 1519 | GL_GNULIB_STRPBRK |
| 1520 | GL_GNULIB_STRNLEN |
| 1521 | GL_GNULIB_STRNDUP |
| 1522 | GL_GNULIB_STRNCAT |
| 1523 | GL_GNULIB_STRDUP |
| 1524 | GL_GNULIB_STRCHRNUL |
| 1525 | GL_GNULIB_STPNCPY |
| 1526 | GL_GNULIB_STPCPY |
| 1527 | GL_GNULIB_RAWMEMCHR |
| 1528 | GL_GNULIB_MEMRCHR |
| 1529 | GL_GNULIB_MEMPCPY |
| 1530 | GL_GNULIB_MEMMEM |
| 1531 | GL_GNULIB_MEMCHR |
| 1532 | GL_GNULIB_FFSLL |
| 1533 | GL_GNULIB_FFSL |
| 1534 | GL_GNULIB_EXPLICIT_BZERO |
| 1535 | GL_COND_OBJ_MEMCHR_FALSE |
| 1536 | GL_COND_OBJ_MEMCHR_TRUE |
| 1537 | UNDEFINE_STRTOK_R |
| 1538 | REPLACE_STRSIGNAL |
| 1539 | REPLACE_STRERRORNAME_NP |
| 1540 | REPLACE_STRERROR_R |
| 1541 | REPLACE_STRERROR |
| 1542 | REPLACE_STRTOK_R |
| 1543 | REPLACE_STRCASESTR |
| 1544 | REPLACE_STRSTR |
| 1545 | REPLACE_STRNLEN |
| 1546 | REPLACE_STRNDUP |
| 1547 | REPLACE_STRNCAT |
| 1548 | REPLACE_STRDUP |
| 1549 | REPLACE_STRCHRNUL |
| 1550 | REPLACE_STPNCPY |
| 1551 | REPLACE_MEMMEM |
| 1552 | REPLACE_MEMCHR |
| 1553 | REPLACE_FFSLL |
| 1554 | HAVE_STRVERSCMP |
| 1555 | HAVE_DECL_STRSIGNAL |
| 1556 | HAVE_SIGDESCR_NP |
| 1557 | HAVE_SIGABBREV_NP |
| 1558 | HAVE_STRERRORNAME_NP |
| 1559 | HAVE_DECL_STRERROR_R |
| 1560 | HAVE_DECL_STRTOK_R |
| 1561 | HAVE_STRCASESTR |
| 1562 | HAVE_STRSEP |
| 1563 | HAVE_STRPBRK |
| 1564 | HAVE_DECL_STRNLEN |
| 1565 | HAVE_DECL_STRNDUP |
| 1566 | HAVE_DECL_STRDUP |
| 1567 | HAVE_STRCHRNUL |
| 1568 | HAVE_STPNCPY |
| 1569 | HAVE_STPCPY |
| 1570 | HAVE_RAWMEMCHR |
| 1571 | HAVE_DECL_MEMRCHR |
| 1572 | HAVE_MEMPCPY |
| 1573 | HAVE_DECL_MEMMEM |
| 1574 | HAVE_FFSLL |
| 1575 | HAVE_FFSL |
| 1576 | HAVE_EXPLICIT_BZERO |
| 1577 | HAVE_MBSLEN |
| 1578 | GL_COND_OBJ_LSTAT_FALSE |
| 1579 | GL_COND_OBJ_LSTAT_TRUE |
| 1580 | GL_GENERATE_LIMITS_H_FALSE |
| 1581 | GL_GENERATE_LIMITS_H_TRUE |
| 1582 | LIMITS_H |
| 1583 | GL_GNULIB_STRTOUMAX |
| 1584 | GL_GNULIB_STRTOIMAX |
| 1585 | GL_GNULIB_IMAXDIV |
| 1586 | GL_GNULIB_IMAXABS |
| 1587 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H |
| 1588 | NEXT_INTTYPES_H |
| 1589 | UINT64_MAX_EQ_ULONG_MAX |
| 1590 | UINT32_MAX_LT_UINTMAX_MAX |
| 1591 | PRIPTR_PREFIX |
| 1592 | INT64_MAX_EQ_LONG_MAX |
| 1593 | INT32_MAX_LT_INTMAX_MAX |
| 1594 | REPLACE_STRTOUMAX |
| 1595 | REPLACE_STRTOIMAX |
| 1596 | HAVE_IMAXDIV_T |
| 1597 | HAVE_DECL_STRTOUMAX |
| 1598 | HAVE_DECL_STRTOIMAX |
| 1599 | HAVE_DECL_IMAXDIV |
| 1600 | HAVE_DECL_IMAXABS |
| 1601 | HAVE_SYS_INTTYPES_H |
| 1602 | HAVE_SYS_BITYPES_H |
| 1603 | HAVE_C99_STDINT_H |
| 1604 | WINT_T_SUFFIX |
| 1605 | WCHAR_T_SUFFIX |
| 1606 | SIG_ATOMIC_T_SUFFIX |
| 1607 | SIZE_T_SUFFIX |
| 1608 | PTRDIFF_T_SUFFIX |
| 1609 | HAVE_SIGNED_WINT_T |
| 1610 | HAVE_SIGNED_WCHAR_T |
| 1611 | HAVE_SIGNED_SIG_ATOMIC_T |
| 1612 | BITSIZEOF_WINT_T |
| 1613 | BITSIZEOF_WCHAR_T |
| 1614 | BITSIZEOF_SIG_ATOMIC_T |
| 1615 | BITSIZEOF_SIZE_T |
| 1616 | BITSIZEOF_PTRDIFF_T |
| 1617 | APPLE_UNIVERSAL_BUILD |
| 1618 | HAVE_STDINT_H |
| 1619 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 1620 | NEXT_STDINT_H |
| 1621 | HAVE_SYS_TYPES_H |
| 1622 | HAVE_INTTYPES_H |
| 1623 | HAVE_WCHAR_H |
| 1624 | GNULIBHEADERS_OVERRIDE_WINT_T |
| 1625 | NEXT_AS_FIRST_DIRECTIVE_LIMITS_H |
| 1626 | NEXT_LIMITS_H |
| 1627 | GL_GNULIB_GETTIMEOFDAY |
| 1628 | GL_COND_OBJ_GETTIMEOFDAY_FALSE |
| 1629 | GL_COND_OBJ_GETTIMEOFDAY_TRUE |
| 1630 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H |
| 1631 | NEXT_SYS_TIME_H |
| 1632 | REPLACE_STRUCT_TIMEVAL |
| 1633 | REPLACE_GETTIMEOFDAY |
| 1634 | HAVE_SYS_TIME_H |
| 1635 | HAVE_STRUCT_TIMEVAL |
| 1636 | HAVE_GETTIMEOFDAY |
| 1637 | LTLIBINTL |
| 1638 | LIBINTL |
| 1639 | GL_COND_OBJ_GETOPT_FALSE |
| 1640 | GL_COND_OBJ_GETOPT_TRUE |
| 1641 | GL_GENERATE_GETOPT_CDEFS_H_FALSE |
| 1642 | GL_GENERATE_GETOPT_CDEFS_H_TRUE |
| 1643 | GETOPT_CDEFS_H |
| 1644 | GL_GENERATE_GETOPT_H_FALSE |
| 1645 | GL_GENERATE_GETOPT_H_TRUE |
| 1646 | GETOPT_H |
| 1647 | HAVE_SYS_CDEFS_H |
| 1648 | HAVE_GETOPT_H |
| 1649 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H |
| 1650 | NEXT_GETOPT_H |
| 1651 | LIB_GETLOGIN |
| 1652 | GL_COND_OBJ_GETLOGIN_R_FALSE |
| 1653 | GL_COND_OBJ_GETLOGIN_R_TRUE |
| 1654 | GL_COND_OBJ_GETCWD_FALSE |
| 1655 | GL_COND_OBJ_GETCWD_TRUE |
| 1656 | GL_COND_OBJ_FTRUNCATE_FALSE |
| 1657 | GL_COND_OBJ_FTRUNCATE_TRUE |
| 1658 | GL_GNULIB_MDA_UMASK |
| 1659 | GL_GNULIB_MDA_MKDIR |
| 1660 | GL_GNULIB_MDA_CHMOD |
| 1661 | GL_GNULIB_OVERRIDES_STRUCT_STAT |
| 1662 | GL_GNULIB_UTIMENSAT |
| 1663 | GL_GNULIB_STAT |
| 1664 | GL_GNULIB_MKNODAT |
| 1665 | GL_GNULIB_MKNOD |
| 1666 | GL_GNULIB_MKFIFOAT |
| 1667 | GL_GNULIB_MKFIFO |
| 1668 | GL_GNULIB_MKDIRAT |
| 1669 | GL_GNULIB_MKDIR |
| 1670 | GL_GNULIB_LSTAT |
| 1671 | GL_GNULIB_LCHMOD |
| 1672 | GL_GNULIB_GETUMASK |
| 1673 | GL_GNULIB_FUTIMENS |
| 1674 | GL_GNULIB_FSTATAT |
| 1675 | GL_GNULIB_FSTAT |
| 1676 | GL_GNULIB_FCHMODAT |
| 1677 | WINDOWS_64_BIT_ST_SIZE |
| 1678 | WINDOWS_STAT_TIMESPEC |
| 1679 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
| 1680 | NEXT_SYS_STAT_H |
| 1681 | GL_COND_OBJ_FSTAT_FALSE |
| 1682 | GL_COND_OBJ_FSTAT_TRUE |
| 1683 | REPLACE_UTIMENSAT |
| 1684 | REPLACE_STAT |
| 1685 | REPLACE_MKNODAT |
| 1686 | REPLACE_MKNOD |
| 1687 | REPLACE_MKFIFOAT |
| 1688 | REPLACE_MKFIFO |
| 1689 | REPLACE_MKDIR |
| 1690 | REPLACE_LSTAT |
| 1691 | REPLACE_FUTIMENS |
| 1692 | REPLACE_FSTATAT |
| 1693 | REPLACE_FSTAT |
| 1694 | REPLACE_FCHMODAT |
| 1695 | HAVE_UTIMENSAT |
| 1696 | HAVE_MKNODAT |
| 1697 | HAVE_MKNOD |
| 1698 | HAVE_MKFIFOAT |
| 1699 | HAVE_MKFIFO |
| 1700 | HAVE_MKDIRAT |
| 1701 | HAVE_LSTAT |
| 1702 | HAVE_LCHMOD |
| 1703 | HAVE_GETUMASK |
| 1704 | HAVE_FUTIMENS |
| 1705 | HAVE_FSTATAT |
| 1706 | HAVE_FCHMODAT |
| 1707 | GL_COND_OBJ_FREE_FALSE |
| 1708 | GL_COND_OBJ_FREE_TRUE |
| 1709 | GL_COND_OBJ_ITOLD_FALSE |
| 1710 | GL_COND_OBJ_ITOLD_TRUE |
| 1711 | GL_COND_OBJ_FLOAT_FALSE |
| 1712 | GL_COND_OBJ_FLOAT_TRUE |
| 1713 | GL_GENERATE_FLOAT_H_FALSE |
| 1714 | GL_GENERATE_FLOAT_H_TRUE |
| 1715 | FLOAT_H |
| 1716 | REPLACE_ITOLD |
| 1717 | NEXT_AS_FIRST_DIRECTIVE_FLOAT_H |
| 1718 | NEXT_FLOAT_H |
| 1719 | NEXT_AS_FIRST_DIRECTIVE_FCNTL_H |
| 1720 | NEXT_FCNTL_H |
| 1721 | GL_GNULIB_MDA_OPEN |
| 1722 | GL_GNULIB_MDA_CREAT |
| 1723 | GL_GNULIB_OPENAT |
| 1724 | GL_GNULIB_OPEN |
| 1725 | GL_GNULIB_NONBLOCKING |
| 1726 | GL_GNULIB_FCNTL |
| 1727 | GL_GNULIB_CREAT |
| 1728 | GL_COND_OBJ_FCNTL_FALSE |
| 1729 | GL_COND_OBJ_FCNTL_TRUE |
| 1730 | REPLACE_OPENAT |
| 1731 | REPLACE_OPEN |
| 1732 | REPLACE_FCNTL |
| 1733 | REPLACE_CREAT |
| 1734 | HAVE_OPENAT |
| 1735 | HAVE_FCNTL |
| 1736 | GL_COND_OBJ_ERROR_FALSE |
| 1737 | GL_COND_OBJ_ERROR_TRUE |
| 1738 | GL_GENERATE_ERRNO_H_FALSE |
| 1739 | GL_GENERATE_ERRNO_H_TRUE |
| 1740 | ERRNO_H |
| 1741 | EOVERFLOW_VALUE |
| 1742 | EOVERFLOW_HIDDEN |
| 1743 | ENOLINK_VALUE |
| 1744 | ENOLINK_HIDDEN |
| 1745 | EMULTIHOP_VALUE |
| 1746 | EMULTIHOP_HIDDEN |
| 1747 | NEXT_AS_FIRST_DIRECTIVE_ERRNO_H |
| 1748 | NEXT_ERRNO_H |
| 1749 | HAVE_DIRENT_H |
| 1750 | NEXT_AS_FIRST_DIRECTIVE_DIRENT_H |
| 1751 | NEXT_DIRENT_H |
| 1752 | PRAGMA_COLUMNS |
| 1753 | PRAGMA_SYSTEM_HEADER |
| 1754 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 1755 | INCLUDE_NEXT |
| 1756 | GL_GNULIB_ALPHASORT |
| 1757 | GL_GNULIB_SCANDIR |
| 1758 | GL_GNULIB_FDOPENDIR |
| 1759 | GL_GNULIB_DIRFD |
| 1760 | GL_GNULIB_CLOSEDIR |
| 1761 | GL_GNULIB_REWINDDIR |
| 1762 | GL_GNULIB_READDIR |
| 1763 | GL_GNULIB_OPENDIR |
| 1764 | GL_COND_OBJ_CLOSEDIR_FALSE |
| 1765 | GL_COND_OBJ_CLOSEDIR_TRUE |
| 1766 | REPLACE_FDOPENDIR |
| 1767 | REPLACE_DIRFD |
| 1768 | REPLACE_CLOSEDIR |
| 1769 | REPLACE_OPENDIR |
| 1770 | HAVE_ALPHASORT |
| 1771 | HAVE_SCANDIR |
| 1772 | HAVE_FDOPENDIR |
| 1773 | HAVE_DECL_FDOPENDIR |
| 1774 | HAVE_DECL_DIRFD |
| 1775 | HAVE_CLOSEDIR |
| 1776 | HAVE_REWINDDIR |
| 1777 | HAVE_READDIR |
| 1778 | HAVE_OPENDIR |
| 1779 | GL_COND_OBJ_CLOSE_FALSE |
| 1780 | GL_COND_OBJ_CLOSE_TRUE |
| 1781 | HAVE_WINSOCK2_H |
| 1782 | HAVE_MSVC_INVALID_PARAMETER_HANDLER |
| 1783 | LIB_CLOCK_GETTIME |
| 1784 | GL_GENERATE_ALLOCA_H_FALSE |
| 1785 | GL_GENERATE_ALLOCA_H_TRUE |
| 1786 | ALLOCA_H |
| 1787 | HAVE_ALLOCA_H |
| 1788 | ALLOCA |
| 1789 | GL_GNULIB_MDA_WRITE |
| 1790 | GL_GNULIB_MDA_UNLINK |
| 1791 | GL_GNULIB_MDA_SWAB |
| 1792 | GL_GNULIB_MDA_RMDIR |
| 1793 | GL_GNULIB_MDA_READ |
| 1794 | GL_GNULIB_MDA_LSEEK |
| 1795 | GL_GNULIB_MDA_ISATTY |
| 1796 | GL_GNULIB_MDA_GETPID |
| 1797 | GL_GNULIB_MDA_GETCWD |
| 1798 | GL_GNULIB_MDA_EXECVPE |
| 1799 | GL_GNULIB_MDA_EXECVP |
| 1800 | GL_GNULIB_MDA_EXECVE |
| 1801 | GL_GNULIB_MDA_EXECV |
| 1802 | GL_GNULIB_MDA_EXECLP |
| 1803 | GL_GNULIB_MDA_EXECLE |
| 1804 | GL_GNULIB_MDA_EXECL |
| 1805 | GL_GNULIB_MDA_DUP2 |
| 1806 | GL_GNULIB_MDA_DUP |
| 1807 | GL_GNULIB_MDA_CLOSE |
| 1808 | GL_GNULIB_MDA_CHDIR |
| 1809 | GL_GNULIB_MDA_ACCESS |
| 1810 | GL_GNULIB_WRITE |
| 1811 | GL_GNULIB_USLEEP |
| 1812 | GL_GNULIB_UNLINKAT |
| 1813 | GL_GNULIB_UNLINK |
| 1814 | GL_GNULIB_UNISTD_H_SIGPIPE |
| 1815 | GL_GNULIB_UNISTD_H_NONBLOCKING |
| 1816 | GL_GNULIB_UNISTD_H_GETOPT |
| 1817 | GL_GNULIB_TTYNAME_R |
| 1818 | GL_GNULIB_TRUNCATE |
| 1819 | GL_GNULIB_SYMLINKAT |
| 1820 | GL_GNULIB_SYMLINK |
| 1821 | GL_GNULIB_SLEEP |
| 1822 | GL_GNULIB_SETHOSTNAME |
| 1823 | GL_GNULIB_RMDIR |
| 1824 | GL_GNULIB_READLINKAT |
| 1825 | GL_GNULIB_READLINK |
| 1826 | GL_GNULIB_READ |
| 1827 | GL_GNULIB_PWRITE |
| 1828 | GL_GNULIB_PREAD |
| 1829 | GL_GNULIB_PIPE2 |
| 1830 | GL_GNULIB_PIPE |
| 1831 | GL_GNULIB_LSEEK |
| 1832 | GL_GNULIB_LINKAT |
| 1833 | GL_GNULIB_LINK |
| 1834 | GL_GNULIB_LCHOWN |
| 1835 | GL_GNULIB_ISATTY |
| 1836 | GL_GNULIB_GROUP_MEMBER |
| 1837 | GL_GNULIB_GETUSERSHELL |
| 1838 | GL_GNULIB_GETPASS_GNU |
| 1839 | GL_GNULIB_GETPASS |
| 1840 | GL_GNULIB_GETPAGESIZE |
| 1841 | GL_GNULIB_GETOPT_POSIX |
| 1842 | GL_GNULIB_GETLOGIN_R |
| 1843 | GL_GNULIB_GETLOGIN |
| 1844 | GL_GNULIB_GETHOSTNAME |
| 1845 | GL_GNULIB_GETGROUPS |
| 1846 | GL_GNULIB_GETENTROPY |
| 1847 | GL_GNULIB_GETDTABLESIZE |
| 1848 | GL_GNULIB_GETDOMAINNAME |
| 1849 | GL_GNULIB_GETCWD |
| 1850 | GL_GNULIB_FTRUNCATE |
| 1851 | GL_GNULIB_FSYNC |
| 1852 | GL_GNULIB_FDATASYNC |
| 1853 | GL_GNULIB_FCHOWNAT |
| 1854 | GL_GNULIB_FCHDIR |
| 1855 | GL_GNULIB_FACCESSAT |
| 1856 | GL_GNULIB_EXECVPE |
| 1857 | GL_GNULIB_EXECVP |
| 1858 | GL_GNULIB_EXECVE |
| 1859 | GL_GNULIB_EXECV |
| 1860 | GL_GNULIB_EXECLP |
| 1861 | GL_GNULIB_EXECLE |
| 1862 | GL_GNULIB_EXECL |
| 1863 | GL_GNULIB_EUIDACCESS |
| 1864 | GL_GNULIB_ENVIRON |
| 1865 | GL_GNULIB_DUP3 |
| 1866 | GL_GNULIB_DUP2 |
| 1867 | GL_GNULIB_DUP |
| 1868 | GL_GNULIB_COPY_FILE_RANGE |
| 1869 | GL_GNULIB_CLOSE |
| 1870 | GL_GNULIB_CHOWN |
| 1871 | GL_GNULIB_CHDIR |
| 1872 | GL_GNULIB_ACCESS |
| 1873 | GL_COND_OBJ_ACCESS_FALSE |
| 1874 | GL_COND_OBJ_ACCESS_TRUE |
| 1875 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 1876 | UNISTD_H_HAVE_WINSOCK2_H |
| 1877 | UNISTD_H_HAVE_SYS_RANDOM_H |
| 1878 | REPLACE_WRITE |
| 1879 | REPLACE_USLEEP |
| 1880 | REPLACE_UNLINKAT |
| 1881 | REPLACE_UNLINK |
| 1882 | REPLACE_TTYNAME_R |
| 1883 | REPLACE_TRUNCATE |
| 1884 | REPLACE_SYMLINKAT |
| 1885 | REPLACE_SYMLINK |
| 1886 | REPLACE_SLEEP |
| 1887 | REPLACE_RMDIR |
| 1888 | REPLACE_READLINKAT |
| 1889 | REPLACE_READLINK |
| 1890 | REPLACE_READ |
| 1891 | REPLACE_PWRITE |
| 1892 | REPLACE_PREAD |
| 1893 | REPLACE_LSEEK |
| 1894 | REPLACE_LINKAT |
| 1895 | REPLACE_LINK |
| 1896 | REPLACE_LCHOWN |
| 1897 | REPLACE_ISATTY |
| 1898 | REPLACE_GETPASS_FOR_GETPASS_GNU |
| 1899 | REPLACE_GETPASS |
| 1900 | REPLACE_GETPAGESIZE |
| 1901 | REPLACE_GETGROUPS |
| 1902 | REPLACE_GETLOGIN_R |
| 1903 | REPLACE_GETDTABLESIZE |
| 1904 | REPLACE_GETDOMAINNAME |
| 1905 | REPLACE_GETCWD |
| 1906 | REPLACE_FTRUNCATE |
| 1907 | REPLACE_FCHOWNAT |
| 1908 | REPLACE_FACCESSAT |
| 1909 | REPLACE_EXECVPE |
| 1910 | REPLACE_EXECVP |
| 1911 | REPLACE_EXECVE |
| 1912 | REPLACE_EXECV |
| 1913 | REPLACE_EXECLP |
| 1914 | REPLACE_EXECLE |
| 1915 | REPLACE_EXECL |
| 1916 | REPLACE_DUP2 |
| 1917 | REPLACE_DUP |
| 1918 | REPLACE_COPY_FILE_RANGE |
| 1919 | REPLACE_CLOSE |
| 1920 | REPLACE_CHOWN |
| 1921 | REPLACE_ACCESS |
| 1922 | HAVE_SYS_PARAM_H |
| 1923 | HAVE_OS_H |
| 1924 | HAVE_DECL_TTYNAME_R |
| 1925 | HAVE_DECL_TRUNCATE |
| 1926 | HAVE_DECL_SETHOSTNAME |
| 1927 | HAVE_DECL_GETUSERSHELL |
| 1928 | HAVE_DECL_GETPAGESIZE |
| 1929 | HAVE_DECL_GETLOGIN_R |
| 1930 | HAVE_DECL_GETLOGIN |
| 1931 | HAVE_DECL_GETDOMAINNAME |
| 1932 | HAVE_DECL_FDATASYNC |
| 1933 | HAVE_DECL_FCHDIR |
| 1934 | HAVE_DECL_EXECVPE |
| 1935 | HAVE_DECL_ENVIRON |
| 1936 | HAVE_USLEEP |
| 1937 | HAVE_UNLINKAT |
| 1938 | HAVE_SYMLINKAT |
| 1939 | HAVE_SYMLINK |
| 1940 | HAVE_SLEEP |
| 1941 | HAVE_SETHOSTNAME |
| 1942 | HAVE_READLINKAT |
| 1943 | HAVE_READLINK |
| 1944 | HAVE_PWRITE |
| 1945 | HAVE_PREAD |
| 1946 | HAVE_PIPE2 |
| 1947 | HAVE_PIPE |
| 1948 | HAVE_LINKAT |
| 1949 | HAVE_LINK |
| 1950 | HAVE_LCHOWN |
| 1951 | HAVE_GROUP_MEMBER |
| 1952 | HAVE_GETPASS |
| 1953 | HAVE_GETPAGESIZE |
| 1954 | HAVE_GETLOGIN |
| 1955 | HAVE_GETHOSTNAME |
| 1956 | HAVE_GETGROUPS |
| 1957 | HAVE_GETENTROPY |
| 1958 | HAVE_GETDTABLESIZE |
| 1959 | HAVE_FTRUNCATE |
| 1960 | HAVE_FSYNC |
| 1961 | HAVE_FDATASYNC |
| 1962 | HAVE_FCHOWNAT |
| 1963 | HAVE_FCHDIR |
| 1964 | HAVE_FACCESSAT |
| 1965 | HAVE_EXECVPE |
| 1966 | HAVE_EUIDACCESS |
| 1967 | HAVE_DUP3 |
| 1968 | HAVE_COPY_FILE_RANGE |
| 1969 | HAVE_CHOWN |
| 1970 | GL_GNULIB_MDA_PUTENV |
| 1971 | GL_GNULIB_MDA_MKTEMP |
| 1972 | GL_GNULIB_MDA_GCVT |
| 1973 | GL_GNULIB_MDA_FCVT |
| 1974 | GL_GNULIB_MDA_ECVT |
| 1975 | GL_GNULIB_WCTOMB |
| 1976 | GL_GNULIB_UNSETENV |
| 1977 | GL_GNULIB_UNLOCKPT |
| 1978 | GL_GNULIB_SYSTEM_POSIX |
| 1979 | GL_GNULIB_STRTOULL |
| 1980 | GL_GNULIB_STRTOUL |
| 1981 | GL_GNULIB_STRTOLL |
| 1982 | GL_GNULIB_STRTOLD |
| 1983 | GL_GNULIB_STRTOL |
| 1984 | GL_GNULIB_STRTOD |
| 1985 | GL_GNULIB_SETENV |
| 1986 | GL_GNULIB_SECURE_GETENV |
| 1987 | GL_GNULIB_RPMATCH |
| 1988 | GL_GNULIB_REALPATH |
| 1989 | GL_GNULIB_REALLOC_POSIX |
| 1990 | GL_GNULIB_REALLOC_GNU |
| 1991 | GL_GNULIB_REALLOCARRAY |
| 1992 | GL_GNULIB_RANDOM_R |
| 1993 | GL_GNULIB_RANDOM |
| 1994 | GL_GNULIB_QSORT_R |
| 1995 | GL_GNULIB_PUTENV |
| 1996 | GL_GNULIB_PTSNAME_R |
| 1997 | GL_GNULIB_PTSNAME |
| 1998 | GL_GNULIB_POSIX_OPENPT |
| 1999 | GL_GNULIB_POSIX_MEMALIGN |
| 2000 | GL_GNULIB_MKSTEMPS |
| 2001 | GL_GNULIB_MKSTEMP |
| 2002 | GL_GNULIB_MKOSTEMPS |
| 2003 | GL_GNULIB_MKOSTEMP |
| 2004 | GL_GNULIB_MKDTEMP |
| 2005 | GL_GNULIB_MBTOWC |
| 2006 | GL_GNULIB_MALLOC_POSIX |
| 2007 | GL_GNULIB_MALLOC_GNU |
| 2008 | GL_GNULIB_GRANTPT |
| 2009 | GL_GNULIB_GETSUBOPT |
| 2010 | GL_GNULIB_GETLOADAVG |
| 2011 | GL_GNULIB_FREE_POSIX |
| 2012 | GL_GNULIB_CANONICALIZE_FILE_NAME |
| 2013 | GL_GNULIB_CALLOC_POSIX |
| 2014 | GL_GNULIB_CALLOC_GNU |
| 2015 | GL_GNULIB_ATOLL |
| 2016 | GL_GNULIB_ALIGNED_ALLOC |
| 2017 | GL_GNULIB__EXIT |
| 2018 | GL_COND_OBJ__EXIT_FALSE |
| 2019 | GL_COND_OBJ__EXIT_TRUE |
| 2020 | REPLACE_WCTOMB |
| 2021 | REPLACE_UNSETENV |
| 2022 | REPLACE_STRTOULL |
| 2023 | REPLACE_STRTOUL |
| 2024 | REPLACE_STRTOLL |
| 2025 | REPLACE_STRTOLD |
| 2026 | REPLACE_STRTOL |
| 2027 | REPLACE_STRTOD |
| 2028 | REPLACE_SETSTATE |
| 2029 | REPLACE_SETENV |
| 2030 | REPLACE_REALPATH |
| 2031 | REPLACE_REALLOCARRAY |
| 2032 | REPLACE_REALLOC_FOR_REALLOC_POSIX |
| 2033 | REPLACE_REALLOC_FOR_REALLOC_GNU |
| 2034 | REPLACE_RANDOM_R |
| 2035 | REPLACE_RANDOM |
| 2036 | REPLACE_QSORT_R |
| 2037 | REPLACE_PUTENV |
| 2038 | REPLACE_PTSNAME_R |
| 2039 | REPLACE_PTSNAME |
| 2040 | REPLACE_POSIX_MEMALIGN |
| 2041 | REPLACE_MKSTEMP |
| 2042 | REPLACE_MBTOWC |
| 2043 | REPLACE_MALLOC_FOR_MALLOC_POSIX |
| 2044 | REPLACE_MALLOC_FOR_MALLOC_GNU |
| 2045 | REPLACE_INITSTATE |
| 2046 | REPLACE_FREE |
| 2047 | REPLACE_CANONICALIZE_FILE_NAME |
| 2048 | REPLACE_CALLOC_FOR_CALLOC_POSIX |
| 2049 | REPLACE_CALLOC_FOR_CALLOC_GNU |
| 2050 | REPLACE_ALIGNED_ALLOC |
| 2051 | HAVE_DECL_UNSETENV |
| 2052 | HAVE_UNLOCKPT |
| 2053 | HAVE_SYS_LOADAVG_H |
| 2054 | HAVE_STRUCT_RANDOM_DATA |
| 2055 | HAVE_STRTOULL |
| 2056 | HAVE_STRTOUL |
| 2057 | HAVE_STRTOLL |
| 2058 | HAVE_STRTOLD |
| 2059 | HAVE_STRTOL |
| 2060 | HAVE_STRTOD |
| 2061 | HAVE_DECL_SETSTATE |
| 2062 | HAVE_SETSTATE |
| 2063 | HAVE_DECL_SETENV |
| 2064 | HAVE_SETENV |
| 2065 | HAVE_SECURE_GETENV |
| 2066 | HAVE_RPMATCH |
| 2067 | HAVE_REALPATH |
| 2068 | HAVE_REALLOCARRAY |
| 2069 | HAVE_RANDOM_R |
| 2070 | HAVE_RANDOM_H |
| 2071 | HAVE_RANDOM |
| 2072 | HAVE_QSORT_R |
| 2073 | HAVE_PTSNAME_R |
| 2074 | HAVE_PTSNAME |
| 2075 | HAVE_POSIX_OPENPT |
| 2076 | HAVE_POSIX_MEMALIGN |
| 2077 | HAVE_MKSTEMPS |
| 2078 | HAVE_MKSTEMP |
| 2079 | HAVE_MKOSTEMPS |
| 2080 | HAVE_MKOSTEMP |
| 2081 | HAVE_MKDTEMP |
| 2082 | HAVE_MBTOWC |
| 2083 | HAVE_DECL_INITSTATE |
| 2084 | HAVE_INITSTATE |
| 2085 | HAVE_GRANTPT |
| 2086 | HAVE_GETSUBOPT |
| 2087 | HAVE_DECL_GETLOADAVG |
| 2088 | HAVE_DECL_GCVT |
| 2089 | HAVE_DECL_FCVT |
| 2090 | HAVE_DECL_ECVT |
| 2091 | HAVE_CANONICALIZE_FILE_NAME |
| 2092 | HAVE_ATOLL |
| 2093 | HAVE_ALIGNED_ALLOC |
| 2094 | HAVE__EXIT |
| 2095 | GL_COND_LIBTOOL_FALSE |
| 2096 | GL_COND_LIBTOOL_TRUE |
| 2097 | RANLIB |
| 2098 | ARFLAGS |
| 2099 | AR |
| 2100 | EGREP |
| 2101 | GREP |
| 2102 | CPP |
| 2103 | host_os |
| 2104 | host_vendor |
| 2105 | host_cpu |
| 2106 | host |
| 2107 | build_os |
| 2108 | build_vendor |
| 2109 | build_cpu |
| 2110 | build |
| 2111 | am__fastdepCC_FALSE |
| 2112 | am__fastdepCC_TRUE |
| 2113 | CCDEPMODE |
| 2114 | am__nodep |
| 2115 | AMDEPBACKSLASH |
| 2116 | AMDEP_FALSE |
| 2117 | AMDEP_TRUE |
| 2118 | am__include |
| 2119 | DEPDIR |
| 2120 | OBJEXT |
| 2121 | EXEEXT |
| 2122 | ac_ct_CC |
| 2123 | CPPFLAGS |
| 2124 | LDFLAGS |
| 2125 | CFLAGS |
| 2126 | CC |
| 2127 | PIC |
| 2128 | SOELIM |
| 2129 | ED |
| 2130 | DIFF3 |
| 2131 | DIFF |
| 2132 | SENDMAIL |
| 2133 | AM_BACKSLASH |
| 2134 | AM_DEFAULT_VERBOSITY |
| 2135 | AM_DEFAULT_V |
| 2136 | AM_V |
| 2137 | CSCOPE |
| 2138 | ETAGS |
| 2139 | CTAGS |
| 2140 | am__untar |
| 2141 | am__tar |
| 2142 | AMTAR |
| 2143 | am__leading_dot |
| 2144 | SET_MAKE |
| 2145 | AWK |
| 2146 | mkdir_p |
| 2147 | MKDIR_P |
| 2148 | INSTALL_STRIP_PROGRAM |
| 2149 | STRIP |
| 2150 | install_sh |
| 2151 | MAKEINFO |
| 2152 | AUTOHEADER |
| 2153 | AUTOMAKE |
| 2154 | AUTOCONF |
| 2155 | ACLOCAL |
| 2156 | VERSION |
| 2157 | PACKAGE |
| 2158 | CYGPATH_W |
| 2159 | am__isrc |
| 2160 | INSTALL_DATA |
| 2161 | INSTALL_SCRIPT |
| 2162 | INSTALL_PROGRAM |
| 2163 | target_alias |
| 2164 | host_alias |
| 2165 | build_alias |
| 2166 | LIBS |
| 2167 | ECHO_T |
| 2168 | ECHO_N |
| 2169 | ECHO_C |
| 2170 | DEFS |
| 2171 | mandir |
| 2172 | localedir |
| 2173 | libdir |
| 2174 | psdir |
| 2175 | pdfdir |
| 2176 | dvidir |
| 2177 | htmldir |
| 2178 | infodir |
| 2179 | docdir |
| 2180 | oldincludedir |
| 2181 | includedir |
| 2182 | runstatedir |
| 2183 | localstatedir |
| 2184 | sharedstatedir |
| 2185 | sysconfdir |
| 2186 | datadir |
| 2187 | datarootdir |
| 2188 | libexecdir |
| 2189 | sbindir |
| 2190 | bindir |
| 2191 | program_transform_name |
| 2192 | prefix |
| 2193 | exec_prefix |
| 2194 | PACKAGE_URL |
| 2195 | PACKAGE_BUGREPORT |
| 2196 | PACKAGE_STRING |
| 2197 | PACKAGE_VERSION |
| 2198 | PACKAGE_TARNAME |
| 2199 | PACKAGE_NAME |
| 2200 | PATH_SEPARATOR |
| 2201 | SHELL |
| 2202 | am__quote' |
| 2203 | ac_subst_files='' |
| 2204 | ac_user_opts=' |
| 2205 | enable_option_checking |
| 2206 | enable_silent_rules |
| 2207 | enable_coverage |
| 2208 | with_mailer |
| 2209 | enable_mmap |
| 2210 | enable_suid |
| 2211 | enable_dependency_tracking |
| 2212 | enable_largefile |
| 2213 | enable_year2038 |
| 2214 | enable_threads |
| 2215 | enable_cross_guesses |
| 2216 | ' |
| 2217 | ac_precious_vars='build_alias |
| 2218 | host_alias |
| 2219 | target_alias |
| 2220 | DIFF |
| 2221 | DIFF3 |
| 2222 | SOELIM |
| 2223 | PIC |
| 2224 | CC |
| 2225 | CFLAGS |
| 2226 | LDFLAGS |
| 2227 | LIBS |
| 2228 | CPPFLAGS |
| 2229 | CPP' |
| 2230 | |
| 2231 | |
| 2232 | # Initialize some variables set by options. |
| 2233 | ac_init_help= |
| 2234 | ac_init_version=false |
| 2235 | ac_unrecognized_opts= |
| 2236 | ac_unrecognized_sep= |
| 2237 | # The variables have the same names as the options, with |
| 2238 | # dashes changed to underlines. |
| 2239 | cache_file=/dev/nullscip-shell filesystem . . `/dev/null`. |
| 2240 | exec_prefix=NONE |
| 2241 | no_create= |
| 2242 | no_recursion= |
| 2243 | prefix=NONE |
| 2244 | program_prefix=NONE |
| 2245 | program_suffix=NONE |
| 2246 | program_transform_name=s,x,x, |
| 2247 | silent= |
| 2248 | site= |
| 2249 | srcdir= |
| 2250 | verbose= |
| 2251 | x_includes=NONE |
| 2252 | x_libraries=NONE |
| 2253 | |
| 2254 | # Installation directory options. |
| 2255 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 2256 | # and all the variables that are supposed to be based on exec_prefix |
| 2257 | # by default will actually change. |
| 2258 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 2259 | # (The list follows the same order as the GNU Coding Standards.) |
| 2260 | bindir='${exec_prefix}/bin' |
| 2261 | sbindir='${exec_prefix}/sbin' |
| 2262 | libexecdir='${exec_prefix}/libexec' |
| 2263 | datarootdir='${prefix}/share' |
| 2264 | datadir='${datarootdir}' |
| 2265 | sysconfdir='${prefix}/etc' |
| 2266 | sharedstatedir='${prefix}/com' |
| 2267 | localstatedir='${prefix}/var' |
| 2268 | runstatedir='${localstatedir}/run' |
| 2269 | includedir='${prefix}/include' |
| 2270 | oldincludedir='/usr/includescip-shell filesystem . . `/usr/include`.' |
| 2271 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 2272 | infodir='${datarootdir}/info' |
| 2273 | htmldir='${docdir}' |
| 2274 | dvidir='${docdir}' |
| 2275 | pdfdir='${docdir}' |
| 2276 | psdir='${docdir}' |
| 2277 | libdir='${exec_prefix}/lib' |
| 2278 | localedir='${datarootdir}/locale' |
| 2279 | mandir='${datarootdir}/man' |
| 2280 | |
| 2281 | ac_prev= |
| 2282 | ac_dashdash= |
| 2283 | for ac_option |
| 2284 | do |
| 2285 | # If the previous option needs an argument, assign it. |
| 2286 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 2287 | eval $ac_prev=\$ac_option |
| 2288 | ac_prev= |
| 2289 | continue |
| 2290 | fi |
| 2291 | |
| 2292 | case $ac_option in |
| 2293 | *=?*) ac_optarg=`exprscip-shell system . . expr. "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 2294 | *=) ac_optarg= ;; |
| 2295 | *) ac_optarg=yes ;; |
| 2296 | esac |
| 2297 | |
| 2298 | case $ac_dashdash$ac_option in |
| 2299 | --) |
| 2300 | ac_dashdash=yes ;; |
| 2301 | |
| 2302 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 2303 | ac_prev=bindir ;; |
| 2304 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 2305 | bindir=$ac_optarg ;; |
| 2306 | |
| 2307 | -build | --build | --buil | --bui | --bu) |
| 2308 | ac_prev=build_alias ;; |
| 2309 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 2310 | build_alias=$ac_optarg ;; |
| 2311 | |
| 2312 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 2313 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 2314 | ac_prev=cache_file ;; |
| 2315 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 2316 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 2317 | cache_file=$ac_optarg ;; |
| 2318 | |
| 2319 | --config-cache | -C) |
| 2320 | cache_file=config.cache ;; |
| 2321 | |
| 2322 | -datadir | --datadir | --datadi | --datad) |
| 2323 | ac_prev=datadir ;; |
| 2324 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 2325 | datadir=$ac_optarg ;; |
| 2326 | |
| 2327 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 2328 | | --dataroo | --dataro | --datar) |
| 2329 | ac_prev=datarootdir ;; |
| 2330 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 2331 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 2332 | datarootdir=$ac_optarg ;; |
| 2333 | |
| 2334 | -disable-* | --disable-*) |
| 2335 | ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*disable-\(.*\)'` |
| 2336 | # Reject names that are not valid shell variable names. |
| 2337 | exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 2338 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid feature name: \`$ac_useropt'" |
| 2339 | ac_useropt_orig=$ac_useropt |
| 2340 | ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'` |
| 2341 | case $ac_user_opts in |
| 2342 | *" |
| 2343 | "enable_$ac_useropt" |
| 2344 | "*) ;; |
| 2345 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 2346 | ac_unrecognized_sep=', ';; |
| 2347 | esac |
| 2348 | eval enable_$ac_useropt=no ;; |
| 2349 | |
| 2350 | -docdir | --docdir | --docdi | --doc | --do) |
| 2351 | ac_prev=docdir ;; |
| 2352 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 2353 | docdir=$ac_optarg ;; |
| 2354 | |
| 2355 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 2356 | ac_prev=dvidir ;; |
| 2357 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 2358 | dvidir=$ac_optarg ;; |
| 2359 | |
| 2360 | -enable-* | --enable-*) |
| 2361 | ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 2362 | # Reject names that are not valid shell variable names. |
| 2363 | exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 2364 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid feature name: \`$ac_useropt'" |
| 2365 | ac_useropt_orig=$ac_useropt |
| 2366 | ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'` |
| 2367 | case $ac_user_opts in |
| 2368 | *" |
| 2369 | "enable_$ac_useropt" |
| 2370 | "*) ;; |
| 2371 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 2372 | ac_unrecognized_sep=', ';; |
| 2373 | esac |
| 2374 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 2375 | |
| 2376 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 2377 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 2378 | | --exec | --exe | --ex) |
| 2379 | ac_prev=exec_prefix ;; |
| 2380 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 2381 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 2382 | | --exec=* | --exe=* | --ex=*) |
| 2383 | exec_prefix=$ac_optarg ;; |
| 2384 | |
| 2385 | -gas | --gas | --ga | --g) |
| 2386 | # Obsolete; use --with-gas. |
| 2387 | with_gas=yes ;; |
| 2388 | |
| 2389 | -help | --help | --hel | --he | -h) |
| 2390 | ac_init_help=long ;; |
| 2391 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 2392 | ac_init_help=recursive ;; |
| 2393 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 2394 | ac_init_help=short ;; |
| 2395 | |
| 2396 | -host | --host | --hos | --ho) |
| 2397 | ac_prev=host_alias ;; |
| 2398 | -host=* | --host=* | --hos=* | --ho=*) |
| 2399 | host_alias=$ac_optarg ;; |
| 2400 | |
| 2401 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 2402 | ac_prev=htmldir ;; |
| 2403 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 2404 | | --ht=*) |
| 2405 | htmldir=$ac_optarg ;; |
| 2406 | |
| 2407 | -includedir | --includedir | --includedi | --included | --include \ |
| 2408 | | --includ | --inclu | --incl | --inc) |
| 2409 | ac_prev=includedir ;; |
| 2410 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 2411 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 2412 | includedir=$ac_optarg ;; |
| 2413 | |
| 2414 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 2415 | ac_prev=infodir ;; |
| 2416 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 2417 | infodir=$ac_optarg ;; |
| 2418 | |
| 2419 | -libdir | --libdir | --libdi | --libd) |
| 2420 | ac_prev=libdir ;; |
| 2421 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 2422 | libdir=$ac_optarg ;; |
| 2423 | |
| 2424 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 2425 | | --libexe | --libex | --libe) |
| 2426 | ac_prev=libexecdir ;; |
| 2427 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 2428 | | --libexe=* | --libex=* | --libe=*) |
| 2429 | libexecdir=$ac_optarg ;; |
| 2430 | |
| 2431 | -localedir | --localedir | --localedi | --localed | --locale) |
| 2432 | ac_prev=localedir ;; |
| 2433 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 2434 | localedir=$ac_optarg ;; |
| 2435 | |
| 2436 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 2437 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 2438 | ac_prev=localstatedir ;; |
| 2439 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 2440 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 2441 | localstatedir=$ac_optarg ;; |
| 2442 | |
| 2443 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 2444 | ac_prev=mandir ;; |
| 2445 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 2446 | mandir=$ac_optarg ;; |
| 2447 | |
| 2448 | -nfp | --nfp | --nf) |
| 2449 | # Obsolete; use --without-fp. |
| 2450 | with_fp=no ;; |
| 2451 | |
| 2452 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 2453 | | --no-cr | --no-c | -n) |
| 2454 | no_create=yes ;; |
| 2455 | |
| 2456 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 2457 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 2458 | no_recursion=yes ;; |
| 2459 | |
| 2460 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 2461 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 2462 | | --oldin | --oldi | --old | --ol | --o) |
| 2463 | ac_prev=oldincludedir ;; |
| 2464 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 2465 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 2466 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 2467 | oldincludedir=$ac_optarg ;; |
| 2468 | |
| 2469 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 2470 | ac_prev=prefix ;; |
| 2471 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 2472 | prefix=$ac_optarg ;; |
| 2473 | |
| 2474 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 2475 | | --program-pre | --program-pr | --program-p) |
| 2476 | ac_prev=program_prefix ;; |
| 2477 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 2478 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 2479 | program_prefix=$ac_optarg ;; |
| 2480 | |
| 2481 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 2482 | | --program-suf | --program-su | --program-s) |
| 2483 | ac_prev=program_suffix ;; |
| 2484 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 2485 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 2486 | program_suffix=$ac_optarg ;; |
| 2487 | |
| 2488 | -program-transform-name | --program-transform-name \ |
| 2489 | | --program-transform-nam | --program-transform-na \ |
| 2490 | | --program-transform-n | --program-transform- \ |
| 2491 | | --program-transform | --program-transfor \ |
| 2492 | | --program-transfo | --program-transf \ |
| 2493 | | --program-trans | --program-tran \ |
| 2494 | | --progr-tra | --program-tr | --program-t) |
| 2495 | ac_prev=program_transform_name ;; |
| 2496 | -program-transform-name=* | --program-transform-name=* \ |
| 2497 | | --program-transform-nam=* | --program-transform-na=* \ |
| 2498 | | --program-transform-n=* | --program-transform-=* \ |
| 2499 | | --program-transform=* | --program-transfor=* \ |
| 2500 | | --program-transfo=* | --program-transf=* \ |
| 2501 | | --program-trans=* | --program-tran=* \ |
| 2502 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 2503 | program_transform_name=$ac_optarg ;; |
| 2504 | |
| 2505 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 2506 | ac_prev=pdfdir ;; |
| 2507 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 2508 | pdfdir=$ac_optarg ;; |
| 2509 | |
| 2510 | -psdir | --psdir | --psdi | --psd | --ps) |
| 2511 | ac_prev=psdir ;; |
| 2512 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 2513 | psdir=$ac_optarg ;; |
| 2514 | |
| 2515 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2516 | | -silent | --silent | --silen | --sile | --sil) |
| 2517 | silent=yes ;; |
| 2518 | |
| 2519 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 2520 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 2521 | | --run | --ru | --r) |
| 2522 | ac_prev=runstatedir ;; |
| 2523 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 2524 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 2525 | | --run=* | --ru=* | --r=*) |
| 2526 | runstatedir=$ac_optarg ;; |
| 2527 | |
| 2528 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 2529 | ac_prev=sbindir ;; |
| 2530 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 2531 | | --sbi=* | --sb=*) |
| 2532 | sbindir=$ac_optarg ;; |
| 2533 | |
| 2534 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 2535 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 2536 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 2537 | | --sha | --sh) |
| 2538 | ac_prev=sharedstatedir ;; |
| 2539 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 2540 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 2541 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 2542 | | --sha=* | --sh=*) |
| 2543 | sharedstatedir=$ac_optarg ;; |
| 2544 | |
| 2545 | -site | --site | --sit) |
| 2546 | ac_prev=site ;; |
| 2547 | -site=* | --site=* | --sit=*) |
| 2548 | site=$ac_optarg ;; |
| 2549 | |
| 2550 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 2551 | ac_prev=srcdir ;; |
| 2552 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 2553 | srcdir=$ac_optarg ;; |
| 2554 | |
| 2555 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 2556 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 2557 | ac_prev=sysconfdir ;; |
| 2558 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 2559 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 2560 | sysconfdir=$ac_optarg ;; |
| 2561 | |
| 2562 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 2563 | ac_prev=target_alias ;; |
| 2564 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 2565 | target_alias=$ac_optarg ;; |
| 2566 | |
| 2567 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 2568 | verbose=yes ;; |
| 2569 | |
| 2570 | -version | --version | --versio | --versi | --vers | -V) |
| 2571 | ac_init_version=: ;; |
| 2572 | |
| 2573 | -with-* | --with-*) |
| 2574 | ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 2575 | # Reject names that are not valid shell variable names. |
| 2576 | exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 2577 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid package name: \`$ac_useropt'" |
| 2578 | ac_useropt_orig=$ac_useropt |
| 2579 | ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'` |
| 2580 | case $ac_user_opts in |
| 2581 | *" |
| 2582 | "with_$ac_useropt" |
| 2583 | "*) ;; |
| 2584 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 2585 | ac_unrecognized_sep=', ';; |
| 2586 | esac |
| 2587 | eval with_$ac_useropt=\$ac_optarg ;; |
| 2588 | |
| 2589 | -without-* | --without-*) |
| 2590 | ac_useropt=`exprscip-shell system . . expr. "x$ac_option" : 'x-*without-\(.*\)'` |
| 2591 | # Reject names that are not valid shell variable names. |
| 2592 | exprscip-shell system . . expr. "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 2593 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid package name: \`$ac_useropt'" |
| 2594 | ac_useropt_orig=$ac_useropt |
| 2595 | ac_useropt=`printfscip-shell system . . printf. "%s\n" "$ac_useropt" | sedscip-shell system . . sed. 's/[-+.]/_/g'` |
| 2596 | case $ac_user_opts in |
| 2597 | *" |
| 2598 | "with_$ac_useropt" |
| 2599 | "*) ;; |
| 2600 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 2601 | ac_unrecognized_sep=', ';; |
| 2602 | esac |
| 2603 | eval with_$ac_useropt=no ;; |
| 2604 | |
| 2605 | --x) |
| 2606 | # Obsolete; use --with-x. |
| 2607 | with_x=yes ;; |
| 2608 | |
| 2609 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 2610 | | --x-incl | --x-inc | --x-in | --x-i) |
| 2611 | ac_prev=x_includes ;; |
| 2612 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 2613 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 2614 | x_includes=$ac_optarg ;; |
| 2615 | |
| 2616 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 2617 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 2618 | ac_prev=x_libraries ;; |
| 2619 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 2620 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 2621 | x_libraries=$ac_optarg ;; |
| 2622 | |
| 2623 | -*) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unrecognized option: \`$ac_option' |
| 2624 | Try \`$0 --help' for more information" |
| 2625 | ;; |
| 2626 | |
| 2627 | *=*) |
| 2628 | ac_envvar=`exprscip-shell system . . expr. "x$ac_option" : 'x\([^=]*\)='` |
| 2629 | # Reject names that are not valid shell variable names. |
| 2630 | case $ac_envvar in #( |
| 2631 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 2632 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid variable name: \`$ac_envvar'" ;; |
| 2633 | esac |
| 2634 | eval $ac_envvar=\$ac_optarg |
| 2635 | export $ac_envvar ;; |
| 2636 | |
| 2637 | *) |
| 2638 | # FIXME: should be removed in autoconf 3.0. |
| 2639 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 2640 | exprscip-shell system . . expr. "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/nullscip-shell filesystem . . `/dev/null`. && |
| 2641 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 2642 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 2643 | ;; |
| 2644 | |
| 2645 | esac |
| 2646 | done |
| 2647 | |
| 2648 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 2649 | ac_option=--`echoscip-shell system . . echo. $ac_prev | sedscip-shell system . . sed. 's/_/-/g'` |
| 2650 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "missing argument to $ac_option" |
| 2651 | fi |
| 2652 | |
| 2653 | if testscip-shell system . . test. -n "$ac_unrecognized_opts"; then |
| 2654 | case $enable_option_checking in |
| 2655 | no) ;; |
| 2656 | fatal) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 2657 | *) printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 2658 | esac |
| 2659 | fi |
| 2660 | |
| 2661 | # Check all directory arguments for consistency. |
| 2662 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 2663 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 2664 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 2665 | libdir localedir mandir runstatedir |
| 2666 | do |
| 2667 | eval ac_val=\$$ac_var |
| 2668 | # Remove trailing slashes. |
| 2669 | case $ac_val in |
| 2670 | */ ) |
| 2671 | ac_val=`exprscip-shell system . . expr. "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 2672 | eval $ac_var=\$ac_val;; |
| 2673 | esac |
| 2674 | # Be sure to have absolute directory names. |
| 2675 | case $ac_val in |
| 2676 | [\\/$]* | ?:[\\/]* ) continue;; |
| 2677 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 2678 | esac |
| 2679 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 2680 | done |
| 2681 | |
| 2682 | # There might be people who depend on the old broken behavior: `$host' |
| 2683 | # used to hold the argument of --host etc. |
| 2684 | # FIXME: To remove some day. |
| 2685 | build=$build_alias |
| 2686 | host=$host_alias |
| 2687 | target=$target_alias |
| 2688 | |
| 2689 | # FIXME: To remove some day. |
| 2690 | if testscip-shell system . . test. "x$host_alias" != x; then |
| 2691 | if testscip-shell system . . test. "x$build_alias" = x; then |
| 2692 | cross_compiling=maybe |
| 2693 | elif testscip-shell system . . test. "x$build_alias" != "x$host_alias"; then |
| 2694 | cross_compiling=yes |
| 2695 | fi |
| 2696 | fi |
| 2697 | |
| 2698 | ac_tool_prefix= |
| 2699 | testscip-shell system . . test. -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 2700 | |
| 2701 | testscip-shell system . . test. "$silent" = yes && exec 6>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 2702 | |
| 2703 | |
| 2704 | ac_pwd=`pwdscip-shell system . . pwd.` && testscip-shell system . . test. -n "$ac_pwd" && |
| 2705 | ac_ls_di=`lsscip-shell system . . ls. -di .` && |
| 2706 | ac_pwd_ls_di=`cd "$ac_pwd" && lsscip-shell system . . ls. -di .` || |
| 2707 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "working directory cannot be determined" |
| 2708 | testscip-shell system . . test. "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 2709 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "pwd does not report name of working directory" |
| 2710 | |
| 2711 | |
| 2712 | # Find the source files, if location was not specified. |
| 2713 | if testscip-shell system . . test. -z "$srcdir"; then |
| 2714 | ac_srcdir_defaulted=yes |
| 2715 | # Try the directory containing this script, then the parent directory. |
| 2716 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 2717 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 2718 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 2719 | X"$as_myself" : 'X\(//\)$' \| \ |
| 2720 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/nullscip-shell filesystem . . `/dev/null`. || |
| 2721 | printfscip-shell system . . printf. "%s\n" X"$as_myself" | |
| 2722 | sedscip-shell system . . sed. '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 2723 | s//\1/ |
| 2724 | q |
| 2725 | } |
| 2726 | /^X\(\/\/\)[^/].*/{ |
| 2727 | s//\1/ |
| 2728 | q |
| 2729 | } |
| 2730 | /^X\(\/\/\)$/{ |
| 2731 | s//\1/ |
| 2732 | q |
| 2733 | } |
| 2734 | /^X\(\/\).*/{ |
| 2735 | s//\1/ |
| 2736 | q |
| 2737 | } |
| 2738 | s/.*/./; q'` |
| 2739 | srcdir=$ac_confdir |
| 2740 | if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then |
| 2741 | srcdir=.. |
| 2742 | fi |
| 2743 | else |
| 2744 | ac_srcdir_defaulted=no |
| 2745 | fi |
| 2746 | if testscip-shell system . . test. ! -r "$srcdir/$ac_unique_file"; then |
| 2747 | testscip-shell system . . test. "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 2748 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 2749 | fi |
| 2750 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 2751 | ac_abs_confdir=`( |
| 2752 | cd "$srcdir" && testscip-shell system . . test. -r "./$ac_unique_file" || as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$ac_msg" |
| 2753 | pwdscip-shell system . . pwd.)` |
| 2754 | # When building in place, set srcdir=. |
| 2755 | if testscip-shell system . . test. "$ac_abs_confdir" = "$ac_pwd"; then |
| 2756 | srcdir=. |
| 2757 | fi |
| 2758 | # Remove unnecessary trailing slashes from srcdir. |
| 2759 | # Double slashes in file names in object file debugging info |
| 2760 | # mess up M-x gdb in Emacs. |
| 2761 | case $srcdir in |
| 2762 | */) srcdir=`exprscip-shell system . . expr. "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 2763 | esac |
| 2764 | for ac_var in $ac_precious_vars; do |
| 2765 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 2766 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 2767 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 2768 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 2769 | done |
| 2770 | |
| 2771 | # |
| 2772 | # Report the --help message. |
| 2773 | # |
| 2774 | if testscip-shell system . . test. "$ac_init_help" = "long"; then |
| 2775 | # Omit some internal or obsolete options to make the list less imposing. |
| 2776 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 2777 | catscip-shell system . . cat. <<_ACEOF |
| 2778 | \`configure' configures GNU RCS 5.10.1 to adapt to many kinds of systems. |
| 2779 | |
| 2780 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 2781 | |
| 2782 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 2783 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 2784 | |
| 2785 | Defaults for the options are specified in brackets. |
| 2786 | |
| 2787 | Configuration: |
| 2788 | -h, --help display this help and exit |
| 2789 | --help=short display options specific to this package |
| 2790 | --help=recursive display the short help of all the included packages |
| 2791 | -V, --version display version information and exit |
| 2792 | -q, --quiet, --silent do not print \`checking ...' messages |
| 2793 | --cache-file=FILE cache test results in FILE [disabled] |
| 2794 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 2795 | -n, --no-create do not create output files |
| 2796 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 2797 | |
| 2798 | Installation directories: |
| 2799 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 2800 | [$ac_default_prefix] |
| 2801 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 2802 | [PREFIX] |
| 2803 | |
| 2804 | By default, \`make install' will install all the files in |
| 2805 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 2806 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 2807 | for instance \`--prefix=\$HOME'. |
| 2808 | |
| 2809 | For better control, use the options below. |
| 2810 | |
| 2811 | Fine tuning of the installation directories: |
| 2812 | --bindir=DIR user executables [EPREFIX/bin] |
| 2813 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 2814 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 2815 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 2816 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 2817 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 2818 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 2819 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 2820 | --includedir=DIR C header files [PREFIX/include] |
| 2821 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 2822 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 2823 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 2824 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 2825 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 2826 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 2827 | --docdir=DIR documentation root [DATAROOTDIR/doc/rcs] |
| 2828 | --htmldir=DIR html documentation [DOCDIR] |
| 2829 | --dvidir=DIR dvi documentation [DOCDIR] |
| 2830 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 2831 | --psdir=DIR ps documentation [DOCDIR] |
| 2832 | _ACEOF |
| 2833 | |
| 2834 | catscip-shell system . . cat. <<\_ACEOF |
| 2835 | |
| 2836 | Program names: |
| 2837 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 2838 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 2839 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 2840 | |
| 2841 | System types: |
| 2842 | --build=BUILD configure for building on BUILD [guessed] |
| 2843 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 2844 | _ACEOF |
| 2845 | fi |
| 2846 | |
| 2847 | if testscip-shell system . . test. -n "$ac_init_help"; then |
| 2848 | case $ac_init_help in |
| 2849 | short | recursive ) echoscip-shell system . . echo. "Configuration of GNU RCS 5.10.1:";; |
| 2850 | esac |
| 2851 | catscip-shell system . . cat. <<\_ACEOF |
| 2852 | |
| 2853 | Optional Features: |
| 2854 | --disable-option-checking ignore unrecognized --enable/--with options |
| 2855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 2856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 2857 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 2858 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 2859 | --enable-coverage if the compiler is GCC, arrange to include |
| 2860 | --coverage in CFLAGS and to use exit(3) instead of |
| 2861 | _Exit(3); this option is intended for maintainers |
| 2862 | --disable-mmap don't use mmap(2), ever (default: use mmap(2) if it |
| 2863 | seems sane enough) |
| 2864 | --enable-suid[=setreuid] |
| 2865 | enable setuid operation, preferring setreuid(2) if |
| 2866 | available over seteuid(2) if optional arg `setreuid' |
| 2867 | is specified (default: enable setuid operation using |
| 2868 | seteuid(2)) |
| 2869 | --enable-dependency-tracking |
| 2870 | do not reject slow dependency extractors |
| 2871 | --disable-dependency-tracking |
| 2872 | speeds up one-time build |
| 2873 | --disable-largefile omit support for large files |
| 2874 | --disable-year2038 omit support for timestamps past the year 2038 |
| 2875 | --enable-threads={isoc|posix|isoc+posix|windows} |
| 2876 | specify multithreading API |
| 2877 | --disable-threads build without multithread safety |
| 2878 | --enable-cross-guesses={conservative|risky} |
| 2879 | specify policy for cross-compilation guesses |
| 2880 | |
| 2881 | Optional Packages: |
| 2882 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 2883 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 2884 | --with-mailer=PROG use PROG to send mail when a lock is broken |
| 2885 | (default: don't send mail) |
| 2886 | |
| 2887 | Some influential environment variables: |
| 2888 | DIFF the name of a program that works like diff(1) from GNU |
| 2889 | diffutils, used to compare files line by line (default is to |
| 2890 | search the PATH for: gdiff rdiff diff) |
| 2891 | DIFF3 the name of a program that works like diff3(1) from GNU |
| 2892 | diffutils, used to compare three files line by line (default is |
| 2893 | to search the PATH for: gdiff3 diff3) |
| 2894 | SOELIM the name of the soelim(1) program, typically from groff, used to |
| 2895 | process .so directives in manpage source; useful only if you |
| 2896 | edit man/*.[15]in or make `maintainer-clean' |
| 2897 | PIC the pic(1) command; if unspecified, configure tries (GNU groff) |
| 2898 | "pic -n", which avoids GNU extensions (needed for proper |
| 2899 | operation to generate a portable man page); otherwise, these are |
| 2900 | tried in order: "gpic -n", "pic -D" (traditional), "pic" |
| 2901 | CC C compiler command |
| 2902 | CFLAGS C compiler flags |
| 2903 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2904 | nonstandard directory <lib dir> |
| 2905 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 2906 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 2907 | you have headers in a nonstandard directory <include dir> |
| 2908 | CPP C preprocessor |
| 2909 | |
| 2910 | Use these variables to override the choices made by `configure' or to help |
| 2911 | it to find libraries and programs with nonstandard names/locations. |
| 2912 | |
| 2913 | Report bugs to <[email protected]>. |
| 2914 | GNU RCS home page: <https://www.gnu.org/software/rcs/>. |
| 2915 | General help using GNU software: <https://www.gnu.org/gethelp/>. |
| 2916 | _ACEOF |
| 2917 | ac_status=$? |
| 2918 | fi |
| 2919 | |
| 2920 | if testscip-shell system . . test. "$ac_init_help" = "recursive"; then |
| 2921 | # If there are subdirs, report their specific --help. |
| 2922 | for ac_dir in : $ac_subdirs_all; do testscip-shell system . . test. "x$ac_dir" = x: && continue |
| 2923 | testscip-shell system . . test. -d "$ac_dir" || |
| 2924 | { cd "$srcdir" && ac_pwd=`pwdscip-shell system . . pwd.` && srcdir=. && testscip-shell system . . test. -d "$ac_dir"; } || |
| 2925 | continue |
| 2926 | ac_builddir=. |
| 2927 | |
| 2928 | case "$ac_dir" in |
| 2929 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2930 | *) |
| 2931 | ac_dir_suffix=/`printfscip-shell system . . printf. "%s\n" "$ac_dir" | sedscip-shell system . . sed. 's|^\.[\\/]||'` |
| 2932 | # A ".." for each directory in $ac_dir_suffix. |
| 2933 | ac_top_builddir_sub=`printfscip-shell system . . printf. "%s\n" "$ac_dir_suffix" | sedscip-shell system . . sed. 's|/[^\\/]*|/..|g;s|/||'` |
| 2934 | case $ac_top_builddir_sub in |
| 2935 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2936 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2937 | esac ;; |
| 2938 | esac |
| 2939 | ac_abs_top_builddir=$ac_pwd |
| 2940 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2941 | # for backward compatibility: |
| 2942 | ac_top_builddir=$ac_top_build_prefix |
| 2943 | |
| 2944 | case $srcdir in |
| 2945 | .) # We are building in place. |
| 2946 | ac_srcdir=. |
| 2947 | ac_top_srcdir=$ac_top_builddir_sub |
| 2948 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2949 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2950 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2951 | ac_top_srcdir=$srcdir |
| 2952 | ac_abs_top_srcdir=$srcdir ;; |
| 2953 | *) # Relative name. |
| 2954 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2955 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2956 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2957 | esac |
| 2958 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2959 | |
| 2960 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2961 | # Check for configure.gnu first; this name is used for a wrapper for |
| 2962 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 2963 | if testscip-shell system . . test. -f "$ac_srcdir/configure.gnu"; then |
| 2964 | echoscip-shell system . . echo. && |
| 2965 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2966 | elif testscip-shell system . . test. -f "$ac_srcdir/configure"; then |
| 2967 | echoscip-shell system . . echo. && |
| 2968 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2969 | else |
| 2970 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2971 | fi || ac_status=$? |
| 2972 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2973 | done |
| 2974 | fi |
| 2975 | |
| 2976 | testscip-shell system . . test. -n "$ac_init_help" && exit $ac_status |
| 2977 | if $ac_init_version; then |
| 2978 | catscip-shell system . . cat. <<\_ACEOF |
| 2979 | GNU RCS configure 5.10.1 |
| 2980 | generated by GNU Autoconf 2.71 |
| 2981 | |
| 2982 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 2983 | This configure script is free software; the Free Software Foundation |
| 2984 | gives unlimited permission to copy, distribute and modify it. |
| 2985 | _ACEOF |
| 2986 | exit |
| 2987 | fi |
| 2988 | |
| 2989 | ## ------------------------ ## |
| 2990 | ## Autoconf initialization. ## |
| 2991 | ## ------------------------ ## |
| 2992 | |
| 2993 | # ac_fn_c_try_compile LINENO |
| 2994 | # -------------------------- |
| 2995 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2996 | ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). () |
| 2997 | { |
| 2998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2999 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest.beam |
| 3000 | if { { ac_try="$ac_compile" |
| 3001 | case "(($ac_try" in |
| 3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3003 | *) ac_try_echo=$ac_try;; |
| 3004 | esac |
| 3005 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3006 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 3007 | (eval "$ac_compile") 2>conftest.err |
| 3008 | ac_status=$? |
| 3009 | if testscip-shell system . . test. -s conftest.err; then |
| 3010 | grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1 |
| 3011 | catscip-shell system . . cat. conftest.er1 >&5 |
| 3012 | mvscip-shell system . . mv. -f conftest.er1 conftest.err |
| 3013 | fi |
| 3014 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3015 | testscip-shell system . . test. $ac_status = 0; } && { |
| 3016 | testscip-shell system . . test. -z "$ac_c_werror_flag" || |
| 3017 | testscip-shell system . . test. ! -s conftest.err |
| 3018 | } && testscip-shell system . . test. -s conftest.$ac_objext |
| 3019 | then : |
| 3020 | ac_retval=0 |
| 3021 | else $as_nop |
| 3022 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 3023 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3024 | |
| 3025 | ac_retval=1 |
| 3026 | fi |
| 3027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3028 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval |
| 3029 | |
| 3030 | } # ac_fn_c_try_compile |
| 3031 | |
| 3032 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 3033 | # ------------------------------------------------------- |
| 3034 | # Tests whether HEADER exists and can be compiled using the include files in |
| 3035 | # INCLUDES, setting the cache variable VAR accordingly. |
| 3036 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). () |
| 3037 | { |
| 3038 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3039 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3040 | printfscip-shell system . . printf. %s "checking for $2... " >&6; } |
| 3041 | if eval test \${$3+y} |
| 3042 | then : |
| 3043 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 3044 | else $as_nop |
| 3045 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3046 | /* end confdefs.h. */ |
| 3047 | $4 |
| 3048 | #include <$2> |
| 3049 | _ACEOF |
| 3050 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3051 | then : |
| 3052 | eval "$3=yes" |
| 3053 | else $as_nop |
| 3054 | eval "$3=no" |
| 3055 | fi |
| 3056 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3057 | fi |
| 3058 | eval ac_res=\$$3 |
| 3059 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3060 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 3061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3062 | |
| 3063 | } # ac_fn_c_check_header_compile |
| 3064 | |
| 3065 | # ac_fn_c_try_cpp LINENO |
| 3066 | # ---------------------- |
| 3067 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 3068 | ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). () |
| 3069 | { |
| 3070 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3071 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 3072 | case "(($ac_try" in |
| 3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3074 | *) ac_try_echo=$ac_try;; |
| 3075 | esac |
| 3076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3077 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 3078 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 3079 | ac_status=$? |
| 3080 | if testscip-shell system . . test. -s conftest.err; then |
| 3081 | grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1 |
| 3082 | catscip-shell system . . cat. conftest.er1 >&5 |
| 3083 | mvscip-shell system . . mv. -f conftest.er1 conftest.err |
| 3084 | fi |
| 3085 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3086 | testscip-shell system . . test. $ac_status = 0; } > conftest.i && { |
| 3087 | testscip-shell system . . test. -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3088 | testscip-shell system . . test. ! -s conftest.err |
| 3089 | } |
| 3090 | then : |
| 3091 | ac_retval=0 |
| 3092 | else $as_nop |
| 3093 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 3094 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3095 | |
| 3096 | ac_retval=1 |
| 3097 | fi |
| 3098 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3099 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval |
| 3100 | |
| 3101 | } # ac_fn_c_try_cpp |
| 3102 | |
| 3103 | # ac_fn_c_try_link LINENO |
| 3104 | # ----------------------- |
| 3105 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 3106 | ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). () |
| 3107 | { |
| 3108 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3109 | rmscip-shell system . . rm. -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 3110 | if { { ac_try="$ac_link" |
| 3111 | case "(($ac_try" in |
| 3112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3113 | *) ac_try_echo=$ac_try;; |
| 3114 | esac |
| 3115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3116 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 3117 | (eval "$ac_link") 2>conftest.err |
| 3118 | ac_status=$? |
| 3119 | if testscip-shell system . . test. -s conftest.err; then |
| 3120 | grepscip-shell system . . grep. -v '^ *+' conftest.err >conftest.er1 |
| 3121 | catscip-shell system . . cat. conftest.er1 >&5 |
| 3122 | mvscip-shell system . . mv. -f conftest.er1 conftest.err |
| 3123 | fi |
| 3124 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3125 | testscip-shell system . . test. $ac_status = 0; } && { |
| 3126 | testscip-shell system . . test. -z "$ac_c_werror_flag" || |
| 3127 | testscip-shell system . . test. ! -s conftest.err |
| 3128 | } && testscip-shell system . . test. -s conftest$ac_exeext && { |
| 3129 | testscip-shell system . . test. "$cross_compiling" = yes || |
| 3130 | testscip-shell system . . test. -x conftest$ac_exeext |
| 3131 | } |
| 3132 | then : |
| 3133 | ac_retval=0 |
| 3134 | else $as_nop |
| 3135 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 3136 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3137 | |
| 3138 | ac_retval=1 |
| 3139 | fi |
| 3140 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 3141 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 3142 | # interfere with the next link command; also delete a directory that is |
| 3143 | # left behind by Apple's compiler. We do this before executing the actions. |
| 3144 | rmscip-shell system . . rm. -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 3145 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3146 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval |
| 3147 | |
| 3148 | } # ac_fn_c_try_link |
| 3149 | |
| 3150 | # ac_fn_c_check_func LINENO FUNC VAR |
| 3151 | # ---------------------------------- |
| 3152 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 3153 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). () |
| 3154 | { |
| 3155 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3156 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3157 | printfscip-shell system . . printf. %s "checking for $2... " >&6; } |
| 3158 | if eval test \${$3+y} |
| 3159 | then : |
| 3160 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 3161 | else $as_nop |
| 3162 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3163 | /* end confdefs.h. */ |
| 3164 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 3165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3166 | #define $2 innocuous_$2 |
| 3167 | |
| 3168 | /* System header to define __stub macros and hopefully few prototypes, |
| 3169 | which can conflict with char $2 (); below. */ |
| 3170 | |
| 3171 | #include <limits.h> |
| 3172 | #undef $2 |
| 3173 | |
| 3174 | /* Override any GCC internal prototype to avoid an error. |
| 3175 | Use char because int might match the return type of a GCC |
| 3176 | builtin and then its argument prototype would still apply. */ |
| 3177 | #ifdef __cplusplus |
| 3178 | extern "C" |
| 3179 | #endif |
| 3180 | char $2 (); |
| 3181 | /* The GNU C library defines this for functions which it implements |
| 3182 | to always fail with ENOSYS. Some functions are actually named |
| 3183 | something starting with __ and the normal name is an alias. */ |
| 3184 | #if defined __stub_$2 || defined __stub___$2 |
| 3185 | choke me |
| 3186 | #endif |
| 3187 | |
| 3188 | int |
| 3189 | main (void) |
| 3190 | { |
| 3191 | return $2 (); |
| 3192 | ; |
| 3193 | return 0; |
| 3194 | } |
| 3195 | _ACEOF |
| 3196 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 3197 | then : |
| 3198 | eval "$3=yes" |
| 3199 | else $as_nop |
| 3200 | eval "$3=no" |
| 3201 | fi |
| 3202 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3203 | conftest$ac_exeext conftest.$ac_ext |
| 3204 | fi |
| 3205 | eval ac_res=\$$3 |
| 3206 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3207 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 3208 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3209 | |
| 3210 | } # ac_fn_c_check_func |
| 3211 | |
| 3212 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 3213 | # ------------------------------------------- |
| 3214 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 3215 | # variable VAR accordingly. |
| 3216 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). () |
| 3217 | { |
| 3218 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3219 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3220 | printfscip-shell system . . printf. %s "checking for $2... " >&6; } |
| 3221 | if eval test \${$3+y} |
| 3222 | then : |
| 3223 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 3224 | else $as_nop |
| 3225 | eval "$3=no" |
| 3226 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3227 | /* end confdefs.h. */ |
| 3228 | $4 |
| 3229 | int |
| 3230 | main (void) |
| 3231 | { |
| 3232 | if (sizeof ($2)) |
| 3233 | return 0; |
| 3234 | ; |
| 3235 | return 0; |
| 3236 | } |
| 3237 | _ACEOF |
| 3238 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3239 | then : |
| 3240 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3241 | /* end confdefs.h. */ |
| 3242 | $4 |
| 3243 | int |
| 3244 | main (void) |
| 3245 | { |
| 3246 | if (sizeof (($2))) |
| 3247 | return 0; |
| 3248 | ; |
| 3249 | return 0; |
| 3250 | } |
| 3251 | _ACEOF |
| 3252 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3253 | then : |
| 3254 | |
| 3255 | else $as_nop |
| 3256 | eval "$3=yes" |
| 3257 | fi |
| 3258 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3259 | fi |
| 3260 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3261 | fi |
| 3262 | eval ac_res=\$$3 |
| 3263 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3264 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 3265 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3266 | |
| 3267 | } # ac_fn_c_check_type |
| 3268 | |
| 3269 | # ac_fn_c_try_run LINENO |
| 3270 | # ---------------------- |
| 3271 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 3272 | # executables *can* be run. |
| 3273 | ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). () |
| 3274 | { |
| 3275 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3276 | if { { ac_try="$ac_link" |
| 3277 | case "(($ac_try" in |
| 3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3279 | *) ac_try_echo=$ac_try;; |
| 3280 | esac |
| 3281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3282 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 3283 | (eval "$ac_link") 2>&5 |
| 3284 | ac_status=$? |
| 3285 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3286 | testscip-shell system . . test. $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 3287 | { { case "(($ac_try" in |
| 3288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3289 | *) ac_try_echo=$ac_try;; |
| 3290 | esac |
| 3291 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3292 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 3293 | (eval "$ac_try") 2>&5 |
| 3294 | ac_status=$? |
| 3295 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3296 | testscip-shell system . . test. $ac_status = 0; }; } |
| 3297 | then : |
| 3298 | ac_retval=0 |
| 3299 | else $as_nop |
| 3300 | printfscip-shell system . . printf. "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 3301 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 3302 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 3303 | |
| 3304 | ac_retval=$ac_status |
| 3305 | fi |
| 3306 | rmscip-shell system . . rm. -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 3307 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3308 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval |
| 3309 | |
| 3310 | } # ac_fn_c_try_run |
| 3311 | |
| 3312 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 3313 | # -------------------------------------------- |
| 3314 | # Tries to find the compile-time value of EXPR in a program that includes |
| 3315 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 3316 | # computed |
| 3317 | ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). () |
| 3318 | { |
| 3319 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3320 | if testscip-shell system . . test. "$cross_compiling" = yes; then |
| 3321 | # Depending upon the size, compute the lo and hi bounds. |
| 3322 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3323 | /* end confdefs.h. */ |
| 3324 | $4 |
| 3325 | int |
| 3326 | main (void) |
| 3327 | { |
| 3328 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 3329 | test_array [0] = 0; |
| 3330 | return test_array [0]; |
| 3331 | |
| 3332 | ; |
| 3333 | return 0; |
| 3334 | } |
| 3335 | _ACEOF |
| 3336 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3337 | then : |
| 3338 | ac_lo=0 ac_mid=0 |
| 3339 | while :; do |
| 3340 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3341 | /* end confdefs.h. */ |
| 3342 | $4 |
| 3343 | int |
| 3344 | main (void) |
| 3345 | { |
| 3346 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 3347 | test_array [0] = 0; |
| 3348 | return test_array [0]; |
| 3349 | |
| 3350 | ; |
| 3351 | return 0; |
| 3352 | } |
| 3353 | _ACEOF |
| 3354 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3355 | then : |
| 3356 | ac_hi=$ac_mid; break |
| 3357 | else $as_nop |
| 3358 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_mid + 1 && ac_lo=$as_val |
| 3359 | if testscip-shell system . . test. $ac_lo -le $ac_mid; then |
| 3360 | ac_lo= ac_hi= |
| 3361 | break |
| 3362 | fi |
| 3363 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 3364 | fi |
| 3365 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3366 | done |
| 3367 | else $as_nop |
| 3368 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3369 | /* end confdefs.h. */ |
| 3370 | $4 |
| 3371 | int |
| 3372 | main (void) |
| 3373 | { |
| 3374 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 3375 | test_array [0] = 0; |
| 3376 | return test_array [0]; |
| 3377 | |
| 3378 | ; |
| 3379 | return 0; |
| 3380 | } |
| 3381 | _ACEOF |
| 3382 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3383 | then : |
| 3384 | ac_hi=-1 ac_mid=-1 |
| 3385 | while :; do |
| 3386 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3387 | /* end confdefs.h. */ |
| 3388 | $4 |
| 3389 | int |
| 3390 | main (void) |
| 3391 | { |
| 3392 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 3393 | test_array [0] = 0; |
| 3394 | return test_array [0]; |
| 3395 | |
| 3396 | ; |
| 3397 | return 0; |
| 3398 | } |
| 3399 | _ACEOF |
| 3400 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3401 | then : |
| 3402 | ac_lo=$ac_mid; break |
| 3403 | else $as_nop |
| 3404 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 3405 | if testscip-shell system . . test. $ac_mid -le $ac_hi; then |
| 3406 | ac_lo= ac_hi= |
| 3407 | break |
| 3408 | fi |
| 3409 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). 2 '*' $ac_mid && ac_mid=$as_val |
| 3410 | fi |
| 3411 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3412 | done |
| 3413 | else $as_nop |
| 3414 | ac_lo= ac_hi= |
| 3415 | fi |
| 3416 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3417 | fi |
| 3418 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3419 | # Binary search between lo and hi bounds. |
| 3420 | while testscip-shell system . . test. "x$ac_lo" != "x$ac_hi"; do |
| 3421 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_hi - $ac_lo ')' /scip-shell filesystem . . `/`. 2 + $ac_lo && ac_mid=$as_val |
| 3422 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3423 | /* end confdefs.h. */ |
| 3424 | $4 |
| 3425 | int |
| 3426 | main (void) |
| 3427 | { |
| 3428 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 3429 | test_array [0] = 0; |
| 3430 | return test_array [0]; |
| 3431 | |
| 3432 | ; |
| 3433 | return 0; |
| 3434 | } |
| 3435 | _ACEOF |
| 3436 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3437 | then : |
| 3438 | ac_hi=$ac_mid |
| 3439 | else $as_nop |
| 3440 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 3441 | fi |
| 3442 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3443 | done |
| 3444 | case $ac_lo in #(( |
| 3445 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 3446 | '') ac_retval=1 ;; |
| 3447 | esac |
| 3448 | else |
| 3449 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3450 | /* end confdefs.h. */ |
| 3451 | $4 |
| 3452 | static long int longval (void) { return $2; } |
| 3453 | static unsigned long int ulongval (void) { return $2; } |
| 3454 | #include <stdio.h> |
| 3455 | #include <stdlib.h> |
| 3456 | int |
| 3457 | main (void) |
| 3458 | { |
| 3459 | |
| 3460 | FILE *f = fopen ("conftest.val", "w"); |
| 3461 | if (! f) |
| 3462 | return 1; |
| 3463 | if (($2) < 0) |
| 3464 | { |
| 3465 | long int i = longval (); |
| 3466 | if (i != ($2)) |
| 3467 | return 1; |
| 3468 | fprintf (f, "%ld", i); |
| 3469 | } |
| 3470 | else |
| 3471 | { |
| 3472 | unsigned long int i = ulongval (); |
| 3473 | if (i != ($2)) |
| 3474 | return 1; |
| 3475 | fprintf (f, "%lu", i); |
| 3476 | } |
| 3477 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 3478 | on some platforms. */ |
| 3479 | return ferror (f) || fclose (f) != 0; |
| 3480 | |
| 3481 | ; |
| 3482 | return 0; |
| 3483 | } |
| 3484 | _ACEOF |
| 3485 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 3486 | then : |
| 3487 | echoscip-shell system . . echo. >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 3488 | else $as_nop |
| 3489 | ac_retval=1 |
| 3490 | fi |
| 3491 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3492 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3493 | rmscip-shell system . . rm. -f conftest.val |
| 3494 | |
| 3495 | fi |
| 3496 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3497 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $ac_retval |
| 3498 | |
| 3499 | } # ac_fn_c_compute_int |
| 3500 | |
| 3501 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 3502 | # ------------------------------------------------------------------ |
| 3503 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 3504 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 3505 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). () |
| 3506 | { |
| 3507 | ac_save_ac_compile="$ac_compile" |
| 3508 | if testscip-shell system . . test. -n "$ac_compile_for_check_decl"; then |
| 3509 | ac_compile="$ac_compile_for_check_decl" |
| 3510 | fi |
| 3511 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3512 | as_decl_name=`echoscip-shell system . . echo. $2|sedscip-shell system . . sed. 's/ *(.*//'` |
| 3513 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 3514 | printfscip-shell system . . printf. %s "checking whether $as_decl_name is declared... " >&6; } |
| 3515 | if eval test \${$3+y} |
| 3516 | then : |
| 3517 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 3518 | else $as_nop |
| 3519 | as_decl_use=`echoscip-shell system . . echo. $2|sedscip-shell system . . sed. -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 3520 | eval ac_save_FLAGS=\$$6 |
| 3521 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). $6 " $5" |
| 3522 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3523 | /* end confdefs.h. */ |
| 3524 | $4 |
| 3525 | int |
| 3526 | main (void) |
| 3527 | { |
| 3528 | #ifndef $as_decl_name |
| 3529 | #ifdef __cplusplus |
| 3530 | (void) $as_decl_use; |
| 3531 | #else |
| 3532 | (void) $as_decl_name; |
| 3533 | #endif |
| 3534 | #endif |
| 3535 | |
| 3536 | ; |
| 3537 | return 0; |
| 3538 | } |
| 3539 | _ACEOF |
| 3540 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3541 | then : |
| 3542 | eval "$3=yes" |
| 3543 | else $as_nop |
| 3544 | eval "$3=no" |
| 3545 | fi |
| 3546 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3547 | eval $6=\$ac_save_FLAGS |
| 3548 | |
| 3549 | fi |
| 3550 | eval ac_res=\$$3 |
| 3551 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3552 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 3553 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3554 | ac_compile="$ac_save_ac_compile" |
| 3555 | |
| 3556 | } # ac_fn_check_decl |
| 3557 | |
| 3558 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 3559 | # ---------------------------------------------------- |
| 3560 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 3561 | # INCLUDES, setting cache variable VAR accordingly. |
| 3562 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 ac_fn_c_check_member(). () |
| 3563 | { |
| 3564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 3565 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 3566 | printfscip-shell system . . printf. %s "checking for $2.$3... " >&6; } |
| 3567 | if eval test \${$4+y} |
| 3568 | then : |
| 3569 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 3570 | else $as_nop |
| 3571 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3572 | /* end confdefs.h. */ |
| 3573 | $5 |
| 3574 | int |
| 3575 | main (void) |
| 3576 | { |
| 3577 | static $2 ac_aggr; |
| 3578 | if (ac_aggr.$3) |
| 3579 | return 0; |
| 3580 | ; |
| 3581 | return 0; |
| 3582 | } |
| 3583 | _ACEOF |
| 3584 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3585 | then : |
| 3586 | eval "$4=yes" |
| 3587 | else $as_nop |
| 3588 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3589 | /* end confdefs.h. */ |
| 3590 | $5 |
| 3591 | int |
| 3592 | main (void) |
| 3593 | { |
| 3594 | static $2 ac_aggr; |
| 3595 | if (sizeof ac_aggr.$3) |
| 3596 | return 0; |
| 3597 | ; |
| 3598 | return 0; |
| 3599 | } |
| 3600 | _ACEOF |
| 3601 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 3602 | then : |
| 3603 | eval "$4=yes" |
| 3604 | else $as_nop |
| 3605 | eval "$4=no" |
| 3606 | fi |
| 3607 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3608 | fi |
| 3609 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3610 | fi |
| 3611 | eval ac_res=\$$4 |
| 3612 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3613 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 3614 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 3615 | |
| 3616 | } # ac_fn_c_check_member |
| 3617 | ac_configure_args_raw= |
| 3618 | for ac_arg |
| 3619 | do |
| 3620 | case $ac_arg in |
| 3621 | *\'*) |
| 3622 | ac_arg=`printfscip-shell system . . printf. "%s\n" "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;; |
| 3623 | esac |
| 3624 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args_raw " '$ac_arg'" |
| 3625 | done |
| 3626 | |
| 3627 | case $ac_configure_args_raw in |
| 3628 | *$as_nl*) |
| 3629 | ac_safe_unquote= ;; |
| 3630 | *) |
| 3631 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 3632 | ac_unsafe_a="$ac_unsafe_z#~" |
| 3633 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 3634 | ac_configure_args_raw=` printfscip-shell system . . printf. "%s\n" "$ac_configure_args_raw" | sedscip-shell system . . sed. "$ac_safe_unquote"`;; |
| 3635 | esac |
| 3636 | |
| 3637 | catscip-shell system . . cat. >config.log <<_ACEOF |
| 3638 | This file contains any messages produced by compilers while |
| 3639 | running configure, to aid debugging if configure makes a mistake. |
| 3640 | |
| 3641 | It was created by GNU RCS $as_me 5.10.1, which was |
| 3642 | generated by GNU Autoconf 2.71. Invocation command line was |
| 3643 | |
| 3644 | $ $0$ac_configure_args_raw |
| 3645 | |
| 3646 | _ACEOF |
| 3647 | exec 5>>config.log |
| 3648 | { |
| 3649 | catscip-shell system . . cat. <<_ASUNAME |
| 3650 | ## --------- ## |
| 3651 | ## Platform. ## |
| 3652 | ## --------- ## |
| 3653 | |
| 3654 | hostname = `(hostnamescip-shell system . . hostname. || unamescip-shell system . . uname. -n) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | sedscip-shell system . . sed. 1q` |
| 3655 | uname -m = `(unamescip-shell system . . uname. -m) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3656 | uname -r = `(unamescip-shell system . . uname. -r) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3657 | uname -s = `(unamescip-shell system . . uname. -s) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3658 | uname -v = `(unamescip-shell system . . uname. -v) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3659 | |
| 3660 | /usr/bin/uname -p = `(/usr/bin/unamescip-shell filesystem . . `/usr/bin/uname`. -p) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3661 | /bin/uname -X = `(/bin/unamescip-shell filesystem . . `/bin/uname`. -X) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3662 | |
| 3663 | /bin/arch = `(/bin/archscip-shell filesystem . . `/bin/arch`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3664 | /usr/bin/arch -k = `(/usr/bin/archscip-shell filesystem . . `/usr/bin/arch`. -k) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3665 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfoscip-shell filesystem . . `/usr/convex/getsysinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3666 | /usr/bin/hostinfo = `(/usr/bin/hostinfoscip-shell filesystem . . `/usr/bin/hostinfo`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3667 | /bin/machine = `(/bin/machinescip-shell filesystem . . `/bin/machine`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3668 | /usr/bin/oslevel = `(/usr/bin/oslevelscip-shell filesystem . . `/usr/bin/oslevel`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3669 | /bin/universe = `(/bin/universescip-shell filesystem . . `/bin/universe`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`. || echoscip-shell system . . echo. unknown` |
| 3670 | |
| 3671 | _ASUNAME |
| 3672 | |
| 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | case $as_dir in #((( |
| 3678 | '') as_dir=./ ;; |
| 3679 | */) ;; |
| 3680 | *) as_dir=$as_dir/ ;; |
| 3681 | esac |
| 3682 | printfscip-shell system . . printf. "%s\n" "PATH: $as_dir" |
| 3683 | done |
| 3684 | IFS=$as_save_IFS |
| 3685 | |
| 3686 | } >&5 |
| 3687 | |
| 3688 | catscip-shell system . . cat. >&5 <<_ACEOF |
| 3689 | |
| 3690 | |
| 3691 | ## ----------- ## |
| 3692 | ## Core tests. ## |
| 3693 | ## ----------- ## |
| 3694 | |
| 3695 | _ACEOF |
| 3696 | |
| 3697 | |
| 3698 | # Keep a trace of the command line. |
| 3699 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3700 | # Strip out --silent because we don't want to record it for future runs. |
| 3701 | # Also quote any args containing shell meta-characters. |
| 3702 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3703 | ac_configure_args= |
| 3704 | ac_configure_args0= |
| 3705 | ac_configure_args1= |
| 3706 | ac_must_keep_next=false |
| 3707 | for ac_pass in 1 2 |
| 3708 | do |
| 3709 | for ac_arg |
| 3710 | do |
| 3711 | case $ac_arg in |
| 3712 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3713 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3714 | | -silent | --silent | --silen | --sile | --sil) |
| 3715 | continue ;; |
| 3716 | *\'*) |
| 3717 | ac_arg=`printfscip-shell system . . printf. "%s\n" "$ac_arg" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;; |
| 3718 | esac |
| 3719 | case $ac_pass in |
| 3720 | 1) as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args0 " '$ac_arg'" ;; |
| 3721 | 2) |
| 3722 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args1 " '$ac_arg'" |
| 3723 | if testscip-shell system . . test. $ac_must_keep_next = true; then |
| 3724 | ac_must_keep_next=false # Got value, back to normal. |
| 3725 | else |
| 3726 | case $ac_arg in |
| 3727 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3728 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3729 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3730 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3731 | case "$ac_configure_args0 " in |
| 3732 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3733 | esac |
| 3734 | ;; |
| 3735 | -* ) ac_must_keep_next=true ;; |
| 3736 | esac |
| 3737 | fi |
| 3738 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args " '$ac_arg'" |
| 3739 | ;; |
| 3740 | esac |
| 3741 | done |
| 3742 | done |
| 3743 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3744 | { ac_configure_args1=; unset ac_configure_args1;} |
| 3745 | |
| 3746 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3747 | # config.log. We remove comments because anyway the quotes in there |
| 3748 | # would cause problems or look ugly. |
| 3749 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3750 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3751 | trap 'exit_status=$? |
| 3752 | # Sanitize IFS. |
| 3753 | IFS=" "" $as_nl" |
| 3754 | # Save into config.log some information that might help in debugging. |
| 3755 | { |
| 3756 | echo |
| 3757 | |
| 3758 | printf "%s\n" "## ---------------- ## |
| 3759 | ## Cache variables. ## |
| 3760 | ## ---------------- ##" |
| 3761 | echo |
| 3762 | # The following way of writing the cache mishandles newlines in values, |
| 3763 | ( |
| 3764 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3765 | eval ac_val=\$$ac_var |
| 3766 | case $ac_val in #( |
| 3767 | *${as_nl}*) |
| 3768 | case $ac_var in #( |
| 3769 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3770 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3771 | esac |
| 3772 | case $ac_var in #( |
| 3773 | _ | IFS | as_nl) ;; #( |
| 3774 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3775 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 3776 | esac ;; |
| 3777 | esac |
| 3778 | done |
| 3779 | (set) 2>&1 | |
| 3780 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3781 | *${as_nl}ac_space=\ *) |
| 3782 | sed -n \ |
| 3783 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3784 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3785 | ;; #( |
| 3786 | *) |
| 3787 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3788 | ;; |
| 3789 | esac | |
| 3790 | sort |
| 3791 | ) |
| 3792 | echo |
| 3793 | |
| 3794 | printf "%s\n" "## ----------------- ## |
| 3795 | ## Output variables. ## |
| 3796 | ## ----------------- ##" |
| 3797 | echo |
| 3798 | for ac_var in $ac_subst_vars |
| 3799 | do |
| 3800 | eval ac_val=\$$ac_var |
| 3801 | case $ac_val in |
| 3802 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3803 | esac |
| 3804 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 3805 | done | sort |
| 3806 | echo |
| 3807 | |
| 3808 | if test -n "$ac_subst_files"; then |
| 3809 | printf "%s\n" "## ------------------- ## |
| 3810 | ## File substitutions. ## |
| 3811 | ## ------------------- ##" |
| 3812 | echo |
| 3813 | for ac_var in $ac_subst_files |
| 3814 | do |
| 3815 | eval ac_val=\$$ac_var |
| 3816 | case $ac_val in |
| 3817 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3818 | esac |
| 3819 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 3820 | done | sort |
| 3821 | echo |
| 3822 | fi |
| 3823 | |
| 3824 | if test -s confdefs.h; then |
| 3825 | printf "%s\n" "## ----------- ## |
| 3826 | ## confdefs.h. ## |
| 3827 | ## ----------- ##" |
| 3828 | echo |
| 3829 | cat confdefs.h |
| 3830 | echo |
| 3831 | fi |
| 3832 | test "$ac_signal" != 0 && |
| 3833 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 3834 | printf "%s\n" "$as_me: exit $exit_status" |
| 3835 | } >&5 |
| 3836 | rm -f core *.core core.conftest.* && |
| 3837 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3838 | exit $exit_status |
| 3839 | ' 0 |
| 3840 | for ac_signal in 1 2 13 15; do |
| 3841 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 3842 | done |
| 3843 | ac_signal=0 |
| 3844 | |
| 3845 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3846 | rmscip-shell system . . rm. -f -r conftest* confdefs.h |
| 3847 | |
| 3848 | printfscip-shell system . . printf. "%s\n" "/* confdefs.h */" > confdefs.h |
| 3849 | |
| 3850 | # Predefined preprocessor variables. |
| 3851 | |
| 3852 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 3853 | |
| 3854 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 3855 | |
| 3856 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 3857 | |
| 3858 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 3859 | |
| 3860 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 3861 | |
| 3862 | printfscip-shell system . . printf. "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 3863 | |
| 3864 | |
| 3865 | # Let the site file select an alternate cache file if it wants to. |
| 3866 | # Prefer an explicitly selected file to automatically selected ones. |
| 3867 | if testscip-shell system . . test. -n "$CONFIG_SITE"; then |
| 3868 | ac_site_files="$CONFIG_SITE" |
| 3869 | elif testscip-shell system . . test. "x$prefix" != xNONE; then |
| 3870 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 3871 | else |
| 3872 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 3873 | fi |
| 3874 | |
| 3875 | for ac_site_file in $ac_site_files |
| 3876 | do |
| 3877 | case $ac_site_file in #( |
| 3878 | */*) : |
| 3879 | ;; #( |
| 3880 | *) : |
| 3881 | ac_site_file=./$ac_site_file ;; |
| 3882 | esac |
| 3883 | if testscip-shell system . . test. -f "$ac_site_file" && testscip-shell system . . test. -r "$ac_site_file"; then |
| 3884 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 3885 | printfscip-shell system . . printf. "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 3886 | sedscip-shell system . . sed. 's/^/| /' "$ac_site_file" >&5 |
| 3887 | . "$ac_site_file" \ |
| 3888 | || { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3889 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3890 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "failed to load site script $ac_site_file |
| 3891 | See \`config.log' for more details" "$LINENO" 5; } |
| 3892 | fi |
| 3893 | done |
| 3894 | |
| 3895 | if testscip-shell system . . test. -r "$cache_file"; then |
| 3896 | # Some versions of bash will fail to source /dev/null (special files |
| 3897 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3898 | if testscip-shell system . . test. /dev/nullscip-shell filesystem . . `/dev/null`. != "$cache_file" && testscip-shell system . . test. -f "$cache_file"; then |
| 3899 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3900 | printfscip-shell system . . printf. "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 3901 | case $cache_file in |
| 3902 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3903 | *) . "./$cache_file";; |
| 3904 | esac |
| 3905 | fi |
| 3906 | else |
| 3907 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3908 | printfscip-shell system . . printf. "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 3909 | >$cache_file |
| 3910 | fi |
| 3911 | |
| 3912 | # Test code for whether the C compiler supports C89 (global declarations) |
| 3913 | ac_c_conftest_c89_globals=' |
| 3914 | /* Does the compiler advertise C89 conformance? |
| 3915 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 3916 | while being otherwise adequately conformant. */ |
| 3917 | #if !defined __STDC__ |
| 3918 | # error "Compiler does not advertise C89 conformance" |
| 3919 | #endif |
| 3920 | |
| 3921 | #include <stddef.h> |
| 3922 | #include <stdarg.h> |
| 3923 | struct stat; |
| 3924 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 3925 | struct buf { int x; }; |
| 3926 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 3927 | static char *e (p, i) |
| 3928 | char **p; |
| 3929 | int i; |
| 3930 | { |
| 3931 | return p[i]; |
| 3932 | } |
| 3933 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3934 | { |
| 3935 | char *s; |
| 3936 | va_list v; |
| 3937 | va_start (v,p); |
| 3938 | s = g (p, va_arg (v,int)); |
| 3939 | va_end (v); |
| 3940 | return s; |
| 3941 | } |
| 3942 | |
| 3943 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3944 | function prototypes and stuff, but not \xHH hex character constants. |
| 3945 | These do not provoke an error unfortunately, instead are silently treated |
| 3946 | as an "x". The following induces an error, until -std is added to get |
| 3947 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 3948 | array size at least. It is necessary to write \x00 == 0 to get something |
| 3949 | that is true only with -std. */ |
| 3950 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 3951 | |
| 3952 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3953 | inside strings and character constants. */ |
| 3954 | #define FOO(x) '\''x'\'' |
| 3955 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 3956 | |
| 3957 | int test (int i, double x); |
| 3958 | struct s1 {int (*f) (int a);}; |
| 3959 | struct s2 {int (*f) (double a);}; |
| 3960 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 3961 | int, int);' |
| 3962 | |
| 3963 | # Test code for whether the C compiler supports C89 (body of main). |
| 3964 | ac_c_conftest_c89_main=' |
| 3965 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 3966 | ' |
| 3967 | |
| 3968 | # Test code for whether the C compiler supports C99 (global declarations) |
| 3969 | ac_c_conftest_c99_globals=' |
| 3970 | // Does the compiler advertise C99 conformance? |
| 3971 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 3972 | # error "Compiler does not advertise C99 conformance" |
| 3973 | #endif |
| 3974 | |
| 3975 | #include <stdbool.h> |
| 3976 | extern int puts (const char *); |
| 3977 | extern int printf (const char *, ...); |
| 3978 | extern int dprintf (int, const char *, ...); |
| 3979 | extern void *malloc (size_t); |
| 3980 | |
| 3981 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 3982 | // dprintf is used instead of fprintf to avoid needing to declare |
| 3983 | // FILE and stderr. |
| 3984 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 3985 | #define showlist(...) puts (#__VA_ARGS__) |
| 3986 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 3987 | static void |
| 3988 | test_varargs_macros (void) |
| 3989 | { |
| 3990 | int x = 1234; |
| 3991 | int y = 5678; |
| 3992 | debug ("Flag"); |
| 3993 | debug ("X = %d\n", x); |
| 3994 | showlist (The first, second, and third items.); |
| 3995 | report (x>y, "x is %d but y is %d", x, y); |
| 3996 | } |
| 3997 | |
| 3998 | // Check long long types. |
| 3999 | #define BIG64 18446744073709551615ull |
| 4000 | #define BIG32 4294967295ul |
| 4001 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 4002 | #if !BIG_OK |
| 4003 | #error "your preprocessor is broken" |
| 4004 | #endif |
| 4005 | #if BIG_OK |
| 4006 | #else |
| 4007 | #error "your preprocessor is broken" |
| 4008 | #endif |
| 4009 | static long long int bignum = -9223372036854775807LL; |
| 4010 | static unsigned long long int ubignum = BIG64; |
| 4011 | |
| 4012 | struct incomplete_array |
| 4013 | { |
| 4014 | int datasize; |
| 4015 | double data[]; |
| 4016 | }; |
| 4017 | |
| 4018 | struct named_init { |
| 4019 | int number; |
| 4020 | const wchar_t *name; |
| 4021 | double average; |
| 4022 | }; |
| 4023 | |
| 4024 | typedef const char *ccp; |
| 4025 | |
| 4026 | static inline int |
| 4027 | test_restrict (ccp restrict text) |
| 4028 | { |
| 4029 | // See if C++-style comments work. |
| 4030 | // Iterate through items via the restricted pointer. |
| 4031 | // Also check for declarations in for loops. |
| 4032 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 4033 | continue; |
| 4034 | return 0; |
| 4035 | } |
| 4036 | |
| 4037 | // Check varargs and va_copy. |
| 4038 | static bool |
| 4039 | test_varargs (const char *format, ...) |
| 4040 | { |
| 4041 | va_list args; |
| 4042 | va_start (args, format); |
| 4043 | va_list args_copy; |
| 4044 | va_copy (args_copy, args); |
| 4045 | |
| 4046 | const char *str = ""; |
| 4047 | int number = 0; |
| 4048 | float fnumber = 0; |
| 4049 | |
| 4050 | while (*format) |
| 4051 | { |
| 4052 | switch (*format++) |
| 4053 | { |
| 4054 | case '\''s'\'': // string |
| 4055 | str = va_arg (args_copy, const char *); |
| 4056 | break; |
| 4057 | case '\''d'\'': // int |
| 4058 | number = va_arg (args_copy, int); |
| 4059 | break; |
| 4060 | case '\''f'\'': // float |
| 4061 | fnumber = va_arg (args_copy, double); |
| 4062 | break; |
| 4063 | default: |
| 4064 | break; |
| 4065 | } |
| 4066 | } |
| 4067 | va_end (args_copy); |
| 4068 | va_end (args); |
| 4069 | |
| 4070 | return *str && number && fnumber; |
| 4071 | } |
| 4072 | ' |
| 4073 | |
| 4074 | # Test code for whether the C compiler supports C99 (body of main). |
| 4075 | ac_c_conftest_c99_main=' |
| 4076 | // Check bool. |
| 4077 | _Bool success = false; |
| 4078 | success |= (argc != 0); |
| 4079 | |
| 4080 | // Check restrict. |
| 4081 | if (test_restrict ("String literal") == 0) |
| 4082 | success = true; |
| 4083 | char *restrict newvar = "Another string"; |
| 4084 | |
| 4085 | // Check varargs. |
| 4086 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 4087 | test_varargs_macros (); |
| 4088 | |
| 4089 | // Check flexible array members. |
| 4090 | struct incomplete_array *ia = |
| 4091 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 4092 | ia->datasize = 10; |
| 4093 | for (int i = 0; i < ia->datasize; ++i) |
| 4094 | ia->data[i] = i * 1.234; |
| 4095 | |
| 4096 | // Check named initializers. |
| 4097 | struct named_init ni = { |
| 4098 | .number = 34, |
| 4099 | .name = L"Test wide string", |
| 4100 | .average = 543.34343, |
| 4101 | }; |
| 4102 | |
| 4103 | ni.number = 58; |
| 4104 | |
| 4105 | int dynamic_array[ni.number]; |
| 4106 | dynamic_array[0] = argv[0][0]; |
| 4107 | dynamic_array[ni.number - 1] = 543; |
| 4108 | |
| 4109 | // work around unused variable warnings |
| 4110 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 4111 | || dynamic_array[ni.number - 1] != 543); |
| 4112 | ' |
| 4113 | |
| 4114 | # Test code for whether the C compiler supports C11 (global declarations) |
| 4115 | ac_c_conftest_c11_globals=' |
| 4116 | // Does the compiler advertise C11 conformance? |
| 4117 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 4118 | # error "Compiler does not advertise C11 conformance" |
| 4119 | #endif |
| 4120 | |
| 4121 | // Check _Alignas. |
| 4122 | char _Alignas (double) aligned_as_double; |
| 4123 | char _Alignas (0) no_special_alignment; |
| 4124 | extern char aligned_as_int; |
| 4125 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 4126 | |
| 4127 | // Check _Alignof. |
| 4128 | enum |
| 4129 | { |
| 4130 | int_alignment = _Alignof (int), |
| 4131 | int_array_alignment = _Alignof (int[100]), |
| 4132 | char_alignment = _Alignof (char) |
| 4133 | }; |
| 4134 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 4135 | |
| 4136 | // Check _Noreturn. |
| 4137 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 4138 | |
| 4139 | // Check _Static_assert. |
| 4140 | struct test_static_assert |
| 4141 | { |
| 4142 | int x; |
| 4143 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 4144 | "_Static_assert does not work in struct"); |
| 4145 | long int y; |
| 4146 | }; |
| 4147 | |
| 4148 | // Check UTF-8 literals. |
| 4149 | #define u8 syntax error! |
| 4150 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 4151 | |
| 4152 | // Check duplicate typedefs. |
| 4153 | typedef long *long_ptr; |
| 4154 | typedef long int *long_ptr; |
| 4155 | typedef long_ptr long_ptr; |
| 4156 | |
| 4157 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 4158 | struct anonymous |
| 4159 | { |
| 4160 | union { |
| 4161 | struct { int i; int j; }; |
| 4162 | struct { int k; long int l; } w; |
| 4163 | }; |
| 4164 | int m; |
| 4165 | } v1; |
| 4166 | ' |
| 4167 | |
| 4168 | # Test code for whether the C compiler supports C11 (body of main). |
| 4169 | ac_c_conftest_c11_main=' |
| 4170 | _Static_assert ((offsetof (struct anonymous, i) |
| 4171 | == offsetof (struct anonymous, w.k)), |
| 4172 | "Anonymous union alignment botch"); |
| 4173 | v1.i = 2; |
| 4174 | v1.w.k = 5; |
| 4175 | ok |= v1.i != 5; |
| 4176 | ' |
| 4177 | |
| 4178 | # Test code for whether the C compiler supports C11 (complete). |
| 4179 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 4180 | ${ac_c_conftest_c99_globals} |
| 4181 | ${ac_c_conftest_c11_globals} |
| 4182 | |
| 4183 | int |
| 4184 | main (int argc, char **argv) |
| 4185 | { |
| 4186 | int ok = 0; |
| 4187 | ${ac_c_conftest_c89_main} |
| 4188 | ${ac_c_conftest_c99_main} |
| 4189 | ${ac_c_conftest_c11_main} |
| 4190 | return ok; |
| 4191 | } |
| 4192 | " |
| 4193 | |
| 4194 | # Test code for whether the C compiler supports C99 (complete). |
| 4195 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 4196 | ${ac_c_conftest_c99_globals} |
| 4197 | |
| 4198 | int |
| 4199 | main (int argc, char **argv) |
| 4200 | { |
| 4201 | int ok = 0; |
| 4202 | ${ac_c_conftest_c89_main} |
| 4203 | ${ac_c_conftest_c99_main} |
| 4204 | return ok; |
| 4205 | } |
| 4206 | " |
| 4207 | |
| 4208 | # Test code for whether the C compiler supports C89 (complete). |
| 4209 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 4210 | |
| 4211 | int |
| 4212 | main (int argc, char **argv) |
| 4213 | { |
| 4214 | int ok = 0; |
| 4215 | ${ac_c_conftest_c89_main} |
| 4216 | return ok; |
| 4217 | } |
| 4218 | " |
| 4219 | |
| 4220 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 4221 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 4222 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 4223 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 4224 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 4225 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 4226 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 4227 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 4228 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 4229 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 4230 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 4231 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" |
| 4232 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" |
| 4233 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fchdir HAVE_FCHDIR" |
| 4234 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " dirent.h dirent_h HAVE_DIRENT_H" |
| 4235 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fcntl HAVE_FCNTL" |
| 4236 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " symlink HAVE_SYMLINK" |
| 4237 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " ftruncate HAVE_FTRUNCATE" |
| 4238 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" |
| 4239 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getlogin_r HAVE_GETLOGIN_R" |
| 4240 | gl_getopt_required=GNU |
| 4241 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H" |
| 4242 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" |
| 4243 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getprogname HAVE_GETPROGNAME" |
| 4244 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getexecname HAVE_GETEXECNAME" |
| 4245 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " timespec_get HAVE_TIMESPEC_GET" |
| 4246 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 4247 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY" |
| 4248 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" |
| 4249 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " lstat HAVE_LSTAT" |
| 4250 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" |
| 4251 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " mprotect HAVE_MPROTECT" |
| 4252 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " mkstemp HAVE_MKSTEMP" |
| 4253 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " obstack_printf HAVE_OBSTACK_PRINTF" |
| 4254 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " pipe HAVE_PIPE" |
| 4255 | gl_printf_safe=yes |
| 4256 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " readlink HAVE_READLINK" |
| 4257 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " sigaction HAVE_SIGACTION" |
| 4258 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " sigaltstack HAVE_SIGALTSTACK" |
| 4259 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT" |
| 4260 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " snprintf HAVE_SNPRINTF" |
| 4261 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " vasnprintf HAVE_VASNPRINTF" |
| 4262 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " features.h features_h HAVE_FEATURES_H" |
| 4263 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/wait.h sys_wait_h HAVE_SYS_WAIT_H" |
| 4264 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " localtime_r HAVE_LOCALTIME_R" |
| 4265 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " utime.h utime_h HAVE_UTIME_H" |
| 4266 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " futimes HAVE_FUTIMES" |
| 4267 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " futimesat HAVE_FUTIMESAT" |
| 4268 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " futimens HAVE_FUTIMENS" |
| 4269 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " utimensat HAVE_UTIMENSAT" |
| 4270 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " lutimes HAVE_LUTIMES" |
| 4271 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" |
| 4272 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fdopendir HAVE_FDOPENDIR" |
| 4273 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " mempcpy HAVE_MEMPCPY" |
| 4274 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fstatat HAVE_FSTATAT" |
| 4275 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" |
| 4276 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getrandom HAVE_GETRANDOM" |
| 4277 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " threads.h threads_h HAVE_THREADS_H" |
| 4278 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " math.h math_h HAVE_MATH_H" |
| 4279 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " openat HAVE_OPENAT" |
| 4280 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H" |
| 4281 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " mach/mach.h mach_mach_h HAVE_MACH_MACH_H" |
| 4282 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " net/errno.h net_errno_h HAVE_NET_ERRNO_H" |
| 4283 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " pwd.h pwd_h HAVE_PWD_H" |
| 4284 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " siginfo.h siginfo_h HAVE_SIGINFO_H" |
| 4285 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
| 4286 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fork HAVE_FORK" |
| 4287 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " vfork HAVE_VFORK" |
| 4288 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " fchmod HAVE_FCHMOD" |
| 4289 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " getpwuid_r HAVE_GETPWUID_R" |
| 4290 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_func_c_list " psiginfo HAVE_PSIGINFO" |
| 4291 | |
| 4292 | # Auxiliary files required by this configure script. |
| 4293 | ac_aux_files="config.guess config.sub compile missing install-sh" |
| 4294 | |
| 4295 | # Locations in which to look for auxiliary files. |
| 4296 | ac_aux_dir_candidates="${srcdir}/build-aux" |
| 4297 | |
| 4298 | # Search for a directory containing all of the required auxiliary files, |
| 4299 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 4300 | # If we don't find one directory that contains all the files we need, |
| 4301 | # we report the set of missing files from the *first* directory in |
| 4302 | # $ac_aux_dir_candidates and give up. |
| 4303 | ac_missing_aux_files="" |
| 4304 | ac_first_candidate=: |
| 4305 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4307 | as_found=false |
| 4308 | for as_dir in $ac_aux_dir_candidates |
| 4309 | do |
| 4310 | IFS=$as_save_IFS |
| 4311 | case $as_dir in #((( |
| 4312 | '') as_dir=./ ;; |
| 4313 | */) ;; |
| 4314 | *) as_dir=$as_dir/ ;; |
| 4315 | esac |
| 4316 | as_found=: |
| 4317 | |
| 4318 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 4319 | ac_aux_dir_found=yes |
| 4320 | ac_install_sh= |
| 4321 | for ac_aux in $ac_aux_files |
| 4322 | do |
| 4323 | # As a special case, if "install-sh" is required, that requirement |
| 4324 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 4325 | # and $ac_install_sh is set appropriately for whichever one is found. |
| 4326 | if testscip-shell system . . test. x"$ac_aux" = x"install-sh" |
| 4327 | then |
| 4328 | if testscip-shell system . . test. -f "${as_dir}install-sh"; then |
| 4329 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 4330 | ac_install_sh="${as_dir}install-sh -c" |
| 4331 | elif testscip-shell system . . test. -f "${as_dir}install.sh"; then |
| 4332 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 4333 | ac_install_sh="${as_dir}install.sh -c" |
| 4334 | elif testscip-shell system . . test. -f "${as_dir}shtool"; then |
| 4335 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 4336 | ac_install_sh="${as_dir}shtool install -c" |
| 4337 | else |
| 4338 | ac_aux_dir_found=no |
| 4339 | if $ac_first_candidate; then |
| 4340 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 4341 | else |
| 4342 | break |
| 4343 | fi |
| 4344 | fi |
| 4345 | else |
| 4346 | if testscip-shell system . . test. -f "${as_dir}${ac_aux}"; then |
| 4347 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 4348 | else |
| 4349 | ac_aux_dir_found=no |
| 4350 | if $ac_first_candidate; then |
| 4351 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 4352 | else |
| 4353 | break |
| 4354 | fi |
| 4355 | fi |
| 4356 | fi |
| 4357 | done |
| 4358 | if testscip-shell system . . test. "$ac_aux_dir_found" = yes; then |
| 4359 | ac_aux_dir="$as_dir" |
| 4360 | break |
| 4361 | fi |
| 4362 | ac_first_candidate=false |
| 4363 | |
| 4364 | as_found=false |
| 4365 | done |
| 4366 | IFS=$as_save_IFS |
| 4367 | if $as_found |
| 4368 | then : |
| 4369 | |
| 4370 | else $as_nop |
| 4371 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 4372 | fi |
| 4373 | |
| 4374 | |
| 4375 | # These three variables are undocumented and unsupported, |
| 4376 | # and are intended to be withdrawn in a future Autoconf release. |
| 4377 | # They can cause serious problems if a builder's source tree is in a directory |
| 4378 | # whose full name contains unusual characters. |
| 4379 | if testscip-shell system . . test. -f "${ac_aux_dir}config.guess"; then |
| 4380 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 4381 | fi |
| 4382 | if testscip-shell system . . test. -f "${ac_aux_dir}config.sub"; then |
| 4383 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 4384 | fi |
| 4385 | if testscip-shell system . . test. -f "$ac_aux_dir/configure"; then |
| 4386 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| 4387 | fi |
| 4388 | |
| 4389 | # Check that the precious variables saved in the cache have kept the same |
| 4390 | # value. |
| 4391 | ac_cache_corrupted=false |
| 4392 | for ac_var in $ac_precious_vars; do |
| 4393 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 4394 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 4395 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 4396 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 4397 | case $ac_old_set,$ac_new_set in |
| 4398 | set,) |
| 4399 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 4400 | printfscip-shell system . . printf. "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 4401 | ac_cache_corrupted=: ;; |
| 4402 | ,set) |
| 4403 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 4404 | printfscip-shell system . . printf. "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 4405 | ac_cache_corrupted=: ;; |
| 4406 | ,);; |
| 4407 | *) |
| 4408 | if testscip-shell system . . test. "x$ac_old_val" != "x$ac_new_val"; then |
| 4409 | # differences in whitespace do not lead to failure. |
| 4410 | ac_old_val_w=`echoscip-shell system . . echo. x $ac_old_val` |
| 4411 | ac_new_val_w=`echoscip-shell system . . echo. x $ac_new_val` |
| 4412 | if testscip-shell system . . test. "$ac_old_val_w" != "$ac_new_val_w"; then |
| 4413 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 4414 | printfscip-shell system . . printf. "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 4415 | ac_cache_corrupted=: |
| 4416 | else |
| 4417 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 4418 | printfscip-shell system . . printf. "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 4419 | eval $ac_var=\$ac_old_val |
| 4420 | fi |
| 4421 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 4422 | printfscip-shell system . . printf. "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 4423 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 4424 | printfscip-shell system . . printf. "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 4425 | fi;; |
| 4426 | esac |
| 4427 | # Pass precious variables to config.status. |
| 4428 | if testscip-shell system . . test. "$ac_new_set" = set; then |
| 4429 | case $ac_new_val in |
| 4430 | *\'*) ac_arg=$ac_var=`printfscip-shell system . . printf. "%s\n" "$ac_new_val" | sedscip-shell system . . sed. "s/'/'\\\\\\\\''/g"` ;; |
| 4431 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 4432 | esac |
| 4433 | case " $ac_configure_args " in |
| 4434 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 4435 | *) as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_configure_args " '$ac_arg'" ;; |
| 4436 | esac |
| 4437 | fi |
| 4438 | done |
| 4439 | if $ac_cache_corrupted; then |
| 4440 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4441 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4442 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 4443 | printfscip-shell system . . printf. "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 4444 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 4445 | and start over" "$LINENO" 5 |
| 4446 | fi |
| 4447 | ## -------------------- ## |
| 4448 | ## Main body of script. ## |
| 4449 | ## -------------------- ## |
| 4450 | |
| 4451 | ac_ext=c |
| 4452 | ac_cpp='$CPP $CPPFLAGS' |
| 4453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | ac_config_headers="$ac_config_headers lib/config.h" |
| 4460 | |
| 4461 | |
| 4462 | am__api_version='1.16' |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | # Find a good install program. We prefer a C program (faster), |
| 4467 | # so one script is as good as another. But avoid the broken or |
| 4468 | # incompatible versions: |
| 4469 | # SysV /etc/install, /usr/sbin/install |
| 4470 | # SunOS /usr/etc/install |
| 4471 | # IRIX /sbin/install |
| 4472 | # AIX /bin/install |
| 4473 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4474 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4475 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4476 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4477 | # OS/2's system install, which has a completely different semantic |
| 4478 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4479 | # Reject install programs that cannot install multiple files. |
| 4480 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4481 | printfscip-shell system . . printf. %s "checking for a BSD-compatible install... " >&6; } |
| 4482 | if testscip-shell system . . test. -z "$INSTALL"; then |
| 4483 | if testscip-shell system . . test. ${ac_cv_path_install+y} |
| 4484 | then : |
| 4485 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4486 | else $as_nop |
| 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | case $as_dir in #((( |
| 4492 | '') as_dir=./ ;; |
| 4493 | */) ;; |
| 4494 | *) as_dir=$as_dir/ ;; |
| 4495 | esac |
| 4496 | # Account for fact that we put trailing slashes in our PATH walk. |
| 4497 | case $as_dir in #(( |
| 4498 | ./ | /[cC]/* | \ |
| 4499 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4500 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 4501 | /usr/ucb/* ) ;; |
| 4502 | *) |
| 4503 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4504 | # Don't use installbsd from OSF since it installs stuff as root |
| 4505 | # by default. |
| 4506 | for ac_prog in ginstall scoinst install; do |
| 4507 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4508 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_prog$ac_exec_ext"; then |
| 4509 | if testscip-shell system . . test. $ac_prog = install && |
| 4510 | grepscip-shell system . . grep. dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4511 | # AIX install. It has an incompatible calling convention. |
| 4512 | : |
| 4513 | elif testscip-shell system . . test. $ac_prog = install && |
| 4514 | grepscip-shell system . . grep. pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4515 | # program-specific install script used by HP pwplus--don't use. |
| 4516 | : |
| 4517 | else |
| 4518 | rmscip-shell system . . rm. -rf conftest.one conftest.two conftest.dir |
| 4519 | echoscip-shell system . . echo. one > conftest.one |
| 4520 | echoscip-shell system . . echo. two > conftest.two |
| 4521 | mkdirscip-shell system . . mkdir. conftest.dir |
| 4522 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwdscip-shell system . . pwd.`/conftest.dir/" && |
| 4523 | testscip-shell system . . test. -s conftest.one && testscip-shell system . . test. -s conftest.two && |
| 4524 | testscip-shell system . . test. -s conftest.dir/conftest.one && |
| 4525 | testscip-shell system . . test. -s conftest.dir/conftest.two |
| 4526 | then |
| 4527 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 4528 | break 3 |
| 4529 | fi |
| 4530 | fi |
| 4531 | fi |
| 4532 | done |
| 4533 | done |
| 4534 | ;; |
| 4535 | esac |
| 4536 | |
| 4537 | done |
| 4538 | IFS=$as_save_IFS |
| 4539 | |
| 4540 | rmscip-shell system . . rm. -rf conftest.one conftest.two conftest.dir |
| 4541 | |
| 4542 | fi |
| 4543 | if testscip-shell system . . test. ${ac_cv_path_install+y}; then |
| 4544 | INSTALL=$ac_cv_path_install |
| 4545 | else |
| 4546 | # As a last resort, use the slow shell script. Don't cache a |
| 4547 | # value for INSTALL within a source directory, because that will |
| 4548 | # break other packages using the cache if that directory is |
| 4549 | # removed, or if the value is a relative name. |
| 4550 | INSTALL=$ac_install_sh |
| 4551 | fi |
| 4552 | fi |
| 4553 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4554 | printfscip-shell system . . printf. "%s\n" "$INSTALL" >&6; } |
| 4555 | |
| 4556 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4557 | # It thinks the first close brace ends the variable substitution. |
| 4558 | testscip-shell system . . test. -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4559 | |
| 4560 | testscip-shell system . . test. -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4561 | |
| 4562 | testscip-shell system . . test. -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4563 | |
| 4564 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 4565 | printfscip-shell system . . printf. %s "checking whether build environment is sane... " >&6; } |
| 4566 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 4567 | # name. Accept space and tab only in the latter. |
| 4568 | am_lf=' |
| 4569 | ' |
| 4570 | case `pwdscip-shell system . . pwd.` in |
| 4571 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 4572 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 4573 | esac |
| 4574 | case $srcdir in |
| 4575 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 4576 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 4577 | esac |
| 4578 | |
| 4579 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 4580 | # arguments. Must try -L first in case configure is actually a |
| 4581 | # symlink; some systems play weird games with the mod time of symlinks |
| 4582 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 4583 | # directory). |
| 4584 | if ( |
| 4585 | am_has_slept=no |
| 4586 | for am_try in 1 2; do |
| 4587 | echoscip-shell system . . echo. "timestamp, slept: $am_has_slept" > conftest.file |
| 4588 | set X `lsscip-shell system . . ls. -Lt "$srcdir/configure" conftest.file 2> /dev/nullscip-shell filesystem . . `/dev/null`.` |
| 4589 | if testscip-shell system . . test. "$*" = "X"; then |
| 4590 | # -L didn't work. |
| 4591 | set X `lsscip-shell system . . ls. -t "$srcdir/configure" conftest.file` |
| 4592 | fi |
| 4593 | if testscip-shell system . . test. "$*" != "X $srcdir/configure conftest.file" \ |
| 4594 | && testscip-shell system . . test. "$*" != "X conftest.file $srcdir/configure"; then |
| 4595 | |
| 4596 | # If neither matched, then we have a broken ls. This can happen |
| 4597 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 4598 | # broken ls alias from the environment. This has actually |
| 4599 | # happened. Such a system could not be considered "sane". |
| 4600 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "ls -t appears to fail. Make sure there is not a broken |
| 4601 | alias in your environment" "$LINENO" 5 |
| 4602 | fi |
| 4603 | if testscip-shell system . . test. "$2" = conftest.file || testscip-shell system . . test. $am_try -eq 2; then |
| 4604 | break |
| 4605 | fi |
| 4606 | # Just in case. |
| 4607 | sleepscip-shell system . . sleep. 1 |
| 4608 | am_has_slept=yes |
| 4609 | done |
| 4610 | testscip-shell system . . test. "$2" = conftest.file |
| 4611 | ) |
| 4612 | then |
| 4613 | # Ok. |
| 4614 | : |
| 4615 | else |
| 4616 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "newly created file is older than distributed files! |
| 4617 | Check your system clock" "$LINENO" 5 |
| 4618 | fi |
| 4619 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4620 | printfscip-shell system . . printf. "%s\n" "yes" >&6; } |
| 4621 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 4622 | # generated files are strictly newer. |
| 4623 | am_sleep_pid= |
| 4624 | if grepscip-shell system . . grep. 'slept: no' conftest.file >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4625 | ( sleepscip-shell system . . sleep. 1 ) & |
| 4626 | am_sleep_pid=$! |
| 4627 | fi |
| 4628 | |
| 4629 | rmscip-shell system . . rm. -f conftest.file |
| 4630 | |
| 4631 | testscip-shell system . . test. "$program_prefix" != NONE && |
| 4632 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 4633 | # Use a double $ so make ignores it. |
| 4634 | testscip-shell system . . test. "$program_suffix" != NONE && |
| 4635 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 4636 | # Double any \ or $. |
| 4637 | # By default was `s,x,x', remove it if useless. |
| 4638 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 4639 | program_transform_name=`printfscip-shell system . . printf. "%s\n" "$program_transform_name" | sedscip-shell system . . sed. "$ac_script"` |
| 4640 | |
| 4641 | |
| 4642 | # Expand $ac_aux_dir to an absolute path. |
| 4643 | am_aux_dir=`cd "$ac_aux_dir" && pwdscip-shell system . . pwd.` |
| 4644 | |
| 4645 | |
| 4646 | if testscip-shell system . . test. x"${MISSING+set}" != xset; then |
| 4647 | MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 4648 | fi |
| 4649 | # Use eval to expand $SHELL |
| 4650 | if eval "$MISSING --is-lightweight"; then |
| 4651 | am_missing_run="$MISSING " |
| 4652 | else |
| 4653 | am_missing_run= |
| 4654 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 4655 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 4656 | fi |
| 4657 | |
| 4658 | if testscip-shell system . . test. x"${install_sh+set}" != xset; then |
| 4659 | case $am_aux_dir in |
| 4660 | *\ * | *\ *) |
| 4661 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 4662 | *) |
| 4663 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 4664 | esac |
| 4665 | fi |
| 4666 | |
| 4667 | # Installed binaries are usually stripped using 'strip' when the user |
| 4668 | # run "make install-strip". However 'strip' might not be the right |
| 4669 | # tool to use in cross-compilation environments, therefore Automake |
| 4670 | # will honor the 'STRIP' environment variable to overrule this program. |
| 4671 | if testscip-shell system . . test. "$cross_compiling" != no; then |
| 4672 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 4673 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4674 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4675 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4676 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 4677 | if testscip-shell system . . test. ${ac_cv_prog_STRIP+y} |
| 4678 | then : |
| 4679 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4680 | else $as_nop |
| 4681 | if testscip-shell system . . test. -n "$STRIP"; then |
| 4682 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4683 | else |
| 4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4685 | for as_dir in $PATH |
| 4686 | do |
| 4687 | IFS=$as_save_IFS |
| 4688 | case $as_dir in #((( |
| 4689 | '') as_dir=./ ;; |
| 4690 | */) ;; |
| 4691 | *) as_dir=$as_dir/ ;; |
| 4692 | esac |
| 4693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4694 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 4695 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4696 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4697 | break 2 |
| 4698 | fi |
| 4699 | done |
| 4700 | done |
| 4701 | IFS=$as_save_IFS |
| 4702 | |
| 4703 | fi |
| 4704 | fi |
| 4705 | STRIP=$ac_cv_prog_STRIP |
| 4706 | if testscip-shell system . . test. -n "$STRIP"; then |
| 4707 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 4708 | printfscip-shell system . . printf. "%s\n" "$STRIP" >&6; } |
| 4709 | else |
| 4710 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4711 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 4712 | fi |
| 4713 | |
| 4714 | |
| 4715 | fi |
| 4716 | if testscip-shell system . . test. -z "$ac_cv_prog_STRIP"; then |
| 4717 | ac_ct_STRIP=$STRIP |
| 4718 | # Extract the first word of "strip", so it can be a program name with args. |
| 4719 | set dummy strip; ac_word=$2 |
| 4720 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4721 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 4722 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_STRIP+y} |
| 4723 | then : |
| 4724 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4725 | else $as_nop |
| 4726 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 4727 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4728 | else |
| 4729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4730 | for as_dir in $PATH |
| 4731 | do |
| 4732 | IFS=$as_save_IFS |
| 4733 | case $as_dir in #((( |
| 4734 | '') as_dir=./ ;; |
| 4735 | */) ;; |
| 4736 | *) as_dir=$as_dir/ ;; |
| 4737 | esac |
| 4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4739 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 4740 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4741 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4742 | break 2 |
| 4743 | fi |
| 4744 | done |
| 4745 | done |
| 4746 | IFS=$as_save_IFS |
| 4747 | |
| 4748 | fi |
| 4749 | fi |
| 4750 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4751 | if testscip-shell system . . test. -n "$ac_ct_STRIP"; then |
| 4752 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 4753 | printfscip-shell system . . printf. "%s\n" "$ac_ct_STRIP" >&6; } |
| 4754 | else |
| 4755 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4756 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 4757 | fi |
| 4758 | |
| 4759 | if testscip-shell system . . test. "x$ac_ct_STRIP" = x; then |
| 4760 | STRIP=":" |
| 4761 | else |
| 4762 | case $cross_compiling:$ac_tool_warned in |
| 4763 | yes:) |
| 4764 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4765 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4766 | ac_tool_warned=yes ;; |
| 4767 | esac |
| 4768 | STRIP=$ac_ct_STRIP |
| 4769 | fi |
| 4770 | else |
| 4771 | STRIP="$ac_cv_prog_STRIP" |
| 4772 | fi |
| 4773 | |
| 4774 | fi |
| 4775 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 4776 | |
| 4777 | |
| 4778 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 4779 | printfscip-shell system . . printf. %s "checking for a race-free mkdir -p... " >&6; } |
| 4780 | if testscip-shell system . . test. -z "$MKDIR_P"; then |
| 4781 | if testscip-shell system . . test. ${ac_cv_path_mkdir+y} |
| 4782 | then : |
| 4783 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4784 | else $as_nop |
| 4785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4786 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 4787 | do |
| 4788 | IFS=$as_save_IFS |
| 4789 | case $as_dir in #((( |
| 4790 | '') as_dir=./ ;; |
| 4791 | */) ;; |
| 4792 | *) as_dir=$as_dir/ ;; |
| 4793 | esac |
| 4794 | for ac_prog in mkdir gmkdir; do |
| 4795 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4796 | as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_prog$ac_exec_ext" || continue |
| 4797 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 4798 | 'mkdir ('*'coreutils) '* | \ |
| 4799 | 'BusyBox '* | \ |
| 4800 | 'mkdir (fileutils) '4.1*) |
| 4801 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 4802 | break 3;; |
| 4803 | esac |
| 4804 | done |
| 4805 | done |
| 4806 | done |
| 4807 | IFS=$as_save_IFS |
| 4808 | |
| 4809 | fi |
| 4810 | |
| 4811 | testscip-shell system . . test. -d ./--version && rmdirscip-shell system . . rmdir. ./--version |
| 4812 | if testscip-shell system . . test. ${ac_cv_path_mkdir+y}; then |
| 4813 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 4814 | else |
| 4815 | # As a last resort, use the slow shell script. Don't cache a |
| 4816 | # value for MKDIR_P within a source directory, because that will |
| 4817 | # break other packages using the cache if that directory is |
| 4818 | # removed, or if the value is a relative name. |
| 4819 | MKDIR_P="$ac_install_sh -d" |
| 4820 | fi |
| 4821 | fi |
| 4822 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 4823 | printfscip-shell system . . printf. "%s\n" "$MKDIR_P" >&6; } |
| 4824 | |
| 4825 | for ac_prog in gawk mawk nawk awk |
| 4826 | do |
| 4827 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4828 | set dummy $ac_prog; ac_word=$2 |
| 4829 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4830 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 4831 | if testscip-shell system . . test. ${ac_cv_prog_AWK+y} |
| 4832 | then : |
| 4833 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4834 | else $as_nop |
| 4835 | if testscip-shell system . . test. -n "$AWK"; then |
| 4836 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4837 | else |
| 4838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4839 | for as_dir in $PATH |
| 4840 | do |
| 4841 | IFS=$as_save_IFS |
| 4842 | case $as_dir in #((( |
| 4843 | '') as_dir=./ ;; |
| 4844 | */) ;; |
| 4845 | *) as_dir=$as_dir/ ;; |
| 4846 | esac |
| 4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4848 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 4849 | ac_cv_prog_AWK="$ac_prog" |
| 4850 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4851 | break 2 |
| 4852 | fi |
| 4853 | done |
| 4854 | done |
| 4855 | IFS=$as_save_IFS |
| 4856 | |
| 4857 | fi |
| 4858 | fi |
| 4859 | AWK=$ac_cv_prog_AWK |
| 4860 | if testscip-shell system . . test. -n "$AWK"; then |
| 4861 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4862 | printfscip-shell system . . printf. "%s\n" "$AWK" >&6; } |
| 4863 | else |
| 4864 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4865 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 4866 | fi |
| 4867 | |
| 4868 | |
| 4869 | testscip-shell system . . test. -n "$AWK" && break |
| 4870 | done |
| 4871 | |
| 4872 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4873 | printfscip-shell system . . printf. %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4874 | set x ${MAKE-make} |
| 4875 | ac_make=`printfscip-shell system . . printf. "%s\n" "$2" | sedscip-shell system . . sed. 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4876 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 4877 | then : |
| 4878 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4879 | else $as_nop |
| 4880 | catscip-shell system . . cat. >conftest.make <<\_ACEOF |
| 4881 | SHELL = /bin/sh |
| 4882 | all: |
| 4883 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4884 | _ACEOF |
| 4885 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 4886 | case `${MAKE-make} -f conftest.make 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 4887 | *@@@%%%=?*=@@@%%%*) |
| 4888 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4889 | *) |
| 4890 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4891 | esac |
| 4892 | rmscip-shell system . . rm. -f conftest.make |
| 4893 | fi |
| 4894 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4895 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4896 | printfscip-shell system . . printf. "%s\n" "yes" >&6; } |
| 4897 | SET_MAKE= |
| 4898 | else |
| 4899 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4900 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 4901 | SET_MAKE="MAKE=${MAKE-make}" |
| 4902 | fi |
| 4903 | |
| 4904 | rmscip-shell system . . rm. -rf .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4905 | mkdirscip-shell system . . mkdir. .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4906 | if testscip-shell system . . test. -d .tst; then |
| 4907 | am__leading_dot=. |
| 4908 | else |
| 4909 | am__leading_dot=_ |
| 4910 | fi |
| 4911 | rmdirscip-shell system . . rmdir. .tst 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 4912 | |
| 4913 | # Check whether --enable-silent-rules was given. |
| 4914 | if testscip-shell system . . test. ${enable_silent_rules+y} |
| 4915 | then : |
| 4916 | enableval=$enable_silent_rules; |
| 4917 | fi |
| 4918 | |
| 4919 | case $enable_silent_rules in # ((( |
| 4920 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4921 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4922 | *) AM_DEFAULT_VERBOSITY=1;; |
| 4923 | esac |
| 4924 | am_make=${MAKE-make} |
| 4925 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 4926 | printfscip-shell system . . printf. %s "checking whether $am_make supports nested variables... " >&6; } |
| 4927 | if testscip-shell system . . test. ${am_cv_make_support_nested_variables+y} |
| 4928 | then : |
| 4929 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 4930 | else $as_nop |
| 4931 | if printfscip-shell system . . printf. "%s\n" 'TRUE=$(BAR$(V)) |
| 4932 | BAR0=false |
| 4933 | BAR1=true |
| 4934 | V=1 |
| 4935 | am__doit: |
| 4936 | @$(TRUE) |
| 4937 | .PHONY: am__doit' | $am_make -f - >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 4938 | am_cv_make_support_nested_variables=yes |
| 4939 | else |
| 4940 | am_cv_make_support_nested_variables=no |
| 4941 | fi |
| 4942 | fi |
| 4943 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 4944 | printfscip-shell system . . printf. "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 4945 | if testscip-shell system . . test. $am_cv_make_support_nested_variables = yes; then |
| 4946 | AM_V='$(V)' |
| 4947 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 4948 | else |
| 4949 | AM_V=$AM_DEFAULT_VERBOSITY |
| 4950 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 4951 | fi |
| 4952 | AM_BACKSLASH='\' |
| 4953 | |
| 4954 | if testscip-shell system . . test. "`cd $srcdir && pwdscip-shell system . . pwd.`" != "`pwdscip-shell system . . pwd.`"; then |
| 4955 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4956 | # is not polluted with repeated "-I." |
| 4957 | am__isrc=' -I$(srcdir)' |
| 4958 | # test to see if srcdir already configured |
| 4959 | if testscip-shell system . . test. -f $srcdir/config.status; then |
| 4960 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 4961 | fi |
| 4962 | fi |
| 4963 | |
| 4964 | # test whether we have cygpath |
| 4965 | if testscip-shell system . . test. -z "$CYGPATH_W"; then |
| 4966 | if (cygpath --version) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 4967 | CYGPATH_W='cygpath -w' |
| 4968 | else |
| 4969 | CYGPATH_W=echo |
| 4970 | fi |
| 4971 | fi |
| 4972 | |
| 4973 | |
| 4974 | # Define the identity of the package. |
| 4975 | PACKAGE='rcs' |
| 4976 | VERSION='5.10.1' |
| 4977 | |
| 4978 | |
| 4979 | # Some tools Automake needs. |
| 4980 | |
| 4981 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4982 | |
| 4983 | |
| 4984 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4985 | |
| 4986 | |
| 4987 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4988 | |
| 4989 | |
| 4990 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4991 | |
| 4992 | |
| 4993 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4994 | |
| 4995 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 4996 | # dies out for good. For more background, see: |
| 4997 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 4998 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 4999 | mkdir_p='$(MKDIR_P)' |
| 5000 | |
| 5001 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 5002 | # system "awk" is bad on some platforms. |
| 5003 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 5004 | # in the wild :-( We should find a proper way to deprecate it ... |
| 5005 | AMTAR='$${TAR-tar}' |
| 5006 | |
| 5007 | |
| 5008 | # We'll loop over all known methods to create a tar archive until one works. |
| 5009 | _am_tools='gnutar pax cpio none' |
| 5010 | |
| 5011 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | |
| 5017 | # Variables for tags utilities; see am/tags.am |
| 5018 | if testscip-shell system . . test. -z "$CTAGS"; then |
| 5019 | CTAGS=ctags |
| 5020 | fi |
| 5021 | |
| 5022 | if testscip-shell system . . test. -z "$ETAGS"; then |
| 5023 | ETAGS=etags |
| 5024 | fi |
| 5025 | |
| 5026 | if testscip-shell system . . test. -z "$CSCOPE"; then |
| 5027 | CSCOPE=cscope |
| 5028 | fi |
| 5029 | |
| 5030 | |
| 5031 | |
| 5032 | # POSIX will say in a future version that running "rm -f" with no argument |
| 5033 | # is OK; and we want to be able to make that assumption in our Makefile |
| 5034 | # recipes. So use an aggressive probe to check that the usage we want is |
| 5035 | # actually supported "in the wild" to an acceptable degree. |
| 5036 | # See automake bug#10828. |
| 5037 | # To make any issue more visible, cause the running configure to be aborted |
| 5038 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 5039 | # user can still override this though. |
| 5040 | if rmscip-shell system . . rm. -f && rmscip-shell system . . rm. -fr && rmscip-shell system . . rm. -rf; then : OK; else |
| 5041 | catscip-shell system . . cat. >&2 <<'END' |
| 5042 | Oops! |
| 5043 | |
| 5044 | Your 'rm' program seems unable to run without file operands specified |
| 5045 | on the command line, even when the '-f' option is present. This is contrary |
| 5046 | to the behaviour of most rm programs out there, and not conforming with |
| 5047 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 5048 | |
| 5049 | Please tell [email protected] about your system, including the value |
| 5050 | of your $PATH and any error possibly output before this message. This |
| 5051 | can help us improve future automake versions. |
| 5052 | |
| 5053 | END |
| 5054 | if testscip-shell system . . test. x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 5055 | echoscip-shell system . . echo. 'Configuration will proceed anyway, since you have set the' >&2 |
| 5056 | echoscip-shell system . . echo. 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 5057 | echoscip-shell system . . echo. >&2 |
| 5058 | else |
| 5059 | catscip-shell system . . cat. >&2 <<'END' |
| 5060 | Aborting the configuration process, to ensure you take notice of the issue. |
| 5061 | |
| 5062 | You can download and install GNU coreutils to get an 'rm' implementation |
| 5063 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 5064 | |
| 5065 | If you want to complete the configuration process using your problematic |
| 5066 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 5067 | to "yes", and re-run configure. |
| 5068 | |
| 5069 | END |
| 5070 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 5071 | fi |
| 5072 | fi |
| 5073 | |
| 5074 | case $PACKAGE_VERSION in #( |
| 5075 | *.*.*) : |
| 5076 | pretest_p=yes ;; #( |
| 5077 | *) : |
| 5078 | pretest_p=no ;; |
| 5079 | esac |
| 5080 | |
| 5081 | # syntax terrors |
| 5082 | |
| 5083 | |
| 5084 | |
| 5085 | |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | |
| 5090 | |
| 5091 | # --enable, --with |
| 5092 | |
| 5093 | # Check whether --enable-coverage was given. |
| 5094 | if testscip-shell system . . test. ${enable_coverage+y} |
| 5095 | then : |
| 5096 | enableval=$enable_coverage; |
| 5097 | else $as_nop |
| 5098 | enable_coverage=no |
| 5099 | fi |
| 5100 | |
| 5101 | |
| 5102 | |
| 5103 | # Check whether --with-mailer was given. |
| 5104 | if testscip-shell system . . test. ${with_mailer+y} |
| 5105 | then : |
| 5106 | withval=$with_mailer; |
| 5107 | else $as_nop |
| 5108 | with_mailer=no |
| 5109 | fi |
| 5110 | |
| 5111 | if testscip-shell system . . test. no = "$with_mailer" |
| 5112 | then : |
| 5113 | : |
| 5114 | else $as_nop |
| 5115 | |
| 5116 | SENDMAIL="$with_mailer" |
| 5117 | save_SENDMAIL=$SENDMAIL |
| 5118 | # Extract the first word of "$[]SENDMAIL", so it can be a program name with args. |
| 5119 | set dummy $SENDMAIL; ac_word=$2 |
| 5120 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5121 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5122 | if testscip-shell system . . test. ${ac_cv_path_SENDMAIL+y} |
| 5123 | then : |
| 5124 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5125 | else $as_nop |
| 5126 | case $SENDMAIL in |
| 5127 | [\\/]* | ?:[\\/]*) |
| 5128 | ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. |
| 5129 | ;; |
| 5130 | *) |
| 5131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5132 | for as_dir in $PATH |
| 5133 | do |
| 5134 | IFS=$as_save_IFS |
| 5135 | case $as_dir in #((( |
| 5136 | '') as_dir=./ ;; |
| 5137 | */) ;; |
| 5138 | *) as_dir=$as_dir/ ;; |
| 5139 | esac |
| 5140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5141 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5142 | ac_cv_path_SENDMAIL="$as_dir$ac_word$ac_exec_ext" |
| 5143 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5144 | break 2 |
| 5145 | fi |
| 5146 | done |
| 5147 | done |
| 5148 | IFS=$as_save_IFS |
| 5149 | |
| 5150 | testscip-shell system . . test. -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no" |
| 5151 | ;; |
| 5152 | esac |
| 5153 | fi |
| 5154 | SENDMAIL=$ac_cv_path_SENDMAIL |
| 5155 | if testscip-shell system . . test. -n "$SENDMAIL"; then |
| 5156 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5 |
| 5157 | printfscip-shell system . . printf. "%s\n" "$SENDMAIL" >&6; } |
| 5158 | else |
| 5159 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5160 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5161 | fi |
| 5162 | |
| 5163 | |
| 5164 | if testscip-shell system . . test. -z "$SENDMAIL" || testscip-shell system . . test. no = "$SENDMAIL" |
| 5165 | then : |
| 5166 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find absolute name of mailer program: $save_SENDMAIL" "$LINENO" 5 |
| 5167 | fi |
| 5168 | |
| 5169 | |
| 5170 | printfscip-shell system . . printf. "%s\n" "#define SENDMAIL \"$SENDMAIL\"" >>confdefs.h |
| 5171 | |
| 5172 | |
| 5173 | |
| 5174 | fi |
| 5175 | |
| 5176 | # Check whether --enable-mmap was given. |
| 5177 | if testscip-shell system . . test. ${enable_mmap+y} |
| 5178 | then : |
| 5179 | enableval=$enable_mmap; use_mmap=$enableval |
| 5180 | else $as_nop |
| 5181 | use_mmap=yes |
| 5182 | fi |
| 5183 | |
| 5184 | |
| 5185 | # Check whether --enable-suid was given. |
| 5186 | if testscip-shell system . . test. ${enable_suid+y} |
| 5187 | then : |
| 5188 | enableval=$enable_suid; : |
| 5189 | else $as_nop |
| 5190 | enable_suid=yes |
| 5191 | fi |
| 5192 | |
| 5193 | |
| 5194 | # Set up simple `diff' test. |
| 5195 | echoscip-shell system . . echo. 0 >conftest0 |
| 5196 | echoscip-shell system . . echo. 0 >conftest0c |
| 5197 | echoscip-shell system . . echo. 1 >conftest1 |
| 5198 | { echoscip-shell system . . echo. d1 1 ; echoscip-shell system . . echo. a1 1 ; echoscip-shell system . . echo. 1 ; } >conftestok |
| 5199 | |
| 5200 | # Set DIFF to the name of the `diff' program to be run. |
| 5201 | |
| 5202 | |
| 5203 | |
| 5204 | sane_diff=no |
| 5205 | # If env var ‘DIFF’ is set and this is a cross-compile, |
| 5206 | # don't bother checking it; assume user knows they are doing. |
| 5207 | if testscip-shell system . . test. "$DIFF" |
| 5208 | then : |
| 5209 | case $cross_compiling in #( |
| 5210 | yes) : |
| 5211 | |
| 5212 | sane_diff=yes |
| 5213 | if testscip-shell system . . test. ${rcs_cv_sane_DIFF+y} |
| 5214 | then : |
| 5215 | : |
| 5216 | else $as_nop |
| 5217 | rcs_cv_sane_DIFF=yes |
| 5218 | fi |
| 5219 | |
| 5220 | if testscip-shell system . . test. ${rcs_cv_status_diff_success+y} |
| 5221 | then : |
| 5222 | : |
| 5223 | else $as_nop |
| 5224 | rcs_cv_status_diff_success=0 |
| 5225 | fi |
| 5226 | |
| 5227 | if testscip-shell system . . test. ${rcs_cv_status_diff_failure+y} |
| 5228 | then : |
| 5229 | : |
| 5230 | else $as_nop |
| 5231 | rcs_cv_status_diff_failure=1 |
| 5232 | fi |
| 5233 | |
| 5234 | if testscip-shell system . . test. ${rcs_cv_status_diff_trouble+y} |
| 5235 | then : |
| 5236 | : |
| 5237 | else $as_nop |
| 5238 | rcs_cv_status_diff_trouble=2 |
| 5239 | fi |
| 5240 | |
| 5241 | if testscip-shell system . . test. ${rcs_cv_options_diff+y} |
| 5242 | then : |
| 5243 | : |
| 5244 | else $as_nop |
| 5245 | rcs_cv_options_diff='-an' |
| 5246 | fi |
| 5247 | |
| 5248 | if testscip-shell system . . test. ${rcs_cv_options_diff_l+y} |
| 5249 | then : |
| 5250 | : |
| 5251 | else $as_nop |
| 5252 | rcs_cv_options_diff_l=yes |
| 5253 | fi |
| 5254 | |
| 5255 | ;; #( |
| 5256 | *) : |
| 5257 | if testscip-shell system . . test. yes = "$sane_diff" |
| 5258 | then : |
| 5259 | : |
| 5260 | else $as_nop |
| 5261 | |
| 5262 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $DIFF works like GNU diff" >&5 |
| 5263 | printfscip-shell system . . printf. %s "checking if $DIFF works like GNU diff... " >&6; } |
| 5264 | if testscip-shell system . . test. ${rcs_cv_sane_DIFF+y} |
| 5265 | then : |
| 5266 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5267 | else $as_nop |
| 5268 | |
| 5269 | rcs_cv_sane_DIFF=no |
| 5270 | shscip-shell system . . sh. -c "exec $DIFF -n conftest0 conftest1" >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5271 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s conftestok conftestout |
| 5272 | rv=$? |
| 5273 | if testscip-shell system . . test. 0 = $rv |
| 5274 | then : |
| 5275 | rcs_cv_sane_DIFF=yes |
| 5276 | else $as_nop |
| 5277 | rcs_cv_sane_DIFF=no |
| 5278 | fi |
| 5279 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5280 | |
| 5281 | |
| 5282 | fi |
| 5283 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_DIFF" >&5 |
| 5284 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_DIFF" >&6; } |
| 5285 | if testscip-shell system . . test. yes = "$rcs_cv_sane_DIFF" |
| 5286 | then : |
| 5287 | |
| 5288 | sane_diff=yes |
| 5289 | DIFF=$DIFF |
| 5290 | |
| 5291 | fi |
| 5292 | fi ;; |
| 5293 | esac |
| 5294 | fi |
| 5295 | |
| 5296 | if testscip-shell system . . test. yes = "$sane_diff" |
| 5297 | then : |
| 5298 | : |
| 5299 | else $as_nop |
| 5300 | |
| 5301 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gdiff works like GNU diff" >&5 |
| 5302 | printfscip-shell system . . printf. %s "checking if gdiff works like GNU diff... " >&6; } |
| 5303 | if testscip-shell system . . test. ${rcs_cv_sane_gdiff+y} |
| 5304 | then : |
| 5305 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5306 | else $as_nop |
| 5307 | |
| 5308 | rcs_cv_sane_gdiff=no |
| 5309 | shscip-shell system . . sh. -c "exec gdiff -n conftest0 conftest1" >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5310 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s conftestok conftestout |
| 5311 | rv=$? |
| 5312 | if testscip-shell system . . test. 0 = $rv |
| 5313 | then : |
| 5314 | rcs_cv_sane_gdiff=yes |
| 5315 | else $as_nop |
| 5316 | rcs_cv_sane_gdiff=no |
| 5317 | fi |
| 5318 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5319 | |
| 5320 | |
| 5321 | fi |
| 5322 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_gdiff" >&5 |
| 5323 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_gdiff" >&6; } |
| 5324 | if testscip-shell system . . test. yes = "$rcs_cv_sane_gdiff" |
| 5325 | then : |
| 5326 | |
| 5327 | sane_diff=yes |
| 5328 | DIFF=gdiff |
| 5329 | |
| 5330 | fi |
| 5331 | fi |
| 5332 | |
| 5333 | if testscip-shell system . . test. yes = "$sane_diff" |
| 5334 | then : |
| 5335 | : |
| 5336 | else $as_nop |
| 5337 | |
| 5338 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rdiff works like GNU diff" >&5 |
| 5339 | printfscip-shell system . . printf. %s "checking if rdiff works like GNU diff... " >&6; } |
| 5340 | if testscip-shell system . . test. ${rcs_cv_sane_rdiff+y} |
| 5341 | then : |
| 5342 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5343 | else $as_nop |
| 5344 | |
| 5345 | rcs_cv_sane_rdiff=no |
| 5346 | shscip-shell system . . sh. -c "exec rdiff -n conftest0 conftest1" >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5347 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s conftestok conftestout |
| 5348 | rv=$? |
| 5349 | if testscip-shell system . . test. 0 = $rv |
| 5350 | then : |
| 5351 | rcs_cv_sane_rdiff=yes |
| 5352 | else $as_nop |
| 5353 | rcs_cv_sane_rdiff=no |
| 5354 | fi |
| 5355 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5356 | |
| 5357 | |
| 5358 | fi |
| 5359 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_rdiff" >&5 |
| 5360 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_rdiff" >&6; } |
| 5361 | if testscip-shell system . . test. yes = "$rcs_cv_sane_rdiff" |
| 5362 | then : |
| 5363 | |
| 5364 | sane_diff=yes |
| 5365 | DIFF=rdiff |
| 5366 | |
| 5367 | fi |
| 5368 | fi |
| 5369 | |
| 5370 | if testscip-shell system . . test. yes = "$sane_diff" |
| 5371 | then : |
| 5372 | : |
| 5373 | else $as_nop |
| 5374 | |
| 5375 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if diff works like GNU diff" >&5 |
| 5376 | printfscip-shell system . . printf. %s "checking if diff works like GNU diff... " >&6; } |
| 5377 | if testscip-shell system . . test. ${rcs_cv_sane_diff+y} |
| 5378 | then : |
| 5379 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5380 | else $as_nop |
| 5381 | |
| 5382 | rcs_cv_sane_diff=no |
| 5383 | shscip-shell system . . sh. -c "exec diff -n conftest0 conftest1" >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5384 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s conftestok conftestout |
| 5385 | rv=$? |
| 5386 | if testscip-shell system . . test. 0 = $rv |
| 5387 | then : |
| 5388 | rcs_cv_sane_diff=yes |
| 5389 | else $as_nop |
| 5390 | rcs_cv_sane_diff=no |
| 5391 | fi |
| 5392 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5393 | |
| 5394 | |
| 5395 | fi |
| 5396 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_diff" >&5 |
| 5397 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_diff" >&6; } |
| 5398 | if testscip-shell system . . test. yes = "$rcs_cv_sane_diff" |
| 5399 | then : |
| 5400 | |
| 5401 | sane_diff=yes |
| 5402 | DIFF=diff |
| 5403 | |
| 5404 | fi |
| 5405 | fi |
| 5406 | |
| 5407 | |
| 5408 | if testscip-shell system . . test. -z "$sane_diff" || testscip-shell system . . test. no = "$sane_diff" |
| 5409 | then : |
| 5410 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find a sane line-by-line differences program (tried: gdiff rdiff diff)" "$LINENO" 5 |
| 5411 | fi |
| 5412 | |
| 5413 | save_DIFF=$DIFF |
| 5414 | # Extract the first word of "$[]DIFF", so it can be a program name with args. |
| 5415 | set dummy $DIFF; ac_word=$2 |
| 5416 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5417 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5418 | if testscip-shell system . . test. ${ac_cv_path_DIFF+y} |
| 5419 | then : |
| 5420 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5421 | else $as_nop |
| 5422 | case $DIFF in |
| 5423 | [\\/]* | ?:[\\/]*) |
| 5424 | ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. |
| 5425 | ;; |
| 5426 | *) |
| 5427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5428 | for as_dir in $PATH |
| 5429 | do |
| 5430 | IFS=$as_save_IFS |
| 5431 | case $as_dir in #((( |
| 5432 | '') as_dir=./ ;; |
| 5433 | */) ;; |
| 5434 | *) as_dir=$as_dir/ ;; |
| 5435 | esac |
| 5436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5437 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5438 | ac_cv_path_DIFF="$as_dir$ac_word$ac_exec_ext" |
| 5439 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5440 | break 2 |
| 5441 | fi |
| 5442 | done |
| 5443 | done |
| 5444 | IFS=$as_save_IFS |
| 5445 | |
| 5446 | testscip-shell system . . test. -z "$ac_cv_path_DIFF" && ac_cv_path_DIFF="no" |
| 5447 | ;; |
| 5448 | esac |
| 5449 | fi |
| 5450 | DIFF=$ac_cv_path_DIFF |
| 5451 | if testscip-shell system . . test. -n "$DIFF"; then |
| 5452 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 |
| 5453 | printfscip-shell system . . printf. "%s\n" "$DIFF" >&6; } |
| 5454 | else |
| 5455 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5456 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5457 | fi |
| 5458 | |
| 5459 | |
| 5460 | if testscip-shell system . . test. -z "$DIFF" || testscip-shell system . . test. no = "$DIFF" |
| 5461 | then : |
| 5462 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find absolute name of line-by-line differences program: $save_DIFF" "$LINENO" 5 |
| 5463 | fi |
| 5464 | |
| 5465 | |
| 5466 | printfscip-shell system . . printf. "%s\n" "#define DIFF \"$DIFF\"" >>confdefs.h |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | # Set DIFF_SUCCESS, DIFF_FAILURE, DIFF_TROUBLE to diff's exit status |
| 5471 | # when it finds no differences, some differences, or trouble. |
| 5472 | |
| 5473 | |
| 5474 | # We can't use `$DIFF conftest0 conftest0', |
| 5475 | # since buggy NEXTSTEP 3.0 diff silently yields exit status 2 for this. |
| 5476 | |
| 5477 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff success status" >&5 |
| 5478 | printfscip-shell system . . printf. %s "checking diff success status... " >&6; } |
| 5479 | if testscip-shell system . . test. ${rcs_cv_status_diff_success+y} |
| 5480 | then : |
| 5481 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5482 | else $as_nop |
| 5483 | |
| 5484 | $DIFF conftest0 conftest0c >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 5485 | rcs_cv_status_diff_success=$? |
| 5486 | |
| 5487 | fi |
| 5488 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_status_diff_success" >&5 |
| 5489 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_status_diff_success" >&6; } |
| 5490 | |
| 5491 | printfscip-shell system . . printf. "%s\n" "#define DIFF_SUCCESS $rcs_cv_status_diff_success" >>confdefs.h |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff failure status" >&5 |
| 5496 | printfscip-shell system . . printf. %s "checking diff failure status... " >&6; } |
| 5497 | if testscip-shell system . . test. ${rcs_cv_status_diff_failure+y} |
| 5498 | then : |
| 5499 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5500 | else $as_nop |
| 5501 | |
| 5502 | $DIFF conftest0 conftest1 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 5503 | rcs_cv_status_diff_failure=$? |
| 5504 | |
| 5505 | fi |
| 5506 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_status_diff_failure" >&5 |
| 5507 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_status_diff_failure" >&6; } |
| 5508 | |
| 5509 | printfscip-shell system . . printf. "%s\n" "#define DIFF_FAILURE $rcs_cv_status_diff_failure" >>confdefs.h |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff trouble status" >&5 |
| 5514 | printfscip-shell system . . printf. %s "checking diff trouble status... " >&6; } |
| 5515 | if testscip-shell system . . test. ${rcs_cv_status_diff_trouble+y} |
| 5516 | then : |
| 5517 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5518 | else $as_nop |
| 5519 | |
| 5520 | $DIFF conftest0 no/such/file >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 5521 | rcs_cv_status_diff_trouble=$? |
| 5522 | |
| 5523 | fi |
| 5524 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_status_diff_trouble" >&5 |
| 5525 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_status_diff_trouble" >&6; } |
| 5526 | |
| 5527 | printfscip-shell system . . printf. "%s\n" "#define DIFF_TROUBLE $rcs_cv_status_diff_trouble" >>confdefs.h |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | # Set DIFFFLAGS to the options of the `diff' program to be run. |
| 5532 | # Use -an if possible, -n otherwise. |
| 5533 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking diff options for RCS" >&5 |
| 5534 | printfscip-shell system . . printf. %s "checking diff options for RCS... " >&6; } |
| 5535 | if testscip-shell system . . test. ${rcs_cv_options_diff+y} |
| 5536 | then : |
| 5537 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5538 | else $as_nop |
| 5539 | |
| 5540 | $DIFF -an conftest0 conftest1 >conftestout 2>conftestout2 |
| 5541 | if testscip-shell system . . test. 1 = $? && |
| 5542 | cmpscip-shell system . . cmp. -s conftestok conftestout && |
| 5543 | testscip-shell system . . test. ! -s conftestout2 |
| 5544 | then : |
| 5545 | rcs_cv_options_diff=-an |
| 5546 | else $as_nop |
| 5547 | rcs_cv_options_diff=-n |
| 5548 | fi |
| 5549 | |
| 5550 | fi |
| 5551 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_options_diff" >&5 |
| 5552 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_options_diff" >&6; } |
| 5553 | |
| 5554 | printfscip-shell system . . printf. "%s\n" "#define DIFFFLAGS \"$rcs_cv_options_diff\"" >>confdefs.h |
| 5555 | |
| 5556 | |
| 5557 | # Set DIFF_L to 1 if diff understands the ‘--label’ option, 0 otherwise. |
| 5558 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if diff understands --label" >&5 |
| 5559 | printfscip-shell system . . printf. %s "checking if diff understands --label... " >&6; } |
| 5560 | if testscip-shell system . . test. ${rcs_cv_options_diff_l+y} |
| 5561 | then : |
| 5562 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5563 | else $as_nop |
| 5564 | |
| 5565 | $DIFF -c --label 0 --label 1 conftest0 conftest1 >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5566 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s - conftestout <<'EOF' |
| 5567 | *** 0 |
| 5568 | --- 1 |
| 5569 | *************** |
| 5570 | *** 1 **** |
| 5571 | ! 0 |
| 5572 | --- 1 ---- |
| 5573 | ! 1 |
| 5574 | EOF |
| 5575 | rv=$? |
| 5576 | if testscip-shell system . . test. 0 = $rv |
| 5577 | then : |
| 5578 | rcs_cv_options_diff_l=yes |
| 5579 | else $as_nop |
| 5580 | rcs_cv_options_diff_l=no |
| 5581 | fi |
| 5582 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5583 | |
| 5584 | |
| 5585 | fi |
| 5586 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_options_diff_l" >&5 |
| 5587 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_options_diff_l" >&6; } |
| 5588 | if testscip-shell system . . test. yes = $rcs_cv_options_diff_l |
| 5589 | then : |
| 5590 | cbool=1 |
| 5591 | else $as_nop |
| 5592 | cbool=0 |
| 5593 | fi |
| 5594 | |
| 5595 | printfscip-shell system . . printf. "%s\n" "#define DIFF_L $cbool" >>confdefs.h |
| 5596 | |
| 5597 | |
| 5598 | # Set DIFF3 to the name of the diff3 program. |
| 5599 | # If env var ‘DIFF3’ is set and this is a cross-compile, |
| 5600 | # don't bother checking it; assume user knows they are doing. |
| 5601 | if testscip-shell system . . test. "$DIFF3" && testscip-shell system . . test. yes = "$$cross_compiling" |
| 5602 | then : |
| 5603 | rcs_cv_sane_diff3=yes |
| 5604 | fi |
| 5605 | |
| 5606 | |
| 5607 | for ac_prog in gdiff3 diff3 |
| 5608 | do |
| 5609 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5610 | set dummy $ac_prog; ac_word=$2 |
| 5611 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5612 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5613 | if testscip-shell system . . test. ${ac_cv_prog_DIFF3+y} |
| 5614 | then : |
| 5615 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5616 | else $as_nop |
| 5617 | if testscip-shell system . . test. -n "$DIFF3"; then |
| 5618 | ac_cv_prog_DIFF3="$DIFF3" # Let the user override the test. |
| 5619 | else |
| 5620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5621 | for as_dir in $PATH |
| 5622 | do |
| 5623 | IFS=$as_save_IFS |
| 5624 | case $as_dir in #((( |
| 5625 | '') as_dir=./ ;; |
| 5626 | */) ;; |
| 5627 | *) as_dir=$as_dir/ ;; |
| 5628 | esac |
| 5629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5630 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5631 | ac_cv_prog_DIFF3="$ac_prog" |
| 5632 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5633 | break 2 |
| 5634 | fi |
| 5635 | done |
| 5636 | done |
| 5637 | IFS=$as_save_IFS |
| 5638 | |
| 5639 | fi |
| 5640 | fi |
| 5641 | DIFF3=$ac_cv_prog_DIFF3 |
| 5642 | if testscip-shell system . . test. -n "$DIFF3"; then |
| 5643 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF3" >&5 |
| 5644 | printfscip-shell system . . printf. "%s\n" "$DIFF3" >&6; } |
| 5645 | else |
| 5646 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5647 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5648 | fi |
| 5649 | |
| 5650 | |
| 5651 | testscip-shell system . . test. -n "$DIFF3" && break |
| 5652 | done |
| 5653 | |
| 5654 | if testscip-shell system . . test. -z "$ac_cv_prog_DIFF3" || testscip-shell system . . test. no = "$ac_cv_prog_DIFF3" |
| 5655 | then : |
| 5656 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find a diff3 program (tried: gdiff3 diff3)" "$LINENO" 5 |
| 5657 | fi |
| 5658 | |
| 5659 | save_DIFF3=$DIFF3 |
| 5660 | # Extract the first word of "$[]DIFF3", so it can be a program name with args. |
| 5661 | set dummy $DIFF3; ac_word=$2 |
| 5662 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5663 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5664 | if testscip-shell system . . test. ${ac_cv_path_DIFF3+y} |
| 5665 | then : |
| 5666 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5667 | else $as_nop |
| 5668 | case $DIFF3 in |
| 5669 | [\\/]* | ?:[\\/]*) |
| 5670 | ac_cv_path_DIFF3="$DIFF3" # Let the user override the test with a path. |
| 5671 | ;; |
| 5672 | *) |
| 5673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5674 | for as_dir in $PATH |
| 5675 | do |
| 5676 | IFS=$as_save_IFS |
| 5677 | case $as_dir in #((( |
| 5678 | '') as_dir=./ ;; |
| 5679 | */) ;; |
| 5680 | *) as_dir=$as_dir/ ;; |
| 5681 | esac |
| 5682 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5683 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5684 | ac_cv_path_DIFF3="$as_dir$ac_word$ac_exec_ext" |
| 5685 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5686 | break 2 |
| 5687 | fi |
| 5688 | done |
| 5689 | done |
| 5690 | IFS=$as_save_IFS |
| 5691 | |
| 5692 | testscip-shell system . . test. -z "$ac_cv_path_DIFF3" && ac_cv_path_DIFF3="no" |
| 5693 | ;; |
| 5694 | esac |
| 5695 | fi |
| 5696 | DIFF3=$ac_cv_path_DIFF3 |
| 5697 | if testscip-shell system . . test. -n "$DIFF3"; then |
| 5698 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF3" >&5 |
| 5699 | printfscip-shell system . . printf. "%s\n" "$DIFF3" >&6; } |
| 5700 | else |
| 5701 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5702 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5703 | fi |
| 5704 | |
| 5705 | |
| 5706 | if testscip-shell system . . test. -z "$DIFF3" || testscip-shell system . . test. no = "$DIFF3" |
| 5707 | then : |
| 5708 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find absolute name of diff3 program: $save_DIFF3" "$LINENO" 5 |
| 5709 | fi |
| 5710 | |
| 5711 | |
| 5712 | printfscip-shell system . . printf. "%s\n" "#define DIFF3 \"$DIFF3\"" >>confdefs.h |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if diff3 works like GNU diff3" >&5 |
| 5717 | printfscip-shell system . . printf. %s "checking if diff3 works like GNU diff3... " >&6; } |
| 5718 | if testscip-shell system . . test. ${rcs_cv_sane_diff3+y} |
| 5719 | then : |
| 5720 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5721 | else $as_nop |
| 5722 | |
| 5723 | rcs_cv_sane_diff3=no |
| 5724 | shscip-shell system . . sh. -c "exec $DIFF3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 /dev/null" >conftestout 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 5725 | testscip-shell system . . test. 1 = $? && cmpscip-shell system . . cmp. -s - conftestout <<'EOF' |
| 5726 | <<<<<<< 0 |
| 5727 | 0 |
| 5728 | ======= |
| 5729 | >>>>>>> 2 |
| 5730 | EOF |
| 5731 | rv=$? |
| 5732 | if testscip-shell system . . test. 0 = $rv |
| 5733 | then : |
| 5734 | rcs_cv_sane_diff3=yes |
| 5735 | else $as_nop |
| 5736 | rcs_cv_sane_diff3=no |
| 5737 | fi |
| 5738 | as_fn_set_statusscip-shell shell shell-project 0.0.0 as_fn_set_status(). $rv |
| 5739 | |
| 5740 | |
| 5741 | fi |
| 5742 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_diff3" >&5 |
| 5743 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_diff3" >&6; } |
| 5744 | if testscip-shell system . . test. yes = $rcs_cv_sane_diff3 |
| 5745 | then : |
| 5746 | cbool=1 |
| 5747 | else $as_nop |
| 5748 | cbool=0 |
| 5749 | fi |
| 5750 | |
| 5751 | printfscip-shell system . . printf. "%s\n" "#define DIFF3_BIN $cbool" >>confdefs.h |
| 5752 | |
| 5753 | |
| 5754 | ED=ed |
| 5755 | save_ED=$ED |
| 5756 | # Extract the first word of "$[]ED", so it can be a program name with args. |
| 5757 | set dummy $ED; ac_word=$2 |
| 5758 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5759 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5760 | if testscip-shell system . . test. ${ac_cv_path_ED+y} |
| 5761 | then : |
| 5762 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5763 | else $as_nop |
| 5764 | case $ED in |
| 5765 | [\\/]* | ?:[\\/]*) |
| 5766 | ac_cv_path_ED="$ED" # Let the user override the test with a path. |
| 5767 | ;; |
| 5768 | *) |
| 5769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5770 | for as_dir in $PATH |
| 5771 | do |
| 5772 | IFS=$as_save_IFS |
| 5773 | case $as_dir in #((( |
| 5774 | '') as_dir=./ ;; |
| 5775 | */) ;; |
| 5776 | *) as_dir=$as_dir/ ;; |
| 5777 | esac |
| 5778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5779 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5780 | ac_cv_path_ED="$as_dir$ac_word$ac_exec_ext" |
| 5781 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5782 | break 2 |
| 5783 | fi |
| 5784 | done |
| 5785 | done |
| 5786 | IFS=$as_save_IFS |
| 5787 | |
| 5788 | testscip-shell system . . test. -z "$ac_cv_path_ED" && ac_cv_path_ED="no" |
| 5789 | ;; |
| 5790 | esac |
| 5791 | fi |
| 5792 | ED=$ac_cv_path_ED |
| 5793 | if testscip-shell system . . test. -n "$ED"; then |
| 5794 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ED" >&5 |
| 5795 | printfscip-shell system . . printf. "%s\n" "$ED" >&6; } |
| 5796 | else |
| 5797 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5798 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5799 | fi |
| 5800 | |
| 5801 | |
| 5802 | if testscip-shell system . . test. -z "$ED" || testscip-shell system . . test. no = "$ED" |
| 5803 | then : |
| 5804 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "Could not find absolute name of original ed program: $save_ED" "$LINENO" 5 |
| 5805 | fi |
| 5806 | |
| 5807 | |
| 5808 | printfscip-shell system . . printf. "%s\n" "#define ED \"$ED\"" >>confdefs.h |
| 5809 | |
| 5810 | |
| 5811 | |
| 5812 | # This is only for maintainers. |
| 5813 | |
| 5814 | if testscip-shell system . . test. x"$SOELIM" = x |
| 5815 | then : |
| 5816 | for ac_prog in soelim |
| 5817 | do |
| 5818 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5819 | set dummy $ac_prog; ac_word=$2 |
| 5820 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5821 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5822 | if testscip-shell system . . test. ${ac_cv_prog_SOELIM+y} |
| 5823 | then : |
| 5824 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5825 | else $as_nop |
| 5826 | if testscip-shell system . . test. -n "$SOELIM"; then |
| 5827 | ac_cv_prog_SOELIM="$SOELIM" # Let the user override the test. |
| 5828 | else |
| 5829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5830 | for as_dir in $PATH |
| 5831 | do |
| 5832 | IFS=$as_save_IFS |
| 5833 | case $as_dir in #((( |
| 5834 | '') as_dir=./ ;; |
| 5835 | */) ;; |
| 5836 | *) as_dir=$as_dir/ ;; |
| 5837 | esac |
| 5838 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5839 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5840 | ac_cv_prog_SOELIM="$ac_prog" |
| 5841 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5842 | break 2 |
| 5843 | fi |
| 5844 | done |
| 5845 | done |
| 5846 | IFS=$as_save_IFS |
| 5847 | |
| 5848 | fi |
| 5849 | fi |
| 5850 | SOELIM=$ac_cv_prog_SOELIM |
| 5851 | if testscip-shell system . . test. -n "$SOELIM"; then |
| 5852 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOELIM" >&5 |
| 5853 | printfscip-shell system . . printf. "%s\n" "$SOELIM" >&6; } |
| 5854 | else |
| 5855 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5856 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5857 | fi |
| 5858 | |
| 5859 | |
| 5860 | testscip-shell system . . test. -n "$SOELIM" && break |
| 5861 | done |
| 5862 | |
| 5863 | fi |
| 5864 | |
| 5865 | |
| 5866 | if testscip-shell system . . test. x"$PIC" = x |
| 5867 | then : |
| 5868 | for ac_prog in "pic -n" "gpic -n" "pic -D" "pic" |
| 5869 | do |
| 5870 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5871 | set dummy $ac_prog; ac_word=$2 |
| 5872 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5873 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5874 | if testscip-shell system . . test. ${ac_cv_prog_PIC+y} |
| 5875 | then : |
| 5876 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5877 | else $as_nop |
| 5878 | if testscip-shell system . . test. -n "$PIC"; then |
| 5879 | ac_cv_prog_PIC="$PIC" # Let the user override the test. |
| 5880 | else |
| 5881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5882 | for as_dir in $PATH |
| 5883 | do |
| 5884 | IFS=$as_save_IFS |
| 5885 | case $as_dir in #((( |
| 5886 | '') as_dir=./ ;; |
| 5887 | */) ;; |
| 5888 | *) as_dir=$as_dir/ ;; |
| 5889 | esac |
| 5890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5891 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5892 | ac_cv_prog_PIC="$ac_prog" |
| 5893 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5894 | break 2 |
| 5895 | fi |
| 5896 | done |
| 5897 | done |
| 5898 | IFS=$as_save_IFS |
| 5899 | |
| 5900 | fi |
| 5901 | fi |
| 5902 | PIC=$ac_cv_prog_PIC |
| 5903 | if testscip-shell system . . test. -n "$PIC"; then |
| 5904 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PIC" >&5 |
| 5905 | printfscip-shell system . . printf. "%s\n" "$PIC" >&6; } |
| 5906 | else |
| 5907 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5908 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5909 | fi |
| 5910 | |
| 5911 | |
| 5912 | testscip-shell system . . test. -n "$PIC" && break |
| 5913 | done |
| 5914 | testscip-shell system . . test. -n "$PIC" || PIC="pic" |
| 5915 | |
| 5916 | fi |
| 5917 | |
| 5918 | |
| 5919 | |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | |
| 5924 | |
| 5925 | |
| 5926 | |
| 5927 | ac_ext=c |
| 5928 | ac_cpp='$CPP $CPPFLAGS' |
| 5929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5932 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 5933 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5934 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5935 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5936 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5937 | if testscip-shell system . . test. ${ac_cv_prog_CC+y} |
| 5938 | then : |
| 5939 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5940 | else $as_nop |
| 5941 | if testscip-shell system . . test. -n "$CC"; then |
| 5942 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5943 | else |
| 5944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5945 | for as_dir in $PATH |
| 5946 | do |
| 5947 | IFS=$as_save_IFS |
| 5948 | case $as_dir in #((( |
| 5949 | '') as_dir=./ ;; |
| 5950 | */) ;; |
| 5951 | *) as_dir=$as_dir/ ;; |
| 5952 | esac |
| 5953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5954 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 5955 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5956 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5957 | break 2 |
| 5958 | fi |
| 5959 | done |
| 5960 | done |
| 5961 | IFS=$as_save_IFS |
| 5962 | |
| 5963 | fi |
| 5964 | fi |
| 5965 | CC=$ac_cv_prog_CC |
| 5966 | if testscip-shell system . . test. -n "$CC"; then |
| 5967 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5968 | printfscip-shell system . . printf. "%s\n" "$CC" >&6; } |
| 5969 | else |
| 5970 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5971 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 5972 | fi |
| 5973 | |
| 5974 | |
| 5975 | fi |
| 5976 | if testscip-shell system . . test. -z "$ac_cv_prog_CC"; then |
| 5977 | ac_ct_CC=$CC |
| 5978 | # Extract the first word of "gcc", so it can be a program name with args. |
| 5979 | set dummy gcc; ac_word=$2 |
| 5980 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5981 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 5982 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_CC+y} |
| 5983 | then : |
| 5984 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 5985 | else $as_nop |
| 5986 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 5987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5988 | else |
| 5989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5990 | for as_dir in $PATH |
| 5991 | do |
| 5992 | IFS=$as_save_IFS |
| 5993 | case $as_dir in #((( |
| 5994 | '') as_dir=./ ;; |
| 5995 | */) ;; |
| 5996 | *) as_dir=$as_dir/ ;; |
| 5997 | esac |
| 5998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5999 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6000 | ac_cv_prog_ac_ct_CC="gcc" |
| 6001 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6002 | break 2 |
| 6003 | fi |
| 6004 | done |
| 6005 | done |
| 6006 | IFS=$as_save_IFS |
| 6007 | |
| 6008 | fi |
| 6009 | fi |
| 6010 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 6011 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 6012 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 6013 | printfscip-shell system . . printf. "%s\n" "$ac_ct_CC" >&6; } |
| 6014 | else |
| 6015 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6016 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6017 | fi |
| 6018 | |
| 6019 | if testscip-shell system . . test. "x$ac_ct_CC" = x; then |
| 6020 | CC="" |
| 6021 | else |
| 6022 | case $cross_compiling:$ac_tool_warned in |
| 6023 | yes:) |
| 6024 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6025 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6026 | ac_tool_warned=yes ;; |
| 6027 | esac |
| 6028 | CC=$ac_ct_CC |
| 6029 | fi |
| 6030 | else |
| 6031 | CC="$ac_cv_prog_CC" |
| 6032 | fi |
| 6033 | |
| 6034 | if testscip-shell system . . test. -z "$CC"; then |
| 6035 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 6036 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 6037 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 6038 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6039 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6040 | if testscip-shell system . . test. ${ac_cv_prog_CC+y} |
| 6041 | then : |
| 6042 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6043 | else $as_nop |
| 6044 | if testscip-shell system . . test. -n "$CC"; then |
| 6045 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 6046 | else |
| 6047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6048 | for as_dir in $PATH |
| 6049 | do |
| 6050 | IFS=$as_save_IFS |
| 6051 | case $as_dir in #((( |
| 6052 | '') as_dir=./ ;; |
| 6053 | */) ;; |
| 6054 | *) as_dir=$as_dir/ ;; |
| 6055 | esac |
| 6056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6057 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6058 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 6059 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6060 | break 2 |
| 6061 | fi |
| 6062 | done |
| 6063 | done |
| 6064 | IFS=$as_save_IFS |
| 6065 | |
| 6066 | fi |
| 6067 | fi |
| 6068 | CC=$ac_cv_prog_CC |
| 6069 | if testscip-shell system . . test. -n "$CC"; then |
| 6070 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6071 | printfscip-shell system . . printf. "%s\n" "$CC" >&6; } |
| 6072 | else |
| 6073 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6074 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6075 | fi |
| 6076 | |
| 6077 | |
| 6078 | fi |
| 6079 | fi |
| 6080 | if testscip-shell system . . test. -z "$CC"; then |
| 6081 | # Extract the first word of "cc", so it can be a program name with args. |
| 6082 | set dummy cc; ac_word=$2 |
| 6083 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6084 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6085 | if testscip-shell system . . test. ${ac_cv_prog_CC+y} |
| 6086 | then : |
| 6087 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6088 | else $as_nop |
| 6089 | if testscip-shell system . . test. -n "$CC"; then |
| 6090 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 6091 | else |
| 6092 | ac_prog_rejected=no |
| 6093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6094 | for as_dir in $PATH |
| 6095 | do |
| 6096 | IFS=$as_save_IFS |
| 6097 | case $as_dir in #((( |
| 6098 | '') as_dir=./ ;; |
| 6099 | */) ;; |
| 6100 | *) as_dir=$as_dir/ ;; |
| 6101 | esac |
| 6102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6103 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6104 | if testscip-shell system . . test. "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/ccscip-shell filesystem . . `/usr/ucb/cc`."; then |
| 6105 | ac_prog_rejected=yes |
| 6106 | continue |
| 6107 | fi |
| 6108 | ac_cv_prog_CC="cc" |
| 6109 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6110 | break 2 |
| 6111 | fi |
| 6112 | done |
| 6113 | done |
| 6114 | IFS=$as_save_IFS |
| 6115 | |
| 6116 | if testscip-shell system . . test. $ac_prog_rejected = yes; then |
| 6117 | # We found a bogon in the path, so make sure we never use it. |
| 6118 | set dummy $ac_cv_prog_CC |
| 6119 | shift |
| 6120 | if testscip-shell system . . test. $# != 0; then |
| 6121 | # We chose a different compiler from the bogus one. |
| 6122 | # However, it has the same basename, so the bogon will be chosen |
| 6123 | # first if we set CC to just the basename; use the full file name. |
| 6124 | shift |
| 6125 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 6126 | fi |
| 6127 | fi |
| 6128 | fi |
| 6129 | fi |
| 6130 | CC=$ac_cv_prog_CC |
| 6131 | if testscip-shell system . . test. -n "$CC"; then |
| 6132 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6133 | printfscip-shell system . . printf. "%s\n" "$CC" >&6; } |
| 6134 | else |
| 6135 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6136 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6137 | fi |
| 6138 | |
| 6139 | |
| 6140 | fi |
| 6141 | if testscip-shell system . . test. -z "$CC"; then |
| 6142 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 6143 | for ac_prog in cl.exe |
| 6144 | do |
| 6145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6147 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6148 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6149 | if testscip-shell system . . test. ${ac_cv_prog_CC+y} |
| 6150 | then : |
| 6151 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6152 | else $as_nop |
| 6153 | if testscip-shell system . . test. -n "$CC"; then |
| 6154 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 6155 | else |
| 6156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6157 | for as_dir in $PATH |
| 6158 | do |
| 6159 | IFS=$as_save_IFS |
| 6160 | case $as_dir in #((( |
| 6161 | '') as_dir=./ ;; |
| 6162 | */) ;; |
| 6163 | *) as_dir=$as_dir/ ;; |
| 6164 | esac |
| 6165 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6166 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6167 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 6168 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6169 | break 2 |
| 6170 | fi |
| 6171 | done |
| 6172 | done |
| 6173 | IFS=$as_save_IFS |
| 6174 | |
| 6175 | fi |
| 6176 | fi |
| 6177 | CC=$ac_cv_prog_CC |
| 6178 | if testscip-shell system . . test. -n "$CC"; then |
| 6179 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6180 | printfscip-shell system . . printf. "%s\n" "$CC" >&6; } |
| 6181 | else |
| 6182 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6183 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6184 | fi |
| 6185 | |
| 6186 | |
| 6187 | testscip-shell system . . test. -n "$CC" && break |
| 6188 | done |
| 6189 | fi |
| 6190 | if testscip-shell system . . test. -z "$CC"; then |
| 6191 | ac_ct_CC=$CC |
| 6192 | for ac_prog in cl.exe |
| 6193 | do |
| 6194 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6195 | set dummy $ac_prog; ac_word=$2 |
| 6196 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6197 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6198 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_CC+y} |
| 6199 | then : |
| 6200 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6201 | else $as_nop |
| 6202 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 6203 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 6204 | else |
| 6205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6206 | for as_dir in $PATH |
| 6207 | do |
| 6208 | IFS=$as_save_IFS |
| 6209 | case $as_dir in #((( |
| 6210 | '') as_dir=./ ;; |
| 6211 | */) ;; |
| 6212 | *) as_dir=$as_dir/ ;; |
| 6213 | esac |
| 6214 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6215 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6216 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 6217 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6218 | break 2 |
| 6219 | fi |
| 6220 | done |
| 6221 | done |
| 6222 | IFS=$as_save_IFS |
| 6223 | |
| 6224 | fi |
| 6225 | fi |
| 6226 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 6227 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 6228 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 6229 | printfscip-shell system . . printf. "%s\n" "$ac_ct_CC" >&6; } |
| 6230 | else |
| 6231 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6232 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6233 | fi |
| 6234 | |
| 6235 | |
| 6236 | testscip-shell system . . test. -n "$ac_ct_CC" && break |
| 6237 | done |
| 6238 | |
| 6239 | if testscip-shell system . . test. "x$ac_ct_CC" = x; then |
| 6240 | CC="" |
| 6241 | else |
| 6242 | case $cross_compiling:$ac_tool_warned in |
| 6243 | yes:) |
| 6244 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6245 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6246 | ac_tool_warned=yes ;; |
| 6247 | esac |
| 6248 | CC=$ac_ct_CC |
| 6249 | fi |
| 6250 | fi |
| 6251 | |
| 6252 | fi |
| 6253 | if testscip-shell system . . test. -z "$CC"; then |
| 6254 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 6255 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 6256 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 6257 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6258 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6259 | if testscip-shell system . . test. ${ac_cv_prog_CC+y} |
| 6260 | then : |
| 6261 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6262 | else $as_nop |
| 6263 | if testscip-shell system . . test. -n "$CC"; then |
| 6264 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 6265 | else |
| 6266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6267 | for as_dir in $PATH |
| 6268 | do |
| 6269 | IFS=$as_save_IFS |
| 6270 | case $as_dir in #((( |
| 6271 | '') as_dir=./ ;; |
| 6272 | */) ;; |
| 6273 | *) as_dir=$as_dir/ ;; |
| 6274 | esac |
| 6275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6276 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6277 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 6278 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6279 | break 2 |
| 6280 | fi |
| 6281 | done |
| 6282 | done |
| 6283 | IFS=$as_save_IFS |
| 6284 | |
| 6285 | fi |
| 6286 | fi |
| 6287 | CC=$ac_cv_prog_CC |
| 6288 | if testscip-shell system . . test. -n "$CC"; then |
| 6289 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6290 | printfscip-shell system . . printf. "%s\n" "$CC" >&6; } |
| 6291 | else |
| 6292 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6293 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6294 | fi |
| 6295 | |
| 6296 | |
| 6297 | fi |
| 6298 | if testscip-shell system . . test. -z "$ac_cv_prog_CC"; then |
| 6299 | ac_ct_CC=$CC |
| 6300 | # Extract the first word of "clang", so it can be a program name with args. |
| 6301 | set dummy clang; ac_word=$2 |
| 6302 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6303 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 6304 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_CC+y} |
| 6305 | then : |
| 6306 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6307 | else $as_nop |
| 6308 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 6309 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 6310 | else |
| 6311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6312 | for as_dir in $PATH |
| 6313 | do |
| 6314 | IFS=$as_save_IFS |
| 6315 | case $as_dir in #((( |
| 6316 | '') as_dir=./ ;; |
| 6317 | */) ;; |
| 6318 | *) as_dir=$as_dir/ ;; |
| 6319 | esac |
| 6320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6321 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 6322 | ac_cv_prog_ac_ct_CC="clang" |
| 6323 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6324 | break 2 |
| 6325 | fi |
| 6326 | done |
| 6327 | done |
| 6328 | IFS=$as_save_IFS |
| 6329 | |
| 6330 | fi |
| 6331 | fi |
| 6332 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 6333 | if testscip-shell system . . test. -n "$ac_ct_CC"; then |
| 6334 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 6335 | printfscip-shell system . . printf. "%s\n" "$ac_ct_CC" >&6; } |
| 6336 | else |
| 6337 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6338 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6339 | fi |
| 6340 | |
| 6341 | if testscip-shell system . . test. "x$ac_ct_CC" = x; then |
| 6342 | CC="" |
| 6343 | else |
| 6344 | case $cross_compiling:$ac_tool_warned in |
| 6345 | yes:) |
| 6346 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6347 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6348 | ac_tool_warned=yes ;; |
| 6349 | esac |
| 6350 | CC=$ac_ct_CC |
| 6351 | fi |
| 6352 | else |
| 6353 | CC="$ac_cv_prog_CC" |
| 6354 | fi |
| 6355 | |
| 6356 | fi |
| 6357 | |
| 6358 | |
| 6359 | testscip-shell system . . test. -z "$CC" && { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6360 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6361 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable C compiler found in \$PATH |
| 6362 | See \`config.log' for more details" "$LINENO" 5; } |
| 6363 | |
| 6364 | # Provide some information about the compiler. |
| 6365 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 6366 | set X $ac_compile |
| 6367 | ac_compiler=$2 |
| 6368 | for ac_option in --version -v -V -qversion -version; do |
| 6369 | { { ac_try="$ac_compiler $ac_option >&5" |
| 6370 | case "(($ac_try" in |
| 6371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6372 | *) ac_try_echo=$ac_try;; |
| 6373 | esac |
| 6374 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6375 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6376 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6377 | ac_status=$? |
| 6378 | if testscip-shell system . . test. -s conftest.err; then |
| 6379 | sedscip-shell system . . sed. '10a\ |
| 6380 | ... rest of stderr output deleted ... |
| 6381 | 10q' conftest.err >conftest.er1 |
| 6382 | catscip-shell system . . cat. conftest.er1 >&5 |
| 6383 | fi |
| 6384 | rmscip-shell system . . rm. -f conftest.er1 conftest.err |
| 6385 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6386 | testscip-shell system . . test. $ac_status = 0; } |
| 6387 | done |
| 6388 | |
| 6389 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6390 | /* end confdefs.h. */ |
| 6391 | |
| 6392 | int |
| 6393 | main (void) |
| 6394 | { |
| 6395 | |
| 6396 | ; |
| 6397 | return 0; |
| 6398 | } |
| 6399 | _ACEOF |
| 6400 | ac_clean_files_save=$ac_clean_files |
| 6401 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 6402 | # Try to create an executable without -o first, disregard a.out. |
| 6403 | # It will help us diagnose broken compilers, and finding out an intuition |
| 6404 | # of exeext. |
| 6405 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 6406 | printfscip-shell system . . printf. %s "checking whether the C compiler works... " >&6; } |
| 6407 | ac_link_default=`printfscip-shell system . . printf. "%s\n" "$ac_link" | sedscip-shell system . . sed. 's/ -o *conftest[^ ]*//'` |
| 6408 | |
| 6409 | # The possible output files: |
| 6410 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 6411 | |
| 6412 | ac_rmfiles= |
| 6413 | for ac_file in $ac_files |
| 6414 | do |
| 6415 | case $ac_file in |
| 6416 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 6417 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 6418 | esac |
| 6419 | done |
| 6420 | rmscip-shell system . . rm. -f $ac_rmfiles |
| 6421 | |
| 6422 | if { { ac_try="$ac_link_default" |
| 6423 | case "(($ac_try" in |
| 6424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6425 | *) ac_try_echo=$ac_try;; |
| 6426 | esac |
| 6427 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6428 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6429 | (eval "$ac_link_default") 2>&5 |
| 6430 | ac_status=$? |
| 6431 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6432 | testscip-shell system . . test. $ac_status = 0; } |
| 6433 | then : |
| 6434 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 6435 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 6436 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 6437 | # so that the user can short-circuit this test for compilers unknown to |
| 6438 | # Autoconf. |
| 6439 | for ac_file in $ac_files '' |
| 6440 | do |
| 6441 | testscip-shell system . . test. -f "$ac_file" || continue |
| 6442 | case $ac_file in |
| 6443 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 6444 | ;; |
| 6445 | [ab].out ) |
| 6446 | # We found the default executable, but exeext='' is most |
| 6447 | # certainly right. |
| 6448 | break;; |
| 6449 | *.* ) |
| 6450 | if testscip-shell system . . test. ${ac_cv_exeext+y} && testscip-shell system . . test. "$ac_cv_exeext" != no; |
| 6451 | then :; else |
| 6452 | ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'` |
| 6453 | fi |
| 6454 | # We set ac_cv_exeext here because the later test for it is not |
| 6455 | # safe: cross compilers may not add the suffix if given an `-o' |
| 6456 | # argument, so we may need to know it at that point already. |
| 6457 | # Even if this section looks crufty: it has the advantage of |
| 6458 | # actually working. |
| 6459 | break;; |
| 6460 | * ) |
| 6461 | break;; |
| 6462 | esac |
| 6463 | done |
| 6464 | testscip-shell system . . test. "$ac_cv_exeext" = no && ac_cv_exeext= |
| 6465 | |
| 6466 | else $as_nop |
| 6467 | ac_file='' |
| 6468 | fi |
| 6469 | if testscip-shell system . . test. -z "$ac_file" |
| 6470 | then : |
| 6471 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6472 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 6473 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 6474 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6475 | |
| 6476 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6477 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6478 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "C compiler cannot create executables |
| 6479 | See \`config.log' for more details" "$LINENO" 5; } |
| 6480 | else $as_nop |
| 6481 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6482 | printfscip-shell system . . printf. "%s\n" "yes" >&6; } |
| 6483 | fi |
| 6484 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 6485 | printfscip-shell system . . printf. %s "checking for C compiler default output file name... " >&6; } |
| 6486 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 6487 | printfscip-shell system . . printf. "%s\n" "$ac_file" >&6; } |
| 6488 | ac_exeext=$ac_cv_exeext |
| 6489 | |
| 6490 | rmscip-shell system . . rm. -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 6491 | ac_clean_files=$ac_clean_files_save |
| 6492 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 6493 | printfscip-shell system . . printf. %s "checking for suffix of executables... " >&6; } |
| 6494 | if { { ac_try="$ac_link" |
| 6495 | case "(($ac_try" in |
| 6496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6497 | *) ac_try_echo=$ac_try;; |
| 6498 | esac |
| 6499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6500 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6501 | (eval "$ac_link") 2>&5 |
| 6502 | ac_status=$? |
| 6503 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6504 | testscip-shell system . . test. $ac_status = 0; } |
| 6505 | then : |
| 6506 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 6507 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 6508 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 6509 | # `rm'. |
| 6510 | for ac_file in conftest.exe conftest conftest.*; do |
| 6511 | testscip-shell system . . test. -f "$ac_file" || continue |
| 6512 | case $ac_file in |
| 6513 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 6514 | *.* ) ac_cv_exeext=`exprscip-shell system . . expr. "$ac_file" : '[^.]*\(\..*\)'` |
| 6515 | break;; |
| 6516 | * ) break;; |
| 6517 | esac |
| 6518 | done |
| 6519 | else $as_nop |
| 6520 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6521 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6522 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot compute suffix of executables: cannot compile and link |
| 6523 | See \`config.log' for more details" "$LINENO" 5; } |
| 6524 | fi |
| 6525 | rmscip-shell system . . rm. -f conftest conftest$ac_cv_exeext |
| 6526 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 6527 | printfscip-shell system . . printf. "%s\n" "$ac_cv_exeext" >&6; } |
| 6528 | |
| 6529 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 6530 | EXEEXT=$ac_cv_exeext |
| 6531 | ac_exeext=$EXEEXT |
| 6532 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6533 | /* end confdefs.h. */ |
| 6534 | #include <stdio.h> |
| 6535 | int |
| 6536 | main (void) |
| 6537 | { |
| 6538 | FILE *f = fopen ("conftest.out", "w"); |
| 6539 | return ferror (f) || fclose (f) != 0; |
| 6540 | |
| 6541 | ; |
| 6542 | return 0; |
| 6543 | } |
| 6544 | _ACEOF |
| 6545 | ac_clean_files="$ac_clean_files conftest.out" |
| 6546 | # Check that the compiler produces executables we can run. If not, either |
| 6547 | # the compiler is broken, or we cross compile. |
| 6548 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 6549 | printfscip-shell system . . printf. %s "checking whether we are cross compiling... " >&6; } |
| 6550 | if testscip-shell system . . test. "$cross_compiling" != yes; then |
| 6551 | { { ac_try="$ac_link" |
| 6552 | case "(($ac_try" in |
| 6553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6554 | *) ac_try_echo=$ac_try;; |
| 6555 | esac |
| 6556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6557 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6558 | (eval "$ac_link") 2>&5 |
| 6559 | ac_status=$? |
| 6560 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6561 | testscip-shell system . . test. $ac_status = 0; } |
| 6562 | if { ac_try='./conftest$ac_cv_exeext' |
| 6563 | { { case "(($ac_try" in |
| 6564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6565 | *) ac_try_echo=$ac_try;; |
| 6566 | esac |
| 6567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6568 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6569 | (eval "$ac_try") 2>&5 |
| 6570 | ac_status=$? |
| 6571 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6572 | testscip-shell system . . test. $ac_status = 0; }; }; then |
| 6573 | cross_compiling=no |
| 6574 | else |
| 6575 | if testscip-shell system . . test. "$cross_compiling" = maybe; then |
| 6576 | cross_compiling=yes |
| 6577 | else |
| 6578 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6579 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6580 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). 77 "cannot run C compiled programs. |
| 6581 | If you meant to cross compile, use \`--host'. |
| 6582 | See \`config.log' for more details" "$LINENO" 5; } |
| 6583 | fi |
| 6584 | fi |
| 6585 | fi |
| 6586 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 6587 | printfscip-shell system . . printf. "%s\n" "$cross_compiling" >&6; } |
| 6588 | |
| 6589 | rmscip-shell system . . rm. -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 6590 | ac_clean_files=$ac_clean_files_save |
| 6591 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 6592 | printfscip-shell system . . printf. %s "checking for suffix of object files... " >&6; } |
| 6593 | if testscip-shell system . . test. ${ac_cv_objext+y} |
| 6594 | then : |
| 6595 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6596 | else $as_nop |
| 6597 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6598 | /* end confdefs.h. */ |
| 6599 | |
| 6600 | int |
| 6601 | main (void) |
| 6602 | { |
| 6603 | |
| 6604 | ; |
| 6605 | return 0; |
| 6606 | } |
| 6607 | _ACEOF |
| 6608 | rmscip-shell system . . rm. -f conftest.o conftest.obj |
| 6609 | if { { ac_try="$ac_compile" |
| 6610 | case "(($ac_try" in |
| 6611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6612 | *) ac_try_echo=$ac_try;; |
| 6613 | esac |
| 6614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6615 | printfscip-shell system . . printf. "%s\n" "$ac_try_echo"; } >&5 |
| 6616 | (eval "$ac_compile") 2>&5 |
| 6617 | ac_status=$? |
| 6618 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6619 | testscip-shell system . . test. $ac_status = 0; } |
| 6620 | then : |
| 6621 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 6622 | testscip-shell system . . test. -f "$ac_file" || continue; |
| 6623 | case $ac_file in |
| 6624 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 6625 | *) ac_cv_objext=`exprscip-shell system . . expr. "$ac_file" : '.*\.\(.*\)'` |
| 6626 | break;; |
| 6627 | esac |
| 6628 | done |
| 6629 | else $as_nop |
| 6630 | printfscip-shell system . . printf. "%s\n" "$as_me: failed program was:" >&5 |
| 6631 | sedscip-shell system . . sed. 's/^/| /' conftest.$ac_ext >&5 |
| 6632 | |
| 6633 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6634 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6635 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot compute suffix of object files: cannot compile |
| 6636 | See \`config.log' for more details" "$LINENO" 5; } |
| 6637 | fi |
| 6638 | rmscip-shell system . . rm. -f conftest.$ac_cv_objext conftest.$ac_ext |
| 6639 | fi |
| 6640 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 6641 | printfscip-shell system . . printf. "%s\n" "$ac_cv_objext" >&6; } |
| 6642 | OBJEXT=$ac_cv_objext |
| 6643 | ac_objext=$OBJEXT |
| 6644 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 6645 | printfscip-shell system . . printf. %s "checking whether the compiler supports GNU C... " >&6; } |
| 6646 | if testscip-shell system . . test. ${ac_cv_c_compiler_gnu+y} |
| 6647 | then : |
| 6648 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6649 | else $as_nop |
| 6650 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6651 | /* end confdefs.h. */ |
| 6652 | |
| 6653 | int |
| 6654 | main (void) |
| 6655 | { |
| 6656 | #ifndef __GNUC__ |
| 6657 | choke me |
| 6658 | #endif |
| 6659 | |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
| 6664 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6665 | then : |
| 6666 | ac_compiler_gnu=yes |
| 6667 | else $as_nop |
| 6668 | ac_compiler_gnu=no |
| 6669 | fi |
| 6670 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6671 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 6672 | |
| 6673 | fi |
| 6674 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 6675 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 6676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6677 | |
| 6678 | if testscip-shell system . . test. $ac_compiler_gnu = yes; then |
| 6679 | GCC=yes |
| 6680 | else |
| 6681 | GCC= |
| 6682 | fi |
| 6683 | ac_test_CFLAGS=${CFLAGS+y} |
| 6684 | ac_save_CFLAGS=$CFLAGS |
| 6685 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 6686 | printfscip-shell system . . printf. %s "checking whether $CC accepts -g... " >&6; } |
| 6687 | if testscip-shell system . . test. ${ac_cv_prog_cc_g+y} |
| 6688 | then : |
| 6689 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6690 | else $as_nop |
| 6691 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 6692 | ac_c_werror_flag=yes |
| 6693 | ac_cv_prog_cc_g=no |
| 6694 | CFLAGS="-g" |
| 6695 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6696 | /* end confdefs.h. */ |
| 6697 | |
| 6698 | int |
| 6699 | main (void) |
| 6700 | { |
| 6701 | |
| 6702 | ; |
| 6703 | return 0; |
| 6704 | } |
| 6705 | _ACEOF |
| 6706 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6707 | then : |
| 6708 | ac_cv_prog_cc_g=yes |
| 6709 | else $as_nop |
| 6710 | CFLAGS="" |
| 6711 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6712 | /* end confdefs.h. */ |
| 6713 | |
| 6714 | int |
| 6715 | main (void) |
| 6716 | { |
| 6717 | |
| 6718 | ; |
| 6719 | return 0; |
| 6720 | } |
| 6721 | _ACEOF |
| 6722 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6723 | then : |
| 6724 | |
| 6725 | else $as_nop |
| 6726 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6727 | CFLAGS="-g" |
| 6728 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6729 | /* end confdefs.h. */ |
| 6730 | |
| 6731 | int |
| 6732 | main (void) |
| 6733 | { |
| 6734 | |
| 6735 | ; |
| 6736 | return 0; |
| 6737 | } |
| 6738 | _ACEOF |
| 6739 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6740 | then : |
| 6741 | ac_cv_prog_cc_g=yes |
| 6742 | fi |
| 6743 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6744 | fi |
| 6745 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6746 | fi |
| 6747 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6748 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6749 | fi |
| 6750 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 6751 | printfscip-shell system . . printf. "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 6752 | if testscip-shell system . . test. $ac_test_CFLAGS; then |
| 6753 | CFLAGS=$ac_save_CFLAGS |
| 6754 | elif testscip-shell system . . test. $ac_cv_prog_cc_g = yes; then |
| 6755 | if testscip-shell system . . test. "$GCC" = yes; then |
| 6756 | CFLAGS="-g -O2" |
| 6757 | else |
| 6758 | CFLAGS="-g" |
| 6759 | fi |
| 6760 | else |
| 6761 | if testscip-shell system . . test. "$GCC" = yes; then |
| 6762 | CFLAGS="-O2" |
| 6763 | else |
| 6764 | CFLAGS= |
| 6765 | fi |
| 6766 | fi |
| 6767 | ac_prog_cc_stdc=no |
| 6768 | if testscip-shell system . . test. x$ac_prog_cc_stdc = xno |
| 6769 | then : |
| 6770 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 6771 | printfscip-shell system . . printf. %s "checking for $CC option to enable C11 features... " >&6; } |
| 6772 | if testscip-shell system . . test. ${ac_cv_prog_cc_c11+y} |
| 6773 | then : |
| 6774 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6775 | else $as_nop |
| 6776 | ac_cv_prog_cc_c11=no |
| 6777 | ac_save_CC=$CC |
| 6778 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6779 | /* end confdefs.h. */ |
| 6780 | $ac_c_conftest_c11_program |
| 6781 | _ACEOF |
| 6782 | for ac_arg in '' -std=gnu11 |
| 6783 | do |
| 6784 | CC="$ac_save_CC $ac_arg" |
| 6785 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6786 | then : |
| 6787 | ac_cv_prog_cc_c11=$ac_arg |
| 6788 | fi |
| 6789 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam |
| 6790 | testscip-shell system . . test. "x$ac_cv_prog_cc_c11" != "xno" && break |
| 6791 | done |
| 6792 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 6793 | CC=$ac_save_CC |
| 6794 | fi |
| 6795 | |
| 6796 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c11" = xno |
| 6797 | then : |
| 6798 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6799 | printfscip-shell system . . printf. "%s\n" "unsupported" >&6; } |
| 6800 | else $as_nop |
| 6801 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c11" = x |
| 6802 | then : |
| 6803 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6804 | printfscip-shell system . . printf. "%s\n" "none needed" >&6; } |
| 6805 | else $as_nop |
| 6806 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 6807 | printfscip-shell system . . printf. "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 6808 | CC="$CC $ac_cv_prog_cc_c11" |
| 6809 | fi |
| 6810 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 6811 | ac_prog_cc_stdc=c11 |
| 6812 | fi |
| 6813 | fi |
| 6814 | if testscip-shell system . . test. x$ac_prog_cc_stdc = xno |
| 6815 | then : |
| 6816 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 6817 | printfscip-shell system . . printf. %s "checking for $CC option to enable C99 features... " >&6; } |
| 6818 | if testscip-shell system . . test. ${ac_cv_prog_cc_c99+y} |
| 6819 | then : |
| 6820 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6821 | else $as_nop |
| 6822 | ac_cv_prog_cc_c99=no |
| 6823 | ac_save_CC=$CC |
| 6824 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6825 | /* end confdefs.h. */ |
| 6826 | $ac_c_conftest_c99_program |
| 6827 | _ACEOF |
| 6828 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 6829 | do |
| 6830 | CC="$ac_save_CC $ac_arg" |
| 6831 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6832 | then : |
| 6833 | ac_cv_prog_cc_c99=$ac_arg |
| 6834 | fi |
| 6835 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam |
| 6836 | testscip-shell system . . test. "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6837 | done |
| 6838 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 6839 | CC=$ac_save_CC |
| 6840 | fi |
| 6841 | |
| 6842 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c99" = xno |
| 6843 | then : |
| 6844 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6845 | printfscip-shell system . . printf. "%s\n" "unsupported" >&6; } |
| 6846 | else $as_nop |
| 6847 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c99" = x |
| 6848 | then : |
| 6849 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6850 | printfscip-shell system . . printf. "%s\n" "none needed" >&6; } |
| 6851 | else $as_nop |
| 6852 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 6853 | printfscip-shell system . . printf. "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 6854 | CC="$CC $ac_cv_prog_cc_c99" |
| 6855 | fi |
| 6856 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6857 | ac_prog_cc_stdc=c99 |
| 6858 | fi |
| 6859 | fi |
| 6860 | if testscip-shell system . . test. x$ac_prog_cc_stdc = xno |
| 6861 | then : |
| 6862 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 6863 | printfscip-shell system . . printf. %s "checking for $CC option to enable C89 features... " >&6; } |
| 6864 | if testscip-shell system . . test. ${ac_cv_prog_cc_c89+y} |
| 6865 | then : |
| 6866 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6867 | else $as_nop |
| 6868 | ac_cv_prog_cc_c89=no |
| 6869 | ac_save_CC=$CC |
| 6870 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6871 | /* end confdefs.h. */ |
| 6872 | $ac_c_conftest_c89_program |
| 6873 | _ACEOF |
| 6874 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6875 | do |
| 6876 | CC="$ac_save_CC $ac_arg" |
| 6877 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6878 | then : |
| 6879 | ac_cv_prog_cc_c89=$ac_arg |
| 6880 | fi |
| 6881 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam |
| 6882 | testscip-shell system . . test. "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6883 | done |
| 6884 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 6885 | CC=$ac_save_CC |
| 6886 | fi |
| 6887 | |
| 6888 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c89" = xno |
| 6889 | then : |
| 6890 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6891 | printfscip-shell system . . printf. "%s\n" "unsupported" >&6; } |
| 6892 | else $as_nop |
| 6893 | if testscip-shell system . . test. "x$ac_cv_prog_cc_c89" = x |
| 6894 | then : |
| 6895 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6896 | printfscip-shell system . . printf. "%s\n" "none needed" >&6; } |
| 6897 | else $as_nop |
| 6898 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6899 | printfscip-shell system . . printf. "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 6900 | CC="$CC $ac_cv_prog_cc_c89" |
| 6901 | fi |
| 6902 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6903 | ac_prog_cc_stdc=c89 |
| 6904 | fi |
| 6905 | fi |
| 6906 | |
| 6907 | ac_ext=c |
| 6908 | ac_cpp='$CPP $CPPFLAGS' |
| 6909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6912 | |
| 6913 | |
| 6914 | ac_ext=c |
| 6915 | ac_cpp='$CPP $CPPFLAGS' |
| 6916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6919 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 6920 | printfscip-shell system . . printf. %s "checking whether $CC understands -c and -o together... " >&6; } |
| 6921 | if testscip-shell system . . test. ${am_cv_prog_cc_c_o+y} |
| 6922 | then : |
| 6923 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6924 | else $as_nop |
| 6925 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6926 | /* end confdefs.h. */ |
| 6927 | |
| 6928 | int |
| 6929 | main (void) |
| 6930 | { |
| 6931 | |
| 6932 | ; |
| 6933 | return 0; |
| 6934 | } |
| 6935 | _ACEOF |
| 6936 | # Make sure it works both with $CC and with simple cc. |
| 6937 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 6938 | # compilers refuse to overwrite an existing .o file with -o, |
| 6939 | # though they will create one. |
| 6940 | am_cv_prog_cc_c_o=yes |
| 6941 | for am_i in 1 2; do |
| 6942 | if { echoscip-shell system . . echo. "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 6943 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 6944 | ac_status=$? |
| 6945 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6946 | (exit $ac_status); } \ |
| 6947 | && testscip-shell system . . test. -f conftest2.$ac_objext; then |
| 6948 | : OK |
| 6949 | else |
| 6950 | am_cv_prog_cc_c_o=no |
| 6951 | break |
| 6952 | fi |
| 6953 | done |
| 6954 | rmscip-shell system . . rm. -f core conftest* |
| 6955 | unset am_i |
| 6956 | fi |
| 6957 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 6958 | printfscip-shell system . . printf. "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 6959 | if testscip-shell system . . test. "$am_cv_prog_cc_c_o" != yes; then |
| 6960 | # Losing compiler, so override with the script. |
| 6961 | # FIXME: It is wrong to rewrite CC. |
| 6962 | # But if we don't then we get into trouble of one sort or another. |
| 6963 | # A longer-term fix would be to have automake use am__CC in this case, |
| 6964 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 6965 | CC="$am_aux_dir/compile $CC" |
| 6966 | fi |
| 6967 | ac_ext=c |
| 6968 | ac_cpp='$CPP $CPPFLAGS' |
| 6969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6972 | |
| 6973 | |
| 6974 | |
| 6975 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 |
| 6976 | printfscip-shell system . . printf. %s "checking whether the compiler is clang... " >&6; } |
| 6977 | if testscip-shell system . . test. ${gl_cv_compiler_clang+y} |
| 6978 | then : |
| 6979 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 6980 | else $as_nop |
| 6981 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6982 | /* end confdefs.h. */ |
| 6983 | |
| 6984 | #ifdef __clang__ |
| 6985 | barfbarf |
| 6986 | #endif |
| 6987 | |
| 6988 | int |
| 6989 | main (void) |
| 6990 | { |
| 6991 | |
| 6992 | ; |
| 6993 | return 0; |
| 6994 | } |
| 6995 | |
| 6996 | _ACEOF |
| 6997 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 6998 | then : |
| 6999 | gl_cv_compiler_clang=no |
| 7000 | else $as_nop |
| 7001 | gl_cv_compiler_clang=yes |
| 7002 | fi |
| 7003 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7004 | |
| 7005 | fi |
| 7006 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 |
| 7007 | printfscip-shell system . . printf. "%s\n" "$gl_cv_compiler_clang" >&6; } |
| 7008 | |
| 7009 | |
| 7010 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 |
| 7011 | printfscip-shell system . . printf. %s "checking for compiler option needed when checking for declarations... " >&6; } |
| 7012 | if testscip-shell system . . test. ${gl_cv_compiler_check_decl_option+y} |
| 7013 | then : |
| 7014 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7015 | else $as_nop |
| 7016 | if testscip-shell system . . test. $gl_cv_compiler_clang = yes; then |
| 7017 | save_ac_compile="$ac_compile" |
| 7018 | ac_compile="$ac_compile -Werror=implicit-function-declaration" |
| 7019 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7020 | /* end confdefs.h. */ |
| 7021 | |
| 7022 | int |
| 7023 | main (void) |
| 7024 | { |
| 7025 | |
| 7026 | ; |
| 7027 | return 0; |
| 7028 | } |
| 7029 | _ACEOF |
| 7030 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 7031 | then : |
| 7032 | gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' |
| 7033 | else $as_nop |
| 7034 | gl_cv_compiler_check_decl_option=none |
| 7035 | fi |
| 7036 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7037 | ac_compile="$save_ac_compile" |
| 7038 | else |
| 7039 | gl_cv_compiler_check_decl_option=none |
| 7040 | fi |
| 7041 | |
| 7042 | fi |
| 7043 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 |
| 7044 | printfscip-shell system . . printf. "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } |
| 7045 | if testscip-shell system . . test. "x$gl_cv_compiler_check_decl_option" != xnone; then |
| 7046 | ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" |
| 7047 | else |
| 7048 | ac_compile_for_check_decl="$ac_compile" |
| 7049 | fi |
| 7050 | |
| 7051 | DEPDIR="${am__leading_dot}deps" |
| 7052 | |
| 7053 | ac_config_commands="$ac_config_commands depfiles" |
| 7054 | |
| 7055 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 7056 | printfscip-shell system . . printf. %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 7057 | catscip-shell system . . cat. > confinc.mk << 'END' |
| 7058 | am__doit: |
| 7059 | @echo this is the am__doit target >confinc.out |
| 7060 | .PHONY: am__doit |
| 7061 | END |
| 7062 | am__include="#" |
| 7063 | am__quote= |
| 7064 | # BSD make does it like this. |
| 7065 | echoscip-shell system . . echo. '.include "confinc.mk" # ignored' > confmf.BSD |
| 7066 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 7067 | echoscip-shell system . . echo. 'include confinc.mk # ignored' > confmf.GNU |
| 7068 | _am_result=no |
| 7069 | for s in GNU BSD; do |
| 7070 | { echoscip-shell system . . echo. "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 7071 | (${MAKE-make} -f confmf.$s && catscip-shell system . . cat. confinc.out) >&5 2>&5 |
| 7072 | ac_status=$? |
| 7073 | echoscip-shell system . . echo. "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7074 | (exit $ac_status); } |
| 7075 | case $?:`catscip-shell system . . cat. confinc.out 2>/dev/nullscip-shell filesystem . . `/dev/null`.` in #( |
| 7076 | '0:this is the am__doit target') : |
| 7077 | case $s in #( |
| 7078 | BSD) : |
| 7079 | am__include='.include' am__quote='"' ;; #( |
| 7080 | *) : |
| 7081 | am__include='include' am__quote='' ;; |
| 7082 | esac ;; #( |
| 7083 | *) : |
| 7084 | ;; |
| 7085 | esac |
| 7086 | if testscip-shell system . . test. "$am__include" != "#"; then |
| 7087 | _am_result="yes ($s style)" |
| 7088 | break |
| 7089 | fi |
| 7090 | done |
| 7091 | rmscip-shell system . . rm. -f confinc.* confmf.* |
| 7092 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 7093 | printfscip-shell system . . printf. "%s\n" "${_am_result}" >&6; } |
| 7094 | |
| 7095 | # Check whether --enable-dependency-tracking was given. |
| 7096 | if testscip-shell system . . test. ${enable_dependency_tracking+y} |
| 7097 | then : |
| 7098 | enableval=$enable_dependency_tracking; |
| 7099 | fi |
| 7100 | |
| 7101 | if testscip-shell system . . test. "x$enable_dependency_tracking" != xno; then |
| 7102 | am_depcomp="$ac_aux_dir/depcomp" |
| 7103 | AMDEPBACKSLASH='\' |
| 7104 | am__nodep='_no' |
| 7105 | fi |
| 7106 | if testscip-shell system . . test. "x$enable_dependency_tracking" != xno; then |
| 7107 | AMDEP_TRUE= |
| 7108 | AMDEP_FALSE='#' |
| 7109 | else |
| 7110 | AMDEP_TRUE='#' |
| 7111 | AMDEP_FALSE= |
| 7112 | fi |
| 7113 | |
| 7114 | |
| 7115 | |
| 7116 | depcc="$CC" am_compiler_list= |
| 7117 | |
| 7118 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7119 | printfscip-shell system . . printf. %s "checking dependency style of $depcc... " >&6; } |
| 7120 | if testscip-shell system . . test. ${am_cv_CC_dependencies_compiler_type+y} |
| 7121 | then : |
| 7122 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7123 | else $as_nop |
| 7124 | if testscip-shell system . . test. -z "$AMDEP_TRUE" && testscip-shell system . . test. -f "$am_depcomp"; then |
| 7125 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7126 | # making bogus files that we don't know about and never remove. For |
| 7127 | # instance it was reported that on HP-UX the gcc test will end up |
| 7128 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 7129 | # in D". |
| 7130 | rmscip-shell system . . rm. -rf conftest.dir |
| 7131 | mkdirscip-shell system . . mkdir. conftest.dir |
| 7132 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7133 | # using a relative directory. |
| 7134 | cpscip-shell system . . cp. "$am_depcomp" conftest.dir |
| 7135 | cd conftest.dir |
| 7136 | # We will build objects and dependencies in a subdirectory because |
| 7137 | # it helps to detect inapplicable dependency modes. For instance |
| 7138 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7139 | # side effect of compilation, but ICC will put the dependencies in |
| 7140 | # the current directory while Tru64 will put them in the object |
| 7141 | # directory. |
| 7142 | mkdirscip-shell system . . mkdir. sub |
| 7143 | |
| 7144 | am_cv_CC_dependencies_compiler_type=none |
| 7145 | if testscip-shell system . . test. "$am_compiler_list" = ""; then |
| 7146 | am_compiler_list=`sedscip-shell system . . sed. -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7147 | fi |
| 7148 | am__universal=false |
| 7149 | case " $depcc " in #( |
| 7150 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7151 | esac |
| 7152 | |
| 7153 | for depmode in $am_compiler_list; do |
| 7154 | # Setup a source with many dependencies, because some compilers |
| 7155 | # like to wrap large dependency lists on column 80 (with \), and |
| 7156 | # we should not choose a depcomp mode which is confused by this. |
| 7157 | # |
| 7158 | # We need to recreate these files for each test, as the compiler may |
| 7159 | # overwrite some of them when testing with obscure command lines. |
| 7160 | # This happens at least with the AIX C compiler. |
| 7161 | : > sub/conftest.c |
| 7162 | for i in 1 2 3 4 5 6; do |
| 7163 | echoscip-shell system . . echo. '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7164 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 7165 | # Solaris 10 /bin/sh. |
| 7166 | echoscip-shell system . . echo. '/* dummy */scip-shell filesystem . . `/* dummy */`.' > sub/conftst$i.h |
| 7167 | done |
| 7168 | echoscip-shell system . . echo. "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7169 | |
| 7170 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 7171 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7172 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 7173 | # versions had trouble with output in subdirs. |
| 7174 | am__obj=sub/conftest.${OBJEXT-o} |
| 7175 | am__minus_obj="-o $am__obj" |
| 7176 | case $depmode in |
| 7177 | gcc) |
| 7178 | # This depmode causes a compiler race in universal mode. |
| 7179 | testscip-shell system . . test. "$am__universal" = false || continue |
| 7180 | ;; |
| 7181 | nosideeffect) |
| 7182 | # After this tag, mechanisms are not by side-effect, so they'll |
| 7183 | # only be used when explicitly requested. |
| 7184 | if testscip-shell system . . test. "x$enable_dependency_tracking" = xyes; then |
| 7185 | continue |
| 7186 | else |
| 7187 | break |
| 7188 | fi |
| 7189 | ;; |
| 7190 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 7191 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 7192 | # not run yet. These depmodes are late enough in the game, and |
| 7193 | # so weak that their functioning should not be impacted. |
| 7194 | am__obj=conftest.${OBJEXT-o} |
| 7195 | am__minus_obj= |
| 7196 | ;; |
| 7197 | none) break ;; |
| 7198 | esac |
| 7199 | if depmode=$depmode \ |
| 7200 | source=sub/conftest.c object=$am__obj \ |
| 7201 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7202 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7203 | >/dev/nullscip-shell filesystem . . `/dev/null`. 2>conftest.err && |
| 7204 | grepscip-shell system . . grep. sub/conftst1.h sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 7205 | grepscip-shell system . . grep. sub/conftst6.h sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 7206 | grepscip-shell system . . grep. $am__obj sub/conftest.Po > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 && |
| 7207 | ${MAKE-make} -s -f confmf > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 7208 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7209 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7210 | # that says an option was ignored or not supported. |
| 7211 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7212 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7213 | # The diagnosis changed in icc 8.0: |
| 7214 | # icc: Command line remark: option '-MP' not supported |
| 7215 | if (grepscip-shell system . . grep. 'ignoring option' conftest.err || |
| 7216 | grepscip-shell system . . grep. 'not supported' conftest.err) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else |
| 7217 | am_cv_CC_dependencies_compiler_type=$depmode |
| 7218 | break |
| 7219 | fi |
| 7220 | fi |
| 7221 | done |
| 7222 | |
| 7223 | cd .. |
| 7224 | rmscip-shell system . . rm. -rf conftest.dir |
| 7225 | else |
| 7226 | am_cv_CC_dependencies_compiler_type=none |
| 7227 | fi |
| 7228 | |
| 7229 | fi |
| 7230 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 7231 | printfscip-shell system . . printf. "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 7232 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 7233 | |
| 7234 | if |
| 7235 | testscip-shell system . . test. "x$enable_dependency_tracking" != xno \ |
| 7236 | && testscip-shell system . . test. "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 7237 | am__fastdepCC_TRUE= |
| 7238 | am__fastdepCC_FALSE='#' |
| 7239 | else |
| 7240 | am__fastdepCC_TRUE='#' |
| 7241 | am__fastdepCC_FALSE= |
| 7242 | fi |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | if testscip-shell system . . test. x"$EXEEXT" = x |
| 7247 | then : |
| 7248 | : |
| 7249 | else $as_nop |
| 7250 | |
| 7251 | printfscip-shell system . . printf. "%s\n" "#define EXEEXT \"$EXEEXT\"" >>confdefs.h |
| 7252 | |
| 7253 | fi |
| 7254 | |
| 7255 | # gnulib |
| 7256 | |
| 7257 | ac_header= ac_cache= |
| 7258 | for ac_item in $ac_header_c_list |
| 7259 | do |
| 7260 | if testscip-shell system . . test. $ac_cache; then |
| 7261 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 7262 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 7263 | printfscip-shell system . . printf. "%s\n" "#define $ac_item 1" >> confdefs.h |
| 7264 | fi |
| 7265 | ac_header= ac_cache= |
| 7266 | elif testscip-shell system . . test. $ac_header; then |
| 7267 | ac_cache=$ac_item |
| 7268 | else |
| 7269 | ac_header=$ac_item |
| 7270 | fi |
| 7271 | done |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
| 7276 | |
| 7277 | |
| 7278 | |
| 7279 | |
| 7280 | if testscip-shell system . . test. $ac_cv_header_stdlib_h = yes && testscip-shell system . . test. $ac_cv_header_string_h = yes |
| 7281 | then : |
| 7282 | |
| 7283 | printfscip-shell system . . printf. "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 7284 | |
| 7285 | fi |
| 7286 | |
| 7287 | |
| 7288 | |
| 7289 | |
| 7290 | |
| 7291 | |
| 7292 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 7293 | printfscip-shell system . . printf. %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 7294 | if testscip-shell system . . test. ${ac_cv_safe_to_define___extensions__+y} |
| 7295 | then : |
| 7296 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7297 | else $as_nop |
| 7298 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7299 | /* end confdefs.h. */ |
| 7300 | |
| 7301 | # define __EXTENSIONS__ 1 |
| 7302 | $ac_includes_default |
| 7303 | int |
| 7304 | main (void) |
| 7305 | { |
| 7306 | |
| 7307 | ; |
| 7308 | return 0; |
| 7309 | } |
| 7310 | _ACEOF |
| 7311 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 7312 | then : |
| 7313 | ac_cv_safe_to_define___extensions__=yes |
| 7314 | else $as_nop |
| 7315 | ac_cv_safe_to_define___extensions__=no |
| 7316 | fi |
| 7317 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7318 | fi |
| 7319 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 7320 | printfscip-shell system . . printf. "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 7321 | |
| 7322 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 7323 | printfscip-shell system . . printf. %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 7324 | if testscip-shell system . . test. ${ac_cv_should_define__xopen_source+y} |
| 7325 | then : |
| 7326 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7327 | else $as_nop |
| 7328 | ac_cv_should_define__xopen_source=no |
| 7329 | if testscip-shell system . . test. $ac_cv_header_wchar_h = yes |
| 7330 | then : |
| 7331 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7332 | /* end confdefs.h. */ |
| 7333 | |
| 7334 | #include <wchar.h> |
| 7335 | mbstate_t x; |
| 7336 | int |
| 7337 | main (void) |
| 7338 | { |
| 7339 | |
| 7340 | ; |
| 7341 | return 0; |
| 7342 | } |
| 7343 | _ACEOF |
| 7344 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 7345 | then : |
| 7346 | |
| 7347 | else $as_nop |
| 7348 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7349 | /* end confdefs.h. */ |
| 7350 | |
| 7351 | #define _XOPEN_SOURCE 500 |
| 7352 | #include <wchar.h> |
| 7353 | mbstate_t x; |
| 7354 | int |
| 7355 | main (void) |
| 7356 | { |
| 7357 | |
| 7358 | ; |
| 7359 | return 0; |
| 7360 | } |
| 7361 | _ACEOF |
| 7362 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 7363 | then : |
| 7364 | ac_cv_should_define__xopen_source=yes |
| 7365 | fi |
| 7366 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7367 | fi |
| 7368 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7369 | fi |
| 7370 | fi |
| 7371 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 7372 | printfscip-shell system . . printf. "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 7373 | |
| 7374 | printfscip-shell system . . printf. "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 7375 | |
| 7376 | printfscip-shell system . . printf. "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 7377 | |
| 7378 | printfscip-shell system . . printf. "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 7379 | |
| 7380 | printfscip-shell system . . printf. "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 7381 | |
| 7382 | printfscip-shell system . . printf. "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 7383 | |
| 7384 | printfscip-shell system . . printf. "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 7385 | |
| 7386 | printfscip-shell system . . printf. "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 7387 | |
| 7388 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 7389 | |
| 7390 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 7391 | |
| 7392 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 7393 | |
| 7394 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 7395 | |
| 7396 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 7397 | |
| 7398 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 7399 | |
| 7400 | printfscip-shell system . . printf. "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 7401 | |
| 7402 | printfscip-shell system . . printf. "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 7403 | |
| 7404 | if testscip-shell system . . test. $ac_cv_header_minix_config_h = yes |
| 7405 | then : |
| 7406 | MINIX=yes |
| 7407 | printfscip-shell system . . printf. "%s\n" "#define _MINIX 1" >>confdefs.h |
| 7408 | |
| 7409 | printfscip-shell system . . printf. "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 7410 | |
| 7411 | printfscip-shell system . . printf. "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 7412 | |
| 7413 | else $as_nop |
| 7414 | MINIX= |
| 7415 | fi |
| 7416 | if testscip-shell system . . test. $ac_cv_safe_to_define___extensions__ = yes |
| 7417 | then : |
| 7418 | printfscip-shell system . . printf. "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 7419 | |
| 7420 | fi |
| 7421 | if testscip-shell system . . test. $ac_cv_should_define__xopen_source = yes |
| 7422 | then : |
| 7423 | printfscip-shell system . . printf. "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 7424 | |
| 7425 | fi |
| 7426 | |
| 7427 | |
| 7428 | |
| 7429 | # Make sure we can run config.sub. |
| 7430 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || |
| 7431 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 7432 | |
| 7433 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 7434 | printfscip-shell system . . printf. %s "checking build system type... " >&6; } |
| 7435 | if testscip-shell system . . test. ${ac_cv_build+y} |
| 7436 | then : |
| 7437 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7438 | else $as_nop |
| 7439 | ac_build_alias=$build_alias |
| 7440 | testscip-shell system . . test. "x$ac_build_alias" = x && |
| 7441 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 7442 | testscip-shell system . . test. "x$ac_build_alias" = x && |
| 7443 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 7444 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 7445 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 7446 | |
| 7447 | fi |
| 7448 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 7449 | printfscip-shell system . . printf. "%s\n" "$ac_cv_build" >&6; } |
| 7450 | case $ac_cv_build in |
| 7451 | *-*-*) ;; |
| 7452 | *) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid value of canonical build" "$LINENO" 5;; |
| 7453 | esac |
| 7454 | build=$ac_cv_build |
| 7455 | ac_save_IFS=$IFS; IFS='-' |
| 7456 | set x $ac_cv_build |
| 7457 | shift |
| 7458 | build_cpu=$1 |
| 7459 | build_vendor=$2 |
| 7460 | shift; shift |
| 7461 | # Remember, the first character of IFS is used to create $*, |
| 7462 | # except with old shells: |
| 7463 | build_os=$* |
| 7464 | IFS=$ac_save_IFS |
| 7465 | case $build_os in *\ *) build_os=`echoscip-shell system . . echo. "$build_os" | sedscip-shell system . . sed. 's/ /-/g'`;; esac |
| 7466 | |
| 7467 | |
| 7468 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 7469 | printfscip-shell system . . printf. %s "checking host system type... " >&6; } |
| 7470 | if testscip-shell system . . test. ${ac_cv_host+y} |
| 7471 | then : |
| 7472 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7473 | else $as_nop |
| 7474 | if testscip-shell system . . test. "x$host_alias" = x; then |
| 7475 | ac_cv_host=$ac_cv_build |
| 7476 | else |
| 7477 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 7478 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 7479 | fi |
| 7480 | |
| 7481 | fi |
| 7482 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 7483 | printfscip-shell system . . printf. "%s\n" "$ac_cv_host" >&6; } |
| 7484 | case $ac_cv_host in |
| 7485 | *-*-*) ;; |
| 7486 | *) as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "invalid value of canonical host" "$LINENO" 5;; |
| 7487 | esac |
| 7488 | host=$ac_cv_host |
| 7489 | ac_save_IFS=$IFS; IFS='-' |
| 7490 | set x $ac_cv_host |
| 7491 | shift |
| 7492 | host_cpu=$1 |
| 7493 | host_vendor=$2 |
| 7494 | shift; shift |
| 7495 | # Remember, the first character of IFS is used to create $*, |
| 7496 | # except with old shells: |
| 7497 | host_os=$* |
| 7498 | IFS=$ac_save_IFS |
| 7499 | case $host_os in *\ *) host_os=`echoscip-shell system . . echo. "$host_os" | sedscip-shell system . . sed. 's/ /-/g'`;; esac |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | |
| 7504 | |
| 7505 | |
| 7506 | case "$host_os" in |
| 7507 | openbsd*) |
| 7508 | |
| 7509 | printfscip-shell system . . printf. "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h |
| 7510 | |
| 7511 | ;; |
| 7512 | esac |
| 7513 | |
| 7514 | ac_ext=c |
| 7515 | ac_cpp='$CPP $CPPFLAGS' |
| 7516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7519 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7520 | printfscip-shell system . . printf. %s "checking how to run the C preprocessor... " >&6; } |
| 7521 | # On Suns, sometimes $CPP names a directory. |
| 7522 | if testscip-shell system . . test. -n "$CPP" && testscip-shell system . . test. -d "$CPP"; then |
| 7523 | CPP= |
| 7524 | fi |
| 7525 | if testscip-shell system . . test. -z "$CPP"; then |
| 7526 | if testscip-shell system . . test. ${ac_cv_prog_CPP+y} |
| 7527 | then : |
| 7528 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7529 | else $as_nop |
| 7530 | # Double quotes because $CC needs to be expanded |
| 7531 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cppscip-shell filesystem . . `/lib/cpp`. |
| 7532 | do |
| 7533 | ac_preproc_ok=false |
| 7534 | for ac_c_preproc_warn_flag in '' yes |
| 7535 | do |
| 7536 | # Use a header file that comes with gcc, so configuring glibc |
| 7537 | # with a fresh cross-compiler works. |
| 7538 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7539 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7540 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7541 | /* end confdefs.h. */ |
| 7542 | #include <limits.h> |
| 7543 | Syntax error |
| 7544 | _ACEOF |
| 7545 | if ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). "$LINENO" |
| 7546 | then : |
| 7547 | |
| 7548 | else $as_nop |
| 7549 | # Broken: fails on valid input. |
| 7550 | continue |
| 7551 | fi |
| 7552 | rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext |
| 7553 | |
| 7554 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7555 | # can be detected and how. |
| 7556 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7557 | /* end confdefs.h. */ |
| 7558 | #include <ac_nonexistent.h> |
| 7559 | _ACEOF |
| 7560 | if ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). "$LINENO" |
| 7561 | then : |
| 7562 | # Broken: success on invalid input. |
| 7563 | continue |
| 7564 | else $as_nop |
| 7565 | # Passes both tests. |
| 7566 | ac_preproc_ok=: |
| 7567 | break |
| 7568 | fi |
| 7569 | rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext |
| 7570 | |
| 7571 | done |
| 7572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7573 | rmscip-shell system . . rm. -f conftest.i conftest.err conftest.$ac_ext |
| 7574 | if $ac_preproc_ok |
| 7575 | then : |
| 7576 | break |
| 7577 | fi |
| 7578 | |
| 7579 | done |
| 7580 | ac_cv_prog_CPP=$CPP |
| 7581 | |
| 7582 | fi |
| 7583 | CPP=$ac_cv_prog_CPP |
| 7584 | else |
| 7585 | ac_cv_prog_CPP=$CPP |
| 7586 | fi |
| 7587 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7588 | printfscip-shell system . . printf. "%s\n" "$CPP" >&6; } |
| 7589 | ac_preproc_ok=false |
| 7590 | for ac_c_preproc_warn_flag in '' yes |
| 7591 | do |
| 7592 | # Use a header file that comes with gcc, so configuring glibc |
| 7593 | # with a fresh cross-compiler works. |
| 7594 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7595 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7596 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7597 | /* end confdefs.h. */ |
| 7598 | #include <limits.h> |
| 7599 | Syntax error |
| 7600 | _ACEOF |
| 7601 | if ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). "$LINENO" |
| 7602 | then : |
| 7603 | |
| 7604 | else $as_nop |
| 7605 | # Broken: fails on valid input. |
| 7606 | continue |
| 7607 | fi |
| 7608 | rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext |
| 7609 | |
| 7610 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7611 | # can be detected and how. |
| 7612 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7613 | /* end confdefs.h. */ |
| 7614 | #include <ac_nonexistent.h> |
| 7615 | _ACEOF |
| 7616 | if ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). "$LINENO" |
| 7617 | then : |
| 7618 | # Broken: success on invalid input. |
| 7619 | continue |
| 7620 | else $as_nop |
| 7621 | # Passes both tests. |
| 7622 | ac_preproc_ok=: |
| 7623 | break |
| 7624 | fi |
| 7625 | rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext |
| 7626 | |
| 7627 | done |
| 7628 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7629 | rmscip-shell system . . rm. -f conftest.i conftest.err conftest.$ac_ext |
| 7630 | if $ac_preproc_ok |
| 7631 | then : |
| 7632 | |
| 7633 | else $as_nop |
| 7634 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7635 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7636 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "C preprocessor \"$CPP\" fails sanity check |
| 7637 | See \`config.log' for more details" "$LINENO" 5; } |
| 7638 | fi |
| 7639 | |
| 7640 | ac_ext=c |
| 7641 | ac_cpp='$CPP $CPPFLAGS' |
| 7642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7645 | |
| 7646 | |
| 7647 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 7648 | printfscip-shell system . . printf. %s "checking for grep that handles long lines and -e... " >&6; } |
| 7649 | if testscip-shell system . . test. ${ac_cv_path_GREP+y} |
| 7650 | then : |
| 7651 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7652 | else $as_nop |
| 7653 | if testscip-shell system . . test. -z "$GREP"; then |
| 7654 | ac_path_GREP_found=false |
| 7655 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7657 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7658 | do |
| 7659 | IFS=$as_save_IFS |
| 7660 | case $as_dir in #((( |
| 7661 | '') as_dir=./ ;; |
| 7662 | */) ;; |
| 7663 | *) as_dir=$as_dir/ ;; |
| 7664 | esac |
| 7665 | for ac_prog in grep ggrep |
| 7666 | do |
| 7667 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7668 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 7669 | as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_GREP" || continue |
| 7670 | # Check for GNU ac_path_GREP and select it if it is found. |
| 7671 | # Check for GNU $ac_path_GREP |
| 7672 | case `"$ac_path_GREP" --version 2>&1` in |
| 7673 | *GNU*) |
| 7674 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 7675 | *) |
| 7676 | ac_count=0 |
| 7677 | printfscip-shell system . . printf. %s 0123456789 >"conftest.in" |
| 7678 | while : |
| 7679 | do |
| 7680 | catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp" |
| 7681 | mvscip-shell system . . mv. "conftest.tmp" "conftest.in" |
| 7682 | cpscip-shell system . . cp. "conftest.in" "conftest.nl" |
| 7683 | printfscip-shell system . . printf. "%s\n" 'GREP' >> "conftest.nl" |
| 7684 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break |
| 7685 | diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break |
| 7686 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val |
| 7687 | if testscip-shell system . . test. $ac_count -gt ${ac_path_GREP_max-0}; then |
| 7688 | # Best one so far, save it but keep looking for a better one |
| 7689 | ac_cv_path_GREP="$ac_path_GREP" |
| 7690 | ac_path_GREP_max=$ac_count |
| 7691 | fi |
| 7692 | # 10*(2^10) chars as input seems more than enough |
| 7693 | testscip-shell system . . test. $ac_count -gt 10 && break |
| 7694 | done |
| 7695 | rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7696 | esac |
| 7697 | |
| 7698 | $ac_path_GREP_found && break 3 |
| 7699 | done |
| 7700 | done |
| 7701 | done |
| 7702 | IFS=$as_save_IFS |
| 7703 | if testscip-shell system . . test. -z "$ac_cv_path_GREP"; then |
| 7704 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 7705 | fi |
| 7706 | else |
| 7707 | ac_cv_path_GREP=$GREP |
| 7708 | fi |
| 7709 | |
| 7710 | fi |
| 7711 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 7712 | printfscip-shell system . . printf. "%s\n" "$ac_cv_path_GREP" >&6; } |
| 7713 | GREP="$ac_cv_path_GREP" |
| 7714 | |
| 7715 | |
| 7716 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 7717 | printfscip-shell system . . printf. %s "checking for egrep... " >&6; } |
| 7718 | if testscip-shell system . . test. ${ac_cv_path_EGREP+y} |
| 7719 | then : |
| 7720 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7721 | else $as_nop |
| 7722 | if echoscip-shell system . . echo. a | $GREP -E '(a|b)' >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 7723 | then ac_cv_path_EGREP="$GREP -E" |
| 7724 | else |
| 7725 | if testscip-shell system . . test. -z "$EGREP"; then |
| 7726 | ac_path_EGREP_found=false |
| 7727 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7729 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7730 | do |
| 7731 | IFS=$as_save_IFS |
| 7732 | case $as_dir in #((( |
| 7733 | '') as_dir=./ ;; |
| 7734 | */) ;; |
| 7735 | *) as_dir=$as_dir/ ;; |
| 7736 | esac |
| 7737 | for ac_prog in egrep |
| 7738 | do |
| 7739 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7740 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 7741 | as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$ac_path_EGREP" || continue |
| 7742 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 7743 | # Check for GNU $ac_path_EGREP |
| 7744 | case `"$ac_path_EGREP" --version 2>&1` in |
| 7745 | *GNU*) |
| 7746 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 7747 | *) |
| 7748 | ac_count=0 |
| 7749 | printfscip-shell system . . printf. %s 0123456789 >"conftest.in" |
| 7750 | while : |
| 7751 | do |
| 7752 | catscip-shell system . . cat. "conftest.in" "conftest.in" >"conftest.tmp" |
| 7753 | mvscip-shell system . . mv. "conftest.tmp" "conftest.in" |
| 7754 | cpscip-shell system . . cp. "conftest.in" "conftest.nl" |
| 7755 | printfscip-shell system . . printf. "%s\n" 'EGREP' >> "conftest.nl" |
| 7756 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/nullscip-shell filesystem . . `/dev/null`. || break |
| 7757 | diffscip-shell system . . diff. "conftest.out" "conftest.nl" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || break |
| 7758 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $ac_count + 1 && ac_count=$as_val |
| 7759 | if testscip-shell system . . test. $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 7760 | # Best one so far, save it but keep looking for a better one |
| 7761 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 7762 | ac_path_EGREP_max=$ac_count |
| 7763 | fi |
| 7764 | # 10*(2^10) chars as input seems more than enough |
| 7765 | testscip-shell system . . test. $ac_count -gt 10 && break |
| 7766 | done |
| 7767 | rmscip-shell system . . rm. -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7768 | esac |
| 7769 | |
| 7770 | $ac_path_EGREP_found && break 3 |
| 7771 | done |
| 7772 | done |
| 7773 | done |
| 7774 | IFS=$as_save_IFS |
| 7775 | if testscip-shell system . . test. -z "$ac_cv_path_EGREP"; then |
| 7776 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 7777 | fi |
| 7778 | else |
| 7779 | ac_cv_path_EGREP=$EGREP |
| 7780 | fi |
| 7781 | |
| 7782 | fi |
| 7783 | fi |
| 7784 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 7785 | printfscip-shell system . . printf. "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 7786 | EGREP="$ac_cv_path_EGREP" |
| 7787 | |
| 7788 | |
| 7789 | |
| 7790 | |
| 7791 | |
| 7792 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 |
| 7793 | printfscip-shell system . . printf. %s "checking for Minix Amsterdam compiler... " >&6; } |
| 7794 | if testscip-shell system . . test. ${gl_cv_c_amsterdam_compiler+y} |
| 7795 | then : |
| 7796 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7797 | else $as_nop |
| 7798 | |
| 7799 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7800 | /* end confdefs.h. */ |
| 7801 | |
| 7802 | #ifdef __ACK__ |
| 7803 | Amsterdam |
| 7804 | #endif |
| 7805 | |
| 7806 | _ACEOF |
| 7807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7808 | $EGREP "Amsterdam" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 7809 | then : |
| 7810 | gl_cv_c_amsterdam_compiler=yes |
| 7811 | else $as_nop |
| 7812 | gl_cv_c_amsterdam_compiler=no |
| 7813 | fi |
| 7814 | rmscip-shell system . . rm. -rf conftest* |
| 7815 | |
| 7816 | |
| 7817 | fi |
| 7818 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 |
| 7819 | printfscip-shell system . . printf. "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } |
| 7820 | |
| 7821 | if testscip-shell system . . test. $gl_cv_c_amsterdam_compiler = yes; then |
| 7822 | if testscip-shell system . . test. -z "$AR"; then |
| 7823 | AR='cc -c.a' |
| 7824 | fi |
| 7825 | if testscip-shell system . . test. -z "$ARFLAGS"; then |
| 7826 | ARFLAGS='-o' |
| 7827 | fi |
| 7828 | else |
| 7829 | : |
| 7830 | fi |
| 7831 | |
| 7832 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7833 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7834 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 7835 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7836 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 7837 | if testscip-shell system . . test. ${ac_cv_prog_AR+y} |
| 7838 | then : |
| 7839 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7840 | else $as_nop |
| 7841 | if testscip-shell system . . test. -n "$AR"; then |
| 7842 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7843 | else |
| 7844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7845 | for as_dir in $PATH |
| 7846 | do |
| 7847 | IFS=$as_save_IFS |
| 7848 | case $as_dir in #((( |
| 7849 | '') as_dir=./ ;; |
| 7850 | */) ;; |
| 7851 | *) as_dir=$as_dir/ ;; |
| 7852 | esac |
| 7853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7854 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 7855 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 7856 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7857 | break 2 |
| 7858 | fi |
| 7859 | done |
| 7860 | done |
| 7861 | IFS=$as_save_IFS |
| 7862 | |
| 7863 | fi |
| 7864 | fi |
| 7865 | AR=$ac_cv_prog_AR |
| 7866 | if testscip-shell system . . test. -n "$AR"; then |
| 7867 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7868 | printfscip-shell system . . printf. "%s\n" "$AR" >&6; } |
| 7869 | else |
| 7870 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7871 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 7872 | fi |
| 7873 | |
| 7874 | |
| 7875 | fi |
| 7876 | if testscip-shell system . . test. -z "$ac_cv_prog_AR"; then |
| 7877 | ac_ct_AR=$AR |
| 7878 | # Extract the first word of "ar", so it can be a program name with args. |
| 7879 | set dummy ar; ac_word=$2 |
| 7880 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7881 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 7882 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_AR+y} |
| 7883 | then : |
| 7884 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7885 | else $as_nop |
| 7886 | if testscip-shell system . . test. -n "$ac_ct_AR"; then |
| 7887 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7888 | else |
| 7889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7890 | for as_dir in $PATH |
| 7891 | do |
| 7892 | IFS=$as_save_IFS |
| 7893 | case $as_dir in #((( |
| 7894 | '') as_dir=./ ;; |
| 7895 | */) ;; |
| 7896 | *) as_dir=$as_dir/ ;; |
| 7897 | esac |
| 7898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7899 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 7900 | ac_cv_prog_ac_ct_AR="ar" |
| 7901 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7902 | break 2 |
| 7903 | fi |
| 7904 | done |
| 7905 | done |
| 7906 | IFS=$as_save_IFS |
| 7907 | |
| 7908 | fi |
| 7909 | fi |
| 7910 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7911 | if testscip-shell system . . test. -n "$ac_ct_AR"; then |
| 7912 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7913 | printfscip-shell system . . printf. "%s\n" "$ac_ct_AR" >&6; } |
| 7914 | else |
| 7915 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7916 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 7917 | fi |
| 7918 | |
| 7919 | if testscip-shell system . . test. "x$ac_ct_AR" = x; then |
| 7920 | AR="ar" |
| 7921 | else |
| 7922 | case $cross_compiling:$ac_tool_warned in |
| 7923 | yes:) |
| 7924 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7925 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7926 | ac_tool_warned=yes ;; |
| 7927 | esac |
| 7928 | AR=$ac_ct_AR |
| 7929 | fi |
| 7930 | else |
| 7931 | AR="$ac_cv_prog_AR" |
| 7932 | fi |
| 7933 | |
| 7934 | if testscip-shell system . . test. -z "$ARFLAGS"; then |
| 7935 | ARFLAGS='cr' |
| 7936 | fi |
| 7937 | |
| 7938 | |
| 7939 | |
| 7940 | if testscip-shell system . . test. -z "$RANLIB"; then |
| 7941 | if testscip-shell system . . test. $gl_cv_c_amsterdam_compiler = yes; then |
| 7942 | RANLIB=':' |
| 7943 | else |
| 7944 | if testscip-shell system . . test. -n "$ac_tool_prefix"; then |
| 7945 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7946 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7947 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7948 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 7949 | if testscip-shell system . . test. ${ac_cv_prog_RANLIB+y} |
| 7950 | then : |
| 7951 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7952 | else $as_nop |
| 7953 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 7954 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7955 | else |
| 7956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7957 | for as_dir in $PATH |
| 7958 | do |
| 7959 | IFS=$as_save_IFS |
| 7960 | case $as_dir in #((( |
| 7961 | '') as_dir=./ ;; |
| 7962 | */) ;; |
| 7963 | *) as_dir=$as_dir/ ;; |
| 7964 | esac |
| 7965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7966 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 7967 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7968 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7969 | break 2 |
| 7970 | fi |
| 7971 | done |
| 7972 | done |
| 7973 | IFS=$as_save_IFS |
| 7974 | |
| 7975 | fi |
| 7976 | fi |
| 7977 | RANLIB=$ac_cv_prog_RANLIB |
| 7978 | if testscip-shell system . . test. -n "$RANLIB"; then |
| 7979 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7980 | printfscip-shell system . . printf. "%s\n" "$RANLIB" >&6; } |
| 7981 | else |
| 7982 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7983 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 7984 | fi |
| 7985 | |
| 7986 | |
| 7987 | fi |
| 7988 | if testscip-shell system . . test. -z "$ac_cv_prog_RANLIB"; then |
| 7989 | ac_ct_RANLIB=$RANLIB |
| 7990 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7991 | set dummy ranlib; ac_word=$2 |
| 7992 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7993 | printfscip-shell system . . printf. %s "checking for $ac_word... " >&6; } |
| 7994 | if testscip-shell system . . test. ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7995 | then : |
| 7996 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 7997 | else $as_nop |
| 7998 | if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then |
| 7999 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8000 | else |
| 8001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8002 | for as_dir in $PATH |
| 8003 | do |
| 8004 | IFS=$as_save_IFS |
| 8005 | case $as_dir in #((( |
| 8006 | '') as_dir=./ ;; |
| 8007 | */) ;; |
| 8008 | *) as_dir=$as_dir/ ;; |
| 8009 | esac |
| 8010 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8011 | if as_fn_executable_pscip-shell shell shell-project 0.0.0 as_fn_executable_p(). "$as_dir$ac_word$ac_exec_ext"; then |
| 8012 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8013 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8014 | break 2 |
| 8015 | fi |
| 8016 | done |
| 8017 | done |
| 8018 | IFS=$as_save_IFS |
| 8019 | |
| 8020 | fi |
| 8021 | fi |
| 8022 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8023 | if testscip-shell system . . test. -n "$ac_ct_RANLIB"; then |
| 8024 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 8025 | printfscip-shell system . . printf. "%s\n" "$ac_ct_RANLIB" >&6; } |
| 8026 | else |
| 8027 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8028 | printfscip-shell system . . printf. "%s\n" "no" >&6; } |
| 8029 | fi |
| 8030 | |
| 8031 | if testscip-shell system . . test. "x$ac_ct_RANLIB" = x; then |
| 8032 | RANLIB=":" |
| 8033 | else |
| 8034 | case $cross_compiling:$ac_tool_warned in |
| 8035 | yes:) |
| 8036 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8037 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8038 | ac_tool_warned=yes ;; |
| 8039 | esac |
| 8040 | RANLIB=$ac_ct_RANLIB |
| 8041 | fi |
| 8042 | else |
| 8043 | RANLIB="$ac_cv_prog_RANLIB" |
| 8044 | fi |
| 8045 | |
| 8046 | fi |
| 8047 | fi |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | |
| 8053 | |
| 8054 | # IEEE behaviour is the default on all CPUs except Alpha and SH |
| 8055 | # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 |
| 8056 | # and the GCC 4.1.2 manual). |
| 8057 | case "$host_cpu" in |
| 8058 | alpha*) |
| 8059 | # On Alpha systems, a compiler option provides the behaviour. |
| 8060 | # See the ieee(3) manual page, also available at |
| 8061 | # <https://backdrift.org/man/tru64/man3/ieee.3.html> |
| 8062 | if testscip-shell system . . test. -n "$GCC"; then |
| 8063 | # GCC has the option -mieee. |
| 8064 | # For full IEEE compliance (rarely needed), use option -mieee-with-inexact. |
| 8065 | CPPFLAGS="$CPPFLAGS -mieee" |
| 8066 | else |
| 8067 | # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact. |
| 8068 | # For full IEEE compliance (rarely needed), use option -ieee_with_inexact. |
| 8069 | CPPFLAGS="$CPPFLAGS -ieee" |
| 8070 | fi |
| 8071 | ;; |
| 8072 | sh*) |
| 8073 | if testscip-shell system . . test. -n "$GCC"; then |
| 8074 | # GCC has the option -mieee. |
| 8075 | CPPFLAGS="$CPPFLAGS -mieee" |
| 8076 | fi |
| 8077 | ;; |
| 8078 | esac |
| 8079 | |
| 8080 | # Check whether --enable-largefile was given. |
| 8081 | if testscip-shell system . . test. ${enable_largefile+y} |
| 8082 | then : |
| 8083 | enableval=$enable_largefile; |
| 8084 | fi |
| 8085 | |
| 8086 | if testscip-shell system . . test. "$enable_largefile" != no |
| 8087 | then : |
| 8088 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 8089 | printfscip-shell system . . printf. %s "checking for special C compiler options needed for large files... " >&6; } |
| 8090 | if testscip-shell system . . test. ${ac_cv_sys_largefile_CC+y} |
| 8091 | then : |
| 8092 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 8093 | else $as_nop |
| 8094 | ac_cv_sys_largefile_CC=no |
| 8095 | if testscip-shell system . . test. "$GCC" != yes; then |
| 8096 | ac_save_CC=$CC |
| 8097 | while :; do |
| 8098 | # IRIX 6.2 and later do not support large files by default, |
| 8099 | # so use the C compiler's -n32 option if that helps. |
| 8100 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8101 | /* end confdefs.h. */ |
| 8102 | #include <sys/types.h> |
| 8103 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8104 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8105 | since some C++ compilers masquerading as C compilers |
| 8106 | incorrectly reject 9223372036854775807. */ |
| 8107 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8108 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8109 | && LARGE_OFF_T % 2147483647 == 1) |
| 8110 | ? 1 : -1]; |
| 8111 | int |
| 8112 | main (void) |
| 8113 | { |
| 8114 | |
| 8115 | ; |
| 8116 | return 0; |
| 8117 | } |
| 8118 | _ACEOF |
| 8119 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8120 | then : |
| 8121 | break |
| 8122 | fi |
| 8123 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam |
| 8124 | CC="$CC -n32" |
| 8125 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8126 | then : |
| 8127 | ac_cv_sys_largefile_CC=' -n32'; break |
| 8128 | fi |
| 8129 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam |
| 8130 | break |
| 8131 | done |
| 8132 | CC=$ac_save_CC |
| 8133 | rmscip-shell system . . rm. -f conftest.$ac_ext |
| 8134 | fi |
| 8135 | fi |
| 8136 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 8137 | printfscip-shell system . . printf. "%s\n" "$ac_cv_sys_largefile_CC" >&6; } |
| 8138 | if testscip-shell system . . test. "$ac_cv_sys_largefile_CC" != no; then |
| 8139 | CC=$CC$ac_cv_sys_largefile_CC |
| 8140 | fi |
| 8141 | |
| 8142 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 8143 | printfscip-shell system . . printf. %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 8144 | if testscip-shell system . . test. ${ac_cv_sys_file_offset_bits+y} |
| 8145 | then : |
| 8146 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 8147 | else $as_nop |
| 8148 | while :; do |
| 8149 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8150 | /* end confdefs.h. */ |
| 8151 | #include <sys/types.h> |
| 8152 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8153 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8154 | since some C++ compilers masquerading as C compilers |
| 8155 | incorrectly reject 9223372036854775807. */ |
| 8156 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8157 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8158 | && LARGE_OFF_T % 2147483647 == 1) |
| 8159 | ? 1 : -1]; |
| 8160 | int |
| 8161 | main (void) |
| 8162 | { |
| 8163 | |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
| 8168 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8169 | then : |
| 8170 | ac_cv_sys_file_offset_bits=no; break |
| 8171 | fi |
| 8172 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8173 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8174 | /* end confdefs.h. */ |
| 8175 | #undef _FILE_OFFSET_BITS |
| 8176 | #define _FILE_OFFSET_BITS 64 |
| 8177 | #include <sys/types.h> |
| 8178 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8179 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8180 | since some C++ compilers masquerading as C compilers |
| 8181 | incorrectly reject 9223372036854775807. */ |
| 8182 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8183 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8184 | && LARGE_OFF_T % 2147483647 == 1) |
| 8185 | ? 1 : -1]; |
| 8186 | int |
| 8187 | main (void) |
| 8188 | { |
| 8189 | |
| 8190 | ; |
| 8191 | return 0; |
| 8192 | } |
| 8193 | _ACEOF |
| 8194 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8195 | then : |
| 8196 | ac_cv_sys_file_offset_bits=64; break |
| 8197 | fi |
| 8198 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8199 | ac_cv_sys_file_offset_bits=unknown |
| 8200 | break |
| 8201 | done |
| 8202 | fi |
| 8203 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 8204 | printfscip-shell system . . printf. "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } |
| 8205 | case $ac_cv_sys_file_offset_bits in #( |
| 8206 | no | unknown) ;; |
| 8207 | *) |
| 8208 | printfscip-shell system . . printf. "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h |
| 8209 | ;; |
| 8210 | esac |
| 8211 | rmscip-shell system . . rm. -rf conftest* |
| 8212 | case $ac_cv_sys_file_offset_bits in #( |
| 8213 | unknown) : |
| 8214 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 8215 | printfscip-shell system . . printf. %s "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 8216 | if testscip-shell system . . test. ${ac_cv_sys_large_files+y} |
| 8217 | then : |
| 8218 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 8219 | else $as_nop |
| 8220 | while :; do |
| 8221 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8222 | /* end confdefs.h. */ |
| 8223 | #include <sys/types.h> |
| 8224 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8225 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8226 | since some C++ compilers masquerading as C compilers |
| 8227 | incorrectly reject 9223372036854775807. */ |
| 8228 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8229 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8230 | && LARGE_OFF_T % 2147483647 == 1) |
| 8231 | ? 1 : -1]; |
| 8232 | int |
| 8233 | main (void) |
| 8234 | { |
| 8235 | |
| 8236 | ; |
| 8237 | return 0; |
| 8238 | } |
| 8239 | _ACEOF |
| 8240 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8241 | then : |
| 8242 | ac_cv_sys_large_files=no; break |
| 8243 | fi |
| 8244 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8245 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8246 | /* end confdefs.h. */ |
| 8247 | #undef _LARGE_FILES |
| 8248 | #define _LARGE_FILES 1 |
| 8249 | #include <sys/types.h> |
| 8250 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8251 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8252 | since some C++ compilers masquerading as C compilers |
| 8253 | incorrectly reject 9223372036854775807. */ |
| 8254 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 8255 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8256 | && LARGE_OFF_T % 2147483647 == 1) |
| 8257 | ? 1 : -1]; |
| 8258 | int |
| 8259 | main (void) |
| 8260 | { |
| 8261 | |
| 8262 | ; |
| 8263 | return 0; |
| 8264 | } |
| 8265 | _ACEOF |
| 8266 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8267 | then : |
| 8268 | ac_cv_sys_large_files=1; break |
| 8269 | fi |
| 8270 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8271 | ac_cv_sys_large_files=unknown |
| 8272 | break |
| 8273 | done |
| 8274 | fi |
| 8275 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 8276 | printfscip-shell system . . printf. "%s\n" "$ac_cv_sys_large_files" >&6; } |
| 8277 | case $ac_cv_sys_large_files in #( |
| 8278 | no | unknown) ;; |
| 8279 | *) |
| 8280 | printfscip-shell system . . printf. "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h |
| 8281 | ;; |
| 8282 | esac |
| 8283 | rmscip-shell system . . rm. -rf conftest* ;; #( |
| 8284 | 64) : |
| 8285 | |
| 8286 | # Check whether --enable-year2038 was given. |
| 8287 | if testscip-shell system . . test. ${enable_year2038+y} |
| 8288 | then : |
| 8289 | enableval=$enable_year2038; |
| 8290 | fi |
| 8291 | |
| 8292 | if testscip-shell system . . test. "$enable_year2038" != no |
| 8293 | then : |
| 8294 | |
| 8295 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5 |
| 8296 | printfscip-shell system . . printf. %s "checking for time_t past the year 2038... " >&6; } |
| 8297 | if testscip-shell system . . test. ${gl_cv_type_time_t_y2038+y} |
| 8298 | then : |
| 8299 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 8300 | else $as_nop |
| 8301 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8302 | /* end confdefs.h. */ |
| 8303 | |
| 8304 | #include <time.h> |
| 8305 | /* Check that time_t can represent 2**32 - 1 correctly. */ |
| 8306 | #define LARGE_TIME_T \\ |
| 8307 | ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 8308 | int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 8309 | && LARGE_TIME_T % 65537 == 0) |
| 8310 | ? 1 : -1]; |
| 8311 | |
| 8312 | _ACEOF |
| 8313 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8314 | then : |
| 8315 | gl_cv_type_time_t_y2038=yes |
| 8316 | else $as_nop |
| 8317 | gl_cv_type_time_t_y2038=no |
| 8318 | fi |
| 8319 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8320 | |
| 8321 | fi |
| 8322 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5 |
| 8323 | printfscip-shell system . . printf. "%s\n" "$gl_cv_type_time_t_y2038" >&6; } |
| 8324 | if testscip-shell system . . test. "$gl_cv_type_time_t_y2038" = no; then |
| 8325 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5 |
| 8326 | printfscip-shell system . . printf. %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; } |
| 8327 | if testscip-shell system . . test. ${gl_cv_type_time_t_bits_macro+y} |
| 8328 | then : |
| 8329 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 8330 | else $as_nop |
| 8331 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8332 | /* end confdefs.h. */ |
| 8333 | #define _TIME_BITS 64 |
| 8334 | #define _FILE_OFFSET_BITS 64 |
| 8335 | |
| 8336 | #include <time.h> |
| 8337 | /* Check that time_t can represent 2**32 - 1 correctly. */ |
| 8338 | #define LARGE_TIME_T \\ |
| 8339 | ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 8340 | int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 8341 | && LARGE_TIME_T % 65537 == 0) |
| 8342 | ? 1 : -1]; |
| 8343 | |
| 8344 | _ACEOF |
| 8345 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8346 | then : |
| 8347 | gl_cv_type_time_t_bits_macro=yes |
| 8348 | else $as_nop |
| 8349 | gl_cv_type_time_t_bits_macro=no |
| 8350 | fi |
| 8351 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8352 | |
| 8353 | fi |
| 8354 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5 |
| 8355 | printfscip-shell system . . printf. "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; } |
| 8356 | if testscip-shell system . . test. "$gl_cv_type_time_t_bits_macro" = yes; then |
| 8357 | |
| 8358 | printfscip-shell system . . printf. "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 8359 | |
| 8360 | |
| 8361 | printfscip-shell system . . printf. "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 8362 | |
| 8363 | gl_cv_type_time_t_y2038=yes |
| 8364 | fi |
| 8365 | fi |
| 8366 | if testscip-shell system . . test. $gl_cv_type_time_t_y2038 = no; then |
| 8367 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8368 | /* end confdefs.h. */ |
| 8369 | #ifdef _USE_32BIT_TIME_T |
| 8370 | int ok; |
| 8371 | #else |
| 8372 | error fail |
| 8373 | #endif |
| 8374 | |
| 8375 | _ACEOF |
| 8376 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 8377 | then : |
| 8378 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8379 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8380 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "The 'time_t' type stops working after January 2038. |
| 8381 | Remove _USE_32BIT_TIME_T from the compiler flags. |
| 8382 | See \`config.log' for more details" "$LINENO" 5; } |
| 8383 | else $as_nop |
| 8384 | # If not cross-compiling and says we should check, |
| 8385 | # and 'touch' works with a large timestamp, then evidently wider time_t |
| 8386 | # is desired and supported, so fail and ask the builder to fix the |
| 8387 | # problem. Otherwise, just warn the builder. |
| 8388 | |
| 8389 | if testscip-shell system . . test. "$gl_warned_about_y2038" != yes; then |
| 8390 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038, |
| 8391 | and this package needs a wider 'time_t' type |
| 8392 | if there is any way to access timestamps after that. |
| 8393 | Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5 |
| 8394 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038, |
| 8395 | and this package needs a wider 'time_t' type |
| 8396 | if there is any way to access timestamps after that. |
| 8397 | Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;} |
| 8398 | gl_warned_about_y2038=yes |
| 8399 | fi |
| 8400 | |
| 8401 | fi |
| 8402 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8403 | fi |
| 8404 | fi |
| 8405 | ;; #( |
| 8406 | *) : |
| 8407 | ;; |
| 8408 | esac |
| 8409 | fi |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | case "$host_os" in |
| 8414 | mingw*) |
| 8415 | |
| 8416 | printfscip-shell system . . printf. "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 8417 | |
| 8418 | ;; |
| 8419 | esac |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | # Check whether --enable-threads was given. |
| 8428 | if testscip-shell system . . test. ${enable_threads+y} |
| 8429 | then : |
| 8430 | enableval=$enable_threads; gl_use_threads=$enableval |
| 8431 | else $as_nop |
| 8432 | if testscip-shell system . . test. -n "$gl_use_threads_default"; then |
| 8433 | gl_use_threads="$gl_use_threads_default" |
| 8434 | else |
| 8435 | case "$host_os" in |
| 8436 | osf*) gl_use_threads=no ;; |
| 8437 | cygwin*) |
| 8438 | case `unamescip-shell system . . uname. -r` in |
| 8439 | 1.[0-5].*) gl_use_threads=no ;; |
| 8440 | *) gl_use_threads=yes ;; |
| 8441 | esac |
| 8442 | ;; |
| 8443 | mingw*) |
| 8444 | case "$gl_use_winpthreads_default" in |
| 8445 | yes) gl_use_threads=posix ;; |
| 8446 | no) gl_use_threads=windows ;; |
| 8447 | *) gl_use_threads=yes ;; |
| 8448 | esac |
| 8449 | ;; |
| 8450 | *) gl_use_threads=yes ;; |
| 8451 | esac |
| 8452 | fi |
| 8453 | |
| 8454 | fi |
| 8455 | |
| 8456 | if testscip-shell system . . test. "$gl_use_threads" = yes \ |
| 8457 | || testscip-shell system . . test. "$gl_use_threads" = isoc \ |
| 8458 | || testscip-shell system . . test. "$gl_use_threads" = posix \ |
| 8459 | || testscip-shell system . . test. "$gl_use_threads" = isoc+posix; then |
| 8460 | # For using <threads.h> or <pthread.h>: |
| 8461 | |
| 8462 | |
| 8463 | if testscip-shell system . . test. -z "$gl_anythreadlib_early_done"; then |
| 8464 | case "$host_os" in |
| 8465 | osf*) |
| 8466 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 8467 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 8468 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 8469 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 8470 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 8471 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 8472 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 8473 | ;; |
| 8474 | esac |
| 8475 | # Some systems optimize for single-threaded programs by default, and |
| 8476 | # need special flags to disable these optimizations. For example, the |
| 8477 | # definition of 'errno' in <errno.h>. |
| 8478 | case "$host_os" in |
| 8479 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 8480 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 8481 | esac |
| 8482 | gl_anythreadlib_early_done=done |
| 8483 | fi |
| 8484 | |
| 8485 | fi |
| 8486 | |
| 8487 | |
| 8488 | |
| 8489 | # Pre-early section. |
| 8490 | |
| 8491 | |
| 8492 | |
| 8493 | |
| 8494 | # Code from module _Exit: |
| 8495 | # Code from module absolute-header: |
| 8496 | # Code from module access: |
| 8497 | # Code from module alignof: |
| 8498 | # Code from module alloca-opt: |
| 8499 | # Code from module assure: |
| 8500 | # Code from module at-internal: |
| 8501 | # Code from module attribute: |
| 8502 | # Code from module basename-lgpl: |
| 8503 | # Code from module builtin-expect: |
| 8504 | # Code from module c99: |
| 8505 | # Code from module calloc-gnu: |
| 8506 | # Code from module calloc-posix: |
| 8507 | # Code from module chdir: |
| 8508 | # Code from module chdir-long: |
| 8509 | # Code from module clock-time: |
| 8510 | # Code from module cloexec: |
| 8511 | # Code from module close: |
| 8512 | # Code from module closedir: |
| 8513 | # Code from module concat-filename: |
| 8514 | # Code from module d-ino: |
| 8515 | # Code from module dirent: |
| 8516 | # Code from module dirfd: |
| 8517 | # Code from module dirname-lgpl: |
| 8518 | # Code from module double-slash-root: |
| 8519 | # Code from module dup: |
| 8520 | # Code from module dup2: |
| 8521 | # Code from module errno: |
| 8522 | # Code from module error: |
| 8523 | # Code from module exitfail: |
| 8524 | # Code from module extensions: |
| 8525 | # Code from module extern-inline: |
| 8526 | # Code from module fchdir: |
| 8527 | # Code from module fcntl: |
| 8528 | # Code from module fcntl-h: |
| 8529 | # Code from module fd-hook: |
| 8530 | # Code from module fd-safer-flag: |
| 8531 | # Code from module fdopendir: |
| 8532 | # Code from module filename: |
| 8533 | # Code from module filenamecat-lgpl: |
| 8534 | # Code from module findprog: |
| 8535 | # Code from module float: |
| 8536 | # Code from module fpieee: |
| 8537 | |
| 8538 | # Code from module fpucw: |
| 8539 | # Code from module free-posix: |
| 8540 | # Code from module frexp-nolibm: |
| 8541 | # Code from module frexpl-nolibm: |
| 8542 | # Code from module fstat: |
| 8543 | # Code from module fstatat: |
| 8544 | # Code from module ftruncate: |
| 8545 | # Code from module gen-header: |
| 8546 | # Code from module getcwd: |
| 8547 | # Code from module getcwd-lgpl: |
| 8548 | # Code from module getdtablesize: |
| 8549 | # Code from module getlogin_r: |
| 8550 | # Code from module getopt-gnu: |
| 8551 | # Code from module getopt-posix: |
| 8552 | # Code from module getprogname: |
| 8553 | # Code from module getrandom: |
| 8554 | # Code from module gettext-h: |
| 8555 | # Code from module gettime: |
| 8556 | # Code from module gettimeofday: |
| 8557 | # Code from module git-version-gen: |
| 8558 | # Code from module hash-pjw: |
| 8559 | # Code from module ialloc: |
| 8560 | # Code from module idx: |
| 8561 | # Code from module include_next: |
| 8562 | # Code from module inline: |
| 8563 | # Code from module intprops: |
| 8564 | # Code from module inttypes-incomplete: |
| 8565 | # Code from module isnand-nolibm: |
| 8566 | # Code from module isnanf-nolibm: |
| 8567 | # Code from module isnanl-nolibm: |
| 8568 | # Code from module largefile: |
| 8569 | |
| 8570 | |
| 8571 | # Code from module libc-config: |
| 8572 | # Code from module limits-h: |
| 8573 | # Code from module lock: |
| 8574 | # Code from module lstat: |
| 8575 | # Code from module malloc-gnu: |
| 8576 | # Code from module malloc-posix: |
| 8577 | # Code from module malloca: |
| 8578 | # Code from module math: |
| 8579 | # Code from module memchr: |
| 8580 | # Code from module mempcpy: |
| 8581 | # Code from module memrchr: |
| 8582 | # Code from module minmax: |
| 8583 | # Code from module mkdir: |
| 8584 | # Code from module mkstemp: |
| 8585 | # Code from module msvc-inval: |
| 8586 | # Code from module msvc-nothrow: |
| 8587 | # Code from module multiarch: |
| 8588 | # Code from module nocrash: |
| 8589 | # Code from module obstack: |
| 8590 | # Code from module obstack-printf: |
| 8591 | # Code from module open: |
| 8592 | # Code from module openat: |
| 8593 | # Code from module openat-die: |
| 8594 | # Code from module openat-h: |
| 8595 | # Code from module opendir: |
| 8596 | # Code from module pathmax: |
| 8597 | # Code from module pipe-posix: |
| 8598 | # Code from module printf-frexp: |
| 8599 | # Code from module printf-frexpl: |
| 8600 | # Code from module printf-safe: |
| 8601 | # Code from module progname: |
| 8602 | # Code from module raise: |
| 8603 | # Code from module readdir: |
| 8604 | # Code from module readlink: |
| 8605 | # Code from module realloc-gnu: |
| 8606 | # Code from module realloc-posix: |
| 8607 | # Code from module reallocarray: |
| 8608 | # Code from module rewinddir: |
| 8609 | # Code from module same-inode: |
| 8610 | # Code from module save-cwd: |
| 8611 | # Code from module scandir: |
| 8612 | # Code from module sigaction: |
| 8613 | # Code from module signal: |
| 8614 | # Code from module signal-h: |
| 8615 | # Code from module signbit: |
| 8616 | # Code from module sigprocmask: |
| 8617 | # Code from module size_max: |
| 8618 | # Code from module snippet/_Noreturn: |
| 8619 | # Code from module snippet/arg-nonnull: |
| 8620 | # Code from module snippet/c++defs: |
| 8621 | # Code from module snippet/warn-on-use: |
| 8622 | # Code from module snprintf: |
| 8623 | # Code from module sprintf-posix: |
| 8624 | # Code from module ssize_t: |
| 8625 | # Code from module stat: |
| 8626 | # Code from module stat-time: |
| 8627 | # Code from module std-gnu11: |
| 8628 | # Code from module stdalign: |
| 8629 | # Code from module stdarg: |
| 8630 | |
| 8631 | |
| 8632 | |
| 8633 | # Code from module stdbool: |
| 8634 | # Code from module stddef: |
| 8635 | # Code from module stdint: |
| 8636 | # Code from module stdio: |
| 8637 | # Code from module stdlib: |
| 8638 | # Code from module stpcpy: |
| 8639 | # Code from module strdup-posix: |
| 8640 | # Code from module strerror: |
| 8641 | # Code from module strerror-override: |
| 8642 | # Code from module string: |
| 8643 | # Code from module strsignal: |
| 8644 | # Code from module strtok_r: |
| 8645 | # Code from module sys_random: |
| 8646 | # Code from module sys_stat: |
| 8647 | # Code from module sys_time: |
| 8648 | # Code from module sys_types: |
| 8649 | # Code from module sys_wait: |
| 8650 | # Code from module tempname: |
| 8651 | # Code from module threadlib: |
| 8652 | |
| 8653 | |
| 8654 | |
| 8655 | # Code from module time: |
| 8656 | # Code from module time_r: |
| 8657 | # Code from module timespec: |
| 8658 | # Code from module tls: |
| 8659 | # Code from module tzset: |
| 8660 | # Code from module unistd: |
| 8661 | # Code from module unistd-safer: |
| 8662 | # Code from module unlink: |
| 8663 | # Code from module utime: |
| 8664 | # Code from module utime-h: |
| 8665 | # Code from module utimens: |
| 8666 | # Code from module vararrays: |
| 8667 | # Code from module vasnprintf: |
| 8668 | # Code from module verify: |
| 8669 | # Code from module vla: |
| 8670 | # Code from module waitpid: |
| 8671 | # Code from module wchar: |
| 8672 | # Code from module windows-mutex: |
| 8673 | # Code from module windows-once: |
| 8674 | # Code from module windows-recmutex: |
| 8675 | # Code from module windows-rwlock: |
| 8676 | # Code from module windows-tls: |
| 8677 | # Code from module xalloc: |
| 8678 | # Code from module xalloc-die: |
| 8679 | # Code from module xalloc-oversized: |
| 8680 | # Code from module xconcat-filename: |
| 8681 | # Code from module xsize: |
| 8682 | |
| 8683 | |
| 8684 | |
| 8685 | |
| 8686 | |
| 8687 | |
| 8688 | |
| 8689 | |
| 8690 | |
| 8691 | # Check whether --enable-cross-guesses was given. |
| 8692 | if testscip-shell system . . test. ${enable_cross_guesses+y} |
| 8693 | then : |
| 8694 | enableval=$enable_cross_guesses; if testscip-shell system . . test. "x$enableval" != xconservative && testscip-shell system . . test. "x$enableval" != xrisky; then |
| 8695 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 |
| 8696 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} |
| 8697 | enableval=conservative |
| 8698 | fi |
| 8699 | gl_cross_guesses="$enableval" |
| 8700 | else $as_nop |
| 8701 | gl_cross_guesses=conservative |
| 8702 | fi |
| 8703 | |
| 8704 | if testscip-shell system . . test. $gl_cross_guesses = risky; then |
| 8705 | gl_cross_guess_normal="guessing yes" |
| 8706 | gl_cross_guess_inverted="guessing no" |
| 8707 | else |
| 8708 | gl_cross_guess_normal="guessing no" |
| 8709 | gl_cross_guess_inverted="guessing yes" |
| 8710 | fi |
| 8711 | LIBC_FATAL_STDERR_=1 |
| 8712 | export LIBC_FATAL_STDERR_ |
| 8713 | |
| 8714 | |
| 8715 | |
| 8716 | HAVE__EXIT=1; |
| 8717 | HAVE_ALIGNED_ALLOC=1; |
| 8718 | HAVE_ATOLL=1; |
| 8719 | HAVE_CANONICALIZE_FILE_NAME=1; |
| 8720 | HAVE_DECL_ECVT=1; |
| 8721 | HAVE_DECL_FCVT=1; |
| 8722 | HAVE_DECL_GCVT=1; |
| 8723 | HAVE_DECL_GETLOADAVG=1; |
| 8724 | HAVE_GETSUBOPT=1; |
| 8725 | HAVE_GRANTPT=1; |
| 8726 | HAVE_INITSTATE=1; |
| 8727 | HAVE_DECL_INITSTATE=1; |
| 8728 | HAVE_MBTOWC=1; |
| 8729 | HAVE_MKDTEMP=1; |
| 8730 | HAVE_MKOSTEMP=1; |
| 8731 | HAVE_MKOSTEMPS=1; |
| 8732 | HAVE_MKSTEMP=1; |
| 8733 | HAVE_MKSTEMPS=1; |
| 8734 | HAVE_POSIX_MEMALIGN=1; |
| 8735 | HAVE_POSIX_OPENPT=1; |
| 8736 | HAVE_PTSNAME=1; |
| 8737 | HAVE_PTSNAME_R=1; |
| 8738 | HAVE_QSORT_R=1; |
| 8739 | HAVE_RANDOM=1; |
| 8740 | HAVE_RANDOM_H=1; |
| 8741 | HAVE_RANDOM_R=1; |
| 8742 | HAVE_REALLOCARRAY=1; |
| 8743 | HAVE_REALPATH=1; |
| 8744 | HAVE_RPMATCH=1; |
| 8745 | HAVE_SECURE_GETENV=1; |
| 8746 | HAVE_SETENV=1; |
| 8747 | HAVE_DECL_SETENV=1; |
| 8748 | HAVE_SETSTATE=1; |
| 8749 | HAVE_DECL_SETSTATE=1; |
| 8750 | HAVE_STRTOD=1; |
| 8751 | HAVE_STRTOL=1; |
| 8752 | HAVE_STRTOLD=1; |
| 8753 | HAVE_STRTOLL=1; |
| 8754 | HAVE_STRTOUL=1; |
| 8755 | HAVE_STRTOULL=1; |
| 8756 | HAVE_STRUCT_RANDOM_DATA=1; |
| 8757 | HAVE_SYS_LOADAVG_H=0; |
| 8758 | HAVE_UNLOCKPT=1; |
| 8759 | HAVE_DECL_UNSETENV=1; |
| 8760 | REPLACE_ALIGNED_ALLOC=0; |
| 8761 | REPLACE_CALLOC_FOR_CALLOC_GNU=0; |
| 8762 | REPLACE_CALLOC_FOR_CALLOC_POSIX=0; |
| 8763 | REPLACE_CANONICALIZE_FILE_NAME=0; |
| 8764 | REPLACE_FREE=0; |
| 8765 | REPLACE_INITSTATE=0; |
| 8766 | REPLACE_MALLOC_FOR_MALLOC_GNU=0; |
| 8767 | REPLACE_MALLOC_FOR_MALLOC_POSIX=0; |
| 8768 | REPLACE_MBTOWC=0; |
| 8769 | REPLACE_MKSTEMP=0; |
| 8770 | REPLACE_POSIX_MEMALIGN=0; |
| 8771 | REPLACE_PTSNAME=0; |
| 8772 | REPLACE_PTSNAME_R=0; |
| 8773 | REPLACE_PUTENV=0; |
| 8774 | REPLACE_QSORT_R=0; |
| 8775 | REPLACE_RANDOM=0; |
| 8776 | REPLACE_RANDOM_R=0; |
| 8777 | REPLACE_REALLOC_FOR_REALLOC_GNU=0; |
| 8778 | REPLACE_REALLOC_FOR_REALLOC_POSIX=0; |
| 8779 | REPLACE_REALLOCARRAY=0; |
| 8780 | REPLACE_REALPATH=0; |
| 8781 | REPLACE_SETENV=0; |
| 8782 | REPLACE_SETSTATE=0; |
| 8783 | REPLACE_STRTOD=0; |
| 8784 | REPLACE_STRTOL=0; |
| 8785 | REPLACE_STRTOLD=0; |
| 8786 | REPLACE_STRTOLL=0; |
| 8787 | REPLACE_STRTOUL=0; |
| 8788 | REPLACE_STRTOULL=0; |
| 8789 | REPLACE_UNSETENV=0; |
| 8790 | REPLACE_WCTOMB=0; |
| 8791 | |
| 8792 | |
| 8793 | |
| 8794 | GL_GNULIB__EXIT=0 |
| 8795 | |
| 8796 | |
| 8797 | |
| 8798 | GL_GNULIB_ALIGNED_ALLOC=0 |
| 8799 | |
| 8800 | |
| 8801 | |
| 8802 | GL_GNULIB_ATOLL=0 |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | GL_GNULIB_CALLOC_GNU=0 |
| 8807 | |
| 8808 | |
| 8809 | |
| 8810 | GL_GNULIB_CALLOC_POSIX=0 |
| 8811 | |
| 8812 | |
| 8813 | |
| 8814 | GL_GNULIB_CANONICALIZE_FILE_NAME=0 |
| 8815 | |
| 8816 | |
| 8817 | |
| 8818 | GL_GNULIB_FREE_POSIX=0 |
| 8819 | |
| 8820 | |
| 8821 | |
| 8822 | GL_GNULIB_GETLOADAVG=0 |
| 8823 | |
| 8824 | |
| 8825 | |
| 8826 | GL_GNULIB_GETSUBOPT=0 |
| 8827 | |
| 8828 | |
| 8829 | |
| 8830 | GL_GNULIB_GRANTPT=0 |
| 8831 | |
| 8832 | |
| 8833 | |
| 8834 | GL_GNULIB_MALLOC_GNU=0 |
| 8835 | |
| 8836 | |
| 8837 | |
| 8838 | GL_GNULIB_MALLOC_POSIX=0 |
| 8839 | |
| 8840 | |
| 8841 | |
| 8842 | GL_GNULIB_MBTOWC=0 |
| 8843 | |
| 8844 | |
| 8845 | |
| 8846 | GL_GNULIB_MKDTEMP=0 |
| 8847 | |
| 8848 | |
| 8849 | |
| 8850 | GL_GNULIB_MKOSTEMP=0 |
| 8851 | |
| 8852 | |
| 8853 | |
| 8854 | GL_GNULIB_MKOSTEMPS=0 |
| 8855 | |
| 8856 | |
| 8857 | |
| 8858 | GL_GNULIB_MKSTEMP=0 |
| 8859 | |
| 8860 | |
| 8861 | |
| 8862 | GL_GNULIB_MKSTEMPS=0 |
| 8863 | |
| 8864 | |
| 8865 | |
| 8866 | GL_GNULIB_POSIX_MEMALIGN=0 |
| 8867 | |
| 8868 | |
| 8869 | |
| 8870 | GL_GNULIB_POSIX_OPENPT=0 |
| 8871 | |
| 8872 | |
| 8873 | |
| 8874 | GL_GNULIB_PTSNAME=0 |
| 8875 | |
| 8876 | |
| 8877 | |
| 8878 | GL_GNULIB_PTSNAME_R=0 |
| 8879 | |
| 8880 | |
| 8881 | |
| 8882 | GL_GNULIB_PUTENV=0 |
| 8883 | |
| 8884 | |
| 8885 | |
| 8886 | GL_GNULIB_QSORT_R=0 |
| 8887 | |
| 8888 | |
| 8889 | |
| 8890 | GL_GNULIB_RANDOM=0 |
| 8891 | |
| 8892 | |
| 8893 | |
| 8894 | GL_GNULIB_RANDOM_R=0 |
| 8895 | |
| 8896 | |
| 8897 | |
| 8898 | GL_GNULIB_REALLOCARRAY=0 |
| 8899 | |
| 8900 | |
| 8901 | |
| 8902 | GL_GNULIB_REALLOC_GNU=0 |
| 8903 | |
| 8904 | |
| 8905 | |
| 8906 | GL_GNULIB_REALLOC_POSIX=0 |
| 8907 | |
| 8908 | |
| 8909 | |
| 8910 | GL_GNULIB_REALPATH=0 |
| 8911 | |
| 8912 | |
| 8913 | |
| 8914 | GL_GNULIB_RPMATCH=0 |
| 8915 | |
| 8916 | |
| 8917 | |
| 8918 | GL_GNULIB_SECURE_GETENV=0 |
| 8919 | |
| 8920 | |
| 8921 | |
| 8922 | GL_GNULIB_SETENV=0 |
| 8923 | |
| 8924 | |
| 8925 | |
| 8926 | GL_GNULIB_STRTOD=0 |
| 8927 | |
| 8928 | |
| 8929 | |
| 8930 | GL_GNULIB_STRTOL=0 |
| 8931 | |
| 8932 | |
| 8933 | |
| 8934 | GL_GNULIB_STRTOLD=0 |
| 8935 | |
| 8936 | |
| 8937 | |
| 8938 | GL_GNULIB_STRTOLL=0 |
| 8939 | |
| 8940 | |
| 8941 | |
| 8942 | GL_GNULIB_STRTOUL=0 |
| 8943 | |
| 8944 | |
| 8945 | |
| 8946 | GL_GNULIB_STRTOULL=0 |
| 8947 | |
| 8948 | |
| 8949 | |
| 8950 | GL_GNULIB_SYSTEM_POSIX=0 |
| 8951 | |
| 8952 | |
| 8953 | |
| 8954 | GL_GNULIB_UNLOCKPT=0 |
| 8955 | |
| 8956 | |
| 8957 | |
| 8958 | GL_GNULIB_UNSETENV=0 |
| 8959 | |
| 8960 | |
| 8961 | |
| 8962 | GL_GNULIB_WCTOMB=0 |
| 8963 | |
| 8964 | |
| 8965 | |
| 8966 | GL_GNULIB_MDA_ECVT=1 |
| 8967 | |
| 8968 | |
| 8969 | |
| 8970 | GL_GNULIB_MDA_FCVT=1 |
| 8971 | |
| 8972 | |
| 8973 | |
| 8974 | GL_GNULIB_MDA_GCVT=1 |
| 8975 | |
| 8976 | |
| 8977 | |
| 8978 | GL_GNULIB_MDA_MKTEMP=1 |
| 8979 | |
| 8980 | |
| 8981 | |
| 8982 | GL_GNULIB_MDA_PUTENV=1 |
| 8983 | |
| 8984 | |
| 8985 | |
| 8986 | |
| 8987 | HAVE_CHOWN=1; |
| 8988 | HAVE_COPY_FILE_RANGE=1; |
| 8989 | HAVE_DUP3=1; |
| 8990 | HAVE_EUIDACCESS=1; |
| 8991 | HAVE_EXECVPE=1; |
| 8992 | HAVE_FACCESSAT=1; |
| 8993 | HAVE_FCHDIR=1; |
| 8994 | HAVE_FCHOWNAT=1; |
| 8995 | HAVE_FDATASYNC=1; |
| 8996 | HAVE_FSYNC=1; |
| 8997 | HAVE_FTRUNCATE=1; |
| 8998 | HAVE_GETDTABLESIZE=1; |
| 8999 | HAVE_GETENTROPY=1; |
| 9000 | HAVE_GETGROUPS=1; |
| 9001 | HAVE_GETHOSTNAME=1; |
| 9002 | HAVE_GETLOGIN=1; |
| 9003 | HAVE_GETPAGESIZE=1; |
| 9004 | HAVE_GETPASS=1; |
| 9005 | HAVE_GROUP_MEMBER=1; |
| 9006 | HAVE_LCHOWN=1; |
| 9007 | HAVE_LINK=1; |
| 9008 | HAVE_LINKAT=1; |
| 9009 | HAVE_PIPE=1; |
| 9010 | HAVE_PIPE2=1; |
| 9011 | HAVE_PREAD=1; |
| 9012 | HAVE_PWRITE=1; |
| 9013 | HAVE_READLINK=1; |
| 9014 | HAVE_READLINKAT=1; |
| 9015 | HAVE_SETHOSTNAME=1; |
| 9016 | HAVE_SLEEP=1; |
| 9017 | HAVE_SYMLINK=1; |
| 9018 | HAVE_SYMLINKAT=1; |
| 9019 | HAVE_UNLINKAT=1; |
| 9020 | HAVE_USLEEP=1; |
| 9021 | HAVE_DECL_ENVIRON=1; |
| 9022 | HAVE_DECL_EXECVPE=1; |
| 9023 | HAVE_DECL_FCHDIR=1; |
| 9024 | HAVE_DECL_FDATASYNC=1; |
| 9025 | HAVE_DECL_GETDOMAINNAME=1; |
| 9026 | HAVE_DECL_GETLOGIN=1; |
| 9027 | HAVE_DECL_GETLOGIN_R=1; |
| 9028 | HAVE_DECL_GETPAGESIZE=1; |
| 9029 | HAVE_DECL_GETUSERSHELL=1; |
| 9030 | HAVE_DECL_SETHOSTNAME=1; |
| 9031 | HAVE_DECL_TRUNCATE=1; |
| 9032 | HAVE_DECL_TTYNAME_R=1; |
| 9033 | HAVE_OS_H=0; |
| 9034 | HAVE_SYS_PARAM_H=0; |
| 9035 | REPLACE_ACCESS=0; |
| 9036 | REPLACE_CHOWN=0; |
| 9037 | REPLACE_CLOSE=0; |
| 9038 | REPLACE_COPY_FILE_RANGE=0; |
| 9039 | REPLACE_DUP=0; |
| 9040 | REPLACE_DUP2=0; |
| 9041 | REPLACE_EXECL=0; |
| 9042 | REPLACE_EXECLE=0; |
| 9043 | REPLACE_EXECLP=0; |
| 9044 | REPLACE_EXECV=0; |
| 9045 | REPLACE_EXECVE=0; |
| 9046 | REPLACE_EXECVP=0; |
| 9047 | REPLACE_EXECVPE=0; |
| 9048 | REPLACE_FACCESSAT=0; |
| 9049 | REPLACE_FCHOWNAT=0; |
| 9050 | REPLACE_FTRUNCATE=0; |
| 9051 | REPLACE_GETCWD=0; |
| 9052 | REPLACE_GETDOMAINNAME=0; |
| 9053 | REPLACE_GETDTABLESIZE=0; |
| 9054 | REPLACE_GETLOGIN_R=0; |
| 9055 | REPLACE_GETGROUPS=0; |
| 9056 | REPLACE_GETPAGESIZE=0; |
| 9057 | REPLACE_GETPASS=0; |
| 9058 | REPLACE_GETPASS_FOR_GETPASS_GNU=0; |
| 9059 | REPLACE_ISATTY=0; |
| 9060 | REPLACE_LCHOWN=0; |
| 9061 | REPLACE_LINK=0; |
| 9062 | REPLACE_LINKAT=0; |
| 9063 | REPLACE_LSEEK=0; |
| 9064 | REPLACE_PREAD=0; |
| 9065 | REPLACE_PWRITE=0; |
| 9066 | REPLACE_READ=0; |
| 9067 | REPLACE_READLINK=0; |
| 9068 | REPLACE_READLINKAT=0; |
| 9069 | REPLACE_RMDIR=0; |
| 9070 | REPLACE_SLEEP=0; |
| 9071 | REPLACE_SYMLINK=0; |
| 9072 | REPLACE_SYMLINKAT=0; |
| 9073 | REPLACE_TRUNCATE=0; |
| 9074 | REPLACE_TTYNAME_R=0; |
| 9075 | REPLACE_UNLINK=0; |
| 9076 | REPLACE_UNLINKAT=0; |
| 9077 | REPLACE_USLEEP=0; |
| 9078 | REPLACE_WRITE=0; |
| 9079 | UNISTD_H_HAVE_SYS_RANDOM_H=0; |
| 9080 | UNISTD_H_HAVE_WINSOCK2_H=0; |
| 9081 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
| 9082 | |
| 9083 | |
| 9084 | |
| 9085 | |
| 9086 | GL_GNULIB_ACCESS=0 |
| 9087 | |
| 9088 | |
| 9089 | |
| 9090 | GL_GNULIB_CHDIR=0 |
| 9091 | |
| 9092 | |
| 9093 | |
| 9094 | GL_GNULIB_CHOWN=0 |
| 9095 | |
| 9096 | |
| 9097 | |
| 9098 | GL_GNULIB_CLOSE=0 |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | GL_GNULIB_COPY_FILE_RANGE=0 |
| 9103 | |
| 9104 | |
| 9105 | |
| 9106 | GL_GNULIB_DUP=0 |
| 9107 | |
| 9108 | |
| 9109 | |
| 9110 | GL_GNULIB_DUP2=0 |
| 9111 | |
| 9112 | |
| 9113 | |
| 9114 | GL_GNULIB_DUP3=0 |
| 9115 | |
| 9116 | |
| 9117 | |
| 9118 | GL_GNULIB_ENVIRON=0 |
| 9119 | |
| 9120 | |
| 9121 | |
| 9122 | GL_GNULIB_EUIDACCESS=0 |
| 9123 | |
| 9124 | |
| 9125 | |
| 9126 | GL_GNULIB_EXECL=0 |
| 9127 | |
| 9128 | |
| 9129 | |
| 9130 | GL_GNULIB_EXECLE=0 |
| 9131 | |
| 9132 | |
| 9133 | |
| 9134 | GL_GNULIB_EXECLP=0 |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | GL_GNULIB_EXECV=0 |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | GL_GNULIB_EXECVE=0 |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | GL_GNULIB_EXECVP=0 |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | GL_GNULIB_EXECVPE=0 |
| 9151 | |
| 9152 | |
| 9153 | |
| 9154 | GL_GNULIB_FACCESSAT=0 |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | GL_GNULIB_FCHDIR=0 |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | GL_GNULIB_FCHOWNAT=0 |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | GL_GNULIB_FDATASYNC=0 |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | GL_GNULIB_FSYNC=0 |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | GL_GNULIB_FTRUNCATE=0 |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | GL_GNULIB_GETCWD=0 |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | GL_GNULIB_GETDOMAINNAME=0 |
| 9183 | |
| 9184 | |
| 9185 | |
| 9186 | GL_GNULIB_GETDTABLESIZE=0 |
| 9187 | |
| 9188 | |
| 9189 | |
| 9190 | GL_GNULIB_GETENTROPY=0 |
| 9191 | |
| 9192 | |
| 9193 | |
| 9194 | GL_GNULIB_GETGROUPS=0 |
| 9195 | |
| 9196 | |
| 9197 | |
| 9198 | GL_GNULIB_GETHOSTNAME=0 |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | GL_GNULIB_GETLOGIN=0 |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | GL_GNULIB_GETLOGIN_R=0 |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | GL_GNULIB_GETOPT_POSIX=0 |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | GL_GNULIB_GETPAGESIZE=0 |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | GL_GNULIB_GETPASS=0 |
| 9219 | |
| 9220 | |
| 9221 | |
| 9222 | GL_GNULIB_GETPASS_GNU=0 |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | GL_GNULIB_GETUSERSHELL=0 |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | GL_GNULIB_GROUP_MEMBER=0 |
| 9231 | |
| 9232 | |
| 9233 | |
| 9234 | GL_GNULIB_ISATTY=0 |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | GL_GNULIB_LCHOWN=0 |
| 9239 | |
| 9240 | |
| 9241 | |
| 9242 | GL_GNULIB_LINK=0 |
| 9243 | |
| 9244 | |
| 9245 | |
| 9246 | GL_GNULIB_LINKAT=0 |
| 9247 | |
| 9248 | |
| 9249 | |
| 9250 | GL_GNULIB_LSEEK=0 |
| 9251 | |
| 9252 | |
| 9253 | |
| 9254 | GL_GNULIB_PIPE=0 |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | GL_GNULIB_PIPE2=0 |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | GL_GNULIB_PREAD=0 |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | GL_GNULIB_PWRITE=0 |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | GL_GNULIB_READ=0 |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | GL_GNULIB_READLINK=0 |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | GL_GNULIB_READLINKAT=0 |
| 9279 | |
| 9280 | |
| 9281 | |
| 9282 | GL_GNULIB_RMDIR=0 |
| 9283 | |
| 9284 | |
| 9285 | |
| 9286 | GL_GNULIB_SETHOSTNAME=0 |
| 9287 | |
| 9288 | |
| 9289 | |
| 9290 | GL_GNULIB_SLEEP=0 |
| 9291 | |
| 9292 | |
| 9293 | |
| 9294 | GL_GNULIB_SYMLINK=0 |
| 9295 | |
| 9296 | |
| 9297 | |
| 9298 | GL_GNULIB_SYMLINKAT=0 |
| 9299 | |
| 9300 | |
| 9301 | |
| 9302 | GL_GNULIB_TRUNCATE=0 |
| 9303 | |
| 9304 | |
| 9305 | |
| 9306 | GL_GNULIB_TTYNAME_R=0 |
| 9307 | |
| 9308 | |
| 9309 | |
| 9310 | GL_GNULIB_UNISTD_H_GETOPT=0 |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | GL_GNULIB_UNISTD_H_NONBLOCKING=0 |
| 9315 | |
| 9316 | |
| 9317 | |
| 9318 | GL_GNULIB_UNISTD_H_SIGPIPE=0 |
| 9319 | |
| 9320 | |
| 9321 | |
| 9322 | GL_GNULIB_UNLINK=0 |
| 9323 | |
| 9324 | |
| 9325 | |
| 9326 | GL_GNULIB_UNLINKAT=0 |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | GL_GNULIB_USLEEP=0 |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | GL_GNULIB_WRITE=0 |
| 9335 | |
| 9336 | |
| 9337 | |
| 9338 | GL_GNULIB_MDA_ACCESS=1 |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | GL_GNULIB_MDA_CHDIR=1 |
| 9343 | |
| 9344 | |
| 9345 | |
| 9346 | GL_GNULIB_MDA_CLOSE=1 |
| 9347 | |
| 9348 | |
| 9349 | |
| 9350 | GL_GNULIB_MDA_DUP=1 |
| 9351 | |
| 9352 | |
| 9353 | |
| 9354 | GL_GNULIB_MDA_DUP2=1 |
| 9355 | |
| 9356 | |
| 9357 | |
| 9358 | GL_GNULIB_MDA_EXECL=1 |
| 9359 | |
| 9360 | |
| 9361 | |
| 9362 | GL_GNULIB_MDA_EXECLE=1 |
| 9363 | |
| 9364 | |
| 9365 | |
| 9366 | GL_GNULIB_MDA_EXECLP=1 |
| 9367 | |
| 9368 | |
| 9369 | |
| 9370 | GL_GNULIB_MDA_EXECV=1 |
| 9371 | |
| 9372 | |
| 9373 | |
| 9374 | GL_GNULIB_MDA_EXECVE=1 |
| 9375 | |
| 9376 | |
| 9377 | |
| 9378 | GL_GNULIB_MDA_EXECVP=1 |
| 9379 | |
| 9380 | |
| 9381 | |
| 9382 | GL_GNULIB_MDA_EXECVPE=1 |
| 9383 | |
| 9384 | |
| 9385 | |
| 9386 | GL_GNULIB_MDA_GETCWD=1 |
| 9387 | |
| 9388 | |
| 9389 | |
| 9390 | GL_GNULIB_MDA_GETPID=1 |
| 9391 | |
| 9392 | |
| 9393 | |
| 9394 | GL_GNULIB_MDA_ISATTY=1 |
| 9395 | |
| 9396 | |
| 9397 | |
| 9398 | GL_GNULIB_MDA_LSEEK=1 |
| 9399 | |
| 9400 | |
| 9401 | |
| 9402 | GL_GNULIB_MDA_READ=1 |
| 9403 | |
| 9404 | |
| 9405 | |
| 9406 | GL_GNULIB_MDA_RMDIR=1 |
| 9407 | |
| 9408 | |
| 9409 | |
| 9410 | GL_GNULIB_MDA_SWAB=1 |
| 9411 | |
| 9412 | |
| 9413 | |
| 9414 | GL_GNULIB_MDA_UNLINK=1 |
| 9415 | |
| 9416 | |
| 9417 | |
| 9418 | GL_GNULIB_MDA_WRITE=1 |
| 9419 | |
| 9420 | |
| 9421 | |
| 9422 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 9423 | if testscip-shell system . . test. "x$ac_cv_type_size_t" = xyes |
| 9424 | then : |
| 9425 | |
| 9426 | else $as_nop |
| 9427 | |
| 9428 | printfscip-shell system . . printf. "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 9429 | |
| 9430 | fi |
| 9431 | |
| 9432 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 9433 | # for constant arguments. Useless! |
| 9434 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 9435 | printfscip-shell system . . printf. %s "checking for working alloca.h... " >&6; } |
| 9436 | if testscip-shell system . . test. ${ac_cv_working_alloca_h+y} |
| 9437 | then : |
| 9438 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9439 | else $as_nop |
| 9440 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9441 | /* end confdefs.h. */ |
| 9442 | #include <alloca.h> |
| 9443 | int |
| 9444 | main (void) |
| 9445 | { |
| 9446 | char *p = (char *) alloca (2 * sizeof (int)); |
| 9447 | if (p) return 0; |
| 9448 | ; |
| 9449 | return 0; |
| 9450 | } |
| 9451 | _ACEOF |
| 9452 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 9453 | then : |
| 9454 | ac_cv_working_alloca_h=yes |
| 9455 | else $as_nop |
| 9456 | ac_cv_working_alloca_h=no |
| 9457 | fi |
| 9458 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9459 | conftest$ac_exeext conftest.$ac_ext |
| 9460 | fi |
| 9461 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 9462 | printfscip-shell system . . printf. "%s\n" "$ac_cv_working_alloca_h" >&6; } |
| 9463 | if testscip-shell system . . test. $ac_cv_working_alloca_h = yes; then |
| 9464 | |
| 9465 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 9466 | |
| 9467 | fi |
| 9468 | |
| 9469 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 9470 | printfscip-shell system . . printf. %s "checking for alloca... " >&6; } |
| 9471 | if testscip-shell system . . test. ${ac_cv_func_alloca_works+y} |
| 9472 | then : |
| 9473 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9474 | else $as_nop |
| 9475 | if testscip-shell system . . test. $ac_cv_working_alloca_h = yes; then |
| 9476 | ac_cv_func_alloca_works=yes |
| 9477 | else |
| 9478 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9479 | /* end confdefs.h. */ |
| 9480 | #include <stdlib.h> |
| 9481 | #include <stddef.h> |
| 9482 | #ifndef alloca |
| 9483 | # ifdef __GNUC__ |
| 9484 | # define alloca __builtin_alloca |
| 9485 | # elif defined _MSC_VER |
| 9486 | # include <malloc.h> |
| 9487 | # define alloca _alloca |
| 9488 | # else |
| 9489 | # ifdef __cplusplus |
| 9490 | extern "C" |
| 9491 | # endif |
| 9492 | void *alloca (size_t); |
| 9493 | # endif |
| 9494 | #endif |
| 9495 | |
| 9496 | int |
| 9497 | main (void) |
| 9498 | { |
| 9499 | char *p = (char *) alloca (1); |
| 9500 | if (p) return 0; |
| 9501 | ; |
| 9502 | return 0; |
| 9503 | } |
| 9504 | _ACEOF |
| 9505 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 9506 | then : |
| 9507 | ac_cv_func_alloca_works=yes |
| 9508 | else $as_nop |
| 9509 | ac_cv_func_alloca_works=no |
| 9510 | fi |
| 9511 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9512 | conftest$ac_exeext conftest.$ac_ext |
| 9513 | fi |
| 9514 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 9515 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_alloca_works" >&6; } |
| 9516 | fi |
| 9517 | |
| 9518 | if testscip-shell system . . test. $ac_cv_func_alloca_works = yes; then |
| 9519 | |
| 9520 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
| 9521 | |
| 9522 | else |
| 9523 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 9524 | # that cause trouble. Some versions do not even contain alloca or |
| 9525 | # contain a buggy version. If you still want to use their alloca, |
| 9526 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 9527 | |
| 9528 | |
| 9529 | |
| 9530 | |
| 9531 | |
| 9532 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 9533 | |
| 9534 | printfscip-shell system . . printf. "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
| 9535 | |
| 9536 | |
| 9537 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 9538 | printfscip-shell system . . printf. %s "checking stack direction for C alloca... " >&6; } |
| 9539 | if testscip-shell system . . test. ${ac_cv_c_stack_direction+y} |
| 9540 | then : |
| 9541 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9542 | else $as_nop |
| 9543 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 9544 | then : |
| 9545 | ac_cv_c_stack_direction=0 |
| 9546 | else $as_nop |
| 9547 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9548 | /* end confdefs.h. */ |
| 9549 | $ac_includes_default |
| 9550 | int |
| 9551 | find_stack_direction (int *addr, int depth) |
| 9552 | { |
| 9553 | int dir, dummy = 0; |
| 9554 | if (! addr) |
| 9555 | addr = &dummy; |
| 9556 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 9557 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 9558 | return dir + dummy; |
| 9559 | } |
| 9560 | |
| 9561 | int |
| 9562 | main (int argc, char **argv) |
| 9563 | { |
| 9564 | return find_stack_direction (0, argc + !argv + 20) < 0; |
| 9565 | } |
| 9566 | _ACEOF |
| 9567 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 9568 | then : |
| 9569 | ac_cv_c_stack_direction=1 |
| 9570 | else $as_nop |
| 9571 | ac_cv_c_stack_direction=-1 |
| 9572 | fi |
| 9573 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9574 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9575 | fi |
| 9576 | |
| 9577 | fi |
| 9578 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 9579 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_stack_direction" >&6; } |
| 9580 | printfscip-shell system . . printf. "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h |
| 9581 | |
| 9582 | |
| 9583 | fi |
| 9584 | |
| 9585 | |
| 9586 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5 |
| 9587 | printfscip-shell system . . printf. %s "checking whether malloc is ptrdiff_t safe... " >&6; } |
| 9588 | if testscip-shell system . . test. ${gl_cv_malloc_ptrdiff+y} |
| 9589 | then : |
| 9590 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9591 | else $as_nop |
| 9592 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9593 | /* end confdefs.h. */ |
| 9594 | #include <stdint.h> |
| 9595 | |
| 9596 | int |
| 9597 | main (void) |
| 9598 | { |
| 9599 | /* 64-bit ptrdiff_t is so wide that no practical platform |
| 9600 | can exceed it. */ |
| 9601 | #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0) |
| 9602 | |
| 9603 | /* On rare machines where size_t fits in ptrdiff_t there |
| 9604 | is no problem. */ |
| 9605 | #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX) |
| 9606 | |
| 9607 | /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t |
| 9608 | bounds even on 32-bit platforms. We don't know which |
| 9609 | non-glibc systems are safe. */ |
| 9610 | #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__)) |
| 9611 | |
| 9612 | #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE |
| 9613 | return 0; |
| 9614 | #else |
| 9615 | #error "malloc might not be ptrdiff_t safe" |
| 9616 | syntax error |
| 9617 | #endif |
| 9618 | |
| 9619 | ; |
| 9620 | return 0; |
| 9621 | } |
| 9622 | _ACEOF |
| 9623 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 9624 | then : |
| 9625 | gl_cv_malloc_ptrdiff=yes |
| 9626 | else $as_nop |
| 9627 | gl_cv_malloc_ptrdiff=no |
| 9628 | fi |
| 9629 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9630 | |
| 9631 | fi |
| 9632 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5 |
| 9633 | printfscip-shell system . . printf. "%s\n" "$gl_cv_malloc_ptrdiff" >&6; } |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | testscip-shell system . . test. "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1 |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5 |
| 9643 | printfscip-shell system . . printf. %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; } |
| 9644 | if testscip-shell system . . test. ${gl_cv_func_malloc_posix+y} |
| 9645 | then : |
| 9646 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9647 | else $as_nop |
| 9648 | |
| 9649 | case "$host_os" in |
| 9650 | mingw*) |
| 9651 | gl_cv_func_malloc_posix=no ;; |
| 9652 | irix* | solaris*) |
| 9653 | |
| 9654 | gl_cv_func_malloc_posix=no ;; |
| 9655 | *) |
| 9656 | gl_cv_func_malloc_posix=yes ;; |
| 9657 | esac |
| 9658 | |
| 9659 | fi |
| 9660 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 |
| 9661 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_malloc_posix" >&6; } |
| 9662 | |
| 9663 | |
| 9664 | |
| 9665 | |
| 9666 | |
| 9667 | if testscip-shell system . . test. "$gl_cv_func_malloc_posix" = yes; then |
| 9668 | |
| 9669 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h |
| 9670 | |
| 9671 | else |
| 9672 | REPLACE_MALLOC_FOR_MALLOC_POSIX=1 |
| 9673 | fi |
| 9674 | |
| 9675 | |
| 9676 | |
| 9677 | |
| 9678 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 9679 | REPLACE_CALLOC_FOR_CALLOC_POSIX=1 |
| 9680 | fi |
| 9681 | |
| 9682 | ac_func= |
| 9683 | for ac_item in $ac_func_c_list |
| 9684 | do |
| 9685 | if testscip-shell system . . test. $ac_func; then |
| 9686 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" $ac_func ac_cv_func_$ac_func |
| 9687 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then |
| 9688 | echoscip-shell system . . echo. "#define $ac_item 1" >> confdefs.h |
| 9689 | fi |
| 9690 | ac_func= |
| 9691 | else |
| 9692 | ac_func=$ac_item |
| 9693 | fi |
| 9694 | done |
| 9695 | |
| 9696 | |
| 9697 | if testscip-shell system . . test. $ac_cv_func__set_invalid_parameter_handler = yes; then |
| 9698 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 |
| 9699 | |
| 9700 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h |
| 9701 | |
| 9702 | else |
| 9703 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 |
| 9704 | fi |
| 9705 | |
| 9706 | |
| 9707 | |
| 9708 | |
| 9709 | |
| 9710 | HAVE_OPENDIR=1; |
| 9711 | HAVE_READDIR=1; |
| 9712 | HAVE_REWINDDIR=1; |
| 9713 | HAVE_CLOSEDIR=1; |
| 9714 | HAVE_DECL_DIRFD=1; |
| 9715 | HAVE_DECL_FDOPENDIR=1; |
| 9716 | HAVE_FDOPENDIR=1; |
| 9717 | HAVE_SCANDIR=1; |
| 9718 | HAVE_ALPHASORT=1; |
| 9719 | REPLACE_OPENDIR=0; |
| 9720 | REPLACE_CLOSEDIR=0; |
| 9721 | REPLACE_DIRFD=0; |
| 9722 | REPLACE_FDOPENDIR=0; |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | |
| 9727 | |
| 9728 | |
| 9729 | |
| 9730 | GL_GNULIB_OPENDIR=0 |
| 9731 | |
| 9732 | |
| 9733 | |
| 9734 | GL_GNULIB_READDIR=0 |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | GL_GNULIB_REWINDDIR=0 |
| 9739 | |
| 9740 | |
| 9741 | |
| 9742 | GL_GNULIB_CLOSEDIR=0 |
| 9743 | |
| 9744 | |
| 9745 | |
| 9746 | GL_GNULIB_DIRFD=0 |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | GL_GNULIB_FDOPENDIR=0 |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | GL_GNULIB_SCANDIR=0 |
| 9755 | |
| 9756 | |
| 9757 | |
| 9758 | GL_GNULIB_ALPHASORT=0 |
| 9759 | |
| 9760 | |
| 9761 | |
| 9762 | |
| 9763 | |
| 9764 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 9765 | printfscip-shell system . . printf. %s "checking whether the preprocessor supports include_next... " >&6; } |
| 9766 | if testscip-shell system . . test. ${gl_cv_have_include_next+y} |
| 9767 | then : |
| 9768 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9769 | else $as_nop |
| 9770 | rmscip-shell system . . rm. -rf conftestd1a conftestd1b conftestd2 |
| 9771 | mkdirscip-shell system . . mkdir. conftestd1a conftestd1b conftestd2 |
| 9772 | catscip-shell system . . cat. <<EOF > conftestd1a/conftest.h |
| 9773 | #define DEFINED_IN_CONFTESTD1 |
| 9774 | #include_next <conftest.h> |
| 9775 | #ifdef DEFINED_IN_CONFTESTD2 |
| 9776 | int foo; |
| 9777 | #else |
| 9778 | #error "include_next doesn't work" |
| 9779 | #endif |
| 9780 | EOF |
| 9781 | catscip-shell system . . cat. <<EOF > conftestd1b/conftest.h |
| 9782 | #define DEFINED_IN_CONFTESTD1 |
| 9783 | #include <stdio.h> |
| 9784 | #include_next <conftest.h> |
| 9785 | #ifdef DEFINED_IN_CONFTESTD2 |
| 9786 | int foo; |
| 9787 | #else |
| 9788 | #error "include_next doesn't work" |
| 9789 | #endif |
| 9790 | EOF |
| 9791 | catscip-shell system . . cat. <<EOF > conftestd2/conftest.h |
| 9792 | #ifndef DEFINED_IN_CONFTESTD1 |
| 9793 | #error "include_next test doesn't work" |
| 9794 | #endif |
| 9795 | #define DEFINED_IN_CONFTESTD2 |
| 9796 | EOF |
| 9797 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 9798 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" |
| 9799 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9800 | /* end confdefs.h. */ |
| 9801 | #include <conftest.h> |
| 9802 | _ACEOF |
| 9803 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 9804 | then : |
| 9805 | gl_cv_have_include_next=yes |
| 9806 | else $as_nop |
| 9807 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
| 9808 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9809 | /* end confdefs.h. */ |
| 9810 | #include <conftest.h> |
| 9811 | _ACEOF |
| 9812 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 9813 | then : |
| 9814 | gl_cv_have_include_next=buggy |
| 9815 | else $as_nop |
| 9816 | gl_cv_have_include_next=no |
| 9817 | fi |
| 9818 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9819 | |
| 9820 | fi |
| 9821 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9822 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 9823 | rmscip-shell system . . rm. -rf conftestd1a conftestd1b conftestd2 |
| 9824 | |
| 9825 | fi |
| 9826 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 |
| 9827 | printfscip-shell system . . printf. "%s\n" "$gl_cv_have_include_next" >&6; } |
| 9828 | PRAGMA_SYSTEM_HEADER= |
| 9829 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 9830 | INCLUDE_NEXT=include_next |
| 9831 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 9832 | if testscip-shell system . . test. -n "$GCC"; then |
| 9833 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' |
| 9834 | fi |
| 9835 | else |
| 9836 | if testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 9837 | INCLUDE_NEXT=include |
| 9838 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 9839 | else |
| 9840 | INCLUDE_NEXT=include |
| 9841 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
| 9842 | fi |
| 9843 | fi |
| 9844 | |
| 9845 | |
| 9846 | |
| 9847 | |
| 9848 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 |
| 9849 | printfscip-shell system . . printf. %s "checking whether source code line length is unlimited... " >&6; } |
| 9850 | if testscip-shell system . . test. ${gl_cv_source_line_length_unlimited+y} |
| 9851 | then : |
| 9852 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9853 | else $as_nop |
| 9854 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9855 | /* end confdefs.h. */ |
| 9856 | |
| 9857 | #ifdef __TANDEM |
| 9858 | choke me |
| 9859 | #endif |
| 9860 | |
| 9861 | _ACEOF |
| 9862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9863 | $EGREP "choke me" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 9864 | then : |
| 9865 | gl_cv_source_line_length_unlimited=no |
| 9866 | else $as_nop |
| 9867 | gl_cv_source_line_length_unlimited=yes |
| 9868 | fi |
| 9869 | rmscip-shell system . . rm. -rf conftest* |
| 9870 | |
| 9871 | |
| 9872 | fi |
| 9873 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 |
| 9874 | printfscip-shell system . . printf. "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } |
| 9875 | if testscip-shell system . . test. $gl_cv_source_line_length_unlimited = no; then |
| 9876 | PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
| 9877 | else |
| 9878 | PRAGMA_COLUMNS= |
| 9879 | fi |
| 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 9896 | gl_cv_next_dirent_h='<'dirent.h'>' |
| 9897 | else |
| 9898 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5 |
| 9899 | printfscip-shell system . . printf. %s "checking absolute name of <dirent.h>... " >&6; } |
| 9900 | if testscip-shell system . . test. ${gl_cv_next_dirent_h+y} |
| 9901 | then : |
| 9902 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9903 | else $as_nop |
| 9904 | |
| 9905 | if testscip-shell system . . test. $ac_cv_header_dirent_h = yes; then |
| 9906 | |
| 9907 | |
| 9908 | |
| 9909 | |
| 9910 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9911 | /* end confdefs.h. */ |
| 9912 | #include <dirent.h> |
| 9913 | _ACEOF |
| 9914 | case "$host_os" in |
| 9915 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 9916 | *) gl_absname_cpp="$ac_cpp" ;; |
| 9917 | esac |
| 9918 | |
| 9919 | case "$host_os" in |
| 9920 | mingw*) |
| 9921 | gl_dirsep_regex='[/\\]' |
| 9922 | ;; |
| 9923 | *) |
| 9924 | gl_dirsep_regex='\/' |
| 9925 | ;; |
| 9926 | esac |
| 9927 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 9928 | gl_header_literal_regex=`echoscip-shell system . . echo. 'dirent.h' \ |
| 9929 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 9930 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 9931 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 9932 | s|^/[^/]|//&| |
| 9933 | p |
| 9934 | q |
| 9935 | }' |
| 9936 | |
| 9937 | gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 9938 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 9939 | |
| 9940 | gl_header=$gl_cv_absolute_dirent_h |
| 9941 | gl_cv_next_dirent_h='"'$gl_header'"' |
| 9942 | else |
| 9943 | gl_cv_next_dirent_h='<'dirent.h'>' |
| 9944 | fi |
| 9945 | |
| 9946 | |
| 9947 | fi |
| 9948 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5 |
| 9949 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_dirent_h" >&6; } |
| 9950 | fi |
| 9951 | NEXT_DIRENT_H=$gl_cv_next_dirent_h |
| 9952 | |
| 9953 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 9954 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 9955 | gl_next_as_first_directive='<'dirent.h'>' |
| 9956 | else |
| 9957 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 9958 | gl_next_as_first_directive=$gl_cv_next_dirent_h |
| 9959 | fi |
| 9960 | NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive |
| 9961 | |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | if testscip-shell system . . test. $ac_cv_header_dirent_h = yes; then |
| 9966 | HAVE_DIRENT_H=1 |
| 9967 | else |
| 9968 | HAVE_DIRENT_H=0 |
| 9969 | fi |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 |
| 9979 | printfscip-shell system . . printf. %s "checking for complete errno.h... " >&6; } |
| 9980 | if testscip-shell system . . test. ${gl_cv_header_errno_h_complete+y} |
| 9981 | then : |
| 9982 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 9983 | else $as_nop |
| 9984 | |
| 9985 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9986 | /* end confdefs.h. */ |
| 9987 | |
| 9988 | #include <errno.h> |
| 9989 | #if !defined ETXTBSY |
| 9990 | booboo |
| 9991 | #endif |
| 9992 | #if !defined ENOMSG |
| 9993 | booboo |
| 9994 | #endif |
| 9995 | #if !defined EIDRM |
| 9996 | booboo |
| 9997 | #endif |
| 9998 | #if !defined ENOLINK |
| 9999 | booboo |
| 10000 | #endif |
| 10001 | #if !defined EPROTO |
| 10002 | booboo |
| 10003 | #endif |
| 10004 | #if !defined EMULTIHOP |
| 10005 | booboo |
| 10006 | #endif |
| 10007 | #if !defined EBADMSG |
| 10008 | booboo |
| 10009 | #endif |
| 10010 | #if !defined EOVERFLOW |
| 10011 | booboo |
| 10012 | #endif |
| 10013 | #if !defined ENOTSUP |
| 10014 | booboo |
| 10015 | #endif |
| 10016 | #if !defined ENETRESET |
| 10017 | booboo |
| 10018 | #endif |
| 10019 | #if !defined ECONNABORTED |
| 10020 | booboo |
| 10021 | #endif |
| 10022 | #if !defined ESTALE |
| 10023 | booboo |
| 10024 | #endif |
| 10025 | #if !defined EDQUOT |
| 10026 | booboo |
| 10027 | #endif |
| 10028 | #if !defined ECANCELED |
| 10029 | booboo |
| 10030 | #endif |
| 10031 | #if !defined EOWNERDEAD |
| 10032 | booboo |
| 10033 | #endif |
| 10034 | #if !defined ENOTRECOVERABLE |
| 10035 | booboo |
| 10036 | #endif |
| 10037 | #if !defined EILSEQ |
| 10038 | booboo |
| 10039 | #endif |
| 10040 | |
| 10041 | _ACEOF |
| 10042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10043 | $EGREP "booboo" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10044 | then : |
| 10045 | gl_cv_header_errno_h_complete=no |
| 10046 | else $as_nop |
| 10047 | gl_cv_header_errno_h_complete=yes |
| 10048 | fi |
| 10049 | rmscip-shell system . . rm. -rf conftest* |
| 10050 | |
| 10051 | |
| 10052 | fi |
| 10053 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 |
| 10054 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_errno_h_complete" >&6; } |
| 10055 | if testscip-shell system . . test. $gl_cv_header_errno_h_complete = yes; then |
| 10056 | GL_GENERATE_ERRNO_H=false |
| 10057 | else |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 10067 | gl_cv_next_errno_h='<'errno.h'>' |
| 10068 | else |
| 10069 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 |
| 10070 | printfscip-shell system . . printf. %s "checking absolute name of <errno.h>... " >&6; } |
| 10071 | if testscip-shell system . . test. ${gl_cv_next_errno_h+y} |
| 10072 | then : |
| 10073 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10074 | else $as_nop |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10079 | /* end confdefs.h. */ |
| 10080 | #include <errno.h> |
| 10081 | _ACEOF |
| 10082 | case "$host_os" in |
| 10083 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10084 | *) gl_absname_cpp="$ac_cpp" ;; |
| 10085 | esac |
| 10086 | |
| 10087 | case "$host_os" in |
| 10088 | mingw*) |
| 10089 | gl_dirsep_regex='[/\\]' |
| 10090 | ;; |
| 10091 | *) |
| 10092 | gl_dirsep_regex='\/' |
| 10093 | ;; |
| 10094 | esac |
| 10095 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 10096 | gl_header_literal_regex=`echoscip-shell system . . echo. 'errno.h' \ |
| 10097 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 10098 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 10099 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 10100 | s|^/[^/]|//&| |
| 10101 | p |
| 10102 | q |
| 10103 | }' |
| 10104 | |
| 10105 | gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10106 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 10107 | |
| 10108 | gl_header=$gl_cv_absolute_errno_h |
| 10109 | gl_cv_next_errno_h='"'$gl_header'"' |
| 10110 | |
| 10111 | |
| 10112 | fi |
| 10113 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 |
| 10114 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_errno_h" >&6; } |
| 10115 | fi |
| 10116 | NEXT_ERRNO_H=$gl_cv_next_errno_h |
| 10117 | |
| 10118 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 10119 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10120 | gl_next_as_first_directive='<'errno.h'>' |
| 10121 | else |
| 10122 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10123 | gl_next_as_first_directive=$gl_cv_next_errno_h |
| 10124 | fi |
| 10125 | NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive |
| 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | GL_GENERATE_ERRNO_H=true |
| 10131 | fi |
| 10132 | |
| 10133 | if $GL_GENERATE_ERRNO_H; then |
| 10134 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 |
| 10135 | printfscip-shell system . . printf. %s "checking for EMULTIHOP value... " >&6; } |
| 10136 | if testscip-shell system . . test. ${gl_cv_header_errno_h_EMULTIHOP+y} |
| 10137 | then : |
| 10138 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10139 | else $as_nop |
| 10140 | |
| 10141 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10142 | /* end confdefs.h. */ |
| 10143 | |
| 10144 | #include <errno.h> |
| 10145 | #ifdef EMULTIHOP |
| 10146 | yes |
| 10147 | #endif |
| 10148 | |
| 10149 | _ACEOF |
| 10150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10151 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10152 | then : |
| 10153 | gl_cv_header_errno_h_EMULTIHOP=yes |
| 10154 | else $as_nop |
| 10155 | gl_cv_header_errno_h_EMULTIHOP=no |
| 10156 | fi |
| 10157 | rmscip-shell system . . rm. -rf conftest* |
| 10158 | |
| 10159 | if testscip-shell system . . test. $gl_cv_header_errno_h_EMULTIHOP = no; then |
| 10160 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10161 | /* end confdefs.h. */ |
| 10162 | |
| 10163 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10164 | #include <errno.h> |
| 10165 | #ifdef EMULTIHOP |
| 10166 | yes |
| 10167 | #endif |
| 10168 | |
| 10169 | _ACEOF |
| 10170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10171 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10172 | then : |
| 10173 | gl_cv_header_errno_h_EMULTIHOP=hidden |
| 10174 | fi |
| 10175 | rmscip-shell system . . rm. -rf conftest* |
| 10176 | |
| 10177 | if testscip-shell system . . test. $gl_cv_header_errno_h_EMULTIHOP = hidden; then |
| 10178 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " |
| 10179 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10180 | #include <errno.h> |
| 10181 | /* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 10182 | #include <stdio.h> |
| 10183 | #include <stdlib.h> |
| 10184 | " |
| 10185 | then : |
| 10186 | |
| 10187 | fi |
| 10188 | |
| 10189 | fi |
| 10190 | fi |
| 10191 | |
| 10192 | fi |
| 10193 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 |
| 10194 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } |
| 10195 | case $gl_cv_header_errno_h_EMULTIHOP in |
| 10196 | yes | no) |
| 10197 | EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= |
| 10198 | ;; |
| 10199 | *) |
| 10200 | EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" |
| 10201 | ;; |
| 10202 | esac |
| 10203 | |
| 10204 | |
| 10205 | fi |
| 10206 | |
| 10207 | |
| 10208 | if $GL_GENERATE_ERRNO_H; then |
| 10209 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 |
| 10210 | printfscip-shell system . . printf. %s "checking for ENOLINK value... " >&6; } |
| 10211 | if testscip-shell system . . test. ${gl_cv_header_errno_h_ENOLINK+y} |
| 10212 | then : |
| 10213 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10214 | else $as_nop |
| 10215 | |
| 10216 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10217 | /* end confdefs.h. */ |
| 10218 | |
| 10219 | #include <errno.h> |
| 10220 | #ifdef ENOLINK |
| 10221 | yes |
| 10222 | #endif |
| 10223 | |
| 10224 | _ACEOF |
| 10225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10226 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10227 | then : |
| 10228 | gl_cv_header_errno_h_ENOLINK=yes |
| 10229 | else $as_nop |
| 10230 | gl_cv_header_errno_h_ENOLINK=no |
| 10231 | fi |
| 10232 | rmscip-shell system . . rm. -rf conftest* |
| 10233 | |
| 10234 | if testscip-shell system . . test. $gl_cv_header_errno_h_ENOLINK = no; then |
| 10235 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10236 | /* end confdefs.h. */ |
| 10237 | |
| 10238 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10239 | #include <errno.h> |
| 10240 | #ifdef ENOLINK |
| 10241 | yes |
| 10242 | #endif |
| 10243 | |
| 10244 | _ACEOF |
| 10245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10246 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10247 | then : |
| 10248 | gl_cv_header_errno_h_ENOLINK=hidden |
| 10249 | fi |
| 10250 | rmscip-shell system . . rm. -rf conftest* |
| 10251 | |
| 10252 | if testscip-shell system . . test. $gl_cv_header_errno_h_ENOLINK = hidden; then |
| 10253 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " |
| 10254 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10255 | #include <errno.h> |
| 10256 | /* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 10257 | #include <stdio.h> |
| 10258 | #include <stdlib.h> |
| 10259 | " |
| 10260 | then : |
| 10261 | |
| 10262 | fi |
| 10263 | |
| 10264 | fi |
| 10265 | fi |
| 10266 | |
| 10267 | fi |
| 10268 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 |
| 10269 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } |
| 10270 | case $gl_cv_header_errno_h_ENOLINK in |
| 10271 | yes | no) |
| 10272 | ENOLINK_HIDDEN=0; ENOLINK_VALUE= |
| 10273 | ;; |
| 10274 | *) |
| 10275 | ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" |
| 10276 | ;; |
| 10277 | esac |
| 10278 | |
| 10279 | |
| 10280 | fi |
| 10281 | |
| 10282 | |
| 10283 | if $GL_GENERATE_ERRNO_H; then |
| 10284 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 |
| 10285 | printfscip-shell system . . printf. %s "checking for EOVERFLOW value... " >&6; } |
| 10286 | if testscip-shell system . . test. ${gl_cv_header_errno_h_EOVERFLOW+y} |
| 10287 | then : |
| 10288 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10289 | else $as_nop |
| 10290 | |
| 10291 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10292 | /* end confdefs.h. */ |
| 10293 | |
| 10294 | #include <errno.h> |
| 10295 | #ifdef EOVERFLOW |
| 10296 | yes |
| 10297 | #endif |
| 10298 | |
| 10299 | _ACEOF |
| 10300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10301 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10302 | then : |
| 10303 | gl_cv_header_errno_h_EOVERFLOW=yes |
| 10304 | else $as_nop |
| 10305 | gl_cv_header_errno_h_EOVERFLOW=no |
| 10306 | fi |
| 10307 | rmscip-shell system . . rm. -rf conftest* |
| 10308 | |
| 10309 | if testscip-shell system . . test. $gl_cv_header_errno_h_EOVERFLOW = no; then |
| 10310 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10311 | /* end confdefs.h. */ |
| 10312 | |
| 10313 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10314 | #include <errno.h> |
| 10315 | #ifdef EOVERFLOW |
| 10316 | yes |
| 10317 | #endif |
| 10318 | |
| 10319 | _ACEOF |
| 10320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10321 | $EGREP "yes" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 10322 | then : |
| 10323 | gl_cv_header_errno_h_EOVERFLOW=hidden |
| 10324 | fi |
| 10325 | rmscip-shell system . . rm. -rf conftest* |
| 10326 | |
| 10327 | if testscip-shell system . . test. $gl_cv_header_errno_h_EOVERFLOW = hidden; then |
| 10328 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " |
| 10329 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 10330 | #include <errno.h> |
| 10331 | /* The following two lines are a workaround against an autoconf-2.52 bug. */ |
| 10332 | #include <stdio.h> |
| 10333 | #include <stdlib.h> |
| 10334 | " |
| 10335 | then : |
| 10336 | |
| 10337 | fi |
| 10338 | |
| 10339 | fi |
| 10340 | fi |
| 10341 | |
| 10342 | fi |
| 10343 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 |
| 10344 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } |
| 10345 | case $gl_cv_header_errno_h_EOVERFLOW in |
| 10346 | yes | no) |
| 10347 | EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= |
| 10348 | ;; |
| 10349 | *) |
| 10350 | EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" |
| 10351 | ;; |
| 10352 | esac |
| 10353 | |
| 10354 | |
| 10355 | fi |
| 10356 | |
| 10357 | |
| 10358 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 10359 | printfscip-shell system . . printf. %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 10360 | if testscip-shell system . . test. ${ac_cv_c_undeclared_builtin_options+y} |
| 10361 | then : |
| 10362 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10363 | else $as_nop |
| 10364 | ac_save_CFLAGS=$CFLAGS |
| 10365 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 10366 | for ac_arg in '' -fno-builtin; do |
| 10367 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 10368 | # This test program should *not* compile successfully. |
| 10369 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10370 | /* end confdefs.h. */ |
| 10371 | |
| 10372 | int |
| 10373 | main (void) |
| 10374 | { |
| 10375 | (void) strchr; |
| 10376 | ; |
| 10377 | return 0; |
| 10378 | } |
| 10379 | _ACEOF |
| 10380 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 10381 | then : |
| 10382 | |
| 10383 | else $as_nop |
| 10384 | # This test program should compile successfully. |
| 10385 | # No library function is consistently available on |
| 10386 | # freestanding implementations, so test against a dummy |
| 10387 | # declaration. Include always-available headers on the |
| 10388 | # off chance that they somehow elicit warnings. |
| 10389 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10390 | /* end confdefs.h. */ |
| 10391 | #include <float.h> |
| 10392 | #include <limits.h> |
| 10393 | #include <stdarg.h> |
| 10394 | #include <stddef.h> |
| 10395 | extern void ac_decl (int, char *); |
| 10396 | |
| 10397 | int |
| 10398 | main (void) |
| 10399 | { |
| 10400 | (void) ac_decl (0, (char *) 0); |
| 10401 | (void) ac_decl; |
| 10402 | |
| 10403 | ; |
| 10404 | return 0; |
| 10405 | } |
| 10406 | _ACEOF |
| 10407 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 10408 | then : |
| 10409 | if testscip-shell system . . test. x"$ac_arg" = x |
| 10410 | then : |
| 10411 | ac_cv_c_undeclared_builtin_options='none needed' |
| 10412 | else $as_nop |
| 10413 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| 10414 | fi |
| 10415 | break |
| 10416 | fi |
| 10417 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10418 | fi |
| 10419 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10420 | done |
| 10421 | CFLAGS=$ac_save_CFLAGS |
| 10422 | |
| 10423 | fi |
| 10424 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 10425 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 10426 | case $ac_cv_c_undeclared_builtin_options in #( |
| 10427 | 'cannot detect') : |
| 10428 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10429 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10430 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot make $CC report undeclared builtins |
| 10431 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 10432 | 'none needed') : |
| 10433 | ac_c_undeclared_builtin_options='' ;; #( |
| 10434 | *) : |
| 10435 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 10436 | esac |
| 10437 | |
| 10438 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 10439 | if testscip-shell system . . test. "x$ac_cv_have_decl_strerror_r" = xyes |
| 10440 | then : |
| 10441 | ac_have_decl=1 |
| 10442 | else $as_nop |
| 10443 | ac_have_decl=0 |
| 10444 | fi |
| 10445 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h |
| 10446 | |
| 10447 | |
| 10448 | if testscip-shell system . . test. $ac_cv_have_decl_strerror_r = yes; then |
| 10449 | # For backward compatibility's sake, define HAVE_STRERROR_R. |
| 10450 | # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well |
| 10451 | # as AC_CHECK_DECLS_ONCE.) |
| 10452 | |
| 10453 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h |
| 10454 | |
| 10455 | fi |
| 10456 | |
| 10457 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 10458 | printfscip-shell system . . printf. %s "checking whether strerror_r returns char *... " >&6; } |
| 10459 | if testscip-shell system . . test. ${ac_cv_func_strerror_r_char_p+y} |
| 10460 | then : |
| 10461 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10462 | else $as_nop |
| 10463 | |
| 10464 | ac_cv_func_strerror_r_char_p=no |
| 10465 | if testscip-shell system . . test. $ac_cv_have_decl_strerror_r = yes; then |
| 10466 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10467 | /* end confdefs.h. */ |
| 10468 | #include <string.h> |
| 10469 | int |
| 10470 | main (void) |
| 10471 | { |
| 10472 | |
| 10473 | char buf[100]; |
| 10474 | char x = *strerror_r (0, buf, sizeof buf); |
| 10475 | char *p = strerror_r (0, buf, sizeof buf); |
| 10476 | return !p || x; |
| 10477 | |
| 10478 | ; |
| 10479 | return 0; |
| 10480 | } |
| 10481 | _ACEOF |
| 10482 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 10483 | then : |
| 10484 | ac_cv_func_strerror_r_char_p=yes |
| 10485 | fi |
| 10486 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10487 | |
| 10488 | fi |
| 10489 | |
| 10490 | fi |
| 10491 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 10492 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } |
| 10493 | if testscip-shell system . . test. $ac_cv_func_strerror_r_char_p = yes; then |
| 10494 | |
| 10495 | printfscip-shell system . . printf. "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 10496 | |
| 10497 | fi |
| 10498 | |
| 10499 | |
| 10500 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5 |
| 10501 | printfscip-shell system . . printf. %s "checking whether ctype.h defines __header_inline... " >&6; } |
| 10502 | if testscip-shell system . . test. ${gl_cv_have___header_inline+y} |
| 10503 | then : |
| 10504 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10505 | else $as_nop |
| 10506 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10507 | /* end confdefs.h. */ |
| 10508 | #include <ctype.h> |
| 10509 | #ifndef __header_inline |
| 10510 | #error "<ctype.h> does not define __header_inline" |
| 10511 | #endif |
| 10512 | |
| 10513 | _ACEOF |
| 10514 | if ac_fn_c_try_cppscip-shell shell shell-project 0.0.0 ac_fn_c_try_cpp(). "$LINENO" |
| 10515 | then : |
| 10516 | gl_cv_have___header_inline=yes |
| 10517 | else $as_nop |
| 10518 | gl_cv_have___header_inline=no |
| 10519 | fi |
| 10520 | rmscip-shell system . . rm. -f conftest.err conftest.i conftest.$ac_ext |
| 10521 | fi |
| 10522 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5 |
| 10523 | printfscip-shell system . . printf. "%s\n" "$gl_cv_have___header_inline" >&6; } |
| 10524 | if testscip-shell system . . test. "$gl_cv_have___header_inline" = yes; then |
| 10525 | |
| 10526 | printfscip-shell system . . printf. "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h |
| 10527 | |
| 10528 | fi |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | HAVE_FCNTL=1; |
| 10534 | HAVE_OPENAT=1; |
| 10535 | REPLACE_CREAT=0; |
| 10536 | REPLACE_FCNTL=0; |
| 10537 | REPLACE_OPEN=0; |
| 10538 | REPLACE_OPENAT=0; |
| 10539 | |
| 10540 | |
| 10541 | gl_mda_defines=' |
| 10542 | #if defined _WIN32 && !defined __CYGWIN__ |
| 10543 | #define access _access |
| 10544 | #define chdir _chdir |
| 10545 | #define chmod _chmod |
| 10546 | #define close _close |
| 10547 | #define creat _creat |
| 10548 | #define dup _dup |
| 10549 | #define dup2 _dup2 |
| 10550 | #define ecvt _ecvt |
| 10551 | #define execl _execl |
| 10552 | #define execle _execle |
| 10553 | #define execlp _execlp |
| 10554 | #define execv _execv |
| 10555 | #define execve _execve |
| 10556 | #define execvp _execvp |
| 10557 | #define execvpe _execvpe |
| 10558 | #define fcloseall _fcloseall |
| 10559 | #define fcvt _fcvt |
| 10560 | #define fdopen _fdopen |
| 10561 | #define fileno _fileno |
| 10562 | #define gcvt _gcvt |
| 10563 | #define getcwd _getcwd |
| 10564 | #define getpid _getpid |
| 10565 | #define getw _getw |
| 10566 | #define isatty _isatty |
| 10567 | #define j0 _j0 |
| 10568 | #define j1 _j1 |
| 10569 | #define jn _jn |
| 10570 | #define lfind _lfind |
| 10571 | #define lsearch _lsearch |
| 10572 | #define lseek _lseek |
| 10573 | #define memccpy _memccpy |
| 10574 | #define mkdir _mkdir |
| 10575 | #define mktemp _mktemp |
| 10576 | #define open _open |
| 10577 | #define putenv _putenv |
| 10578 | #define putw _putw |
| 10579 | #define read _read |
| 10580 | #define rmdir _rmdir |
| 10581 | #define strdup _strdup |
| 10582 | #define swab _swab |
| 10583 | #define tempnam _tempnam |
| 10584 | #define tzset _tzset |
| 10585 | #define umask _umask |
| 10586 | #define unlink _unlink |
| 10587 | #define utime _utime |
| 10588 | #define wcsdup _wcsdup |
| 10589 | #define write _write |
| 10590 | #define y0 _y0 |
| 10591 | #define y1 _y1 |
| 10592 | #define yn _yn |
| 10593 | #endif |
| 10594 | ' |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | GL_GNULIB_CREAT=0 |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | GL_GNULIB_FCNTL=0 |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | GL_GNULIB_NONBLOCKING=0 |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | GL_GNULIB_OPEN=0 |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | GL_GNULIB_OPENAT=0 |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | GL_GNULIB_MDA_CREAT=1 |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | GL_GNULIB_MDA_OPEN=1 |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10633 | printfscip-shell system . . printf. %s "checking for working fcntl.h... " >&6; } |
| 10634 | if testscip-shell system . . test. ${gl_cv_header_working_fcntl_h+y} |
| 10635 | then : |
| 10636 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10637 | else $as_nop |
| 10638 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 10639 | then : |
| 10640 | case "$host_os" in |
| 10641 | # Guess 'no' on native Windows. |
| 10642 | mingw*) gl_cv_header_working_fcntl_h='no' ;; |
| 10643 | *) gl_cv_header_working_fcntl_h=cross-compiling ;; |
| 10644 | esac |
| 10645 | |
| 10646 | else $as_nop |
| 10647 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10648 | /* end confdefs.h. */ |
| 10649 | #include <sys/types.h> |
| 10650 | #include <sys/stat.h> |
| 10651 | #if HAVE_UNISTD_H |
| 10652 | # include <unistd.h> |
| 10653 | #else /* on Windows with MSVC */ |
| 10654 | # include <io.h> |
| 10655 | # include <stdlib.h> |
| 10656 | # defined sleep(n) _sleep ((n) * 1000) |
| 10657 | #endif |
| 10658 | #include <fcntl.h> |
| 10659 | |
| 10660 | |
| 10661 | $gl_mda_defines |
| 10662 | |
| 10663 | #ifndef O_NOATIME |
| 10664 | #define O_NOATIME 0 |
| 10665 | #endif |
| 10666 | #ifndef O_NOFOLLOW |
| 10667 | #define O_NOFOLLOW 0 |
| 10668 | #endif |
| 10669 | static int const constants[] = |
| 10670 | { |
| 10671 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10672 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10673 | }; |
| 10674 | |
| 10675 | int |
| 10676 | main (void) |
| 10677 | { |
| 10678 | |
| 10679 | int result = !constants; |
| 10680 | #if HAVE_SYMLINK |
| 10681 | { |
| 10682 | static char const sym[] = "conftest.sym"; |
| 10683 | if (symlink ("/dev/null", sym) != 0) |
| 10684 | result |= 2; |
| 10685 | else |
| 10686 | { |
| 10687 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10688 | if (fd >= 0) |
| 10689 | { |
| 10690 | close (fd); |
| 10691 | result |= 4; |
| 10692 | } |
| 10693 | } |
| 10694 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10695 | result |= 2; |
| 10696 | else |
| 10697 | { |
| 10698 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10699 | if (fd >= 0) |
| 10700 | { |
| 10701 | close (fd); |
| 10702 | result |= 4; |
| 10703 | } |
| 10704 | } |
| 10705 | unlink (sym); |
| 10706 | } |
| 10707 | #endif |
| 10708 | { |
| 10709 | static char const file[] = "confdefs.h"; |
| 10710 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10711 | if (fd < 0) |
| 10712 | result |= 8; |
| 10713 | else |
| 10714 | { |
| 10715 | struct stat st0; |
| 10716 | if (fstat (fd, &st0) != 0) |
| 10717 | result |= 16; |
| 10718 | else |
| 10719 | { |
| 10720 | char c; |
| 10721 | sleep (1); |
| 10722 | if (read (fd, &c, 1) != 1) |
| 10723 | result |= 24; |
| 10724 | else |
| 10725 | { |
| 10726 | if (close (fd) != 0) |
| 10727 | result |= 32; |
| 10728 | else |
| 10729 | { |
| 10730 | struct stat st1; |
| 10731 | if (stat (file, &st1) != 0) |
| 10732 | result |= 40; |
| 10733 | else |
| 10734 | if (st0.st_atime != st1.st_atime) |
| 10735 | result |= 64; |
| 10736 | } |
| 10737 | } |
| 10738 | } |
| 10739 | } |
| 10740 | } |
| 10741 | return result; |
| 10742 | ; |
| 10743 | return 0; |
| 10744 | } |
| 10745 | _ACEOF |
| 10746 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 10747 | then : |
| 10748 | gl_cv_header_working_fcntl_h=yes |
| 10749 | else $as_nop |
| 10750 | case $? in #( |
| 10751 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10752 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10753 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10754 | *) gl_cv_header_working_fcntl_h='no';; |
| 10755 | esac |
| 10756 | fi |
| 10757 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10758 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10759 | fi |
| 10760 | |
| 10761 | |
| 10762 | fi |
| 10763 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10764 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } |
| 10765 | |
| 10766 | case $gl_cv_header_working_fcntl_h in #( |
| 10767 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10768 | *) ac_val=1;; |
| 10769 | esac |
| 10770 | |
| 10771 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h |
| 10772 | |
| 10773 | |
| 10774 | case $gl_cv_header_working_fcntl_h in #( |
| 10775 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10776 | *) ac_val=1;; |
| 10777 | esac |
| 10778 | |
| 10779 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 10784 | " |
| 10785 | if testscip-shell system . . test. "x$ac_cv_type_pid_t" = xyes |
| 10786 | then : |
| 10787 | |
| 10788 | else $as_nop |
| 10789 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10790 | /* end confdefs.h. */ |
| 10791 | |
| 10792 | #if defined _WIN64 && !defined __CYGWIN__ |
| 10793 | LLP64 |
| 10794 | #endif |
| 10795 | |
| 10796 | int |
| 10797 | main (void) |
| 10798 | { |
| 10799 | |
| 10800 | ; |
| 10801 | return 0; |
| 10802 | } |
| 10803 | |
| 10804 | _ACEOF |
| 10805 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 10806 | then : |
| 10807 | ac_pid_type='int' |
| 10808 | else $as_nop |
| 10809 | ac_pid_type='__int64' |
| 10810 | fi |
| 10811 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10812 | |
| 10813 | printfscip-shell system . . printf. "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 10814 | |
| 10815 | |
| 10816 | fi |
| 10817 | |
| 10818 | |
| 10819 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 10820 | if testscip-shell system . . test. "x$ac_cv_type_mode_t" = xyes |
| 10821 | then : |
| 10822 | |
| 10823 | else $as_nop |
| 10824 | |
| 10825 | printfscip-shell system . . printf. "%s\n" "#define mode_t int" >>confdefs.h |
| 10826 | |
| 10827 | fi |
| 10828 | |
| 10829 | |
| 10830 | |
| 10831 | |
| 10832 | |
| 10833 | |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | |
| 10838 | |
| 10839 | |
| 10840 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 10841 | gl_cv_next_fcntl_h='<'fcntl.h'>' |
| 10842 | else |
| 10843 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 |
| 10844 | printfscip-shell system . . printf. %s "checking absolute name of <fcntl.h>... " >&6; } |
| 10845 | if testscip-shell system . . test. ${gl_cv_next_fcntl_h+y} |
| 10846 | then : |
| 10847 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10848 | else $as_nop |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10853 | /* end confdefs.h. */ |
| 10854 | #include <fcntl.h> |
| 10855 | _ACEOF |
| 10856 | case "$host_os" in |
| 10857 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 10858 | *) gl_absname_cpp="$ac_cpp" ;; |
| 10859 | esac |
| 10860 | |
| 10861 | case "$host_os" in |
| 10862 | mingw*) |
| 10863 | gl_dirsep_regex='[/\\]' |
| 10864 | ;; |
| 10865 | *) |
| 10866 | gl_dirsep_regex='\/' |
| 10867 | ;; |
| 10868 | esac |
| 10869 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 10870 | gl_header_literal_regex=`echoscip-shell system . . echo. 'fcntl.h' \ |
| 10871 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 10872 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 10873 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 10874 | s|^/[^/]|//&| |
| 10875 | p |
| 10876 | q |
| 10877 | }' |
| 10878 | |
| 10879 | gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 10880 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 10881 | |
| 10882 | gl_header=$gl_cv_absolute_fcntl_h |
| 10883 | gl_cv_next_fcntl_h='"'$gl_header'"' |
| 10884 | |
| 10885 | |
| 10886 | fi |
| 10887 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 |
| 10888 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_fcntl_h" >&6; } |
| 10889 | fi |
| 10890 | NEXT_FCNTL_H=$gl_cv_next_fcntl_h |
| 10891 | |
| 10892 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 10893 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 10894 | gl_next_as_first_directive='<'fcntl.h'>' |
| 10895 | else |
| 10896 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 10897 | gl_next_as_first_directive=$gl_cv_next_fcntl_h |
| 10898 | fi |
| 10899 | NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive |
| 10900 | |
| 10901 | |
| 10902 | |
| 10903 | |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
| 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "eaccess" "ac_cv_func_eaccess" |
| 10915 | if testscip-shell system . . test. "x$ac_cv_func_eaccess" = xyes |
| 10916 | then : |
| 10917 | |
| 10918 | else $as_nop |
| 10919 | |
| 10920 | printfscip-shell system . . printf. "%s\n" "#define eaccess access" >>confdefs.h |
| 10921 | |
| 10922 | fi |
| 10923 | |
| 10924 | |
| 10925 | |
| 10926 | HAVE_FCHMODAT=1; |
| 10927 | HAVE_FSTATAT=1; |
| 10928 | HAVE_FUTIMENS=1; |
| 10929 | HAVE_GETUMASK=1; |
| 10930 | HAVE_LCHMOD=1; |
| 10931 | HAVE_LSTAT=1; |
| 10932 | HAVE_MKDIRAT=1; |
| 10933 | HAVE_MKFIFO=1; |
| 10934 | HAVE_MKFIFOAT=1; |
| 10935 | HAVE_MKNOD=1; |
| 10936 | HAVE_MKNODAT=1; |
| 10937 | HAVE_UTIMENSAT=1; |
| 10938 | REPLACE_FCHMODAT=0; |
| 10939 | REPLACE_FSTAT=0; |
| 10940 | REPLACE_FSTATAT=0; |
| 10941 | REPLACE_FUTIMENS=0; |
| 10942 | REPLACE_LSTAT=0; |
| 10943 | REPLACE_MKDIR=0; |
| 10944 | REPLACE_MKFIFO=0; |
| 10945 | REPLACE_MKFIFOAT=0; |
| 10946 | REPLACE_MKNOD=0; |
| 10947 | REPLACE_MKNODAT=0; |
| 10948 | REPLACE_STAT=0; |
| 10949 | REPLACE_UTIMENSAT=0; |
| 10950 | |
| 10951 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 10952 | printfscip-shell system . . printf. %s "checking whether stat file-mode macros are broken... " >&6; } |
| 10953 | if testscip-shell system . . test. ${ac_cv_header_stat_broken+y} |
| 10954 | then : |
| 10955 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 10956 | else $as_nop |
| 10957 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10958 | /* end confdefs.h. */ |
| 10959 | #include <sys/types.h> |
| 10960 | #include <sys/stat.h> |
| 10961 | |
| 10962 | #if defined S_ISBLK && defined S_IFDIR |
| 10963 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 10964 | #endif |
| 10965 | |
| 10966 | #if defined S_ISBLK && defined S_IFCHR |
| 10967 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 10968 | #endif |
| 10969 | |
| 10970 | #if defined S_ISLNK && defined S_IFREG |
| 10971 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 10972 | #endif |
| 10973 | |
| 10974 | #if defined S_ISSOCK && defined S_IFREG |
| 10975 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 10976 | #endif |
| 10977 | |
| 10978 | _ACEOF |
| 10979 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 10980 | then : |
| 10981 | ac_cv_header_stat_broken=no |
| 10982 | else $as_nop |
| 10983 | ac_cv_header_stat_broken=yes |
| 10984 | fi |
| 10985 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10986 | fi |
| 10987 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 10988 | printfscip-shell system . . printf. "%s\n" "$ac_cv_header_stat_broken" >&6; } |
| 10989 | if testscip-shell system . . test. $ac_cv_header_stat_broken = yes; then |
| 10990 | |
| 10991 | printfscip-shell system . . printf. "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| 10992 | |
| 10993 | fi |
| 10994 | |
| 10995 | |
| 10996 | |
| 10997 | case "$host_os" in |
| 10998 | mingw*) |
| 10999 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 |
| 11000 | printfscip-shell system . . printf. %s "checking for 64-bit off_t... " >&6; } |
| 11001 | if testscip-shell system . . test. ${gl_cv_type_off_t_64+y} |
| 11002 | then : |
| 11003 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11004 | else $as_nop |
| 11005 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11006 | /* end confdefs.h. */ |
| 11007 | #include <sys/types.h> |
| 11008 | int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; |
| 11009 | |
| 11010 | int |
| 11011 | main (void) |
| 11012 | { |
| 11013 | |
| 11014 | ; |
| 11015 | return 0; |
| 11016 | } |
| 11017 | _ACEOF |
| 11018 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 11019 | then : |
| 11020 | gl_cv_type_off_t_64=yes |
| 11021 | else $as_nop |
| 11022 | gl_cv_type_off_t_64=no |
| 11023 | fi |
| 11024 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11025 | |
| 11026 | fi |
| 11027 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 |
| 11028 | printfscip-shell system . . printf. "%s\n" "$gl_cv_type_off_t_64" >&6; } |
| 11029 | if testscip-shell system . . test. $gl_cv_type_off_t_64 = no; then |
| 11030 | WINDOWS_64_BIT_OFF_T=1 |
| 11031 | else |
| 11032 | WINDOWS_64_BIT_OFF_T=0 |
| 11033 | fi |
| 11034 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 |
| 11035 | printfscip-shell system . . printf. %s "checking for 64-bit st_size... " >&6; } |
| 11036 | if testscip-shell system . . test. ${gl_cv_member_st_size_64+y} |
| 11037 | then : |
| 11038 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11039 | else $as_nop |
| 11040 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11041 | /* end confdefs.h. */ |
| 11042 | #include <sys/types.h> |
| 11043 | struct stat buf; |
| 11044 | int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; |
| 11045 | |
| 11046 | int |
| 11047 | main (void) |
| 11048 | { |
| 11049 | |
| 11050 | ; |
| 11051 | return 0; |
| 11052 | } |
| 11053 | _ACEOF |
| 11054 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 11055 | then : |
| 11056 | gl_cv_member_st_size_64=yes |
| 11057 | else $as_nop |
| 11058 | gl_cv_member_st_size_64=no |
| 11059 | fi |
| 11060 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11061 | |
| 11062 | fi |
| 11063 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 |
| 11064 | printfscip-shell system . . printf. "%s\n" "$gl_cv_member_st_size_64" >&6; } |
| 11065 | if testscip-shell system . . test. $gl_cv_member_st_size_64 = no; then |
| 11066 | WINDOWS_64_BIT_ST_SIZE=1 |
| 11067 | else |
| 11068 | WINDOWS_64_BIT_ST_SIZE=0 |
| 11069 | fi |
| 11070 | ;; |
| 11071 | *) |
| 11072 | WINDOWS_64_BIT_OFF_T=0 |
| 11073 | WINDOWS_64_BIT_ST_SIZE=0 |
| 11074 | ;; |
| 11075 | esac |
| 11076 | |
| 11077 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 11078 | printfscip-shell system . . printf. %s "checking for C/C++ restrict keyword... " >&6; } |
| 11079 | if testscip-shell system . . test. ${ac_cv_c_restrict+y} |
| 11080 | then : |
| 11081 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11082 | else $as_nop |
| 11083 | ac_cv_c_restrict=no |
| 11084 | # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: |
| 11085 | # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html |
| 11086 | # Put 'restrict' last, because C++ lacks it. |
| 11087 | for ac_kw in __restrict__ __restrict _Restrict restrict; do |
| 11088 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11089 | /* end confdefs.h. */ |
| 11090 | typedef int *int_ptr; |
| 11091 | int foo (int_ptr $ac_kw ip) { return ip[0]; } |
| 11092 | int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ |
| 11093 | int bar (int ip[$ac_kw]) { return ip[0]; } |
| 11094 | |
| 11095 | int |
| 11096 | main (void) |
| 11097 | { |
| 11098 | int s[1]; |
| 11099 | int *$ac_kw t = s; |
| 11100 | t[0] = 0; |
| 11101 | return foo (t) + bar (t); |
| 11102 | |
| 11103 | ; |
| 11104 | return 0; |
| 11105 | } |
| 11106 | _ACEOF |
| 11107 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 11108 | then : |
| 11109 | ac_cv_c_restrict=$ac_kw |
| 11110 | fi |
| 11111 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11112 | testscip-shell system . . test. "$ac_cv_c_restrict" != no && break |
| 11113 | done |
| 11114 | |
| 11115 | fi |
| 11116 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 11117 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_restrict" >&6; } |
| 11118 | |
| 11119 | case $ac_cv_c_restrict in |
| 11120 | restrict) ;; |
| 11121 | no) printfscip-shell system . . printf. "%s\n" "#define restrict /**/" >>confdefs.h |
| 11122 | ;; |
| 11123 | *) printfscip-shell system . . printf. "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h |
| 11124 | ;; |
| 11125 | esac |
| 11126 | |
| 11127 | |
| 11128 | |
| 11129 | |
| 11130 | |
| 11131 | |
| 11132 | |
| 11133 | |
| 11134 | |
| 11135 | |
| 11136 | |
| 11137 | |
| 11138 | |
| 11139 | |
| 11140 | |
| 11141 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 11142 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 11143 | else |
| 11144 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 11145 | printfscip-shell system . . printf. %s "checking absolute name of <sys/stat.h>... " >&6; } |
| 11146 | if testscip-shell system . . test. ${gl_cv_next_sys_stat_h+y} |
| 11147 | then : |
| 11148 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11149 | else $as_nop |
| 11150 | |
| 11151 | if testscip-shell system . . test. $ac_cv_header_sys_stat_h = yes; then |
| 11152 | |
| 11153 | |
| 11154 | |
| 11155 | |
| 11156 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11157 | /* end confdefs.h. */ |
| 11158 | #include <sys/stat.h> |
| 11159 | _ACEOF |
| 11160 | case "$host_os" in |
| 11161 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 11162 | *) gl_absname_cpp="$ac_cpp" ;; |
| 11163 | esac |
| 11164 | |
| 11165 | case "$host_os" in |
| 11166 | mingw*) |
| 11167 | gl_dirsep_regex='[/\\]' |
| 11168 | ;; |
| 11169 | *) |
| 11170 | gl_dirsep_regex='\/' |
| 11171 | ;; |
| 11172 | esac |
| 11173 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 11174 | gl_header_literal_regex=`echoscip-shell system . . echo. 'sys/stat.h' \ |
| 11175 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 11176 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 11177 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 11178 | s|^/[^/]|//&| |
| 11179 | p |
| 11180 | q |
| 11181 | }' |
| 11182 | |
| 11183 | gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 11184 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 11185 | |
| 11186 | gl_header=$gl_cv_absolute_sys_stat_h |
| 11187 | gl_cv_next_sys_stat_h='"'$gl_header'"' |
| 11188 | else |
| 11189 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 11190 | fi |
| 11191 | |
| 11192 | |
| 11193 | fi |
| 11194 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 11195 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_sys_stat_h" >&6; } |
| 11196 | fi |
| 11197 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 11198 | |
| 11199 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 11200 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 11201 | gl_next_as_first_directive='<'sys/stat.h'>' |
| 11202 | else |
| 11203 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 11204 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 11205 | fi |
| 11206 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 11207 | |
| 11208 | |
| 11209 | |
| 11210 | |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | WINDOWS_STAT_TIMESPEC=0 |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 11225 | #include <sys/stat.h> |
| 11226 | " |
| 11227 | if testscip-shell system . . test. "x$ac_cv_type_nlink_t" = xyes |
| 11228 | then : |
| 11229 | |
| 11230 | else $as_nop |
| 11231 | |
| 11232 | printfscip-shell system . . printf. "%s\n" "#define nlink_t int" >>confdefs.h |
| 11233 | |
| 11234 | fi |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | |
| 11240 | |
| 11241 | |
| 11242 | |
| 11243 | |
| 11244 | |
| 11245 | case "$host_os" in |
| 11246 | mingw*) |
| 11247 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" |
| 11248 | if testscip-shell system . . test. "x$ac_cv_header_sdkddkver_h" = xyes |
| 11249 | then : |
| 11250 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h |
| 11251 | |
| 11252 | fi |
| 11253 | |
| 11254 | ;; |
| 11255 | esac |
| 11256 | |
| 11257 | |
| 11258 | |
| 11259 | |
| 11260 | |
| 11261 | |
| 11262 | |
| 11263 | GL_GNULIB_FCHMODAT=0 |
| 11264 | |
| 11265 | |
| 11266 | |
| 11267 | GL_GNULIB_FSTAT=0 |
| 11268 | |
| 11269 | |
| 11270 | |
| 11271 | GL_GNULIB_FSTATAT=0 |
| 11272 | |
| 11273 | |
| 11274 | |
| 11275 | GL_GNULIB_FUTIMENS=0 |
| 11276 | |
| 11277 | |
| 11278 | |
| 11279 | GL_GNULIB_GETUMASK=0 |
| 11280 | |
| 11281 | |
| 11282 | |
| 11283 | GL_GNULIB_LCHMOD=0 |
| 11284 | |
| 11285 | |
| 11286 | |
| 11287 | GL_GNULIB_LSTAT=0 |
| 11288 | |
| 11289 | |
| 11290 | |
| 11291 | GL_GNULIB_MKDIR=0 |
| 11292 | |
| 11293 | |
| 11294 | |
| 11295 | GL_GNULIB_MKDIRAT=0 |
| 11296 | |
| 11297 | |
| 11298 | |
| 11299 | GL_GNULIB_MKFIFO=0 |
| 11300 | |
| 11301 | |
| 11302 | |
| 11303 | GL_GNULIB_MKFIFOAT=0 |
| 11304 | |
| 11305 | |
| 11306 | |
| 11307 | GL_GNULIB_MKNOD=0 |
| 11308 | |
| 11309 | |
| 11310 | |
| 11311 | GL_GNULIB_MKNODAT=0 |
| 11312 | |
| 11313 | |
| 11314 | |
| 11315 | GL_GNULIB_STAT=0 |
| 11316 | |
| 11317 | |
| 11318 | |
| 11319 | GL_GNULIB_UTIMENSAT=0 |
| 11320 | |
| 11321 | |
| 11322 | |
| 11323 | GL_GNULIB_OVERRIDES_STRUCT_STAT=0 |
| 11324 | |
| 11325 | |
| 11326 | |
| 11327 | GL_GNULIB_MDA_CHMOD=1 |
| 11328 | |
| 11329 | |
| 11330 | |
| 11331 | GL_GNULIB_MDA_MKDIR=1 |
| 11332 | |
| 11333 | |
| 11334 | |
| 11335 | GL_GNULIB_MDA_UMASK=1 |
| 11336 | |
| 11337 | |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | |
| 11342 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 |
| 11343 | printfscip-shell system . . printf. %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } |
| 11344 | if testscip-shell system . . test. ${gl_cv_func_getcwd_null+y} |
| 11345 | then : |
| 11346 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11347 | else $as_nop |
| 11348 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11349 | then : |
| 11350 | case "$host_os" in |
| 11351 | # Guess yes on glibc systems. |
| 11352 | *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";; |
| 11353 | # Guess yes on musl systems. |
| 11354 | *-musl*) gl_cv_func_getcwd_null="guessing yes";; |
| 11355 | # Guess yes on Cygwin. |
| 11356 | cygwin*) gl_cv_func_getcwd_null="guessing yes";; |
| 11357 | # If we don't know, obey --enable-cross-guesses. |
| 11358 | *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";; |
| 11359 | esac |
| 11360 | |
| 11361 | else $as_nop |
| 11362 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11363 | /* end confdefs.h. */ |
| 11364 | |
| 11365 | # include <stdlib.h> |
| 11366 | # if HAVE_UNISTD_H |
| 11367 | # include <unistd.h> |
| 11368 | # else /* on Windows with MSVC */ |
| 11369 | # include <direct.h> |
| 11370 | # endif |
| 11371 | |
| 11372 | |
| 11373 | $gl_mda_defines |
| 11374 | |
| 11375 | # ifndef getcwd |
| 11376 | char *getcwd (); |
| 11377 | # endif |
| 11378 | |
| 11379 | int |
| 11380 | main (void) |
| 11381 | { |
| 11382 | |
| 11383 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 11384 | /* mingw cwd does not start with '/', but _getcwd does allocate. |
| 11385 | However, mingw fails to honor non-zero size. */ |
| 11386 | #else |
| 11387 | if (chdir ("/") != 0) |
| 11388 | return 1; |
| 11389 | else |
| 11390 | { |
| 11391 | char *f = getcwd (NULL, 0); |
| 11392 | if (! f) |
| 11393 | return 2; |
| 11394 | if (f[0] != '/') |
| 11395 | { free (f); return 3; } |
| 11396 | if (f[1] != '\0') |
| 11397 | { free (f); return 4; } |
| 11398 | free (f); |
| 11399 | return 0; |
| 11400 | } |
| 11401 | #endif |
| 11402 | |
| 11403 | ; |
| 11404 | return 0; |
| 11405 | } |
| 11406 | _ACEOF |
| 11407 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 11408 | then : |
| 11409 | gl_cv_func_getcwd_null=yes |
| 11410 | else $as_nop |
| 11411 | gl_cv_func_getcwd_null=no |
| 11412 | fi |
| 11413 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11414 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11415 | fi |
| 11416 | |
| 11417 | fi |
| 11418 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 |
| 11419 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getcwd_null" >&6; } |
| 11420 | |
| 11421 | |
| 11422 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5 |
| 11423 | printfscip-shell system . . printf. %s "checking for getcwd with POSIX signature... " >&6; } |
| 11424 | if testscip-shell system . . test. ${gl_cv_func_getcwd_posix_signature+y} |
| 11425 | then : |
| 11426 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11427 | else $as_nop |
| 11428 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11429 | /* end confdefs.h. */ |
| 11430 | #include <unistd.h> |
| 11431 | |
| 11432 | |
| 11433 | $gl_mda_defines |
| 11434 | |
| 11435 | int |
| 11436 | main (void) |
| 11437 | { |
| 11438 | extern |
| 11439 | #ifdef __cplusplus |
| 11440 | "C" |
| 11441 | #endif |
| 11442 | char *getcwd (char *, size_t); |
| 11443 | |
| 11444 | ; |
| 11445 | return 0; |
| 11446 | } |
| 11447 | |
| 11448 | _ACEOF |
| 11449 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 11450 | then : |
| 11451 | gl_cv_func_getcwd_posix_signature=yes |
| 11452 | else $as_nop |
| 11453 | gl_cv_func_getcwd_posix_signature=no |
| 11454 | fi |
| 11455 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11456 | |
| 11457 | fi |
| 11458 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5 |
| 11459 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; } |
| 11460 | |
| 11461 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 11462 | if testscip-shell system . . test. "x$ac_cv_have_decl_getcwd" = xyes |
| 11463 | then : |
| 11464 | ac_have_decl=1 |
| 11465 | else $as_nop |
| 11466 | ac_have_decl=0 |
| 11467 | fi |
| 11468 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_GETCWD $ac_have_decl" >>confdefs.h |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | |
| 11473 | |
| 11474 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5 |
| 11475 | printfscip-shell system . . printf. %s "checking for d_ino member in directory struct... " >&6; } |
| 11476 | if testscip-shell system . . test. ${gl_cv_struct_dirent_d_ino+y} |
| 11477 | then : |
| 11478 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11479 | else $as_nop |
| 11480 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11481 | then : |
| 11482 | case "$host_os" in |
| 11483 | # Guess yes on glibc systems with Linux kernel. |
| 11484 | linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;; |
| 11485 | # Guess yes on musl systems with Linux kernel. |
| 11486 | linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;; |
| 11487 | # Guess no on native Windows. |
| 11488 | mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;; |
| 11489 | # If we don't know, obey --enable-cross-guesses. |
| 11490 | *) gl_cv_struct_dirent_d_ino="$gl_cross_guess_normal" ;; |
| 11491 | esac |
| 11492 | |
| 11493 | else $as_nop |
| 11494 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11495 | /* end confdefs.h. */ |
| 11496 | #include <sys/types.h> |
| 11497 | #include <sys/stat.h> |
| 11498 | #include <dirent.h> |
| 11499 | |
| 11500 | int |
| 11501 | main (void) |
| 11502 | { |
| 11503 | DIR *dp = opendir ("."); |
| 11504 | struct dirent *e; |
| 11505 | struct stat st; |
| 11506 | if (! dp) |
| 11507 | return 1; |
| 11508 | e = readdir (dp); |
| 11509 | if (! e) |
| 11510 | { closedir (dp); return 2; } |
| 11511 | if (lstat (e->d_name, &st) != 0) |
| 11512 | { closedir (dp); return 3; } |
| 11513 | if (e->d_ino != st.st_ino) |
| 11514 | { closedir (dp); return 4; } |
| 11515 | closedir (dp); |
| 11516 | return 0; |
| 11517 | |
| 11518 | ; |
| 11519 | return 0; |
| 11520 | } |
| 11521 | _ACEOF |
| 11522 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 11523 | then : |
| 11524 | gl_cv_struct_dirent_d_ino=yes |
| 11525 | else $as_nop |
| 11526 | gl_cv_struct_dirent_d_ino=no |
| 11527 | fi |
| 11528 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11529 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11530 | fi |
| 11531 | |
| 11532 | fi |
| 11533 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5 |
| 11534 | printfscip-shell system . . printf. "%s\n" "$gl_cv_struct_dirent_d_ino" >&6; } |
| 11535 | case "$gl_cv_struct_dirent_d_ino" in |
| 11536 | *yes) |
| 11537 | |
| 11538 | printfscip-shell system . . printf. "%s\n" "#define D_INO_IN_DIRENT 1" >>confdefs.h |
| 11539 | |
| 11540 | ;; |
| 11541 | esac |
| 11542 | |
| 11543 | |
| 11544 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 11545 | if testscip-shell system . . test. "x$ac_cv_have_decl_getlogin_r" = xyes |
| 11546 | then : |
| 11547 | ac_have_decl=1 |
| 11548 | else $as_nop |
| 11549 | ac_have_decl=0 |
| 11550 | fi |
| 11551 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_GETLOGIN_R $ac_have_decl" >>confdefs.h |
| 11552 | |
| 11553 | |
| 11554 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 11555 | if testscip-shell system . . test. "x$ac_cv_have_decl_getlogin" = xyes |
| 11556 | then : |
| 11557 | ac_have_decl=1 |
| 11558 | else $as_nop |
| 11559 | ac_have_decl=0 |
| 11560 | fi |
| 11561 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_GETLOGIN $ac_have_decl" >>confdefs.h |
| 11562 | |
| 11563 | |
| 11564 | |
| 11565 | case $host_os in |
| 11566 | mingw*) |
| 11567 | LIB_GETLOGIN='-ladvapi32' ;; |
| 11568 | *) |
| 11569 | LIB_GETLOGIN= ;; |
| 11570 | esac |
| 11571 | |
| 11572 | |
| 11573 | |
| 11574 | |
| 11575 | |
| 11576 | |
| 11577 | |
| 11578 | |
| 11579 | |
| 11580 | |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | |
| 11585 | |
| 11586 | |
| 11587 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 11588 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 11589 | else |
| 11590 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 |
| 11591 | printfscip-shell system . . printf. %s "checking absolute name of <getopt.h>... " >&6; } |
| 11592 | if testscip-shell system . . test. ${gl_cv_next_getopt_h+y} |
| 11593 | then : |
| 11594 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11595 | else $as_nop |
| 11596 | |
| 11597 | if testscip-shell system . . test. $ac_cv_header_getopt_h = yes; then |
| 11598 | |
| 11599 | |
| 11600 | |
| 11601 | |
| 11602 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11603 | /* end confdefs.h. */ |
| 11604 | #include <getopt.h> |
| 11605 | _ACEOF |
| 11606 | case "$host_os" in |
| 11607 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 11608 | *) gl_absname_cpp="$ac_cpp" ;; |
| 11609 | esac |
| 11610 | |
| 11611 | case "$host_os" in |
| 11612 | mingw*) |
| 11613 | gl_dirsep_regex='[/\\]' |
| 11614 | ;; |
| 11615 | *) |
| 11616 | gl_dirsep_regex='\/' |
| 11617 | ;; |
| 11618 | esac |
| 11619 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 11620 | gl_header_literal_regex=`echoscip-shell system . . echo. 'getopt.h' \ |
| 11621 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 11622 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 11623 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 11624 | s|^/[^/]|//&| |
| 11625 | p |
| 11626 | q |
| 11627 | }' |
| 11628 | |
| 11629 | gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 11630 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 11631 | |
| 11632 | gl_header=$gl_cv_absolute_getopt_h |
| 11633 | gl_cv_next_getopt_h='"'$gl_header'"' |
| 11634 | else |
| 11635 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 11636 | fi |
| 11637 | |
| 11638 | |
| 11639 | fi |
| 11640 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
| 11641 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_getopt_h" >&6; } |
| 11642 | fi |
| 11643 | NEXT_GETOPT_H=$gl_cv_next_getopt_h |
| 11644 | |
| 11645 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 11646 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 11647 | gl_next_as_first_directive='<'getopt.h'>' |
| 11648 | else |
| 11649 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 11650 | gl_next_as_first_directive=$gl_cv_next_getopt_h |
| 11651 | fi |
| 11652 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive |
| 11653 | |
| 11654 | |
| 11655 | |
| 11656 | |
| 11657 | if testscip-shell system . . test. $ac_cv_header_getopt_h = yes; then |
| 11658 | HAVE_GETOPT_H=1 |
| 11659 | else |
| 11660 | HAVE_GETOPT_H=0 |
| 11661 | fi |
| 11662 | |
| 11663 | |
| 11664 | gl_replace_getopt= |
| 11665 | |
| 11666 | if testscip-shell system . . test. -z "$gl_replace_getopt" && testscip-shell system . . test. $gl_getopt_required = GNU; then |
| 11667 | for ac_header in getopt.h |
| 11668 | do : |
| 11669 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 11670 | if testscip-shell system . . test. "x$ac_cv_header_getopt_h" = xyes |
| 11671 | then : |
| 11672 | printfscip-shell system . . printf. "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h |
| 11673 | |
| 11674 | else $as_nop |
| 11675 | gl_replace_getopt=yes |
| 11676 | fi |
| 11677 | |
| 11678 | done |
| 11679 | fi |
| 11680 | |
| 11681 | if testscip-shell system . . test. -z "$gl_replace_getopt" && testscip-shell system . . test. $gl_getopt_required = GNU; then |
| 11682 | |
| 11683 | for ac_func in getopt_long_only |
| 11684 | do : |
| 11685 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" |
| 11686 | if testscip-shell system . . test. "x$ac_cv_func_getopt_long_only" = xyes |
| 11687 | then : |
| 11688 | printfscip-shell system . . printf. "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h |
| 11689 | |
| 11690 | else $as_nop |
| 11691 | gl_replace_getopt=yes |
| 11692 | fi |
| 11693 | |
| 11694 | done |
| 11695 | fi |
| 11696 | |
| 11697 | if testscip-shell system . . test. -z "$gl_replace_getopt"; then |
| 11698 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 |
| 11699 | printfscip-shell system . . printf. %s "checking whether getopt is POSIX compatible... " >&6; } |
| 11700 | if testscip-shell system . . test. ${gl_cv_func_getopt_posix+y} |
| 11701 | then : |
| 11702 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11703 | else $as_nop |
| 11704 | |
| 11705 | if testscip-shell system . . test. $cross_compiling = no; then |
| 11706 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11707 | then : |
| 11708 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11709 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11710 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run test program while cross compiling |
| 11711 | See \`config.log' for more details" "$LINENO" 5; } |
| 11712 | else $as_nop |
| 11713 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11714 | /* end confdefs.h. */ |
| 11715 | |
| 11716 | #include <unistd.h> |
| 11717 | #include <stdlib.h> |
| 11718 | #include <string.h> |
| 11719 | |
| 11720 | int |
| 11721 | main () |
| 11722 | { |
| 11723 | static char program[] = "program"; |
| 11724 | static char a[] = "-a"; |
| 11725 | static char foo[] = "foo"; |
| 11726 | static char bar[] = "bar"; |
| 11727 | char *argv[] = { program, a, foo, bar, NULL }; |
| 11728 | int c; |
| 11729 | |
| 11730 | c = getopt (4, argv, "ab"); |
| 11731 | if (!(c == 'a')) |
| 11732 | return 1; |
| 11733 | c = getopt (4, argv, "ab"); |
| 11734 | if (!(c == -1)) |
| 11735 | return 2; |
| 11736 | if (!(optind == 2)) |
| 11737 | return 3; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | |
| 11741 | _ACEOF |
| 11742 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 11743 | then : |
| 11744 | gl_cv_func_getopt_posix=maybe |
| 11745 | else $as_nop |
| 11746 | gl_cv_func_getopt_posix=no |
| 11747 | fi |
| 11748 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11749 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11750 | fi |
| 11751 | |
| 11752 | if testscip-shell system . . test. $gl_cv_func_getopt_posix = maybe; then |
| 11753 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11754 | then : |
| 11755 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11756 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11757 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run test program while cross compiling |
| 11758 | See \`config.log' for more details" "$LINENO" 5; } |
| 11759 | else $as_nop |
| 11760 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11761 | /* end confdefs.h. */ |
| 11762 | |
| 11763 | #include <unistd.h> |
| 11764 | #include <stdlib.h> |
| 11765 | #include <string.h> |
| 11766 | |
| 11767 | int |
| 11768 | main () |
| 11769 | { |
| 11770 | static char program[] = "program"; |
| 11771 | static char donald[] = "donald"; |
| 11772 | static char p[] = "-p"; |
| 11773 | static char billy[] = "billy"; |
| 11774 | static char duck[] = "duck"; |
| 11775 | static char a[] = "-a"; |
| 11776 | static char bar[] = "bar"; |
| 11777 | char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; |
| 11778 | int c; |
| 11779 | |
| 11780 | c = getopt (7, argv, "+abp:q:"); |
| 11781 | if (!(c == -1)) |
| 11782 | return 4; |
| 11783 | if (!(strcmp (argv[0], "program") == 0)) |
| 11784 | return 5; |
| 11785 | if (!(strcmp (argv[1], "donald") == 0)) |
| 11786 | return 6; |
| 11787 | if (!(strcmp (argv[2], "-p") == 0)) |
| 11788 | return 7; |
| 11789 | if (!(strcmp (argv[3], "billy") == 0)) |
| 11790 | return 8; |
| 11791 | if (!(strcmp (argv[4], "duck") == 0)) |
| 11792 | return 9; |
| 11793 | if (!(strcmp (argv[5], "-a") == 0)) |
| 11794 | return 10; |
| 11795 | if (!(strcmp (argv[6], "bar") == 0)) |
| 11796 | return 11; |
| 11797 | if (!(optind == 1)) |
| 11798 | return 12; |
| 11799 | return 0; |
| 11800 | } |
| 11801 | |
| 11802 | _ACEOF |
| 11803 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 11804 | then : |
| 11805 | gl_cv_func_getopt_posix=maybe |
| 11806 | else $as_nop |
| 11807 | gl_cv_func_getopt_posix=no |
| 11808 | fi |
| 11809 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11810 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11811 | fi |
| 11812 | |
| 11813 | fi |
| 11814 | if testscip-shell system . . test. $gl_cv_func_getopt_posix = maybe; then |
| 11815 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11816 | then : |
| 11817 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11818 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11819 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run test program while cross compiling |
| 11820 | See \`config.log' for more details" "$LINENO" 5; } |
| 11821 | else $as_nop |
| 11822 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11823 | /* end confdefs.h. */ |
| 11824 | |
| 11825 | #include <unistd.h> |
| 11826 | #include <stdlib.h> |
| 11827 | #include <string.h> |
| 11828 | |
| 11829 | int |
| 11830 | main () |
| 11831 | { |
| 11832 | static char program[] = "program"; |
| 11833 | static char ab[] = "-ab"; |
| 11834 | char *argv[3] = { program, ab, NULL }; |
| 11835 | if (getopt (2, argv, "ab:") != 'a') |
| 11836 | return 13; |
| 11837 | if (getopt (2, argv, "ab:") != '?') |
| 11838 | return 14; |
| 11839 | if (optopt != 'b') |
| 11840 | return 15; |
| 11841 | if (optind != 2) |
| 11842 | return 16; |
| 11843 | return 0; |
| 11844 | } |
| 11845 | |
| 11846 | _ACEOF |
| 11847 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 11848 | then : |
| 11849 | gl_cv_func_getopt_posix=yes |
| 11850 | else $as_nop |
| 11851 | gl_cv_func_getopt_posix=no |
| 11852 | fi |
| 11853 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11854 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11855 | fi |
| 11856 | |
| 11857 | fi |
| 11858 | else |
| 11859 | case "$host_os" in |
| 11860 | darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; |
| 11861 | *) gl_cv_func_getopt_posix="guessing yes";; |
| 11862 | esac |
| 11863 | fi |
| 11864 | |
| 11865 | fi |
| 11866 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 |
| 11867 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getopt_posix" >&6; } |
| 11868 | case "$gl_cv_func_getopt_posix" in |
| 11869 | *no) gl_replace_getopt=yes ;; |
| 11870 | esac |
| 11871 | fi |
| 11872 | |
| 11873 | if testscip-shell system . . test. -z "$gl_replace_getopt" && testscip-shell system . . test. $gl_getopt_required = GNU; then |
| 11874 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 |
| 11875 | printfscip-shell system . . printf. %s "checking for working GNU getopt function... " >&6; } |
| 11876 | if testscip-shell system . . test. ${gl_cv_func_getopt_gnu+y} |
| 11877 | then : |
| 11878 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 11879 | else $as_nop |
| 11880 | # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the |
| 11881 | # optstring is necessary for programs like m4 that have POSIX-mandated |
| 11882 | # semantics for supporting options interspersed with files. |
| 11883 | # Also, since getopt_long is a GNU extension, we require optind=0. |
| 11884 | # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; |
| 11885 | # so take care to revert to the correct (non-)export state. |
| 11886 | gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' |
| 11887 | case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/nullscip-shell filesystem . . `/dev/null`.` in |
| 11888 | xx) gl_had_POSIXLY_CORRECT=exported ;; |
| 11889 | x) gl_had_POSIXLY_CORRECT=yes ;; |
| 11890 | *) gl_had_POSIXLY_CORRECT= ;; |
| 11891 | esac |
| 11892 | POSIXLY_CORRECT=1 |
| 11893 | export POSIXLY_CORRECT |
| 11894 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 11895 | then : |
| 11896 | gl_cv_func_getopt_gnu="$gl_cross_guess_normal" |
| 11897 | |
| 11898 | else $as_nop |
| 11899 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11900 | /* end confdefs.h. */ |
| 11901 | #include <getopt.h> |
| 11902 | #include <stddef.h> |
| 11903 | #include <string.h> |
| 11904 | |
| 11905 | #include <stdlib.h> |
| 11906 | #if defined __MACH__ && defined __APPLE__ |
| 11907 | /* Avoid a crash on Mac OS X. */ |
| 11908 | #include <mach/mach.h> |
| 11909 | #include <mach/mach_error.h> |
| 11910 | #include <mach/thread_status.h> |
| 11911 | #include <mach/exception.h> |
| 11912 | #include <mach/task.h> |
| 11913 | #include <pthread.h> |
| 11914 | /* The exception port on which our thread listens. */ |
| 11915 | static mach_port_t our_exception_port; |
| 11916 | /* The main function of the thread listening for exceptions of type |
| 11917 | EXC_BAD_ACCESS. */ |
| 11918 | static void * |
| 11919 | mach_exception_thread (void *arg) |
| 11920 | { |
| 11921 | /* Buffer for a message to be received. */ |
| 11922 | struct { |
| 11923 | mach_msg_header_t head; |
| 11924 | mach_msg_body_t msgh_body; |
| 11925 | char data[1024]; |
| 11926 | } msg; |
| 11927 | mach_msg_return_t retval; |
| 11928 | /* Wait for a message on the exception port. */ |
| 11929 | retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 11930 | our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 11931 | if (retval != MACH_MSG_SUCCESS) |
| 11932 | abort (); |
| 11933 | exit (1); |
| 11934 | } |
| 11935 | static void |
| 11936 | nocrash_init (void) |
| 11937 | { |
| 11938 | mach_port_t self = mach_task_self (); |
| 11939 | /* Allocate a port on which the thread shall listen for exceptions. */ |
| 11940 | if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 11941 | == KERN_SUCCESS) { |
| 11942 | /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 11943 | if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 11944 | MACH_MSG_TYPE_MAKE_SEND) |
| 11945 | == KERN_SUCCESS) { |
| 11946 | /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 11947 | for us. */ |
| 11948 | exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 11949 | /* Create the thread listening on the exception port. */ |
| 11950 | pthread_attr_t attr; |
| 11951 | pthread_t thread; |
| 11952 | if (pthread_attr_init (&attr) == 0 |
| 11953 | && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 11954 | && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 11955 | pthread_attr_destroy (&attr); |
| 11956 | /* Replace the exception port info for these exceptions with our own. |
| 11957 | Note that we replace the exception port for the entire task, not only |
| 11958 | for a particular thread. This has the effect that when our exception |
| 11959 | port gets the message, the thread specific exception port has already |
| 11960 | been asked, and we don't need to bother about it. |
| 11961 | See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 11962 | task_set_exception_ports (self, mask, our_exception_port, |
| 11963 | EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 11964 | } |
| 11965 | } |
| 11966 | } |
| 11967 | } |
| 11968 | #elif defined _WIN32 && ! defined __CYGWIN__ |
| 11969 | /* Avoid a crash on native Windows. */ |
| 11970 | #define WIN32_LEAN_AND_MEAN |
| 11971 | #include <windows.h> |
| 11972 | #include <winerror.h> |
| 11973 | static LONG WINAPI |
| 11974 | exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 11975 | { |
| 11976 | switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 11977 | { |
| 11978 | case EXCEPTION_ACCESS_VIOLATION: |
| 11979 | case EXCEPTION_IN_PAGE_ERROR: |
| 11980 | case EXCEPTION_STACK_OVERFLOW: |
| 11981 | case EXCEPTION_GUARD_PAGE: |
| 11982 | case EXCEPTION_PRIV_INSTRUCTION: |
| 11983 | case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 11984 | case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 11985 | case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 11986 | case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 11987 | exit (1); |
| 11988 | } |
| 11989 | return EXCEPTION_CONTINUE_SEARCH; |
| 11990 | } |
| 11991 | static void |
| 11992 | nocrash_init (void) |
| 11993 | { |
| 11994 | SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 11995 | } |
| 11996 | #else |
| 11997 | /* Avoid a crash on POSIX systems. */ |
| 11998 | #include <signal.h> |
| 11999 | #include <unistd.h> |
| 12000 | /* A POSIX signal handler. */ |
| 12001 | static void |
| 12002 | exception_handler (int sig) |
| 12003 | { |
| 12004 | _exit (1); |
| 12005 | } |
| 12006 | static void |
| 12007 | nocrash_init (void) |
| 12008 | { |
| 12009 | #ifdef SIGSEGV |
| 12010 | signal (SIGSEGV, exception_handler); |
| 12011 | #endif |
| 12012 | #ifdef SIGBUS |
| 12013 | signal (SIGBUS, exception_handler); |
| 12014 | #endif |
| 12015 | } |
| 12016 | #endif |
| 12017 | |
| 12018 | |
| 12019 | int |
| 12020 | main (void) |
| 12021 | { |
| 12022 | |
| 12023 | int result = 0; |
| 12024 | |
| 12025 | nocrash_init(); |
| 12026 | |
| 12027 | /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, |
| 12028 | and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, |
| 12029 | OSF/1 5.1, Solaris 10. */ |
| 12030 | { |
| 12031 | static char conftest[] = "conftest"; |
| 12032 | static char plus[] = "-+"; |
| 12033 | char *argv[3] = { conftest, plus, NULL }; |
| 12034 | opterr = 0; |
| 12035 | if (getopt (2, argv, "+a") != '?') |
| 12036 | result |= 1; |
| 12037 | } |
| 12038 | /* This code succeeds on glibc 2.8, mingw, |
| 12039 | and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
| 12040 | IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ |
| 12041 | { |
| 12042 | static char program[] = "program"; |
| 12043 | static char p[] = "-p"; |
| 12044 | static char foo[] = "foo"; |
| 12045 | static char bar[] = "bar"; |
| 12046 | char *argv[] = { program, p, foo, bar, NULL }; |
| 12047 | |
| 12048 | optind = 1; |
| 12049 | if (getopt (4, argv, "p::") != 'p') |
| 12050 | result |= 2; |
| 12051 | else if (optarg != NULL) |
| 12052 | result |= 4; |
| 12053 | else if (getopt (4, argv, "p::") != -1) |
| 12054 | result |= 6; |
| 12055 | else if (optind != 2) |
| 12056 | result |= 8; |
| 12057 | } |
| 12058 | /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ |
| 12059 | { |
| 12060 | static char program[] = "program"; |
| 12061 | static char foo[] = "foo"; |
| 12062 | static char p[] = "-p"; |
| 12063 | char *argv[] = { program, foo, p, NULL }; |
| 12064 | optind = 0; |
| 12065 | if (getopt (3, argv, "-p") != 1) |
| 12066 | result |= 16; |
| 12067 | else if (getopt (3, argv, "-p") != 'p') |
| 12068 | result |= 16; |
| 12069 | } |
| 12070 | /* This code fails on glibc 2.11. */ |
| 12071 | { |
| 12072 | static char program[] = "program"; |
| 12073 | static char b[] = "-b"; |
| 12074 | static char a[] = "-a"; |
| 12075 | char *argv[] = { program, b, a, NULL }; |
| 12076 | optind = opterr = 0; |
| 12077 | if (getopt (3, argv, "+:a:b") != 'b') |
| 12078 | result |= 32; |
| 12079 | else if (getopt (3, argv, "+:a:b") != ':') |
| 12080 | result |= 32; |
| 12081 | } |
| 12082 | /* This code dumps core on glibc 2.14. */ |
| 12083 | { |
| 12084 | static char program[] = "program"; |
| 12085 | static char w[] = "-W"; |
| 12086 | static char dummy[] = "dummy"; |
| 12087 | char *argv[] = { program, w, dummy, NULL }; |
| 12088 | optind = opterr = 1; |
| 12089 | if (getopt (3, argv, "W;") != 'W') |
| 12090 | result |= 64; |
| 12091 | } |
| 12092 | return result; |
| 12093 | |
| 12094 | ; |
| 12095 | return 0; |
| 12096 | } |
| 12097 | _ACEOF |
| 12098 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 12099 | then : |
| 12100 | gl_cv_func_getopt_gnu=yes |
| 12101 | else $as_nop |
| 12102 | gl_cv_func_getopt_gnu=no |
| 12103 | fi |
| 12104 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12105 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12106 | fi |
| 12107 | |
| 12108 | case $gl_had_POSIXLY_CORRECT in |
| 12109 | exported) ;; |
| 12110 | yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; |
| 12111 | *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; |
| 12112 | esac |
| 12113 | |
| 12114 | fi |
| 12115 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 |
| 12116 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getopt_gnu" >&6; } |
| 12117 | if testscip-shell system . . test. "$gl_cv_func_getopt_gnu" != yes; then |
| 12118 | gl_replace_getopt=yes |
| 12119 | else |
| 12120 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 |
| 12121 | printfscip-shell system . . printf. %s "checking for working GNU getopt_long function... " >&6; } |
| 12122 | if testscip-shell system . . test. ${gl_cv_func_getopt_long_gnu+y} |
| 12123 | then : |
| 12124 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12125 | else $as_nop |
| 12126 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 12127 | then : |
| 12128 | case "$host_os" in |
| 12129 | openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; |
| 12130 | *) gl_cv_func_getopt_long_gnu="guessing yes";; |
| 12131 | esac |
| 12132 | |
| 12133 | else $as_nop |
| 12134 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12135 | /* end confdefs.h. */ |
| 12136 | #include <getopt.h> |
| 12137 | #include <stddef.h> |
| 12138 | #include <string.h> |
| 12139 | |
| 12140 | int |
| 12141 | main (void) |
| 12142 | { |
| 12143 | static const struct option long_options[] = |
| 12144 | { |
| 12145 | { "xtremely-",no_argument, NULL, 1003 }, |
| 12146 | { "xtra", no_argument, NULL, 1001 }, |
| 12147 | { "xtreme", no_argument, NULL, 1002 }, |
| 12148 | { "xtremely", no_argument, NULL, 1003 }, |
| 12149 | { NULL, 0, NULL, 0 } |
| 12150 | }; |
| 12151 | /* This code fails on OpenBSD 5.0. */ |
| 12152 | { |
| 12153 | static char program[] = "program"; |
| 12154 | static char xtremel[] = "--xtremel"; |
| 12155 | char *argv[] = { program, xtremel, NULL }; |
| 12156 | int option_index; |
| 12157 | optind = 1; opterr = 0; |
| 12158 | if (getopt_long (2, argv, "", long_options, &option_index) != 1003) |
| 12159 | return 1; |
| 12160 | } |
| 12161 | return 0; |
| 12162 | |
| 12163 | ; |
| 12164 | return 0; |
| 12165 | } |
| 12166 | _ACEOF |
| 12167 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 12168 | then : |
| 12169 | gl_cv_func_getopt_long_gnu=yes |
| 12170 | else $as_nop |
| 12171 | gl_cv_func_getopt_long_gnu=no |
| 12172 | fi |
| 12173 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12174 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12175 | fi |
| 12176 | |
| 12177 | |
| 12178 | fi |
| 12179 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 |
| 12180 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; } |
| 12181 | case "$gl_cv_func_getopt_long_gnu" in |
| 12182 | *yes) ;; |
| 12183 | *) gl_replace_getopt=yes ;; |
| 12184 | esac |
| 12185 | fi |
| 12186 | fi |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | |
| 12191 | : |
| 12192 | |
| 12193 | |
| 12194 | HAVE_GETTIMEOFDAY=1; |
| 12195 | HAVE_STRUCT_TIMEVAL=1; |
| 12196 | HAVE_SYS_TIME_H=1; |
| 12197 | REPLACE_GETTIMEOFDAY=0; |
| 12198 | REPLACE_STRUCT_TIMEVAL=0; |
| 12199 | |
| 12200 | |
| 12201 | |
| 12202 | |
| 12203 | |
| 12204 | |
| 12205 | |
| 12206 | |
| 12207 | |
| 12208 | |
| 12209 | |
| 12210 | |
| 12211 | |
| 12212 | |
| 12213 | |
| 12214 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 12215 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 12216 | else |
| 12217 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 |
| 12218 | printfscip-shell system . . printf. %s "checking absolute name of <sys/time.h>... " >&6; } |
| 12219 | if testscip-shell system . . test. ${gl_cv_next_sys_time_h+y} |
| 12220 | then : |
| 12221 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12222 | else $as_nop |
| 12223 | |
| 12224 | if testscip-shell system . . test. $ac_cv_header_sys_time_h = yes; then |
| 12225 | |
| 12226 | |
| 12227 | |
| 12228 | |
| 12229 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12230 | /* end confdefs.h. */ |
| 12231 | #include <sys/time.h> |
| 12232 | _ACEOF |
| 12233 | case "$host_os" in |
| 12234 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 12235 | *) gl_absname_cpp="$ac_cpp" ;; |
| 12236 | esac |
| 12237 | |
| 12238 | case "$host_os" in |
| 12239 | mingw*) |
| 12240 | gl_dirsep_regex='[/\\]' |
| 12241 | ;; |
| 12242 | *) |
| 12243 | gl_dirsep_regex='\/' |
| 12244 | ;; |
| 12245 | esac |
| 12246 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 12247 | gl_header_literal_regex=`echoscip-shell system . . echo. 'sys/time.h' \ |
| 12248 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 12249 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 12250 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 12251 | s|^/[^/]|//&| |
| 12252 | p |
| 12253 | q |
| 12254 | }' |
| 12255 | |
| 12256 | gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 12257 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 12258 | |
| 12259 | gl_header=$gl_cv_absolute_sys_time_h |
| 12260 | gl_cv_next_sys_time_h='"'$gl_header'"' |
| 12261 | else |
| 12262 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 12263 | fi |
| 12264 | |
| 12265 | |
| 12266 | fi |
| 12267 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 |
| 12268 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_sys_time_h" >&6; } |
| 12269 | fi |
| 12270 | NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h |
| 12271 | |
| 12272 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 12273 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 12274 | gl_next_as_first_directive='<'sys/time.h'>' |
| 12275 | else |
| 12276 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 12277 | gl_next_as_first_directive=$gl_cv_next_sys_time_h |
| 12278 | fi |
| 12279 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive |
| 12280 | |
| 12281 | |
| 12282 | |
| 12283 | |
| 12284 | |
| 12285 | if testscip-shell system . . test. $ac_cv_header_sys_time_h != yes; then |
| 12286 | HAVE_SYS_TIME_H=0 |
| 12287 | fi |
| 12288 | |
| 12289 | |
| 12290 | |
| 12291 | |
| 12292 | |
| 12293 | if testscip-shell system . . test. $ac_cv_header_sys_socket_h != yes; then |
| 12294 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 12295 | if testscip-shell system . . test. "x$ac_cv_header_winsock2_h" = xyes |
| 12296 | then : |
| 12297 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h |
| 12298 | |
| 12299 | fi |
| 12300 | |
| 12301 | fi |
| 12302 | if testscip-shell system . . test. "$ac_cv_header_winsock2_h" = yes; then |
| 12303 | HAVE_WINSOCK2_H=1 |
| 12304 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 12305 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 12306 | else |
| 12307 | HAVE_WINSOCK2_H=0 |
| 12308 | fi |
| 12309 | |
| 12310 | |
| 12311 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 12312 | printfscip-shell system . . printf. %s "checking for struct timeval... " >&6; } |
| 12313 | if testscip-shell system . . test. ${gl_cv_sys_struct_timeval+y} |
| 12314 | then : |
| 12315 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12316 | else $as_nop |
| 12317 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12318 | /* end confdefs.h. */ |
| 12319 | #if HAVE_SYS_TIME_H |
| 12320 | #include <sys/time.h> |
| 12321 | #endif |
| 12322 | #include <time.h> |
| 12323 | #if HAVE_WINSOCK2_H |
| 12324 | # include <winsock2.h> |
| 12325 | #endif |
| 12326 | |
| 12327 | int |
| 12328 | main (void) |
| 12329 | { |
| 12330 | static struct timeval x; x.tv_sec = x.tv_usec; |
| 12331 | ; |
| 12332 | return 0; |
| 12333 | } |
| 12334 | _ACEOF |
| 12335 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12336 | then : |
| 12337 | gl_cv_sys_struct_timeval=yes |
| 12338 | else $as_nop |
| 12339 | gl_cv_sys_struct_timeval=no |
| 12340 | fi |
| 12341 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12342 | |
| 12343 | fi |
| 12344 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 |
| 12345 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timeval" >&6; } |
| 12346 | if testscip-shell system . . test. $gl_cv_sys_struct_timeval != yes; then |
| 12347 | HAVE_STRUCT_TIMEVAL=0 |
| 12348 | else |
| 12349 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 |
| 12350 | printfscip-shell system . . printf. %s "checking for wide-enough struct timeval.tv_sec member... " >&6; } |
| 12351 | if testscip-shell system . . test. ${gl_cv_sys_struct_timeval_tv_sec+y} |
| 12352 | then : |
| 12353 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12354 | else $as_nop |
| 12355 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12356 | /* end confdefs.h. */ |
| 12357 | #if HAVE_SYS_TIME_H |
| 12358 | #include <sys/time.h> |
| 12359 | #endif |
| 12360 | #include <time.h> |
| 12361 | #if HAVE_WINSOCK2_H |
| 12362 | # include <winsock2.h> |
| 12363 | #endif |
| 12364 | |
| 12365 | int |
| 12366 | main (void) |
| 12367 | { |
| 12368 | static struct timeval x; |
| 12369 | typedef int verify_tv_sec_type[ |
| 12370 | sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 |
| 12371 | ]; |
| 12372 | |
| 12373 | ; |
| 12374 | return 0; |
| 12375 | } |
| 12376 | _ACEOF |
| 12377 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12378 | then : |
| 12379 | gl_cv_sys_struct_timeval_tv_sec=yes |
| 12380 | else $as_nop |
| 12381 | gl_cv_sys_struct_timeval_tv_sec=no |
| 12382 | fi |
| 12383 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12384 | |
| 12385 | fi |
| 12386 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 |
| 12387 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; } |
| 12388 | if testscip-shell system . . test. $gl_cv_sys_struct_timeval_tv_sec != yes; then |
| 12389 | REPLACE_STRUCT_TIMEVAL=1 |
| 12390 | fi |
| 12391 | fi |
| 12392 | |
| 12393 | |
| 12394 | |
| 12395 | |
| 12396 | |
| 12397 | |
| 12398 | |
| 12399 | |
| 12400 | GL_GNULIB_GETTIMEOFDAY=0 |
| 12401 | |
| 12402 | |
| 12403 | |
| 12404 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 12405 | printfscip-shell system . . printf. %s "checking for inline... " >&6; } |
| 12406 | if testscip-shell system . . test. ${ac_cv_c_inline+y} |
| 12407 | then : |
| 12408 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12409 | else $as_nop |
| 12410 | ac_cv_c_inline=no |
| 12411 | for ac_kw in inline __inline__ __inline; do |
| 12412 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12413 | /* end confdefs.h. */ |
| 12414 | #ifndef __cplusplus |
| 12415 | typedef int foo_t; |
| 12416 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 12417 | $ac_kw foo_t foo (void) {return 0; } |
| 12418 | #endif |
| 12419 | |
| 12420 | _ACEOF |
| 12421 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12422 | then : |
| 12423 | ac_cv_c_inline=$ac_kw |
| 12424 | fi |
| 12425 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12426 | testscip-shell system . . test. "$ac_cv_c_inline" != no && break |
| 12427 | done |
| 12428 | |
| 12429 | fi |
| 12430 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 12431 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_inline" >&6; } |
| 12432 | |
| 12433 | case $ac_cv_c_inline in |
| 12434 | inline | yes) ;; |
| 12435 | *) |
| 12436 | case $ac_cv_c_inline in |
| 12437 | no) ac_val=;; |
| 12438 | *) ac_val=$ac_cv_c_inline;; |
| 12439 | esac |
| 12440 | catscip-shell system . . cat. >>confdefs.h <<_ACEOF |
| 12441 | #ifndef __cplusplus |
| 12442 | #define inline $ac_val |
| 12443 | #endif |
| 12444 | _ACEOF |
| 12445 | ;; |
| 12446 | esac |
| 12447 | |
| 12448 | |
| 12449 | |
| 12450 | |
| 12451 | |
| 12452 | |
| 12453 | |
| 12454 | |
| 12455 | |
| 12456 | |
| 12457 | |
| 12458 | |
| 12459 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 12460 | gl_cv_next_limits_h='<'limits.h'>' |
| 12461 | else |
| 12462 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 |
| 12463 | printfscip-shell system . . printf. %s "checking absolute name of <limits.h>... " >&6; } |
| 12464 | if testscip-shell system . . test. ${gl_cv_next_limits_h+y} |
| 12465 | then : |
| 12466 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12467 | else $as_nop |
| 12468 | |
| 12469 | if testscip-shell system . . test. $ac_cv_header_limits_h = yes; then |
| 12470 | |
| 12471 | |
| 12472 | |
| 12473 | |
| 12474 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12475 | /* end confdefs.h. */ |
| 12476 | #include <limits.h> |
| 12477 | _ACEOF |
| 12478 | case "$host_os" in |
| 12479 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 12480 | *) gl_absname_cpp="$ac_cpp" ;; |
| 12481 | esac |
| 12482 | |
| 12483 | case "$host_os" in |
| 12484 | mingw*) |
| 12485 | gl_dirsep_regex='[/\\]' |
| 12486 | ;; |
| 12487 | *) |
| 12488 | gl_dirsep_regex='\/' |
| 12489 | ;; |
| 12490 | esac |
| 12491 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 12492 | gl_header_literal_regex=`echoscip-shell system . . echo. 'limits.h' \ |
| 12493 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 12494 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 12495 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 12496 | s|^/[^/]|//&| |
| 12497 | p |
| 12498 | q |
| 12499 | }' |
| 12500 | |
| 12501 | gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 12502 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 12503 | |
| 12504 | gl_header=$gl_cv_absolute_limits_h |
| 12505 | gl_cv_next_limits_h='"'$gl_header'"' |
| 12506 | else |
| 12507 | gl_cv_next_limits_h='<'limits.h'>' |
| 12508 | fi |
| 12509 | |
| 12510 | |
| 12511 | fi |
| 12512 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 |
| 12513 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_limits_h" >&6; } |
| 12514 | fi |
| 12515 | NEXT_LIMITS_H=$gl_cv_next_limits_h |
| 12516 | |
| 12517 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 12518 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 12519 | gl_next_as_first_directive='<'limits.h'>' |
| 12520 | else |
| 12521 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 12522 | gl_next_as_first_directive=$gl_cv_next_limits_h |
| 12523 | fi |
| 12524 | NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5 |
| 12531 | printfscip-shell system . . printf. %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; } |
| 12532 | if testscip-shell system . . test. ${gl_cv_header_limits_width+y} |
| 12533 | then : |
| 12534 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12535 | else $as_nop |
| 12536 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12537 | /* end confdefs.h. */ |
| 12538 | #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ |
| 12539 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
| 12540 | #endif |
| 12541 | #include <limits.h> |
| 12542 | long long llm = LLONG_MAX; |
| 12543 | int wb = WORD_BIT; |
| 12544 | int ullw = ULLONG_WIDTH; |
| 12545 | int bw = BOOL_WIDTH; |
| 12546 | |
| 12547 | int |
| 12548 | main (void) |
| 12549 | { |
| 12550 | |
| 12551 | ; |
| 12552 | return 0; |
| 12553 | } |
| 12554 | _ACEOF |
| 12555 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12556 | then : |
| 12557 | gl_cv_header_limits_width=yes |
| 12558 | else $as_nop |
| 12559 | gl_cv_header_limits_width=no |
| 12560 | fi |
| 12561 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12562 | fi |
| 12563 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 |
| 12564 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_limits_width" >&6; } |
| 12565 | if testscip-shell system . . test. "$gl_cv_header_limits_width" = yes; then |
| 12566 | GL_GENERATE_LIMITS_H=false |
| 12567 | else |
| 12568 | GL_GENERATE_LIMITS_H=true |
| 12569 | fi |
| 12570 | |
| 12571 | |
| 12572 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 12573 | printfscip-shell system . . printf. %s "checking for wint_t... " >&6; } |
| 12574 | if testscip-shell system . . test. ${gt_cv_c_wint_t+y} |
| 12575 | then : |
| 12576 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12577 | else $as_nop |
| 12578 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12579 | /* end confdefs.h. */ |
| 12580 | #include <wchar.h> |
| 12581 | wint_t foo = (wchar_t)'\0'; |
| 12582 | int |
| 12583 | main (void) |
| 12584 | { |
| 12585 | |
| 12586 | ; |
| 12587 | return 0; |
| 12588 | } |
| 12589 | _ACEOF |
| 12590 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12591 | then : |
| 12592 | gt_cv_c_wint_t=yes |
| 12593 | else $as_nop |
| 12594 | gt_cv_c_wint_t=no |
| 12595 | fi |
| 12596 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12597 | fi |
| 12598 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 12599 | printfscip-shell system . . printf. "%s\n" "$gt_cv_c_wint_t" >&6; } |
| 12600 | if testscip-shell system . . test. $gt_cv_c_wint_t = yes; then |
| 12601 | |
| 12602 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h |
| 12603 | |
| 12604 | |
| 12605 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 |
| 12606 | printfscip-shell system . . printf. %s "checking whether wint_t is large enough... " >&6; } |
| 12607 | if testscip-shell system . . test. ${gl_cv_type_wint_t_large_enough+y} |
| 12608 | then : |
| 12609 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12610 | else $as_nop |
| 12611 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12612 | /* end confdefs.h. */ |
| 12613 | #include <wchar.h> |
| 12614 | int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; |
| 12615 | |
| 12616 | int |
| 12617 | main (void) |
| 12618 | { |
| 12619 | |
| 12620 | ; |
| 12621 | return 0; |
| 12622 | } |
| 12623 | _ACEOF |
| 12624 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12625 | then : |
| 12626 | gl_cv_type_wint_t_large_enough=yes |
| 12627 | else $as_nop |
| 12628 | gl_cv_type_wint_t_large_enough=no |
| 12629 | fi |
| 12630 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12631 | fi |
| 12632 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 |
| 12633 | printfscip-shell system . . printf. "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } |
| 12634 | if testscip-shell system . . test. $gl_cv_type_wint_t_large_enough = no; then |
| 12635 | GNULIBHEADERS_OVERRIDE_WINT_T=1 |
| 12636 | else |
| 12637 | GNULIBHEADERS_OVERRIDE_WINT_T=0 |
| 12638 | fi |
| 12639 | else |
| 12640 | GNULIBHEADERS_OVERRIDE_WINT_T=0 |
| 12641 | fi |
| 12642 | |
| 12643 | |
| 12644 | |
| 12645 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 |
| 12646 | printfscip-shell system . . printf. %s "checking whether the compiler produces multi-arch binaries... " >&6; } |
| 12647 | if testscip-shell system . . test. ${gl_cv_c_multiarch+y} |
| 12648 | then : |
| 12649 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12650 | else $as_nop |
| 12651 | gl_cv_c_multiarch=no |
| 12652 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12653 | /* end confdefs.h. */ |
| 12654 | #ifndef __APPLE_CC__ |
| 12655 | not a universal capable compiler |
| 12656 | #endif |
| 12657 | typedef int dummy; |
| 12658 | |
| 12659 | _ACEOF |
| 12660 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12661 | then : |
| 12662 | |
| 12663 | arch= |
| 12664 | prev= |
| 12665 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 12666 | if testscip-shell system . . test. -n "$prev"; then |
| 12667 | case $word in |
| 12668 | i?86 | x86_64 | ppc | ppc64 | arm | arm64) |
| 12669 | if testscip-shell system . . test. -z "$arch" || testscip-shell system . . test. "$arch" = "$word"; then |
| 12670 | arch="$word" |
| 12671 | else |
| 12672 | gl_cv_c_multiarch=yes |
| 12673 | fi |
| 12674 | ;; |
| 12675 | esac |
| 12676 | prev= |
| 12677 | else |
| 12678 | if testscip-shell system . . test. "x$word" = "x-arch"; then |
| 12679 | prev=arch |
| 12680 | fi |
| 12681 | fi |
| 12682 | done |
| 12683 | |
| 12684 | fi |
| 12685 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12686 | |
| 12687 | fi |
| 12688 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 |
| 12689 | printfscip-shell system . . printf. "%s\n" "$gl_cv_c_multiarch" >&6; } |
| 12690 | if testscip-shell system . . test. $gl_cv_c_multiarch = yes; then |
| 12691 | APPLE_UNIVERSAL_BUILD=1 |
| 12692 | else |
| 12693 | APPLE_UNIVERSAL_BUILD=0 |
| 12694 | fi |
| 12695 | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 | |
| 12700 | |
| 12701 | |
| 12702 | |
| 12703 | printfscip-shell system . . printf. "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 12704 | |
| 12705 | |
| 12706 | printfscip-shell system . . printf. "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 12707 | |
| 12708 | |
| 12709 | |
| 12710 | if testscip-shell system . . test. $ac_cv_header_wchar_h = yes; then |
| 12711 | HAVE_WCHAR_H=1 |
| 12712 | else |
| 12713 | HAVE_WCHAR_H=0 |
| 12714 | fi |
| 12715 | |
| 12716 | |
| 12717 | |
| 12718 | if testscip-shell system . . test. $ac_cv_header_inttypes_h = yes; then |
| 12719 | HAVE_INTTYPES_H=1 |
| 12720 | else |
| 12721 | HAVE_INTTYPES_H=0 |
| 12722 | fi |
| 12723 | |
| 12724 | |
| 12725 | |
| 12726 | if testscip-shell system . . test. $ac_cv_header_sys_types_h = yes; then |
| 12727 | HAVE_SYS_TYPES_H=1 |
| 12728 | else |
| 12729 | HAVE_SYS_TYPES_H=0 |
| 12730 | fi |
| 12731 | |
| 12732 | |
| 12733 | |
| 12734 | |
| 12735 | |
| 12736 | |
| 12737 | |
| 12738 | |
| 12739 | |
| 12740 | |
| 12741 | |
| 12742 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 12743 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 12744 | else |
| 12745 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 12746 | printfscip-shell system . . printf. %s "checking absolute name of <stdint.h>... " >&6; } |
| 12747 | if testscip-shell system . . test. ${gl_cv_next_stdint_h+y} |
| 12748 | then : |
| 12749 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12750 | else $as_nop |
| 12751 | |
| 12752 | if testscip-shell system . . test. $ac_cv_header_stdint_h = yes; then |
| 12753 | |
| 12754 | |
| 12755 | |
| 12756 | |
| 12757 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12758 | /* end confdefs.h. */ |
| 12759 | #include <stdint.h> |
| 12760 | _ACEOF |
| 12761 | case "$host_os" in |
| 12762 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 12763 | *) gl_absname_cpp="$ac_cpp" ;; |
| 12764 | esac |
| 12765 | |
| 12766 | case "$host_os" in |
| 12767 | mingw*) |
| 12768 | gl_dirsep_regex='[/\\]' |
| 12769 | ;; |
| 12770 | *) |
| 12771 | gl_dirsep_regex='\/' |
| 12772 | ;; |
| 12773 | esac |
| 12774 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 12775 | gl_header_literal_regex=`echoscip-shell system . . echo. 'stdint.h' \ |
| 12776 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 12777 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 12778 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 12779 | s|^/[^/]|//&| |
| 12780 | p |
| 12781 | q |
| 12782 | }' |
| 12783 | |
| 12784 | gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 12785 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 12786 | |
| 12787 | gl_header=$gl_cv_absolute_stdint_h |
| 12788 | gl_cv_next_stdint_h='"'$gl_header'"' |
| 12789 | else |
| 12790 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 12791 | fi |
| 12792 | |
| 12793 | |
| 12794 | fi |
| 12795 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 12796 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_stdint_h" >&6; } |
| 12797 | fi |
| 12798 | NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 12799 | |
| 12800 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 12801 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 12802 | gl_next_as_first_directive='<'stdint.h'>' |
| 12803 | else |
| 12804 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 12805 | gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 12806 | fi |
| 12807 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 12808 | |
| 12809 | |
| 12810 | |
| 12811 | |
| 12812 | if testscip-shell system . . test. $ac_cv_header_stdint_h = yes; then |
| 12813 | HAVE_STDINT_H=1 |
| 12814 | else |
| 12815 | HAVE_STDINT_H=0 |
| 12816 | fi |
| 12817 | |
| 12818 | |
| 12819 | if testscip-shell system . . test. $ac_cv_header_stdint_h = yes; then |
| 12820 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 12821 | printfscip-shell system . . printf. %s "checking whether stdint.h conforms to C99... " >&6; } |
| 12822 | if testscip-shell system . . test. ${gl_cv_header_working_stdint_h+y} |
| 12823 | then : |
| 12824 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 12825 | else $as_nop |
| 12826 | gl_cv_header_working_stdint_h=no |
| 12827 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12828 | /* end confdefs.h. */ |
| 12829 | |
| 12830 | |
| 12831 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 12832 | #define __STDC_CONSTANT_MACROS 1 |
| 12833 | #define __STDC_LIMIT_MACROS 1 |
| 12834 | #include <stdint.h> |
| 12835 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 12836 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 12837 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 12838 | #endif |
| 12839 | |
| 12840 | |
| 12841 | #include <stddef.h> |
| 12842 | #include <signal.h> |
| 12843 | #if HAVE_WCHAR_H |
| 12844 | # include <wchar.h> |
| 12845 | #endif |
| 12846 | |
| 12847 | |
| 12848 | #ifdef INT8_MAX |
| 12849 | int8_t a1 = INT8_MAX; |
| 12850 | int8_t a1min = INT8_MIN; |
| 12851 | #endif |
| 12852 | #ifdef INT16_MAX |
| 12853 | int16_t a2 = INT16_MAX; |
| 12854 | int16_t a2min = INT16_MIN; |
| 12855 | #endif |
| 12856 | #ifdef INT32_MAX |
| 12857 | int32_t a3 = INT32_MAX; |
| 12858 | int32_t a3min = INT32_MIN; |
| 12859 | #endif |
| 12860 | #ifdef INT64_MAX |
| 12861 | int64_t a4 = INT64_MAX; |
| 12862 | int64_t a4min = INT64_MIN; |
| 12863 | #endif |
| 12864 | #ifdef UINT8_MAX |
| 12865 | uint8_t b1 = UINT8_MAX; |
| 12866 | #else |
| 12867 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 12868 | #endif |
| 12869 | #ifdef UINT16_MAX |
| 12870 | uint16_t b2 = UINT16_MAX; |
| 12871 | #endif |
| 12872 | #ifdef UINT32_MAX |
| 12873 | uint32_t b3 = UINT32_MAX; |
| 12874 | #endif |
| 12875 | #ifdef UINT64_MAX |
| 12876 | uint64_t b4 = UINT64_MAX; |
| 12877 | #endif |
| 12878 | int_least8_t c1 = INT8_C (0x7f); |
| 12879 | int_least8_t c1max = INT_LEAST8_MAX; |
| 12880 | int_least8_t c1min = INT_LEAST8_MIN; |
| 12881 | int_least16_t c2 = INT16_C (0x7fff); |
| 12882 | int_least16_t c2max = INT_LEAST16_MAX; |
| 12883 | int_least16_t c2min = INT_LEAST16_MIN; |
| 12884 | int_least32_t c3 = INT32_C (0x7fffffff); |
| 12885 | int_least32_t c3max = INT_LEAST32_MAX; |
| 12886 | int_least32_t c3min = INT_LEAST32_MIN; |
| 12887 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 12888 | int_least64_t c4max = INT_LEAST64_MAX; |
| 12889 | int_least64_t c4min = INT_LEAST64_MIN; |
| 12890 | uint_least8_t d1 = UINT8_C (0xff); |
| 12891 | uint_least8_t d1max = UINT_LEAST8_MAX; |
| 12892 | uint_least16_t d2 = UINT16_C (0xffff); |
| 12893 | uint_least16_t d2max = UINT_LEAST16_MAX; |
| 12894 | uint_least32_t d3 = UINT32_C (0xffffffff); |
| 12895 | uint_least32_t d3max = UINT_LEAST32_MAX; |
| 12896 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 12897 | uint_least64_t d4max = UINT_LEAST64_MAX; |
| 12898 | int_fast8_t e1 = INT_FAST8_MAX; |
| 12899 | int_fast8_t e1min = INT_FAST8_MIN; |
| 12900 | int_fast16_t e2 = INT_FAST16_MAX; |
| 12901 | int_fast16_t e2min = INT_FAST16_MIN; |
| 12902 | int_fast32_t e3 = INT_FAST32_MAX; |
| 12903 | int_fast32_t e3min = INT_FAST32_MIN; |
| 12904 | int_fast64_t e4 = INT_FAST64_MAX; |
| 12905 | int_fast64_t e4min = INT_FAST64_MIN; |
| 12906 | uint_fast8_t f1 = UINT_FAST8_MAX; |
| 12907 | uint_fast16_t f2 = UINT_FAST16_MAX; |
| 12908 | uint_fast32_t f3 = UINT_FAST32_MAX; |
| 12909 | uint_fast64_t f4 = UINT_FAST64_MAX; |
| 12910 | #ifdef INTPTR_MAX |
| 12911 | intptr_t g = INTPTR_MAX; |
| 12912 | intptr_t gmin = INTPTR_MIN; |
| 12913 | #endif |
| 12914 | #ifdef UINTPTR_MAX |
| 12915 | uintptr_t h = UINTPTR_MAX; |
| 12916 | #endif |
| 12917 | intmax_t i = INTMAX_MAX; |
| 12918 | uintmax_t j = UINTMAX_MAX; |
| 12919 | |
| 12920 | /* Check that SIZE_MAX has the correct type, if possible. */ |
| 12921 | #if 201112 <= __STDC_VERSION__ |
| 12922 | int k = _Generic (SIZE_MAX, size_t: 0); |
| 12923 | #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ |
| 12924 | || (0x5110 <= __SUNPRO_C && !__STDC__)) |
| 12925 | extern size_t k; |
| 12926 | extern __typeof__ (SIZE_MAX) k; |
| 12927 | #endif |
| 12928 | |
| 12929 | #include <limits.h> /* for CHAR_BIT */ |
| 12930 | #define TYPE_MINIMUM(t) \ |
| 12931 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 12932 | #define TYPE_MAXIMUM(t) \ |
| 12933 | ((t) ((t) 0 < (t) -1 \ |
| 12934 | ? (t) -1 \ |
| 12935 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 12936 | struct s { |
| 12937 | int check_PTRDIFF: |
| 12938 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 12939 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 12940 | ? 1 : -1; |
| 12941 | /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */ |
| 12942 | int check_SIG_ATOMIC: |
| 12943 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 12944 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 12945 | ? 1 : -1; |
| 12946 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 12947 | int check_WCHAR: |
| 12948 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 12949 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 12950 | ? 1 : -1; |
| 12951 | /* Detect bug in mingw. */ |
| 12952 | int check_WINT: |
| 12953 | WINT_MIN == TYPE_MINIMUM (wint_t) |
| 12954 | && WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 12955 | ? 1 : -1; |
| 12956 | |
| 12957 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 12958 | int check_UINT8_C: |
| 12959 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 12960 | int check_UINT16_C: |
| 12961 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 12962 | |
| 12963 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 12964 | #ifdef UINT8_MAX |
| 12965 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 12966 | #endif |
| 12967 | #ifdef UINT16_MAX |
| 12968 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 12969 | #endif |
| 12970 | #ifdef UINT32_MAX |
| 12971 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 12972 | #endif |
| 12973 | #ifdef UINT64_MAX |
| 12974 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 12975 | #endif |
| 12976 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 12977 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 12978 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 12979 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 12980 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 12981 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 12982 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 12983 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 12984 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 12985 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 12986 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 12987 | }; |
| 12988 | |
| 12989 | int |
| 12990 | main (void) |
| 12991 | { |
| 12992 | |
| 12993 | ; |
| 12994 | return 0; |
| 12995 | } |
| 12996 | _ACEOF |
| 12997 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 12998 | then : |
| 12999 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 13000 | then : |
| 13001 | case "$host_os" in |
| 13002 | # Guess yes on native Windows. |
| 13003 | mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; |
| 13004 | # In general, assume it works. |
| 13005 | *) gl_cv_header_working_stdint_h="guessing yes" ;; |
| 13006 | esac |
| 13007 | |
| 13008 | else $as_nop |
| 13009 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13010 | /* end confdefs.h. */ |
| 13011 | |
| 13012 | |
| 13013 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 13014 | #define __STDC_CONSTANT_MACROS 1 |
| 13015 | #define __STDC_LIMIT_MACROS 1 |
| 13016 | #include <stdint.h> |
| 13017 | |
| 13018 | |
| 13019 | #include <stddef.h> |
| 13020 | #include <signal.h> |
| 13021 | #if HAVE_WCHAR_H |
| 13022 | # include <wchar.h> |
| 13023 | #endif |
| 13024 | |
| 13025 | |
| 13026 | #include <stdio.h> |
| 13027 | #include <string.h> |
| 13028 | #define MVAL(macro) MVAL1(macro) |
| 13029 | #define MVAL1(expression) #expression |
| 13030 | static const char *macro_values[] = |
| 13031 | { |
| 13032 | #ifdef INT8_MAX |
| 13033 | MVAL (INT8_MAX), |
| 13034 | #endif |
| 13035 | #ifdef INT16_MAX |
| 13036 | MVAL (INT16_MAX), |
| 13037 | #endif |
| 13038 | #ifdef INT32_MAX |
| 13039 | MVAL (INT32_MAX), |
| 13040 | #endif |
| 13041 | #ifdef INT64_MAX |
| 13042 | MVAL (INT64_MAX), |
| 13043 | #endif |
| 13044 | #ifdef UINT8_MAX |
| 13045 | MVAL (UINT8_MAX), |
| 13046 | #endif |
| 13047 | #ifdef UINT16_MAX |
| 13048 | MVAL (UINT16_MAX), |
| 13049 | #endif |
| 13050 | #ifdef UINT32_MAX |
| 13051 | MVAL (UINT32_MAX), |
| 13052 | #endif |
| 13053 | #ifdef UINT64_MAX |
| 13054 | MVAL (UINT64_MAX), |
| 13055 | #endif |
| 13056 | NULL |
| 13057 | }; |
| 13058 | |
| 13059 | int |
| 13060 | main (void) |
| 13061 | { |
| 13062 | |
| 13063 | const char **mv; |
| 13064 | for (mv = macro_values; *mv != NULL; mv++) |
| 13065 | { |
| 13066 | const char *value = *mv; |
| 13067 | /* Test whether it looks like a cast expression. */ |
| 13068 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 13069 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 13070 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 13071 | || strncmp (value, "((int)"/*)*/, 6) == 0 |
| 13072 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 13073 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 13074 | return mv - macro_values + 1; |
| 13075 | } |
| 13076 | return 0; |
| 13077 | |
| 13078 | ; |
| 13079 | return 0; |
| 13080 | } |
| 13081 | _ACEOF |
| 13082 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 13083 | then : |
| 13084 | gl_cv_header_working_stdint_h=yes |
| 13085 | fi |
| 13086 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13087 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13088 | fi |
| 13089 | |
| 13090 | |
| 13091 | fi |
| 13092 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13093 | |
| 13094 | fi |
| 13095 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 13096 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_working_stdint_h" >&6; } |
| 13097 | fi |
| 13098 | |
| 13099 | HAVE_C99_STDINT_H=0 |
| 13100 | HAVE_SYS_BITYPES_H=0 |
| 13101 | HAVE_SYS_INTTYPES_H=0 |
| 13102 | GL_GENERATE_STDINT_H=true |
| 13103 | case "$gl_cv_header_working_stdint_h" in |
| 13104 | *yes) |
| 13105 | HAVE_C99_STDINT_H=1 |
| 13106 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 |
| 13107 | printfscip-shell system . . printf. %s "checking whether stdint.h works without ISO C predefines... " >&6; } |
| 13108 | if testscip-shell system . . test. ${gl_cv_header_stdint_without_STDC_macros+y} |
| 13109 | then : |
| 13110 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13111 | else $as_nop |
| 13112 | gl_cv_header_stdint_without_STDC_macros=no |
| 13113 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13114 | /* end confdefs.h. */ |
| 13115 | |
| 13116 | |
| 13117 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 13118 | #include <stdint.h> |
| 13119 | |
| 13120 | |
| 13121 | #include <stddef.h> |
| 13122 | #include <signal.h> |
| 13123 | #if HAVE_WCHAR_H |
| 13124 | # include <wchar.h> |
| 13125 | #endif |
| 13126 | |
| 13127 | |
| 13128 | intmax_t im = INTMAX_MAX; |
| 13129 | int32_t i32 = INT32_C (0x7fffffff); |
| 13130 | |
| 13131 | int |
| 13132 | main (void) |
| 13133 | { |
| 13134 | |
| 13135 | ; |
| 13136 | return 0; |
| 13137 | } |
| 13138 | _ACEOF |
| 13139 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 13140 | then : |
| 13141 | gl_cv_header_stdint_without_STDC_macros=yes |
| 13142 | fi |
| 13143 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13144 | |
| 13145 | fi |
| 13146 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 |
| 13147 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } |
| 13148 | |
| 13149 | if testscip-shell system . . test. $gl_cv_header_stdint_without_STDC_macros = no; then |
| 13150 | |
| 13151 | printfscip-shell system . . printf. "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h |
| 13152 | |
| 13153 | |
| 13154 | printfscip-shell system . . printf. "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h |
| 13155 | |
| 13156 | fi |
| 13157 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 |
| 13158 | printfscip-shell system . . printf. %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } |
| 13159 | if testscip-shell system . . test. ${gl_cv_header_stdint_width+y} |
| 13160 | then : |
| 13161 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13162 | else $as_nop |
| 13163 | gl_cv_header_stdint_width=no |
| 13164 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13165 | /* end confdefs.h. */ |
| 13166 | |
| 13167 | /* Work if build is not clean. */ |
| 13168 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 |
| 13169 | #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ |
| 13170 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 |
| 13171 | #endif |
| 13172 | #include <stdint.h> |
| 13173 | |
| 13174 | #include <stddef.h> |
| 13175 | #include <signal.h> |
| 13176 | #if HAVE_WCHAR_H |
| 13177 | # include <wchar.h> |
| 13178 | #endif |
| 13179 | |
| 13180 | int iw = UINTMAX_WIDTH; |
| 13181 | |
| 13182 | int |
| 13183 | main (void) |
| 13184 | { |
| 13185 | |
| 13186 | ; |
| 13187 | return 0; |
| 13188 | } |
| 13189 | _ACEOF |
| 13190 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 13191 | then : |
| 13192 | gl_cv_header_stdint_width=yes |
| 13193 | fi |
| 13194 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13195 | fi |
| 13196 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 |
| 13197 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_stdint_width" >&6; } |
| 13198 | if testscip-shell system . . test. "$gl_cv_header_stdint_width" = yes; then |
| 13199 | GL_GENERATE_STDINT_H=false |
| 13200 | fi |
| 13201 | ;; |
| 13202 | *) |
| 13203 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" |
| 13204 | if testscip-shell system . . test. "x$ac_cv_header_sys_inttypes_h" = xyes |
| 13205 | then : |
| 13206 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h |
| 13207 | |
| 13208 | fi |
| 13209 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" |
| 13210 | if testscip-shell system . . test. "x$ac_cv_header_sys_bitypes_h" = xyes |
| 13211 | then : |
| 13212 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h |
| 13213 | |
| 13214 | fi |
| 13215 | |
| 13216 | if testscip-shell system . . test. $ac_cv_header_sys_inttypes_h = yes; then |
| 13217 | HAVE_SYS_INTTYPES_H=1 |
| 13218 | fi |
| 13219 | if testscip-shell system . . test. $ac_cv_header_sys_bitypes_h = yes; then |
| 13220 | HAVE_SYS_BITYPES_H=1 |
| 13221 | fi |
| 13222 | |
| 13223 | |
| 13224 | if testscip-shell system . . test. $APPLE_UNIVERSAL_BUILD = 0; then |
| 13225 | |
| 13226 | |
| 13227 | for gltype in ptrdiff_t size_t ; do |
| 13228 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 13229 | printfscip-shell system . . printf. %s "checking for bit size of $gltype... " >&6; } |
| 13230 | if eval test \${gl_cv_bitsizeof_${gltype}+y} |
| 13231 | then : |
| 13232 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13233 | else $as_nop |
| 13234 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 13235 | #include <stddef.h> |
| 13236 | #include <signal.h> |
| 13237 | #if HAVE_WCHAR_H |
| 13238 | # include <wchar.h> |
| 13239 | #endif |
| 13240 | |
| 13241 | #include <limits.h>" |
| 13242 | then : |
| 13243 | |
| 13244 | else $as_nop |
| 13245 | result=unknown |
| 13246 | fi |
| 13247 | |
| 13248 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 13249 | |
| 13250 | fi |
| 13251 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 13252 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13253 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 13254 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 13255 | if testscip-shell system . . test. $result = unknown; then |
| 13256 | result=0 |
| 13257 | fi |
| 13258 | GLTYPE=`echoscip-shell system . . echo. "$gltype" | trscip-shell system . . tr. 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 13259 | printfscip-shell system . . printf. "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h |
| 13260 | |
| 13261 | eval BITSIZEOF_${GLTYPE}=\$result |
| 13262 | done |
| 13263 | |
| 13264 | |
| 13265 | fi |
| 13266 | |
| 13267 | |
| 13268 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 13269 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 13270 | printfscip-shell system . . printf. %s "checking for bit size of $gltype... " >&6; } |
| 13271 | if eval test \${gl_cv_bitsizeof_${gltype}+y} |
| 13272 | then : |
| 13273 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13274 | else $as_nop |
| 13275 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 13276 | #include <stddef.h> |
| 13277 | #include <signal.h> |
| 13278 | #if HAVE_WCHAR_H |
| 13279 | # include <wchar.h> |
| 13280 | #endif |
| 13281 | |
| 13282 | #include <limits.h>" |
| 13283 | then : |
| 13284 | |
| 13285 | else $as_nop |
| 13286 | result=unknown |
| 13287 | fi |
| 13288 | |
| 13289 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 13290 | |
| 13291 | fi |
| 13292 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 13293 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13294 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 13295 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 13296 | if testscip-shell system . . test. $result = unknown; then |
| 13297 | result=0 |
| 13298 | fi |
| 13299 | GLTYPE=`echoscip-shell system . . echo. "$gltype" | trscip-shell system . . tr. 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 13300 | printfscip-shell system . . printf. "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h |
| 13301 | |
| 13302 | eval BITSIZEOF_${GLTYPE}=\$result |
| 13303 | done |
| 13304 | |
| 13305 | |
| 13306 | |
| 13307 | |
| 13308 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 13309 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 13310 | printfscip-shell system . . printf. %s "checking whether $gltype is signed... " >&6; } |
| 13311 | if eval test \${gl_cv_type_${gltype}_signed+y} |
| 13312 | then : |
| 13313 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13314 | else $as_nop |
| 13315 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13316 | /* end confdefs.h. */ |
| 13317 | |
| 13318 | #include <stddef.h> |
| 13319 | #include <signal.h> |
| 13320 | #if HAVE_WCHAR_H |
| 13321 | # include <wchar.h> |
| 13322 | #endif |
| 13323 | |
| 13324 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 13325 | int |
| 13326 | main (void) |
| 13327 | { |
| 13328 | |
| 13329 | ; |
| 13330 | return 0; |
| 13331 | } |
| 13332 | _ACEOF |
| 13333 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 13334 | then : |
| 13335 | result=yes |
| 13336 | else $as_nop |
| 13337 | result=no |
| 13338 | fi |
| 13339 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13340 | eval gl_cv_type_${gltype}_signed=\$result |
| 13341 | |
| 13342 | fi |
| 13343 | eval ac_res=\$gl_cv_type_${gltype}_signed |
| 13344 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13345 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 13346 | eval result=\$gl_cv_type_${gltype}_signed |
| 13347 | GLTYPE=`echoscip-shell system . . echo. $gltype | trscip-shell system . . tr. 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 13348 | if testscip-shell system . . test. "$result" = yes; then |
| 13349 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h |
| 13350 | |
| 13351 | eval HAVE_SIGNED_${GLTYPE}=1 |
| 13352 | else |
| 13353 | eval HAVE_SIGNED_${GLTYPE}=0 |
| 13354 | fi |
| 13355 | done |
| 13356 | |
| 13357 | |
| 13358 | gl_cv_type_ptrdiff_t_signed=yes |
| 13359 | gl_cv_type_size_t_signed=no |
| 13360 | if testscip-shell system . . test. $APPLE_UNIVERSAL_BUILD = 0; then |
| 13361 | |
| 13362 | |
| 13363 | for gltype in ptrdiff_t size_t ; do |
| 13364 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 13365 | printfscip-shell system . . printf. %s "checking for $gltype integer literal suffix... " >&6; } |
| 13366 | if eval test \${gl_cv_type_${gltype}_suffix+y} |
| 13367 | then : |
| 13368 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13369 | else $as_nop |
| 13370 | eval gl_cv_type_${gltype}_suffix=no |
| 13371 | eval result=\$gl_cv_type_${gltype}_signed |
| 13372 | if testscip-shell system . . test. "$result" = yes; then |
| 13373 | glsufu= |
| 13374 | else |
| 13375 | glsufu=u |
| 13376 | fi |
| 13377 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 13378 | case $glsuf in |
| 13379 | '') gltype1='int';; |
| 13380 | l) gltype1='long int';; |
| 13381 | ll) gltype1='long long int';; |
| 13382 | i64) gltype1='__int64';; |
| 13383 | u) gltype1='unsigned int';; |
| 13384 | ul) gltype1='unsigned long int';; |
| 13385 | ull) gltype1='unsigned long long int';; |
| 13386 | ui64)gltype1='unsigned __int64';; |
| 13387 | esac |
| 13388 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13389 | /* end confdefs.h. */ |
| 13390 | |
| 13391 | #include <stddef.h> |
| 13392 | #include <signal.h> |
| 13393 | #if HAVE_WCHAR_H |
| 13394 | # include <wchar.h> |
| 13395 | #endif |
| 13396 | |
| 13397 | extern $gltype foo; |
| 13398 | extern $gltype1 foo; |
| 13399 | int |
| 13400 | main (void) |
| 13401 | { |
| 13402 | |
| 13403 | ; |
| 13404 | return 0; |
| 13405 | } |
| 13406 | _ACEOF |
| 13407 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 13408 | then : |
| 13409 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 13410 | fi |
| 13411 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13412 | eval result=\$gl_cv_type_${gltype}_suffix |
| 13413 | testscip-shell system . . test. "$result" != no && break |
| 13414 | done |
| 13415 | fi |
| 13416 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 13417 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13418 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 13419 | GLTYPE=`echoscip-shell system . . echo. $gltype | trscip-shell system . . tr. 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 13420 | eval result=\$gl_cv_type_${gltype}_suffix |
| 13421 | testscip-shell system . . test. "$result" = no && result= |
| 13422 | eval ${GLTYPE}_SUFFIX=\$result |
| 13423 | printfscip-shell system . . printf. "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h |
| 13424 | |
| 13425 | done |
| 13426 | |
| 13427 | |
| 13428 | fi |
| 13429 | |
| 13430 | |
| 13431 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 13432 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 13433 | printfscip-shell system . . printf. %s "checking for $gltype integer literal suffix... " >&6; } |
| 13434 | if eval test \${gl_cv_type_${gltype}_suffix+y} |
| 13435 | then : |
| 13436 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13437 | else $as_nop |
| 13438 | eval gl_cv_type_${gltype}_suffix=no |
| 13439 | eval result=\$gl_cv_type_${gltype}_signed |
| 13440 | if testscip-shell system . . test. "$result" = yes; then |
| 13441 | glsufu= |
| 13442 | else |
| 13443 | glsufu=u |
| 13444 | fi |
| 13445 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 13446 | case $glsuf in |
| 13447 | '') gltype1='int';; |
| 13448 | l) gltype1='long int';; |
| 13449 | ll) gltype1='long long int';; |
| 13450 | i64) gltype1='__int64';; |
| 13451 | u) gltype1='unsigned int';; |
| 13452 | ul) gltype1='unsigned long int';; |
| 13453 | ull) gltype1='unsigned long long int';; |
| 13454 | ui64)gltype1='unsigned __int64';; |
| 13455 | esac |
| 13456 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13457 | /* end confdefs.h. */ |
| 13458 | |
| 13459 | #include <stddef.h> |
| 13460 | #include <signal.h> |
| 13461 | #if HAVE_WCHAR_H |
| 13462 | # include <wchar.h> |
| 13463 | #endif |
| 13464 | |
| 13465 | extern $gltype foo; |
| 13466 | extern $gltype1 foo; |
| 13467 | int |
| 13468 | main (void) |
| 13469 | { |
| 13470 | |
| 13471 | ; |
| 13472 | return 0; |
| 13473 | } |
| 13474 | _ACEOF |
| 13475 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 13476 | then : |
| 13477 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 13478 | fi |
| 13479 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13480 | eval result=\$gl_cv_type_${gltype}_suffix |
| 13481 | testscip-shell system . . test. "$result" != no && break |
| 13482 | done |
| 13483 | fi |
| 13484 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 13485 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13486 | printfscip-shell system . . printf. "%s\n" "$ac_res" >&6; } |
| 13487 | GLTYPE=`echoscip-shell system . . echo. $gltype | trscip-shell system . . tr. 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 13488 | eval result=\$gl_cv_type_${gltype}_suffix |
| 13489 | testscip-shell system . . test. "$result" = no && result= |
| 13490 | eval ${GLTYPE}_SUFFIX=\$result |
| 13491 | printfscip-shell system . . printf. "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h |
| 13492 | |
| 13493 | done |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | if testscip-shell system . . test. $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then |
| 13498 | BITSIZEOF_WINT_T=32 |
| 13499 | fi |
| 13500 | |
| 13501 | ;; |
| 13502 | esac |
| 13503 | |
| 13504 | |
| 13505 | |
| 13506 | GL_GENERATE_LIMITS_H=true |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | HAVE_DECL_IMAXABS=1; |
| 13515 | HAVE_DECL_IMAXDIV=1; |
| 13516 | HAVE_DECL_STRTOIMAX=1; |
| 13517 | HAVE_DECL_STRTOUMAX=1; |
| 13518 | HAVE_IMAXDIV_T=1; |
| 13519 | REPLACE_STRTOIMAX=0; |
| 13520 | REPLACE_STRTOUMAX=0; |
| 13521 | INT32_MAX_LT_INTMAX_MAX=1; |
| 13522 | INT64_MAX_EQ_LONG_MAX='defined _LP64'; |
| 13523 | PRIPTR_PREFIX=__PRIPTR_PREFIX; |
| 13524 | UINT32_MAX_LT_UINTMAX_MAX=1; |
| 13525 | UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 13542 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 13543 | else |
| 13544 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 |
| 13545 | printfscip-shell system . . printf. %s "checking absolute name of <inttypes.h>... " >&6; } |
| 13546 | if testscip-shell system . . test. ${gl_cv_next_inttypes_h+y} |
| 13547 | then : |
| 13548 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13549 | else $as_nop |
| 13550 | |
| 13551 | if testscip-shell system . . test. $ac_cv_header_inttypes_h = yes; then |
| 13552 | |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13557 | /* end confdefs.h. */ |
| 13558 | #include <inttypes.h> |
| 13559 | _ACEOF |
| 13560 | case "$host_os" in |
| 13561 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 13562 | *) gl_absname_cpp="$ac_cpp" ;; |
| 13563 | esac |
| 13564 | |
| 13565 | case "$host_os" in |
| 13566 | mingw*) |
| 13567 | gl_dirsep_regex='[/\\]' |
| 13568 | ;; |
| 13569 | *) |
| 13570 | gl_dirsep_regex='\/' |
| 13571 | ;; |
| 13572 | esac |
| 13573 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 13574 | gl_header_literal_regex=`echoscip-shell system . . echo. 'inttypes.h' \ |
| 13575 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 13576 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 13577 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 13578 | s|^/[^/]|//&| |
| 13579 | p |
| 13580 | q |
| 13581 | }' |
| 13582 | |
| 13583 | gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 13584 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 13585 | |
| 13586 | gl_header=$gl_cv_absolute_inttypes_h |
| 13587 | gl_cv_next_inttypes_h='"'$gl_header'"' |
| 13588 | else |
| 13589 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 13590 | fi |
| 13591 | |
| 13592 | |
| 13593 | fi |
| 13594 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
| 13595 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_inttypes_h" >&6; } |
| 13596 | fi |
| 13597 | NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
| 13598 | |
| 13599 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 13600 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 13601 | gl_next_as_first_directive='<'inttypes.h'>' |
| 13602 | else |
| 13603 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 13604 | gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 13605 | fi |
| 13606 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | |
| 13620 | |
| 13621 | |
| 13622 | GL_GNULIB_IMAXABS=0 |
| 13623 | |
| 13624 | |
| 13625 | |
| 13626 | GL_GNULIB_IMAXDIV=0 |
| 13627 | |
| 13628 | |
| 13629 | |
| 13630 | GL_GNULIB_STRTOIMAX=0 |
| 13631 | |
| 13632 | |
| 13633 | |
| 13634 | GL_GNULIB_STRTOUMAX=0 |
| 13635 | |
| 13636 | |
| 13637 | |
| 13638 | |
| 13639 | |
| 13640 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
| 13641 | printfscip-shell system . . printf. %s "checking whether lstat correctly handles trailing slash... " >&6; } |
| 13642 | if testscip-shell system . . test. ${gl_cv_func_lstat_dereferences_slashed_symlink+y} |
| 13643 | then : |
| 13644 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13645 | else $as_nop |
| 13646 | rmscip-shell system . . rm. -f conftest.sym conftest.file |
| 13647 | echoscip-shell system . . echo. >conftest.file |
| 13648 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 13649 | then : |
| 13650 | case "$host_os" in |
| 13651 | linux-* | linux) |
| 13652 | # Guess yes on Linux systems. |
| 13653 | gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; |
| 13654 | *-gnu* | gnu*) |
| 13655 | # Guess yes on glibc systems. |
| 13656 | gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; |
| 13657 | mingw*) |
| 13658 | # Guess no on native Windows. |
| 13659 | gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; |
| 13660 | *) |
| 13661 | # If we don't know, obey --enable-cross-guesses. |
| 13662 | gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;; |
| 13663 | esac |
| 13664 | |
| 13665 | else $as_nop |
| 13666 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13667 | /* end confdefs.h. */ |
| 13668 | $ac_includes_default |
| 13669 | int |
| 13670 | main (void) |
| 13671 | { |
| 13672 | struct stat sbuf; |
| 13673 | if (symlink ("conftest.file", "conftest.sym") != 0) |
| 13674 | return 1; |
| 13675 | /* Linux will dereference the symlink and fail, as required by |
| 13676 | POSIX. That is better in the sense that it means we will not |
| 13677 | have to compile and use the lstat wrapper. */ |
| 13678 | return lstat ("conftest.sym/", &sbuf) == 0; |
| 13679 | |
| 13680 | ; |
| 13681 | return 0; |
| 13682 | } |
| 13683 | _ACEOF |
| 13684 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 13685 | then : |
| 13686 | gl_cv_func_lstat_dereferences_slashed_symlink=yes |
| 13687 | else $as_nop |
| 13688 | gl_cv_func_lstat_dereferences_slashed_symlink=no |
| 13689 | fi |
| 13690 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13691 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13692 | fi |
| 13693 | |
| 13694 | rmscip-shell system . . rm. -f conftest.sym conftest.file |
| 13695 | |
| 13696 | fi |
| 13697 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 |
| 13698 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
| 13699 | case "$gl_cv_func_lstat_dereferences_slashed_symlink" in |
| 13700 | *yes) |
| 13701 | |
| 13702 | printfscip-shell system . . printf. "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h |
| 13703 | |
| 13704 | ;; |
| 13705 | esac |
| 13706 | |
| 13707 | |
| 13708 | |
| 13709 | |
| 13710 | # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it |
| 13711 | # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is |
| 13712 | # irrelevant for anonymous mappings. |
| 13713 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "mmap" "ac_cv_func_mmap" |
| 13714 | if testscip-shell system . . test. "x$ac_cv_func_mmap" = xyes |
| 13715 | then : |
| 13716 | gl_have_mmap=yes |
| 13717 | else $as_nop |
| 13718 | gl_have_mmap=no |
| 13719 | fi |
| 13720 | |
| 13721 | |
| 13722 | # Try to allow MAP_ANONYMOUS. |
| 13723 | gl_have_mmap_anonymous=no |
| 13724 | if testscip-shell system . . test. $gl_have_mmap = yes; then |
| 13725 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 |
| 13726 | printfscip-shell system . . printf. %s "checking for MAP_ANONYMOUS... " >&6; } |
| 13727 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13728 | /* end confdefs.h. */ |
| 13729 | |
| 13730 | #include <sys/mman.h> |
| 13731 | #ifdef MAP_ANONYMOUS |
| 13732 | I cannot identify this map |
| 13733 | #endif |
| 13734 | |
| 13735 | _ACEOF |
| 13736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13737 | $EGREP "I cannot identify this map" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 13738 | then : |
| 13739 | gl_have_mmap_anonymous=yes |
| 13740 | fi |
| 13741 | rmscip-shell system . . rm. -rf conftest* |
| 13742 | |
| 13743 | if testscip-shell system . . test. $gl_have_mmap_anonymous != yes; then |
| 13744 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13745 | /* end confdefs.h. */ |
| 13746 | |
| 13747 | #include <sys/mman.h> |
| 13748 | #ifdef MAP_ANON |
| 13749 | I cannot identify this map |
| 13750 | #endif |
| 13751 | |
| 13752 | _ACEOF |
| 13753 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13754 | $EGREP "I cannot identify this map" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 13755 | then : |
| 13756 | |
| 13757 | printfscip-shell system . . printf. "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h |
| 13758 | |
| 13759 | gl_have_mmap_anonymous=yes |
| 13760 | fi |
| 13761 | rmscip-shell system . . rm. -rf conftest* |
| 13762 | |
| 13763 | fi |
| 13764 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 |
| 13765 | printfscip-shell system . . printf. "%s\n" "$gl_have_mmap_anonymous" >&6; } |
| 13766 | if testscip-shell system . . test. $gl_have_mmap_anonymous = yes; then |
| 13767 | |
| 13768 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h |
| 13769 | |
| 13770 | fi |
| 13771 | fi |
| 13772 | |
| 13773 | |
| 13774 | |
| 13775 | |
| 13776 | HAVE_MBSLEN=0; |
| 13777 | HAVE_EXPLICIT_BZERO=1; |
| 13778 | HAVE_FFSL=1; |
| 13779 | HAVE_FFSLL=1; |
| 13780 | HAVE_DECL_MEMMEM=1; |
| 13781 | HAVE_MEMPCPY=1; |
| 13782 | HAVE_DECL_MEMRCHR=1; |
| 13783 | HAVE_RAWMEMCHR=1; |
| 13784 | HAVE_STPCPY=1; |
| 13785 | HAVE_STPNCPY=1; |
| 13786 | HAVE_STRCHRNUL=1; |
| 13787 | HAVE_DECL_STRDUP=1; |
| 13788 | HAVE_DECL_STRNDUP=1; |
| 13789 | HAVE_DECL_STRNLEN=1; |
| 13790 | HAVE_STRPBRK=1; |
| 13791 | HAVE_STRSEP=1; |
| 13792 | HAVE_STRCASESTR=1; |
| 13793 | HAVE_DECL_STRTOK_R=1; |
| 13794 | HAVE_DECL_STRERROR_R=1; |
| 13795 | HAVE_STRERRORNAME_NP=1; |
| 13796 | HAVE_SIGABBREV_NP=1; |
| 13797 | HAVE_SIGDESCR_NP=1; |
| 13798 | HAVE_DECL_STRSIGNAL=1; |
| 13799 | HAVE_STRVERSCMP=1; |
| 13800 | REPLACE_FFSLL=0; |
| 13801 | REPLACE_MEMCHR=0; |
| 13802 | REPLACE_MEMMEM=0; |
| 13803 | REPLACE_STPNCPY=0; |
| 13804 | REPLACE_STRCHRNUL=0; |
| 13805 | REPLACE_STRDUP=0; |
| 13806 | REPLACE_STRNCAT=0; |
| 13807 | REPLACE_STRNDUP=0; |
| 13808 | REPLACE_STRNLEN=0; |
| 13809 | REPLACE_STRSTR=0; |
| 13810 | REPLACE_STRCASESTR=0; |
| 13811 | REPLACE_STRTOK_R=0; |
| 13812 | REPLACE_STRERROR=0; |
| 13813 | REPLACE_STRERROR_R=0; |
| 13814 | REPLACE_STRERRORNAME_NP=0; |
| 13815 | REPLACE_STRSIGNAL=0; |
| 13816 | UNDEFINE_STRTOK_R=0; |
| 13817 | |
| 13818 | |
| 13819 | |
| 13820 | |
| 13821 | |
| 13822 | |
| 13823 | |
| 13824 | |
| 13825 | # Detect platform-specific bugs in some versions of glibc: |
| 13826 | # memchr should not dereference anything with length 0 |
| 13827 | # https://bugzilla.redhat.com/show_bug.cgi?id=499689 |
| 13828 | # memchr should not dereference overestimated length after a match |
| 13829 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 |
| 13830 | # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 |
| 13831 | # memchr should cast the second argument to 'unsigned char'. |
| 13832 | # This bug exists in Android 4.3. |
| 13833 | # Assume that memchr works on platforms that lack mprotect. |
| 13834 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 |
| 13835 | printfscip-shell system . . printf. %s "checking whether memchr works... " >&6; } |
| 13836 | if testscip-shell system . . test. ${gl_cv_func_memchr_works+y} |
| 13837 | then : |
| 13838 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 13839 | else $as_nop |
| 13840 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 13841 | then : |
| 13842 | case "$host_os" in |
| 13843 | # Guess no on Android. |
| 13844 | linux*-android*) gl_cv_func_memchr_works="guessing no" ;; |
| 13845 | # Guess yes on native Windows. |
| 13846 | mingw*) gl_cv_func_memchr_works="guessing yes" ;; |
| 13847 | # If we don't know, obey --enable-cross-guesses. |
| 13848 | *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; |
| 13849 | esac |
| 13850 | |
| 13851 | else $as_nop |
| 13852 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13853 | /* end confdefs.h. */ |
| 13854 | |
| 13855 | #include <string.h> |
| 13856 | #if HAVE_SYS_MMAN_H |
| 13857 | # include <fcntl.h> |
| 13858 | # include <unistd.h> |
| 13859 | # include <sys/types.h> |
| 13860 | # include <sys/mman.h> |
| 13861 | # ifndef MAP_FILE |
| 13862 | # define MAP_FILE 0 |
| 13863 | # endif |
| 13864 | #endif |
| 13865 | |
| 13866 | int |
| 13867 | main (void) |
| 13868 | { |
| 13869 | |
| 13870 | int result = 0; |
| 13871 | char *fence = NULL; |
| 13872 | #if HAVE_SYS_MMAN_H && HAVE_MPROTECT |
| 13873 | # if HAVE_MAP_ANONYMOUS |
| 13874 | const int flags = MAP_ANONYMOUS | MAP_PRIVATE; |
| 13875 | const int fd = -1; |
| 13876 | # else /* !HAVE_MAP_ANONYMOUS */ |
| 13877 | const int flags = MAP_FILE | MAP_PRIVATE; |
| 13878 | int fd = open ("/dev/zero", O_RDONLY, 0666); |
| 13879 | if (fd >= 0) |
| 13880 | # endif |
| 13881 | { |
| 13882 | int pagesize = getpagesize (); |
| 13883 | char *two_pages = |
| 13884 | (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, |
| 13885 | flags, fd, 0); |
| 13886 | if (two_pages != (char *)(-1) |
| 13887 | && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) |
| 13888 | fence = two_pages + pagesize; |
| 13889 | } |
| 13890 | #endif |
| 13891 | if (fence) |
| 13892 | { |
| 13893 | /* Test against bugs on glibc systems. */ |
| 13894 | if (memchr (fence, 0, 0)) |
| 13895 | result |= 1; |
| 13896 | strcpy (fence - 9, "12345678"); |
| 13897 | if (memchr (fence - 9, 0, 79) != fence - 1) |
| 13898 | result |= 2; |
| 13899 | if (memchr (fence - 1, 0, 3) != fence - 1) |
| 13900 | result |= 4; |
| 13901 | /* Test against bug on AIX 7.2. */ |
| 13902 | if (memchr (fence - 4, '6', 16) != fence - 4) |
| 13903 | result |= 8; |
| 13904 | } |
| 13905 | /* Test against bug on Android 4.3. */ |
| 13906 | { |
| 13907 | char input[3]; |
| 13908 | input[0] = 'a'; |
| 13909 | input[1] = 'b'; |
| 13910 | input[2] = 'c'; |
| 13911 | if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) |
| 13912 | result |= 16; |
| 13913 | } |
| 13914 | return result; |
| 13915 | |
| 13916 | ; |
| 13917 | return 0; |
| 13918 | } |
| 13919 | _ACEOF |
| 13920 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 13921 | then : |
| 13922 | gl_cv_func_memchr_works=yes |
| 13923 | else $as_nop |
| 13924 | gl_cv_func_memchr_works=no |
| 13925 | fi |
| 13926 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13928 | fi |
| 13929 | |
| 13930 | |
| 13931 | fi |
| 13932 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 |
| 13933 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_memchr_works" >&6; } |
| 13934 | case "$gl_cv_func_memchr_works" in |
| 13935 | *yes) ;; |
| 13936 | *) REPLACE_MEMCHR=1 ;; |
| 13937 | esac |
| 13938 | |
| 13939 | |
| 13940 | |
| 13941 | GL_GNULIB_EXPLICIT_BZERO=0 |
| 13942 | |
| 13943 | |
| 13944 | |
| 13945 | GL_GNULIB_FFSL=0 |
| 13946 | |
| 13947 | |
| 13948 | |
| 13949 | GL_GNULIB_FFSLL=0 |
| 13950 | |
| 13951 | |
| 13952 | |
| 13953 | GL_GNULIB_MEMCHR=0 |
| 13954 | |
| 13955 | |
| 13956 | |
| 13957 | GL_GNULIB_MEMMEM=0 |
| 13958 | |
| 13959 | |
| 13960 | |
| 13961 | GL_GNULIB_MEMPCPY=0 |
| 13962 | |
| 13963 | |
| 13964 | |
| 13965 | GL_GNULIB_MEMRCHR=0 |
| 13966 | |
| 13967 | |
| 13968 | |
| 13969 | GL_GNULIB_RAWMEMCHR=0 |
| 13970 | |
| 13971 | |
| 13972 | |
| 13973 | GL_GNULIB_STPCPY=0 |
| 13974 | |
| 13975 | |
| 13976 | |
| 13977 | GL_GNULIB_STPNCPY=0 |
| 13978 | |
| 13979 | |
| 13980 | |
| 13981 | GL_GNULIB_STRCHRNUL=0 |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | GL_GNULIB_STRDUP=0 |
| 13986 | |
| 13987 | |
| 13988 | |
| 13989 | GL_GNULIB_STRNCAT=0 |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | GL_GNULIB_STRNDUP=0 |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | GL_GNULIB_STRNLEN=0 |
| 13998 | |
| 13999 | |
| 14000 | |
| 14001 | GL_GNULIB_STRPBRK=0 |
| 14002 | |
| 14003 | |
| 14004 | |
| 14005 | GL_GNULIB_STRSEP=0 |
| 14006 | |
| 14007 | |
| 14008 | |
| 14009 | GL_GNULIB_STRSTR=0 |
| 14010 | |
| 14011 | |
| 14012 | |
| 14013 | GL_GNULIB_STRCASESTR=0 |
| 14014 | |
| 14015 | |
| 14016 | |
| 14017 | GL_GNULIB_STRTOK_R=0 |
| 14018 | |
| 14019 | |
| 14020 | |
| 14021 | GL_GNULIB_MBSLEN=0 |
| 14022 | |
| 14023 | |
| 14024 | |
| 14025 | GL_GNULIB_MBSNLEN=0 |
| 14026 | |
| 14027 | |
| 14028 | |
| 14029 | GL_GNULIB_MBSCHR=0 |
| 14030 | |
| 14031 | |
| 14032 | |
| 14033 | GL_GNULIB_MBSRCHR=0 |
| 14034 | |
| 14035 | |
| 14036 | |
| 14037 | GL_GNULIB_MBSSTR=0 |
| 14038 | |
| 14039 | |
| 14040 | |
| 14041 | GL_GNULIB_MBSCASECMP=0 |
| 14042 | |
| 14043 | |
| 14044 | |
| 14045 | GL_GNULIB_MBSNCASECMP=0 |
| 14046 | |
| 14047 | |
| 14048 | |
| 14049 | GL_GNULIB_MBSPCASECMP=0 |
| 14050 | |
| 14051 | |
| 14052 | |
| 14053 | GL_GNULIB_MBSCASESTR=0 |
| 14054 | |
| 14055 | |
| 14056 | |
| 14057 | GL_GNULIB_MBSCSPN=0 |
| 14058 | |
| 14059 | |
| 14060 | |
| 14061 | GL_GNULIB_MBSPBRK=0 |
| 14062 | |
| 14063 | |
| 14064 | |
| 14065 | GL_GNULIB_MBSSPN=0 |
| 14066 | |
| 14067 | |
| 14068 | |
| 14069 | GL_GNULIB_MBSSEP=0 |
| 14070 | |
| 14071 | |
| 14072 | |
| 14073 | GL_GNULIB_MBSTOK_R=0 |
| 14074 | |
| 14075 | |
| 14076 | |
| 14077 | GL_GNULIB_STRERROR=0 |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | GL_GNULIB_STRERROR_R=0 |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | GL_GNULIB_STRERRORNAME_NP=0 |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | GL_GNULIB_SIGABBREV_NP=0 |
| 14090 | |
| 14091 | |
| 14092 | |
| 14093 | GL_GNULIB_SIGDESCR_NP=0 |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | GL_GNULIB_STRSIGNAL=0 |
| 14098 | |
| 14099 | |
| 14100 | |
| 14101 | GL_GNULIB_STRVERSCMP=0 |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | GL_GNULIB_MDA_MEMCCPY=1 |
| 14106 | |
| 14107 | |
| 14108 | |
| 14109 | GL_GNULIB_MDA_STRDUP=1 |
| 14110 | |
| 14111 | |
| 14112 | |
| 14113 | |
| 14114 | |
| 14115 | |
| 14116 | |
| 14117 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5 |
| 14118 | printfscip-shell system . . printf. %s "checking whether <limits.h> defines MIN and MAX... " >&6; } |
| 14119 | if testscip-shell system . . test. ${gl_cv_minmax_in_limits_h+y} |
| 14120 | then : |
| 14121 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14122 | else $as_nop |
| 14123 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14124 | /* end confdefs.h. */ |
| 14125 | #include <limits.h> |
| 14126 | int x = MIN (42, 17); |
| 14127 | int |
| 14128 | main (void) |
| 14129 | { |
| 14130 | |
| 14131 | ; |
| 14132 | return 0; |
| 14133 | } |
| 14134 | _ACEOF |
| 14135 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14136 | then : |
| 14137 | gl_cv_minmax_in_limits_h=yes |
| 14138 | else $as_nop |
| 14139 | gl_cv_minmax_in_limits_h=no |
| 14140 | fi |
| 14141 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14142 | fi |
| 14143 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 |
| 14144 | printfscip-shell system . . printf. "%s\n" "$gl_cv_minmax_in_limits_h" >&6; } |
| 14145 | if testscip-shell system . . test. $gl_cv_minmax_in_limits_h = yes; then |
| 14146 | |
| 14147 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h |
| 14148 | |
| 14149 | fi |
| 14150 | |
| 14151 | |
| 14152 | |
| 14153 | |
| 14154 | |
| 14155 | |
| 14156 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5 |
| 14157 | printfscip-shell system . . printf. %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; } |
| 14158 | if testscip-shell system . . test. ${gl_cv_minmax_in_sys_param_h+y} |
| 14159 | then : |
| 14160 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14161 | else $as_nop |
| 14162 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14163 | /* end confdefs.h. */ |
| 14164 | #include <sys/param.h> |
| 14165 | int x = MIN (42, 17); |
| 14166 | int |
| 14167 | main (void) |
| 14168 | { |
| 14169 | |
| 14170 | ; |
| 14171 | return 0; |
| 14172 | } |
| 14173 | _ACEOF |
| 14174 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14175 | then : |
| 14176 | gl_cv_minmax_in_sys_param_h=yes |
| 14177 | else $as_nop |
| 14178 | gl_cv_minmax_in_sys_param_h=no |
| 14179 | fi |
| 14180 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14181 | fi |
| 14182 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 |
| 14183 | printfscip-shell system . . printf. "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; } |
| 14184 | if testscip-shell system . . test. $gl_cv_minmax_in_sys_param_h = yes; then |
| 14185 | |
| 14186 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h |
| 14187 | |
| 14188 | fi |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | |
| 14193 | |
| 14194 | |
| 14195 | |
| 14196 | |
| 14197 | |
| 14198 | HAVE_DECL_FCLOSEALL=1; |
| 14199 | HAVE_DECL_FPURGE=1; |
| 14200 | HAVE_DECL_FSEEKO=1; |
| 14201 | HAVE_DECL_FTELLO=1; |
| 14202 | HAVE_DECL_GETDELIM=1; |
| 14203 | HAVE_DECL_GETLINE=1; |
| 14204 | HAVE_DECL_OBSTACK_PRINTF=1; |
| 14205 | HAVE_DECL_SNPRINTF=1; |
| 14206 | HAVE_DECL_VSNPRINTF=1; |
| 14207 | HAVE_DPRINTF=1; |
| 14208 | HAVE_FSEEKO=1; |
| 14209 | HAVE_FTELLO=1; |
| 14210 | HAVE_PCLOSE=1; |
| 14211 | HAVE_POPEN=1; |
| 14212 | HAVE_RENAMEAT=1; |
| 14213 | HAVE_VASPRINTF=1; |
| 14214 | HAVE_VDPRINTF=1; |
| 14215 | REPLACE_DPRINTF=0; |
| 14216 | REPLACE_FCLOSE=0; |
| 14217 | REPLACE_FDOPEN=0; |
| 14218 | REPLACE_FFLUSH=0; |
| 14219 | REPLACE_FOPEN=0; |
| 14220 | REPLACE_FOPEN_FOR_FOPEN_GNU=0; |
| 14221 | REPLACE_FPRINTF=0; |
| 14222 | REPLACE_FPURGE=0; |
| 14223 | REPLACE_FREOPEN=0; |
| 14224 | REPLACE_FSEEK=0; |
| 14225 | REPLACE_FSEEKO=0; |
| 14226 | REPLACE_FTELL=0; |
| 14227 | REPLACE_FTELLO=0; |
| 14228 | REPLACE_GETDELIM=0; |
| 14229 | REPLACE_GETLINE=0; |
| 14230 | REPLACE_OBSTACK_PRINTF=0; |
| 14231 | REPLACE_PERROR=0; |
| 14232 | REPLACE_POPEN=0; |
| 14233 | REPLACE_PRINTF=0; |
| 14234 | REPLACE_REMOVE=0; |
| 14235 | REPLACE_RENAME=0; |
| 14236 | REPLACE_RENAMEAT=0; |
| 14237 | REPLACE_SNPRINTF=0; |
| 14238 | REPLACE_SPRINTF=0; |
| 14239 | REPLACE_STDIO_READ_FUNCS=0; |
| 14240 | REPLACE_STDIO_WRITE_FUNCS=0; |
| 14241 | REPLACE_TMPFILE=0; |
| 14242 | REPLACE_VASPRINTF=0; |
| 14243 | REPLACE_VDPRINTF=0; |
| 14244 | REPLACE_VFPRINTF=0; |
| 14245 | REPLACE_VPRINTF=0; |
| 14246 | REPLACE_VSNPRINTF=0; |
| 14247 | REPLACE_VSPRINTF=0; |
| 14248 | |
| 14249 | |
| 14250 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "obstack_printf" "ac_cv_have_decl_obstack_printf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 14251 | if testscip-shell system . . test. "x$ac_cv_have_decl_obstack_printf" = xyes |
| 14252 | then : |
| 14253 | ac_have_decl=1 |
| 14254 | else $as_nop |
| 14255 | ac_have_decl=0 |
| 14256 | fi |
| 14257 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_OBSTACK_PRINTF $ac_have_decl" >>confdefs.h |
| 14258 | |
| 14259 | |
| 14260 | |
| 14261 | GL_GNULIB_DPRINTF=0 |
| 14262 | |
| 14263 | |
| 14264 | |
| 14265 | GL_GNULIB_FCLOSE=0 |
| 14266 | |
| 14267 | |
| 14268 | |
| 14269 | GL_GNULIB_FDOPEN=0 |
| 14270 | |
| 14271 | |
| 14272 | |
| 14273 | GL_GNULIB_FFLUSH=0 |
| 14274 | |
| 14275 | |
| 14276 | |
| 14277 | GL_GNULIB_FGETC=0 |
| 14278 | |
| 14279 | |
| 14280 | |
| 14281 | GL_GNULIB_FGETS=0 |
| 14282 | |
| 14283 | |
| 14284 | |
| 14285 | GL_GNULIB_FOPEN=0 |
| 14286 | |
| 14287 | |
| 14288 | |
| 14289 | GL_GNULIB_FOPEN_GNU=0 |
| 14290 | |
| 14291 | |
| 14292 | |
| 14293 | GL_GNULIB_FPRINTF=0 |
| 14294 | |
| 14295 | |
| 14296 | |
| 14297 | GL_GNULIB_FPRINTF_POSIX=0 |
| 14298 | |
| 14299 | |
| 14300 | |
| 14301 | GL_GNULIB_FPURGE=0 |
| 14302 | |
| 14303 | |
| 14304 | |
| 14305 | GL_GNULIB_FPUTC=0 |
| 14306 | |
| 14307 | |
| 14308 | |
| 14309 | GL_GNULIB_FPUTS=0 |
| 14310 | |
| 14311 | |
| 14312 | |
| 14313 | GL_GNULIB_FREAD=0 |
| 14314 | |
| 14315 | |
| 14316 | |
| 14317 | GL_GNULIB_FREOPEN=0 |
| 14318 | |
| 14319 | |
| 14320 | |
| 14321 | GL_GNULIB_FSCANF=0 |
| 14322 | |
| 14323 | |
| 14324 | |
| 14325 | GL_GNULIB_FSEEK=0 |
| 14326 | |
| 14327 | |
| 14328 | |
| 14329 | GL_GNULIB_FSEEKO=0 |
| 14330 | |
| 14331 | |
| 14332 | |
| 14333 | GL_GNULIB_FTELL=0 |
| 14334 | |
| 14335 | |
| 14336 | |
| 14337 | GL_GNULIB_FTELLO=0 |
| 14338 | |
| 14339 | |
| 14340 | |
| 14341 | GL_GNULIB_FWRITE=0 |
| 14342 | |
| 14343 | |
| 14344 | |
| 14345 | GL_GNULIB_GETC=0 |
| 14346 | |
| 14347 | |
| 14348 | |
| 14349 | GL_GNULIB_GETCHAR=0 |
| 14350 | |
| 14351 | |
| 14352 | |
| 14353 | GL_GNULIB_GETDELIM=0 |
| 14354 | |
| 14355 | |
| 14356 | |
| 14357 | GL_GNULIB_GETLINE=0 |
| 14358 | |
| 14359 | |
| 14360 | |
| 14361 | GL_GNULIB_OBSTACK_PRINTF=0 |
| 14362 | |
| 14363 | |
| 14364 | |
| 14365 | GL_GNULIB_OBSTACK_PRINTF_POSIX=0 |
| 14366 | |
| 14367 | |
| 14368 | |
| 14369 | GL_GNULIB_PCLOSE=0 |
| 14370 | |
| 14371 | |
| 14372 | |
| 14373 | GL_GNULIB_PERROR=0 |
| 14374 | |
| 14375 | |
| 14376 | |
| 14377 | GL_GNULIB_POPEN=0 |
| 14378 | |
| 14379 | |
| 14380 | |
| 14381 | GL_GNULIB_PRINTF=0 |
| 14382 | |
| 14383 | |
| 14384 | |
| 14385 | GL_GNULIB_PRINTF_POSIX=0 |
| 14386 | |
| 14387 | |
| 14388 | |
| 14389 | GL_GNULIB_PUTC=0 |
| 14390 | |
| 14391 | |
| 14392 | |
| 14393 | GL_GNULIB_PUTCHAR=0 |
| 14394 | |
| 14395 | |
| 14396 | |
| 14397 | GL_GNULIB_PUTS=0 |
| 14398 | |
| 14399 | |
| 14400 | |
| 14401 | GL_GNULIB_REMOVE=0 |
| 14402 | |
| 14403 | |
| 14404 | |
| 14405 | GL_GNULIB_RENAME=0 |
| 14406 | |
| 14407 | |
| 14408 | |
| 14409 | GL_GNULIB_RENAMEAT=0 |
| 14410 | |
| 14411 | |
| 14412 | |
| 14413 | GL_GNULIB_SCANF=0 |
| 14414 | |
| 14415 | |
| 14416 | |
| 14417 | GL_GNULIB_SNPRINTF=0 |
| 14418 | |
| 14419 | |
| 14420 | |
| 14421 | GL_GNULIB_SPRINTF_POSIX=0 |
| 14422 | |
| 14423 | |
| 14424 | |
| 14425 | GL_GNULIB_STDIO_H_NONBLOCKING=0 |
| 14426 | |
| 14427 | |
| 14428 | |
| 14429 | GL_GNULIB_STDIO_H_SIGPIPE=0 |
| 14430 | |
| 14431 | |
| 14432 | |
| 14433 | GL_GNULIB_TMPFILE=0 |
| 14434 | |
| 14435 | |
| 14436 | |
| 14437 | GL_GNULIB_VASPRINTF=0 |
| 14438 | |
| 14439 | |
| 14440 | |
| 14441 | GL_GNULIB_VFSCANF=0 |
| 14442 | |
| 14443 | |
| 14444 | |
| 14445 | GL_GNULIB_VSCANF=0 |
| 14446 | |
| 14447 | |
| 14448 | |
| 14449 | GL_GNULIB_VDPRINTF=0 |
| 14450 | |
| 14451 | |
| 14452 | |
| 14453 | GL_GNULIB_VFPRINTF=0 |
| 14454 | |
| 14455 | |
| 14456 | |
| 14457 | GL_GNULIB_VFPRINTF_POSIX=0 |
| 14458 | |
| 14459 | |
| 14460 | |
| 14461 | GL_GNULIB_VPRINTF=0 |
| 14462 | |
| 14463 | |
| 14464 | |
| 14465 | GL_GNULIB_VPRINTF_POSIX=0 |
| 14466 | |
| 14467 | |
| 14468 | |
| 14469 | GL_GNULIB_VSNPRINTF=0 |
| 14470 | |
| 14471 | |
| 14472 | |
| 14473 | GL_GNULIB_VSPRINTF_POSIX=0 |
| 14474 | |
| 14475 | |
| 14476 | |
| 14477 | GL_GNULIB_MDA_FCLOSEALL=1 |
| 14478 | |
| 14479 | |
| 14480 | |
| 14481 | GL_GNULIB_MDA_FDOPEN=1 |
| 14482 | |
| 14483 | |
| 14484 | |
| 14485 | GL_GNULIB_MDA_FILENO=1 |
| 14486 | |
| 14487 | |
| 14488 | |
| 14489 | GL_GNULIB_MDA_GETW=1 |
| 14490 | |
| 14491 | |
| 14492 | |
| 14493 | GL_GNULIB_MDA_PUTW=1 |
| 14494 | |
| 14495 | |
| 14496 | |
| 14497 | GL_GNULIB_MDA_TEMPNAM=1 |
| 14498 | |
| 14499 | |
| 14500 | |
| 14501 | |
| 14502 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 |
| 14503 | printfscip-shell system . . printf. %s "checking for O_CLOEXEC... " >&6; } |
| 14504 | if testscip-shell system . . test. ${gl_cv_macro_O_CLOEXEC+y} |
| 14505 | then : |
| 14506 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14507 | else $as_nop |
| 14508 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14509 | /* end confdefs.h. */ |
| 14510 | #include <fcntl.h> |
| 14511 | #ifndef O_CLOEXEC |
| 14512 | choke me; |
| 14513 | #endif |
| 14514 | |
| 14515 | int |
| 14516 | main (void) |
| 14517 | { |
| 14518 | return O_CLOEXEC; |
| 14519 | ; |
| 14520 | return 0; |
| 14521 | } |
| 14522 | _ACEOF |
| 14523 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14524 | then : |
| 14525 | gl_cv_macro_O_CLOEXEC=yes |
| 14526 | else $as_nop |
| 14527 | gl_cv_macro_O_CLOEXEC=no |
| 14528 | fi |
| 14529 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14530 | fi |
| 14531 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 |
| 14532 | printfscip-shell system . . printf. "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 |
| 14537 | printfscip-shell system . . printf. %s "checking for promoted mode_t type... " >&6; } |
| 14538 | if testscip-shell system . . test. ${gl_cv_promoted_mode_t+y} |
| 14539 | then : |
| 14540 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14541 | else $as_nop |
| 14542 | |
| 14543 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14544 | /* end confdefs.h. */ |
| 14545 | #include <sys/types.h> |
| 14546 | int |
| 14547 | main (void) |
| 14548 | { |
| 14549 | typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; |
| 14550 | ; |
| 14551 | return 0; |
| 14552 | } |
| 14553 | _ACEOF |
| 14554 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14555 | then : |
| 14556 | gl_cv_promoted_mode_t='int' |
| 14557 | else $as_nop |
| 14558 | gl_cv_promoted_mode_t='mode_t' |
| 14559 | fi |
| 14560 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14561 | |
| 14562 | fi |
| 14563 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 |
| 14564 | printfscip-shell system . . printf. "%s\n" "$gl_cv_promoted_mode_t" >&6; } |
| 14565 | |
| 14566 | printfscip-shell system . . printf. "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h |
| 14567 | |
| 14568 | |
| 14569 | |
| 14570 | |
| 14571 | |
| 14572 | |
| 14573 | |
| 14574 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 14575 | REPLACE_REALLOC_FOR_REALLOC_POSIX=1 |
| 14576 | fi |
| 14577 | |
| 14578 | |
| 14579 | HAVE_POSIX_SIGNALBLOCKING=1; |
| 14580 | HAVE_PTHREAD_SIGMASK=1; |
| 14581 | HAVE_RAISE=1; |
| 14582 | HAVE_SIGSET_T=1; |
| 14583 | HAVE_SIGINFO_T=1; |
| 14584 | HAVE_SIGACTION=1; |
| 14585 | HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; |
| 14586 | |
| 14587 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; |
| 14588 | |
| 14589 | HAVE_SIGHANDLER_T=1; |
| 14590 | REPLACE_PTHREAD_SIGMASK=0; |
| 14591 | REPLACE_RAISE=0; |
| 14592 | |
| 14593 | |
| 14594 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 14595 | printfscip-shell system . . printf. %s "checking for uid_t in sys/types.h... " >&6; } |
| 14596 | if testscip-shell system . . test. ${ac_cv_type_uid_t+y} |
| 14597 | then : |
| 14598 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14599 | else $as_nop |
| 14600 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14601 | /* end confdefs.h. */ |
| 14602 | #include <sys/types.h> |
| 14603 | |
| 14604 | _ACEOF |
| 14605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14606 | $EGREP "uid_t" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 14607 | then : |
| 14608 | ac_cv_type_uid_t=yes |
| 14609 | else $as_nop |
| 14610 | ac_cv_type_uid_t=no |
| 14611 | fi |
| 14612 | rmscip-shell system . . rm. -rf conftest* |
| 14613 | |
| 14614 | fi |
| 14615 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 14616 | printfscip-shell system . . printf. "%s\n" "$ac_cv_type_uid_t" >&6; } |
| 14617 | if testscip-shell system . . test. $ac_cv_type_uid_t = no; then |
| 14618 | |
| 14619 | printfscip-shell system . . printf. "%s\n" "#define uid_t int" >>confdefs.h |
| 14620 | |
| 14621 | |
| 14622 | printfscip-shell system . . printf. "%s\n" "#define gid_t int" >>confdefs.h |
| 14623 | |
| 14624 | fi |
| 14625 | |
| 14626 | : |
| 14627 | |
| 14628 | |
| 14629 | |
| 14630 | |
| 14631 | GL_GNULIB_PTHREAD_SIGMASK=0 |
| 14632 | |
| 14633 | |
| 14634 | |
| 14635 | GL_GNULIB_RAISE=0 |
| 14636 | |
| 14637 | |
| 14638 | |
| 14639 | GL_GNULIB_SIGNAL_H_SIGPIPE=0 |
| 14640 | |
| 14641 | |
| 14642 | |
| 14643 | GL_GNULIB_SIGPROCMASK=0 |
| 14644 | |
| 14645 | |
| 14646 | |
| 14647 | GL_GNULIB_SIGACTION=0 |
| 14648 | |
| 14649 | |
| 14650 | |
| 14651 | |
| 14652 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " |
| 14653 | #include <signal.h> |
| 14654 | /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ |
| 14655 | #include <sys/types.h> |
| 14656 | |
| 14657 | " |
| 14658 | if testscip-shell system . . test. "x$ac_cv_type_sigset_t" = xyes |
| 14659 | then : |
| 14660 | |
| 14661 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h |
| 14662 | |
| 14663 | gl_cv_type_sigset_t=yes |
| 14664 | else $as_nop |
| 14665 | gl_cv_type_sigset_t=no |
| 14666 | fi |
| 14667 | |
| 14668 | if testscip-shell system . . test. $gl_cv_type_sigset_t != yes; then |
| 14669 | HAVE_SIGSET_T=0 |
| 14670 | fi |
| 14671 | |
| 14672 | |
| 14673 | |
| 14674 | |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | |
| 14681 | |
| 14682 | |
| 14683 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 14684 | gl_cv_next_signal_h='<'signal.h'>' |
| 14685 | else |
| 14686 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 |
| 14687 | printfscip-shell system . . printf. %s "checking absolute name of <signal.h>... " >&6; } |
| 14688 | if testscip-shell system . . test. ${gl_cv_next_signal_h+y} |
| 14689 | then : |
| 14690 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14691 | else $as_nop |
| 14692 | |
| 14693 | |
| 14694 | |
| 14695 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14696 | /* end confdefs.h. */ |
| 14697 | #include <signal.h> |
| 14698 | _ACEOF |
| 14699 | case "$host_os" in |
| 14700 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 14701 | *) gl_absname_cpp="$ac_cpp" ;; |
| 14702 | esac |
| 14703 | |
| 14704 | case "$host_os" in |
| 14705 | mingw*) |
| 14706 | gl_dirsep_regex='[/\\]' |
| 14707 | ;; |
| 14708 | *) |
| 14709 | gl_dirsep_regex='\/' |
| 14710 | ;; |
| 14711 | esac |
| 14712 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 14713 | gl_header_literal_regex=`echoscip-shell system . . echo. 'signal.h' \ |
| 14714 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 14715 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 14716 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 14717 | s|^/[^/]|//&| |
| 14718 | p |
| 14719 | q |
| 14720 | }' |
| 14721 | |
| 14722 | gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 14723 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 14724 | |
| 14725 | gl_header=$gl_cv_absolute_signal_h |
| 14726 | gl_cv_next_signal_h='"'$gl_header'"' |
| 14727 | |
| 14728 | |
| 14729 | fi |
| 14730 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 |
| 14731 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_signal_h" >&6; } |
| 14732 | fi |
| 14733 | NEXT_SIGNAL_H=$gl_cv_next_signal_h |
| 14734 | |
| 14735 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 14736 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 14737 | gl_next_as_first_directive='<'signal.h'>' |
| 14738 | else |
| 14739 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 14740 | gl_next_as_first_directive=$gl_cv_next_signal_h |
| 14741 | fi |
| 14742 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive |
| 14743 | |
| 14744 | |
| 14745 | |
| 14746 | |
| 14747 | |
| 14748 | # AIX declares sig_atomic_t to already include volatile, and C89 compilers |
| 14749 | # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. |
| 14750 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " |
| 14751 | #include <signal.h> |
| 14752 | |
| 14753 | " |
| 14754 | if testscip-shell system . . test. "x$ac_cv_type_volatile_sig_atomic_t" = xyes |
| 14755 | then : |
| 14756 | |
| 14757 | else $as_nop |
| 14758 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 |
| 14759 | fi |
| 14760 | |
| 14761 | |
| 14762 | |
| 14763 | |
| 14764 | |
| 14765 | |
| 14766 | |
| 14767 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " |
| 14768 | #include <signal.h> |
| 14769 | |
| 14770 | " |
| 14771 | if testscip-shell system . . test. "x$ac_cv_type_sighandler_t" = xyes |
| 14772 | then : |
| 14773 | |
| 14774 | else $as_nop |
| 14775 | HAVE_SIGHANDLER_T=0 |
| 14776 | fi |
| 14777 | |
| 14778 | |
| 14779 | |
| 14780 | |
| 14781 | |
| 14782 | |
| 14783 | |
| 14784 | |
| 14785 | |
| 14786 | |
| 14787 | |
| 14788 | |
| 14789 | |
| 14790 | |
| 14791 | |
| 14792 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 |
| 14793 | printfscip-shell system . . printf. %s "checking whether snprintf returns a byte count as in C99... " >&6; } |
| 14794 | if testscip-shell system . . test. ${gl_cv_func_snprintf_retval_c99+y} |
| 14795 | then : |
| 14796 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14797 | else $as_nop |
| 14798 | |
| 14799 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 14800 | then : |
| 14801 | case "$host_os" in |
| 14802 | # Guess yes on glibc systems. |
| 14803 | *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14804 | # Guess yes on musl systems. |
| 14805 | *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14806 | # Guess yes on FreeBSD >= 5. |
| 14807 | freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 14808 | freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14809 | midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14810 | # Guess yes on Mac OS X >= 10.3. |
| 14811 | darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 14812 | darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14813 | # Guess yes on OpenBSD >= 3.9. |
| 14814 | openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) |
| 14815 | gl_cv_func_snprintf_retval_c99="guessing no";; |
| 14816 | openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14817 | # Guess yes on Solaris >= 2.10. |
| 14818 | solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 14819 | solaris*) gl_cv_func_printf_sizes_c99="guessing no";; |
| 14820 | # Guess yes on AIX >= 4. |
| 14821 | aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; |
| 14822 | aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14823 | # Guess yes on NetBSD >= 3. |
| 14824 | netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) |
| 14825 | gl_cv_func_snprintf_retval_c99="guessing no";; |
| 14826 | netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14827 | # Guess yes on BeOS. |
| 14828 | beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14829 | # Guess yes on Android. |
| 14830 | linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";; |
| 14831 | # Guess yes on MSVC, no on mingw. |
| 14832 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14833 | /* end confdefs.h. */ |
| 14834 | |
| 14835 | #ifdef _MSC_VER |
| 14836 | Known |
| 14837 | #endif |
| 14838 | |
| 14839 | _ACEOF |
| 14840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14841 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 14842 | then : |
| 14843 | gl_cv_func_snprintf_retval_c99="guessing yes" |
| 14844 | else $as_nop |
| 14845 | gl_cv_func_snprintf_retval_c99="guessing no" |
| 14846 | fi |
| 14847 | rmscip-shell system . . rm. -rf conftest* |
| 14848 | |
| 14849 | ;; |
| 14850 | # If we don't know, obey --enable-cross-guesses. |
| 14851 | *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; |
| 14852 | esac |
| 14853 | |
| 14854 | else $as_nop |
| 14855 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14856 | /* end confdefs.h. */ |
| 14857 | |
| 14858 | #include <stdio.h> |
| 14859 | #include <string.h> |
| 14860 | #if HAVE_SNPRINTF |
| 14861 | # define my_snprintf snprintf |
| 14862 | #else |
| 14863 | # include <stdarg.h> |
| 14864 | static int my_snprintf (char *buf, int size, const char *format, ...) |
| 14865 | { |
| 14866 | va_list args; |
| 14867 | int ret; |
| 14868 | va_start (args, format); |
| 14869 | ret = vsnprintf (buf, size, format, args); |
| 14870 | va_end (args); |
| 14871 | return ret; |
| 14872 | } |
| 14873 | #endif |
| 14874 | static char buf[100]; |
| 14875 | int main () |
| 14876 | { |
| 14877 | strcpy (buf, "ABCDEF"); |
| 14878 | if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) |
| 14879 | return 1; |
| 14880 | if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) |
| 14881 | return 2; |
| 14882 | if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) |
| 14883 | return 3; |
| 14884 | return 0; |
| 14885 | } |
| 14886 | _ACEOF |
| 14887 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 14888 | then : |
| 14889 | gl_cv_func_snprintf_retval_c99=yes |
| 14890 | else $as_nop |
| 14891 | gl_cv_func_snprintf_retval_c99=no |
| 14892 | fi |
| 14893 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14894 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14895 | fi |
| 14896 | |
| 14897 | |
| 14898 | fi |
| 14899 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 |
| 14900 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; } |
| 14901 | |
| 14902 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 14903 | if testscip-shell system . . test. "x$ac_cv_have_decl_snprintf" = xyes |
| 14904 | then : |
| 14905 | ac_have_decl=1 |
| 14906 | else $as_nop |
| 14907 | ac_have_decl=0 |
| 14908 | fi |
| 14909 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h |
| 14910 | |
| 14911 | |
| 14912 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
| 14913 | printfscip-shell system . . printf. %s "checking for stdint.h... " >&6; } |
| 14914 | if testscip-shell system . . test. ${gl_cv_header_stdint_h+y} |
| 14915 | then : |
| 14916 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14917 | else $as_nop |
| 14918 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14919 | /* end confdefs.h. */ |
| 14920 | #include <sys/types.h> |
| 14921 | #include <stdint.h> |
| 14922 | int |
| 14923 | main (void) |
| 14924 | { |
| 14925 | uintmax_t i = (uintmax_t) -1; return !i; |
| 14926 | ; |
| 14927 | return 0; |
| 14928 | } |
| 14929 | _ACEOF |
| 14930 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14931 | then : |
| 14932 | gl_cv_header_stdint_h=yes |
| 14933 | else $as_nop |
| 14934 | gl_cv_header_stdint_h=no |
| 14935 | fi |
| 14936 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14937 | fi |
| 14938 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 14939 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_stdint_h" >&6; } |
| 14940 | if testscip-shell system . . test. $gl_cv_header_stdint_h = yes; then |
| 14941 | |
| 14942 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h |
| 14943 | |
| 14944 | fi |
| 14945 | |
| 14946 | |
| 14947 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 14948 | printfscip-shell system . . printf. %s "checking for inttypes.h... " >&6; } |
| 14949 | if testscip-shell system . . test. ${gl_cv_header_inttypes_h+y} |
| 14950 | then : |
| 14951 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14952 | else $as_nop |
| 14953 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14954 | /* end confdefs.h. */ |
| 14955 | |
| 14956 | #include <sys/types.h> |
| 14957 | #include <inttypes.h> |
| 14958 | |
| 14959 | int |
| 14960 | main (void) |
| 14961 | { |
| 14962 | uintmax_t i = (uintmax_t) -1; return !i; |
| 14963 | ; |
| 14964 | return 0; |
| 14965 | } |
| 14966 | _ACEOF |
| 14967 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 14968 | then : |
| 14969 | gl_cv_header_inttypes_h=yes |
| 14970 | else $as_nop |
| 14971 | gl_cv_header_inttypes_h=no |
| 14972 | fi |
| 14973 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14974 | fi |
| 14975 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 14976 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_inttypes_h" >&6; } |
| 14977 | if testscip-shell system . . test. $gl_cv_header_inttypes_h = yes; then |
| 14978 | |
| 14979 | printfscip-shell system . . printf. "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h |
| 14980 | |
| 14981 | fi |
| 14982 | |
| 14983 | |
| 14984 | |
| 14985 | |
| 14986 | |
| 14987 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5 |
| 14988 | printfscip-shell system . . printf. %s "checking whether printf supports size specifiers as in C99... " >&6; } |
| 14989 | if testscip-shell system . . test. ${gl_cv_func_printf_sizes_c99+y} |
| 14990 | then : |
| 14991 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 14992 | else $as_nop |
| 14993 | |
| 14994 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 14995 | then : |
| 14996 | |
| 14997 | case "$host_os" in |
| 14998 | # Guess yes on glibc systems. |
| 14999 | *-gnu* | gnu*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15000 | # Guess yes on musl systems. |
| 15001 | *-musl*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15002 | # Guess yes on FreeBSD >= 5. |
| 15003 | freebsd[1-4].*) gl_cv_func_printf_sizes_c99="guessing no";; |
| 15004 | freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15005 | midnightbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15006 | # Guess yes on Mac OS X >= 10.3. |
| 15007 | darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";; |
| 15008 | darwin*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15009 | # Guess yes on OpenBSD >= 3.9. |
| 15010 | openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) |
| 15011 | gl_cv_func_printf_sizes_c99="guessing no";; |
| 15012 | openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15013 | # Guess yes on Solaris >= 2.10. |
| 15014 | solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15015 | solaris*) gl_cv_func_printf_sizes_c99="guessing no";; |
| 15016 | # Guess yes on NetBSD >= 3. |
| 15017 | netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) |
| 15018 | gl_cv_func_printf_sizes_c99="guessing no";; |
| 15019 | netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15020 | # Guess yes on Android. |
| 15021 | linux*-android*) gl_cv_func_printf_sizes_c99="guessing yes";; |
| 15022 | # Guess yes on MSVC, no on mingw. |
| 15023 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15024 | /* end confdefs.h. */ |
| 15025 | |
| 15026 | #ifdef _MSC_VER |
| 15027 | Known |
| 15028 | #endif |
| 15029 | |
| 15030 | _ACEOF |
| 15031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15032 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 15033 | then : |
| 15034 | gl_cv_func_printf_sizes_c99="guessing yes" |
| 15035 | else $as_nop |
| 15036 | gl_cv_func_printf_sizes_c99="guessing no" |
| 15037 | fi |
| 15038 | rmscip-shell system . . rm. -rf conftest* |
| 15039 | |
| 15040 | ;; |
| 15041 | # If we don't know, obey --enable-cross-guesses. |
| 15042 | *) gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";; |
| 15043 | esac |
| 15044 | |
| 15045 | else $as_nop |
| 15046 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15047 | /* end confdefs.h. */ |
| 15048 | |
| 15049 | #include <stddef.h> |
| 15050 | #include <stdio.h> |
| 15051 | #include <string.h> |
| 15052 | #include <sys/types.h> |
| 15053 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 15054 | # include <stdint.h> |
| 15055 | #endif |
| 15056 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 15057 | # include <inttypes.h> |
| 15058 | #endif |
| 15059 | static char buf[100]; |
| 15060 | int main () |
| 15061 | { |
| 15062 | int result = 0; |
| 15063 | #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX |
| 15064 | buf[0] = '\0'; |
| 15065 | if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0 |
| 15066 | || strcmp (buf, "12345671 33") != 0) |
| 15067 | result |= 1; |
| 15068 | #else |
| 15069 | result |= 1; |
| 15070 | #endif |
| 15071 | buf[0] = '\0'; |
| 15072 | if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0 |
| 15073 | || strcmp (buf, "12345672 33") != 0) |
| 15074 | result |= 2; |
| 15075 | buf[0] = '\0'; |
| 15076 | if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0 |
| 15077 | || strcmp (buf, "12345673 33") != 0) |
| 15078 | result |= 4; |
| 15079 | buf[0] = '\0'; |
| 15080 | if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0 |
| 15081 | || strcmp (buf, "1.5 33") != 0) |
| 15082 | result |= 8; |
| 15083 | return result; |
| 15084 | } |
| 15085 | _ACEOF |
| 15086 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 15087 | then : |
| 15088 | gl_cv_func_printf_sizes_c99=yes |
| 15089 | else $as_nop |
| 15090 | gl_cv_func_printf_sizes_c99=no |
| 15091 | fi |
| 15092 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15093 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15094 | fi |
| 15095 | |
| 15096 | |
| 15097 | fi |
| 15098 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5 |
| 15099 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_sizes_c99" >&6; } |
| 15100 | |
| 15101 | |
| 15102 | |
| 15103 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5 |
| 15104 | printfscip-shell system . . printf. %s "checking whether printf supports 'long double' arguments... " >&6; } |
| 15105 | if testscip-shell system . . test. ${gl_cv_func_printf_long_double+y} |
| 15106 | then : |
| 15107 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15108 | else $as_nop |
| 15109 | |
| 15110 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 15111 | then : |
| 15112 | case "$host_os" in |
| 15113 | # Guess no on BeOS. |
| 15114 | beos*) gl_cv_func_printf_long_double="guessing no";; |
| 15115 | # Guess yes on Android. |
| 15116 | linux*-android*) gl_cv_func_printf_long_double="guessing yes";; |
| 15117 | # Guess yes on MSVC, no on mingw. |
| 15118 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15119 | /* end confdefs.h. */ |
| 15120 | |
| 15121 | #ifdef _MSC_VER |
| 15122 | Known |
| 15123 | #endif |
| 15124 | |
| 15125 | _ACEOF |
| 15126 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15127 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 15128 | then : |
| 15129 | gl_cv_func_printf_long_double="guessing yes" |
| 15130 | else $as_nop |
| 15131 | gl_cv_func_printf_long_double="guessing no" |
| 15132 | fi |
| 15133 | rmscip-shell system . . rm. -rf conftest* |
| 15134 | |
| 15135 | ;; |
| 15136 | *) gl_cv_func_printf_long_double="guessing yes";; |
| 15137 | esac |
| 15138 | |
| 15139 | else $as_nop |
| 15140 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15141 | /* end confdefs.h. */ |
| 15142 | |
| 15143 | #include <stdio.h> |
| 15144 | #include <string.h> |
| 15145 | static char buf[10000]; |
| 15146 | int main () |
| 15147 | { |
| 15148 | int result = 0; |
| 15149 | buf[0] = '\0'; |
| 15150 | if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0 |
| 15151 | || strcmp (buf, "1.750000 33") != 0) |
| 15152 | result |= 1; |
| 15153 | buf[0] = '\0'; |
| 15154 | if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0 |
| 15155 | || strcmp (buf, "1.750000e+00 33") != 0) |
| 15156 | result |= 2; |
| 15157 | buf[0] = '\0'; |
| 15158 | if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0 |
| 15159 | || strcmp (buf, "1.75 33") != 0) |
| 15160 | result |= 4; |
| 15161 | return result; |
| 15162 | } |
| 15163 | _ACEOF |
| 15164 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 15165 | then : |
| 15166 | gl_cv_func_printf_long_double=yes |
| 15167 | else $as_nop |
| 15168 | gl_cv_func_printf_long_double=no |
| 15169 | fi |
| 15170 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15171 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15172 | fi |
| 15173 | |
| 15174 | |
| 15175 | fi |
| 15176 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5 |
| 15177 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_long_double" >&6; } |
| 15178 | |
| 15179 | |
| 15180 | |
| 15181 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5 |
| 15182 | printfscip-shell system . . printf. %s "checking whether printf supports infinite 'double' arguments... " >&6; } |
| 15183 | if testscip-shell system . . test. ${gl_cv_func_printf_infinite+y} |
| 15184 | then : |
| 15185 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15186 | else $as_nop |
| 15187 | |
| 15188 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 15189 | then : |
| 15190 | |
| 15191 | case "$host_os" in |
| 15192 | # Guess yes on glibc systems. |
| 15193 | *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";; |
| 15194 | # Guess yes on musl systems. |
| 15195 | *-musl*) gl_cv_func_printf_infinite="guessing yes";; |
| 15196 | # Guess yes on FreeBSD >= 6. |
| 15197 | freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; |
| 15198 | freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; |
| 15199 | midnightbsd*) gl_cv_func_printf_infinite="guessing yes";; |
| 15200 | # Guess yes on Mac OS X >= 10.3. |
| 15201 | darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";; |
| 15202 | darwin*) gl_cv_func_printf_infinite="guessing yes";; |
| 15203 | # Guess yes on HP-UX >= 11. |
| 15204 | hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";; |
| 15205 | hpux*) gl_cv_func_printf_infinite="guessing yes";; |
| 15206 | # Guess yes on NetBSD >= 3. |
| 15207 | netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) |
| 15208 | gl_cv_func_printf_infinite="guessing no";; |
| 15209 | netbsd*) gl_cv_func_printf_infinite="guessing yes";; |
| 15210 | # Guess yes on OpenBSD >= 6.0. |
| 15211 | openbsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; |
| 15212 | openbsd*) gl_cv_func_printf_infinite="guessing yes";; |
| 15213 | # Guess yes on BeOS. |
| 15214 | beos*) gl_cv_func_printf_infinite="guessing yes";; |
| 15215 | # Guess no on Android. |
| 15216 | linux*-android*) gl_cv_func_printf_infinite="guessing no";; |
| 15217 | # Guess yes on MSVC, no on mingw. |
| 15218 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15219 | /* end confdefs.h. */ |
| 15220 | |
| 15221 | #ifdef _MSC_VER |
| 15222 | Known |
| 15223 | #endif |
| 15224 | |
| 15225 | _ACEOF |
| 15226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15227 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 15228 | then : |
| 15229 | gl_cv_func_printf_infinite="guessing yes" |
| 15230 | else $as_nop |
| 15231 | gl_cv_func_printf_infinite="guessing no" |
| 15232 | fi |
| 15233 | rmscip-shell system . . rm. -rf conftest* |
| 15234 | |
| 15235 | ;; |
| 15236 | # If we don't know, obey --enable-cross-guesses. |
| 15237 | *) gl_cv_func_printf_infinite="$gl_cross_guess_normal";; |
| 15238 | esac |
| 15239 | |
| 15240 | else $as_nop |
| 15241 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15242 | /* end confdefs.h. */ |
| 15243 | |
| 15244 | #include <stdio.h> |
| 15245 | #include <string.h> |
| 15246 | static int |
| 15247 | strisnan (const char *string, size_t start_index, size_t end_index) |
| 15248 | { |
| 15249 | if (start_index < end_index) |
| 15250 | { |
| 15251 | if (string[start_index] == '-') |
| 15252 | start_index++; |
| 15253 | if (start_index + 3 <= end_index |
| 15254 | && memcmp (string + start_index, "nan", 3) == 0) |
| 15255 | { |
| 15256 | start_index += 3; |
| 15257 | if (start_index == end_index |
| 15258 | || (string[start_index] == '(' && string[end_index - 1] == ')')) |
| 15259 | return 1; |
| 15260 | } |
| 15261 | } |
| 15262 | return 0; |
| 15263 | } |
| 15264 | static int |
| 15265 | have_minus_zero () |
| 15266 | { |
| 15267 | static double plus_zero = 0.0; |
| 15268 | double minus_zero = - plus_zero; |
| 15269 | return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0; |
| 15270 | } |
| 15271 | static char buf[10000]; |
| 15272 | static double zero = 0.0; |
| 15273 | int main () |
| 15274 | { |
| 15275 | int result = 0; |
| 15276 | if (sprintf (buf, "%f", 1.0 / zero) < 0 |
| 15277 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15278 | result |= 1; |
| 15279 | if (sprintf (buf, "%f", -1.0 / zero) < 0 |
| 15280 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15281 | result |= 1; |
| 15282 | if (sprintf (buf, "%f", zero / zero) < 0 |
| 15283 | || !strisnan (buf, 0, strlen (buf))) |
| 15284 | result |= 2; |
| 15285 | if (sprintf (buf, "%e", 1.0 / zero) < 0 |
| 15286 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15287 | result |= 4; |
| 15288 | if (sprintf (buf, "%e", -1.0 / zero) < 0 |
| 15289 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15290 | result |= 4; |
| 15291 | if (sprintf (buf, "%e", zero / zero) < 0 |
| 15292 | || !strisnan (buf, 0, strlen (buf))) |
| 15293 | result |= 8; |
| 15294 | if (sprintf (buf, "%g", 1.0 / zero) < 0 |
| 15295 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15296 | result |= 16; |
| 15297 | if (sprintf (buf, "%g", -1.0 / zero) < 0 |
| 15298 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15299 | result |= 16; |
| 15300 | if (sprintf (buf, "%g", zero / zero) < 0 |
| 15301 | || !strisnan (buf, 0, strlen (buf))) |
| 15302 | result |= 32; |
| 15303 | /* This test fails on HP-UX 10.20. */ |
| 15304 | if (have_minus_zero ()) |
| 15305 | if (sprintf (buf, "%g", - zero) < 0 |
| 15306 | || strcmp (buf, "-0") != 0) |
| 15307 | result |= 64; |
| 15308 | return result; |
| 15309 | } |
| 15310 | _ACEOF |
| 15311 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 15312 | then : |
| 15313 | gl_cv_func_printf_infinite=yes |
| 15314 | else $as_nop |
| 15315 | gl_cv_func_printf_infinite=no |
| 15316 | fi |
| 15317 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15318 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15319 | fi |
| 15320 | |
| 15321 | |
| 15322 | fi |
| 15323 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5 |
| 15324 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_infinite" >&6; } |
| 15325 | |
| 15326 | |
| 15327 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 15328 | printfscip-shell system . . printf. %s "checking whether byte ordering is bigendian... " >&6; } |
| 15329 | if testscip-shell system . . test. ${ac_cv_c_bigendian+y} |
| 15330 | then : |
| 15331 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15332 | else $as_nop |
| 15333 | ac_cv_c_bigendian=unknown |
| 15334 | # See if we're dealing with a universal compiler. |
| 15335 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15336 | /* end confdefs.h. */ |
| 15337 | #ifndef __APPLE_CC__ |
| 15338 | not a universal capable compiler |
| 15339 | #endif |
| 15340 | typedef int dummy; |
| 15341 | |
| 15342 | _ACEOF |
| 15343 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15344 | then : |
| 15345 | |
| 15346 | # Check for potential -arch flags. It is not universal unless |
| 15347 | # there are at least two -arch flags with different values. |
| 15348 | ac_arch= |
| 15349 | ac_prev= |
| 15350 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 15351 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 15352 | case $ac_word in |
| 15353 | i?86 | x86_64 | ppc | ppc64) |
| 15354 | if testscip-shell system . . test. -z "$ac_arch" || testscip-shell system . . test. "$ac_arch" = "$ac_word"; then |
| 15355 | ac_arch=$ac_word |
| 15356 | else |
| 15357 | ac_cv_c_bigendian=universal |
| 15358 | break |
| 15359 | fi |
| 15360 | ;; |
| 15361 | esac |
| 15362 | ac_prev= |
| 15363 | elif testscip-shell system . . test. "x$ac_word" = "x-arch"; then |
| 15364 | ac_prev=arch |
| 15365 | fi |
| 15366 | done |
| 15367 | fi |
| 15368 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15369 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 15370 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15371 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15372 | /* end confdefs.h. */ |
| 15373 | #include <sys/types.h> |
| 15374 | #include <sys/param.h> |
| 15375 | |
| 15376 | int |
| 15377 | main (void) |
| 15378 | { |
| 15379 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 15380 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 15381 | && LITTLE_ENDIAN) |
| 15382 | bogus endian macros |
| 15383 | #endif |
| 15384 | |
| 15385 | ; |
| 15386 | return 0; |
| 15387 | } |
| 15388 | _ACEOF |
| 15389 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15390 | then : |
| 15391 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 15392 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15393 | /* end confdefs.h. */ |
| 15394 | #include <sys/types.h> |
| 15395 | #include <sys/param.h> |
| 15396 | |
| 15397 | int |
| 15398 | main (void) |
| 15399 | { |
| 15400 | #if BYTE_ORDER != BIG_ENDIAN |
| 15401 | not big endian |
| 15402 | #endif |
| 15403 | |
| 15404 | ; |
| 15405 | return 0; |
| 15406 | } |
| 15407 | _ACEOF |
| 15408 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15409 | then : |
| 15410 | ac_cv_c_bigendian=yes |
| 15411 | else $as_nop |
| 15412 | ac_cv_c_bigendian=no |
| 15413 | fi |
| 15414 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15415 | fi |
| 15416 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15417 | fi |
| 15418 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 15419 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 15420 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15421 | /* end confdefs.h. */ |
| 15422 | #include <limits.h> |
| 15423 | |
| 15424 | int |
| 15425 | main (void) |
| 15426 | { |
| 15427 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 15428 | bogus endian macros |
| 15429 | #endif |
| 15430 | |
| 15431 | ; |
| 15432 | return 0; |
| 15433 | } |
| 15434 | _ACEOF |
| 15435 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15436 | then : |
| 15437 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 15438 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15439 | /* end confdefs.h. */ |
| 15440 | #include <limits.h> |
| 15441 | |
| 15442 | int |
| 15443 | main (void) |
| 15444 | { |
| 15445 | #ifndef _BIG_ENDIAN |
| 15446 | not big endian |
| 15447 | #endif |
| 15448 | |
| 15449 | ; |
| 15450 | return 0; |
| 15451 | } |
| 15452 | _ACEOF |
| 15453 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15454 | then : |
| 15455 | ac_cv_c_bigendian=yes |
| 15456 | else $as_nop |
| 15457 | ac_cv_c_bigendian=no |
| 15458 | fi |
| 15459 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15460 | fi |
| 15461 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15462 | fi |
| 15463 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 15464 | # Compile a test program. |
| 15465 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 15466 | then : |
| 15467 | # Try to guess by grepping values from an object file. |
| 15468 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15469 | /* end confdefs.h. */ |
| 15470 | unsigned short int ascii_mm[] = |
| 15471 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15472 | unsigned short int ascii_ii[] = |
| 15473 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15474 | int use_ascii (int i) { |
| 15475 | return ascii_mm[i] + ascii_ii[i]; |
| 15476 | } |
| 15477 | unsigned short int ebcdic_ii[] = |
| 15478 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15479 | unsigned short int ebcdic_mm[] = |
| 15480 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15481 | int use_ebcdic (int i) { |
| 15482 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 15483 | } |
| 15484 | extern int foo; |
| 15485 | |
| 15486 | int |
| 15487 | main (void) |
| 15488 | { |
| 15489 | return use_ascii (foo) == use_ebcdic (foo); |
| 15490 | ; |
| 15491 | return 0; |
| 15492 | } |
| 15493 | _ACEOF |
| 15494 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15495 | then : |
| 15496 | if grepscip-shell system . . grep. BIGenDianSyS conftest.$ac_objext >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 15497 | ac_cv_c_bigendian=yes |
| 15498 | fi |
| 15499 | if grepscip-shell system . . grep. LiTTleEnDian conftest.$ac_objext >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 15500 | if testscip-shell system . . test. "$ac_cv_c_bigendian" = unknown; then |
| 15501 | ac_cv_c_bigendian=no |
| 15502 | else |
| 15503 | # finding both strings is unlikely to happen, but who knows? |
| 15504 | ac_cv_c_bigendian=unknown |
| 15505 | fi |
| 15506 | fi |
| 15507 | fi |
| 15508 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15509 | else $as_nop |
| 15510 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15511 | /* end confdefs.h. */ |
| 15512 | $ac_includes_default |
| 15513 | int |
| 15514 | main (void) |
| 15515 | { |
| 15516 | |
| 15517 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15518 | union |
| 15519 | { |
| 15520 | long int l; |
| 15521 | char c[sizeof (long int)]; |
| 15522 | } u; |
| 15523 | u.l = 1; |
| 15524 | return u.c[sizeof (long int) - 1] == 1; |
| 15525 | |
| 15526 | ; |
| 15527 | return 0; |
| 15528 | } |
| 15529 | _ACEOF |
| 15530 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 15531 | then : |
| 15532 | ac_cv_c_bigendian=no |
| 15533 | else $as_nop |
| 15534 | ac_cv_c_bigendian=yes |
| 15535 | fi |
| 15536 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15537 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15538 | fi |
| 15539 | |
| 15540 | fi |
| 15541 | fi |
| 15542 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 15543 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 15544 | case $ac_cv_c_bigendian in #( |
| 15545 | yes) |
| 15546 | printfscip-shell system . . printf. "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 15547 | ;; #( |
| 15548 | no) |
| 15549 | ;; #( |
| 15550 | universal) |
| 15551 | |
| 15552 | printfscip-shell system . . printf. "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 15553 | |
| 15554 | ;; #( |
| 15555 | *) |
| 15556 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "unknown endianness |
| 15557 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 15558 | esac |
| 15559 | |
| 15560 | |
| 15561 | |
| 15562 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5 |
| 15563 | printfscip-shell system . . printf. %s "checking whether long double and double are the same... " >&6; } |
| 15564 | if testscip-shell system . . test. ${gl_cv_long_double_equals_double+y} |
| 15565 | then : |
| 15566 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15567 | else $as_nop |
| 15568 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15569 | /* end confdefs.h. */ |
| 15570 | #include <float.h> |
| 15571 | int |
| 15572 | main (void) |
| 15573 | { |
| 15574 | typedef int check[sizeof (long double) == sizeof (double) |
| 15575 | && LDBL_MANT_DIG == DBL_MANT_DIG |
| 15576 | && LDBL_MAX_EXP == DBL_MAX_EXP |
| 15577 | && LDBL_MIN_EXP == DBL_MIN_EXP |
| 15578 | ? 1 : -1]; |
| 15579 | |
| 15580 | ; |
| 15581 | return 0; |
| 15582 | } |
| 15583 | _ACEOF |
| 15584 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 15585 | then : |
| 15586 | gl_cv_long_double_equals_double=yes |
| 15587 | else $as_nop |
| 15588 | gl_cv_long_double_equals_double=no |
| 15589 | fi |
| 15590 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15591 | |
| 15592 | fi |
| 15593 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5 |
| 15594 | printfscip-shell system . . printf. "%s\n" "$gl_cv_long_double_equals_double" >&6; } |
| 15595 | if testscip-shell system . . test. $gl_cv_long_double_equals_double = yes; then |
| 15596 | |
| 15597 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h |
| 15598 | |
| 15599 | HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1 |
| 15600 | else |
| 15601 | HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0 |
| 15602 | fi |
| 15603 | |
| 15604 | |
| 15605 | |
| 15606 | |
| 15607 | |
| 15608 | |
| 15609 | |
| 15610 | if testscip-shell system . . test. -n "$gl_printf_safe"; then |
| 15611 | |
| 15612 | printfscip-shell system . . printf. "%s\n" "#define CHECK_PRINTF_SAFE 1" >>confdefs.h |
| 15613 | |
| 15614 | fi |
| 15615 | case "$gl_cv_func_printf_long_double" in |
| 15616 | *yes) |
| 15617 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5 |
| 15618 | printfscip-shell system . . printf. %s "checking whether printf supports infinite 'long double' arguments... " >&6; } |
| 15619 | if testscip-shell system . . test. ${gl_cv_func_printf_infinite_long_double+y} |
| 15620 | then : |
| 15621 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15622 | else $as_nop |
| 15623 | |
| 15624 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 15625 | then : |
| 15626 | case "$host_cpu" in |
| 15627 | # Guess no on ia64, x86_64, i386. |
| 15628 | ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";; |
| 15629 | *) |
| 15630 | case "$host_os" in |
| 15631 | # Guess yes on glibc systems. |
| 15632 | *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15633 | # Guess yes on musl systems. |
| 15634 | *-musl*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15635 | # Guess yes on FreeBSD >= 6. |
| 15636 | freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; |
| 15637 | freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15638 | midnightbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15639 | # Guess yes on HP-UX >= 11. |
| 15640 | hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";; |
| 15641 | hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15642 | # Guess yes on OpenBSD >= 6.0. |
| 15643 | openbsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; |
| 15644 | openbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; |
| 15645 | # Guess no on Android. |
| 15646 | linux*-android*) gl_cv_func_printf_infinite_long_double="guessing no";; |
| 15647 | # Guess yes on MSVC, no on mingw. |
| 15648 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15649 | /* end confdefs.h. */ |
| 15650 | |
| 15651 | #ifdef _MSC_VER |
| 15652 | Known |
| 15653 | #endif |
| 15654 | |
| 15655 | _ACEOF |
| 15656 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15657 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 15658 | then : |
| 15659 | gl_cv_func_printf_infinite_long_double="guessing yes" |
| 15660 | else $as_nop |
| 15661 | gl_cv_func_printf_infinite_long_double="guessing no" |
| 15662 | fi |
| 15663 | rmscip-shell system . . rm. -rf conftest* |
| 15664 | |
| 15665 | ;; |
| 15666 | # If we don't know, obey --enable-cross-guesses. |
| 15667 | *) gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";; |
| 15668 | esac |
| 15669 | ;; |
| 15670 | esac |
| 15671 | |
| 15672 | else $as_nop |
| 15673 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15674 | /* end confdefs.h. */ |
| 15675 | |
| 15676 | |
| 15677 | #include <stdlib.h> |
| 15678 | #if defined __MACH__ && defined __APPLE__ |
| 15679 | /* Avoid a crash on Mac OS X. */ |
| 15680 | #include <mach/mach.h> |
| 15681 | #include <mach/mach_error.h> |
| 15682 | #include <mach/thread_status.h> |
| 15683 | #include <mach/exception.h> |
| 15684 | #include <mach/task.h> |
| 15685 | #include <pthread.h> |
| 15686 | /* The exception port on which our thread listens. */ |
| 15687 | static mach_port_t our_exception_port; |
| 15688 | /* The main function of the thread listening for exceptions of type |
| 15689 | EXC_BAD_ACCESS. */ |
| 15690 | static void * |
| 15691 | mach_exception_thread (void *arg) |
| 15692 | { |
| 15693 | /* Buffer for a message to be received. */ |
| 15694 | struct { |
| 15695 | mach_msg_header_t head; |
| 15696 | mach_msg_body_t msgh_body; |
| 15697 | char data[1024]; |
| 15698 | } msg; |
| 15699 | mach_msg_return_t retval; |
| 15700 | /* Wait for a message on the exception port. */ |
| 15701 | retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 15702 | our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 15703 | if (retval != MACH_MSG_SUCCESS) |
| 15704 | abort (); |
| 15705 | exit (1); |
| 15706 | } |
| 15707 | static void |
| 15708 | nocrash_init (void) |
| 15709 | { |
| 15710 | mach_port_t self = mach_task_self (); |
| 15711 | /* Allocate a port on which the thread shall listen for exceptions. */ |
| 15712 | if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 15713 | == KERN_SUCCESS) { |
| 15714 | /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 15715 | if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 15716 | MACH_MSG_TYPE_MAKE_SEND) |
| 15717 | == KERN_SUCCESS) { |
| 15718 | /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 15719 | for us. */ |
| 15720 | exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 15721 | /* Create the thread listening on the exception port. */ |
| 15722 | pthread_attr_t attr; |
| 15723 | pthread_t thread; |
| 15724 | if (pthread_attr_init (&attr) == 0 |
| 15725 | && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 15726 | && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 15727 | pthread_attr_destroy (&attr); |
| 15728 | /* Replace the exception port info for these exceptions with our own. |
| 15729 | Note that we replace the exception port for the entire task, not only |
| 15730 | for a particular thread. This has the effect that when our exception |
| 15731 | port gets the message, the thread specific exception port has already |
| 15732 | been asked, and we don't need to bother about it. |
| 15733 | See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 15734 | task_set_exception_ports (self, mask, our_exception_port, |
| 15735 | EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 15736 | } |
| 15737 | } |
| 15738 | } |
| 15739 | } |
| 15740 | #elif defined _WIN32 && ! defined __CYGWIN__ |
| 15741 | /* Avoid a crash on native Windows. */ |
| 15742 | #define WIN32_LEAN_AND_MEAN |
| 15743 | #include <windows.h> |
| 15744 | #include <winerror.h> |
| 15745 | static LONG WINAPI |
| 15746 | exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 15747 | { |
| 15748 | switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 15749 | { |
| 15750 | case EXCEPTION_ACCESS_VIOLATION: |
| 15751 | case EXCEPTION_IN_PAGE_ERROR: |
| 15752 | case EXCEPTION_STACK_OVERFLOW: |
| 15753 | case EXCEPTION_GUARD_PAGE: |
| 15754 | case EXCEPTION_PRIV_INSTRUCTION: |
| 15755 | case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 15756 | case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 15757 | case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 15758 | case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 15759 | exit (1); |
| 15760 | } |
| 15761 | return EXCEPTION_CONTINUE_SEARCH; |
| 15762 | } |
| 15763 | static void |
| 15764 | nocrash_init (void) |
| 15765 | { |
| 15766 | SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 15767 | } |
| 15768 | #else |
| 15769 | /* Avoid a crash on POSIX systems. */ |
| 15770 | #include <signal.h> |
| 15771 | #include <unistd.h> |
| 15772 | /* A POSIX signal handler. */ |
| 15773 | static void |
| 15774 | exception_handler (int sig) |
| 15775 | { |
| 15776 | _exit (1); |
| 15777 | } |
| 15778 | static void |
| 15779 | nocrash_init (void) |
| 15780 | { |
| 15781 | #ifdef SIGSEGV |
| 15782 | signal (SIGSEGV, exception_handler); |
| 15783 | #endif |
| 15784 | #ifdef SIGBUS |
| 15785 | signal (SIGBUS, exception_handler); |
| 15786 | #endif |
| 15787 | } |
| 15788 | #endif |
| 15789 | |
| 15790 | #include <float.h> |
| 15791 | #include <stdio.h> |
| 15792 | #include <string.h> |
| 15793 | static int |
| 15794 | strisnan (const char *string, size_t start_index, size_t end_index) |
| 15795 | { |
| 15796 | if (start_index < end_index) |
| 15797 | { |
| 15798 | if (string[start_index] == '-') |
| 15799 | start_index++; |
| 15800 | if (start_index + 3 <= end_index |
| 15801 | && memcmp (string + start_index, "nan", 3) == 0) |
| 15802 | { |
| 15803 | start_index += 3; |
| 15804 | if (start_index == end_index |
| 15805 | || (string[start_index] == '(' && string[end_index - 1] == ')')) |
| 15806 | return 1; |
| 15807 | } |
| 15808 | } |
| 15809 | return 0; |
| 15810 | } |
| 15811 | static char buf[10000]; |
| 15812 | static long double zeroL = 0.0L; |
| 15813 | int main () |
| 15814 | { |
| 15815 | int result = 0; |
| 15816 | nocrash_init(); |
| 15817 | if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0 |
| 15818 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15819 | result |= 1; |
| 15820 | if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0 |
| 15821 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15822 | result |= 1; |
| 15823 | if (sprintf (buf, "%Lf", zeroL / zeroL) < 0 |
| 15824 | || !strisnan (buf, 0, strlen (buf))) |
| 15825 | result |= 1; |
| 15826 | if (sprintf (buf, "%Le", 1.0L / zeroL) < 0 |
| 15827 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15828 | result |= 1; |
| 15829 | if (sprintf (buf, "%Le", -1.0L / zeroL) < 0 |
| 15830 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15831 | result |= 1; |
| 15832 | if (sprintf (buf, "%Le", zeroL / zeroL) < 0 |
| 15833 | || !strisnan (buf, 0, strlen (buf))) |
| 15834 | result |= 1; |
| 15835 | if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0 |
| 15836 | || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) |
| 15837 | result |= 1; |
| 15838 | if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0 |
| 15839 | || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) |
| 15840 | result |= 1; |
| 15841 | if (sprintf (buf, "%Lg", zeroL / zeroL) < 0 |
| 15842 | || !strisnan (buf, 0, strlen (buf))) |
| 15843 | result |= 1; |
| 15844 | #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE |
| 15845 | /* Representation of an 80-bit 'long double' as an initializer for a sequence |
| 15846 | of 'unsigned int' words. */ |
| 15847 | # ifdef WORDS_BIGENDIAN |
| 15848 | # define LDBL80_WORDS(exponent,manthi,mantlo) \ |
| 15849 | { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ |
| 15850 | ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \ |
| 15851 | (unsigned int) (mantlo) << 16 \ |
| 15852 | } |
| 15853 | # else |
| 15854 | # define LDBL80_WORDS(exponent,manthi,mantlo) \ |
| 15855 | { mantlo, manthi, exponent } |
| 15856 | # endif |
| 15857 | { /* Quiet NaN. */ |
| 15858 | static union { unsigned int word[4]; long double value; } x = |
| 15859 | { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; |
| 15860 | if (sprintf (buf, "%Lf", x.value) < 0 |
| 15861 | || !strisnan (buf, 0, strlen (buf))) |
| 15862 | result |= 2; |
| 15863 | if (sprintf (buf, "%Le", x.value) < 0 |
| 15864 | || !strisnan (buf, 0, strlen (buf))) |
| 15865 | result |= 2; |
| 15866 | if (sprintf (buf, "%Lg", x.value) < 0 |
| 15867 | || !strisnan (buf, 0, strlen (buf))) |
| 15868 | result |= 2; |
| 15869 | } |
| 15870 | { |
| 15871 | /* Signalling NaN. */ |
| 15872 | static union { unsigned int word[4]; long double value; } x = |
| 15873 | { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; |
| 15874 | if (sprintf (buf, "%Lf", x.value) < 0 |
| 15875 | || !strisnan (buf, 0, strlen (buf))) |
| 15876 | result |= 2; |
| 15877 | if (sprintf (buf, "%Le", x.value) < 0 |
| 15878 | || !strisnan (buf, 0, strlen (buf))) |
| 15879 | result |= 2; |
| 15880 | if (sprintf (buf, "%Lg", x.value) < 0 |
| 15881 | || !strisnan (buf, 0, strlen (buf))) |
| 15882 | result |= 2; |
| 15883 | } |
| 15884 | { /* Pseudo-NaN. */ |
| 15885 | static union { unsigned int word[4]; long double value; } x = |
| 15886 | { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; |
| 15887 | if (sprintf (buf, "%Lf", x.value) <= 0) |
| 15888 | result |= 4; |
| 15889 | if (sprintf (buf, "%Le", x.value) <= 0) |
| 15890 | result |= 4; |
| 15891 | if (sprintf (buf, "%Lg", x.value) <= 0) |
| 15892 | result |= 4; |
| 15893 | } |
| 15894 | { /* Pseudo-Infinity. */ |
| 15895 | static union { unsigned int word[4]; long double value; } x = |
| 15896 | { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; |
| 15897 | if (sprintf (buf, "%Lf", x.value) <= 0) |
| 15898 | result |= 8; |
| 15899 | if (sprintf (buf, "%Le", x.value) <= 0) |
| 15900 | result |= 8; |
| 15901 | if (sprintf (buf, "%Lg", x.value) <= 0) |
| 15902 | result |= 8; |
| 15903 | } |
| 15904 | { /* Pseudo-Zero. */ |
| 15905 | static union { unsigned int word[4]; long double value; } x = |
| 15906 | { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; |
| 15907 | if (sprintf (buf, "%Lf", x.value) <= 0) |
| 15908 | result |= 16; |
| 15909 | if (sprintf (buf, "%Le", x.value) <= 0) |
| 15910 | result |= 16; |
| 15911 | if (sprintf (buf, "%Lg", x.value) <= 0) |
| 15912 | result |= 16; |
| 15913 | } |
| 15914 | { /* Unnormalized number. */ |
| 15915 | static union { unsigned int word[4]; long double value; } x = |
| 15916 | { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; |
| 15917 | if (sprintf (buf, "%Lf", x.value) <= 0) |
| 15918 | result |= 32; |
| 15919 | if (sprintf (buf, "%Le", x.value) <= 0) |
| 15920 | result |= 32; |
| 15921 | if (sprintf (buf, "%Lg", x.value) <= 0) |
| 15922 | result |= 32; |
| 15923 | } |
| 15924 | { /* Pseudo-Denormal. */ |
| 15925 | static union { unsigned int word[4]; long double value; } x = |
| 15926 | { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; |
| 15927 | if (sprintf (buf, "%Lf", x.value) <= 0) |
| 15928 | result |= 64; |
| 15929 | if (sprintf (buf, "%Le", x.value) <= 0) |
| 15930 | result |= 64; |
| 15931 | if (sprintf (buf, "%Lg", x.value) <= 0) |
| 15932 | result |= 64; |
| 15933 | } |
| 15934 | #endif |
| 15935 | return result; |
| 15936 | } |
| 15937 | _ACEOF |
| 15938 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 15939 | then : |
| 15940 | gl_cv_func_printf_infinite_long_double=yes |
| 15941 | else $as_nop |
| 15942 | gl_cv_func_printf_infinite_long_double=no |
| 15943 | fi |
| 15944 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15945 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15946 | fi |
| 15947 | |
| 15948 | |
| 15949 | fi |
| 15950 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5 |
| 15951 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_infinite_long_double" >&6; } |
| 15952 | ;; |
| 15953 | *) |
| 15954 | gl_cv_func_printf_infinite_long_double="irrelevant" |
| 15955 | ;; |
| 15956 | esac |
| 15957 | |
| 15958 | |
| 15959 | |
| 15960 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5 |
| 15961 | printfscip-shell system . . printf. %s "checking whether printf supports the 'a' and 'A' directives... " >&6; } |
| 15962 | if testscip-shell system . . test. ${gl_cv_func_printf_directive_a+y} |
| 15963 | then : |
| 15964 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 15965 | else $as_nop |
| 15966 | |
| 15967 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 15968 | then : |
| 15969 | |
| 15970 | case "$host_os" in |
| 15971 | # Guess yes on glibc >= 2.5 systems. |
| 15972 | *-gnu* | gnu*) |
| 15973 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15974 | /* end confdefs.h. */ |
| 15975 | |
| 15976 | #include <features.h> |
| 15977 | #ifdef __GNU_LIBRARY__ |
| 15978 | #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__ |
| 15979 | BZ2908 |
| 15980 | #endif |
| 15981 | #endif |
| 15982 | |
| 15983 | _ACEOF |
| 15984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15985 | $EGREP "BZ2908" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 15986 | then : |
| 15987 | gl_cv_func_printf_directive_a="guessing yes" |
| 15988 | else $as_nop |
| 15989 | gl_cv_func_printf_directive_a="guessing no" |
| 15990 | fi |
| 15991 | rmscip-shell system . . rm. -rf conftest* |
| 15992 | |
| 15993 | ;; |
| 15994 | # Guess yes on musl systems. |
| 15995 | *-musl*) gl_cv_func_printf_directive_a="guessing yes";; |
| 15996 | # Guess no on Android. |
| 15997 | linux*-android*) gl_cv_func_printf_directive_a="guessing no";; |
| 15998 | # Guess no on native Windows. |
| 15999 | mingw*) gl_cv_func_printf_directive_a="guessing no";; |
| 16000 | # If we don't know, obey --enable-cross-guesses. |
| 16001 | *) gl_cv_func_printf_directive_a="$gl_cross_guess_normal";; |
| 16002 | esac |
| 16003 | |
| 16004 | else $as_nop |
| 16005 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16006 | /* end confdefs.h. */ |
| 16007 | |
| 16008 | #include <stdio.h> |
| 16009 | #include <string.h> |
| 16010 | static char buf[100]; |
| 16011 | static double zero = 0.0; |
| 16012 | int main () |
| 16013 | { |
| 16014 | int result = 0; |
| 16015 | if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0 |
| 16016 | || (strcmp (buf, "0x1.922p+1 33") != 0 |
| 16017 | && strcmp (buf, "0x3.244p+0 33") != 0 |
| 16018 | && strcmp (buf, "0x6.488p-1 33") != 0 |
| 16019 | && strcmp (buf, "0xc.91p-2 33") != 0)) |
| 16020 | result |= 1; |
| 16021 | if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0 |
| 16022 | || (strcmp (buf, "-0X1.922P+1 33") != 0 |
| 16023 | && strcmp (buf, "-0X3.244P+0 33") != 0 |
| 16024 | && strcmp (buf, "-0X6.488P-1 33") != 0 |
| 16025 | && strcmp (buf, "-0XC.91P-2 33") != 0)) |
| 16026 | result |= 2; |
| 16027 | /* This catches a FreeBSD 13.0 bug: it doesn't round. */ |
| 16028 | if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0 |
| 16029 | || (strcmp (buf, "0x1.83p+0 33") != 0 |
| 16030 | && strcmp (buf, "0x3.05p-1 33") != 0 |
| 16031 | && strcmp (buf, "0x6.0ap-2 33") != 0 |
| 16032 | && strcmp (buf, "0xc.14p-3 33") != 0)) |
| 16033 | result |= 4; |
| 16034 | /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round. */ |
| 16035 | if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0 |
| 16036 | || (strcmp (buf, "0x2p+0 33") != 0 |
| 16037 | && strcmp (buf, "0x3p-1 33") != 0 |
| 16038 | && strcmp (buf, "0x6p-2 33") != 0 |
| 16039 | && strcmp (buf, "0xcp-3 33") != 0)) |
| 16040 | result |= 4; |
| 16041 | /* This catches a FreeBSD 6.1 bug. See |
| 16042 | <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */ |
| 16043 | if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0 |
| 16044 | || buf[0] == '0') |
| 16045 | result |= 8; |
| 16046 | /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug. */ |
| 16047 | if (sprintf (buf, "%.1a", 1.999) < 0 |
| 16048 | || (strcmp (buf, "0x1.0p+1") != 0 |
| 16049 | && strcmp (buf, "0x2.0p+0") != 0 |
| 16050 | && strcmp (buf, "0x4.0p-1") != 0 |
| 16051 | && strcmp (buf, "0x8.0p-2") != 0)) |
| 16052 | result |= 16; |
| 16053 | /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a |
| 16054 | glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */ |
| 16055 | if (sprintf (buf, "%.1La", 1.999L) < 0 |
| 16056 | || (strcmp (buf, "0x1.0p+1") != 0 |
| 16057 | && strcmp (buf, "0x2.0p+0") != 0 |
| 16058 | && strcmp (buf, "0x4.0p-1") != 0 |
| 16059 | && strcmp (buf, "0x8.0p-2") != 0)) |
| 16060 | result |= 32; |
| 16061 | return result; |
| 16062 | } |
| 16063 | _ACEOF |
| 16064 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16065 | then : |
| 16066 | gl_cv_func_printf_directive_a=yes |
| 16067 | else $as_nop |
| 16068 | gl_cv_func_printf_directive_a=no |
| 16069 | fi |
| 16070 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16071 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16072 | fi |
| 16073 | |
| 16074 | |
| 16075 | fi |
| 16076 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5 |
| 16077 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_directive_a" >&6; } |
| 16078 | |
| 16079 | |
| 16080 | |
| 16081 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5 |
| 16082 | printfscip-shell system . . printf. %s "checking whether printf supports the 'F' directive... " >&6; } |
| 16083 | if testscip-shell system . . test. ${gl_cv_func_printf_directive_f+y} |
| 16084 | then : |
| 16085 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16086 | else $as_nop |
| 16087 | |
| 16088 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16089 | then : |
| 16090 | |
| 16091 | case "$host_os" in |
| 16092 | # Guess yes on glibc systems. |
| 16093 | *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16094 | # Guess yes on musl systems. |
| 16095 | *-musl*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16096 | # Guess yes on FreeBSD >= 6. |
| 16097 | freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; |
| 16098 | freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16099 | midnightbsd*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16100 | # Guess yes on Mac OS X >= 10.3. |
| 16101 | darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";; |
| 16102 | darwin*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16103 | # Guess yes on OpenBSD >= 6.0. |
| 16104 | openbsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; |
| 16105 | openbsd*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16106 | # Guess yes on Solaris >= 2.10. |
| 16107 | solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";; |
| 16108 | solaris*) gl_cv_func_printf_directive_f="guessing no";; |
| 16109 | # Guess no on Android. |
| 16110 | linux*-android*) gl_cv_func_printf_directive_f="guessing no";; |
| 16111 | # Guess yes on MSVC, no on mingw. |
| 16112 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16113 | /* end confdefs.h. */ |
| 16114 | |
| 16115 | #ifdef _MSC_VER |
| 16116 | Known |
| 16117 | #endif |
| 16118 | |
| 16119 | _ACEOF |
| 16120 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16121 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 16122 | then : |
| 16123 | gl_cv_func_printf_directive_f="guessing yes" |
| 16124 | else $as_nop |
| 16125 | gl_cv_func_printf_directive_f="guessing no" |
| 16126 | fi |
| 16127 | rmscip-shell system . . rm. -rf conftest* |
| 16128 | |
| 16129 | ;; |
| 16130 | # If we don't know, obey --enable-cross-guesses. |
| 16131 | *) gl_cv_func_printf_directive_f="$gl_cross_guess_normal";; |
| 16132 | esac |
| 16133 | |
| 16134 | else $as_nop |
| 16135 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16136 | /* end confdefs.h. */ |
| 16137 | |
| 16138 | #include <stdio.h> |
| 16139 | #include <string.h> |
| 16140 | static char buf[100]; |
| 16141 | static double zero = 0.0; |
| 16142 | int main () |
| 16143 | { |
| 16144 | int result = 0; |
| 16145 | if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0 |
| 16146 | || strcmp (buf, "1234567.000000 33") != 0) |
| 16147 | result |= 1; |
| 16148 | if (sprintf (buf, "%F", 1.0 / zero) < 0 |
| 16149 | || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0)) |
| 16150 | result |= 2; |
| 16151 | /* This catches a Cygwin 1.5.x bug. */ |
| 16152 | if (sprintf (buf, "%.F", 1234.0) < 0 |
| 16153 | || strcmp (buf, "1234") != 0) |
| 16154 | result |= 4; |
| 16155 | return result; |
| 16156 | } |
| 16157 | _ACEOF |
| 16158 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16159 | then : |
| 16160 | gl_cv_func_printf_directive_f=yes |
| 16161 | else $as_nop |
| 16162 | gl_cv_func_printf_directive_f=no |
| 16163 | fi |
| 16164 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16165 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16166 | fi |
| 16167 | |
| 16168 | |
| 16169 | fi |
| 16170 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5 |
| 16171 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_directive_f" >&6; } |
| 16172 | |
| 16173 | |
| 16174 | |
| 16175 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5 |
| 16176 | printfscip-shell system . . printf. %s "checking whether printf supports the 'n' directive... " >&6; } |
| 16177 | if testscip-shell system . . test. ${gl_cv_func_printf_directive_n+y} |
| 16178 | then : |
| 16179 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16180 | else $as_nop |
| 16181 | |
| 16182 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16183 | then : |
| 16184 | case "$host_os" in |
| 16185 | # Guess no on glibc when _FORTIFY_SOURCE >= 2. |
| 16186 | *-gnu* | gnu*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16187 | /* end confdefs.h. */ |
| 16188 | #if _FORTIFY_SOURCE >= 2 |
| 16189 | error fail |
| 16190 | #endif |
| 16191 | |
| 16192 | _ACEOF |
| 16193 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 16194 | then : |
| 16195 | gl_cv_func_printf_directive_n="guessing yes" |
| 16196 | else $as_nop |
| 16197 | gl_cv_func_printf_directive_n="guessing no" |
| 16198 | fi |
| 16199 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16200 | ;; |
| 16201 | # Guess no on Android. |
| 16202 | linux*-android*) gl_cv_func_printf_directive_n="guessing no";; |
| 16203 | # Guess no on native Windows. |
| 16204 | mingw*) gl_cv_func_printf_directive_n="guessing no";; |
| 16205 | *) gl_cv_func_printf_directive_n="guessing yes";; |
| 16206 | esac |
| 16207 | |
| 16208 | else $as_nop |
| 16209 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16210 | /* end confdefs.h. */ |
| 16211 | |
| 16212 | #include <stdio.h> |
| 16213 | #include <stdlib.h> |
| 16214 | #include <string.h> |
| 16215 | #ifdef _MSC_VER |
| 16216 | #include <inttypes.h> |
| 16217 | /* See page about "Parameter Validation" on msdn.microsoft.com. |
| 16218 | <https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation> |
| 16219 | <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler> */ |
| 16220 | static void cdecl |
| 16221 | invalid_parameter_handler (const wchar_t *expression, |
| 16222 | const wchar_t *function, |
| 16223 | const wchar_t *file, unsigned int line, |
| 16224 | uintptr_t dummy) |
| 16225 | { |
| 16226 | exit (1); |
| 16227 | } |
| 16228 | #endif |
| 16229 | static char fmtstring[10]; |
| 16230 | static char buf[100]; |
| 16231 | int main () |
| 16232 | { |
| 16233 | int count = -1; |
| 16234 | #ifdef _MSC_VER |
| 16235 | _set_invalid_parameter_handler (invalid_parameter_handler); |
| 16236 | #endif |
| 16237 | /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) |
| 16238 | support %n in format strings in read-only memory but not in writable |
| 16239 | memory. */ |
| 16240 | strcpy (fmtstring, "%d %n"); |
| 16241 | if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0 |
| 16242 | || strcmp (buf, "123 ") != 0 |
| 16243 | || count != 4) |
| 16244 | return 1; |
| 16245 | return 0; |
| 16246 | } |
| 16247 | _ACEOF |
| 16248 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16249 | then : |
| 16250 | gl_cv_func_printf_directive_n=yes |
| 16251 | else $as_nop |
| 16252 | gl_cv_func_printf_directive_n=no |
| 16253 | fi |
| 16254 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16255 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16256 | fi |
| 16257 | |
| 16258 | |
| 16259 | fi |
| 16260 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5 |
| 16261 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_directive_n" >&6; } |
| 16262 | |
| 16263 | |
| 16264 | |
| 16265 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5 |
| 16266 | printfscip-shell system . . printf. %s "checking whether printf supports the 'ls' directive... " >&6; } |
| 16267 | if testscip-shell system . . test. ${gl_cv_func_printf_directive_ls+y} |
| 16268 | then : |
| 16269 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16270 | else $as_nop |
| 16271 | |
| 16272 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16273 | then : |
| 16274 | |
| 16275 | case "$host_os" in |
| 16276 | # Guess yes on OpenBSD >= 6.0. |
| 16277 | openbsd[1-5].*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16278 | openbsd*) gl_cv_func_printf_directive_ls="guessing yes";; |
| 16279 | irix*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16280 | solaris*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16281 | cygwin*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16282 | beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16283 | # Guess no on Android. |
| 16284 | linux*-android*) gl_cv_func_printf_directive_ls="guessing no";; |
| 16285 | # Guess yes on native Windows. |
| 16286 | mingw*) gl_cv_func_printf_directive_ls="guessing yes";; |
| 16287 | *) gl_cv_func_printf_directive_ls="guessing yes";; |
| 16288 | esac |
| 16289 | |
| 16290 | else $as_nop |
| 16291 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16292 | /* end confdefs.h. */ |
| 16293 | |
| 16294 | #include <stdio.h> |
| 16295 | #include <wchar.h> |
| 16296 | #include <string.h> |
| 16297 | int main () |
| 16298 | { |
| 16299 | int result = 0; |
| 16300 | char buf[100]; |
| 16301 | /* Test whether %ls works at all. |
| 16302 | This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on |
| 16303 | Cygwin 1.5. */ |
| 16304 | { |
| 16305 | static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; |
| 16306 | buf[0] = '\0'; |
| 16307 | if (sprintf (buf, "%ls", wstring) < 0 |
| 16308 | || strcmp (buf, "abc") != 0) |
| 16309 | result |= 1; |
| 16310 | } |
| 16311 | /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an |
| 16312 | assertion failure inside libc), but not on OpenBSD 4.0. */ |
| 16313 | { |
| 16314 | static const wchar_t wstring[] = { 'a', 0 }; |
| 16315 | buf[0] = '\0'; |
| 16316 | if (sprintf (buf, "%ls", wstring) < 0 |
| 16317 | || strcmp (buf, "a") != 0) |
| 16318 | result |= 2; |
| 16319 | } |
| 16320 | /* Test whether precisions in %ls are supported as specified in ISO C 99 |
| 16321 | section 7.19.6.1: |
| 16322 | "If a precision is specified, no more than that many bytes are written |
| 16323 | (including shift sequences, if any), and the array shall contain a |
| 16324 | null wide character if, to equal the multibyte character sequence |
| 16325 | length given by the precision, the function would need to access a |
| 16326 | wide character one past the end of the array." |
| 16327 | This test fails on Solaris 10. */ |
| 16328 | { |
| 16329 | static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 }; |
| 16330 | buf[0] = '\0'; |
| 16331 | if (sprintf (buf, "%.2ls", wstring) < 0 |
| 16332 | || strcmp (buf, "ab") != 0) |
| 16333 | result |= 8; |
| 16334 | } |
| 16335 | return result; |
| 16336 | } |
| 16337 | _ACEOF |
| 16338 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16339 | then : |
| 16340 | gl_cv_func_printf_directive_ls=yes |
| 16341 | else $as_nop |
| 16342 | gl_cv_func_printf_directive_ls=no |
| 16343 | fi |
| 16344 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16345 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16346 | fi |
| 16347 | |
| 16348 | |
| 16349 | fi |
| 16350 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5 |
| 16351 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_directive_ls" >&6; } |
| 16352 | |
| 16353 | |
| 16354 | |
| 16355 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5 |
| 16356 | printfscip-shell system . . printf. %s "checking whether printf supports the grouping flag... " >&6; } |
| 16357 | if testscip-shell system . . test. ${gl_cv_func_printf_flag_grouping+y} |
| 16358 | then : |
| 16359 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16360 | else $as_nop |
| 16361 | |
| 16362 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16363 | then : |
| 16364 | |
| 16365 | case "$host_os" in |
| 16366 | cygwin*) gl_cv_func_printf_flag_grouping="guessing no";; |
| 16367 | netbsd*) gl_cv_func_printf_flag_grouping="guessing no";; |
| 16368 | # Guess no on Android. |
| 16369 | linux*-android*) gl_cv_func_printf_flag_grouping="guessing no";; |
| 16370 | # Guess no on native Windows. |
| 16371 | mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";; |
| 16372 | *) gl_cv_func_printf_flag_grouping="guessing yes";; |
| 16373 | esac |
| 16374 | |
| 16375 | else $as_nop |
| 16376 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16377 | /* end confdefs.h. */ |
| 16378 | |
| 16379 | #include <stdio.h> |
| 16380 | #include <string.h> |
| 16381 | static char buf[100]; |
| 16382 | int main () |
| 16383 | { |
| 16384 | if (sprintf (buf, "%'d %d", 1234567, 99) < 0 |
| 16385 | || buf[strlen (buf) - 1] != '9') |
| 16386 | return 1; |
| 16387 | return 0; |
| 16388 | } |
| 16389 | _ACEOF |
| 16390 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16391 | then : |
| 16392 | gl_cv_func_printf_flag_grouping=yes |
| 16393 | else $as_nop |
| 16394 | gl_cv_func_printf_flag_grouping=no |
| 16395 | fi |
| 16396 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16397 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16398 | fi |
| 16399 | |
| 16400 | |
| 16401 | fi |
| 16402 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5 |
| 16403 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_flag_grouping" >&6; } |
| 16404 | |
| 16405 | |
| 16406 | |
| 16407 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5 |
| 16408 | printfscip-shell system . . printf. %s "checking whether printf supports the left-adjust flag correctly... " >&6; } |
| 16409 | if testscip-shell system . . test. ${gl_cv_func_printf_flag_leftadjust+y} |
| 16410 | then : |
| 16411 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16412 | else $as_nop |
| 16413 | |
| 16414 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16415 | then : |
| 16416 | |
| 16417 | case "$host_os" in |
| 16418 | # Guess yes on HP-UX 11. |
| 16419 | hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";; |
| 16420 | # Guess no on HP-UX 10 and older. |
| 16421 | hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";; |
| 16422 | # Guess yes on Android. |
| 16423 | linux*-android*) gl_cv_func_printf_flag_leftadjust="guessing yes";; |
| 16424 | # Guess yes on native Windows. |
| 16425 | mingw*) gl_cv_func_printf_flag_leftadjust="guessing yes";; |
| 16426 | # Guess yes otherwise. |
| 16427 | *) gl_cv_func_printf_flag_leftadjust="guessing yes";; |
| 16428 | esac |
| 16429 | |
| 16430 | else $as_nop |
| 16431 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16432 | /* end confdefs.h. */ |
| 16433 | |
| 16434 | #include <stdio.h> |
| 16435 | #include <string.h> |
| 16436 | static char buf[100]; |
| 16437 | int main () |
| 16438 | { |
| 16439 | /* Check that a '-' flag is not annihilated by a negative width. */ |
| 16440 | if (sprintf (buf, "a%-*sc", -3, "b") < 0 |
| 16441 | || strcmp (buf, "ab c") != 0) |
| 16442 | return 1; |
| 16443 | return 0; |
| 16444 | } |
| 16445 | _ACEOF |
| 16446 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16447 | then : |
| 16448 | gl_cv_func_printf_flag_leftadjust=yes |
| 16449 | else $as_nop |
| 16450 | gl_cv_func_printf_flag_leftadjust=no |
| 16451 | fi |
| 16452 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16453 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16454 | fi |
| 16455 | |
| 16456 | |
| 16457 | fi |
| 16458 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5 |
| 16459 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_flag_leftadjust" >&6; } |
| 16460 | |
| 16461 | |
| 16462 | |
| 16463 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5 |
| 16464 | printfscip-shell system . . printf. %s "checking whether printf supports the zero flag correctly... " >&6; } |
| 16465 | if testscip-shell system . . test. ${gl_cv_func_printf_flag_zero+y} |
| 16466 | then : |
| 16467 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16468 | else $as_nop |
| 16469 | |
| 16470 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16471 | then : |
| 16472 | |
| 16473 | case "$host_os" in |
| 16474 | # Guess yes on glibc systems. |
| 16475 | *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";; |
| 16476 | # Guess yes on musl systems. |
| 16477 | *-musl*) gl_cv_func_printf_flag_zero="guessing yes";; |
| 16478 | # Guess yes on BeOS. |
| 16479 | beos*) gl_cv_func_printf_flag_zero="guessing yes";; |
| 16480 | # Guess no on Android. |
| 16481 | linux*-android*) gl_cv_func_printf_flag_zero="guessing no";; |
| 16482 | # Guess no on native Windows. |
| 16483 | mingw*) gl_cv_func_printf_flag_zero="guessing no";; |
| 16484 | # If we don't know, obey --enable-cross-guesses. |
| 16485 | *) gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";; |
| 16486 | esac |
| 16487 | |
| 16488 | else $as_nop |
| 16489 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16490 | /* end confdefs.h. */ |
| 16491 | |
| 16492 | #include <stdio.h> |
| 16493 | #include <string.h> |
| 16494 | static char buf[100]; |
| 16495 | static double zero = 0.0; |
| 16496 | int main () |
| 16497 | { |
| 16498 | if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 |
| 16499 | || (strcmp (buf, " inf") != 0 |
| 16500 | && strcmp (buf, " infinity") != 0)) |
| 16501 | return 1; |
| 16502 | return 0; |
| 16503 | } |
| 16504 | _ACEOF |
| 16505 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16506 | then : |
| 16507 | gl_cv_func_printf_flag_zero=yes |
| 16508 | else $as_nop |
| 16509 | gl_cv_func_printf_flag_zero=no |
| 16510 | fi |
| 16511 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16512 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16513 | fi |
| 16514 | |
| 16515 | |
| 16516 | fi |
| 16517 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5 |
| 16518 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_flag_zero" >&6; } |
| 16519 | |
| 16520 | |
| 16521 | |
| 16522 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5 |
| 16523 | printfscip-shell system . . printf. %s "checking whether printf supports large precisions... " >&6; } |
| 16524 | if testscip-shell system . . test. ${gl_cv_func_printf_precision+y} |
| 16525 | then : |
| 16526 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16527 | else $as_nop |
| 16528 | |
| 16529 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16530 | then : |
| 16531 | |
| 16532 | case "$host_os" in |
| 16533 | # Guess no only on Solaris, native Windows, and BeOS systems. |
| 16534 | solaris*) gl_cv_func_printf_precision="guessing no" ;; |
| 16535 | mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;; |
| 16536 | beos*) gl_cv_func_printf_precision="guessing no" ;; |
| 16537 | # Guess yes on Android. |
| 16538 | linux*-android*) gl_cv_func_printf_precision="guessing yes" ;; |
| 16539 | *) gl_cv_func_printf_precision="guessing yes" ;; |
| 16540 | esac |
| 16541 | |
| 16542 | else $as_nop |
| 16543 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16544 | /* end confdefs.h. */ |
| 16545 | |
| 16546 | #include <stdio.h> |
| 16547 | #include <string.h> |
| 16548 | static char buf[5000]; |
| 16549 | int main () |
| 16550 | { |
| 16551 | int result = 0; |
| 16552 | #ifdef __BEOS__ |
| 16553 | /* On BeOS, this would crash and show a dialog box. Avoid the crash. */ |
| 16554 | return 1; |
| 16555 | #endif |
| 16556 | if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3) |
| 16557 | result |= 1; |
| 16558 | if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5) |
| 16559 | result |= 2; |
| 16560 | if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5 |
| 16561 | || buf[0] != '1') |
| 16562 | result |= 4; |
| 16563 | if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5 |
| 16564 | || buf[0] != '1') |
| 16565 | result |= 4; |
| 16566 | return result; |
| 16567 | } |
| 16568 | _ACEOF |
| 16569 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 16570 | then : |
| 16571 | gl_cv_func_printf_precision=yes |
| 16572 | else $as_nop |
| 16573 | gl_cv_func_printf_precision=no |
| 16574 | fi |
| 16575 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16576 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16577 | fi |
| 16578 | |
| 16579 | |
| 16580 | fi |
| 16581 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5 |
| 16582 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_precision" >&6; } |
| 16583 | |
| 16584 | |
| 16585 | |
| 16586 | |
| 16587 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5 |
| 16588 | printfscip-shell system . . printf. %s "checking whether printf survives out-of-memory conditions... " >&6; } |
| 16589 | if testscip-shell system . . test. ${gl_cv_func_printf_enomem+y} |
| 16590 | then : |
| 16591 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16592 | else $as_nop |
| 16593 | |
| 16594 | gl_cv_func_printf_enomem="guessing no" |
| 16595 | if testscip-shell system . . test. "$cross_compiling" = no; then |
| 16596 | if testscip-shell system . . test. $APPLE_UNIVERSAL_BUILD = 0; then |
| 16597 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16598 | /* end confdefs.h. */ |
| 16599 | |
| 16600 | |
| 16601 | #include <stdlib.h> |
| 16602 | #if defined __MACH__ && defined __APPLE__ |
| 16603 | /* Avoid a crash on Mac OS X. */ |
| 16604 | #include <mach/mach.h> |
| 16605 | #include <mach/mach_error.h> |
| 16606 | #include <mach/thread_status.h> |
| 16607 | #include <mach/exception.h> |
| 16608 | #include <mach/task.h> |
| 16609 | #include <pthread.h> |
| 16610 | /* The exception port on which our thread listens. */ |
| 16611 | static mach_port_t our_exception_port; |
| 16612 | /* The main function of the thread listening for exceptions of type |
| 16613 | EXC_BAD_ACCESS. */ |
| 16614 | static void * |
| 16615 | mach_exception_thread (void *arg) |
| 16616 | { |
| 16617 | /* Buffer for a message to be received. */ |
| 16618 | struct { |
| 16619 | mach_msg_header_t head; |
| 16620 | mach_msg_body_t msgh_body; |
| 16621 | char data[1024]; |
| 16622 | } msg; |
| 16623 | mach_msg_return_t retval; |
| 16624 | /* Wait for a message on the exception port. */ |
| 16625 | retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 16626 | our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 16627 | if (retval != MACH_MSG_SUCCESS) |
| 16628 | abort (); |
| 16629 | exit (1); |
| 16630 | } |
| 16631 | static void |
| 16632 | nocrash_init (void) |
| 16633 | { |
| 16634 | mach_port_t self = mach_task_self (); |
| 16635 | /* Allocate a port on which the thread shall listen for exceptions. */ |
| 16636 | if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 16637 | == KERN_SUCCESS) { |
| 16638 | /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 16639 | if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 16640 | MACH_MSG_TYPE_MAKE_SEND) |
| 16641 | == KERN_SUCCESS) { |
| 16642 | /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 16643 | for us. */ |
| 16644 | exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 16645 | /* Create the thread listening on the exception port. */ |
| 16646 | pthread_attr_t attr; |
| 16647 | pthread_t thread; |
| 16648 | if (pthread_attr_init (&attr) == 0 |
| 16649 | && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 16650 | && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 16651 | pthread_attr_destroy (&attr); |
| 16652 | /* Replace the exception port info for these exceptions with our own. |
| 16653 | Note that we replace the exception port for the entire task, not only |
| 16654 | for a particular thread. This has the effect that when our exception |
| 16655 | port gets the message, the thread specific exception port has already |
| 16656 | been asked, and we don't need to bother about it. |
| 16657 | See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 16658 | task_set_exception_ports (self, mask, our_exception_port, |
| 16659 | EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 16660 | } |
| 16661 | } |
| 16662 | } |
| 16663 | } |
| 16664 | #elif defined _WIN32 && ! defined __CYGWIN__ |
| 16665 | /* Avoid a crash on native Windows. */ |
| 16666 | #define WIN32_LEAN_AND_MEAN |
| 16667 | #include <windows.h> |
| 16668 | #include <winerror.h> |
| 16669 | static LONG WINAPI |
| 16670 | exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 16671 | { |
| 16672 | switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 16673 | { |
| 16674 | case EXCEPTION_ACCESS_VIOLATION: |
| 16675 | case EXCEPTION_IN_PAGE_ERROR: |
| 16676 | case EXCEPTION_STACK_OVERFLOW: |
| 16677 | case EXCEPTION_GUARD_PAGE: |
| 16678 | case EXCEPTION_PRIV_INSTRUCTION: |
| 16679 | case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 16680 | case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 16681 | case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 16682 | case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 16683 | exit (1); |
| 16684 | } |
| 16685 | return EXCEPTION_CONTINUE_SEARCH; |
| 16686 | } |
| 16687 | static void |
| 16688 | nocrash_init (void) |
| 16689 | { |
| 16690 | SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 16691 | } |
| 16692 | #else |
| 16693 | /* Avoid a crash on POSIX systems. */ |
| 16694 | #include <signal.h> |
| 16695 | #include <unistd.h> |
| 16696 | /* A POSIX signal handler. */ |
| 16697 | static void |
| 16698 | exception_handler (int sig) |
| 16699 | { |
| 16700 | _exit (1); |
| 16701 | } |
| 16702 | static void |
| 16703 | nocrash_init (void) |
| 16704 | { |
| 16705 | #ifdef SIGSEGV |
| 16706 | signal (SIGSEGV, exception_handler); |
| 16707 | #endif |
| 16708 | #ifdef SIGBUS |
| 16709 | signal (SIGBUS, exception_handler); |
| 16710 | #endif |
| 16711 | } |
| 16712 | #endif |
| 16713 | |
| 16714 | #include <stdio.h> |
| 16715 | #include <sys/types.h> |
| 16716 | #include <sys/time.h> |
| 16717 | #include <sys/resource.h> |
| 16718 | #include <errno.h> |
| 16719 | int main() |
| 16720 | { |
| 16721 | struct rlimit limit; |
| 16722 | int ret; |
| 16723 | nocrash_init (); |
| 16724 | /* Some printf implementations allocate temporary space with malloc. */ |
| 16725 | /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ |
| 16726 | #ifdef RLIMIT_DATA |
| 16727 | if (getrlimit (RLIMIT_DATA, &limit) < 0) |
| 16728 | return 77; |
| 16729 | if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) |
| 16730 | limit.rlim_max = 5000000; |
| 16731 | limit.rlim_cur = limit.rlim_max; |
| 16732 | if (setrlimit (RLIMIT_DATA, &limit) < 0) |
| 16733 | return 77; |
| 16734 | #endif |
| 16735 | /* On Linux systems, malloc() is limited by RLIMIT_AS. */ |
| 16736 | #ifdef RLIMIT_AS |
| 16737 | if (getrlimit (RLIMIT_AS, &limit) < 0) |
| 16738 | return 77; |
| 16739 | if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) |
| 16740 | limit.rlim_max = 5000000; |
| 16741 | limit.rlim_cur = limit.rlim_max; |
| 16742 | if (setrlimit (RLIMIT_AS, &limit) < 0) |
| 16743 | return 77; |
| 16744 | #endif |
| 16745 | /* Some printf implementations allocate temporary space on the stack. */ |
| 16746 | #ifdef RLIMIT_STACK |
| 16747 | if (getrlimit (RLIMIT_STACK, &limit) < 0) |
| 16748 | return 77; |
| 16749 | if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) |
| 16750 | limit.rlim_max = 5000000; |
| 16751 | limit.rlim_cur = limit.rlim_max; |
| 16752 | if (setrlimit (RLIMIT_STACK, &limit) < 0) |
| 16753 | return 77; |
| 16754 | #endif |
| 16755 | ret = printf ("%.5000000f", 1.0); |
| 16756 | return !(ret == 5000002 || (ret < 0 && errno == ENOMEM)); |
| 16757 | } |
| 16758 | |
| 16759 | _ACEOF |
| 16760 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16761 | (eval $ac_link) 2>&5 |
| 16762 | ac_status=$? |
| 16763 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16764 | testscip-shell system . . test. $ac_status = 0; } && testscip-shell system . . test. -s conftest$ac_exeext; then |
| 16765 | (./conftest 2>&5 |
| 16766 | result=$? |
| 16767 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5 |
| 16768 | if testscip-shell system . . test. $result != 0 && testscip-shell system . . test. $result != 77; then result=1; fi |
| 16769 | exit $result |
| 16770 | ) >/dev/nullscip-shell filesystem . . `/dev/null`. 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 16771 | case $? in |
| 16772 | 0) gl_cv_func_printf_enomem="yes" ;; |
| 16773 | 77) gl_cv_func_printf_enomem="guessing no" ;; |
| 16774 | *) gl_cv_func_printf_enomem="no" ;; |
| 16775 | esac |
| 16776 | else |
| 16777 | gl_cv_func_printf_enomem="guessing no" |
| 16778 | fi |
| 16779 | rmscip-shell system . . rm. -fr conftest* |
| 16780 | else |
| 16781 | gl_cv_func_printf_enomem="guessing no" |
| 16782 | fi |
| 16783 | fi |
| 16784 | if testscip-shell system . . test. "$gl_cv_func_printf_enomem" = "guessing no"; then |
| 16785 | case "$host_os" in |
| 16786 | # Guess yes on glibc systems. |
| 16787 | *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";; |
| 16788 | # Guess yes on Solaris. |
| 16789 | solaris*) gl_cv_func_printf_enomem="guessing yes";; |
| 16790 | # Guess yes on AIX. |
| 16791 | aix*) gl_cv_func_printf_enomem="guessing yes";; |
| 16792 | # Guess yes on HP-UX/hppa. |
| 16793 | hpux*) case "$host_cpu" in |
| 16794 | hppa*) gl_cv_func_printf_enomem="guessing yes";; |
| 16795 | *) gl_cv_func_printf_enomem="guessing no";; |
| 16796 | esac |
| 16797 | ;; |
| 16798 | # Guess yes on IRIX. |
| 16799 | irix*) gl_cv_func_printf_enomem="guessing yes";; |
| 16800 | # Guess yes on OSF/1. |
| 16801 | osf*) gl_cv_func_printf_enomem="guessing yes";; |
| 16802 | # Guess yes on BeOS. |
| 16803 | beos*) gl_cv_func_printf_enomem="guessing yes";; |
| 16804 | # Guess yes on Haiku. |
| 16805 | haiku*) gl_cv_func_printf_enomem="guessing yes";; |
| 16806 | # Guess no on Android. |
| 16807 | linux*-android*) gl_cv_func_printf_enomem="guessing no";; |
| 16808 | # If we don't know, obey --enable-cross-guesses. |
| 16809 | *) gl_cv_func_printf_enomem="$gl_cross_guess_normal";; |
| 16810 | esac |
| 16811 | fi |
| 16812 | |
| 16813 | fi |
| 16814 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5 |
| 16815 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_enomem" >&6; } |
| 16816 | |
| 16817 | |
| 16818 | |
| 16819 | case "$gl_cv_func_printf_long_double" in |
| 16820 | *yes) |
| 16821 | ;; |
| 16822 | *) |
| 16823 | |
| 16824 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h |
| 16825 | |
| 16826 | ;; |
| 16827 | esac |
| 16828 | |
| 16829 | |
| 16830 | |
| 16831 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 16832 | printfscip-shell system . . printf. %s "checking for wchar_t... " >&6; } |
| 16833 | if testscip-shell system . . test. ${gt_cv_c_wchar_t+y} |
| 16834 | then : |
| 16835 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16836 | else $as_nop |
| 16837 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16838 | /* end confdefs.h. */ |
| 16839 | #include <stddef.h> |
| 16840 | wchar_t foo = (wchar_t)'\0'; |
| 16841 | int |
| 16842 | main (void) |
| 16843 | { |
| 16844 | |
| 16845 | ; |
| 16846 | return 0; |
| 16847 | } |
| 16848 | _ACEOF |
| 16849 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 16850 | then : |
| 16851 | gt_cv_c_wchar_t=yes |
| 16852 | else $as_nop |
| 16853 | gt_cv_c_wchar_t=no |
| 16854 | fi |
| 16855 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16856 | fi |
| 16857 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 16858 | printfscip-shell system . . printf. "%s\n" "$gt_cv_c_wchar_t" >&6; } |
| 16859 | if testscip-shell system . . test. $gt_cv_c_wchar_t = yes; then |
| 16860 | |
| 16861 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 16862 | |
| 16863 | fi |
| 16864 | |
| 16865 | |
| 16866 | |
| 16867 | |
| 16868 | if testscip-shell system . . test. $ac_cv_header_features_h = yes; then |
| 16869 | HAVE_FEATURES_H=1 |
| 16870 | else |
| 16871 | HAVE_FEATURES_H=0 |
| 16872 | fi |
| 16873 | |
| 16874 | |
| 16875 | |
| 16876 | |
| 16877 | |
| 16878 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 16879 | printfscip-shell system . . printf. %s "checking for intmax_t... " >&6; } |
| 16880 | if testscip-shell system . . test. ${gt_cv_c_intmax_t+y} |
| 16881 | then : |
| 16882 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16883 | else $as_nop |
| 16884 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16885 | /* end confdefs.h. */ |
| 16886 | |
| 16887 | #include <stddef.h> |
| 16888 | #include <stdlib.h> |
| 16889 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 16890 | #include <stdint.h> |
| 16891 | #endif |
| 16892 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 16893 | #include <inttypes.h> |
| 16894 | #endif |
| 16895 | |
| 16896 | int |
| 16897 | main (void) |
| 16898 | { |
| 16899 | intmax_t x = -1; return !x; |
| 16900 | ; |
| 16901 | return 0; |
| 16902 | } |
| 16903 | _ACEOF |
| 16904 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 16905 | then : |
| 16906 | gt_cv_c_intmax_t=yes |
| 16907 | else $as_nop |
| 16908 | gt_cv_c_intmax_t=no |
| 16909 | fi |
| 16910 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16911 | fi |
| 16912 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 16913 | printfscip-shell system . . printf. "%s\n" "$gt_cv_c_intmax_t" >&6; } |
| 16914 | if testscip-shell system . . test. $gt_cv_c_intmax_t = yes; then |
| 16915 | |
| 16916 | printfscip-shell system . . printf. "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 16917 | |
| 16918 | else |
| 16919 | |
| 16920 | printfscip-shell system . . printf. "%s\n" "#define intmax_t long long" >>confdefs.h |
| 16921 | |
| 16922 | fi |
| 16923 | |
| 16924 | |
| 16925 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 |
| 16926 | printfscip-shell system . . printf. %s "checking where to find the exponent in a 'double'... " >&6; } |
| 16927 | if testscip-shell system . . test. ${gl_cv_cc_double_expbit0+y} |
| 16928 | then : |
| 16929 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16930 | else $as_nop |
| 16931 | |
| 16932 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 16933 | then : |
| 16934 | |
| 16935 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16936 | /* end confdefs.h. */ |
| 16937 | |
| 16938 | #if defined arm || defined __arm || defined __arm__ |
| 16939 | mixed_endianness |
| 16940 | #endif |
| 16941 | |
| 16942 | _ACEOF |
| 16943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16944 | $EGREP "mixed_endianness" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 16945 | then : |
| 16946 | gl_cv_cc_double_expbit0="unknown" |
| 16947 | else $as_nop |
| 16948 | |
| 16949 | : |
| 16950 | if testscip-shell system . . test. ${ac_cv_c_bigendian+y} |
| 16951 | then : |
| 16952 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 16953 | else $as_nop |
| 16954 | ac_cv_c_bigendian=unknown |
| 16955 | # See if we're dealing with a universal compiler. |
| 16956 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16957 | /* end confdefs.h. */ |
| 16958 | #ifndef __APPLE_CC__ |
| 16959 | not a universal capable compiler |
| 16960 | #endif |
| 16961 | typedef int dummy; |
| 16962 | |
| 16963 | _ACEOF |
| 16964 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 16965 | then : |
| 16966 | |
| 16967 | # Check for potential -arch flags. It is not universal unless |
| 16968 | # there are at least two -arch flags with different values. |
| 16969 | ac_arch= |
| 16970 | ac_prev= |
| 16971 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 16972 | if testscip-shell system . . test. -n "$ac_prev"; then |
| 16973 | case $ac_word in |
| 16974 | i?86 | x86_64 | ppc | ppc64) |
| 16975 | if testscip-shell system . . test. -z "$ac_arch" || testscip-shell system . . test. "$ac_arch" = "$ac_word"; then |
| 16976 | ac_arch=$ac_word |
| 16977 | else |
| 16978 | ac_cv_c_bigendian=universal |
| 16979 | break |
| 16980 | fi |
| 16981 | ;; |
| 16982 | esac |
| 16983 | ac_prev= |
| 16984 | elif testscip-shell system . . test. "x$ac_word" = "x-arch"; then |
| 16985 | ac_prev=arch |
| 16986 | fi |
| 16987 | done |
| 16988 | fi |
| 16989 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16990 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 16991 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16992 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16993 | /* end confdefs.h. */ |
| 16994 | #include <sys/types.h> |
| 16995 | #include <sys/param.h> |
| 16996 | |
| 16997 | int |
| 16998 | main (void) |
| 16999 | { |
| 17000 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 17001 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 17002 | && LITTLE_ENDIAN) |
| 17003 | bogus endian macros |
| 17004 | #endif |
| 17005 | |
| 17006 | ; |
| 17007 | return 0; |
| 17008 | } |
| 17009 | _ACEOF |
| 17010 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17011 | then : |
| 17012 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 17013 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17014 | /* end confdefs.h. */ |
| 17015 | #include <sys/types.h> |
| 17016 | #include <sys/param.h> |
| 17017 | |
| 17018 | int |
| 17019 | main (void) |
| 17020 | { |
| 17021 | #if BYTE_ORDER != BIG_ENDIAN |
| 17022 | not big endian |
| 17023 | #endif |
| 17024 | |
| 17025 | ; |
| 17026 | return 0; |
| 17027 | } |
| 17028 | _ACEOF |
| 17029 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17030 | then : |
| 17031 | ac_cv_c_bigendian=yes |
| 17032 | else $as_nop |
| 17033 | ac_cv_c_bigendian=no |
| 17034 | fi |
| 17035 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17036 | fi |
| 17037 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17038 | fi |
| 17039 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 17040 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 17041 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17042 | /* end confdefs.h. */ |
| 17043 | #include <limits.h> |
| 17044 | |
| 17045 | int |
| 17046 | main (void) |
| 17047 | { |
| 17048 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 17049 | bogus endian macros |
| 17050 | #endif |
| 17051 | |
| 17052 | ; |
| 17053 | return 0; |
| 17054 | } |
| 17055 | _ACEOF |
| 17056 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17057 | then : |
| 17058 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 17059 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17060 | /* end confdefs.h. */ |
| 17061 | #include <limits.h> |
| 17062 | |
| 17063 | int |
| 17064 | main (void) |
| 17065 | { |
| 17066 | #ifndef _BIG_ENDIAN |
| 17067 | not big endian |
| 17068 | #endif |
| 17069 | |
| 17070 | ; |
| 17071 | return 0; |
| 17072 | } |
| 17073 | _ACEOF |
| 17074 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17075 | then : |
| 17076 | ac_cv_c_bigendian=yes |
| 17077 | else $as_nop |
| 17078 | ac_cv_c_bigendian=no |
| 17079 | fi |
| 17080 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17081 | fi |
| 17082 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17083 | fi |
| 17084 | if testscip-shell system . . test. $ac_cv_c_bigendian = unknown; then |
| 17085 | # Compile a test program. |
| 17086 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 17087 | then : |
| 17088 | # Try to guess by grepping values from an object file. |
| 17089 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17090 | /* end confdefs.h. */ |
| 17091 | unsigned short int ascii_mm[] = |
| 17092 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 17093 | unsigned short int ascii_ii[] = |
| 17094 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 17095 | int use_ascii (int i) { |
| 17096 | return ascii_mm[i] + ascii_ii[i]; |
| 17097 | } |
| 17098 | unsigned short int ebcdic_ii[] = |
| 17099 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 17100 | unsigned short int ebcdic_mm[] = |
| 17101 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 17102 | int use_ebcdic (int i) { |
| 17103 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 17104 | } |
| 17105 | extern int foo; |
| 17106 | |
| 17107 | int |
| 17108 | main (void) |
| 17109 | { |
| 17110 | return use_ascii (foo) == use_ebcdic (foo); |
| 17111 | ; |
| 17112 | return 0; |
| 17113 | } |
| 17114 | _ACEOF |
| 17115 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17116 | then : |
| 17117 | if grepscip-shell system . . grep. BIGenDianSyS conftest.$ac_objext >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 17118 | ac_cv_c_bigendian=yes |
| 17119 | fi |
| 17120 | if grepscip-shell system . . grep. LiTTleEnDian conftest.$ac_objext >/dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 17121 | if testscip-shell system . . test. "$ac_cv_c_bigendian" = unknown; then |
| 17122 | ac_cv_c_bigendian=no |
| 17123 | else |
| 17124 | # finding both strings is unlikely to happen, but who knows? |
| 17125 | ac_cv_c_bigendian=unknown |
| 17126 | fi |
| 17127 | fi |
| 17128 | fi |
| 17129 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17130 | else $as_nop |
| 17131 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17132 | /* end confdefs.h. */ |
| 17133 | $ac_includes_default |
| 17134 | int |
| 17135 | main (void) |
| 17136 | { |
| 17137 | |
| 17138 | /* Are we little or big endian? From Harbison&Steele. */ |
| 17139 | union |
| 17140 | { |
| 17141 | long int l; |
| 17142 | char c[sizeof (long int)]; |
| 17143 | } u; |
| 17144 | u.l = 1; |
| 17145 | return u.c[sizeof (long int) - 1] == 1; |
| 17146 | |
| 17147 | ; |
| 17148 | return 0; |
| 17149 | } |
| 17150 | _ACEOF |
| 17151 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 17152 | then : |
| 17153 | ac_cv_c_bigendian=no |
| 17154 | else $as_nop |
| 17155 | ac_cv_c_bigendian=yes |
| 17156 | fi |
| 17157 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17158 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17159 | fi |
| 17160 | |
| 17161 | fi |
| 17162 | fi |
| 17163 | : |
| 17164 | case $ac_cv_c_bigendian in #( |
| 17165 | yes) |
| 17166 | gl_cv_cc_double_expbit0="word 0 bit 20";; #( |
| 17167 | no) |
| 17168 | gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( |
| 17169 | universal) |
| 17170 | |
| 17171 | printfscip-shell system . . printf. "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 17172 | |
| 17173 | ;; #( |
| 17174 | *) |
| 17175 | gl_cv_cc_double_expbit0="unknown" ;; |
| 17176 | esac |
| 17177 | |
| 17178 | |
| 17179 | fi |
| 17180 | rmscip-shell system . . rm. -rf conftest* |
| 17181 | |
| 17182 | |
| 17183 | else $as_nop |
| 17184 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17185 | /* end confdefs.h. */ |
| 17186 | |
| 17187 | #include <float.h> |
| 17188 | #include <stddef.h> |
| 17189 | #include <stdio.h> |
| 17190 | #include <string.h> |
| 17191 | #define NWORDS \ |
| 17192 | ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 17193 | typedef union { double value; unsigned int word[NWORDS]; } memory_double; |
| 17194 | static unsigned int ored_words[NWORDS]; |
| 17195 | static unsigned int anded_words[NWORDS]; |
| 17196 | static void add_to_ored_words (double x) |
| 17197 | { |
| 17198 | memory_double m; |
| 17199 | size_t i; |
| 17200 | /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ |
| 17201 | memset (&m, 0, sizeof (memory_double)); |
| 17202 | m.value = x; |
| 17203 | for (i = 0; i < NWORDS; i++) |
| 17204 | { |
| 17205 | ored_words[i] |= m.word[i]; |
| 17206 | anded_words[i] &= m.word[i]; |
| 17207 | } |
| 17208 | } |
| 17209 | int main () |
| 17210 | { |
| 17211 | size_t j; |
| 17212 | FILE *fp = fopen ("conftest.out", "w"); |
| 17213 | if (fp == NULL) |
| 17214 | return 1; |
| 17215 | for (j = 0; j < NWORDS; j++) |
| 17216 | anded_words[j] = ~ (unsigned int) 0; |
| 17217 | add_to_ored_words (0.25); |
| 17218 | add_to_ored_words (0.5); |
| 17219 | add_to_ored_words (1.0); |
| 17220 | add_to_ored_words (2.0); |
| 17221 | add_to_ored_words (4.0); |
| 17222 | /* Remove bits that are common (e.g. if representation of the first mantissa |
| 17223 | bit is explicit). */ |
| 17224 | for (j = 0; j < NWORDS; j++) |
| 17225 | ored_words[j] &= ~anded_words[j]; |
| 17226 | /* Now find the nonzero word. */ |
| 17227 | for (j = 0; j < NWORDS; j++) |
| 17228 | if (ored_words[j] != 0) |
| 17229 | break; |
| 17230 | if (j < NWORDS) |
| 17231 | { |
| 17232 | size_t i; |
| 17233 | for (i = j + 1; i < NWORDS; i++) |
| 17234 | if (ored_words[i] != 0) |
| 17235 | { |
| 17236 | fprintf (fp, "unknown"); |
| 17237 | return (fclose (fp) != 0); |
| 17238 | } |
| 17239 | for (i = 0; ; i++) |
| 17240 | if ((ored_words[j] >> i) & 1) |
| 17241 | { |
| 17242 | fprintf (fp, "word %d bit %d", (int) j, (int) i); |
| 17243 | return (fclose (fp) != 0); |
| 17244 | } |
| 17245 | } |
| 17246 | fprintf (fp, "unknown"); |
| 17247 | return (fclose (fp) != 0); |
| 17248 | } |
| 17249 | |
| 17250 | _ACEOF |
| 17251 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 17252 | then : |
| 17253 | gl_cv_cc_double_expbit0=`catscip-shell system . . cat. conftest.out` |
| 17254 | else $as_nop |
| 17255 | gl_cv_cc_double_expbit0="unknown" |
| 17256 | fi |
| 17257 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17258 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17259 | fi |
| 17260 | |
| 17261 | rmscip-shell system . . rm. -f conftest.out |
| 17262 | |
| 17263 | fi |
| 17264 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 |
| 17265 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_double_expbit0" >&6; } |
| 17266 | case "$gl_cv_cc_double_expbit0" in |
| 17267 | word*bit*) |
| 17268 | word=`echoscip-shell system . . echo. "$gl_cv_cc_double_expbit0" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 17269 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_double_expbit0" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 17270 | |
| 17271 | printfscip-shell system . . printf. "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h |
| 17272 | |
| 17273 | |
| 17274 | printfscip-shell system . . printf. "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h |
| 17275 | |
| 17276 | ;; |
| 17277 | esac |
| 17278 | |
| 17279 | |
| 17280 | |
| 17281 | |
| 17282 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 |
| 17283 | printfscip-shell system . . printf. %s "checking whether snprintf truncates the result as in C99... " >&6; } |
| 17284 | if testscip-shell system . . test. ${gl_cv_func_snprintf_truncation_c99+y} |
| 17285 | then : |
| 17286 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17287 | else $as_nop |
| 17288 | |
| 17289 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 17290 | then : |
| 17291 | |
| 17292 | case "$host_os" in |
| 17293 | # Guess yes on glibc systems. |
| 17294 | *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17295 | # Guess yes on musl systems. |
| 17296 | *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17297 | # Guess yes on FreeBSD >= 5. |
| 17298 | freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17299 | freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17300 | midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17301 | # Guess yes on Mac OS X >= 10.3. |
| 17302 | darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17303 | darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17304 | # Guess yes on OpenBSD >= 3.9. |
| 17305 | openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) |
| 17306 | gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17307 | openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17308 | # Guess yes on Solaris >= 2.6. |
| 17309 | solaris2.[0-5] | solaris2.[0-5].*) |
| 17310 | gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17311 | solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17312 | # Guess yes on AIX >= 4. |
| 17313 | aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17314 | aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17315 | # Guess yes on HP-UX >= 11. |
| 17316 | hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17317 | hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17318 | # Guess yes on IRIX >= 6.5. |
| 17319 | irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17320 | # Guess yes on OSF/1 >= 5. |
| 17321 | osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17322 | osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17323 | # Guess yes on NetBSD >= 3. |
| 17324 | netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) |
| 17325 | gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17326 | netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17327 | # Guess yes on BeOS. |
| 17328 | beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17329 | # Guess yes on Android. |
| 17330 | linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";; |
| 17331 | # Guess no on native Windows. |
| 17332 | mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";; |
| 17333 | # If we don't know, obey --enable-cross-guesses. |
| 17334 | *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; |
| 17335 | esac |
| 17336 | |
| 17337 | else $as_nop |
| 17338 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17339 | /* end confdefs.h. */ |
| 17340 | |
| 17341 | #include <stdio.h> |
| 17342 | #include <string.h> |
| 17343 | #if HAVE_SNPRINTF |
| 17344 | # define my_snprintf snprintf |
| 17345 | #else |
| 17346 | # include <stdarg.h> |
| 17347 | static int my_snprintf (char *buf, int size, const char *format, ...) |
| 17348 | { |
| 17349 | va_list args; |
| 17350 | int ret; |
| 17351 | va_start (args, format); |
| 17352 | ret = vsnprintf (buf, size, format, args); |
| 17353 | va_end (args); |
| 17354 | return ret; |
| 17355 | } |
| 17356 | #endif |
| 17357 | static char buf[100]; |
| 17358 | int main () |
| 17359 | { |
| 17360 | strcpy (buf, "ABCDEF"); |
| 17361 | my_snprintf (buf, 3, "%d %d", 4567, 89); |
| 17362 | if (memcmp (buf, "45\0DEF", 6) != 0) |
| 17363 | return 1; |
| 17364 | return 0; |
| 17365 | } |
| 17366 | _ACEOF |
| 17367 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 17368 | then : |
| 17369 | gl_cv_func_snprintf_truncation_c99=yes |
| 17370 | else $as_nop |
| 17371 | gl_cv_func_snprintf_truncation_c99=no |
| 17372 | fi |
| 17373 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17374 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17375 | fi |
| 17376 | |
| 17377 | |
| 17378 | fi |
| 17379 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 |
| 17380 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; } |
| 17381 | |
| 17382 | |
| 17383 | |
| 17384 | |
| 17385 | |
| 17386 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 17387 | if testscip-shell system . . test. "x$ac_cv_func_snprintf" = xyes |
| 17388 | then : |
| 17389 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 17390 | |
| 17391 | fi |
| 17392 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "strnlen" "ac_cv_func_strnlen" |
| 17393 | if testscip-shell system . . test. "x$ac_cv_func_strnlen" = xyes |
| 17394 | then : |
| 17395 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h |
| 17396 | |
| 17397 | fi |
| 17398 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "wcslen" "ac_cv_func_wcslen" |
| 17399 | if testscip-shell system . . test. "x$ac_cv_func_wcslen" = xyes |
| 17400 | then : |
| 17401 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h |
| 17402 | |
| 17403 | fi |
| 17404 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen" |
| 17405 | if testscip-shell system . . test. "x$ac_cv_func_wcsnlen" = xyes |
| 17406 | then : |
| 17407 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h |
| 17408 | |
| 17409 | fi |
| 17410 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" |
| 17411 | if testscip-shell system . . test. "x$ac_cv_func_mbrtowc" = xyes |
| 17412 | then : |
| 17413 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h |
| 17414 | |
| 17415 | fi |
| 17416 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" |
| 17417 | if testscip-shell system . . test. "x$ac_cv_func_wcrtomb" = xyes |
| 17418 | then : |
| 17419 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h |
| 17420 | |
| 17421 | fi |
| 17422 | |
| 17423 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 17424 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17425 | if testscip-shell system . . test. "x$ac_cv_have_decl__snprintf" = xyes |
| 17426 | then : |
| 17427 | ac_have_decl=1 |
| 17428 | else $as_nop |
| 17429 | ac_have_decl=0 |
| 17430 | fi |
| 17431 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h |
| 17432 | |
| 17433 | |
| 17434 | |
| 17435 | case "$gl_cv_func_snprintf_retval_c99" in |
| 17436 | *yes) |
| 17437 | |
| 17438 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h |
| 17439 | |
| 17440 | ;; |
| 17441 | esac |
| 17442 | |
| 17443 | case "$gl_cv_func_snprintf_truncation_c99" in |
| 17444 | *yes) |
| 17445 | |
| 17446 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h |
| 17447 | |
| 17448 | ;; |
| 17449 | esac |
| 17450 | |
| 17451 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 17452 | printfscip-shell system . . printf. %s "checking for stdbool.h that conforms to C99... " >&6; } |
| 17453 | if testscip-shell system . . test. ${ac_cv_header_stdbool_h+y} |
| 17454 | then : |
| 17455 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17456 | else $as_nop |
| 17457 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17458 | /* end confdefs.h. */ |
| 17459 | |
| 17460 | #include <stdbool.h> |
| 17461 | |
| 17462 | #ifdef __cplusplus |
| 17463 | typedef bool Bool; |
| 17464 | #else |
| 17465 | typedef _Bool Bool; |
| 17466 | #ifndef bool |
| 17467 | "error: bool is not defined" |
| 17468 | #endif |
| 17469 | #ifndef false |
| 17470 | "error: false is not defined" |
| 17471 | #endif |
| 17472 | #if false |
| 17473 | "error: false is not 0" |
| 17474 | #endif |
| 17475 | #ifndef true |
| 17476 | "error: true is not defined" |
| 17477 | #endif |
| 17478 | #if true != 1 |
| 17479 | "error: true is not 1" |
| 17480 | #endif |
| 17481 | #endif |
| 17482 | |
| 17483 | #ifndef __bool_true_false_are_defined |
| 17484 | "error: __bool_true_false_are_defined is not defined" |
| 17485 | #endif |
| 17486 | |
| 17487 | struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; |
| 17488 | |
| 17489 | char a[true == 1 ? 1 : -1]; |
| 17490 | char b[false == 0 ? 1 : -1]; |
| 17491 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 17492 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 17493 | /* See body of main program for 'e'. */ |
| 17494 | char f[(Bool) 0.0 == false ? 1 : -1]; |
| 17495 | char g[true]; |
| 17496 | char h[sizeof (Bool)]; |
| 17497 | char i[sizeof s.t]; |
| 17498 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 17499 | /* The following fails for |
| 17500 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 17501 | Bool n[m]; |
| 17502 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 17503 | char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 17504 | /* Catch a bug in an HP-UX C compiler. See |
| 17505 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 17506 | https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html |
| 17507 | */ |
| 17508 | Bool q = true; |
| 17509 | Bool *pq = &q; |
| 17510 | bool *qq = &q; |
| 17511 | |
| 17512 | int |
| 17513 | main (void) |
| 17514 | { |
| 17515 | |
| 17516 | bool e = &s; |
| 17517 | *pq |= q; *pq |= ! q; |
| 17518 | *qq |= q; *qq |= ! q; |
| 17519 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 17520 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 17521 | + !m + !n + !o + !p + !q + !pq + !qq); |
| 17522 | |
| 17523 | ; |
| 17524 | return 0; |
| 17525 | } |
| 17526 | _ACEOF |
| 17527 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17528 | then : |
| 17529 | ac_cv_header_stdbool_h=yes |
| 17530 | else $as_nop |
| 17531 | ac_cv_header_stdbool_h=no |
| 17532 | fi |
| 17533 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17534 | fi |
| 17535 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 17536 | printfscip-shell system . . printf. "%s\n" "$ac_cv_header_stdbool_h" >&6; } |
| 17537 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 17538 | if testscip-shell system . . test. "x$ac_cv_type__Bool" = xyes |
| 17539 | then : |
| 17540 | |
| 17541 | printfscip-shell system . . printf. "%s\n" "#define HAVE__BOOL 1" >>confdefs.h |
| 17542 | |
| 17543 | |
| 17544 | fi |
| 17545 | |
| 17546 | |
| 17547 | |
| 17548 | REPLACE_NULL=0; |
| 17549 | HAVE_MAX_ALIGN_T=1; |
| 17550 | HAVE_WCHAR_T=1; |
| 17551 | |
| 17552 | |
| 17553 | |
| 17554 | |
| 17555 | |
| 17556 | |
| 17557 | |
| 17558 | GL_GENERATE_STDDEF_H=false |
| 17559 | |
| 17560 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 |
| 17561 | printfscip-shell system . . printf. %s "checking for good max_align_t... " >&6; } |
| 17562 | if testscip-shell system . . test. ${gl_cv_type_max_align_t+y} |
| 17563 | then : |
| 17564 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17565 | else $as_nop |
| 17566 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17567 | /* end confdefs.h. */ |
| 17568 | #include <stddef.h> |
| 17569 | unsigned int s = sizeof (max_align_t); |
| 17570 | #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ |
| 17571 | int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; |
| 17572 | int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; |
| 17573 | #endif |
| 17574 | typedef struct { char a; max_align_t b; } max_helper; |
| 17575 | typedef struct { char a; long b; } long_helper; |
| 17576 | typedef struct { char a; double b; } double_helper; |
| 17577 | typedef struct { char a; long double b; } long_double_helper; |
| 17578 | int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1]; |
| 17579 | int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1]; |
| 17580 | int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; |
| 17581 | |
| 17582 | int |
| 17583 | main (void) |
| 17584 | { |
| 17585 | |
| 17586 | ; |
| 17587 | return 0; |
| 17588 | } |
| 17589 | _ACEOF |
| 17590 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17591 | then : |
| 17592 | gl_cv_type_max_align_t=yes |
| 17593 | else $as_nop |
| 17594 | gl_cv_type_max_align_t=no |
| 17595 | fi |
| 17596 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17597 | |
| 17598 | fi |
| 17599 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 |
| 17600 | printfscip-shell system . . printf. "%s\n" "$gl_cv_type_max_align_t" >&6; } |
| 17601 | if testscip-shell system . . test. $gl_cv_type_max_align_t = no; then |
| 17602 | HAVE_MAX_ALIGN_T=0 |
| 17603 | GL_GENERATE_STDDEF_H=true |
| 17604 | fi |
| 17605 | |
| 17606 | if testscip-shell system . . test. $gt_cv_c_wchar_t = no; then |
| 17607 | HAVE_WCHAR_T=0 |
| 17608 | GL_GENERATE_STDDEF_H=true |
| 17609 | fi |
| 17610 | |
| 17611 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
| 17612 | printfscip-shell system . . printf. %s "checking whether NULL can be used in arbitrary expressions... " >&6; } |
| 17613 | if testscip-shell system . . test. ${gl_cv_decl_null_works+y} |
| 17614 | then : |
| 17615 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17616 | else $as_nop |
| 17617 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17618 | /* end confdefs.h. */ |
| 17619 | #include <stddef.h> |
| 17620 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
| 17621 | |
| 17622 | int |
| 17623 | main (void) |
| 17624 | { |
| 17625 | |
| 17626 | ; |
| 17627 | return 0; |
| 17628 | } |
| 17629 | _ACEOF |
| 17630 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17631 | then : |
| 17632 | gl_cv_decl_null_works=yes |
| 17633 | else $as_nop |
| 17634 | gl_cv_decl_null_works=no |
| 17635 | fi |
| 17636 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17637 | fi |
| 17638 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
| 17639 | printfscip-shell system . . printf. "%s\n" "$gl_cv_decl_null_works" >&6; } |
| 17640 | if testscip-shell system . . test. $gl_cv_decl_null_works = no; then |
| 17641 | REPLACE_NULL=1 |
| 17642 | GL_GENERATE_STDDEF_H=true |
| 17643 | fi |
| 17644 | |
| 17645 | if $GL_GENERATE_STDDEF_H; then |
| 17646 | |
| 17647 | |
| 17648 | |
| 17649 | |
| 17650 | |
| 17651 | |
| 17652 | |
| 17653 | |
| 17654 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 17655 | gl_cv_next_stddef_h='<'stddef.h'>' |
| 17656 | else |
| 17657 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 |
| 17658 | printfscip-shell system . . printf. %s "checking absolute name of <stddef.h>... " >&6; } |
| 17659 | if testscip-shell system . . test. ${gl_cv_next_stddef_h+y} |
| 17660 | then : |
| 17661 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17662 | else $as_nop |
| 17663 | |
| 17664 | |
| 17665 | |
| 17666 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17667 | /* end confdefs.h. */ |
| 17668 | #include <stddef.h> |
| 17669 | _ACEOF |
| 17670 | case "$host_os" in |
| 17671 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17672 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17673 | esac |
| 17674 | |
| 17675 | case "$host_os" in |
| 17676 | mingw*) |
| 17677 | gl_dirsep_regex='[/\\]' |
| 17678 | ;; |
| 17679 | *) |
| 17680 | gl_dirsep_regex='\/' |
| 17681 | ;; |
| 17682 | esac |
| 17683 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17684 | gl_header_literal_regex=`echoscip-shell system . . echo. 'stddef.h' \ |
| 17685 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 17686 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17687 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17688 | s|^/[^/]|//&| |
| 17689 | p |
| 17690 | q |
| 17691 | }' |
| 17692 | |
| 17693 | gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17694 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 17695 | |
| 17696 | gl_header=$gl_cv_absolute_stddef_h |
| 17697 | gl_cv_next_stddef_h='"'$gl_header'"' |
| 17698 | |
| 17699 | |
| 17700 | fi |
| 17701 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 17702 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_stddef_h" >&6; } |
| 17703 | fi |
| 17704 | NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 17705 | |
| 17706 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 17707 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17708 | gl_next_as_first_directive='<'stddef.h'>' |
| 17709 | else |
| 17710 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17711 | gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 17712 | fi |
| 17713 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 17714 | |
| 17715 | |
| 17716 | |
| 17717 | |
| 17718 | fi |
| 17719 | |
| 17720 | |
| 17721 | |
| 17722 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17723 | if testscip-shell system . . test. "x$ac_cv_have_decl_fcloseall" = xyes |
| 17724 | then : |
| 17725 | ac_have_decl=1 |
| 17726 | else $as_nop |
| 17727 | ac_have_decl=0 |
| 17728 | fi |
| 17729 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h |
| 17730 | |
| 17731 | |
| 17732 | |
| 17733 | |
| 17734 | printfscip-shell system . . printf. "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h |
| 17735 | |
| 17736 | |
| 17737 | |
| 17738 | |
| 17739 | |
| 17740 | |
| 17741 | |
| 17742 | |
| 17743 | |
| 17744 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 17745 | gl_cv_next_stdio_h='<'stdio.h'>' |
| 17746 | else |
| 17747 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 |
| 17748 | printfscip-shell system . . printf. %s "checking absolute name of <stdio.h>... " >&6; } |
| 17749 | if testscip-shell system . . test. ${gl_cv_next_stdio_h+y} |
| 17750 | then : |
| 17751 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17752 | else $as_nop |
| 17753 | |
| 17754 | |
| 17755 | |
| 17756 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17757 | /* end confdefs.h. */ |
| 17758 | #include <stdio.h> |
| 17759 | _ACEOF |
| 17760 | case "$host_os" in |
| 17761 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17762 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17763 | esac |
| 17764 | |
| 17765 | case "$host_os" in |
| 17766 | mingw*) |
| 17767 | gl_dirsep_regex='[/\\]' |
| 17768 | ;; |
| 17769 | *) |
| 17770 | gl_dirsep_regex='\/' |
| 17771 | ;; |
| 17772 | esac |
| 17773 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17774 | gl_header_literal_regex=`echoscip-shell system . . echo. 'stdio.h' \ |
| 17775 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 17776 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17777 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17778 | s|^/[^/]|//&| |
| 17779 | p |
| 17780 | q |
| 17781 | }' |
| 17782 | |
| 17783 | gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17784 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 17785 | |
| 17786 | gl_header=$gl_cv_absolute_stdio_h |
| 17787 | gl_cv_next_stdio_h='"'$gl_header'"' |
| 17788 | |
| 17789 | |
| 17790 | fi |
| 17791 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 |
| 17792 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_stdio_h" >&6; } |
| 17793 | fi |
| 17794 | NEXT_STDIO_H=$gl_cv_next_stdio_h |
| 17795 | |
| 17796 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 17797 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17798 | gl_next_as_first_directive='<'stdio.h'>' |
| 17799 | else |
| 17800 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17801 | gl_next_as_first_directive=$gl_cv_next_stdio_h |
| 17802 | fi |
| 17803 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive |
| 17804 | |
| 17805 | |
| 17806 | |
| 17807 | |
| 17808 | |
| 17809 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 |
| 17810 | printfscip-shell system . . printf. %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } |
| 17811 | if testscip-shell system . . test. ${gl_cv_func_printf_attribute_flavor+y} |
| 17812 | then : |
| 17813 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17814 | else $as_nop |
| 17815 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17816 | /* end confdefs.h. */ |
| 17817 | |
| 17818 | #define __STDC_FORMAT_MACROS 1 |
| 17819 | #include <stdio.h> |
| 17820 | #include <inttypes.h> |
| 17821 | /* For non-mingw systems, compilation will trivially succeed. |
| 17822 | For mingw, compilation will succeed for older mingw (system |
| 17823 | printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ |
| 17824 | #if (defined _WIN32 && ! defined __CYGWIN__) && \ |
| 17825 | (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) |
| 17826 | extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; |
| 17827 | #endif |
| 17828 | |
| 17829 | int |
| 17830 | main (void) |
| 17831 | { |
| 17832 | |
| 17833 | ; |
| 17834 | return 0; |
| 17835 | } |
| 17836 | _ACEOF |
| 17837 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 17838 | then : |
| 17839 | gl_cv_func_printf_attribute_flavor=system |
| 17840 | else $as_nop |
| 17841 | gl_cv_func_printf_attribute_flavor=gnu |
| 17842 | fi |
| 17843 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17844 | fi |
| 17845 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 |
| 17846 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } |
| 17847 | if testscip-shell system . . test. "$gl_cv_func_printf_attribute_flavor" = gnu; then |
| 17848 | |
| 17849 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h |
| 17850 | |
| 17851 | fi |
| 17852 | |
| 17853 | |
| 17854 | |
| 17855 | |
| 17856 | |
| 17857 | |
| 17858 | |
| 17859 | |
| 17860 | |
| 17861 | |
| 17862 | |
| 17863 | |
| 17864 | |
| 17865 | if testscip-shell system . . test. $ac_cv_have_decl_fcloseall = no; then |
| 17866 | HAVE_DECL_FCLOSEALL=0 |
| 17867 | fi |
| 17868 | |
| 17869 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17870 | if testscip-shell system . . test. "x$ac_cv_have_decl_ecvt" = xyes |
| 17871 | then : |
| 17872 | ac_have_decl=1 |
| 17873 | else $as_nop |
| 17874 | ac_have_decl=0 |
| 17875 | fi |
| 17876 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h |
| 17877 | |
| 17878 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17879 | if testscip-shell system . . test. "x$ac_cv_have_decl_fcvt" = xyes |
| 17880 | then : |
| 17881 | ac_have_decl=1 |
| 17882 | else $as_nop |
| 17883 | ac_have_decl=0 |
| 17884 | fi |
| 17885 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h |
| 17886 | |
| 17887 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 17888 | if testscip-shell system . . test. "x$ac_cv_have_decl_gcvt" = xyes |
| 17889 | then : |
| 17890 | ac_have_decl=1 |
| 17891 | else $as_nop |
| 17892 | ac_have_decl=0 |
| 17893 | fi |
| 17894 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h |
| 17895 | |
| 17896 | |
| 17897 | |
| 17898 | |
| 17899 | |
| 17900 | |
| 17901 | |
| 17902 | |
| 17903 | |
| 17904 | |
| 17905 | |
| 17906 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 17907 | gl_cv_next_stdlib_h='<'stdlib.h'>' |
| 17908 | else |
| 17909 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 |
| 17910 | printfscip-shell system . . printf. %s "checking absolute name of <stdlib.h>... " >&6; } |
| 17911 | if testscip-shell system . . test. ${gl_cv_next_stdlib_h+y} |
| 17912 | then : |
| 17913 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 17914 | else $as_nop |
| 17915 | |
| 17916 | |
| 17917 | |
| 17918 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17919 | /* end confdefs.h. */ |
| 17920 | #include <stdlib.h> |
| 17921 | _ACEOF |
| 17922 | case "$host_os" in |
| 17923 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17924 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17925 | esac |
| 17926 | |
| 17927 | case "$host_os" in |
| 17928 | mingw*) |
| 17929 | gl_dirsep_regex='[/\\]' |
| 17930 | ;; |
| 17931 | *) |
| 17932 | gl_dirsep_regex='\/' |
| 17933 | ;; |
| 17934 | esac |
| 17935 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17936 | gl_header_literal_regex=`echoscip-shell system . . echo. 'stdlib.h' \ |
| 17937 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 17938 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17939 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17940 | s|^/[^/]|//&| |
| 17941 | p |
| 17942 | q |
| 17943 | }' |
| 17944 | |
| 17945 | gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17946 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 17947 | |
| 17948 | gl_header=$gl_cv_absolute_stdlib_h |
| 17949 | gl_cv_next_stdlib_h='"'$gl_header'"' |
| 17950 | |
| 17951 | |
| 17952 | fi |
| 17953 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 |
| 17954 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_stdlib_h" >&6; } |
| 17955 | fi |
| 17956 | NEXT_STDLIB_H=$gl_cv_next_stdlib_h |
| 17957 | |
| 17958 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 17959 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17960 | gl_next_as_first_directive='<'stdlib.h'>' |
| 17961 | else |
| 17962 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17963 | gl_next_as_first_directive=$gl_cv_next_stdlib_h |
| 17964 | fi |
| 17965 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive |
| 17966 | |
| 17967 | |
| 17968 | |
| 17969 | |
| 17970 | |
| 17971 | |
| 17972 | |
| 17973 | |
| 17974 | |
| 17975 | |
| 17976 | |
| 17977 | |
| 17978 | if testscip-shell system . . test. $ac_cv_have_decl_ecvt = no; then |
| 17979 | HAVE_DECL_ECVT=0 |
| 17980 | fi |
| 17981 | |
| 17982 | if testscip-shell system . . test. $ac_cv_have_decl_fcvt = no; then |
| 17983 | HAVE_DECL_FCVT=0 |
| 17984 | fi |
| 17985 | |
| 17986 | if testscip-shell system . . test. $ac_cv_have_decl_gcvt = no; then |
| 17987 | HAVE_DECL_GCVT=0 |
| 17988 | fi |
| 17989 | |
| 17990 | |
| 17991 | |
| 17992 | |
| 17993 | |
| 17994 | |
| 17995 | |
| 17996 | |
| 17997 | |
| 17998 | |
| 17999 | |
| 18000 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18001 | gl_cv_next_string_h='<'string.h'>' |
| 18002 | else |
| 18003 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 |
| 18004 | printfscip-shell system . . printf. %s "checking absolute name of <string.h>... " >&6; } |
| 18005 | if testscip-shell system . . test. ${gl_cv_next_string_h+y} |
| 18006 | then : |
| 18007 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18008 | else $as_nop |
| 18009 | |
| 18010 | |
| 18011 | |
| 18012 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18013 | /* end confdefs.h. */ |
| 18014 | #include <string.h> |
| 18015 | _ACEOF |
| 18016 | case "$host_os" in |
| 18017 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18018 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18019 | esac |
| 18020 | |
| 18021 | case "$host_os" in |
| 18022 | mingw*) |
| 18023 | gl_dirsep_regex='[/\\]' |
| 18024 | ;; |
| 18025 | *) |
| 18026 | gl_dirsep_regex='\/' |
| 18027 | ;; |
| 18028 | esac |
| 18029 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18030 | gl_header_literal_regex=`echoscip-shell system . . echo. 'string.h' \ |
| 18031 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18032 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18033 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18034 | s|^/[^/]|//&| |
| 18035 | p |
| 18036 | q |
| 18037 | }' |
| 18038 | |
| 18039 | gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18040 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18041 | |
| 18042 | gl_header=$gl_cv_absolute_string_h |
| 18043 | gl_cv_next_string_h='"'$gl_header'"' |
| 18044 | |
| 18045 | |
| 18046 | fi |
| 18047 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 |
| 18048 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_string_h" >&6; } |
| 18049 | fi |
| 18050 | NEXT_STRING_H=$gl_cv_next_string_h |
| 18051 | |
| 18052 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18053 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18054 | gl_next_as_first_directive='<'string.h'>' |
| 18055 | else |
| 18056 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18057 | gl_next_as_first_directive=$gl_cv_next_string_h |
| 18058 | fi |
| 18059 | NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive |
| 18060 | |
| 18061 | |
| 18062 | |
| 18063 | |
| 18064 | |
| 18065 | |
| 18066 | |
| 18067 | |
| 18068 | |
| 18069 | |
| 18070 | |
| 18071 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 18072 | if testscip-shell system . . test. "x$ac_cv_have_decl_strsignal" = xyes |
| 18073 | then : |
| 18074 | ac_have_decl=1 |
| 18075 | else $as_nop |
| 18076 | ac_have_decl=0 |
| 18077 | fi |
| 18078 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_STRSIGNAL $ac_have_decl" >>confdefs.h |
| 18079 | |
| 18080 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 18081 | if testscip-shell system . . test. "x$ac_cv_have_decl_strtok_r" = xyes |
| 18082 | then : |
| 18083 | ac_have_decl=1 |
| 18084 | else $as_nop |
| 18085 | ac_have_decl=0 |
| 18086 | fi |
| 18087 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_STRTOK_R $ac_have_decl" >>confdefs.h |
| 18088 | |
| 18089 | |
| 18090 | |
| 18091 | |
| 18092 | |
| 18093 | |
| 18094 | |
| 18095 | |
| 18096 | |
| 18097 | |
| 18098 | |
| 18099 | |
| 18100 | |
| 18101 | printfscip-shell system . . printf. "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h |
| 18102 | |
| 18103 | |
| 18104 | |
| 18105 | |
| 18106 | |
| 18107 | |
| 18108 | |
| 18109 | |
| 18110 | |
| 18111 | |
| 18112 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18113 | gl_cv_next_sys_types_h='<'sys/types.h'>' |
| 18114 | else |
| 18115 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 |
| 18116 | printfscip-shell system . . printf. %s "checking absolute name of <sys/types.h>... " >&6; } |
| 18117 | if testscip-shell system . . test. ${gl_cv_next_sys_types_h+y} |
| 18118 | then : |
| 18119 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18120 | else $as_nop |
| 18121 | |
| 18122 | |
| 18123 | |
| 18124 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18125 | /* end confdefs.h. */ |
| 18126 | #include <sys/types.h> |
| 18127 | _ACEOF |
| 18128 | case "$host_os" in |
| 18129 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18130 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18131 | esac |
| 18132 | |
| 18133 | case "$host_os" in |
| 18134 | mingw*) |
| 18135 | gl_dirsep_regex='[/\\]' |
| 18136 | ;; |
| 18137 | *) |
| 18138 | gl_dirsep_regex='\/' |
| 18139 | ;; |
| 18140 | esac |
| 18141 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18142 | gl_header_literal_regex=`echoscip-shell system . . echo. 'sys/types.h' \ |
| 18143 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18144 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18145 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18146 | s|^/[^/]|//&| |
| 18147 | p |
| 18148 | q |
| 18149 | }' |
| 18150 | |
| 18151 | gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18152 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18153 | |
| 18154 | gl_header=$gl_cv_absolute_sys_types_h |
| 18155 | gl_cv_next_sys_types_h='"'$gl_header'"' |
| 18156 | |
| 18157 | |
| 18158 | fi |
| 18159 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 |
| 18160 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_sys_types_h" >&6; } |
| 18161 | fi |
| 18162 | NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h |
| 18163 | |
| 18164 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18165 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18166 | gl_next_as_first_directive='<'sys/types.h'>' |
| 18167 | else |
| 18168 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18169 | gl_next_as_first_directive=$gl_cv_next_sys_types_h |
| 18170 | fi |
| 18171 | NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive |
| 18172 | |
| 18173 | |
| 18174 | |
| 18175 | |
| 18176 | |
| 18177 | |
| 18178 | |
| 18179 | |
| 18180 | |
| 18181 | |
| 18182 | |
| 18183 | |
| 18184 | WINDOWS_STAT_INODES=0 |
| 18185 | |
| 18186 | |
| 18187 | |
| 18188 | |
| 18189 | |
| 18190 | |
| 18191 | |
| 18192 | |
| 18193 | |
| 18194 | |
| 18195 | |
| 18196 | |
| 18197 | |
| 18198 | |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | |
| 18203 | |
| 18204 | |
| 18205 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18206 | gl_cv_next_sys_wait_h='<'sys/wait.h'>' |
| 18207 | else |
| 18208 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5 |
| 18209 | printfscip-shell system . . printf. %s "checking absolute name of <sys/wait.h>... " >&6; } |
| 18210 | if testscip-shell system . . test. ${gl_cv_next_sys_wait_h+y} |
| 18211 | then : |
| 18212 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18213 | else $as_nop |
| 18214 | |
| 18215 | if testscip-shell system . . test. $ac_cv_header_sys_wait_h = yes; then |
| 18216 | |
| 18217 | |
| 18218 | |
| 18219 | |
| 18220 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18221 | /* end confdefs.h. */ |
| 18222 | #include <sys/wait.h> |
| 18223 | _ACEOF |
| 18224 | case "$host_os" in |
| 18225 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18226 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18227 | esac |
| 18228 | |
| 18229 | case "$host_os" in |
| 18230 | mingw*) |
| 18231 | gl_dirsep_regex='[/\\]' |
| 18232 | ;; |
| 18233 | *) |
| 18234 | gl_dirsep_regex='\/' |
| 18235 | ;; |
| 18236 | esac |
| 18237 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18238 | gl_header_literal_regex=`echoscip-shell system . . echo. 'sys/wait.h' \ |
| 18239 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18240 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18241 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18242 | s|^/[^/]|//&| |
| 18243 | p |
| 18244 | q |
| 18245 | }' |
| 18246 | |
| 18247 | gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18248 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18249 | |
| 18250 | gl_header=$gl_cv_absolute_sys_wait_h |
| 18251 | gl_cv_next_sys_wait_h='"'$gl_header'"' |
| 18252 | else |
| 18253 | gl_cv_next_sys_wait_h='<'sys/wait.h'>' |
| 18254 | fi |
| 18255 | |
| 18256 | |
| 18257 | fi |
| 18258 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5 |
| 18259 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_sys_wait_h" >&6; } |
| 18260 | fi |
| 18261 | NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h |
| 18262 | |
| 18263 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18264 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18265 | gl_next_as_first_directive='<'sys/wait.h'>' |
| 18266 | else |
| 18267 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18268 | gl_next_as_first_directive=$gl_cv_next_sys_wait_h |
| 18269 | fi |
| 18270 | NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | |
| 18278 | |
| 18279 | |
| 18280 | |
| 18281 | |
| 18282 | |
| 18283 | |
| 18284 | GL_GNULIB_WAITPID=0 |
| 18285 | |
| 18286 | |
| 18287 | |
| 18288 | |
| 18289 | HAVE_DECL_LOCALTIME_R=1; |
| 18290 | HAVE_NANOSLEEP=1; |
| 18291 | HAVE_STRPTIME=1; |
| 18292 | HAVE_TIMEGM=1; |
| 18293 | HAVE_TIMESPEC_GET=1; |
| 18294 | HAVE_TIMESPEC_GETRES=1; |
| 18295 | HAVE_TIMEZONE_T=0; |
| 18296 | REPLACE_CTIME=GNULIB_PORTCHECK; |
| 18297 | REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; |
| 18298 | REPLACE_MKTIME=GNULIB_PORTCHECK; |
| 18299 | REPLACE_NANOSLEEP=GNULIB_PORTCHECK; |
| 18300 | REPLACE_STRFTIME=GNULIB_PORTCHECK; |
| 18301 | REPLACE_TIMEGM=GNULIB_PORTCHECK; |
| 18302 | REPLACE_TZSET=GNULIB_PORTCHECK; |
| 18303 | |
| 18304 | : ${GNULIB_GETTIMEOFDAY=0}; |
| 18305 | REPLACE_GMTIME=0; |
| 18306 | REPLACE_LOCALTIME=0; |
| 18307 | |
| 18308 | |
| 18309 | |
| 18310 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 18311 | printfscip-shell system . . printf. %s "checking for struct timespec in <time.h>... " >&6; } |
| 18312 | if testscip-shell system . . test. ${gl_cv_sys_struct_timespec_in_time_h+y} |
| 18313 | then : |
| 18314 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18315 | else $as_nop |
| 18316 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18317 | /* end confdefs.h. */ |
| 18318 | #include <time.h> |
| 18319 | |
| 18320 | int |
| 18321 | main (void) |
| 18322 | { |
| 18323 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 18324 | ; |
| 18325 | return 0; |
| 18326 | } |
| 18327 | _ACEOF |
| 18328 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 18329 | then : |
| 18330 | gl_cv_sys_struct_timespec_in_time_h=yes |
| 18331 | else $as_nop |
| 18332 | gl_cv_sys_struct_timespec_in_time_h=no |
| 18333 | fi |
| 18334 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18335 | fi |
| 18336 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
| 18337 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } |
| 18338 | |
| 18339 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 18340 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 18341 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 18342 | UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 18343 | if testscip-shell system . . test. $gl_cv_sys_struct_timespec_in_time_h = yes; then |
| 18344 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 18345 | else |
| 18346 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 18347 | printfscip-shell system . . printf. %s "checking for struct timespec in <sys/time.h>... " >&6; } |
| 18348 | if testscip-shell system . . test. ${gl_cv_sys_struct_timespec_in_sys_time_h+y} |
| 18349 | then : |
| 18350 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18351 | else $as_nop |
| 18352 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18353 | /* end confdefs.h. */ |
| 18354 | #include <sys/time.h> |
| 18355 | |
| 18356 | int |
| 18357 | main (void) |
| 18358 | { |
| 18359 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 18360 | ; |
| 18361 | return 0; |
| 18362 | } |
| 18363 | _ACEOF |
| 18364 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 18365 | then : |
| 18366 | gl_cv_sys_struct_timespec_in_sys_time_h=yes |
| 18367 | else $as_nop |
| 18368 | gl_cv_sys_struct_timespec_in_sys_time_h=no |
| 18369 | fi |
| 18370 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18371 | fi |
| 18372 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 18373 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 18374 | if testscip-shell system . . test. $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 18375 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 18376 | else |
| 18377 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 18378 | printfscip-shell system . . printf. %s "checking for struct timespec in <pthread.h>... " >&6; } |
| 18379 | if testscip-shell system . . test. ${gl_cv_sys_struct_timespec_in_pthread_h+y} |
| 18380 | then : |
| 18381 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18382 | else $as_nop |
| 18383 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18384 | /* end confdefs.h. */ |
| 18385 | #include <pthread.h> |
| 18386 | |
| 18387 | int |
| 18388 | main (void) |
| 18389 | { |
| 18390 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 18391 | ; |
| 18392 | return 0; |
| 18393 | } |
| 18394 | _ACEOF |
| 18395 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 18396 | then : |
| 18397 | gl_cv_sys_struct_timespec_in_pthread_h=yes |
| 18398 | else $as_nop |
| 18399 | gl_cv_sys_struct_timespec_in_pthread_h=no |
| 18400 | fi |
| 18401 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18402 | fi |
| 18403 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 18404 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 18405 | if testscip-shell system . . test. $gl_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 18406 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 18407 | else |
| 18408 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 |
| 18409 | printfscip-shell system . . printf. %s "checking for struct timespec in <unistd.h>... " >&6; } |
| 18410 | if testscip-shell system . . test. ${gl_cv_sys_struct_timespec_in_unistd_h+y} |
| 18411 | then : |
| 18412 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18413 | else $as_nop |
| 18414 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18415 | /* end confdefs.h. */ |
| 18416 | #include <unistd.h> |
| 18417 | |
| 18418 | int |
| 18419 | main (void) |
| 18420 | { |
| 18421 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 18422 | ; |
| 18423 | return 0; |
| 18424 | } |
| 18425 | _ACEOF |
| 18426 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 18427 | then : |
| 18428 | gl_cv_sys_struct_timespec_in_unistd_h=yes |
| 18429 | else $as_nop |
| 18430 | gl_cv_sys_struct_timespec_in_unistd_h=no |
| 18431 | fi |
| 18432 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18433 | fi |
| 18434 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 |
| 18435 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } |
| 18436 | if testscip-shell system . . test. $gl_cv_sys_struct_timespec_in_unistd_h = yes; then |
| 18437 | UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 18438 | fi |
| 18439 | fi |
| 18440 | fi |
| 18441 | fi |
| 18442 | |
| 18443 | |
| 18444 | |
| 18445 | |
| 18446 | |
| 18447 | |
| 18448 | |
| 18449 | |
| 18450 | |
| 18451 | |
| 18452 | |
| 18453 | |
| 18454 | |
| 18455 | |
| 18456 | |
| 18457 | |
| 18458 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18459 | gl_cv_next_time_h='<'time.h'>' |
| 18460 | else |
| 18461 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 |
| 18462 | printfscip-shell system . . printf. %s "checking absolute name of <time.h>... " >&6; } |
| 18463 | if testscip-shell system . . test. ${gl_cv_next_time_h+y} |
| 18464 | then : |
| 18465 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18466 | else $as_nop |
| 18467 | |
| 18468 | |
| 18469 | |
| 18470 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18471 | /* end confdefs.h. */ |
| 18472 | #include <time.h> |
| 18473 | _ACEOF |
| 18474 | case "$host_os" in |
| 18475 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18476 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18477 | esac |
| 18478 | |
| 18479 | case "$host_os" in |
| 18480 | mingw*) |
| 18481 | gl_dirsep_regex='[/\\]' |
| 18482 | ;; |
| 18483 | *) |
| 18484 | gl_dirsep_regex='\/' |
| 18485 | ;; |
| 18486 | esac |
| 18487 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18488 | gl_header_literal_regex=`echoscip-shell system . . echo. 'time.h' \ |
| 18489 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18490 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18491 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18492 | s|^/[^/]|//&| |
| 18493 | p |
| 18494 | q |
| 18495 | }' |
| 18496 | |
| 18497 | gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18498 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18499 | |
| 18500 | gl_header=$gl_cv_absolute_time_h |
| 18501 | gl_cv_next_time_h='"'$gl_header'"' |
| 18502 | |
| 18503 | |
| 18504 | fi |
| 18505 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 |
| 18506 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_time_h" >&6; } |
| 18507 | fi |
| 18508 | NEXT_TIME_H=$gl_cv_next_time_h |
| 18509 | |
| 18510 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18511 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18512 | gl_next_as_first_directive='<'time.h'>' |
| 18513 | else |
| 18514 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18515 | gl_next_as_first_directive=$gl_cv_next_time_h |
| 18516 | fi |
| 18517 | NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive |
| 18518 | |
| 18519 | |
| 18520 | |
| 18521 | |
| 18522 | |
| 18523 | |
| 18524 | |
| 18525 | |
| 18526 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5 |
| 18527 | printfscip-shell system . . printf. %s "checking for TIME_UTC in <time.h>... " >&6; } |
| 18528 | if testscip-shell system . . test. ${gl_cv_time_h_has_TIME_UTC+y} |
| 18529 | then : |
| 18530 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18531 | else $as_nop |
| 18532 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18533 | /* end confdefs.h. */ |
| 18534 | #include <time.h> |
| 18535 | |
| 18536 | int |
| 18537 | main (void) |
| 18538 | { |
| 18539 | static int x = TIME_UTC; x++; |
| 18540 | ; |
| 18541 | return 0; |
| 18542 | } |
| 18543 | _ACEOF |
| 18544 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 18545 | then : |
| 18546 | gl_cv_time_h_has_TIME_UTC=yes |
| 18547 | else $as_nop |
| 18548 | gl_cv_time_h_has_TIME_UTC=no |
| 18549 | fi |
| 18550 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18551 | fi |
| 18552 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 |
| 18553 | printfscip-shell system . . printf. "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; } |
| 18554 | if testscip-shell system . . test. $gl_cv_time_h_has_TIME_UTC = yes; then |
| 18555 | TIME_H_DEFINES_TIME_UTC=1 |
| 18556 | else |
| 18557 | TIME_H_DEFINES_TIME_UTC=0 |
| 18558 | fi |
| 18559 | |
| 18560 | |
| 18561 | |
| 18562 | |
| 18563 | GL_GNULIB_CTIME=0 |
| 18564 | |
| 18565 | |
| 18566 | |
| 18567 | GL_GNULIB_MKTIME=0 |
| 18568 | |
| 18569 | |
| 18570 | |
| 18571 | GL_GNULIB_LOCALTIME=0 |
| 18572 | |
| 18573 | |
| 18574 | |
| 18575 | GL_GNULIB_NANOSLEEP=0 |
| 18576 | |
| 18577 | |
| 18578 | |
| 18579 | GL_GNULIB_STRFTIME=0 |
| 18580 | |
| 18581 | |
| 18582 | |
| 18583 | GL_GNULIB_STRPTIME=0 |
| 18584 | |
| 18585 | |
| 18586 | |
| 18587 | GL_GNULIB_TIMEGM=0 |
| 18588 | |
| 18589 | |
| 18590 | |
| 18591 | GL_GNULIB_TIMESPEC_GET=0 |
| 18592 | |
| 18593 | |
| 18594 | |
| 18595 | GL_GNULIB_TIMESPEC_GETRES=0 |
| 18596 | |
| 18597 | |
| 18598 | |
| 18599 | GL_GNULIB_TIME_R=0 |
| 18600 | |
| 18601 | |
| 18602 | |
| 18603 | GL_GNULIB_TIME_RZ=0 |
| 18604 | |
| 18605 | |
| 18606 | |
| 18607 | GL_GNULIB_TZSET=0 |
| 18608 | |
| 18609 | |
| 18610 | |
| 18611 | GL_GNULIB_MDA_TZSET=1 |
| 18612 | |
| 18613 | |
| 18614 | |
| 18615 | |
| 18616 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 18617 | if testscip-shell system . . test. "x$ac_cv_have_decl_execvpe" = xyes |
| 18618 | then : |
| 18619 | ac_have_decl=1 |
| 18620 | else $as_nop |
| 18621 | ac_have_decl=0 |
| 18622 | fi |
| 18623 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h |
| 18624 | |
| 18625 | |
| 18626 | |
| 18627 | |
| 18628 | |
| 18629 | |
| 18630 | |
| 18631 | |
| 18632 | |
| 18633 | |
| 18634 | |
| 18635 | |
| 18636 | |
| 18637 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18638 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 18639 | else |
| 18640 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 |
| 18641 | printfscip-shell system . . printf. %s "checking absolute name of <unistd.h>... " >&6; } |
| 18642 | if testscip-shell system . . test. ${gl_cv_next_unistd_h+y} |
| 18643 | then : |
| 18644 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18645 | else $as_nop |
| 18646 | |
| 18647 | if testscip-shell system . . test. $ac_cv_header_unistd_h = yes; then |
| 18648 | |
| 18649 | |
| 18650 | |
| 18651 | |
| 18652 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18653 | /* end confdefs.h. */ |
| 18654 | #include <unistd.h> |
| 18655 | _ACEOF |
| 18656 | case "$host_os" in |
| 18657 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18658 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18659 | esac |
| 18660 | |
| 18661 | case "$host_os" in |
| 18662 | mingw*) |
| 18663 | gl_dirsep_regex='[/\\]' |
| 18664 | ;; |
| 18665 | *) |
| 18666 | gl_dirsep_regex='\/' |
| 18667 | ;; |
| 18668 | esac |
| 18669 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18670 | gl_header_literal_regex=`echoscip-shell system . . echo. 'unistd.h' \ |
| 18671 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18672 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18673 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18674 | s|^/[^/]|//&| |
| 18675 | p |
| 18676 | q |
| 18677 | }' |
| 18678 | |
| 18679 | gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18680 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18681 | |
| 18682 | gl_header=$gl_cv_absolute_unistd_h |
| 18683 | gl_cv_next_unistd_h='"'$gl_header'"' |
| 18684 | else |
| 18685 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 18686 | fi |
| 18687 | |
| 18688 | |
| 18689 | fi |
| 18690 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 |
| 18691 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_unistd_h" >&6; } |
| 18692 | fi |
| 18693 | NEXT_UNISTD_H=$gl_cv_next_unistd_h |
| 18694 | |
| 18695 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18696 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18697 | gl_next_as_first_directive='<'unistd.h'>' |
| 18698 | else |
| 18699 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18700 | gl_next_as_first_directive=$gl_cv_next_unistd_h |
| 18701 | fi |
| 18702 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive |
| 18703 | |
| 18704 | |
| 18705 | |
| 18706 | |
| 18707 | if testscip-shell system . . test. $ac_cv_header_unistd_h = yes; then |
| 18708 | HAVE_UNISTD_H=1 |
| 18709 | else |
| 18710 | HAVE_UNISTD_H=0 |
| 18711 | fi |
| 18712 | |
| 18713 | |
| 18714 | |
| 18715 | |
| 18716 | |
| 18717 | |
| 18718 | |
| 18719 | |
| 18720 | |
| 18721 | |
| 18722 | |
| 18723 | |
| 18724 | |
| 18725 | if testscip-shell system . . test. $ac_cv_have_decl_execvpe = no; then |
| 18726 | HAVE_DECL_EXECVPE=0 |
| 18727 | fi |
| 18728 | |
| 18729 | |
| 18730 | HAVE_UTIME=1; |
| 18731 | REPLACE_UTIME=0; |
| 18732 | |
| 18733 | |
| 18734 | |
| 18735 | GL_GNULIB_UTIME=0 |
| 18736 | |
| 18737 | |
| 18738 | |
| 18739 | GL_GNULIB_MDA_UTIME=1 |
| 18740 | |
| 18741 | |
| 18742 | |
| 18743 | |
| 18744 | |
| 18745 | |
| 18746 | |
| 18747 | |
| 18748 | |
| 18749 | |
| 18750 | |
| 18751 | |
| 18752 | |
| 18753 | |
| 18754 | |
| 18755 | |
| 18756 | |
| 18757 | |
| 18758 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 18759 | gl_cv_next_utime_h='<'utime.h'>' |
| 18760 | else |
| 18761 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <utime.h>" >&5 |
| 18762 | printfscip-shell system . . printf. %s "checking absolute name of <utime.h>... " >&6; } |
| 18763 | if testscip-shell system . . test. ${gl_cv_next_utime_h+y} |
| 18764 | then : |
| 18765 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18766 | else $as_nop |
| 18767 | |
| 18768 | if testscip-shell system . . test. $ac_cv_header_utime_h = yes; then |
| 18769 | |
| 18770 | |
| 18771 | |
| 18772 | |
| 18773 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18774 | /* end confdefs.h. */ |
| 18775 | #include <utime.h> |
| 18776 | _ACEOF |
| 18777 | case "$host_os" in |
| 18778 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18779 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18780 | esac |
| 18781 | |
| 18782 | case "$host_os" in |
| 18783 | mingw*) |
| 18784 | gl_dirsep_regex='[/\\]' |
| 18785 | ;; |
| 18786 | *) |
| 18787 | gl_dirsep_regex='\/' |
| 18788 | ;; |
| 18789 | esac |
| 18790 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18791 | gl_header_literal_regex=`echoscip-shell system . . echo. 'utime.h' \ |
| 18792 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 18793 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18794 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18795 | s|^/[^/]|//&| |
| 18796 | p |
| 18797 | q |
| 18798 | }' |
| 18799 | |
| 18800 | gl_cv_absolute_utime_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18801 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 18802 | |
| 18803 | gl_header=$gl_cv_absolute_utime_h |
| 18804 | gl_cv_next_utime_h='"'$gl_header'"' |
| 18805 | else |
| 18806 | gl_cv_next_utime_h='<'utime.h'>' |
| 18807 | fi |
| 18808 | |
| 18809 | |
| 18810 | fi |
| 18811 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_utime_h" >&5 |
| 18812 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_utime_h" >&6; } |
| 18813 | fi |
| 18814 | NEXT_UTIME_H=$gl_cv_next_utime_h |
| 18815 | |
| 18816 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 18817 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18818 | gl_next_as_first_directive='<'utime.h'>' |
| 18819 | else |
| 18820 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18821 | gl_next_as_first_directive=$gl_cv_next_utime_h |
| 18822 | fi |
| 18823 | NEXT_AS_FIRST_DIRECTIVE_UTIME_H=$gl_next_as_first_directive |
| 18824 | |
| 18825 | |
| 18826 | |
| 18827 | |
| 18828 | |
| 18829 | if testscip-shell system . . test. $ac_cv_header_utime_h = yes; then |
| 18830 | HAVE_UTIME_H=1 |
| 18831 | else |
| 18832 | HAVE_UTIME_H=0 |
| 18833 | fi |
| 18834 | |
| 18835 | |
| 18836 | |
| 18837 | |
| 18838 | |
| 18839 | |
| 18840 | |
| 18841 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5 |
| 18842 | printfscip-shell system . . printf. %s "checking whether the utimes function works... " >&6; } |
| 18843 | if testscip-shell system . . test. ${gl_cv_func_working_utimes+y} |
| 18844 | then : |
| 18845 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 18846 | else $as_nop |
| 18847 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 18848 | then : |
| 18849 | case "$host_os" in |
| 18850 | # Guess yes on musl systems. |
| 18851 | *-musl*) gl_cv_func_working_utimes="guessing yes" ;; |
| 18852 | # Guess no on native Windows. |
| 18853 | mingw*) gl_cv_func_working_utimes="guessing no" ;; |
| 18854 | *) gl_cv_func_working_utimes="$gl_cross_guess_normal" ;; |
| 18855 | esac |
| 18856 | |
| 18857 | else $as_nop |
| 18858 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18859 | /* end confdefs.h. */ |
| 18860 | |
| 18861 | #include <sys/types.h> |
| 18862 | #include <sys/stat.h> |
| 18863 | #include <fcntl.h> |
| 18864 | #include <sys/time.h> |
| 18865 | #include <time.h> |
| 18866 | #include <unistd.h> |
| 18867 | #include <stdlib.h> |
| 18868 | #include <stdio.h> |
| 18869 | #include <utime.h> |
| 18870 | #include <errno.h> |
| 18871 | |
| 18872 | |
| 18873 | $gl_mda_defines |
| 18874 | |
| 18875 | |
| 18876 | static int |
| 18877 | inorder (time_t a, time_t b, time_t c) |
| 18878 | { |
| 18879 | return a <= b && b <= c; |
| 18880 | } |
| 18881 | |
| 18882 | int |
| 18883 | main () |
| 18884 | { |
| 18885 | int result = 0; |
| 18886 | char const *file = "conftest.utimes"; |
| 18887 | /* On OS/2, file timestamps must be on or after 1980 in local time, |
| 18888 | with an even number of seconds. */ |
| 18889 | static struct timeval timeval[2] = {{315620000 + 10, 10}, |
| 18890 | {315620000 + 1000000, 999998}}; |
| 18891 | |
| 18892 | /* Test whether utimes() essentially works. */ |
| 18893 | { |
| 18894 | struct stat sbuf; |
| 18895 | FILE *f = fopen (file, "w"); |
| 18896 | if (f == NULL) |
| 18897 | result |= 1; |
| 18898 | else if (fclose (f) != 0) |
| 18899 | result |= 1; |
| 18900 | else if (utimes (file, timeval) != 0) |
| 18901 | result |= 2; |
| 18902 | else if (lstat (file, &sbuf) != 0) |
| 18903 | result |= 1; |
| 18904 | else if (!(sbuf.st_atime == timeval[0].tv_sec |
| 18905 | && sbuf.st_mtime == timeval[1].tv_sec)) |
| 18906 | result |= 4; |
| 18907 | if (unlink (file) != 0) |
| 18908 | result |= 1; |
| 18909 | } |
| 18910 | |
| 18911 | /* Test whether utimes() with a NULL argument sets the file's timestamp |
| 18912 | to the current time. Use 'fstat' as well as 'time' to |
| 18913 | determine the "current" time, to accommodate NFS file systems |
| 18914 | if there is a time skew between the host and the NFS server. */ |
| 18915 | { |
| 18916 | int fd = open (file, O_WRONLY|O_CREAT, 0644); |
| 18917 | if (fd < 0) |
| 18918 | result |= 1; |
| 18919 | else |
| 18920 | { |
| 18921 | time_t t0, t2; |
| 18922 | struct stat st0, st1, st2; |
| 18923 | if (time (&t0) == (time_t) -1) |
| 18924 | result |= 1; |
| 18925 | else if (fstat (fd, &st0) != 0) |
| 18926 | result |= 1; |
| 18927 | else if (utimes (file, timeval) != 0 |
| 18928 | && (errno != EACCES |
| 18929 | /* OS/2 kLIBC utimes fails on opened files. */ |
| 18930 | || close (fd) != 0 |
| 18931 | || utimes (file, timeval) != 0 |
| 18932 | || (fd = open (file, O_WRONLY)) < 0)) |
| 18933 | result |= 2; |
| 18934 | else if (utimes (file, NULL) != 0 |
| 18935 | && (errno != EACCES |
| 18936 | /* OS/2 kLIBC utimes fails on opened files. */ |
| 18937 | || close (fd) != 0 |
| 18938 | || utimes (file, NULL) != 0 |
| 18939 | || (fd = open (file, O_WRONLY)) < 0)) |
| 18940 | result |= 8; |
| 18941 | else if (fstat (fd, &st1) != 0) |
| 18942 | result |= 1; |
| 18943 | else if (write (fd, "\n", 1) != 1) |
| 18944 | result |= 1; |
| 18945 | else if (fstat (fd, &st2) != 0) |
| 18946 | result |= 1; |
| 18947 | else if (time (&t2) == (time_t) -1) |
| 18948 | result |= 1; |
| 18949 | else |
| 18950 | { |
| 18951 | int m_ok_POSIX = inorder (t0, st1.st_mtime, t2); |
| 18952 | int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime); |
| 18953 | if (! (st1.st_atime == st1.st_mtime)) |
| 18954 | result |= 16; |
| 18955 | if (! (m_ok_POSIX || m_ok_NFS)) |
| 18956 | result |= 32; |
| 18957 | } |
| 18958 | if (close (fd) != 0) |
| 18959 | result |= 1; |
| 18960 | } |
| 18961 | if (unlink (file) != 0) |
| 18962 | result |= 1; |
| 18963 | } |
| 18964 | |
| 18965 | /* Test whether utimes() with a NULL argument works on read-only files. */ |
| 18966 | { |
| 18967 | int fd = open (file, O_WRONLY|O_CREAT, 0444); |
| 18968 | if (fd < 0) |
| 18969 | result |= 1; |
| 18970 | else if (close (fd) != 0) |
| 18971 | result |= 1; |
| 18972 | else if (utimes (file, NULL) != 0) |
| 18973 | result |= 64; |
| 18974 | if (unlink (file) != 0) |
| 18975 | result |= 1; |
| 18976 | } |
| 18977 | |
| 18978 | return result; |
| 18979 | } |
| 18980 | |
| 18981 | _ACEOF |
| 18982 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 18983 | then : |
| 18984 | gl_cv_func_working_utimes=yes |
| 18985 | else $as_nop |
| 18986 | gl_cv_func_working_utimes=no |
| 18987 | fi |
| 18988 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18989 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18990 | fi |
| 18991 | |
| 18992 | |
| 18993 | fi |
| 18994 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5 |
| 18995 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_working_utimes" >&6; } |
| 18996 | |
| 18997 | case "$gl_cv_func_working_utimes" in |
| 18998 | *yes) |
| 18999 | |
| 19000 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_UTIMES 1" >>confdefs.h |
| 19001 | |
| 19002 | ;; |
| 19003 | esac |
| 19004 | |
| 19005 | |
| 19006 | |
| 19007 | |
| 19008 | |
| 19009 | |
| 19010 | |
| 19011 | HAVE_BTOWC=1; |
| 19012 | HAVE_MBSINIT=1; |
| 19013 | HAVE_MBRTOWC=1; |
| 19014 | HAVE_MBRLEN=1; |
| 19015 | HAVE_MBSRTOWCS=1; |
| 19016 | HAVE_MBSNRTOWCS=1; |
| 19017 | HAVE_WCRTOMB=1; |
| 19018 | HAVE_WCSRTOMBS=1; |
| 19019 | HAVE_WCSNRTOMBS=1; |
| 19020 | HAVE_WMEMCHR=1; |
| 19021 | HAVE_WMEMCMP=1; |
| 19022 | HAVE_WMEMCPY=1; |
| 19023 | HAVE_WMEMMOVE=1; |
| 19024 | HAVE_WMEMPCPY=1; |
| 19025 | HAVE_WMEMSET=1; |
| 19026 | HAVE_WCSLEN=1; |
| 19027 | HAVE_WCSNLEN=1; |
| 19028 | HAVE_WCSCPY=1; |
| 19029 | HAVE_WCPCPY=1; |
| 19030 | HAVE_WCSNCPY=1; |
| 19031 | HAVE_WCPNCPY=1; |
| 19032 | HAVE_WCSCAT=1; |
| 19033 | HAVE_WCSNCAT=1; |
| 19034 | HAVE_WCSCMP=1; |
| 19035 | HAVE_WCSNCMP=1; |
| 19036 | HAVE_WCSCASECMP=1; |
| 19037 | HAVE_WCSNCASECMP=1; |
| 19038 | HAVE_WCSCOLL=1; |
| 19039 | HAVE_WCSXFRM=1; |
| 19040 | HAVE_WCSDUP=1; |
| 19041 | HAVE_WCSCHR=1; |
| 19042 | HAVE_WCSRCHR=1; |
| 19043 | HAVE_WCSCSPN=1; |
| 19044 | HAVE_WCSSPN=1; |
| 19045 | HAVE_WCSPBRK=1; |
| 19046 | HAVE_WCSSTR=1; |
| 19047 | HAVE_WCSTOK=1; |
| 19048 | HAVE_WCSWIDTH=1; |
| 19049 | HAVE_WCSFTIME=1; |
| 19050 | HAVE_DECL_WCTOB=1; |
| 19051 | HAVE_DECL_WCSDUP=1; |
| 19052 | HAVE_DECL_WCWIDTH=1; |
| 19053 | REPLACE_MBSTATE_T=0; |
| 19054 | REPLACE_BTOWC=0; |
| 19055 | REPLACE_WCTOB=0; |
| 19056 | REPLACE_MBSINIT=0; |
| 19057 | REPLACE_MBRTOWC=0; |
| 19058 | REPLACE_MBRLEN=0; |
| 19059 | REPLACE_MBSRTOWCS=0; |
| 19060 | REPLACE_MBSNRTOWCS=0; |
| 19061 | REPLACE_WCRTOMB=0; |
| 19062 | REPLACE_WCSRTOMBS=0; |
| 19063 | REPLACE_WCSNRTOMBS=0; |
| 19064 | REPLACE_WCWIDTH=0; |
| 19065 | REPLACE_WCSWIDTH=0; |
| 19066 | REPLACE_WCSFTIME=0; |
| 19067 | REPLACE_WCSTOK=0; |
| 19068 | |
| 19069 | |
| 19070 | |
| 19071 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 |
| 19072 | printfscip-shell system . . printf. %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; } |
| 19073 | if testscip-shell system . . test. ${gl_cv_header_wchar_h_correct_inline+y} |
| 19074 | then : |
| 19075 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 19076 | else $as_nop |
| 19077 | gl_cv_header_wchar_h_correct_inline=yes |
| 19078 | case "$host_os" in |
| 19079 | *-gnu* | gnu*) |
| 19080 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19081 | /* end confdefs.h. */ |
| 19082 | |
| 19083 | |
| 19084 | #define wcstod renamed_wcstod |
| 19085 | #include <wchar.h> |
| 19086 | extern int zero (void); |
| 19087 | int main () { return zero(); } |
| 19088 | |
| 19089 | _ACEOF |
| 19090 | save_ac_compile="$ac_compile" |
| 19091 | ac_compile=`echoscip-shell system . . echo. "$save_ac_compile" | sedscip-shell system . . sed. s/conftest/conftest1/` |
| 19092 | if echoscip-shell system . . echo. '#include "conftest.c"' >conftest1.c \ |
| 19093 | && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 19094 | (eval $ac_compile) 2>&5 |
| 19095 | ac_status=$? |
| 19096 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19097 | testscip-shell system . . test. $ac_status = 0; }; then |
| 19098 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19099 | /* end confdefs.h. */ |
| 19100 | |
| 19101 | |
| 19102 | #define wcstod renamed_wcstod |
| 19103 | #include <wchar.h> |
| 19104 | int zero (void) { return 0; } |
| 19105 | |
| 19106 | _ACEOF |
| 19107 | ac_compile=`echoscip-shell system . . echo. "$save_ac_compile" | sedscip-shell system . . sed. s/conftest/conftest2/` |
| 19108 | if echoscip-shell system . . echo. '#include "conftest.c"' >conftest2.c \ |
| 19109 | && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 19110 | (eval $ac_compile) 2>&5 |
| 19111 | ac_status=$? |
| 19112 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19113 | testscip-shell system . . test. $ac_status = 0; }; then |
| 19114 | if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then |
| 19115 | : |
| 19116 | else |
| 19117 | gl_cv_header_wchar_h_correct_inline=no |
| 19118 | fi |
| 19119 | fi |
| 19120 | fi |
| 19121 | ac_compile="$save_ac_compile" |
| 19122 | rmscip-shell system . . rm. -f conftest12.c conftest12.$ac_objext conftest$ac_exeext |
| 19123 | ;; |
| 19124 | esac |
| 19125 | |
| 19126 | fi |
| 19127 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 |
| 19128 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } |
| 19129 | if testscip-shell system . . test. $gl_cv_header_wchar_h_correct_inline = no; then |
| 19130 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). |
| 19131 | This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in |
| 19132 | C99 mode. You have four options: |
| 19133 | - Add the flag -fgnu89-inline to CC and reconfigure, or |
| 19134 | - Fix your include files, using parts of |
| 19135 | <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or |
| 19136 | - Use a gcc version older than 4.3, or |
| 19137 | - Don't use the flags -std=c99 or -std=gnu99. |
| 19138 | Configuration aborted." "$LINENO" 5 |
| 19139 | fi |
| 19140 | |
| 19141 | |
| 19142 | |
| 19143 | |
| 19144 | if testscip-shell system . . test. $ac_cv_header_crtdefs_h = yes; then |
| 19145 | HAVE_CRTDEFS_H=1 |
| 19146 | else |
| 19147 | HAVE_CRTDEFS_H=0 |
| 19148 | fi |
| 19149 | |
| 19150 | |
| 19151 | |
| 19152 | |
| 19153 | |
| 19154 | |
| 19155 | |
| 19156 | |
| 19157 | |
| 19158 | |
| 19159 | |
| 19160 | |
| 19161 | |
| 19162 | |
| 19163 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 19164 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 19165 | else |
| 19166 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 |
| 19167 | printfscip-shell system . . printf. %s "checking absolute name of <wchar.h>... " >&6; } |
| 19168 | if testscip-shell system . . test. ${gl_cv_next_wchar_h+y} |
| 19169 | then : |
| 19170 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 19171 | else $as_nop |
| 19172 | |
| 19173 | if testscip-shell system . . test. $ac_cv_header_wchar_h = yes; then |
| 19174 | |
| 19175 | |
| 19176 | |
| 19177 | |
| 19178 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19179 | /* end confdefs.h. */ |
| 19180 | #include <wchar.h> |
| 19181 | _ACEOF |
| 19182 | case "$host_os" in |
| 19183 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 19184 | *) gl_absname_cpp="$ac_cpp" ;; |
| 19185 | esac |
| 19186 | |
| 19187 | case "$host_os" in |
| 19188 | mingw*) |
| 19189 | gl_dirsep_regex='[/\\]' |
| 19190 | ;; |
| 19191 | *) |
| 19192 | gl_dirsep_regex='\/' |
| 19193 | ;; |
| 19194 | esac |
| 19195 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 19196 | gl_header_literal_regex=`echoscip-shell system . . echo. 'wchar.h' \ |
| 19197 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 19198 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 19199 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 19200 | s|^/[^/]|//&| |
| 19201 | p |
| 19202 | q |
| 19203 | }' |
| 19204 | |
| 19205 | gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 19206 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 19207 | |
| 19208 | gl_header=$gl_cv_absolute_wchar_h |
| 19209 | gl_cv_next_wchar_h='"'$gl_header'"' |
| 19210 | else |
| 19211 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 19212 | fi |
| 19213 | |
| 19214 | |
| 19215 | fi |
| 19216 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 |
| 19217 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_wchar_h" >&6; } |
| 19218 | fi |
| 19219 | NEXT_WCHAR_H=$gl_cv_next_wchar_h |
| 19220 | |
| 19221 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 19222 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 19223 | gl_next_as_first_directive='<'wchar.h'>' |
| 19224 | else |
| 19225 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 19226 | gl_next_as_first_directive=$gl_cv_next_wchar_h |
| 19227 | fi |
| 19228 | NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive |
| 19229 | |
| 19230 | |
| 19231 | |
| 19232 | |
| 19233 | if testscip-shell system . . test. $ac_cv_header_wchar_h = yes; then |
| 19234 | HAVE_WCHAR_H=1 |
| 19235 | else |
| 19236 | HAVE_WCHAR_H=0 |
| 19237 | fi |
| 19238 | |
| 19239 | |
| 19240 | |
| 19241 | |
| 19242 | |
| 19243 | if testscip-shell system . . test. $gt_cv_c_wint_t = yes; then |
| 19244 | HAVE_WINT_T=1 |
| 19245 | else |
| 19246 | HAVE_WINT_T=0 |
| 19247 | fi |
| 19248 | |
| 19249 | |
| 19250 | |
| 19251 | |
| 19252 | |
| 19253 | |
| 19254 | |
| 19255 | |
| 19256 | |
| 19257 | |
| 19258 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " |
| 19259 | #include <wchar.h> |
| 19260 | |
| 19261 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19262 | if testscip-shell system . . test. "x$ac_cv_have_decl_wcsdup" = xyes |
| 19263 | then : |
| 19264 | ac_have_decl=1 |
| 19265 | else $as_nop |
| 19266 | ac_have_decl=0 |
| 19267 | fi |
| 19268 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h |
| 19269 | |
| 19270 | if testscip-shell system . . test. $ac_cv_have_decl_wcsdup = no; then |
| 19271 | HAVE_DECL_WCSDUP=0 |
| 19272 | fi |
| 19273 | |
| 19274 | |
| 19275 | |
| 19276 | GL_GNULIB_BTOWC=0 |
| 19277 | |
| 19278 | |
| 19279 | |
| 19280 | GL_GNULIB_WCTOB=0 |
| 19281 | |
| 19282 | |
| 19283 | |
| 19284 | GL_GNULIB_MBSINIT=0 |
| 19285 | |
| 19286 | |
| 19287 | |
| 19288 | GL_GNULIB_MBRTOWC=0 |
| 19289 | |
| 19290 | |
| 19291 | |
| 19292 | GL_GNULIB_MBRLEN=0 |
| 19293 | |
| 19294 | |
| 19295 | |
| 19296 | GL_GNULIB_MBSRTOWCS=0 |
| 19297 | |
| 19298 | |
| 19299 | |
| 19300 | GL_GNULIB_MBSNRTOWCS=0 |
| 19301 | |
| 19302 | |
| 19303 | |
| 19304 | GL_GNULIB_WCRTOMB=0 |
| 19305 | |
| 19306 | |
| 19307 | |
| 19308 | GL_GNULIB_WCSRTOMBS=0 |
| 19309 | |
| 19310 | |
| 19311 | |
| 19312 | GL_GNULIB_WCSNRTOMBS=0 |
| 19313 | |
| 19314 | |
| 19315 | |
| 19316 | GL_GNULIB_WCWIDTH=0 |
| 19317 | |
| 19318 | |
| 19319 | |
| 19320 | GL_GNULIB_WMEMCHR=0 |
| 19321 | |
| 19322 | |
| 19323 | |
| 19324 | GL_GNULIB_WMEMCMP=0 |
| 19325 | |
| 19326 | |
| 19327 | |
| 19328 | GL_GNULIB_WMEMCPY=0 |
| 19329 | |
| 19330 | |
| 19331 | |
| 19332 | GL_GNULIB_WMEMMOVE=0 |
| 19333 | |
| 19334 | |
| 19335 | |
| 19336 | GL_GNULIB_WMEMPCPY=0 |
| 19337 | |
| 19338 | |
| 19339 | |
| 19340 | GL_GNULIB_WMEMSET=0 |
| 19341 | |
| 19342 | |
| 19343 | |
| 19344 | GL_GNULIB_WCSLEN=0 |
| 19345 | |
| 19346 | |
| 19347 | |
| 19348 | GL_GNULIB_WCSNLEN=0 |
| 19349 | |
| 19350 | |
| 19351 | |
| 19352 | GL_GNULIB_WCSCPY=0 |
| 19353 | |
| 19354 | |
| 19355 | |
| 19356 | GL_GNULIB_WCPCPY=0 |
| 19357 | |
| 19358 | |
| 19359 | |
| 19360 | GL_GNULIB_WCSNCPY=0 |
| 19361 | |
| 19362 | |
| 19363 | |
| 19364 | GL_GNULIB_WCPNCPY=0 |
| 19365 | |
| 19366 | |
| 19367 | |
| 19368 | GL_GNULIB_WCSCAT=0 |
| 19369 | |
| 19370 | |
| 19371 | |
| 19372 | GL_GNULIB_WCSNCAT=0 |
| 19373 | |
| 19374 | |
| 19375 | |
| 19376 | GL_GNULIB_WCSCMP=0 |
| 19377 | |
| 19378 | |
| 19379 | |
| 19380 | GL_GNULIB_WCSNCMP=0 |
| 19381 | |
| 19382 | |
| 19383 | |
| 19384 | GL_GNULIB_WCSCASECMP=0 |
| 19385 | |
| 19386 | |
| 19387 | |
| 19388 | GL_GNULIB_WCSNCASECMP=0 |
| 19389 | |
| 19390 | |
| 19391 | |
| 19392 | GL_GNULIB_WCSCOLL=0 |
| 19393 | |
| 19394 | |
| 19395 | |
| 19396 | GL_GNULIB_WCSXFRM=0 |
| 19397 | |
| 19398 | |
| 19399 | |
| 19400 | GL_GNULIB_WCSDUP=0 |
| 19401 | |
| 19402 | |
| 19403 | |
| 19404 | GL_GNULIB_WCSCHR=0 |
| 19405 | |
| 19406 | |
| 19407 | |
| 19408 | GL_GNULIB_WCSRCHR=0 |
| 19409 | |
| 19410 | |
| 19411 | |
| 19412 | GL_GNULIB_WCSCSPN=0 |
| 19413 | |
| 19414 | |
| 19415 | |
| 19416 | GL_GNULIB_WCSSPN=0 |
| 19417 | |
| 19418 | |
| 19419 | |
| 19420 | GL_GNULIB_WCSPBRK=0 |
| 19421 | |
| 19422 | |
| 19423 | |
| 19424 | GL_GNULIB_WCSSTR=0 |
| 19425 | |
| 19426 | |
| 19427 | |
| 19428 | GL_GNULIB_WCSTOK=0 |
| 19429 | |
| 19430 | |
| 19431 | |
| 19432 | GL_GNULIB_WCSWIDTH=0 |
| 19433 | |
| 19434 | |
| 19435 | |
| 19436 | GL_GNULIB_WCSFTIME=0 |
| 19437 | |
| 19438 | |
| 19439 | |
| 19440 | GL_GNULIB_MDA_WCSDUP=1 |
| 19441 | |
| 19442 | |
| 19443 | |
| 19444 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19445 | if testscip-shell system . . test. "x$ac_cv_have_decl_fchdir" = xyes |
| 19446 | then : |
| 19447 | ac_have_decl=1 |
| 19448 | else $as_nop |
| 19449 | ac_have_decl=0 |
| 19450 | fi |
| 19451 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_FCHDIR $ac_have_decl" >>confdefs.h |
| 19452 | |
| 19453 | |
| 19454 | |
| 19455 | |
| 19456 | HAVE_ACOSF=1; |
| 19457 | HAVE_ACOSL=1; |
| 19458 | HAVE_ASINF=1; |
| 19459 | HAVE_ASINL=1; |
| 19460 | HAVE_ATANF=1; |
| 19461 | HAVE_ATANL=1; |
| 19462 | HAVE_ATAN2F=1; |
| 19463 | HAVE_CBRT=1; |
| 19464 | HAVE_CBRTF=1; |
| 19465 | HAVE_CBRTL=1; |
| 19466 | HAVE_COPYSIGN=1; |
| 19467 | HAVE_COPYSIGNL=1; |
| 19468 | HAVE_COSF=1; |
| 19469 | HAVE_COSL=1; |
| 19470 | HAVE_COSHF=1; |
| 19471 | HAVE_EXPF=1; |
| 19472 | HAVE_EXPL=1; |
| 19473 | HAVE_EXPM1=1; |
| 19474 | HAVE_EXPM1F=1; |
| 19475 | HAVE_FABSF=1; |
| 19476 | HAVE_FABSL=1; |
| 19477 | HAVE_FMA=1; |
| 19478 | HAVE_FMAF=1; |
| 19479 | HAVE_FMAL=1; |
| 19480 | HAVE_FMODF=1; |
| 19481 | HAVE_FMODL=1; |
| 19482 | HAVE_FREXPF=1; |
| 19483 | HAVE_HYPOTF=1; |
| 19484 | HAVE_HYPOTL=1; |
| 19485 | HAVE_ILOGB=1; |
| 19486 | HAVE_ILOGBF=1; |
| 19487 | HAVE_ILOGBL=1; |
| 19488 | HAVE_ISNANF=1; |
| 19489 | HAVE_ISNAND=1; |
| 19490 | HAVE_ISNANL=1; |
| 19491 | HAVE_LDEXPF=1; |
| 19492 | HAVE_LOGF=1; |
| 19493 | HAVE_LOGL=1; |
| 19494 | HAVE_LOG10F=1; |
| 19495 | HAVE_LOG10L=1; |
| 19496 | HAVE_LOG1P=1; |
| 19497 | HAVE_LOG1PF=1; |
| 19498 | HAVE_LOG1PL=1; |
| 19499 | HAVE_LOGBF=1; |
| 19500 | HAVE_LOGBL=1; |
| 19501 | HAVE_MODFF=1; |
| 19502 | HAVE_MODFL=1; |
| 19503 | HAVE_POWF=1; |
| 19504 | HAVE_REMAINDER=1; |
| 19505 | HAVE_REMAINDERF=1; |
| 19506 | HAVE_RINT=1; |
| 19507 | HAVE_RINTL=1; |
| 19508 | HAVE_SINF=1; |
| 19509 | HAVE_SINL=1; |
| 19510 | HAVE_SINHF=1; |
| 19511 | HAVE_SQRTF=1; |
| 19512 | HAVE_SQRTL=1; |
| 19513 | HAVE_TANF=1; |
| 19514 | HAVE_TANL=1; |
| 19515 | HAVE_TANHF=1; |
| 19516 | HAVE_DECL_ACOSL=1; |
| 19517 | HAVE_DECL_ASINL=1; |
| 19518 | HAVE_DECL_ATANL=1; |
| 19519 | HAVE_DECL_CBRTF=1; |
| 19520 | HAVE_DECL_CBRTL=1; |
| 19521 | HAVE_DECL_CEILF=1; |
| 19522 | HAVE_DECL_CEILL=1; |
| 19523 | HAVE_DECL_COPYSIGNF=1; |
| 19524 | HAVE_DECL_COSL=1; |
| 19525 | HAVE_DECL_EXPL=1; |
| 19526 | HAVE_DECL_EXP2=1; |
| 19527 | HAVE_DECL_EXP2F=1; |
| 19528 | HAVE_DECL_EXP2L=1; |
| 19529 | HAVE_DECL_EXPM1L=1; |
| 19530 | HAVE_DECL_FLOORF=1; |
| 19531 | HAVE_DECL_FLOORL=1; |
| 19532 | HAVE_DECL_FREXPL=1; |
| 19533 | HAVE_DECL_LDEXPL=1; |
| 19534 | HAVE_DECL_LOGL=1; |
| 19535 | HAVE_DECL_LOG10L=1; |
| 19536 | HAVE_DECL_LOG2=1; |
| 19537 | HAVE_DECL_LOG2F=1; |
| 19538 | HAVE_DECL_LOG2L=1; |
| 19539 | HAVE_DECL_LOGB=1; |
| 19540 | HAVE_DECL_REMAINDER=1; |
| 19541 | HAVE_DECL_REMAINDERL=1; |
| 19542 | HAVE_DECL_RINTF=1; |
| 19543 | HAVE_DECL_ROUND=1; |
| 19544 | HAVE_DECL_ROUNDF=1; |
| 19545 | HAVE_DECL_ROUNDL=1; |
| 19546 | HAVE_DECL_SINL=1; |
| 19547 | HAVE_DECL_SQRTL=1; |
| 19548 | HAVE_DECL_TANL=1; |
| 19549 | HAVE_DECL_TRUNC=1; |
| 19550 | HAVE_DECL_TRUNCF=1; |
| 19551 | HAVE_DECL_TRUNCL=1; |
| 19552 | REPLACE_ACOSF=0; |
| 19553 | REPLACE_ASINF=0; |
| 19554 | REPLACE_ATANF=0; |
| 19555 | REPLACE_ATAN2F=0; |
| 19556 | REPLACE_CBRTF=0; |
| 19557 | REPLACE_CBRTL=0; |
| 19558 | REPLACE_CEIL=0; |
| 19559 | REPLACE_CEILF=0; |
| 19560 | REPLACE_CEILL=0; |
| 19561 | REPLACE_COSF=0; |
| 19562 | REPLACE_COSHF=0; |
| 19563 | REPLACE_EXPF=0; |
| 19564 | REPLACE_EXPL=0; |
| 19565 | REPLACE_EXPM1=0; |
| 19566 | REPLACE_EXPM1F=0; |
| 19567 | REPLACE_EXPM1L=0; |
| 19568 | REPLACE_EXP2=0; |
| 19569 | REPLACE_EXP2L=0; |
| 19570 | REPLACE_FABSL=0; |
| 19571 | REPLACE_FLOOR=0; |
| 19572 | REPLACE_FLOORF=0; |
| 19573 | REPLACE_FLOORL=0; |
| 19574 | REPLACE_FMA=0; |
| 19575 | REPLACE_FMAF=0; |
| 19576 | REPLACE_FMAL=0; |
| 19577 | REPLACE_FMOD=0; |
| 19578 | REPLACE_FMODF=0; |
| 19579 | REPLACE_FMODL=0; |
| 19580 | REPLACE_FREXPF=0; |
| 19581 | REPLACE_FREXP=0; |
| 19582 | REPLACE_FREXPL=0; |
| 19583 | REPLACE_HUGE_VAL=0; |
| 19584 | REPLACE_HYPOT=0; |
| 19585 | REPLACE_HYPOTF=0; |
| 19586 | REPLACE_HYPOTL=0; |
| 19587 | REPLACE_ILOGB=0; |
| 19588 | REPLACE_ILOGBF=0; |
| 19589 | REPLACE_ILOGBL=0; |
| 19590 | REPLACE_ISFINITE=0; |
| 19591 | REPLACE_ISINF=0; |
| 19592 | REPLACE_ISNAN=0; |
| 19593 | REPLACE_LDEXPL=0; |
| 19594 | REPLACE_LOG=0; |
| 19595 | REPLACE_LOGF=0; |
| 19596 | REPLACE_LOGL=0; |
| 19597 | REPLACE_LOG10=0; |
| 19598 | REPLACE_LOG10F=0; |
| 19599 | REPLACE_LOG10L=0; |
| 19600 | REPLACE_LOG1P=0; |
| 19601 | REPLACE_LOG1PF=0; |
| 19602 | REPLACE_LOG1PL=0; |
| 19603 | REPLACE_LOG2=0; |
| 19604 | REPLACE_LOG2F=0; |
| 19605 | REPLACE_LOG2L=0; |
| 19606 | REPLACE_LOGB=0; |
| 19607 | REPLACE_LOGBF=0; |
| 19608 | REPLACE_LOGBL=0; |
| 19609 | REPLACE_MODF=0; |
| 19610 | REPLACE_MODFF=0; |
| 19611 | REPLACE_MODFL=0; |
| 19612 | REPLACE_NAN=0; |
| 19613 | REPLACE_REMAINDER=0; |
| 19614 | REPLACE_REMAINDERF=0; |
| 19615 | REPLACE_REMAINDERL=0; |
| 19616 | REPLACE_RINTL=0; |
| 19617 | REPLACE_ROUND=0; |
| 19618 | REPLACE_ROUNDF=0; |
| 19619 | REPLACE_ROUNDL=0; |
| 19620 | REPLACE_SIGNBIT=0; |
| 19621 | REPLACE_SIGNBIT_USING_BUILTINS=0; |
| 19622 | REPLACE_SINF=0; |
| 19623 | REPLACE_SINHF=0; |
| 19624 | REPLACE_SQRTF=0; |
| 19625 | REPLACE_SQRTL=0; |
| 19626 | REPLACE_TANF=0; |
| 19627 | REPLACE_TANHF=0; |
| 19628 | REPLACE_TRUNC=0; |
| 19629 | REPLACE_TRUNCF=0; |
| 19630 | REPLACE_TRUNCL=0; |
| 19631 | |
| 19632 | |
| 19633 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5 |
| 19634 | printfscip-shell system . . printf. %s "checking whether frexp() can be used without linking with libm... " >&6; } |
| 19635 | if testscip-shell system . . test. ${gl_cv_func_frexp_no_libm+y} |
| 19636 | then : |
| 19637 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 19638 | else $as_nop |
| 19639 | |
| 19640 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19641 | /* end confdefs.h. */ |
| 19642 | #include <math.h> |
| 19643 | double x; |
| 19644 | int |
| 19645 | main (void) |
| 19646 | { |
| 19647 | int e; return frexp (x, &e) > 0; |
| 19648 | ; |
| 19649 | return 0; |
| 19650 | } |
| 19651 | _ACEOF |
| 19652 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 19653 | then : |
| 19654 | gl_cv_func_frexp_no_libm=yes |
| 19655 | else $as_nop |
| 19656 | gl_cv_func_frexp_no_libm=no |
| 19657 | fi |
| 19658 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19659 | conftest$ac_exeext conftest.$ac_ext |
| 19660 | |
| 19661 | fi |
| 19662 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5 |
| 19663 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexp_no_libm" >&6; } |
| 19664 | |
| 19665 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19666 | if testscip-shell system . . test. "x$ac_cv_have_decl_alarm" = xyes |
| 19667 | then : |
| 19668 | ac_have_decl=1 |
| 19669 | else $as_nop |
| 19670 | ac_have_decl=0 |
| 19671 | fi |
| 19672 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h |
| 19673 | |
| 19674 | |
| 19675 | |
| 19676 | GL_GNULIB_ACOSF=0 |
| 19677 | |
| 19678 | |
| 19679 | |
| 19680 | GL_GNULIB_ACOSL=0 |
| 19681 | |
| 19682 | |
| 19683 | |
| 19684 | GL_GNULIB_ASINF=0 |
| 19685 | |
| 19686 | |
| 19687 | |
| 19688 | GL_GNULIB_ASINL=0 |
| 19689 | |
| 19690 | |
| 19691 | |
| 19692 | GL_GNULIB_ATANF=0 |
| 19693 | |
| 19694 | |
| 19695 | |
| 19696 | GL_GNULIB_ATANL=0 |
| 19697 | |
| 19698 | |
| 19699 | |
| 19700 | GL_GNULIB_ATAN2F=0 |
| 19701 | |
| 19702 | |
| 19703 | |
| 19704 | GL_GNULIB_CBRT=0 |
| 19705 | |
| 19706 | |
| 19707 | |
| 19708 | GL_GNULIB_CBRTF=0 |
| 19709 | |
| 19710 | |
| 19711 | |
| 19712 | GL_GNULIB_CBRTL=0 |
| 19713 | |
| 19714 | |
| 19715 | |
| 19716 | GL_GNULIB_CEIL=0 |
| 19717 | |
| 19718 | |
| 19719 | |
| 19720 | GL_GNULIB_CEILF=0 |
| 19721 | |
| 19722 | |
| 19723 | |
| 19724 | GL_GNULIB_CEILL=0 |
| 19725 | |
| 19726 | |
| 19727 | |
| 19728 | GL_GNULIB_COPYSIGN=0 |
| 19729 | |
| 19730 | |
| 19731 | |
| 19732 | GL_GNULIB_COPYSIGNF=0 |
| 19733 | |
| 19734 | |
| 19735 | |
| 19736 | GL_GNULIB_COPYSIGNL=0 |
| 19737 | |
| 19738 | |
| 19739 | |
| 19740 | GL_GNULIB_COSF=0 |
| 19741 | |
| 19742 | |
| 19743 | |
| 19744 | GL_GNULIB_COSL=0 |
| 19745 | |
| 19746 | |
| 19747 | |
| 19748 | GL_GNULIB_COSHF=0 |
| 19749 | |
| 19750 | |
| 19751 | |
| 19752 | GL_GNULIB_EXPF=0 |
| 19753 | |
| 19754 | |
| 19755 | |
| 19756 | GL_GNULIB_EXPL=0 |
| 19757 | |
| 19758 | |
| 19759 | |
| 19760 | GL_GNULIB_EXP2=0 |
| 19761 | |
| 19762 | |
| 19763 | |
| 19764 | GL_GNULIB_EXP2F=0 |
| 19765 | |
| 19766 | |
| 19767 | |
| 19768 | GL_GNULIB_EXP2L=0 |
| 19769 | |
| 19770 | |
| 19771 | |
| 19772 | GL_GNULIB_EXPM1=0 |
| 19773 | |
| 19774 | |
| 19775 | |
| 19776 | GL_GNULIB_EXPM1F=0 |
| 19777 | |
| 19778 | |
| 19779 | |
| 19780 | GL_GNULIB_EXPM1L=0 |
| 19781 | |
| 19782 | |
| 19783 | |
| 19784 | GL_GNULIB_FABSF=0 |
| 19785 | |
| 19786 | |
| 19787 | |
| 19788 | GL_GNULIB_FABSL=0 |
| 19789 | |
| 19790 | |
| 19791 | |
| 19792 | GL_GNULIB_FLOOR=0 |
| 19793 | |
| 19794 | |
| 19795 | |
| 19796 | GL_GNULIB_FLOORF=0 |
| 19797 | |
| 19798 | |
| 19799 | |
| 19800 | GL_GNULIB_FLOORL=0 |
| 19801 | |
| 19802 | |
| 19803 | |
| 19804 | GL_GNULIB_FMA=0 |
| 19805 | |
| 19806 | |
| 19807 | |
| 19808 | GL_GNULIB_FMAF=0 |
| 19809 | |
| 19810 | |
| 19811 | |
| 19812 | GL_GNULIB_FMAL=0 |
| 19813 | |
| 19814 | |
| 19815 | |
| 19816 | GL_GNULIB_FMOD=0 |
| 19817 | |
| 19818 | |
| 19819 | |
| 19820 | GL_GNULIB_FMODF=0 |
| 19821 | |
| 19822 | |
| 19823 | |
| 19824 | GL_GNULIB_FMODL=0 |
| 19825 | |
| 19826 | |
| 19827 | |
| 19828 | GL_GNULIB_FREXPF=0 |
| 19829 | |
| 19830 | |
| 19831 | |
| 19832 | GL_GNULIB_FREXP=0 |
| 19833 | |
| 19834 | |
| 19835 | |
| 19836 | GL_GNULIB_FREXPL=0 |
| 19837 | |
| 19838 | |
| 19839 | |
| 19840 | GL_GNULIB_HYPOT=0 |
| 19841 | |
| 19842 | |
| 19843 | |
| 19844 | GL_GNULIB_HYPOTF=0 |
| 19845 | |
| 19846 | |
| 19847 | |
| 19848 | GL_GNULIB_HYPOTL=0 |
| 19849 | |
| 19850 | |
| 19851 | |
| 19852 | GL_GNULIB_ILOGB=0 |
| 19853 | |
| 19854 | |
| 19855 | |
| 19856 | GL_GNULIB_ILOGBF=0 |
| 19857 | |
| 19858 | |
| 19859 | |
| 19860 | GL_GNULIB_ILOGBL=0 |
| 19861 | |
| 19862 | |
| 19863 | |
| 19864 | GL_GNULIB_ISFINITE=0 |
| 19865 | |
| 19866 | |
| 19867 | |
| 19868 | GL_GNULIB_ISINF=0 |
| 19869 | |
| 19870 | |
| 19871 | |
| 19872 | GL_GNULIB_ISNAN=0 |
| 19873 | |
| 19874 | |
| 19875 | |
| 19876 | GL_GNULIB_ISNANF=0 |
| 19877 | |
| 19878 | |
| 19879 | |
| 19880 | GL_GNULIB_ISNAND=0 |
| 19881 | |
| 19882 | |
| 19883 | |
| 19884 | GL_GNULIB_ISNANL=0 |
| 19885 | |
| 19886 | |
| 19887 | |
| 19888 | GL_GNULIB_LDEXPF=0 |
| 19889 | |
| 19890 | |
| 19891 | |
| 19892 | GL_GNULIB_LDEXPL=0 |
| 19893 | |
| 19894 | |
| 19895 | |
| 19896 | GL_GNULIB_LOG=0 |
| 19897 | |
| 19898 | |
| 19899 | |
| 19900 | GL_GNULIB_LOGF=0 |
| 19901 | |
| 19902 | |
| 19903 | |
| 19904 | GL_GNULIB_LOGL=0 |
| 19905 | |
| 19906 | |
| 19907 | |
| 19908 | GL_GNULIB_LOG10=0 |
| 19909 | |
| 19910 | |
| 19911 | |
| 19912 | GL_GNULIB_LOG10F=0 |
| 19913 | |
| 19914 | |
| 19915 | |
| 19916 | GL_GNULIB_LOG10L=0 |
| 19917 | |
| 19918 | |
| 19919 | |
| 19920 | GL_GNULIB_LOG1P=0 |
| 19921 | |
| 19922 | |
| 19923 | |
| 19924 | GL_GNULIB_LOG1PF=0 |
| 19925 | |
| 19926 | |
| 19927 | |
| 19928 | GL_GNULIB_LOG1PL=0 |
| 19929 | |
| 19930 | |
| 19931 | |
| 19932 | GL_GNULIB_LOG2=0 |
| 19933 | |
| 19934 | |
| 19935 | |
| 19936 | GL_GNULIB_LOG2F=0 |
| 19937 | |
| 19938 | |
| 19939 | |
| 19940 | GL_GNULIB_LOG2L=0 |
| 19941 | |
| 19942 | |
| 19943 | |
| 19944 | GL_GNULIB_LOGB=0 |
| 19945 | |
| 19946 | |
| 19947 | |
| 19948 | GL_GNULIB_LOGBF=0 |
| 19949 | |
| 19950 | |
| 19951 | |
| 19952 | GL_GNULIB_LOGBL=0 |
| 19953 | |
| 19954 | |
| 19955 | |
| 19956 | GL_GNULIB_MODF=0 |
| 19957 | |
| 19958 | |
| 19959 | |
| 19960 | GL_GNULIB_MODFF=0 |
| 19961 | |
| 19962 | |
| 19963 | |
| 19964 | GL_GNULIB_MODFL=0 |
| 19965 | |
| 19966 | |
| 19967 | |
| 19968 | GL_GNULIB_POWF=0 |
| 19969 | |
| 19970 | |
| 19971 | |
| 19972 | GL_GNULIB_REMAINDER=0 |
| 19973 | |
| 19974 | |
| 19975 | |
| 19976 | GL_GNULIB_REMAINDERF=0 |
| 19977 | |
| 19978 | |
| 19979 | |
| 19980 | GL_GNULIB_REMAINDERL=0 |
| 19981 | |
| 19982 | |
| 19983 | |
| 19984 | GL_GNULIB_RINT=0 |
| 19985 | |
| 19986 | |
| 19987 | |
| 19988 | GL_GNULIB_RINTF=0 |
| 19989 | |
| 19990 | |
| 19991 | |
| 19992 | GL_GNULIB_RINTL=0 |
| 19993 | |
| 19994 | |
| 19995 | |
| 19996 | GL_GNULIB_ROUND=0 |
| 19997 | |
| 19998 | |
| 19999 | |
| 20000 | GL_GNULIB_ROUNDF=0 |
| 20001 | |
| 20002 | |
| 20003 | |
| 20004 | GL_GNULIB_ROUNDL=0 |
| 20005 | |
| 20006 | |
| 20007 | |
| 20008 | GL_GNULIB_SIGNBIT=0 |
| 20009 | |
| 20010 | |
| 20011 | |
| 20012 | GL_GNULIB_SINF=0 |
| 20013 | |
| 20014 | |
| 20015 | |
| 20016 | GL_GNULIB_SINL=0 |
| 20017 | |
| 20018 | |
| 20019 | |
| 20020 | GL_GNULIB_SINHF=0 |
| 20021 | |
| 20022 | |
| 20023 | |
| 20024 | GL_GNULIB_SQRTF=0 |
| 20025 | |
| 20026 | |
| 20027 | |
| 20028 | GL_GNULIB_SQRTL=0 |
| 20029 | |
| 20030 | |
| 20031 | |
| 20032 | GL_GNULIB_TANF=0 |
| 20033 | |
| 20034 | |
| 20035 | |
| 20036 | GL_GNULIB_TANL=0 |
| 20037 | |
| 20038 | |
| 20039 | |
| 20040 | GL_GNULIB_TANHF=0 |
| 20041 | |
| 20042 | |
| 20043 | |
| 20044 | GL_GNULIB_TRUNC=0 |
| 20045 | |
| 20046 | |
| 20047 | |
| 20048 | GL_GNULIB_TRUNCF=0 |
| 20049 | |
| 20050 | |
| 20051 | |
| 20052 | GL_GNULIB_TRUNCL=0 |
| 20053 | |
| 20054 | |
| 20055 | |
| 20056 | GL_GNULIB_MDA_J0=1 |
| 20057 | |
| 20058 | |
| 20059 | |
| 20060 | GL_GNULIB_MDA_J1=1 |
| 20061 | |
| 20062 | |
| 20063 | |
| 20064 | GL_GNULIB_MDA_JN=1 |
| 20065 | |
| 20066 | |
| 20067 | |
| 20068 | GL_GNULIB_MDA_Y0=1 |
| 20069 | |
| 20070 | |
| 20071 | |
| 20072 | GL_GNULIB_MDA_Y1=1 |
| 20073 | |
| 20074 | |
| 20075 | |
| 20076 | GL_GNULIB_MDA_YN=1 |
| 20077 | |
| 20078 | |
| 20079 | |
| 20080 | |
| 20081 | |
| 20082 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 20083 | if testscip-shell system . . test. "x$ac_cv_have_decl_getdtablesize" = xyes |
| 20084 | then : |
| 20085 | ac_have_decl=1 |
| 20086 | else $as_nop |
| 20087 | ac_have_decl=0 |
| 20088 | fi |
| 20089 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h |
| 20090 | |
| 20091 | |
| 20092 | HAVE_GETRANDOM=1; |
| 20093 | REPLACE_GETRANDOM=0; |
| 20094 | |
| 20095 | |
| 20096 | |
| 20097 | |
| 20098 | GL_GNULIB_GETRANDOM=0 |
| 20099 | |
| 20100 | |
| 20101 | |
| 20102 | |
| 20103 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5 |
| 20104 | printfscip-shell system . . printf. %s "checking where to find the exponent in a 'float'... " >&6; } |
| 20105 | if testscip-shell system . . test. ${gl_cv_cc_float_expbit0+y} |
| 20106 | then : |
| 20107 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20108 | else $as_nop |
| 20109 | |
| 20110 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 20111 | then : |
| 20112 | gl_cv_cc_float_expbit0="word 0 bit 23" |
| 20113 | else $as_nop |
| 20114 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20115 | /* end confdefs.h. */ |
| 20116 | |
| 20117 | #include <float.h> |
| 20118 | #include <stddef.h> |
| 20119 | #include <stdio.h> |
| 20120 | #include <string.h> |
| 20121 | #define NWORDS \ |
| 20122 | ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 20123 | typedef union { float value; unsigned int word[NWORDS]; } memory_float; |
| 20124 | static unsigned int ored_words[NWORDS]; |
| 20125 | static unsigned int anded_words[NWORDS]; |
| 20126 | static void add_to_ored_words (float x) |
| 20127 | { |
| 20128 | memory_float m; |
| 20129 | size_t i; |
| 20130 | /* Clear it first, in case |
| 20131 | sizeof (float) < sizeof (memory_float). */ |
| 20132 | memset (&m, 0, sizeof (memory_float)); |
| 20133 | m.value = x; |
| 20134 | for (i = 0; i < NWORDS; i++) |
| 20135 | { |
| 20136 | ored_words[i] |= m.word[i]; |
| 20137 | anded_words[i] &= m.word[i]; |
| 20138 | } |
| 20139 | } |
| 20140 | int main () |
| 20141 | { |
| 20142 | size_t j; |
| 20143 | FILE *fp = fopen ("conftest.out", "w"); |
| 20144 | if (fp == NULL) |
| 20145 | return 1; |
| 20146 | for (j = 0; j < NWORDS; j++) |
| 20147 | anded_words[j] = ~ (unsigned int) 0; |
| 20148 | add_to_ored_words (0.25f); |
| 20149 | add_to_ored_words (0.5f); |
| 20150 | add_to_ored_words (1.0f); |
| 20151 | add_to_ored_words (2.0f); |
| 20152 | add_to_ored_words (4.0f); |
| 20153 | /* Remove bits that are common (e.g. if representation of the first mantissa |
| 20154 | bit is explicit). */ |
| 20155 | for (j = 0; j < NWORDS; j++) |
| 20156 | ored_words[j] &= ~anded_words[j]; |
| 20157 | /* Now find the nonzero word. */ |
| 20158 | for (j = 0; j < NWORDS; j++) |
| 20159 | if (ored_words[j] != 0) |
| 20160 | break; |
| 20161 | if (j < NWORDS) |
| 20162 | { |
| 20163 | size_t i; |
| 20164 | for (i = j + 1; i < NWORDS; i++) |
| 20165 | if (ored_words[i] != 0) |
| 20166 | { |
| 20167 | fprintf (fp, "unknown"); |
| 20168 | return (fclose (fp) != 0); |
| 20169 | } |
| 20170 | for (i = 0; ; i++) |
| 20171 | if ((ored_words[j] >> i) & 1) |
| 20172 | { |
| 20173 | fprintf (fp, "word %d bit %d", (int) j, (int) i); |
| 20174 | return (fclose (fp) != 0); |
| 20175 | } |
| 20176 | } |
| 20177 | fprintf (fp, "unknown"); |
| 20178 | return (fclose (fp) != 0); |
| 20179 | } |
| 20180 | |
| 20181 | _ACEOF |
| 20182 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 20183 | then : |
| 20184 | gl_cv_cc_float_expbit0=`catscip-shell system . . cat. conftest.out` |
| 20185 | else $as_nop |
| 20186 | gl_cv_cc_float_expbit0="unknown" |
| 20187 | fi |
| 20188 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20189 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20190 | fi |
| 20191 | |
| 20192 | rmscip-shell system . . rm. -f conftest.out |
| 20193 | |
| 20194 | fi |
| 20195 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5 |
| 20196 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_float_expbit0" >&6; } |
| 20197 | case "$gl_cv_cc_float_expbit0" in |
| 20198 | word*bit*) |
| 20199 | word=`echoscip-shell system . . echo. "$gl_cv_cc_float_expbit0" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 20200 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_float_expbit0" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 20201 | |
| 20202 | printfscip-shell system . . printf. "%s\n" "#define FLT_EXPBIT0_WORD $word" >>confdefs.h |
| 20203 | |
| 20204 | |
| 20205 | printfscip-shell system . . printf. "%s\n" "#define FLT_EXPBIT0_BIT $bit" >>confdefs.h |
| 20206 | |
| 20207 | ;; |
| 20208 | esac |
| 20209 | |
| 20210 | |
| 20211 | |
| 20212 | |
| 20213 | gl_threads_api=none |
| 20214 | LIBTHREAD= |
| 20215 | LTLIBTHREAD= |
| 20216 | LIBMULTITHREAD= |
| 20217 | LTLIBMULTITHREAD= |
| 20218 | if testscip-shell system . . test. "$gl_use_threads" != no; then |
| 20219 | |
| 20220 | |
| 20221 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 20222 | printfscip-shell system . . printf. %s "checking whether imported symbols can be declared weak... " >&6; } |
| 20223 | if testscip-shell system . . test. ${gl_cv_have_weak+y} |
| 20224 | then : |
| 20225 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20226 | else $as_nop |
| 20227 | case "$host_os" in |
| 20228 | cygwin*) |
| 20229 | gl_cv_have_weak="guessing no" |
| 20230 | ;; |
| 20231 | *) |
| 20232 | gl_cv_have_weak=no |
| 20233 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20234 | /* end confdefs.h. */ |
| 20235 | extern void xyzzy (); |
| 20236 | #pragma weak xyzzy |
| 20237 | int |
| 20238 | main (void) |
| 20239 | { |
| 20240 | xyzzy(); |
| 20241 | ; |
| 20242 | return 0; |
| 20243 | } |
| 20244 | _ACEOF |
| 20245 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20246 | then : |
| 20247 | gl_cv_have_weak=maybe |
| 20248 | fi |
| 20249 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20250 | conftest$ac_exeext conftest.$ac_ext |
| 20251 | if testscip-shell system . . test. $gl_cv_have_weak = maybe; then |
| 20252 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 20253 | then : |
| 20254 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20255 | /* end confdefs.h. */ |
| 20256 | #ifdef __ELF__ |
| 20257 | Extensible Linking Format |
| 20258 | #endif |
| 20259 | |
| 20260 | _ACEOF |
| 20261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20262 | $EGREP "Extensible Linking Format" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 20263 | then : |
| 20264 | gl_cv_have_weak="guessing yes" |
| 20265 | else $as_nop |
| 20266 | gl_cv_have_weak="guessing no" |
| 20267 | fi |
| 20268 | rmscip-shell system . . rm. -rf conftest* |
| 20269 | |
| 20270 | |
| 20271 | else $as_nop |
| 20272 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20273 | /* end confdefs.h. */ |
| 20274 | |
| 20275 | #include <stdio.h> |
| 20276 | #pragma weak fputs |
| 20277 | int main () |
| 20278 | { |
| 20279 | return (fputs == NULL); |
| 20280 | } |
| 20281 | _ACEOF |
| 20282 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 20283 | then : |
| 20284 | gl_cv_have_weak=yes |
| 20285 | else $as_nop |
| 20286 | gl_cv_have_weak=no |
| 20287 | fi |
| 20288 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20289 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20290 | fi |
| 20291 | |
| 20292 | fi |
| 20293 | ;; |
| 20294 | esac |
| 20295 | case " $LDFLAGS " in |
| 20296 | *" -static "*) gl_cv_have_weak=no ;; |
| 20297 | esac |
| 20298 | case "$gl_cv_have_weak" in |
| 20299 | *yes) |
| 20300 | case "$host_os" in |
| 20301 | freebsd* | dragonfly* | midnightbsd*) |
| 20302 | : > conftest1.c |
| 20303 | $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 |
| 20304 | catscip-shell system . . cat. <<EOF > conftest2.c |
| 20305 | #include <pthread.h> |
| 20306 | #pragma weak pthread_mutexattr_gettype |
| 20307 | int main () |
| 20308 | { |
| 20309 | return (pthread_mutexattr_gettype != NULL); |
| 20310 | } |
| 20311 | EOF |
| 20312 | $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ |
| 20313 | || gl_cv_have_weak=no |
| 20314 | rmscip-shell system . . rm. -f conftest1.c libempty.so conftest2.c conftest |
| 20315 | ;; |
| 20316 | esac |
| 20317 | ;; |
| 20318 | esac |
| 20319 | |
| 20320 | fi |
| 20321 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 20322 | printfscip-shell system . . printf. "%s\n" "$gl_cv_have_weak" >&6; } |
| 20323 | case "$gl_cv_have_weak" in |
| 20324 | *yes) |
| 20325 | |
| 20326 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h |
| 20327 | |
| 20328 | ;; |
| 20329 | esac |
| 20330 | |
| 20331 | if case "$gl_cv_have_weak" in *yes) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 20332 | |
| 20333 | : |
| 20334 | fi |
| 20335 | if testscip-shell system . . test. "$gl_use_threads" = isoc || testscip-shell system . . test. "$gl_use_threads" = isoc+posix; then |
| 20336 | |
| 20337 | gl_have_isoc_threads="$ac_cv_header_threads_h" |
| 20338 | fi |
| 20339 | if testscip-shell system . . test. "$gl_use_threads" = yes \ |
| 20340 | || testscip-shell system . . test. "$gl_use_threads" = posix \ |
| 20341 | || testscip-shell system . . test. "$gl_use_threads" = isoc+posix; then |
| 20342 | |
| 20343 | |
| 20344 | if testscip-shell system . . test. -z "$gl_pthreadlib_body_done"; then |
| 20345 | gl_pthread_api=no |
| 20346 | LIBPTHREAD= |
| 20347 | LIBPMULTITHREAD= |
| 20348 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 20349 | # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. |
| 20350 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 20351 | if testscip-shell system . . test. "x$ac_cv_header_pthread_h" = xyes |
| 20352 | then : |
| 20353 | gl_have_pthread_h=yes |
| 20354 | else $as_nop |
| 20355 | gl_have_pthread_h=no |
| 20356 | fi |
| 20357 | |
| 20358 | if testscip-shell system . . test. "$gl_have_pthread_h" = yes; then |
| 20359 | # Other possible tests: |
| 20360 | # -lpthreads (FSU threads, PCthreads) |
| 20361 | # -lgthreads |
| 20362 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 20363 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 20364 | # the second one only in libpthread, and lock.c needs it. |
| 20365 | # |
| 20366 | # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 |
| 20367 | # needs -pthread for some reason. See: |
| 20368 | # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html |
| 20369 | save_LIBS=$LIBS |
| 20370 | for gl_pthread in '' '-pthread'; do |
| 20371 | LIBS="$LIBS $gl_pthread" |
| 20372 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20373 | /* end confdefs.h. */ |
| 20374 | #include <pthread.h> |
| 20375 | pthread_mutex_t m; |
| 20376 | pthread_mutexattr_t ma; |
| 20377 | |
| 20378 | int |
| 20379 | main (void) |
| 20380 | { |
| 20381 | pthread_mutex_lock (&m); |
| 20382 | pthread_mutexattr_init (&ma); |
| 20383 | ; |
| 20384 | return 0; |
| 20385 | } |
| 20386 | _ACEOF |
| 20387 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20388 | then : |
| 20389 | gl_pthread_api=yes |
| 20390 | LIBPTHREAD=$gl_pthread |
| 20391 | LIBPMULTITHREAD=$gl_pthread |
| 20392 | fi |
| 20393 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20394 | conftest$ac_exeext conftest.$ac_ext |
| 20395 | LIBS=$save_LIBS |
| 20396 | testscip-shell system . . test. $gl_pthread_api = yes && break |
| 20397 | done |
| 20398 | echoscip-shell system . . echo. "$as_me:20398: gl_pthread_api=$gl_pthread_api" >&5 |
| 20399 | echoscip-shell system . . echo. "$as_me:20399: LIBPTHREAD=$LIBPTHREAD" >&5 |
| 20400 | |
| 20401 | gl_pthread_in_glibc=no |
| 20402 | # On Linux with glibc >= 2.34, libc contains the fully functional |
| 20403 | # pthread functions. |
| 20404 | case "$host_os" in |
| 20405 | linux*) |
| 20406 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20407 | /* end confdefs.h. */ |
| 20408 | #include <features.h> |
| 20409 | #ifdef __GNU_LIBRARY__ |
| 20410 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) |
| 20411 | Lucky user |
| 20412 | #endif |
| 20413 | #endif |
| 20414 | |
| 20415 | _ACEOF |
| 20416 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20417 | $EGREP "Lucky user" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 20418 | then : |
| 20419 | gl_pthread_in_glibc=yes |
| 20420 | fi |
| 20421 | rmscip-shell system . . rm. -rf conftest* |
| 20422 | |
| 20423 | ;; |
| 20424 | esac |
| 20425 | echoscip-shell system . . echo. "$as_me:20425: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 |
| 20426 | |
| 20427 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 20428 | # since it is defined as a macro on OSF/1.) |
| 20429 | if testscip-shell system . . test. $gl_pthread_api = yes && testscip-shell system . . test. -z "$LIBPTHREAD"; then |
| 20430 | # The program links fine without libpthread. But it may actually |
| 20431 | # need to link with libpthread in order to create multiple threads. |
| 20432 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 20433 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lpthread... " >&6; } |
| 20434 | if testscip-shell system . . test. ${ac_cv_lib_pthread_pthread_kill+y} |
| 20435 | then : |
| 20436 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20437 | else $as_nop |
| 20438 | ac_check_lib_save_LIBS=$LIBS |
| 20439 | LIBS="-lpthread $LIBS" |
| 20440 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20441 | /* end confdefs.h. */ |
| 20442 | |
| 20443 | /* Override any GCC internal prototype to avoid an error. |
| 20444 | Use char because int might match the return type of a GCC |
| 20445 | builtin and then its argument prototype would still apply. */ |
| 20446 | char pthread_kill (); |
| 20447 | int |
| 20448 | main (void) |
| 20449 | { |
| 20450 | return pthread_kill (); |
| 20451 | ; |
| 20452 | return 0; |
| 20453 | } |
| 20454 | _ACEOF |
| 20455 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20456 | then : |
| 20457 | ac_cv_lib_pthread_pthread_kill=yes |
| 20458 | else $as_nop |
| 20459 | ac_cv_lib_pthread_pthread_kill=no |
| 20460 | fi |
| 20461 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20462 | conftest$ac_exeext conftest.$ac_ext |
| 20463 | LIBS=$ac_check_lib_save_LIBS |
| 20464 | fi |
| 20465 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 20466 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 20467 | if testscip-shell system . . test. "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 20468 | then : |
| 20469 | if testscip-shell system . . test. $gl_pthread_in_glibc = yes; then |
| 20470 | LIBPMULTITHREAD= |
| 20471 | else |
| 20472 | LIBPMULTITHREAD=-lpthread |
| 20473 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 20474 | # Therefore pthread_in_use() needs to actually try to create a |
| 20475 | # thread: pthread_create from libc will fail, whereas |
| 20476 | # pthread_create will actually create a thread. |
| 20477 | # On Solaris 10 or newer, this test is no longer needed, because |
| 20478 | # libc contains the fully functional pthread functions. |
| 20479 | case "$host_os" in |
| 20480 | solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) |
| 20481 | |
| 20482 | printfscip-shell system . . printf. "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 20483 | |
| 20484 | esac |
| 20485 | fi |
| 20486 | |
| 20487 | fi |
| 20488 | |
| 20489 | elif testscip-shell system . . test. $gl_pthread_api != yes; then |
| 20490 | # Some library is needed. Try libpthread and libc_r. |
| 20491 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 20492 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lpthread... " >&6; } |
| 20493 | if testscip-shell system . . test. ${ac_cv_lib_pthread_pthread_kill+y} |
| 20494 | then : |
| 20495 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20496 | else $as_nop |
| 20497 | ac_check_lib_save_LIBS=$LIBS |
| 20498 | LIBS="-lpthread $LIBS" |
| 20499 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20500 | /* end confdefs.h. */ |
| 20501 | |
| 20502 | /* Override any GCC internal prototype to avoid an error. |
| 20503 | Use char because int might match the return type of a GCC |
| 20504 | builtin and then its argument prototype would still apply. */ |
| 20505 | char pthread_kill (); |
| 20506 | int |
| 20507 | main (void) |
| 20508 | { |
| 20509 | return pthread_kill (); |
| 20510 | ; |
| 20511 | return 0; |
| 20512 | } |
| 20513 | _ACEOF |
| 20514 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20515 | then : |
| 20516 | ac_cv_lib_pthread_pthread_kill=yes |
| 20517 | else $as_nop |
| 20518 | ac_cv_lib_pthread_pthread_kill=no |
| 20519 | fi |
| 20520 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20521 | conftest$ac_exeext conftest.$ac_ext |
| 20522 | LIBS=$ac_check_lib_save_LIBS |
| 20523 | fi |
| 20524 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 20525 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 20526 | if testscip-shell system . . test. "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 20527 | then : |
| 20528 | gl_pthread_api=yes |
| 20529 | LIBPTHREAD=-lpthread |
| 20530 | LIBPMULTITHREAD=-lpthread |
| 20531 | fi |
| 20532 | |
| 20533 | if testscip-shell system . . test. $gl_pthread_api != yes; then |
| 20534 | # For FreeBSD 4. |
| 20535 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 20536 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lc_r... " >&6; } |
| 20537 | if testscip-shell system . . test. ${ac_cv_lib_c_r_pthread_kill+y} |
| 20538 | then : |
| 20539 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20540 | else $as_nop |
| 20541 | ac_check_lib_save_LIBS=$LIBS |
| 20542 | LIBS="-lc_r $LIBS" |
| 20543 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20544 | /* end confdefs.h. */ |
| 20545 | |
| 20546 | /* Override any GCC internal prototype to avoid an error. |
| 20547 | Use char because int might match the return type of a GCC |
| 20548 | builtin and then its argument prototype would still apply. */ |
| 20549 | char pthread_kill (); |
| 20550 | int |
| 20551 | main (void) |
| 20552 | { |
| 20553 | return pthread_kill (); |
| 20554 | ; |
| 20555 | return 0; |
| 20556 | } |
| 20557 | _ACEOF |
| 20558 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20559 | then : |
| 20560 | ac_cv_lib_c_r_pthread_kill=yes |
| 20561 | else $as_nop |
| 20562 | ac_cv_lib_c_r_pthread_kill=no |
| 20563 | fi |
| 20564 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20565 | conftest$ac_exeext conftest.$ac_ext |
| 20566 | LIBS=$ac_check_lib_save_LIBS |
| 20567 | fi |
| 20568 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 20569 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 20570 | if testscip-shell system . . test. "x$ac_cv_lib_c_r_pthread_kill" = xyes |
| 20571 | then : |
| 20572 | gl_pthread_api=yes |
| 20573 | LIBPTHREAD=-lc_r |
| 20574 | LIBPMULTITHREAD=-lc_r |
| 20575 | fi |
| 20576 | |
| 20577 | fi |
| 20578 | fi |
| 20579 | echoscip-shell system . . echo. "$as_me:20579: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 |
| 20580 | fi |
| 20581 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 |
| 20582 | printfscip-shell system . . printf. %s "checking whether POSIX threads API is available... " >&6; } |
| 20583 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 |
| 20584 | printfscip-shell system . . printf. "%s\n" "$gl_pthread_api" >&6; } |
| 20585 | |
| 20586 | |
| 20587 | if testscip-shell system . . test. $gl_pthread_api = yes; then |
| 20588 | |
| 20589 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h |
| 20590 | |
| 20591 | fi |
| 20592 | |
| 20593 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20594 | /* end confdefs.h. */ |
| 20595 | #include <sched.h> |
| 20596 | int |
| 20597 | main (void) |
| 20598 | { |
| 20599 | sched_yield (); |
| 20600 | ; |
| 20601 | return 0; |
| 20602 | } |
| 20603 | _ACEOF |
| 20604 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20605 | then : |
| 20606 | LIB_SCHED_YIELD= |
| 20607 | |
| 20608 | else $as_nop |
| 20609 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 |
| 20610 | printfscip-shell system . . printf. %s "checking for sched_yield in -lrt... " >&6; } |
| 20611 | if testscip-shell system . . test. ${ac_cv_lib_rt_sched_yield+y} |
| 20612 | then : |
| 20613 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20614 | else $as_nop |
| 20615 | ac_check_lib_save_LIBS=$LIBS |
| 20616 | LIBS="-lrt $LIBS" |
| 20617 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20618 | /* end confdefs.h. */ |
| 20619 | |
| 20620 | /* Override any GCC internal prototype to avoid an error. |
| 20621 | Use char because int might match the return type of a GCC |
| 20622 | builtin and then its argument prototype would still apply. */ |
| 20623 | char sched_yield (); |
| 20624 | int |
| 20625 | main (void) |
| 20626 | { |
| 20627 | return sched_yield (); |
| 20628 | ; |
| 20629 | return 0; |
| 20630 | } |
| 20631 | _ACEOF |
| 20632 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20633 | then : |
| 20634 | ac_cv_lib_rt_sched_yield=yes |
| 20635 | else $as_nop |
| 20636 | ac_cv_lib_rt_sched_yield=no |
| 20637 | fi |
| 20638 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20639 | conftest$ac_exeext conftest.$ac_ext |
| 20640 | LIBS=$ac_check_lib_save_LIBS |
| 20641 | fi |
| 20642 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 |
| 20643 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } |
| 20644 | if testscip-shell system . . test. "x$ac_cv_lib_rt_sched_yield" = xyes |
| 20645 | then : |
| 20646 | LIB_SCHED_YIELD=-lrt |
| 20647 | else $as_nop |
| 20648 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
| 20649 | printfscip-shell system . . printf. %s "checking for sched_yield in -lposix4... " >&6; } |
| 20650 | if testscip-shell system . . test. ${ac_cv_lib_posix4_sched_yield+y} |
| 20651 | then : |
| 20652 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20653 | else $as_nop |
| 20654 | ac_check_lib_save_LIBS=$LIBS |
| 20655 | LIBS="-lposix4 $LIBS" |
| 20656 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20657 | /* end confdefs.h. */ |
| 20658 | |
| 20659 | /* Override any GCC internal prototype to avoid an error. |
| 20660 | Use char because int might match the return type of a GCC |
| 20661 | builtin and then its argument prototype would still apply. */ |
| 20662 | char sched_yield (); |
| 20663 | int |
| 20664 | main (void) |
| 20665 | { |
| 20666 | return sched_yield (); |
| 20667 | ; |
| 20668 | return 0; |
| 20669 | } |
| 20670 | _ACEOF |
| 20671 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20672 | then : |
| 20673 | ac_cv_lib_posix4_sched_yield=yes |
| 20674 | else $as_nop |
| 20675 | ac_cv_lib_posix4_sched_yield=no |
| 20676 | fi |
| 20677 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20678 | conftest$ac_exeext conftest.$ac_ext |
| 20679 | LIBS=$ac_check_lib_save_LIBS |
| 20680 | fi |
| 20681 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
| 20682 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } |
| 20683 | if testscip-shell system . . test. "x$ac_cv_lib_posix4_sched_yield" = xyes |
| 20684 | then : |
| 20685 | LIB_SCHED_YIELD=-lposix4 |
| 20686 | fi |
| 20687 | |
| 20688 | fi |
| 20689 | |
| 20690 | |
| 20691 | fi |
| 20692 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20693 | conftest$ac_exeext conftest.$ac_ext |
| 20694 | |
| 20695 | |
| 20696 | gl_pthreadlib_body_done=done |
| 20697 | fi |
| 20698 | |
| 20699 | LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD |
| 20700 | LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD |
| 20701 | if testscip-shell system . . test. $gl_pthread_api = yes; then |
| 20702 | if testscip-shell system . . test. "$gl_use_threads" = isoc+posix && testscip-shell system . . test. "$gl_have_isoc_threads" = yes; then |
| 20703 | gl_threads_api='isoc+posix' |
| 20704 | |
| 20705 | printfscip-shell system . . printf. "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h |
| 20706 | |
| 20707 | LIBTHREAD= LTLIBTHREAD= |
| 20708 | else |
| 20709 | gl_threads_api=posix |
| 20710 | |
| 20711 | printfscip-shell system . . printf. "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 20712 | |
| 20713 | if testscip-shell system . . test. -z "$LIBMULTITHREAD" && testscip-shell system . . test. -z "$LTLIBMULTITHREAD"; then |
| 20714 | |
| 20715 | printfscip-shell system . . printf. "%s\n" "#define USE_POSIX_THREADS_FROM_LIBC 1" >>confdefs.h |
| 20716 | |
| 20717 | else |
| 20718 | if case "$gl_cv_have_weak" in *yes) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 20719 | |
| 20720 | printfscip-shell system . . printf. "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 20721 | |
| 20722 | LIBTHREAD= LTLIBTHREAD= |
| 20723 | else |
| 20724 | case "$host_os" in |
| 20725 | freebsd* | dragonfly* | midnightbsd*) |
| 20726 | if testscip-shell system . . test. "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then |
| 20727 | |
| 20728 | printfscip-shell system . . printf. "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 20729 | |
| 20730 | fi |
| 20731 | ;; |
| 20732 | esac |
| 20733 | fi |
| 20734 | fi |
| 20735 | fi |
| 20736 | fi |
| 20737 | fi |
| 20738 | if testscip-shell system . . test. $gl_threads_api = none; then |
| 20739 | if testscip-shell system . . test. "$gl_use_threads" = isoc && testscip-shell system . . test. "$gl_have_isoc_threads" = yes; then |
| 20740 | |
| 20741 | |
| 20742 | |
| 20743 | if testscip-shell system . . test. -z "$gl_stdthreadlib_body_done"; then |
| 20744 | |
| 20745 | |
| 20746 | case "$host_os" in |
| 20747 | mingw*) |
| 20748 | LIBSTDTHREAD= |
| 20749 | ;; |
| 20750 | *) |
| 20751 | |
| 20752 | |
| 20753 | if testscip-shell system . . test. -z "$gl_pthreadlib_body_done"; then |
| 20754 | gl_pthread_api=no |
| 20755 | LIBPTHREAD= |
| 20756 | LIBPMULTITHREAD= |
| 20757 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 20758 | # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. |
| 20759 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 20760 | if testscip-shell system . . test. "x$ac_cv_header_pthread_h" = xyes |
| 20761 | then : |
| 20762 | gl_have_pthread_h=yes |
| 20763 | else $as_nop |
| 20764 | gl_have_pthread_h=no |
| 20765 | fi |
| 20766 | |
| 20767 | if testscip-shell system . . test. "$gl_have_pthread_h" = yes; then |
| 20768 | # Other possible tests: |
| 20769 | # -lpthreads (FSU threads, PCthreads) |
| 20770 | # -lgthreads |
| 20771 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 20772 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 20773 | # the second one only in libpthread, and lock.c needs it. |
| 20774 | # |
| 20775 | # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 |
| 20776 | # needs -pthread for some reason. See: |
| 20777 | # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html |
| 20778 | save_LIBS=$LIBS |
| 20779 | for gl_pthread in '' '-pthread'; do |
| 20780 | LIBS="$LIBS $gl_pthread" |
| 20781 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20782 | /* end confdefs.h. */ |
| 20783 | #include <pthread.h> |
| 20784 | pthread_mutex_t m; |
| 20785 | pthread_mutexattr_t ma; |
| 20786 | |
| 20787 | int |
| 20788 | main (void) |
| 20789 | { |
| 20790 | pthread_mutex_lock (&m); |
| 20791 | pthread_mutexattr_init (&ma); |
| 20792 | ; |
| 20793 | return 0; |
| 20794 | } |
| 20795 | _ACEOF |
| 20796 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20797 | then : |
| 20798 | gl_pthread_api=yes |
| 20799 | LIBPTHREAD=$gl_pthread |
| 20800 | LIBPMULTITHREAD=$gl_pthread |
| 20801 | fi |
| 20802 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20803 | conftest$ac_exeext conftest.$ac_ext |
| 20804 | LIBS=$save_LIBS |
| 20805 | testscip-shell system . . test. $gl_pthread_api = yes && break |
| 20806 | done |
| 20807 | echoscip-shell system . . echo. "$as_me:20807: gl_pthread_api=$gl_pthread_api" >&5 |
| 20808 | echoscip-shell system . . echo. "$as_me:20808: LIBPTHREAD=$LIBPTHREAD" >&5 |
| 20809 | |
| 20810 | gl_pthread_in_glibc=no |
| 20811 | # On Linux with glibc >= 2.34, libc contains the fully functional |
| 20812 | # pthread functions. |
| 20813 | case "$host_os" in |
| 20814 | linux*) |
| 20815 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20816 | /* end confdefs.h. */ |
| 20817 | #include <features.h> |
| 20818 | #ifdef __GNU_LIBRARY__ |
| 20819 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || (__GLIBC__ > 2) |
| 20820 | Lucky user |
| 20821 | #endif |
| 20822 | #endif |
| 20823 | |
| 20824 | _ACEOF |
| 20825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20826 | $EGREP "Lucky user" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 20827 | then : |
| 20828 | gl_pthread_in_glibc=yes |
| 20829 | fi |
| 20830 | rmscip-shell system . . rm. -rf conftest* |
| 20831 | |
| 20832 | ;; |
| 20833 | esac |
| 20834 | echoscip-shell system . . echo. "$as_me:20834: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 |
| 20835 | |
| 20836 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 20837 | # since it is defined as a macro on OSF/1.) |
| 20838 | if testscip-shell system . . test. $gl_pthread_api = yes && testscip-shell system . . test. -z "$LIBPTHREAD"; then |
| 20839 | # The program links fine without libpthread. But it may actually |
| 20840 | # need to link with libpthread in order to create multiple threads. |
| 20841 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 20842 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lpthread... " >&6; } |
| 20843 | if testscip-shell system . . test. ${ac_cv_lib_pthread_pthread_kill+y} |
| 20844 | then : |
| 20845 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20846 | else $as_nop |
| 20847 | ac_check_lib_save_LIBS=$LIBS |
| 20848 | LIBS="-lpthread $LIBS" |
| 20849 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20850 | /* end confdefs.h. */ |
| 20851 | |
| 20852 | /* Override any GCC internal prototype to avoid an error. |
| 20853 | Use char because int might match the return type of a GCC |
| 20854 | builtin and then its argument prototype would still apply. */ |
| 20855 | char pthread_kill (); |
| 20856 | int |
| 20857 | main (void) |
| 20858 | { |
| 20859 | return pthread_kill (); |
| 20860 | ; |
| 20861 | return 0; |
| 20862 | } |
| 20863 | _ACEOF |
| 20864 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20865 | then : |
| 20866 | ac_cv_lib_pthread_pthread_kill=yes |
| 20867 | else $as_nop |
| 20868 | ac_cv_lib_pthread_pthread_kill=no |
| 20869 | fi |
| 20870 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20871 | conftest$ac_exeext conftest.$ac_ext |
| 20872 | LIBS=$ac_check_lib_save_LIBS |
| 20873 | fi |
| 20874 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 20875 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 20876 | if testscip-shell system . . test. "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 20877 | then : |
| 20878 | if testscip-shell system . . test. $gl_pthread_in_glibc = yes; then |
| 20879 | LIBPMULTITHREAD= |
| 20880 | else |
| 20881 | LIBPMULTITHREAD=-lpthread |
| 20882 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 20883 | # Therefore pthread_in_use() needs to actually try to create a |
| 20884 | # thread: pthread_create from libc will fail, whereas |
| 20885 | # pthread_create will actually create a thread. |
| 20886 | # On Solaris 10 or newer, this test is no longer needed, because |
| 20887 | # libc contains the fully functional pthread functions. |
| 20888 | case "$host_os" in |
| 20889 | solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) |
| 20890 | |
| 20891 | printfscip-shell system . . printf. "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 20892 | |
| 20893 | esac |
| 20894 | fi |
| 20895 | |
| 20896 | fi |
| 20897 | |
| 20898 | elif testscip-shell system . . test. $gl_pthread_api != yes; then |
| 20899 | # Some library is needed. Try libpthread and libc_r. |
| 20900 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 20901 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lpthread... " >&6; } |
| 20902 | if testscip-shell system . . test. ${ac_cv_lib_pthread_pthread_kill+y} |
| 20903 | then : |
| 20904 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20905 | else $as_nop |
| 20906 | ac_check_lib_save_LIBS=$LIBS |
| 20907 | LIBS="-lpthread $LIBS" |
| 20908 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20909 | /* end confdefs.h. */ |
| 20910 | |
| 20911 | /* Override any GCC internal prototype to avoid an error. |
| 20912 | Use char because int might match the return type of a GCC |
| 20913 | builtin and then its argument prototype would still apply. */ |
| 20914 | char pthread_kill (); |
| 20915 | int |
| 20916 | main (void) |
| 20917 | { |
| 20918 | return pthread_kill (); |
| 20919 | ; |
| 20920 | return 0; |
| 20921 | } |
| 20922 | _ACEOF |
| 20923 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20924 | then : |
| 20925 | ac_cv_lib_pthread_pthread_kill=yes |
| 20926 | else $as_nop |
| 20927 | ac_cv_lib_pthread_pthread_kill=no |
| 20928 | fi |
| 20929 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20930 | conftest$ac_exeext conftest.$ac_ext |
| 20931 | LIBS=$ac_check_lib_save_LIBS |
| 20932 | fi |
| 20933 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 20934 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 20935 | if testscip-shell system . . test. "x$ac_cv_lib_pthread_pthread_kill" = xyes |
| 20936 | then : |
| 20937 | gl_pthread_api=yes |
| 20938 | LIBPTHREAD=-lpthread |
| 20939 | LIBPMULTITHREAD=-lpthread |
| 20940 | fi |
| 20941 | |
| 20942 | if testscip-shell system . . test. $gl_pthread_api != yes; then |
| 20943 | # For FreeBSD 4. |
| 20944 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 20945 | printfscip-shell system . . printf. %s "checking for pthread_kill in -lc_r... " >&6; } |
| 20946 | if testscip-shell system . . test. ${ac_cv_lib_c_r_pthread_kill+y} |
| 20947 | then : |
| 20948 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 20949 | else $as_nop |
| 20950 | ac_check_lib_save_LIBS=$LIBS |
| 20951 | LIBS="-lc_r $LIBS" |
| 20952 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20953 | /* end confdefs.h. */ |
| 20954 | |
| 20955 | /* Override any GCC internal prototype to avoid an error. |
| 20956 | Use char because int might match the return type of a GCC |
| 20957 | builtin and then its argument prototype would still apply. */ |
| 20958 | char pthread_kill (); |
| 20959 | int |
| 20960 | main (void) |
| 20961 | { |
| 20962 | return pthread_kill (); |
| 20963 | ; |
| 20964 | return 0; |
| 20965 | } |
| 20966 | _ACEOF |
| 20967 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 20968 | then : |
| 20969 | ac_cv_lib_c_r_pthread_kill=yes |
| 20970 | else $as_nop |
| 20971 | ac_cv_lib_c_r_pthread_kill=no |
| 20972 | fi |
| 20973 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20974 | conftest$ac_exeext conftest.$ac_ext |
| 20975 | LIBS=$ac_check_lib_save_LIBS |
| 20976 | fi |
| 20977 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 20978 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 20979 | if testscip-shell system . . test. "x$ac_cv_lib_c_r_pthread_kill" = xyes |
| 20980 | then : |
| 20981 | gl_pthread_api=yes |
| 20982 | LIBPTHREAD=-lc_r |
| 20983 | LIBPMULTITHREAD=-lc_r |
| 20984 | fi |
| 20985 | |
| 20986 | fi |
| 20987 | fi |
| 20988 | echoscip-shell system . . echo. "$as_me:20988: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 |
| 20989 | fi |
| 20990 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 |
| 20991 | printfscip-shell system . . printf. %s "checking whether POSIX threads API is available... " >&6; } |
| 20992 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 |
| 20993 | printfscip-shell system . . printf. "%s\n" "$gl_pthread_api" >&6; } |
| 20994 | |
| 20995 | |
| 20996 | if testscip-shell system . . test. $gl_pthread_api = yes; then |
| 20997 | |
| 20998 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h |
| 20999 | |
| 21000 | fi |
| 21001 | |
| 21002 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21003 | /* end confdefs.h. */ |
| 21004 | #include <sched.h> |
| 21005 | int |
| 21006 | main (void) |
| 21007 | { |
| 21008 | sched_yield (); |
| 21009 | ; |
| 21010 | return 0; |
| 21011 | } |
| 21012 | _ACEOF |
| 21013 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21014 | then : |
| 21015 | LIB_SCHED_YIELD= |
| 21016 | |
| 21017 | else $as_nop |
| 21018 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 |
| 21019 | printfscip-shell system . . printf. %s "checking for sched_yield in -lrt... " >&6; } |
| 21020 | if testscip-shell system . . test. ${ac_cv_lib_rt_sched_yield+y} |
| 21021 | then : |
| 21022 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21023 | else $as_nop |
| 21024 | ac_check_lib_save_LIBS=$LIBS |
| 21025 | LIBS="-lrt $LIBS" |
| 21026 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21027 | /* end confdefs.h. */ |
| 21028 | |
| 21029 | /* Override any GCC internal prototype to avoid an error. |
| 21030 | Use char because int might match the return type of a GCC |
| 21031 | builtin and then its argument prototype would still apply. */ |
| 21032 | char sched_yield (); |
| 21033 | int |
| 21034 | main (void) |
| 21035 | { |
| 21036 | return sched_yield (); |
| 21037 | ; |
| 21038 | return 0; |
| 21039 | } |
| 21040 | _ACEOF |
| 21041 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21042 | then : |
| 21043 | ac_cv_lib_rt_sched_yield=yes |
| 21044 | else $as_nop |
| 21045 | ac_cv_lib_rt_sched_yield=no |
| 21046 | fi |
| 21047 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21048 | conftest$ac_exeext conftest.$ac_ext |
| 21049 | LIBS=$ac_check_lib_save_LIBS |
| 21050 | fi |
| 21051 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 |
| 21052 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } |
| 21053 | if testscip-shell system . . test. "x$ac_cv_lib_rt_sched_yield" = xyes |
| 21054 | then : |
| 21055 | LIB_SCHED_YIELD=-lrt |
| 21056 | else $as_nop |
| 21057 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
| 21058 | printfscip-shell system . . printf. %s "checking for sched_yield in -lposix4... " >&6; } |
| 21059 | if testscip-shell system . . test. ${ac_cv_lib_posix4_sched_yield+y} |
| 21060 | then : |
| 21061 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21062 | else $as_nop |
| 21063 | ac_check_lib_save_LIBS=$LIBS |
| 21064 | LIBS="-lposix4 $LIBS" |
| 21065 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21066 | /* end confdefs.h. */ |
| 21067 | |
| 21068 | /* Override any GCC internal prototype to avoid an error. |
| 21069 | Use char because int might match the return type of a GCC |
| 21070 | builtin and then its argument prototype would still apply. */ |
| 21071 | char sched_yield (); |
| 21072 | int |
| 21073 | main (void) |
| 21074 | { |
| 21075 | return sched_yield (); |
| 21076 | ; |
| 21077 | return 0; |
| 21078 | } |
| 21079 | _ACEOF |
| 21080 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21081 | then : |
| 21082 | ac_cv_lib_posix4_sched_yield=yes |
| 21083 | else $as_nop |
| 21084 | ac_cv_lib_posix4_sched_yield=no |
| 21085 | fi |
| 21086 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21087 | conftest$ac_exeext conftest.$ac_ext |
| 21088 | LIBS=$ac_check_lib_save_LIBS |
| 21089 | fi |
| 21090 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
| 21091 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } |
| 21092 | if testscip-shell system . . test. "x$ac_cv_lib_posix4_sched_yield" = xyes |
| 21093 | then : |
| 21094 | LIB_SCHED_YIELD=-lposix4 |
| 21095 | fi |
| 21096 | |
| 21097 | fi |
| 21098 | |
| 21099 | |
| 21100 | fi |
| 21101 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21102 | conftest$ac_exeext conftest.$ac_ext |
| 21103 | |
| 21104 | |
| 21105 | gl_pthreadlib_body_done=done |
| 21106 | fi |
| 21107 | |
| 21108 | if testscip-shell system . . test. $ac_cv_header_threads_h = yes; then |
| 21109 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "thrd_create" "ac_cv_func_thrd_create" |
| 21110 | if testscip-shell system . . test. "x$ac_cv_func_thrd_create" = xyes |
| 21111 | then : |
| 21112 | printfscip-shell system . . printf. "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h |
| 21113 | |
| 21114 | fi |
| 21115 | |
| 21116 | if testscip-shell system . . test. $ac_cv_func_thrd_create = yes; then |
| 21117 | LIBSTDTHREAD= |
| 21118 | else |
| 21119 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 |
| 21120 | printfscip-shell system . . printf. %s "checking for thrd_create in -lstdthreads... " >&6; } |
| 21121 | if testscip-shell system . . test. ${ac_cv_lib_stdthreads_thrd_create+y} |
| 21122 | then : |
| 21123 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21124 | else $as_nop |
| 21125 | ac_check_lib_save_LIBS=$LIBS |
| 21126 | LIBS="-lstdthreads $LIBS" |
| 21127 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21128 | /* end confdefs.h. */ |
| 21129 | |
| 21130 | /* Override any GCC internal prototype to avoid an error. |
| 21131 | Use char because int might match the return type of a GCC |
| 21132 | builtin and then its argument prototype would still apply. */ |
| 21133 | char thrd_create (); |
| 21134 | int |
| 21135 | main (void) |
| 21136 | { |
| 21137 | return thrd_create (); |
| 21138 | ; |
| 21139 | return 0; |
| 21140 | } |
| 21141 | _ACEOF |
| 21142 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21143 | then : |
| 21144 | ac_cv_lib_stdthreads_thrd_create=yes |
| 21145 | else $as_nop |
| 21146 | ac_cv_lib_stdthreads_thrd_create=no |
| 21147 | fi |
| 21148 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21149 | conftest$ac_exeext conftest.$ac_ext |
| 21150 | LIBS=$ac_check_lib_save_LIBS |
| 21151 | fi |
| 21152 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 |
| 21153 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } |
| 21154 | if testscip-shell system . . test. "x$ac_cv_lib_stdthreads_thrd_create" = xyes |
| 21155 | then : |
| 21156 | |
| 21157 | LIBSTDTHREAD='-lstdthreads -lpthread' |
| 21158 | |
| 21159 | else $as_nop |
| 21160 | |
| 21161 | LIBSTDTHREAD="$LIBPMULTITHREAD" |
| 21162 | |
| 21163 | fi |
| 21164 | |
| 21165 | fi |
| 21166 | else |
| 21167 | LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" |
| 21168 | fi |
| 21169 | ;; |
| 21170 | esac |
| 21171 | |
| 21172 | |
| 21173 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 |
| 21174 | printfscip-shell system . . printf. %s "checking whether ISO C threads API is available... " >&6; } |
| 21175 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 |
| 21176 | printfscip-shell system . . printf. "%s\n" "$ac_cv_header_threads_h" >&6; } |
| 21177 | gl_stdthreadlib_body_done=done |
| 21178 | fi |
| 21179 | |
| 21180 | LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD |
| 21181 | LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD |
| 21182 | gl_threads_api=isoc |
| 21183 | |
| 21184 | printfscip-shell system . . printf. "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h |
| 21185 | |
| 21186 | fi |
| 21187 | fi |
| 21188 | if testscip-shell system . . test. $gl_threads_api = none; then |
| 21189 | case "$gl_use_threads" in |
| 21190 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 21191 | if { case "$host_os" in |
| 21192 | mingw*) truescip-shell system . . true.;; |
| 21193 | *) falsescip-shell system . . false.;; |
| 21194 | esac |
| 21195 | }; then |
| 21196 | gl_threads_api=windows |
| 21197 | |
| 21198 | printfscip-shell system . . printf. "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 21199 | |
| 21200 | fi |
| 21201 | ;; |
| 21202 | esac |
| 21203 | fi |
| 21204 | fi |
| 21205 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 21206 | printfscip-shell system . . printf. %s "checking for multithread API to use... " >&6; } |
| 21207 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 21208 | printfscip-shell system . . printf. "%s\n" "$gl_threads_api" >&6; } |
| 21209 | |
| 21210 | |
| 21211 | |
| 21212 | |
| 21213 | |
| 21214 | |
| 21215 | |
| 21216 | |
| 21217 | |
| 21218 | |
| 21219 | |
| 21220 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 |
| 21221 | printfscip-shell system . . printf. %s "checking whether malloc (0) returns nonnull... " >&6; } |
| 21222 | if testscip-shell system . . test. ${ac_cv_func_malloc_0_nonnull+y} |
| 21223 | then : |
| 21224 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21225 | else $as_nop |
| 21226 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 21227 | then : |
| 21228 | case "$host_os" in |
| 21229 | # Guess yes on platforms where we know the result. |
| 21230 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ |
| 21231 | | gnu* | *-musl* | midnightbsd* \ |
| 21232 | | hpux* | solaris* | cygwin* | mingw* | msys* ) |
| 21233 | ac_cv_func_malloc_0_nonnull="guessing yes" ;; |
| 21234 | # If we don't know, obey --enable-cross-guesses. |
| 21235 | *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; |
| 21236 | esac |
| 21237 | |
| 21238 | else $as_nop |
| 21239 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21240 | /* end confdefs.h. */ |
| 21241 | #include <stdlib.h> |
| 21242 | |
| 21243 | int |
| 21244 | main (void) |
| 21245 | { |
| 21246 | void *p = malloc (0); |
| 21247 | int result = !p; |
| 21248 | free (p); |
| 21249 | return result; |
| 21250 | ; |
| 21251 | return 0; |
| 21252 | } |
| 21253 | |
| 21254 | _ACEOF |
| 21255 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 21256 | then : |
| 21257 | ac_cv_func_malloc_0_nonnull=yes |
| 21258 | else $as_nop |
| 21259 | ac_cv_func_malloc_0_nonnull=no |
| 21260 | fi |
| 21261 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21262 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21263 | fi |
| 21264 | |
| 21265 | |
| 21266 | fi |
| 21267 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 21268 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } |
| 21269 | case $ac_cv_func_malloc_0_nonnull in #( |
| 21270 | *yes) : |
| 21271 | gl_cv_func_malloc_0_nonnull=1 ;; #( |
| 21272 | *) : |
| 21273 | gl_cv_func_malloc_0_nonnull=0 ;; |
| 21274 | esac |
| 21275 | |
| 21276 | |
| 21277 | printfscip-shell system . . printf. "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h |
| 21278 | |
| 21279 | |
| 21280 | |
| 21281 | |
| 21282 | |
| 21283 | |
| 21284 | |
| 21285 | |
| 21286 | |
| 21287 | |
| 21288 | |
| 21289 | |
| 21290 | |
| 21291 | |
| 21292 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 21293 | gl_cv_next_math_h='<'math.h'>' |
| 21294 | else |
| 21295 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5 |
| 21296 | printfscip-shell system . . printf. %s "checking absolute name of <math.h>... " >&6; } |
| 21297 | if testscip-shell system . . test. ${gl_cv_next_math_h+y} |
| 21298 | then : |
| 21299 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21300 | else $as_nop |
| 21301 | |
| 21302 | if testscip-shell system . . test. $ac_cv_header_math_h = yes; then |
| 21303 | |
| 21304 | |
| 21305 | |
| 21306 | |
| 21307 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21308 | /* end confdefs.h. */ |
| 21309 | #include <math.h> |
| 21310 | _ACEOF |
| 21311 | case "$host_os" in |
| 21312 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 21313 | *) gl_absname_cpp="$ac_cpp" ;; |
| 21314 | esac |
| 21315 | |
| 21316 | case "$host_os" in |
| 21317 | mingw*) |
| 21318 | gl_dirsep_regex='[/\\]' |
| 21319 | ;; |
| 21320 | *) |
| 21321 | gl_dirsep_regex='\/' |
| 21322 | ;; |
| 21323 | esac |
| 21324 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 21325 | gl_header_literal_regex=`echoscip-shell system . . echo. 'math.h' \ |
| 21326 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 21327 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 21328 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 21329 | s|^/[^/]|//&| |
| 21330 | p |
| 21331 | q |
| 21332 | }' |
| 21333 | |
| 21334 | gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 21335 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 21336 | |
| 21337 | gl_header=$gl_cv_absolute_math_h |
| 21338 | gl_cv_next_math_h='"'$gl_header'"' |
| 21339 | else |
| 21340 | gl_cv_next_math_h='<'math.h'>' |
| 21341 | fi |
| 21342 | |
| 21343 | |
| 21344 | fi |
| 21345 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5 |
| 21346 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_math_h" >&6; } |
| 21347 | fi |
| 21348 | NEXT_MATH_H=$gl_cv_next_math_h |
| 21349 | |
| 21350 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 21351 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 21352 | gl_next_as_first_directive='<'math.h'>' |
| 21353 | else |
| 21354 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 21355 | gl_next_as_first_directive=$gl_cv_next_math_h |
| 21356 | fi |
| 21357 | NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive |
| 21358 | |
| 21359 | |
| 21360 | |
| 21361 | |
| 21362 | |
| 21363 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5 |
| 21364 | printfscip-shell system . . printf. %s "checking whether NAN macro works... " >&6; } |
| 21365 | if testscip-shell system . . test. ${gl_cv_header_math_nan_works+y} |
| 21366 | then : |
| 21367 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21368 | else $as_nop |
| 21369 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21370 | /* end confdefs.h. */ |
| 21371 | #include <math.h> |
| 21372 | int |
| 21373 | main (void) |
| 21374 | { |
| 21375 | /* Solaris 10 has a broken definition of NAN. Other platforms |
| 21376 | fail to provide NAN, or provide it only in C99 mode; this |
| 21377 | test only needs to fail when NAN is provided but wrong. */ |
| 21378 | float f = 1.0f; |
| 21379 | #ifdef NAN |
| 21380 | f = NAN; |
| 21381 | #endif |
| 21382 | return f == 0; |
| 21383 | ; |
| 21384 | return 0; |
| 21385 | } |
| 21386 | _ACEOF |
| 21387 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 21388 | then : |
| 21389 | gl_cv_header_math_nan_works=yes |
| 21390 | else $as_nop |
| 21391 | gl_cv_header_math_nan_works=no |
| 21392 | fi |
| 21393 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21394 | fi |
| 21395 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5 |
| 21396 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_math_nan_works" >&6; } |
| 21397 | if testscip-shell system . . test. $gl_cv_header_math_nan_works = no; then |
| 21398 | REPLACE_NAN=1 |
| 21399 | fi |
| 21400 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5 |
| 21401 | printfscip-shell system . . printf. %s "checking whether HUGE_VAL works... " >&6; } |
| 21402 | if testscip-shell system . . test. ${gl_cv_header_math_huge_val_works+y} |
| 21403 | then : |
| 21404 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21405 | else $as_nop |
| 21406 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21407 | /* end confdefs.h. */ |
| 21408 | #include <math.h> |
| 21409 | int |
| 21410 | main (void) |
| 21411 | { |
| 21412 | /* Solaris 10 has a broken definition of HUGE_VAL. */ |
| 21413 | double d = HUGE_VAL; |
| 21414 | return d == 0; |
| 21415 | ; |
| 21416 | return 0; |
| 21417 | } |
| 21418 | _ACEOF |
| 21419 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 21420 | then : |
| 21421 | gl_cv_header_math_huge_val_works=yes |
| 21422 | else $as_nop |
| 21423 | gl_cv_header_math_huge_val_works=no |
| 21424 | fi |
| 21425 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21426 | fi |
| 21427 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5 |
| 21428 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_math_huge_val_works" >&6; } |
| 21429 | if testscip-shell system . . test. $gl_cv_header_math_huge_val_works = no; then |
| 21430 | REPLACE_HUGE_VAL=1 |
| 21431 | fi |
| 21432 | |
| 21433 | |
| 21434 | |
| 21435 | |
| 21436 | |
| 21437 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 21438 | if testscip-shell system . . test. "x$ac_cv_have_decl_memrchr" = xyes |
| 21439 | then : |
| 21440 | ac_have_decl=1 |
| 21441 | else $as_nop |
| 21442 | ac_have_decl=0 |
| 21443 | fi |
| 21444 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h |
| 21445 | |
| 21446 | |
| 21447 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 21448 | if testscip-shell system . . test. "x$ac_cv_have_decl_strdup" = xyes |
| 21449 | then : |
| 21450 | ac_have_decl=1 |
| 21451 | else $as_nop |
| 21452 | ac_have_decl=0 |
| 21453 | fi |
| 21454 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h |
| 21455 | |
| 21456 | |
| 21457 | REPLACE_STRERROR_0=0 |
| 21458 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 |
| 21459 | printfscip-shell system . . printf. %s "checking whether strerror(0) succeeds... " >&6; } |
| 21460 | if testscip-shell system . . test. ${gl_cv_func_strerror_0_works+y} |
| 21461 | then : |
| 21462 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21463 | else $as_nop |
| 21464 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 21465 | then : |
| 21466 | case "$host_os" in |
| 21467 | # Guess yes on glibc systems. |
| 21468 | *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; |
| 21469 | # Guess yes on musl systems. |
| 21470 | *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; |
| 21471 | # Guess yes on native Windows. |
| 21472 | mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; |
| 21473 | # If we don't know, obey --enable-cross-guesses. |
| 21474 | *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; |
| 21475 | esac |
| 21476 | |
| 21477 | else $as_nop |
| 21478 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21479 | /* end confdefs.h. */ |
| 21480 | #include <string.h> |
| 21481 | #include <errno.h> |
| 21482 | |
| 21483 | int |
| 21484 | main (void) |
| 21485 | { |
| 21486 | int result = 0; |
| 21487 | char *str; |
| 21488 | errno = 0; |
| 21489 | str = strerror (0); |
| 21490 | if (!*str) result |= 1; |
| 21491 | if (errno) result |= 2; |
| 21492 | if (strstr (str, "nknown") || strstr (str, "ndefined")) |
| 21493 | result |= 4; |
| 21494 | return result; |
| 21495 | ; |
| 21496 | return 0; |
| 21497 | } |
| 21498 | _ACEOF |
| 21499 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 21500 | then : |
| 21501 | gl_cv_func_strerror_0_works=yes |
| 21502 | else $as_nop |
| 21503 | gl_cv_func_strerror_0_works=no |
| 21504 | fi |
| 21505 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21506 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21507 | fi |
| 21508 | |
| 21509 | |
| 21510 | fi |
| 21511 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 |
| 21512 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_strerror_0_works" >&6; } |
| 21513 | case "$gl_cv_func_strerror_0_works" in |
| 21514 | *yes) ;; |
| 21515 | *) |
| 21516 | REPLACE_STRERROR_0=1 |
| 21517 | |
| 21518 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h |
| 21519 | |
| 21520 | ;; |
| 21521 | esac |
| 21522 | |
| 21523 | |
| 21524 | |
| 21525 | |
| 21526 | |
| 21527 | |
| 21528 | |
| 21529 | |
| 21530 | |
| 21531 | |
| 21532 | |
| 21533 | |
| 21534 | |
| 21535 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 21536 | gl_cv_next_sys_random_h='<'sys/random.h'>' |
| 21537 | else |
| 21538 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5 |
| 21539 | printfscip-shell system . . printf. %s "checking absolute name of <sys/random.h>... " >&6; } |
| 21540 | if testscip-shell system . . test. ${gl_cv_next_sys_random_h+y} |
| 21541 | then : |
| 21542 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21543 | else $as_nop |
| 21544 | |
| 21545 | if testscip-shell system . . test. $ac_cv_header_sys_random_h = yes; then |
| 21546 | |
| 21547 | |
| 21548 | |
| 21549 | |
| 21550 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21551 | /* end confdefs.h. */ |
| 21552 | #include <sys/random.h> |
| 21553 | _ACEOF |
| 21554 | case "$host_os" in |
| 21555 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 21556 | *) gl_absname_cpp="$ac_cpp" ;; |
| 21557 | esac |
| 21558 | |
| 21559 | case "$host_os" in |
| 21560 | mingw*) |
| 21561 | gl_dirsep_regex='[/\\]' |
| 21562 | ;; |
| 21563 | *) |
| 21564 | gl_dirsep_regex='\/' |
| 21565 | ;; |
| 21566 | esac |
| 21567 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 21568 | gl_header_literal_regex=`echoscip-shell system . . echo. 'sys/random.h' \ |
| 21569 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 21570 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 21571 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 21572 | s|^/[^/]|//&| |
| 21573 | p |
| 21574 | q |
| 21575 | }' |
| 21576 | |
| 21577 | gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 21578 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 21579 | |
| 21580 | gl_header=$gl_cv_absolute_sys_random_h |
| 21581 | gl_cv_next_sys_random_h='"'$gl_header'"' |
| 21582 | else |
| 21583 | gl_cv_next_sys_random_h='<'sys/random.h'>' |
| 21584 | fi |
| 21585 | |
| 21586 | |
| 21587 | fi |
| 21588 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5 |
| 21589 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_sys_random_h" >&6; } |
| 21590 | fi |
| 21591 | NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h |
| 21592 | |
| 21593 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 21594 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 21595 | gl_next_as_first_directive='<'sys/random.h'>' |
| 21596 | else |
| 21597 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 21598 | gl_next_as_first_directive=$gl_cv_next_sys_random_h |
| 21599 | fi |
| 21600 | NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive |
| 21601 | |
| 21602 | |
| 21603 | |
| 21604 | |
| 21605 | if testscip-shell system . . test. $ac_cv_header_sys_random_h = yes; then |
| 21606 | HAVE_SYS_RANDOM_H=1 |
| 21607 | else |
| 21608 | HAVE_SYS_RANDOM_H=0 |
| 21609 | fi |
| 21610 | |
| 21611 | |
| 21612 | |
| 21613 | if testscip-shell system . . test. $ac_cv_header_sys_random_h = yes; then |
| 21614 | UNISTD_H_HAVE_SYS_RANDOM_H=1 |
| 21615 | fi |
| 21616 | |
| 21617 | |
| 21618 | |
| 21619 | |
| 21620 | |
| 21621 | |
| 21622 | |
| 21623 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5 |
| 21624 | printfscip-shell system . . printf. %s "checking for C compiler option to allow warnings... " >&6; } |
| 21625 | if testscip-shell system . . test. ${gl_cv_cc_wallow+y} |
| 21626 | then : |
| 21627 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21628 | else $as_nop |
| 21629 | rmscip-shell system . . rm. -f conftest* |
| 21630 | echoscip-shell system . . echo. 'int dummy;' > conftest.c |
| 21631 | { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err' |
| 21632 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
| 21633 | (eval $ac_try) 2>&5 |
| 21634 | ac_status=$? |
| 21635 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21636 | testscip-shell system . . test. $ac_status = 0; }; } >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 21637 | { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err' |
| 21638 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
| 21639 | (eval $ac_try) 2>&5 |
| 21640 | ac_status=$? |
| 21641 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21642 | testscip-shell system . . test. $ac_status = 0; }; } >/dev/nullscip-shell filesystem . . `/dev/null`. |
| 21643 | if testscip-shell system . . test. $? = 0 && testscip-shell system . . test. `wcscip-shell system . . wc. -l < conftest1.err` = `wcscip-shell system . . wc. -l < conftest2.err`; then |
| 21644 | gl_cv_cc_wallow='-Wno-error' |
| 21645 | else |
| 21646 | gl_cv_cc_wallow=none |
| 21647 | fi |
| 21648 | rmscip-shell system . . rm. -f conftest* |
| 21649 | |
| 21650 | fi |
| 21651 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5 |
| 21652 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_wallow" >&6; } |
| 21653 | case "$gl_cv_cc_wallow" in |
| 21654 | none) GL_CFLAG_ALLOW_WARNINGS='' ;; |
| 21655 | *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;; |
| 21656 | esac |
| 21657 | |
| 21658 | |
| 21659 | |
| 21660 | |
| 21661 | GL_CFLAG_GNULIB_WARNINGS='' |
| 21662 | if testscip-shell system . . test. -n "$GL_CFLAG_ALLOW_WARNINGS"; then |
| 21663 | catscip-shell system . . cat. > conftest.c <<\EOF |
| 21664 | #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3) |
| 21665 | -Wno-cast-qual |
| 21666 | -Wno-conversion |
| 21667 | -Wno-float-equal |
| 21668 | -Wno-sign-compare |
| 21669 | -Wno-undef |
| 21670 | -Wno-unused-function |
| 21671 | -Wno-unused-parameter |
| 21672 | #endif |
| 21673 | #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) |
| 21674 | -Wno-float-conversion |
| 21675 | #endif |
| 21676 | #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3) |
| 21677 | -Wimplicit-fallthrough |
| 21678 | #endif |
| 21679 | #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) |
| 21680 | -Wno-pedantic |
| 21681 | #endif |
| 21682 | #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) |
| 21683 | -Wno-sign-conversion |
| 21684 | -Wno-type-limits |
| 21685 | #endif |
| 21686 | #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 |
| 21687 | -Wno-unsuffixed-float-constants |
| 21688 | #endif |
| 21689 | EOF |
| 21690 | gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out" |
| 21691 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5 |
| 21692 | (eval $gl_command) 2>&5 |
| 21693 | ac_status=$? |
| 21694 | printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 21695 | testscip-shell system . . test. $ac_status = 0; }; then |
| 21696 | gl_options=`grepscip-shell system . . grep. -v '#' conftest.out` |
| 21697 | for word in $gl_options; do |
| 21698 | GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word" |
| 21699 | done |
| 21700 | fi |
| 21701 | rmscip-shell system . . rm. -f conftest.c conftest.out |
| 21702 | fi |
| 21703 | |
| 21704 | |
| 21705 | |
| 21706 | if falsescip-shell system . . false.; then |
| 21707 | GL_COND_LIBTOOL_TRUE= |
| 21708 | GL_COND_LIBTOOL_FALSE='#' |
| 21709 | else |
| 21710 | GL_COND_LIBTOOL_TRUE='#' |
| 21711 | GL_COND_LIBTOOL_FALSE= |
| 21712 | fi |
| 21713 | |
| 21714 | gl_cond_libtool=false |
| 21715 | gl_libdeps= |
| 21716 | gl_ltlibdeps= |
| 21717 | gl_m4_base='m4' |
| 21718 | |
| 21719 | |
| 21720 | |
| 21721 | |
| 21722 | |
| 21723 | |
| 21724 | |
| 21725 | |
| 21726 | |
| 21727 | |
| 21728 | |
| 21729 | |
| 21730 | gl_source_base='lib' |
| 21731 | gl_source_base_prefix= |
| 21732 | |
| 21733 | |
| 21734 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "_Exit" "ac_cv_func__Exit" |
| 21735 | if testscip-shell system . . test. "x$ac_cv_func__Exit" = xyes |
| 21736 | then : |
| 21737 | printfscip-shell system . . printf. "%s\n" "#define HAVE__EXIT 1" >>confdefs.h |
| 21738 | |
| 21739 | fi |
| 21740 | |
| 21741 | if testscip-shell system . . test. $ac_cv_func__Exit = no; then |
| 21742 | HAVE__EXIT=0 |
| 21743 | fi |
| 21744 | |
| 21745 | |
| 21746 | if testscip-shell system . . test. $HAVE__EXIT = 0; then |
| 21747 | GL_COND_OBJ__EXIT_TRUE= |
| 21748 | GL_COND_OBJ__EXIT_FALSE='#' |
| 21749 | else |
| 21750 | GL_COND_OBJ__EXIT_TRUE='#' |
| 21751 | GL_COND_OBJ__EXIT_FALSE= |
| 21752 | fi |
| 21753 | : |
| 21754 | if testscip-shell system . . test. -z "${GL_COND_OBJ__EXIT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ__EXIT_FALSE}"; then |
| 21755 | GL_COND_OBJ__EXIT_TRUE='#' |
| 21756 | GL_COND_OBJ__EXIT_FALSE='#' |
| 21757 | fi |
| 21758 | |
| 21759 | if testscip-shell system . . test. -z "$GL_COND_OBJ__EXIT_TRUE"; then : |
| 21760 | |
| 21761 | |
| 21762 | : |
| 21763 | |
| 21764 | |
| 21765 | fi |
| 21766 | |
| 21767 | |
| 21768 | |
| 21769 | |
| 21770 | |
| 21771 | |
| 21772 | |
| 21773 | |
| 21774 | |
| 21775 | GL_GNULIB__EXIT=1 |
| 21776 | |
| 21777 | |
| 21778 | |
| 21779 | |
| 21780 | |
| 21781 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST__EXIT 1" >>confdefs.h |
| 21782 | |
| 21783 | |
| 21784 | |
| 21785 | |
| 21786 | |
| 21787 | |
| 21788 | case "$host_os" in |
| 21789 | mingw*) REPLACE_ACCESS=1 ;; |
| 21790 | esac |
| 21791 | |
| 21792 | |
| 21793 | if testscip-shell system . . test. $REPLACE_ACCESS = 1; then |
| 21794 | GL_COND_OBJ_ACCESS_TRUE= |
| 21795 | GL_COND_OBJ_ACCESS_FALSE='#' |
| 21796 | else |
| 21797 | GL_COND_OBJ_ACCESS_TRUE='#' |
| 21798 | GL_COND_OBJ_ACCESS_FALSE= |
| 21799 | fi |
| 21800 | : |
| 21801 | if testscip-shell system . . test. -z "${GL_COND_OBJ_ACCESS_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_ACCESS_FALSE}"; then |
| 21802 | GL_COND_OBJ_ACCESS_TRUE='#' |
| 21803 | GL_COND_OBJ_ACCESS_FALSE='#' |
| 21804 | fi |
| 21805 | |
| 21806 | |
| 21807 | |
| 21808 | |
| 21809 | |
| 21810 | |
| 21811 | |
| 21812 | |
| 21813 | |
| 21814 | |
| 21815 | GL_GNULIB_ACCESS=1 |
| 21816 | |
| 21817 | |
| 21818 | |
| 21819 | |
| 21820 | |
| 21821 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_ACCESS 1" >>confdefs.h |
| 21822 | |
| 21823 | |
| 21824 | |
| 21825 | |
| 21826 | |
| 21827 | if testscip-shell system . . test. $ac_cv_func_alloca_works = no; then |
| 21828 | : |
| 21829 | fi |
| 21830 | |
| 21831 | # Define an additional variable used in the Makefile substitution. |
| 21832 | if testscip-shell system . . test. $ac_cv_working_alloca_h = yes; then |
| 21833 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 |
| 21834 | printfscip-shell system . . printf. %s "checking for alloca as a compiler built-in... " >&6; } |
| 21835 | if testscip-shell system . . test. ${gl_cv_rpl_alloca+y} |
| 21836 | then : |
| 21837 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21838 | else $as_nop |
| 21839 | |
| 21840 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21841 | /* end confdefs.h. */ |
| 21842 | |
| 21843 | #if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 21844 | Need own alloca |
| 21845 | #endif |
| 21846 | |
| 21847 | _ACEOF |
| 21848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21849 | $EGREP "Need own alloca" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 21850 | then : |
| 21851 | gl_cv_rpl_alloca=yes |
| 21852 | else $as_nop |
| 21853 | gl_cv_rpl_alloca=no |
| 21854 | fi |
| 21855 | rmscip-shell system . . rm. -rf conftest* |
| 21856 | |
| 21857 | |
| 21858 | fi |
| 21859 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 21860 | printfscip-shell system . . printf. "%s\n" "$gl_cv_rpl_alloca" >&6; } |
| 21861 | if testscip-shell system . . test. $gl_cv_rpl_alloca = yes; then |
| 21862 | |
| 21863 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
| 21864 | |
| 21865 | GL_GENERATE_ALLOCA_H=true |
| 21866 | else |
| 21867 | GL_GENERATE_ALLOCA_H=false |
| 21868 | fi |
| 21869 | else |
| 21870 | GL_GENERATE_ALLOCA_H=true |
| 21871 | fi |
| 21872 | |
| 21873 | if testscip-shell system . . test. $ac_cv_working_alloca_h = yes; then |
| 21874 | HAVE_ALLOCA_H=1 |
| 21875 | else |
| 21876 | HAVE_ALLOCA_H=0 |
| 21877 | fi |
| 21878 | |
| 21879 | |
| 21880 | |
| 21881 | |
| 21882 | |
| 21883 | |
| 21884 | case "$GL_GENERATE_ALLOCA_H" in |
| 21885 | false) ALLOCA_H='' ;; |
| 21886 | true) |
| 21887 | if testscip-shell system . . test. -z "$ALLOCA_H"; then |
| 21888 | ALLOCA_H="${gl_source_base_prefix}alloca.h" |
| 21889 | fi |
| 21890 | ;; |
| 21891 | *) echoscip-shell system . . echo. "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;; |
| 21892 | esac |
| 21893 | |
| 21894 | |
| 21895 | if $GL_GENERATE_ALLOCA_H; then |
| 21896 | GL_GENERATE_ALLOCA_H_TRUE= |
| 21897 | GL_GENERATE_ALLOCA_H_FALSE='#' |
| 21898 | else |
| 21899 | GL_GENERATE_ALLOCA_H_TRUE='#' |
| 21900 | GL_GENERATE_ALLOCA_H_FALSE= |
| 21901 | fi |
| 21902 | : |
| 21903 | if testscip-shell system . . test. -z "${GL_GENERATE_ALLOCA_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then |
| 21904 | GL_GENERATE_ALLOCA_H_TRUE='#' |
| 21905 | GL_GENERATE_ALLOCA_H_FALSE='#' |
| 21906 | fi |
| 21907 | |
| 21908 | |
| 21909 | |
| 21910 | |
| 21911 | |
| 21912 | |
| 21913 | |
| 21914 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 |
| 21915 | printfscip-shell system . . printf. %s "checking for __builtin_expect... " >&6; } |
| 21916 | if testscip-shell system . . test. ${gl_cv___builtin_expect+y} |
| 21917 | then : |
| 21918 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21919 | else $as_nop |
| 21920 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21921 | /* end confdefs.h. */ |
| 21922 | |
| 21923 | int |
| 21924 | main (int argc, char **argv) |
| 21925 | { |
| 21926 | argc = __builtin_expect (argc, 100); |
| 21927 | return argv[argc != 100][0]; |
| 21928 | } |
| 21929 | _ACEOF |
| 21930 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21931 | then : |
| 21932 | gl_cv___builtin_expect=yes |
| 21933 | else $as_nop |
| 21934 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21935 | /* end confdefs.h. */ |
| 21936 | |
| 21937 | #include <builtins.h> |
| 21938 | int |
| 21939 | main (int argc, char **argv) |
| 21940 | { |
| 21941 | argc = __builtin_expect (argc, 100); |
| 21942 | return argv[argc != 100][0]; |
| 21943 | } |
| 21944 | _ACEOF |
| 21945 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 21946 | then : |
| 21947 | gl_cv___builtin_expect="in <builtins.h>" |
| 21948 | else $as_nop |
| 21949 | gl_cv___builtin_expect=no |
| 21950 | fi |
| 21951 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21952 | conftest$ac_exeext conftest.$ac_ext |
| 21953 | fi |
| 21954 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21955 | conftest$ac_exeext conftest.$ac_ext |
| 21956 | fi |
| 21957 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5 |
| 21958 | printfscip-shell system . . printf. "%s\n" "$gl_cv___builtin_expect" >&6; } |
| 21959 | if testscip-shell system . . test. "$gl_cv___builtin_expect" = yes; then |
| 21960 | printfscip-shell system . . printf. "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h |
| 21961 | |
| 21962 | elif testscip-shell system . . test. "$gl_cv___builtin_expect" = "in <builtins.h>"; then |
| 21963 | printfscip-shell system . . printf. "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h |
| 21964 | |
| 21965 | fi |
| 21966 | |
| 21967 | |
| 21968 | |
| 21969 | |
| 21970 | |
| 21971 | REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX" |
| 21972 | if testscip-shell system . . test. $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then |
| 21973 | |
| 21974 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5 |
| 21975 | printfscip-shell system . . printf. %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; } |
| 21976 | if testscip-shell system . . test. ${ac_cv_func_calloc_0_nonnull+y} |
| 21977 | then : |
| 21978 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 21979 | else $as_nop |
| 21980 | if testscip-shell system . . test. $cross_compiling != yes; then |
| 21981 | ac_cv_func_calloc_0_nonnull=yes |
| 21982 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 21983 | then : |
| 21984 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21985 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21986 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run test program while cross compiling |
| 21987 | See \`config.log' for more details" "$LINENO" 5; } |
| 21988 | else $as_nop |
| 21989 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21990 | /* end confdefs.h. */ |
| 21991 | $ac_includes_default |
| 21992 | int |
| 21993 | main (void) |
| 21994 | { |
| 21995 | int result = 0; |
| 21996 | char * volatile p = calloc (0, 0); |
| 21997 | if (!p) |
| 21998 | result |= 1; |
| 21999 | free (p); |
| 22000 | return result; |
| 22001 | |
| 22002 | ; |
| 22003 | return 0; |
| 22004 | } |
| 22005 | _ACEOF |
| 22006 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 22007 | then : |
| 22008 | |
| 22009 | else $as_nop |
| 22010 | ac_cv_func_calloc_0_nonnull=no |
| 22011 | fi |
| 22012 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22013 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22014 | fi |
| 22015 | |
| 22016 | else |
| 22017 | case "$host_os" in |
| 22018 | # Guess yes on glibc systems. |
| 22019 | *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; |
| 22020 | # Guess yes on musl systems. |
| 22021 | *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; |
| 22022 | # Guess yes on native Windows. |
| 22023 | mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; |
| 22024 | # If we don't know, obey --enable-cross-guesses. |
| 22025 | *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;; |
| 22026 | esac |
| 22027 | fi |
| 22028 | |
| 22029 | fi |
| 22030 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 |
| 22031 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; } |
| 22032 | case $ac_cv_func_calloc_0_nonnull in #( |
| 22033 | *yes) : |
| 22034 | ;; #( |
| 22035 | *) : |
| 22036 | REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;; |
| 22037 | esac |
| 22038 | |
| 22039 | fi |
| 22040 | |
| 22041 | if testscip-shell system . . test. $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then |
| 22042 | |
| 22043 | |
| 22044 | |
| 22045 | |
| 22046 | |
| 22047 | |
| 22048 | |
| 22049 | |
| 22050 | gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" |
| 22051 | |
| 22052 | fi |
| 22053 | |
| 22054 | |
| 22055 | |
| 22056 | |
| 22057 | |
| 22058 | |
| 22059 | |
| 22060 | |
| 22061 | |
| 22062 | GL_GNULIB_CALLOC_GNU=1 |
| 22063 | |
| 22064 | |
| 22065 | |
| 22066 | |
| 22067 | |
| 22068 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h |
| 22069 | |
| 22070 | |
| 22071 | |
| 22072 | |
| 22073 | |
| 22074 | |
| 22075 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 22076 | REPLACE_CALLOC_FOR_CALLOC_POSIX=1 |
| 22077 | fi |
| 22078 | |
| 22079 | if testscip-shell system . . test. $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then |
| 22080 | |
| 22081 | |
| 22082 | |
| 22083 | |
| 22084 | |
| 22085 | |
| 22086 | |
| 22087 | |
| 22088 | gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext" |
| 22089 | |
| 22090 | fi |
| 22091 | |
| 22092 | |
| 22093 | |
| 22094 | |
| 22095 | |
| 22096 | |
| 22097 | |
| 22098 | |
| 22099 | |
| 22100 | GL_GNULIB_CALLOC_POSIX=1 |
| 22101 | |
| 22102 | |
| 22103 | |
| 22104 | |
| 22105 | |
| 22106 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h |
| 22107 | |
| 22108 | |
| 22109 | |
| 22110 | |
| 22111 | |
| 22112 | |
| 22113 | # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. |
| 22114 | # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
| 22115 | |
| 22116 | # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* |
| 22117 | # programs in the package would end up linked with that potentially-shared |
| 22118 | # library, inducing unnecessary run-time overhead. |
| 22119 | LIB_CLOCK_GETTIME= |
| 22120 | |
| 22121 | gl_saved_libs=$LIBS |
| 22122 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 22123 | printfscip-shell system . . printf. %s "checking for library containing clock_gettime... " >&6; } |
| 22124 | if testscip-shell system . . test. ${ac_cv_search_clock_gettime+y} |
| 22125 | then : |
| 22126 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22127 | else $as_nop |
| 22128 | ac_func_search_save_LIBS=$LIBS |
| 22129 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22130 | /* end confdefs.h. */ |
| 22131 | |
| 22132 | /* Override any GCC internal prototype to avoid an error. |
| 22133 | Use char because int might match the return type of a GCC |
| 22134 | builtin and then its argument prototype would still apply. */ |
| 22135 | char clock_gettime (); |
| 22136 | int |
| 22137 | main (void) |
| 22138 | { |
| 22139 | return clock_gettime (); |
| 22140 | ; |
| 22141 | return 0; |
| 22142 | } |
| 22143 | _ACEOF |
| 22144 | for ac_lib in '' rt posix4 |
| 22145 | do |
| 22146 | if testscip-shell system . . test. -z "$ac_lib"; then |
| 22147 | ac_res="none required" |
| 22148 | else |
| 22149 | ac_res=-l$ac_lib |
| 22150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 22151 | fi |
| 22152 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 22153 | then : |
| 22154 | ac_cv_search_clock_gettime=$ac_res |
| 22155 | fi |
| 22156 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22157 | conftest$ac_exeext |
| 22158 | if testscip-shell system . . test. ${ac_cv_search_clock_gettime+y} |
| 22159 | then : |
| 22160 | break |
| 22161 | fi |
| 22162 | done |
| 22163 | if testscip-shell system . . test. ${ac_cv_search_clock_gettime+y} |
| 22164 | then : |
| 22165 | |
| 22166 | else $as_nop |
| 22167 | ac_cv_search_clock_gettime=no |
| 22168 | fi |
| 22169 | rmscip-shell system . . rm. conftest.$ac_ext |
| 22170 | LIBS=$ac_func_search_save_LIBS |
| 22171 | fi |
| 22172 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 22173 | printfscip-shell system . . printf. "%s\n" "$ac_cv_search_clock_gettime" >&6; } |
| 22174 | ac_res=$ac_cv_search_clock_gettime |
| 22175 | if testscip-shell system . . test. "$ac_res" != no |
| 22176 | then : |
| 22177 | testscip-shell system . . test. "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 22178 | testscip-shell system . . test. "$ac_cv_search_clock_gettime" = "none required" || |
| 22179 | LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime |
| 22180 | fi |
| 22181 | |
| 22182 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 22183 | if testscip-shell system . . test. "x$ac_cv_func_clock_getres" = xyes |
| 22184 | then : |
| 22185 | printfscip-shell system . . printf. "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 22186 | |
| 22187 | fi |
| 22188 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 22189 | if testscip-shell system . . test. "x$ac_cv_func_clock_gettime" = xyes |
| 22190 | then : |
| 22191 | printfscip-shell system . . printf. "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 22192 | |
| 22193 | fi |
| 22194 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "clock_settime" "ac_cv_func_clock_settime" |
| 22195 | if testscip-shell system . . test. "x$ac_cv_func_clock_settime" = xyes |
| 22196 | then : |
| 22197 | printfscip-shell system . . printf. "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h |
| 22198 | |
| 22199 | fi |
| 22200 | |
| 22201 | LIBS=$gl_saved_libs |
| 22202 | |
| 22203 | |
| 22204 | |
| 22205 | |
| 22206 | |
| 22207 | if testscip-shell system . . test. $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 22208 | REPLACE_CLOSE=1 |
| 22209 | fi |
| 22210 | |
| 22211 | |
| 22212 | |
| 22213 | |
| 22214 | |
| 22215 | |
| 22216 | if testscip-shell system . . test. $ac_cv_header_sys_socket_h != yes; then |
| 22217 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 22218 | if testscip-shell system . . test. "x$ac_cv_header_winsock2_h" = xyes |
| 22219 | then : |
| 22220 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h |
| 22221 | |
| 22222 | fi |
| 22223 | |
| 22224 | fi |
| 22225 | if testscip-shell system . . test. "$ac_cv_header_winsock2_h" = yes; then |
| 22226 | HAVE_WINSOCK2_H=1 |
| 22227 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 22228 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 22229 | else |
| 22230 | HAVE_WINSOCK2_H=0 |
| 22231 | fi |
| 22232 | |
| 22233 | |
| 22234 | if testscip-shell system . . test. $UNISTD_H_HAVE_WINSOCK2_H = 1; then |
| 22235 | REPLACE_CLOSE=1 |
| 22236 | fi |
| 22237 | |
| 22238 | |
| 22239 | if testscip-shell system . . test. $REPLACE_CLOSE = 0; then |
| 22240 | |
| 22241 | |
| 22242 | |
| 22243 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 22244 | HAVE_FCHDIR=0 |
| 22245 | fi |
| 22246 | |
| 22247 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 22248 | REPLACE_CLOSE=1 |
| 22249 | fi |
| 22250 | fi |
| 22251 | |
| 22252 | |
| 22253 | |
| 22254 | if testscip-shell system . . test. $REPLACE_CLOSE = 1; then |
| 22255 | GL_COND_OBJ_CLOSE_TRUE= |
| 22256 | GL_COND_OBJ_CLOSE_FALSE='#' |
| 22257 | else |
| 22258 | GL_COND_OBJ_CLOSE_TRUE='#' |
| 22259 | GL_COND_OBJ_CLOSE_FALSE= |
| 22260 | fi |
| 22261 | : |
| 22262 | if testscip-shell system . . test. -z "${GL_COND_OBJ_CLOSE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_CLOSE_FALSE}"; then |
| 22263 | GL_COND_OBJ_CLOSE_TRUE='#' |
| 22264 | GL_COND_OBJ_CLOSE_FALSE='#' |
| 22265 | fi |
| 22266 | |
| 22267 | |
| 22268 | |
| 22269 | |
| 22270 | |
| 22271 | |
| 22272 | |
| 22273 | |
| 22274 | |
| 22275 | |
| 22276 | GL_GNULIB_CLOSE=1 |
| 22277 | |
| 22278 | |
| 22279 | |
| 22280 | |
| 22281 | |
| 22282 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h |
| 22283 | |
| 22284 | |
| 22285 | |
| 22286 | |
| 22287 | |
| 22288 | |
| 22289 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "closedir" "ac_cv_func_closedir" |
| 22290 | if testscip-shell system . . test. "x$ac_cv_func_closedir" = xyes |
| 22291 | then : |
| 22292 | printfscip-shell system . . printf. "%s\n" "#define HAVE_CLOSEDIR 1" >>confdefs.h |
| 22293 | |
| 22294 | fi |
| 22295 | |
| 22296 | if testscip-shell system . . test. $ac_cv_func_closedir = no; then |
| 22297 | HAVE_CLOSEDIR=0 |
| 22298 | fi |
| 22299 | |
| 22300 | |
| 22301 | |
| 22302 | |
| 22303 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 22304 | HAVE_FCHDIR=0 |
| 22305 | fi |
| 22306 | |
| 22307 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 22308 | if testscip-shell system . . test. $HAVE_CLOSEDIR = 1; then |
| 22309 | REPLACE_CLOSEDIR=1 |
| 22310 | fi |
| 22311 | fi |
| 22312 | |
| 22313 | case $host_os,$HAVE_CLOSEDIR in |
| 22314 | os2*,1) |
| 22315 | REPLACE_CLOSEDIR=1;; |
| 22316 | esac |
| 22317 | |
| 22318 | |
| 22319 | if testscip-shell system . . test. $HAVE_CLOSEDIR = 0 || testscip-shell system . . test. $REPLACE_CLOSEDIR = 1; then |
| 22320 | GL_COND_OBJ_CLOSEDIR_TRUE= |
| 22321 | GL_COND_OBJ_CLOSEDIR_FALSE='#' |
| 22322 | else |
| 22323 | GL_COND_OBJ_CLOSEDIR_TRUE='#' |
| 22324 | GL_COND_OBJ_CLOSEDIR_FALSE= |
| 22325 | fi |
| 22326 | : |
| 22327 | if testscip-shell system . . test. -z "${GL_COND_OBJ_CLOSEDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_CLOSEDIR_FALSE}"; then |
| 22328 | GL_COND_OBJ_CLOSEDIR_TRUE='#' |
| 22329 | GL_COND_OBJ_CLOSEDIR_FALSE='#' |
| 22330 | fi |
| 22331 | |
| 22332 | |
| 22333 | |
| 22334 | |
| 22335 | |
| 22336 | |
| 22337 | |
| 22338 | |
| 22339 | |
| 22340 | |
| 22341 | GL_GNULIB_CLOSEDIR=1 |
| 22342 | |
| 22343 | |
| 22344 | |
| 22345 | |
| 22346 | |
| 22347 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h |
| 22348 | |
| 22349 | |
| 22350 | |
| 22351 | |
| 22352 | |
| 22353 | |
| 22354 | |
| 22355 | |
| 22356 | |
| 22357 | |
| 22358 | |
| 22359 | |
| 22360 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 |
| 22361 | printfscip-shell system . . printf. %s "checking whether // is distinct from /... " >&6; } |
| 22362 | if testscip-shell system . . test. ${gl_cv_double_slash_root+y} |
| 22363 | then : |
| 22364 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22365 | else $as_nop |
| 22366 | if testscip-shell system . . test. x"$cross_compiling" = xyes ; then |
| 22367 | # When cross-compiling, there is no way to tell whether // is special |
| 22368 | # short of a list of hosts. However, the only known hosts to date |
| 22369 | # that have a distinct // are Apollo DomainOS (too old to port to), |
| 22370 | # Cygwin, and z/OS. If anyone knows of another system for which // has |
| 22371 | # special semantics and is distinct from /, please report it to |
| 22372 | # <[email protected]>. |
| 22373 | case $host in |
| 22374 | *-cygwin | i370-ibm-openedition) |
| 22375 | gl_cv_double_slash_root=yes ;; |
| 22376 | *) |
| 22377 | # Be optimistic and assume that / and // are the same when we |
| 22378 | # don't know. |
| 22379 | gl_cv_double_slash_root='unknown, assuming no' ;; |
| 22380 | esac |
| 22381 | else |
| 22382 | set x `lsscip-shell system . . ls. -di /scip-shell filesystem . . `/`. // 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 22383 | if testscip-shell system . . test. "$2" = "$4" && wcscip-shell system . . wc. //dev/null >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 22384 | gl_cv_double_slash_root=no |
| 22385 | else |
| 22386 | gl_cv_double_slash_root=yes |
| 22387 | fi |
| 22388 | fi |
| 22389 | fi |
| 22390 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 |
| 22391 | printfscip-shell system . . printf. "%s\n" "$gl_cv_double_slash_root" >&6; } |
| 22392 | if testscip-shell system . . test. "$gl_cv_double_slash_root" = yes; then |
| 22393 | |
| 22394 | printfscip-shell system . . printf. "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h |
| 22395 | |
| 22396 | fi |
| 22397 | |
| 22398 | |
| 22399 | |
| 22400 | |
| 22401 | |
| 22402 | |
| 22403 | case "$GL_GENERATE_ERRNO_H" in |
| 22404 | false) ERRNO_H='' ;; |
| 22405 | true) |
| 22406 | if testscip-shell system . . test. -z "$ERRNO_H"; then |
| 22407 | ERRNO_H="${gl_source_base_prefix}errno.h" |
| 22408 | fi |
| 22409 | ;; |
| 22410 | *) echoscip-shell system . . echo. "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;; |
| 22411 | esac |
| 22412 | |
| 22413 | |
| 22414 | if $GL_GENERATE_ERRNO_H; then |
| 22415 | GL_GENERATE_ERRNO_H_TRUE= |
| 22416 | GL_GENERATE_ERRNO_H_FALSE='#' |
| 22417 | else |
| 22418 | GL_GENERATE_ERRNO_H_TRUE='#' |
| 22419 | GL_GENERATE_ERRNO_H_FALSE= |
| 22420 | fi |
| 22421 | : |
| 22422 | if testscip-shell system . . test. -z "${GL_GENERATE_ERRNO_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_ERRNO_H_FALSE}"; then |
| 22423 | GL_GENERATE_ERRNO_H_TRUE='#' |
| 22424 | GL_GENERATE_ERRNO_H_FALSE='#' |
| 22425 | fi |
| 22426 | |
| 22427 | |
| 22428 | |
| 22429 | |
| 22430 | |
| 22431 | |
| 22432 | |
| 22433 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 |
| 22434 | printfscip-shell system . . printf. %s "checking for error_at_line... " >&6; } |
| 22435 | if testscip-shell system . . test. ${ac_cv_lib_error_at_line+y} |
| 22436 | then : |
| 22437 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22438 | else $as_nop |
| 22439 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22440 | /* end confdefs.h. */ |
| 22441 | #include <error.h> |
| 22442 | int |
| 22443 | main (void) |
| 22444 | { |
| 22445 | error_at_line (0, 0, "", 0, "an error occurred"); |
| 22446 | ; |
| 22447 | return 0; |
| 22448 | } |
| 22449 | _ACEOF |
| 22450 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 22451 | then : |
| 22452 | ac_cv_lib_error_at_line=yes |
| 22453 | else $as_nop |
| 22454 | ac_cv_lib_error_at_line=no |
| 22455 | fi |
| 22456 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22457 | conftest$ac_exeext conftest.$ac_ext |
| 22458 | fi |
| 22459 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 |
| 22460 | printfscip-shell system . . printf. "%s\n" "$ac_cv_lib_error_at_line" >&6; } |
| 22461 | |
| 22462 | |
| 22463 | if testscip-shell system . . test. "$ac_cv_lib_error_at_line" = no; then |
| 22464 | GL_COND_OBJ_ERROR_TRUE= |
| 22465 | GL_COND_OBJ_ERROR_FALSE='#' |
| 22466 | else |
| 22467 | GL_COND_OBJ_ERROR_TRUE='#' |
| 22468 | GL_COND_OBJ_ERROR_FALSE= |
| 22469 | fi |
| 22470 | : |
| 22471 | if testscip-shell system . . test. -z "${GL_COND_OBJ_ERROR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_ERROR_FALSE}"; then |
| 22472 | GL_COND_OBJ_ERROR_TRUE='#' |
| 22473 | GL_COND_OBJ_ERROR_FALSE='#' |
| 22474 | fi |
| 22475 | |
| 22476 | if testscip-shell system . . test. -z "$GL_COND_OBJ_ERROR_TRUE"; then : |
| 22477 | |
| 22478 | |
| 22479 | |
| 22480 | |
| 22481 | |
| 22482 | : |
| 22483 | |
| 22484 | |
| 22485 | fi |
| 22486 | |
| 22487 | |
| 22488 | |
| 22489 | |
| 22490 | |
| 22491 | |
| 22492 | |
| 22493 | if testscip-shell system . . test. $ac_cv_func_fcntl = no; then |
| 22494 | |
| 22495 | |
| 22496 | |
| 22497 | if testscip-shell system . . test. $ac_cv_func_fcntl = no; then |
| 22498 | HAVE_FCNTL=0 |
| 22499 | else |
| 22500 | REPLACE_FCNTL=1 |
| 22501 | fi |
| 22502 | |
| 22503 | else |
| 22504 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 |
| 22505 | printfscip-shell system . . printf. %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } |
| 22506 | if testscip-shell system . . test. ${gl_cv_func_fcntl_f_dupfd_works+y} |
| 22507 | then : |
| 22508 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22509 | else $as_nop |
| 22510 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 22511 | then : |
| 22512 | case $host_os in |
| 22513 | aix* | cygwin* | haiku*) |
| 22514 | gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; |
| 22515 | *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; |
| 22516 | esac |
| 22517 | else $as_nop |
| 22518 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22519 | /* end confdefs.h. */ |
| 22520 | #include <errno.h> |
| 22521 | #include <fcntl.h> |
| 22522 | #include <limits.h> |
| 22523 | #include <sys/resource.h> |
| 22524 | #include <unistd.h> |
| 22525 | |
| 22526 | |
| 22527 | $gl_mda_defines |
| 22528 | |
| 22529 | #ifndef RLIM_SAVED_CUR |
| 22530 | # define RLIM_SAVED_CUR RLIM_INFINITY |
| 22531 | #endif |
| 22532 | #ifndef RLIM_SAVED_MAX |
| 22533 | # define RLIM_SAVED_MAX RLIM_INFINITY |
| 22534 | #endif |
| 22535 | |
| 22536 | int |
| 22537 | main (void) |
| 22538 | { |
| 22539 | int result = 0; |
| 22540 | int bad_fd = INT_MAX; |
| 22541 | struct rlimit rlim; |
| 22542 | if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 |
| 22543 | && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX |
| 22544 | && rlim.rlim_cur != RLIM_INFINITY |
| 22545 | && rlim.rlim_cur != RLIM_SAVED_MAX |
| 22546 | && rlim.rlim_cur != RLIM_SAVED_CUR) |
| 22547 | bad_fd = rlim.rlim_cur; |
| 22548 | if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; |
| 22549 | if (errno != EINVAL) result |= 2; |
| 22550 | if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; |
| 22551 | if (errno != EINVAL) result |= 8; |
| 22552 | /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ |
| 22553 | { |
| 22554 | int fd; |
| 22555 | fd = open (".", O_RDONLY); |
| 22556 | if (fd == -1) |
| 22557 | result |= 16; |
| 22558 | else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) |
| 22559 | result |= 32; |
| 22560 | |
| 22561 | close (fd); |
| 22562 | } |
| 22563 | return result; |
| 22564 | ; |
| 22565 | return 0; |
| 22566 | } |
| 22567 | _ACEOF |
| 22568 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 22569 | then : |
| 22570 | gl_cv_func_fcntl_f_dupfd_works=yes |
| 22571 | else $as_nop |
| 22572 | gl_cv_func_fcntl_f_dupfd_works=no |
| 22573 | fi |
| 22574 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22575 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22576 | fi |
| 22577 | |
| 22578 | fi |
| 22579 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 |
| 22580 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } |
| 22581 | case $gl_cv_func_fcntl_f_dupfd_works in |
| 22582 | *yes) ;; |
| 22583 | *) |
| 22584 | |
| 22585 | |
| 22586 | if testscip-shell system . . test. $ac_cv_func_fcntl = no; then |
| 22587 | HAVE_FCNTL=0 |
| 22588 | else |
| 22589 | REPLACE_FCNTL=1 |
| 22590 | fi |
| 22591 | |
| 22592 | |
| 22593 | printfscip-shell system . . printf. "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h |
| 22594 | ;; |
| 22595 | esac |
| 22596 | |
| 22597 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 |
| 22598 | printfscip-shell system . . printf. %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } |
| 22599 | if testscip-shell system . . test. ${gl_cv_func_fcntl_f_dupfd_cloexec+y} |
| 22600 | then : |
| 22601 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22602 | else $as_nop |
| 22603 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 22604 | then : |
| 22605 | case "$host_os" in |
| 22606 | # Guess no on NetBSD. |
| 22607 | netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; |
| 22608 | *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; |
| 22609 | esac |
| 22610 | |
| 22611 | else $as_nop |
| 22612 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22613 | /* end confdefs.h. */ |
| 22614 | #include <fcntl.h> |
| 22615 | #include <unistd.h> |
| 22616 | int main (int argc, char *argv[]) |
| 22617 | { |
| 22618 | if (argc == 1) |
| 22619 | /* parent process */ |
| 22620 | { |
| 22621 | if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) |
| 22622 | return 1; |
| 22623 | return execl ("./conftest", "./conftest", "child", NULL); |
| 22624 | } |
| 22625 | else |
| 22626 | /* child process */ |
| 22627 | return (fcntl (10, F_GETFL) < 0 ? 0 : 42); |
| 22628 | } |
| 22629 | |
| 22630 | |
| 22631 | _ACEOF |
| 22632 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 22633 | then : |
| 22634 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22635 | /* end confdefs.h. */ |
| 22636 | |
| 22637 | #ifdef __linux__ |
| 22638 | /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace |
| 22639 | it to support the semantics on older kernels that failed with EINVAL. */ |
| 22640 | choke me |
| 22641 | #endif |
| 22642 | |
| 22643 | int |
| 22644 | main (void) |
| 22645 | { |
| 22646 | |
| 22647 | ; |
| 22648 | return 0; |
| 22649 | } |
| 22650 | _ACEOF |
| 22651 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 22652 | then : |
| 22653 | gl_cv_func_fcntl_f_dupfd_cloexec=yes |
| 22654 | else $as_nop |
| 22655 | gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" |
| 22656 | fi |
| 22657 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22658 | |
| 22659 | else $as_nop |
| 22660 | gl_cv_func_fcntl_f_dupfd_cloexec=no |
| 22661 | fi |
| 22662 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22663 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22664 | fi |
| 22665 | |
| 22666 | |
| 22667 | fi |
| 22668 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 |
| 22669 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } |
| 22670 | case "$gl_cv_func_fcntl_f_dupfd_cloexec" in |
| 22671 | *yes) ;; |
| 22672 | *) |
| 22673 | |
| 22674 | |
| 22675 | if testscip-shell system . . test. $ac_cv_func_fcntl = no; then |
| 22676 | HAVE_FCNTL=0 |
| 22677 | else |
| 22678 | REPLACE_FCNTL=1 |
| 22679 | fi |
| 22680 | |
| 22681 | ;; |
| 22682 | esac |
| 22683 | fi |
| 22684 | |
| 22685 | |
| 22686 | |
| 22687 | |
| 22688 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 22689 | HAVE_FCHDIR=0 |
| 22690 | fi |
| 22691 | |
| 22692 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 22693 | |
| 22694 | |
| 22695 | |
| 22696 | if testscip-shell system . . test. $ac_cv_func_fcntl = no; then |
| 22697 | HAVE_FCNTL=0 |
| 22698 | else |
| 22699 | REPLACE_FCNTL=1 |
| 22700 | fi |
| 22701 | |
| 22702 | fi |
| 22703 | |
| 22704 | |
| 22705 | |
| 22706 | if testscip-shell system . . test. $HAVE_FCNTL = 0 || testscip-shell system . . test. $REPLACE_FCNTL = 1; then |
| 22707 | GL_COND_OBJ_FCNTL_TRUE= |
| 22708 | GL_COND_OBJ_FCNTL_FALSE='#' |
| 22709 | else |
| 22710 | GL_COND_OBJ_FCNTL_TRUE='#' |
| 22711 | GL_COND_OBJ_FCNTL_FALSE= |
| 22712 | fi |
| 22713 | : |
| 22714 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FCNTL_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FCNTL_FALSE}"; then |
| 22715 | GL_COND_OBJ_FCNTL_TRUE='#' |
| 22716 | GL_COND_OBJ_FCNTL_FALSE='#' |
| 22717 | fi |
| 22718 | |
| 22719 | |
| 22720 | |
| 22721 | |
| 22722 | |
| 22723 | |
| 22724 | |
| 22725 | |
| 22726 | |
| 22727 | |
| 22728 | GL_GNULIB_FCNTL=1 |
| 22729 | |
| 22730 | |
| 22731 | |
| 22732 | |
| 22733 | |
| 22734 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h |
| 22735 | |
| 22736 | |
| 22737 | |
| 22738 | |
| 22739 | |
| 22740 | |
| 22741 | |
| 22742 | |
| 22743 | |
| 22744 | |
| 22745 | |
| 22746 | |
| 22747 | |
| 22748 | |
| 22749 | |
| 22750 | |
| 22751 | GL_GENERATE_FLOAT_H=false |
| 22752 | REPLACE_FLOAT_LDBL=0 |
| 22753 | case "$host_os" in |
| 22754 | aix* | beos* | openbsd* | mirbsd* | irix*) |
| 22755 | GL_GENERATE_FLOAT_H=true |
| 22756 | ;; |
| 22757 | freebsd* | dragonfly*) |
| 22758 | case "$host_cpu" in |
| 22759 | i[34567]86 ) |
| 22760 | GL_GENERATE_FLOAT_H=true |
| 22761 | ;; |
| 22762 | x86_64 ) |
| 22763 | # On x86_64 systems, the C compiler may still be generating |
| 22764 | # 32-bit code. |
| 22765 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22766 | /* end confdefs.h. */ |
| 22767 | #if defined __LP64__ || defined __x86_64__ || defined __amd64__ |
| 22768 | int ok; |
| 22769 | #else |
| 22770 | error fail |
| 22771 | #endif |
| 22772 | |
| 22773 | _ACEOF |
| 22774 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 22775 | then : |
| 22776 | |
| 22777 | else $as_nop |
| 22778 | GL_GENERATE_FLOAT_H=true |
| 22779 | fi |
| 22780 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22781 | ;; |
| 22782 | esac |
| 22783 | ;; |
| 22784 | linux*) |
| 22785 | case "$host_cpu" in |
| 22786 | powerpc*) |
| 22787 | GL_GENERATE_FLOAT_H=true |
| 22788 | ;; |
| 22789 | esac |
| 22790 | ;; |
| 22791 | esac |
| 22792 | case "$host_os" in |
| 22793 | aix* | freebsd* | dragonfly* | linux*) |
| 22794 | if $GL_GENERATE_FLOAT_H; then |
| 22795 | REPLACE_FLOAT_LDBL=1 |
| 22796 | fi |
| 22797 | ;; |
| 22798 | esac |
| 22799 | |
| 22800 | REPLACE_ITOLD=0 |
| 22801 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 |
| 22802 | printfscip-shell system . . printf. %s "checking whether conversion from 'int' to 'long double' works... " >&6; } |
| 22803 | if testscip-shell system . . test. ${gl_cv_func_itold_works+y} |
| 22804 | then : |
| 22805 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22806 | else $as_nop |
| 22807 | |
| 22808 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 22809 | then : |
| 22810 | case "$host" in |
| 22811 | sparc*-*-linux*) |
| 22812 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22813 | /* end confdefs.h. */ |
| 22814 | #if defined __LP64__ || defined __arch64__ |
| 22815 | int ok; |
| 22816 | #else |
| 22817 | error fail |
| 22818 | #endif |
| 22819 | |
| 22820 | _ACEOF |
| 22821 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 22822 | then : |
| 22823 | gl_cv_func_itold_works="guessing no" |
| 22824 | else $as_nop |
| 22825 | gl_cv_func_itold_works="guessing yes" |
| 22826 | fi |
| 22827 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22828 | ;; |
| 22829 | # Guess yes on native Windows. |
| 22830 | mingw*) gl_cv_func_itold_works="guessing yes" ;; |
| 22831 | *) gl_cv_func_itold_works="guessing yes" ;; |
| 22832 | esac |
| 22833 | |
| 22834 | else $as_nop |
| 22835 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22836 | /* end confdefs.h. */ |
| 22837 | |
| 22838 | int i = -1; |
| 22839 | volatile long double ld; |
| 22840 | int main () |
| 22841 | { |
| 22842 | ld += i * 1.0L; |
| 22843 | if (ld > 0) |
| 22844 | return 1; |
| 22845 | return 0; |
| 22846 | } |
| 22847 | _ACEOF |
| 22848 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 22849 | then : |
| 22850 | gl_cv_func_itold_works=yes |
| 22851 | else $as_nop |
| 22852 | gl_cv_func_itold_works=no |
| 22853 | fi |
| 22854 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22855 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22856 | fi |
| 22857 | |
| 22858 | |
| 22859 | fi |
| 22860 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 |
| 22861 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_itold_works" >&6; } |
| 22862 | case "$gl_cv_func_itold_works" in |
| 22863 | *no) |
| 22864 | REPLACE_ITOLD=1 |
| 22865 | GL_GENERATE_FLOAT_H=true |
| 22866 | ;; |
| 22867 | esac |
| 22868 | |
| 22869 | if $GL_GENERATE_FLOAT_H; then |
| 22870 | |
| 22871 | |
| 22872 | |
| 22873 | |
| 22874 | |
| 22875 | |
| 22876 | |
| 22877 | |
| 22878 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 22879 | gl_cv_next_float_h='<'float.h'>' |
| 22880 | else |
| 22881 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5 |
| 22882 | printfscip-shell system . . printf. %s "checking absolute name of <float.h>... " >&6; } |
| 22883 | if testscip-shell system . . test. ${gl_cv_next_float_h+y} |
| 22884 | then : |
| 22885 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 22886 | else $as_nop |
| 22887 | |
| 22888 | |
| 22889 | |
| 22890 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22891 | /* end confdefs.h. */ |
| 22892 | #include <float.h> |
| 22893 | _ACEOF |
| 22894 | case "$host_os" in |
| 22895 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22896 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22897 | esac |
| 22898 | |
| 22899 | case "$host_os" in |
| 22900 | mingw*) |
| 22901 | gl_dirsep_regex='[/\\]' |
| 22902 | ;; |
| 22903 | *) |
| 22904 | gl_dirsep_regex='\/' |
| 22905 | ;; |
| 22906 | esac |
| 22907 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22908 | gl_header_literal_regex=`echoscip-shell system . . echo. 'float.h' \ |
| 22909 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 22910 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22911 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22912 | s|^/[^/]|//&| |
| 22913 | p |
| 22914 | q |
| 22915 | }' |
| 22916 | |
| 22917 | gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22918 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 22919 | |
| 22920 | gl_header=$gl_cv_absolute_float_h |
| 22921 | gl_cv_next_float_h='"'$gl_header'"' |
| 22922 | |
| 22923 | |
| 22924 | fi |
| 22925 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 |
| 22926 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_float_h" >&6; } |
| 22927 | fi |
| 22928 | NEXT_FLOAT_H=$gl_cv_next_float_h |
| 22929 | |
| 22930 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 22931 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22932 | gl_next_as_first_directive='<'float.h'>' |
| 22933 | else |
| 22934 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22935 | gl_next_as_first_directive=$gl_cv_next_float_h |
| 22936 | fi |
| 22937 | NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive |
| 22938 | |
| 22939 | |
| 22940 | |
| 22941 | |
| 22942 | fi |
| 22943 | |
| 22944 | |
| 22945 | |
| 22946 | |
| 22947 | |
| 22948 | |
| 22949 | case "$GL_GENERATE_FLOAT_H" in |
| 22950 | false) FLOAT_H='' ;; |
| 22951 | true) |
| 22952 | if testscip-shell system . . test. -z "$FLOAT_H"; then |
| 22953 | FLOAT_H="${gl_source_base_prefix}float.h" |
| 22954 | fi |
| 22955 | ;; |
| 22956 | *) echoscip-shell system . . echo. "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;; |
| 22957 | esac |
| 22958 | |
| 22959 | |
| 22960 | if $GL_GENERATE_FLOAT_H; then |
| 22961 | GL_GENERATE_FLOAT_H_TRUE= |
| 22962 | GL_GENERATE_FLOAT_H_FALSE='#' |
| 22963 | else |
| 22964 | GL_GENERATE_FLOAT_H_TRUE='#' |
| 22965 | GL_GENERATE_FLOAT_H_FALSE= |
| 22966 | fi |
| 22967 | : |
| 22968 | if testscip-shell system . . test. -z "${GL_GENERATE_FLOAT_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_FLOAT_H_FALSE}"; then |
| 22969 | GL_GENERATE_FLOAT_H_TRUE='#' |
| 22970 | GL_GENERATE_FLOAT_H_FALSE='#' |
| 22971 | fi |
| 22972 | |
| 22973 | |
| 22974 | |
| 22975 | |
| 22976 | |
| 22977 | |
| 22978 | |
| 22979 | if testscip-shell system . . test. $REPLACE_FLOAT_LDBL = 1; then |
| 22980 | GL_COND_OBJ_FLOAT_TRUE= |
| 22981 | GL_COND_OBJ_FLOAT_FALSE='#' |
| 22982 | else |
| 22983 | GL_COND_OBJ_FLOAT_TRUE='#' |
| 22984 | GL_COND_OBJ_FLOAT_FALSE= |
| 22985 | fi |
| 22986 | : |
| 22987 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FLOAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FLOAT_FALSE}"; then |
| 22988 | GL_COND_OBJ_FLOAT_TRUE='#' |
| 22989 | GL_COND_OBJ_FLOAT_FALSE='#' |
| 22990 | fi |
| 22991 | |
| 22992 | |
| 22993 | if testscip-shell system . . test. $REPLACE_ITOLD = 1; then |
| 22994 | GL_COND_OBJ_ITOLD_TRUE= |
| 22995 | GL_COND_OBJ_ITOLD_FALSE='#' |
| 22996 | else |
| 22997 | GL_COND_OBJ_ITOLD_TRUE='#' |
| 22998 | GL_COND_OBJ_ITOLD_FALSE= |
| 22999 | fi |
| 23000 | : |
| 23001 | if testscip-shell system . . test. -z "${GL_COND_OBJ_ITOLD_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_ITOLD_FALSE}"; then |
| 23002 | GL_COND_OBJ_ITOLD_TRUE='#' |
| 23003 | GL_COND_OBJ_ITOLD_FALSE='#' |
| 23004 | fi |
| 23005 | |
| 23006 | |
| 23007 | |
| 23008 | |
| 23009 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5 |
| 23010 | printfscip-shell system . . printf. %s "checking whether free is known to preserve errno... " >&6; } |
| 23011 | if testscip-shell system . . test. ${gl_cv_func_free_preserves_errno+y} |
| 23012 | then : |
| 23013 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 23014 | else $as_nop |
| 23015 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23016 | /* end confdefs.h. */ |
| 23017 | #include <stdlib.h> |
| 23018 | |
| 23019 | int |
| 23020 | main (void) |
| 23021 | { |
| 23022 | #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__) |
| 23023 | #elif defined __OpenBSD__ |
| 23024 | #elif defined __sun |
| 23025 | #else |
| 23026 | #error "'free' is not known to preserve errno" |
| 23027 | #endif |
| 23028 | |
| 23029 | ; |
| 23030 | return 0; |
| 23031 | } |
| 23032 | _ACEOF |
| 23033 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 23034 | then : |
| 23035 | gl_cv_func_free_preserves_errno=yes |
| 23036 | else $as_nop |
| 23037 | gl_cv_func_free_preserves_errno=no |
| 23038 | fi |
| 23039 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23040 | |
| 23041 | fi |
| 23042 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5 |
| 23043 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_free_preserves_errno" >&6; } |
| 23044 | |
| 23045 | case $gl_cv_func_free_preserves_errno in |
| 23046 | *yes) |
| 23047 | |
| 23048 | printfscip-shell system . . printf. "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h |
| 23049 | |
| 23050 | ;; |
| 23051 | *) REPLACE_FREE=1 ;; |
| 23052 | esac |
| 23053 | |
| 23054 | |
| 23055 | if testscip-shell system . . test. $REPLACE_FREE = 1; then |
| 23056 | GL_COND_OBJ_FREE_TRUE= |
| 23057 | GL_COND_OBJ_FREE_FALSE='#' |
| 23058 | else |
| 23059 | GL_COND_OBJ_FREE_TRUE='#' |
| 23060 | GL_COND_OBJ_FREE_FALSE= |
| 23061 | fi |
| 23062 | : |
| 23063 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FREE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FREE_FALSE}"; then |
| 23064 | GL_COND_OBJ_FREE_TRUE='#' |
| 23065 | GL_COND_OBJ_FREE_FALSE='#' |
| 23066 | fi |
| 23067 | |
| 23068 | if testscip-shell system . . test. -z "$GL_COND_OBJ_FREE_TRUE"; then : |
| 23069 | |
| 23070 | : |
| 23071 | |
| 23072 | fi |
| 23073 | |
| 23074 | |
| 23075 | |
| 23076 | |
| 23077 | |
| 23078 | |
| 23079 | |
| 23080 | |
| 23081 | |
| 23082 | GL_GNULIB_FREE_POSIX=1 |
| 23083 | |
| 23084 | |
| 23085 | |
| 23086 | |
| 23087 | |
| 23088 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h |
| 23089 | |
| 23090 | |
| 23091 | |
| 23092 | |
| 23093 | |
| 23094 | |
| 23095 | |
| 23096 | case "$host_os" in |
| 23097 | mingw* | solaris*) |
| 23098 | REPLACE_FSTAT=1 |
| 23099 | ;; |
| 23100 | esac |
| 23101 | |
| 23102 | |
| 23103 | |
| 23104 | |
| 23105 | |
| 23106 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 23107 | HAVE_FCHDIR=0 |
| 23108 | fi |
| 23109 | |
| 23110 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 23111 | case "$gl_cv_func_open_directory_works" in |
| 23112 | *yes) ;; |
| 23113 | *) |
| 23114 | REPLACE_FSTAT=1 |
| 23115 | ;; |
| 23116 | esac |
| 23117 | fi |
| 23118 | |
| 23119 | |
| 23120 | |
| 23121 | if testscip-shell system . . test. $REPLACE_FSTAT = 1; then |
| 23122 | GL_COND_OBJ_FSTAT_TRUE= |
| 23123 | GL_COND_OBJ_FSTAT_FALSE='#' |
| 23124 | else |
| 23125 | GL_COND_OBJ_FSTAT_TRUE='#' |
| 23126 | GL_COND_OBJ_FSTAT_FALSE= |
| 23127 | fi |
| 23128 | : |
| 23129 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FSTAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FSTAT_FALSE}"; then |
| 23130 | GL_COND_OBJ_FSTAT_TRUE='#' |
| 23131 | GL_COND_OBJ_FSTAT_FALSE='#' |
| 23132 | fi |
| 23133 | |
| 23134 | if testscip-shell system . . test. -z "$GL_COND_OBJ_FSTAT_TRUE"; then : |
| 23135 | |
| 23136 | case "$host_os" in |
| 23137 | mingw*) |
| 23138 | |
| 23139 | |
| 23140 | |
| 23141 | |
| 23142 | |
| 23143 | |
| 23144 | |
| 23145 | |
| 23146 | gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" |
| 23147 | |
| 23148 | ;; |
| 23149 | esac |
| 23150 | |
| 23151 | |
| 23152 | |
| 23153 | : |
| 23154 | |
| 23155 | |
| 23156 | fi |
| 23157 | |
| 23158 | |
| 23159 | |
| 23160 | |
| 23161 | |
| 23162 | |
| 23163 | |
| 23164 | |
| 23165 | |
| 23166 | GL_GNULIB_FSTAT=1 |
| 23167 | |
| 23168 | |
| 23169 | |
| 23170 | |
| 23171 | |
| 23172 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h |
| 23173 | |
| 23174 | |
| 23175 | |
| 23176 | |
| 23177 | |
| 23178 | |
| 23179 | if testscip-shell system . . test. $ac_cv_func_ftruncate = yes; then |
| 23180 | |
| 23181 | |
| 23182 | case "$host_os" in |
| 23183 | mingw*) |
| 23184 | REPLACE_FTRUNCATE=1 |
| 23185 | ;; |
| 23186 | esac |
| 23187 | |
| 23188 | else |
| 23189 | HAVE_FTRUNCATE=0 |
| 23190 | fi |
| 23191 | |
| 23192 | |
| 23193 | if testscip-shell system . . test. $HAVE_FTRUNCATE = 0 || testscip-shell system . . test. $REPLACE_FTRUNCATE = 1; then |
| 23194 | GL_COND_OBJ_FTRUNCATE_TRUE= |
| 23195 | GL_COND_OBJ_FTRUNCATE_FALSE='#' |
| 23196 | else |
| 23197 | GL_COND_OBJ_FTRUNCATE_TRUE='#' |
| 23198 | GL_COND_OBJ_FTRUNCATE_FALSE= |
| 23199 | fi |
| 23200 | : |
| 23201 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FTRUNCATE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FTRUNCATE_FALSE}"; then |
| 23202 | GL_COND_OBJ_FTRUNCATE_TRUE='#' |
| 23203 | GL_COND_OBJ_FTRUNCATE_FALSE='#' |
| 23204 | fi |
| 23205 | |
| 23206 | if testscip-shell system . . test. -z "$GL_COND_OBJ_FTRUNCATE_TRUE"; then : |
| 23207 | |
| 23208 | |
| 23209 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "_chsize" "ac_cv_func__chsize" |
| 23210 | if testscip-shell system . . test. "x$ac_cv_func__chsize" = xyes |
| 23211 | then : |
| 23212 | printfscip-shell system . . printf. "%s\n" "#define HAVE__CHSIZE 1" >>confdefs.h |
| 23213 | |
| 23214 | fi |
| 23215 | |
| 23216 | |
| 23217 | |
| 23218 | fi |
| 23219 | |
| 23220 | |
| 23221 | |
| 23222 | |
| 23223 | |
| 23224 | |
| 23225 | |
| 23226 | |
| 23227 | |
| 23228 | GL_GNULIB_FTRUNCATE=1 |
| 23229 | |
| 23230 | |
| 23231 | |
| 23232 | |
| 23233 | |
| 23234 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h |
| 23235 | |
| 23236 | |
| 23237 | |
| 23238 | |
| 23239 | |
| 23240 | |
| 23241 | |
| 23242 | |
| 23243 | gl_abort_bug=no |
| 23244 | case "$host_os" in |
| 23245 | mingw*) |
| 23246 | gl_cv_func_getcwd_path_max=yes |
| 23247 | ;; |
| 23248 | *) |
| 23249 | |
| 23250 | |
| 23251 | |
| 23252 | |
| 23253 | |
| 23254 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5 |
| 23255 | printfscip-shell system . . printf. %s "checking whether getcwd handles long file names properly... " >&6; } |
| 23256 | if testscip-shell system . . test. ${gl_cv_func_getcwd_path_max+y} |
| 23257 | then : |
| 23258 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 23259 | else $as_nop |
| 23260 | # Arrange for deletion of the temporary directory this test creates. |
| 23261 | ac_clean_files="$ac_clean_files confdir3" |
| 23262 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 23263 | then : |
| 23264 | # Cross-compilation guesses: |
| 23265 | case "$host_os" in |
| 23266 | aix*) # On AIX, it has the AIX bug. |
| 23267 | gl_cv_func_getcwd_path_max='guessing no, it has the AIX bug' ;; |
| 23268 | gnu*) # On Hurd, it is 'yes'. |
| 23269 | gl_cv_func_getcwd_path_max='guessing yes' ;; |
| 23270 | linux* | kfreebsd*) |
| 23271 | # On older Linux+glibc it's 'no, but it is partly working', |
| 23272 | # on newer Linux+glibc it's 'yes'. |
| 23273 | # On Linux+musl libc, it's 'no, but it is partly working'. |
| 23274 | # On kFreeBSD+glibc, it's 'no, but it is partly working'. |
| 23275 | gl_cv_func_getcwd_path_max='guessing no, but it is partly working' ;; |
| 23276 | *) # If we don't know, obey --enable-cross-guesses. |
| 23277 | gl_cv_func_getcwd_path_max="$gl_cross_guess_normal" ;; |
| 23278 | esac |
| 23279 | |
| 23280 | else $as_nop |
| 23281 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23282 | /* end confdefs.h. */ |
| 23283 | |
| 23284 | #include <errno.h> |
| 23285 | #include <stdlib.h> |
| 23286 | #if HAVE_UNISTD_H |
| 23287 | # include <unistd.h> |
| 23288 | #else |
| 23289 | # include <direct.h> |
| 23290 | #endif |
| 23291 | #include <string.h> |
| 23292 | #include <limits.h> |
| 23293 | #include <sys/stat.h> |
| 23294 | #include <sys/types.h> |
| 23295 | #include <fcntl.h> |
| 23296 | |
| 23297 | |
| 23298 | /* Arrange to define PATH_MAX, like "pathmax.h" does. */ |
| 23299 | #if HAVE_UNISTD_H |
| 23300 | # include <unistd.h> |
| 23301 | #endif |
| 23302 | #include <limits.h> |
| 23303 | #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN |
| 23304 | # include <sys/param.h> |
| 23305 | #endif |
| 23306 | #if !defined PATH_MAX && defined MAXPATHLEN |
| 23307 | # define PATH_MAX MAXPATHLEN |
| 23308 | #endif |
| 23309 | #ifdef __hpux |
| 23310 | # undef PATH_MAX |
| 23311 | # define PATH_MAX 1024 |
| 23312 | #endif |
| 23313 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 23314 | # undef PATH_MAX |
| 23315 | # define PATH_MAX 260 |
| 23316 | #endif |
| 23317 | |
| 23318 | |
| 23319 | #ifndef AT_FDCWD |
| 23320 | # define AT_FDCWD 0 |
| 23321 | #endif |
| 23322 | #ifdef ENAMETOOLONG |
| 23323 | # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG) |
| 23324 | #else |
| 23325 | # define is_ENAMETOOLONG(x) 0 |
| 23326 | #endif |
| 23327 | |
| 23328 | /* Use the getcwd function, not any macro. */ |
| 23329 | #undef getcwd |
| 23330 | |
| 23331 | |
| 23332 | |
| 23333 | $gl_mda_defines |
| 23334 | |
| 23335 | |
| 23336 | #ifndef S_IRWXU |
| 23337 | # define S_IRWXU 0700 |
| 23338 | #endif |
| 23339 | |
| 23340 | /* The length of this name must be 8. */ |
| 23341 | #define DIR_NAME "confdir3" |
| 23342 | #define DIR_NAME_LEN 8 |
| 23343 | #define DIR_NAME_SIZE (DIR_NAME_LEN + 1) |
| 23344 | |
| 23345 | /* The length of "../". */ |
| 23346 | #define DOTDOTSLASH_LEN 3 |
| 23347 | |
| 23348 | /* Leftover bytes in the buffer, to work around library or OS bugs. */ |
| 23349 | #define BUF_SLOP 20 |
| 23350 | |
| 23351 | int |
| 23352 | main () |
| 23353 | { |
| 23354 | #ifndef PATH_MAX |
| 23355 | /* The Hurd doesn't define this, so getcwd can't exhibit the bug -- |
| 23356 | at least not on a local file system. And if we were to start worrying |
| 23357 | about remote file systems, we'd have to enable the wrapper function |
| 23358 | all of the time, just to be safe. That's not worth the cost. */ |
| 23359 | exit (0); |
| 23360 | #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \ |
| 23361 | - DIR_NAME_SIZE - BUF_SLOP) \ |
| 23362 | <= PATH_MAX) |
| 23363 | /* FIXME: Assuming there's a system for which this is true, |
| 23364 | this should be done in a compile test. */ |
| 23365 | exit (0); |
| 23366 | #else |
| 23367 | char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) |
| 23368 | + DIR_NAME_SIZE + BUF_SLOP]; |
| 23369 | char *cwd = getcwd (buf, PATH_MAX); |
| 23370 | size_t initial_cwd_len; |
| 23371 | size_t cwd_len; |
| 23372 | int fail = 0; |
| 23373 | size_t n_chdirs = 0; |
| 23374 | |
| 23375 | if (cwd == NULL) |
| 23376 | exit (10); |
| 23377 | |
| 23378 | cwd_len = initial_cwd_len = strlen (cwd); |
| 23379 | |
| 23380 | while (1) |
| 23381 | { |
| 23382 | size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN); |
| 23383 | char *c = NULL; |
| 23384 | |
| 23385 | cwd_len += DIR_NAME_SIZE; |
| 23386 | /* If mkdir or chdir fails, it could be that this system cannot create |
| 23387 | any file with an absolute name longer than PATH_MAX, such as cygwin. |
| 23388 | If so, leave fail as 0, because the current working directory can't |
| 23389 | be too long for getcwd if it can't even be created. On Linux with |
| 23390 | the 9p file system, mkdir fails with error EINVAL when cwd_len gets |
| 23391 | too long; ignore this failure because the getcwd() system call |
| 23392 | produces good results whereas the gnulib substitute calls getdents64 |
| 23393 | which fails with error EPROTO. |
| 23394 | For other errors, be pessimistic and consider that as a failure, |
| 23395 | too. */ |
| 23396 | if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0) |
| 23397 | { |
| 23398 | if (! (errno == ERANGE || is_ENAMETOOLONG (errno))) |
| 23399 | #ifdef __linux__ |
| 23400 | if (! (errno == EINVAL)) |
| 23401 | #endif |
| 23402 | fail = 20; |
| 23403 | break; |
| 23404 | } |
| 23405 | |
| 23406 | if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE) |
| 23407 | { |
| 23408 | struct stat sb; |
| 23409 | |
| 23410 | c = getcwd (buf, PATH_MAX); |
| 23411 | if (!c && errno == ENOENT) |
| 23412 | { |
| 23413 | fail = 11; |
| 23414 | break; |
| 23415 | } |
| 23416 | if (c) |
| 23417 | { |
| 23418 | fail = 31; |
| 23419 | break; |
| 23420 | } |
| 23421 | if (! (errno == ERANGE || is_ENAMETOOLONG (errno))) |
| 23422 | { |
| 23423 | fail = 21; |
| 23424 | break; |
| 23425 | } |
| 23426 | |
| 23427 | /* Our replacement needs to be able to stat() long ../../paths, |
| 23428 | so generate a path larger than PATH_MAX to check, |
| 23429 | avoiding the replacement if we can't stat(). */ |
| 23430 | c = getcwd (buf, cwd_len + 1); |
| 23431 | if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno)) |
| 23432 | { |
| 23433 | fail = 32; |
| 23434 | break; |
| 23435 | } |
| 23436 | } |
| 23437 | |
| 23438 | if (dotdot_max <= cwd_len - initial_cwd_len) |
| 23439 | { |
| 23440 | if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len) |
| 23441 | break; |
| 23442 | c = getcwd (buf, cwd_len + 1); |
| 23443 | if (!c) |
| 23444 | { |
| 23445 | if (! (errno == ERANGE || errno == ENOENT |
| 23446 | || is_ENAMETOOLONG (errno))) |
| 23447 | { |
| 23448 | fail = 22; |
| 23449 | break; |
| 23450 | } |
| 23451 | if (AT_FDCWD || errno == ERANGE || errno == ENOENT) |
| 23452 | { |
| 23453 | fail = 12; |
| 23454 | break; |
| 23455 | } |
| 23456 | } |
| 23457 | } |
| 23458 | |
| 23459 | if (c && strlen (c) != cwd_len) |
| 23460 | { |
| 23461 | fail = 23; |
| 23462 | break; |
| 23463 | } |
| 23464 | ++n_chdirs; |
| 23465 | } |
| 23466 | |
| 23467 | /* Leaving behind such a deep directory is not polite. |
| 23468 | So clean up here, right away, even though the driving |
| 23469 | shell script would also clean up. */ |
| 23470 | { |
| 23471 | size_t i; |
| 23472 | |
| 23473 | /* Try rmdir first, in case the chdir failed. */ |
| 23474 | rmdir (DIR_NAME); |
| 23475 | for (i = 0; i <= n_chdirs; i++) |
| 23476 | { |
| 23477 | if (chdir ("..") < 0) |
| 23478 | break; |
| 23479 | if (rmdir (DIR_NAME) != 0) |
| 23480 | break; |
| 23481 | } |
| 23482 | } |
| 23483 | |
| 23484 | exit (fail); |
| 23485 | #endif |
| 23486 | } |
| 23487 | |
| 23488 | _ACEOF |
| 23489 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 23490 | then : |
| 23491 | gl_cv_func_getcwd_path_max=yes |
| 23492 | else $as_nop |
| 23493 | case $? in |
| 23494 | 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';; |
| 23495 | 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';; |
| 23496 | 32) gl_cv_func_getcwd_path_max='yes, but with shorter paths';; |
| 23497 | *) gl_cv_func_getcwd_path_max=no;; |
| 23498 | esac |
| 23499 | fi |
| 23500 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23501 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23502 | fi |
| 23503 | |
| 23504 | |
| 23505 | fi |
| 23506 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5 |
| 23507 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getcwd_path_max" >&6; } |
| 23508 | |
| 23509 | case "$gl_cv_func_getcwd_null" in |
| 23510 | *yes) |
| 23511 | |
| 23512 | |
| 23513 | |
| 23514 | |
| 23515 | |
| 23516 | |
| 23517 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 |
| 23518 | printfscip-shell system . . printf. %s "checking for getpagesize... " >&6; } |
| 23519 | if testscip-shell system . . test. ${gl_cv_func_getpagesize+y} |
| 23520 | then : |
| 23521 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 23522 | else $as_nop |
| 23523 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23524 | /* end confdefs.h. */ |
| 23525 | #include <unistd.h> |
| 23526 | int |
| 23527 | main (void) |
| 23528 | { |
| 23529 | return getpagesize(); |
| 23530 | ; |
| 23531 | return 0; |
| 23532 | } |
| 23533 | |
| 23534 | _ACEOF |
| 23535 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 23536 | then : |
| 23537 | gl_cv_func_getpagesize=yes |
| 23538 | else $as_nop |
| 23539 | gl_cv_func_getpagesize=no |
| 23540 | fi |
| 23541 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23542 | conftest$ac_exeext conftest.$ac_ext |
| 23543 | |
| 23544 | fi |
| 23545 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5 |
| 23546 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getpagesize" >&6; } |
| 23547 | |
| 23548 | if testscip-shell system . . test. $gl_cv_func_getpagesize = yes; then |
| 23549 | |
| 23550 | printfscip-shell system . . printf. "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
| 23551 | |
| 23552 | fi |
| 23553 | |
| 23554 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5 |
| 23555 | printfscip-shell system . . printf. %s "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; } |
| 23556 | if testscip-shell system . . test. ${gl_cv_func_getcwd_succeeds_beyond_4k+y} |
| 23557 | then : |
| 23558 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 23559 | else $as_nop |
| 23560 | # Remove any remnants of a previous test. |
| 23561 | rmscip-shell system . . rm. -rf confdir-14B--- |
| 23562 | # Arrange for deletion of the temporary directory this test creates. |
| 23563 | ac_clean_files="$ac_clean_files confdir-14B---" |
| 23564 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 23565 | then : |
| 23566 | case "$host_os" in |
| 23567 | # Guess no otherwise, even on glibc systems and musl systems. |
| 23568 | *) gl_cv_func_getcwd_succeeds_beyond_4k="guessing no" |
| 23569 | esac |
| 23570 | |
| 23571 | else $as_nop |
| 23572 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23573 | /* end confdefs.h. */ |
| 23574 | |
| 23575 | #include <errno.h> |
| 23576 | #include <stdlib.h> |
| 23577 | #if HAVE_UNISTD_H |
| 23578 | # include <unistd.h> |
| 23579 | #else /* on Windows with MSVC */ |
| 23580 | # include <direct.h> |
| 23581 | #endif |
| 23582 | #include <string.h> |
| 23583 | #include <sys/stat.h> |
| 23584 | |
| 23585 | |
| 23586 | /* Arrange to define PATH_MAX, like "pathmax.h" does. */ |
| 23587 | #if HAVE_UNISTD_H |
| 23588 | # include <unistd.h> |
| 23589 | #endif |
| 23590 | #include <limits.h> |
| 23591 | #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN |
| 23592 | # include <sys/param.h> |
| 23593 | #endif |
| 23594 | #if !defined PATH_MAX && defined MAXPATHLEN |
| 23595 | # define PATH_MAX MAXPATHLEN |
| 23596 | #endif |
| 23597 | #ifdef __hpux |
| 23598 | # undef PATH_MAX |
| 23599 | # define PATH_MAX 1024 |
| 23600 | #endif |
| 23601 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 23602 | # undef PATH_MAX |
| 23603 | # define PATH_MAX 260 |
| 23604 | #endif |
| 23605 | |
| 23606 | |
| 23607 | |
| 23608 | $gl_mda_defines |
| 23609 | |
| 23610 | |
| 23611 | #ifndef S_IRWXU |
| 23612 | # define S_IRWXU 0700 |
| 23613 | #endif |
| 23614 | |
| 23615 | /* FIXME: skip the run-test altogether on systems without getpagesize. */ |
| 23616 | #if ! HAVE_GETPAGESIZE |
| 23617 | # define getpagesize() 0 |
| 23618 | #endif |
| 23619 | |
| 23620 | /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than |
| 23621 | the 16kB pagesize on ia64 linux. Those conditions make the code below |
| 23622 | trigger a bug in glibc's getcwd implementation before 2.4.90-10. */ |
| 23623 | #define TARGET_LEN (5 * 1024) |
| 23624 | |
| 23625 | int |
| 23626 | main () |
| 23627 | { |
| 23628 | char *cwd; |
| 23629 | size_t initial_cwd_len; |
| 23630 | int fail = 0; |
| 23631 | |
| 23632 | /* The bug is triggered when PATH_MAX < getpagesize (), so skip |
| 23633 | this relatively expensive and invasive test if that's not true. */ |
| 23634 | #ifdef PATH_MAX |
| 23635 | int bug_possible = PATH_MAX < getpagesize (); |
| 23636 | #else |
| 23637 | int bug_possible = 0; |
| 23638 | #endif |
| 23639 | if (! bug_possible) |
| 23640 | return 0; |
| 23641 | |
| 23642 | cwd = getcwd (NULL, 0); |
| 23643 | if (cwd == NULL) |
| 23644 | return 2; |
| 23645 | |
| 23646 | initial_cwd_len = strlen (cwd); |
| 23647 | free (cwd); |
| 23648 | |
| 23649 | if (1) |
| 23650 | { |
| 23651 | static char const dir_name[] = "confdir-14B---"; |
| 23652 | size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len) |
| 23653 | / sizeof dir_name); |
| 23654 | size_t d; |
| 23655 | for (d = 0; d < desired_depth; d++) |
| 23656 | { |
| 23657 | if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0) |
| 23658 | { |
| 23659 | if (! (errno == ERANGE || errno == ENAMETOOLONG |
| 23660 | || errno == ENOENT)) |
| 23661 | fail = 3; /* Unable to construct deep hierarchy. */ |
| 23662 | break; |
| 23663 | } |
| 23664 | } |
| 23665 | |
| 23666 | /* If libc has the bug in question, this invocation of getcwd |
| 23667 | results in a failed assertion. */ |
| 23668 | cwd = getcwd (NULL, 0); |
| 23669 | if (cwd == NULL) |
| 23670 | fail = 4; /* getcwd didn't assert, but it failed for a long name |
| 23671 | where the answer could have been learned. */ |
| 23672 | free (cwd); |
| 23673 | |
| 23674 | /* Call rmdir first, in case the above chdir failed. */ |
| 23675 | rmdir (dir_name); |
| 23676 | while (0 < d--) |
| 23677 | { |
| 23678 | if (chdir ("..") < 0) |
| 23679 | { |
| 23680 | fail = 5; |
| 23681 | break; |
| 23682 | } |
| 23683 | rmdir (dir_name); |
| 23684 | } |
| 23685 | } |
| 23686 | |
| 23687 | return fail; |
| 23688 | } |
| 23689 | |
| 23690 | _ACEOF |
| 23691 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 23692 | then : |
| 23693 | gl_cv_func_getcwd_succeeds_beyond_4k=yes |
| 23694 | else $as_nop |
| 23695 | ret=$? |
| 23696 | if testscip-shell system . . test. $ret -ge 128 || testscip-shell system . . test. $ret = 4; then |
| 23697 | gl_cv_func_getcwd_succeeds_beyond_4k=no |
| 23698 | else |
| 23699 | gl_cv_func_getcwd_succeeds_beyond_4k=yes |
| 23700 | fi |
| 23701 | |
| 23702 | fi |
| 23703 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23704 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23705 | fi |
| 23706 | |
| 23707 | |
| 23708 | fi |
| 23709 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5 |
| 23710 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; } |
| 23711 | case "$gl_cv_func_getcwd_succeeds_beyond_4k" in |
| 23712 | *no) |
| 23713 | gl_abort_bug=yes |
| 23714 | ;; |
| 23715 | *) |
| 23716 | |
| 23717 | ;; |
| 23718 | esac |
| 23719 | |
| 23720 | ;; |
| 23721 | esac |
| 23722 | ;; |
| 23723 | esac |
| 23724 | case "$gl_cv_func_getcwd_path_max" in |
| 23725 | *"no" | *"no, it has the AIX bug") ;; |
| 23726 | *) |
| 23727 | |
| 23728 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h |
| 23729 | |
| 23730 | ;; |
| 23731 | esac |
| 23732 | case "$gl_cv_func_getcwd_path_max" in |
| 23733 | *"no, but it is partly working") |
| 23734 | |
| 23735 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h |
| 23736 | |
| 23737 | ;; |
| 23738 | *"yes, but with shorter paths") |
| 23739 | |
| 23740 | printfscip-shell system . . printf. "%s\n" "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h |
| 23741 | |
| 23742 | ;; |
| 23743 | esac |
| 23744 | |
| 23745 | if { case "$gl_cv_func_getcwd_null" in *yes) falsescip-shell system . . false.;; *) truescip-shell system . . true.;; esac; } \ |
| 23746 | || testscip-shell system . . test. $gl_cv_func_getcwd_posix_signature != yes \ |
| 23747 | || { case "$gl_cv_func_getcwd_path_max" in *yes*) falsescip-shell system . . false.;; *) truescip-shell system . . true.;; esac; } \ |
| 23748 | || testscip-shell system . . test. $gl_abort_bug = yes; then |
| 23749 | REPLACE_GETCWD=1 |
| 23750 | fi |
| 23751 | |
| 23752 | |
| 23753 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 23754 | GL_COND_OBJ_GETCWD_TRUE= |
| 23755 | GL_COND_OBJ_GETCWD_FALSE='#' |
| 23756 | else |
| 23757 | GL_COND_OBJ_GETCWD_TRUE='#' |
| 23758 | GL_COND_OBJ_GETCWD_FALSE= |
| 23759 | fi |
| 23760 | : |
| 23761 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETCWD_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETCWD_FALSE}"; then |
| 23762 | GL_COND_OBJ_GETCWD_TRUE='#' |
| 23763 | GL_COND_OBJ_GETCWD_FALSE='#' |
| 23764 | fi |
| 23765 | |
| 23766 | if testscip-shell system . . test. -z "$GL_COND_OBJ_GETCWD_TRUE"; then : |
| 23767 | |
| 23768 | |
| 23769 | |
| 23770 | |
| 23771 | : |
| 23772 | |
| 23773 | |
| 23774 | fi |
| 23775 | |
| 23776 | |
| 23777 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_GETCWD 1" >>confdefs.h |
| 23778 | |
| 23779 | |
| 23780 | |
| 23781 | |
| 23782 | |
| 23783 | |
| 23784 | |
| 23785 | |
| 23786 | |
| 23787 | |
| 23788 | |
| 23789 | GL_GNULIB_GETCWD=1 |
| 23790 | |
| 23791 | |
| 23792 | |
| 23793 | |
| 23794 | |
| 23795 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h |
| 23796 | |
| 23797 | |
| 23798 | |
| 23799 | |
| 23800 | |
| 23801 | |
| 23802 | |
| 23803 | |
| 23804 | |
| 23805 | if testscip-shell system . . test. $ac_cv_have_decl_getlogin_r = no; then |
| 23806 | HAVE_DECL_GETLOGIN_R=0 |
| 23807 | fi |
| 23808 | |
| 23809 | |
| 23810 | if testscip-shell system . . test. $ac_cv_func_getlogin_r = no; then |
| 23811 | HAVE_GETLOGIN_R=0 |
| 23812 | else |
| 23813 | HAVE_GETLOGIN_R=1 |
| 23814 | |
| 23815 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5 |
| 23816 | printfscip-shell system . . printf. %s "checking whether getlogin_r works with small buffers... " >&6; } |
| 23817 | if testscip-shell system . . test. ${gl_cv_func_getlogin_r_works+y} |
| 23818 | then : |
| 23819 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 23820 | else $as_nop |
| 23821 | |
| 23822 | case "$host_os" in |
| 23823 | # Guess no on Mac OS X, OSF/1. |
| 23824 | darwin* | osf*) gl_cv_func_getlogin_r_works="guessing no" ;; |
| 23825 | # Guess yes otherwise. |
| 23826 | *) gl_cv_func_getlogin_r_works="guessing yes" ;; |
| 23827 | esac |
| 23828 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 23829 | then : |
| 23830 | : |
| 23831 | else $as_nop |
| 23832 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23833 | /* end confdefs.h. */ |
| 23834 | |
| 23835 | #include <stddef.h> |
| 23836 | #include <string.h> |
| 23837 | #include <unistd.h> |
| 23838 | #if !HAVE_DECL_GETLOGIN_R |
| 23839 | extern |
| 23840 | # ifdef __cplusplus |
| 23841 | "C" |
| 23842 | # endif |
| 23843 | int getlogin_r (char *, size_t); |
| 23844 | #endif |
| 23845 | int |
| 23846 | main (void) |
| 23847 | { |
| 23848 | int result = 0; |
| 23849 | char buf[100]; |
| 23850 | |
| 23851 | if (getlogin_r (buf, 0) == 0) |
| 23852 | result |= 1; |
| 23853 | if (getlogin_r (buf, 1) == 0) |
| 23854 | result |= 2; |
| 23855 | if (getlogin_r (buf, 100) == 0) |
| 23856 | { |
| 23857 | size_t n = strlen (buf); |
| 23858 | if (getlogin_r (buf, n) == 0) |
| 23859 | result |= 4; |
| 23860 | } |
| 23861 | return result; |
| 23862 | } |
| 23863 | _ACEOF |
| 23864 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 23865 | then : |
| 23866 | gl_cv_func_getlogin_r_works=yes |
| 23867 | else $as_nop |
| 23868 | gl_cv_func_getlogin_r_works=no |
| 23869 | fi |
| 23870 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23871 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23872 | fi |
| 23873 | |
| 23874 | |
| 23875 | fi |
| 23876 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5 |
| 23877 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getlogin_r_works" >&6; } |
| 23878 | case "$gl_cv_func_getlogin_r_works" in |
| 23879 | *yes) ;; |
| 23880 | *) REPLACE_GETLOGIN_R=1 ;; |
| 23881 | esac |
| 23882 | fi |
| 23883 | |
| 23884 | |
| 23885 | if testscip-shell system . . test. $HAVE_GETLOGIN_R = 0 || testscip-shell system . . test. $REPLACE_GETLOGIN_R = 1; then |
| 23886 | GL_COND_OBJ_GETLOGIN_R_TRUE= |
| 23887 | GL_COND_OBJ_GETLOGIN_R_FALSE='#' |
| 23888 | else |
| 23889 | GL_COND_OBJ_GETLOGIN_R_TRUE='#' |
| 23890 | GL_COND_OBJ_GETLOGIN_R_FALSE= |
| 23891 | fi |
| 23892 | : |
| 23893 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETLOGIN_R_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETLOGIN_R_FALSE}"; then |
| 23894 | GL_COND_OBJ_GETLOGIN_R_TRUE='#' |
| 23895 | GL_COND_OBJ_GETLOGIN_R_FALSE='#' |
| 23896 | fi |
| 23897 | |
| 23898 | if testscip-shell system . . test. -z "$GL_COND_OBJ_GETLOGIN_R_TRUE"; then : |
| 23899 | |
| 23900 | |
| 23901 | |
| 23902 | |
| 23903 | |
| 23904 | fi |
| 23905 | |
| 23906 | |
| 23907 | |
| 23908 | |
| 23909 | |
| 23910 | |
| 23911 | |
| 23912 | |
| 23913 | |
| 23914 | GL_GNULIB_GETLOGIN_R=1 |
| 23915 | |
| 23916 | |
| 23917 | |
| 23918 | |
| 23919 | |
| 23920 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h |
| 23921 | |
| 23922 | |
| 23923 | |
| 23924 | |
| 23925 | |
| 23926 | |
| 23927 | |
| 23928 | |
| 23929 | |
| 23930 | |
| 23931 | |
| 23932 | |
| 23933 | |
| 23934 | REPLACE_GETOPT=0 |
| 23935 | if testscip-shell system . . test. -n "$gl_replace_getopt"; then |
| 23936 | REPLACE_GETOPT=1 |
| 23937 | fi |
| 23938 | |
| 23939 | GL_GENERATE_GETOPT_H=false |
| 23940 | GL_GENERATE_GETOPT_CDEFS_H=false |
| 23941 | if testscip-shell system . . test. $REPLACE_GETOPT = 1; then |
| 23942 | |
| 23943 | |
| 23944 | if testscip-shell system . . test. $ac_cv_header_sys_cdefs_h = yes; then |
| 23945 | HAVE_SYS_CDEFS_H=1 |
| 23946 | else |
| 23947 | HAVE_SYS_CDEFS_H=0 |
| 23948 | fi |
| 23949 | |
| 23950 | |
| 23951 | |
| 23952 | printfscip-shell system . . printf. "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 23953 | |
| 23954 | GL_GENERATE_GETOPT_H=true |
| 23955 | GL_GENERATE_GETOPT_CDEFS_H=true |
| 23956 | |
| 23957 | fi |
| 23958 | |
| 23959 | |
| 23960 | |
| 23961 | |
| 23962 | |
| 23963 | case "$GL_GENERATE_GETOPT_H" in |
| 23964 | false) GETOPT_H='' ;; |
| 23965 | true) |
| 23966 | if testscip-shell system . . test. -z "$GETOPT_H"; then |
| 23967 | GETOPT_H="${gl_source_base_prefix}getopt.h" |
| 23968 | fi |
| 23969 | ;; |
| 23970 | *) echoscip-shell system . . echo. "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;; |
| 23971 | esac |
| 23972 | |
| 23973 | |
| 23974 | if $GL_GENERATE_GETOPT_H; then |
| 23975 | GL_GENERATE_GETOPT_H_TRUE= |
| 23976 | GL_GENERATE_GETOPT_H_FALSE='#' |
| 23977 | else |
| 23978 | GL_GENERATE_GETOPT_H_TRUE='#' |
| 23979 | GL_GENERATE_GETOPT_H_FALSE= |
| 23980 | fi |
| 23981 | : |
| 23982 | if testscip-shell system . . test. -z "${GL_GENERATE_GETOPT_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_GETOPT_H_FALSE}"; then |
| 23983 | GL_GENERATE_GETOPT_H_TRUE='#' |
| 23984 | GL_GENERATE_GETOPT_H_FALSE='#' |
| 23985 | fi |
| 23986 | |
| 23987 | |
| 23988 | |
| 23989 | |
| 23990 | |
| 23991 | |
| 23992 | |
| 23993 | |
| 23994 | |
| 23995 | case "$GL_GENERATE_GETOPT_CDEFS_H" in |
| 23996 | false) GETOPT_CDEFS_H='' ;; |
| 23997 | true) |
| 23998 | if testscip-shell system . . test. -z "$GETOPT_CDEFS_H"; then |
| 23999 | GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h" |
| 24000 | fi |
| 24001 | ;; |
| 24002 | *) echoscip-shell system . . echo. "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;; |
| 24003 | esac |
| 24004 | |
| 24005 | |
| 24006 | if $GL_GENERATE_GETOPT_CDEFS_H; then |
| 24007 | GL_GENERATE_GETOPT_CDEFS_H_TRUE= |
| 24008 | GL_GENERATE_GETOPT_CDEFS_H_FALSE='#' |
| 24009 | else |
| 24010 | GL_GENERATE_GETOPT_CDEFS_H_TRUE='#' |
| 24011 | GL_GENERATE_GETOPT_CDEFS_H_FALSE= |
| 24012 | fi |
| 24013 | : |
| 24014 | if testscip-shell system . . test. -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then |
| 24015 | GL_GENERATE_GETOPT_CDEFS_H_TRUE='#' |
| 24016 | GL_GENERATE_GETOPT_CDEFS_H_FALSE='#' |
| 24017 | fi |
| 24018 | |
| 24019 | |
| 24020 | |
| 24021 | |
| 24022 | |
| 24023 | |
| 24024 | |
| 24025 | if testscip-shell system . . test. $REPLACE_GETOPT = 1; then |
| 24026 | GL_COND_OBJ_GETOPT_TRUE= |
| 24027 | GL_COND_OBJ_GETOPT_FALSE='#' |
| 24028 | else |
| 24029 | GL_COND_OBJ_GETOPT_TRUE='#' |
| 24030 | GL_COND_OBJ_GETOPT_FALSE= |
| 24031 | fi |
| 24032 | : |
| 24033 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETOPT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETOPT_FALSE}"; then |
| 24034 | GL_COND_OBJ_GETOPT_TRUE='#' |
| 24035 | GL_COND_OBJ_GETOPT_FALSE='#' |
| 24036 | fi |
| 24037 | |
| 24038 | if testscip-shell system . . test. -z "$GL_COND_OBJ_GETOPT_TRUE"; then : |
| 24039 | |
| 24040 | |
| 24041 | |
| 24042 | |
| 24043 | |
| 24044 | |
| 24045 | |
| 24046 | GL_GNULIB_UNISTD_H_GETOPT=1 |
| 24047 | |
| 24048 | |
| 24049 | |
| 24050 | fi |
| 24051 | |
| 24052 | |
| 24053 | |
| 24054 | |
| 24055 | |
| 24056 | |
| 24057 | |
| 24058 | |
| 24059 | |
| 24060 | GL_GNULIB_GETOPT_POSIX=1 |
| 24061 | |
| 24062 | |
| 24063 | |
| 24064 | |
| 24065 | |
| 24066 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h |
| 24067 | |
| 24068 | |
| 24069 | |
| 24070 | |
| 24071 | |
| 24072 | |
| 24073 | ac_found=0 |
| 24074 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> |
| 24075 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 24076 | if testscip-shell system . . test. "x$ac_cv_have_decl_program_invocation_name" = xyes |
| 24077 | then : |
| 24078 | ac_have_decl=1 |
| 24079 | else $as_nop |
| 24080 | ac_have_decl=0 |
| 24081 | fi |
| 24082 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h |
| 24083 | if testscip-shell system . . test. $ac_have_decl = 1 |
| 24084 | then : |
| 24085 | ac_found=1 |
| 24086 | fi |
| 24087 | |
| 24088 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> |
| 24089 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 24090 | if testscip-shell system . . test. "x$ac_cv_have_decl_program_invocation_short_name" = xyes |
| 24091 | then : |
| 24092 | ac_have_decl=1 |
| 24093 | else $as_nop |
| 24094 | ac_have_decl=0 |
| 24095 | fi |
| 24096 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h |
| 24097 | if testscip-shell system . . test. $ac_have_decl = 1 |
| 24098 | then : |
| 24099 | ac_found=1 |
| 24100 | fi |
| 24101 | |
| 24102 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> |
| 24103 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 24104 | if testscip-shell system . . test. "x$ac_cv_have_decl___argv" = xyes |
| 24105 | then : |
| 24106 | ac_have_decl=1 |
| 24107 | else $as_nop |
| 24108 | ac_have_decl=0 |
| 24109 | fi |
| 24110 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h |
| 24111 | if testscip-shell system . . test. $ac_have_decl = 1 |
| 24112 | then : |
| 24113 | ac_found=1 |
| 24114 | fi |
| 24115 | |
| 24116 | |
| 24117 | # Incur the cost of this test only if none of the above worked. |
| 24118 | if testscip-shell system . . test. $ac_found = 0; then |
| 24119 | # On OpenBSD 5.1, using the global __progname variable appears to be |
| 24120 | # the only way to implement getprogname. |
| 24121 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 |
| 24122 | printfscip-shell system . . printf. %s "checking whether __progname is defined in default libraries... " >&6; } |
| 24123 | if testscip-shell system . . test. ${gl_cv_var___progname+y} |
| 24124 | then : |
| 24125 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24126 | else $as_nop |
| 24127 | |
| 24128 | gl_cv_var___progname= |
| 24129 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24130 | /* end confdefs.h. */ |
| 24131 | extern char *__progname; |
| 24132 | int |
| 24133 | main (void) |
| 24134 | { |
| 24135 | return *__progname; |
| 24136 | |
| 24137 | ; |
| 24138 | return 0; |
| 24139 | } |
| 24140 | _ACEOF |
| 24141 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 24142 | then : |
| 24143 | gl_cv_var___progname=yes |
| 24144 | |
| 24145 | fi |
| 24146 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24147 | conftest$ac_exeext conftest.$ac_ext |
| 24148 | |
| 24149 | |
| 24150 | fi |
| 24151 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 |
| 24152 | printfscip-shell system . . printf. "%s\n" "$gl_cv_var___progname" >&6; } |
| 24153 | if testscip-shell system . . test. "$gl_cv_var___progname" = yes; then |
| 24154 | |
| 24155 | printfscip-shell system . . printf. "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h |
| 24156 | |
| 24157 | fi |
| 24158 | fi |
| 24159 | |
| 24160 | |
| 24161 | |
| 24162 | |
| 24163 | |
| 24164 | |
| 24165 | |
| 24166 | |
| 24167 | |
| 24168 | |
| 24169 | |
| 24170 | |
| 24171 | |
| 24172 | |
| 24173 | |
| 24174 | gl_gettimeofday_timezone=void |
| 24175 | if testscip-shell system . . test. $ac_cv_func_gettimeofday != yes; then |
| 24176 | HAVE_GETTIMEOFDAY=0 |
| 24177 | else |
| 24178 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 |
| 24179 | printfscip-shell system . . printf. %s "checking for gettimeofday with POSIX signature... " >&6; } |
| 24180 | if testscip-shell system . . test. ${gl_cv_func_gettimeofday_posix_signature+y} |
| 24181 | then : |
| 24182 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24183 | else $as_nop |
| 24184 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24185 | /* end confdefs.h. */ |
| 24186 | #include <sys/time.h> |
| 24187 | struct timeval c; |
| 24188 | int gettimeofday (struct timeval *restrict, void *restrict); |
| 24189 | |
| 24190 | int |
| 24191 | main (void) |
| 24192 | { |
| 24193 | /* glibc uses struct timezone * rather than the POSIX void * |
| 24194 | if _GNU_SOURCE is defined. However, since the only portable |
| 24195 | use of gettimeofday uses NULL as the second parameter, and |
| 24196 | since the glibc definition is actually more typesafe, it is |
| 24197 | not worth wrapping this to get a compliant signature. */ |
| 24198 | int (*f) (struct timeval *restrict, void *restrict) |
| 24199 | = gettimeofday; |
| 24200 | int x = f (&c, 0); |
| 24201 | return !(x | c.tv_sec | c.tv_usec); |
| 24202 | |
| 24203 | ; |
| 24204 | return 0; |
| 24205 | } |
| 24206 | _ACEOF |
| 24207 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 24208 | then : |
| 24209 | gl_cv_func_gettimeofday_posix_signature=yes |
| 24210 | else $as_nop |
| 24211 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24212 | /* end confdefs.h. */ |
| 24213 | #include <sys/time.h> |
| 24214 | int gettimeofday (struct timeval *restrict, struct timezone *restrict); |
| 24215 | |
| 24216 | int |
| 24217 | main (void) |
| 24218 | { |
| 24219 | |
| 24220 | ; |
| 24221 | return 0; |
| 24222 | } |
| 24223 | _ACEOF |
| 24224 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 24225 | then : |
| 24226 | gl_cv_func_gettimeofday_posix_signature=almost |
| 24227 | else $as_nop |
| 24228 | gl_cv_func_gettimeofday_posix_signature=no |
| 24229 | fi |
| 24230 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24231 | fi |
| 24232 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24233 | fi |
| 24234 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 |
| 24235 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; } |
| 24236 | if testscip-shell system . . test. $gl_cv_func_gettimeofday_posix_signature = almost; then |
| 24237 | gl_gettimeofday_timezone='struct timezone' |
| 24238 | elif testscip-shell system . . test. $gl_cv_func_gettimeofday_posix_signature != yes; then |
| 24239 | REPLACE_GETTIMEOFDAY=1 |
| 24240 | fi |
| 24241 | if testscip-shell system . . test. $REPLACE_STRUCT_TIMEVAL = 1; then |
| 24242 | REPLACE_GETTIMEOFDAY=1 |
| 24243 | fi |
| 24244 | case "$host_os" in |
| 24245 | mingw*) REPLACE_GETTIMEOFDAY=1 ;; |
| 24246 | esac |
| 24247 | fi |
| 24248 | |
| 24249 | printfscip-shell system . . printf. "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h |
| 24250 | |
| 24251 | |
| 24252 | |
| 24253 | if testscip-shell system . . test. $HAVE_GETTIMEOFDAY = 0 || testscip-shell system . . test. $REPLACE_GETTIMEOFDAY = 1; then |
| 24254 | GL_COND_OBJ_GETTIMEOFDAY_TRUE= |
| 24255 | GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' |
| 24256 | else |
| 24257 | GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' |
| 24258 | GL_COND_OBJ_GETTIMEOFDAY_FALSE= |
| 24259 | fi |
| 24260 | : |
| 24261 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then |
| 24262 | GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' |
| 24263 | GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' |
| 24264 | fi |
| 24265 | |
| 24266 | if testscip-shell system . . test. -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then : |
| 24267 | |
| 24268 | : |
| 24269 | |
| 24270 | fi |
| 24271 | |
| 24272 | |
| 24273 | |
| 24274 | |
| 24275 | |
| 24276 | |
| 24277 | |
| 24278 | |
| 24279 | |
| 24280 | GL_GNULIB_GETTIMEOFDAY=1 |
| 24281 | |
| 24282 | |
| 24283 | |
| 24284 | |
| 24285 | |
| 24286 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h |
| 24287 | |
| 24288 | |
| 24289 | |
| 24290 | |
| 24291 | |
| 24292 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 |
| 24293 | printfscip-shell system . . printf. %s "checking whether the compiler generally respects inline... " >&6; } |
| 24294 | if testscip-shell system . . test. ${gl_cv_c_inline_effective+y} |
| 24295 | then : |
| 24296 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24297 | else $as_nop |
| 24298 | if testscip-shell system . . test. $ac_cv_c_inline = no; then |
| 24299 | gl_cv_c_inline_effective=no |
| 24300 | else |
| 24301 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24302 | /* end confdefs.h. */ |
| 24303 | |
| 24304 | int |
| 24305 | main (void) |
| 24306 | { |
| 24307 | #ifdef __NO_INLINE__ |
| 24308 | #error "inline is not effective" |
| 24309 | #endif |
| 24310 | ; |
| 24311 | return 0; |
| 24312 | } |
| 24313 | _ACEOF |
| 24314 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 24315 | then : |
| 24316 | gl_cv_c_inline_effective=yes |
| 24317 | else $as_nop |
| 24318 | gl_cv_c_inline_effective=no |
| 24319 | fi |
| 24320 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24321 | fi |
| 24322 | |
| 24323 | fi |
| 24324 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 |
| 24325 | printfscip-shell system . . printf. "%s\n" "$gl_cv_c_inline_effective" >&6; } |
| 24326 | if testscip-shell system . . test. $gl_cv_c_inline_effective = yes; then |
| 24327 | |
| 24328 | printfscip-shell system . . printf. "%s\n" "#define HAVE_INLINE 1" >>confdefs.h |
| 24329 | |
| 24330 | fi |
| 24331 | |
| 24332 | |
| 24333 | |
| 24334 | |
| 24335 | |
| 24336 | |
| 24337 | |
| 24338 | |
| 24339 | |
| 24340 | |
| 24341 | |
| 24342 | |
| 24343 | |
| 24344 | |
| 24345 | case "$GL_GENERATE_LIMITS_H" in |
| 24346 | false) LIMITS_H='' ;; |
| 24347 | true) |
| 24348 | if testscip-shell system . . test. -z "$LIMITS_H"; then |
| 24349 | LIMITS_H="${gl_source_base_prefix}limits.h" |
| 24350 | fi |
| 24351 | ;; |
| 24352 | *) echoscip-shell system . . echo. "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; |
| 24353 | esac |
| 24354 | |
| 24355 | |
| 24356 | if $GL_GENERATE_LIMITS_H; then |
| 24357 | GL_GENERATE_LIMITS_H_TRUE= |
| 24358 | GL_GENERATE_LIMITS_H_FALSE='#' |
| 24359 | else |
| 24360 | GL_GENERATE_LIMITS_H_TRUE='#' |
| 24361 | GL_GENERATE_LIMITS_H_FALSE= |
| 24362 | fi |
| 24363 | : |
| 24364 | if testscip-shell system . . test. -z "${GL_GENERATE_LIMITS_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_LIMITS_H_FALSE}"; then |
| 24365 | GL_GENERATE_LIMITS_H_TRUE='#' |
| 24366 | GL_GENERATE_LIMITS_H_FALSE='#' |
| 24367 | fi |
| 24368 | |
| 24369 | |
| 24370 | |
| 24371 | |
| 24372 | |
| 24373 | |
| 24374 | |
| 24375 | |
| 24376 | |
| 24377 | |
| 24378 | if testscip-shell system . . test. $ac_cv_func_lstat = yes; then |
| 24379 | |
| 24380 | case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in |
| 24381 | solaris* | *no) |
| 24382 | REPLACE_LSTAT=1 |
| 24383 | ;; |
| 24384 | esac |
| 24385 | else |
| 24386 | HAVE_LSTAT=0 |
| 24387 | fi |
| 24388 | |
| 24389 | |
| 24390 | if testscip-shell system . . test. $REPLACE_LSTAT = 1; then |
| 24391 | GL_COND_OBJ_LSTAT_TRUE= |
| 24392 | GL_COND_OBJ_LSTAT_FALSE='#' |
| 24393 | else |
| 24394 | GL_COND_OBJ_LSTAT_TRUE='#' |
| 24395 | GL_COND_OBJ_LSTAT_FALSE= |
| 24396 | fi |
| 24397 | : |
| 24398 | if testscip-shell system . . test. -z "${GL_COND_OBJ_LSTAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_LSTAT_FALSE}"; then |
| 24399 | GL_COND_OBJ_LSTAT_TRUE='#' |
| 24400 | GL_COND_OBJ_LSTAT_FALSE='#' |
| 24401 | fi |
| 24402 | |
| 24403 | if testscip-shell system . . test. -z "$GL_COND_OBJ_LSTAT_TRUE"; then : |
| 24404 | |
| 24405 | : |
| 24406 | |
| 24407 | fi |
| 24408 | |
| 24409 | |
| 24410 | |
| 24411 | |
| 24412 | |
| 24413 | |
| 24414 | |
| 24415 | |
| 24416 | |
| 24417 | GL_GNULIB_LSTAT=1 |
| 24418 | |
| 24419 | |
| 24420 | |
| 24421 | |
| 24422 | |
| 24423 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h |
| 24424 | |
| 24425 | |
| 24426 | |
| 24427 | |
| 24428 | |
| 24429 | |
| 24430 | REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX" |
| 24431 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then |
| 24432 | |
| 24433 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 |
| 24434 | printfscip-shell system . . printf. %s "checking whether malloc (0) returns nonnull... " >&6; } |
| 24435 | if testscip-shell system . . test. ${ac_cv_func_malloc_0_nonnull+y} |
| 24436 | then : |
| 24437 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24438 | else $as_nop |
| 24439 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 24440 | then : |
| 24441 | case "$host_os" in |
| 24442 | # Guess yes on platforms where we know the result. |
| 24443 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ |
| 24444 | | gnu* | *-musl* | midnightbsd* \ |
| 24445 | | hpux* | solaris* | cygwin* | mingw* | msys* ) |
| 24446 | ac_cv_func_malloc_0_nonnull="guessing yes" ;; |
| 24447 | # If we don't know, obey --enable-cross-guesses. |
| 24448 | *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; |
| 24449 | esac |
| 24450 | |
| 24451 | else $as_nop |
| 24452 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24453 | /* end confdefs.h. */ |
| 24454 | #include <stdlib.h> |
| 24455 | |
| 24456 | int |
| 24457 | main (void) |
| 24458 | { |
| 24459 | void *p = malloc (0); |
| 24460 | int result = !p; |
| 24461 | free (p); |
| 24462 | return result; |
| 24463 | ; |
| 24464 | return 0; |
| 24465 | } |
| 24466 | |
| 24467 | _ACEOF |
| 24468 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 24469 | then : |
| 24470 | ac_cv_func_malloc_0_nonnull=yes |
| 24471 | else $as_nop |
| 24472 | ac_cv_func_malloc_0_nonnull=no |
| 24473 | fi |
| 24474 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24475 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24476 | fi |
| 24477 | |
| 24478 | |
| 24479 | fi |
| 24480 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
| 24481 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } |
| 24482 | case $ac_cv_func_malloc_0_nonnull in #( |
| 24483 | *yes) : |
| 24484 | ;; #( |
| 24485 | *) : |
| 24486 | REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;; |
| 24487 | esac |
| 24488 | |
| 24489 | fi |
| 24490 | |
| 24491 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then |
| 24492 | |
| 24493 | |
| 24494 | |
| 24495 | |
| 24496 | |
| 24497 | |
| 24498 | |
| 24499 | |
| 24500 | gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" |
| 24501 | |
| 24502 | fi |
| 24503 | |
| 24504 | |
| 24505 | |
| 24506 | |
| 24507 | |
| 24508 | |
| 24509 | |
| 24510 | |
| 24511 | |
| 24512 | GL_GNULIB_MALLOC_GNU=1 |
| 24513 | |
| 24514 | |
| 24515 | |
| 24516 | |
| 24517 | |
| 24518 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h |
| 24519 | |
| 24520 | |
| 24521 | |
| 24522 | |
| 24523 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 24524 | |
| 24525 | |
| 24526 | |
| 24527 | |
| 24528 | |
| 24529 | |
| 24530 | |
| 24531 | |
| 24532 | gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" |
| 24533 | |
| 24534 | fi |
| 24535 | |
| 24536 | |
| 24537 | |
| 24538 | |
| 24539 | |
| 24540 | |
| 24541 | |
| 24542 | |
| 24543 | |
| 24544 | GL_GNULIB_MALLOC_POSIX=1 |
| 24545 | |
| 24546 | |
| 24547 | |
| 24548 | |
| 24549 | |
| 24550 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h |
| 24551 | |
| 24552 | |
| 24553 | |
| 24554 | |
| 24555 | |
| 24556 | if testscip-shell system . . test. $REPLACE_MEMCHR = 1; then |
| 24557 | GL_COND_OBJ_MEMCHR_TRUE= |
| 24558 | GL_COND_OBJ_MEMCHR_FALSE='#' |
| 24559 | else |
| 24560 | GL_COND_OBJ_MEMCHR_TRUE='#' |
| 24561 | GL_COND_OBJ_MEMCHR_FALSE= |
| 24562 | fi |
| 24563 | : |
| 24564 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MEMCHR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then |
| 24565 | GL_COND_OBJ_MEMCHR_TRUE='#' |
| 24566 | GL_COND_OBJ_MEMCHR_FALSE='#' |
| 24567 | fi |
| 24568 | |
| 24569 | if testscip-shell system . . test. -z "$GL_COND_OBJ_MEMCHR_TRUE"; then : |
| 24570 | |
| 24571 | |
| 24572 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" |
| 24573 | if testscip-shell system . . test. "x$ac_cv_header_bp_sym_h" = xyes |
| 24574 | then : |
| 24575 | printfscip-shell system . . printf. "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h |
| 24576 | |
| 24577 | fi |
| 24578 | |
| 24579 | |
| 24580 | |
| 24581 | fi |
| 24582 | |
| 24583 | |
| 24584 | |
| 24585 | |
| 24586 | |
| 24587 | |
| 24588 | |
| 24589 | |
| 24590 | |
| 24591 | |
| 24592 | |
| 24593 | |
| 24594 | |
| 24595 | |
| 24596 | GL_GNULIB_MEMCHR=1 |
| 24597 | |
| 24598 | |
| 24599 | |
| 24600 | |
| 24601 | |
| 24602 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h |
| 24603 | |
| 24604 | |
| 24605 | |
| 24606 | |
| 24607 | |
| 24608 | |
| 24609 | |
| 24610 | |
| 24611 | |
| 24612 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "mempcpy" "ac_cv_func_mempcpy" |
| 24613 | if testscip-shell system . . test. "x$ac_cv_func_mempcpy" = xyes |
| 24614 | then : |
| 24615 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h |
| 24616 | |
| 24617 | fi |
| 24618 | |
| 24619 | if testscip-shell system . . test. $ac_cv_func_mempcpy = no; then |
| 24620 | HAVE_MEMPCPY=0 |
| 24621 | fi |
| 24622 | |
| 24623 | |
| 24624 | if testscip-shell system . . test. $HAVE_MEMPCPY = 0; then |
| 24625 | GL_COND_OBJ_MEMPCPY_TRUE= |
| 24626 | GL_COND_OBJ_MEMPCPY_FALSE='#' |
| 24627 | else |
| 24628 | GL_COND_OBJ_MEMPCPY_TRUE='#' |
| 24629 | GL_COND_OBJ_MEMPCPY_FALSE= |
| 24630 | fi |
| 24631 | : |
| 24632 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then |
| 24633 | GL_COND_OBJ_MEMPCPY_TRUE='#' |
| 24634 | GL_COND_OBJ_MEMPCPY_FALSE='#' |
| 24635 | fi |
| 24636 | |
| 24637 | if testscip-shell system . . test. -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then : |
| 24638 | |
| 24639 | |
| 24640 | : |
| 24641 | |
| 24642 | |
| 24643 | fi |
| 24644 | |
| 24645 | |
| 24646 | |
| 24647 | |
| 24648 | |
| 24649 | |
| 24650 | |
| 24651 | |
| 24652 | |
| 24653 | |
| 24654 | |
| 24655 | |
| 24656 | |
| 24657 | |
| 24658 | GL_GNULIB_MEMPCPY=1 |
| 24659 | |
| 24660 | |
| 24661 | |
| 24662 | |
| 24663 | |
| 24664 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h |
| 24665 | |
| 24666 | |
| 24667 | |
| 24668 | |
| 24669 | |
| 24670 | |
| 24671 | |
| 24672 | |
| 24673 | |
| 24674 | |
| 24675 | if testscip-shell system . . test. $ac_cv_func_mkstemp = yes; then |
| 24676 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5 |
| 24677 | printfscip-shell system . . printf. %s "checking for working mkstemp... " >&6; } |
| 24678 | if testscip-shell system . . test. ${gl_cv_func_working_mkstemp+y} |
| 24679 | then : |
| 24680 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24681 | else $as_nop |
| 24682 | |
| 24683 | mkdirscip-shell system . . mkdir. conftest.mkstemp |
| 24684 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 24685 | then : |
| 24686 | case "$host_os" in |
| 24687 | # Guess yes on glibc systems. |
| 24688 | *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;; |
| 24689 | # Guess yes on musl systems. |
| 24690 | *-musl*) gl_cv_func_working_mkstemp="guessing yes" ;; |
| 24691 | # Guess no on native Windows. |
| 24692 | mingw*) gl_cv_func_working_mkstemp="guessing no" ;; |
| 24693 | # If we don't know, obey --enable-cross-guesses. |
| 24694 | *) gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;; |
| 24695 | esac |
| 24696 | |
| 24697 | else $as_nop |
| 24698 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24699 | /* end confdefs.h. */ |
| 24700 | $ac_includes_default |
| 24701 | |
| 24702 | |
| 24703 | $gl_mda_defines |
| 24704 | |
| 24705 | int |
| 24706 | main (void) |
| 24707 | { |
| 24708 | int result = 0; |
| 24709 | int i; |
| 24710 | off_t large = (off_t) 4294967295u; |
| 24711 | if (large < 0) |
| 24712 | large = 2147483647; |
| 24713 | umask (0); |
| 24714 | for (i = 0; i < 70; i++) |
| 24715 | { |
| 24716 | char templ[] = "conftest.mkstemp/coXXXXXX"; |
| 24717 | int (*mkstemp_function) (char *) = mkstemp; |
| 24718 | int fd = mkstemp_function (templ); |
| 24719 | if (fd < 0) |
| 24720 | result |= 1; |
| 24721 | else |
| 24722 | { |
| 24723 | struct stat st; |
| 24724 | if (lseek (fd, large, SEEK_SET) != large) |
| 24725 | result |= 2; |
| 24726 | if (fstat (fd, &st) < 0) |
| 24727 | result |= 4; |
| 24728 | else if (st.st_mode & 0077) |
| 24729 | result |= 8; |
| 24730 | if (close (fd)) |
| 24731 | result |= 16; |
| 24732 | } |
| 24733 | } |
| 24734 | return result; |
| 24735 | ; |
| 24736 | return 0; |
| 24737 | } |
| 24738 | _ACEOF |
| 24739 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 24740 | then : |
| 24741 | gl_cv_func_working_mkstemp=yes |
| 24742 | else $as_nop |
| 24743 | gl_cv_func_working_mkstemp=no |
| 24744 | fi |
| 24745 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24746 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24747 | fi |
| 24748 | |
| 24749 | rmscip-shell system . . rm. -rf conftest.mkstemp |
| 24750 | |
| 24751 | fi |
| 24752 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5 |
| 24753 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_working_mkstemp" >&6; } |
| 24754 | case "$gl_cv_func_working_mkstemp" in |
| 24755 | *yes) ;; |
| 24756 | *) |
| 24757 | REPLACE_MKSTEMP=1 |
| 24758 | ;; |
| 24759 | esac |
| 24760 | else |
| 24761 | HAVE_MKSTEMP=0 |
| 24762 | fi |
| 24763 | |
| 24764 | |
| 24765 | if testscip-shell system . . test. $HAVE_MKSTEMP = 0 || testscip-shell system . . test. $REPLACE_MKSTEMP = 1; then |
| 24766 | GL_COND_OBJ_MKSTEMP_TRUE= |
| 24767 | GL_COND_OBJ_MKSTEMP_FALSE='#' |
| 24768 | else |
| 24769 | GL_COND_OBJ_MKSTEMP_TRUE='#' |
| 24770 | GL_COND_OBJ_MKSTEMP_FALSE= |
| 24771 | fi |
| 24772 | : |
| 24773 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MKSTEMP_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MKSTEMP_FALSE}"; then |
| 24774 | GL_COND_OBJ_MKSTEMP_TRUE='#' |
| 24775 | GL_COND_OBJ_MKSTEMP_FALSE='#' |
| 24776 | fi |
| 24777 | |
| 24778 | if testscip-shell system . . test. -z "$GL_COND_OBJ_MKSTEMP_TRUE"; then : |
| 24779 | |
| 24780 | |
| 24781 | |
| 24782 | |
| 24783 | fi |
| 24784 | |
| 24785 | |
| 24786 | |
| 24787 | |
| 24788 | |
| 24789 | |
| 24790 | |
| 24791 | |
| 24792 | |
| 24793 | GL_GNULIB_MKSTEMP=1 |
| 24794 | |
| 24795 | |
| 24796 | |
| 24797 | |
| 24798 | |
| 24799 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h |
| 24800 | |
| 24801 | |
| 24802 | |
| 24803 | |
| 24804 | |
| 24805 | if testscip-shell system . . test. $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 24806 | GL_COND_OBJ_MSVC_INVAL_TRUE= |
| 24807 | GL_COND_OBJ_MSVC_INVAL_FALSE='#' |
| 24808 | else |
| 24809 | GL_COND_OBJ_MSVC_INVAL_TRUE='#' |
| 24810 | GL_COND_OBJ_MSVC_INVAL_FALSE= |
| 24811 | fi |
| 24812 | : |
| 24813 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then |
| 24814 | GL_COND_OBJ_MSVC_INVAL_TRUE='#' |
| 24815 | GL_COND_OBJ_MSVC_INVAL_FALSE='#' |
| 24816 | fi |
| 24817 | |
| 24818 | |
| 24819 | |
| 24820 | if testscip-shell system . . test. $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 24821 | GL_COND_OBJ_MSVC_NOTHROW_TRUE= |
| 24822 | GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' |
| 24823 | else |
| 24824 | GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' |
| 24825 | GL_COND_OBJ_MSVC_NOTHROW_FALSE= |
| 24826 | fi |
| 24827 | : |
| 24828 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then |
| 24829 | GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' |
| 24830 | GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' |
| 24831 | fi |
| 24832 | |
| 24833 | |
| 24834 | |
| 24835 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h |
| 24836 | |
| 24837 | |
| 24838 | |
| 24839 | |
| 24840 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5 |
| 24841 | printfscip-shell system . . printf. %s "checking for obstacks that work with any size object... " >&6; } |
| 24842 | if testscip-shell system . . test. ${gl_cv_func_obstack+y} |
| 24843 | then : |
| 24844 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24845 | else $as_nop |
| 24846 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24847 | /* end confdefs.h. */ |
| 24848 | #include "obstack.h" |
| 24849 | void *obstack_chunk_alloc (size_t n) { return 0; } |
| 24850 | void obstack_chunk_free (void *p) { } |
| 24851 | /* Check that an internal function returns size_t, not int. */ |
| 24852 | size_t _obstack_memory_used (struct obstack *); |
| 24853 | |
| 24854 | int |
| 24855 | main (void) |
| 24856 | { |
| 24857 | struct obstack mem; |
| 24858 | obstack_init (&mem); |
| 24859 | obstack_free (&mem, 0); |
| 24860 | |
| 24861 | ; |
| 24862 | return 0; |
| 24863 | } |
| 24864 | _ACEOF |
| 24865 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 24866 | then : |
| 24867 | gl_cv_func_obstack=yes |
| 24868 | else $as_nop |
| 24869 | gl_cv_func_obstack=no |
| 24870 | fi |
| 24871 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24872 | conftest$ac_exeext conftest.$ac_ext |
| 24873 | fi |
| 24874 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_obstack" >&5 |
| 24875 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_obstack" >&6; } |
| 24876 | if testscip-shell system . . test. "$gl_cv_func_obstack" = yes; then |
| 24877 | |
| 24878 | printfscip-shell system . . printf. "%s\n" "#define HAVE_OBSTACK 1" >>confdefs.h |
| 24879 | |
| 24880 | fi |
| 24881 | |
| 24882 | |
| 24883 | if testscip-shell system . . test. "$gl_cv_func_obstack" != yes; then |
| 24884 | GL_COND_OBJ_OBSTACK_TRUE= |
| 24885 | GL_COND_OBJ_OBSTACK_FALSE='#' |
| 24886 | else |
| 24887 | GL_COND_OBJ_OBSTACK_TRUE='#' |
| 24888 | GL_COND_OBJ_OBSTACK_FALSE= |
| 24889 | fi |
| 24890 | : |
| 24891 | if testscip-shell system . . test. -z "${GL_COND_OBJ_OBSTACK_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_OBSTACK_FALSE}"; then |
| 24892 | GL_COND_OBJ_OBSTACK_TRUE='#' |
| 24893 | GL_COND_OBJ_OBSTACK_FALSE='#' |
| 24894 | fi |
| 24895 | |
| 24896 | |
| 24897 | |
| 24898 | |
| 24899 | |
| 24900 | |
| 24901 | if testscip-shell system . . test. $ac_cv_func_obstack_printf = no ; then |
| 24902 | |
| 24903 | |
| 24904 | if testscip-shell system . . test. $ac_cv_func_obstack_printf = yes; then |
| 24905 | REPLACE_OBSTACK_PRINTF=1 |
| 24906 | fi |
| 24907 | |
| 24908 | fi |
| 24909 | |
| 24910 | |
| 24911 | |
| 24912 | if testscip-shell system . . test. $ac_cv_have_decl_obstack_printf = no; then |
| 24913 | HAVE_DECL_OBSTACK_PRINTF=0 |
| 24914 | fi |
| 24915 | |
| 24916 | |
| 24917 | if testscip-shell system . . test. $ac_cv_func_obstack_printf = no || testscip-shell system . . test. $REPLACE_OBSTACK_PRINTF = 1; then |
| 24918 | |
| 24919 | |
| 24920 | |
| 24921 | |
| 24922 | |
| 24923 | |
| 24924 | |
| 24925 | |
| 24926 | gl_LIBOBJS="$gl_LIBOBJS obstack_printf.$ac_objext" |
| 24927 | |
| 24928 | fi |
| 24929 | |
| 24930 | |
| 24931 | |
| 24932 | |
| 24933 | |
| 24934 | |
| 24935 | |
| 24936 | |
| 24937 | |
| 24938 | GL_GNULIB_OBSTACK_PRINTF=1 |
| 24939 | |
| 24940 | |
| 24941 | |
| 24942 | |
| 24943 | |
| 24944 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_OBSTACK_PRINTF 1" >>confdefs.h |
| 24945 | |
| 24946 | |
| 24947 | |
| 24948 | |
| 24949 | |
| 24950 | |
| 24951 | case "$host_os" in |
| 24952 | mingw* | pw*) |
| 24953 | REPLACE_OPEN=1 |
| 24954 | ;; |
| 24955 | *) |
| 24956 | |
| 24957 | if testscip-shell system . . test. "$gl_cv_macro_O_CLOEXEC" != yes; then |
| 24958 | REPLACE_OPEN=1 |
| 24959 | fi |
| 24960 | |
| 24961 | |
| 24962 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 |
| 24963 | printfscip-shell system . . printf. %s "checking whether open recognizes a trailing slash... " >&6; } |
| 24964 | if testscip-shell system . . test. ${gl_cv_func_open_slash+y} |
| 24965 | then : |
| 24966 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 24967 | else $as_nop |
| 24968 | # Assume that if we have lstat, we can also check symlinks. |
| 24969 | if testscip-shell system . . test. $ac_cv_func_lstat = yes; then |
| 24970 | touchscip-shell system . . touch. conftest.tmp |
| 24971 | lnscip-shell system . . ln. -s conftest.tmp conftest.lnk |
| 24972 | fi |
| 24973 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 24974 | then : |
| 24975 | |
| 24976 | case "$host_os" in |
| 24977 | freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) |
| 24978 | gl_cv_func_open_slash="guessing no" ;; |
| 24979 | *) |
| 24980 | gl_cv_func_open_slash="guessing yes" ;; |
| 24981 | esac |
| 24982 | |
| 24983 | else $as_nop |
| 24984 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24985 | /* end confdefs.h. */ |
| 24986 | |
| 24987 | #include <fcntl.h> |
| 24988 | #if HAVE_UNISTD_H |
| 24989 | # include <unistd.h> |
| 24990 | #endif |
| 24991 | |
| 24992 | |
| 24993 | $gl_mda_defines |
| 24994 | |
| 24995 | int main () |
| 24996 | { |
| 24997 | int result = 0; |
| 24998 | #if HAVE_LSTAT |
| 24999 | if (open ("conftest.lnk/", O_RDONLY) != -1) |
| 25000 | result |= 1; |
| 25001 | #endif |
| 25002 | if (open ("conftest.sl/", O_CREAT, 0600) >= 0) |
| 25003 | result |= 2; |
| 25004 | return result; |
| 25005 | } |
| 25006 | _ACEOF |
| 25007 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 25008 | then : |
| 25009 | gl_cv_func_open_slash=yes |
| 25010 | else $as_nop |
| 25011 | gl_cv_func_open_slash=no |
| 25012 | fi |
| 25013 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25014 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25015 | fi |
| 25016 | |
| 25017 | rmscip-shell system . . rm. -f conftest.sl conftest.tmp conftest.lnk |
| 25018 | |
| 25019 | fi |
| 25020 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 |
| 25021 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_open_slash" >&6; } |
| 25022 | case "$gl_cv_func_open_slash" in |
| 25023 | *no) |
| 25024 | |
| 25025 | printfscip-shell system . . printf. "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 25026 | |
| 25027 | ;; |
| 25028 | esac |
| 25029 | |
| 25030 | case "$gl_cv_func_open_slash" in |
| 25031 | *no) |
| 25032 | REPLACE_OPEN=1 |
| 25033 | ;; |
| 25034 | esac |
| 25035 | ;; |
| 25036 | esac |
| 25037 | |
| 25038 | if testscip-shell system . . test. $REPLACE_OPEN = 0; then |
| 25039 | |
| 25040 | |
| 25041 | |
| 25042 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 25043 | HAVE_FCHDIR=0 |
| 25044 | fi |
| 25045 | |
| 25046 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 25047 | REPLACE_OPEN=1 |
| 25048 | fi |
| 25049 | fi |
| 25050 | |
| 25051 | |
| 25052 | |
| 25053 | |
| 25054 | if testscip-shell system . . test. $REPLACE_OPEN = 1; then |
| 25055 | GL_COND_OBJ_OPEN_TRUE= |
| 25056 | GL_COND_OBJ_OPEN_FALSE='#' |
| 25057 | else |
| 25058 | GL_COND_OBJ_OPEN_TRUE='#' |
| 25059 | GL_COND_OBJ_OPEN_FALSE= |
| 25060 | fi |
| 25061 | : |
| 25062 | if testscip-shell system . . test. -z "${GL_COND_OBJ_OPEN_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_OPEN_FALSE}"; then |
| 25063 | GL_COND_OBJ_OPEN_TRUE='#' |
| 25064 | GL_COND_OBJ_OPEN_FALSE='#' |
| 25065 | fi |
| 25066 | |
| 25067 | if testscip-shell system . . test. -z "$GL_COND_OBJ_OPEN_TRUE"; then : |
| 25068 | |
| 25069 | |
| 25070 | |
| 25071 | : |
| 25072 | |
| 25073 | |
| 25074 | fi |
| 25075 | |
| 25076 | |
| 25077 | |
| 25078 | |
| 25079 | |
| 25080 | |
| 25081 | |
| 25082 | |
| 25083 | |
| 25084 | GL_GNULIB_OPEN=1 |
| 25085 | |
| 25086 | |
| 25087 | |
| 25088 | |
| 25089 | |
| 25090 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h |
| 25091 | |
| 25092 | |
| 25093 | |
| 25094 | |
| 25095 | |
| 25096 | |
| 25097 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "opendir" "ac_cv_func_opendir" |
| 25098 | if testscip-shell system . . test. "x$ac_cv_func_opendir" = xyes |
| 25099 | then : |
| 25100 | printfscip-shell system . . printf. "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h |
| 25101 | |
| 25102 | fi |
| 25103 | |
| 25104 | if testscip-shell system . . test. $ac_cv_func_opendir = no; then |
| 25105 | HAVE_OPENDIR=0 |
| 25106 | fi |
| 25107 | |
| 25108 | |
| 25109 | |
| 25110 | |
| 25111 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 25112 | HAVE_FCHDIR=0 |
| 25113 | fi |
| 25114 | |
| 25115 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 25116 | if testscip-shell system . . test. $HAVE_OPENDIR = 1; then |
| 25117 | REPLACE_OPENDIR=1 |
| 25118 | fi |
| 25119 | fi |
| 25120 | |
| 25121 | case $host_os,$HAVE_OPENDIR in |
| 25122 | os2*,1) |
| 25123 | REPLACE_OPENDIR=1;; |
| 25124 | esac |
| 25125 | |
| 25126 | |
| 25127 | if testscip-shell system . . test. $HAVE_OPENDIR = 0 || testscip-shell system . . test. $REPLACE_OPENDIR = 1; then |
| 25128 | GL_COND_OBJ_OPENDIR_TRUE= |
| 25129 | GL_COND_OBJ_OPENDIR_FALSE='#' |
| 25130 | else |
| 25131 | GL_COND_OBJ_OPENDIR_TRUE='#' |
| 25132 | GL_COND_OBJ_OPENDIR_FALSE= |
| 25133 | fi |
| 25134 | : |
| 25135 | if testscip-shell system . . test. -z "${GL_COND_OBJ_OPENDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_OPENDIR_FALSE}"; then |
| 25136 | GL_COND_OBJ_OPENDIR_TRUE='#' |
| 25137 | GL_COND_OBJ_OPENDIR_FALSE='#' |
| 25138 | fi |
| 25139 | |
| 25140 | |
| 25141 | |
| 25142 | |
| 25143 | |
| 25144 | |
| 25145 | |
| 25146 | |
| 25147 | |
| 25148 | |
| 25149 | GL_GNULIB_OPENDIR=1 |
| 25150 | |
| 25151 | |
| 25152 | |
| 25153 | |
| 25154 | |
| 25155 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h |
| 25156 | |
| 25157 | |
| 25158 | |
| 25159 | |
| 25160 | |
| 25161 | |
| 25162 | |
| 25163 | if testscip-shell system . . test. $ac_cv_func_pipe != yes; then |
| 25164 | HAVE_PIPE=0 |
| 25165 | fi |
| 25166 | |
| 25167 | |
| 25168 | if testscip-shell system . . test. $HAVE_PIPE = 0; then |
| 25169 | GL_COND_OBJ_PIPE_TRUE= |
| 25170 | GL_COND_OBJ_PIPE_FALSE='#' |
| 25171 | else |
| 25172 | GL_COND_OBJ_PIPE_TRUE='#' |
| 25173 | GL_COND_OBJ_PIPE_FALSE= |
| 25174 | fi |
| 25175 | : |
| 25176 | if testscip-shell system . . test. -z "${GL_COND_OBJ_PIPE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_PIPE_FALSE}"; then |
| 25177 | GL_COND_OBJ_PIPE_TRUE='#' |
| 25178 | GL_COND_OBJ_PIPE_FALSE='#' |
| 25179 | fi |
| 25180 | |
| 25181 | |
| 25182 | |
| 25183 | |
| 25184 | |
| 25185 | |
| 25186 | |
| 25187 | |
| 25188 | |
| 25189 | |
| 25190 | GL_GNULIB_PIPE=1 |
| 25191 | |
| 25192 | |
| 25193 | |
| 25194 | |
| 25195 | |
| 25196 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_PIPE 1" >>confdefs.h |
| 25197 | |
| 25198 | |
| 25199 | |
| 25200 | |
| 25201 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> |
| 25202 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 25203 | if testscip-shell system . . test. "x$ac_cv_have_decl_program_invocation_name" = xyes |
| 25204 | then : |
| 25205 | ac_have_decl=1 |
| 25206 | else $as_nop |
| 25207 | ac_have_decl=0 |
| 25208 | fi |
| 25209 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h |
| 25210 | |
| 25211 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> |
| 25212 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 25213 | if testscip-shell system . . test. "x$ac_cv_have_decl_program_invocation_short_name" = xyes |
| 25214 | then : |
| 25215 | ac_have_decl=1 |
| 25216 | else $as_nop |
| 25217 | ac_have_decl=0 |
| 25218 | fi |
| 25219 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h |
| 25220 | |
| 25221 | |
| 25222 | |
| 25223 | |
| 25224 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "readdir" "ac_cv_func_readdir" |
| 25225 | if testscip-shell system . . test. "x$ac_cv_func_readdir" = xyes |
| 25226 | then : |
| 25227 | printfscip-shell system . . printf. "%s\n" "#define HAVE_READDIR 1" >>confdefs.h |
| 25228 | |
| 25229 | fi |
| 25230 | |
| 25231 | if testscip-shell system . . test. $ac_cv_func_readdir = no; then |
| 25232 | HAVE_READDIR=0 |
| 25233 | fi |
| 25234 | |
| 25235 | |
| 25236 | if testscip-shell system . . test. $HAVE_READDIR = 0; then |
| 25237 | GL_COND_OBJ_READDIR_TRUE= |
| 25238 | GL_COND_OBJ_READDIR_FALSE='#' |
| 25239 | else |
| 25240 | GL_COND_OBJ_READDIR_TRUE='#' |
| 25241 | GL_COND_OBJ_READDIR_FALSE= |
| 25242 | fi |
| 25243 | : |
| 25244 | if testscip-shell system . . test. -z "${GL_COND_OBJ_READDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_READDIR_FALSE}"; then |
| 25245 | GL_COND_OBJ_READDIR_TRUE='#' |
| 25246 | GL_COND_OBJ_READDIR_FALSE='#' |
| 25247 | fi |
| 25248 | |
| 25249 | |
| 25250 | |
| 25251 | |
| 25252 | |
| 25253 | |
| 25254 | |
| 25255 | |
| 25256 | |
| 25257 | |
| 25258 | GL_GNULIB_READDIR=1 |
| 25259 | |
| 25260 | |
| 25261 | |
| 25262 | |
| 25263 | |
| 25264 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_READDIR 1" >>confdefs.h |
| 25265 | |
| 25266 | |
| 25267 | |
| 25268 | |
| 25269 | |
| 25270 | |
| 25271 | if testscip-shell system . . test. $ac_cv_func_readlink = no; then |
| 25272 | HAVE_READLINK=0 |
| 25273 | else |
| 25274 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 |
| 25275 | printfscip-shell system . . printf. %s "checking whether readlink signature is correct... " >&6; } |
| 25276 | if testscip-shell system . . test. ${gl_cv_decl_readlink_works+y} |
| 25277 | then : |
| 25278 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25279 | else $as_nop |
| 25280 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25281 | /* end confdefs.h. */ |
| 25282 | #include <unistd.h> |
| 25283 | /* Cause compilation failure if original declaration has wrong type. */ |
| 25284 | ssize_t readlink (const char *, char *, size_t); |
| 25285 | int |
| 25286 | main (void) |
| 25287 | { |
| 25288 | |
| 25289 | ; |
| 25290 | return 0; |
| 25291 | } |
| 25292 | _ACEOF |
| 25293 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 25294 | then : |
| 25295 | gl_cv_decl_readlink_works=yes |
| 25296 | else $as_nop |
| 25297 | gl_cv_decl_readlink_works=no |
| 25298 | fi |
| 25299 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25300 | fi |
| 25301 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 |
| 25302 | printfscip-shell system . . printf. "%s\n" "$gl_cv_decl_readlink_works" >&6; } |
| 25303 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 |
| 25304 | printfscip-shell system . . printf. %s "checking whether readlink handles trailing slash correctly... " >&6; } |
| 25305 | if testscip-shell system . . test. ${gl_cv_func_readlink_trailing_slash+y} |
| 25306 | then : |
| 25307 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25308 | else $as_nop |
| 25309 | # We have readlink, so assume ln -s works. |
| 25310 | lnscip-shell system . . ln. -s conftest.no-such conftest.link |
| 25311 | lnscip-shell system . . ln. -s conftest.link conftest.lnk2 |
| 25312 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 25313 | then : |
| 25314 | case "$host_os" in |
| 25315 | # Guess yes on Linux or glibc systems. |
| 25316 | linux-* | linux | *-gnu* | gnu*) |
| 25317 | gl_cv_func_readlink_trailing_slash="guessing yes" ;; |
| 25318 | # Guess no on AIX or HP-UX. |
| 25319 | aix* | hpux*) |
| 25320 | gl_cv_func_readlink_trailing_slash="guessing no" ;; |
| 25321 | # If we don't know, obey --enable-cross-guesses. |
| 25322 | *) |
| 25323 | gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;; |
| 25324 | esac |
| 25325 | |
| 25326 | else $as_nop |
| 25327 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25328 | /* end confdefs.h. */ |
| 25329 | #include <unistd.h> |
| 25330 | |
| 25331 | int |
| 25332 | main (void) |
| 25333 | { |
| 25334 | char buf[20]; |
| 25335 | return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; |
| 25336 | ; |
| 25337 | return 0; |
| 25338 | } |
| 25339 | _ACEOF |
| 25340 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 25341 | then : |
| 25342 | gl_cv_func_readlink_trailing_slash=yes |
| 25343 | else $as_nop |
| 25344 | gl_cv_func_readlink_trailing_slash=no |
| 25345 | fi |
| 25346 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25347 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25348 | fi |
| 25349 | |
| 25350 | rmscip-shell system . . rm. -f conftest.link conftest.lnk2 |
| 25351 | fi |
| 25352 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5 |
| 25353 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; } |
| 25354 | case "$gl_cv_func_readlink_trailing_slash" in |
| 25355 | *yes) |
| 25356 | if testscip-shell system . . test. "$gl_cv_decl_readlink_works" != yes; then |
| 25357 | REPLACE_READLINK=1 |
| 25358 | fi |
| 25359 | ;; |
| 25360 | *) |
| 25361 | |
| 25362 | printfscip-shell system . . printf. "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 25363 | |
| 25364 | REPLACE_READLINK=1 |
| 25365 | ;; |
| 25366 | esac |
| 25367 | |
| 25368 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5 |
| 25369 | printfscip-shell system . . printf. %s "checking whether readlink truncates results correctly... " >&6; } |
| 25370 | if testscip-shell system . . test. ${gl_cv_func_readlink_truncate+y} |
| 25371 | then : |
| 25372 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25373 | else $as_nop |
| 25374 | # We have readlink, so assume ln -s works. |
| 25375 | lnscip-shell system . . ln. -s ab conftest.link |
| 25376 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 25377 | then : |
| 25378 | case "$host_os" in |
| 25379 | # Guess yes on Linux or glibc systems. |
| 25380 | linux-* | linux | *-gnu* | gnu*) |
| 25381 | gl_cv_func_readlink_truncate="guessing yes" ;; |
| 25382 | # Guess no on AIX or HP-UX. |
| 25383 | aix* | hpux*) |
| 25384 | gl_cv_func_readlink_truncate="guessing no" ;; |
| 25385 | # If we don't know, obey --enable-cross-guesses. |
| 25386 | *) |
| 25387 | gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;; |
| 25388 | esac |
| 25389 | |
| 25390 | else $as_nop |
| 25391 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25392 | /* end confdefs.h. */ |
| 25393 | #include <unistd.h> |
| 25394 | |
| 25395 | int |
| 25396 | main (void) |
| 25397 | { |
| 25398 | char c; |
| 25399 | return readlink ("conftest.link", &c, 1) != 1; |
| 25400 | ; |
| 25401 | return 0; |
| 25402 | } |
| 25403 | _ACEOF |
| 25404 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 25405 | then : |
| 25406 | gl_cv_func_readlink_truncate=yes |
| 25407 | else $as_nop |
| 25408 | gl_cv_func_readlink_truncate=no |
| 25409 | fi |
| 25410 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25411 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25412 | fi |
| 25413 | |
| 25414 | rmscip-shell system . . rm. -f conftest.link conftest.lnk2 |
| 25415 | fi |
| 25416 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5 |
| 25417 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_readlink_truncate" >&6; } |
| 25418 | case $gl_cv_func_readlink_truncate in |
| 25419 | *yes) |
| 25420 | if testscip-shell system . . test. "$gl_cv_decl_readlink_works" != yes; then |
| 25421 | REPLACE_READLINK=1 |
| 25422 | fi |
| 25423 | ;; |
| 25424 | *) |
| 25425 | |
| 25426 | printfscip-shell system . . printf. "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h |
| 25427 | |
| 25428 | REPLACE_READLINK=1 |
| 25429 | ;; |
| 25430 | esac |
| 25431 | fi |
| 25432 | |
| 25433 | |
| 25434 | if testscip-shell system . . test. $HAVE_READLINK = 0 || testscip-shell system . . test. $REPLACE_READLINK = 1; then |
| 25435 | GL_COND_OBJ_READLINK_TRUE= |
| 25436 | GL_COND_OBJ_READLINK_FALSE='#' |
| 25437 | else |
| 25438 | GL_COND_OBJ_READLINK_TRUE='#' |
| 25439 | GL_COND_OBJ_READLINK_FALSE= |
| 25440 | fi |
| 25441 | : |
| 25442 | if testscip-shell system . . test. -z "${GL_COND_OBJ_READLINK_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_READLINK_FALSE}"; then |
| 25443 | GL_COND_OBJ_READLINK_TRUE='#' |
| 25444 | GL_COND_OBJ_READLINK_FALSE='#' |
| 25445 | fi |
| 25446 | |
| 25447 | if testscip-shell system . . test. -z "$GL_COND_OBJ_READLINK_TRUE"; then : |
| 25448 | |
| 25449 | |
| 25450 | : |
| 25451 | |
| 25452 | |
| 25453 | fi |
| 25454 | |
| 25455 | |
| 25456 | |
| 25457 | |
| 25458 | |
| 25459 | |
| 25460 | |
| 25461 | |
| 25462 | |
| 25463 | GL_GNULIB_READLINK=1 |
| 25464 | |
| 25465 | |
| 25466 | |
| 25467 | |
| 25468 | |
| 25469 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h |
| 25470 | |
| 25471 | |
| 25472 | |
| 25473 | |
| 25474 | |
| 25475 | |
| 25476 | if testscip-shell system . . test. $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then |
| 25477 | |
| 25478 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5 |
| 25479 | printfscip-shell system . . printf. %s "checking whether realloc (0, 0) returns nonnull... " >&6; } |
| 25480 | if testscip-shell system . . test. ${ac_cv_func_realloc_0_nonnull+y} |
| 25481 | then : |
| 25482 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25483 | else $as_nop |
| 25484 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 25485 | then : |
| 25486 | case "$host_os" in |
| 25487 | # Guess yes on platforms where we know the result. |
| 25488 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ |
| 25489 | | gnu* | *-musl* | midnightbsd* \ |
| 25490 | | hpux* | solaris* | cygwin* | mingw* | msys* ) |
| 25491 | ac_cv_func_realloc_0_nonnull="guessing yes" ;; |
| 25492 | # If we don't know, obey --enable-cross-guesses. |
| 25493 | *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; |
| 25494 | esac |
| 25495 | |
| 25496 | else $as_nop |
| 25497 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25498 | /* end confdefs.h. */ |
| 25499 | #include <stdlib.h> |
| 25500 | |
| 25501 | int |
| 25502 | main (void) |
| 25503 | { |
| 25504 | void *p = realloc (0, 0); |
| 25505 | int result = !p; |
| 25506 | free (p); |
| 25507 | return result; |
| 25508 | ; |
| 25509 | return 0; |
| 25510 | } |
| 25511 | |
| 25512 | _ACEOF |
| 25513 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 25514 | then : |
| 25515 | ac_cv_func_realloc_0_nonnull=yes |
| 25516 | else $as_nop |
| 25517 | ac_cv_func_realloc_0_nonnull=no |
| 25518 | fi |
| 25519 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25520 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25521 | fi |
| 25522 | |
| 25523 | |
| 25524 | fi |
| 25525 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 |
| 25526 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } |
| 25527 | case $ac_cv_func_realloc_0_nonnull in #( |
| 25528 | *yes) : |
| 25529 | ;; #( |
| 25530 | *) : |
| 25531 | REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;; |
| 25532 | esac |
| 25533 | |
| 25534 | fi |
| 25535 | |
| 25536 | if testscip-shell system . . test. $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then |
| 25537 | |
| 25538 | |
| 25539 | |
| 25540 | |
| 25541 | |
| 25542 | |
| 25543 | |
| 25544 | |
| 25545 | gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" |
| 25546 | |
| 25547 | fi |
| 25548 | |
| 25549 | |
| 25550 | |
| 25551 | |
| 25552 | |
| 25553 | |
| 25554 | |
| 25555 | |
| 25556 | |
| 25557 | GL_GNULIB_REALLOC_GNU=1 |
| 25558 | |
| 25559 | |
| 25560 | |
| 25561 | |
| 25562 | |
| 25563 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h |
| 25564 | |
| 25565 | |
| 25566 | |
| 25567 | |
| 25568 | |
| 25569 | |
| 25570 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 25571 | REPLACE_REALLOC_FOR_REALLOC_POSIX=1 |
| 25572 | fi |
| 25573 | |
| 25574 | if testscip-shell system . . test. $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then |
| 25575 | |
| 25576 | |
| 25577 | |
| 25578 | |
| 25579 | |
| 25580 | |
| 25581 | |
| 25582 | |
| 25583 | gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" |
| 25584 | |
| 25585 | fi |
| 25586 | |
| 25587 | |
| 25588 | |
| 25589 | |
| 25590 | |
| 25591 | |
| 25592 | |
| 25593 | |
| 25594 | |
| 25595 | GL_GNULIB_REALLOC_POSIX=1 |
| 25596 | |
| 25597 | |
| 25598 | |
| 25599 | |
| 25600 | |
| 25601 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h |
| 25602 | |
| 25603 | |
| 25604 | |
| 25605 | |
| 25606 | |
| 25607 | |
| 25608 | |
| 25609 | |
| 25610 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "reallocarray" "ac_cv_func_reallocarray" |
| 25611 | if testscip-shell system . . test. "x$ac_cv_func_reallocarray" = xyes |
| 25612 | then : |
| 25613 | printfscip-shell system . . printf. "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h |
| 25614 | |
| 25615 | fi |
| 25616 | |
| 25617 | if testscip-shell system . . test. "$ac_cv_func_reallocarray" = no; then |
| 25618 | HAVE_REALLOCARRAY=0 |
| 25619 | elif testscip-shell system . . test. "$gl_cv_malloc_ptrdiff" = no; then |
| 25620 | REPLACE_REALLOCARRAY=1 |
| 25621 | fi |
| 25622 | |
| 25623 | |
| 25624 | if testscip-shell system . . test. $HAVE_REALLOCARRAY = 0 || testscip-shell system . . test. $REPLACE_REALLOCARRAY = 1; then |
| 25625 | GL_COND_OBJ_REALLOCARRAY_TRUE= |
| 25626 | GL_COND_OBJ_REALLOCARRAY_FALSE='#' |
| 25627 | else |
| 25628 | GL_COND_OBJ_REALLOCARRAY_TRUE='#' |
| 25629 | GL_COND_OBJ_REALLOCARRAY_FALSE= |
| 25630 | fi |
| 25631 | : |
| 25632 | if testscip-shell system . . test. -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then |
| 25633 | GL_COND_OBJ_REALLOCARRAY_TRUE='#' |
| 25634 | GL_COND_OBJ_REALLOCARRAY_FALSE='#' |
| 25635 | fi |
| 25636 | |
| 25637 | if testscip-shell system . . test. -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then : |
| 25638 | |
| 25639 | : |
| 25640 | |
| 25641 | fi |
| 25642 | |
| 25643 | |
| 25644 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h |
| 25645 | |
| 25646 | |
| 25647 | |
| 25648 | |
| 25649 | |
| 25650 | |
| 25651 | |
| 25652 | |
| 25653 | |
| 25654 | |
| 25655 | |
| 25656 | GL_GNULIB_REALLOCARRAY=1 |
| 25657 | |
| 25658 | |
| 25659 | |
| 25660 | |
| 25661 | |
| 25662 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h |
| 25663 | |
| 25664 | |
| 25665 | |
| 25666 | |
| 25667 | |
| 25668 | |
| 25669 | |
| 25670 | |
| 25671 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "scandir" "ac_cv_func_scandir" |
| 25672 | if testscip-shell system . . test. "x$ac_cv_func_scandir" = xyes |
| 25673 | then : |
| 25674 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SCANDIR 1" >>confdefs.h |
| 25675 | |
| 25676 | fi |
| 25677 | |
| 25678 | if testscip-shell system . . test. $ac_cv_func_scandir = no; then |
| 25679 | HAVE_SCANDIR=0 |
| 25680 | fi |
| 25681 | |
| 25682 | |
| 25683 | if testscip-shell system . . test. $HAVE_SCANDIR = 0; then |
| 25684 | GL_COND_OBJ_SCANDIR_TRUE= |
| 25685 | GL_COND_OBJ_SCANDIR_FALSE='#' |
| 25686 | else |
| 25687 | GL_COND_OBJ_SCANDIR_TRUE='#' |
| 25688 | GL_COND_OBJ_SCANDIR_FALSE= |
| 25689 | fi |
| 25690 | : |
| 25691 | if testscip-shell system . . test. -z "${GL_COND_OBJ_SCANDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_SCANDIR_FALSE}"; then |
| 25692 | GL_COND_OBJ_SCANDIR_TRUE='#' |
| 25693 | GL_COND_OBJ_SCANDIR_FALSE='#' |
| 25694 | fi |
| 25695 | |
| 25696 | if testscip-shell system . . test. -z "$GL_COND_OBJ_SCANDIR_TRUE"; then : |
| 25697 | |
| 25698 | : |
| 25699 | |
| 25700 | fi |
| 25701 | |
| 25702 | |
| 25703 | |
| 25704 | |
| 25705 | |
| 25706 | |
| 25707 | |
| 25708 | |
| 25709 | |
| 25710 | GL_GNULIB_SCANDIR=1 |
| 25711 | |
| 25712 | |
| 25713 | |
| 25714 | |
| 25715 | |
| 25716 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SCANDIR 1" >>confdefs.h |
| 25717 | |
| 25718 | |
| 25719 | |
| 25720 | |
| 25721 | |
| 25722 | |
| 25723 | if testscip-shell system . . test. $ac_cv_func_sigaction = yes; then |
| 25724 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 ac_fn_c_check_member(). "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> |
| 25725 | " |
| 25726 | if testscip-shell system . . test. "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes |
| 25727 | then : |
| 25728 | |
| 25729 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h |
| 25730 | |
| 25731 | |
| 25732 | fi |
| 25733 | |
| 25734 | if testscip-shell system . . test. $ac_cv_member_struct_sigaction_sa_sigaction = no; then |
| 25735 | HAVE_STRUCT_SIGACTION_SA_SIGACTION=0 |
| 25736 | fi |
| 25737 | else |
| 25738 | HAVE_SIGACTION=0 |
| 25739 | fi |
| 25740 | |
| 25741 | |
| 25742 | if testscip-shell system . . test. $HAVE_SIGACTION = 0; then |
| 25743 | GL_COND_OBJ_SIGACTION_TRUE= |
| 25744 | GL_COND_OBJ_SIGACTION_FALSE='#' |
| 25745 | else |
| 25746 | GL_COND_OBJ_SIGACTION_TRUE='#' |
| 25747 | GL_COND_OBJ_SIGACTION_FALSE= |
| 25748 | fi |
| 25749 | : |
| 25750 | if testscip-shell system . . test. -z "${GL_COND_OBJ_SIGACTION_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_SIGACTION_FALSE}"; then |
| 25751 | GL_COND_OBJ_SIGACTION_TRUE='#' |
| 25752 | GL_COND_OBJ_SIGACTION_FALSE='#' |
| 25753 | fi |
| 25754 | |
| 25755 | if testscip-shell system . . test. -z "$GL_COND_OBJ_SIGACTION_TRUE"; then : |
| 25756 | |
| 25757 | |
| 25758 | |
| 25759 | |
| 25760 | |
| 25761 | |
| 25762 | |
| 25763 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" " |
| 25764 | #include <signal.h> |
| 25765 | |
| 25766 | " |
| 25767 | if testscip-shell system . . test. "x$ac_cv_type_siginfo_t" = xyes |
| 25768 | then : |
| 25769 | |
| 25770 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h |
| 25771 | |
| 25772 | |
| 25773 | fi |
| 25774 | |
| 25775 | if testscip-shell system . . test. $ac_cv_type_siginfo_t = no; then |
| 25776 | HAVE_SIGINFO_T=0 |
| 25777 | fi |
| 25778 | |
| 25779 | |
| 25780 | fi |
| 25781 | |
| 25782 | |
| 25783 | |
| 25784 | |
| 25785 | |
| 25786 | |
| 25787 | |
| 25788 | |
| 25789 | |
| 25790 | GL_GNULIB_SIGACTION=1 |
| 25791 | |
| 25792 | |
| 25793 | |
| 25794 | |
| 25795 | |
| 25796 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h |
| 25797 | |
| 25798 | |
| 25799 | |
| 25800 | |
| 25801 | |
| 25802 | |
| 25803 | |
| 25804 | |
| 25805 | |
| 25806 | |
| 25807 | |
| 25808 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 25809 | if testscip-shell system . . test. "x$ac_cv_header_stdint_h" = xyes |
| 25810 | then : |
| 25811 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 25812 | |
| 25813 | fi |
| 25814 | |
| 25815 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 25816 | printfscip-shell system . . printf. %s "checking for SIZE_MAX... " >&6; } |
| 25817 | if testscip-shell system . . test. ${gl_cv_size_max+y} |
| 25818 | then : |
| 25819 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25820 | else $as_nop |
| 25821 | |
| 25822 | gl_cv_size_max=no |
| 25823 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25824 | /* end confdefs.h. */ |
| 25825 | |
| 25826 | #include <limits.h> |
| 25827 | #if HAVE_STDINT_H |
| 25828 | #include <stdint.h> |
| 25829 | #endif |
| 25830 | #ifdef SIZE_MAX |
| 25831 | Found it |
| 25832 | #endif |
| 25833 | |
| 25834 | _ACEOF |
| 25835 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25836 | $EGREP "Found it" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 25837 | then : |
| 25838 | gl_cv_size_max=yes |
| 25839 | fi |
| 25840 | rmscip-shell system . . rm. -rf conftest* |
| 25841 | |
| 25842 | if testscip-shell system . . test. $gl_cv_size_max != yes; then |
| 25843 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 25844 | #include <limits.h>" |
| 25845 | then : |
| 25846 | |
| 25847 | else $as_nop |
| 25848 | size_t_bits_minus_1= |
| 25849 | fi |
| 25850 | |
| 25851 | if ac_fn_c_compute_intscip-shell shell shell-project 0.0.0 ac_fn_c_compute_int(). "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>" |
| 25852 | then : |
| 25853 | |
| 25854 | else $as_nop |
| 25855 | fits_in_uint= |
| 25856 | fi |
| 25857 | |
| 25858 | if testscip-shell system . . test. -n "$size_t_bits_minus_1" && testscip-shell system . . test. -n "$fits_in_uint"; then |
| 25859 | if testscip-shell system . . test. $fits_in_uint = 1; then |
| 25860 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25861 | /* end confdefs.h. */ |
| 25862 | #include <stddef.h> |
| 25863 | extern size_t foo; |
| 25864 | extern unsigned long foo; |
| 25865 | |
| 25866 | int |
| 25867 | main (void) |
| 25868 | { |
| 25869 | |
| 25870 | ; |
| 25871 | return 0; |
| 25872 | } |
| 25873 | _ACEOF |
| 25874 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 25875 | then : |
| 25876 | fits_in_uint=0 |
| 25877 | fi |
| 25878 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25879 | fi |
| 25880 | if testscip-shell system . . test. $fits_in_uint = 1; then |
| 25881 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 25882 | else |
| 25883 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 25884 | fi |
| 25885 | else |
| 25886 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 25887 | fi |
| 25888 | fi |
| 25889 | |
| 25890 | fi |
| 25891 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 25892 | printfscip-shell system . . printf. "%s\n" "$gl_cv_size_max" >&6; } |
| 25893 | if testscip-shell system . . test. "$gl_cv_size_max" != yes; then |
| 25894 | |
| 25895 | printfscip-shell system . . printf. "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h |
| 25896 | |
| 25897 | fi |
| 25898 | |
| 25899 | |
| 25900 | |
| 25901 | |
| 25902 | gl_cv_func_snprintf_usable=no |
| 25903 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 25904 | if testscip-shell system . . test. "x$ac_cv_func_snprintf" = xyes |
| 25905 | then : |
| 25906 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 25907 | |
| 25908 | fi |
| 25909 | |
| 25910 | if testscip-shell system . . test. $ac_cv_func_snprintf = yes; then |
| 25911 | |
| 25912 | |
| 25913 | |
| 25914 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 |
| 25915 | printfscip-shell system . . printf. %s "checking whether snprintf respects a size of 1... " >&6; } |
| 25916 | if testscip-shell system . . test. ${gl_cv_func_snprintf_size1+y} |
| 25917 | then : |
| 25918 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25919 | else $as_nop |
| 25920 | |
| 25921 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 25922 | then : |
| 25923 | case "$host_os" in |
| 25924 | # Guess yes on Android. |
| 25925 | linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; |
| 25926 | # Guess yes on native Windows. |
| 25927 | mingw*) gl_cv_func_snprintf_size1="guessing yes" ;; |
| 25928 | *) gl_cv_func_snprintf_size1="guessing yes" ;; |
| 25929 | esac |
| 25930 | |
| 25931 | else $as_nop |
| 25932 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25933 | /* end confdefs.h. */ |
| 25934 | |
| 25935 | #include <stdio.h> |
| 25936 | #if HAVE_SNPRINTF |
| 25937 | # define my_snprintf snprintf |
| 25938 | #else |
| 25939 | # include <stdarg.h> |
| 25940 | static int my_snprintf (char *buf, int size, const char *format, ...) |
| 25941 | { |
| 25942 | va_list args; |
| 25943 | int ret; |
| 25944 | va_start (args, format); |
| 25945 | ret = vsnprintf (buf, size, format, args); |
| 25946 | va_end (args); |
| 25947 | return ret; |
| 25948 | } |
| 25949 | #endif |
| 25950 | int main() |
| 25951 | { |
| 25952 | static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; |
| 25953 | my_snprintf (buf, 1, "%d", 12345); |
| 25954 | return buf[1] != 'E'; |
| 25955 | } |
| 25956 | _ACEOF |
| 25957 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 25958 | then : |
| 25959 | gl_cv_func_snprintf_size1=yes |
| 25960 | else $as_nop |
| 25961 | gl_cv_func_snprintf_size1=no |
| 25962 | fi |
| 25963 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25964 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25965 | fi |
| 25966 | |
| 25967 | |
| 25968 | fi |
| 25969 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 |
| 25970 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_snprintf_size1" >&6; } |
| 25971 | |
| 25972 | case "$gl_cv_func_snprintf_size1" in |
| 25973 | *yes) |
| 25974 | |
| 25975 | case "$gl_cv_func_snprintf_retval_c99" in |
| 25976 | *yes) |
| 25977 | |
| 25978 | |
| 25979 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 |
| 25980 | printfscip-shell system . . printf. %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } |
| 25981 | if testscip-shell system . . test. ${gl_cv_func_printf_positions+y} |
| 25982 | then : |
| 25983 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 25984 | else $as_nop |
| 25985 | |
| 25986 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 25987 | then : |
| 25988 | |
| 25989 | case "$host_os" in |
| 25990 | netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) |
| 25991 | gl_cv_func_printf_positions="guessing no";; |
| 25992 | beos*) gl_cv_func_printf_positions="guessing no";; |
| 25993 | # Guess yes on Android. |
| 25994 | linux*-android*) gl_cv_func_printf_positions="guessing yes";; |
| 25995 | # Guess no on native Windows. |
| 25996 | mingw* | pw*) gl_cv_func_printf_positions="guessing no";; |
| 25997 | *) gl_cv_func_printf_positions="guessing yes";; |
| 25998 | esac |
| 25999 | |
| 26000 | else $as_nop |
| 26001 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26002 | /* end confdefs.h. */ |
| 26003 | |
| 26004 | #include <stdio.h> |
| 26005 | #include <string.h> |
| 26006 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 26007 | dollar expansion (possibly an autoconf bug). */ |
| 26008 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 26009 | static char buf[100]; |
| 26010 | int main () |
| 26011 | { |
| 26012 | sprintf (buf, format, 33, 55); |
| 26013 | return (strcmp (buf, "55 33") != 0); |
| 26014 | } |
| 26015 | _ACEOF |
| 26016 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 26017 | then : |
| 26018 | gl_cv_func_printf_positions=yes |
| 26019 | else $as_nop |
| 26020 | gl_cv_func_printf_positions=no |
| 26021 | fi |
| 26022 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 26023 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26024 | fi |
| 26025 | |
| 26026 | |
| 26027 | fi |
| 26028 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 |
| 26029 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_printf_positions" >&6; } |
| 26030 | |
| 26031 | case "$gl_cv_func_printf_positions" in |
| 26032 | *yes) |
| 26033 | gl_cv_func_snprintf_usable=yes |
| 26034 | ;; |
| 26035 | esac |
| 26036 | ;; |
| 26037 | esac |
| 26038 | ;; |
| 26039 | esac |
| 26040 | fi |
| 26041 | if testscip-shell system . . test. $gl_cv_func_snprintf_usable = no; then |
| 26042 | |
| 26043 | |
| 26044 | |
| 26045 | |
| 26046 | |
| 26047 | |
| 26048 | |
| 26049 | |
| 26050 | |
| 26051 | |
| 26052 | gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext" |
| 26053 | |
| 26054 | if testscip-shell system . . test. $ac_cv_func_snprintf = yes; then |
| 26055 | REPLACE_SNPRINTF=1 |
| 26056 | else |
| 26057 | |
| 26058 | if testscip-shell system . . test. $ac_cv_have_decl_snprintf = yes; then |
| 26059 | REPLACE_SNPRINTF=1 |
| 26060 | fi |
| 26061 | fi |
| 26062 | : |
| 26063 | |
| 26064 | fi |
| 26065 | |
| 26066 | if testscip-shell system . . test. $ac_cv_have_decl_snprintf = no; then |
| 26067 | HAVE_DECL_SNPRINTF=0 |
| 26068 | fi |
| 26069 | |
| 26070 | |
| 26071 | |
| 26072 | |
| 26073 | |
| 26074 | |
| 26075 | |
| 26076 | |
| 26077 | |
| 26078 | |
| 26079 | GL_GNULIB_SNPRINTF=1 |
| 26080 | |
| 26081 | |
| 26082 | |
| 26083 | |
| 26084 | |
| 26085 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h |
| 26086 | |
| 26087 | |
| 26088 | |
| 26089 | |
| 26090 | |
| 26091 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h |
| 26092 | |
| 26093 | |
| 26094 | |
| 26095 | |
| 26096 | |
| 26097 | |
| 26098 | |
| 26099 | |
| 26100 | |
| 26101 | |
| 26102 | |
| 26103 | |
| 26104 | |
| 26105 | |
| 26106 | |
| 26107 | |
| 26108 | |
| 26109 | gl_cv_func_sprintf_posix=no |
| 26110 | case "$gl_cv_func_printf_sizes_c99" in |
| 26111 | *yes) |
| 26112 | case "$gl_cv_func_printf_long_double" in |
| 26113 | *yes) |
| 26114 | case "$gl_cv_func_printf_infinite" in |
| 26115 | *yes) |
| 26116 | case "$gl_cv_func_printf_infinite_long_double" in |
| 26117 | *yes) |
| 26118 | case "$gl_cv_func_printf_directive_a" in |
| 26119 | *yes) |
| 26120 | case "$gl_cv_func_printf_directive_f" in |
| 26121 | *yes) |
| 26122 | case "$gl_cv_func_printf_directive_n" in |
| 26123 | *yes) |
| 26124 | case "$gl_cv_func_printf_directive_ls" in |
| 26125 | *yes) |
| 26126 | case "$gl_cv_func_printf_positions" in |
| 26127 | *yes) |
| 26128 | case "$gl_cv_func_printf_flag_grouping" in |
| 26129 | *yes) |
| 26130 | case "$gl_cv_func_printf_flag_leftadjust" in |
| 26131 | *yes) |
| 26132 | case "$gl_cv_func_printf_flag_zero" in |
| 26133 | *yes) |
| 26134 | case "$gl_cv_func_printf_precision" in |
| 26135 | *yes) |
| 26136 | case "$gl_cv_func_printf_enomem" in |
| 26137 | *yes) |
| 26138 | # sprintf exists and is |
| 26139 | # already POSIX compliant. |
| 26140 | gl_cv_func_sprintf_posix=yes |
| 26141 | ;; |
| 26142 | esac |
| 26143 | ;; |
| 26144 | esac |
| 26145 | ;; |
| 26146 | esac |
| 26147 | ;; |
| 26148 | esac |
| 26149 | ;; |
| 26150 | esac |
| 26151 | ;; |
| 26152 | esac |
| 26153 | ;; |
| 26154 | esac |
| 26155 | ;; |
| 26156 | esac |
| 26157 | ;; |
| 26158 | esac |
| 26159 | ;; |
| 26160 | esac |
| 26161 | ;; |
| 26162 | esac |
| 26163 | ;; |
| 26164 | esac |
| 26165 | ;; |
| 26166 | esac |
| 26167 | ;; |
| 26168 | esac |
| 26169 | if testscip-shell system . . test. $gl_cv_func_sprintf_posix = no; then |
| 26170 | |
| 26171 | |
| 26172 | |
| 26173 | case "$gl_cv_func_printf_infinite" in |
| 26174 | *yes) |
| 26175 | ;; |
| 26176 | *) |
| 26177 | |
| 26178 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h |
| 26179 | |
| 26180 | ;; |
| 26181 | esac |
| 26182 | |
| 26183 | |
| 26184 | |
| 26185 | |
| 26186 | case "$gl_cv_func_printf_long_double" in |
| 26187 | *yes) |
| 26188 | case "$gl_cv_func_printf_infinite_long_double" in |
| 26189 | *yes) |
| 26190 | ;; |
| 26191 | *) |
| 26192 | |
| 26193 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h |
| 26194 | |
| 26195 | ;; |
| 26196 | esac |
| 26197 | ;; |
| 26198 | esac |
| 26199 | |
| 26200 | |
| 26201 | |
| 26202 | case "$gl_cv_func_printf_directive_a" in |
| 26203 | *yes) |
| 26204 | ;; |
| 26205 | *) |
| 26206 | |
| 26207 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h |
| 26208 | |
| 26209 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" |
| 26210 | if testscip-shell system . . test. "x$ac_cv_func_nl_langinfo" = xyes |
| 26211 | then : |
| 26212 | printfscip-shell system . . printf. "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
| 26213 | |
| 26214 | fi |
| 26215 | |
| 26216 | ;; |
| 26217 | esac |
| 26218 | |
| 26219 | |
| 26220 | |
| 26221 | case "$gl_cv_func_printf_directive_f" in |
| 26222 | *yes) |
| 26223 | ;; |
| 26224 | *) |
| 26225 | |
| 26226 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h |
| 26227 | |
| 26228 | ;; |
| 26229 | esac |
| 26230 | |
| 26231 | |
| 26232 | |
| 26233 | case "$gl_cv_func_printf_directive_ls" in |
| 26234 | *yes) |
| 26235 | ;; |
| 26236 | *) |
| 26237 | |
| 26238 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h |
| 26239 | |
| 26240 | ;; |
| 26241 | esac |
| 26242 | |
| 26243 | |
| 26244 | |
| 26245 | case "$gl_cv_func_printf_flag_grouping" in |
| 26246 | *yes) |
| 26247 | ;; |
| 26248 | *) |
| 26249 | |
| 26250 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h |
| 26251 | |
| 26252 | ;; |
| 26253 | esac |
| 26254 | |
| 26255 | |
| 26256 | |
| 26257 | case "$gl_cv_func_printf_flag_leftadjust" in |
| 26258 | *yes) |
| 26259 | ;; |
| 26260 | *) |
| 26261 | |
| 26262 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h |
| 26263 | |
| 26264 | ;; |
| 26265 | esac |
| 26266 | |
| 26267 | |
| 26268 | |
| 26269 | case "$gl_cv_func_printf_flag_zero" in |
| 26270 | *yes) |
| 26271 | ;; |
| 26272 | *) |
| 26273 | |
| 26274 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h |
| 26275 | |
| 26276 | ;; |
| 26277 | esac |
| 26278 | |
| 26279 | |
| 26280 | |
| 26281 | case "$gl_cv_func_printf_precision" in |
| 26282 | *yes) |
| 26283 | ;; |
| 26284 | *) |
| 26285 | |
| 26286 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h |
| 26287 | |
| 26288 | |
| 26289 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h |
| 26290 | |
| 26291 | |
| 26292 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h |
| 26293 | |
| 26294 | ;; |
| 26295 | esac |
| 26296 | |
| 26297 | |
| 26298 | |
| 26299 | case "$gl_cv_func_printf_enomem" in |
| 26300 | *yes) |
| 26301 | ;; |
| 26302 | *) |
| 26303 | |
| 26304 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h |
| 26305 | |
| 26306 | |
| 26307 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h |
| 26308 | |
| 26309 | |
| 26310 | printfscip-shell system . . printf. "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h |
| 26311 | |
| 26312 | ;; |
| 26313 | esac |
| 26314 | |
| 26315 | |
| 26316 | |
| 26317 | |
| 26318 | |
| 26319 | |
| 26320 | |
| 26321 | |
| 26322 | |
| 26323 | |
| 26324 | |
| 26325 | gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" |
| 26326 | |
| 26327 | |
| 26328 | |
| 26329 | |
| 26330 | |
| 26331 | |
| 26332 | |
| 26333 | |
| 26334 | |
| 26335 | gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" |
| 26336 | |
| 26337 | |
| 26338 | |
| 26339 | |
| 26340 | |
| 26341 | |
| 26342 | |
| 26343 | |
| 26344 | |
| 26345 | gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" |
| 26346 | |
| 26347 | |
| 26348 | |
| 26349 | |
| 26350 | |
| 26351 | |
| 26352 | |
| 26353 | |
| 26354 | |
| 26355 | gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" |
| 26356 | |
| 26357 | if testscip-shell system . . test. $ac_cv_func_vasnprintf = yes; then |
| 26358 | |
| 26359 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h |
| 26360 | |
| 26361 | fi |
| 26362 | |
| 26363 | |
| 26364 | |
| 26365 | |
| 26366 | |
| 26367 | |
| 26368 | |
| 26369 | |
| 26370 | |
| 26371 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 26372 | if testscip-shell system . . test. "x$ac_cv_type_ptrdiff_t" = xyes |
| 26373 | then : |
| 26374 | |
| 26375 | else $as_nop |
| 26376 | |
| 26377 | printfscip-shell system . . printf. "%s\n" "#define ptrdiff_t long" >>confdefs.h |
| 26378 | |
| 26379 | |
| 26380 | fi |
| 26381 | |
| 26382 | |
| 26383 | |
| 26384 | |
| 26385 | |
| 26386 | |
| 26387 | |
| 26388 | |
| 26389 | |
| 26390 | |
| 26391 | |
| 26392 | |
| 26393 | |
| 26394 | |
| 26395 | |
| 26396 | |
| 26397 | |
| 26398 | gl_LIBOBJS="$gl_LIBOBJS sprintf.$ac_objext" |
| 26399 | |
| 26400 | REPLACE_SPRINTF=1 |
| 26401 | : |
| 26402 | |
| 26403 | fi |
| 26404 | |
| 26405 | |
| 26406 | |
| 26407 | |
| 26408 | |
| 26409 | |
| 26410 | |
| 26411 | |
| 26412 | |
| 26413 | |
| 26414 | GL_GNULIB_SPRINTF_POSIX=1 |
| 26415 | |
| 26416 | |
| 26417 | |
| 26418 | |
| 26419 | |
| 26420 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SPRINTF_POSIX 1" >>confdefs.h |
| 26421 | |
| 26422 | |
| 26423 | |
| 26424 | |
| 26425 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 26426 | printfscip-shell system . . printf. %s "checking for ssize_t... " >&6; } |
| 26427 | if testscip-shell system . . test. ${gt_cv_ssize_t+y} |
| 26428 | then : |
| 26429 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26430 | else $as_nop |
| 26431 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26432 | /* end confdefs.h. */ |
| 26433 | #include <sys/types.h> |
| 26434 | int |
| 26435 | main (void) |
| 26436 | { |
| 26437 | int x = sizeof (ssize_t *) + sizeof (ssize_t); |
| 26438 | return !x; |
| 26439 | ; |
| 26440 | return 0; |
| 26441 | } |
| 26442 | _ACEOF |
| 26443 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 26444 | then : |
| 26445 | gt_cv_ssize_t=yes |
| 26446 | else $as_nop |
| 26447 | gt_cv_ssize_t=no |
| 26448 | fi |
| 26449 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26450 | fi |
| 26451 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 |
| 26452 | printfscip-shell system . . printf. "%s\n" "$gt_cv_ssize_t" >&6; } |
| 26453 | if testscip-shell system . . test. $gt_cv_ssize_t = no; then |
| 26454 | |
| 26455 | printfscip-shell system . . printf. "%s\n" "#define ssize_t int" >>confdefs.h |
| 26456 | |
| 26457 | fi |
| 26458 | |
| 26459 | |
| 26460 | |
| 26461 | |
| 26462 | |
| 26463 | case "$host_os" in |
| 26464 | mingw*) |
| 26465 | REPLACE_STAT=1 |
| 26466 | ;; |
| 26467 | *) |
| 26468 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 |
| 26469 | printfscip-shell system . . printf. %s "checking whether stat handles trailing slashes on files... " >&6; } |
| 26470 | if testscip-shell system . . test. ${gl_cv_func_stat_file_slash+y} |
| 26471 | then : |
| 26472 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26473 | else $as_nop |
| 26474 | touchscip-shell system . . touch. conftest.tmp |
| 26475 | # Assume that if we have lstat, we can also check symlinks. |
| 26476 | if testscip-shell system . . test. $ac_cv_func_lstat = yes; then |
| 26477 | lnscip-shell system . . ln. -s conftest.tmp conftest.lnk |
| 26478 | fi |
| 26479 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 26480 | then : |
| 26481 | case "$host_os" in |
| 26482 | # Guess yes on Linux systems. |
| 26483 | linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; |
| 26484 | # Guess yes on glibc systems. |
| 26485 | *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; |
| 26486 | # If we don't know, obey --enable-cross-guesses. |
| 26487 | *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; |
| 26488 | esac |
| 26489 | |
| 26490 | else $as_nop |
| 26491 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26492 | /* end confdefs.h. */ |
| 26493 | #include <sys/stat.h> |
| 26494 | |
| 26495 | int |
| 26496 | main (void) |
| 26497 | { |
| 26498 | int result = 0; |
| 26499 | struct stat st; |
| 26500 | if (!stat ("conftest.tmp/", &st)) |
| 26501 | result |= 1; |
| 26502 | #if HAVE_LSTAT |
| 26503 | if (!stat ("conftest.lnk/", &st)) |
| 26504 | result |= 2; |
| 26505 | #endif |
| 26506 | return result; |
| 26507 | |
| 26508 | ; |
| 26509 | return 0; |
| 26510 | } |
| 26511 | _ACEOF |
| 26512 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 26513 | then : |
| 26514 | gl_cv_func_stat_file_slash=yes |
| 26515 | else $as_nop |
| 26516 | gl_cv_func_stat_file_slash=no |
| 26517 | fi |
| 26518 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 26519 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26520 | fi |
| 26521 | |
| 26522 | rmscip-shell system . . rm. -f conftest.tmp conftest.lnk |
| 26523 | fi |
| 26524 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 |
| 26525 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_stat_file_slash" >&6; } |
| 26526 | case $gl_cv_func_stat_file_slash in |
| 26527 | *no) |
| 26528 | REPLACE_STAT=1 |
| 26529 | |
| 26530 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h |
| 26531 | ;; |
| 26532 | esac |
| 26533 | case $host_os in |
| 26534 | solaris*) |
| 26535 | REPLACE_FSTAT=1 ;; |
| 26536 | esac |
| 26537 | ;; |
| 26538 | esac |
| 26539 | |
| 26540 | |
| 26541 | if testscip-shell system . . test. $REPLACE_STAT = 1; then |
| 26542 | GL_COND_OBJ_STAT_TRUE= |
| 26543 | GL_COND_OBJ_STAT_FALSE='#' |
| 26544 | else |
| 26545 | GL_COND_OBJ_STAT_TRUE='#' |
| 26546 | GL_COND_OBJ_STAT_FALSE= |
| 26547 | fi |
| 26548 | : |
| 26549 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STAT_FALSE}"; then |
| 26550 | GL_COND_OBJ_STAT_TRUE='#' |
| 26551 | GL_COND_OBJ_STAT_FALSE='#' |
| 26552 | fi |
| 26553 | |
| 26554 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STAT_TRUE"; then : |
| 26555 | |
| 26556 | case "$host_os" in |
| 26557 | mingw*) |
| 26558 | |
| 26559 | |
| 26560 | |
| 26561 | |
| 26562 | |
| 26563 | |
| 26564 | |
| 26565 | |
| 26566 | gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" |
| 26567 | |
| 26568 | ;; |
| 26569 | esac |
| 26570 | |
| 26571 | |
| 26572 | |
| 26573 | : |
| 26574 | |
| 26575 | |
| 26576 | fi |
| 26577 | |
| 26578 | |
| 26579 | |
| 26580 | |
| 26581 | |
| 26582 | |
| 26583 | |
| 26584 | |
| 26585 | |
| 26586 | GL_GNULIB_STAT=1 |
| 26587 | |
| 26588 | |
| 26589 | |
| 26590 | |
| 26591 | |
| 26592 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h |
| 26593 | |
| 26594 | |
| 26595 | |
| 26596 | |
| 26597 | |
| 26598 | |
| 26599 | |
| 26600 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 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> |
| 26601 | #include <sys/stat.h> |
| 26602 | " |
| 26603 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes |
| 26604 | then : |
| 26605 | |
| 26606 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h |
| 26607 | |
| 26608 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 |
| 26609 | printfscip-shell system . . printf. %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } |
| 26610 | if testscip-shell system . . test. ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} |
| 26611 | then : |
| 26612 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26613 | else $as_nop |
| 26614 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26615 | /* end confdefs.h. */ |
| 26616 | |
| 26617 | #include <sys/types.h> |
| 26618 | #include <sys/stat.h> |
| 26619 | #if HAVE_SYS_TIME_H |
| 26620 | # include <sys/time.h> |
| 26621 | #endif |
| 26622 | #include <time.h> |
| 26623 | struct timespec ts; |
| 26624 | struct stat st; |
| 26625 | |
| 26626 | int |
| 26627 | main (void) |
| 26628 | { |
| 26629 | |
| 26630 | st.st_atim = ts; |
| 26631 | |
| 26632 | ; |
| 26633 | return 0; |
| 26634 | } |
| 26635 | _ACEOF |
| 26636 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 26637 | then : |
| 26638 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes |
| 26639 | else $as_nop |
| 26640 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no |
| 26641 | fi |
| 26642 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26643 | fi |
| 26644 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 |
| 26645 | printfscip-shell system . . printf. "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } |
| 26646 | if testscip-shell system . . test. $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then |
| 26647 | |
| 26648 | printfscip-shell system . . printf. "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h |
| 26649 | |
| 26650 | fi |
| 26651 | else $as_nop |
| 26652 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 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> |
| 26653 | #include <sys/stat.h> |
| 26654 | " |
| 26655 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes |
| 26656 | then : |
| 26657 | |
| 26658 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h |
| 26659 | |
| 26660 | |
| 26661 | else $as_nop |
| 26662 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 ac_fn_c_check_member(). "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> |
| 26663 | #include <sys/stat.h> |
| 26664 | " |
| 26665 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atimensec" = xyes |
| 26666 | then : |
| 26667 | |
| 26668 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h |
| 26669 | |
| 26670 | |
| 26671 | else $as_nop |
| 26672 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 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> |
| 26673 | #include <sys/stat.h> |
| 26674 | " |
| 26675 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes |
| 26676 | then : |
| 26677 | |
| 26678 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h |
| 26679 | |
| 26680 | |
| 26681 | fi |
| 26682 | |
| 26683 | fi |
| 26684 | |
| 26685 | fi |
| 26686 | |
| 26687 | fi |
| 26688 | |
| 26689 | |
| 26690 | |
| 26691 | |
| 26692 | |
| 26693 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 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> |
| 26694 | #include <sys/stat.h> |
| 26695 | " |
| 26696 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes |
| 26697 | then : |
| 26698 | |
| 26699 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h |
| 26700 | |
| 26701 | |
| 26702 | else $as_nop |
| 26703 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 ac_fn_c_check_member(). "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> |
| 26704 | #include <sys/stat.h> |
| 26705 | " |
| 26706 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes |
| 26707 | then : |
| 26708 | |
| 26709 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h |
| 26710 | |
| 26711 | |
| 26712 | else $as_nop |
| 26713 | ac_fn_c_check_memberscip-shell shell shell-project 0.0.0 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> |
| 26714 | #include <sys/stat.h> |
| 26715 | " |
| 26716 | if testscip-shell system . . test. "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes |
| 26717 | then : |
| 26718 | |
| 26719 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h |
| 26720 | |
| 26721 | |
| 26722 | fi |
| 26723 | |
| 26724 | fi |
| 26725 | |
| 26726 | fi |
| 26727 | |
| 26728 | |
| 26729 | |
| 26730 | GL_GENERATE_STDARG_H=false |
| 26731 | NEXT_STDARG_H='<stdarg.h>' |
| 26732 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
| 26733 | printfscip-shell system . . printf. %s "checking for va_copy... " >&6; } |
| 26734 | if testscip-shell system . . test. ${gl_cv_func_va_copy+y} |
| 26735 | then : |
| 26736 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26737 | else $as_nop |
| 26738 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26739 | /* end confdefs.h. */ |
| 26740 | #include <stdarg.h> |
| 26741 | int |
| 26742 | main (void) |
| 26743 | { |
| 26744 | |
| 26745 | #ifndef va_copy |
| 26746 | void (*func) (va_list, va_list) = va_copy; |
| 26747 | #endif |
| 26748 | |
| 26749 | ; |
| 26750 | return 0; |
| 26751 | } |
| 26752 | _ACEOF |
| 26753 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 26754 | then : |
| 26755 | gl_cv_func_va_copy=yes |
| 26756 | else $as_nop |
| 26757 | gl_cv_func_va_copy=no |
| 26758 | fi |
| 26759 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26760 | |
| 26761 | fi |
| 26762 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 |
| 26763 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_va_copy" >&6; } |
| 26764 | if testscip-shell system . . test. $gl_cv_func_va_copy = no; then |
| 26765 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26766 | /* end confdefs.h. */ |
| 26767 | #if defined _AIX && !defined __GNUC__ |
| 26768 | AIX vaccine |
| 26769 | #endif |
| 26770 | |
| 26771 | _ACEOF |
| 26772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 26773 | $EGREP "vaccine" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 26774 | then : |
| 26775 | gl_aixcc=yes |
| 26776 | else $as_nop |
| 26777 | gl_aixcc=no |
| 26778 | fi |
| 26779 | rmscip-shell system . . rm. -rf conftest* |
| 26780 | |
| 26781 | if testscip-shell system . . test. $gl_aixcc = yes; then |
| 26782 | GL_GENERATE_STDARG_H=true |
| 26783 | |
| 26784 | |
| 26785 | |
| 26786 | |
| 26787 | |
| 26788 | |
| 26789 | |
| 26790 | |
| 26791 | if testscip-shell system . . test. $gl_cv_have_include_next = yes; then |
| 26792 | gl_cv_next_stdarg_h='<'stdarg.h'>' |
| 26793 | else |
| 26794 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 |
| 26795 | printfscip-shell system . . printf. %s "checking absolute name of <stdarg.h>... " >&6; } |
| 26796 | if testscip-shell system . . test. ${gl_cv_next_stdarg_h+y} |
| 26797 | then : |
| 26798 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26799 | else $as_nop |
| 26800 | |
| 26801 | |
| 26802 | |
| 26803 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26804 | /* end confdefs.h. */ |
| 26805 | #include <stdarg.h> |
| 26806 | _ACEOF |
| 26807 | case "$host_os" in |
| 26808 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 26809 | *) gl_absname_cpp="$ac_cpp" ;; |
| 26810 | esac |
| 26811 | |
| 26812 | case "$host_os" in |
| 26813 | mingw*) |
| 26814 | gl_dirsep_regex='[/\\]' |
| 26815 | ;; |
| 26816 | *) |
| 26817 | gl_dirsep_regex='\/' |
| 26818 | ;; |
| 26819 | esac |
| 26820 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 26821 | gl_header_literal_regex=`echoscip-shell system . . echo. 'stdarg.h' \ |
| 26822 | | sedscip-shell system . . sed. -e "$gl_make_literal_regex_sed"` |
| 26823 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 26824 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 26825 | s|^/[^/]|//&| |
| 26826 | p |
| 26827 | q |
| 26828 | }' |
| 26829 | |
| 26830 | gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 26831 | sedscip-shell system . . sed. -n "$gl_absolute_header_sed"` |
| 26832 | |
| 26833 | gl_header=$gl_cv_absolute_stdarg_h |
| 26834 | gl_cv_next_stdarg_h='"'$gl_header'"' |
| 26835 | |
| 26836 | |
| 26837 | fi |
| 26838 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 |
| 26839 | printfscip-shell system . . printf. "%s\n" "$gl_cv_next_stdarg_h" >&6; } |
| 26840 | fi |
| 26841 | NEXT_STDARG_H=$gl_cv_next_stdarg_h |
| 26842 | |
| 26843 | if testscip-shell system . . test. $gl_cv_have_include_next = yes || testscip-shell system . . test. $gl_cv_have_include_next = buggy; then |
| 26844 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 26845 | gl_next_as_first_directive='<'stdarg.h'>' |
| 26846 | else |
| 26847 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 26848 | gl_next_as_first_directive=$gl_cv_next_stdarg_h |
| 26849 | fi |
| 26850 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive |
| 26851 | |
| 26852 | |
| 26853 | |
| 26854 | |
| 26855 | if testscip-shell system . . test. "$gl_cv_next_stdarg_h" = '""'; then |
| 26856 | gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' |
| 26857 | NEXT_STDARG_H="$gl_cv_next_stdarg_h" |
| 26858 | fi |
| 26859 | else |
| 26860 | |
| 26861 | |
| 26862 | exec 9>&6 6>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 26863 | |
| 26864 | if testscip-shell system . . test. ${gl_cv_func___va_copy+y} |
| 26865 | then : |
| 26866 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 26867 | else $as_nop |
| 26868 | |
| 26869 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26870 | /* end confdefs.h. */ |
| 26871 | #include <stdarg.h> |
| 26872 | int |
| 26873 | main (void) |
| 26874 | { |
| 26875 | |
| 26876 | #ifndef __va_copy |
| 26877 | error, bail out |
| 26878 | #endif |
| 26879 | |
| 26880 | ; |
| 26881 | return 0; |
| 26882 | } |
| 26883 | _ACEOF |
| 26884 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 26885 | then : |
| 26886 | gl_cv_func___va_copy=yes |
| 26887 | else $as_nop |
| 26888 | gl_cv_func___va_copy=no |
| 26889 | fi |
| 26890 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26891 | fi |
| 26892 | |
| 26893 | |
| 26894 | exec 6>&9 9>&- |
| 26895 | |
| 26896 | |
| 26897 | if testscip-shell system . . test. $gl_cv_func___va_copy = yes; then |
| 26898 | |
| 26899 | printfscip-shell system . . printf. "%s\n" "#define va_copy __va_copy" >>confdefs.h |
| 26900 | |
| 26901 | else |
| 26902 | |
| 26903 | |
| 26904 | printfscip-shell system . . printf. "%s\n" "#define va_copy gl_va_copy" >>confdefs.h |
| 26905 | |
| 26906 | fi |
| 26907 | fi |
| 26908 | fi |
| 26909 | |
| 26910 | |
| 26911 | |
| 26912 | |
| 26913 | |
| 26914 | |
| 26915 | case "$GL_GENERATE_STDARG_H" in |
| 26916 | false) STDARG_H='' ;; |
| 26917 | true) |
| 26918 | if testscip-shell system . . test. -z "$STDARG_H"; then |
| 26919 | STDARG_H="${gl_source_base_prefix}stdarg.h" |
| 26920 | fi |
| 26921 | ;; |
| 26922 | *) echoscip-shell system . . echo. "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;; |
| 26923 | esac |
| 26924 | |
| 26925 | |
| 26926 | if $GL_GENERATE_STDARG_H; then |
| 26927 | GL_GENERATE_STDARG_H_TRUE= |
| 26928 | GL_GENERATE_STDARG_H_FALSE='#' |
| 26929 | else |
| 26930 | GL_GENERATE_STDARG_H_TRUE='#' |
| 26931 | GL_GENERATE_STDARG_H_FALSE= |
| 26932 | fi |
| 26933 | : |
| 26934 | if testscip-shell system . . test. -z "${GL_GENERATE_STDARG_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_STDARG_H_FALSE}"; then |
| 26935 | GL_GENERATE_STDARG_H_TRUE='#' |
| 26936 | GL_GENERATE_STDARG_H_FALSE='#' |
| 26937 | fi |
| 26938 | |
| 26939 | |
| 26940 | |
| 26941 | |
| 26942 | |
| 26943 | |
| 26944 | |
| 26945 | |
| 26946 | |
| 26947 | |
| 26948 | if testscip-shell system . . test. "$ac_cv_header_stdbool_h" = yes; then |
| 26949 | case "$host_os" in |
| 26950 | solaris*) |
| 26951 | if testscip-shell system . . test. -z "$GCC"; then |
| 26952 | GL_GENERATE_STDBOOL_H=true |
| 26953 | else |
| 26954 | GL_GENERATE_STDBOOL_H=false |
| 26955 | fi |
| 26956 | ;; |
| 26957 | *) |
| 26958 | GL_GENERATE_STDBOOL_H=false |
| 26959 | ;; |
| 26960 | esac |
| 26961 | else |
| 26962 | GL_GENERATE_STDBOOL_H=true |
| 26963 | fi |
| 26964 | |
| 26965 | if testscip-shell system . . test. "$ac_cv_type__Bool" = yes; then |
| 26966 | HAVE__BOOL=1 |
| 26967 | else |
| 26968 | HAVE__BOOL=0 |
| 26969 | fi |
| 26970 | |
| 26971 | |
| 26972 | |
| 26973 | |
| 26974 | |
| 26975 | |
| 26976 | case "$GL_GENERATE_STDBOOL_H" in |
| 26977 | false) STDBOOL_H='' ;; |
| 26978 | true) |
| 26979 | if testscip-shell system . . test. -z "$STDBOOL_H"; then |
| 26980 | STDBOOL_H="${gl_source_base_prefix}stdbool.h" |
| 26981 | fi |
| 26982 | ;; |
| 26983 | *) echoscip-shell system . . echo. "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;; |
| 26984 | esac |
| 26985 | |
| 26986 | |
| 26987 | if $GL_GENERATE_STDBOOL_H; then |
| 26988 | GL_GENERATE_STDBOOL_H_TRUE= |
| 26989 | GL_GENERATE_STDBOOL_H_FALSE='#' |
| 26990 | else |
| 26991 | GL_GENERATE_STDBOOL_H_TRUE='#' |
| 26992 | GL_GENERATE_STDBOOL_H_FALSE= |
| 26993 | fi |
| 26994 | : |
| 26995 | if testscip-shell system . . test. -z "${GL_GENERATE_STDBOOL_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then |
| 26996 | GL_GENERATE_STDBOOL_H_TRUE='#' |
| 26997 | GL_GENERATE_STDBOOL_H_FALSE='#' |
| 26998 | fi |
| 26999 | |
| 27000 | |
| 27001 | |
| 27002 | |
| 27003 | |
| 27004 | |
| 27005 | |
| 27006 | |
| 27007 | |
| 27008 | |
| 27009 | |
| 27010 | |
| 27011 | |
| 27012 | |
| 27013 | |
| 27014 | |
| 27015 | case "$GL_GENERATE_STDDEF_H" in |
| 27016 | false) STDDEF_H='' ;; |
| 27017 | true) |
| 27018 | if testscip-shell system . . test. -z "$STDDEF_H"; then |
| 27019 | STDDEF_H="${gl_source_base_prefix}stddef.h" |
| 27020 | fi |
| 27021 | ;; |
| 27022 | *) echoscip-shell system . . echo. "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;; |
| 27023 | esac |
| 27024 | |
| 27025 | |
| 27026 | if $GL_GENERATE_STDDEF_H; then |
| 27027 | GL_GENERATE_STDDEF_H_TRUE= |
| 27028 | GL_GENERATE_STDDEF_H_FALSE='#' |
| 27029 | else |
| 27030 | GL_GENERATE_STDDEF_H_TRUE='#' |
| 27031 | GL_GENERATE_STDDEF_H_FALSE= |
| 27032 | fi |
| 27033 | : |
| 27034 | if testscip-shell system . . test. -z "${GL_GENERATE_STDDEF_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_STDDEF_H_FALSE}"; then |
| 27035 | GL_GENERATE_STDDEF_H_TRUE='#' |
| 27036 | GL_GENERATE_STDDEF_H_FALSE='#' |
| 27037 | fi |
| 27038 | |
| 27039 | |
| 27040 | |
| 27041 | |
| 27042 | |
| 27043 | |
| 27044 | |
| 27045 | |
| 27046 | |
| 27047 | |
| 27048 | |
| 27049 | case "$GL_GENERATE_STDINT_H" in |
| 27050 | false) STDINT_H='' ;; |
| 27051 | true) |
| 27052 | if testscip-shell system . . test. -z "$STDINT_H"; then |
| 27053 | STDINT_H="${gl_source_base_prefix}stdint.h" |
| 27054 | fi |
| 27055 | ;; |
| 27056 | *) echoscip-shell system . . echo. "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;; |
| 27057 | esac |
| 27058 | |
| 27059 | |
| 27060 | if $GL_GENERATE_STDINT_H; then |
| 27061 | GL_GENERATE_STDINT_H_TRUE= |
| 27062 | GL_GENERATE_STDINT_H_FALSE='#' |
| 27063 | else |
| 27064 | GL_GENERATE_STDINT_H_TRUE='#' |
| 27065 | GL_GENERATE_STDINT_H_FALSE= |
| 27066 | fi |
| 27067 | : |
| 27068 | if testscip-shell system . . test. -z "${GL_GENERATE_STDINT_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 27069 | GL_GENERATE_STDINT_H_TRUE='#' |
| 27070 | GL_GENERATE_STDINT_H_FALSE='#' |
| 27071 | fi |
| 27072 | |
| 27073 | |
| 27074 | |
| 27075 | |
| 27076 | |
| 27077 | |
| 27078 | |
| 27079 | |
| 27080 | |
| 27081 | case "$GL_GENERATE_LIMITS_H" in |
| 27082 | false) LIMITS_H='' ;; |
| 27083 | true) |
| 27084 | if testscip-shell system . . test. -z "$LIMITS_H"; then |
| 27085 | LIMITS_H="${gl_source_base_prefix}limits.h" |
| 27086 | fi |
| 27087 | ;; |
| 27088 | *) echoscip-shell system . . echo. "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; |
| 27089 | esac |
| 27090 | |
| 27091 | |
| 27092 | if $GL_GENERATE_LIMITS_H; then |
| 27093 | GL_GENERATE_LIMITS_H_TRUE= |
| 27094 | GL_GENERATE_LIMITS_H_FALSE='#' |
| 27095 | else |
| 27096 | GL_GENERATE_LIMITS_H_TRUE='#' |
| 27097 | GL_GENERATE_LIMITS_H_FALSE= |
| 27098 | fi |
| 27099 | : |
| 27100 | if testscip-shell system . . test. -z "${GL_GENERATE_LIMITS_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_LIMITS_H_FALSE}"; then |
| 27101 | GL_GENERATE_LIMITS_H_TRUE='#' |
| 27102 | GL_GENERATE_LIMITS_H_FALSE='#' |
| 27103 | fi |
| 27104 | |
| 27105 | |
| 27106 | |
| 27107 | |
| 27108 | |
| 27109 | |
| 27110 | |
| 27111 | |
| 27112 | |
| 27113 | |
| 27114 | |
| 27115 | |
| 27116 | |
| 27117 | |
| 27118 | if testscip-shell system . . test. $REPLACE_STDIO_READ_FUNCS = 1; then |
| 27119 | GL_COND_OBJ_STDIO_READ_TRUE= |
| 27120 | GL_COND_OBJ_STDIO_READ_FALSE='#' |
| 27121 | else |
| 27122 | GL_COND_OBJ_STDIO_READ_TRUE='#' |
| 27123 | GL_COND_OBJ_STDIO_READ_FALSE= |
| 27124 | fi |
| 27125 | : |
| 27126 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then |
| 27127 | GL_COND_OBJ_STDIO_READ_TRUE='#' |
| 27128 | GL_COND_OBJ_STDIO_READ_FALSE='#' |
| 27129 | fi |
| 27130 | |
| 27131 | |
| 27132 | if testscip-shell system . . test. $REPLACE_STDIO_WRITE_FUNCS = 1; then |
| 27133 | GL_COND_OBJ_STDIO_WRITE_TRUE= |
| 27134 | GL_COND_OBJ_STDIO_WRITE_FALSE='#' |
| 27135 | else |
| 27136 | GL_COND_OBJ_STDIO_WRITE_TRUE='#' |
| 27137 | GL_COND_OBJ_STDIO_WRITE_FALSE= |
| 27138 | fi |
| 27139 | : |
| 27140 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then |
| 27141 | GL_COND_OBJ_STDIO_WRITE_TRUE='#' |
| 27142 | GL_COND_OBJ_STDIO_WRITE_FALSE='#' |
| 27143 | fi |
| 27144 | |
| 27145 | |
| 27146 | |
| 27147 | |
| 27148 | |
| 27149 | |
| 27150 | |
| 27151 | |
| 27152 | |
| 27153 | |
| 27154 | GL_GNULIB_FSCANF=1 |
| 27155 | |
| 27156 | |
| 27157 | |
| 27158 | |
| 27159 | |
| 27160 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h |
| 27161 | |
| 27162 | |
| 27163 | |
| 27164 | |
| 27165 | |
| 27166 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h |
| 27167 | |
| 27168 | |
| 27169 | |
| 27170 | |
| 27171 | |
| 27172 | |
| 27173 | |
| 27174 | |
| 27175 | |
| 27176 | |
| 27177 | |
| 27178 | GL_GNULIB_SCANF=1 |
| 27179 | |
| 27180 | |
| 27181 | |
| 27182 | |
| 27183 | |
| 27184 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h |
| 27185 | |
| 27186 | |
| 27187 | |
| 27188 | |
| 27189 | |
| 27190 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h |
| 27191 | |
| 27192 | |
| 27193 | |
| 27194 | |
| 27195 | |
| 27196 | |
| 27197 | |
| 27198 | |
| 27199 | |
| 27200 | |
| 27201 | |
| 27202 | GL_GNULIB_FGETC=1 |
| 27203 | |
| 27204 | |
| 27205 | |
| 27206 | |
| 27207 | |
| 27208 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h |
| 27209 | |
| 27210 | |
| 27211 | |
| 27212 | |
| 27213 | |
| 27214 | |
| 27215 | |
| 27216 | |
| 27217 | |
| 27218 | |
| 27219 | |
| 27220 | |
| 27221 | GL_GNULIB_GETC=1 |
| 27222 | |
| 27223 | |
| 27224 | |
| 27225 | |
| 27226 | |
| 27227 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h |
| 27228 | |
| 27229 | |
| 27230 | |
| 27231 | |
| 27232 | |
| 27233 | |
| 27234 | |
| 27235 | |
| 27236 | |
| 27237 | |
| 27238 | |
| 27239 | |
| 27240 | GL_GNULIB_GETCHAR=1 |
| 27241 | |
| 27242 | |
| 27243 | |
| 27244 | |
| 27245 | |
| 27246 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h |
| 27247 | |
| 27248 | |
| 27249 | |
| 27250 | |
| 27251 | |
| 27252 | |
| 27253 | |
| 27254 | |
| 27255 | |
| 27256 | |
| 27257 | |
| 27258 | |
| 27259 | GL_GNULIB_FGETS=1 |
| 27260 | |
| 27261 | |
| 27262 | |
| 27263 | |
| 27264 | |
| 27265 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h |
| 27266 | |
| 27267 | |
| 27268 | |
| 27269 | |
| 27270 | |
| 27271 | |
| 27272 | |
| 27273 | |
| 27274 | |
| 27275 | |
| 27276 | |
| 27277 | |
| 27278 | GL_GNULIB_FREAD=1 |
| 27279 | |
| 27280 | |
| 27281 | |
| 27282 | |
| 27283 | |
| 27284 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h |
| 27285 | |
| 27286 | |
| 27287 | |
| 27288 | |
| 27289 | |
| 27290 | |
| 27291 | |
| 27292 | |
| 27293 | |
| 27294 | |
| 27295 | |
| 27296 | |
| 27297 | GL_GNULIB_FPRINTF=1 |
| 27298 | |
| 27299 | |
| 27300 | |
| 27301 | |
| 27302 | |
| 27303 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h |
| 27304 | |
| 27305 | |
| 27306 | |
| 27307 | |
| 27308 | |
| 27309 | |
| 27310 | |
| 27311 | |
| 27312 | |
| 27313 | |
| 27314 | |
| 27315 | |
| 27316 | GL_GNULIB_PRINTF=1 |
| 27317 | |
| 27318 | |
| 27319 | |
| 27320 | |
| 27321 | |
| 27322 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h |
| 27323 | |
| 27324 | |
| 27325 | |
| 27326 | |
| 27327 | |
| 27328 | |
| 27329 | |
| 27330 | |
| 27331 | |
| 27332 | |
| 27333 | |
| 27334 | |
| 27335 | GL_GNULIB_VFPRINTF=1 |
| 27336 | |
| 27337 | |
| 27338 | |
| 27339 | |
| 27340 | |
| 27341 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h |
| 27342 | |
| 27343 | |
| 27344 | |
| 27345 | |
| 27346 | |
| 27347 | |
| 27348 | |
| 27349 | |
| 27350 | |
| 27351 | |
| 27352 | |
| 27353 | |
| 27354 | GL_GNULIB_VPRINTF=1 |
| 27355 | |
| 27356 | |
| 27357 | |
| 27358 | |
| 27359 | |
| 27360 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h |
| 27361 | |
| 27362 | |
| 27363 | |
| 27364 | |
| 27365 | |
| 27366 | |
| 27367 | |
| 27368 | |
| 27369 | |
| 27370 | |
| 27371 | |
| 27372 | |
| 27373 | GL_GNULIB_FPUTC=1 |
| 27374 | |
| 27375 | |
| 27376 | |
| 27377 | |
| 27378 | |
| 27379 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h |
| 27380 | |
| 27381 | |
| 27382 | |
| 27383 | |
| 27384 | |
| 27385 | |
| 27386 | |
| 27387 | |
| 27388 | |
| 27389 | |
| 27390 | |
| 27391 | |
| 27392 | GL_GNULIB_PUTC=1 |
| 27393 | |
| 27394 | |
| 27395 | |
| 27396 | |
| 27397 | |
| 27398 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h |
| 27399 | |
| 27400 | |
| 27401 | |
| 27402 | |
| 27403 | |
| 27404 | |
| 27405 | |
| 27406 | |
| 27407 | |
| 27408 | |
| 27409 | |
| 27410 | |
| 27411 | GL_GNULIB_PUTCHAR=1 |
| 27412 | |
| 27413 | |
| 27414 | |
| 27415 | |
| 27416 | |
| 27417 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h |
| 27418 | |
| 27419 | |
| 27420 | |
| 27421 | |
| 27422 | |
| 27423 | |
| 27424 | |
| 27425 | |
| 27426 | |
| 27427 | |
| 27428 | |
| 27429 | |
| 27430 | GL_GNULIB_FPUTS=1 |
| 27431 | |
| 27432 | |
| 27433 | |
| 27434 | |
| 27435 | |
| 27436 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h |
| 27437 | |
| 27438 | |
| 27439 | |
| 27440 | |
| 27441 | |
| 27442 | |
| 27443 | |
| 27444 | |
| 27445 | |
| 27446 | |
| 27447 | |
| 27448 | |
| 27449 | GL_GNULIB_PUTS=1 |
| 27450 | |
| 27451 | |
| 27452 | |
| 27453 | |
| 27454 | |
| 27455 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h |
| 27456 | |
| 27457 | |
| 27458 | |
| 27459 | |
| 27460 | |
| 27461 | |
| 27462 | |
| 27463 | |
| 27464 | |
| 27465 | |
| 27466 | |
| 27467 | |
| 27468 | GL_GNULIB_FWRITE=1 |
| 27469 | |
| 27470 | |
| 27471 | |
| 27472 | |
| 27473 | |
| 27474 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h |
| 27475 | |
| 27476 | |
| 27477 | |
| 27478 | |
| 27479 | |
| 27480 | |
| 27481 | |
| 27482 | |
| 27483 | |
| 27484 | |
| 27485 | |
| 27486 | |
| 27487 | |
| 27488 | |
| 27489 | |
| 27490 | |
| 27491 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "stpcpy" "ac_cv_func_stpcpy" |
| 27492 | if testscip-shell system . . test. "x$ac_cv_func_stpcpy" = xyes |
| 27493 | then : |
| 27494 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h |
| 27495 | |
| 27496 | fi |
| 27497 | |
| 27498 | if testscip-shell system . . test. $ac_cv_func_stpcpy = no; then |
| 27499 | HAVE_STPCPY=0 |
| 27500 | fi |
| 27501 | |
| 27502 | |
| 27503 | if testscip-shell system . . test. $HAVE_STPCPY = 0; then |
| 27504 | GL_COND_OBJ_STPCPY_TRUE= |
| 27505 | GL_COND_OBJ_STPCPY_FALSE='#' |
| 27506 | else |
| 27507 | GL_COND_OBJ_STPCPY_TRUE='#' |
| 27508 | GL_COND_OBJ_STPCPY_FALSE= |
| 27509 | fi |
| 27510 | : |
| 27511 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STPCPY_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STPCPY_FALSE}"; then |
| 27512 | GL_COND_OBJ_STPCPY_TRUE='#' |
| 27513 | GL_COND_OBJ_STPCPY_FALSE='#' |
| 27514 | fi |
| 27515 | |
| 27516 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STPCPY_TRUE"; then : |
| 27517 | |
| 27518 | |
| 27519 | : |
| 27520 | |
| 27521 | |
| 27522 | fi |
| 27523 | |
| 27524 | |
| 27525 | |
| 27526 | |
| 27527 | |
| 27528 | |
| 27529 | |
| 27530 | |
| 27531 | |
| 27532 | |
| 27533 | |
| 27534 | |
| 27535 | |
| 27536 | |
| 27537 | GL_GNULIB_STPCPY=1 |
| 27538 | |
| 27539 | |
| 27540 | |
| 27541 | |
| 27542 | |
| 27543 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STPCPY 1" >>confdefs.h |
| 27544 | |
| 27545 | |
| 27546 | |
| 27547 | |
| 27548 | |
| 27549 | |
| 27550 | |
| 27551 | |
| 27552 | |
| 27553 | |
| 27554 | |
| 27555 | |
| 27556 | |
| 27557 | |
| 27558 | |
| 27559 | |
| 27560 | |
| 27561 | |
| 27562 | |
| 27563 | |
| 27564 | |
| 27565 | if testscip-shell system . . test. $ac_cv_have_decl_strsignal = no; then |
| 27566 | HAVE_DECL_STRSIGNAL=0 |
| 27567 | fi |
| 27568 | |
| 27569 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "strsignal" "ac_cv_func_strsignal" |
| 27570 | if testscip-shell system . . test. "x$ac_cv_func_strsignal" = xyes |
| 27571 | then : |
| 27572 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h |
| 27573 | |
| 27574 | fi |
| 27575 | |
| 27576 | if testscip-shell system . . test. $ac_cv_func_strsignal = yes; then |
| 27577 | HAVE_STRSIGNAL=1 |
| 27578 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5 |
| 27579 | printfscip-shell system . . printf. %s "checking whether strsignal always returns a string... " >&6; } |
| 27580 | if testscip-shell system . . test. ${gl_cv_func_working_strsignal+y} |
| 27581 | then : |
| 27582 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 27583 | else $as_nop |
| 27584 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 27585 | then : |
| 27586 | case "$host_os" in |
| 27587 | solaris* | aix*) gl_cv_func_working_strsignal=no;; |
| 27588 | *) gl_cv_func_working_strsignal="guessing yes";; |
| 27589 | esac |
| 27590 | else $as_nop |
| 27591 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27592 | /* end confdefs.h. */ |
| 27593 | #include <string.h> |
| 27594 | #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */ |
| 27595 | |
| 27596 | int |
| 27597 | main (void) |
| 27598 | { |
| 27599 | int result = 0; |
| 27600 | char *s = strsignal (-1); |
| 27601 | if (s == (char *) 0) |
| 27602 | result |= 1; |
| 27603 | if (s == (char *) -1) |
| 27604 | result |= 2; |
| 27605 | return result; |
| 27606 | |
| 27607 | ; |
| 27608 | return 0; |
| 27609 | } |
| 27610 | _ACEOF |
| 27611 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 27612 | then : |
| 27613 | gl_cv_func_working_strsignal=yes |
| 27614 | else $as_nop |
| 27615 | gl_cv_func_working_strsignal=no |
| 27616 | fi |
| 27617 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 27618 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 27619 | fi |
| 27620 | |
| 27621 | fi |
| 27622 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5 |
| 27623 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_working_strsignal" >&6; } |
| 27624 | if testscip-shell system . . test. "$gl_cv_func_working_strsignal" = no; then |
| 27625 | REPLACE_STRSIGNAL=1 |
| 27626 | fi |
| 27627 | else |
| 27628 | HAVE_STRSIGNAL=0 |
| 27629 | fi |
| 27630 | |
| 27631 | |
| 27632 | if testscip-shell system . . test. $HAVE_STRSIGNAL = 0 || testscip-shell system . . test. $REPLACE_STRSIGNAL = 1; then |
| 27633 | GL_COND_OBJ_STRSIGNAL_TRUE= |
| 27634 | GL_COND_OBJ_STRSIGNAL_FALSE='#' |
| 27635 | else |
| 27636 | GL_COND_OBJ_STRSIGNAL_TRUE='#' |
| 27637 | GL_COND_OBJ_STRSIGNAL_FALSE= |
| 27638 | fi |
| 27639 | : |
| 27640 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STRSIGNAL_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STRSIGNAL_FALSE}"; then |
| 27641 | GL_COND_OBJ_STRSIGNAL_TRUE='#' |
| 27642 | GL_COND_OBJ_STRSIGNAL_FALSE='#' |
| 27643 | fi |
| 27644 | |
| 27645 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STRSIGNAL_TRUE"; then : |
| 27646 | |
| 27647 | |
| 27648 | |
| 27649 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> |
| 27650 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 27651 | if testscip-shell system . . test. "x$ac_cv_have_decl_sys_siglist" = xyes |
| 27652 | then : |
| 27653 | ac_have_decl=1 |
| 27654 | else $as_nop |
| 27655 | ac_have_decl=0 |
| 27656 | fi |
| 27657 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h |
| 27658 | |
| 27659 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h> |
| 27660 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 27661 | if testscip-shell system . . test. "x$ac_cv_have_decl__sys_siglist" = xyes |
| 27662 | then : |
| 27663 | ac_have_decl=1 |
| 27664 | else $as_nop |
| 27665 | ac_have_decl=0 |
| 27666 | fi |
| 27667 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h |
| 27668 | |
| 27669 | |
| 27670 | |
| 27671 | fi |
| 27672 | |
| 27673 | |
| 27674 | |
| 27675 | |
| 27676 | |
| 27677 | |
| 27678 | |
| 27679 | |
| 27680 | |
| 27681 | |
| 27682 | |
| 27683 | |
| 27684 | |
| 27685 | |
| 27686 | GL_GNULIB_STRSIGNAL=1 |
| 27687 | |
| 27688 | |
| 27689 | |
| 27690 | |
| 27691 | |
| 27692 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h |
| 27693 | |
| 27694 | |
| 27695 | |
| 27696 | |
| 27697 | |
| 27698 | |
| 27699 | |
| 27700 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "strtok_r" "ac_cv_func_strtok_r" |
| 27701 | if testscip-shell system . . test. "x$ac_cv_func_strtok_r" = xyes |
| 27702 | then : |
| 27703 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h |
| 27704 | |
| 27705 | fi |
| 27706 | |
| 27707 | if testscip-shell system . . test. $ac_cv_func_strtok_r = yes; then |
| 27708 | HAVE_STRTOK_R=1 |
| 27709 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5 |
| 27710 | printfscip-shell system . . printf. %s "checking whether strtok_r works... " >&6; } |
| 27711 | if testscip-shell system . . test. ${gl_cv_func_strtok_r_works+y} |
| 27712 | then : |
| 27713 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 27714 | else $as_nop |
| 27715 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 27716 | then : |
| 27717 | case "$host_os" in |
| 27718 | # Guess no on glibc systems. |
| 27719 | *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;; |
| 27720 | # Guess yes on native Windows. |
| 27721 | mingw*) gl_cv_func_strtok_r_works="guessing yes" ;; |
| 27722 | *) gl_cv_func_strtok_r_works="guessing yes" ;; |
| 27723 | esac |
| 27724 | |
| 27725 | else $as_nop |
| 27726 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27727 | /* end confdefs.h. */ |
| 27728 | |
| 27729 | #ifndef __OPTIMIZE__ |
| 27730 | # define __OPTIMIZE__ 1 |
| 27731 | #endif |
| 27732 | #undef __OPTIMIZE_SIZE__ |
| 27733 | #undef __NO_INLINE__ |
| 27734 | #include <stdlib.h> |
| 27735 | #include <string.h> |
| 27736 | |
| 27737 | int |
| 27738 | main (void) |
| 27739 | { |
| 27740 | static const char dummy[] = "\177\01a"; |
| 27741 | char delimiters[] = "xxxxxxxx"; |
| 27742 | char *save_ptr = (char *) dummy; |
| 27743 | strtok_r (delimiters, "x", &save_ptr); |
| 27744 | strtok_r (NULL, "x", &save_ptr); |
| 27745 | return 0; |
| 27746 | |
| 27747 | ; |
| 27748 | return 0; |
| 27749 | } |
| 27750 | |
| 27751 | _ACEOF |
| 27752 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 27753 | then : |
| 27754 | gl_cv_func_strtok_r_works=yes |
| 27755 | else $as_nop |
| 27756 | gl_cv_func_strtok_r_works=no |
| 27757 | fi |
| 27758 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 27759 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 27760 | fi |
| 27761 | |
| 27762 | |
| 27763 | fi |
| 27764 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5 |
| 27765 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_strtok_r_works" >&6; } |
| 27766 | case "$gl_cv_func_strtok_r_works" in |
| 27767 | *no) |
| 27768 | UNDEFINE_STRTOK_R=1 |
| 27769 | ;; |
| 27770 | esac |
| 27771 | else |
| 27772 | HAVE_STRTOK_R=0 |
| 27773 | fi |
| 27774 | |
| 27775 | if testscip-shell system . . test. $ac_cv_have_decl_strtok_r = no; then |
| 27776 | HAVE_DECL_STRTOK_R=0 |
| 27777 | fi |
| 27778 | |
| 27779 | |
| 27780 | if testscip-shell system . . test. $HAVE_STRTOK_R = 0 || testscip-shell system . . test. $REPLACE_STRTOK_R = 1; then |
| 27781 | GL_COND_OBJ_STRTOK_R_TRUE= |
| 27782 | GL_COND_OBJ_STRTOK_R_FALSE='#' |
| 27783 | else |
| 27784 | GL_COND_OBJ_STRTOK_R_TRUE='#' |
| 27785 | GL_COND_OBJ_STRTOK_R_FALSE= |
| 27786 | fi |
| 27787 | : |
| 27788 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STRTOK_R_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STRTOK_R_FALSE}"; then |
| 27789 | GL_COND_OBJ_STRTOK_R_TRUE='#' |
| 27790 | GL_COND_OBJ_STRTOK_R_FALSE='#' |
| 27791 | fi |
| 27792 | |
| 27793 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STRTOK_R_TRUE"; then : |
| 27794 | |
| 27795 | |
| 27796 | : |
| 27797 | |
| 27798 | |
| 27799 | fi |
| 27800 | |
| 27801 | |
| 27802 | |
| 27803 | |
| 27804 | |
| 27805 | |
| 27806 | |
| 27807 | |
| 27808 | |
| 27809 | |
| 27810 | |
| 27811 | |
| 27812 | |
| 27813 | |
| 27814 | GL_GNULIB_STRTOK_R=1 |
| 27815 | |
| 27816 | |
| 27817 | |
| 27818 | |
| 27819 | |
| 27820 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h |
| 27821 | |
| 27822 | |
| 27823 | |
| 27824 | |
| 27825 | |
| 27826 | |
| 27827 | |
| 27828 | |
| 27829 | |
| 27830 | |
| 27831 | |
| 27832 | |
| 27833 | |
| 27834 | |
| 27835 | |
| 27836 | |
| 27837 | |
| 27838 | |
| 27839 | |
| 27840 | |
| 27841 | |
| 27842 | |
| 27843 | |
| 27844 | |
| 27845 | |
| 27846 | |
| 27847 | |
| 27848 | |
| 27849 | |
| 27850 | |
| 27851 | |
| 27852 | |
| 27853 | |
| 27854 | |
| 27855 | |
| 27856 | |
| 27857 | |
| 27858 | |
| 27859 | |
| 27860 | |
| 27861 | |
| 27862 | |
| 27863 | |
| 27864 | |
| 27865 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r, |
| 27866 | gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has |
| 27867 | been included before. */ |
| 27868 | #if defined __MINGW32__ |
| 27869 | # include <unistd.h> |
| 27870 | #endif |
| 27871 | #include <time.h> |
| 27872 | |
| 27873 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 27874 | if testscip-shell system . . test. "x$ac_cv_have_decl_localtime_r" = xyes |
| 27875 | then : |
| 27876 | ac_have_decl=1 |
| 27877 | else $as_nop |
| 27878 | ac_have_decl=0 |
| 27879 | fi |
| 27880 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_LOCALTIME_R $ac_have_decl" >>confdefs.h |
| 27881 | |
| 27882 | if testscip-shell system . . test. $ac_cv_have_decl_localtime_r = no; then |
| 27883 | HAVE_DECL_LOCALTIME_R=0 |
| 27884 | fi |
| 27885 | |
| 27886 | |
| 27887 | if testscip-shell system . . test. $ac_cv_func_localtime_r = yes; then |
| 27888 | HAVE_LOCALTIME_R=1 |
| 27889 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 |
| 27890 | printfscip-shell system . . printf. %s "checking whether localtime_r is compatible with its POSIX signature... " >&6; } |
| 27891 | if testscip-shell system . . test. ${gl_cv_time_r_posix+y} |
| 27892 | then : |
| 27893 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 27894 | else $as_nop |
| 27895 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27896 | /* end confdefs.h. */ |
| 27897 | /* mingw's <time.h> provides the functions asctime_r, ctime_r, |
| 27898 | gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has |
| 27899 | been included before. */ |
| 27900 | #if defined __MINGW32__ |
| 27901 | # include <unistd.h> |
| 27902 | #endif |
| 27903 | #include <time.h> |
| 27904 | |
| 27905 | int |
| 27906 | main (void) |
| 27907 | { |
| 27908 | /* We don't need to append 'restrict's to the argument types, |
| 27909 | even though the POSIX signature has the 'restrict's, |
| 27910 | since C99 says they can't affect type compatibility. */ |
| 27911 | struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; |
| 27912 | if (ptr) return 0; |
| 27913 | /* Check the return type is a pointer. |
| 27914 | On HP-UX 10 it is 'int'. */ |
| 27915 | *localtime_r (0, 0); |
| 27916 | ; |
| 27917 | return 0; |
| 27918 | } |
| 27919 | |
| 27920 | _ACEOF |
| 27921 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 27922 | then : |
| 27923 | gl_cv_time_r_posix=yes |
| 27924 | else $as_nop |
| 27925 | gl_cv_time_r_posix=no |
| 27926 | fi |
| 27927 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 27928 | |
| 27929 | fi |
| 27930 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 |
| 27931 | printfscip-shell system . . printf. "%s\n" "$gl_cv_time_r_posix" >&6; } |
| 27932 | if testscip-shell system . . test. $gl_cv_time_r_posix = yes; then |
| 27933 | REPLACE_LOCALTIME_R=0 |
| 27934 | else |
| 27935 | REPLACE_LOCALTIME_R=1 |
| 27936 | fi |
| 27937 | else |
| 27938 | HAVE_LOCALTIME_R=0 |
| 27939 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5 |
| 27940 | printfscip-shell system . . printf. %s "checking whether localtime_r exists as an inline function... " >&6; } |
| 27941 | if testscip-shell system . . test. ${gl_cv_func_localtime_r_inline+y} |
| 27942 | then : |
| 27943 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 27944 | else $as_nop |
| 27945 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27946 | /* end confdefs.h. */ |
| 27947 | /* mingw's <time.h> provides the functions asctime_r, ctime_r, |
| 27948 | gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has |
| 27949 | been included before. */ |
| 27950 | #if defined __MINGW32__ |
| 27951 | # include <unistd.h> |
| 27952 | #endif |
| 27953 | #include <time.h> |
| 27954 | |
| 27955 | int |
| 27956 | main (void) |
| 27957 | { |
| 27958 | time_t a; |
| 27959 | struct tm r; |
| 27960 | localtime_r (&a, &r); |
| 27961 | |
| 27962 | ; |
| 27963 | return 0; |
| 27964 | } |
| 27965 | |
| 27966 | _ACEOF |
| 27967 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 27968 | then : |
| 27969 | gl_cv_func_localtime_r_inline=yes |
| 27970 | else $as_nop |
| 27971 | gl_cv_func_localtime_r_inline=no |
| 27972 | fi |
| 27973 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27974 | conftest$ac_exeext conftest.$ac_ext |
| 27975 | |
| 27976 | fi |
| 27977 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5 |
| 27978 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_localtime_r_inline" >&6; } |
| 27979 | if testscip-shell system . . test. $gl_cv_func_localtime_r_inline = yes; then |
| 27980 | REPLACE_LOCALTIME_R=1 |
| 27981 | fi |
| 27982 | fi |
| 27983 | |
| 27984 | |
| 27985 | if testscip-shell system . . test. $HAVE_LOCALTIME_R = 0 || testscip-shell system . . test. $REPLACE_LOCALTIME_R = 1; then |
| 27986 | GL_COND_OBJ_TIME_R_TRUE= |
| 27987 | GL_COND_OBJ_TIME_R_FALSE='#' |
| 27988 | else |
| 27989 | GL_COND_OBJ_TIME_R_TRUE='#' |
| 27990 | GL_COND_OBJ_TIME_R_FALSE= |
| 27991 | fi |
| 27992 | : |
| 27993 | if testscip-shell system . . test. -z "${GL_COND_OBJ_TIME_R_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_TIME_R_FALSE}"; then |
| 27994 | GL_COND_OBJ_TIME_R_TRUE='#' |
| 27995 | GL_COND_OBJ_TIME_R_FALSE='#' |
| 27996 | fi |
| 27997 | |
| 27998 | if testscip-shell system . . test. -z "$GL_COND_OBJ_TIME_R_TRUE"; then : |
| 27999 | |
| 28000 | |
| 28001 | : |
| 28002 | |
| 28003 | |
| 28004 | fi |
| 28005 | |
| 28006 | |
| 28007 | |
| 28008 | |
| 28009 | |
| 28010 | |
| 28011 | |
| 28012 | |
| 28013 | |
| 28014 | GL_GNULIB_TIME_R=1 |
| 28015 | |
| 28016 | |
| 28017 | |
| 28018 | |
| 28019 | |
| 28020 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_TIME_R 1" >>confdefs.h |
| 28021 | |
| 28022 | |
| 28023 | |
| 28024 | : |
| 28025 | |
| 28026 | |
| 28027 | |
| 28028 | REPLACE_TZSET=0 |
| 28029 | case "$host_os" in |
| 28030 | mingw*) REPLACE_TZSET=1 ;; |
| 28031 | esac |
| 28032 | |
| 28033 | |
| 28034 | if testscip-shell system . . test. $REPLACE_TZSET = 1; then |
| 28035 | GL_COND_OBJ_TZSET_TRUE= |
| 28036 | GL_COND_OBJ_TZSET_FALSE='#' |
| 28037 | else |
| 28038 | GL_COND_OBJ_TZSET_TRUE='#' |
| 28039 | GL_COND_OBJ_TZSET_FALSE= |
| 28040 | fi |
| 28041 | : |
| 28042 | if testscip-shell system . . test. -z "${GL_COND_OBJ_TZSET_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_TZSET_FALSE}"; then |
| 28043 | GL_COND_OBJ_TZSET_TRUE='#' |
| 28044 | GL_COND_OBJ_TZSET_FALSE='#' |
| 28045 | fi |
| 28046 | |
| 28047 | |
| 28048 | |
| 28049 | |
| 28050 | |
| 28051 | |
| 28052 | |
| 28053 | |
| 28054 | |
| 28055 | |
| 28056 | GL_GNULIB_TZSET=1 |
| 28057 | |
| 28058 | |
| 28059 | |
| 28060 | |
| 28061 | |
| 28062 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_TZSET 1" >>confdefs.h |
| 28063 | |
| 28064 | |
| 28065 | |
| 28066 | |
| 28067 | |
| 28068 | |
| 28069 | |
| 28070 | |
| 28071 | |
| 28072 | |
| 28073 | |
| 28074 | |
| 28075 | |
| 28076 | |
| 28077 | |
| 28078 | |
| 28079 | |
| 28080 | |
| 28081 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unlink honors trailing slashes" >&5 |
| 28082 | printfscip-shell system . . printf. %s "checking whether unlink honors trailing slashes... " >&6; } |
| 28083 | if testscip-shell system . . test. ${gl_cv_func_unlink_honors_slashes+y} |
| 28084 | then : |
| 28085 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28086 | else $as_nop |
| 28087 | touchscip-shell system . . touch. conftest.file |
| 28088 | # Assume that if we have lstat, we can also check symlinks. |
| 28089 | if testscip-shell system . . test. $ac_cv_func_lstat = yes; then |
| 28090 | lnscip-shell system . . ln. -s conftest.file conftest.lnk |
| 28091 | fi |
| 28092 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 28093 | then : |
| 28094 | case "$host_os" in |
| 28095 | # Guess yes on Linux systems. |
| 28096 | linux-* | linux) gl_cv_func_unlink_honors_slashes="guessing yes" ;; |
| 28097 | # Guess yes on glibc systems. |
| 28098 | *-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;; |
| 28099 | # Guess no on native Windows. |
| 28100 | mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;; |
| 28101 | # If we don't know, obey --enable-cross-guesses. |
| 28102 | *) gl_cv_func_unlink_honors_slashes="$gl_cross_guess_normal" ;; |
| 28103 | esac |
| 28104 | |
| 28105 | else $as_nop |
| 28106 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28107 | /* end confdefs.h. */ |
| 28108 | #if HAVE_UNISTD_H |
| 28109 | # include <unistd.h> |
| 28110 | #else /* on Windows with MSVC */ |
| 28111 | # include <io.h> |
| 28112 | #endif |
| 28113 | #include <errno.h> |
| 28114 | |
| 28115 | |
| 28116 | $gl_mda_defines |
| 28117 | |
| 28118 | int |
| 28119 | main (void) |
| 28120 | { |
| 28121 | int result = 0; |
| 28122 | if (!unlink ("conftest.file/")) |
| 28123 | result |= 1; |
| 28124 | else if (errno != ENOTDIR) |
| 28125 | result |= 2; |
| 28126 | #if HAVE_LSTAT |
| 28127 | if (!unlink ("conftest.lnk/")) |
| 28128 | result |= 4; |
| 28129 | else if (errno != ENOTDIR) |
| 28130 | result |= 8; |
| 28131 | #endif |
| 28132 | return result; |
| 28133 | |
| 28134 | ; |
| 28135 | return 0; |
| 28136 | } |
| 28137 | _ACEOF |
| 28138 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 28139 | then : |
| 28140 | gl_cv_func_unlink_honors_slashes=yes |
| 28141 | else $as_nop |
| 28142 | gl_cv_func_unlink_honors_slashes=no |
| 28143 | fi |
| 28144 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28145 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28146 | fi |
| 28147 | |
| 28148 | rmscip-shell system . . rm. -f conftest.file conftest.lnk |
| 28149 | fi |
| 28150 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_honors_slashes" >&5 |
| 28151 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_unlink_honors_slashes" >&6; } |
| 28152 | case "$gl_cv_func_unlink_honors_slashes" in |
| 28153 | *no) |
| 28154 | REPLACE_UNLINK=1 |
| 28155 | ;; |
| 28156 | esac |
| 28157 | |
| 28158 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unlink of a parent directory fails as it should" >&5 |
| 28159 | printfscip-shell system . . printf. %s "checking whether unlink of a parent directory fails as it should... " >&6; } |
| 28160 | if testscip-shell system . . test. ${gl_cv_func_unlink_parent_fails+y} |
| 28161 | then : |
| 28162 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28163 | else $as_nop |
| 28164 | case "$host_os" in |
| 28165 | darwin*) |
| 28166 | if { |
| 28167 | # Use the mktemp program if available. If not available, hide the error |
| 28168 | # message. |
| 28169 | tmp=`(umask 077 && mktempscip-shell system . . mktemp. -d /tmp/gtXXXXXXscip-shell filesystem . . `/tmp/gtXXXXXX`.) 2>/dev/nullscip-shell filesystem . . `/dev/null`.` && |
| 28170 | testscip-shell system . . test. -n "$tmp" && testscip-shell system . . test. -d "$tmp" |
| 28171 | } || |
| 28172 | { |
| 28173 | # Use a simple mkdir command. It is guaranteed to fail if the directory |
| 28174 | # already exists. $RANDOM is bash specific and expands to empty in shells |
| 28175 | # other than bash, ksh and zsh. Its use does not increase security; |
| 28176 | # rather, it minimizes the probability of failure in a very cluttered /tmp |
| 28177 | # directory. |
| 28178 | tmp=/tmp/gt$$-$RANDOM |
| 28179 | (umask 077 && mkdirscip-shell system . . mkdir. "$tmp") |
| 28180 | }; then |
| 28181 | mkdirscip-shell system . . mkdir. "$tmp/subdir" |
| 28182 | GL_SUBDIR_FOR_UNLINK="$tmp/subdir" |
| 28183 | export GL_SUBDIR_FOR_UNLINK |
| 28184 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 28185 | then : |
| 28186 | # If we don't know, obey --enable-cross-guesses. |
| 28187 | gl_cv_func_unlink_parent_fails="$gl_cross_guess_normal" |
| 28188 | |
| 28189 | else $as_nop |
| 28190 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28191 | /* end confdefs.h. */ |
| 28192 | |
| 28193 | #include <stdlib.h> |
| 28194 | #if HAVE_UNISTD_H |
| 28195 | # include <unistd.h> |
| 28196 | #else /* on Windows with MSVC */ |
| 28197 | # include <direct.h> |
| 28198 | # include <io.h> |
| 28199 | #endif |
| 28200 | |
| 28201 | |
| 28202 | $gl_mda_defines |
| 28203 | |
| 28204 | int main () |
| 28205 | { |
| 28206 | int result = 0; |
| 28207 | if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0) |
| 28208 | result |= 1; |
| 28209 | else if (unlink ("..") == 0) |
| 28210 | result |= 2; |
| 28211 | return result; |
| 28212 | } |
| 28213 | |
| 28214 | _ACEOF |
| 28215 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 28216 | then : |
| 28217 | gl_cv_func_unlink_parent_fails=yes |
| 28218 | else $as_nop |
| 28219 | gl_cv_func_unlink_parent_fails=no |
| 28220 | fi |
| 28221 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28222 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28223 | fi |
| 28224 | |
| 28225 | unset GL_SUBDIR_FOR_UNLINK |
| 28226 | rmscip-shell system . . rm. -rf "$tmp" |
| 28227 | else |
| 28228 | gl_cv_func_unlink_parent_fails="guessing no" |
| 28229 | fi |
| 28230 | ;; |
| 28231 | *) |
| 28232 | gl_cv_func_unlink_parent_fails="guessing yes" |
| 28233 | ;; |
| 28234 | esac |
| 28235 | |
| 28236 | fi |
| 28237 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_parent_fails" >&5 |
| 28238 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_unlink_parent_fails" >&6; } |
| 28239 | case "$gl_cv_func_unlink_parent_fails" in |
| 28240 | *no) |
| 28241 | REPLACE_UNLINK=1 |
| 28242 | |
| 28243 | printfscip-shell system . . printf. "%s\n" "#define UNLINK_PARENT_BUG 1" >>confdefs.h |
| 28244 | |
| 28245 | ;; |
| 28246 | esac |
| 28247 | |
| 28248 | |
| 28249 | if testscip-shell system . . test. $REPLACE_UNLINK = 1; then |
| 28250 | GL_COND_OBJ_UNLINK_TRUE= |
| 28251 | GL_COND_OBJ_UNLINK_FALSE='#' |
| 28252 | else |
| 28253 | GL_COND_OBJ_UNLINK_TRUE='#' |
| 28254 | GL_COND_OBJ_UNLINK_FALSE= |
| 28255 | fi |
| 28256 | : |
| 28257 | if testscip-shell system . . test. -z "${GL_COND_OBJ_UNLINK_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_UNLINK_FALSE}"; then |
| 28258 | GL_COND_OBJ_UNLINK_TRUE='#' |
| 28259 | GL_COND_OBJ_UNLINK_FALSE='#' |
| 28260 | fi |
| 28261 | |
| 28262 | |
| 28263 | |
| 28264 | |
| 28265 | |
| 28266 | |
| 28267 | |
| 28268 | |
| 28269 | |
| 28270 | |
| 28271 | GL_GNULIB_UNLINK=1 |
| 28272 | |
| 28273 | |
| 28274 | |
| 28275 | |
| 28276 | |
| 28277 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_UNLINK 1" >>confdefs.h |
| 28278 | |
| 28279 | |
| 28280 | |
| 28281 | |
| 28282 | |
| 28283 | |
| 28284 | |
| 28285 | case "$host_os" in |
| 28286 | mingw*) |
| 28287 | REPLACE_UTIME=1 |
| 28288 | ;; |
| 28289 | *) |
| 28290 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "utime" "ac_cv_func_utime" |
| 28291 | if testscip-shell system . . test. "x$ac_cv_func_utime" = xyes |
| 28292 | then : |
| 28293 | printfscip-shell system . . printf. "%s\n" "#define HAVE_UTIME 1" >>confdefs.h |
| 28294 | |
| 28295 | fi |
| 28296 | |
| 28297 | if testscip-shell system . . test. $ac_cv_func_utime = no; then |
| 28298 | HAVE_UTIME=0 |
| 28299 | else |
| 28300 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime handles trailing slashes on files" >&5 |
| 28301 | printfscip-shell system . . printf. %s "checking whether utime handles trailing slashes on files... " >&6; } |
| 28302 | if testscip-shell system . . test. ${gl_cv_func_utime_file_slash+y} |
| 28303 | then : |
| 28304 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28305 | else $as_nop |
| 28306 | touchscip-shell system . . touch. conftest.tmp |
| 28307 | # Assume that if we have lstat, we can also check symlinks. |
| 28308 | if testscip-shell system . . test. $ac_cv_func_lstat = yes; then |
| 28309 | lnscip-shell system . . ln. -s conftest.tmp conftest.lnk |
| 28310 | fi |
| 28311 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 28312 | then : |
| 28313 | case "$host_os" in |
| 28314 | # Guess yes on Linux systems. |
| 28315 | linux-* | linux) gl_cv_func_utime_file_slash="guessing yes" ;; |
| 28316 | # Guess yes on glibc systems. |
| 28317 | *-gnu* | gnu*) gl_cv_func_utime_file_slash="guessing yes" ;; |
| 28318 | # Guess no on macOS. |
| 28319 | darwin*) gl_cv_func_utime_file_slash="guessing no" ;; |
| 28320 | # If we don't know, obey --enable-cross-guesses. |
| 28321 | *) gl_cv_func_utime_file_slash="$gl_cross_guess_normal" ;; |
| 28322 | esac |
| 28323 | |
| 28324 | else $as_nop |
| 28325 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28326 | /* end confdefs.h. */ |
| 28327 | #include <stddef.h> |
| 28328 | #include <utime.h> |
| 28329 | |
| 28330 | int |
| 28331 | main (void) |
| 28332 | { |
| 28333 | int result = 0; |
| 28334 | if (!utime ("conftest.tmp/", NULL)) |
| 28335 | result |= 1; |
| 28336 | #if HAVE_LSTAT |
| 28337 | if (!utime ("conftest.lnk/", NULL)) |
| 28338 | result |= 2; |
| 28339 | #endif |
| 28340 | return result; |
| 28341 | |
| 28342 | ; |
| 28343 | return 0; |
| 28344 | } |
| 28345 | _ACEOF |
| 28346 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 28347 | then : |
| 28348 | gl_cv_func_utime_file_slash=yes |
| 28349 | else $as_nop |
| 28350 | gl_cv_func_utime_file_slash=no |
| 28351 | fi |
| 28352 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28353 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28354 | fi |
| 28355 | |
| 28356 | rmscip-shell system . . rm. -f conftest.tmp conftest.lnk |
| 28357 | |
| 28358 | fi |
| 28359 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_utime_file_slash" >&5 |
| 28360 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_utime_file_slash" >&6; } |
| 28361 | case $gl_cv_func_stat_file_slash in |
| 28362 | *no) |
| 28363 | REPLACE_UTIME=1 |
| 28364 | |
| 28365 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_FUNC_UTIME_FILE 1" >>confdefs.h |
| 28366 | |
| 28367 | ;; |
| 28368 | esac |
| 28369 | fi |
| 28370 | ;; |
| 28371 | esac |
| 28372 | |
| 28373 | |
| 28374 | if testscip-shell system . . test. $HAVE_UTIME = 0 || testscip-shell system . . test. $REPLACE_UTIME = 1; then |
| 28375 | GL_COND_OBJ_UTIME_TRUE= |
| 28376 | GL_COND_OBJ_UTIME_FALSE='#' |
| 28377 | else |
| 28378 | GL_COND_OBJ_UTIME_TRUE='#' |
| 28379 | GL_COND_OBJ_UTIME_FALSE= |
| 28380 | fi |
| 28381 | : |
| 28382 | if testscip-shell system . . test. -z "${GL_COND_OBJ_UTIME_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_UTIME_FALSE}"; then |
| 28383 | GL_COND_OBJ_UTIME_TRUE='#' |
| 28384 | GL_COND_OBJ_UTIME_FALSE='#' |
| 28385 | fi |
| 28386 | |
| 28387 | if testscip-shell system . . test. -z "$GL_COND_OBJ_UTIME_TRUE"; then : |
| 28388 | |
| 28389 | : |
| 28390 | |
| 28391 | fi |
| 28392 | |
| 28393 | |
| 28394 | |
| 28395 | |
| 28396 | |
| 28397 | |
| 28398 | |
| 28399 | |
| 28400 | |
| 28401 | GL_GNULIB_UTIME=1 |
| 28402 | |
| 28403 | |
| 28404 | |
| 28405 | |
| 28406 | |
| 28407 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_UTIME 1" >>confdefs.h |
| 28408 | |
| 28409 | |
| 28410 | |
| 28411 | |
| 28412 | |
| 28413 | |
| 28414 | |
| 28415 | |
| 28416 | |
| 28417 | |
| 28418 | |
| 28419 | |
| 28420 | |
| 28421 | |
| 28422 | |
| 28423 | if testscip-shell system . . test. $ac_cv_func_futimens = no && testscip-shell system . . test. $ac_cv_func_futimesat = yes; then |
| 28424 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5 |
| 28425 | printfscip-shell system . . printf. %s "checking whether futimesat handles NULL file... " >&6; } |
| 28426 | if testscip-shell system . . test. ${gl_cv_func_futimesat_works+y} |
| 28427 | then : |
| 28428 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28429 | else $as_nop |
| 28430 | touchscip-shell system . . touch. conftest.file |
| 28431 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 28432 | then : |
| 28433 | case "$host_os" in |
| 28434 | # Guess yes on Linux systems. |
| 28435 | linux-* | linux) gl_cv_func_futimesat_works="guessing yes" ;; |
| 28436 | # Guess yes on glibc systems. |
| 28437 | *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;; |
| 28438 | # If we don't know, obey --enable-cross-guesses. |
| 28439 | *) gl_cv_func_futimesat_works="$gl_cross_guess_normal" ;; |
| 28440 | esac |
| 28441 | |
| 28442 | else $as_nop |
| 28443 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28444 | /* end confdefs.h. */ |
| 28445 | |
| 28446 | #include <stddef.h> |
| 28447 | #include <sys/times.h> |
| 28448 | #include <fcntl.h> |
| 28449 | |
| 28450 | |
| 28451 | $gl_mda_defines |
| 28452 | |
| 28453 | int |
| 28454 | main (void) |
| 28455 | { |
| 28456 | int fd = open ("conftest.file", O_RDWR); |
| 28457 | if (fd < 0) return 1; |
| 28458 | if (futimesat (fd, NULL, NULL)) return 2; |
| 28459 | |
| 28460 | ; |
| 28461 | return 0; |
| 28462 | } |
| 28463 | _ACEOF |
| 28464 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 28465 | then : |
| 28466 | gl_cv_func_futimesat_works=yes |
| 28467 | else $as_nop |
| 28468 | gl_cv_func_futimesat_works=no |
| 28469 | fi |
| 28470 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28471 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28472 | fi |
| 28473 | |
| 28474 | rmscip-shell system . . rm. -f conftest.file |
| 28475 | fi |
| 28476 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5 |
| 28477 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_futimesat_works" >&6; } |
| 28478 | case "$gl_cv_func_futimesat_works" in |
| 28479 | *yes) ;; |
| 28480 | *) |
| 28481 | |
| 28482 | printfscip-shell system . . printf. "%s\n" "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h |
| 28483 | |
| 28484 | ;; |
| 28485 | esac |
| 28486 | fi |
| 28487 | |
| 28488 | |
| 28489 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 |
| 28490 | printfscip-shell system . . printf. %s "checking for variable-length arrays... " >&6; } |
| 28491 | if testscip-shell system . . test. ${ac_cv_c_vararrays+y} |
| 28492 | then : |
| 28493 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28494 | else $as_nop |
| 28495 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28496 | /* end confdefs.h. */ |
| 28497 | #ifdef __STDC_NO_VLA__ |
| 28498 | defined |
| 28499 | #endif |
| 28500 | |
| 28501 | _ACEOF |
| 28502 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28503 | $EGREP "defined" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 28504 | then : |
| 28505 | ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' |
| 28506 | else $as_nop |
| 28507 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28508 | /* end confdefs.h. */ |
| 28509 | /* Test for VLA support. This test is partly inspired |
| 28510 | from examples in the C standard. Use at least two VLA |
| 28511 | functions to detect the GCC 3.4.3 bug described in: |
| 28512 | https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html |
| 28513 | */ |
| 28514 | #ifdef __STDC_NO_VLA__ |
| 28515 | syntax error; |
| 28516 | #else |
| 28517 | extern int n; |
| 28518 | int B[100]; |
| 28519 | int fvla (int m, int C[m][m]); |
| 28520 | |
| 28521 | int |
| 28522 | simple (int count, int all[static count]) |
| 28523 | { |
| 28524 | return all[count - 1]; |
| 28525 | } |
| 28526 | |
| 28527 | int |
| 28528 | fvla (int m, int C[m][m]) |
| 28529 | { |
| 28530 | typedef int VLA[m][m]; |
| 28531 | VLA x; |
| 28532 | int D[m]; |
| 28533 | static int (*q)[m] = &B; |
| 28534 | int (*s)[n] = q; |
| 28535 | return C && &x[0][0] == &D[0] && &D[0] == s[0]; |
| 28536 | } |
| 28537 | #endif |
| 28538 | |
| 28539 | int |
| 28540 | main (void) |
| 28541 | { |
| 28542 | |
| 28543 | ; |
| 28544 | return 0; |
| 28545 | } |
| 28546 | _ACEOF |
| 28547 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 28548 | then : |
| 28549 | ac_cv_c_vararrays=yes |
| 28550 | else $as_nop |
| 28551 | ac_cv_c_vararrays=no |
| 28552 | fi |
| 28553 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28554 | fi |
| 28555 | rmscip-shell system . . rm. -rf conftest* |
| 28556 | |
| 28557 | fi |
| 28558 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 |
| 28559 | printfscip-shell system . . printf. "%s\n" "$ac_cv_c_vararrays" >&6; } |
| 28560 | if testscip-shell system . . test. "$ac_cv_c_vararrays" = yes; then |
| 28561 | |
| 28562 | printfscip-shell system . . printf. "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h |
| 28563 | |
| 28564 | elif testscip-shell system . . test. "$ac_cv_c_vararrays" = no; then |
| 28565 | |
| 28566 | printfscip-shell system . . printf. "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h |
| 28567 | |
| 28568 | fi |
| 28569 | |
| 28570 | |
| 28571 | |
| 28572 | |
| 28573 | if testscip-shell system . . test. $ac_cv_func_vasnprintf = no; then |
| 28574 | |
| 28575 | |
| 28576 | |
| 28577 | |
| 28578 | |
| 28579 | |
| 28580 | |
| 28581 | |
| 28582 | |
| 28583 | |
| 28584 | gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" |
| 28585 | |
| 28586 | |
| 28587 | |
| 28588 | |
| 28589 | |
| 28590 | |
| 28591 | |
| 28592 | |
| 28593 | |
| 28594 | gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" |
| 28595 | |
| 28596 | |
| 28597 | |
| 28598 | |
| 28599 | |
| 28600 | |
| 28601 | |
| 28602 | |
| 28603 | |
| 28604 | gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" |
| 28605 | |
| 28606 | |
| 28607 | |
| 28608 | |
| 28609 | |
| 28610 | |
| 28611 | |
| 28612 | |
| 28613 | |
| 28614 | gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" |
| 28615 | |
| 28616 | if testscip-shell system . . test. $ac_cv_func_vasnprintf = yes; then |
| 28617 | |
| 28618 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h |
| 28619 | |
| 28620 | fi |
| 28621 | |
| 28622 | |
| 28623 | |
| 28624 | |
| 28625 | |
| 28626 | |
| 28627 | |
| 28628 | |
| 28629 | |
| 28630 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 28631 | if testscip-shell system . . test. "x$ac_cv_type_ptrdiff_t" = xyes |
| 28632 | then : |
| 28633 | |
| 28634 | else $as_nop |
| 28635 | |
| 28636 | printfscip-shell system . . printf. "%s\n" "#define ptrdiff_t long" >>confdefs.h |
| 28637 | |
| 28638 | |
| 28639 | fi |
| 28640 | |
| 28641 | |
| 28642 | |
| 28643 | |
| 28644 | |
| 28645 | |
| 28646 | |
| 28647 | fi |
| 28648 | |
| 28649 | |
| 28650 | |
| 28651 | HAVE_WAITPID=1 |
| 28652 | case $host_os in |
| 28653 | mingw*) HAVE_WAITPID=0 ;; |
| 28654 | esac |
| 28655 | |
| 28656 | |
| 28657 | if testscip-shell system . . test. $HAVE_WAITPID = 0; then |
| 28658 | GL_COND_OBJ_WAITPID_TRUE= |
| 28659 | GL_COND_OBJ_WAITPID_FALSE='#' |
| 28660 | else |
| 28661 | GL_COND_OBJ_WAITPID_TRUE='#' |
| 28662 | GL_COND_OBJ_WAITPID_FALSE= |
| 28663 | fi |
| 28664 | : |
| 28665 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WAITPID_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WAITPID_FALSE}"; then |
| 28666 | GL_COND_OBJ_WAITPID_TRUE='#' |
| 28667 | GL_COND_OBJ_WAITPID_FALSE='#' |
| 28668 | fi |
| 28669 | |
| 28670 | |
| 28671 | |
| 28672 | |
| 28673 | |
| 28674 | |
| 28675 | |
| 28676 | |
| 28677 | |
| 28678 | |
| 28679 | GL_GNULIB_WAITPID=1 |
| 28680 | |
| 28681 | |
| 28682 | |
| 28683 | |
| 28684 | |
| 28685 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_WAITPID 1" >>confdefs.h |
| 28686 | |
| 28687 | |
| 28688 | |
| 28689 | |
| 28690 | |
| 28691 | |
| 28692 | |
| 28693 | |
| 28694 | |
| 28695 | |
| 28696 | |
| 28697 | |
| 28698 | |
| 28699 | |
| 28700 | |
| 28701 | : |
| 28702 | |
| 28703 | |
| 28704 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h |
| 28705 | |
| 28706 | |
| 28707 | |
| 28708 | |
| 28709 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h |
| 28710 | |
| 28711 | |
| 28712 | |
| 28713 | |
| 28714 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 28715 | if testscip-shell system . . test. "x$ac_cv_header_stdint_h" = xyes |
| 28716 | then : |
| 28717 | printfscip-shell system . . printf. "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
| 28718 | |
| 28719 | fi |
| 28720 | |
| 28721 | |
| 28722 | gl_gnulib_enabled_assure=false |
| 28723 | gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false |
| 28724 | gl_gnulib_enabled_chdir=false |
| 28725 | gl_gnulib_enabled_8198daae261b932d64a998f8586f5005=false |
| 28726 | gl_gnulib_enabled_cloexec=false |
| 28727 | gl_gnulib_enabled_75c65a2c014cf8235dd95289676302a4=false |
| 28728 | gl_gnulib_enabled_dirfd=false |
| 28729 | gl_gnulib_enabled_a691da99c1d83b83238e45f41a696f5c=false |
| 28730 | gl_gnulib_enabled_dup=false |
| 28731 | gl_gnulib_enabled_dup2=false |
| 28732 | gl_gnulib_enabled_fchdir=false |
| 28733 | gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=false |
| 28734 | gl_gnulib_enabled_64142d6558df0059920a9be1d634dadf=false |
| 28735 | gl_gnulib_enabled_fdopendir=false |
| 28736 | gl_gnulib_enabled_fca9852db2a43bb33f02f0fbdbc174f6=false |
| 28737 | gl_gnulib_enabled_fpieee=false |
| 28738 | gl_gnulib_enabled_fpucw=false |
| 28739 | gl_gnulib_enabled_e1c6a1281ce2cc59c716894550bcb2b5=false |
| 28740 | gl_gnulib_enabled_e0ca81912f23214e44f5700922db34be=false |
| 28741 | gl_gnulib_enabled_fstatat=false |
| 28742 | gl_gnulib_enabled_3d094ef542bfdd238a5194e172bfe5f6=false |
| 28743 | gl_gnulib_enabled_getdtablesize=false |
| 28744 | gl_gnulib_enabled_getrandom=false |
| 28745 | gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=false |
| 28746 | gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=false |
| 28747 | gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=false |
| 28748 | gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=false |
| 28749 | gl_gnulib_enabled_lock=false |
| 28750 | gl_gnulib_enabled_malloca=false |
| 28751 | gl_gnulib_enabled_math=false |
| 28752 | gl_gnulib_enabled_memrchr=false |
| 28753 | gl_gnulib_enabled_mkdir=false |
| 28754 | gl_gnulib_enabled_openat=false |
| 28755 | gl_gnulib_enabled_1840129d490f3a00c8a098316d0fa345=false |
| 28756 | gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false |
| 28757 | gl_gnulib_enabled_pathmax=false |
| 28758 | gl_gnulib_enabled_2f551a684aab5400633cbfd56df3bf94=false |
| 28759 | gl_gnulib_enabled_bba639f0cfd658540d716f3a2ba5e68f=false |
| 28760 | gl_gnulib_enabled_raise=false |
| 28761 | gl_gnulib_enabled_rewinddir=false |
| 28762 | gl_gnulib_enabled_d4850532688ba16d685f036076611f21=false |
| 28763 | gl_gnulib_enabled_signbit=false |
| 28764 | gl_gnulib_enabled_sigprocmask=false |
| 28765 | gl_gnulib_enabled_stdalign=false |
| 28766 | gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=false |
| 28767 | gl_gnulib_enabled_strerror=false |
| 28768 | gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72=false |
| 28769 | gl_gnulib_enabled_sys_random=false |
| 28770 | gl_gnulib_enabled_tempname=false |
| 28771 | gl_gnulib_enabled_threadlib=false |
| 28772 | gl_gnulib_enabled_tls=false |
| 28773 | gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440=false |
| 28774 | gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab=false |
| 28775 | gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354=false |
| 28776 | gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef=false |
| 28777 | gl_gnulib_enabled_48b2271240803e4879464b755748a89d=false |
| 28778 | gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false |
| 28779 | func_gl_gnulib_m4code_assurescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_assure(). () |
| 28780 | { |
| 28781 | if ! $gl_gnulib_enabled_assure; then |
| 28782 | gl_gnulib_enabled_assure=true |
| 28783 | fi |
| 28784 | } |
| 28785 | func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300bscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b(). () |
| 28786 | { |
| 28787 | if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then |
| 28788 | |
| 28789 | gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true |
| 28790 | fi |
| 28791 | } |
| 28792 | func_gl_gnulib_m4code_chdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_chdir(). () |
| 28793 | { |
| 28794 | if ! $gl_gnulib_enabled_chdir; then |
| 28795 | |
| 28796 | |
| 28797 | |
| 28798 | |
| 28799 | |
| 28800 | |
| 28801 | |
| 28802 | |
| 28803 | |
| 28804 | GL_GNULIB_CHDIR=1 |
| 28805 | |
| 28806 | |
| 28807 | |
| 28808 | |
| 28809 | |
| 28810 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CHDIR 1" >>confdefs.h |
| 28811 | |
| 28812 | |
| 28813 | |
| 28814 | gl_gnulib_enabled_chdir=true |
| 28815 | fi |
| 28816 | } |
| 28817 | func_gl_gnulib_m4code_8198daae261b932d64a998f8586f5005scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_8198daae261b932d64a998f8586f5005(). () |
| 28818 | { |
| 28819 | if ! $gl_gnulib_enabled_8198daae261b932d64a998f8586f5005; then |
| 28820 | |
| 28821 | |
| 28822 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5 |
| 28823 | printfscip-shell system . . printf. %s "checking whether this system supports file names of any length... " >&6; } |
| 28824 | if testscip-shell system . . test. ${gl_cv_have_unlimited_file_name_length+y} |
| 28825 | then : |
| 28826 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28827 | else $as_nop |
| 28828 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28829 | /* end confdefs.h. */ |
| 28830 | |
| 28831 | /* Arrange to define PATH_MAX, like "pathmax.h" does. */ |
| 28832 | #if HAVE_UNISTD_H |
| 28833 | # include <unistd.h> |
| 28834 | #endif |
| 28835 | #include <limits.h> |
| 28836 | #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN |
| 28837 | # include <sys/param.h> |
| 28838 | #endif |
| 28839 | #if !defined PATH_MAX && defined MAXPATHLEN |
| 28840 | # define PATH_MAX MAXPATHLEN |
| 28841 | #endif |
| 28842 | #ifdef __hpux |
| 28843 | # undef PATH_MAX |
| 28844 | # define PATH_MAX 1024 |
| 28845 | #endif |
| 28846 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 28847 | # undef PATH_MAX |
| 28848 | # define PATH_MAX 260 |
| 28849 | #endif |
| 28850 | |
| 28851 | #ifdef PATH_MAX |
| 28852 | have_arbitrary_file_name_length_limit |
| 28853 | #endif |
| 28854 | _ACEOF |
| 28855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28856 | $EGREP "have_arbitrary_file_name_length_limit" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 28857 | then : |
| 28858 | gl_cv_have_unlimited_file_name_length=no |
| 28859 | else $as_nop |
| 28860 | gl_cv_have_unlimited_file_name_length=yes |
| 28861 | fi |
| 28862 | rmscip-shell system . . rm. -rf conftest* |
| 28863 | |
| 28864 | fi |
| 28865 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5 |
| 28866 | printfscip-shell system . . printf. "%s\n" "$gl_cv_have_unlimited_file_name_length" >&6; } |
| 28867 | |
| 28868 | |
| 28869 | if testscip-shell system . . test. $gl_cv_have_unlimited_file_name_length = no; then |
| 28870 | GL_COND_OBJ_CHDIR_LONG_TRUE= |
| 28871 | GL_COND_OBJ_CHDIR_LONG_FALSE='#' |
| 28872 | else |
| 28873 | GL_COND_OBJ_CHDIR_LONG_TRUE='#' |
| 28874 | GL_COND_OBJ_CHDIR_LONG_FALSE= |
| 28875 | fi |
| 28876 | : |
| 28877 | if testscip-shell system . . test. -z "${GL_COND_OBJ_CHDIR_LONG_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_CHDIR_LONG_FALSE}"; then |
| 28878 | GL_COND_OBJ_CHDIR_LONG_TRUE='#' |
| 28879 | GL_COND_OBJ_CHDIR_LONG_FALSE='#' |
| 28880 | fi |
| 28881 | |
| 28882 | if testscip-shell system . . test. -z "$GL_COND_OBJ_CHDIR_LONG_TRUE"; then : |
| 28883 | |
| 28884 | : |
| 28885 | |
| 28886 | fi |
| 28887 | gl_gnulib_enabled_8198daae261b932d64a998f8586f5005=true |
| 28888 | if testscip-shell system . . test. $gl_cv_have_unlimited_file_name_length = no; then |
| 28889 | func_gl_gnulib_m4code_assurescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_assure(). |
| 28890 | fi |
| 28891 | func_gl_gnulib_m4code_chdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_chdir(). |
| 28892 | if testscip-shell system . . test. $gl_cv_have_unlimited_file_name_length = no; then |
| 28893 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). |
| 28894 | fi |
| 28895 | if testscip-shell system . . test. $gl_cv_have_unlimited_file_name_length = no; then |
| 28896 | func_gl_gnulib_m4code_memrchrscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_memrchr(). |
| 28897 | fi |
| 28898 | if testscip-shell system . . test. $gl_cv_have_unlimited_file_name_length = no; then |
| 28899 | func_gl_gnulib_m4code_openatscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_openat(). |
| 28900 | fi |
| 28901 | func_gl_gnulib_m4code_pathmaxscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_pathmax(). |
| 28902 | fi |
| 28903 | } |
| 28904 | func_gl_gnulib_m4code_cloexecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_cloexec(). () |
| 28905 | { |
| 28906 | if ! $gl_gnulib_enabled_cloexec; then |
| 28907 | |
| 28908 | |
| 28909 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h |
| 28910 | |
| 28911 | |
| 28912 | gl_gnulib_enabled_cloexec=true |
| 28913 | func_gl_gnulib_m4code_dup2scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup2(). |
| 28914 | fi |
| 28915 | } |
| 28916 | func_gl_gnulib_m4code_75c65a2c014cf8235dd95289676302a4scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_75c65a2c014cf8235dd95289676302a4(). () |
| 28917 | { |
| 28918 | if ! $gl_gnulib_enabled_75c65a2c014cf8235dd95289676302a4; then |
| 28919 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5 |
| 28920 | printfscip-shell system . . printf. %s "checking for d_ino member in directory struct... " >&6; } |
| 28921 | if testscip-shell system . . test. ${gl_cv_struct_dirent_d_ino+y} |
| 28922 | then : |
| 28923 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 28924 | else $as_nop |
| 28925 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 28926 | then : |
| 28927 | case "$host_os" in |
| 28928 | # Guess yes on glibc systems with Linux kernel. |
| 28929 | linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;; |
| 28930 | # Guess yes on musl systems with Linux kernel. |
| 28931 | linux*-musl*) gl_cv_struct_dirent_d_ino="guessing yes" ;; |
| 28932 | # Guess no on native Windows. |
| 28933 | mingw*) gl_cv_struct_dirent_d_ino="guessing no" ;; |
| 28934 | # If we don't know, obey --enable-cross-guesses. |
| 28935 | *) gl_cv_struct_dirent_d_ino="$gl_cross_guess_normal" ;; |
| 28936 | esac |
| 28937 | |
| 28938 | else $as_nop |
| 28939 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28940 | /* end confdefs.h. */ |
| 28941 | #include <sys/types.h> |
| 28942 | #include <sys/stat.h> |
| 28943 | #include <dirent.h> |
| 28944 | |
| 28945 | int |
| 28946 | main (void) |
| 28947 | { |
| 28948 | DIR *dp = opendir ("."); |
| 28949 | struct dirent *e; |
| 28950 | struct stat st; |
| 28951 | if (! dp) |
| 28952 | return 1; |
| 28953 | e = readdir (dp); |
| 28954 | if (! e) |
| 28955 | { closedir (dp); return 2; } |
| 28956 | if (lstat (e->d_name, &st) != 0) |
| 28957 | { closedir (dp); return 3; } |
| 28958 | if (e->d_ino != st.st_ino) |
| 28959 | { closedir (dp); return 4; } |
| 28960 | closedir (dp); |
| 28961 | return 0; |
| 28962 | |
| 28963 | ; |
| 28964 | return 0; |
| 28965 | } |
| 28966 | _ACEOF |
| 28967 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 28968 | then : |
| 28969 | gl_cv_struct_dirent_d_ino=yes |
| 28970 | else $as_nop |
| 28971 | gl_cv_struct_dirent_d_ino=no |
| 28972 | fi |
| 28973 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28974 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28975 | fi |
| 28976 | |
| 28977 | fi |
| 28978 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5 |
| 28979 | printfscip-shell system . . printf. "%s\n" "$gl_cv_struct_dirent_d_ino" >&6; } |
| 28980 | case "$gl_cv_struct_dirent_d_ino" in |
| 28981 | *yes) |
| 28982 | |
| 28983 | printfscip-shell system . . printf. "%s\n" "#define D_INO_IN_DIRENT 1" >>confdefs.h |
| 28984 | |
| 28985 | ;; |
| 28986 | esac |
| 28987 | |
| 28988 | |
| 28989 | gl_gnulib_enabled_75c65a2c014cf8235dd95289676302a4=true |
| 28990 | fi |
| 28991 | } |
| 28992 | func_gl_gnulib_m4code_dirfdscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dirfd(). () |
| 28993 | { |
| 28994 | if ! $gl_gnulib_enabled_dirfd; then |
| 28995 | |
| 28996 | |
| 28997 | |
| 28998 | |
| 28999 | |
| 29000 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "dirfd" "ac_cv_func_dirfd" |
| 29001 | if testscip-shell system . . test. "x$ac_cv_func_dirfd" = xyes |
| 29002 | then : |
| 29003 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
| 29004 | |
| 29005 | fi |
| 29006 | |
| 29007 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> |
| 29008 | #include <dirent.h> |
| 29009 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 29010 | if testscip-shell system . . test. "x$ac_cv_have_decl_dirfd" = xyes |
| 29011 | then : |
| 29012 | ac_have_decl=1 |
| 29013 | else $as_nop |
| 29014 | ac_have_decl=0 |
| 29015 | fi |
| 29016 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_DIRFD $ac_have_decl" >>confdefs.h |
| 29017 | |
| 29018 | if testscip-shell system . . test. $ac_cv_have_decl_dirfd = no; then |
| 29019 | HAVE_DECL_DIRFD=0 |
| 29020 | fi |
| 29021 | |
| 29022 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5 |
| 29023 | printfscip-shell system . . printf. %s "checking whether dirfd is a macro... " >&6; } |
| 29024 | if testscip-shell system . . test. ${gl_cv_func_dirfd_macro+y} |
| 29025 | then : |
| 29026 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29027 | else $as_nop |
| 29028 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29029 | /* end confdefs.h. */ |
| 29030 | |
| 29031 | #include <sys/types.h> |
| 29032 | #include <dirent.h> |
| 29033 | #ifdef dirfd |
| 29034 | dirent_header_defines_dirfd |
| 29035 | #endif |
| 29036 | _ACEOF |
| 29037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29038 | $EGREP "dirent_header_defines_dirfd" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 29039 | then : |
| 29040 | gl_cv_func_dirfd_macro=yes |
| 29041 | else $as_nop |
| 29042 | gl_cv_func_dirfd_macro=no |
| 29043 | fi |
| 29044 | rmscip-shell system . . rm. -rf conftest* |
| 29045 | |
| 29046 | fi |
| 29047 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5 |
| 29048 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_dirfd_macro" >&6; } |
| 29049 | |
| 29050 | # Use the replacement if we have no function or macro with that name, |
| 29051 | # or if OS/2 kLIBC whose dirfd() does not work. |
| 29052 | # Replace only if the system declares dirfd already. |
| 29053 | case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in |
| 29054 | no,no,*,yes | *,*,os2*,yes) |
| 29055 | REPLACE_DIRFD=1 |
| 29056 | |
| 29057 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_DIRFD 1" >>confdefs.h |
| 29058 | ;; |
| 29059 | esac |
| 29060 | |
| 29061 | |
| 29062 | if testscip-shell system . . test. $ac_cv_func_dirfd = no && testscip-shell system . . test. $gl_cv_func_dirfd_macro = no || testscip-shell system . . test. $REPLACE_DIRFD = 1; then |
| 29063 | GL_COND_OBJ_DIRFD_TRUE= |
| 29064 | GL_COND_OBJ_DIRFD_FALSE='#' |
| 29065 | else |
| 29066 | GL_COND_OBJ_DIRFD_TRUE='#' |
| 29067 | GL_COND_OBJ_DIRFD_FALSE= |
| 29068 | fi |
| 29069 | : |
| 29070 | if testscip-shell system . . test. -z "${GL_COND_OBJ_DIRFD_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_DIRFD_FALSE}"; then |
| 29071 | GL_COND_OBJ_DIRFD_TRUE='#' |
| 29072 | GL_COND_OBJ_DIRFD_FALSE='#' |
| 29073 | fi |
| 29074 | |
| 29075 | if testscip-shell system . . test. -z "$GL_COND_OBJ_DIRFD_TRUE"; then : |
| 29076 | |
| 29077 | |
| 29078 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5 |
| 29079 | printfscip-shell system . . printf. %s "checking how to get the file descriptor associated with an open DIR*... " >&6; } |
| 29080 | if testscip-shell system . . test. ${gl_cv_sys_dir_fd_member_name+y} |
| 29081 | then : |
| 29082 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29083 | else $as_nop |
| 29084 | |
| 29085 | dirfd_save_CFLAGS=$CFLAGS |
| 29086 | for ac_expr in d_fd dd_fd; do |
| 29087 | |
| 29088 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr" |
| 29089 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29090 | /* end confdefs.h. */ |
| 29091 | |
| 29092 | #include <sys/types.h> |
| 29093 | #include <dirent.h> |
| 29094 | int |
| 29095 | main (void) |
| 29096 | { |
| 29097 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME; |
| 29098 | ; |
| 29099 | return 0; |
| 29100 | } |
| 29101 | _ACEOF |
| 29102 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 29103 | then : |
| 29104 | dir_fd_found=yes |
| 29105 | |
| 29106 | fi |
| 29107 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29108 | CFLAGS=$dirfd_save_CFLAGS |
| 29109 | testscip-shell system . . test. "$dir_fd_found" = yes && break |
| 29110 | done |
| 29111 | testscip-shell system . . test. "$dir_fd_found" = yes || ac_expr=no_such_member |
| 29112 | |
| 29113 | gl_cv_sys_dir_fd_member_name=$ac_expr |
| 29114 | |
| 29115 | |
| 29116 | fi |
| 29117 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5 |
| 29118 | printfscip-shell system . . printf. "%s\n" "$gl_cv_sys_dir_fd_member_name" >&6; } |
| 29119 | if testscip-shell system . . test. $gl_cv_sys_dir_fd_member_name != no_such_member; then |
| 29120 | |
| 29121 | printfscip-shell system . . printf. "%s\n" "#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name" >>confdefs.h |
| 29122 | |
| 29123 | fi |
| 29124 | |
| 29125 | |
| 29126 | |
| 29127 | fi |
| 29128 | |
| 29129 | |
| 29130 | |
| 29131 | |
| 29132 | |
| 29133 | |
| 29134 | |
| 29135 | |
| 29136 | |
| 29137 | GL_GNULIB_DIRFD=1 |
| 29138 | |
| 29139 | |
| 29140 | |
| 29141 | |
| 29142 | |
| 29143 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_DIRFD 1" >>confdefs.h |
| 29144 | |
| 29145 | |
| 29146 | |
| 29147 | gl_gnulib_enabled_dirfd=true |
| 29148 | fi |
| 29149 | } |
| 29150 | func_gl_gnulib_m4code_a691da99c1d83b83238e45f41a696f5cscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_a691da99c1d83b83238e45f41a696f5c(). () |
| 29151 | { |
| 29152 | if ! $gl_gnulib_enabled_a691da99c1d83b83238e45f41a696f5c; then |
| 29153 | gl_gnulib_enabled_a691da99c1d83b83238e45f41a696f5c=true |
| 29154 | fi |
| 29155 | } |
| 29156 | func_gl_gnulib_m4code_dupscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup(). () |
| 29157 | { |
| 29158 | if ! $gl_gnulib_enabled_dup; then |
| 29159 | |
| 29160 | |
| 29161 | |
| 29162 | |
| 29163 | if testscip-shell system . . test. $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 29164 | REPLACE_DUP=1 |
| 29165 | fi |
| 29166 | |
| 29167 | |
| 29168 | |
| 29169 | |
| 29170 | |
| 29171 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 29172 | HAVE_FCHDIR=0 |
| 29173 | fi |
| 29174 | |
| 29175 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29176 | REPLACE_DUP=1 |
| 29177 | fi |
| 29178 | |
| 29179 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5 |
| 29180 | printfscip-shell system . . printf. %s "checking whether dup works... " >&6; } |
| 29181 | if testscip-shell system . . test. ${gl_cv_func_dup_works+y} |
| 29182 | then : |
| 29183 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29184 | else $as_nop |
| 29185 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 29186 | then : |
| 29187 | case "$host_os" in |
| 29188 | # Guess no on native Windows. |
| 29189 | mingw*) gl_cv_func_dup_works="guessing no" ;; |
| 29190 | *) gl_cv_func_dup_works="guessing yes" ;; |
| 29191 | esac |
| 29192 | |
| 29193 | else $as_nop |
| 29194 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29195 | /* end confdefs.h. */ |
| 29196 | #include <unistd.h> |
| 29197 | #include <fcntl.h> |
| 29198 | #include <errno.h> |
| 29199 | |
| 29200 | |
| 29201 | $gl_mda_defines |
| 29202 | |
| 29203 | int |
| 29204 | main (void) |
| 29205 | { |
| 29206 | /* On OS/2 kLIBC, dup does not work on a directory fd. */ |
| 29207 | int fd = open (".", O_RDONLY); |
| 29208 | return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0; |
| 29209 | |
| 29210 | ; |
| 29211 | return 0; |
| 29212 | } |
| 29213 | |
| 29214 | _ACEOF |
| 29215 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 29216 | then : |
| 29217 | gl_cv_func_dup_works=yes |
| 29218 | else $as_nop |
| 29219 | gl_cv_func_dup_works=no |
| 29220 | fi |
| 29221 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29222 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29223 | fi |
| 29224 | |
| 29225 | |
| 29226 | fi |
| 29227 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5 |
| 29228 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_dup_works" >&6; } |
| 29229 | case "$gl_cv_func_dup_works" in |
| 29230 | *yes) ;; |
| 29231 | *) |
| 29232 | REPLACE_DUP=1 |
| 29233 | ;; |
| 29234 | esac |
| 29235 | |
| 29236 | |
| 29237 | if testscip-shell system . . test. $REPLACE_DUP = 1; then |
| 29238 | GL_COND_OBJ_DUP_TRUE= |
| 29239 | GL_COND_OBJ_DUP_FALSE='#' |
| 29240 | else |
| 29241 | GL_COND_OBJ_DUP_TRUE='#' |
| 29242 | GL_COND_OBJ_DUP_FALSE= |
| 29243 | fi |
| 29244 | : |
| 29245 | if testscip-shell system . . test. -z "${GL_COND_OBJ_DUP_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_DUP_FALSE}"; then |
| 29246 | GL_COND_OBJ_DUP_TRUE='#' |
| 29247 | GL_COND_OBJ_DUP_FALSE='#' |
| 29248 | fi |
| 29249 | |
| 29250 | if testscip-shell system . . test. -z "$GL_COND_OBJ_DUP_TRUE"; then : |
| 29251 | |
| 29252 | : |
| 29253 | |
| 29254 | fi |
| 29255 | |
| 29256 | |
| 29257 | |
| 29258 | |
| 29259 | |
| 29260 | |
| 29261 | |
| 29262 | |
| 29263 | |
| 29264 | GL_GNULIB_DUP=1 |
| 29265 | |
| 29266 | |
| 29267 | |
| 29268 | |
| 29269 | |
| 29270 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_DUP 1" >>confdefs.h |
| 29271 | |
| 29272 | |
| 29273 | |
| 29274 | gl_gnulib_enabled_dup=true |
| 29275 | fi |
| 29276 | } |
| 29277 | func_gl_gnulib_m4code_dup2scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup2(). () |
| 29278 | { |
| 29279 | if ! $gl_gnulib_enabled_dup2; then |
| 29280 | |
| 29281 | |
| 29282 | |
| 29283 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 |
| 29284 | printfscip-shell system . . printf. %s "checking whether dup2 works... " >&6; } |
| 29285 | if testscip-shell system . . test. ${gl_cv_func_dup2_works+y} |
| 29286 | then : |
| 29287 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29288 | else $as_nop |
| 29289 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 29290 | then : |
| 29291 | case "$host_os" in |
| 29292 | mingw*) # on this platform, dup2 always returns 0 for success |
| 29293 | gl_cv_func_dup2_works="guessing no" ;; |
| 29294 | cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 |
| 29295 | gl_cv_func_dup2_works="guessing no" ;; |
| 29296 | aix* | freebsd*) |
| 29297 | # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, |
| 29298 | # not EBADF. |
| 29299 | gl_cv_func_dup2_works="guessing no" ;; |
| 29300 | haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. |
| 29301 | gl_cv_func_dup2_works="guessing no" ;; |
| 29302 | *-android*) # implemented using dup3(), which fails if oldfd == newfd |
| 29303 | gl_cv_func_dup2_works="guessing no" ;; |
| 29304 | os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. |
| 29305 | gl_cv_func_dup2_works="guessing no" ;; |
| 29306 | *) gl_cv_func_dup2_works="guessing yes" ;; |
| 29307 | esac |
| 29308 | else $as_nop |
| 29309 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29310 | /* end confdefs.h. */ |
| 29311 | |
| 29312 | #include <errno.h> |
| 29313 | #include <fcntl.h> |
| 29314 | #include <limits.h> |
| 29315 | #include <sys/resource.h> |
| 29316 | #include <unistd.h> |
| 29317 | |
| 29318 | |
| 29319 | $gl_mda_defines |
| 29320 | |
| 29321 | #ifndef RLIM_SAVED_CUR |
| 29322 | # define RLIM_SAVED_CUR RLIM_INFINITY |
| 29323 | #endif |
| 29324 | #ifndef RLIM_SAVED_MAX |
| 29325 | # define RLIM_SAVED_MAX RLIM_INFINITY |
| 29326 | #endif |
| 29327 | |
| 29328 | int |
| 29329 | main (void) |
| 29330 | { |
| 29331 | int result = 0; |
| 29332 | int bad_fd = INT_MAX; |
| 29333 | struct rlimit rlim; |
| 29334 | if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 |
| 29335 | && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX |
| 29336 | && rlim.rlim_cur != RLIM_INFINITY |
| 29337 | && rlim.rlim_cur != RLIM_SAVED_MAX |
| 29338 | && rlim.rlim_cur != RLIM_SAVED_CUR) |
| 29339 | bad_fd = rlim.rlim_cur; |
| 29340 | #ifdef FD_CLOEXEC |
| 29341 | if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) |
| 29342 | result |= 1; |
| 29343 | #endif |
| 29344 | if (dup2 (1, 1) != 1) |
| 29345 | result |= 2; |
| 29346 | #ifdef FD_CLOEXEC |
| 29347 | if (fcntl (1, F_GETFD) != FD_CLOEXEC) |
| 29348 | result |= 4; |
| 29349 | #endif |
| 29350 | close (0); |
| 29351 | if (dup2 (0, 0) != -1) |
| 29352 | result |= 8; |
| 29353 | /* Many gnulib modules require POSIX conformance of EBADF. */ |
| 29354 | if (dup2 (2, bad_fd) == -1 && errno != EBADF) |
| 29355 | result |= 16; |
| 29356 | /* Flush out some cygwin core dumps. */ |
| 29357 | if (dup2 (2, -1) != -1 || errno != EBADF) |
| 29358 | result |= 32; |
| 29359 | dup2 (2, 255); |
| 29360 | dup2 (2, 256); |
| 29361 | /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ |
| 29362 | { |
| 29363 | int fd = open (".", O_RDONLY); |
| 29364 | if (fd == -1) |
| 29365 | result |= 64; |
| 29366 | else if (dup2 (fd, fd + 1) == -1) |
| 29367 | result |= 128; |
| 29368 | close (fd); |
| 29369 | } |
| 29370 | return result; |
| 29371 | ; |
| 29372 | return 0; |
| 29373 | } |
| 29374 | |
| 29375 | _ACEOF |
| 29376 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 29377 | then : |
| 29378 | gl_cv_func_dup2_works=yes |
| 29379 | else $as_nop |
| 29380 | gl_cv_func_dup2_works=no |
| 29381 | fi |
| 29382 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29383 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29384 | fi |
| 29385 | |
| 29386 | |
| 29387 | fi |
| 29388 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 |
| 29389 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_dup2_works" >&6; } |
| 29390 | case "$gl_cv_func_dup2_works" in |
| 29391 | *yes) ;; |
| 29392 | *) |
| 29393 | REPLACE_DUP2=1 |
| 29394 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" |
| 29395 | if testscip-shell system . . test. "x$ac_cv_func_setdtablesize" = xyes |
| 29396 | then : |
| 29397 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h |
| 29398 | |
| 29399 | fi |
| 29400 | |
| 29401 | ;; |
| 29402 | esac |
| 29403 | |
| 29404 | |
| 29405 | |
| 29406 | |
| 29407 | if testscip-shell system . . test. $ac_cv_func_fchdir = no; then |
| 29408 | HAVE_FCHDIR=0 |
| 29409 | fi |
| 29410 | |
| 29411 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29412 | REPLACE_DUP2=1 |
| 29413 | fi |
| 29414 | |
| 29415 | |
| 29416 | |
| 29417 | if testscip-shell system . . test. $REPLACE_DUP2 = 1; then |
| 29418 | GL_COND_OBJ_DUP2_TRUE= |
| 29419 | GL_COND_OBJ_DUP2_FALSE='#' |
| 29420 | else |
| 29421 | GL_COND_OBJ_DUP2_TRUE='#' |
| 29422 | GL_COND_OBJ_DUP2_FALSE= |
| 29423 | fi |
| 29424 | : |
| 29425 | if testscip-shell system . . test. -z "${GL_COND_OBJ_DUP2_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_DUP2_FALSE}"; then |
| 29426 | GL_COND_OBJ_DUP2_TRUE='#' |
| 29427 | GL_COND_OBJ_DUP2_FALSE='#' |
| 29428 | fi |
| 29429 | |
| 29430 | if testscip-shell system . . test. -z "$GL_COND_OBJ_DUP2_TRUE"; then : |
| 29431 | |
| 29432 | |
| 29433 | |
| 29434 | fi |
| 29435 | |
| 29436 | |
| 29437 | |
| 29438 | |
| 29439 | |
| 29440 | |
| 29441 | |
| 29442 | |
| 29443 | |
| 29444 | GL_GNULIB_DUP2=1 |
| 29445 | |
| 29446 | |
| 29447 | |
| 29448 | |
| 29449 | |
| 29450 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h |
| 29451 | |
| 29452 | |
| 29453 | |
| 29454 | gl_gnulib_enabled_dup2=true |
| 29455 | fi |
| 29456 | } |
| 29457 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). () |
| 29458 | { |
| 29459 | if ! $gl_gnulib_enabled_fchdir; then |
| 29460 | |
| 29461 | |
| 29462 | |
| 29463 | |
| 29464 | |
| 29465 | if testscip-shell system . . test. $ac_cv_have_decl_fchdir = no; then |
| 29466 | HAVE_DECL_FCHDIR=0 |
| 29467 | fi |
| 29468 | |
| 29469 | |
| 29470 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29471 | |
| 29472 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_FCHDIR 1" >>confdefs.h |
| 29473 | |
| 29474 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5 |
| 29475 | printfscip-shell system . . printf. %s "checking whether open can visit directories... " >&6; } |
| 29476 | if testscip-shell system . . test. ${gl_cv_func_open_directory_works+y} |
| 29477 | then : |
| 29478 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29479 | else $as_nop |
| 29480 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 29481 | then : |
| 29482 | case "$host_os" in |
| 29483 | # Guess yes on Linux systems. |
| 29484 | linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;; |
| 29485 | # Guess yes on glibc systems. |
| 29486 | *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;; |
| 29487 | # Guess no on native Windows. |
| 29488 | mingw*) gl_cv_func_open_directory_works="guessing no" ;; |
| 29489 | # If we don't know, obey --enable-cross-guesses. |
| 29490 | *) gl_cv_func_open_directory_works="$gl_cross_guess_normal" ;; |
| 29491 | esac |
| 29492 | |
| 29493 | else $as_nop |
| 29494 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29495 | /* end confdefs.h. */ |
| 29496 | #include <fcntl.h> |
| 29497 | |
| 29498 | |
| 29499 | $gl_mda_defines |
| 29500 | |
| 29501 | int |
| 29502 | main (void) |
| 29503 | { |
| 29504 | return open(".", O_RDONLY) < 0; |
| 29505 | ; |
| 29506 | return 0; |
| 29507 | } |
| 29508 | _ACEOF |
| 29509 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 29510 | then : |
| 29511 | gl_cv_func_open_directory_works=yes |
| 29512 | else $as_nop |
| 29513 | gl_cv_func_open_directory_works=no |
| 29514 | fi |
| 29515 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29516 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29517 | fi |
| 29518 | |
| 29519 | fi |
| 29520 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5 |
| 29521 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_open_directory_works" >&6; } |
| 29522 | case "$gl_cv_func_open_directory_works" in |
| 29523 | *yes) ;; |
| 29524 | *) |
| 29525 | |
| 29526 | printfscip-shell system . . printf. "%s\n" "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h |
| 29527 | |
| 29528 | ;; |
| 29529 | esac |
| 29530 | fi |
| 29531 | |
| 29532 | |
| 29533 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29534 | GL_COND_OBJ_FCHDIR_TRUE= |
| 29535 | GL_COND_OBJ_FCHDIR_FALSE='#' |
| 29536 | else |
| 29537 | GL_COND_OBJ_FCHDIR_TRUE='#' |
| 29538 | GL_COND_OBJ_FCHDIR_FALSE= |
| 29539 | fi |
| 29540 | : |
| 29541 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FCHDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FCHDIR_FALSE}"; then |
| 29542 | GL_COND_OBJ_FCHDIR_TRUE='#' |
| 29543 | GL_COND_OBJ_FCHDIR_FALSE='#' |
| 29544 | fi |
| 29545 | |
| 29546 | if testscip-shell system . . test. -z "$GL_COND_OBJ_FCHDIR_TRUE"; then : |
| 29547 | |
| 29548 | : |
| 29549 | |
| 29550 | fi |
| 29551 | |
| 29552 | |
| 29553 | |
| 29554 | |
| 29555 | |
| 29556 | |
| 29557 | |
| 29558 | |
| 29559 | |
| 29560 | GL_GNULIB_FCHDIR=1 |
| 29561 | |
| 29562 | |
| 29563 | |
| 29564 | |
| 29565 | |
| 29566 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h |
| 29567 | |
| 29568 | |
| 29569 | |
| 29570 | gl_gnulib_enabled_fchdir=true |
| 29571 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29572 | func_gl_gnulib_m4code_assurescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_assure(). |
| 29573 | fi |
| 29574 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29575 | func_gl_gnulib_m4code_chdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_chdir(). |
| 29576 | fi |
| 29577 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29578 | func_gl_gnulib_m4code_dirfdscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dirfd(). |
| 29579 | fi |
| 29580 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29581 | func_gl_gnulib_m4code_dup2scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup2(). |
| 29582 | fi |
| 29583 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29584 | func_gl_gnulib_m4code_fca9852db2a43bb33f02f0fbdbc174f6scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fca9852db2a43bb33f02f0fbdbc174f6(). |
| 29585 | fi |
| 29586 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29587 | func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6(). |
| 29588 | fi |
| 29589 | if testscip-shell system . . test. $HAVE_FCHDIR = 0; then |
| 29590 | func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0(). |
| 29591 | fi |
| 29592 | fi |
| 29593 | } |
| 29594 | func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239(). () |
| 29595 | { |
| 29596 | if ! $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then |
| 29597 | gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=true |
| 29598 | fi |
| 29599 | } |
| 29600 | func_gl_gnulib_m4code_64142d6558df0059920a9be1d634dadfscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_64142d6558df0059920a9be1d634dadf(). () |
| 29601 | { |
| 29602 | if ! $gl_gnulib_enabled_64142d6558df0059920a9be1d634dadf; then |
| 29603 | |
| 29604 | |
| 29605 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_FD_SAFER_FLAG 1" >>confdefs.h |
| 29606 | |
| 29607 | |
| 29608 | gl_gnulib_enabled_64142d6558df0059920a9be1d634dadf=true |
| 29609 | func_gl_gnulib_m4code_cloexecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_cloexec(). |
| 29610 | fi |
| 29611 | } |
| 29612 | func_gl_gnulib_m4code_fdopendirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fdopendir(). () |
| 29613 | { |
| 29614 | if ! $gl_gnulib_enabled_fdopendir; then |
| 29615 | |
| 29616 | |
| 29617 | |
| 29618 | |
| 29619 | |
| 29620 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" " |
| 29621 | #include <dirent.h> |
| 29622 | |
| 29623 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 29624 | if testscip-shell system . . test. "x$ac_cv_have_decl_fdopendir" = xyes |
| 29625 | then : |
| 29626 | ac_have_decl=1 |
| 29627 | else $as_nop |
| 29628 | ac_have_decl=0 |
| 29629 | fi |
| 29630 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_FDOPENDIR $ac_have_decl" >>confdefs.h |
| 29631 | if testscip-shell system . . test. $ac_have_decl = 1 |
| 29632 | then : |
| 29633 | |
| 29634 | else $as_nop |
| 29635 | HAVE_DECL_FDOPENDIR=0 |
| 29636 | fi |
| 29637 | |
| 29638 | |
| 29639 | if testscip-shell system . . test. $ac_cv_func_fdopendir = no; then |
| 29640 | HAVE_FDOPENDIR=0 |
| 29641 | else |
| 29642 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5 |
| 29643 | printfscip-shell system . . printf. %s "checking whether fdopendir works... " >&6; } |
| 29644 | if testscip-shell system . . test. ${gl_cv_func_fdopendir_works+y} |
| 29645 | then : |
| 29646 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29647 | else $as_nop |
| 29648 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 29649 | then : |
| 29650 | case "$host_os" in |
| 29651 | # Guess yes on glibc systems. |
| 29652 | *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;; |
| 29653 | # Guess yes on musl systems. |
| 29654 | *-musl*) gl_cv_func_fdopendir_works="guessing yes" ;; |
| 29655 | # If we don't know, obey --enable-cross-guesses. |
| 29656 | *) gl_cv_func_fdopendir_works="$gl_cross_guess_normal" ;; |
| 29657 | esac |
| 29658 | |
| 29659 | else $as_nop |
| 29660 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29661 | /* end confdefs.h. */ |
| 29662 | |
| 29663 | #include <dirent.h> |
| 29664 | #include <fcntl.h> |
| 29665 | #include <unistd.h> |
| 29666 | |
| 29667 | |
| 29668 | $gl_mda_defines |
| 29669 | |
| 29670 | #if !HAVE_DECL_FDOPENDIR |
| 29671 | extern |
| 29672 | # ifdef __cplusplus |
| 29673 | "C" |
| 29674 | # endif |
| 29675 | DIR *fdopendir (int); |
| 29676 | #endif |
| 29677 | |
| 29678 | int |
| 29679 | main (void) |
| 29680 | { |
| 29681 | int result = 0; |
| 29682 | int fd = open ("conftest.c", O_RDONLY); |
| 29683 | if (fd < 0) result |= 1; |
| 29684 | if (fdopendir (fd)) result |= 2; |
| 29685 | if (close (fd)) result |= 4; |
| 29686 | return result; |
| 29687 | |
| 29688 | ; |
| 29689 | return 0; |
| 29690 | } |
| 29691 | _ACEOF |
| 29692 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 29693 | then : |
| 29694 | gl_cv_func_fdopendir_works=yes |
| 29695 | else $as_nop |
| 29696 | gl_cv_func_fdopendir_works=no |
| 29697 | fi |
| 29698 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29699 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29700 | fi |
| 29701 | |
| 29702 | fi |
| 29703 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5 |
| 29704 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_fdopendir_works" >&6; } |
| 29705 | case "$gl_cv_func_fdopendir_works" in |
| 29706 | *yes) ;; |
| 29707 | *) |
| 29708 | REPLACE_FDOPENDIR=1 |
| 29709 | ;; |
| 29710 | esac |
| 29711 | fi |
| 29712 | |
| 29713 | |
| 29714 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0 || testscip-shell system . . test. $REPLACE_FDOPENDIR = 1; then |
| 29715 | GL_COND_OBJ_FDOPENDIR_TRUE= |
| 29716 | GL_COND_OBJ_FDOPENDIR_FALSE='#' |
| 29717 | else |
| 29718 | GL_COND_OBJ_FDOPENDIR_TRUE='#' |
| 29719 | GL_COND_OBJ_FDOPENDIR_FALSE= |
| 29720 | fi |
| 29721 | : |
| 29722 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FDOPENDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FDOPENDIR_FALSE}"; then |
| 29723 | GL_COND_OBJ_FDOPENDIR_TRUE='#' |
| 29724 | GL_COND_OBJ_FDOPENDIR_FALSE='#' |
| 29725 | fi |
| 29726 | |
| 29727 | |
| 29728 | |
| 29729 | |
| 29730 | |
| 29731 | |
| 29732 | |
| 29733 | |
| 29734 | |
| 29735 | |
| 29736 | GL_GNULIB_FDOPENDIR=1 |
| 29737 | |
| 29738 | |
| 29739 | |
| 29740 | |
| 29741 | |
| 29742 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h |
| 29743 | |
| 29744 | |
| 29745 | |
| 29746 | |
| 29747 | |
| 29748 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_FDOPENDIR 1" >>confdefs.h |
| 29749 | |
| 29750 | |
| 29751 | gl_gnulib_enabled_fdopendir=true |
| 29752 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29753 | func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300bscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b(). |
| 29754 | fi |
| 29755 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29756 | func_gl_gnulib_m4code_dirfdscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dirfd(). |
| 29757 | fi |
| 29758 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29759 | func_gl_gnulib_m4code_dupscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup(). |
| 29760 | fi |
| 29761 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29762 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). |
| 29763 | fi |
| 29764 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29765 | func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345(). |
| 29766 | fi |
| 29767 | if testscip-shell system . . test. $HAVE_FDOPENDIR = 0; then |
| 29768 | func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21(). |
| 29769 | fi |
| 29770 | fi |
| 29771 | } |
| 29772 | func_gl_gnulib_m4code_fca9852db2a43bb33f02f0fbdbc174f6scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fca9852db2a43bb33f02f0fbdbc174f6(). () |
| 29773 | { |
| 29774 | if ! $gl_gnulib_enabled_fca9852db2a43bb33f02f0fbdbc174f6; then |
| 29775 | |
| 29776 | |
| 29777 | |
| 29778 | gl_gnulib_enabled_fca9852db2a43bb33f02f0fbdbc174f6=true |
| 29779 | fi |
| 29780 | } |
| 29781 | func_gl_gnulib_m4code_fpieeescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpieee(). () |
| 29782 | { |
| 29783 | if ! $gl_gnulib_enabled_fpieee; then |
| 29784 | gl_gnulib_enabled_fpieee=true |
| 29785 | fi |
| 29786 | } |
| 29787 | func_gl_gnulib_m4code_fpucwscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpucw(). () |
| 29788 | { |
| 29789 | if ! $gl_gnulib_enabled_fpucw; then |
| 29790 | gl_gnulib_enabled_fpucw=true |
| 29791 | fi |
| 29792 | } |
| 29793 | func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5(). () |
| 29794 | { |
| 29795 | if ! $gl_gnulib_enabled_e1c6a1281ce2cc59c716894550bcb2b5; then |
| 29796 | |
| 29797 | |
| 29798 | |
| 29799 | if testscip-shell system . . test. $gl_cv_func_frexp_no_libm = yes; then |
| 29800 | |
| 29801 | |
| 29802 | |
| 29803 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5 |
| 29804 | printfscip-shell system . . printf. %s "checking whether frexp works... " >&6; } |
| 29805 | if testscip-shell system . . test. ${gl_cv_func_frexp_works+y} |
| 29806 | then : |
| 29807 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29808 | else $as_nop |
| 29809 | |
| 29810 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 29811 | then : |
| 29812 | case "$host_os" in |
| 29813 | netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;; |
| 29814 | mingw*) # Guess yes with MSVC, no with mingw. |
| 29815 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29816 | /* end confdefs.h. */ |
| 29817 | |
| 29818 | #ifdef _MSC_VER |
| 29819 | Good |
| 29820 | #endif |
| 29821 | |
| 29822 | _ACEOF |
| 29823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29824 | $EGREP "Good" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 29825 | then : |
| 29826 | gl_cv_func_frexp_works="guessing yes" |
| 29827 | else $as_nop |
| 29828 | gl_cv_func_frexp_works="guessing no" |
| 29829 | fi |
| 29830 | rmscip-shell system . . rm. -rf conftest* |
| 29831 | |
| 29832 | ;; |
| 29833 | *) gl_cv_func_frexp_works="guessing yes" ;; |
| 29834 | esac |
| 29835 | |
| 29836 | else $as_nop |
| 29837 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29838 | /* end confdefs.h. */ |
| 29839 | |
| 29840 | #include <float.h> |
| 29841 | #include <math.h> |
| 29842 | #include <string.h> |
| 29843 | #if HAVE_DECL_ALARM |
| 29844 | # include <signal.h> |
| 29845 | # include <unistd.h> |
| 29846 | #endif |
| 29847 | /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0. |
| 29848 | ICC 10.0 has a bug when optimizing the expression -zero. |
| 29849 | The expression -DBL_MIN * DBL_MIN does not work when cross-compiling |
| 29850 | to PowerPC on Mac OS X 10.5. */ |
| 29851 | #if defined __hpux || defined __sgi || defined __ICC |
| 29852 | static double |
| 29853 | compute_minus_zero (void) |
| 29854 | { |
| 29855 | return -DBL_MIN * DBL_MIN; |
| 29856 | } |
| 29857 | # define minus_zero compute_minus_zero () |
| 29858 | #else |
| 29859 | double minus_zero = -0.0; |
| 29860 | #endif |
| 29861 | int main() |
| 29862 | { |
| 29863 | int result = 0; |
| 29864 | int i; |
| 29865 | volatile double x; |
| 29866 | double zero = 0.0; |
| 29867 | #if HAVE_DECL_ALARM |
| 29868 | /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite |
| 29869 | number. Let the test fail in this case. */ |
| 29870 | signal (SIGALRM, SIG_DFL); |
| 29871 | alarm (5); |
| 29872 | #endif |
| 29873 | /* Test on denormalized numbers. */ |
| 29874 | for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5) |
| 29875 | ; |
| 29876 | if (x > 0.0) |
| 29877 | { |
| 29878 | int exp; |
| 29879 | double y = frexp (x, &exp); |
| 29880 | /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022. |
| 29881 | On NetBSD: y = 0.75. Correct: y = 0.5. */ |
| 29882 | if (y != 0.5) |
| 29883 | result |= 1; |
| 29884 | } |
| 29885 | /* Test on infinite numbers. */ |
| 29886 | x = 1.0 / zero; |
| 29887 | { |
| 29888 | int exp; |
| 29889 | double y = frexp (x, &exp); |
| 29890 | if (y != x) |
| 29891 | result |= 2; |
| 29892 | } |
| 29893 | /* Test on negative zero. */ |
| 29894 | x = minus_zero; |
| 29895 | { |
| 29896 | int exp; |
| 29897 | double y = frexp (x, &exp); |
| 29898 | if (memcmp (&y, &x, sizeof x)) |
| 29899 | result |= 4; |
| 29900 | } |
| 29901 | return result; |
| 29902 | } |
| 29903 | _ACEOF |
| 29904 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 29905 | then : |
| 29906 | gl_cv_func_frexp_works=yes |
| 29907 | else $as_nop |
| 29908 | gl_cv_func_frexp_works=no |
| 29909 | fi |
| 29910 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29911 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29912 | fi |
| 29913 | |
| 29914 | |
| 29915 | fi |
| 29916 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5 |
| 29917 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexp_works" >&6; } |
| 29918 | |
| 29919 | case "$gl_cv_func_frexp_works" in |
| 29920 | *yes) gl_func_frexp_no_libm=yes ;; |
| 29921 | *) gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;; |
| 29922 | esac |
| 29923 | else |
| 29924 | gl_func_frexp_no_libm=no |
| 29925 | REPLACE_FREXP=1 |
| 29926 | fi |
| 29927 | if testscip-shell system . . test. $gl_func_frexp_no_libm = yes; then |
| 29928 | |
| 29929 | printfscip-shell system . . printf. "%s\n" "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h |
| 29930 | |
| 29931 | fi |
| 29932 | |
| 29933 | if testscip-shell system . . test. $gl_func_frexp_no_libm != yes; then |
| 29934 | |
| 29935 | |
| 29936 | |
| 29937 | |
| 29938 | |
| 29939 | |
| 29940 | |
| 29941 | |
| 29942 | gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext" |
| 29943 | |
| 29944 | fi |
| 29945 | |
| 29946 | |
| 29947 | |
| 29948 | |
| 29949 | |
| 29950 | |
| 29951 | |
| 29952 | |
| 29953 | |
| 29954 | GL_GNULIB_FREXP=1 |
| 29955 | |
| 29956 | |
| 29957 | |
| 29958 | |
| 29959 | |
| 29960 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FREXP 1" >>confdefs.h |
| 29961 | |
| 29962 | |
| 29963 | |
| 29964 | gl_gnulib_enabled_e1c6a1281ce2cc59c716894550bcb2b5=true |
| 29965 | if testscip-shell system . . test. $gl_func_frexp_no_libm != yes; then |
| 29966 | func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21(). |
| 29967 | fi |
| 29968 | func_gl_gnulib_m4code_mathscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_math(). |
| 29969 | fi |
| 29970 | } |
| 29971 | func_gl_gnulib_m4code_e0ca81912f23214e44f5700922db34bescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_e0ca81912f23214e44f5700922db34be(). () |
| 29972 | { |
| 29973 | if ! $gl_gnulib_enabled_e0ca81912f23214e44f5700922db34be; then |
| 29974 | |
| 29975 | |
| 29976 | |
| 29977 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h> |
| 29978 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 29979 | if testscip-shell system . . test. "x$ac_cv_have_decl_frexpl" = xyes |
| 29980 | then : |
| 29981 | |
| 29982 | else $as_nop |
| 29983 | HAVE_DECL_FREXPL=0 |
| 29984 | fi |
| 29985 | if testscip-shell system . . test. $HAVE_DECL_FREXPL = 1; then |
| 29986 | |
| 29987 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5 |
| 29988 | printfscip-shell system . . printf. %s "checking whether frexpl() can be used without linking with libm... " >&6; } |
| 29989 | if testscip-shell system . . test. ${gl_cv_func_frexpl_no_libm+y} |
| 29990 | then : |
| 29991 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 29992 | else $as_nop |
| 29993 | |
| 29994 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29995 | /* end confdefs.h. */ |
| 29996 | #include <math.h> |
| 29997 | long double x; |
| 29998 | int |
| 29999 | main (void) |
| 30000 | { |
| 30001 | int e; return frexpl (x, &e) > 0; |
| 30002 | ; |
| 30003 | return 0; |
| 30004 | } |
| 30005 | _ACEOF |
| 30006 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 30007 | then : |
| 30008 | gl_cv_func_frexpl_no_libm=yes |
| 30009 | else $as_nop |
| 30010 | gl_cv_func_frexpl_no_libm=no |
| 30011 | fi |
| 30012 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30013 | conftest$ac_exeext conftest.$ac_ext |
| 30014 | |
| 30015 | fi |
| 30016 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5 |
| 30017 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexpl_no_libm" >&6; } |
| 30018 | |
| 30019 | if testscip-shell system . . test. $gl_cv_func_frexpl_no_libm = yes; then |
| 30020 | |
| 30021 | |
| 30022 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5 |
| 30023 | printfscip-shell system . . printf. %s "checking whether frexpl works... " >&6; } |
| 30024 | if testscip-shell system . . test. ${gl_cv_func_frexpl_works+y} |
| 30025 | then : |
| 30026 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30027 | else $as_nop |
| 30028 | |
| 30029 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 30030 | then : |
| 30031 | |
| 30032 | case "$host_os" in |
| 30033 | aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*) |
| 30034 | gl_cv_func_frexpl_works="guessing no";; |
| 30035 | *) gl_cv_func_frexpl_works="guessing yes";; |
| 30036 | esac |
| 30037 | |
| 30038 | else $as_nop |
| 30039 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30040 | /* end confdefs.h. */ |
| 30041 | |
| 30042 | #include <float.h> |
| 30043 | #include <math.h> |
| 30044 | /* Override the values of <float.h>, like done in float.in.h. */ |
| 30045 | #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__) |
| 30046 | # undef LDBL_MIN_EXP |
| 30047 | # define LDBL_MIN_EXP (-16381) |
| 30048 | #endif |
| 30049 | #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) |
| 30050 | # undef LDBL_MIN_EXP |
| 30051 | # define LDBL_MIN_EXP (-16381) |
| 30052 | #endif |
| 30053 | #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__ |
| 30054 | # undef LDBL_MIN_EXP |
| 30055 | # define LDBL_MIN_EXP DBL_MIN_EXP |
| 30056 | #endif |
| 30057 | #if defined __sgi && (LDBL_MANT_DIG >= 106) |
| 30058 | # if defined __GNUC__ |
| 30059 | # undef LDBL_MIN_EXP |
| 30060 | # define LDBL_MIN_EXP DBL_MIN_EXP |
| 30061 | # endif |
| 30062 | #endif |
| 30063 | extern |
| 30064 | #ifdef __cplusplus |
| 30065 | "C" |
| 30066 | #endif |
| 30067 | long double frexpl (long double, int *); |
| 30068 | long double zero = 0.0L; |
| 30069 | int main() |
| 30070 | { |
| 30071 | int result = 0; |
| 30072 | volatile long double x; |
| 30073 | /* Test on finite numbers that fails on AIX 5.1. */ |
| 30074 | x = 16.0L; |
| 30075 | { |
| 30076 | int exp = -9999; |
| 30077 | frexpl (x, &exp); |
| 30078 | if (exp != 5) |
| 30079 | result |= 1; |
| 30080 | } |
| 30081 | /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl |
| 30082 | function returns an invalid (incorrectly normalized) value: it returns |
| 30083 | y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 } |
| 30084 | but the correct result is |
| 30085 | 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */ |
| 30086 | x = 1.01L; |
| 30087 | { |
| 30088 | int exp = -9999; |
| 30089 | long double y = frexpl (x, &exp); |
| 30090 | if (!(exp == 1 && y == 0.505L)) |
| 30091 | result |= 2; |
| 30092 | } |
| 30093 | /* Test on large finite numbers. This fails on BeOS at i = 16322, while |
| 30094 | LDBL_MAX_EXP = 16384. |
| 30095 | In the loop end test, we test x against Infinity, rather than comparing |
| 30096 | i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */ |
| 30097 | { |
| 30098 | int i; |
| 30099 | for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L) |
| 30100 | { |
| 30101 | int exp = -9999; |
| 30102 | frexpl (x, &exp); |
| 30103 | if (exp != i) |
| 30104 | { |
| 30105 | result |= 4; |
| 30106 | break; |
| 30107 | } |
| 30108 | } |
| 30109 | } |
| 30110 | /* Test on denormalized numbers. */ |
| 30111 | { |
| 30112 | int i; |
| 30113 | for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L) |
| 30114 | ; |
| 30115 | if (x > 0.0L) |
| 30116 | { |
| 30117 | int exp; |
| 30118 | long double y = frexpl (x, &exp); |
| 30119 | /* On machines with IEEE854 arithmetic: x = 1.68105e-4932, |
| 30120 | exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */ |
| 30121 | if (exp != LDBL_MIN_EXP - 1) |
| 30122 | result |= 8; |
| 30123 | } |
| 30124 | } |
| 30125 | /* Test on infinite numbers. */ |
| 30126 | /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */ |
| 30127 | x = 1.0L / zero; |
| 30128 | { |
| 30129 | int exp; |
| 30130 | long double y = frexpl (x, &exp); |
| 30131 | if (y != x) |
| 30132 | result |= 16; |
| 30133 | } |
| 30134 | return result; |
| 30135 | } |
| 30136 | _ACEOF |
| 30137 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 30138 | then : |
| 30139 | gl_cv_func_frexpl_works=yes |
| 30140 | else $as_nop |
| 30141 | gl_cv_func_frexpl_works=no |
| 30142 | fi |
| 30143 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30144 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30145 | fi |
| 30146 | |
| 30147 | |
| 30148 | fi |
| 30149 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5 |
| 30150 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexpl_works" >&6; } |
| 30151 | |
| 30152 | case "$gl_cv_func_frexpl_works" in |
| 30153 | *yes) gl_func_frexpl_no_libm=yes ;; |
| 30154 | *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;; |
| 30155 | esac |
| 30156 | else |
| 30157 | gl_func_frexpl_no_libm=no |
| 30158 | REPLACE_FREXPL=1 |
| 30159 | fi |
| 30160 | if testscip-shell system . . test. $gl_func_frexpl_no_libm = yes; then |
| 30161 | |
| 30162 | printfscip-shell system . . printf. "%s\n" "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h |
| 30163 | |
| 30164 | fi |
| 30165 | fi |
| 30166 | |
| 30167 | if testscip-shell system . . test. $HAVE_DECL_FREXPL = 0 || testscip-shell system . . test. $gl_func_frexpl_no_libm = no; then |
| 30168 | |
| 30169 | |
| 30170 | |
| 30171 | |
| 30172 | |
| 30173 | |
| 30174 | |
| 30175 | |
| 30176 | gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext" |
| 30177 | |
| 30178 | fi |
| 30179 | |
| 30180 | |
| 30181 | |
| 30182 | |
| 30183 | |
| 30184 | |
| 30185 | |
| 30186 | |
| 30187 | |
| 30188 | GL_GNULIB_FREXPL=1 |
| 30189 | |
| 30190 | |
| 30191 | |
| 30192 | |
| 30193 | |
| 30194 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FREXPL 1" >>confdefs.h |
| 30195 | |
| 30196 | |
| 30197 | |
| 30198 | gl_gnulib_enabled_e0ca81912f23214e44f5700922db34be=true |
| 30199 | if { testscip-shell system . . test. $HAVE_DECL_FREXPL = 0 || testscip-shell system . . test. $gl_func_frexpl_no_libm = no; } && testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then |
| 30200 | func_gl_gnulib_m4code_fpucwscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpucw(). |
| 30201 | fi |
| 30202 | if { testscip-shell system . . test. $HAVE_DECL_FREXPL = 0 || testscip-shell system . . test. $gl_func_frexpl_no_libm = no; } && testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then |
| 30203 | func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5(). |
| 30204 | fi |
| 30205 | if { testscip-shell system . . test. $HAVE_DECL_FREXPL = 0 || testscip-shell system . . test. $gl_func_frexpl_no_libm = no; } && testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then |
| 30206 | func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f(). |
| 30207 | fi |
| 30208 | func_gl_gnulib_m4code_mathscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_math(). |
| 30209 | fi |
| 30210 | } |
| 30211 | func_gl_gnulib_m4code_fstatatscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fstatat(). () |
| 30212 | { |
| 30213 | if ! $gl_gnulib_enabled_fstatat; then |
| 30214 | |
| 30215 | |
| 30216 | |
| 30217 | |
| 30218 | |
| 30219 | |
| 30220 | |
| 30221 | if testscip-shell system . . test. $ac_cv_func_fstatat = no; then |
| 30222 | HAVE_FSTATAT=0 |
| 30223 | else |
| 30224 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5 |
| 30225 | printfscip-shell system . . printf. %s "checking whether fstatat (..., 0) works... " >&6; } |
| 30226 | if testscip-shell system . . test. ${gl_cv_func_fstatat_zero_flag+y} |
| 30227 | then : |
| 30228 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30229 | else $as_nop |
| 30230 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 30231 | then : |
| 30232 | case "$host_os" in |
| 30233 | aix*) gl_cv_func_fstatat_zero_flag="guessing no";; |
| 30234 | *) gl_cv_func_fstatat_zero_flag="guessing yes";; |
| 30235 | esac |
| 30236 | |
| 30237 | else $as_nop |
| 30238 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30239 | /* end confdefs.h. */ |
| 30240 | |
| 30241 | #include <fcntl.h> |
| 30242 | #include <sys/stat.h> |
| 30243 | int |
| 30244 | main (void) |
| 30245 | { |
| 30246 | struct stat a; |
| 30247 | return fstatat (AT_FDCWD, ".", &a, 0) != 0; |
| 30248 | } |
| 30249 | |
| 30250 | _ACEOF |
| 30251 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 30252 | then : |
| 30253 | gl_cv_func_fstatat_zero_flag=yes |
| 30254 | else $as_nop |
| 30255 | gl_cv_func_fstatat_zero_flag=no |
| 30256 | fi |
| 30257 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30258 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30259 | fi |
| 30260 | |
| 30261 | |
| 30262 | fi |
| 30263 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5 |
| 30264 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_fstatat_zero_flag" >&6; } |
| 30265 | |
| 30266 | case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in |
| 30267 | *yes+*yes) ;; |
| 30268 | *) REPLACE_FSTATAT=1 ;; |
| 30269 | esac |
| 30270 | |
| 30271 | case $host_os in |
| 30272 | solaris*) |
| 30273 | REPLACE_FSTATAT=1 ;; |
| 30274 | esac |
| 30275 | |
| 30276 | case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in |
| 30277 | 1,*yes) |
| 30278 | |
| 30279 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h |
| 30280 | |
| 30281 | ;; |
| 30282 | esac |
| 30283 | fi |
| 30284 | |
| 30285 | |
| 30286 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30287 | GL_COND_OBJ_FSTATAT_TRUE= |
| 30288 | GL_COND_OBJ_FSTATAT_FALSE='#' |
| 30289 | else |
| 30290 | GL_COND_OBJ_FSTATAT_TRUE='#' |
| 30291 | GL_COND_OBJ_FSTATAT_FALSE= |
| 30292 | fi |
| 30293 | : |
| 30294 | if testscip-shell system . . test. -z "${GL_COND_OBJ_FSTATAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_FSTATAT_FALSE}"; then |
| 30295 | GL_COND_OBJ_FSTATAT_TRUE='#' |
| 30296 | GL_COND_OBJ_FSTATAT_FALSE='#' |
| 30297 | fi |
| 30298 | |
| 30299 | |
| 30300 | |
| 30301 | |
| 30302 | |
| 30303 | |
| 30304 | |
| 30305 | |
| 30306 | |
| 30307 | |
| 30308 | GL_GNULIB_FSTATAT=1 |
| 30309 | |
| 30310 | |
| 30311 | |
| 30312 | |
| 30313 | |
| 30314 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h |
| 30315 | |
| 30316 | |
| 30317 | |
| 30318 | gl_gnulib_enabled_fstatat=true |
| 30319 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30320 | func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300bscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b(). |
| 30321 | fi |
| 30322 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30323 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). |
| 30324 | fi |
| 30325 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30326 | func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345(). |
| 30327 | fi |
| 30328 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30329 | func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7(). |
| 30330 | fi |
| 30331 | if testscip-shell system . . test. $HAVE_FSTATAT = 0 || testscip-shell system . . test. $REPLACE_FSTATAT = 1; then |
| 30332 | func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21(). |
| 30333 | fi |
| 30334 | fi |
| 30335 | } |
| 30336 | func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6(). () |
| 30337 | { |
| 30338 | if ! $gl_gnulib_enabled_3d094ef542bfdd238a5194e172bfe5f6; then |
| 30339 | |
| 30340 | |
| 30341 | |
| 30342 | |
| 30343 | |
| 30344 | case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in |
| 30345 | *yes,yes) ;; |
| 30346 | *) |
| 30347 | REPLACE_GETCWD=1 |
| 30348 | ;; |
| 30349 | esac |
| 30350 | |
| 30351 | |
| 30352 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 30353 | GL_COND_OBJ_GETCWD_LGPL_TRUE= |
| 30354 | GL_COND_OBJ_GETCWD_LGPL_FALSE='#' |
| 30355 | else |
| 30356 | GL_COND_OBJ_GETCWD_LGPL_TRUE='#' |
| 30357 | GL_COND_OBJ_GETCWD_LGPL_FALSE= |
| 30358 | fi |
| 30359 | : |
| 30360 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETCWD_LGPL_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETCWD_LGPL_FALSE}"; then |
| 30361 | GL_COND_OBJ_GETCWD_LGPL_TRUE='#' |
| 30362 | GL_COND_OBJ_GETCWD_LGPL_FALSE='#' |
| 30363 | fi |
| 30364 | |
| 30365 | |
| 30366 | |
| 30367 | |
| 30368 | |
| 30369 | |
| 30370 | |
| 30371 | |
| 30372 | |
| 30373 | |
| 30374 | GL_GNULIB_GETCWD=1 |
| 30375 | |
| 30376 | |
| 30377 | |
| 30378 | |
| 30379 | |
| 30380 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h |
| 30381 | |
| 30382 | |
| 30383 | |
| 30384 | gl_gnulib_enabled_3d094ef542bfdd238a5194e172bfe5f6=true |
| 30385 | fi |
| 30386 | } |
| 30387 | func_gl_gnulib_m4code_getdtablesizescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_getdtablesize(). () |
| 30388 | { |
| 30389 | if ! $gl_gnulib_enabled_getdtablesize; then |
| 30390 | |
| 30391 | |
| 30392 | |
| 30393 | |
| 30394 | |
| 30395 | if testscip-shell system . . test. $ac_cv_func_getdtablesize = yes && |
| 30396 | testscip-shell system . . test. $ac_cv_have_decl_getdtablesize = yes; then |
| 30397 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 |
| 30398 | printfscip-shell system . . printf. %s "checking whether getdtablesize works... " >&6; } |
| 30399 | if testscip-shell system . . test. ${gl_cv_func_getdtablesize_works+y} |
| 30400 | then : |
| 30401 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30402 | else $as_nop |
| 30403 | case "$host_os" in |
| 30404 | vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; |
| 30405 | *) |
| 30406 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 30407 | then : |
| 30408 | case "$host_os" in |
| 30409 | cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows |
| 30410 | gl_cv_func_getdtablesize_works="guessing no" ;; |
| 30411 | *) gl_cv_func_getdtablesize_works="guessing yes" ;; |
| 30412 | esac |
| 30413 | |
| 30414 | else $as_nop |
| 30415 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30416 | /* end confdefs.h. */ |
| 30417 | |
| 30418 | #include <unistd.h> |
| 30419 | |
| 30420 | |
| 30421 | $gl_mda_defines |
| 30422 | |
| 30423 | |
| 30424 | int |
| 30425 | main (void) |
| 30426 | { |
| 30427 | int size = getdtablesize(); |
| 30428 | if (dup2 (0, getdtablesize()) != -1) |
| 30429 | return 1; |
| 30430 | if (size != getdtablesize()) |
| 30431 | return 2; |
| 30432 | |
| 30433 | ; |
| 30434 | return 0; |
| 30435 | } |
| 30436 | _ACEOF |
| 30437 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 30438 | then : |
| 30439 | gl_cv_func_getdtablesize_works=yes |
| 30440 | else $as_nop |
| 30441 | gl_cv_func_getdtablesize_works=no |
| 30442 | fi |
| 30443 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30444 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30445 | fi |
| 30446 | |
| 30447 | ;; |
| 30448 | esac |
| 30449 | |
| 30450 | fi |
| 30451 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 |
| 30452 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } |
| 30453 | case "$gl_cv_func_getdtablesize_works" in |
| 30454 | *yes | "no (limitation)") ;; |
| 30455 | *) REPLACE_GETDTABLESIZE=1 ;; |
| 30456 | esac |
| 30457 | else |
| 30458 | HAVE_GETDTABLESIZE=0 |
| 30459 | fi |
| 30460 | |
| 30461 | |
| 30462 | if testscip-shell system . . test. $HAVE_GETDTABLESIZE = 0 || testscip-shell system . . test. $REPLACE_GETDTABLESIZE = 1; then |
| 30463 | GL_COND_OBJ_GETDTABLESIZE_TRUE= |
| 30464 | GL_COND_OBJ_GETDTABLESIZE_FALSE='#' |
| 30465 | else |
| 30466 | GL_COND_OBJ_GETDTABLESIZE_TRUE='#' |
| 30467 | GL_COND_OBJ_GETDTABLESIZE_FALSE= |
| 30468 | fi |
| 30469 | : |
| 30470 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then |
| 30471 | GL_COND_OBJ_GETDTABLESIZE_TRUE='#' |
| 30472 | GL_COND_OBJ_GETDTABLESIZE_FALSE='#' |
| 30473 | fi |
| 30474 | |
| 30475 | if testscip-shell system . . test. -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then : |
| 30476 | |
| 30477 | : |
| 30478 | |
| 30479 | fi |
| 30480 | |
| 30481 | |
| 30482 | |
| 30483 | |
| 30484 | |
| 30485 | |
| 30486 | |
| 30487 | |
| 30488 | |
| 30489 | GL_GNULIB_GETDTABLESIZE=1 |
| 30490 | |
| 30491 | |
| 30492 | |
| 30493 | |
| 30494 | |
| 30495 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h |
| 30496 | |
| 30497 | |
| 30498 | |
| 30499 | gl_gnulib_enabled_getdtablesize=true |
| 30500 | fi |
| 30501 | } |
| 30502 | func_gl_gnulib_m4code_getrandomscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_getrandom(). () |
| 30503 | { |
| 30504 | if ! $gl_gnulib_enabled_getrandom; then |
| 30505 | |
| 30506 | |
| 30507 | |
| 30508 | |
| 30509 | if testscip-shell system . . test. "$ac_cv_func_getrandom" != yes; then |
| 30510 | HAVE_GETRANDOM=0 |
| 30511 | else |
| 30512 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5 |
| 30513 | printfscip-shell system . . printf. %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; } |
| 30514 | if testscip-shell system . . test. ${gl_cv_func_getrandom_ok+y} |
| 30515 | then : |
| 30516 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30517 | else $as_nop |
| 30518 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30519 | /* end confdefs.h. */ |
| 30520 | /* Additional includes are needed before <sys/random.h> on uClibc |
| 30521 | and Mac OS X. */ |
| 30522 | #include <sys/types.h> |
| 30523 | #include <stdlib.h> |
| 30524 | #include <sys/random.h> |
| 30525 | ssize_t getrandom (void *, size_t, unsigned int); |
| 30526 | |
| 30527 | int |
| 30528 | main (void) |
| 30529 | { |
| 30530 | |
| 30531 | ; |
| 30532 | return 0; |
| 30533 | } |
| 30534 | |
| 30535 | _ACEOF |
| 30536 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 30537 | then : |
| 30538 | gl_cv_func_getrandom_ok=yes |
| 30539 | else $as_nop |
| 30540 | gl_cv_func_getrandom_ok=no |
| 30541 | fi |
| 30542 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30543 | |
| 30544 | fi |
| 30545 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5 |
| 30546 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_getrandom_ok" >&6; } |
| 30547 | if testscip-shell system . . test. $gl_cv_func_getrandom_ok = no; then |
| 30548 | REPLACE_GETRANDOM=1 |
| 30549 | fi |
| 30550 | fi |
| 30551 | |
| 30552 | case "$host_os" in |
| 30553 | mingw*) |
| 30554 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h> |
| 30555 | |
| 30556 | " |
| 30557 | if testscip-shell system . . test. "x$ac_cv_header_bcrypt_h" = xyes |
| 30558 | then : |
| 30559 | printfscip-shell system . . printf. "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h |
| 30560 | |
| 30561 | fi |
| 30562 | |
| 30563 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5 |
| 30564 | printfscip-shell system . . printf. %s "checking whether the bcrypt library is guaranteed to be present... " >&6; } |
| 30565 | if testscip-shell system . . test. ${gl_cv_lib_assume_bcrypt+y} |
| 30566 | then : |
| 30567 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30568 | else $as_nop |
| 30569 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30570 | /* end confdefs.h. */ |
| 30571 | #include <windows.h> |
| 30572 | int |
| 30573 | main (void) |
| 30574 | { |
| 30575 | #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7) |
| 30576 | cannot assume it |
| 30577 | #endif |
| 30578 | |
| 30579 | ; |
| 30580 | return 0; |
| 30581 | } |
| 30582 | |
| 30583 | _ACEOF |
| 30584 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 30585 | then : |
| 30586 | gl_cv_lib_assume_bcrypt=yes |
| 30587 | else $as_nop |
| 30588 | gl_cv_lib_assume_bcrypt=no |
| 30589 | fi |
| 30590 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30591 | |
| 30592 | fi |
| 30593 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5 |
| 30594 | printfscip-shell system . . printf. "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; } |
| 30595 | if testscip-shell system . . test. $gl_cv_lib_assume_bcrypt = yes; then |
| 30596 | |
| 30597 | printfscip-shell system . . printf. "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h |
| 30598 | |
| 30599 | LIB_GETRANDOM='-lbcrypt' |
| 30600 | else |
| 30601 | LIB_GETRANDOM='-ladvapi32' |
| 30602 | fi |
| 30603 | ;; |
| 30604 | *) |
| 30605 | LIB_GETRANDOM= ;; |
| 30606 | esac |
| 30607 | |
| 30608 | |
| 30609 | |
| 30610 | if testscip-shell system . . test. $HAVE_GETRANDOM = 0 || testscip-shell system . . test. $REPLACE_GETRANDOM = 1; then |
| 30611 | GL_COND_OBJ_GETRANDOM_TRUE= |
| 30612 | GL_COND_OBJ_GETRANDOM_FALSE='#' |
| 30613 | else |
| 30614 | GL_COND_OBJ_GETRANDOM_TRUE='#' |
| 30615 | GL_COND_OBJ_GETRANDOM_FALSE= |
| 30616 | fi |
| 30617 | : |
| 30618 | if testscip-shell system . . test. -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then |
| 30619 | GL_COND_OBJ_GETRANDOM_TRUE='#' |
| 30620 | GL_COND_OBJ_GETRANDOM_FALSE='#' |
| 30621 | fi |
| 30622 | |
| 30623 | |
| 30624 | |
| 30625 | |
| 30626 | |
| 30627 | |
| 30628 | |
| 30629 | |
| 30630 | |
| 30631 | |
| 30632 | GL_GNULIB_GETRANDOM=1 |
| 30633 | |
| 30634 | |
| 30635 | |
| 30636 | |
| 30637 | |
| 30638 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h |
| 30639 | |
| 30640 | |
| 30641 | |
| 30642 | gl_gnulib_enabled_getrandom=true |
| 30643 | func_gl_gnulib_m4code_sys_randomscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_sys_random(). |
| 30644 | fi |
| 30645 | } |
| 30646 | func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21(). () |
| 30647 | { |
| 30648 | if ! $gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21; then |
| 30649 | |
| 30650 | |
| 30651 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5 |
| 30652 | printfscip-shell system . . printf. %s "checking whether isnan(double) can be used without linking with libm... " >&6; } |
| 30653 | if testscip-shell system . . test. ${gl_cv_func_isnand_no_libm+y} |
| 30654 | then : |
| 30655 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30656 | else $as_nop |
| 30657 | |
| 30658 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30659 | /* end confdefs.h. */ |
| 30660 | #include <math.h> |
| 30661 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 30662 | # undef isnand |
| 30663 | # define isnand(x) __builtin_isnan ((double)(x)) |
| 30664 | #else |
| 30665 | # undef isnand |
| 30666 | # define isnand(x) isnan ((double)(x)) |
| 30667 | #endif |
| 30668 | double x; |
| 30669 | int |
| 30670 | main (void) |
| 30671 | { |
| 30672 | return isnand (x); |
| 30673 | ; |
| 30674 | return 0; |
| 30675 | } |
| 30676 | _ACEOF |
| 30677 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 30678 | then : |
| 30679 | gl_cv_func_isnand_no_libm=yes |
| 30680 | else $as_nop |
| 30681 | gl_cv_func_isnand_no_libm=no |
| 30682 | fi |
| 30683 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30684 | conftest$ac_exeext conftest.$ac_ext |
| 30685 | |
| 30686 | fi |
| 30687 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5 |
| 30688 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_isnand_no_libm" >&6; } |
| 30689 | |
| 30690 | gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm |
| 30691 | if testscip-shell system . . test. $gl_cv_func_isnand_no_libm = yes; then |
| 30692 | |
| 30693 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h |
| 30694 | |
| 30695 | fi |
| 30696 | |
| 30697 | if testscip-shell system . . test. $gl_func_isnand_no_libm != yes; then |
| 30698 | |
| 30699 | |
| 30700 | |
| 30701 | |
| 30702 | |
| 30703 | |
| 30704 | |
| 30705 | |
| 30706 | gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext" |
| 30707 | |
| 30708 | |
| 30709 | |
| 30710 | |
| 30711 | fi |
| 30712 | gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=true |
| 30713 | func_gl_gnulib_m4code_fpieeescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpieee(). |
| 30714 | fi |
| 30715 | } |
| 30716 | func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66(). () |
| 30717 | { |
| 30718 | if ! $gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66; then |
| 30719 | |
| 30720 | |
| 30721 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5 |
| 30722 | printfscip-shell system . . printf. %s "checking whether isnan(float) can be used without linking with libm... " >&6; } |
| 30723 | if testscip-shell system . . test. ${gl_cv_func_isnanf_no_libm+y} |
| 30724 | then : |
| 30725 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30726 | else $as_nop |
| 30727 | |
| 30728 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30729 | /* end confdefs.h. */ |
| 30730 | #include <math.h> |
| 30731 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 30732 | # undef isnanf |
| 30733 | # define isnanf(x) __builtin_isnan ((float)(x)) |
| 30734 | #elif defined isnan |
| 30735 | # undef isnanf |
| 30736 | # define isnanf(x) isnan ((float)(x)) |
| 30737 | #endif |
| 30738 | float x; |
| 30739 | int |
| 30740 | main (void) |
| 30741 | { |
| 30742 | return isnanf (x); |
| 30743 | ; |
| 30744 | return 0; |
| 30745 | } |
| 30746 | _ACEOF |
| 30747 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 30748 | then : |
| 30749 | gl_cv_func_isnanf_no_libm=yes |
| 30750 | else $as_nop |
| 30751 | gl_cv_func_isnanf_no_libm=no |
| 30752 | fi |
| 30753 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30754 | conftest$ac_exeext conftest.$ac_ext |
| 30755 | |
| 30756 | fi |
| 30757 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5 |
| 30758 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_isnanf_no_libm" >&6; } |
| 30759 | |
| 30760 | if testscip-shell system . . test. $gl_cv_func_isnanf_no_libm = yes; then |
| 30761 | |
| 30762 | |
| 30763 | |
| 30764 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5 |
| 30765 | printfscip-shell system . . printf. %s "checking whether isnan(float) works... " >&6; } |
| 30766 | if testscip-shell system . . test. ${gl_cv_func_isnanf_works+y} |
| 30767 | then : |
| 30768 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30769 | else $as_nop |
| 30770 | |
| 30771 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 30772 | then : |
| 30773 | case "$host_os" in |
| 30774 | irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;; |
| 30775 | mingw*) # Guess yes on mingw, no on MSVC. |
| 30776 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30777 | /* end confdefs.h. */ |
| 30778 | |
| 30779 | #ifdef __MINGW32__ |
| 30780 | Known |
| 30781 | #endif |
| 30782 | |
| 30783 | _ACEOF |
| 30784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30785 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 30786 | then : |
| 30787 | gl_cv_func_isnanf_works="guessing yes" |
| 30788 | else $as_nop |
| 30789 | gl_cv_func_isnanf_works="guessing no" |
| 30790 | fi |
| 30791 | rmscip-shell system . . rm. -rf conftest* |
| 30792 | |
| 30793 | ;; |
| 30794 | *) gl_cv_func_isnanf_works="guessing yes" ;; |
| 30795 | esac |
| 30796 | |
| 30797 | else $as_nop |
| 30798 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30799 | /* end confdefs.h. */ |
| 30800 | |
| 30801 | #include <math.h> |
| 30802 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 30803 | # undef isnanf |
| 30804 | # define isnanf(x) __builtin_isnan ((float)(x)) |
| 30805 | #elif defined isnan |
| 30806 | # undef isnanf |
| 30807 | # define isnanf(x) isnan ((float)(x)) |
| 30808 | #endif |
| 30809 | /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */ |
| 30810 | #ifdef __DECC |
| 30811 | static float |
| 30812 | NaN () |
| 30813 | { |
| 30814 | static float zero = 0.0f; |
| 30815 | return zero / zero; |
| 30816 | } |
| 30817 | #else |
| 30818 | # define NaN() (0.0f / 0.0f) |
| 30819 | #endif |
| 30820 | #define NWORDS \ |
| 30821 | ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 30822 | typedef union { unsigned int word[NWORDS]; float value; } memory_float; |
| 30823 | int main() |
| 30824 | { |
| 30825 | int result = 0; |
| 30826 | |
| 30827 | if (isnanf (1.0f / 0.0f)) |
| 30828 | result |= 1; |
| 30829 | |
| 30830 | if (!isnanf (NaN ())) |
| 30831 | result |= 2; |
| 30832 | |
| 30833 | #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT |
| 30834 | /* The isnanf function should be immune against changes in the sign bit and |
| 30835 | in the mantissa bits. The xor operation twiddles a bit that can only be |
| 30836 | a sign bit or a mantissa bit. */ |
| 30837 | if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0) |
| 30838 | { |
| 30839 | memory_float m; |
| 30840 | |
| 30841 | m.value = NaN (); |
| 30842 | /* Set the bits below the exponent to 01111...111. */ |
| 30843 | m.word[0] &= -1U << FLT_EXPBIT0_BIT; |
| 30844 | m.word[0] |= (1U << (FLT_EXPBIT0_BIT - 1)) - 1; |
| 30845 | if (!isnanf (m.value)) |
| 30846 | result |= 4; |
| 30847 | } |
| 30848 | #endif |
| 30849 | |
| 30850 | return result; |
| 30851 | } |
| 30852 | _ACEOF |
| 30853 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 30854 | then : |
| 30855 | gl_cv_func_isnanf_works=yes |
| 30856 | else $as_nop |
| 30857 | gl_cv_func_isnanf_works=no |
| 30858 | fi |
| 30859 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30860 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30861 | fi |
| 30862 | |
| 30863 | |
| 30864 | fi |
| 30865 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5 |
| 30866 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_isnanf_works" >&6; } |
| 30867 | |
| 30868 | fi |
| 30869 | if testscip-shell system . . test. $gl_cv_func_isnanf_no_libm = yes \ |
| 30870 | && { case "$gl_cv_func_isnanf_works" in |
| 30871 | *yes) truescip-shell system . . true.;; |
| 30872 | *) falsescip-shell system . . false.;; |
| 30873 | esac |
| 30874 | }; then |
| 30875 | gl_func_isnanf_no_libm=yes |
| 30876 | |
| 30877 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h |
| 30878 | |
| 30879 | else |
| 30880 | gl_func_isnanf_no_libm=no |
| 30881 | fi |
| 30882 | |
| 30883 | if testscip-shell system . . test. $gl_func_isnanf_no_libm != yes; then |
| 30884 | |
| 30885 | |
| 30886 | |
| 30887 | |
| 30888 | |
| 30889 | |
| 30890 | |
| 30891 | |
| 30892 | gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext" |
| 30893 | |
| 30894 | |
| 30895 | |
| 30896 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5 |
| 30897 | printfscip-shell system . . printf. %s "checking where to find the exponent in a 'float'... " >&6; } |
| 30898 | if testscip-shell system . . test. ${gl_cv_cc_float_expbit0+y} |
| 30899 | then : |
| 30900 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 30901 | else $as_nop |
| 30902 | |
| 30903 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 30904 | then : |
| 30905 | gl_cv_cc_float_expbit0="word 0 bit 23" |
| 30906 | else $as_nop |
| 30907 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30908 | /* end confdefs.h. */ |
| 30909 | |
| 30910 | #include <float.h> |
| 30911 | #include <stddef.h> |
| 30912 | #include <stdio.h> |
| 30913 | #include <string.h> |
| 30914 | #define NWORDS \ |
| 30915 | ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 30916 | typedef union { float value; unsigned int word[NWORDS]; } memory_float; |
| 30917 | static unsigned int ored_words[NWORDS]; |
| 30918 | static unsigned int anded_words[NWORDS]; |
| 30919 | static void add_to_ored_words (float x) |
| 30920 | { |
| 30921 | memory_float m; |
| 30922 | size_t i; |
| 30923 | /* Clear it first, in case |
| 30924 | sizeof (float) < sizeof (memory_float). */ |
| 30925 | memset (&m, 0, sizeof (memory_float)); |
| 30926 | m.value = x; |
| 30927 | for (i = 0; i < NWORDS; i++) |
| 30928 | { |
| 30929 | ored_words[i] |= m.word[i]; |
| 30930 | anded_words[i] &= m.word[i]; |
| 30931 | } |
| 30932 | } |
| 30933 | int main () |
| 30934 | { |
| 30935 | size_t j; |
| 30936 | FILE *fp = fopen ("conftest.out", "w"); |
| 30937 | if (fp == NULL) |
| 30938 | return 1; |
| 30939 | for (j = 0; j < NWORDS; j++) |
| 30940 | anded_words[j] = ~ (unsigned int) 0; |
| 30941 | add_to_ored_words (0.25f); |
| 30942 | add_to_ored_words (0.5f); |
| 30943 | add_to_ored_words (1.0f); |
| 30944 | add_to_ored_words (2.0f); |
| 30945 | add_to_ored_words (4.0f); |
| 30946 | /* Remove bits that are common (e.g. if representation of the first mantissa |
| 30947 | bit is explicit). */ |
| 30948 | for (j = 0; j < NWORDS; j++) |
| 30949 | ored_words[j] &= ~anded_words[j]; |
| 30950 | /* Now find the nonzero word. */ |
| 30951 | for (j = 0; j < NWORDS; j++) |
| 30952 | if (ored_words[j] != 0) |
| 30953 | break; |
| 30954 | if (j < NWORDS) |
| 30955 | { |
| 30956 | size_t i; |
| 30957 | for (i = j + 1; i < NWORDS; i++) |
| 30958 | if (ored_words[i] != 0) |
| 30959 | { |
| 30960 | fprintf (fp, "unknown"); |
| 30961 | return (fclose (fp) != 0); |
| 30962 | } |
| 30963 | for (i = 0; ; i++) |
| 30964 | if ((ored_words[j] >> i) & 1) |
| 30965 | { |
| 30966 | fprintf (fp, "word %d bit %d", (int) j, (int) i); |
| 30967 | return (fclose (fp) != 0); |
| 30968 | } |
| 30969 | } |
| 30970 | fprintf (fp, "unknown"); |
| 30971 | return (fclose (fp) != 0); |
| 30972 | } |
| 30973 | |
| 30974 | _ACEOF |
| 30975 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 30976 | then : |
| 30977 | gl_cv_cc_float_expbit0=`catscip-shell system . . cat. conftest.out` |
| 30978 | else $as_nop |
| 30979 | gl_cv_cc_float_expbit0="unknown" |
| 30980 | fi |
| 30981 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30982 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30983 | fi |
| 30984 | |
| 30985 | rmscip-shell system . . rm. -f conftest.out |
| 30986 | |
| 30987 | fi |
| 30988 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5 |
| 30989 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_float_expbit0" >&6; } |
| 30990 | case "$gl_cv_cc_float_expbit0" in |
| 30991 | word*bit*) |
| 30992 | word=`echoscip-shell system . . echo. "$gl_cv_cc_float_expbit0" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 30993 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_float_expbit0" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 30994 | |
| 30995 | printfscip-shell system . . printf. "%s\n" "#define FLT_EXPBIT0_WORD $word" >>confdefs.h |
| 30996 | |
| 30997 | |
| 30998 | printfscip-shell system . . printf. "%s\n" "#define FLT_EXPBIT0_BIT $bit" >>confdefs.h |
| 30999 | |
| 31000 | ;; |
| 31001 | esac |
| 31002 | |
| 31003 | |
| 31004 | fi |
| 31005 | gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=true |
| 31006 | func_gl_gnulib_m4code_fpieeescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpieee(). |
| 31007 | fi |
| 31008 | } |
| 31009 | func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f(). () |
| 31010 | { |
| 31011 | if ! $gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f; then |
| 31012 | |
| 31013 | |
| 31014 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5 |
| 31015 | printfscip-shell system . . printf. %s "checking whether isnan(long double) can be used without linking with libm... " >&6; } |
| 31016 | if testscip-shell system . . test. ${gl_cv_func_isnanl_no_libm+y} |
| 31017 | then : |
| 31018 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31019 | else $as_nop |
| 31020 | |
| 31021 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31022 | /* end confdefs.h. */ |
| 31023 | #include <math.h> |
| 31024 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 31025 | # undef isnanl |
| 31026 | # define isnanl(x) __builtin_isnan ((long double)(x)) |
| 31027 | #elif defined isnan |
| 31028 | # undef isnanl |
| 31029 | # define isnanl(x) isnan ((long double)(x)) |
| 31030 | #endif |
| 31031 | long double x; |
| 31032 | int |
| 31033 | main (void) |
| 31034 | { |
| 31035 | return isnanl (x); |
| 31036 | ; |
| 31037 | return 0; |
| 31038 | } |
| 31039 | _ACEOF |
| 31040 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 31041 | then : |
| 31042 | gl_cv_func_isnanl_no_libm=yes |
| 31043 | else $as_nop |
| 31044 | gl_cv_func_isnanl_no_libm=no |
| 31045 | fi |
| 31046 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31047 | conftest$ac_exeext conftest.$ac_ext |
| 31048 | |
| 31049 | fi |
| 31050 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5 |
| 31051 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_isnanl_no_libm" >&6; } |
| 31052 | |
| 31053 | gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm |
| 31054 | if testscip-shell system . . test. $gl_func_isnanl_no_libm = yes; then |
| 31055 | |
| 31056 | |
| 31057 | |
| 31058 | |
| 31059 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5 |
| 31060 | printfscip-shell system . . printf. %s "checking whether isnanl works... " >&6; } |
| 31061 | if testscip-shell system . . test. ${gl_cv_func_isnanl_works+y} |
| 31062 | then : |
| 31063 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31064 | else $as_nop |
| 31065 | |
| 31066 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 31067 | then : |
| 31068 | case "$host_os" in |
| 31069 | mingw*) # Guess yes on mingw, no on MSVC. |
| 31070 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31071 | /* end confdefs.h. */ |
| 31072 | |
| 31073 | #ifdef __MINGW32__ |
| 31074 | Known |
| 31075 | #endif |
| 31076 | |
| 31077 | _ACEOF |
| 31078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31079 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 31080 | then : |
| 31081 | gl_cv_func_isnanl_works="guessing yes" |
| 31082 | else $as_nop |
| 31083 | gl_cv_func_isnanl_works="guessing no" |
| 31084 | fi |
| 31085 | rmscip-shell system . . rm. -rf conftest* |
| 31086 | |
| 31087 | ;; |
| 31088 | *) gl_cv_func_isnanl_works="guessing yes" ;; |
| 31089 | esac |
| 31090 | |
| 31091 | else $as_nop |
| 31092 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31093 | /* end confdefs.h. */ |
| 31094 | |
| 31095 | #include <float.h> |
| 31096 | #include <limits.h> |
| 31097 | #include <math.h> |
| 31098 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 31099 | # undef isnanl |
| 31100 | # define isnanl(x) __builtin_isnan ((long double)(x)) |
| 31101 | #elif defined isnan |
| 31102 | # undef isnanl |
| 31103 | # define isnanl(x) isnan ((long double)(x)) |
| 31104 | #endif |
| 31105 | #define NWORDS \ |
| 31106 | ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 31107 | typedef union { unsigned int word[NWORDS]; long double value; } |
| 31108 | memory_long_double; |
| 31109 | /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the |
| 31110 | runtime type conversion. */ |
| 31111 | #ifdef __sgi |
| 31112 | static long double NaNl () |
| 31113 | { |
| 31114 | double zero = 0.0; |
| 31115 | return zero / zero; |
| 31116 | } |
| 31117 | #else |
| 31118 | # define NaNl() (0.0L / 0.0L) |
| 31119 | #endif |
| 31120 | int main () |
| 31121 | { |
| 31122 | int result = 0; |
| 31123 | |
| 31124 | if (!isnanl (NaNl ())) |
| 31125 | result |= 1; |
| 31126 | |
| 31127 | { |
| 31128 | memory_long_double m; |
| 31129 | unsigned int i; |
| 31130 | |
| 31131 | /* The isnanl function should be immune against changes in the sign bit and |
| 31132 | in the mantissa bits. The xor operation twiddles a bit that can only be |
| 31133 | a sign bit or a mantissa bit (since the exponent never extends to |
| 31134 | bit 31). */ |
| 31135 | m.value = NaNl (); |
| 31136 | m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1); |
| 31137 | for (i = 0; i < NWORDS; i++) |
| 31138 | m.word[i] |= 1; |
| 31139 | if (!isnanl (m.value)) |
| 31140 | result |= 1; |
| 31141 | } |
| 31142 | |
| 31143 | #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE |
| 31144 | /* Representation of an 80-bit 'long double' as an initializer for a sequence |
| 31145 | of 'unsigned int' words. */ |
| 31146 | # ifdef WORDS_BIGENDIAN |
| 31147 | # define LDBL80_WORDS(exponent,manthi,mantlo) \ |
| 31148 | { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ |
| 31149 | ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \ |
| 31150 | (unsigned int) (mantlo) << 16 \ |
| 31151 | } |
| 31152 | # else |
| 31153 | # define LDBL80_WORDS(exponent,manthi,mantlo) \ |
| 31154 | { mantlo, manthi, exponent } |
| 31155 | # endif |
| 31156 | { /* Quiet NaN. */ |
| 31157 | static memory_long_double x = |
| 31158 | { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; |
| 31159 | if (!isnanl (x.value)) |
| 31160 | result |= 2; |
| 31161 | } |
| 31162 | { |
| 31163 | /* Signalling NaN. */ |
| 31164 | static memory_long_double x = |
| 31165 | { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; |
| 31166 | if (!isnanl (x.value)) |
| 31167 | result |= 2; |
| 31168 | } |
| 31169 | /* isnanl should return something even for noncanonical values. */ |
| 31170 | { /* Pseudo-NaN. */ |
| 31171 | static memory_long_double x = |
| 31172 | { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; |
| 31173 | if (isnanl (x.value) && !isnanl (x.value)) |
| 31174 | result |= 4; |
| 31175 | } |
| 31176 | { /* Pseudo-Infinity. */ |
| 31177 | static memory_long_double x = |
| 31178 | { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; |
| 31179 | if (isnanl (x.value) && !isnanl (x.value)) |
| 31180 | result |= 8; |
| 31181 | } |
| 31182 | { /* Pseudo-Zero. */ |
| 31183 | static memory_long_double x = |
| 31184 | { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; |
| 31185 | if (isnanl (x.value) && !isnanl (x.value)) |
| 31186 | result |= 16; |
| 31187 | } |
| 31188 | { /* Unnormalized number. */ |
| 31189 | static memory_long_double x = |
| 31190 | { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; |
| 31191 | if (isnanl (x.value) && !isnanl (x.value)) |
| 31192 | result |= 32; |
| 31193 | } |
| 31194 | { /* Pseudo-Denormal. */ |
| 31195 | static memory_long_double x = |
| 31196 | { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; |
| 31197 | if (isnanl (x.value) && !isnanl (x.value)) |
| 31198 | result |= 64; |
| 31199 | } |
| 31200 | #endif |
| 31201 | |
| 31202 | return result; |
| 31203 | } |
| 31204 | _ACEOF |
| 31205 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 31206 | then : |
| 31207 | gl_cv_func_isnanl_works=yes |
| 31208 | else $as_nop |
| 31209 | gl_cv_func_isnanl_works=no |
| 31210 | fi |
| 31211 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31212 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31213 | fi |
| 31214 | |
| 31215 | |
| 31216 | fi |
| 31217 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5 |
| 31218 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_isnanl_works" >&6; } |
| 31219 | |
| 31220 | case "$gl_cv_func_isnanl_works" in |
| 31221 | *yes) ;; |
| 31222 | *) gl_func_isnanl_no_libm=no ;; |
| 31223 | esac |
| 31224 | fi |
| 31225 | if testscip-shell system . . test. $gl_func_isnanl_no_libm = yes; then |
| 31226 | |
| 31227 | printfscip-shell system . . printf. "%s\n" "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h |
| 31228 | |
| 31229 | fi |
| 31230 | |
| 31231 | if testscip-shell system . . test. $gl_func_isnanl_no_libm != yes; then |
| 31232 | |
| 31233 | |
| 31234 | |
| 31235 | |
| 31236 | |
| 31237 | |
| 31238 | |
| 31239 | |
| 31240 | gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext" |
| 31241 | |
| 31242 | |
| 31243 | |
| 31244 | |
| 31245 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5 |
| 31246 | printfscip-shell system . . printf. %s "checking where to find the exponent in a 'long double'... " >&6; } |
| 31247 | if testscip-shell system . . test. ${gl_cv_cc_long_double_expbit0+y} |
| 31248 | then : |
| 31249 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31250 | else $as_nop |
| 31251 | |
| 31252 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 31253 | then : |
| 31254 | |
| 31255 | gl_cv_cc_long_double_expbit0="unknown" |
| 31256 | case "$host_os" in |
| 31257 | mingw*) # On native Windows (little-endian), we know the result |
| 31258 | # in two cases: mingw, MSVC. |
| 31259 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31260 | /* end confdefs.h. */ |
| 31261 | |
| 31262 | #ifdef __MINGW32__ |
| 31263 | Known |
| 31264 | #endif |
| 31265 | |
| 31266 | _ACEOF |
| 31267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31268 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 31269 | then : |
| 31270 | gl_cv_cc_long_double_expbit0="word 2 bit 0" |
| 31271 | fi |
| 31272 | rmscip-shell system . . rm. -rf conftest* |
| 31273 | |
| 31274 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31275 | /* end confdefs.h. */ |
| 31276 | |
| 31277 | #ifdef _MSC_VER |
| 31278 | Known |
| 31279 | #endif |
| 31280 | |
| 31281 | _ACEOF |
| 31282 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31283 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 31284 | then : |
| 31285 | gl_cv_cc_long_double_expbit0="word 1 bit 20" |
| 31286 | fi |
| 31287 | rmscip-shell system . . rm. -rf conftest* |
| 31288 | |
| 31289 | ;; |
| 31290 | esac |
| 31291 | |
| 31292 | else $as_nop |
| 31293 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31294 | /* end confdefs.h. */ |
| 31295 | |
| 31296 | #include <float.h> |
| 31297 | #include <stddef.h> |
| 31298 | #include <stdio.h> |
| 31299 | #include <string.h> |
| 31300 | #define NWORDS \ |
| 31301 | ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 31302 | typedef union { long double value; unsigned int word[NWORDS]; } |
| 31303 | memory_long_double; |
| 31304 | static unsigned int ored_words[NWORDS]; |
| 31305 | static unsigned int anded_words[NWORDS]; |
| 31306 | static void add_to_ored_words (long double *x) |
| 31307 | { |
| 31308 | memory_long_double m; |
| 31309 | size_t i; |
| 31310 | /* Clear it first, in case |
| 31311 | sizeof (long double) < sizeof (memory_long_double). */ |
| 31312 | memset (&m, 0, sizeof (memory_long_double)); |
| 31313 | m.value = *x; |
| 31314 | for (i = 0; i < NWORDS; i++) |
| 31315 | { |
| 31316 | ored_words[i] |= m.word[i]; |
| 31317 | anded_words[i] &= m.word[i]; |
| 31318 | } |
| 31319 | } |
| 31320 | int main () |
| 31321 | { |
| 31322 | static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L }; |
| 31323 | size_t j; |
| 31324 | FILE *fp = fopen ("conftest.out", "w"); |
| 31325 | if (fp == NULL) |
| 31326 | return 1; |
| 31327 | for (j = 0; j < NWORDS; j++) |
| 31328 | anded_words[j] = ~ (unsigned int) 0; |
| 31329 | for (j = 0; j < 5; j++) |
| 31330 | add_to_ored_words (&samples[j]); |
| 31331 | /* Remove bits that are common (e.g. if representation of the first mantissa |
| 31332 | bit is explicit). */ |
| 31333 | for (j = 0; j < NWORDS; j++) |
| 31334 | ored_words[j] &= ~anded_words[j]; |
| 31335 | /* Now find the nonzero word. */ |
| 31336 | for (j = 0; j < NWORDS; j++) |
| 31337 | if (ored_words[j] != 0) |
| 31338 | break; |
| 31339 | if (j < NWORDS) |
| 31340 | { |
| 31341 | size_t i; |
| 31342 | for (i = j + 1; i < NWORDS; i++) |
| 31343 | if (ored_words[i] != 0) |
| 31344 | { |
| 31345 | fprintf (fp, "unknown"); |
| 31346 | return (fclose (fp) != 0); |
| 31347 | } |
| 31348 | for (i = 0; ; i++) |
| 31349 | if ((ored_words[j] >> i) & 1) |
| 31350 | { |
| 31351 | fprintf (fp, "word %d bit %d", (int) j, (int) i); |
| 31352 | return (fclose (fp) != 0); |
| 31353 | } |
| 31354 | } |
| 31355 | fprintf (fp, "unknown"); |
| 31356 | return (fclose (fp) != 0); |
| 31357 | } |
| 31358 | |
| 31359 | _ACEOF |
| 31360 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 31361 | then : |
| 31362 | gl_cv_cc_long_double_expbit0=`catscip-shell system . . cat. conftest.out` |
| 31363 | else $as_nop |
| 31364 | gl_cv_cc_long_double_expbit0="unknown" |
| 31365 | fi |
| 31366 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31367 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31368 | fi |
| 31369 | |
| 31370 | rmscip-shell system . . rm. -f conftest.out |
| 31371 | |
| 31372 | fi |
| 31373 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5 |
| 31374 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_long_double_expbit0" >&6; } |
| 31375 | case "$gl_cv_cc_long_double_expbit0" in |
| 31376 | word*bit*) |
| 31377 | word=`echoscip-shell system . . echo. "$gl_cv_cc_long_double_expbit0" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 31378 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_long_double_expbit0" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 31379 | |
| 31380 | printfscip-shell system . . printf. "%s\n" "#define LDBL_EXPBIT0_WORD $word" >>confdefs.h |
| 31381 | |
| 31382 | |
| 31383 | printfscip-shell system . . printf. "%s\n" "#define LDBL_EXPBIT0_BIT $bit" >>confdefs.h |
| 31384 | |
| 31385 | ;; |
| 31386 | esac |
| 31387 | |
| 31388 | |
| 31389 | |
| 31390 | fi |
| 31391 | gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=true |
| 31392 | func_gl_gnulib_m4code_fpieeescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpieee(). |
| 31393 | fi |
| 31394 | } |
| 31395 | func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467(). () |
| 31396 | { |
| 31397 | if ! $gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467; then |
| 31398 | |
| 31399 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 |
| 31400 | printfscip-shell system . . printf. %s "checking whether the compiler supports the __inline keyword... " >&6; } |
| 31401 | if testscip-shell system . . test. ${gl_cv_c___inline+y} |
| 31402 | then : |
| 31403 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31404 | else $as_nop |
| 31405 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31406 | /* end confdefs.h. */ |
| 31407 | typedef int foo_t; |
| 31408 | static __inline foo_t foo (void) { return 0; } |
| 31409 | int |
| 31410 | main (void) |
| 31411 | { |
| 31412 | return foo (); |
| 31413 | ; |
| 31414 | return 0; |
| 31415 | } |
| 31416 | _ACEOF |
| 31417 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 31418 | then : |
| 31419 | gl_cv_c___inline=yes |
| 31420 | else $as_nop |
| 31421 | gl_cv_c___inline=no |
| 31422 | fi |
| 31423 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31424 | fi |
| 31425 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 |
| 31426 | printfscip-shell system . . printf. "%s\n" "$gl_cv_c___inline" >&6; } |
| 31427 | if testscip-shell system . . test. $gl_cv_c___inline = yes; then |
| 31428 | |
| 31429 | printfscip-shell system . . printf. "%s\n" "#define HAVE___INLINE 1" >>confdefs.h |
| 31430 | |
| 31431 | fi |
| 31432 | |
| 31433 | gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=true |
| 31434 | fi |
| 31435 | } |
| 31436 | func_gl_gnulib_m4code_lockscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_lock(). () |
| 31437 | { |
| 31438 | if ! $gl_gnulib_enabled_lock; then |
| 31439 | |
| 31440 | |
| 31441 | if testscip-shell system . . test. "$gl_threads_api" = posix; then |
| 31442 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 31443 | # pthread_rwlock_* functions. |
| 31444 | has_rwlock=false |
| 31445 | ac_fn_c_check_typescip-shell shell shell-project 0.0.0 ac_fn_c_check_type(). "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 31446 | " |
| 31447 | if testscip-shell system . . test. "x$ac_cv_type_pthread_rwlock_t" = xyes |
| 31448 | then : |
| 31449 | has_rwlock=true |
| 31450 | |
| 31451 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 31452 | |
| 31453 | fi |
| 31454 | |
| 31455 | if $has_rwlock; then |
| 31456 | |
| 31457 | |
| 31458 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 |
| 31459 | printfscip-shell system . . printf. %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } |
| 31460 | if testscip-shell system . . test. ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y} |
| 31461 | then : |
| 31462 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31463 | else $as_nop |
| 31464 | save_LIBS="$LIBS" |
| 31465 | LIBS="$LIBS $LIBMULTITHREAD" |
| 31466 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 31467 | then : |
| 31468 | case "$host_os" in |
| 31469 | # Guess no on glibc systems. |
| 31470 | *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; |
| 31471 | # Guess no on musl systems. |
| 31472 | *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; |
| 31473 | # Guess no on bionic systems. |
| 31474 | *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; |
| 31475 | # Guess yes on native Windows with the mingw-w64 winpthreads library. |
| 31476 | # Guess no on native Windows with the gnulib windows-rwlock module. |
| 31477 | mingw*) if testscip-shell system . . test. "$gl_use_threads" = yes || testscip-shell system . . test. "$gl_use_threads" = posix; then |
| 31478 | gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" |
| 31479 | else |
| 31480 | gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" |
| 31481 | fi |
| 31482 | ;; |
| 31483 | # If we don't know, obey --enable-cross-guesses. |
| 31484 | *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; |
| 31485 | esac |
| 31486 | |
| 31487 | else $as_nop |
| 31488 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31489 | /* end confdefs.h. */ |
| 31490 | |
| 31491 | #include <errno.h> |
| 31492 | #include <pthread.h> |
| 31493 | #include <stdlib.h> |
| 31494 | #include <unistd.h> |
| 31495 | |
| 31496 | #define SUCCEED() exit (0) |
| 31497 | #define FAILURE() exit (1) |
| 31498 | #define UNEXPECTED(n) (exit (10 + (n))) |
| 31499 | |
| 31500 | /* The main thread creates the waiting writer and the requesting reader threads |
| 31501 | in the default way; this guarantees that they have the same priority. |
| 31502 | We can reuse the main thread as first reader thread. */ |
| 31503 | |
| 31504 | static pthread_rwlock_t lock; |
| 31505 | static pthread_t reader1; |
| 31506 | static pthread_t writer; |
| 31507 | static pthread_t reader2; |
| 31508 | static pthread_t timer; |
| 31509 | /* Used to pass control from writer to reader2 and from reader2 to timer, |
| 31510 | as in a relay race. |
| 31511 | Passing control from one running thread to another running thread |
| 31512 | is most likely faster than to create the second thread. */ |
| 31513 | static pthread_mutex_t baton; |
| 31514 | |
| 31515 | static void * |
| 31516 | timer_func (void *ignored) |
| 31517 | { |
| 31518 | /* Step 13 (can be before or after step 12): |
| 31519 | The timer thread takes the baton, then waits a moment to make sure |
| 31520 | it can tell whether the second reader thread is blocked at step 12. */ |
| 31521 | if (pthread_mutex_lock (&baton)) |
| 31522 | UNEXPECTED (13); |
| 31523 | usleep (100000); |
| 31524 | /* By the time we get here, it's clear that the second reader thread is |
| 31525 | blocked at step 12. This is the desired behaviour. */ |
| 31526 | SUCCEED (); |
| 31527 | } |
| 31528 | |
| 31529 | static void * |
| 31530 | reader2_func (void *ignored) |
| 31531 | { |
| 31532 | int err; |
| 31533 | |
| 31534 | /* Step 8 (can be before or after step 7): |
| 31535 | The second reader thread takes the baton, then waits a moment to make sure |
| 31536 | the writer thread has reached step 7. */ |
| 31537 | if (pthread_mutex_lock (&baton)) |
| 31538 | UNEXPECTED (8); |
| 31539 | usleep (100000); |
| 31540 | /* Step 9: The second reader thread requests the lock. */ |
| 31541 | err = pthread_rwlock_tryrdlock (&lock); |
| 31542 | if (err == 0) |
| 31543 | FAILURE (); |
| 31544 | else if (err != EBUSY) |
| 31545 | UNEXPECTED (9); |
| 31546 | /* Step 10: Launch a timer, to test whether the next call blocks. */ |
| 31547 | if (pthread_create (&timer, NULL, timer_func, NULL)) |
| 31548 | UNEXPECTED (10); |
| 31549 | /* Step 11: Release the baton. */ |
| 31550 | if (pthread_mutex_unlock (&baton)) |
| 31551 | UNEXPECTED (11); |
| 31552 | /* Step 12: The second reader thread requests the lock. */ |
| 31553 | err = pthread_rwlock_rdlock (&lock); |
| 31554 | if (err == 0) |
| 31555 | FAILURE (); |
| 31556 | else |
| 31557 | UNEXPECTED (12); |
| 31558 | } |
| 31559 | |
| 31560 | static void * |
| 31561 | writer_func (void *ignored) |
| 31562 | { |
| 31563 | /* Step 4: Take the baton, so that the second reader thread does not go ahead |
| 31564 | too early. */ |
| 31565 | if (pthread_mutex_lock (&baton)) |
| 31566 | UNEXPECTED (4); |
| 31567 | /* Step 5: Create the second reader thread. */ |
| 31568 | if (pthread_create (&reader2, NULL, reader2_func, NULL)) |
| 31569 | UNEXPECTED (5); |
| 31570 | /* Step 6: Release the baton. */ |
| 31571 | if (pthread_mutex_unlock (&baton)) |
| 31572 | UNEXPECTED (6); |
| 31573 | /* Step 7: The writer thread requests the lock. */ |
| 31574 | if (pthread_rwlock_wrlock (&lock)) |
| 31575 | UNEXPECTED (7); |
| 31576 | return NULL; |
| 31577 | } |
| 31578 | |
| 31579 | int |
| 31580 | main () |
| 31581 | { |
| 31582 | reader1 = pthread_self (); |
| 31583 | |
| 31584 | /* Step 1: The main thread initializes the lock and the baton. */ |
| 31585 | if (pthread_rwlock_init (&lock, NULL)) |
| 31586 | UNEXPECTED (1); |
| 31587 | if (pthread_mutex_init (&baton, NULL)) |
| 31588 | UNEXPECTED (1); |
| 31589 | /* Step 2: The main thread acquires the lock as a reader. */ |
| 31590 | if (pthread_rwlock_rdlock (&lock)) |
| 31591 | UNEXPECTED (2); |
| 31592 | /* Step 3: Create the writer thread. */ |
| 31593 | if (pthread_create (&writer, NULL, writer_func, NULL)) |
| 31594 | UNEXPECTED (3); |
| 31595 | /* Job done. Go to sleep. */ |
| 31596 | for (;;) |
| 31597 | { |
| 31598 | sleep (1); |
| 31599 | } |
| 31600 | } |
| 31601 | |
| 31602 | _ACEOF |
| 31603 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 31604 | then : |
| 31605 | gl_cv_pthread_rwlock_rdlock_prefer_writer=yes |
| 31606 | else $as_nop |
| 31607 | gl_cv_pthread_rwlock_rdlock_prefer_writer=no |
| 31608 | fi |
| 31609 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31610 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31611 | fi |
| 31612 | |
| 31613 | LIBS="$save_LIBS" |
| 31614 | |
| 31615 | fi |
| 31616 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 |
| 31617 | printfscip-shell system . . printf. "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } |
| 31618 | case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in |
| 31619 | *yes) |
| 31620 | |
| 31621 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h |
| 31622 | |
| 31623 | ;; |
| 31624 | esac |
| 31625 | |
| 31626 | fi |
| 31627 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 31628 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31629 | /* end confdefs.h. */ |
| 31630 | |
| 31631 | #include <pthread.h> |
| 31632 | int |
| 31633 | main (void) |
| 31634 | { |
| 31635 | |
| 31636 | #if __FreeBSD__ == 4 |
| 31637 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 31638 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 31639 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 31640 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 31641 | #else |
| 31642 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 31643 | return !x; |
| 31644 | #endif |
| 31645 | |
| 31646 | ; |
| 31647 | return 0; |
| 31648 | } |
| 31649 | _ACEOF |
| 31650 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 31651 | then : |
| 31652 | |
| 31653 | printfscip-shell system . . printf. "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 31654 | |
| 31655 | fi |
| 31656 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31657 | fi |
| 31658 | : |
| 31659 | |
| 31660 | |
| 31661 | |
| 31662 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h |
| 31663 | |
| 31664 | |
| 31665 | gl_gnulib_enabled_lock=true |
| 31666 | func_gl_gnulib_m4code_threadlibscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_threadlib(). |
| 31667 | if testscip-shell system . . test. $gl_threads_api = windows; then |
| 31668 | func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440(). |
| 31669 | fi |
| 31670 | if testscip-shell system . . test. $gl_threads_api = windows; then |
| 31671 | func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917abscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917ab(). |
| 31672 | fi |
| 31673 | if testscip-shell system . . test. $gl_threads_api = windows; then |
| 31674 | func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354(). |
| 31675 | fi |
| 31676 | if testscip-shell system . . test. $gl_threads_api = windows; then |
| 31677 | func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92efscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92ef(). |
| 31678 | fi |
| 31679 | fi |
| 31680 | } |
| 31681 | func_gl_gnulib_m4code_mallocascip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_malloca(). () |
| 31682 | { |
| 31683 | if ! $gl_gnulib_enabled_malloca; then |
| 31684 | |
| 31685 | |
| 31686 | |
| 31687 | gl_gnulib_enabled_malloca=true |
| 31688 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 31689 | fi |
| 31690 | } |
| 31691 | func_gl_gnulib_m4code_mathscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_math(). () |
| 31692 | { |
| 31693 | if ! $gl_gnulib_enabled_math; then |
| 31694 | |
| 31695 | |
| 31696 | |
| 31697 | |
| 31698 | |
| 31699 | |
| 31700 | |
| 31701 | gl_gnulib_enabled_math=true |
| 31702 | fi |
| 31703 | } |
| 31704 | func_gl_gnulib_m4code_memrchrscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_memrchr(). () |
| 31705 | { |
| 31706 | if ! $gl_gnulib_enabled_memrchr; then |
| 31707 | |
| 31708 | |
| 31709 | |
| 31710 | |
| 31711 | |
| 31712 | if testscip-shell system . . test. $ac_cv_have_decl_memrchr = no; then |
| 31713 | HAVE_DECL_MEMRCHR=0 |
| 31714 | fi |
| 31715 | |
| 31716 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "memrchr" "ac_cv_func_memrchr" |
| 31717 | if testscip-shell system . . test. "x$ac_cv_func_memrchr" = xyes |
| 31718 | then : |
| 31719 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h |
| 31720 | |
| 31721 | fi |
| 31722 | |
| 31723 | |
| 31724 | |
| 31725 | if testscip-shell system . . test. $ac_cv_func_memrchr = no; then |
| 31726 | GL_COND_OBJ_MEMRCHR_TRUE= |
| 31727 | GL_COND_OBJ_MEMRCHR_FALSE='#' |
| 31728 | else |
| 31729 | GL_COND_OBJ_MEMRCHR_TRUE='#' |
| 31730 | GL_COND_OBJ_MEMRCHR_FALSE= |
| 31731 | fi |
| 31732 | : |
| 31733 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MEMRCHR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MEMRCHR_FALSE}"; then |
| 31734 | GL_COND_OBJ_MEMRCHR_TRUE='#' |
| 31735 | GL_COND_OBJ_MEMRCHR_FALSE='#' |
| 31736 | fi |
| 31737 | |
| 31738 | if testscip-shell system . . test. -z "$GL_COND_OBJ_MEMRCHR_TRUE"; then : |
| 31739 | |
| 31740 | : |
| 31741 | |
| 31742 | fi |
| 31743 | |
| 31744 | |
| 31745 | |
| 31746 | |
| 31747 | |
| 31748 | |
| 31749 | |
| 31750 | |
| 31751 | |
| 31752 | |
| 31753 | |
| 31754 | |
| 31755 | |
| 31756 | |
| 31757 | GL_GNULIB_MEMRCHR=1 |
| 31758 | |
| 31759 | |
| 31760 | |
| 31761 | |
| 31762 | |
| 31763 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h |
| 31764 | |
| 31765 | |
| 31766 | |
| 31767 | gl_gnulib_enabled_memrchr=true |
| 31768 | fi |
| 31769 | } |
| 31770 | func_gl_gnulib_m4code_mkdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_mkdir(). () |
| 31771 | { |
| 31772 | if ! $gl_gnulib_enabled_mkdir; then |
| 31773 | |
| 31774 | |
| 31775 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5 |
| 31776 | printfscip-shell system . . printf. %s "checking whether mkdir handles trailing slash... " >&6; } |
| 31777 | if testscip-shell system . . test. ${gl_cv_func_mkdir_trailing_slash_works+y} |
| 31778 | then : |
| 31779 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31780 | else $as_nop |
| 31781 | rmscip-shell system . . rm. -rf conftest.dir |
| 31782 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 31783 | then : |
| 31784 | case "$host_os" in |
| 31785 | # Guess yes on Linux systems. |
| 31786 | linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;; |
| 31787 | # Guess yes on glibc systems. |
| 31788 | *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;; |
| 31789 | # Guess yes on MSVC, no on mingw. |
| 31790 | mingw*) catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31791 | /* end confdefs.h. */ |
| 31792 | |
| 31793 | #ifdef _MSC_VER |
| 31794 | Known |
| 31795 | #endif |
| 31796 | |
| 31797 | _ACEOF |
| 31798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31799 | $EGREP "Known" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 31800 | then : |
| 31801 | gl_cv_func_mkdir_trailing_slash_works="guessing yes" |
| 31802 | else $as_nop |
| 31803 | gl_cv_func_mkdir_trailing_slash_works="guessing no" |
| 31804 | fi |
| 31805 | rmscip-shell system . . rm. -rf conftest* |
| 31806 | |
| 31807 | ;; |
| 31808 | # If we don't know, obey --enable-cross-guesses. |
| 31809 | *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;; |
| 31810 | esac |
| 31811 | |
| 31812 | else $as_nop |
| 31813 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31814 | /* end confdefs.h. */ |
| 31815 | |
| 31816 | #include <sys/types.h> |
| 31817 | #include <sys/stat.h> |
| 31818 | |
| 31819 | |
| 31820 | $gl_mda_defines |
| 31821 | |
| 31822 | int |
| 31823 | main (void) |
| 31824 | { |
| 31825 | return mkdir ("conftest.dir/", 0700); |
| 31826 | ; |
| 31827 | return 0; |
| 31828 | } |
| 31829 | _ACEOF |
| 31830 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 31831 | then : |
| 31832 | gl_cv_func_mkdir_trailing_slash_works=yes |
| 31833 | else $as_nop |
| 31834 | gl_cv_func_mkdir_trailing_slash_works=no |
| 31835 | fi |
| 31836 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31837 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31838 | fi |
| 31839 | |
| 31840 | rmscip-shell system . . rm. -rf conftest.dir |
| 31841 | |
| 31842 | fi |
| 31843 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5 |
| 31844 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_mkdir_trailing_slash_works" >&6; } |
| 31845 | case "$gl_cv_func_mkdir_trailing_slash_works" in |
| 31846 | *yes) ;; |
| 31847 | *) |
| 31848 | REPLACE_MKDIR=1 |
| 31849 | ;; |
| 31850 | esac |
| 31851 | |
| 31852 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5 |
| 31853 | printfscip-shell system . . printf. %s "checking whether mkdir handles trailing dot... " >&6; } |
| 31854 | if testscip-shell system . . test. ${gl_cv_func_mkdir_trailing_dot_works+y} |
| 31855 | then : |
| 31856 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 31857 | else $as_nop |
| 31858 | rmscip-shell system . . rm. -rf conftest.dir |
| 31859 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 31860 | then : |
| 31861 | case "$host_os" in |
| 31862 | # Guess yes on glibc systems. |
| 31863 | *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; |
| 31864 | # Guess yes on musl systems. |
| 31865 | *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; |
| 31866 | # Guess no on native Windows. |
| 31867 | mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;; |
| 31868 | # If we don't know, obey --enable-cross-guesses. |
| 31869 | *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;; |
| 31870 | esac |
| 31871 | |
| 31872 | else $as_nop |
| 31873 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31874 | /* end confdefs.h. */ |
| 31875 | |
| 31876 | #include <sys/types.h> |
| 31877 | #include <sys/stat.h> |
| 31878 | |
| 31879 | |
| 31880 | $gl_mda_defines |
| 31881 | |
| 31882 | int |
| 31883 | main (void) |
| 31884 | { |
| 31885 | return !mkdir ("conftest.dir/./", 0700); |
| 31886 | ; |
| 31887 | return 0; |
| 31888 | } |
| 31889 | _ACEOF |
| 31890 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 31891 | then : |
| 31892 | gl_cv_func_mkdir_trailing_dot_works=yes |
| 31893 | else $as_nop |
| 31894 | gl_cv_func_mkdir_trailing_dot_works=no |
| 31895 | fi |
| 31896 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31897 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31898 | fi |
| 31899 | |
| 31900 | rmscip-shell system . . rm. -rf conftest.dir |
| 31901 | |
| 31902 | |
| 31903 | fi |
| 31904 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5 |
| 31905 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_mkdir_trailing_dot_works" >&6; } |
| 31906 | case "$gl_cv_func_mkdir_trailing_dot_works" in |
| 31907 | *yes) ;; |
| 31908 | *) |
| 31909 | REPLACE_MKDIR=1 |
| 31910 | |
| 31911 | printfscip-shell system . . printf. "%s\n" "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h |
| 31912 | |
| 31913 | ;; |
| 31914 | esac |
| 31915 | |
| 31916 | |
| 31917 | if testscip-shell system . . test. $REPLACE_MKDIR = 1; then |
| 31918 | GL_COND_OBJ_MKDIR_TRUE= |
| 31919 | GL_COND_OBJ_MKDIR_FALSE='#' |
| 31920 | else |
| 31921 | GL_COND_OBJ_MKDIR_TRUE='#' |
| 31922 | GL_COND_OBJ_MKDIR_FALSE= |
| 31923 | fi |
| 31924 | : |
| 31925 | if testscip-shell system . . test. -z "${GL_COND_OBJ_MKDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_MKDIR_FALSE}"; then |
| 31926 | GL_COND_OBJ_MKDIR_TRUE='#' |
| 31927 | GL_COND_OBJ_MKDIR_FALSE='#' |
| 31928 | fi |
| 31929 | |
| 31930 | |
| 31931 | |
| 31932 | |
| 31933 | |
| 31934 | |
| 31935 | |
| 31936 | |
| 31937 | |
| 31938 | |
| 31939 | GL_GNULIB_MKDIR=1 |
| 31940 | |
| 31941 | |
| 31942 | |
| 31943 | |
| 31944 | |
| 31945 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_MKDIR 1" >>confdefs.h |
| 31946 | |
| 31947 | |
| 31948 | |
| 31949 | gl_gnulib_enabled_mkdir=true |
| 31950 | if testscip-shell system . . test. $REPLACE_MKDIR = 1; then |
| 31951 | func_gl_gnulib_m4code_a691da99c1d83b83238e45f41a696f5cscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_a691da99c1d83b83238e45f41a696f5c(). |
| 31952 | fi |
| 31953 | fi |
| 31954 | } |
| 31955 | func_gl_gnulib_m4code_openatscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_openat(). () |
| 31956 | { |
| 31957 | if ! $gl_gnulib_enabled_openat; then |
| 31958 | |
| 31959 | |
| 31960 | |
| 31961 | |
| 31962 | |
| 31963 | |
| 31964 | case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in |
| 31965 | yes+*yes+yes) |
| 31966 | ;; |
| 31967 | yes+*) |
| 31968 | # Solaris 10 lacks O_CLOEXEC. |
| 31969 | # Solaris 9 has *at functions, but uniformly mishandles trailing |
| 31970 | # slash in all of them. |
| 31971 | REPLACE_OPENAT=1 |
| 31972 | ;; |
| 31973 | *) |
| 31974 | HAVE_OPENAT=0 |
| 31975 | ;; |
| 31976 | esac |
| 31977 | |
| 31978 | |
| 31979 | if testscip-shell system . . test. $HAVE_OPENAT = 0 || testscip-shell system . . test. $REPLACE_OPENAT = 1; then |
| 31980 | GL_COND_OBJ_OPENAT_TRUE= |
| 31981 | GL_COND_OBJ_OPENAT_FALSE='#' |
| 31982 | else |
| 31983 | GL_COND_OBJ_OPENAT_TRUE='#' |
| 31984 | GL_COND_OBJ_OPENAT_FALSE= |
| 31985 | fi |
| 31986 | : |
| 31987 | if testscip-shell system . . test. -z "${GL_COND_OBJ_OPENAT_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_OPENAT_FALSE}"; then |
| 31988 | GL_COND_OBJ_OPENAT_TRUE='#' |
| 31989 | GL_COND_OBJ_OPENAT_FALSE='#' |
| 31990 | fi |
| 31991 | |
| 31992 | if testscip-shell system . . test. -z "$GL_COND_OBJ_OPENAT_TRUE"; then : |
| 31993 | |
| 31994 | |
| 31995 | |
| 31996 | : |
| 31997 | |
| 31998 | |
| 31999 | fi |
| 32000 | |
| 32001 | |
| 32002 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_OPENAT 1" >>confdefs.h |
| 32003 | |
| 32004 | |
| 32005 | |
| 32006 | |
| 32007 | |
| 32008 | |
| 32009 | |
| 32010 | |
| 32011 | |
| 32012 | |
| 32013 | GL_GNULIB_OPENAT=1 |
| 32014 | |
| 32015 | |
| 32016 | |
| 32017 | |
| 32018 | |
| 32019 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_OPENAT 1" >>confdefs.h |
| 32020 | |
| 32021 | |
| 32022 | |
| 32023 | gl_gnulib_enabled_openat=true |
| 32024 | if testscip-shell system . . test. $HAVE_OPENAT = 0; then |
| 32025 | func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300bscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b(). |
| 32026 | fi |
| 32027 | if testscip-shell system . . test. $REPLACE_OPENAT = 1; then |
| 32028 | func_gl_gnulib_m4code_cloexecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_cloexec(). |
| 32029 | fi |
| 32030 | if testscip-shell system . . test. $HAVE_OPENAT = 0; then |
| 32031 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). |
| 32032 | fi |
| 32033 | if testscip-shell system . . test. $HAVE_OPENAT = 0; then |
| 32034 | func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345(). |
| 32035 | fi |
| 32036 | if testscip-shell system . . test. $HAVE_OPENAT = 0 || testscip-shell system . . test. $REPLACE_OPENAT = 1; then |
| 32037 | func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7(). |
| 32038 | fi |
| 32039 | if testscip-shell system . . test. $HAVE_OPENAT = 0; then |
| 32040 | func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21(). |
| 32041 | fi |
| 32042 | fi |
| 32043 | } |
| 32044 | func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_1840129d490f3a00c8a098316d0fa345(). () |
| 32045 | { |
| 32046 | if ! $gl_gnulib_enabled_1840129d490f3a00c8a098316d0fa345; then |
| 32047 | gl_gnulib_enabled_1840129d490f3a00c8a098316d0fa345=true |
| 32048 | func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7(). |
| 32049 | fi |
| 32050 | } |
| 32051 | func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7(). () |
| 32052 | { |
| 32053 | if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then |
| 32054 | gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true |
| 32055 | fi |
| 32056 | } |
| 32057 | func_gl_gnulib_m4code_pathmaxscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_pathmax(). () |
| 32058 | { |
| 32059 | if ! $gl_gnulib_enabled_pathmax; then |
| 32060 | |
| 32061 | |
| 32062 | |
| 32063 | gl_gnulib_enabled_pathmax=true |
| 32064 | fi |
| 32065 | } |
| 32066 | func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94(). () |
| 32067 | { |
| 32068 | if ! $gl_gnulib_enabled_2f551a684aab5400633cbfd56df3bf94; then |
| 32069 | |
| 32070 | |
| 32071 | if testscip-shell system . . test. $gl_cv_func_frexp_no_libm = yes; then |
| 32072 | |
| 32073 | |
| 32074 | |
| 32075 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5 |
| 32076 | printfscip-shell system . . printf. %s "checking whether frexp works... " >&6; } |
| 32077 | if testscip-shell system . . test. ${gl_cv_func_frexp_works+y} |
| 32078 | then : |
| 32079 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32080 | else $as_nop |
| 32081 | |
| 32082 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32083 | then : |
| 32084 | case "$host_os" in |
| 32085 | netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;; |
| 32086 | mingw*) # Guess yes with MSVC, no with mingw. |
| 32087 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32088 | /* end confdefs.h. */ |
| 32089 | |
| 32090 | #ifdef _MSC_VER |
| 32091 | Good |
| 32092 | #endif |
| 32093 | |
| 32094 | _ACEOF |
| 32095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32096 | $EGREP "Good" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 32097 | then : |
| 32098 | gl_cv_func_frexp_works="guessing yes" |
| 32099 | else $as_nop |
| 32100 | gl_cv_func_frexp_works="guessing no" |
| 32101 | fi |
| 32102 | rmscip-shell system . . rm. -rf conftest* |
| 32103 | |
| 32104 | ;; |
| 32105 | *) gl_cv_func_frexp_works="guessing yes" ;; |
| 32106 | esac |
| 32107 | |
| 32108 | else $as_nop |
| 32109 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32110 | /* end confdefs.h. */ |
| 32111 | |
| 32112 | #include <float.h> |
| 32113 | #include <math.h> |
| 32114 | #include <string.h> |
| 32115 | #if HAVE_DECL_ALARM |
| 32116 | # include <signal.h> |
| 32117 | # include <unistd.h> |
| 32118 | #endif |
| 32119 | /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0. |
| 32120 | ICC 10.0 has a bug when optimizing the expression -zero. |
| 32121 | The expression -DBL_MIN * DBL_MIN does not work when cross-compiling |
| 32122 | to PowerPC on Mac OS X 10.5. */ |
| 32123 | #if defined __hpux || defined __sgi || defined __ICC |
| 32124 | static double |
| 32125 | compute_minus_zero (void) |
| 32126 | { |
| 32127 | return -DBL_MIN * DBL_MIN; |
| 32128 | } |
| 32129 | # define minus_zero compute_minus_zero () |
| 32130 | #else |
| 32131 | double minus_zero = -0.0; |
| 32132 | #endif |
| 32133 | int main() |
| 32134 | { |
| 32135 | int result = 0; |
| 32136 | int i; |
| 32137 | volatile double x; |
| 32138 | double zero = 0.0; |
| 32139 | #if HAVE_DECL_ALARM |
| 32140 | /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite |
| 32141 | number. Let the test fail in this case. */ |
| 32142 | signal (SIGALRM, SIG_DFL); |
| 32143 | alarm (5); |
| 32144 | #endif |
| 32145 | /* Test on denormalized numbers. */ |
| 32146 | for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5) |
| 32147 | ; |
| 32148 | if (x > 0.0) |
| 32149 | { |
| 32150 | int exp; |
| 32151 | double y = frexp (x, &exp); |
| 32152 | /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022. |
| 32153 | On NetBSD: y = 0.75. Correct: y = 0.5. */ |
| 32154 | if (y != 0.5) |
| 32155 | result |= 1; |
| 32156 | } |
| 32157 | /* Test on infinite numbers. */ |
| 32158 | x = 1.0 / zero; |
| 32159 | { |
| 32160 | int exp; |
| 32161 | double y = frexp (x, &exp); |
| 32162 | if (y != x) |
| 32163 | result |= 2; |
| 32164 | } |
| 32165 | /* Test on negative zero. */ |
| 32166 | x = minus_zero; |
| 32167 | { |
| 32168 | int exp; |
| 32169 | double y = frexp (x, &exp); |
| 32170 | if (memcmp (&y, &x, sizeof x)) |
| 32171 | result |= 4; |
| 32172 | } |
| 32173 | return result; |
| 32174 | } |
| 32175 | _ACEOF |
| 32176 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 32177 | then : |
| 32178 | gl_cv_func_frexp_works=yes |
| 32179 | else $as_nop |
| 32180 | gl_cv_func_frexp_works=no |
| 32181 | fi |
| 32182 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32183 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32184 | fi |
| 32185 | |
| 32186 | |
| 32187 | fi |
| 32188 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5 |
| 32189 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexp_works" >&6; } |
| 32190 | |
| 32191 | case "$gl_cv_func_frexp_works" in |
| 32192 | *yes) |
| 32193 | |
| 32194 | printfscip-shell system . . printf. "%s\n" "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h |
| 32195 | |
| 32196 | ;; |
| 32197 | esac |
| 32198 | fi |
| 32199 | |
| 32200 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5 |
| 32201 | printfscip-shell system . . printf. %s "checking whether ldexp can be used without linking with libm... " >&6; } |
| 32202 | if testscip-shell system . . test. ${gl_cv_func_ldexp_no_libm+y} |
| 32203 | then : |
| 32204 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32205 | else $as_nop |
| 32206 | |
| 32207 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32208 | /* end confdefs.h. */ |
| 32209 | #include <math.h> |
| 32210 | double x; |
| 32211 | int y; |
| 32212 | int |
| 32213 | main (void) |
| 32214 | { |
| 32215 | return ldexp (x, y) < 1; |
| 32216 | ; |
| 32217 | return 0; |
| 32218 | } |
| 32219 | _ACEOF |
| 32220 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 32221 | then : |
| 32222 | gl_cv_func_ldexp_no_libm=yes |
| 32223 | else $as_nop |
| 32224 | gl_cv_func_ldexp_no_libm=no |
| 32225 | fi |
| 32226 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32227 | conftest$ac_exeext conftest.$ac_ext |
| 32228 | |
| 32229 | fi |
| 32230 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5 |
| 32231 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_ldexp_no_libm" >&6; } |
| 32232 | if testscip-shell system . . test. $gl_cv_func_ldexp_no_libm = yes; then |
| 32233 | |
| 32234 | printfscip-shell system . . printf. "%s\n" "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h |
| 32235 | |
| 32236 | fi |
| 32237 | |
| 32238 | gl_gnulib_enabled_2f551a684aab5400633cbfd56df3bf94=true |
| 32239 | fi |
| 32240 | } |
| 32241 | func_gl_gnulib_m4code_bba639f0cfd658540d716f3a2ba5e68fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_bba639f0cfd658540d716f3a2ba5e68f(). () |
| 32242 | { |
| 32243 | if ! $gl_gnulib_enabled_bba639f0cfd658540d716f3a2ba5e68f; then |
| 32244 | |
| 32245 | |
| 32246 | |
| 32247 | |
| 32248 | |
| 32249 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5 |
| 32250 | printfscip-shell system . . printf. %s "checking whether frexpl() can be used without linking with libm... " >&6; } |
| 32251 | if testscip-shell system . . test. ${gl_cv_func_frexpl_no_libm+y} |
| 32252 | then : |
| 32253 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32254 | else $as_nop |
| 32255 | |
| 32256 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32257 | /* end confdefs.h. */ |
| 32258 | #include <math.h> |
| 32259 | long double x; |
| 32260 | int |
| 32261 | main (void) |
| 32262 | { |
| 32263 | int e; return frexpl (x, &e) > 0; |
| 32264 | ; |
| 32265 | return 0; |
| 32266 | } |
| 32267 | _ACEOF |
| 32268 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 32269 | then : |
| 32270 | gl_cv_func_frexpl_no_libm=yes |
| 32271 | else $as_nop |
| 32272 | gl_cv_func_frexpl_no_libm=no |
| 32273 | fi |
| 32274 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32275 | conftest$ac_exeext conftest.$ac_ext |
| 32276 | |
| 32277 | fi |
| 32278 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5 |
| 32279 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexpl_no_libm" >&6; } |
| 32280 | |
| 32281 | if testscip-shell system . . test. $gl_cv_func_frexpl_no_libm = yes; then |
| 32282 | |
| 32283 | |
| 32284 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5 |
| 32285 | printfscip-shell system . . printf. %s "checking whether frexpl works... " >&6; } |
| 32286 | if testscip-shell system . . test. ${gl_cv_func_frexpl_works+y} |
| 32287 | then : |
| 32288 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32289 | else $as_nop |
| 32290 | |
| 32291 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32292 | then : |
| 32293 | |
| 32294 | case "$host_os" in |
| 32295 | aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*) |
| 32296 | gl_cv_func_frexpl_works="guessing no";; |
| 32297 | *) gl_cv_func_frexpl_works="guessing yes";; |
| 32298 | esac |
| 32299 | |
| 32300 | else $as_nop |
| 32301 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32302 | /* end confdefs.h. */ |
| 32303 | |
| 32304 | #include <float.h> |
| 32305 | #include <math.h> |
| 32306 | /* Override the values of <float.h>, like done in float.in.h. */ |
| 32307 | #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__) |
| 32308 | # undef LDBL_MIN_EXP |
| 32309 | # define LDBL_MIN_EXP (-16381) |
| 32310 | #endif |
| 32311 | #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) |
| 32312 | # undef LDBL_MIN_EXP |
| 32313 | # define LDBL_MIN_EXP (-16381) |
| 32314 | #endif |
| 32315 | #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__ |
| 32316 | # undef LDBL_MIN_EXP |
| 32317 | # define LDBL_MIN_EXP DBL_MIN_EXP |
| 32318 | #endif |
| 32319 | #if defined __sgi && (LDBL_MANT_DIG >= 106) |
| 32320 | # if defined __GNUC__ |
| 32321 | # undef LDBL_MIN_EXP |
| 32322 | # define LDBL_MIN_EXP DBL_MIN_EXP |
| 32323 | # endif |
| 32324 | #endif |
| 32325 | extern |
| 32326 | #ifdef __cplusplus |
| 32327 | "C" |
| 32328 | #endif |
| 32329 | long double frexpl (long double, int *); |
| 32330 | long double zero = 0.0L; |
| 32331 | int main() |
| 32332 | { |
| 32333 | int result = 0; |
| 32334 | volatile long double x; |
| 32335 | /* Test on finite numbers that fails on AIX 5.1. */ |
| 32336 | x = 16.0L; |
| 32337 | { |
| 32338 | int exp = -9999; |
| 32339 | frexpl (x, &exp); |
| 32340 | if (exp != 5) |
| 32341 | result |= 1; |
| 32342 | } |
| 32343 | /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl |
| 32344 | function returns an invalid (incorrectly normalized) value: it returns |
| 32345 | y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 } |
| 32346 | but the correct result is |
| 32347 | 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */ |
| 32348 | x = 1.01L; |
| 32349 | { |
| 32350 | int exp = -9999; |
| 32351 | long double y = frexpl (x, &exp); |
| 32352 | if (!(exp == 1 && y == 0.505L)) |
| 32353 | result |= 2; |
| 32354 | } |
| 32355 | /* Test on large finite numbers. This fails on BeOS at i = 16322, while |
| 32356 | LDBL_MAX_EXP = 16384. |
| 32357 | In the loop end test, we test x against Infinity, rather than comparing |
| 32358 | i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */ |
| 32359 | { |
| 32360 | int i; |
| 32361 | for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L) |
| 32362 | { |
| 32363 | int exp = -9999; |
| 32364 | frexpl (x, &exp); |
| 32365 | if (exp != i) |
| 32366 | { |
| 32367 | result |= 4; |
| 32368 | break; |
| 32369 | } |
| 32370 | } |
| 32371 | } |
| 32372 | /* Test on denormalized numbers. */ |
| 32373 | { |
| 32374 | int i; |
| 32375 | for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L) |
| 32376 | ; |
| 32377 | if (x > 0.0L) |
| 32378 | { |
| 32379 | int exp; |
| 32380 | long double y = frexpl (x, &exp); |
| 32381 | /* On machines with IEEE854 arithmetic: x = 1.68105e-4932, |
| 32382 | exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */ |
| 32383 | if (exp != LDBL_MIN_EXP - 1) |
| 32384 | result |= 8; |
| 32385 | } |
| 32386 | } |
| 32387 | /* Test on infinite numbers. */ |
| 32388 | /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */ |
| 32389 | x = 1.0L / zero; |
| 32390 | { |
| 32391 | int exp; |
| 32392 | long double y = frexpl (x, &exp); |
| 32393 | if (y != x) |
| 32394 | result |= 16; |
| 32395 | } |
| 32396 | return result; |
| 32397 | } |
| 32398 | _ACEOF |
| 32399 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 32400 | then : |
| 32401 | gl_cv_func_frexpl_works=yes |
| 32402 | else $as_nop |
| 32403 | gl_cv_func_frexpl_works=no |
| 32404 | fi |
| 32405 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32406 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32407 | fi |
| 32408 | |
| 32409 | |
| 32410 | fi |
| 32411 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5 |
| 32412 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_frexpl_works" >&6; } |
| 32413 | |
| 32414 | case "$gl_cv_func_frexpl_works" in |
| 32415 | *yes) gl_func_frexpl_no_libm=yes ;; |
| 32416 | *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;; |
| 32417 | esac |
| 32418 | else |
| 32419 | gl_func_frexpl_no_libm=no |
| 32420 | REPLACE_FREXPL=1 |
| 32421 | fi |
| 32422 | if testscip-shell system . . test. $gl_func_frexpl_no_libm = yes; then |
| 32423 | |
| 32424 | printfscip-shell system . . printf. "%s\n" "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h |
| 32425 | |
| 32426 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h> |
| 32427 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 32428 | if testscip-shell system . . test. "x$ac_cv_have_decl_frexpl" = xyes |
| 32429 | then : |
| 32430 | |
| 32431 | else $as_nop |
| 32432 | HAVE_DECL_FREXPL=0 |
| 32433 | fi |
| 32434 | fi |
| 32435 | |
| 32436 | |
| 32437 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5 |
| 32438 | printfscip-shell system . . printf. %s "checking whether ldexpl() can be used without linking with libm... " >&6; } |
| 32439 | if testscip-shell system . . test. ${gl_cv_func_ldexpl_no_libm+y} |
| 32440 | then : |
| 32441 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32442 | else $as_nop |
| 32443 | |
| 32444 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32445 | /* end confdefs.h. */ |
| 32446 | #include <math.h> |
| 32447 | long double x; |
| 32448 | int |
| 32449 | main (void) |
| 32450 | { |
| 32451 | return ldexpl (x, -1) > 0; |
| 32452 | ; |
| 32453 | return 0; |
| 32454 | } |
| 32455 | _ACEOF |
| 32456 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 32457 | then : |
| 32458 | gl_cv_func_ldexpl_no_libm=yes |
| 32459 | else $as_nop |
| 32460 | gl_cv_func_ldexpl_no_libm=no |
| 32461 | fi |
| 32462 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32463 | conftest$ac_exeext conftest.$ac_ext |
| 32464 | |
| 32465 | fi |
| 32466 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5 |
| 32467 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_ldexpl_no_libm" >&6; } |
| 32468 | |
| 32469 | if testscip-shell system . . test. $gl_cv_func_ldexpl_no_libm = yes; then |
| 32470 | |
| 32471 | |
| 32472 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5 |
| 32473 | printfscip-shell system . . printf. %s "checking whether ldexpl works... " >&6; } |
| 32474 | if testscip-shell system . . test. ${gl_cv_func_ldexpl_works+y} |
| 32475 | then : |
| 32476 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32477 | else $as_nop |
| 32478 | |
| 32479 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32480 | then : |
| 32481 | |
| 32482 | case "$host_os" in |
| 32483 | aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;; |
| 32484 | # Guess yes on native Windows. |
| 32485 | mingw*) gl_cv_func_ldexpl_works="guessing yes" ;; |
| 32486 | *) gl_cv_func_ldexpl_works="guessing yes" ;; |
| 32487 | esac |
| 32488 | |
| 32489 | else $as_nop |
| 32490 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32491 | /* end confdefs.h. */ |
| 32492 | |
| 32493 | #include <math.h> |
| 32494 | extern |
| 32495 | #ifdef __cplusplus |
| 32496 | "C" |
| 32497 | #endif |
| 32498 | long double ldexpl (long double, int); |
| 32499 | int main() |
| 32500 | { |
| 32501 | int result = 0; |
| 32502 | { |
| 32503 | volatile long double x = 1.0; |
| 32504 | volatile long double y = ldexpl (x, -1); |
| 32505 | if (y != 0.5L) |
| 32506 | result |= 1; |
| 32507 | } |
| 32508 | { |
| 32509 | volatile long double x = 1.73205L; |
| 32510 | volatile long double y = ldexpl (x, 0); |
| 32511 | if (y != x) |
| 32512 | result |= 2; |
| 32513 | } |
| 32514 | return result; |
| 32515 | } |
| 32516 | _ACEOF |
| 32517 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 32518 | then : |
| 32519 | gl_cv_func_ldexpl_works=yes |
| 32520 | else $as_nop |
| 32521 | gl_cv_func_ldexpl_works=no |
| 32522 | fi |
| 32523 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32524 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32525 | fi |
| 32526 | |
| 32527 | |
| 32528 | fi |
| 32529 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5 |
| 32530 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_ldexpl_works" >&6; } |
| 32531 | |
| 32532 | case "$gl_cv_func_ldexpl_works" in |
| 32533 | *yes) |
| 32534 | |
| 32535 | printfscip-shell system . . printf. "%s\n" "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h |
| 32536 | |
| 32537 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h> |
| 32538 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 32539 | if testscip-shell system . . test. "x$ac_cv_have_decl_ldexpl" = xyes |
| 32540 | then : |
| 32541 | |
| 32542 | else $as_nop |
| 32543 | HAVE_DECL_LDEXPL=0 |
| 32544 | fi |
| 32545 | ;; |
| 32546 | esac |
| 32547 | fi |
| 32548 | |
| 32549 | gl_gnulib_enabled_bba639f0cfd658540d716f3a2ba5e68f=true |
| 32550 | if testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then |
| 32551 | func_gl_gnulib_m4code_fpucwscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpucw(). |
| 32552 | fi |
| 32553 | if testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0; then |
| 32554 | func_gl_gnulib_m4code_mathscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_math(). |
| 32555 | fi |
| 32556 | if testscip-shell system . . test. $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then |
| 32557 | func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94(). |
| 32558 | fi |
| 32559 | fi |
| 32560 | } |
| 32561 | func_gl_gnulib_m4code_raisescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_raise(). () |
| 32562 | { |
| 32563 | if ! $gl_gnulib_enabled_raise; then |
| 32564 | |
| 32565 | |
| 32566 | |
| 32567 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "raise" "ac_cv_func_raise" |
| 32568 | if testscip-shell system . . test. "x$ac_cv_func_raise" = xyes |
| 32569 | then : |
| 32570 | printfscip-shell system . . printf. "%s\n" "#define HAVE_RAISE 1" >>confdefs.h |
| 32571 | |
| 32572 | fi |
| 32573 | |
| 32574 | if testscip-shell system . . test. $ac_cv_func_raise = no; then |
| 32575 | HAVE_RAISE=0 |
| 32576 | else |
| 32577 | |
| 32578 | |
| 32579 | if testscip-shell system . . test. $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then |
| 32580 | REPLACE_RAISE=1 |
| 32581 | fi |
| 32582 | |
| 32583 | |
| 32584 | |
| 32585 | |
| 32586 | |
| 32587 | HAVE_POSIX_SIGNALBLOCKING=0 |
| 32588 | if testscip-shell system . . test. "$gl_cv_type_sigset_t" = yes; then |
| 32589 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 32590 | if testscip-shell system . . test. "x$ac_cv_func_sigprocmask" = xyes |
| 32591 | then : |
| 32592 | HAVE_POSIX_SIGNALBLOCKING=1 |
| 32593 | fi |
| 32594 | |
| 32595 | fi |
| 32596 | |
| 32597 | if testscip-shell system . . test. $HAVE_POSIX_SIGNALBLOCKING = 0; then |
| 32598 | : |
| 32599 | fi |
| 32600 | |
| 32601 | fi |
| 32602 | |
| 32603 | |
| 32604 | if testscip-shell system . . test. $HAVE_RAISE = 0 || testscip-shell system . . test. $REPLACE_RAISE = 1; then |
| 32605 | GL_COND_OBJ_RAISE_TRUE= |
| 32606 | GL_COND_OBJ_RAISE_FALSE='#' |
| 32607 | else |
| 32608 | GL_COND_OBJ_RAISE_TRUE='#' |
| 32609 | GL_COND_OBJ_RAISE_FALSE= |
| 32610 | fi |
| 32611 | : |
| 32612 | if testscip-shell system . . test. -z "${GL_COND_OBJ_RAISE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_RAISE_FALSE}"; then |
| 32613 | GL_COND_OBJ_RAISE_TRUE='#' |
| 32614 | GL_COND_OBJ_RAISE_FALSE='#' |
| 32615 | fi |
| 32616 | |
| 32617 | if testscip-shell system . . test. -z "$GL_COND_OBJ_RAISE_TRUE"; then : |
| 32618 | |
| 32619 | : |
| 32620 | |
| 32621 | fi |
| 32622 | |
| 32623 | |
| 32624 | |
| 32625 | |
| 32626 | |
| 32627 | |
| 32628 | |
| 32629 | |
| 32630 | |
| 32631 | GL_GNULIB_RAISE=1 |
| 32632 | |
| 32633 | |
| 32634 | |
| 32635 | |
| 32636 | |
| 32637 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h |
| 32638 | |
| 32639 | |
| 32640 | |
| 32641 | gl_gnulib_enabled_raise=true |
| 32642 | fi |
| 32643 | } |
| 32644 | func_gl_gnulib_m4code_rewinddirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_rewinddir(). () |
| 32645 | { |
| 32646 | if ! $gl_gnulib_enabled_rewinddir; then |
| 32647 | |
| 32648 | |
| 32649 | |
| 32650 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "rewinddir" "ac_cv_func_rewinddir" |
| 32651 | if testscip-shell system . . test. "x$ac_cv_func_rewinddir" = xyes |
| 32652 | then : |
| 32653 | printfscip-shell system . . printf. "%s\n" "#define HAVE_REWINDDIR 1" >>confdefs.h |
| 32654 | |
| 32655 | fi |
| 32656 | |
| 32657 | if testscip-shell system . . test. $ac_cv_func_rewinddir = no; then |
| 32658 | HAVE_REWINDDIR=0 |
| 32659 | fi |
| 32660 | |
| 32661 | |
| 32662 | if testscip-shell system . . test. $HAVE_REWINDDIR = 0; then |
| 32663 | GL_COND_OBJ_REWINDDIR_TRUE= |
| 32664 | GL_COND_OBJ_REWINDDIR_FALSE='#' |
| 32665 | else |
| 32666 | GL_COND_OBJ_REWINDDIR_TRUE='#' |
| 32667 | GL_COND_OBJ_REWINDDIR_FALSE= |
| 32668 | fi |
| 32669 | : |
| 32670 | if testscip-shell system . . test. -z "${GL_COND_OBJ_REWINDDIR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_REWINDDIR_FALSE}"; then |
| 32671 | GL_COND_OBJ_REWINDDIR_TRUE='#' |
| 32672 | GL_COND_OBJ_REWINDDIR_FALSE='#' |
| 32673 | fi |
| 32674 | |
| 32675 | |
| 32676 | |
| 32677 | |
| 32678 | |
| 32679 | |
| 32680 | |
| 32681 | |
| 32682 | |
| 32683 | |
| 32684 | GL_GNULIB_REWINDDIR=1 |
| 32685 | |
| 32686 | |
| 32687 | |
| 32688 | |
| 32689 | |
| 32690 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h |
| 32691 | |
| 32692 | |
| 32693 | |
| 32694 | gl_gnulib_enabled_rewinddir=true |
| 32695 | fi |
| 32696 | } |
| 32697 | func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_d4850532688ba16d685f036076611f21(). () |
| 32698 | { |
| 32699 | if ! $gl_gnulib_enabled_d4850532688ba16d685f036076611f21; then |
| 32700 | |
| 32701 | |
| 32702 | |
| 32703 | gl_gnulib_enabled_d4850532688ba16d685f036076611f21=true |
| 32704 | func_gl_gnulib_m4code_8198daae261b932d64a998f8586f5005scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_8198daae261b932d64a998f8586f5005(). |
| 32705 | func_gl_gnulib_m4code_fchdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fchdir(). |
| 32706 | func_gl_gnulib_m4code_64142d6558df0059920a9be1d634dadfscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_64142d6558df0059920a9be1d634dadf(). |
| 32707 | func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_3d094ef542bfdd238a5194e172bfe5f6(). |
| 32708 | fi |
| 32709 | } |
| 32710 | func_gl_gnulib_m4code_signbitscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_signbit(). () |
| 32711 | { |
| 32712 | if ! $gl_gnulib_enabled_signbit; then |
| 32713 | |
| 32714 | |
| 32715 | |
| 32716 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5 |
| 32717 | printfscip-shell system . . printf. %s "checking for signbit macro... " >&6; } |
| 32718 | if testscip-shell system . . test. ${gl_cv_func_signbit+y} |
| 32719 | then : |
| 32720 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32721 | else $as_nop |
| 32722 | |
| 32723 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32724 | then : |
| 32725 | case "$host_os" in |
| 32726 | # Guess yes on glibc systems. |
| 32727 | *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;; |
| 32728 | # Guess yes on musl systems. |
| 32729 | *-musl*) gl_cv_func_signbit="guessing yes" ;; |
| 32730 | # Guess yes on native Windows. |
| 32731 | mingw*) gl_cv_func_signbit="guessing yes" ;; |
| 32732 | # If we don't know, obey --enable-cross-guesses. |
| 32733 | *) gl_cv_func_signbit="$gl_cross_guess_normal" ;; |
| 32734 | esac |
| 32735 | |
| 32736 | else $as_nop |
| 32737 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32738 | /* end confdefs.h. */ |
| 32739 | |
| 32740 | #include <math.h> |
| 32741 | /* If signbit is defined as a function, don't use it, since calling it for |
| 32742 | 'float' or 'long double' arguments would involve conversions. |
| 32743 | If signbit is not declared at all but exists as a library function, don't |
| 32744 | use it, since the prototype may not match. |
| 32745 | If signbit is not declared at all but exists as a compiler built-in, don't |
| 32746 | use it, since it's preferable to use __builtin_signbit* (no warnings, |
| 32747 | no conversions). */ |
| 32748 | #ifndef signbit |
| 32749 | # error "signbit should be a macro" |
| 32750 | #endif |
| 32751 | #include <string.h> |
| 32752 | |
| 32753 | /* Global variables. |
| 32754 | Needed because GCC 4 constant-folds __builtin_signbitl (literal) |
| 32755 | but cannot constant-fold __builtin_signbitl (variable). */ |
| 32756 | float vf; |
| 32757 | double vd; |
| 32758 | long double vl; |
| 32759 | int main () |
| 32760 | { |
| 32761 | /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0. |
| 32762 | So we use -p0f and -p0d instead. */ |
| 32763 | float p0f = 0.0f; |
| 32764 | float m0f = -p0f; |
| 32765 | double p0d = 0.0; |
| 32766 | double m0d = -p0d; |
| 32767 | /* On HP-UX 10.20, negating 0.0L does not yield -0.0L. |
| 32768 | So we use another constant expression instead. |
| 32769 | But that expression does not work on other platforms, such as when |
| 32770 | cross-compiling to PowerPC on Mac OS X 10.5. */ |
| 32771 | long double p0l = 0.0L; |
| 32772 | #if defined __hpux || defined __sgi |
| 32773 | long double m0l = -LDBL_MIN * LDBL_MIN; |
| 32774 | #else |
| 32775 | long double m0l = -p0l; |
| 32776 | #endif |
| 32777 | int result = 0; |
| 32778 | if (signbit (vf)) /* link check */ |
| 32779 | vf++; |
| 32780 | { |
| 32781 | float plus_inf = 1.0f / p0f; |
| 32782 | float minus_inf = -1.0f / p0f; |
| 32783 | if (!(!signbit (255.0f) |
| 32784 | && signbit (-255.0f) |
| 32785 | && !signbit (p0f) |
| 32786 | && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f)) |
| 32787 | && !signbit (plus_inf) |
| 32788 | && signbit (minus_inf))) |
| 32789 | result |= 1; |
| 32790 | } |
| 32791 | if (signbit (vd)) /* link check */ |
| 32792 | vd++; |
| 32793 | { |
| 32794 | double plus_inf = 1.0 / p0d; |
| 32795 | double minus_inf = -1.0 / p0d; |
| 32796 | if (!(!signbit (255.0) |
| 32797 | && signbit (-255.0) |
| 32798 | && !signbit (p0d) |
| 32799 | && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d)) |
| 32800 | && !signbit (plus_inf) |
| 32801 | && signbit (minus_inf))) |
| 32802 | result |= 2; |
| 32803 | } |
| 32804 | if (signbit (vl)) /* link check */ |
| 32805 | vl++; |
| 32806 | { |
| 32807 | long double plus_inf = 1.0L / p0l; |
| 32808 | long double minus_inf = -1.0L / p0l; |
| 32809 | if (signbit (255.0L)) |
| 32810 | result |= 4; |
| 32811 | if (!signbit (-255.0L)) |
| 32812 | result |= 4; |
| 32813 | if (signbit (p0l)) |
| 32814 | result |= 8; |
| 32815 | if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))) |
| 32816 | result |= 16; |
| 32817 | if (signbit (plus_inf)) |
| 32818 | result |= 32; |
| 32819 | if (!signbit (minus_inf)) |
| 32820 | result |= 64; |
| 32821 | } |
| 32822 | return result; |
| 32823 | } |
| 32824 | |
| 32825 | |
| 32826 | _ACEOF |
| 32827 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 32828 | then : |
| 32829 | gl_cv_func_signbit=yes |
| 32830 | else $as_nop |
| 32831 | gl_cv_func_signbit=no |
| 32832 | fi |
| 32833 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32834 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32835 | fi |
| 32836 | |
| 32837 | |
| 32838 | fi |
| 32839 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5 |
| 32840 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_signbit" >&6; } |
| 32841 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5 |
| 32842 | printfscip-shell system . . printf. %s "checking for signbit compiler built-ins... " >&6; } |
| 32843 | if testscip-shell system . . test. ${gl_cv_func_signbit_builtins+y} |
| 32844 | then : |
| 32845 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32846 | else $as_nop |
| 32847 | |
| 32848 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32849 | then : |
| 32850 | case "$host_os" in |
| 32851 | # Guess yes on glibc systems. |
| 32852 | *-gnu* | gnu*) gl_cv_func_signbit_builtins="guessing yes" ;; |
| 32853 | # Guess yes on musl systems. |
| 32854 | *-musl*) gl_cv_func_signbit_builtins="guessing yes" ;; |
| 32855 | # Guess yes on mingw, no on MSVC. |
| 32856 | mingw*) if testscip-shell system . . test. -n "$GCC"; then |
| 32857 | gl_cv_func_signbit_builtins="guessing yes" |
| 32858 | else |
| 32859 | gl_cv_func_signbit_builtins="guessing no" |
| 32860 | fi |
| 32861 | ;; |
| 32862 | # If we don't know, obey --enable-cross-guesses. |
| 32863 | *) gl_cv_func_signbit_builtins="$gl_cross_guess_normal" ;; |
| 32864 | esac |
| 32865 | |
| 32866 | else $as_nop |
| 32867 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32868 | /* end confdefs.h. */ |
| 32869 | |
| 32870 | #if (__GNUC__ >= 4) || (__clang_major__ >= 4) |
| 32871 | # define signbit(x) \ |
| 32872 | (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \ |
| 32873 | sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \ |
| 32874 | __builtin_signbitf (x)) |
| 32875 | #else |
| 32876 | # error "signbit should be three compiler built-ins" |
| 32877 | #endif |
| 32878 | #include <string.h> |
| 32879 | |
| 32880 | /* Global variables. |
| 32881 | Needed because GCC 4 constant-folds __builtin_signbitl (literal) |
| 32882 | but cannot constant-fold __builtin_signbitl (variable). */ |
| 32883 | float vf; |
| 32884 | double vd; |
| 32885 | long double vl; |
| 32886 | int main () |
| 32887 | { |
| 32888 | /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0. |
| 32889 | So we use -p0f and -p0d instead. */ |
| 32890 | float p0f = 0.0f; |
| 32891 | float m0f = -p0f; |
| 32892 | double p0d = 0.0; |
| 32893 | double m0d = -p0d; |
| 32894 | /* On HP-UX 10.20, negating 0.0L does not yield -0.0L. |
| 32895 | So we use another constant expression instead. |
| 32896 | But that expression does not work on other platforms, such as when |
| 32897 | cross-compiling to PowerPC on Mac OS X 10.5. */ |
| 32898 | long double p0l = 0.0L; |
| 32899 | #if defined __hpux || defined __sgi |
| 32900 | long double m0l = -LDBL_MIN * LDBL_MIN; |
| 32901 | #else |
| 32902 | long double m0l = -p0l; |
| 32903 | #endif |
| 32904 | int result = 0; |
| 32905 | if (signbit (vf)) /* link check */ |
| 32906 | vf++; |
| 32907 | { |
| 32908 | float plus_inf = 1.0f / p0f; |
| 32909 | float minus_inf = -1.0f / p0f; |
| 32910 | if (!(!signbit (255.0f) |
| 32911 | && signbit (-255.0f) |
| 32912 | && !signbit (p0f) |
| 32913 | && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f)) |
| 32914 | && !signbit (plus_inf) |
| 32915 | && signbit (minus_inf))) |
| 32916 | result |= 1; |
| 32917 | } |
| 32918 | if (signbit (vd)) /* link check */ |
| 32919 | vd++; |
| 32920 | { |
| 32921 | double plus_inf = 1.0 / p0d; |
| 32922 | double minus_inf = -1.0 / p0d; |
| 32923 | if (!(!signbit (255.0) |
| 32924 | && signbit (-255.0) |
| 32925 | && !signbit (p0d) |
| 32926 | && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d)) |
| 32927 | && !signbit (plus_inf) |
| 32928 | && signbit (minus_inf))) |
| 32929 | result |= 2; |
| 32930 | } |
| 32931 | if (signbit (vl)) /* link check */ |
| 32932 | vl++; |
| 32933 | { |
| 32934 | long double plus_inf = 1.0L / p0l; |
| 32935 | long double minus_inf = -1.0L / p0l; |
| 32936 | if (signbit (255.0L)) |
| 32937 | result |= 4; |
| 32938 | if (!signbit (-255.0L)) |
| 32939 | result |= 4; |
| 32940 | if (signbit (p0l)) |
| 32941 | result |= 8; |
| 32942 | if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))) |
| 32943 | result |= 16; |
| 32944 | if (signbit (plus_inf)) |
| 32945 | result |= 32; |
| 32946 | if (!signbit (minus_inf)) |
| 32947 | result |= 64; |
| 32948 | } |
| 32949 | return result; |
| 32950 | } |
| 32951 | |
| 32952 | |
| 32953 | _ACEOF |
| 32954 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 32955 | then : |
| 32956 | gl_cv_func_signbit_builtins=yes |
| 32957 | else $as_nop |
| 32958 | gl_cv_func_signbit_builtins=no |
| 32959 | fi |
| 32960 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32961 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32962 | fi |
| 32963 | |
| 32964 | |
| 32965 | fi |
| 32966 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_builtins" >&5 |
| 32967 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_signbit_builtins" >&6; } |
| 32968 | case "$gl_cv_func_signbit_builtins" in |
| 32969 | *yes) |
| 32970 | REPLACE_SIGNBIT_USING_BUILTINS=1 |
| 32971 | ;; |
| 32972 | *) |
| 32973 | case "$gl_cv_func_signbit" in |
| 32974 | *yes) ;; |
| 32975 | *) |
| 32976 | REPLACE_SIGNBIT=1 |
| 32977 | ;; |
| 32978 | esac |
| 32979 | ;; |
| 32980 | esac |
| 32981 | case "$host_os" in |
| 32982 | solaris*) |
| 32983 | REPLACE_SIGNBIT=1 |
| 32984 | ;; |
| 32985 | esac |
| 32986 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 32987 | |
| 32988 | |
| 32989 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5 |
| 32990 | printfscip-shell system . . printf. %s "checking where to find the sign bit in a 'float'... " >&6; } |
| 32991 | if testscip-shell system . . test. ${gl_cv_cc_float_signbit+y} |
| 32992 | then : |
| 32993 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 32994 | else $as_nop |
| 32995 | |
| 32996 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 32997 | then : |
| 32998 | |
| 32999 | gl_cv_cc_float_signbit="unknown" |
| 33000 | |
| 33001 | else $as_nop |
| 33002 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33003 | /* end confdefs.h. */ |
| 33004 | |
| 33005 | #include <stddef.h> |
| 33006 | #include <stdio.h> |
| 33007 | #define NWORDS \ |
| 33008 | ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 33009 | typedef union { float value; unsigned int word[NWORDS]; } |
| 33010 | memory_float; |
| 33011 | static memory_float plus = { 1.0f }; |
| 33012 | static memory_float minus = { -1.0f }; |
| 33013 | int main () |
| 33014 | { |
| 33015 | size_t j, k, i; |
| 33016 | unsigned int m; |
| 33017 | FILE *fp = fopen ("conftest.out", "w"); |
| 33018 | if (fp == NULL) |
| 33019 | return 1; |
| 33020 | /* Find the different bit. */ |
| 33021 | k = 0; m = 0; |
| 33022 | for (j = 0; j < NWORDS; j++) |
| 33023 | { |
| 33024 | unsigned int x = plus.word[j] ^ minus.word[j]; |
| 33025 | if ((x & (x - 1)) || (x && m)) |
| 33026 | { |
| 33027 | /* More than one bit difference. */ |
| 33028 | fprintf (fp, "unknown"); |
| 33029 | fclose (fp); |
| 33030 | return 2; |
| 33031 | } |
| 33032 | if (x) |
| 33033 | { |
| 33034 | k = j; |
| 33035 | m = x; |
| 33036 | } |
| 33037 | } |
| 33038 | if (m == 0) |
| 33039 | { |
| 33040 | /* No difference. */ |
| 33041 | fprintf (fp, "unknown"); |
| 33042 | fclose (fp); |
| 33043 | return 3; |
| 33044 | } |
| 33045 | /* Now m = plus.word[k] ^ ~minus.word[k]. */ |
| 33046 | if (plus.word[k] & ~minus.word[k]) |
| 33047 | { |
| 33048 | /* Oh? The sign bit is set in the positive and cleared in the negative |
| 33049 | numbers? */ |
| 33050 | fprintf (fp, "unknown"); |
| 33051 | fclose (fp); |
| 33052 | return 4; |
| 33053 | } |
| 33054 | for (i = 0; ; i++) |
| 33055 | if ((m >> i) & 1) |
| 33056 | break; |
| 33057 | fprintf (fp, "word %d bit %d", (int) k, (int) i); |
| 33058 | if (fclose (fp) != 0) |
| 33059 | return 5; |
| 33060 | return 0; |
| 33061 | } |
| 33062 | |
| 33063 | _ACEOF |
| 33064 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 33065 | then : |
| 33066 | gl_cv_cc_float_signbit=`catscip-shell system . . cat. conftest.out` |
| 33067 | else $as_nop |
| 33068 | gl_cv_cc_float_signbit="unknown" |
| 33069 | fi |
| 33070 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 33071 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33072 | fi |
| 33073 | |
| 33074 | rmscip-shell system . . rm. -f conftest.out |
| 33075 | |
| 33076 | fi |
| 33077 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5 |
| 33078 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_float_signbit" >&6; } |
| 33079 | case "$gl_cv_cc_float_signbit" in |
| 33080 | word*bit*) |
| 33081 | word=`echoscip-shell system . . echo. "$gl_cv_cc_float_signbit" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 33082 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_float_signbit" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 33083 | |
| 33084 | printfscip-shell system . . printf. "%s\n" "#define FLT_SIGNBIT_WORD $word" >>confdefs.h |
| 33085 | |
| 33086 | |
| 33087 | printfscip-shell system . . printf. "%s\n" "#define FLT_SIGNBIT_BIT $bit" >>confdefs.h |
| 33088 | |
| 33089 | ;; |
| 33090 | esac |
| 33091 | |
| 33092 | |
| 33093 | |
| 33094 | |
| 33095 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5 |
| 33096 | printfscip-shell system . . printf. %s "checking where to find the sign bit in a 'double'... " >&6; } |
| 33097 | if testscip-shell system . . test. ${gl_cv_cc_double_signbit+y} |
| 33098 | then : |
| 33099 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33100 | else $as_nop |
| 33101 | |
| 33102 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 33103 | then : |
| 33104 | |
| 33105 | gl_cv_cc_double_signbit="unknown" |
| 33106 | |
| 33107 | else $as_nop |
| 33108 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33109 | /* end confdefs.h. */ |
| 33110 | |
| 33111 | #include <stddef.h> |
| 33112 | #include <stdio.h> |
| 33113 | #define NWORDS \ |
| 33114 | ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 33115 | typedef union { double value; unsigned int word[NWORDS]; } |
| 33116 | memory_float; |
| 33117 | static memory_float plus = { 1.0 }; |
| 33118 | static memory_float minus = { -1.0 }; |
| 33119 | int main () |
| 33120 | { |
| 33121 | size_t j, k, i; |
| 33122 | unsigned int m; |
| 33123 | FILE *fp = fopen ("conftest.out", "w"); |
| 33124 | if (fp == NULL) |
| 33125 | return 1; |
| 33126 | /* Find the different bit. */ |
| 33127 | k = 0; m = 0; |
| 33128 | for (j = 0; j < NWORDS; j++) |
| 33129 | { |
| 33130 | unsigned int x = plus.word[j] ^ minus.word[j]; |
| 33131 | if ((x & (x - 1)) || (x && m)) |
| 33132 | { |
| 33133 | /* More than one bit difference. */ |
| 33134 | fprintf (fp, "unknown"); |
| 33135 | fclose (fp); |
| 33136 | return 2; |
| 33137 | } |
| 33138 | if (x) |
| 33139 | { |
| 33140 | k = j; |
| 33141 | m = x; |
| 33142 | } |
| 33143 | } |
| 33144 | if (m == 0) |
| 33145 | { |
| 33146 | /* No difference. */ |
| 33147 | fprintf (fp, "unknown"); |
| 33148 | fclose (fp); |
| 33149 | return 3; |
| 33150 | } |
| 33151 | /* Now m = plus.word[k] ^ ~minus.word[k]. */ |
| 33152 | if (plus.word[k] & ~minus.word[k]) |
| 33153 | { |
| 33154 | /* Oh? The sign bit is set in the positive and cleared in the negative |
| 33155 | numbers? */ |
| 33156 | fprintf (fp, "unknown"); |
| 33157 | fclose (fp); |
| 33158 | return 4; |
| 33159 | } |
| 33160 | for (i = 0; ; i++) |
| 33161 | if ((m >> i) & 1) |
| 33162 | break; |
| 33163 | fprintf (fp, "word %d bit %d", (int) k, (int) i); |
| 33164 | if (fclose (fp) != 0) |
| 33165 | return 5; |
| 33166 | return 0; |
| 33167 | } |
| 33168 | |
| 33169 | _ACEOF |
| 33170 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 33171 | then : |
| 33172 | gl_cv_cc_double_signbit=`catscip-shell system . . cat. conftest.out` |
| 33173 | else $as_nop |
| 33174 | gl_cv_cc_double_signbit="unknown" |
| 33175 | fi |
| 33176 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 33177 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33178 | fi |
| 33179 | |
| 33180 | rmscip-shell system . . rm. -f conftest.out |
| 33181 | |
| 33182 | fi |
| 33183 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5 |
| 33184 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_double_signbit" >&6; } |
| 33185 | case "$gl_cv_cc_double_signbit" in |
| 33186 | word*bit*) |
| 33187 | word=`echoscip-shell system . . echo. "$gl_cv_cc_double_signbit" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 33188 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_double_signbit" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 33189 | |
| 33190 | printfscip-shell system . . printf. "%s\n" "#define DBL_SIGNBIT_WORD $word" >>confdefs.h |
| 33191 | |
| 33192 | |
| 33193 | printfscip-shell system . . printf. "%s\n" "#define DBL_SIGNBIT_BIT $bit" >>confdefs.h |
| 33194 | |
| 33195 | ;; |
| 33196 | esac |
| 33197 | |
| 33198 | |
| 33199 | |
| 33200 | |
| 33201 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5 |
| 33202 | printfscip-shell system . . printf. %s "checking where to find the sign bit in a 'long double'... " >&6; } |
| 33203 | if testscip-shell system . . test. ${gl_cv_cc_long_double_signbit+y} |
| 33204 | then : |
| 33205 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33206 | else $as_nop |
| 33207 | |
| 33208 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 33209 | then : |
| 33210 | |
| 33211 | gl_cv_cc_long_double_signbit="unknown" |
| 33212 | |
| 33213 | else $as_nop |
| 33214 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33215 | /* end confdefs.h. */ |
| 33216 | |
| 33217 | #include <stddef.h> |
| 33218 | #include <stdio.h> |
| 33219 | #define NWORDS \ |
| 33220 | ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) |
| 33221 | typedef union { long double value; unsigned int word[NWORDS]; } |
| 33222 | memory_float; |
| 33223 | static memory_float plus = { 1.0L }; |
| 33224 | static memory_float minus = { -1.0L }; |
| 33225 | int main () |
| 33226 | { |
| 33227 | size_t j, k, i; |
| 33228 | unsigned int m; |
| 33229 | FILE *fp = fopen ("conftest.out", "w"); |
| 33230 | if (fp == NULL) |
| 33231 | return 1; |
| 33232 | /* Find the different bit. */ |
| 33233 | k = 0; m = 0; |
| 33234 | for (j = 0; j < NWORDS; j++) |
| 33235 | { |
| 33236 | unsigned int x = plus.word[j] ^ minus.word[j]; |
| 33237 | if ((x & (x - 1)) || (x && m)) |
| 33238 | { |
| 33239 | /* More than one bit difference. */ |
| 33240 | fprintf (fp, "unknown"); |
| 33241 | fclose (fp); |
| 33242 | return 2; |
| 33243 | } |
| 33244 | if (x) |
| 33245 | { |
| 33246 | k = j; |
| 33247 | m = x; |
| 33248 | } |
| 33249 | } |
| 33250 | if (m == 0) |
| 33251 | { |
| 33252 | /* No difference. */ |
| 33253 | fprintf (fp, "unknown"); |
| 33254 | fclose (fp); |
| 33255 | return 3; |
| 33256 | } |
| 33257 | /* Now m = plus.word[k] ^ ~minus.word[k]. */ |
| 33258 | if (plus.word[k] & ~minus.word[k]) |
| 33259 | { |
| 33260 | /* Oh? The sign bit is set in the positive and cleared in the negative |
| 33261 | numbers? */ |
| 33262 | fprintf (fp, "unknown"); |
| 33263 | fclose (fp); |
| 33264 | return 4; |
| 33265 | } |
| 33266 | for (i = 0; ; i++) |
| 33267 | if ((m >> i) & 1) |
| 33268 | break; |
| 33269 | fprintf (fp, "word %d bit %d", (int) k, (int) i); |
| 33270 | if (fclose (fp) != 0) |
| 33271 | return 5; |
| 33272 | return 0; |
| 33273 | } |
| 33274 | |
| 33275 | _ACEOF |
| 33276 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 33277 | then : |
| 33278 | gl_cv_cc_long_double_signbit=`catscip-shell system . . cat. conftest.out` |
| 33279 | else $as_nop |
| 33280 | gl_cv_cc_long_double_signbit="unknown" |
| 33281 | fi |
| 33282 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 33283 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33284 | fi |
| 33285 | |
| 33286 | rmscip-shell system . . rm. -f conftest.out |
| 33287 | |
| 33288 | fi |
| 33289 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5 |
| 33290 | printfscip-shell system . . printf. "%s\n" "$gl_cv_cc_long_double_signbit" >&6; } |
| 33291 | case "$gl_cv_cc_long_double_signbit" in |
| 33292 | word*bit*) |
| 33293 | word=`echoscip-shell system . . echo. "$gl_cv_cc_long_double_signbit" | sedscip-shell system . . sed. -e 's/word //' -e 's/ bit.*//'` |
| 33294 | bit=`echoscip-shell system . . echo. "$gl_cv_cc_long_double_signbit" | sedscip-shell system . . sed. -e 's/word.*bit //'` |
| 33295 | |
| 33296 | printfscip-shell system . . printf. "%s\n" "#define LDBL_SIGNBIT_WORD $word" >>confdefs.h |
| 33297 | |
| 33298 | |
| 33299 | printfscip-shell system . . printf. "%s\n" "#define LDBL_SIGNBIT_BIT $bit" >>confdefs.h |
| 33300 | |
| 33301 | ;; |
| 33302 | esac |
| 33303 | |
| 33304 | |
| 33305 | if testscip-shell system . . test. "$gl_cv_cc_float_signbit" = unknown; then |
| 33306 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h> |
| 33307 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 33308 | if testscip-shell system . . test. "x$ac_cv_have_decl_copysignf" = xyes |
| 33309 | then : |
| 33310 | ac_have_decl=1 |
| 33311 | else $as_nop |
| 33312 | ac_have_decl=0 |
| 33313 | fi |
| 33314 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_COPYSIGNF $ac_have_decl" >>confdefs.h |
| 33315 | |
| 33316 | if testscip-shell system . . test. "$ac_cv_have_decl_copysignf" = yes; then |
| 33317 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5 |
| 33318 | printfscip-shell system . . printf. %s "checking whether copysignf can be used without linking with libm... " >&6; } |
| 33319 | if testscip-shell system . . test. ${gl_cv_func_copysignf_no_libm+y} |
| 33320 | then : |
| 33321 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33322 | else $as_nop |
| 33323 | |
| 33324 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33325 | /* end confdefs.h. */ |
| 33326 | #include <math.h> |
| 33327 | float x, y; |
| 33328 | int |
| 33329 | main (void) |
| 33330 | { |
| 33331 | return copysignf (x, y) < 0; |
| 33332 | ; |
| 33333 | return 0; |
| 33334 | } |
| 33335 | _ACEOF |
| 33336 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 33337 | then : |
| 33338 | gl_cv_func_copysignf_no_libm=yes |
| 33339 | else $as_nop |
| 33340 | gl_cv_func_copysignf_no_libm=no |
| 33341 | fi |
| 33342 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33343 | conftest$ac_exeext conftest.$ac_ext |
| 33344 | |
| 33345 | fi |
| 33346 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5 |
| 33347 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_copysignf_no_libm" >&6; } |
| 33348 | if testscip-shell system . . test. $gl_cv_func_copysignf_no_libm = yes; then |
| 33349 | |
| 33350 | printfscip-shell system . . printf. "%s\n" "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h |
| 33351 | |
| 33352 | fi |
| 33353 | fi |
| 33354 | fi |
| 33355 | if testscip-shell system . . test. "$gl_cv_cc_double_signbit" = unknown; then |
| 33356 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h> |
| 33357 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 33358 | if testscip-shell system . . test. "x$ac_cv_have_decl_copysign" = xyes |
| 33359 | then : |
| 33360 | ac_have_decl=1 |
| 33361 | else $as_nop |
| 33362 | ac_have_decl=0 |
| 33363 | fi |
| 33364 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_COPYSIGN $ac_have_decl" >>confdefs.h |
| 33365 | |
| 33366 | if testscip-shell system . . test. "$ac_cv_have_decl_copysign" = yes; then |
| 33367 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5 |
| 33368 | printfscip-shell system . . printf. %s "checking whether copysign can be used without linking with libm... " >&6; } |
| 33369 | if testscip-shell system . . test. ${gl_cv_func_copysign_no_libm+y} |
| 33370 | then : |
| 33371 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33372 | else $as_nop |
| 33373 | |
| 33374 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33375 | /* end confdefs.h. */ |
| 33376 | #include <math.h> |
| 33377 | double x, y; |
| 33378 | int |
| 33379 | main (void) |
| 33380 | { |
| 33381 | return copysign (x, y) < 0; |
| 33382 | ; |
| 33383 | return 0; |
| 33384 | } |
| 33385 | _ACEOF |
| 33386 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 33387 | then : |
| 33388 | gl_cv_func_copysign_no_libm=yes |
| 33389 | else $as_nop |
| 33390 | gl_cv_func_copysign_no_libm=no |
| 33391 | fi |
| 33392 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33393 | conftest$ac_exeext conftest.$ac_ext |
| 33394 | |
| 33395 | fi |
| 33396 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5 |
| 33397 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_copysign_no_libm" >&6; } |
| 33398 | if testscip-shell system . . test. $gl_cv_func_copysign_no_libm = yes; then |
| 33399 | |
| 33400 | printfscip-shell system . . printf. "%s\n" "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h |
| 33401 | |
| 33402 | fi |
| 33403 | fi |
| 33404 | fi |
| 33405 | if testscip-shell system . . test. "$gl_cv_cc_long_double_signbit" = unknown; then |
| 33406 | ac_fn_check_declscip-shell shell shell-project 0.0.0 ac_fn_check_decl(). "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h> |
| 33407 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 33408 | if testscip-shell system . . test. "x$ac_cv_have_decl_copysignl" = xyes |
| 33409 | then : |
| 33410 | ac_have_decl=1 |
| 33411 | else $as_nop |
| 33412 | ac_have_decl=0 |
| 33413 | fi |
| 33414 | printfscip-shell system . . printf. "%s\n" "#define HAVE_DECL_COPYSIGNL $ac_have_decl" >>confdefs.h |
| 33415 | |
| 33416 | if testscip-shell system . . test. "$ac_cv_have_decl_copysignl" = yes; then |
| 33417 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5 |
| 33418 | printfscip-shell system . . printf. %s "checking whether copysignl can be used without linking with libm... " >&6; } |
| 33419 | if testscip-shell system . . test. ${gl_cv_func_copysignl_no_libm+y} |
| 33420 | then : |
| 33421 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33422 | else $as_nop |
| 33423 | |
| 33424 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33425 | /* end confdefs.h. */ |
| 33426 | #include <math.h> |
| 33427 | long double x, y; |
| 33428 | int |
| 33429 | main (void) |
| 33430 | { |
| 33431 | return copysignl (x, y) < 0; |
| 33432 | ; |
| 33433 | return 0; |
| 33434 | } |
| 33435 | _ACEOF |
| 33436 | if ac_fn_c_try_linkscip-shell shell shell-project 0.0.0 ac_fn_c_try_link(). "$LINENO" |
| 33437 | then : |
| 33438 | gl_cv_func_copysignl_no_libm=yes |
| 33439 | else $as_nop |
| 33440 | gl_cv_func_copysignl_no_libm=no |
| 33441 | fi |
| 33442 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33443 | conftest$ac_exeext conftest.$ac_ext |
| 33444 | |
| 33445 | fi |
| 33446 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5 |
| 33447 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_copysignl_no_libm" >&6; } |
| 33448 | if testscip-shell system . . test. $gl_cv_func_copysignl_no_libm = yes; then |
| 33449 | |
| 33450 | printfscip-shell system . . printf. "%s\n" "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h |
| 33451 | |
| 33452 | fi |
| 33453 | fi |
| 33454 | fi |
| 33455 | fi |
| 33456 | |
| 33457 | |
| 33458 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 33459 | GL_COND_OBJ_SIGNBIT3_TRUE= |
| 33460 | GL_COND_OBJ_SIGNBIT3_FALSE='#' |
| 33461 | else |
| 33462 | GL_COND_OBJ_SIGNBIT3_TRUE='#' |
| 33463 | GL_COND_OBJ_SIGNBIT3_FALSE= |
| 33464 | fi |
| 33465 | : |
| 33466 | if testscip-shell system . . test. -z "${GL_COND_OBJ_SIGNBIT3_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_SIGNBIT3_FALSE}"; then |
| 33467 | GL_COND_OBJ_SIGNBIT3_TRUE='#' |
| 33468 | GL_COND_OBJ_SIGNBIT3_FALSE='#' |
| 33469 | fi |
| 33470 | |
| 33471 | |
| 33472 | |
| 33473 | |
| 33474 | |
| 33475 | |
| 33476 | |
| 33477 | |
| 33478 | |
| 33479 | |
| 33480 | GL_GNULIB_SIGNBIT=1 |
| 33481 | |
| 33482 | |
| 33483 | |
| 33484 | |
| 33485 | |
| 33486 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h |
| 33487 | |
| 33488 | |
| 33489 | |
| 33490 | gl_gnulib_enabled_signbit=true |
| 33491 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 33492 | func_gl_gnulib_m4code_fpieeescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpieee(). |
| 33493 | fi |
| 33494 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 33495 | func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21(). |
| 33496 | fi |
| 33497 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 33498 | func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66(). |
| 33499 | fi |
| 33500 | if testscip-shell system . . test. $REPLACE_SIGNBIT = 1; then |
| 33501 | func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f(). |
| 33502 | fi |
| 33503 | func_gl_gnulib_m4code_mathscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_math(). |
| 33504 | fi |
| 33505 | } |
| 33506 | func_gl_gnulib_m4code_sigprocmaskscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_sigprocmask(). () |
| 33507 | { |
| 33508 | if ! $gl_gnulib_enabled_sigprocmask; then |
| 33509 | |
| 33510 | |
| 33511 | |
| 33512 | HAVE_POSIX_SIGNALBLOCKING=0 |
| 33513 | if testscip-shell system . . test. "$gl_cv_type_sigset_t" = yes; then |
| 33514 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 33515 | if testscip-shell system . . test. "x$ac_cv_func_sigprocmask" = xyes |
| 33516 | then : |
| 33517 | HAVE_POSIX_SIGNALBLOCKING=1 |
| 33518 | fi |
| 33519 | |
| 33520 | fi |
| 33521 | |
| 33522 | |
| 33523 | if testscip-shell system . . test. $HAVE_POSIX_SIGNALBLOCKING = 0; then |
| 33524 | GL_COND_OBJ_SIGPROCMASK_TRUE= |
| 33525 | GL_COND_OBJ_SIGPROCMASK_FALSE='#' |
| 33526 | else |
| 33527 | GL_COND_OBJ_SIGPROCMASK_TRUE='#' |
| 33528 | GL_COND_OBJ_SIGPROCMASK_FALSE= |
| 33529 | fi |
| 33530 | : |
| 33531 | if testscip-shell system . . test. -z "${GL_COND_OBJ_SIGPROCMASK_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_SIGPROCMASK_FALSE}"; then |
| 33532 | GL_COND_OBJ_SIGPROCMASK_TRUE='#' |
| 33533 | GL_COND_OBJ_SIGPROCMASK_FALSE='#' |
| 33534 | fi |
| 33535 | |
| 33536 | if testscip-shell system . . test. -z "$GL_COND_OBJ_SIGPROCMASK_TRUE"; then : |
| 33537 | |
| 33538 | : |
| 33539 | |
| 33540 | fi |
| 33541 | |
| 33542 | |
| 33543 | |
| 33544 | |
| 33545 | |
| 33546 | |
| 33547 | |
| 33548 | |
| 33549 | |
| 33550 | GL_GNULIB_SIGPROCMASK=1 |
| 33551 | |
| 33552 | |
| 33553 | |
| 33554 | |
| 33555 | |
| 33556 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h |
| 33557 | |
| 33558 | |
| 33559 | |
| 33560 | gl_gnulib_enabled_sigprocmask=true |
| 33561 | if testscip-shell system . . test. $HAVE_POSIX_SIGNALBLOCKING = 0; then |
| 33562 | func_gl_gnulib_m4code_raisescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_raise(). |
| 33563 | fi |
| 33564 | fi |
| 33565 | } |
| 33566 | func_gl_gnulib_m4code_stdalignscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_stdalign(). () |
| 33567 | { |
| 33568 | if ! $gl_gnulib_enabled_stdalign; then |
| 33569 | |
| 33570 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 |
| 33571 | printfscip-shell system . . printf. %s "checking for working stdalign.h... " >&6; } |
| 33572 | if testscip-shell system . . test. ${gl_cv_header_working_stdalign_h+y} |
| 33573 | then : |
| 33574 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33575 | else $as_nop |
| 33576 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33577 | /* end confdefs.h. */ |
| 33578 | #include <stdint.h> |
| 33579 | #include <stdalign.h> |
| 33580 | #include <stddef.h> |
| 33581 | |
| 33582 | /* Test that alignof yields a result consistent with offsetof. |
| 33583 | This catches GCC bug 52023 |
| 33584 | <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ |
| 33585 | #ifdef __cplusplus |
| 33586 | template <class t> struct alignof_helper { char a; t b; }; |
| 33587 | # define ao(type) offsetof (alignof_helper<type>, b) |
| 33588 | #else |
| 33589 | # define ao(type) offsetof (struct { char a; type b; }, b) |
| 33590 | #endif |
| 33591 | char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; |
| 33592 | char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; |
| 33593 | char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; |
| 33594 | |
| 33595 | /* Test _Alignas only on platforms where gnulib can help. */ |
| 33596 | #if \ |
| 33597 | ((defined __cplusplus && 201103 <= __cplusplus) \ |
| 33598 | || (__TINYC__ && defined __attribute__) \ |
| 33599 | || (defined __APPLE__ && defined __MACH__ \ |
| 33600 | ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ |
| 33601 | : __GNUC__) \ |
| 33602 | || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ |
| 33603 | || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ |
| 33604 | || 1300 <= _MSC_VER) |
| 33605 | struct alignas_test { char c; char alignas (8) alignas_8; }; |
| 33606 | char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 |
| 33607 | ? 1 : -1]; |
| 33608 | #endif |
| 33609 | |
| 33610 | int |
| 33611 | main (void) |
| 33612 | { |
| 33613 | |
| 33614 | ; |
| 33615 | return 0; |
| 33616 | } |
| 33617 | _ACEOF |
| 33618 | if ac_fn_c_try_compilescip-shell shell shell-project 0.0.0 ac_fn_c_try_compile(). "$LINENO" |
| 33619 | then : |
| 33620 | gl_cv_header_working_stdalign_h=yes |
| 33621 | else $as_nop |
| 33622 | gl_cv_header_working_stdalign_h=no |
| 33623 | fi |
| 33624 | rmscip-shell system . . rm. -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33625 | fi |
| 33626 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 |
| 33627 | printfscip-shell system . . printf. "%s\n" "$gl_cv_header_working_stdalign_h" >&6; } |
| 33628 | |
| 33629 | if testscip-shell system . . test. $gl_cv_header_working_stdalign_h = yes; then |
| 33630 | GL_GENERATE_STDALIGN_H=false |
| 33631 | else |
| 33632 | GL_GENERATE_STDALIGN_H=true |
| 33633 | fi |
| 33634 | |
| 33635 | |
| 33636 | |
| 33637 | |
| 33638 | |
| 33639 | case "$GL_GENERATE_STDALIGN_H" in |
| 33640 | false) STDALIGN_H='' ;; |
| 33641 | true) |
| 33642 | if testscip-shell system . . test. -z "$STDALIGN_H"; then |
| 33643 | STDALIGN_H="${gl_source_base_prefix}stdalign.h" |
| 33644 | fi |
| 33645 | ;; |
| 33646 | *) echoscip-shell system . . echo. "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;; |
| 33647 | esac |
| 33648 | |
| 33649 | |
| 33650 | if $GL_GENERATE_STDALIGN_H; then |
| 33651 | GL_GENERATE_STDALIGN_H_TRUE= |
| 33652 | GL_GENERATE_STDALIGN_H_FALSE='#' |
| 33653 | else |
| 33654 | GL_GENERATE_STDALIGN_H_TRUE='#' |
| 33655 | GL_GENERATE_STDALIGN_H_FALSE= |
| 33656 | fi |
| 33657 | : |
| 33658 | if testscip-shell system . . test. -z "${GL_GENERATE_STDALIGN_H_TRUE}" && testscip-shell system . . test. -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then |
| 33659 | GL_GENERATE_STDALIGN_H_TRUE='#' |
| 33660 | GL_GENERATE_STDALIGN_H_FALSE='#' |
| 33661 | fi |
| 33662 | |
| 33663 | |
| 33664 | |
| 33665 | |
| 33666 | |
| 33667 | |
| 33668 | gl_gnulib_enabled_stdalign=true |
| 33669 | fi |
| 33670 | } |
| 33671 | func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0(). () |
| 33672 | { |
| 33673 | if ! $gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0; then |
| 33674 | |
| 33675 | |
| 33676 | |
| 33677 | if testscip-shell system . . test. $gl_cv_func_malloc_posix != yes; then |
| 33678 | REPLACE_STRDUP=1 |
| 33679 | fi |
| 33680 | |
| 33681 | if testscip-shell system . . test. $ac_cv_have_decl_strdup = no; then |
| 33682 | HAVE_DECL_STRDUP=0 |
| 33683 | fi |
| 33684 | |
| 33685 | |
| 33686 | if testscip-shell system . . test. $REPLACE_STRDUP = 1; then |
| 33687 | GL_COND_OBJ_STRDUP_TRUE= |
| 33688 | GL_COND_OBJ_STRDUP_FALSE='#' |
| 33689 | else |
| 33690 | GL_COND_OBJ_STRDUP_TRUE='#' |
| 33691 | GL_COND_OBJ_STRDUP_FALSE= |
| 33692 | fi |
| 33693 | : |
| 33694 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STRDUP_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STRDUP_FALSE}"; then |
| 33695 | GL_COND_OBJ_STRDUP_TRUE='#' |
| 33696 | GL_COND_OBJ_STRDUP_FALSE='#' |
| 33697 | fi |
| 33698 | |
| 33699 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STRDUP_TRUE"; then : |
| 33700 | |
| 33701 | : |
| 33702 | |
| 33703 | fi |
| 33704 | |
| 33705 | |
| 33706 | |
| 33707 | |
| 33708 | |
| 33709 | |
| 33710 | |
| 33711 | |
| 33712 | |
| 33713 | |
| 33714 | |
| 33715 | |
| 33716 | |
| 33717 | |
| 33718 | GL_GNULIB_STRDUP=1 |
| 33719 | |
| 33720 | |
| 33721 | |
| 33722 | |
| 33723 | |
| 33724 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h |
| 33725 | |
| 33726 | |
| 33727 | |
| 33728 | gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=true |
| 33729 | fi |
| 33730 | } |
| 33731 | func_gl_gnulib_m4code_strerrorscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_strerror(). () |
| 33732 | { |
| 33733 | if ! $gl_gnulib_enabled_strerror; then |
| 33734 | |
| 33735 | |
| 33736 | |
| 33737 | |
| 33738 | |
| 33739 | if testscip-shell system . . test. "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then |
| 33740 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 |
| 33741 | printfscip-shell system . . printf. %s "checking for working strerror function... " >&6; } |
| 33742 | if testscip-shell system . . test. ${gl_cv_func_working_strerror+y} |
| 33743 | then : |
| 33744 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 33745 | else $as_nop |
| 33746 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 33747 | then : |
| 33748 | case "$host_os" in |
| 33749 | # Guess yes on glibc systems. |
| 33750 | *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; |
| 33751 | # Guess yes on musl systems. |
| 33752 | *-musl*) gl_cv_func_working_strerror="guessing yes" ;; |
| 33753 | # If we don't know, obey --enable-cross-guesses. |
| 33754 | *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; |
| 33755 | esac |
| 33756 | |
| 33757 | else $as_nop |
| 33758 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33759 | /* end confdefs.h. */ |
| 33760 | #include <string.h> |
| 33761 | |
| 33762 | int |
| 33763 | main (void) |
| 33764 | { |
| 33765 | if (!*strerror (-2)) return 1; |
| 33766 | ; |
| 33767 | return 0; |
| 33768 | } |
| 33769 | _ACEOF |
| 33770 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 33771 | then : |
| 33772 | gl_cv_func_working_strerror=yes |
| 33773 | else $as_nop |
| 33774 | gl_cv_func_working_strerror=no |
| 33775 | fi |
| 33776 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 33777 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33778 | fi |
| 33779 | |
| 33780 | |
| 33781 | fi |
| 33782 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 |
| 33783 | printfscip-shell system . . printf. "%s\n" "$gl_cv_func_working_strerror" >&6; } |
| 33784 | case "$gl_cv_func_working_strerror" in |
| 33785 | *yes) ;; |
| 33786 | *) |
| 33787 | REPLACE_STRERROR=1 |
| 33788 | ;; |
| 33789 | esac |
| 33790 | |
| 33791 | else |
| 33792 | REPLACE_STRERROR=1 |
| 33793 | fi |
| 33794 | |
| 33795 | |
| 33796 | if testscip-shell system . . test. $REPLACE_STRERROR = 1; then |
| 33797 | GL_COND_OBJ_STRERROR_TRUE= |
| 33798 | GL_COND_OBJ_STRERROR_FALSE='#' |
| 33799 | else |
| 33800 | GL_COND_OBJ_STRERROR_TRUE='#' |
| 33801 | GL_COND_OBJ_STRERROR_FALSE= |
| 33802 | fi |
| 33803 | : |
| 33804 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STRERROR_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STRERROR_FALSE}"; then |
| 33805 | GL_COND_OBJ_STRERROR_TRUE='#' |
| 33806 | GL_COND_OBJ_STRERROR_FALSE='#' |
| 33807 | fi |
| 33808 | |
| 33809 | |
| 33810 | |
| 33811 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h |
| 33812 | |
| 33813 | |
| 33814 | |
| 33815 | |
| 33816 | |
| 33817 | |
| 33818 | |
| 33819 | |
| 33820 | |
| 33821 | |
| 33822 | |
| 33823 | |
| 33824 | |
| 33825 | |
| 33826 | |
| 33827 | |
| 33828 | GL_GNULIB_STRERROR=1 |
| 33829 | |
| 33830 | |
| 33831 | |
| 33832 | |
| 33833 | |
| 33834 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h |
| 33835 | |
| 33836 | |
| 33837 | |
| 33838 | gl_gnulib_enabled_strerror=true |
| 33839 | if testscip-shell system . . test. $REPLACE_STRERROR = 1; then |
| 33840 | func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72(). |
| 33841 | fi |
| 33842 | fi |
| 33843 | } |
| 33844 | func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbb57f49352be8fb86869629a254fb72(). () |
| 33845 | { |
| 33846 | if ! $gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72; then |
| 33847 | |
| 33848 | |
| 33849 | |
| 33850 | if testscip-shell system . . test. -n "$ERRNO_H" || testscip-shell system . . test. $REPLACE_STRERROR_0 = 1; then |
| 33851 | GL_COND_OBJ_STRERROR_OVERRIDE_TRUE= |
| 33852 | GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' |
| 33853 | else |
| 33854 | GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' |
| 33855 | GL_COND_OBJ_STRERROR_OVERRIDE_FALSE= |
| 33856 | fi |
| 33857 | : |
| 33858 | if testscip-shell system . . test. -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then |
| 33859 | GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' |
| 33860 | GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' |
| 33861 | fi |
| 33862 | |
| 33863 | if testscip-shell system . . test. -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then : |
| 33864 | |
| 33865 | |
| 33866 | |
| 33867 | |
| 33868 | |
| 33869 | if testscip-shell system . . test. $ac_cv_header_sys_socket_h != yes; then |
| 33870 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 33871 | if testscip-shell system . . test. "x$ac_cv_header_winsock2_h" = xyes |
| 33872 | then : |
| 33873 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h |
| 33874 | |
| 33875 | fi |
| 33876 | |
| 33877 | fi |
| 33878 | if testscip-shell system . . test. "$ac_cv_header_winsock2_h" = yes; then |
| 33879 | HAVE_WINSOCK2_H=1 |
| 33880 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 33881 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 33882 | else |
| 33883 | HAVE_WINSOCK2_H=0 |
| 33884 | fi |
| 33885 | |
| 33886 | |
| 33887 | |
| 33888 | fi |
| 33889 | gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72=true |
| 33890 | fi |
| 33891 | } |
| 33892 | func_gl_gnulib_m4code_sys_randomscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_sys_random(). () |
| 33893 | { |
| 33894 | if ! $gl_gnulib_enabled_sys_random; then |
| 33895 | |
| 33896 | |
| 33897 | |
| 33898 | |
| 33899 | |
| 33900 | |
| 33901 | |
| 33902 | gl_gnulib_enabled_sys_random=true |
| 33903 | fi |
| 33904 | } |
| 33905 | func_gl_gnulib_m4code_tempnamescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_tempname(). () |
| 33906 | { |
| 33907 | if ! $gl_gnulib_enabled_tempname; then |
| 33908 | |
| 33909 | |
| 33910 | : |
| 33911 | |
| 33912 | |
| 33913 | |
| 33914 | |
| 33915 | printfscip-shell system . . printf. "%s\n" "#define GNULIB_TEMPNAME 1" >>confdefs.h |
| 33916 | |
| 33917 | |
| 33918 | gl_gnulib_enabled_tempname=true |
| 33919 | func_gl_gnulib_m4code_getrandomscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_getrandom(). |
| 33920 | func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467(). |
| 33921 | func_gl_gnulib_m4code_mkdirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_mkdir(). |
| 33922 | func_gl_gnulib_m4code_stdalignscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_stdalign(). |
| 33923 | fi |
| 33924 | } |
| 33925 | func_gl_gnulib_m4code_threadlibscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_threadlib(). () |
| 33926 | { |
| 33927 | if ! $gl_gnulib_enabled_threadlib; then |
| 33928 | |
| 33929 | gl_gnulib_enabled_threadlib=true |
| 33930 | fi |
| 33931 | } |
| 33932 | func_gl_gnulib_m4code_tlsscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_tls(). () |
| 33933 | { |
| 33934 | if ! $gl_gnulib_enabled_tls; then |
| 33935 | |
| 33936 | |
| 33937 | |
| 33938 | gl_gnulib_enabled_tls=true |
| 33939 | func_gl_gnulib_m4code_threadlibscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_threadlib(). |
| 33940 | if testscip-shell system . . test. $gl_threads_api = windows; then |
| 33941 | func_gl_gnulib_m4code_48b2271240803e4879464b755748a89dscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_48b2271240803e4879464b755748a89d(). |
| 33942 | fi |
| 33943 | fi |
| 33944 | } |
| 33945 | func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_503a4cb75d69c787103d0aa2ab7d8440(). () |
| 33946 | { |
| 33947 | if ! $gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440; then |
| 33948 | |
| 33949 | |
| 33950 | if case "$host_os" in mingw*) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 33951 | GL_COND_OBJ_WINDOWS_MUTEX_TRUE= |
| 33952 | GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#' |
| 33953 | else |
| 33954 | GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#' |
| 33955 | GL_COND_OBJ_WINDOWS_MUTEX_FALSE= |
| 33956 | fi |
| 33957 | : |
| 33958 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_MUTEX_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_MUTEX_FALSE}"; then |
| 33959 | GL_COND_OBJ_WINDOWS_MUTEX_TRUE='#' |
| 33960 | GL_COND_OBJ_WINDOWS_MUTEX_FALSE='#' |
| 33961 | fi |
| 33962 | |
| 33963 | gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440=true |
| 33964 | fi |
| 33965 | } |
| 33966 | func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917abscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917ab(). () |
| 33967 | { |
| 33968 | if ! $gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab; then |
| 33969 | |
| 33970 | |
| 33971 | if case "$host_os" in mingw*) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 33972 | GL_COND_OBJ_WINDOWS_ONCE_TRUE= |
| 33973 | GL_COND_OBJ_WINDOWS_ONCE_FALSE='#' |
| 33974 | else |
| 33975 | GL_COND_OBJ_WINDOWS_ONCE_TRUE='#' |
| 33976 | GL_COND_OBJ_WINDOWS_ONCE_FALSE= |
| 33977 | fi |
| 33978 | : |
| 33979 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_ONCE_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_ONCE_FALSE}"; then |
| 33980 | GL_COND_OBJ_WINDOWS_ONCE_TRUE='#' |
| 33981 | GL_COND_OBJ_WINDOWS_ONCE_FALSE='#' |
| 33982 | fi |
| 33983 | |
| 33984 | gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab=true |
| 33985 | fi |
| 33986 | } |
| 33987 | func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_f0efff84a70f4afba30902bb8ffe9354(). () |
| 33988 | { |
| 33989 | if ! $gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354; then |
| 33990 | |
| 33991 | |
| 33992 | if case "$host_os" in mingw*) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 33993 | GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE= |
| 33994 | GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#' |
| 33995 | else |
| 33996 | GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#' |
| 33997 | GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE= |
| 33998 | fi |
| 33999 | : |
| 34000 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE}"; then |
| 34001 | GL_COND_OBJ_WINDOWS_RECMUTEX_TRUE='#' |
| 34002 | GL_COND_OBJ_WINDOWS_RECMUTEX_FALSE='#' |
| 34003 | fi |
| 34004 | |
| 34005 | gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354=true |
| 34006 | fi |
| 34007 | } |
| 34008 | func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92efscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_8bb827fe37eaccf1b97feb0c87bc92ef(). () |
| 34009 | { |
| 34010 | if ! $gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef; then |
| 34011 | |
| 34012 | |
| 34013 | if case "$host_os" in mingw*) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 34014 | GL_COND_OBJ_WINDOWS_RWLOCK_TRUE= |
| 34015 | GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#' |
| 34016 | else |
| 34017 | GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#' |
| 34018 | GL_COND_OBJ_WINDOWS_RWLOCK_FALSE= |
| 34019 | fi |
| 34020 | : |
| 34021 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_RWLOCK_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_RWLOCK_FALSE}"; then |
| 34022 | GL_COND_OBJ_WINDOWS_RWLOCK_TRUE='#' |
| 34023 | GL_COND_OBJ_WINDOWS_RWLOCK_FALSE='#' |
| 34024 | fi |
| 34025 | |
| 34026 | gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef=true |
| 34027 | fi |
| 34028 | } |
| 34029 | func_gl_gnulib_m4code_48b2271240803e4879464b755748a89dscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_48b2271240803e4879464b755748a89d(). () |
| 34030 | { |
| 34031 | if ! $gl_gnulib_enabled_48b2271240803e4879464b755748a89d; then |
| 34032 | |
| 34033 | |
| 34034 | if case "$host_os" in mingw*) truescip-shell system . . true.;; *) falsescip-shell system . . false.;; esac; then |
| 34035 | GL_COND_OBJ_WINDOWS_TLS_TRUE= |
| 34036 | GL_COND_OBJ_WINDOWS_TLS_FALSE='#' |
| 34037 | else |
| 34038 | GL_COND_OBJ_WINDOWS_TLS_TRUE='#' |
| 34039 | GL_COND_OBJ_WINDOWS_TLS_FALSE= |
| 34040 | fi |
| 34041 | : |
| 34042 | if testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_TLS_TRUE}" && testscip-shell system . . test. -z "${GL_COND_OBJ_WINDOWS_TLS_FALSE}"; then |
| 34043 | GL_COND_OBJ_WINDOWS_TLS_TRUE='#' |
| 34044 | GL_COND_OBJ_WINDOWS_TLS_FALSE='#' |
| 34045 | fi |
| 34046 | |
| 34047 | gl_gnulib_enabled_48b2271240803e4879464b755748a89d=true |
| 34048 | func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917abscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_68a4501daeca58988392c7e60b4917ab(). |
| 34049 | fi |
| 34050 | } |
| 34051 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). () |
| 34052 | { |
| 34053 | if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then |
| 34054 | gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true |
| 34055 | fi |
| 34056 | } |
| 34057 | if testscip-shell system . . test. $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then |
| 34058 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34059 | fi |
| 34060 | if testscip-shell system . . test. $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then |
| 34061 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34062 | fi |
| 34063 | if testscip-shell system . . test. $REPLACE_CLOSE = 1; then |
| 34064 | func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239(). |
| 34065 | fi |
| 34066 | if testscip-shell system . . test. $HAVE_CLOSEDIR = 0 || testscip-shell system . . test. $REPLACE_CLOSEDIR = 1; then |
| 34067 | func_gl_gnulib_m4code_dirfdscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dirfd(). |
| 34068 | fi |
| 34069 | if testscip-shell system . . test. $ac_cv_lib_error_at_line = no; then |
| 34070 | func_gl_gnulib_m4code_strerrorscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_strerror(). |
| 34071 | fi |
| 34072 | if testscip-shell system . . test. $HAVE_FCNTL = 0 || testscip-shell system . . test. $REPLACE_FCNTL = 1; then |
| 34073 | func_gl_gnulib_m4code_dup2scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dup2(). |
| 34074 | fi |
| 34075 | if testscip-shell system . . test. $HAVE_FCNTL = 0 || testscip-shell system . . test. $REPLACE_FCNTL = 1; then |
| 34076 | func_gl_gnulib_m4code_getdtablesizescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_getdtablesize(). |
| 34077 | fi |
| 34078 | if testscip-shell system . . test. $REPLACE_FSTAT = 1; then |
| 34079 | func_gl_gnulib_m4code_pathmaxscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_pathmax(). |
| 34080 | fi |
| 34081 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34082 | func_gl_gnulib_m4code_75c65a2c014cf8235dd95289676302a4scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_75c65a2c014cf8235dd95289676302a4(). |
| 34083 | fi |
| 34084 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34085 | func_gl_gnulib_m4code_fdopendirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fdopendir(). |
| 34086 | fi |
| 34087 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34088 | func_gl_gnulib_m4code_fstatatscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fstatat(). |
| 34089 | fi |
| 34090 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34091 | func_gl_gnulib_m4code_openatscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_openat(). |
| 34092 | fi |
| 34093 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34094 | func_gl_gnulib_m4code_pathmaxscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_pathmax(). |
| 34095 | fi |
| 34096 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34097 | func_gl_gnulib_m4code_rewinddirscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_rewinddir(). |
| 34098 | fi |
| 34099 | if testscip-shell system . . test. $REPLACE_GETCWD = 1; then |
| 34100 | func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0(). |
| 34101 | fi |
| 34102 | if testscip-shell system . . test. $HAVE_GETLOGIN_R = 0 || testscip-shell system . . test. $REPLACE_GETLOGIN_R = 1; then |
| 34103 | func_gl_gnulib_m4code_mallocascip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_malloca(). |
| 34104 | fi |
| 34105 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then |
| 34106 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34107 | fi |
| 34108 | if testscip-shell system . . test. $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then |
| 34109 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34110 | fi |
| 34111 | if testscip-shell system . . test. $HAVE_MKSTEMP = 0 || testscip-shell system . . test. $REPLACE_MKSTEMP = 1; then |
| 34112 | func_gl_gnulib_m4code_tempnamescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_tempname(). |
| 34113 | fi |
| 34114 | if testscip-shell system . . test. $REPLACE_OPEN = 1; then |
| 34115 | func_gl_gnulib_m4code_cloexecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_cloexec(). |
| 34116 | fi |
| 34117 | if testscip-shell system . . test. $HAVE_OPENDIR = 0 || testscip-shell system . . test. $REPLACE_OPENDIR = 1; then |
| 34118 | func_gl_gnulib_m4code_dirfdscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dirfd(). |
| 34119 | fi |
| 34120 | if testscip-shell system . . test. $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then |
| 34121 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34122 | fi |
| 34123 | if testscip-shell system . . test. $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then |
| 34124 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaecscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec(). |
| 34125 | fi |
| 34126 | if testscip-shell system . . test. $HAVE_SIGACTION = 0; then |
| 34127 | func_gl_gnulib_m4code_sigprocmaskscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_sigprocmask(). |
| 34128 | fi |
| 34129 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34130 | func_gl_gnulib_m4code_fpucwscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_fpucw(). |
| 34131 | fi |
| 34132 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34133 | func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_e1c6a1281ce2cc59c716894550bcb2b5(). |
| 34134 | fi |
| 34135 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34136 | func_gl_gnulib_m4code_e0ca81912f23214e44f5700922db34bescip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_e0ca81912f23214e44f5700922db34be(). |
| 34137 | fi |
| 34138 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34139 | func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21(). |
| 34140 | fi |
| 34141 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34142 | func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f(). |
| 34143 | fi |
| 34144 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34145 | func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94scip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_2f551a684aab5400633cbfd56df3bf94(). |
| 34146 | fi |
| 34147 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34148 | func_gl_gnulib_m4code_bba639f0cfd658540d716f3a2ba5e68fscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_bba639f0cfd658540d716f3a2ba5e68f(). |
| 34149 | fi |
| 34150 | if testscip-shell system . . test. $REPLACE_SPRINTF = 1; then |
| 34151 | func_gl_gnulib_m4code_signbitscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_signbit(). |
| 34152 | fi |
| 34153 | if testscip-shell system . . test. $REPLACE_STAT = 1; then |
| 34154 | func_gl_gnulib_m4code_mallocascip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_malloca(). |
| 34155 | fi |
| 34156 | if testscip-shell system . . test. $REPLACE_STAT = 1; then |
| 34157 | func_gl_gnulib_m4code_pathmaxscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_pathmax(). |
| 34158 | fi |
| 34159 | if testscip-shell system . . test. $HAVE_STRSIGNAL = 0 || testscip-shell system . . test. $REPLACE_STRSIGNAL = 1; then |
| 34160 | func_gl_gnulib_m4code_lockscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_lock(). |
| 34161 | fi |
| 34162 | if testscip-shell system . . test. $HAVE_STRSIGNAL = 0 || testscip-shell system . . test. $REPLACE_STRSIGNAL = 1; then |
| 34163 | func_gl_gnulib_m4code_tlsscip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_tls(). |
| 34164 | fi |
| 34165 | if testscip-shell system . . test. $HAVE_UTIME = 0 || testscip-shell system . . test. $REPLACE_UTIME = 1; then |
| 34166 | func_gl_gnulib_m4code_mallocascip-shell shell shell-project 0.0.0 func_gl_gnulib_m4code_malloca(). |
| 34167 | fi |
| 34168 | |
| 34169 | if $gl_gnulib_enabled_assure; then |
| 34170 | gl_GNULIB_ENABLED_assure_TRUE= |
| 34171 | gl_GNULIB_ENABLED_assure_FALSE='#' |
| 34172 | else |
| 34173 | gl_GNULIB_ENABLED_assure_TRUE='#' |
| 34174 | gl_GNULIB_ENABLED_assure_FALSE= |
| 34175 | fi |
| 34176 | |
| 34177 | if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then |
| 34178 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE= |
| 34179 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#' |
| 34180 | else |
| 34181 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#' |
| 34182 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE= |
| 34183 | fi |
| 34184 | |
| 34185 | if $gl_gnulib_enabled_chdir; then |
| 34186 | gl_GNULIB_ENABLED_chdir_TRUE= |
| 34187 | gl_GNULIB_ENABLED_chdir_FALSE='#' |
| 34188 | else |
| 34189 | gl_GNULIB_ENABLED_chdir_TRUE='#' |
| 34190 | gl_GNULIB_ENABLED_chdir_FALSE= |
| 34191 | fi |
| 34192 | |
| 34193 | if $gl_gnulib_enabled_8198daae261b932d64a998f8586f5005; then |
| 34194 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_TRUE= |
| 34195 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_FALSE='#' |
| 34196 | else |
| 34197 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_TRUE='#' |
| 34198 | gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_FALSE= |
| 34199 | fi |
| 34200 | |
| 34201 | if $gl_gnulib_enabled_cloexec; then |
| 34202 | gl_GNULIB_ENABLED_cloexec_TRUE= |
| 34203 | gl_GNULIB_ENABLED_cloexec_FALSE='#' |
| 34204 | else |
| 34205 | gl_GNULIB_ENABLED_cloexec_TRUE='#' |
| 34206 | gl_GNULIB_ENABLED_cloexec_FALSE= |
| 34207 | fi |
| 34208 | |
| 34209 | if $gl_gnulib_enabled_75c65a2c014cf8235dd95289676302a4; then |
| 34210 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_TRUE= |
| 34211 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_FALSE='#' |
| 34212 | else |
| 34213 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_TRUE='#' |
| 34214 | gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_FALSE= |
| 34215 | fi |
| 34216 | |
| 34217 | if $gl_gnulib_enabled_dirfd; then |
| 34218 | gl_GNULIB_ENABLED_dirfd_TRUE= |
| 34219 | gl_GNULIB_ENABLED_dirfd_FALSE='#' |
| 34220 | else |
| 34221 | gl_GNULIB_ENABLED_dirfd_TRUE='#' |
| 34222 | gl_GNULIB_ENABLED_dirfd_FALSE= |
| 34223 | fi |
| 34224 | |
| 34225 | if $gl_gnulib_enabled_a691da99c1d83b83238e45f41a696f5c; then |
| 34226 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_TRUE= |
| 34227 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_FALSE='#' |
| 34228 | else |
| 34229 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_TRUE='#' |
| 34230 | gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_FALSE= |
| 34231 | fi |
| 34232 | |
| 34233 | if $gl_gnulib_enabled_dup; then |
| 34234 | gl_GNULIB_ENABLED_dup_TRUE= |
| 34235 | gl_GNULIB_ENABLED_dup_FALSE='#' |
| 34236 | else |
| 34237 | gl_GNULIB_ENABLED_dup_TRUE='#' |
| 34238 | gl_GNULIB_ENABLED_dup_FALSE= |
| 34239 | fi |
| 34240 | |
| 34241 | if $gl_gnulib_enabled_dup2; then |
| 34242 | gl_GNULIB_ENABLED_dup2_TRUE= |
| 34243 | gl_GNULIB_ENABLED_dup2_FALSE='#' |
| 34244 | else |
| 34245 | gl_GNULIB_ENABLED_dup2_TRUE='#' |
| 34246 | gl_GNULIB_ENABLED_dup2_FALSE= |
| 34247 | fi |
| 34248 | |
| 34249 | if $gl_gnulib_enabled_fchdir; then |
| 34250 | gl_GNULIB_ENABLED_fchdir_TRUE= |
| 34251 | gl_GNULIB_ENABLED_fchdir_FALSE='#' |
| 34252 | else |
| 34253 | gl_GNULIB_ENABLED_fchdir_TRUE='#' |
| 34254 | gl_GNULIB_ENABLED_fchdir_FALSE= |
| 34255 | fi |
| 34256 | |
| 34257 | if $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then |
| 34258 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE= |
| 34259 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE='#' |
| 34260 | else |
| 34261 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE='#' |
| 34262 | gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE= |
| 34263 | fi |
| 34264 | |
| 34265 | if $gl_gnulib_enabled_64142d6558df0059920a9be1d634dadf; then |
| 34266 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_TRUE= |
| 34267 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_FALSE='#' |
| 34268 | else |
| 34269 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_TRUE='#' |
| 34270 | gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_FALSE= |
| 34271 | fi |
| 34272 | |
| 34273 | if $gl_gnulib_enabled_fdopendir; then |
| 34274 | gl_GNULIB_ENABLED_fdopendir_TRUE= |
| 34275 | gl_GNULIB_ENABLED_fdopendir_FALSE='#' |
| 34276 | else |
| 34277 | gl_GNULIB_ENABLED_fdopendir_TRUE='#' |
| 34278 | gl_GNULIB_ENABLED_fdopendir_FALSE= |
| 34279 | fi |
| 34280 | |
| 34281 | if $gl_gnulib_enabled_fca9852db2a43bb33f02f0fbdbc174f6; then |
| 34282 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_TRUE= |
| 34283 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_FALSE='#' |
| 34284 | else |
| 34285 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_TRUE='#' |
| 34286 | gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_FALSE= |
| 34287 | fi |
| 34288 | |
| 34289 | if $gl_gnulib_enabled_fpieee; then |
| 34290 | gl_GNULIB_ENABLED_fpieee_TRUE= |
| 34291 | gl_GNULIB_ENABLED_fpieee_FALSE='#' |
| 34292 | else |
| 34293 | gl_GNULIB_ENABLED_fpieee_TRUE='#' |
| 34294 | gl_GNULIB_ENABLED_fpieee_FALSE= |
| 34295 | fi |
| 34296 | |
| 34297 | if $gl_gnulib_enabled_fpucw; then |
| 34298 | gl_GNULIB_ENABLED_fpucw_TRUE= |
| 34299 | gl_GNULIB_ENABLED_fpucw_FALSE='#' |
| 34300 | else |
| 34301 | gl_GNULIB_ENABLED_fpucw_TRUE='#' |
| 34302 | gl_GNULIB_ENABLED_fpucw_FALSE= |
| 34303 | fi |
| 34304 | |
| 34305 | if $gl_gnulib_enabled_e1c6a1281ce2cc59c716894550bcb2b5; then |
| 34306 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_TRUE= |
| 34307 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_FALSE='#' |
| 34308 | else |
| 34309 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_TRUE='#' |
| 34310 | gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_FALSE= |
| 34311 | fi |
| 34312 | |
| 34313 | if $gl_gnulib_enabled_e0ca81912f23214e44f5700922db34be; then |
| 34314 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_TRUE= |
| 34315 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_FALSE='#' |
| 34316 | else |
| 34317 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_TRUE='#' |
| 34318 | gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_FALSE= |
| 34319 | fi |
| 34320 | |
| 34321 | if $gl_gnulib_enabled_fstatat; then |
| 34322 | gl_GNULIB_ENABLED_fstatat_TRUE= |
| 34323 | gl_GNULIB_ENABLED_fstatat_FALSE='#' |
| 34324 | else |
| 34325 | gl_GNULIB_ENABLED_fstatat_TRUE='#' |
| 34326 | gl_GNULIB_ENABLED_fstatat_FALSE= |
| 34327 | fi |
| 34328 | |
| 34329 | if $gl_gnulib_enabled_3d094ef542bfdd238a5194e172bfe5f6; then |
| 34330 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_TRUE= |
| 34331 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_FALSE='#' |
| 34332 | else |
| 34333 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_TRUE='#' |
| 34334 | gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_FALSE= |
| 34335 | fi |
| 34336 | |
| 34337 | if $gl_gnulib_enabled_getdtablesize; then |
| 34338 | gl_GNULIB_ENABLED_getdtablesize_TRUE= |
| 34339 | gl_GNULIB_ENABLED_getdtablesize_FALSE='#' |
| 34340 | else |
| 34341 | gl_GNULIB_ENABLED_getdtablesize_TRUE='#' |
| 34342 | gl_GNULIB_ENABLED_getdtablesize_FALSE= |
| 34343 | fi |
| 34344 | |
| 34345 | if $gl_gnulib_enabled_getrandom; then |
| 34346 | gl_GNULIB_ENABLED_getrandom_TRUE= |
| 34347 | gl_GNULIB_ENABLED_getrandom_FALSE='#' |
| 34348 | else |
| 34349 | gl_GNULIB_ENABLED_getrandom_TRUE='#' |
| 34350 | gl_GNULIB_ENABLED_getrandom_FALSE= |
| 34351 | fi |
| 34352 | |
| 34353 | if $gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21; then |
| 34354 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_TRUE= |
| 34355 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_FALSE='#' |
| 34356 | else |
| 34357 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_TRUE='#' |
| 34358 | gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_FALSE= |
| 34359 | fi |
| 34360 | |
| 34361 | if $gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66; then |
| 34362 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_TRUE= |
| 34363 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_FALSE='#' |
| 34364 | else |
| 34365 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_TRUE='#' |
| 34366 | gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_FALSE= |
| 34367 | fi |
| 34368 | |
| 34369 | if $gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f; then |
| 34370 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_TRUE= |
| 34371 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_FALSE='#' |
| 34372 | else |
| 34373 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_TRUE='#' |
| 34374 | gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_FALSE= |
| 34375 | fi |
| 34376 | |
| 34377 | if $gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467; then |
| 34378 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE= |
| 34379 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE='#' |
| 34380 | else |
| 34381 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE='#' |
| 34382 | gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE= |
| 34383 | fi |
| 34384 | |
| 34385 | if $gl_gnulib_enabled_lock; then |
| 34386 | gl_GNULIB_ENABLED_lock_TRUE= |
| 34387 | gl_GNULIB_ENABLED_lock_FALSE='#' |
| 34388 | else |
| 34389 | gl_GNULIB_ENABLED_lock_TRUE='#' |
| 34390 | gl_GNULIB_ENABLED_lock_FALSE= |
| 34391 | fi |
| 34392 | |
| 34393 | if $gl_gnulib_enabled_malloca; then |
| 34394 | gl_GNULIB_ENABLED_malloca_TRUE= |
| 34395 | gl_GNULIB_ENABLED_malloca_FALSE='#' |
| 34396 | else |
| 34397 | gl_GNULIB_ENABLED_malloca_TRUE='#' |
| 34398 | gl_GNULIB_ENABLED_malloca_FALSE= |
| 34399 | fi |
| 34400 | |
| 34401 | if $gl_gnulib_enabled_math; then |
| 34402 | gl_GNULIB_ENABLED_math_TRUE= |
| 34403 | gl_GNULIB_ENABLED_math_FALSE='#' |
| 34404 | else |
| 34405 | gl_GNULIB_ENABLED_math_TRUE='#' |
| 34406 | gl_GNULIB_ENABLED_math_FALSE= |
| 34407 | fi |
| 34408 | |
| 34409 | if $gl_gnulib_enabled_memrchr; then |
| 34410 | gl_GNULIB_ENABLED_memrchr_TRUE= |
| 34411 | gl_GNULIB_ENABLED_memrchr_FALSE='#' |
| 34412 | else |
| 34413 | gl_GNULIB_ENABLED_memrchr_TRUE='#' |
| 34414 | gl_GNULIB_ENABLED_memrchr_FALSE= |
| 34415 | fi |
| 34416 | |
| 34417 | if $gl_gnulib_enabled_mkdir; then |
| 34418 | gl_GNULIB_ENABLED_mkdir_TRUE= |
| 34419 | gl_GNULIB_ENABLED_mkdir_FALSE='#' |
| 34420 | else |
| 34421 | gl_GNULIB_ENABLED_mkdir_TRUE='#' |
| 34422 | gl_GNULIB_ENABLED_mkdir_FALSE= |
| 34423 | fi |
| 34424 | |
| 34425 | if $gl_gnulib_enabled_openat; then |
| 34426 | gl_GNULIB_ENABLED_openat_TRUE= |
| 34427 | gl_GNULIB_ENABLED_openat_FALSE='#' |
| 34428 | else |
| 34429 | gl_GNULIB_ENABLED_openat_TRUE='#' |
| 34430 | gl_GNULIB_ENABLED_openat_FALSE= |
| 34431 | fi |
| 34432 | |
| 34433 | if $gl_gnulib_enabled_1840129d490f3a00c8a098316d0fa345; then |
| 34434 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_TRUE= |
| 34435 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_FALSE='#' |
| 34436 | else |
| 34437 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_TRUE='#' |
| 34438 | gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_FALSE= |
| 34439 | fi |
| 34440 | |
| 34441 | if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then |
| 34442 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE= |
| 34443 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#' |
| 34444 | else |
| 34445 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#' |
| 34446 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE= |
| 34447 | fi |
| 34448 | |
| 34449 | if $gl_gnulib_enabled_pathmax; then |
| 34450 | gl_GNULIB_ENABLED_pathmax_TRUE= |
| 34451 | gl_GNULIB_ENABLED_pathmax_FALSE='#' |
| 34452 | else |
| 34453 | gl_GNULIB_ENABLED_pathmax_TRUE='#' |
| 34454 | gl_GNULIB_ENABLED_pathmax_FALSE= |
| 34455 | fi |
| 34456 | |
| 34457 | if $gl_gnulib_enabled_2f551a684aab5400633cbfd56df3bf94; then |
| 34458 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_TRUE= |
| 34459 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_FALSE='#' |
| 34460 | else |
| 34461 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_TRUE='#' |
| 34462 | gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_FALSE= |
| 34463 | fi |
| 34464 | |
| 34465 | if $gl_gnulib_enabled_bba639f0cfd658540d716f3a2ba5e68f; then |
| 34466 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_TRUE= |
| 34467 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_FALSE='#' |
| 34468 | else |
| 34469 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_TRUE='#' |
| 34470 | gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_FALSE= |
| 34471 | fi |
| 34472 | |
| 34473 | if $gl_gnulib_enabled_raise; then |
| 34474 | gl_GNULIB_ENABLED_raise_TRUE= |
| 34475 | gl_GNULIB_ENABLED_raise_FALSE='#' |
| 34476 | else |
| 34477 | gl_GNULIB_ENABLED_raise_TRUE='#' |
| 34478 | gl_GNULIB_ENABLED_raise_FALSE= |
| 34479 | fi |
| 34480 | |
| 34481 | if $gl_gnulib_enabled_rewinddir; then |
| 34482 | gl_GNULIB_ENABLED_rewinddir_TRUE= |
| 34483 | gl_GNULIB_ENABLED_rewinddir_FALSE='#' |
| 34484 | else |
| 34485 | gl_GNULIB_ENABLED_rewinddir_TRUE='#' |
| 34486 | gl_GNULIB_ENABLED_rewinddir_FALSE= |
| 34487 | fi |
| 34488 | |
| 34489 | if $gl_gnulib_enabled_d4850532688ba16d685f036076611f21; then |
| 34490 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_TRUE= |
| 34491 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_FALSE='#' |
| 34492 | else |
| 34493 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_TRUE='#' |
| 34494 | gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_FALSE= |
| 34495 | fi |
| 34496 | |
| 34497 | if $gl_gnulib_enabled_signbit; then |
| 34498 | gl_GNULIB_ENABLED_signbit_TRUE= |
| 34499 | gl_GNULIB_ENABLED_signbit_FALSE='#' |
| 34500 | else |
| 34501 | gl_GNULIB_ENABLED_signbit_TRUE='#' |
| 34502 | gl_GNULIB_ENABLED_signbit_FALSE= |
| 34503 | fi |
| 34504 | |
| 34505 | if $gl_gnulib_enabled_sigprocmask; then |
| 34506 | gl_GNULIB_ENABLED_sigprocmask_TRUE= |
| 34507 | gl_GNULIB_ENABLED_sigprocmask_FALSE='#' |
| 34508 | else |
| 34509 | gl_GNULIB_ENABLED_sigprocmask_TRUE='#' |
| 34510 | gl_GNULIB_ENABLED_sigprocmask_FALSE= |
| 34511 | fi |
| 34512 | |
| 34513 | if $gl_gnulib_enabled_stdalign; then |
| 34514 | gl_GNULIB_ENABLED_stdalign_TRUE= |
| 34515 | gl_GNULIB_ENABLED_stdalign_FALSE='#' |
| 34516 | else |
| 34517 | gl_GNULIB_ENABLED_stdalign_TRUE='#' |
| 34518 | gl_GNULIB_ENABLED_stdalign_FALSE= |
| 34519 | fi |
| 34520 | |
| 34521 | if $gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0; then |
| 34522 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_TRUE= |
| 34523 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_FALSE='#' |
| 34524 | else |
| 34525 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_TRUE='#' |
| 34526 | gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_FALSE= |
| 34527 | fi |
| 34528 | |
| 34529 | if $gl_gnulib_enabled_strerror; then |
| 34530 | gl_GNULIB_ENABLED_strerror_TRUE= |
| 34531 | gl_GNULIB_ENABLED_strerror_FALSE='#' |
| 34532 | else |
| 34533 | gl_GNULIB_ENABLED_strerror_TRUE='#' |
| 34534 | gl_GNULIB_ENABLED_strerror_FALSE= |
| 34535 | fi |
| 34536 | |
| 34537 | if $gl_gnulib_enabled_dbb57f49352be8fb86869629a254fb72; then |
| 34538 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE= |
| 34539 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE='#' |
| 34540 | else |
| 34541 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE='#' |
| 34542 | gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE= |
| 34543 | fi |
| 34544 | |
| 34545 | if $gl_gnulib_enabled_sys_random; then |
| 34546 | gl_GNULIB_ENABLED_sys_random_TRUE= |
| 34547 | gl_GNULIB_ENABLED_sys_random_FALSE='#' |
| 34548 | else |
| 34549 | gl_GNULIB_ENABLED_sys_random_TRUE='#' |
| 34550 | gl_GNULIB_ENABLED_sys_random_FALSE= |
| 34551 | fi |
| 34552 | |
| 34553 | if $gl_gnulib_enabled_tempname; then |
| 34554 | gl_GNULIB_ENABLED_tempname_TRUE= |
| 34555 | gl_GNULIB_ENABLED_tempname_FALSE='#' |
| 34556 | else |
| 34557 | gl_GNULIB_ENABLED_tempname_TRUE='#' |
| 34558 | gl_GNULIB_ENABLED_tempname_FALSE= |
| 34559 | fi |
| 34560 | |
| 34561 | if $gl_gnulib_enabled_threadlib; then |
| 34562 | gl_GNULIB_ENABLED_threadlib_TRUE= |
| 34563 | gl_GNULIB_ENABLED_threadlib_FALSE='#' |
| 34564 | else |
| 34565 | gl_GNULIB_ENABLED_threadlib_TRUE='#' |
| 34566 | gl_GNULIB_ENABLED_threadlib_FALSE= |
| 34567 | fi |
| 34568 | |
| 34569 | if $gl_gnulib_enabled_tls; then |
| 34570 | gl_GNULIB_ENABLED_tls_TRUE= |
| 34571 | gl_GNULIB_ENABLED_tls_FALSE='#' |
| 34572 | else |
| 34573 | gl_GNULIB_ENABLED_tls_TRUE='#' |
| 34574 | gl_GNULIB_ENABLED_tls_FALSE= |
| 34575 | fi |
| 34576 | |
| 34577 | if $gl_gnulib_enabled_503a4cb75d69c787103d0aa2ab7d8440; then |
| 34578 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE= |
| 34579 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE='#' |
| 34580 | else |
| 34581 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE='#' |
| 34582 | gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE= |
| 34583 | fi |
| 34584 | |
| 34585 | if $gl_gnulib_enabled_68a4501daeca58988392c7e60b4917ab; then |
| 34586 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE= |
| 34587 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE='#' |
| 34588 | else |
| 34589 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE='#' |
| 34590 | gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE= |
| 34591 | fi |
| 34592 | |
| 34593 | if $gl_gnulib_enabled_f0efff84a70f4afba30902bb8ffe9354; then |
| 34594 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE= |
| 34595 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE='#' |
| 34596 | else |
| 34597 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE='#' |
| 34598 | gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE= |
| 34599 | fi |
| 34600 | |
| 34601 | if $gl_gnulib_enabled_8bb827fe37eaccf1b97feb0c87bc92ef; then |
| 34602 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE= |
| 34603 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE='#' |
| 34604 | else |
| 34605 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE='#' |
| 34606 | gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE= |
| 34607 | fi |
| 34608 | |
| 34609 | if $gl_gnulib_enabled_48b2271240803e4879464b755748a89d; then |
| 34610 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_TRUE= |
| 34611 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_FALSE='#' |
| 34612 | else |
| 34613 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_TRUE='#' |
| 34614 | gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_FALSE= |
| 34615 | fi |
| 34616 | |
| 34617 | if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then |
| 34618 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE= |
| 34619 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#' |
| 34620 | else |
| 34621 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#' |
| 34622 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE= |
| 34623 | fi |
| 34624 | |
| 34625 | # End of code from modules |
| 34626 | |
| 34627 | |
| 34628 | |
| 34629 | |
| 34630 | |
| 34631 | |
| 34632 | |
| 34633 | |
| 34634 | |
| 34635 | |
| 34636 | |
| 34637 | gltests_libdeps= |
| 34638 | gltests_ltlibdeps= |
| 34639 | |
| 34640 | |
| 34641 | |
| 34642 | |
| 34643 | |
| 34644 | |
| 34645 | |
| 34646 | |
| 34647 | |
| 34648 | |
| 34649 | |
| 34650 | |
| 34651 | gl_source_base='tests' |
| 34652 | gl_source_base_prefix= |
| 34653 | gltests_WITNESS=IN_`echoscip-shell system . . echo. "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C trscip-shell system . . tr. abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sedscip-shell system . . sed. -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS |
| 34654 | |
| 34655 | gl_module_indicator_condition=$gltests_WITNESS |
| 34656 | |
| 34657 | |
| 34658 | |
| 34659 | |
| 34660 | |
| 34661 | |
| 34662 | |
| 34663 | |
| 34664 | |
| 34665 | |
| 34666 | |
| 34667 | |
| 34668 | |
| 34669 | LIBGNU_LIBDEPS="$gl_libdeps" |
| 34670 | |
| 34671 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 34672 | |
| 34673 | |
| 34674 | |
| 34675 | # headers |
| 34676 | |
| 34677 | |
| 34678 | |
| 34679 | |
| 34680 | |
| 34681 | if testscip-shell system . . test. yes = "$use_mmap" |
| 34682 | then : |
| 34683 | ac_fn_c_check_header_compilescip-shell shell shell-project 0.0.0 ac_fn_c_check_header_compile(). "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| 34684 | if testscip-shell system . . test. "x$ac_cv_header_sys_mman_h" = xyes |
| 34685 | then : |
| 34686 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
| 34687 | |
| 34688 | fi |
| 34689 | |
| 34690 | fi |
| 34691 | |
| 34692 | # types -- see also: (info "(autoconf) Particular Types") |
| 34693 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 34694 | printfscip-shell system . . printf. %s "checking for uid_t in sys/types.h... " >&6; } |
| 34695 | if testscip-shell system . . test. ${ac_cv_type_uid_t+y} |
| 34696 | then : |
| 34697 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 34698 | else $as_nop |
| 34699 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34700 | /* end confdefs.h. */ |
| 34701 | #include <sys/types.h> |
| 34702 | |
| 34703 | _ACEOF |
| 34704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 34705 | $EGREP "uid_t" >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 |
| 34706 | then : |
| 34707 | ac_cv_type_uid_t=yes |
| 34708 | else $as_nop |
| 34709 | ac_cv_type_uid_t=no |
| 34710 | fi |
| 34711 | rmscip-shell system . . rm. -rf conftest* |
| 34712 | |
| 34713 | fi |
| 34714 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 34715 | printfscip-shell system . . printf. "%s\n" "$ac_cv_type_uid_t" >&6; } |
| 34716 | if testscip-shell system . . test. $ac_cv_type_uid_t = no; then |
| 34717 | |
| 34718 | printfscip-shell system . . printf. "%s\n" "#define uid_t int" >>confdefs.h |
| 34719 | |
| 34720 | |
| 34721 | printfscip-shell system . . printf. "%s\n" "#define gid_t int" >>confdefs.h |
| 34722 | |
| 34723 | fi |
| 34724 | |
| 34725 | |
| 34726 | # checks for compiler characteristics |
| 34727 | |
| 34728 | # funcs |
| 34729 | |
| 34730 | |
| 34731 | |
| 34732 | |
| 34733 | |
| 34734 | |
| 34735 | if testscip-shell system . . test. "x$ac_cv_func_fork" = xyes; then |
| 34736 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 34737 | printfscip-shell system . . printf. %s "checking for working fork... " >&6; } |
| 34738 | if testscip-shell system . . test. ${ac_cv_func_fork_works+y} |
| 34739 | then : |
| 34740 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 34741 | else $as_nop |
| 34742 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 34743 | then : |
| 34744 | ac_cv_func_fork_works=cross |
| 34745 | else $as_nop |
| 34746 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34747 | /* end confdefs.h. */ |
| 34748 | $ac_includes_default |
| 34749 | int |
| 34750 | main (void) |
| 34751 | { |
| 34752 | |
| 34753 | /* By Ruediger Kuhlmann. */ |
| 34754 | return fork () < 0; |
| 34755 | |
| 34756 | ; |
| 34757 | return 0; |
| 34758 | } |
| 34759 | _ACEOF |
| 34760 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 34761 | then : |
| 34762 | ac_cv_func_fork_works=yes |
| 34763 | else $as_nop |
| 34764 | ac_cv_func_fork_works=no |
| 34765 | fi |
| 34766 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 34767 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34768 | fi |
| 34769 | |
| 34770 | fi |
| 34771 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 34772 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_fork_works" >&6; } |
| 34773 | |
| 34774 | else |
| 34775 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 34776 | fi |
| 34777 | if testscip-shell system . . test. "x$ac_cv_func_fork_works" = xcross; then |
| 34778 | case $host in |
| 34779 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 34780 | # Override, as these systems have only a dummy fork() stub |
| 34781 | ac_cv_func_fork_works=no |
| 34782 | ;; |
| 34783 | *) |
| 34784 | ac_cv_func_fork_works=yes |
| 34785 | ;; |
| 34786 | esac |
| 34787 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 34788 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 34789 | fi |
| 34790 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 34791 | if testscip-shell system . . test. "x$ac_cv_func_vfork" = xyes; then |
| 34792 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 34793 | printfscip-shell system . . printf. %s "checking for working vfork... " >&6; } |
| 34794 | if testscip-shell system . . test. ${ac_cv_func_vfork_works+y} |
| 34795 | then : |
| 34796 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 34797 | else $as_nop |
| 34798 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 34799 | then : |
| 34800 | ac_cv_func_vfork_works=cross |
| 34801 | else $as_nop |
| 34802 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34803 | /* end confdefs.h. */ |
| 34804 | /* Thanks to Paul Eggert for this test. */ |
| 34805 | $ac_includes_default |
| 34806 | #include <signal.h> |
| 34807 | #include <sys/wait.h> |
| 34808 | #ifdef HAVE_VFORK_H |
| 34809 | # include <vfork.h> |
| 34810 | #endif |
| 34811 | |
| 34812 | static void |
| 34813 | do_nothing (int sig) |
| 34814 | { |
| 34815 | (void) sig; |
| 34816 | } |
| 34817 | |
| 34818 | /* On some sparc systems, changes by the child to local and incoming |
| 34819 | argument registers are propagated back to the parent. The compiler |
| 34820 | is told about this with #include <vfork.h>, but some compilers |
| 34821 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 34822 | static variable whose address is put into a register that is |
| 34823 | clobbered by the vfork. */ |
| 34824 | static void |
| 34825 | sparc_address_test (int arg) |
| 34826 | { |
| 34827 | static pid_t child; |
| 34828 | if (!child) { |
| 34829 | child = vfork (); |
| 34830 | if (child < 0) { |
| 34831 | perror ("vfork"); |
| 34832 | _exit(2); |
| 34833 | } |
| 34834 | if (!child) { |
| 34835 | arg = getpid(); |
| 34836 | write(-1, "", 0); |
| 34837 | _exit (arg); |
| 34838 | } |
| 34839 | } |
| 34840 | } |
| 34841 | |
| 34842 | int |
| 34843 | main (void) |
| 34844 | { |
| 34845 | pid_t parent = getpid (); |
| 34846 | pid_t child; |
| 34847 | |
| 34848 | sparc_address_test (0); |
| 34849 | |
| 34850 | /* On Solaris 2.4, changes by the child to the signal handler |
| 34851 | also munge signal handlers in the parent. To detect this, |
| 34852 | start by putting the parent's handler in a known state. */ |
| 34853 | signal (SIGTERM, SIG_DFL); |
| 34854 | |
| 34855 | child = vfork (); |
| 34856 | |
| 34857 | if (child == 0) { |
| 34858 | /* Here is another test for sparc vfork register problems. This |
| 34859 | test uses lots of local variables, at least as many local |
| 34860 | variables as main has allocated so far including compiler |
| 34861 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 34862 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 34863 | reuse the register of parent for one of the local variables, |
| 34864 | since it will think that parent can't possibly be used any more |
| 34865 | in this routine. Assigning to the local variable will thus |
| 34866 | munge parent in the parent process. */ |
| 34867 | pid_t |
| 34868 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 34869 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 34870 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 34871 | use the same hardware register for all 8 local variables. */ |
| 34872 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 34873 | || p != p5 || p != p6 || p != p7) |
| 34874 | _exit(1); |
| 34875 | |
| 34876 | /* Alter the child's signal handler. */ |
| 34877 | if (signal (SIGTERM, do_nothing) != SIG_DFL) |
| 34878 | _exit(1); |
| 34879 | |
| 34880 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 34881 | from child file descriptors. If the child closes a descriptor |
| 34882 | before it execs or exits, this munges the parent's descriptor |
| 34883 | as well. Test for this by closing stdout in the child. */ |
| 34884 | _exit(close(fileno(stdout)) != 0); |
| 34885 | } else { |
| 34886 | int status; |
| 34887 | struct stat st; |
| 34888 | |
| 34889 | while (wait(&status) != child) |
| 34890 | ; |
| 34891 | return ( |
| 34892 | /* Was there some problem with vforking? */ |
| 34893 | child < 0 |
| 34894 | |
| 34895 | /* Did the child munge the parent's signal handler? */ |
| 34896 | || signal (SIGTERM, SIG_DFL) != SIG_DFL |
| 34897 | |
| 34898 | /* Did the child fail? (This shouldn't happen.) */ |
| 34899 | || status |
| 34900 | |
| 34901 | /* Did the vfork/compiler bug occur? */ |
| 34902 | || parent != getpid() |
| 34903 | |
| 34904 | /* Did the file descriptor bug occur? */ |
| 34905 | || fstat(fileno(stdout), &st) != 0 |
| 34906 | ); |
| 34907 | } |
| 34908 | } |
| 34909 | _ACEOF |
| 34910 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 34911 | then : |
| 34912 | ac_cv_func_vfork_works=yes |
| 34913 | else $as_nop |
| 34914 | ac_cv_func_vfork_works=no |
| 34915 | fi |
| 34916 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 34917 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34918 | fi |
| 34919 | |
| 34920 | fi |
| 34921 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 34922 | printfscip-shell system . . printf. "%s\n" "$ac_cv_func_vfork_works" >&6; } |
| 34923 | |
| 34924 | fi; |
| 34925 | if testscip-shell system . . test. "x$ac_cv_func_fork_works" = xcross; then |
| 34926 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 34927 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 34928 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 34929 | fi |
| 34930 | |
| 34931 | if testscip-shell system . . test. "x$ac_cv_func_vfork_works" = xyes; then |
| 34932 | |
| 34933 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 34934 | |
| 34935 | else |
| 34936 | |
| 34937 | printfscip-shell system . . printf. "%s\n" "#define vfork fork" >>confdefs.h |
| 34938 | |
| 34939 | fi |
| 34940 | if testscip-shell system . . test. "x$ac_cv_func_fork_works" = xyes; then |
| 34941 | |
| 34942 | printfscip-shell system . . printf. "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 34943 | |
| 34944 | fi |
| 34945 | |
| 34946 | |
| 34947 | |
| 34948 | |
| 34949 | |
| 34950 | if testscip-shell system . . test. yes = "$use_mmap" |
| 34951 | then : |
| 34952 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "mmap" "ac_cv_func_mmap" |
| 34953 | if testscip-shell system . . test. "x$ac_cv_func_mmap" = xyes |
| 34954 | then : |
| 34955 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
| 34956 | |
| 34957 | fi |
| 34958 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "madvise" "ac_cv_func_madvise" |
| 34959 | if testscip-shell system . . test. "x$ac_cv_func_madvise" = xyes |
| 34960 | then : |
| 34961 | printfscip-shell system . . printf. "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h |
| 34962 | |
| 34963 | fi |
| 34964 | |
| 34965 | fi |
| 34966 | if testscip-shell system . . test. xsetreuid = x"$enable_suid" |
| 34967 | then : |
| 34968 | enable_suid=yes |
| 34969 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "setreuid" "ac_cv_func_setreuid" |
| 34970 | if testscip-shell system . . test. "x$ac_cv_func_setreuid" = xyes |
| 34971 | then : |
| 34972 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
| 34973 | |
| 34974 | fi |
| 34975 | |
| 34976 | fi |
| 34977 | if testscip-shell system . . test. yes = "$enable_suid" |
| 34978 | then : |
| 34979 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "getuid" "ac_cv_func_getuid" |
| 34980 | if testscip-shell system . . test. "x$ac_cv_func_getuid" = xyes |
| 34981 | then : |
| 34982 | printfscip-shell system . . printf. "%s\n" "#define HAVE_GETUID 1" >>confdefs.h |
| 34983 | |
| 34984 | fi |
| 34985 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "seteuid" "ac_cv_func_seteuid" |
| 34986 | if testscip-shell system . . test. "x$ac_cv_func_seteuid" = xyes |
| 34987 | then : |
| 34988 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
| 34989 | |
| 34990 | fi |
| 34991 | ac_fn_c_check_funcscip-shell shell shell-project 0.0.0 ac_fn_c_check_func(). "$LINENO" "setuid" "ac_cv_func_setuid" |
| 34992 | if testscip-shell system . . test. "x$ac_cv_func_setuid" = xyes |
| 34993 | then : |
| 34994 | printfscip-shell system . . printf. "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
| 34995 | |
| 34996 | fi |
| 34997 | |
| 34998 | fi |
| 34999 | |
| 35000 | # system services |
| 35001 | |
| 35002 | # specific behaviors (that unfortunately require running a program to check) |
| 35003 | |
| 35004 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tinysym init includes NUL" >&5 |
| 35005 | printfscip-shell system . . printf. %s "checking if tinysym init includes NUL... " >&6; } |
| 35006 | if testscip-shell system . . test. ${rcs_cv_tinyinit_ok+y} |
| 35007 | then : |
| 35008 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35009 | else $as_nop |
| 35010 | |
| 35011 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35012 | then : |
| 35013 | res=no |
| 35014 | else $as_nop |
| 35015 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35016 | /* end confdefs.h. */ |
| 35017 | |
| 35018 | #include <stdint.h> |
| 35019 | |
| 35020 | struct tinysym |
| 35021 | { |
| 35022 | uint8_t len; |
| 35023 | uint8_t bytes[]; |
| 35024 | }; |
| 35025 | |
| 35026 | #define TINY(x) (tiny_ ## x) |
| 35027 | #define TINY_DECL(x) const struct tinysym (TINY (x)) |
| 35028 | #define TINY_INIT(x) { .len = sizeof (x) - 1, .bytes = x } |
| 35029 | #define TINYK(x) TINY_DECL (x) = TINY_INIT (#x) |
| 35030 | |
| 35031 | /* Apparently, SunOS 5.11 compilers cc and c99 omit the '\0' |
| 35032 | from these data initialization forms. */ |
| 35033 | TINYK (access); |
| 35034 | TINYK (integrity); |
| 35035 | |
| 35036 | int |
| 35037 | main (void) |
| 35038 | { |
| 35039 | |
| 35040 | const struct tinysym *one = &TINY (access); |
| 35041 | const struct tinysym *two = &TINY (integrity); |
| 35042 | |
| 35043 | if (6 != one->len || '\0' != one->bytes[6]) |
| 35044 | return 1; |
| 35045 | if (9 != two->len || '\0' != two->bytes[9]) |
| 35046 | return 2; |
| 35047 | |
| 35048 | ; |
| 35049 | return 0; |
| 35050 | } |
| 35051 | _ACEOF |
| 35052 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35053 | then : |
| 35054 | res=yes |
| 35055 | else $as_nop |
| 35056 | res=no |
| 35057 | fi |
| 35058 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35059 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35060 | fi |
| 35061 | |
| 35062 | rcs_cv_tinyinit_ok=$res |
| 35063 | |
| 35064 | fi |
| 35065 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_tinyinit_ok" >&5 |
| 35066 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_tinyinit_ok" >&6; } |
| 35067 | if testscip-shell system . . test. no = $rcs_cv_tinyinit_ok |
| 35068 | then : |
| 35069 | cbool=1 |
| 35070 | else $as_nop |
| 35071 | cbool=0 |
| 35072 | fi |
| 35073 | |
| 35074 | printfscip-shell system . . printf. "%s\n" "#define TINY_INIT_NEEDS_EXPLICIT_NUL $cbool" >>confdefs.h |
| 35075 | |
| 35076 | |
| 35077 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`fopen (F, \"w+\")' truncates" >&5 |
| 35078 | printfscip-shell system . . printf. %s "checking if \`fopen (F, \"w+\")' truncates... " >&6; } |
| 35079 | if testscip-shell system . . test. ${rcs_cv_fopen_truncates+y} |
| 35080 | then : |
| 35081 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35082 | else $as_nop |
| 35083 | |
| 35084 | echoscip-shell system . . echo. nonempty > conftest.data |
| 35085 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35086 | then : |
| 35087 | res=no |
| 35088 | else $as_nop |
| 35089 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35090 | /* end confdefs.h. */ |
| 35091 | |
| 35092 | #include <stdio.h> |
| 35093 | |
| 35094 | int |
| 35095 | main (void) |
| 35096 | { |
| 35097 | |
| 35098 | return ! fopen ("conftest.data", "w+"); |
| 35099 | |
| 35100 | ; |
| 35101 | return 0; |
| 35102 | } |
| 35103 | |
| 35104 | _ACEOF |
| 35105 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35106 | then : |
| 35107 | res=yes |
| 35108 | else $as_nop |
| 35109 | res=no |
| 35110 | fi |
| 35111 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35112 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35113 | fi |
| 35114 | |
| 35115 | testscip-shell system . . test. yes = $res && testscip-shell system . . test. ! -s conftest.data || res=no |
| 35116 | rcs_cv_fopen_truncates=$res |
| 35117 | |
| 35118 | fi |
| 35119 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_fopen_truncates" >&5 |
| 35120 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_fopen_truncates" >&6; } |
| 35121 | if testscip-shell system . . test. no = $rcs_cv_fopen_truncates |
| 35122 | then : |
| 35123 | cbool=1 |
| 35124 | else $as_nop |
| 35125 | cbool=0 |
| 35126 | fi |
| 35127 | |
| 35128 | printfscip-shell system . . printf. "%s\n" "#define BAD_FOPEN_WPLUS $cbool" >>confdefs.h |
| 35129 | |
| 35130 | |
| 35131 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`write' after \`creat (F, 0)' works" >&5 |
| 35132 | printfscip-shell system . . printf. %s "checking if \`write' after \`creat (F, 0)' works... " >&6; } |
| 35133 | if testscip-shell system . . test. ${rcs_cv_wac_ok+y} |
| 35134 | then : |
| 35135 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35136 | else $as_nop |
| 35137 | |
| 35138 | rmscip-shell system . . rm. -f conftest.data |
| 35139 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35140 | then : |
| 35141 | res=no |
| 35142 | else $as_nop |
| 35143 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35144 | /* end confdefs.h. */ |
| 35145 | |
| 35146 | #include <unistd.h> |
| 35147 | #include <sys/types.h> |
| 35148 | #include <sys/stat.h> |
| 35149 | #include <fcntl.h> |
| 35150 | #if defined O_CREAT && defined O_WRONLY |
| 35151 | # define creat0(f) open(f, O_CREAT|O_WRONLY, 0) |
| 35152 | #else |
| 35153 | # define creat0(f) creat(f, 0) |
| 35154 | #endif |
| 35155 | char buf[17000]; |
| 35156 | |
| 35157 | int |
| 35158 | main (void) |
| 35159 | { |
| 35160 | |
| 35161 | int f; |
| 35162 | return (0 > (f = creat0 ("conftest.data")) |
| 35163 | || sizeof (buf) != write (f, buf, sizeof (buf)) |
| 35164 | || 0 > close (f)); |
| 35165 | |
| 35166 | ; |
| 35167 | return 0; |
| 35168 | } |
| 35169 | |
| 35170 | _ACEOF |
| 35171 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35172 | then : |
| 35173 | res=yes |
| 35174 | else $as_nop |
| 35175 | res=no |
| 35176 | fi |
| 35177 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35178 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35179 | fi |
| 35180 | |
| 35181 | if testscip-shell system . . test. yes = "$res" \ |
| 35182 | && testscip-shell system . . test. -f conftest.data \ |
| 35183 | && testscip-shell system . . test. ! -w conftest.data |
| 35184 | then : |
| 35185 | |
| 35186 | else $as_nop |
| 35187 | res=no |
| 35188 | fi |
| 35189 | rcs_cv_wac_ok=$res |
| 35190 | |
| 35191 | fi |
| 35192 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_wac_ok" >&5 |
| 35193 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_wac_ok" >&6; } |
| 35194 | if testscip-shell system . . test. no = $rcs_cv_wac_ok |
| 35195 | then : |
| 35196 | cbool=1 |
| 35197 | else $as_nop |
| 35198 | cbool=0 |
| 35199 | fi |
| 35200 | |
| 35201 | printfscip-shell system . . printf. "%s\n" "#define BAD_CREAT0 $cbool" >>confdefs.h |
| 35202 | |
| 35203 | |
| 35204 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`unlink' works on unwritable files" >&5 |
| 35205 | printfscip-shell system . . printf. %s "checking if \`unlink' works on unwritable files... " >&6; } |
| 35206 | if testscip-shell system . . test. ${rcs_cv_unlink_mw_ok+y} |
| 35207 | then : |
| 35208 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35209 | else $as_nop |
| 35210 | |
| 35211 | touchscip-shell system . . touch. conftest.data |
| 35212 | chmodscip-shell system . . chmod. -w conftest.data |
| 35213 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35214 | then : |
| 35215 | res=no |
| 35216 | else $as_nop |
| 35217 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35218 | /* end confdefs.h. */ |
| 35219 | |
| 35220 | #include <unistd.h> |
| 35221 | |
| 35222 | int |
| 35223 | main (void) |
| 35224 | { |
| 35225 | |
| 35226 | return 0 > unlink ("conftest.data"); |
| 35227 | |
| 35228 | ; |
| 35229 | return 0; |
| 35230 | } |
| 35231 | |
| 35232 | _ACEOF |
| 35233 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35234 | then : |
| 35235 | res=yes |
| 35236 | else $as_nop |
| 35237 | res=no |
| 35238 | fi |
| 35239 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35240 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35241 | fi |
| 35242 | |
| 35243 | testscip-shell system . . test. yes = $res && testscip-shell system . . test. -f conftest.data && res=no |
| 35244 | rcs_cv_unlink_mw_ok=$res |
| 35245 | |
| 35246 | fi |
| 35247 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_unlink_mw_ok" >&5 |
| 35248 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_unlink_mw_ok" >&6; } |
| 35249 | if testscip-shell system . . test. no = $rcs_cv_unlink_mw_ok |
| 35250 | then : |
| 35251 | cbool=1 |
| 35252 | else $as_nop |
| 35253 | cbool=0 |
| 35254 | fi |
| 35255 | |
| 35256 | printfscip-shell system . . printf. "%s\n" "#define BAD_UNLINK $cbool" >>confdefs.h |
| 35257 | |
| 35258 | |
| 35259 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`rename' handles unwritable source/target" >&5 |
| 35260 | printfscip-shell system . . printf. %s "checking if \`rename' handles unwritable source/target... " >&6; } |
| 35261 | if testscip-shell system . . test. ${rcs_cv_rename_mw+y} |
| 35262 | then : |
| 35263 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35264 | else $as_nop |
| 35265 | |
| 35266 | rmscip-shell system . . rm. -f conftest-A conftest-B && echoscip-shell system . . echo. A > conftest-A |
| 35267 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35268 | then : |
| 35269 | res=hopeless |
| 35270 | else $as_nop |
| 35271 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35272 | /* end confdefs.h. */ |
| 35273 | |
| 35274 | #include <unistd.h> |
| 35275 | |
| 35276 | int |
| 35277 | main (void) |
| 35278 | { |
| 35279 | |
| 35280 | return 0 > rename ("conftest-A", "conftest-B"); |
| 35281 | |
| 35282 | ; |
| 35283 | return 0; |
| 35284 | } |
| 35285 | |
| 35286 | _ACEOF |
| 35287 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35288 | then : |
| 35289 | |
| 35290 | if testscip-shell system . . test. ! -f conftest-A && testscip-shell system . . test. -f conftest-B |
| 35291 | then : |
| 35292 | |
| 35293 | res=ok |
| 35294 | # unwritable source |
| 35295 | rmscip-shell system . . rm. -f conftest-A conftest-B && echoscip-shell system . . echo. A > conftest-A ; chmodscip-shell system . . chmod. -w conftest-A |
| 35296 | ./conftest$EXEEXT && testscip-shell system . . test. ! -f conftest-A && testscip-shell system . . test. -f conftest-B && as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). res ,source=ok |
| 35297 | # unwritable target |
| 35298 | rmscip-shell system . . rm. -f conftest-A conftest-B && echoscip-shell system . . echo. A > conftest-A ; echoscip-shell system . . echo. B > conftest-B ; chmodscip-shell system . . chmod. -w conftest-B |
| 35299 | ./conftest$EXEEXT && testscip-shell system . . test. ! -f conftest-A && testscip-shell system . . test. -f conftest-B && as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). res ,target=ok |
| 35300 | |
| 35301 | fi |
| 35302 | |
| 35303 | else $as_nop |
| 35304 | res=hopeless |
| 35305 | fi |
| 35306 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35307 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35308 | fi |
| 35309 | |
| 35310 | rcs_cv_rename_mw=$res |
| 35311 | |
| 35312 | fi |
| 35313 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_rename_mw" >&5 |
| 35314 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_rename_mw" >&6; } |
| 35315 | rename_source=no |
| 35316 | rename_target=no |
| 35317 | if testscip-shell system . . test. hopeless = $rcs_cv_rename_mw |
| 35318 | then : |
| 35319 | |
| 35320 | else $as_nop |
| 35321 | eval `echoscip-shell system . . echo. $rcs_cv_rename_mw | sedscip-shell system . . sed. 's/^..//;s/,/ rename_/g'` |
| 35322 | fi |
| 35323 | if testscip-shell system . . test. no = $rename_source |
| 35324 | then : |
| 35325 | cbool=1 |
| 35326 | else $as_nop |
| 35327 | cbool=0 |
| 35328 | fi |
| 35329 | |
| 35330 | printfscip-shell system . . printf. "%s\n" "#define BAD_A_RENAME $cbool" >>confdefs.h |
| 35331 | |
| 35332 | if testscip-shell system . . test. no = $rename_target |
| 35333 | then : |
| 35334 | cbool=1 |
| 35335 | else $as_nop |
| 35336 | cbool=0 |
| 35337 | fi |
| 35338 | |
| 35339 | printfscip-shell system . . printf. "%s\n" "#define BAD_B_RENAME $cbool" >>confdefs.h |
| 35340 | |
| 35341 | |
| 35342 | |
| 35343 | if testscip-shell system . . test. yes = "$use_mmap" && |
| 35344 | testscip-shell system . . test. yes = "$ac_cv_func_mmap" && |
| 35345 | testscip-shell system . . test. yes = "$ac_cv_header_sys_mman_h" |
| 35346 | then : |
| 35347 | |
| 35348 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking that \`mmap' is sane" >&5 |
| 35349 | printfscip-shell system . . printf. %s "checking that \`mmap' is sane... " >&6; } |
| 35350 | if testscip-shell system . . test. ${rcs_cv_sane_mmap+y} |
| 35351 | then : |
| 35352 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35353 | else $as_nop |
| 35354 | |
| 35355 | res=yes |
| 35356 | # AIX 3.2.0 read-only mmap updates last-modified time of file! |
| 35357 | case $cross_compiling in #( |
| 35358 | no) : |
| 35359 | case $build_os in #( |
| 35360 | *-aix* | aix*) : |
| 35361 | |
| 35362 | echoscip-shell system . . echo. nonempty > conftest.data |
| 35363 | sleepscip-shell system . . sleep. 1 |
| 35364 | echoscip-shell system . . echo. later > conftest1 |
| 35365 | sleepscip-shell system . . sleep. 1 |
| 35366 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35367 | then : |
| 35368 | { { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 35369 | printfscip-shell system . . printf. "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 35370 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "cannot run test program while cross compiling |
| 35371 | See \`config.log' for more details" "$LINENO" 5; } |
| 35372 | else $as_nop |
| 35373 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35374 | /* end confdefs.h. */ |
| 35375 | |
| 35376 | #include <stdio.h> |
| 35377 | #include <fcntl.h> |
| 35378 | #include <sys/types.h> |
| 35379 | #include <sys/stat.h> |
| 35380 | #include <sys/mman.h> |
| 35381 | |
| 35382 | int |
| 35383 | main (void) |
| 35384 | { |
| 35385 | |
| 35386 | struct stat b; |
| 35387 | char *a; |
| 35388 | int fd, fc; |
| 35389 | |
| 35390 | fd = open ("conftest.data", O_RDONLY); |
| 35391 | fstat (fd, &b); |
| 35392 | a = mmap (NULL, b.st_size, PROT_READ, MAP_SHARED, fd, 0); |
| 35393 | if ((char *) MAP_FAILED == a) |
| 35394 | { |
| 35395 | perror ("mmap"); |
| 35396 | return 1; |
| 35397 | } |
| 35398 | /* Finish. */ |
| 35399 | |
| 35400 | |
| 35401 | ; |
| 35402 | return 0; |
| 35403 | } |
| 35404 | _ACEOF |
| 35405 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35406 | then : |
| 35407 | |
| 35408 | fi |
| 35409 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35410 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35411 | fi |
| 35412 | |
| 35413 | testscip-shell system . . test. conftest1 -nt conftest.data || res=no |
| 35414 | ;; #( |
| 35415 | *) : |
| 35416 | ;; |
| 35417 | esac ;; #( |
| 35418 | *) : |
| 35419 | res=no ;; |
| 35420 | esac |
| 35421 | rcs_cv_sane_mmap=$res |
| 35422 | |
| 35423 | fi |
| 35424 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_sane_mmap" >&5 |
| 35425 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_sane_mmap" >&6; } |
| 35426 | if testscip-shell system . . test. yes = "$rcs_cv_sane_mmap" |
| 35427 | then : |
| 35428 | |
| 35429 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking signal received if referencing nonexistent part of mmapped file" >&5 |
| 35430 | printfscip-shell system . . printf. %s "checking signal received if referencing nonexistent part of mmapped file... " >&6; } |
| 35431 | if testscip-shell system . . test. ${rcs_cv_mmap_signal+y} |
| 35432 | then : |
| 35433 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35434 | else $as_nop |
| 35435 | |
| 35436 | res=SIGBUS |
| 35437 | echoscip-shell system . . echo. nonempty > conftest.data |
| 35438 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35439 | then : |
| 35440 | res=unknown |
| 35441 | else $as_nop |
| 35442 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35443 | /* end confdefs.h. */ |
| 35444 | |
| 35445 | #include <stdio.h> |
| 35446 | #include <fcntl.h> |
| 35447 | #include <sys/types.h> |
| 35448 | #include <sys/stat.h> |
| 35449 | #include <sys/mman.h> |
| 35450 | |
| 35451 | int |
| 35452 | main (void) |
| 35453 | { |
| 35454 | |
| 35455 | struct stat b; |
| 35456 | char *a; |
| 35457 | int fd, fc; |
| 35458 | |
| 35459 | fd = open ("conftest.data", O_RDONLY); |
| 35460 | fstat (fd, &b); |
| 35461 | a = mmap (NULL, b.st_size, PROT_READ, MAP_SHARED, fd, 0); |
| 35462 | if ((char *) MAP_FAILED == a) |
| 35463 | { |
| 35464 | perror ("mmap"); |
| 35465 | return 1; |
| 35466 | } |
| 35467 | /* Finish. */ |
| 35468 | fc = creat ("conftest.data", 0); |
| 35469 | /* Refer to nonexistent storage, causing a signal. */ |
| 35470 | printf ("%d %c\n", fc, *a); |
| 35471 | |
| 35472 | |
| 35473 | ; |
| 35474 | return 0; |
| 35475 | } |
| 35476 | _ACEOF |
| 35477 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35478 | then : |
| 35479 | res=unknown |
| 35480 | else $as_nop |
| 35481 | res=$? |
| 35482 | fi |
| 35483 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35484 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35485 | fi |
| 35486 | |
| 35487 | # If there is no signal, better to disable mmap entirely. |
| 35488 | if testscip-shell system . . test. unknown = $res |
| 35489 | then : |
| 35490 | res=0 |
| 35491 | elif testscip-shell system . . test. SIGBUS = $res |
| 35492 | then : |
| 35493 | : |
| 35494 | elif testscip-shell system . . test. 128 -ge $res |
| 35495 | then : |
| 35496 | res=SIGBUS |
| 35497 | else $as_nop |
| 35498 | as_fn_arithscip-shell shell shell-project 0.0.0 as_fn_arith(). $res - 128 && res=$as_val |
| 35499 | fi |
| 35500 | rcs_cv_mmap_signal=$res |
| 35501 | |
| 35502 | fi |
| 35503 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_mmap_signal" >&5 |
| 35504 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_mmap_signal" >&6; } |
| 35505 | |
| 35506 | fi |
| 35507 | fi |
| 35508 | |
| 35509 | printfscip-shell system . . printf. "%s\n" "#define MMAP_SIGNAL ${rcs_cv_mmap_signal-0}" >>confdefs.h |
| 35510 | |
| 35511 | |
| 35512 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`wait' can handle ignored SIGCHLD" >&5 |
| 35513 | printfscip-shell system . . printf. %s "checking if \`wait' can handle ignored SIGCHLD... " >&6; } |
| 35514 | if testscip-shell system . . test. ${rcs_cv_tolerant_wait+y} |
| 35515 | then : |
| 35516 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35517 | else $as_nop |
| 35518 | |
| 35519 | if testscip-shell system . . test. "$cross_compiling" = yes |
| 35520 | then : |
| 35521 | res=no |
| 35522 | else $as_nop |
| 35523 | catscip-shell system . . cat. confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35524 | /* end confdefs.h. */ |
| 35525 | |
| 35526 | #include <sys/types.h> |
| 35527 | #include <errno.h> |
| 35528 | #include <signal.h> |
| 35529 | #include <sys/wait.h> |
| 35530 | #include <unistd.h> |
| 35531 | |
| 35532 | int |
| 35533 | main (void) |
| 35534 | { |
| 35535 | |
| 35536 | signal (SIGCHLD, SIG_IGN); |
| 35537 | #ifdef HAVE_WORKING_FORK |
| 35538 | { |
| 35539 | int status; |
| 35540 | pid_t p = fork (); |
| 35541 | if (p < 0) |
| 35542 | { |
| 35543 | perror ("fork"); |
| 35544 | return 2; |
| 35545 | } |
| 35546 | if (!p) |
| 35547 | _exit (0); |
| 35548 | while (wait (&status) != p) |
| 35549 | { |
| 35550 | if (ECHILD == errno) |
| 35551 | return 1; |
| 35552 | if (EINTR != errno) |
| 35553 | { |
| 35554 | perror ("wait"); |
| 35555 | return 2; |
| 35556 | } |
| 35557 | } |
| 35558 | } |
| 35559 | #else |
| 35560 | if (0 > system ("true")) |
| 35561 | return 1; |
| 35562 | #endif |
| 35563 | |
| 35564 | ; |
| 35565 | return 0; |
| 35566 | } |
| 35567 | _ACEOF |
| 35568 | if ac_fn_c_try_runscip-shell shell shell-project 0.0.0 ac_fn_c_try_run(). "$LINENO" |
| 35569 | then : |
| 35570 | res=yes |
| 35571 | else $as_nop |
| 35572 | res=no |
| 35573 | fi |
| 35574 | rmscip-shell system . . rm. -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35575 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35576 | fi |
| 35577 | |
| 35578 | rcs_cv_tolerant_wait=$res |
| 35579 | |
| 35580 | fi |
| 35581 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_tolerant_wait" >&5 |
| 35582 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_tolerant_wait" >&6; } |
| 35583 | if testscip-shell system . . test. no = $rcs_cv_tolerant_wait |
| 35584 | then : |
| 35585 | cbool=1 |
| 35586 | else $as_nop |
| 35587 | cbool=0 |
| 35588 | fi |
| 35589 | |
| 35590 | printfscip-shell system . . printf. "%s\n" "#define BAD_WAIT_IF_SIGCHLD_IGNORED $cbool" >>confdefs.h |
| 35591 | |
| 35592 | |
| 35593 | # miscellaneous |
| 35594 | |
| 35595 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking if env var LOGNAME is readonly" >&5 |
| 35596 | printfscip-shell system . . printf. %s "checking if env var LOGNAME is readonly... " >&6; } |
| 35597 | if testscip-shell system . . test. ${rcs_cv_LOGNAME_ro+y} |
| 35598 | then : |
| 35599 | printfscip-shell system . . printf. %s "(cached) " >&6 |
| 35600 | else $as_nop |
| 35601 | |
| 35602 | if testscip-shell system . . test. yes = "$cross_compiling" |
| 35603 | then : |
| 35604 | rcs_cv_LOGNAME_ro=no |
| 35605 | else $as_nop |
| 35606 | |
| 35607 | saved_LOGNAME="$LOGNAME" |
| 35608 | LOGNAME=x"$LOGNAME" 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 35609 | if testscip-shell system . . test. "$LOGNAME" = "$saved_LOGNAME" |
| 35610 | then : |
| 35611 | rcs_cv_LOGNAME_ro=yes |
| 35612 | else $as_nop |
| 35613 | rcs_cv_LOGNAME_ro=no |
| 35614 | LOGNAME="$saved_LOGNAME" |
| 35615 | fi |
| 35616 | |
| 35617 | fi |
| 35618 | fi |
| 35619 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rcs_cv_LOGNAME_ro" >&5 |
| 35620 | printfscip-shell system . . printf. "%s\n" "$rcs_cv_LOGNAME_ro" >&6; } |
| 35621 | if testscip-shell system . . test. yes = $rcs_cv_LOGNAME_ro |
| 35622 | then : |
| 35623 | cbool=1 |
| 35624 | else $as_nop |
| 35625 | cbool=0 |
| 35626 | fi |
| 35627 | |
| 35628 | printfscip-shell system . . printf. "%s\n" "#define USER_OVER_LOGNAME $cbool" >>confdefs.h |
| 35629 | |
| 35630 | |
| 35631 | if testscip-shell system . . test. yes = "$GCC" |
| 35632 | then : |
| 35633 | |
| 35634 | else $as_nop |
| 35635 | enable_coverage=no |
| 35636 | fi |
| 35637 | if testscip-shell system . . test. yes = "$enable_coverage" |
| 35638 | then : |
| 35639 | CFLAGS="$CFLAGS --coverage" |
| 35640 | fi |
| 35641 | if testscip-shell system . . test. yes = $enable_coverage |
| 35642 | then : |
| 35643 | cbool=1 |
| 35644 | else $as_nop |
| 35645 | cbool=0 |
| 35646 | fi |
| 35647 | |
| 35648 | printfscip-shell system . . printf. "%s\n" "#define USE_NORMAL_EXIT $cbool" >>confdefs.h |
| 35649 | |
| 35650 | |
| 35651 | if testscip-shell system . . test. 1 = `exprscip-shell system . . expr. "$ac_pwd" : '/*scip-shell filesystem . . `/*`.'` |
| 35652 | then : |
| 35653 | woe=no |
| 35654 | else $as_nop |
| 35655 | woe=yes |
| 35656 | fi |
| 35657 | if testscip-shell system . . test. yes = $woe |
| 35658 | then : |
| 35659 | cbool=1 |
| 35660 | else $as_nop |
| 35661 | cbool=0 |
| 35662 | fi |
| 35663 | |
| 35664 | printfscip-shell system . . printf. "%s\n" "#define WOE $cbool" >>confdefs.h |
| 35665 | |
| 35666 | |
| 35667 | |
| 35668 | |
| 35669 | if testscip-shell system . . test. yes = $woe |
| 35670 | then : |
| 35671 | ABSFILENAMEGLOB='?:*' |
| 35672 | else $as_nop |
| 35673 | ABSFILENAMEGLOB='/*scip-shell filesystem . . `/*`.' |
| 35674 | fi |
| 35675 | |
| 35676 | |
| 35677 | # Encourage user feedback for weird systems. |
| 35678 | warn_weird_p=yes |
| 35679 | |
| 35680 | |
| 35681 | |
| 35682 | if testscip-shell system . . test. yes = "$warn_weird_p" |
| 35683 | then : |
| 35684 | |
| 35685 | if testscip-shell system . . test. yes = "$ac_cv_header_utime_h" && |
| 35686 | testscip-shell system . . test. yes = "$ac_cv_header_pwd_h" && |
| 35687 | testscip-shell system . . test. yes = "$ac_cv_func_fchmod" && |
| 35688 | testscip-shell system . . test. yes = "$rcs_cv_fopen_truncates" && |
| 35689 | testscip-shell system . . test. yes = "$rcs_cv_unlink_mw_ok" && |
| 35690 | testscip-shell system . . test. yes = "$rcs_cv_wac_ok" |
| 35691 | then : |
| 35692 | : |
| 35693 | else $as_nop |
| 35694 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your platform might be desupported in the future: |
| 35695 | ${ac_cv_header_utime_h-(unset)} ac_cv_header_utime_h |
| 35696 | ${ac_cv_header_pwd_h-(unset)} ac_cv_header_pwd_h |
| 35697 | ${ac_cv_func_fchmod-(unset)} ac_cv_func_fchmod |
| 35698 | ${rcs_cv_fopen_truncates-(unset)} rcs_cv_fopen_truncates |
| 35699 | ${rcs_cv_unlink_mw_ok-(unset)} rcs_cv_unlink_mw_ok |
| 35700 | ${rcs_cv_wac_ok-(unset)} rcs_cv_wac_ok |
| 35701 | " >&5 |
| 35702 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: Your platform might be desupported in the future: |
| 35703 | ${ac_cv_header_utime_h-(unset)} ac_cv_header_utime_h |
| 35704 | ${ac_cv_header_pwd_h-(unset)} ac_cv_header_pwd_h |
| 35705 | ${ac_cv_func_fchmod-(unset)} ac_cv_func_fchmod |
| 35706 | ${rcs_cv_fopen_truncates-(unset)} rcs_cv_fopen_truncates |
| 35707 | ${rcs_cv_unlink_mw_ok-(unset)} rcs_cv_unlink_mw_ok |
| 35708 | ${rcs_cv_wac_ok-(unset)} rcs_cv_wac_ok |
| 35709 | " >&2;} |
| 35710 | fi |
| 35711 | fi |
| 35712 | |
| 35713 | # write it out |
| 35714 | |
| 35715 | ac_config_files="$ac_config_files lib/Makefile Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" |
| 35716 | |
| 35717 | |
| 35718 | # We don't use or install rcsfreeze, so there is no point making it executable. |
| 35719 | ac_config_files="$ac_config_files src/rcsfreeze:src/rcsfreeze.sh" |
| 35720 | |
| 35721 | |
| 35722 | # We could do this "manually" in tests/Makefile.am, specifying |
| 35723 | # another file for ‘check_SCRIPTS’ and writing a custom target, |
| 35724 | # all to save the configure script from processing a possibly |
| 35725 | # unused file (in the case the user does not do "make check"). |
| 35726 | # But it's not much of a burden, and users SHOULD be doing |
| 35727 | # "make check" anyway. |
| 35728 | ac_config_files="$ac_config_files tests/known-failures" |
| 35729 | |
| 35730 | |
| 35731 | catscip-shell system . . cat. >confcache <<\_ACEOF |
| 35732 | # This file is a shell script that caches the results of configure |
| 35733 | # tests run on this system so they can be shared between configure |
| 35734 | # scripts and configure runs, see configure's option --config-cache. |
| 35735 | # It is not useful on other systems. If it contains results you don't |
| 35736 | # want to keep, you may remove or edit it. |
| 35737 | # |
| 35738 | # config.status only pays attention to the cache file if you give it |
| 35739 | # the --recheck option to rerun configure. |
| 35740 | # |
| 35741 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 35742 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35743 | # following values. |
| 35744 | |
| 35745 | _ACEOF |
| 35746 | |
| 35747 | # The following way of writing the cache mishandles newlines in values, |
| 35748 | # but we know of no workaround that is simple, portable, and efficient. |
| 35749 | # So, we kill variables containing newlines. |
| 35750 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35751 | # and sets the high bit in the cache file unless we assign to the vars. |
| 35752 | ( |
| 35753 | for ac_var in `(set) 2>&1 | sedscip-shell system . . sed. -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35754 | eval ac_val=\$$ac_var |
| 35755 | case $ac_val in #( |
| 35756 | *${as_nl}*) |
| 35757 | case $ac_var in #( |
| 35758 | *_cv_*) { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 35759 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 35760 | esac |
| 35761 | case $ac_var in #( |
| 35762 | _ | IFS | as_nl) ;; #( |
| 35763 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 35764 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 35765 | esac ;; |
| 35766 | esac |
| 35767 | done |
| 35768 | |
| 35769 | (set) 2>&1 | |
| 35770 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35771 | *${as_nl}ac_space=\ *) |
| 35772 | # `set' does not quote correctly, so add quotes: double-quote |
| 35773 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 35774 | sedscip-shell system . . sed. -n \ |
| 35775 | "s/'/'\\\\''/g; |
| 35776 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 35777 | ;; #( |
| 35778 | *) |
| 35779 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 35780 | sedscip-shell system . . sed. -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 35781 | ;; |
| 35782 | esac | |
| 35783 | sortscip-shell system . . sort. |
| 35784 | ) | |
| 35785 | sedscip-shell system . . sed. ' |
| 35786 | /^ac_cv_env_/b end |
| 35787 | t clear |
| 35788 | :clear |
| 35789 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 35790 | t end |
| 35791 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35792 | :end' >>confcache |
| 35793 | if diffscip-shell system . . diff. "$cache_file" confcache >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then :; else |
| 35794 | if testscip-shell system . . test. -w "$cache_file"; then |
| 35795 | if testscip-shell system . . test. "x$cache_file" != "x/dev/null"; then |
| 35796 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 35797 | printfscip-shell system . . printf. "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 35798 | if testscip-shell system . . test. ! -f "$cache_file" || testscip-shell system . . test. -h "$cache_file"; then |
| 35799 | catscip-shell system . . cat. confcache >"$cache_file" |
| 35800 | else |
| 35801 | case $cache_file in #( |
| 35802 | */* | ?:*) |
| 35803 | mvscip-shell system . . mv. -f confcache "$cache_file"$$ && |
| 35804 | mvscip-shell system . . mv. -f "$cache_file"$$ "$cache_file" ;; #( |
| 35805 | *) |
| 35806 | mvscip-shell system . . mv. -f confcache "$cache_file" ;; |
| 35807 | esac |
| 35808 | fi |
| 35809 | fi |
| 35810 | else |
| 35811 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 35812 | printfscip-shell system . . printf. "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 35813 | fi |
| 35814 | fi |
| 35815 | rmscip-shell system . . rm. -f confcache |
| 35816 | |
| 35817 | testscip-shell system . . test. "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35818 | # Let make expand exec_prefix. |
| 35819 | testscip-shell system . . test. "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35820 | |
| 35821 | DEFS=-DHAVE_CONFIG_H |
| 35822 | |
| 35823 | ac_libobjs= |
| 35824 | ac_ltlibobjs= |
| 35825 | U= |
| 35826 | for ac_i in : $LIBOBJS; do testscip-shell system . . test. "x$ac_i" = x: && continue |
| 35827 | # 1. Remove the extension, and $U if already installed. |
| 35828 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35829 | ac_i=`printfscip-shell system . . printf. "%s\n" "$ac_i" | sedscip-shell system . . sed. "$ac_script"` |
| 35830 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35831 | # will be set to the directory where LIBOBJS objects are built. |
| 35832 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35833 | as_fn_appendscip-shell shell shell-project 0.0.0 as_fn_append(). ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 35834 | done |
| 35835 | LIBOBJS=$ac_libobjs |
| 35836 | |
| 35837 | LTLIBOBJS=$ac_ltlibobjs |
| 35838 | |
| 35839 | |
| 35840 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 35841 | printfscip-shell system . . printf. %s "checking that generated files are newer than configure... " >&6; } |
| 35842 | if testscip-shell system . . test. -n "$am_sleep_pid"; then |
| 35843 | # Hide warnings about reused PIDs. |
| 35844 | wait $am_sleep_pid 2>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 35845 | fi |
| 35846 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 35847 | printfscip-shell system . . printf. "%s\n" "done" >&6; } |
| 35848 | if testscip-shell system . . test. -n "$EXEEXT"; then |
| 35849 | am__EXEEXT_TRUE= |
| 35850 | am__EXEEXT_FALSE='#' |
| 35851 | else |
| 35852 | am__EXEEXT_TRUE='#' |
| 35853 | am__EXEEXT_FALSE= |
| 35854 | fi |
| 35855 | |
| 35856 | if testscip-shell system . . test. -z "${AMDEP_TRUE}" && testscip-shell system . . test. -z "${AMDEP_FALSE}"; then |
| 35857 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"AMDEP\" was never defined. |
| 35858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35859 | fi |
| 35860 | if testscip-shell system . . test. -z "${am__fastdepCC_TRUE}" && testscip-shell system . . test. -z "${am__fastdepCC_FALSE}"; then |
| 35861 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"am__fastdepCC\" was never defined. |
| 35862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35863 | fi |
| 35864 | if testscip-shell system . . test. -z "${GL_COND_LIBTOOL_TRUE}" && testscip-shell system . . test. -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 35865 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"GL_COND_LIBTOOL\" was never defined. |
| 35866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35867 | fi |
| 35868 | |
| 35869 | |
| 35870 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_assure_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_assure_FALSE}"; then |
| 35871 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_assure\" was never defined. |
| 35872 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35873 | fi |
| 35874 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then |
| 35875 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined. |
| 35876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35877 | fi |
| 35878 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_chdir_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_chdir_FALSE}"; then |
| 35879 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_chdir\" was never defined. |
| 35880 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35881 | fi |
| 35882 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005_FALSE}"; then |
| 35883 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_8198daae261b932d64a998f8586f5005\" was never defined. |
| 35884 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35885 | fi |
| 35886 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_cloexec_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_cloexec_FALSE}"; then |
| 35887 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_cloexec\" was never defined. |
| 35888 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35889 | fi |
| 35890 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4_FALSE}"; then |
| 35891 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_75c65a2c014cf8235dd95289676302a4\" was never defined. |
| 35892 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35893 | fi |
| 35894 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dirfd_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dirfd_FALSE}"; then |
| 35895 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_dirfd\" was never defined. |
| 35896 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35897 | fi |
| 35898 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c_FALSE}"; then |
| 35899 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_a691da99c1d83b83238e45f41a696f5c\" was never defined. |
| 35900 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35901 | fi |
| 35902 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dup_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dup_FALSE}"; then |
| 35903 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_dup\" was never defined. |
| 35904 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35905 | fi |
| 35906 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dup2_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dup2_FALSE}"; then |
| 35907 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_dup2\" was never defined. |
| 35908 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35909 | fi |
| 35910 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fchdir_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fchdir_FALSE}"; then |
| 35911 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fchdir\" was never defined. |
| 35912 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35913 | fi |
| 35914 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239_FALSE}"; then |
| 35915 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239\" was never defined. |
| 35916 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35917 | fi |
| 35918 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf_FALSE}"; then |
| 35919 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_64142d6558df0059920a9be1d634dadf\" was never defined. |
| 35920 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35921 | fi |
| 35922 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fdopendir_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fdopendir_FALSE}"; then |
| 35923 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fdopendir\" was never defined. |
| 35924 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35925 | fi |
| 35926 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6_FALSE}"; then |
| 35927 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fca9852db2a43bb33f02f0fbdbc174f6\" was never defined. |
| 35928 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35929 | fi |
| 35930 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fpieee_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fpieee_FALSE}"; then |
| 35931 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fpieee\" was never defined. |
| 35932 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35933 | fi |
| 35934 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fpucw_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fpucw_FALSE}"; then |
| 35935 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fpucw\" was never defined. |
| 35936 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35937 | fi |
| 35938 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5_FALSE}"; then |
| 35939 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_e1c6a1281ce2cc59c716894550bcb2b5\" was never defined. |
| 35940 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35941 | fi |
| 35942 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be_FALSE}"; then |
| 35943 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_e0ca81912f23214e44f5700922db34be\" was never defined. |
| 35944 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35945 | fi |
| 35946 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fstatat_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_fstatat_FALSE}"; then |
| 35947 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_fstatat\" was never defined. |
| 35948 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35949 | fi |
| 35950 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6_FALSE}"; then |
| 35951 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_3d094ef542bfdd238a5194e172bfe5f6\" was never defined. |
| 35952 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35953 | fi |
| 35954 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then |
| 35955 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined. |
| 35956 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35957 | fi |
| 35958 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_getrandom_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_getrandom_FALSE}"; then |
| 35959 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_getrandom\" was never defined. |
| 35960 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35961 | fi |
| 35962 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21_FALSE}"; then |
| 35963 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21\" was never defined. |
| 35964 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35965 | fi |
| 35966 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66_FALSE}"; then |
| 35967 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66\" was never defined. |
| 35968 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35969 | fi |
| 35970 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f_FALSE}"; then |
| 35971 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f\" was never defined. |
| 35972 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35973 | fi |
| 35974 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467_FALSE}"; then |
| 35975 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467\" was never defined. |
| 35976 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35977 | fi |
| 35978 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_lock_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_lock_FALSE}"; then |
| 35979 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_lock\" was never defined. |
| 35980 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35981 | fi |
| 35982 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_malloca_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_malloca_FALSE}"; then |
| 35983 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_malloca\" was never defined. |
| 35984 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35985 | fi |
| 35986 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_math_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_math_FALSE}"; then |
| 35987 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_math\" was never defined. |
| 35988 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35989 | fi |
| 35990 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_memrchr_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_memrchr_FALSE}"; then |
| 35991 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_memrchr\" was never defined. |
| 35992 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35993 | fi |
| 35994 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_mkdir_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_mkdir_FALSE}"; then |
| 35995 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_mkdir\" was never defined. |
| 35996 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35997 | fi |
| 35998 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_openat_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_openat_FALSE}"; then |
| 35999 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_openat\" was never defined. |
| 36000 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36001 | fi |
| 36002 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345_FALSE}"; then |
| 36003 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_1840129d490f3a00c8a098316d0fa345\" was never defined. |
| 36004 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36005 | fi |
| 36006 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then |
| 36007 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined. |
| 36008 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36009 | fi |
| 36010 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then |
| 36011 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined. |
| 36012 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36013 | fi |
| 36014 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94_FALSE}"; then |
| 36015 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_2f551a684aab5400633cbfd56df3bf94\" was never defined. |
| 36016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36017 | fi |
| 36018 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f_FALSE}"; then |
| 36019 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_bba639f0cfd658540d716f3a2ba5e68f\" was never defined. |
| 36020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36021 | fi |
| 36022 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_raise_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_raise_FALSE}"; then |
| 36023 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_raise\" was never defined. |
| 36024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36025 | fi |
| 36026 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_rewinddir_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_rewinddir_FALSE}"; then |
| 36027 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_rewinddir\" was never defined. |
| 36028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36029 | fi |
| 36030 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21_FALSE}"; then |
| 36031 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_d4850532688ba16d685f036076611f21\" was never defined. |
| 36032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36033 | fi |
| 36034 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_signbit_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_signbit_FALSE}"; then |
| 36035 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_signbit\" was never defined. |
| 36036 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36037 | fi |
| 36038 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then |
| 36039 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined. |
| 36040 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36041 | fi |
| 36042 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_stdalign_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_stdalign_FALSE}"; then |
| 36043 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_stdalign\" was never defined. |
| 36044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36045 | fi |
| 36046 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0_FALSE}"; then |
| 36047 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0\" was never defined. |
| 36048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36049 | fi |
| 36050 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_strerror_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_strerror_FALSE}"; then |
| 36051 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_strerror\" was never defined. |
| 36052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36053 | fi |
| 36054 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72_FALSE}"; then |
| 36055 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_dbb57f49352be8fb86869629a254fb72\" was never defined. |
| 36056 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36057 | fi |
| 36058 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_sys_random_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_sys_random_FALSE}"; then |
| 36059 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_sys_random\" was never defined. |
| 36060 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36061 | fi |
| 36062 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then |
| 36063 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined. |
| 36064 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36065 | fi |
| 36066 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_threadlib_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_threadlib_FALSE}"; then |
| 36067 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_threadlib\" was never defined. |
| 36068 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36069 | fi |
| 36070 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_tls_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_tls_FALSE}"; then |
| 36071 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_tls\" was never defined. |
| 36072 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36073 | fi |
| 36074 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440_FALSE}"; then |
| 36075 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_503a4cb75d69c787103d0aa2ab7d8440\" was never defined. |
| 36076 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36077 | fi |
| 36078 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab_FALSE}"; then |
| 36079 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_68a4501daeca58988392c7e60b4917ab\" was never defined. |
| 36080 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36081 | fi |
| 36082 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354_FALSE}"; then |
| 36083 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_f0efff84a70f4afba30902bb8ffe9354\" was never defined. |
| 36084 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36085 | fi |
| 36086 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef_FALSE}"; then |
| 36087 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_8bb827fe37eaccf1b97feb0c87bc92ef\" was never defined. |
| 36088 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36089 | fi |
| 36090 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d_FALSE}"; then |
| 36091 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_48b2271240803e4879464b755748a89d\" was never defined. |
| 36092 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36093 | fi |
| 36094 | if testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && testscip-shell system . . test. -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then |
| 36095 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined. |
| 36096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36097 | fi |
| 36098 | |
| 36099 | gl_libobjs= |
| 36100 | gl_ltlibobjs= |
| 36101 | gl_libobjdeps= |
| 36102 | if testscip-shell system . . test. -n "$gl_LIBOBJS"; then |
| 36103 | # Remove the extension. |
| 36104 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 36105 | sed_dirname1='s,//*,/,g' |
| 36106 | sed_dirname2='s,\(.\)/$,\1,' |
| 36107 | sed_dirname3='s,^[^/]*$,.,' |
| 36108 | sed_dirname4='s,\(.\)/[^/]*$,\1,' |
| 36109 | sed_basename1='s,.*/,,' |
| 36110 | for i in `for i in $gl_LIBOBJS; do echoscip-shell system . . echo. "$i"; done | sedscip-shell system . . sed. -e "$sed_drop_objext" | sortscip-shell system . . sort. | uniqscip-shell system . . uniq.`; do |
| 36111 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 36112 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 36113 | i_dir=`echoscip-shell system . . echo. "$i" | sedscip-shell system . . sed. -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` |
| 36114 | i_base=`echoscip-shell system . . echo. "$i" | sedscip-shell system . . sed. -e "$sed_basename1"` |
| 36115 | gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po" |
| 36116 | done |
| 36117 | fi |
| 36118 | gl_LIBOBJS=$gl_libobjs |
| 36119 | |
| 36120 | gl_LTLIBOBJS=$gl_ltlibobjs |
| 36121 | |
| 36122 | gl_LIBOBJDEPS=$gl_libobjdeps |
| 36123 | |
| 36124 | |
| 36125 | |
| 36126 | gltests_libobjs= |
| 36127 | gltests_ltlibobjs= |
| 36128 | gltests_libobjdeps= |
| 36129 | if testscip-shell system . . test. -n "$gltests_LIBOBJS"; then |
| 36130 | # Remove the extension. |
| 36131 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 36132 | sed_dirname1='s,//*,/,g' |
| 36133 | sed_dirname2='s,\(.\)/$,\1,' |
| 36134 | sed_dirname3='s,^[^/]*$,.,' |
| 36135 | sed_dirname4='s,\(.\)/[^/]*$,\1,' |
| 36136 | sed_basename1='s,.*/,,' |
| 36137 | for i in `for i in $gltests_LIBOBJS; do echoscip-shell system . . echo. "$i"; done | sedscip-shell system . . sed. -e "$sed_drop_objext" | sortscip-shell system . . sort. | uniqscip-shell system . . uniq.`; do |
| 36138 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 36139 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 36140 | i_dir=`echoscip-shell system . . echo. "$i" | sedscip-shell system . . sed. -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` |
| 36141 | i_base=`echoscip-shell system . . echo. "$i" | sedscip-shell system . . sed. -e "$sed_basename1"` |
| 36142 | gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po" |
| 36143 | done |
| 36144 | fi |
| 36145 | gltests_LIBOBJS=$gltests_libobjs |
| 36146 | |
| 36147 | gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 36148 | |
| 36149 | gltests_LIBOBJDEPS=$gltests_libobjdeps |
| 36150 | |
| 36151 | |
| 36152 | |
| 36153 | : "${CONFIG_STATUS=./config.status}" |
| 36154 | ac_write_fail=0 |
| 36155 | ac_clean_files_save=$ac_clean_files |
| 36156 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 36157 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 36158 | printfscip-shell system . . printf. "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 36159 | as_write_fail=0 |
| 36160 | catscip-shell system . . cat. >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 36161 | #! $SHELL |
| 36162 | # Generated by $as_me. |
| 36163 | # Run this file to recreate the current configuration. |
| 36164 | # Compiler output produced by configure, useful for debugging |
| 36165 | # configure, is in config.log if it exists. |
| 36166 | |
| 36167 | debug=false |
| 36168 | ac_cs_recheck=false |
| 36169 | ac_cs_silent=false |
| 36170 | |
| 36171 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 36172 | export SHELL |
| 36173 | _ASEOF |
| 36174 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 36175 | ## -------------------- ## |
| 36176 | ## M4sh Initialization. ## |
| 36177 | ## -------------------- ## |
| 36178 | |
| 36179 | # Be more Bourne compatible |
| 36180 | DUALCASE=1; export DUALCASE # for MKS sh |
| 36181 | as_nop=: |
| 36182 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 36183 | then : |
| 36184 | emulate sh |
| 36185 | NULLCMD=: |
| 36186 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 36187 | # is contrary to our usage. Disable this feature. |
| 36188 | alias -g '${1+"$@"}'='"$@"' |
| 36189 | setopt NO_GLOB_SUBST |
| 36190 | else $as_nop |
| 36191 | case `(set -o) 2>/dev/null` in #( |
| 36192 | *posix*) : |
| 36193 | set -o posix ;; #( |
| 36194 | *) : |
| 36195 | ;; |
| 36196 | esac |
| 36197 | fi |
| 36198 | |
| 36199 | |
| 36200 | |
| 36201 | # Reset variables that may have inherited troublesome values from |
| 36202 | # the environment. |
| 36203 | |
| 36204 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 36205 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 36206 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 36207 | # Quoting is to prevent editors from complaining about space-tab. |
| 36208 | as_nl=' |
| 36209 | ' |
| 36210 | export as_nl |
| 36211 | IFS=" "" $as_nl" |
| 36212 | |
| 36213 | PS1='$ ' |
| 36214 | PS2='> ' |
| 36215 | PS4='+ ' |
| 36216 | |
| 36217 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 36218 | LC_ALL=C |
| 36219 | export LC_ALL |
| 36220 | LANGUAGE=C |
| 36221 | export LANGUAGE |
| 36222 | |
| 36223 | # We cannot yet rely on "unset" to work, but we need these variables |
| 36224 | # to be unset--not just set to an empty or harmless value--now, to |
| 36225 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 36226 | # also avoids known problems related to "unset" and subshell syntax |
| 36227 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 36228 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 36229 | do eval test \${$as_var+y} \ |
| 36230 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 36231 | done |
| 36232 | |
| 36233 | # Ensure that fds 0, 1, and 2 are open. |
| 36234 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 36235 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 36236 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 36237 | |
| 36238 | # The user is always right. |
| 36239 | if ${PATH_SEPARATOR+false} :; then |
| 36240 | PATH_SEPARATOR=: |
| 36241 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 36242 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 36243 | PATH_SEPARATOR=';' |
| 36244 | } |
| 36245 | fi |
| 36246 | |
| 36247 | |
| 36248 | # Find who we are. Look in the path if we contain no directory separator. |
| 36249 | as_myself= |
| 36250 | case $0 in #(( |
| 36251 | *[\\/]* ) as_myself=$0 ;; |
| 36252 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 36253 | for as_dir in $PATH |
| 36254 | do |
| 36255 | IFS=$as_save_IFS |
| 36256 | case $as_dir in #((( |
| 36257 | '') as_dir=./ ;; |
| 36258 | */) ;; |
| 36259 | *) as_dir=$as_dir/ ;; |
| 36260 | esac |
| 36261 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 36262 | done |
| 36263 | IFS=$as_save_IFS |
| 36264 | |
| 36265 | ;; |
| 36266 | esac |
| 36267 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 36268 | # in which case we are not to be found in the path. |
| 36269 | if test "x$as_myself" = x; then |
| 36270 | as_myself=$0 |
| 36271 | fi |
| 36272 | if test ! -f "$as_myself"; then |
| 36273 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 36274 | exit 1 |
| 36275 | fi |
| 36276 | |
| 36277 | |
| 36278 | |
| 36279 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 36280 | # ---------------------------------------- |
| 36281 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 36282 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 36283 | # script with STATUS, using 1 if that was 0. |
| 36284 | as_fn_error () |
| 36285 | { |
| 36286 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 36287 | if test "$4"; then |
| 36288 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 36289 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 36290 | fi |
| 36291 | printf "%s\n" "$as_me: error: $2" >&2 |
| 36292 | as_fn_exit $as_status |
| 36293 | } # as_fn_error |
| 36294 | |
| 36295 | |
| 36296 | |
| 36297 | # as_fn_set_status STATUS |
| 36298 | # ----------------------- |
| 36299 | # Set $? to STATUS, without forking. |
| 36300 | as_fn_set_status () |
| 36301 | { |
| 36302 | return $1 |
| 36303 | } # as_fn_set_status |
| 36304 | |
| 36305 | # as_fn_exit STATUS |
| 36306 | # ----------------- |
| 36307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 36308 | as_fn_exit () |
| 36309 | { |
| 36310 | set +e |
| 36311 | as_fn_set_status $1 |
| 36312 | exit $1 |
| 36313 | } # as_fn_exit |
| 36314 | |
| 36315 | # as_fn_unset VAR |
| 36316 | # --------------- |
| 36317 | # Portably unset VAR. |
| 36318 | as_fn_unset () |
| 36319 | { |
| 36320 | { eval $1=; unset $1;} |
| 36321 | } |
| 36322 | as_unset=as_fn_unset |
| 36323 | |
| 36324 | # as_fn_append VAR VALUE |
| 36325 | # ---------------------- |
| 36326 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 36327 | # advantage of any shell optimizations that allow amortized linear growth over |
| 36328 | # repeated appends, instead of the typical quadratic growth present in naive |
| 36329 | # implementations. |
| 36330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 36331 | then : |
| 36332 | eval 'as_fn_append () |
| 36333 | { |
| 36334 | eval $1+=\$2 |
| 36335 | }' |
| 36336 | else $as_nop |
| 36337 | as_fn_append () |
| 36338 | { |
| 36339 | eval $1=\$$1\$2 |
| 36340 | } |
| 36341 | fi # as_fn_append |
| 36342 | |
| 36343 | # as_fn_arith ARG... |
| 36344 | # ------------------ |
| 36345 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 36346 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 36347 | # must be portable across $(()) and expr. |
| 36348 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 36349 | then : |
| 36350 | eval 'as_fn_arith () |
| 36351 | { |
| 36352 | as_val=$(( $* )) |
| 36353 | }' |
| 36354 | else $as_nop |
| 36355 | as_fn_arith () |
| 36356 | { |
| 36357 | as_val=`expr "$@" || test $? -eq 1` |
| 36358 | } |
| 36359 | fi # as_fn_arith |
| 36360 | |
| 36361 | |
| 36362 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 36363 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 36364 | as_expr=expr |
| 36365 | else |
| 36366 | as_expr=false |
| 36367 | fi |
| 36368 | |
| 36369 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 36370 | as_basename=basename |
| 36371 | else |
| 36372 | as_basename=false |
| 36373 | fi |
| 36374 | |
| 36375 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 36376 | as_dirname=dirname |
| 36377 | else |
| 36378 | as_dirname=false |
| 36379 | fi |
| 36380 | |
| 36381 | as_me=`$as_basename -- "$0" || |
| 36382 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 36383 | X"$0" : 'X\(//\)$' \| \ |
| 36384 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 36385 | printf "%s\n" X/"$0" | |
| 36386 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 36387 | s//\1/ |
| 36388 | q |
| 36389 | } |
| 36390 | /^X\/\(\/\/\)$/{ |
| 36391 | s//\1/ |
| 36392 | q |
| 36393 | } |
| 36394 | /^X\/\(\/\).*/{ |
| 36395 | s//\1/ |
| 36396 | q |
| 36397 | } |
| 36398 | s/.*/./; q'` |
| 36399 | |
| 36400 | # Avoid depending upon Character Ranges. |
| 36401 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 36402 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36403 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 36404 | as_cr_digits='0123456789' |
| 36405 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 36406 | |
| 36407 | |
| 36408 | # Determine whether it's possible to make 'echo' print without a newline. |
| 36409 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 36410 | # for compatibility with existing Makefiles. |
| 36411 | ECHO_C= ECHO_N= ECHO_T= |
| 36412 | case `echo -n x` in #((((( |
| 36413 | -n*) |
| 36414 | case `echo 'xy\c'` in |
| 36415 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 36416 | xy) ECHO_C='\c';; |
| 36417 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 36418 | ECHO_T=' ';; |
| 36419 | esac;; |
| 36420 | *) |
| 36421 | ECHO_N='-n';; |
| 36422 | esac |
| 36423 | |
| 36424 | # For backward compatibility with old third-party macros, we provide |
| 36425 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 36426 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 36427 | as_echo='printf %s\n' |
| 36428 | as_echo_n='printf %s' |
| 36429 | |
| 36430 | rm -f conf$$ conf$$.exe conf$$.file |
| 36431 | if test -d conf$$.dir; then |
| 36432 | rm -f conf$$.dir/conf$$.file |
| 36433 | else |
| 36434 | rm -f conf$$.dir |
| 36435 | mkdir conf$$.dir 2>/dev/null |
| 36436 | fi |
| 36437 | if (echo >conf$$.file) 2>/dev/null; then |
| 36438 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 36439 | as_ln_s='ln -s' |
| 36440 | # ... but there are two gotchas: |
| 36441 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 36442 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 36443 | # In both cases, we have to default to `cp -pR'. |
| 36444 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 36445 | as_ln_s='cp -pR' |
| 36446 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 36447 | as_ln_s=ln |
| 36448 | else |
| 36449 | as_ln_s='cp -pR' |
| 36450 | fi |
| 36451 | else |
| 36452 | as_ln_s='cp -pR' |
| 36453 | fi |
| 36454 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 36455 | rmdir conf$$.dir 2>/dev/null |
| 36456 | |
| 36457 | |
| 36458 | # as_fn_mkdir_p |
| 36459 | # ------------- |
| 36460 | # Create "$as_dir" as a directory, including parents if necessary. |
| 36461 | as_fn_mkdir_p () |
| 36462 | { |
| 36463 | |
| 36464 | case $as_dir in #( |
| 36465 | -*) as_dir=./$as_dir;; |
| 36466 | esac |
| 36467 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 36468 | as_dirs= |
| 36469 | while :; do |
| 36470 | case $as_dir in #( |
| 36471 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 36472 | *) as_qdir=$as_dir;; |
| 36473 | esac |
| 36474 | as_dirs="'$as_qdir' $as_dirs" |
| 36475 | as_dir=`$as_dirname -- "$as_dir" || |
| 36476 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36477 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36478 | X"$as_dir" : 'X\(//\)$' \| \ |
| 36479 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 36480 | printf "%s\n" X"$as_dir" | |
| 36481 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36482 | s//\1/ |
| 36483 | q |
| 36484 | } |
| 36485 | /^X\(\/\/\)[^/].*/{ |
| 36486 | s//\1/ |
| 36487 | q |
| 36488 | } |
| 36489 | /^X\(\/\/\)$/{ |
| 36490 | s//\1/ |
| 36491 | q |
| 36492 | } |
| 36493 | /^X\(\/\).*/{ |
| 36494 | s//\1/ |
| 36495 | q |
| 36496 | } |
| 36497 | s/.*/./; q'` |
| 36498 | test -d "$as_dir" && break |
| 36499 | done |
| 36500 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36501 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 36502 | |
| 36503 | |
| 36504 | } # as_fn_mkdir_p |
| 36505 | if mkdir -p . 2>/dev/null; then |
| 36506 | as_mkdir_p='mkdir -p "$as_dir"' |
| 36507 | else |
| 36508 | test -d ./-p && rmdir ./-p |
| 36509 | as_mkdir_p=false |
| 36510 | fi |
| 36511 | |
| 36512 | |
| 36513 | # as_fn_executable_p FILE |
| 36514 | # ----------------------- |
| 36515 | # Test if FILE is an executable regular file. |
| 36516 | as_fn_executable_p () |
| 36517 | { |
| 36518 | test -f "$1" && test -x "$1" |
| 36519 | } # as_fn_executable_p |
| 36520 | as_test_x='test -x' |
| 36521 | as_executable_p=as_fn_executable_p |
| 36522 | |
| 36523 | # Sed expression to map a string onto a valid CPP name. |
| 36524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 36525 | |
| 36526 | # Sed expression to map a string onto a valid variable name. |
| 36527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 36528 | |
| 36529 | |
| 36530 | exec 6>&1 |
| 36531 | ## ----------------------------------- ## |
| 36532 | ## Main body of $CONFIG_STATUS script. ## |
| 36533 | ## ----------------------------------- ## |
| 36534 | _ASEOF |
| 36535 | testscip-shell system . . test. $as_write_fail = 0 && chmodscip-shell system . . chmod. +x $CONFIG_STATUS || ac_write_fail=1 |
| 36536 | |
| 36537 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36538 | # Save the log message, to keep $0 and so on meaningful, and to |
| 36539 | # report actual input values of CONFIG_FILES etc. instead of their |
| 36540 | # values after options handling. |
| 36541 | ac_log=" |
| 36542 | This file was extended by GNU RCS $as_me 5.10.1, which was |
| 36543 | generated by GNU Autoconf 2.71. Invocation command line was |
| 36544 | |
| 36545 | CONFIG_FILES = $CONFIG_FILES |
| 36546 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 36547 | CONFIG_LINKS = $CONFIG_LINKS |
| 36548 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 36549 | $ $0 $@ |
| 36550 | |
| 36551 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 36552 | " |
| 36553 | |
| 36554 | _ACEOF |
| 36555 | |
| 36556 | case $ac_config_files in *" |
| 36557 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 36558 | esac |
| 36559 | |
| 36560 | case $ac_config_headers in *" |
| 36561 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 36562 | esac |
| 36563 | |
| 36564 | |
| 36565 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36566 | # Files that config.status was made for. |
| 36567 | config_files="$ac_config_files" |
| 36568 | config_headers="$ac_config_headers" |
| 36569 | config_commands="$ac_config_commands" |
| 36570 | |
| 36571 | _ACEOF |
| 36572 | |
| 36573 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36574 | ac_cs_usage="\ |
| 36575 | \`$as_me' instantiates files and other configuration actions |
| 36576 | from templates according to the current configuration. Unless the files |
| 36577 | and actions are specified as TAGs, all are instantiated by default. |
| 36578 | |
| 36579 | Usage: $0 [OPTION]... [TAG]... |
| 36580 | |
| 36581 | -h, --help print this help, then exit |
| 36582 | -V, --version print version number and configuration settings, then exit |
| 36583 | --config print configuration, then exit |
| 36584 | -q, --quiet, --silent |
| 36585 | do not print progress messages |
| 36586 | -d, --debug don't remove temporary files |
| 36587 | --recheck update $as_me by reconfiguring in the same conditions |
| 36588 | --file=FILE[:TEMPLATE] |
| 36589 | instantiate the configuration file FILE |
| 36590 | --header=FILE[:TEMPLATE] |
| 36591 | instantiate the configuration header FILE |
| 36592 | |
| 36593 | Configuration files: |
| 36594 | $config_files |
| 36595 | |
| 36596 | Configuration headers: |
| 36597 | $config_headers |
| 36598 | |
| 36599 | Configuration commands: |
| 36600 | $config_commands |
| 36601 | |
| 36602 | Report bugs to <[email protected]>. |
| 36603 | GNU RCS home page: <https://www.gnu.org/software/rcs/>. |
| 36604 | General help using GNU software: <https://www.gnu.org/gethelp/>." |
| 36605 | |
| 36606 | _ACEOF |
| 36607 | ac_cs_config=`printfscip-shell system . . printf. "%s\n" "$ac_configure_args" | sedscip-shell system . . sed. "$ac_safe_unquote"` |
| 36608 | ac_cs_config_escaped=`printfscip-shell system . . printf. "%s\n" "$ac_cs_config" | sedscip-shell system . . sed. "s/^ //; s/'/'\\\\\\\\''/g"` |
| 36609 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36610 | ac_cs_config='$ac_cs_config_escaped' |
| 36611 | ac_cs_version="\\ |
| 36612 | GNU RCS config.status 5.10.1 |
| 36613 | configured by $0, generated by GNU Autoconf 2.71, |
| 36614 | with options \\"\$ac_cs_config\\" |
| 36615 | |
| 36616 | Copyright (C) 2021 Free Software Foundation, Inc. |
| 36617 | This config.status script is free software; the Free Software Foundation |
| 36618 | gives unlimited permission to copy, distribute and modify it." |
| 36619 | |
| 36620 | ac_pwd='$ac_pwd' |
| 36621 | srcdir='$srcdir' |
| 36622 | INSTALL='$INSTALL' |
| 36623 | MKDIR_P='$MKDIR_P' |
| 36624 | AWK='$AWK' |
| 36625 | test -n "\$AWK" || AWK=awk |
| 36626 | _ACEOF |
| 36627 | |
| 36628 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36629 | # The default lists apply if the user does not specify any file. |
| 36630 | ac_need_defaults=: |
| 36631 | while test $# != 0 |
| 36632 | do |
| 36633 | case $1 in |
| 36634 | --*=?*) |
| 36635 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 36636 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 36637 | ac_shift=: |
| 36638 | ;; |
| 36639 | --*=) |
| 36640 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 36641 | ac_optarg= |
| 36642 | ac_shift=: |
| 36643 | ;; |
| 36644 | *) |
| 36645 | ac_option=$1 |
| 36646 | ac_optarg=$2 |
| 36647 | ac_shift=shift |
| 36648 | ;; |
| 36649 | esac |
| 36650 | |
| 36651 | case $ac_option in |
| 36652 | # Handling of the options. |
| 36653 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 36654 | ac_cs_recheck=: ;; |
| 36655 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 36656 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 36657 | --config | --confi | --conf | --con | --co | --c ) |
| 36658 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 36659 | --debug | --debu | --deb | --de | --d | -d ) |
| 36660 | debug=: ;; |
| 36661 | --file | --fil | --fi | --f ) |
| 36662 | $ac_shift |
| 36663 | case $ac_optarg in |
| 36664 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36665 | '') as_fn_error $? "missing file argument" ;; |
| 36666 | esac |
| 36667 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 36668 | ac_need_defaults=false;; |
| 36669 | --header | --heade | --head | --hea ) |
| 36670 | $ac_shift |
| 36671 | case $ac_optarg in |
| 36672 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36673 | esac |
| 36674 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 36675 | ac_need_defaults=false;; |
| 36676 | --he | --h) |
| 36677 | # Conflict between --help and --header |
| 36678 | as_fn_error $? "ambiguous option: \`$1' |
| 36679 | Try \`$0 --help' for more information.";; |
| 36680 | --help | --hel | -h ) |
| 36681 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 36682 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 36683 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 36684 | ac_cs_silent=: ;; |
| 36685 | |
| 36686 | # This is an error. |
| 36687 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 36688 | Try \`$0 --help' for more information." ;; |
| 36689 | |
| 36690 | *) as_fn_append ac_config_targets " $1" |
| 36691 | ac_need_defaults=false ;; |
| 36692 | |
| 36693 | esac |
| 36694 | shift |
| 36695 | done |
| 36696 | |
| 36697 | ac_configure_extra_args= |
| 36698 | |
| 36699 | if $ac_cs_silent; then |
| 36700 | exec 6>/dev/null |
| 36701 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 36702 | fi |
| 36703 | |
| 36704 | _ACEOF |
| 36705 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36706 | if \$ac_cs_recheck; then |
| 36707 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 36708 | shift |
| 36709 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 36710 | CONFIG_SHELL='$SHELL' |
| 36711 | export CONFIG_SHELL |
| 36712 | exec "\$@" |
| 36713 | fi |
| 36714 | |
| 36715 | _ACEOF |
| 36716 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36717 | exec 5>>config.log |
| 36718 | { |
| 36719 | echo |
| 36720 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 36721 | ## Running $as_me. ## |
| 36722 | _ASBOX |
| 36723 | printf "%s\n" "$ac_log" |
| 36724 | } >&5 |
| 36725 | |
| 36726 | _ACEOF |
| 36727 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36728 | # |
| 36729 | # INIT-COMMANDS |
| 36730 | # |
| 36731 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 36732 | |
| 36733 | _ACEOF |
| 36734 | |
| 36735 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36736 | |
| 36737 | # Handling of arguments. |
| 36738 | for ac_config_target in $ac_config_targets |
| 36739 | do |
| 36740 | case $ac_config_target in |
| 36741 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
| 36742 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 36743 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 36744 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 36745 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 36746 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
| 36747 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 36748 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 36749 | "src/rcsfreeze") CONFIG_FILES="$CONFIG_FILES src/rcsfreeze:src/rcsfreeze.sh" ;; |
| 36750 | "tests/known-failures") CONFIG_FILES="$CONFIG_FILES tests/known-failures" ;; |
| 36751 | |
| 36752 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 36753 | esac |
| 36754 | done |
| 36755 | |
| 36756 | |
| 36757 | # If the user did not use the arguments to specify the items to instantiate, |
| 36758 | # then the envvar interface is used. Set only those that are not. |
| 36759 | # We use the long form for the default assignment because of an extremely |
| 36760 | # bizarre bug on SunOS 4.1.3. |
| 36761 | if $ac_need_defaults; then |
| 36762 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 36763 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 36764 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 36765 | fi |
| 36766 | |
| 36767 | # Have a temporary directory for convenience. Make it in the build tree |
| 36768 | # simply because there is no reason against having it here, and in addition, |
| 36769 | # creating and moving files from /tmp can sometimes cause problems. |
| 36770 | # Hook for its removal unless debugging. |
| 36771 | # Note that there is a small window in which the directory will not be cleaned: |
| 36772 | # after its creation but before its name has been assigned to `$tmp'. |
| 36773 | $debug || |
| 36774 | { |
| 36775 | tmp= ac_tmp= |
| 36776 | trap 'exit_status=$? |
| 36777 | : "${ac_tmp:=$tmp}" |
| 36778 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 36779 | ' 0 |
| 36780 | trap 'as_fn_exit 1' 1 2 13 15 |
| 36781 | } |
| 36782 | # Create a (secure) tmp directory for tmp files. |
| 36783 | |
| 36784 | { |
| 36785 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 36786 | test -d "$tmp" |
| 36787 | } || |
| 36788 | { |
| 36789 | tmp=./conf$$-$RANDOM |
| 36790 | (umask 077 && mkdir "$tmp") |
| 36791 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 36792 | ac_tmp=$tmp |
| 36793 | |
| 36794 | # Set up the scripts for CONFIG_FILES section. |
| 36795 | # No need to generate them if there are no CONFIG_FILES. |
| 36796 | # This happens for instance with `./config.status config.h'. |
| 36797 | if test -n "$CONFIG_FILES"; then |
| 36798 | |
| 36799 | |
| 36800 | ac_cr=`echo X | tr X '\015'` |
| 36801 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 36802 | # But we know of no other shell where ac_cr would be empty at this |
| 36803 | # point, so we can use a bashism as a fallback. |
| 36804 | if test "x$ac_cr" = x; then |
| 36805 | eval ac_cr=\$\'\\r\' |
| 36806 | fi |
| 36807 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 36808 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 36809 | ac_cs_awk_cr='\\r' |
| 36810 | else |
| 36811 | ac_cs_awk_cr=$ac_cr |
| 36812 | fi |
| 36813 | |
| 36814 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 36815 | _ACEOF |
| 36816 | |
| 36817 | |
| 36818 | { |
| 36819 | echoscip-shell system . . echo. "cat >conf$$subs.awk <<_ACEOF" && |
| 36820 | echoscip-shell system . . echo. "$ac_subst_vars" | sedscip-shell system . . sed. 's/.*/&!$&$ac_delim/' && |
| 36821 | echoscip-shell system . . echo. "_ACEOF" |
| 36822 | } >conf$$subs.sh || |
| 36823 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 36824 | ac_delim_num=`echoscip-shell system . . echo. "$ac_subst_vars" | grepscip-shell system . . grep. -c '^'` |
| 36825 | ac_delim='%!_!# ' |
| 36826 | for ac_last_try in false false false false false :; do |
| 36827 | . ./conf$$subs.sh || |
| 36828 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 36829 | |
| 36830 | ac_delim_n=`sedscip-shell system . . sed. -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grepscip-shell system . . grep. -c X` |
| 36831 | if testscip-shell system . . test. $ac_delim_n = $ac_delim_num; then |
| 36832 | break |
| 36833 | elif $ac_last_try; then |
| 36834 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 36835 | else |
| 36836 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36837 | fi |
| 36838 | done |
| 36839 | rmscip-shell system . . rm. -f conf$$subs.sh |
| 36840 | |
| 36841 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36842 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 36843 | _ACEOF |
| 36844 | sedscip-shell system . . sed. -n ' |
| 36845 | h |
| 36846 | s/^/S["/; s/!.*/"]=/ |
| 36847 | p |
| 36848 | g |
| 36849 | s/^[^!]*!// |
| 36850 | :repl |
| 36851 | t repl |
| 36852 | s/'"$ac_delim"'$// |
| 36853 | t delim |
| 36854 | :nl |
| 36855 | h |
| 36856 | s/\(.\{148\}\)..*/\1/ |
| 36857 | t more1 |
| 36858 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 36859 | p |
| 36860 | n |
| 36861 | b repl |
| 36862 | :more1 |
| 36863 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36864 | p |
| 36865 | g |
| 36866 | s/.\{148\}// |
| 36867 | t nl |
| 36868 | :delim |
| 36869 | h |
| 36870 | s/\(.\{148\}\)..*/\1/ |
| 36871 | t more2 |
| 36872 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 36873 | p |
| 36874 | b |
| 36875 | :more2 |
| 36876 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36877 | p |
| 36878 | g |
| 36879 | s/.\{148\}// |
| 36880 | t delim |
| 36881 | ' <conf$$subs.awk | sedscip-shell system . . sed. ' |
| 36882 | /^[^""]/{ |
| 36883 | N |
| 36884 | s/\n// |
| 36885 | } |
| 36886 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 36887 | rmscip-shell system . . rm. -f conf$$subs.awk |
| 36888 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36889 | _ACAWK |
| 36890 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 36891 | for (key in S) S_is_set[key] = 1 |
| 36892 | FS = "" |
| 36893 | |
| 36894 | } |
| 36895 | { |
| 36896 | line = $ 0 |
| 36897 | nfields = split(line, field, "@") |
| 36898 | substed = 0 |
| 36899 | len = length(field[1]) |
| 36900 | for (i = 2; i < nfields; i++) { |
| 36901 | key = field[i] |
| 36902 | keylen = length(key) |
| 36903 | if (S_is_set[key]) { |
| 36904 | value = S[key] |
| 36905 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 36906 | len += length(value) + length(field[++i]) |
| 36907 | substed = 1 |
| 36908 | } else |
| 36909 | len += 1 + keylen |
| 36910 | } |
| 36911 | |
| 36912 | print line |
| 36913 | } |
| 36914 | |
| 36915 | _ACAWK |
| 36916 | _ACEOF |
| 36917 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36918 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 36919 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 36920 | else |
| 36921 | cat |
| 36922 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 36923 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 36924 | _ACEOF |
| 36925 | |
| 36926 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 36927 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 36928 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36929 | # (actually we leave an empty line to preserve line numbers). |
| 36930 | if testscip-shell system . . test. "x$srcdir" = x.; then |
| 36931 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 36932 | h |
| 36933 | s/// |
| 36934 | s/^/:/ |
| 36935 | s/[ ]*$/:/ |
| 36936 | s/:\$(srcdir):/:/g |
| 36937 | s/:\${srcdir}:/:/g |
| 36938 | s/:@srcdir@:/:/g |
| 36939 | s/^:*// |
| 36940 | s/:*$// |
| 36941 | x |
| 36942 | s/\(=[ ]*\).*/\1/ |
| 36943 | G |
| 36944 | s/\n// |
| 36945 | s/^[^=]*=[ ]*$// |
| 36946 | }' |
| 36947 | fi |
| 36948 | |
| 36949 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36950 | fi # test -n "$CONFIG_FILES" |
| 36951 | |
| 36952 | # Set up the scripts for CONFIG_HEADERS section. |
| 36953 | # No need to generate them if there are no CONFIG_HEADERS. |
| 36954 | # This happens for instance with `./config.status Makefile'. |
| 36955 | if test -n "$CONFIG_HEADERS"; then |
| 36956 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 36957 | BEGIN { |
| 36958 | _ACEOF |
| 36959 | |
| 36960 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 36961 | # here-document in config.status, that substitutes the proper values into |
| 36962 | # config.h.in to produce config.h. |
| 36963 | |
| 36964 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 36965 | # handling of long lines. |
| 36966 | ac_delim='%!_!# ' |
| 36967 | for ac_last_try in false false :; do |
| 36968 | ac_tt=`sedscip-shell system . . sed. -n "/$ac_delim/p" confdefs.h` |
| 36969 | if testscip-shell system . . test. -z "$ac_tt"; then |
| 36970 | break |
| 36971 | elif $ac_last_try; then |
| 36972 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 36973 | else |
| 36974 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36975 | fi |
| 36976 | done |
| 36977 | |
| 36978 | # For the awk script, D is an array of macro values keyed by name, |
| 36979 | # likewise P contains macro parameters if any. Preserve backslash |
| 36980 | # newline sequences. |
| 36981 | |
| 36982 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36983 | sedscip-shell system . . sed. -n ' |
| 36984 | s/.\{148\}/&'"$ac_delim"'/g |
| 36985 | t rset |
| 36986 | :rset |
| 36987 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 36988 | t def |
| 36989 | d |
| 36990 | :def |
| 36991 | s/\\$// |
| 36992 | t bsnl |
| 36993 | s/["\\]/\\&/g |
| 36994 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 36995 | D["\1"]=" \3"/p |
| 36996 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 36997 | d |
| 36998 | :bsnl |
| 36999 | s/["\\]/\\&/g |
| 37000 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 37001 | D["\1"]=" \3\\\\\\n"\\/p |
| 37002 | t cont |
| 37003 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 37004 | t cont |
| 37005 | d |
| 37006 | :cont |
| 37007 | n |
| 37008 | s/.\{148\}/&'"$ac_delim"'/g |
| 37009 | t clear |
| 37010 | :clear |
| 37011 | s/\\$// |
| 37012 | t bsnlc |
| 37013 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 37014 | d |
| 37015 | :bsnlc |
| 37016 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 37017 | b cont |
| 37018 | ' <confdefs.h | sedscip-shell system . . sed. ' |
| 37019 | s/'"$ac_delim"'/"\\\ |
| 37020 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 37021 | |
| 37022 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37023 | for (key in D) D_is_set[key] = 1 |
| 37024 | FS = "" |
| 37025 | } |
| 37026 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 37027 | line = \$ 0 |
| 37028 | split(line, arg, " ") |
| 37029 | if (arg[1] == "#") { |
| 37030 | defundef = arg[2] |
| 37031 | mac1 = arg[3] |
| 37032 | } else { |
| 37033 | defundef = substr(arg[1], 2) |
| 37034 | mac1 = arg[2] |
| 37035 | } |
| 37036 | split(mac1, mac2, "(") #) |
| 37037 | macro = mac2[1] |
| 37038 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 37039 | if (D_is_set[macro]) { |
| 37040 | # Preserve the white space surrounding the "#". |
| 37041 | print prefix "define", macro P[macro] D[macro] |
| 37042 | next |
| 37043 | } else { |
| 37044 | # Replace #undef with comments. This is necessary, for example, |
| 37045 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 37046 | # on some systems where configure will not decide to define it. |
| 37047 | if (defundef == "undef") { |
| 37048 | print "/*", prefix defundef, macro, "*/" |
| 37049 | next |
| 37050 | } |
| 37051 | } |
| 37052 | } |
| 37053 | { print } |
| 37054 | _ACAWK |
| 37055 | _ACEOF |
| 37056 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37057 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 37058 | fi # test -n "$CONFIG_HEADERS" |
| 37059 | |
| 37060 | |
| 37061 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 37062 | shift |
| 37063 | for ac_tag |
| 37064 | do |
| 37065 | case $ac_tag in |
| 37066 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 37067 | esac |
| 37068 | case $ac_mode$ac_tag in |
| 37069 | :[FHL]*:*);; |
| 37070 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 37071 | :[FH]-) ac_tag=-:-;; |
| 37072 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 37073 | esac |
| 37074 | ac_save_IFS=$IFS |
| 37075 | IFS=: |
| 37076 | set x $ac_tag |
| 37077 | IFS=$ac_save_IFS |
| 37078 | shift |
| 37079 | ac_file=$1 |
| 37080 | shift |
| 37081 | |
| 37082 | case $ac_mode in |
| 37083 | :L) ac_source=$1;; |
| 37084 | :[FH]) |
| 37085 | ac_file_inputs= |
| 37086 | for ac_f |
| 37087 | do |
| 37088 | case $ac_f in |
| 37089 | -) ac_f="$ac_tmp/stdin";; |
| 37090 | *) # Look for the file first in the build tree, then in the source tree |
| 37091 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 37092 | # because $ac_f cannot contain `:'. |
| 37093 | test -f "$ac_f" || |
| 37094 | case $ac_f in |
| 37095 | [\\/$]*) false;; |
| 37096 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 37097 | esac || |
| 37098 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 37099 | esac |
| 37100 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 37101 | as_fn_append ac_file_inputs " '$ac_f'" |
| 37102 | done |
| 37103 | |
| 37104 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 37105 | # use $as_me), people would be surprised to read: |
| 37106 | # /* config.h. Generated by config.status. */ |
| 37107 | configure_input='Generated from '` |
| 37108 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 37109 | `' by configure.' |
| 37110 | if test x"$ac_file" != x-; then |
| 37111 | configure_input="$ac_file. $configure_input" |
| 37112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 37113 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 37114 | fi |
| 37115 | # Neutralize special characters interpreted by sed in replacement strings. |
| 37116 | case $configure_input in #( |
| 37117 | *\&* | *\|* | *\\* ) |
| 37118 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 37119 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 37120 | *) ac_sed_conf_input=$configure_input;; |
| 37121 | esac |
| 37122 | |
| 37123 | case $ac_tag in |
| 37124 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 37125 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 37126 | esac |
| 37127 | ;; |
| 37128 | esac |
| 37129 | |
| 37130 | ac_dir=`$as_dirname -- "$ac_file" || |
| 37131 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37132 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 37133 | X"$ac_file" : 'X\(//\)$' \| \ |
| 37134 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 37135 | printf "%s\n" X"$ac_file" | |
| 37136 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37137 | s//\1/ |
| 37138 | q |
| 37139 | } |
| 37140 | /^X\(\/\/\)[^/].*/{ |
| 37141 | s//\1/ |
| 37142 | q |
| 37143 | } |
| 37144 | /^X\(\/\/\)$/{ |
| 37145 | s//\1/ |
| 37146 | q |
| 37147 | } |
| 37148 | /^X\(\/\).*/{ |
| 37149 | s//\1/ |
| 37150 | q |
| 37151 | } |
| 37152 | s/.*/./; q'` |
| 37153 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 37154 | ac_builddir=. |
| 37155 | |
| 37156 | case "$ac_dir" in |
| 37157 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 37158 | *) |
| 37159 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 37160 | # A ".." for each directory in $ac_dir_suffix. |
| 37161 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 37162 | case $ac_top_builddir_sub in |
| 37163 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 37164 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 37165 | esac ;; |
| 37166 | esac |
| 37167 | ac_abs_top_builddir=$ac_pwd |
| 37168 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 37169 | # for backward compatibility: |
| 37170 | ac_top_builddir=$ac_top_build_prefix |
| 37171 | |
| 37172 | case $srcdir in |
| 37173 | .) # We are building in place. |
| 37174 | ac_srcdir=. |
| 37175 | ac_top_srcdir=$ac_top_builddir_sub |
| 37176 | ac_abs_top_srcdir=$ac_pwd ;; |
| 37177 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 37178 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 37179 | ac_top_srcdir=$srcdir |
| 37180 | ac_abs_top_srcdir=$srcdir ;; |
| 37181 | *) # Relative name. |
| 37182 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 37183 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 37184 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 37185 | esac |
| 37186 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 37187 | |
| 37188 | |
| 37189 | case $ac_mode in |
| 37190 | :F) |
| 37191 | # |
| 37192 | # CONFIG_FILE |
| 37193 | # |
| 37194 | |
| 37195 | case $INSTALL in |
| 37196 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 37197 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 37198 | esac |
| 37199 | ac_MKDIR_P=$MKDIR_P |
| 37200 | case $MKDIR_P in |
| 37201 | [\\/$]* | ?:[\\/]* ) ;; |
| 37202 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 37203 | esac |
| 37204 | _ACEOF |
| 37205 | |
| 37206 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37207 | # If the template does not know about datarootdir, expand it. |
| 37208 | # FIXME: This hack should be removed a few years after 2.60. |
| 37209 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 37210 | ac_sed_dataroot=' |
| 37211 | /datarootdir/ { |
| 37212 | p |
| 37213 | q |
| 37214 | } |
| 37215 | /@datadir@/p |
| 37216 | /@docdir@/p |
| 37217 | /@infodir@/p |
| 37218 | /@localedir@/p |
| 37219 | /@mandir@/p' |
| 37220 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 37221 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 37222 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 37223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 37224 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 37225 | _ACEOF |
| 37226 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37227 | ac_datarootdir_hack=' |
| 37228 | s&@datadir@&$datadir&g |
| 37229 | s&@docdir@&$docdir&g |
| 37230 | s&@infodir@&$infodir&g |
| 37231 | s&@localedir@&$localedir&g |
| 37232 | s&@mandir@&$mandir&g |
| 37233 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 37234 | esac |
| 37235 | _ACEOF |
| 37236 | |
| 37237 | # Neutralize VPATH when `$srcdir' = `.'. |
| 37238 | # Shell code in configure.ac might set extrasub. |
| 37239 | # FIXME: do we really want to maintain this feature? |
| 37240 | catscip-shell system . . cat. >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37241 | ac_sed_extra="$ac_vpsub |
| 37242 | $extrasub |
| 37243 | _ACEOF |
| 37244 | catscip-shell system . . cat. >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37245 | :t |
| 37246 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 37247 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 37248 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 37249 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 37250 | s&@srcdir@&$ac_srcdir&;t t |
| 37251 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 37252 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 37253 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 37254 | s&@builddir@&$ac_builddir&;t t |
| 37255 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 37256 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 37257 | s&@INSTALL@&$ac_INSTALL&;t t |
| 37258 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 37259 | $ac_datarootdir_hack |
| 37260 | " |
| 37261 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 37262 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 37263 | |
| 37264 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 37265 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 37266 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 37267 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 37268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 37269 | which seems to be undefined. Please make sure it is defined" >&5 |
| 37270 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 37271 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 37272 | |
| 37273 | rm -f "$ac_tmp/stdin" |
| 37274 | case $ac_file in |
| 37275 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 37276 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 37277 | esac \ |
| 37278 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 37279 | ;; |
| 37280 | :H) |
| 37281 | # |
| 37282 | # CONFIG_HEADER |
| 37283 | # |
| 37284 | if test x"$ac_file" != x-; then |
| 37285 | { |
| 37286 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 37287 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 37288 | } >"$ac_tmp/config.h" \ |
| 37289 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 37290 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 37291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 37292 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 37293 | else |
| 37294 | rm -f "$ac_file" |
| 37295 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 37296 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 37297 | fi |
| 37298 | else |
| 37299 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 37300 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 37301 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 37302 | fi |
| 37303 | # Compute "$ac_file"'s index in $config_headers. |
| 37304 | _am_arg="$ac_file" |
| 37305 | _am_stamp_count=1 |
| 37306 | for _am_header in $config_headers :; do |
| 37307 | case $_am_header in |
| 37308 | $_am_arg | $_am_arg:* ) |
| 37309 | break ;; |
| 37310 | * ) |
| 37311 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 37312 | esac |
| 37313 | done |
| 37314 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 37315 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37316 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 37317 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 37318 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 37319 | printf "%s\n" X"$_am_arg" | |
| 37320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37321 | s//\1/ |
| 37322 | q |
| 37323 | } |
| 37324 | /^X\(\/\/\)[^/].*/{ |
| 37325 | s//\1/ |
| 37326 | q |
| 37327 | } |
| 37328 | /^X\(\/\/\)$/{ |
| 37329 | s//\1/ |
| 37330 | q |
| 37331 | } |
| 37332 | /^X\(\/\).*/{ |
| 37333 | s//\1/ |
| 37334 | q |
| 37335 | } |
| 37336 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 37337 | ;; |
| 37338 | |
| 37339 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 37340 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 37341 | ;; |
| 37342 | esac |
| 37343 | |
| 37344 | |
| 37345 | case $ac_file$ac_mode in |
| 37346 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 37347 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 37348 | # are listed without --file. Let's play safe and only enable the eval |
| 37349 | # if we detect the quoting. |
| 37350 | # TODO: see whether this extra hack can be removed once we start |
| 37351 | # requiring Autoconf 2.70 or later. |
| 37352 | case $CONFIG_FILES in #( |
| 37353 | *\'*) : |
| 37354 | eval set x "$CONFIG_FILES" ;; #( |
| 37355 | *) : |
| 37356 | set x $CONFIG_FILES ;; #( |
| 37357 | *) : |
| 37358 | ;; |
| 37359 | esac |
| 37360 | shift |
| 37361 | # Used to flag and report bootstrapping failures. |
| 37362 | am_rc=0 |
| 37363 | for am_mf |
| 37364 | do |
| 37365 | # Strip MF so we end up with the name of the file. |
| 37366 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 37367 | # Check whether this is an Automake generated Makefile which includes |
| 37368 | # dependency-tracking related rules and includes. |
| 37369 | # Grep'ing the whole file directly is not great: AIX grep has a line |
| 37370 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 37371 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 37372 | || continue |
| 37373 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 37374 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37375 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 37376 | X"$am_mf" : 'X\(//\)$' \| \ |
| 37377 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 37378 | printf "%s\n" X"$am_mf" | |
| 37379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37380 | s//\1/ |
| 37381 | q |
| 37382 | } |
| 37383 | /^X\(\/\/\)[^/].*/{ |
| 37384 | s//\1/ |
| 37385 | q |
| 37386 | } |
| 37387 | /^X\(\/\/\)$/{ |
| 37388 | s//\1/ |
| 37389 | q |
| 37390 | } |
| 37391 | /^X\(\/\).*/{ |
| 37392 | s//\1/ |
| 37393 | q |
| 37394 | } |
| 37395 | s/.*/./; q'` |
| 37396 | am_filepart=`$as_basename -- "$am_mf" || |
| 37397 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 37398 | X"$am_mf" : 'X\(//\)$' \| \ |
| 37399 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 37400 | printf "%s\n" X/"$am_mf" | |
| 37401 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 37402 | s//\1/ |
| 37403 | q |
| 37404 | } |
| 37405 | /^X\/\(\/\/\)$/{ |
| 37406 | s//\1/ |
| 37407 | q |
| 37408 | } |
| 37409 | /^X\/\(\/\).*/{ |
| 37410 | s//\1/ |
| 37411 | q |
| 37412 | } |
| 37413 | s/.*/./; q'` |
| 37414 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 37415 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 37416 | | $MAKE -f - am--depfiles" >&5 |
| 37417 | (cd "$am_dirpart" \ |
| 37418 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 37419 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 37420 | ac_status=$? |
| 37421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37422 | (exit $ac_status); } || am_rc=$? |
| 37423 | done |
| 37424 | if test $am_rc -ne 0; then |
| 37425 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 37426 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 37427 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 37428 | for automatic dependency tracking. If GNU make was not used, consider |
| 37429 | re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 37430 | necessary). You can also try re-running configure with the |
| 37431 | '--disable-dependency-tracking' option to at least be able to build |
| 37432 | the package (albeit without support for automatic dependency tracking). |
| 37433 | See \`config.log' for more details" "$LINENO" 5; } |
| 37434 | fi |
| 37435 | { am_dirpart=; unset am_dirpart;} |
| 37436 | { am_filepart=; unset am_filepart;} |
| 37437 | { am_mf=; unset am_mf;} |
| 37438 | { am_rc=; unset am_rc;} |
| 37439 | rm -f conftest-deps.mk |
| 37440 | } |
| 37441 | ;; |
| 37442 | "tests/known-failures":F) chmod +x tests/known-failures ;; |
| 37443 | |
| 37444 | esac |
| 37445 | done # for ac_tag |
| 37446 | |
| 37447 | |
| 37448 | as_fn_exit 0 |
| 37449 | _ACEOF |
| 37450 | ac_clean_files=$ac_clean_files_save |
| 37451 | |
| 37452 | testscip-shell system . . test. $ac_write_fail = 0 || |
| 37453 | as_fn_errorscip-shell shell shell-project 0.0.0 as_fn_error(). $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 37454 | |
| 37455 | |
| 37456 | # configure is writing to config.log, and then calls config.status. |
| 37457 | # config.status does its own redirection, appending to config.log. |
| 37458 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 37459 | # by configure, so config.status won't be able to write to it; its |
| 37460 | # output is simply discarded. So we exec the FD to /dev/null, |
| 37461 | # effectively closing config.log, so it can be properly (re)opened and |
| 37462 | # appended to by config.status. When coming back to configure, we |
| 37463 | # need to make the FD available again. |
| 37464 | if testscip-shell system . . test. "$no_create" != yes; then |
| 37465 | ac_cs_success=: |
| 37466 | ac_config_status_args= |
| 37467 | testscip-shell system . . test. "$silent" = yes && |
| 37468 | ac_config_status_args="$ac_config_status_args --quiet" |
| 37469 | exec 5>/dev/nullscip-shell filesystem . . `/dev/null`. |
| 37470 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 37471 | exec 5>>config.log |
| 37472 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 37473 | # would make configure fail if this is the last instruction. |
| 37474 | $ac_cs_success || as_fn_exitscip-shell shell shell-project 0.0.0 as_fn_exit(). 1 |
| 37475 | fi |
| 37476 | if testscip-shell system . . test. -n "$ac_unrecognized_opts" && testscip-shell system . . test. "$enable_option_checking" != no; then |
| 37477 | { printfscip-shell system . . printf. "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 37478 | printfscip-shell system . . printf. "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 37479 | fi |
| 37480 | |
| 37481 | |
| 37482 | # configure.ac ends here |
| 37483 |