1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.73 for xsetroot 1.1.4. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # contradicts POSIX and common usage. Disable this. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 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/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 case $# in # (( 135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 137 esac 138 # Admittedly, this is quite paranoid, since all the known shells bail 139 # out after a failed 'exec'. 140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 141 exit 255 142 fi 143 # We don't want this to propagate to other subprocesses. 144 { _as_can_reexec=; unset _as_can_reexec;} 145 if test "x$CONFIG_SHELL" = x; then 146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 147 then : 148 emulate sh 149 NULLCMD=: 150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 151 # contradicts POSIX and common usage. Disable this. 152 alias -g '\${1+\"\$@\"}'='\"\$@\"' 153 setopt NO_GLOB_SUBST 154 else case e in #( 155 e) case \`(set -o) 2>/dev/null\` in #( 156 *posix*) : 157 set -o posix ;; #( 158 *) : 159 ;; 160 esac ;; 161 esac 162 fi 163 " 164 as_required="as_fn_return () { (exit \$1); } 165 as_fn_success () { as_fn_return 0; } 166 as_fn_failure () { as_fn_return 1; } 167 as_fn_ret_success () { return 0; } 168 as_fn_ret_failure () { return 1; } 169 170 exitcode=0 171 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 175 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 176 then : 177 178 else case e in #( 179 e) exitcode=1; echo positional parameters were not saved. ;; 180 esac 181 fi 182 test x\$exitcode = x0 || exit 1 183 blah=\$(echo \$(echo blah)) 184 test x\"\$blah\" = xblah || exit 1 185 test -x / || exit 1" 186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 190 test \$(( 1 + 1 )) = 2 || exit 1" 191 if (eval "$as_required") 2>/dev/null 192 then : 193 as_have_required=yes 194 else case e in #( 195 e) as_have_required=no ;; 196 esac 197 fi 198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 199 then : 200 201 else case e in #( 202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 203 as_found=false 204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 205 do 206 IFS=$as_save_IFS 207 case $as_dir in #((( 208 '') as_dir=./ ;; 209 */) ;; 210 *) as_dir=$as_dir/ ;; 211 esac 212 as_found=: 213 case $as_dir in #( 214 /*) 215 for as_base in sh bash ksh sh5; do 216 # Try only shells that exist, to save several forks. 217 as_shell=$as_dir$as_base 218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 220 then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 223 then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 IFS=$as_save_IFS 232 if $as_found 233 then : 234 235 else case e in #( 236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 238 then : 239 CONFIG_SHELL=$SHELL as_have_required=yes 240 fi ;; 241 esac 242 fi 243 244 245 if test "x$CONFIG_SHELL" != x 246 then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 case $# in # (( 262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 264 esac 265 # Admittedly, this is quite paranoid, since all the known shells bail 266 # out after a failed 'exec'. 267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 268 exit 255 269 fi 270 271 if test x$as_have_required = xno 272 then : 273 printf '%s\n' "$0: This script requires a shell more modern than all" 274 printf '%s\n' "$0: the shells that I found on your system." 275 if test ${ZSH_VERSION+y} ; then 276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and 280 $0: https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues 281 $0: about your system, including any error possibly output 282 $0: before this message. Then install a modern shell, or 283 $0: manually run the script under such a shell if you do 284 $0: have one." 285 fi 286 exit 1 287 fi ;; 288 esac 289 fi 290 fi 291 SHELL=${CONFIG_SHELL-/bin/sh} 292 export SHELL 293 # Unset more variables known to interfere with behavior of common tools. 294 CLICOLOR_FORCE= GREP_OPTIONS= 295 unset CLICOLOR_FORCE GREP_OPTIONS 296 297 ## --------------------- ## 298 ## M4sh Shell Functions. ## 299 ## --------------------- ## 300 # as_fn_unset VAR 301 # --------------- 302 # Portably unset VAR. 303 as_fn_unset () 304 { 305 { eval $1=; unset $1;} 306 } 307 as_unset=as_fn_unset 308 309 310 # as_fn_set_status STATUS 311 # ----------------------- 312 # Set $? to STATUS, without forking. 313 as_fn_set_status () 314 { 315 return $1 316 } # as_fn_set_status 317 318 # as_fn_exit STATUS 319 # ----------------- 320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 321 as_fn_exit () 322 { 323 set +e 324 as_fn_set_status $1 325 exit $1 326 } # as_fn_exit 327 328 # as_fn_mkdir_p 329 # ------------- 330 # Create "$as_dir" as a directory, including parents if necessary. 331 as_fn_mkdir_p () 332 { 333 334 case $as_dir in #( 335 -*) as_dir=./$as_dir;; 336 esac 337 test -d "$as_dir" || eval $as_mkdir_p || { 338 as_dirs= 339 while :; do 340 case $as_dir in #( 341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 342 *) as_qdir=$as_dir;; 343 esac 344 as_dirs="'$as_qdir' $as_dirs" 345 as_dir=`$as_dirname -- "$as_dir" || 346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 347 X"$as_dir" : 'X\(//\)[^/]' \| \ 348 X"$as_dir" : 'X\(//\)$' \| \ 349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 350 printf '%s\n' X"$as_dir" | 351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)[^/].*/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)$/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\).*/{ 364 s//\1/ 365 q 366 } 367 s/.*/./; q'` 368 test -d "$as_dir" && break 369 done 370 test -z "$as_dirs" || eval "mkdir $as_dirs" 371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 372 373 374 } # as_fn_mkdir_p 375 376 # as_fn_executable_p FILE 377 # ----------------------- 378 # Test if FILE is an executable regular file. 379 as_fn_executable_p () 380 { 381 test -f "$1" && test -x "$1" 382 } # as_fn_executable_p 383 # as_fn_append VAR VALUE 384 # ---------------------- 385 # Append the text in VALUE to the end of the definition contained in VAR. Take 386 # advantage of any shell optimizations that allow amortized linear growth over 387 # repeated appends, instead of the typical quadratic growth present in naive 388 # implementations. 389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 390 then : 391 eval 'as_fn_append () 392 { 393 eval $1+=\$2 394 }' 395 else case e in #( 396 e) as_fn_append () 397 { 398 eval $1=\$$1\$2 399 } ;; 400 esac 401 fi # as_fn_append 402 403 # as_fn_arith ARG... 404 # ------------------ 405 # Perform arithmetic evaluation on the ARGs, and store the result in the 406 # global $as_val. Take advantage of shells that can avoid forks. The arguments 407 # must be portable across $(()) and expr. 408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 409 then : 410 eval 'as_fn_arith () 411 { 412 as_val=$(( $* )) 413 }' 414 else case e in #( 415 e) as_fn_arith () 416 { 417 as_val=`expr "$@" || test $? -eq 1` 418 } ;; 419 esac 420 fi # as_fn_arith 421 422 423 # as_fn_error STATUS ERROR [LINENO LOG_FD] 424 # ---------------------------------------- 425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427 # script with STATUS, using 1 if that was 0. 428 as_fn_error () 429 { 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf '%s\n' "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437 } # as_fn_error 438 439 if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442 else 443 as_expr=false 444 fi 445 446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448 else 449 as_basename=false 450 fi 451 452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454 else 455 as_dirname=false 456 fi 457 458 as_me=`$as_basename -- "$0" || 459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462 printf '%s\n' X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477 # Avoid depending upon Character Ranges. 478 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481 as_cr_digits='0123456789' 482 as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 t clear 496 :clear 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520 } 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 535 # In both cases, we have to default to 'cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 562 563 # Sed expression to map a string onto a valid variable name. 564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 566 567 568 test -n "$DJDIR" || exec 7<&0 </dev/null 569 exec 6>&1 570 571 # Name of the host. 572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573 # so uname gets run too. 574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576 # 577 # Initializations. 578 # 579 ac_default_prefix=/usr/local 580 ac_clean_CONFIG_STATUS= 581 ac_clean_files= 582 ac_config_libobj_dir=. 583 LIBOBJS= 584 cross_compiling=no 585 subdirs= 586 MFLAGS= 587 MAKEFLAGS= 588 589 # Identity of this package. 590 PACKAGE_NAME='xsetroot' 591 PACKAGE_TARNAME='xsetroot' 592 PACKAGE_VERSION='1.1.4' 593 PACKAGE_STRING='xsetroot 1.1.4' 594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues' 595 PACKAGE_URL='' 596 597 ac_unique_file="Makefile.am" 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stddef.h> 601 #ifdef HAVE_STDIO_H 602 # include <stdio.h> 603 #endif 604 #ifdef HAVE_STDLIB_H 605 # include <stdlib.h> 606 #endif 607 #ifdef HAVE_STRING_H 608 # include <string.h> 609 #endif 610 #ifdef HAVE_INTTYPES_H 611 # include <inttypes.h> 612 #endif 613 #ifdef HAVE_STDINT_H 614 # include <stdint.h> 615 #endif 616 #ifdef HAVE_STRINGS_H 617 # include <strings.h> 618 #endif 619 #ifdef HAVE_SYS_TYPES_H 620 # include <sys/types.h> 621 #endif 622 #ifdef HAVE_SYS_STAT_H 623 # include <sys/stat.h> 624 #endif 625 #ifdef HAVE_UNISTD_H 626 # include <unistd.h> 627 #endif" 628 629 ac_header_c_list= 630 ac_subst_vars='am__EXEEXT_FALSE 631 am__EXEEXT_TRUE 632 LTLIBOBJS 633 LIBOBJS 634 LINT_FALSE 635 LINT_TRUE 636 LINT_FLAGS 637 LINT 638 XSETROOT_LIBS 639 XSETROOT_CFLAGS 640 MAN_SUBSTS 641 XORG_MAN_PAGE 642 ADMIN_MAN_DIR 643 DRIVER_MAN_DIR 644 MISC_MAN_DIR 645 FILE_MAN_DIR 646 LIB_MAN_DIR 647 APP_MAN_DIR 648 ADMIN_MAN_SUFFIX 649 DRIVER_MAN_SUFFIX 650 MISC_MAN_SUFFIX 651 FILE_MAN_SUFFIX 652 LIB_MAN_SUFFIX 653 APP_MAN_SUFFIX 654 SED 655 host_os 656 host_vendor 657 host_cpu 658 host 659 build_os 660 build_vendor 661 build_cpu 662 build 663 INSTALL_CMD 664 PKG_CONFIG_LIBDIR 665 PKG_CONFIG_PATH 666 PKG_CONFIG 667 CHANGELOG_CMD 668 STRICT_CFLAGS 669 CWARNFLAGS 670 BASE_CFLAGS 671 am__fastdepCC_FALSE 672 am__fastdepCC_TRUE 673 CCDEPMODE 674 am__nodep 675 AMDEPBACKSLASH 676 AMDEP_FALSE 677 AMDEP_TRUE 678 am__include 679 DEPDIR 680 OBJEXT 681 EXEEXT 682 ac_ct_CC 683 CPPFLAGS 684 LDFLAGS 685 CFLAGS 686 CC 687 am__xargs_n 688 am__rm_f_notfound 689 AM_BACKSLASH 690 AM_DEFAULT_VERBOSITY 691 AM_DEFAULT_V 692 AM_V 693 CSCOPE 694 ETAGS 695 CTAGS 696 am__untar 697 am__tar 698 AMTAR 699 am__leading_dot 700 SET_MAKE 701 AWK 702 mkdir_p 703 MKDIR_P 704 INSTALL_STRIP_PROGRAM 705 STRIP 706 install_sh 707 MAKEINFO 708 AUTOHEADER 709 AUTOMAKE 710 AUTOCONF 711 ACLOCAL 712 VERSION 713 PACKAGE 714 CYGPATH_W 715 am__isrc 716 INSTALL_DATA 717 INSTALL_SCRIPT 718 INSTALL_PROGRAM 719 ECHO_T 720 ECHO_N 721 ECHO_C 722 target_alias 723 host_alias 724 build_alias 725 LIBS 726 DEFS 727 mandir 728 localedir 729 libdir 730 psdir 731 pdfdir 732 dvidir 733 htmldir 734 infodir 735 docdir 736 oldincludedir 737 includedir 738 runstatedir 739 localstatedir 740 sharedstatedir 741 sysconfdir 742 datadir 743 datarootdir 744 libexecdir 745 sbindir 746 bindir 747 program_transform_name 748 prefix 749 exec_prefix 750 PACKAGE_URL 751 PACKAGE_BUGREPORT 752 PACKAGE_STRING 753 PACKAGE_VERSION 754 PACKAGE_TARNAME 755 PACKAGE_NAME 756 PATH_SEPARATOR 757 SHELL 758 am__quote' 759 ac_subst_files='' 760 ac_user_opts=' 761 enable_option_checking 762 enable_silent_rules 763 enable_dependency_tracking 764 enable_selective_werror 765 enable_strict_compilation 766 with_lint 767 ' 768 ac_precious_vars='build_alias 769 host_alias 770 target_alias 771 CC 772 CFLAGS 773 LDFLAGS 774 LIBS 775 CPPFLAGS 776 PKG_CONFIG 777 PKG_CONFIG_PATH 778 PKG_CONFIG_LIBDIR 779 XSETROOT_CFLAGS 780 XSETROOT_LIBS 781 LINT 782 LINT_FLAGS' 783 784 785 # Initialize some variables set by options. 786 ac_init_help= 787 ac_init_version=false 788 ac_unrecognized_opts= 789 ac_unrecognized_sep= 790 # The variables have the same names as the options, with 791 # dashes changed to underlines. 792 cache_file=/dev/null 793 exec_prefix=NONE 794 no_create= 795 no_recursion= 796 prefix=NONE 797 program_prefix=NONE 798 program_suffix=NONE 799 program_transform_name=s,x,x, 800 silent= 801 site= 802 srcdir= 803 verbose= 804 x_includes=NONE 805 x_libraries=NONE 806 807 # Installation directory options. 808 # These are left unexpanded so users can "make install exec_prefix=/foo" 809 # and all the variables that are supposed to be based on exec_prefix 810 # by default will actually change. 811 # Use braces instead of parens because sh, perl, etc. also accept them. 812 # (The list follows the same order as the GNU Coding Standards.) 813 bindir='${exec_prefix}/bin' 814 sbindir='${exec_prefix}/sbin' 815 libexecdir='${exec_prefix}/libexec' 816 datarootdir='${prefix}/share' 817 datadir='${datarootdir}' 818 sysconfdir='${prefix}/etc' 819 sharedstatedir='${prefix}/com' 820 localstatedir='${prefix}/var' 821 runstatedir='${localstatedir}/run' 822 includedir='${prefix}/include' 823 oldincludedir='/usr/include' 824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 825 infodir='${datarootdir}/info' 826 htmldir='${docdir}' 827 dvidir='${docdir}' 828 pdfdir='${docdir}' 829 psdir='${docdir}' 830 libdir='${exec_prefix}/lib' 831 localedir='${datarootdir}/locale' 832 mandir='${datarootdir}/man' 833 834 ac_prev= 835 ac_dashdash= 836 for ac_option 837 do 838 # If the previous option needs an argument, assign it. 839 if test -n "$ac_prev"; then 840 eval $ac_prev=\$ac_option 841 ac_prev= 842 continue 843 fi 844 845 case $ac_option in 846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 847 *=) ac_optarg= ;; 848 *) ac_optarg=yes ;; 849 esac 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: '$ac_useropt'" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896 "enable_$ac_useropt" 897 "*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: '$ac_useropt'" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922 "enable_$ac_useropt" 923 "*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1073 | --runstate | --runstat | --runsta | --runst | --runs \ 1074 | --run | --ru | --r) 1075 ac_prev=runstatedir ;; 1076 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1077 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1078 | --run=* | --ru=* | --r=*) 1079 runstatedir=$ac_optarg ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: '$ac_useropt'" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135 "with_$ac_useropt" 1136 "*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151 "with_$ac_useropt" 1152 "*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: '$ac_option' 1177 Try '$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 ;; 1197 1198 esac 1199 done 1200 1201 if test -n "$ac_prev"; then 1202 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204 fi 1205 1206 if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212 fi 1213 1214 # Check all directory arguments for consistency. 1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir runstatedir 1219 do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233 done 1234 1235 # There might be people who depend on the old broken behavior: '$host' 1236 # used to hold the argument of --host etc. 1237 # FIXME: To remove some day. 1238 build=$build_alias 1239 host=$host_alias 1240 target=$target_alias 1241 1242 # FIXME: To remove some day. 1243 if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 elif test "x$build_alias" != "x$host_alias"; then 1247 cross_compiling=yes 1248 fi 1249 fi 1250 1251 ac_tool_prefix= 1252 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1253 1254 test "$silent" = yes && exec 6>/dev/null 1255 1256 1257 ac_pwd=`pwd` && test -n "$ac_pwd" && 1258 ac_ls_di=`ls -di .` && 1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260 as_fn_error $? "working directory cannot be determined" 1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 as_fn_error $? "pwd does not report name of working directory" 1263 1264 1265 # Find the source files, if location was not specified. 1266 if test -z "$srcdir"; then 1267 ac_srcdir_defaulted=yes 1268 # Try the directory containing this script, then the parent directory. 1269 ac_confdir=`$as_dirname -- "$as_myself" || 1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 X"$as_myself" : 'X\(//\)$' \| \ 1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274 printf '%s\n' X"$as_myself" | 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)[^/].*/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\).*/{ 1288 s//\1/ 1289 q 1290 } 1291 s/.*/./; q'` 1292 srcdir=$ac_confdir 1293 if test ! -r "$srcdir/$ac_unique_file"; then 1294 srcdir=.. 1295 fi 1296 else 1297 ac_srcdir_defaulted=no 1298 fi 1299 if test ! -r "$srcdir/$ac_unique_file"; then 1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302 fi 1303 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1304 ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306 pwd)` 1307 # When building in place, set srcdir=. 1308 if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310 fi 1311 # Remove unnecessary trailing slashes from srcdir. 1312 # Double slashes in file names in object file debugging info 1313 # mess up M-x gdb in Emacs. 1314 case $srcdir in 1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316 esac 1317 for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322 done 1323 1324 # 1325 # Report the --help message. 1326 # 1327 if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331 'configure' configures xsetroot 1.1.4 to adapt to many kinds of systems. 1332 1333 Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336 VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338 Defaults for the options are specified in brackets. 1339 1340 Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print 'checking ...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for '--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1350 1351 Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357 By default, 'make install' will install all the files in 1358 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1359 an installation prefix other than '$ac_default_prefix' using '--prefix', 1360 for instance '--prefix=\$HOME'. 1361 1362 For better control, use the options below. 1363 1364 Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/xsetroot] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385 _ACEOF 1386 1387 cat <<\_ACEOF 1388 1389 Program names: 1390 --program-prefix=PREFIX prepend PREFIX to installed program names 1391 --program-suffix=SUFFIX append SUFFIX to installed program names 1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1393 1394 System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397 _ACEOF 1398 fi 1399 1400 if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of xsetroot 1.1.4:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406 Optional Features: 1407 --disable-option-checking ignore unrecognized --enable/--with options 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --enable-silent-rules less verbose build output (undo: "make V=1") 1411 --disable-silent-rules verbose build output (undo: "make V=0") 1412 --enable-dependency-tracking 1413 do not reject slow dependency extractors 1414 --disable-dependency-tracking 1415 speeds up one-time build 1416 --disable-selective-werror 1417 Turn off selective compiler errors. (default: 1418 enabled) 1419 --enable-strict-compilation 1420 Enable all warnings from compiler and make them 1421 errors (default: disabled) 1422 1423 Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-lint Use a lint-style source code checker (default: 1427 disabled) 1428 1429 Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 PKG_CONFIG path to pkg-config utility 1438 PKG_CONFIG_PATH 1439 directories to add to pkg-config's search path 1440 PKG_CONFIG_LIBDIR 1441 path overriding pkg-config's built-in search path 1442 XSETROOT_CFLAGS 1443 C compiler flags for XSETROOT, overriding pkg-config 1444 XSETROOT_LIBS 1445 linker flags for XSETROOT, overriding pkg-config 1446 LINT Path to a lint-style command 1447 LINT_FLAGS Flags for the lint-style command 1448 1449 Use these variables to override the choices made by 'configure' or to help 1450 it to find libraries and programs with nonstandard names/locations. 1451 1452 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues>. 1453 _ACEOF 1454 ac_status=$? 1455 fi 1456 1457 if test "$ac_init_help" = "recursive"; then 1458 # If there are subdirs, report their specific --help. 1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1460 test -d "$ac_dir" || 1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1462 continue 1463 ac_builddir=. 1464 1465 case "$ac_dir" in 1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1467 *) 1468 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 1469 # A ".." for each directory in $ac_dir_suffix. 1470 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1471 case $ac_top_builddir_sub in 1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1474 esac ;; 1475 esac 1476 ac_abs_top_builddir=$ac_pwd 1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1478 # for backward compatibility: 1479 ac_top_builddir=$ac_top_build_prefix 1480 1481 case $srcdir in 1482 .) # We are building in place. 1483 ac_srcdir=. 1484 ac_top_srcdir=$ac_top_builddir_sub 1485 ac_abs_top_srcdir=$ac_pwd ;; 1486 [\\/]* | ?:[\\/]* ) # Absolute name. 1487 ac_srcdir=$srcdir$ac_dir_suffix; 1488 ac_top_srcdir=$srcdir 1489 ac_abs_top_srcdir=$srcdir ;; 1490 *) # Relative name. 1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1492 ac_top_srcdir=$ac_top_build_prefix$srcdir 1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1494 esac 1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1496 1497 cd "$ac_dir" || { ac_status=$?; continue; } 1498 # Check for configure.gnu first; this name is used for a wrapper for 1499 # Metaconfig's "Configure" on case-insensitive file systems. 1500 if test -f "$ac_srcdir/configure.gnu"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1503 elif test -f "$ac_srcdir/configure"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure" --help=recursive 1506 else 1507 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1508 fi || ac_status=$? 1509 cd "$ac_pwd" || { ac_status=$?; break; } 1510 done 1511 fi 1512 1513 test -n "$ac_init_help" && exit $ac_status 1514 if $ac_init_version; then 1515 cat <<\_ACEOF 1516 xsetroot configure 1.1.4 1517 generated by GNU Autoconf 2.73 1518 1519 Copyright (C) 2026 Free Software Foundation, Inc. 1520 This configure script is free software; the Free Software Foundation 1521 gives unlimited permission to copy, distribute and modify it. 1522 _ACEOF 1523 exit 1524 fi 1525 1526 ## ------------------------ ## 1527 ## Autoconf initialization. ## 1528 ## ------------------------ ## 1529 1530 # ac_fn_c_try_compile LINENO 1531 # -------------------------- 1532 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1533 ac_fn_c_try_compile () 1534 { 1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1536 rm -f conftest.$ac_objext conftest.beam 1537 if { { ac_try="$ac_compile" 1538 case "(($ac_try" in 1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1540 *) ac_try_echo=$ac_try;; 1541 esac 1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1543 printf '%s\n' "$ac_try_echo"; } >&5 1544 (eval "$ac_compile") 2>conftest.err 1545 ac_status=$? 1546 if test -s conftest.err; then 1547 grep -v '^ *+' conftest.err >conftest.er1 1548 cat conftest.er1 >&5 1549 mv -f conftest.er1 conftest.err 1550 fi 1551 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1552 test $ac_status = 0; } && { 1553 test -z "$ac_c_werror_flag" || 1554 test ! -s conftest.err 1555 } && test -s conftest.$ac_objext 1556 then : 1557 ac_retval=0 1558 else case e in #( 1559 e) printf '%s\n' "$as_me: failed program was:" >&5 1560 sed 's/^/| /' conftest.$ac_ext >&5 1561 1562 ac_retval=1 ;; 1563 esac 1564 fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568 } # ac_fn_c_try_compile 1569 1570 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1571 # ------------------------------------------------------------------ 1572 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1573 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1574 ac_fn_check_decl () 1575 { 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 as_decl_name=`echo $2|sed 's/ *(.*//'` 1578 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1579 printf %s "checking whether $as_decl_name is declared... " >&6; } 1580 if eval test \${$3+y} 1581 then : 1582 printf %s "(cached) " >&6 1583 else case e in #( 1584 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1585 eval ac_save_FLAGS=\$$6 1586 as_fn_append $6 " $5" 1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1588 /* end confdefs.h. */ 1589 $4 1590 int 1591 main (void) 1592 { 1593 #ifndef $as_decl_name 1594 #ifdef __cplusplus 1595 (void) $as_decl_use; 1596 #else 1597 (void) $as_decl_name; 1598 #endif 1599 #endif 1600 1601 ; 1602 return 0; 1603 } 1604 _ACEOF 1605 if ac_fn_c_try_compile "$LINENO" 1606 then : 1607 eval "$3=yes" 1608 else case e in #( 1609 e) eval "$3=no" ;; 1610 esac 1611 fi 1612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1613 eval $6=\$ac_save_FLAGS 1614 ;; 1615 esac 1616 fi 1617 eval ac_res=\$$3 1618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1619 printf '%s\n' "$ac_res" >&6; } 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 1622 } # ac_fn_check_decl 1623 1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1625 # ------------------------------------------------------- 1626 # Tests whether HEADER exists and can be compiled using the include files in 1627 # INCLUDES, setting the cache variable VAR accordingly. 1628 ac_fn_c_check_header_compile () 1629 { 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632 printf %s "checking for $2... " >&6; } 1633 if eval test \${$3+y} 1634 then : 1635 printf %s "(cached) " >&6 1636 else case e in #( 1637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638 /* end confdefs.h. */ 1639 $4 1640 #include <$2> 1641 _ACEOF 1642 if ac_fn_c_try_compile "$LINENO" 1643 then : 1644 eval "$3=yes" 1645 else case e in #( 1646 e) eval "$3=no" ;; 1647 esac 1648 fi 1649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1650 esac 1651 fi 1652 eval ac_res=\$$3 1653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654 printf '%s\n' "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657 } # ac_fn_c_check_header_compile 1658 1659 # ac_fn_c_try_link LINENO 1660 # ----------------------- 1661 # Try to link conftest.$ac_ext, and return whether this succeeded. 1662 ac_fn_c_try_link () 1663 { 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1666 if { { ac_try="$ac_link" 1667 case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670 esac 1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672 printf '%s\n' "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest$ac_exeext && { 1685 test "$cross_compiling" = yes || 1686 test -x conftest$ac_exeext 1687 } 1688 then : 1689 ac_retval=0 1690 else case e in #( 1691 e) printf '%s\n' "$as_me: failed program was:" >&5 1692 sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 ;; 1695 esac 1696 fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705 } # ac_fn_c_try_link 1706 ac_configure_args_raw= 1707 for ac_arg 1708 do 1709 case $ac_arg in 1710 *\'*) 1711 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1712 esac 1713 as_fn_append ac_configure_args_raw " '$ac_arg'" 1714 done 1715 1716 case $ac_configure_args_raw in 1717 *$as_nl*) 1718 ac_safe_unquote= ;; 1719 *) 1720 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1721 ac_unsafe_a="$ac_unsafe_z#~" 1722 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1723 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1724 esac 1725 1726 cat >config.log <<_ACEOF 1727 This file contains any messages produced by compilers while 1728 running configure, to aid debugging if configure makes a mistake. 1729 1730 It was created by xsetroot $as_me 1.1.4, which was 1731 generated by GNU Autoconf 2.73. Invocation command line was 1732 1733 $ $0$ac_configure_args_raw 1734 1735 _ACEOF 1736 exec 5>>config.log 1737 { 1738 cat <<_ASUNAME 1739 ## --------- ## 1740 ## Platform. ## 1741 ## --------- ## 1742 1743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1744 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1745 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1746 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1747 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1748 1749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1750 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1751 1752 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1753 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1755 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1756 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1757 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1758 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1759 1760 _ASUNAME 1761 1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1763 for as_dir in $PATH 1764 do 1765 IFS=$as_save_IFS 1766 case $as_dir in #((( 1767 '') as_dir=./ ;; 1768 */) ;; 1769 *) as_dir=$as_dir/ ;; 1770 esac 1771 printf '%s\n' "PATH: $as_dir" 1772 done 1773 IFS=$as_save_IFS 1774 1775 } >&5 1776 1777 cat >&5 <<_ACEOF 1778 1779 1780 ## ----------- ## 1781 ## Core tests. ## 1782 ## ----------- ## 1783 1784 _ACEOF 1785 1786 1787 # Keep a trace of the command line. 1788 # Strip out --no-create and --no-recursion so they do not pile up. 1789 # Strip out --silent because we don't want to record it for future runs. 1790 # Also quote any args containing shell meta-characters. 1791 # Make two passes to allow for proper duplicate-argument suppression. 1792 ac_configure_args= 1793 ac_configure_args0= 1794 ac_configure_args1= 1795 ac_must_keep_next=false 1796 for ac_pass in 1 2 1797 do 1798 for ac_arg 1799 do 1800 case $ac_arg in 1801 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1803 | -silent | --silent | --silen | --sile | --sil) 1804 continue ;; 1805 *\'*) 1806 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1807 esac 1808 case $ac_pass in 1809 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1810 2) 1811 as_fn_append ac_configure_args1 " '$ac_arg'" 1812 if test $ac_must_keep_next = true; then 1813 ac_must_keep_next=false # Got value, back to normal. 1814 else 1815 case $ac_arg in 1816 *=* | --config-cache | -C | -disable-* | --disable-* \ 1817 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1818 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1819 | -with-* | --with-* | -without-* | --without-* | --x) 1820 case "$ac_configure_args0 " in 1821 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1822 esac 1823 ;; 1824 -* ) ac_must_keep_next=true ;; 1825 esac 1826 fi 1827 as_fn_append ac_configure_args " '$ac_arg'" 1828 ;; 1829 esac 1830 done 1831 done 1832 { ac_configure_args0=; unset ac_configure_args0;} 1833 { ac_configure_args1=; unset ac_configure_args1;} 1834 1835 # Dump the cache to stdout. It can be in a pipe (this is a requirement). 1836 ac_cache_dump () 1837 { 1838 # The following way of writing the cache mishandles newlines in values, 1839 # but we know of no workaround that is simple, portable, and efficient. 1840 # So, we kill variables containing newlines. 1841 # Ultrix sh set writes to stderr and can't be redirected directly, 1842 # and sets the high bit in the cache file unless we assign to the vars. 1843 ( 1844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1845 eval ac_val=\$$ac_var 1846 case $ac_val in #( 1847 *${as_nl}*) 1848 case $ac_var in #( 1849 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1850 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1851 esac 1852 case $ac_var in #( 1853 _ | IFS | as_nl) ;; #( 1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1855 *) { eval $ac_var=; unset $ac_var;} ;; 1856 esac ;; 1857 esac 1858 done 1859 1860 (set) 2>&1 | 1861 case $as_nl`(ac_space=' '; set) 2>&1` in #( 1862 *${as_nl}ac_space=\ *) 1863 # 'set' does not quote correctly, so add quotes: double-quote 1864 # substitution turns \\\\ into \\, and sed turns \\ into \. 1865 sed -n \ 1866 "s/'/'\\\\''/g; 1867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1868 ;; #( 1869 *) 1870 # 'set' quotes correctly as required by POSIX, so do not add quotes. 1871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1872 ;; 1873 esac | 1874 sort 1875 ) 1876 } 1877 1878 # Print debugging info to stdout. 1879 ac_dump_debugging_info () 1880 { 1881 echo 1882 1883 printf '%s\n' "## ---------------- ## 1884 ## Cache variables. ## 1885 ## ---------------- ##" 1886 echo 1887 ac_cache_dump 1888 echo 1889 1890 printf '%s\n' "## ----------------- ## 1891 ## Output variables. ## 1892 ## ----------------- ##" 1893 echo 1894 for ac_var in $ac_subst_vars 1895 do 1896 eval ac_val=\$$ac_var 1897 case $ac_val in 1898 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1899 esac 1900 printf '%s\n' "$ac_var='$ac_val'" 1901 done | sort 1902 echo 1903 1904 if test -n "$ac_subst_files"; then 1905 printf '%s\n' "## ------------------- ## 1906 ## File substitutions. ## 1907 ## ------------------- ##" 1908 echo 1909 for ac_var in $ac_subst_files 1910 do 1911 eval ac_val=\$$ac_var 1912 case $ac_val in 1913 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1914 esac 1915 printf '%s\n' "$ac_var='$ac_val'" 1916 done | sort 1917 echo 1918 fi 1919 1920 if test -s confdefs.h; then 1921 printf '%s\n' "## ----------- ## 1922 ## confdefs.h. ## 1923 ## ----------- ##" 1924 echo 1925 cat confdefs.h 1926 echo 1927 fi 1928 test "$ac_signal" != 0 && 1929 printf '%s\n' "$as_me: caught signal $ac_signal" 1930 printf '%s\n' "$as_me: exit $exit_status" 1931 } 1932 1933 # When interrupted or exit'd, cleanup temporary files, and complete 1934 # config.log. 1935 ac_exit_trap () 1936 { 1937 exit_status= 1938 # Sanitize IFS. 1939 IFS=" "" $as_nl" 1940 # Save into config.log some information that might help in debugging. 1941 ac_dump_debugging_info >&5 1942 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" && 1943 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1944 exit $exit_status 1945 } 1946 1947 trap 'ac_exit_trap $?' 0 1948 for ac_signal in 1 2 13 15; do 1949 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1950 done 1951 ac_signal=0 1952 1953 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1954 rm -f -r conftest* confdefs.h 1955 1956 printf '%s\n' "/* confdefs.h */" > confdefs.h 1957 1958 # Predefined preprocessor variables. 1959 1960 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1961 1962 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1963 1964 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1965 1966 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1967 1968 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1969 1970 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1971 1972 1973 # Let the site file select an alternate cache file if it wants to. 1974 # Prefer an explicitly selected file to automatically selected ones. 1975 if test -n "$CONFIG_SITE"; then 1976 ac_site_files="$CONFIG_SITE" 1977 elif test "x$prefix" != xNONE; then 1978 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1979 else 1980 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1981 fi 1982 1983 for ac_site_file in $ac_site_files 1984 do 1985 case $ac_site_file in #( 1986 */*) : 1987 ;; #( 1988 *) : 1989 ac_site_file=./$ac_site_file ;; 1990 esac 1991 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1993 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;} 1994 sed 's/^/| /' "$ac_site_file" >&5 1995 . "$ac_site_file" \ 1996 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1997 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 1998 as_fn_error $? "failed to load site script $ac_site_file 1999 See 'config.log' for more details" "$LINENO" 5; } 2000 fi 2001 done 2002 2003 if test -r "$cache_file"; then 2004 # Some versions of bash will fail to source /dev/null (special files 2005 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2008 printf '%s\n' "$as_me: loading cache $cache_file" >&6;} 2009 case $cache_file in 2010 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2011 *) . "./$cache_file";; 2012 esac 2013 fi 2014 else 2015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2016 printf '%s\n' "$as_me: creating cache $cache_file" >&6;} 2017 >$cache_file 2018 fi 2019 2020 # Test code for whether the C compiler supports C23 (global declarations) 2021 ac_c_conftest_c23_globals=' 2022 /* Does the compiler advertise conformance to C17 or earlier? 2023 Although GCC 14 does not do that, even with -std=gnu23, 2024 it is close enough, and defines __STDC_VERSION == 202000L. */ 2025 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L 2026 # error "Compiler advertises conformance to C17 or earlier" 2027 #endif 2028 2029 // Check alignas. 2030 char alignas (double) c23_aligned_as_double; 2031 char alignas (0) c23_no_special_alignment; 2032 extern char c23_aligned_as_int; 2033 char alignas (0) alignas (int) c23_aligned_as_int; 2034 2035 // Check alignof. 2036 enum 2037 { 2038 c23_int_alignment = alignof (int), 2039 c23_int_array_alignment = alignof (int[100]), 2040 c23_char_alignment = alignof (char) 2041 }; 2042 static_assert (0 < -alignof (int), "alignof is signed"); 2043 2044 int function_with_unnamed_parameter (int) { return 0; } 2045 2046 void c23_noreturn (); 2047 2048 /* Test parsing of string and char UTF-8 literals (including hex escapes). 2049 The parens pacify GCC 15. */ 2050 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\''); 2051 2052 bool check_that_bool_works = true | false | !nullptr; 2053 #if !true 2054 # error "true does not work in #if" 2055 #endif 2056 #if false 2057 #elifdef __STDC_VERSION__ 2058 #else 2059 # error "#elifdef does not work" 2060 #endif 2061 2062 #ifndef __has_c_attribute 2063 # error "__has_c_attribute not defined" 2064 #endif 2065 2066 #ifndef __has_include 2067 # error "__has_include not defined" 2068 #endif 2069 2070 #define LPAREN() ( 2071 #define FORTY_TWO(x) 42 2072 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x)) 2073 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42); 2074 2075 static_assert (0b101010 == 42); 2076 static_assert (0B101010 == 42); 2077 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559); 2078 static_assert (0.500'\''000'\''000 == 0.5); 2079 2080 enum unsignedish : unsigned int { uione = 1 }; 2081 static_assert (0 < -uione); 2082 2083 #include <stddef.h> 2084 constexpr nullptr_t null_pointer = nullptr; 2085 2086 static typeof (1 + 1L) two () { return 2; } 2087 static long int three () { return 3; } 2088 ' 2089 2090 # Test code for whether the C compiler supports C23 (body of main). 2091 ac_c_conftest_c23_main=' 2092 { 2093 label_before_declaration: 2094 int arr[10] = {}; 2095 if (arr[0]) 2096 goto label_before_declaration; 2097 if (!arr[0]) 2098 goto label_at_end_of_block; 2099 label_at_end_of_block: 2100 } 2101 ok |= !null_pointer; 2102 ok |= two != three; 2103 ' 2104 2105 # Test code for whether the C compiler supports C23 (complete). 2106 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals} 2107 2108 int 2109 main (int, char **) 2110 { 2111 int ok = 0; 2112 ${ac_c_conftest_c23_main} 2113 return ok; 2114 } 2115 " 2116 2117 # Test code for whether the C compiler supports C89 (global declarations) 2118 ac_c_conftest_c89_globals=' 2119 /* Do not test the value of __STDC__, because some compilers define it to 0 2120 or do not define it, while otherwise adequately conforming. */ 2121 2122 #include <stddef.h> 2123 #include <stdarg.h> 2124 struct stat; 2125 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2126 struct buf { int x; }; 2127 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2128 static char *e (char **p, int i) 2129 { 2130 return p[i]; 2131 } 2132 static char *f (char * (*g) (char **, int), char **p, ...) 2133 { 2134 char *s; 2135 va_list v; 2136 va_start (v,p); 2137 s = g (p, va_arg (v,int)); 2138 va_end (v); 2139 return s; 2140 } 2141 2142 /* C89 style stringification. */ 2143 #define noexpand_stringify(a) #a 2144 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2145 2146 /* C89 style token pasting. Exercises some of the corner cases that 2147 e.g. old MSVC gets wrong, but not very hard. */ 2148 #define noexpand_concat(a,b) a##b 2149 #define expand_concat(a,b) noexpand_concat(a,b) 2150 extern int vA; 2151 extern int vbee; 2152 #define aye A 2153 #define bee B 2154 int *pvA = &expand_concat(v,aye); 2155 int *pvbee = &noexpand_concat(v,bee); 2156 2157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2158 function prototypes and stuff, but not \xHH hex character constants. 2159 These do not provoke an error unfortunately, instead are silently treated 2160 as an "x". The following induces an error, until -std is added to get 2161 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2162 array size at least. It is necessary to write \x00 == 0 to get something 2163 that is true only with -std. */ 2164 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2165 2166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2167 inside strings and character constants. */ 2168 #define FOO(x) '\''x'\'' 2169 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2170 2171 int test (int i, double x); 2172 struct s1 {int (*f) (int a);}; 2173 struct s2 {int (*f) (double a);}; 2174 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2175 int, int);' 2176 2177 # Test code for whether the C compiler supports C89 (body of main). 2178 ac_c_conftest_c89_main=' 2179 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2180 ' 2181 2182 # Test code for whether the C compiler supports C99 (global declarations) 2183 ac_c_conftest_c99_globals=' 2184 /* Does the compiler advertise C99 conformance? */ 2185 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2186 # error "Compiler does not advertise C99 conformance" 2187 #endif 2188 2189 // See if C++-style comments work. 2190 2191 #include <stdbool.h> 2192 extern int puts (const char *); 2193 extern int printf (const char *, ...); 2194 extern int dprintf (int, const char *, ...); 2195 extern void *malloc (size_t); 2196 extern void free (void *); 2197 2198 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2199 // dprintf is used instead of fprintf to avoid needing to declare 2200 // FILE and stderr, and "aND" is used instead of "and" to work around 2201 // GCC bug 40564 which is irrelevant here. 2202 #define debug(...) dprintf (2, __VA_ARGS__) 2203 #define showlist(...) puts (#__VA_ARGS__) 2204 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2205 static void 2206 test_varargs_macros (void) 2207 { 2208 int x = 1234; 2209 int y = 5678; 2210 debug ("Flag"); 2211 debug ("X = %d\n", x); 2212 showlist (The first, second, aND third items.); 2213 report (x>y, "x is %d but y is %d", x, y); 2214 } 2215 2216 // Check long long types. 2217 #define BIG64 18446744073709551615ull 2218 #define BIG32 4294967295ul 2219 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2220 #if !BIG_OK 2221 #error "your preprocessor is broken" 2222 #endif 2223 #if BIG_OK 2224 #else 2225 #error "your preprocessor is broken" 2226 #endif 2227 static long long int bignum = -9223372036854775807LL; 2228 static unsigned long long int ubignum = BIG64; 2229 2230 struct incomplete_array 2231 { 2232 int datasize; 2233 double data[]; 2234 }; 2235 2236 struct named_init { 2237 int number; 2238 const wchar_t *name; 2239 double average; 2240 }; 2241 2242 typedef const char *ccp; 2243 2244 static inline int 2245 test_restrict (ccp restrict text) 2246 { 2247 // Iterate through items via the restricted pointer. 2248 // Also check for declarations in for loops. 2249 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2250 continue; 2251 return 0; 2252 } 2253 2254 // Check varargs and va_copy. 2255 static bool 2256 test_varargs (const char *format, ...) 2257 { 2258 va_list args; 2259 va_start (args, format); 2260 va_list args_copy; 2261 va_copy (args_copy, args); 2262 2263 const char *str = ""; 2264 int number = 0; 2265 float fnumber = 0; 2266 2267 while (*format) 2268 { 2269 switch (*format++) 2270 { 2271 case '\''s'\'': // string 2272 str = va_arg (args_copy, const char *); 2273 break; 2274 case '\''d'\'': // int 2275 number = va_arg (args_copy, int); 2276 break; 2277 case '\''f'\'': // float 2278 fnumber = va_arg (args_copy, double); 2279 break; 2280 default: 2281 break; 2282 } 2283 } 2284 va_end (args_copy); 2285 va_end (args); 2286 2287 return *str && number && fnumber; 2288 } 2289 ' 2290 2291 # Test code for whether the C compiler supports C99 (body of main). 2292 ac_c_conftest_c99_main=' 2293 // Check bool. 2294 _Bool success = false; 2295 success |= (argc != 0); 2296 2297 // Check restrict. 2298 if (test_restrict ("String literal") == 0) 2299 success = true; 2300 const char *restrict newvar = "Another string"; 2301 2302 // Check varargs. 2303 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2304 test_varargs_macros (); 2305 2306 // Check flexible array members. 2307 static struct incomplete_array *volatile incomplete_array_pointer; 2308 struct incomplete_array *ia = incomplete_array_pointer; 2309 ia->datasize = 10; 2310 for (int i = 0; i < ia->datasize; ++i) 2311 ia->data[i] = i * 1.234; 2312 // Work around memory leak warnings. 2313 free (ia); 2314 2315 // Check named initializers. 2316 struct named_init ni = { 2317 .number = 34, 2318 .name = L"Test wide string", 2319 .average = 543.34343, 2320 }; 2321 2322 ni.number = 58; 2323 2324 // Do not test for VLAs, as some otherwise-conforming compilers lack them. 2325 // C code should instead use __STDC_NO_VLA__; see Autoconf manual. 2326 2327 // work around unused variable warnings 2328 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2329 || ni.number != 58); 2330 ' 2331 2332 # Test code for whether the C compiler supports C11 (global declarations) 2333 ac_c_conftest_c11_globals=' 2334 /* Does the compiler advertise C11 conformance? */ 2335 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2336 # error "Compiler does not advertise C11 conformance" 2337 #endif 2338 2339 // Check _Alignas. 2340 char _Alignas (double) aligned_as_double; 2341 char _Alignas (0) no_special_alignment; 2342 extern char aligned_as_int; 2343 char _Alignas (0) _Alignas (int) aligned_as_int; 2344 2345 // Check _Alignof. 2346 enum 2347 { 2348 int_alignment = _Alignof (int), 2349 int_array_alignment = _Alignof (int[100]), 2350 char_alignment = _Alignof (char) 2351 }; 2352 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2353 2354 // Check _Noreturn. 2355 int _Noreturn does_not_return (void) { for (;;) continue; } 2356 2357 // Check _Static_assert. 2358 struct test_static_assert 2359 { 2360 int x; 2361 _Static_assert (sizeof (int) <= sizeof (long int), 2362 "_Static_assert does not work in struct"); 2363 long int y; 2364 }; 2365 2366 // Check UTF-8 literals. 2367 #define u8 syntax error! 2368 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2369 2370 // Check duplicate typedefs. 2371 typedef long *long_ptr; 2372 typedef long int *long_ptr; 2373 typedef long_ptr long_ptr; 2374 2375 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2376 struct anonymous 2377 { 2378 union { 2379 struct { int i; int j; }; 2380 struct { int k; long int l; } w; 2381 }; 2382 int m; 2383 } v1; 2384 ' 2385 2386 # Test code for whether the C compiler supports C11 (body of main). 2387 ac_c_conftest_c11_main=' 2388 _Static_assert ((offsetof (struct anonymous, i) 2389 == offsetof (struct anonymous, w.k)), 2390 "Anonymous union alignment botch"); 2391 v1.i = 2; 2392 v1.w.k = 5; 2393 ok |= v1.i != 5; 2394 ' 2395 2396 # Test code for whether the C compiler supports C11 (complete). 2397 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2398 ${ac_c_conftest_c99_globals} 2399 ${ac_c_conftest_c11_globals} 2400 2401 int 2402 main (int argc, char **argv) 2403 { 2404 int ok = 0; 2405 ${ac_c_conftest_c89_main} 2406 ${ac_c_conftest_c99_main} 2407 ${ac_c_conftest_c11_main} 2408 return ok; 2409 } 2410 " 2411 2412 # Test code for whether the C compiler supports C99 (complete). 2413 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2414 ${ac_c_conftest_c99_globals} 2415 2416 int 2417 main (int argc, char **argv) 2418 { 2419 int ok = 0; 2420 ${ac_c_conftest_c89_main} 2421 ${ac_c_conftest_c99_main} 2422 return ok; 2423 } 2424 " 2425 2426 # Test code for whether the C compiler supports C89 (complete). 2427 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2428 2429 int 2430 main (int argc, char **argv) 2431 { 2432 int ok = 0; 2433 ${ac_c_conftest_c89_main} 2434 return ok; 2435 } 2436 " 2437 2438 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2439 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2440 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2441 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2442 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2443 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2444 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2445 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2446 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2447 2448 # Auxiliary files required by this configure script. 2449 ac_aux_files="config.guess config.sub compile missing install-sh" 2450 2451 # Locations in which to look for auxiliary files. 2452 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2453 2454 # Search for a directory containing all of the required auxiliary files, 2455 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2456 # If we don't find one directory that contains all the files we need, 2457 # we report the set of missing files from the *first* directory in 2458 # $ac_aux_dir_candidates and give up. 2459 ac_missing_aux_files="" 2460 ac_first_candidate=: 2461 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463 as_found=false 2464 for as_dir in $ac_aux_dir_candidates 2465 do 2466 IFS=$as_save_IFS 2467 case $as_dir in #((( 2468 '') as_dir=./ ;; 2469 */) ;; 2470 *) as_dir=$as_dir/ ;; 2471 esac 2472 as_found=: 2473 2474 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2475 ac_aux_dir_found=yes 2476 ac_install_sh= 2477 for ac_aux in $ac_aux_files 2478 do 2479 # As a special case, if "install-sh" is required, that requirement 2480 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2481 # and $ac_install_sh is set appropriately for whichever one is found. 2482 if test x"$ac_aux" = x"install-sh" 2483 then 2484 if test -f "${as_dir}install-sh"; then 2485 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2486 ac_install_sh="${as_dir}install-sh -c" 2487 elif test -f "${as_dir}install.sh"; then 2488 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2489 ac_install_sh="${as_dir}install.sh -c" 2490 elif test -f "${as_dir}shtool"; then 2491 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2492 ac_install_sh="${as_dir}shtool install -c" 2493 else 2494 ac_aux_dir_found=no 2495 if $ac_first_candidate; then 2496 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2497 else 2498 break 2499 fi 2500 fi 2501 else 2502 if test -f "${as_dir}${ac_aux}"; then 2503 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2504 else 2505 ac_aux_dir_found=no 2506 if $ac_first_candidate; then 2507 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2508 else 2509 break 2510 fi 2511 fi 2512 fi 2513 done 2514 if test "$ac_aux_dir_found" = yes; then 2515 ac_aux_dir="$as_dir" 2516 break 2517 fi 2518 ac_first_candidate=false 2519 2520 as_found=false 2521 done 2522 IFS=$as_save_IFS 2523 if $as_found 2524 then : 2525 2526 else case e in #( 2527 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2528 esac 2529 fi 2530 2531 2532 # These three variables are undocumented and unsupported, 2533 # and are intended to be withdrawn in a future Autoconf release. 2534 # They can cause serious problems if a builder's source tree is in a directory 2535 # whose full name contains unusual characters. 2536 if test -f "${ac_aux_dir}config.guess"; then 2537 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2538 fi 2539 if test -f "${ac_aux_dir}config.sub"; then 2540 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2541 fi 2542 if test -f "$ac_aux_dir/configure"; then 2543 ac_configure="$SHELL ${ac_aux_dir}configure" 2544 fi 2545 2546 # Check that the precious variables saved in the cache have kept the same 2547 # value. 2548 ac_cache_corrupted=false 2549 for ac_var in $ac_precious_vars; do 2550 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2551 eval ac_new_set=\$ac_env_${ac_var}_set 2552 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2553 eval ac_new_val=\$ac_env_${ac_var}_value 2554 case $ac_old_set,$ac_new_set in 2555 set,) 2556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2557 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2558 ac_cache_corrupted=: ;; 2559 ,set) 2560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2561 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2562 ac_cache_corrupted=: ;; 2563 ,);; 2564 *) 2565 if test "x$ac_old_val" != "x$ac_new_val"; then 2566 # differences in whitespace do not lead to failure. 2567 ac_old_val_w= 2568 for ac_val in x $ac_old_val; do 2569 ac_old_val_w="$ac_old_val_w $ac_val" 2570 done 2571 ac_new_val_w= 2572 for ac_val in x $ac_new_val; do 2573 ac_new_val_w="$ac_new_val_w $ac_val" 2574 done 2575 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2577 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2578 ac_cache_corrupted=: 2579 else 2580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2581 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2582 eval $ac_var=\$ac_old_val 2583 fi 2584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2585 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;} 2586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2587 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;} 2588 fi;; 2589 esac 2590 # Pass precious variables to config.status. 2591 if test "$ac_new_set" = set; then 2592 case $ac_new_val in 2593 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2594 *) ac_arg=$ac_var=$ac_new_val ;; 2595 esac 2596 case " $ac_configure_args " in 2597 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2598 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2599 esac 2600 fi 2601 done 2602 if $ac_cache_corrupted; then 2603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2604 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2606 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;} 2607 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2608 and start over" "$LINENO" 5 2609 fi 2610 ## -------------------- ## 2611 ## Main body of script. ## 2612 ## -------------------- ## 2613 2614 2615 # Determine whether it's possible to make 'echo' print without a newline. 2616 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 2617 # for compatibility with existing Makefiles. 2618 ECHO_C= ECHO_N= ECHO_T= 2619 case `echo -n x` in #((((( 2620 -n*) 2621 case `echo 'xy\c'` in 2622 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2623 xy) ECHO_C='\c';; 2624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2625 ECHO_T=' ';; 2626 esac;; 2627 *) 2628 ECHO_N='-n';; 2629 esac 2630 2631 ac_ext=c 2632 ac_cpp='$CPP $CPPFLAGS' 2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2636 2637 2638 2639 ac_config_headers="$ac_config_headers config.h" 2640 2641 2642 # Initialize Automake 2643 am__api_version='1.18' 2644 2645 2646 2647 # Find a good install program. We prefer a C program (faster), 2648 # so one script is as good as another. But avoid the broken or 2649 # incompatible versions: 2650 # SysV /etc/install, /usr/sbin/install 2651 # SunOS /usr/etc/install 2652 # IRIX /sbin/install 2653 # AIX /bin/install 2654 # AmigaOS /C/install, which installs bootblocks on floppy discs 2655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2658 # OS/2's system install, which has a completely different semantic 2659 # ./install, which can be erroneously created by make from ./install.sh. 2660 # Reject install programs that cannot install multiple files. 2661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2662 printf %s "checking for a BSD-compatible install... " >&6; } 2663 if test -z "$INSTALL"; then 2664 if test ${ac_cv_path_install+y} 2665 then : 2666 printf %s "(cached) " >&6 2667 else case e in #( 2668 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669 for as_dir in $PATH 2670 do 2671 IFS=$as_save_IFS 2672 case $as_dir in #((( 2673 '') as_dir=./ ;; 2674 */) ;; 2675 *) as_dir=$as_dir/ ;; 2676 esac 2677 # Account for fact that we put trailing slashes in our PATH walk. 2678 case $as_dir in #(( 2679 ./ | /[cC]/* | \ 2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2682 /usr/ucb/* ) ;; 2683 *) 2684 # OSF/1 and SCO ODT 3.0 have their own names for install. 2685 # Don't use installbsd from OSF/1 since it installs stuff as root 2686 # by default. 2687 for ac_prog in ginstall scoinst install; do 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2690 if test $ac_prog = install && 2691 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2692 # AIX install. It has an incompatible calling convention. 2693 : 2694 elif test $ac_prog = install && 2695 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2696 # program-specific install script used by HP pwplus--don't use. 2697 : 2698 else 2699 rm -rf conftest.one conftest.two conftest.dir 2700 echo one > conftest.one 2701 echo two > conftest.two 2702 mkdir conftest.dir 2703 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2704 test -s conftest.one && test -s conftest.two && 2705 test -s conftest.dir/conftest.one && 2706 test -s conftest.dir/conftest.two 2707 then 2708 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2709 break 3 2710 fi 2711 fi 2712 fi 2713 done 2714 done 2715 ;; 2716 esac 2717 2718 done 2719 IFS=$as_save_IFS 2720 2721 rm -rf conftest.one conftest.two conftest.dir 2722 ;; 2723 esac 2724 fi 2725 if test ${ac_cv_path_install+y}; then 2726 INSTALL=$ac_cv_path_install 2727 else 2728 # As a last resort, use the slow shell script. Don't cache a 2729 # value for INSTALL within a source directory, because that will 2730 # break other packages using the cache if that directory is 2731 # removed, or if the value is a relative name. 2732 INSTALL=$ac_install_sh 2733 fi 2734 fi 2735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2736 printf '%s\n' "$INSTALL" >&6; } 2737 2738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2739 # It thinks the first close brace ends the variable substitution. 2740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2741 2742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2743 2744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2745 2746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2747 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2748 if test ${am_cv_sleep_fractional_seconds+y} 2749 then : 2750 printf %s "(cached) " >&6 2751 else case e in #( 2752 e) if sleep 0.001 2>/dev/null 2753 then : 2754 am_cv_sleep_fractional_seconds=yes 2755 else case e in #( 2756 e) am_cv_sleep_fractional_seconds=no ;; 2757 esac 2758 fi 2759 ;; 2760 esac 2761 fi 2762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2763 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; } 2764 2765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2766 printf %s "checking filesystem timestamp resolution... " >&6; } 2767 if test ${am_cv_filesystem_timestamp_resolution+y} 2768 then : 2769 printf %s "(cached) " >&6 2770 else case e in #( 2771 e) # Default to the worst case. 2772 am_cv_filesystem_timestamp_resolution=2 2773 2774 # Only try to go finer than 1 sec if sleep can do it. 2775 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2776 # - 1 sec is not much of a win compared to 2 sec, and 2777 # - it takes 2 seconds to perform the test whether 1 sec works. 2778 # 2779 # Instead, just use the default 2s on platforms that have 1s resolution, 2780 # accept the extra 1s delay when using $sleep in the Automake tests, in 2781 # exchange for not incurring the 2s delay for running the test for all 2782 # packages. 2783 # 2784 am_try_resolutions= 2785 if test "$am_cv_sleep_fractional_seconds" = yes; then 2786 # Even a millisecond often causes a bunch of false positives, 2787 # so just try a hundredth of a second. The time saved between .001 and 2788 # .01 is not terribly consequential. 2789 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2790 fi 2791 2792 # In order to catch current-generation FAT out, we must *modify* files 2793 # that already exist; the *creation* timestamp is finer. Use names 2794 # that make ls -t sort them differently when they have equal 2795 # timestamps than when they have distinct timestamps, keeping 2796 # in mind that ls -t prints the *newest* file first. 2797 rm -f conftest.ts? 2798 : > conftest.ts1 2799 : > conftest.ts2 2800 : > conftest.ts3 2801 2802 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2803 # clobber the current shell's arguments. (Outer-level square brackets 2804 # are removed by m4; they're present so that m4 does not expand 2805 # <dollar><star>; be careful, easy to get confused.) 2806 if ( 2807 set X `ls -t conftest.ts[12]` && 2808 { 2809 test "$*" != "X conftest.ts1 conftest.ts2" || 2810 test "$*" != "X conftest.ts2 conftest.ts1"; 2811 } 2812 ); then :; else 2813 # If neither matched, then we have a broken ls. This can happen 2814 # if, for instance, CONFIG_SHELL is bash and it inherits a 2815 # broken ls alias from the environment. This has actually 2816 # happened. Such a system could not be considered "sane". 2817 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2818 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2819 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2820 as_fn_error $? "ls -t produces unexpected output. 2821 Make sure there is not a broken ls alias in your environment. 2822 See 'config.log' for more details" "$LINENO" 5; } 2823 fi 2824 2825 for am_try_res in $am_try_resolutions; do 2826 # Any one fine-grained sleep might happen to cross the boundary 2827 # between two values of a coarser actual resolution, but if we do 2828 # two fine-grained sleeps in a row, at least one of them will fall 2829 # entirely within a coarse interval. 2830 echo alpha > conftest.ts1 2831 sleep $am_try_res 2832 echo beta > conftest.ts2 2833 sleep $am_try_res 2834 echo gamma > conftest.ts3 2835 2836 # We assume that 'ls -t' will make use of high-resolution 2837 # timestamps if the operating system supports them at all. 2838 if (set X `ls -t conftest.ts?` && 2839 test "$2" = conftest.ts3 && 2840 test "$3" = conftest.ts2 && 2841 test "$4" = conftest.ts1); then 2842 # 2843 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2844 # because we don't need to test make. 2845 make_ok=true 2846 if test $am_try_res != 1; then 2847 # But if we've succeeded so far with a subsecond resolution, we 2848 # have one more thing to check: make. It can happen that 2849 # everything else supports the subsecond mtimes, but make doesn't; 2850 # notably on macOS, which ships make 3.81 from 2006 (the last one 2851 # released under GPLv2). https://bugs.gnu.org/68808 2852 # 2853 # We test $MAKE if it is defined in the environment, else "make". 2854 # It might get overridden later, but our hope is that in practice 2855 # it does not matter: it is the system "make" which is (by far) 2856 # the most likely to be broken, whereas if the user overrides it, 2857 # probably they did so with a better, or at least not worse, make. 2858 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2859 # 2860 # Create a Makefile (real tab character here): 2861 rm -f conftest.mk 2862 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2863 echo ' touch conftest.ts2' >>conftest.mk 2864 # 2865 # Now, running 2866 # touch conftest.ts1; touch conftest.ts2; make 2867 # should touch ts1 because ts2 is newer. This could happen by luck, 2868 # but most often, it will fail if make's support is insufficient. So 2869 # test for several consecutive successes. 2870 # 2871 # (We reuse conftest.ts[12] because we still want to modify existing 2872 # files, not create new ones, per above.) 2873 n=0 2874 make=${MAKE-make} 2875 until test $n -eq 3; do 2876 echo one > conftest.ts1 2877 sleep $am_try_res 2878 echo two > conftest.ts2 # ts2 should now be newer than ts1 2879 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2880 make_ok=false 2881 break # out of $n loop 2882 fi 2883 n=`expr $n + 1` 2884 done 2885 fi 2886 # 2887 if $make_ok; then 2888 # Everything we know to check worked out, so call this resolution good. 2889 am_cv_filesystem_timestamp_resolution=$am_try_res 2890 break # out of $am_try_res loop 2891 fi 2892 # Otherwise, we'll go on to check the next resolution. 2893 fi 2894 done 2895 rm -f conftest.ts? 2896 # (end _am_filesystem_timestamp_resolution) 2897 ;; 2898 esac 2899 fi 2900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2901 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; } 2902 2903 # This check should not be cached, as it may vary across builds of 2904 # different projects. 2905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2906 printf %s "checking whether build environment is sane... " >&6; } 2907 # Reject unsafe characters in $srcdir or the absolute working directory 2908 # name. Accept space and tab only in the latter. 2909 am_lf=' 2910 ' 2911 case `pwd` in 2912 *[\\\"\#\$\&\'\`$am_lf]*) 2913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914 printf '%s\n' "no" >&6; } 2915 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2916 esac 2917 case $srcdir in 2918 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920 printf '%s\n' "no" >&6; } 2921 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2922 esac 2923 2924 # Do 'set' in a subshell so we don't clobber the current shell's 2925 # arguments. Must try -L first in case configure is actually a 2926 # symlink; some systems play weird games with the mod time of symlinks 2927 # (eg FreeBSD returns the mod time of the symlink's containing 2928 # directory). 2929 am_build_env_is_sane=no 2930 am_has_slept=no 2931 rm -f conftest.file 2932 for am_try in 1 2; do 2933 echo "timestamp, slept: $am_has_slept" > conftest.file 2934 if ( 2935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2936 if test "$*" = "X"; then 2937 # -L didn't work. 2938 set X `ls -t "$srcdir/configure" conftest.file` 2939 fi 2940 test "$2" = conftest.file 2941 ); then 2942 am_build_env_is_sane=yes 2943 break 2944 fi 2945 # Just in case. 2946 sleep "$am_cv_filesystem_timestamp_resolution" 2947 am_has_slept=yes 2948 done 2949 2950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2951 printf '%s\n' "$am_build_env_is_sane" >&6; } 2952 if test "$am_build_env_is_sane" = no; then 2953 as_fn_error $? "newly created file is older than distributed files! 2954 Check your system clock" "$LINENO" 5 2955 fi 2956 2957 # If we didn't sleep, we still need to ensure time stamps of config.status and 2958 # generated files are strictly newer. 2959 am_sleep_pid= 2960 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2961 then : 2962 2963 else case e in #( 2964 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2965 am_sleep_pid=$! 2966 ;; 2967 esac 2968 fi 2969 2970 rm -f conftest.file 2971 2972 test "$program_prefix" != NONE && 2973 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2974 # Use a double $ so make ignores it. 2975 test "$program_suffix" != NONE && 2976 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2977 # Double any \ or $. 2978 # By default was 's,x,x', remove it if useless. 2979 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2980 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"` 2981 2982 2983 # Expand $ac_aux_dir to an absolute path. 2984 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2985 2986 2987 if test x"${MISSING+set}" != xset; then 2988 MISSING="\${SHELL} '$am_aux_dir/missing'" 2989 fi 2990 # Use eval to expand $SHELL 2991 if eval "$MISSING --is-lightweight"; then 2992 am_missing_run="$MISSING " 2993 else 2994 am_missing_run= 2995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2996 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2997 fi 2998 2999 if test x"${install_sh+set}" != xset; then 3000 case $am_aux_dir in 3001 *\ * | *\ *) 3002 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3003 *) 3004 install_sh="\${SHELL} $am_aux_dir/install-sh" 3005 esac 3006 fi 3007 3008 # Installed binaries are usually stripped using 'strip' when the user 3009 # run "make install-strip". However 'strip' might not be the right 3010 # tool to use in cross-compilation environments, therefore Automake 3011 # will honor the 'STRIP' environment variable to overrule this program. 3012 if test "$cross_compiling" != no; then 3013 if test -n "$ac_tool_prefix"; then 3014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3015 set dummy ${ac_tool_prefix}strip; ac_word=$2 3016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017 printf %s "checking for $ac_word... " >&6; } 3018 if test ${ac_cv_prog_STRIP+y} 3019 then : 3020 printf %s "(cached) " >&6 3021 else case e in #( 3022 e) if test -n "$STRIP"; then 3023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3024 else 3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026 for as_dir in $PATH 3027 do 3028 IFS=$as_save_IFS 3029 case $as_dir in #((( 3030 '') as_dir=./ ;; 3031 */) ;; 3032 *) as_dir=$as_dir/ ;; 3033 esac 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3037 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040 done 3041 done 3042 IFS=$as_save_IFS 3043 3044 fi ;; 3045 esac 3046 fi 3047 STRIP=$ac_cv_prog_STRIP 3048 if test -n "$STRIP"; then 3049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3050 printf '%s\n' "$STRIP" >&6; } 3051 else 3052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053 printf '%s\n' "no" >&6; } 3054 fi 3055 3056 3057 fi 3058 if test -z "$ac_cv_prog_STRIP"; then 3059 ac_ct_STRIP=$STRIP 3060 # Extract the first word of "strip", so it can be a program name with args. 3061 set dummy strip; ac_word=$2 3062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063 printf %s "checking for $ac_word... " >&6; } 3064 if test ${ac_cv_prog_ac_ct_STRIP+y} 3065 then : 3066 printf %s "(cached) " >&6 3067 else case e in #( 3068 e) if test -n "$ac_ct_STRIP"; then 3069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3070 else 3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072 for as_dir in $PATH 3073 do 3074 IFS=$as_save_IFS 3075 case $as_dir in #((( 3076 '') as_dir=./ ;; 3077 */) ;; 3078 *) as_dir=$as_dir/ ;; 3079 esac 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3082 ac_cv_prog_ac_ct_STRIP="strip" 3083 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086 done 3087 done 3088 IFS=$as_save_IFS 3089 3090 fi ;; 3091 esac 3092 fi 3093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3094 if test -n "$ac_ct_STRIP"; then 3095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3096 printf '%s\n' "$ac_ct_STRIP" >&6; } 3097 else 3098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099 printf '%s\n' "no" >&6; } 3100 fi 3101 3102 if test "x$ac_ct_STRIP" = x; then 3103 STRIP=":" 3104 else 3105 case $cross_compiling:$ac_tool_warned in 3106 yes:) 3107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3108 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3109 ac_tool_warned=yes ;; 3110 esac 3111 STRIP=$ac_ct_STRIP 3112 fi 3113 else 3114 STRIP="$ac_cv_prog_STRIP" 3115 fi 3116 3117 fi 3118 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3119 3120 3121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3122 printf %s "checking for a race-free mkdir -p... " >&6; } 3123 if test -z "$MKDIR_P"; then 3124 if test ${ac_cv_path_mkdir+y} 3125 then : 3126 printf %s "(cached) " >&6 3127 else case e in #( 3128 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3130 do 3131 IFS=$as_save_IFS 3132 case $as_dir in #((( 3133 '') as_dir=./ ;; 3134 */) ;; 3135 *) as_dir=$as_dir/ ;; 3136 esac 3137 for ac_prog in mkdir gmkdir; do 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3140 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3141 'mkdir ('*'coreutils) '* | \ 3142 *'BusyBox '* | \ 3143 'mkdir (fileutils) '4.1*) 3144 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3145 break 3;; 3146 esac 3147 done 3148 done 3149 done 3150 IFS=$as_save_IFS 3151 ;; 3152 esac 3153 fi 3154 3155 test -d ./--version && rmdir ./--version 3156 if test ${ac_cv_path_mkdir+y}; then 3157 MKDIR_P="$ac_cv_path_mkdir -p" 3158 else 3159 # As a last resort, use plain mkdir -p, 3160 # in the hope it doesn't have the bugs of ancient mkdir. 3161 MKDIR_P='mkdir -p' 3162 fi 3163 fi 3164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3165 printf '%s\n' "$MKDIR_P" >&6; } 3166 3167 for ac_prog in gawk mawk nawk awk 'busybox awk' 3168 do 3169 # Extract the first word of "$ac_prog", so it can be a program name with args. 3170 set dummy $ac_prog; ac_word=$2 3171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172 printf %s "checking for $ac_word... " >&6; } 3173 if test ${ac_cv_prog_AWK+y} 3174 then : 3175 printf %s "(cached) " >&6 3176 else case e in #( 3177 e) if test -n "$AWK"; then 3178 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3179 else 3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181 for as_dir in $PATH 3182 do 3183 IFS=$as_save_IFS 3184 case $as_dir in #((( 3185 '') as_dir=./ ;; 3186 */) ;; 3187 *) as_dir=$as_dir/ ;; 3188 esac 3189 for ac_exec_ext in '' $ac_executable_extensions; do 3190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3191 ac_cv_prog_AWK="$ac_prog" 3192 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3193 break 2 3194 fi 3195 done 3196 done 3197 IFS=$as_save_IFS 3198 3199 fi ;; 3200 esac 3201 fi 3202 AWK=$ac_cv_prog_AWK 3203 if test -n "$AWK"; then 3204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3205 printf '%s\n' "$AWK" >&6; } 3206 else 3207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208 printf '%s\n' "no" >&6; } 3209 fi 3210 3211 3212 test -n "$AWK" && break 3213 done 3214 3215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3216 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3217 set x ${MAKE-make} 3218 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3219 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3220 then : 3221 printf %s "(cached) " >&6 3222 else case e in #( 3223 e) cat >conftest.make <<\_ACEOF 3224 SHELL = /bin/sh 3225 all: 3226 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%' 3227 _ACEOF 3228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3229 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3230 *@@@%%%=?*=@@@%%%*) 3231 eval ac_cv_prog_make_${ac_make}_set=yes;; 3232 *) 3233 eval ac_cv_prog_make_${ac_make}_set=no;; 3234 esac 3235 rm -f conftest.make ;; 3236 esac 3237 fi 3238 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3240 printf '%s\n' "yes" >&6; } 3241 SET_MAKE= 3242 else 3243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244 printf '%s\n' "no" >&6; } 3245 SET_MAKE="MAKE=${MAKE-make}" 3246 fi 3247 3248 rm -rf .tst 2>/dev/null 3249 mkdir .tst 2>/dev/null 3250 if test -d .tst; then 3251 am__leading_dot=. 3252 else 3253 am__leading_dot=_ 3254 fi 3255 rmdir .tst 2>/dev/null 3256 3257 AM_DEFAULT_VERBOSITY=1 3258 # Check whether --enable-silent-rules was given. 3259 if test ${enable_silent_rules+y} 3260 then : 3261 enableval=$enable_silent_rules; 3262 fi 3263 3264 am_make=${MAKE-make} 3265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3266 printf %s "checking whether $am_make supports nested variables... " >&6; } 3267 if test ${am_cv_make_support_nested_variables+y} 3268 then : 3269 printf %s "(cached) " >&6 3270 else case e in #( 3271 e) if printf '%s\n' 'TRUE=$(BAR$(V)) 3272 BAR0=false 3273 BAR1=true 3274 V=1 3275 am__doit: 3276 @$(TRUE) 3277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3278 am_cv_make_support_nested_variables=yes 3279 else 3280 am_cv_make_support_nested_variables=no 3281 fi ;; 3282 esac 3283 fi 3284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3285 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; } 3286 AM_BACKSLASH='\' 3287 3288 am__rm_f_notfound= 3289 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3290 then : 3291 3292 else case e in #( 3293 e) am__rm_f_notfound='""' ;; 3294 esac 3295 fi 3296 3297 3298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3299 printf %s "checking xargs -n works... " >&6; } 3300 if test ${am_cv_xargs_n_works+y} 3301 then : 3302 printf %s "(cached) " >&6 3303 else case e in #( 3304 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3305 3" 3306 then : 3307 am_cv_xargs_n_works=yes 3308 else case e in #( 3309 e) am_cv_xargs_n_works=no ;; 3310 esac 3311 fi ;; 3312 esac 3313 fi 3314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3315 printf '%s\n' "$am_cv_xargs_n_works" >&6; } 3316 if test "$am_cv_xargs_n_works" = yes 3317 then : 3318 am__xargs_n='xargs -n' 3319 else case e in #( 3320 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3321 ;; 3322 esac 3323 fi 3324 3325 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3326 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3327 # is not polluted with repeated "-I." 3328 am__isrc=' -I$(srcdir)' 3329 # test to see if srcdir already configured 3330 if test -f $srcdir/config.status; then 3331 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3332 fi 3333 fi 3334 3335 # test whether we have cygpath 3336 if test -z "$CYGPATH_W"; then 3337 if (cygpath --version) >/dev/null 2>/dev/null; then 3338 CYGPATH_W='cygpath -w' 3339 else 3340 CYGPATH_W=echo 3341 fi 3342 fi 3343 3344 3345 # Define the identity of the package. 3346 PACKAGE='xsetroot' 3347 VERSION='1.1.4' 3348 3349 3350 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3351 3352 3353 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h 3354 3355 # Some tools Automake needs. 3356 3357 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3358 3359 3360 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3361 3362 3363 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3364 3365 3366 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3367 3368 3369 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3370 3371 # For better backward compatibility. To be removed once Automake 1.9.x 3372 # dies out for good. For more background, see: 3373 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3374 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3375 mkdir_p='$(MKDIR_P)' 3376 3377 # We need awk for the "check" target (and possibly the TAP driver). The 3378 # system "awk" is bad on some platforms. 3379 # Always define AMTAR for backward compatibility. Yes, it's still used 3380 # in the wild :-( We should find a proper way to deprecate it ... 3381 AMTAR='$${TAR-tar}' 3382 3383 3384 # We'll loop over all known methods to create a tar archive until one works. 3385 _am_tools='gnutar plaintar pax cpio none' 3386 3387 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3388 # There is notably a 21 bits limit for the UID and the GID. In fact, 3389 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3390 # and bug#13588). 3391 am_max_uid=2097151 # 2^21 - 1 3392 am_max_gid=$am_max_uid 3393 # The $UID and $GID variables are not portable, so we need to resort 3394 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3395 # below are definitely unexpected, so allow the users to see them 3396 # (that is, avoid stderr redirection). 3397 am_uid=`id -u || echo unknown` 3398 am_gid=`id -g || echo unknown` 3399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3400 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3401 if test x$am_uid = xunknown; then 3402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3403 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3404 elif test $am_uid -le $am_max_uid; then 3405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3406 printf '%s\n' "yes" >&6; } 3407 else 3408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3409 printf '%s\n' "no" >&6; } 3410 _am_tools=none 3411 fi 3412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3413 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3414 if test x$gm_gid = xunknown; then 3415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3416 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3417 elif test $am_gid -le $am_max_gid; then 3418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3419 printf '%s\n' "yes" >&6; } 3420 else 3421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422 printf '%s\n' "no" >&6; } 3423 _am_tools=none 3424 fi 3425 3426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3427 printf %s "checking how to create a ustar tar archive... " >&6; } 3428 3429 # Go ahead even if we have the value already cached. We do so because we 3430 # need to set the values for the 'am__tar' and 'am__untar' variables. 3431 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3432 3433 for _am_tool in $_am_tools; do 3434 case $_am_tool in 3435 gnutar) 3436 for _am_tar in tar gnutar gtar; do 3437 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3438 ($_am_tar --version) >&5 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); } && break 3442 done 3443 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3444 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3445 am__untar="$_am_tar -xf -" 3446 ;; 3447 plaintar) 3448 # Must skip GNU tar: if it does not support --format= it doesn't create 3449 # ustar tarball either. 3450 (tar --version) >/dev/null 2>&1 && continue 3451 am__tar='tar chf - "$$tardir"' 3452 am__tar_='tar chf - "$tardir"' 3453 am__untar='tar xf -' 3454 ;; 3455 pax) 3456 am__tar='pax -L -x ustar -w "$$tardir"' 3457 am__tar_='pax -L -x ustar -w "$tardir"' 3458 am__untar='pax -r' 3459 ;; 3460 cpio) 3461 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3462 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3463 am__untar='cpio -i -H ustar -d' 3464 ;; 3465 none) 3466 am__tar=false 3467 am__tar_=false 3468 am__untar=false 3469 ;; 3470 esac 3471 3472 # If the value was cached, stop now. We just wanted to have am__tar 3473 # and am__untar set. 3474 test -n "${am_cv_prog_tar_ustar}" && break 3475 3476 # tar/untar a dummy directory, and stop if the command works. 3477 rm -rf conftest.dir 3478 mkdir conftest.dir 3479 echo GrepMe > conftest.dir/file 3480 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3481 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3482 ac_status=$? 3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); } 3485 rm -rf conftest.dir 3486 if test -s conftest.tar; then 3487 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3488 ($am__untar <conftest.tar) >&5 2>&5 3489 ac_status=$? 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } 3492 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3493 (cat conftest.dir/file) >&5 2>&5 3494 ac_status=$? 3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); } 3497 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3498 fi 3499 done 3500 rm -rf conftest.dir 3501 3502 if test ${am_cv_prog_tar_ustar+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else case e in #( 3506 e) am_cv_prog_tar_ustar=$_am_tool ;; 3507 esac 3508 fi 3509 3510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3511 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; } 3512 3513 3514 3515 3516 3517 # Variables for tags utilities; see am/tags.am 3518 if test -z "$CTAGS"; then 3519 CTAGS=ctags 3520 fi 3521 3522 if test -z "$ETAGS"; then 3523 ETAGS=etags 3524 fi 3525 3526 if test -z "$CSCOPE"; then 3527 CSCOPE=cscope 3528 fi 3529 3530 3531 3532 3533 3534 3535 3536 3537 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 DEPDIR="${am__leading_dot}deps" 3562 3563 ac_config_commands="$ac_config_commands depfiles" 3564 3565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3566 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3567 cat > confinc.mk << 'END' 3568 am__doit: 3569 @echo this is the am__doit target >confinc.out 3570 .PHONY: am__doit 3571 END 3572 am__include="#" 3573 am__quote= 3574 # BSD make does it like this. 3575 echo '.include "confinc.mk" # ignored' > confmf.BSD 3576 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3577 echo 'include confinc.mk # ignored' > confmf.GNU 3578 _am_result=no 3579 for s in GNU BSD; do 3580 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3581 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3582 ac_status=$? 3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3584 (exit $ac_status); } 3585 case $?:`cat confinc.out 2>/dev/null` in #( 3586 '0:this is the am__doit target') : 3587 case $s in #( 3588 BSD) : 3589 am__include='.include' am__quote='"' ;; #( 3590 *) : 3591 am__include='include' am__quote='' ;; 3592 esac ;; #( 3593 *) : 3594 ;; 3595 esac 3596 if test "$am__include" != "#"; then 3597 _am_result="yes ($s style)" 3598 break 3599 fi 3600 done 3601 rm -f confinc.* confmf.* 3602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3603 printf '%s\n' "${_am_result}" >&6; } 3604 3605 # Check whether --enable-dependency-tracking was given. 3606 if test ${enable_dependency_tracking+y} 3607 then : 3608 enableval=$enable_dependency_tracking; 3609 fi 3610 3611 if test "x$enable_dependency_tracking" != xno; then 3612 am_depcomp="$ac_aux_dir/depcomp" 3613 AMDEPBACKSLASH='\' 3614 am__nodep='_no' 3615 fi 3616 if test "x$enable_dependency_tracking" != xno; then 3617 AMDEP_TRUE= 3618 AMDEP_FALSE='#' 3619 else 3620 AMDEP_TRUE='#' 3621 AMDEP_FALSE= 3622 fi 3623 3624 3625 ac_ext=c 3626 ac_cpp='$CPP $CPPFLAGS' 3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630 if test -n "$ac_tool_prefix"; then 3631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3632 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634 printf %s "checking for $ac_word... " >&6; } 3635 if test ${ac_cv_prog_CC+y} 3636 then : 3637 printf %s "(cached) " >&6 3638 else case e in #( 3639 e) if test -n "$CC"; then 3640 ac_cv_prog_CC="$CC" # Let the user override the test. 3641 else 3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643 for as_dir in $PATH 3644 do 3645 IFS=$as_save_IFS 3646 case $as_dir in #((( 3647 '') as_dir=./ ;; 3648 */) ;; 3649 *) as_dir=$as_dir/ ;; 3650 esac 3651 for ac_exec_ext in '' $ac_executable_extensions; do 3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3653 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3654 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3655 break 2 3656 fi 3657 done 3658 done 3659 IFS=$as_save_IFS 3660 3661 fi ;; 3662 esac 3663 fi 3664 CC=$ac_cv_prog_CC 3665 if test -n "$CC"; then 3666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3667 printf '%s\n' "$CC" >&6; } 3668 else 3669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3670 printf '%s\n' "no" >&6; } 3671 fi 3672 3673 3674 fi 3675 if test -z "$ac_cv_prog_CC"; then 3676 ac_ct_CC=$CC 3677 # Extract the first word of "gcc", so it can be a program name with args. 3678 set dummy gcc; ac_word=$2 3679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3680 printf %s "checking for $ac_word... " >&6; } 3681 if test ${ac_cv_prog_ac_ct_CC+y} 3682 then : 3683 printf %s "(cached) " >&6 3684 else case e in #( 3685 e) if test -n "$ac_ct_CC"; then 3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3687 else 3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689 for as_dir in $PATH 3690 do 3691 IFS=$as_save_IFS 3692 case $as_dir in #((( 3693 '') as_dir=./ ;; 3694 */) ;; 3695 *) as_dir=$as_dir/ ;; 3696 esac 3697 for ac_exec_ext in '' $ac_executable_extensions; do 3698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3699 ac_cv_prog_ac_ct_CC="gcc" 3700 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703 done 3704 done 3705 IFS=$as_save_IFS 3706 3707 fi ;; 3708 esac 3709 fi 3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3711 if test -n "$ac_ct_CC"; then 3712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3713 printf '%s\n' "$ac_ct_CC" >&6; } 3714 else 3715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3716 printf '%s\n' "no" >&6; } 3717 fi 3718 3719 if test "x$ac_ct_CC" = x; then 3720 CC="" 3721 else 3722 case $cross_compiling:$ac_tool_warned in 3723 yes:) 3724 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3725 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3726 ac_tool_warned=yes ;; 3727 esac 3728 CC=$ac_ct_CC 3729 fi 3730 else 3731 CC="$ac_cv_prog_CC" 3732 fi 3733 3734 if test -z "$CC"; then 3735 if test -n "$ac_tool_prefix"; then 3736 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3737 set dummy ${ac_tool_prefix}cc; ac_word=$2 3738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739 printf %s "checking for $ac_word... " >&6; } 3740 if test ${ac_cv_prog_CC+y} 3741 then : 3742 printf %s "(cached) " >&6 3743 else case e in #( 3744 e) if test -n "$CC"; then 3745 ac_cv_prog_CC="$CC" # Let the user override the test. 3746 else 3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748 for as_dir in $PATH 3749 do 3750 IFS=$as_save_IFS 3751 case $as_dir in #((( 3752 '') as_dir=./ ;; 3753 */) ;; 3754 *) as_dir=$as_dir/ ;; 3755 esac 3756 for ac_exec_ext in '' $ac_executable_extensions; do 3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3758 ac_cv_prog_CC="${ac_tool_prefix}cc" 3759 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3760 break 2 3761 fi 3762 done 3763 done 3764 IFS=$as_save_IFS 3765 3766 fi ;; 3767 esac 3768 fi 3769 CC=$ac_cv_prog_CC 3770 if test -n "$CC"; then 3771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3772 printf '%s\n' "$CC" >&6; } 3773 else 3774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3775 printf '%s\n' "no" >&6; } 3776 fi 3777 3778 3779 fi 3780 fi 3781 if test -z "$CC"; then 3782 # Extract the first word of "cc", so it can be a program name with args. 3783 set dummy cc; ac_word=$2 3784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3785 printf %s "checking for $ac_word... " >&6; } 3786 if test ${ac_cv_prog_CC+y} 3787 then : 3788 printf %s "(cached) " >&6 3789 else case e in #( 3790 e) if test -n "$CC"; then 3791 ac_cv_prog_CC="$CC" # Let the user override the test. 3792 else 3793 ac_prog_rejected=no 3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795 for as_dir in $PATH 3796 do 3797 IFS=$as_save_IFS 3798 case $as_dir in #((( 3799 '') as_dir=./ ;; 3800 */) ;; 3801 *) as_dir=$as_dir/ ;; 3802 esac 3803 for ac_exec_ext in '' $ac_executable_extensions; do 3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3805 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3806 ac_prog_rejected=yes 3807 continue 3808 fi 3809 ac_cv_prog_CC="cc" 3810 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3811 break 2 3812 fi 3813 done 3814 done 3815 IFS=$as_save_IFS 3816 3817 if test $ac_prog_rejected = yes; then 3818 # We found a bogon in the path, so make sure we never use it. 3819 set dummy $ac_cv_prog_CC 3820 shift 3821 if test $# != 0; then 3822 # We chose a different compiler from the bogus one. 3823 # However, it has the same basename, so the bogon will be chosen 3824 # first if we set CC to just the basename; use the full file name. 3825 shift 3826 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3827 fi 3828 fi 3829 fi ;; 3830 esac 3831 fi 3832 CC=$ac_cv_prog_CC 3833 if test -n "$CC"; then 3834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3835 printf '%s\n' "$CC" >&6; } 3836 else 3837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3838 printf '%s\n' "no" >&6; } 3839 fi 3840 3841 3842 fi 3843 if test -z "$CC"; then 3844 if test -n "$ac_tool_prefix"; then 3845 for ac_prog in cl.exe 3846 do 3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3850 printf %s "checking for $ac_word... " >&6; } 3851 if test ${ac_cv_prog_CC+y} 3852 then : 3853 printf %s "(cached) " >&6 3854 else case e in #( 3855 e) if test -n "$CC"; then 3856 ac_cv_prog_CC="$CC" # Let the user override the test. 3857 else 3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3859 for as_dir in $PATH 3860 do 3861 IFS=$as_save_IFS 3862 case $as_dir in #((( 3863 '') as_dir=./ ;; 3864 */) ;; 3865 *) as_dir=$as_dir/ ;; 3866 esac 3867 for ac_exec_ext in '' $ac_executable_extensions; do 3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3870 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3871 break 2 3872 fi 3873 done 3874 done 3875 IFS=$as_save_IFS 3876 3877 fi ;; 3878 esac 3879 fi 3880 CC=$ac_cv_prog_CC 3881 if test -n "$CC"; then 3882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3883 printf '%s\n' "$CC" >&6; } 3884 else 3885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886 printf '%s\n' "no" >&6; } 3887 fi 3888 3889 3890 test -n "$CC" && break 3891 done 3892 fi 3893 if test -z "$CC"; then 3894 ac_ct_CC=$CC 3895 for ac_prog in cl.exe 3896 do 3897 # Extract the first word of "$ac_prog", so it can be a program name with args. 3898 set dummy $ac_prog; ac_word=$2 3899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3900 printf %s "checking for $ac_word... " >&6; } 3901 if test ${ac_cv_prog_ac_ct_CC+y} 3902 then : 3903 printf %s "(cached) " >&6 3904 else case e in #( 3905 e) if test -n "$ac_ct_CC"; then 3906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3907 else 3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909 for as_dir in $PATH 3910 do 3911 IFS=$as_save_IFS 3912 case $as_dir in #((( 3913 '') as_dir=./ ;; 3914 */) ;; 3915 *) as_dir=$as_dir/ ;; 3916 esac 3917 for ac_exec_ext in '' $ac_executable_extensions; do 3918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3919 ac_cv_prog_ac_ct_CC="$ac_prog" 3920 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3921 break 2 3922 fi 3923 done 3924 done 3925 IFS=$as_save_IFS 3926 3927 fi ;; 3928 esac 3929 fi 3930 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3931 if test -n "$ac_ct_CC"; then 3932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3933 printf '%s\n' "$ac_ct_CC" >&6; } 3934 else 3935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3936 printf '%s\n' "no" >&6; } 3937 fi 3938 3939 3940 test -n "$ac_ct_CC" && break 3941 done 3942 3943 if test "x$ac_ct_CC" = x; then 3944 CC="" 3945 else 3946 case $cross_compiling:$ac_tool_warned in 3947 yes:) 3948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3949 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3950 ac_tool_warned=yes ;; 3951 esac 3952 CC=$ac_ct_CC 3953 fi 3954 fi 3955 3956 fi 3957 if test -z "$CC"; then 3958 if test -n "$ac_tool_prefix"; then 3959 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3960 set dummy ${ac_tool_prefix}clang; ac_word=$2 3961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3962 printf %s "checking for $ac_word... " >&6; } 3963 if test ${ac_cv_prog_CC+y} 3964 then : 3965 printf %s "(cached) " >&6 3966 else case e in #( 3967 e) if test -n "$CC"; then 3968 ac_cv_prog_CC="$CC" # Let the user override the test. 3969 else 3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971 for as_dir in $PATH 3972 do 3973 IFS=$as_save_IFS 3974 case $as_dir in #((( 3975 '') as_dir=./ ;; 3976 */) ;; 3977 *) as_dir=$as_dir/ ;; 3978 esac 3979 for ac_exec_ext in '' $ac_executable_extensions; do 3980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3981 ac_cv_prog_CC="${ac_tool_prefix}clang" 3982 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3983 break 2 3984 fi 3985 done 3986 done 3987 IFS=$as_save_IFS 3988 3989 fi ;; 3990 esac 3991 fi 3992 CC=$ac_cv_prog_CC 3993 if test -n "$CC"; then 3994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3995 printf '%s\n' "$CC" >&6; } 3996 else 3997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3998 printf '%s\n' "no" >&6; } 3999 fi 4000 4001 4002 fi 4003 if test -z "$ac_cv_prog_CC"; then 4004 ac_ct_CC=$CC 4005 # Extract the first word of "clang", so it can be a program name with args. 4006 set dummy clang; ac_word=$2 4007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008 printf %s "checking for $ac_word... " >&6; } 4009 if test ${ac_cv_prog_ac_ct_CC+y} 4010 then : 4011 printf %s "(cached) " >&6 4012 else case e in #( 4013 e) if test -n "$ac_ct_CC"; then 4014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4015 else 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017 for as_dir in $PATH 4018 do 4019 IFS=$as_save_IFS 4020 case $as_dir in #((( 4021 '') as_dir=./ ;; 4022 */) ;; 4023 *) as_dir=$as_dir/ ;; 4024 esac 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4027 ac_cv_prog_ac_ct_CC="clang" 4028 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031 done 4032 done 4033 IFS=$as_save_IFS 4034 4035 fi ;; 4036 esac 4037 fi 4038 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4039 if test -n "$ac_ct_CC"; then 4040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4041 printf '%s\n' "$ac_ct_CC" >&6; } 4042 else 4043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044 printf '%s\n' "no" >&6; } 4045 fi 4046 4047 if test "x$ac_ct_CC" = x; then 4048 CC="" 4049 else 4050 case $cross_compiling:$ac_tool_warned in 4051 yes:) 4052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4053 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4054 ac_tool_warned=yes ;; 4055 esac 4056 CC=$ac_ct_CC 4057 fi 4058 else 4059 CC="$ac_cv_prog_CC" 4060 fi 4061 4062 fi 4063 4064 4065 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4066 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4067 as_fn_error $? "no acceptable C compiler found in \$PATH 4068 See 'config.log' for more details" "$LINENO" 5; } 4069 4070 # Provide some information about the compiler. 4071 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4072 set X $ac_compile 4073 ac_compiler=$2 4074 for ac_option in --version -v -V -qversion -version; do 4075 { { ac_try="$ac_compiler $ac_option >&5" 4076 case "(($ac_try" in 4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4078 *) ac_try_echo=$ac_try;; 4079 esac 4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4081 printf '%s\n' "$ac_try_echo"; } >&5 4082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4083 ac_status=$? 4084 if test -s conftest.err; then 4085 sed '10a\ 4086 ... rest of stderr output deleted ... 4087 10q' conftest.err >conftest.er1 4088 cat conftest.er1 >&5 4089 fi 4090 rm -f conftest.er1 conftest.err 4091 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4092 test $ac_status = 0; } 4093 done 4094 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096 /* end confdefs.h. */ 4097 4098 int 4099 main (void) 4100 { 4101 4102 ; 4103 return 0; 4104 } 4105 _ACEOF 4106 ac_clean_files_save=$ac_clean_files 4107 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4108 # Try to create an executable without -o first, disregard a.out. 4109 # It will help us diagnose broken compilers, and finding out an intuition 4110 # of exeext. 4111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4112 printf %s "checking whether the C compiler works... " >&6; } 4113 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4114 4115 # The possible output files: 4116 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4117 4118 ac_rmfiles= 4119 for ac_file in $ac_files 4120 do 4121 case $ac_file in 4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4123 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4124 esac 4125 done 4126 rm -f $ac_rmfiles 4127 4128 if { { ac_try="$ac_link_default" 4129 case "(($ac_try" in 4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4131 *) ac_try_echo=$ac_try;; 4132 esac 4133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4134 printf '%s\n' "$ac_try_echo"; } >&5 4135 (eval "$ac_link_default") 2>&5 4136 ac_status=$? 4137 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4138 test $ac_status = 0; } 4139 then : 4140 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4141 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4142 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4143 # so that the user can short-circuit this test for compilers unknown to 4144 # Autoconf. 4145 for ac_file in $ac_files '' 4146 do 4147 test -f "$ac_file" || continue 4148 case $ac_file in 4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4150 ;; 4151 [ab].out ) 4152 # We found the default executable, but exeext='' is most 4153 # certainly right. 4154 break;; 4155 *.* ) 4156 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4157 then :; else 4158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4159 fi 4160 # We set ac_cv_exeext here because the later test for it is not 4161 # safe: cross compilers may not add the suffix if given an '-o' 4162 # argument, so we may need to know it at that point already. 4163 # Even if this section looks crufty: it has the advantage of 4164 # actually working. 4165 break;; 4166 * ) 4167 break;; 4168 esac 4169 done 4170 test "$ac_cv_exeext" = no && ac_cv_exeext= 4171 4172 else case e in #( 4173 e) ac_file='' ;; 4174 esac 4175 fi 4176 if test -z "$ac_file" 4177 then : 4178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4179 printf '%s\n' "no" >&6; } 4180 printf '%s\n' "$as_me: failed program was:" >&5 4181 sed 's/^/| /' conftest.$ac_ext >&5 4182 4183 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4184 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4185 as_fn_error 77 "C compiler cannot create executables 4186 See 'config.log' for more details" "$LINENO" 5; } 4187 else case e in #( 4188 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4189 printf '%s\n' "yes" >&6; } ;; 4190 esac 4191 fi 4192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4193 printf %s "checking for C compiler default output file name... " >&6; } 4194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4195 printf '%s\n' "$ac_file" >&6; } 4196 ac_exeext=$ac_cv_exeext 4197 4198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4199 ac_clean_files=$ac_clean_files_save 4200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4201 printf %s "checking for suffix of executables... " >&6; } 4202 if { { ac_try="$ac_link" 4203 case "(($ac_try" in 4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4205 *) ac_try_echo=$ac_try;; 4206 esac 4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4208 printf '%s\n' "$ac_try_echo"; } >&5 4209 (eval "$ac_link") 2>&5 4210 ac_status=$? 4211 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4212 test $ac_status = 0; } 4213 then : 4214 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4215 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4216 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4217 # 'rm'. 4218 for ac_file in conftest.exe conftest conftest.*; do 4219 test -f "$ac_file" || continue 4220 case $ac_file in 4221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4223 break;; 4224 * ) break;; 4225 esac 4226 done 4227 else case e in #( 4228 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4229 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4231 See 'config.log' for more details" "$LINENO" 5; } ;; 4232 esac 4233 fi 4234 rm -f conftest conftest$ac_cv_exeext 4235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4236 printf '%s\n' "$ac_cv_exeext" >&6; } 4237 4238 rm -f conftest.$ac_ext 4239 EXEEXT=$ac_cv_exeext 4240 ac_exeext=$EXEEXT 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242 /* end confdefs.h. */ 4243 #include <stdio.h> 4244 int 4245 main (void) 4246 { 4247 FILE *f = fopen ("conftest.out", "w"); 4248 if (!f) 4249 return 1; 4250 return ferror (f) || fclose (f) != 0; 4251 4252 ; 4253 return 0; 4254 } 4255 _ACEOF 4256 ac_clean_files="$ac_clean_files conftest.out" 4257 # Check that the compiler produces executables we can run. If not, either 4258 # the compiler is broken, or we cross compile. 4259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4260 printf %s "checking whether we are cross compiling... " >&6; } 4261 if test "$cross_compiling" != yes; then 4262 { { ac_try="$ac_link" 4263 case "(($ac_try" in 4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4265 *) ac_try_echo=$ac_try;; 4266 esac 4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4268 printf '%s\n' "$ac_try_echo"; } >&5 4269 (eval "$ac_link") 2>&5 4270 ac_status=$? 4271 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4272 test $ac_status = 0; } 4273 if { ac_try='./conftest$ac_cv_exeext' 4274 { { case "(($ac_try" in 4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4276 *) ac_try_echo=$ac_try;; 4277 esac 4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4279 printf '%s\n' "$ac_try_echo"; } >&5 4280 (eval "$ac_try") 2>&5 4281 ac_status=$? 4282 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4283 test $ac_status = 0; }; }; then 4284 cross_compiling=no 4285 else 4286 if test "$cross_compiling" = maybe; then 4287 cross_compiling=yes 4288 else 4289 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4290 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4291 as_fn_error 77 "cannot run C compiled programs. 4292 If you meant to cross compile, use '--host'. 4293 See 'config.log' for more details" "$LINENO" 5; } 4294 fi 4295 fi 4296 fi 4297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4298 printf '%s\n' "$cross_compiling" >&6; } 4299 4300 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4301 conftest.o conftest.obj conftest.out 4302 ac_clean_files=$ac_clean_files_save 4303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4304 printf %s "checking for suffix of object files... " >&6; } 4305 if test ${ac_cv_objext+y} 4306 then : 4307 printf %s "(cached) " >&6 4308 else case e in #( 4309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310 /* end confdefs.h. */ 4311 4312 int 4313 main (void) 4314 { 4315 4316 ; 4317 return 0; 4318 } 4319 _ACEOF 4320 rm -f conftest.o conftest.obj 4321 if { { ac_try="$ac_compile" 4322 case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325 esac 4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4327 printf '%s\n' "$ac_try_echo"; } >&5 4328 (eval "$ac_compile") 2>&5 4329 ac_status=$? 4330 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4331 test $ac_status = 0; } 4332 then : 4333 for ac_file in conftest.o conftest.obj conftest.*; do 4334 test -f "$ac_file" || continue; 4335 case $ac_file in 4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4338 break;; 4339 esac 4340 done 4341 else case e in #( 4342 e) printf '%s\n' "$as_me: failed program was:" >&5 4343 sed 's/^/| /' conftest.$ac_ext >&5 4344 4345 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4346 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4347 as_fn_error $? "cannot compute suffix of object files: cannot compile 4348 See 'config.log' for more details" "$LINENO" 5; } ;; 4349 esac 4350 fi 4351 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4352 esac 4353 fi 4354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4355 printf '%s\n' "$ac_cv_objext" >&6; } 4356 OBJEXT=$ac_cv_objext 4357 ac_objext=$OBJEXT 4358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4359 printf %s "checking whether the compiler supports GNU C... " >&6; } 4360 if test ${ac_cv_c_compiler_gnu+y} 4361 then : 4362 printf %s "(cached) " >&6 4363 else case e in #( 4364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4365 /* end confdefs.h. */ 4366 4367 int 4368 main (void) 4369 { 4370 #ifndef __GNUC__ 4371 choke me 4372 #endif 4373 4374 ; 4375 return 0; 4376 } 4377 _ACEOF 4378 if ac_fn_c_try_compile "$LINENO" 4379 then : 4380 ac_compiler_gnu=yes 4381 else case e in #( 4382 e) ac_compiler_gnu=no ;; 4383 esac 4384 fi 4385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4386 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4387 ;; 4388 esac 4389 fi 4390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4391 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; } 4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4393 4394 if test $ac_compiler_gnu = yes; then 4395 GCC=yes 4396 else 4397 GCC= 4398 fi 4399 ac_test_CFLAGS=${CFLAGS+y} 4400 ac_save_CFLAGS=$CFLAGS 4401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4402 printf %s "checking whether $CC accepts -g... " >&6; } 4403 if test ${ac_cv_prog_cc_g+y} 4404 then : 4405 printf %s "(cached) " >&6 4406 else case e in #( 4407 e) ac_save_c_werror_flag=$ac_c_werror_flag 4408 ac_c_werror_flag=yes 4409 ac_cv_prog_cc_g=no 4410 CFLAGS="-g" 4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412 /* end confdefs.h. */ 4413 4414 int 4415 main (void) 4416 { 4417 4418 ; 4419 return 0; 4420 } 4421 _ACEOF 4422 if ac_fn_c_try_compile "$LINENO" 4423 then : 4424 ac_cv_prog_cc_g=yes 4425 else case e in #( 4426 e) CFLAGS="" 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428 /* end confdefs.h. */ 4429 4430 int 4431 main (void) 4432 { 4433 4434 ; 4435 return 0; 4436 } 4437 _ACEOF 4438 if ac_fn_c_try_compile "$LINENO" 4439 then : 4440 4441 else case e in #( 4442 e) ac_c_werror_flag=$ac_save_c_werror_flag 4443 CFLAGS="-g" 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445 /* end confdefs.h. */ 4446 4447 int 4448 main (void) 4449 { 4450 4451 ; 4452 return 0; 4453 } 4454 _ACEOF 4455 if ac_fn_c_try_compile "$LINENO" 4456 then : 4457 ac_cv_prog_cc_g=yes 4458 fi 4459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4460 esac 4461 fi 4462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4463 esac 4464 fi 4465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4466 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4467 esac 4468 fi 4469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4470 printf '%s\n' "$ac_cv_prog_cc_g" >&6; } 4471 if test $ac_test_CFLAGS; then 4472 CFLAGS=$ac_save_CFLAGS 4473 elif test $ac_cv_prog_cc_g = yes; then 4474 if test "$GCC" = yes; then 4475 CFLAGS="-g -O2" 4476 else 4477 CFLAGS="-g" 4478 fi 4479 else 4480 if test "$GCC" = yes; then 4481 CFLAGS="-O2" 4482 else 4483 CFLAGS= 4484 fi 4485 fi 4486 ac_prog_cc_stdc=no 4487 if test x$ac_prog_cc_stdc = xno 4488 then : 4489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5 4490 printf %s "checking for $CC option to enable C23 features... " >&6; } 4491 if test ${ac_cv_prog_cc_c23+y} 4492 then : 4493 printf %s "(cached) " >&6 4494 else case e in #( 4495 e) ac_cv_prog_cc_c23=no 4496 ac_save_CC=$CC 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498 /* end confdefs.h. */ 4499 $ac_c_conftest_c23_program 4500 _ACEOF 4501 for ac_arg in '' -std=gnu23 4502 do 4503 CC="$ac_save_CC $ac_arg" 4504 if ac_fn_c_try_compile "$LINENO" 4505 then : 4506 ac_cv_prog_cc_c23=$ac_arg 4507 fi 4508 rm -f core conftest.err conftest.$ac_objext conftest.beam 4509 test "x$ac_cv_prog_cc_c23" != "xno" && break 4510 done 4511 rm -f conftest.$ac_ext 4512 CC=$ac_save_CC ;; 4513 esac 4514 fi 4515 4516 if test "x$ac_cv_prog_cc_c23" = xno 4517 then : 4518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4519 printf '%s\n' "unsupported" >&6; } 4520 else case e in #( 4521 e) if test "x$ac_cv_prog_cc_c23" = x 4522 then : 4523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4524 printf '%s\n' "none needed" >&6; } 4525 else case e in #( 4526 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5 4527 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; } 4528 CC="$CC $ac_cv_prog_cc_c23" ;; 4529 esac 4530 fi 4531 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23 4532 ac_prog_cc_stdc=c23 ;; 4533 esac 4534 fi 4535 fi 4536 if test x$ac_prog_cc_stdc = xno 4537 then : 4538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4539 printf %s "checking for $CC option to enable C11 features... " >&6; } 4540 if test ${ac_cv_prog_cc_c11+y} 4541 then : 4542 printf %s "(cached) " >&6 4543 else case e in #( 4544 e) ac_cv_prog_cc_c11=no 4545 ac_save_CC=$CC 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547 /* end confdefs.h. */ 4548 $ac_c_conftest_c11_program 4549 _ACEOF 4550 for ac_arg in '' -std=gnu11 -std:c11 4551 do 4552 CC="$ac_save_CC $ac_arg" 4553 if ac_fn_c_try_compile "$LINENO" 4554 then : 4555 ac_cv_prog_cc_c11=$ac_arg 4556 fi 4557 rm -f core conftest.err conftest.$ac_objext conftest.beam 4558 test "x$ac_cv_prog_cc_c11" != "xno" && break 4559 done 4560 rm -f conftest.$ac_ext 4561 CC=$ac_save_CC ;; 4562 esac 4563 fi 4564 4565 if test "x$ac_cv_prog_cc_c11" = xno 4566 then : 4567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4568 printf '%s\n' "unsupported" >&6; } 4569 else case e in #( 4570 e) if test "x$ac_cv_prog_cc_c11" = x 4571 then : 4572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4573 printf '%s\n' "none needed" >&6; } 4574 else case e in #( 4575 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4576 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; } 4577 CC="$CC $ac_cv_prog_cc_c11" ;; 4578 esac 4579 fi 4580 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4581 ac_prog_cc_stdc=c11 ;; 4582 esac 4583 fi 4584 fi 4585 if test x$ac_prog_cc_stdc = xno 4586 then : 4587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4588 printf %s "checking for $CC option to enable C99 features... " >&6; } 4589 if test ${ac_cv_prog_cc_c99+y} 4590 then : 4591 printf %s "(cached) " >&6 4592 else case e in #( 4593 e) ac_cv_prog_cc_c99=no 4594 ac_save_CC=$CC 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596 /* end confdefs.h. */ 4597 $ac_c_conftest_c99_program 4598 _ACEOF 4599 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4600 do 4601 CC="$ac_save_CC $ac_arg" 4602 if ac_fn_c_try_compile "$LINENO" 4603 then : 4604 ac_cv_prog_cc_c99=$ac_arg 4605 fi 4606 rm -f core conftest.err conftest.$ac_objext conftest.beam 4607 test "x$ac_cv_prog_cc_c99" != "xno" && break 4608 done 4609 rm -f conftest.$ac_ext 4610 CC=$ac_save_CC ;; 4611 esac 4612 fi 4613 4614 if test "x$ac_cv_prog_cc_c99" = xno 4615 then : 4616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4617 printf '%s\n' "unsupported" >&6; } 4618 else case e in #( 4619 e) if test "x$ac_cv_prog_cc_c99" = x 4620 then : 4621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4622 printf '%s\n' "none needed" >&6; } 4623 else case e in #( 4624 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4625 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; } 4626 CC="$CC $ac_cv_prog_cc_c99" ;; 4627 esac 4628 fi 4629 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4630 ac_prog_cc_stdc=c99 ;; 4631 esac 4632 fi 4633 fi 4634 if test x$ac_prog_cc_stdc = xno 4635 then : 4636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4637 printf %s "checking for $CC option to enable C89 features... " >&6; } 4638 if test ${ac_cv_prog_cc_c89+y} 4639 then : 4640 printf %s "(cached) " >&6 4641 else case e in #( 4642 e) ac_cv_prog_cc_c89=no 4643 ac_save_CC=$CC 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645 /* end confdefs.h. */ 4646 $ac_c_conftest_c89_program 4647 _ACEOF 4648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4649 do 4650 CC="$ac_save_CC $ac_arg" 4651 if ac_fn_c_try_compile "$LINENO" 4652 then : 4653 ac_cv_prog_cc_c89=$ac_arg 4654 fi 4655 rm -f core conftest.err conftest.$ac_objext conftest.beam 4656 test "x$ac_cv_prog_cc_c89" != "xno" && break 4657 done 4658 rm -f conftest.$ac_ext 4659 CC=$ac_save_CC ;; 4660 esac 4661 fi 4662 4663 if test "x$ac_cv_prog_cc_c89" = xno 4664 then : 4665 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4666 printf '%s\n' "unsupported" >&6; } 4667 else case e in #( 4668 e) if test "x$ac_cv_prog_cc_c89" = x 4669 then : 4670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4671 printf '%s\n' "none needed" >&6; } 4672 else case e in #( 4673 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4674 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; } 4675 CC="$CC $ac_cv_prog_cc_c89" ;; 4676 esac 4677 fi 4678 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4679 ac_prog_cc_stdc=c89 ;; 4680 esac 4681 fi 4682 fi 4683 4684 ac_ext=c 4685 ac_cpp='$CPP $CPPFLAGS' 4686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4688 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4689 4690 4691 ac_ext=c 4692 ac_cpp='$CPP $CPPFLAGS' 4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4697 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4698 if test ${am_cv_prog_cc_c_o+y} 4699 then : 4700 printf %s "(cached) " >&6 4701 else case e in #( 4702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703 /* end confdefs.h. */ 4704 4705 int 4706 main (void) 4707 { 4708 4709 ; 4710 return 0; 4711 } 4712 _ACEOF 4713 # Make sure it works both with $CC and with simple cc. 4714 # Following AC_PROG_CC_C_O, we do the test twice because some 4715 # compilers refuse to overwrite an existing .o file with -o, 4716 # though they will create one. 4717 am_cv_prog_cc_c_o=yes 4718 for am_i in 1 2; do 4719 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4720 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4721 ac_status=$? 4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4723 (exit $ac_status); } \ 4724 && test -f conftest2.$ac_objext; then 4725 : OK 4726 else 4727 am_cv_prog_cc_c_o=no 4728 break 4729 fi 4730 done 4731 # aligned with autoconf, so not including core; see bug#72225. 4732 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4733 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4734 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4735 unset am_i ;; 4736 esac 4737 fi 4738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4739 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; } 4740 if test "$am_cv_prog_cc_c_o" != yes; then 4741 # Losing compiler, so override with the script. 4742 # FIXME: It is wrong to rewrite CC. 4743 # But if we don't then we get into trouble of one sort or another. 4744 # A longer-term fix would be to have automake use am__CC in this case, 4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4746 CC="$am_aux_dir/compile $CC" 4747 fi 4748 ac_ext=c 4749 ac_cpp='$CPP $CPPFLAGS' 4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4753 4754 4755 depcc="$CC" am_compiler_list= 4756 4757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4758 printf %s "checking dependency style of $depcc... " >&6; } 4759 if test ${am_cv_CC_dependencies_compiler_type+y} 4760 then : 4761 printf %s "(cached) " >&6 4762 else case e in #( 4763 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4764 # We make a subdir and do the tests there. Otherwise we can end up 4765 # making bogus files that we don't know about and never remove. For 4766 # instance it was reported that on HP-UX the gcc test will end up 4767 # making a dummy file named 'D' -- because '-MD' means "put the output 4768 # in D". 4769 rm -rf conftest.dir 4770 mkdir conftest.dir 4771 # Copy depcomp to subdir because otherwise we won't find it if we're 4772 # using a relative directory. 4773 cp "$am_depcomp" conftest.dir 4774 cd conftest.dir 4775 # We will build objects and dependencies in a subdirectory because 4776 # it helps to detect inapplicable dependency modes. For instance 4777 # both Tru64's cc and ICC support -MD to output dependencies as a 4778 # side effect of compilation, but ICC will put the dependencies in 4779 # the current directory while Tru64 will put them in the object 4780 # directory. 4781 mkdir sub 4782 4783 am_cv_CC_dependencies_compiler_type=none 4784 if test "$am_compiler_list" = ""; then 4785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4786 fi 4787 am__universal=false 4788 case " $depcc " in #( 4789 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4790 esac 4791 4792 for depmode in $am_compiler_list; do 4793 # Setup a source with many dependencies, because some compilers 4794 # like to wrap large dependency lists on column 80 (with \), and 4795 # we should not choose a depcomp mode which is confused by this. 4796 # 4797 # We need to recreate these files for each test, as the compiler may 4798 # overwrite some of them when testing with obscure command lines. 4799 # This happens at least with the AIX C compiler. 4800 : > sub/conftest.c 4801 for i in 1 2 3 4 5 6; do 4802 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4803 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4804 # Solaris 10 /bin/sh. 4805 echo '/* dummy */' > sub/conftst$i.h 4806 done 4807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4808 4809 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4810 # mode. It turns out that the SunPro C++ compiler does not properly 4811 # handle '-M -o', and we need to detect this. Also, some Intel 4812 # versions had trouble with output in subdirs. 4813 am__obj=sub/conftest.${OBJEXT-o} 4814 am__minus_obj="-o $am__obj" 4815 case $depmode in 4816 gcc) 4817 # This depmode causes a compiler race in universal mode. 4818 test "$am__universal" = false || continue 4819 ;; 4820 nosideeffect) 4821 # After this tag, mechanisms are not by side-effect, so they'll 4822 # only be used when explicitly requested. 4823 if test "x$enable_dependency_tracking" = xyes; then 4824 continue 4825 else 4826 break 4827 fi 4828 ;; 4829 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4830 # This compiler won't grok '-c -o', but also, the minuso test has 4831 # not run yet. These depmodes are late enough in the game, and 4832 # so weak that their functioning should not be impacted. 4833 am__obj=conftest.${OBJEXT-o} 4834 am__minus_obj= 4835 ;; 4836 none) break ;; 4837 esac 4838 if depmode=$depmode \ 4839 source=sub/conftest.c object=$am__obj \ 4840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4841 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4842 >/dev/null 2>conftest.err && 4843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4845 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4847 # icc doesn't choke on unknown options, it will just issue warnings 4848 # or remarks (even with -Werror). So we grep stderr for any message 4849 # that says an option was ignored or not supported. 4850 # When given -MP, icc 7.0 and 7.1 complain thus: 4851 # icc: Command line warning: ignoring option '-M'; no argument required 4852 # The diagnosis changed in icc 8.0: 4853 # icc: Command line remark: option '-MP' not supported 4854 if (grep 'ignoring option' conftest.err || 4855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4856 am_cv_CC_dependencies_compiler_type=$depmode 4857 break 4858 fi 4859 fi 4860 done 4861 4862 cd .. 4863 rm -rf conftest.dir 4864 else 4865 am_cv_CC_dependencies_compiler_type=none 4866 fi 4867 ;; 4868 esac 4869 fi 4870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4871 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; } 4872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4873 4874 if 4875 test "x$enable_dependency_tracking" != xno \ 4876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4877 am__fastdepCC_TRUE= 4878 am__fastdepCC_FALSE='#' 4879 else 4880 am__fastdepCC_TRUE='#' 4881 am__fastdepCC_FALSE= 4882 fi 4883 4884 4885 4886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5 4887 printf %s "checking for $CC options to detect undeclared functions... " >&6; } 4888 if test ${ac_cv_c_undeclared_builtin_options+y} 4889 then : 4890 printf %s "(cached) " >&6 4891 else case e in #( 4892 e) ac_save_CFLAGS=$CFLAGS 4893 ac_cv_c_undeclared_builtin_options='cannot detect' 4894 for ac_arg in '' -fno-builtin; do 4895 CFLAGS="$ac_save_CFLAGS $ac_arg" 4896 # This test program should *not* compile successfully. 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898 /* end confdefs.h. */ 4899 4900 int 4901 main (void) 4902 { 4903 (void) strchr; 4904 ; 4905 return 0; 4906 } 4907 _ACEOF 4908 if ac_fn_c_try_compile "$LINENO" 4909 then : 4910 4911 else case e in #( 4912 e) # This test program should compile successfully. 4913 # No library function is consistently available on 4914 # freestanding implementations, so test against a dummy 4915 # declaration. Include always-available headers on the 4916 # off chance that they somehow elicit warnings. 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918 /* end confdefs.h. */ 4919 #include <float.h> 4920 #include <limits.h> 4921 #include <stdarg.h> 4922 #include <stddef.h> 4923 extern void ac_decl (int, char *); 4924 4925 int 4926 main (void) 4927 { 4928 (void) ac_decl (0, (char *) 0); 4929 (void) ac_decl; 4930 4931 ; 4932 return 0; 4933 } 4934 _ACEOF 4935 if ac_fn_c_try_compile "$LINENO" 4936 then : 4937 if test x"$ac_arg" = x 4938 then : 4939 ac_cv_c_undeclared_builtin_options='none needed' 4940 else case e in #( 4941 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4942 esac 4943 fi 4944 break 4945 fi 4946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4947 esac 4948 fi 4949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4950 done 4951 CFLAGS=$ac_save_CFLAGS 4952 ;; 4953 esac 4954 fi 4955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4956 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; } 4957 case $ac_cv_c_undeclared_builtin_options in #( 4958 'cannot detect') : 4959 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4960 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4961 as_fn_error $? "cannot make $CC report undeclared builtins 4962 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4963 'none needed') : 4964 ac_c_undeclared_builtin_options='' ;; #( 4965 *) : 4966 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4967 esac 4968 4969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5 4970 printf %s "checking for $CC options to ignore future-version functions... " >&6; } 4971 if test ${ac_cv_c_future_darwin_options+y} 4972 then : 4973 printf %s "(cached) " >&6 4974 else case e in #( 4975 e) ac_compile_saved="$ac_compile" 4976 ac_compile="$ac_compile -Werror=unguarded-availability-new" 4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4978 /* end confdefs.h. */ 4979 #if ! (defined __APPLE__ && defined __MACH__) 4980 #error "-Werror=unguarded-availability-new not needed here" 4981 #endif 4982 4983 int 4984 main (void) 4985 { 4986 4987 ; 4988 return 0; 4989 } 4990 _ACEOF 4991 if ac_fn_c_try_compile "$LINENO" 4992 then : 4993 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new' 4994 else case e in #( 4995 e) ac_cv_c_future_darwin_options='none needed' ;; 4996 esac 4997 fi 4998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4999 ac_compile="$ac_compile_saved" 5000 ;; 5001 esac 5002 fi 5003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5 5004 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; } 5005 case $ac_cv_c_future_darwin_options in #( 5006 'none needed') : 5007 ac_c_future_darwin_options='' ;; #( 5008 *) : 5009 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;; 5010 esac 5011 5012 ac_header= ac_cache= 5013 for ac_item in $ac_header_c_list 5014 do 5015 if test $ac_cache; then 5016 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5017 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5018 printf '%s\n' "#define $ac_item 1" >> confdefs.h 5019 fi 5020 ac_header= ac_cache= 5021 elif test $ac_header; then 5022 ac_cache=$ac_item 5023 else 5024 ac_header=$ac_item 5025 fi 5026 done 5027 5028 5029 5030 5031 5032 5033 5034 5035 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5036 then : 5037 5038 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h 5039 5040 fi 5041 5042 5043 5044 5045 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5046 if test "x$ac_cv_have_decl___clang__" = xyes 5047 then : 5048 CLANGCC="yes" 5049 else case e in #( 5050 e) CLANGCC="no" ;; 5051 esac 5052 fi 5053 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5054 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5055 then : 5056 INTELCC="yes" 5057 else case e in #( 5058 e) INTELCC="no" ;; 5059 esac 5060 fi 5061 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 5062 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5063 then : 5064 SUNCC="yes" 5065 else case e in #( 5066 e) SUNCC="no" ;; 5067 esac 5068 fi 5069 5070 5071 5072 5073 5074 5075 5076 5077 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5078 if test -n "$ac_tool_prefix"; then 5079 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5080 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082 printf %s "checking for $ac_word... " >&6; } 5083 if test ${ac_cv_path_PKG_CONFIG+y} 5084 then : 5085 printf %s "(cached) " >&6 5086 else case e in #( 5087 e) case $PKG_CONFIG in 5088 [\\/]* | ?:[\\/]*) 5089 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5090 ;; 5091 *) 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093 for as_dir in $PATH 5094 do 5095 IFS=$as_save_IFS 5096 case $as_dir in #((( 5097 '') as_dir=./ ;; 5098 */) ;; 5099 *) as_dir=$as_dir/ ;; 5100 esac 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5103 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5104 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107 done 5108 done 5109 IFS=$as_save_IFS 5110 5111 ;; 5112 esac ;; 5113 esac 5114 fi 5115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5116 if test -n "$PKG_CONFIG"; then 5117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5118 printf '%s\n' "$PKG_CONFIG" >&6; } 5119 else 5120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121 printf '%s\n' "no" >&6; } 5122 fi 5123 5124 5125 fi 5126 if test -z "$ac_cv_path_PKG_CONFIG"; then 5127 ac_pt_PKG_CONFIG=$PKG_CONFIG 5128 # Extract the first word of "pkg-config", so it can be a program name with args. 5129 set dummy pkg-config; ac_word=$2 5130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131 printf %s "checking for $ac_word... " >&6; } 5132 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5133 then : 5134 printf %s "(cached) " >&6 5135 else case e in #( 5136 e) case $ac_pt_PKG_CONFIG in 5137 [\\/]* | ?:[\\/]*) 5138 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5139 ;; 5140 *) 5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142 for as_dir in $PATH 5143 do 5144 IFS=$as_save_IFS 5145 case $as_dir in #((( 5146 '') as_dir=./ ;; 5147 */) ;; 5148 *) as_dir=$as_dir/ ;; 5149 esac 5150 for ac_exec_ext in '' $ac_executable_extensions; do 5151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5152 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5153 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5154 break 2 5155 fi 5156 done 5157 done 5158 IFS=$as_save_IFS 5159 5160 ;; 5161 esac ;; 5162 esac 5163 fi 5164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5165 if test -n "$ac_pt_PKG_CONFIG"; then 5166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5167 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; } 5168 else 5169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5170 printf '%s\n' "no" >&6; } 5171 fi 5172 5173 if test "x$ac_pt_PKG_CONFIG" = x; then 5174 PKG_CONFIG="" 5175 else 5176 case $cross_compiling:$ac_tool_warned in 5177 yes:) 5178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5179 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5180 ac_tool_warned=yes ;; 5181 esac 5182 PKG_CONFIG=$ac_pt_PKG_CONFIG 5183 fi 5184 else 5185 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5186 fi 5187 5188 fi 5189 if test -n "$PKG_CONFIG"; then 5190 _pkg_min_version=0.9.0 5191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5192 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5193 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5195 printf '%s\n' "yes" >&6; } 5196 else 5197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5198 printf '%s\n' "no" >&6; } 5199 PKG_CONFIG="" 5200 fi 5201 fi 5202 5203 5204 # Make sure we can run config.sub. 5205 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5206 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5207 5208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5209 printf %s "checking build system type... " >&6; } 5210 if test ${ac_cv_build+y} 5211 then : 5212 printf %s "(cached) " >&6 5213 else case e in #( 5214 e) ac_build_alias=$build_alias 5215 test "x$ac_build_alias" = x && 5216 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5217 test "x$ac_build_alias" = x && 5218 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5219 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5220 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5221 ;; 5222 esac 5223 fi 5224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5225 printf '%s\n' "$ac_cv_build" >&6; } 5226 case $ac_cv_build in 5227 *-*-*) ;; 5228 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5229 esac 5230 build=$ac_cv_build 5231 ac_save_IFS=$IFS; IFS='-' 5232 set x $ac_cv_build 5233 shift 5234 build_cpu=$1 5235 build_vendor=$2 5236 shift; shift 5237 # Remember, the first character of IFS is used to create $*, 5238 # except with old shells: 5239 build_os=$* 5240 IFS=$ac_save_IFS 5241 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac 5242 5243 5244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5245 printf %s "checking host system type... " >&6; } 5246 if test ${ac_cv_host+y} 5247 then : 5248 printf %s "(cached) " >&6 5249 else case e in #( 5250 e) if test "x$host_alias" = x; then 5251 ac_cv_host=$ac_cv_build 5252 else 5253 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5254 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5255 fi 5256 ;; 5257 esac 5258 fi 5259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5260 printf '%s\n' "$ac_cv_host" >&6; } 5261 case $ac_cv_host in 5262 *-*-*) ;; 5263 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5264 esac 5265 host=$ac_cv_host 5266 ac_save_IFS=$IFS; IFS='-' 5267 set x $ac_cv_host 5268 shift 5269 host_cpu=$1 5270 host_vendor=$2 5271 shift; shift 5272 # Remember, the first character of IFS is used to create $*, 5273 # except with old shells: 5274 host_os=$* 5275 IFS=$ac_save_IFS 5276 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac 5277 5278 5279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5280 printf %s "checking for a sed that does not truncate output... " >&6; } 5281 if test ${ac_cv_path_SED+y} 5282 then : 5283 printf %s "(cached) " >&6 5284 else case e in #( 5285 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5286 for ac_i in 1 2 3 4 5 6 7; do 5287 ac_script="$ac_script$as_nl$ac_script" 5288 done 5289 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5290 { ac_script=; unset ac_script;} 5291 if test -z "$SED"; then 5292 ac_path_SED_found=false 5293 # Loop through the user's path and test for each of PROGNAME-LIST 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295 for as_dir in $PATH 5296 do 5297 IFS=$as_save_IFS 5298 case $as_dir in #((( 5299 '') as_dir=./ ;; 5300 */) ;; 5301 *) as_dir=$as_dir/ ;; 5302 esac 5303 for ac_prog in sed gsed 5304 do 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5307 as_fn_executable_p "$ac_path_SED" || continue 5308 # Check for GNU ac_path_SED and select it if it is found. 5309 # Check for GNU $ac_path_SED 5310 case `"$ac_path_SED" --version 2>&1` in #( 5311 *GNU*) 5312 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5313 #( 5314 *) 5315 ac_count=0 5316 printf %s 0123456789 >"conftest.in" 5317 while : 5318 do 5319 cat "conftest.in" "conftest.in" >"conftest.tmp" 5320 mv "conftest.tmp" "conftest.in" 5321 cp "conftest.in" "conftest.nl" 5322 printf '%s\n' '' >> "conftest.nl" 5323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5325 as_fn_arith $ac_count + 1 && ac_count=$as_val 5326 if test $ac_count -gt ${ac_path_SED_max-0}; then 5327 # Best one so far, save it but keep looking for a better one 5328 ac_cv_path_SED="$ac_path_SED" 5329 ac_path_SED_max=$ac_count 5330 fi 5331 # 10*(2^10) chars as input seems more than enough 5332 test $ac_count -gt 10 && break 5333 done 5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5335 esac 5336 5337 $ac_path_SED_found && break 3 5338 done 5339 done 5340 done 5341 IFS=$as_save_IFS 5342 if test -z "$ac_cv_path_SED"; then 5343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5344 fi 5345 else 5346 ac_cv_path_SED=$SED 5347 fi 5348 ;; 5349 esac 5350 fi 5351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5352 printf '%s\n' "$ac_cv_path_SED" >&6; } 5353 SED="$ac_cv_path_SED" 5354 rm -f conftest.sed 5355 5356 5357 5358 5359 5360 5361 # Check whether --enable-selective-werror was given. 5362 if test ${enable_selective_werror+y} 5363 then : 5364 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5365 else case e in #( 5366 e) SELECTIVE_WERROR=yes ;; 5367 esac 5368 fi 5369 5370 5371 5372 5373 5374 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5375 if test "x$SUNCC" = "xyes"; then 5376 BASE_CFLAGS="-v" 5377 else 5378 BASE_CFLAGS="" 5379 fi 5380 5381 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 xorg_testset_save_CFLAGS="$CFLAGS" 5396 5397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5401 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5402 then : 5403 printf %s "(cached) " >&6 5404 else case e in #( 5405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406 /* end confdefs.h. */ 5407 int i; 5408 _ACEOF 5409 if ac_fn_c_try_compile "$LINENO" 5410 then : 5411 xorg_cv_cc_flag_unknown_warning_option=yes 5412 else case e in #( 5413 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5414 esac 5415 fi 5416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5417 esac 5418 fi 5419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5420 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423 fi 5424 5425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5428 fi 5429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5433 then : 5434 printf %s "(cached) " >&6 5435 else case e in #( 5436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437 /* end confdefs.h. */ 5438 int i; 5439 _ACEOF 5440 if ac_fn_c_try_compile "$LINENO" 5441 then : 5442 xorg_cv_cc_flag_unused_command_line_argument=yes 5443 else case e in #( 5444 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5445 esac 5446 fi 5447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5448 esac 5449 fi 5450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5451 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5453 CFLAGS="$xorg_testset_save_CFLAGS" 5454 fi 5455 5456 found="no" 5457 5458 if test $found = "no" ; then 5459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5461 fi 5462 5463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5465 fi 5466 5467 CFLAGS="$CFLAGS -Wall" 5468 5469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5470 printf %s "checking if $CC supports -Wall... " >&6; } 5471 cacheid=xorg_cv_cc_flag__Wall 5472 if eval test \${$cacheid+y} 5473 then : 5474 printf %s "(cached) " >&6 5475 else case e in #( 5476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477 /* end confdefs.h. */ 5478 int i; 5479 int 5480 main (void) 5481 { 5482 5483 ; 5484 return 0; 5485 } 5486 _ACEOF 5487 if ac_fn_c_try_link "$LINENO" 5488 then : 5489 eval $cacheid=yes 5490 else case e in #( 5491 e) eval $cacheid=no ;; 5492 esac 5493 fi 5494 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5495 conftest$ac_exeext conftest.$ac_ext ;; 5496 esac 5497 fi 5498 5499 5500 CFLAGS="$xorg_testset_save_CFLAGS" 5501 5502 eval supported=\$$cacheid 5503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5504 printf '%s\n' "$supported" >&6; } 5505 if test "$supported" = "yes" ; then 5506 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5507 found="yes" 5508 fi 5509 fi 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 xorg_testset_save_CFLAGS="$CFLAGS" 5526 5527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5531 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5532 then : 5533 printf %s "(cached) " >&6 5534 else case e in #( 5535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536 /* end confdefs.h. */ 5537 int i; 5538 _ACEOF 5539 if ac_fn_c_try_compile "$LINENO" 5540 then : 5541 xorg_cv_cc_flag_unknown_warning_option=yes 5542 else case e in #( 5543 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5544 esac 5545 fi 5546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5547 esac 5548 fi 5549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5550 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553 fi 5554 5555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5563 then : 5564 printf %s "(cached) " >&6 5565 else case e in #( 5566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567 /* end confdefs.h. */ 5568 int i; 5569 _ACEOF 5570 if ac_fn_c_try_compile "$LINENO" 5571 then : 5572 xorg_cv_cc_flag_unused_command_line_argument=yes 5573 else case e in #( 5574 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5575 esac 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5578 esac 5579 fi 5580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5581 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 fi 5585 5586 found="no" 5587 5588 if test $found = "no" ; then 5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5591 fi 5592 5593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5595 fi 5596 5597 CFLAGS="$CFLAGS -Wpointer-arith" 5598 5599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5600 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5601 cacheid=xorg_cv_cc_flag__Wpointer_arith 5602 if eval test \${$cacheid+y} 5603 then : 5604 printf %s "(cached) " >&6 5605 else case e in #( 5606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607 /* end confdefs.h. */ 5608 int i; 5609 int 5610 main (void) 5611 { 5612 5613 ; 5614 return 0; 5615 } 5616 _ACEOF 5617 if ac_fn_c_try_link "$LINENO" 5618 then : 5619 eval $cacheid=yes 5620 else case e in #( 5621 e) eval $cacheid=no ;; 5622 esac 5623 fi 5624 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5625 conftest$ac_exeext conftest.$ac_ext ;; 5626 esac 5627 fi 5628 5629 5630 CFLAGS="$xorg_testset_save_CFLAGS" 5631 5632 eval supported=\$$cacheid 5633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5634 printf '%s\n' "$supported" >&6; } 5635 if test "$supported" = "yes" ; then 5636 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5637 found="yes" 5638 fi 5639 fi 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 xorg_testset_save_CFLAGS="$CFLAGS" 5656 5657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5660 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5661 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5662 then : 5663 printf %s "(cached) " >&6 5664 else case e in #( 5665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666 /* end confdefs.h. */ 5667 int i; 5668 _ACEOF 5669 if ac_fn_c_try_compile "$LINENO" 5670 then : 5671 xorg_cv_cc_flag_unknown_warning_option=yes 5672 else case e in #( 5673 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5674 esac 5675 fi 5676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5677 esac 5678 fi 5679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5680 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683 fi 5684 5685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5688 fi 5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5693 then : 5694 printf %s "(cached) " >&6 5695 else case e in #( 5696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697 /* end confdefs.h. */ 5698 int i; 5699 _ACEOF 5700 if ac_fn_c_try_compile "$LINENO" 5701 then : 5702 xorg_cv_cc_flag_unused_command_line_argument=yes 5703 else case e in #( 5704 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5705 esac 5706 fi 5707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5708 esac 5709 fi 5710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5711 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5713 CFLAGS="$xorg_testset_save_CFLAGS" 5714 fi 5715 5716 found="no" 5717 5718 if test $found = "no" ; then 5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5721 fi 5722 5723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5725 fi 5726 5727 CFLAGS="$CFLAGS -Wmissing-declarations" 5728 5729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5730 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5731 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5732 if eval test \${$cacheid+y} 5733 then : 5734 printf %s "(cached) " >&6 5735 else case e in #( 5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737 /* end confdefs.h. */ 5738 int i; 5739 int 5740 main (void) 5741 { 5742 5743 ; 5744 return 0; 5745 } 5746 _ACEOF 5747 if ac_fn_c_try_link "$LINENO" 5748 then : 5749 eval $cacheid=yes 5750 else case e in #( 5751 e) eval $cacheid=no ;; 5752 esac 5753 fi 5754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5755 conftest$ac_exeext conftest.$ac_ext ;; 5756 esac 5757 fi 5758 5759 5760 CFLAGS="$xorg_testset_save_CFLAGS" 5761 5762 eval supported=\$$cacheid 5763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5764 printf '%s\n' "$supported" >&6; } 5765 if test "$supported" = "yes" ; then 5766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5767 found="yes" 5768 fi 5769 fi 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 xorg_testset_save_CFLAGS="$CFLAGS" 5786 5787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5791 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5792 then : 5793 printf %s "(cached) " >&6 5794 else case e in #( 5795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796 /* end confdefs.h. */ 5797 int i; 5798 _ACEOF 5799 if ac_fn_c_try_compile "$LINENO" 5800 then : 5801 xorg_cv_cc_flag_unknown_warning_option=yes 5802 else case e in #( 5803 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5804 esac 5805 fi 5806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5807 esac 5808 fi 5809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5810 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813 fi 5814 5815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 fi 5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5823 then : 5824 printf %s "(cached) " >&6 5825 else case e in #( 5826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827 /* end confdefs.h. */ 5828 int i; 5829 _ACEOF 5830 if ac_fn_c_try_compile "$LINENO" 5831 then : 5832 xorg_cv_cc_flag_unused_command_line_argument=yes 5833 else case e in #( 5834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5835 esac 5836 fi 5837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5838 esac 5839 fi 5840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5841 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844 fi 5845 5846 found="no" 5847 5848 if test $found = "no" ; then 5849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5851 fi 5852 5853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 fi 5856 5857 CFLAGS="$CFLAGS -Wformat=2" 5858 5859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5860 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5861 cacheid=xorg_cv_cc_flag__Wformat_2 5862 if eval test \${$cacheid+y} 5863 then : 5864 printf %s "(cached) " >&6 5865 else case e in #( 5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867 /* end confdefs.h. */ 5868 int i; 5869 int 5870 main (void) 5871 { 5872 5873 ; 5874 return 0; 5875 } 5876 _ACEOF 5877 if ac_fn_c_try_link "$LINENO" 5878 then : 5879 eval $cacheid=yes 5880 else case e in #( 5881 e) eval $cacheid=no ;; 5882 esac 5883 fi 5884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5885 conftest$ac_exeext conftest.$ac_ext ;; 5886 esac 5887 fi 5888 5889 5890 CFLAGS="$xorg_testset_save_CFLAGS" 5891 5892 eval supported=\$$cacheid 5893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5894 printf '%s\n' "$supported" >&6; } 5895 if test "$supported" = "yes" ; then 5896 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5897 found="yes" 5898 fi 5899 fi 5900 5901 if test $found = "no" ; then 5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 fi 5905 5906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5908 fi 5909 5910 CFLAGS="$CFLAGS -Wformat" 5911 5912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5913 printf %s "checking if $CC supports -Wformat... " >&6; } 5914 cacheid=xorg_cv_cc_flag__Wformat 5915 if eval test \${$cacheid+y} 5916 then : 5917 printf %s "(cached) " >&6 5918 else case e in #( 5919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920 /* end confdefs.h. */ 5921 int i; 5922 int 5923 main (void) 5924 { 5925 5926 ; 5927 return 0; 5928 } 5929 _ACEOF 5930 if ac_fn_c_try_link "$LINENO" 5931 then : 5932 eval $cacheid=yes 5933 else case e in #( 5934 e) eval $cacheid=no ;; 5935 esac 5936 fi 5937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5938 conftest$ac_exeext conftest.$ac_ext ;; 5939 esac 5940 fi 5941 5942 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944 5945 eval supported=\$$cacheid 5946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5947 printf '%s\n' "$supported" >&6; } 5948 if test "$supported" = "yes" ; then 5949 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5950 found="yes" 5951 fi 5952 fi 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 xorg_testset_save_CFLAGS="$CFLAGS" 5971 5972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5975 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5976 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5977 then : 5978 printf %s "(cached) " >&6 5979 else case e in #( 5980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981 /* end confdefs.h. */ 5982 int i; 5983 _ACEOF 5984 if ac_fn_c_try_compile "$LINENO" 5985 then : 5986 xorg_cv_cc_flag_unknown_warning_option=yes 5987 else case e in #( 5988 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5989 esac 5990 fi 5991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5992 esac 5993 fi 5994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5995 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5997 CFLAGS="$xorg_testset_save_CFLAGS" 5998 fi 5999 6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6003 fi 6004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6008 then : 6009 printf %s "(cached) " >&6 6010 else case e in #( 6011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012 /* end confdefs.h. */ 6013 int i; 6014 _ACEOF 6015 if ac_fn_c_try_compile "$LINENO" 6016 then : 6017 xorg_cv_cc_flag_unused_command_line_argument=yes 6018 else case e in #( 6019 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6020 esac 6021 fi 6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6023 esac 6024 fi 6025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6026 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6028 CFLAGS="$xorg_testset_save_CFLAGS" 6029 fi 6030 6031 found="no" 6032 6033 if test $found = "no" ; then 6034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 fi 6037 6038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6040 fi 6041 6042 CFLAGS="$CFLAGS -Wstrict-prototypes" 6043 6044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6045 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6046 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6047 if eval test \${$cacheid+y} 6048 then : 6049 printf %s "(cached) " >&6 6050 else case e in #( 6051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052 /* end confdefs.h. */ 6053 int i; 6054 int 6055 main (void) 6056 { 6057 6058 ; 6059 return 0; 6060 } 6061 _ACEOF 6062 if ac_fn_c_try_link "$LINENO" 6063 then : 6064 eval $cacheid=yes 6065 else case e in #( 6066 e) eval $cacheid=no ;; 6067 esac 6068 fi 6069 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6070 conftest$ac_exeext conftest.$ac_ext ;; 6071 esac 6072 fi 6073 6074 6075 CFLAGS="$xorg_testset_save_CFLAGS" 6076 6077 eval supported=\$$cacheid 6078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6079 printf '%s\n' "$supported" >&6; } 6080 if test "$supported" = "yes" ; then 6081 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6082 found="yes" 6083 fi 6084 fi 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 xorg_testset_save_CFLAGS="$CFLAGS" 6101 6102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6105 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6106 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6107 then : 6108 printf %s "(cached) " >&6 6109 else case e in #( 6110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111 /* end confdefs.h. */ 6112 int i; 6113 _ACEOF 6114 if ac_fn_c_try_compile "$LINENO" 6115 then : 6116 xorg_cv_cc_flag_unknown_warning_option=yes 6117 else case e in #( 6118 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6119 esac 6120 fi 6121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6122 esac 6123 fi 6124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6125 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6127 CFLAGS="$xorg_testset_save_CFLAGS" 6128 fi 6129 6130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6133 fi 6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6138 then : 6139 printf %s "(cached) " >&6 6140 else case e in #( 6141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142 /* end confdefs.h. */ 6143 int i; 6144 _ACEOF 6145 if ac_fn_c_try_compile "$LINENO" 6146 then : 6147 xorg_cv_cc_flag_unused_command_line_argument=yes 6148 else case e in #( 6149 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6150 esac 6151 fi 6152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6153 esac 6154 fi 6155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6156 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 fi 6160 6161 found="no" 6162 6163 if test $found = "no" ; then 6164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6166 fi 6167 6168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6170 fi 6171 6172 CFLAGS="$CFLAGS -Wmissing-prototypes" 6173 6174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6175 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6176 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6177 if eval test \${$cacheid+y} 6178 then : 6179 printf %s "(cached) " >&6 6180 else case e in #( 6181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182 /* end confdefs.h. */ 6183 int i; 6184 int 6185 main (void) 6186 { 6187 6188 ; 6189 return 0; 6190 } 6191 _ACEOF 6192 if ac_fn_c_try_link "$LINENO" 6193 then : 6194 eval $cacheid=yes 6195 else case e in #( 6196 e) eval $cacheid=no ;; 6197 esac 6198 fi 6199 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6200 conftest$ac_exeext conftest.$ac_ext ;; 6201 esac 6202 fi 6203 6204 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206 6207 eval supported=\$$cacheid 6208 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6209 printf '%s\n' "$supported" >&6; } 6210 if test "$supported" = "yes" ; then 6211 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6212 found="yes" 6213 fi 6214 fi 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 xorg_testset_save_CFLAGS="$CFLAGS" 6231 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6236 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6237 then : 6238 printf %s "(cached) " >&6 6239 else case e in #( 6240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241 /* end confdefs.h. */ 6242 int i; 6243 _ACEOF 6244 if ac_fn_c_try_compile "$LINENO" 6245 then : 6246 xorg_cv_cc_flag_unknown_warning_option=yes 6247 else case e in #( 6248 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6249 esac 6250 fi 6251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6252 esac 6253 fi 6254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6255 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6257 CFLAGS="$xorg_testset_save_CFLAGS" 6258 fi 6259 6260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6263 fi 6264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6268 then : 6269 printf %s "(cached) " >&6 6270 else case e in #( 6271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272 /* end confdefs.h. */ 6273 int i; 6274 _ACEOF 6275 if ac_fn_c_try_compile "$LINENO" 6276 then : 6277 xorg_cv_cc_flag_unused_command_line_argument=yes 6278 else case e in #( 6279 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6280 esac 6281 fi 6282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6283 esac 6284 fi 6285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6286 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6288 CFLAGS="$xorg_testset_save_CFLAGS" 6289 fi 6290 6291 found="no" 6292 6293 if test $found = "no" ; then 6294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6296 fi 6297 6298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6300 fi 6301 6302 CFLAGS="$CFLAGS -Wnested-externs" 6303 6304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6305 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6306 cacheid=xorg_cv_cc_flag__Wnested_externs 6307 if eval test \${$cacheid+y} 6308 then : 6309 printf %s "(cached) " >&6 6310 else case e in #( 6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 /* end confdefs.h. */ 6313 int i; 6314 int 6315 main (void) 6316 { 6317 6318 ; 6319 return 0; 6320 } 6321 _ACEOF 6322 if ac_fn_c_try_link "$LINENO" 6323 then : 6324 eval $cacheid=yes 6325 else case e in #( 6326 e) eval $cacheid=no ;; 6327 esac 6328 fi 6329 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6330 conftest$ac_exeext conftest.$ac_ext ;; 6331 esac 6332 fi 6333 6334 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336 6337 eval supported=\$$cacheid 6338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6339 printf '%s\n' "$supported" >&6; } 6340 if test "$supported" = "yes" ; then 6341 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6342 found="yes" 6343 fi 6344 fi 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 xorg_testset_save_CFLAGS="$CFLAGS" 6361 6362 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6365 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6366 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6367 then : 6368 printf %s "(cached) " >&6 6369 else case e in #( 6370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371 /* end confdefs.h. */ 6372 int i; 6373 _ACEOF 6374 if ac_fn_c_try_compile "$LINENO" 6375 then : 6376 xorg_cv_cc_flag_unknown_warning_option=yes 6377 else case e in #( 6378 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6379 esac 6380 fi 6381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6382 esac 6383 fi 6384 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6385 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6387 CFLAGS="$xorg_testset_save_CFLAGS" 6388 fi 6389 6390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6393 fi 6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6398 then : 6399 printf %s "(cached) " >&6 6400 else case e in #( 6401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6402 /* end confdefs.h. */ 6403 int i; 6404 _ACEOF 6405 if ac_fn_c_try_compile "$LINENO" 6406 then : 6407 xorg_cv_cc_flag_unused_command_line_argument=yes 6408 else case e in #( 6409 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6410 esac 6411 fi 6412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6413 esac 6414 fi 6415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6416 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419 fi 6420 6421 found="no" 6422 6423 if test $found = "no" ; then 6424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426 fi 6427 6428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430 fi 6431 6432 CFLAGS="$CFLAGS -Wbad-function-cast" 6433 6434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6435 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6436 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6437 if eval test \${$cacheid+y} 6438 then : 6439 printf %s "(cached) " >&6 6440 else case e in #( 6441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442 /* end confdefs.h. */ 6443 int i; 6444 int 6445 main (void) 6446 { 6447 6448 ; 6449 return 0; 6450 } 6451 _ACEOF 6452 if ac_fn_c_try_link "$LINENO" 6453 then : 6454 eval $cacheid=yes 6455 else case e in #( 6456 e) eval $cacheid=no ;; 6457 esac 6458 fi 6459 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6460 conftest$ac_exeext conftest.$ac_ext ;; 6461 esac 6462 fi 6463 6464 6465 CFLAGS="$xorg_testset_save_CFLAGS" 6466 6467 eval supported=\$$cacheid 6468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6469 printf '%s\n' "$supported" >&6; } 6470 if test "$supported" = "yes" ; then 6471 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6472 found="yes" 6473 fi 6474 fi 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 xorg_testset_save_CFLAGS="$CFLAGS" 6491 6492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6496 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6497 then : 6498 printf %s "(cached) " >&6 6499 else case e in #( 6500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501 /* end confdefs.h. */ 6502 int i; 6503 _ACEOF 6504 if ac_fn_c_try_compile "$LINENO" 6505 then : 6506 xorg_cv_cc_flag_unknown_warning_option=yes 6507 else case e in #( 6508 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6509 esac 6510 fi 6511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6512 esac 6513 fi 6514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6515 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6517 CFLAGS="$xorg_testset_save_CFLAGS" 6518 fi 6519 6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6528 then : 6529 printf %s "(cached) " >&6 6530 else case e in #( 6531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532 /* end confdefs.h. */ 6533 int i; 6534 _ACEOF 6535 if ac_fn_c_try_compile "$LINENO" 6536 then : 6537 xorg_cv_cc_flag_unused_command_line_argument=yes 6538 else case e in #( 6539 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6540 esac 6541 fi 6542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6543 esac 6544 fi 6545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6546 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6548 CFLAGS="$xorg_testset_save_CFLAGS" 6549 fi 6550 6551 found="no" 6552 6553 if test $found = "no" ; then 6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6556 fi 6557 6558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6560 fi 6561 6562 CFLAGS="$CFLAGS -Wold-style-definition" 6563 6564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6565 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6566 cacheid=xorg_cv_cc_flag__Wold_style_definition 6567 if eval test \${$cacheid+y} 6568 then : 6569 printf %s "(cached) " >&6 6570 else case e in #( 6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572 /* end confdefs.h. */ 6573 int i; 6574 int 6575 main (void) 6576 { 6577 6578 ; 6579 return 0; 6580 } 6581 _ACEOF 6582 if ac_fn_c_try_link "$LINENO" 6583 then : 6584 eval $cacheid=yes 6585 else case e in #( 6586 e) eval $cacheid=no ;; 6587 esac 6588 fi 6589 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6590 conftest$ac_exeext conftest.$ac_ext ;; 6591 esac 6592 fi 6593 6594 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596 6597 eval supported=\$$cacheid 6598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6599 printf '%s\n' "$supported" >&6; } 6600 if test "$supported" = "yes" ; then 6601 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6602 found="yes" 6603 fi 6604 fi 6605 6606 if test $found = "no" ; then 6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6609 fi 6610 6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6613 fi 6614 6615 CFLAGS="$CFLAGS -fd" 6616 6617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6618 printf %s "checking if $CC supports -fd... " >&6; } 6619 cacheid=xorg_cv_cc_flag__fd 6620 if eval test \${$cacheid+y} 6621 then : 6622 printf %s "(cached) " >&6 6623 else case e in #( 6624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625 /* end confdefs.h. */ 6626 int i; 6627 int 6628 main (void) 6629 { 6630 6631 ; 6632 return 0; 6633 } 6634 _ACEOF 6635 if ac_fn_c_try_link "$LINENO" 6636 then : 6637 eval $cacheid=yes 6638 else case e in #( 6639 e) eval $cacheid=no ;; 6640 esac 6641 fi 6642 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6643 conftest$ac_exeext conftest.$ac_ext ;; 6644 esac 6645 fi 6646 6647 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649 6650 eval supported=\$$cacheid 6651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6652 printf '%s\n' "$supported" >&6; } 6653 if test "$supported" = "yes" ; then 6654 BASE_CFLAGS="$BASE_CFLAGS -fd" 6655 found="yes" 6656 fi 6657 fi 6658 6659 6660 6661 6662 6663 # This chunk adds additional warnings that could catch undesired effects. 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 xorg_testset_save_CFLAGS="$CFLAGS" 6678 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6683 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6684 then : 6685 printf %s "(cached) " >&6 6686 else case e in #( 6687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6688 /* end confdefs.h. */ 6689 int i; 6690 _ACEOF 6691 if ac_fn_c_try_compile "$LINENO" 6692 then : 6693 xorg_cv_cc_flag_unknown_warning_option=yes 6694 else case e in #( 6695 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6696 esac 6697 fi 6698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6699 esac 6700 fi 6701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6702 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6704 CFLAGS="$xorg_testset_save_CFLAGS" 6705 fi 6706 6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6710 fi 6711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6713 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6714 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6715 then : 6716 printf %s "(cached) " >&6 6717 else case e in #( 6718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719 /* end confdefs.h. */ 6720 int i; 6721 _ACEOF 6722 if ac_fn_c_try_compile "$LINENO" 6723 then : 6724 xorg_cv_cc_flag_unused_command_line_argument=yes 6725 else case e in #( 6726 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6727 esac 6728 fi 6729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6730 esac 6731 fi 6732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6733 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6735 CFLAGS="$xorg_testset_save_CFLAGS" 6736 fi 6737 6738 found="no" 6739 6740 if test $found = "no" ; then 6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 fi 6744 6745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6747 fi 6748 6749 CFLAGS="$CFLAGS -Wunused" 6750 6751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6752 printf %s "checking if $CC supports -Wunused... " >&6; } 6753 cacheid=xorg_cv_cc_flag__Wunused 6754 if eval test \${$cacheid+y} 6755 then : 6756 printf %s "(cached) " >&6 6757 else case e in #( 6758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759 /* end confdefs.h. */ 6760 int i; 6761 int 6762 main (void) 6763 { 6764 6765 ; 6766 return 0; 6767 } 6768 _ACEOF 6769 if ac_fn_c_try_link "$LINENO" 6770 then : 6771 eval $cacheid=yes 6772 else case e in #( 6773 e) eval $cacheid=no ;; 6774 esac 6775 fi 6776 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6777 conftest$ac_exeext conftest.$ac_ext ;; 6778 esac 6779 fi 6780 6781 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783 6784 eval supported=\$$cacheid 6785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6786 printf '%s\n' "$supported" >&6; } 6787 if test "$supported" = "yes" ; then 6788 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6789 found="yes" 6790 fi 6791 fi 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 xorg_testset_save_CFLAGS="$CFLAGS" 6808 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6813 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6814 then : 6815 printf %s "(cached) " >&6 6816 else case e in #( 6817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818 /* end confdefs.h. */ 6819 int i; 6820 _ACEOF 6821 if ac_fn_c_try_compile "$LINENO" 6822 then : 6823 xorg_cv_cc_flag_unknown_warning_option=yes 6824 else case e in #( 6825 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6826 esac 6827 fi 6828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6829 esac 6830 fi 6831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6832 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6834 CFLAGS="$xorg_testset_save_CFLAGS" 6835 fi 6836 6837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6840 fi 6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6845 then : 6846 printf %s "(cached) " >&6 6847 else case e in #( 6848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849 /* end confdefs.h. */ 6850 int i; 6851 _ACEOF 6852 if ac_fn_c_try_compile "$LINENO" 6853 then : 6854 xorg_cv_cc_flag_unused_command_line_argument=yes 6855 else case e in #( 6856 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6857 esac 6858 fi 6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6860 esac 6861 fi 6862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6863 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866 fi 6867 6868 found="no" 6869 6870 if test $found = "no" ; then 6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6873 fi 6874 6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6877 fi 6878 6879 CFLAGS="$CFLAGS -Wuninitialized" 6880 6881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6882 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6883 cacheid=xorg_cv_cc_flag__Wuninitialized 6884 if eval test \${$cacheid+y} 6885 then : 6886 printf %s "(cached) " >&6 6887 else case e in #( 6888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889 /* end confdefs.h. */ 6890 int i; 6891 int 6892 main (void) 6893 { 6894 6895 ; 6896 return 0; 6897 } 6898 _ACEOF 6899 if ac_fn_c_try_link "$LINENO" 6900 then : 6901 eval $cacheid=yes 6902 else case e in #( 6903 e) eval $cacheid=no ;; 6904 esac 6905 fi 6906 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6907 conftest$ac_exeext conftest.$ac_ext ;; 6908 esac 6909 fi 6910 6911 6912 CFLAGS="$xorg_testset_save_CFLAGS" 6913 6914 eval supported=\$$cacheid 6915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6916 printf '%s\n' "$supported" >&6; } 6917 if test "$supported" = "yes" ; then 6918 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6919 found="yes" 6920 fi 6921 fi 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 xorg_testset_save_CFLAGS="$CFLAGS" 6938 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6943 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6944 then : 6945 printf %s "(cached) " >&6 6946 else case e in #( 6947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948 /* end confdefs.h. */ 6949 int i; 6950 _ACEOF 6951 if ac_fn_c_try_compile "$LINENO" 6952 then : 6953 xorg_cv_cc_flag_unknown_warning_option=yes 6954 else case e in #( 6955 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6956 esac 6957 fi 6958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6959 esac 6960 fi 6961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6962 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965 fi 6966 6967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6970 fi 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6975 then : 6976 printf %s "(cached) " >&6 6977 else case e in #( 6978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979 /* end confdefs.h. */ 6980 int i; 6981 _ACEOF 6982 if ac_fn_c_try_compile "$LINENO" 6983 then : 6984 xorg_cv_cc_flag_unused_command_line_argument=yes 6985 else case e in #( 6986 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6987 esac 6988 fi 6989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6990 esac 6991 fi 6992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6993 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996 fi 6997 6998 found="no" 6999 7000 if test $found = "no" ; then 7001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7003 fi 7004 7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7007 fi 7008 7009 CFLAGS="$CFLAGS -Wshadow" 7010 7011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7012 printf %s "checking if $CC supports -Wshadow... " >&6; } 7013 cacheid=xorg_cv_cc_flag__Wshadow 7014 if eval test \${$cacheid+y} 7015 then : 7016 printf %s "(cached) " >&6 7017 else case e in #( 7018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019 /* end confdefs.h. */ 7020 int i; 7021 int 7022 main (void) 7023 { 7024 7025 ; 7026 return 0; 7027 } 7028 _ACEOF 7029 if ac_fn_c_try_link "$LINENO" 7030 then : 7031 eval $cacheid=yes 7032 else case e in #( 7033 e) eval $cacheid=no ;; 7034 esac 7035 fi 7036 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7037 conftest$ac_exeext conftest.$ac_ext ;; 7038 esac 7039 fi 7040 7041 7042 CFLAGS="$xorg_testset_save_CFLAGS" 7043 7044 eval supported=\$$cacheid 7045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7046 printf '%s\n' "$supported" >&6; } 7047 if test "$supported" = "yes" ; then 7048 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7049 found="yes" 7050 fi 7051 fi 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 xorg_testset_save_CFLAGS="$CFLAGS" 7068 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7073 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7074 then : 7075 printf %s "(cached) " >&6 7076 else case e in #( 7077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078 /* end confdefs.h. */ 7079 int i; 7080 _ACEOF 7081 if ac_fn_c_try_compile "$LINENO" 7082 then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084 else case e in #( 7085 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7086 esac 7087 fi 7088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7089 esac 7090 fi 7091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7092 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7094 CFLAGS="$xorg_testset_save_CFLAGS" 7095 fi 7096 7097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7100 fi 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7105 then : 7106 printf %s "(cached) " >&6 7107 else case e in #( 7108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109 /* end confdefs.h. */ 7110 int i; 7111 _ACEOF 7112 if ac_fn_c_try_compile "$LINENO" 7113 then : 7114 xorg_cv_cc_flag_unused_command_line_argument=yes 7115 else case e in #( 7116 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7117 esac 7118 fi 7119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7120 esac 7121 fi 7122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7123 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7125 CFLAGS="$xorg_testset_save_CFLAGS" 7126 fi 7127 7128 found="no" 7129 7130 if test $found = "no" ; then 7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 fi 7134 7135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7137 fi 7138 7139 CFLAGS="$CFLAGS -Wmissing-noreturn" 7140 7141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7142 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7143 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7144 if eval test \${$cacheid+y} 7145 then : 7146 printf %s "(cached) " >&6 7147 else case e in #( 7148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149 /* end confdefs.h. */ 7150 int i; 7151 int 7152 main (void) 7153 { 7154 7155 ; 7156 return 0; 7157 } 7158 _ACEOF 7159 if ac_fn_c_try_link "$LINENO" 7160 then : 7161 eval $cacheid=yes 7162 else case e in #( 7163 e) eval $cacheid=no ;; 7164 esac 7165 fi 7166 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7167 conftest$ac_exeext conftest.$ac_ext ;; 7168 esac 7169 fi 7170 7171 7172 CFLAGS="$xorg_testset_save_CFLAGS" 7173 7174 eval supported=\$$cacheid 7175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7176 printf '%s\n' "$supported" >&6; } 7177 if test "$supported" = "yes" ; then 7178 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7179 found="yes" 7180 fi 7181 fi 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 xorg_testset_save_CFLAGS="$CFLAGS" 7198 7199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7202 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7203 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7204 then : 7205 printf %s "(cached) " >&6 7206 else case e in #( 7207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208 /* end confdefs.h. */ 7209 int i; 7210 _ACEOF 7211 if ac_fn_c_try_compile "$LINENO" 7212 then : 7213 xorg_cv_cc_flag_unknown_warning_option=yes 7214 else case e in #( 7215 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7216 esac 7217 fi 7218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7219 esac 7220 fi 7221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7222 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225 fi 7226 7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7230 fi 7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7235 then : 7236 printf %s "(cached) " >&6 7237 else case e in #( 7238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239 /* end confdefs.h. */ 7240 int i; 7241 _ACEOF 7242 if ac_fn_c_try_compile "$LINENO" 7243 then : 7244 xorg_cv_cc_flag_unused_command_line_argument=yes 7245 else case e in #( 7246 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7247 esac 7248 fi 7249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7250 esac 7251 fi 7252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7253 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7255 CFLAGS="$xorg_testset_save_CFLAGS" 7256 fi 7257 7258 found="no" 7259 7260 if test $found = "no" ; then 7261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7263 fi 7264 7265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7267 fi 7268 7269 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7270 7271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7272 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7273 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7274 if eval test \${$cacheid+y} 7275 then : 7276 printf %s "(cached) " >&6 7277 else case e in #( 7278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7279 /* end confdefs.h. */ 7280 int i; 7281 int 7282 main (void) 7283 { 7284 7285 ; 7286 return 0; 7287 } 7288 _ACEOF 7289 if ac_fn_c_try_link "$LINENO" 7290 then : 7291 eval $cacheid=yes 7292 else case e in #( 7293 e) eval $cacheid=no ;; 7294 esac 7295 fi 7296 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7297 conftest$ac_exeext conftest.$ac_ext ;; 7298 esac 7299 fi 7300 7301 7302 CFLAGS="$xorg_testset_save_CFLAGS" 7303 7304 eval supported=\$$cacheid 7305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7306 printf '%s\n' "$supported" >&6; } 7307 if test "$supported" = "yes" ; then 7308 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7309 found="yes" 7310 fi 7311 fi 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 xorg_testset_save_CFLAGS="$CFLAGS" 7328 7329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7333 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7334 then : 7335 printf %s "(cached) " >&6 7336 else case e in #( 7337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338 /* end confdefs.h. */ 7339 int i; 7340 _ACEOF 7341 if ac_fn_c_try_compile "$LINENO" 7342 then : 7343 xorg_cv_cc_flag_unknown_warning_option=yes 7344 else case e in #( 7345 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7346 esac 7347 fi 7348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7349 esac 7350 fi 7351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7352 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355 fi 7356 7357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7360 fi 7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7365 then : 7366 printf %s "(cached) " >&6 7367 else case e in #( 7368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369 /* end confdefs.h. */ 7370 int i; 7371 _ACEOF 7372 if ac_fn_c_try_compile "$LINENO" 7373 then : 7374 xorg_cv_cc_flag_unused_command_line_argument=yes 7375 else case e in #( 7376 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7377 esac 7378 fi 7379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7380 esac 7381 fi 7382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7383 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386 fi 7387 7388 found="no" 7389 7390 if test $found = "no" ; then 7391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7393 fi 7394 7395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7397 fi 7398 7399 CFLAGS="$CFLAGS -Wredundant-decls" 7400 7401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7402 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7403 cacheid=xorg_cv_cc_flag__Wredundant_decls 7404 if eval test \${$cacheid+y} 7405 then : 7406 printf %s "(cached) " >&6 7407 else case e in #( 7408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409 /* end confdefs.h. */ 7410 int i; 7411 int 7412 main (void) 7413 { 7414 7415 ; 7416 return 0; 7417 } 7418 _ACEOF 7419 if ac_fn_c_try_link "$LINENO" 7420 then : 7421 eval $cacheid=yes 7422 else case e in #( 7423 e) eval $cacheid=no ;; 7424 esac 7425 fi 7426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7427 conftest$ac_exeext conftest.$ac_ext ;; 7428 esac 7429 fi 7430 7431 7432 CFLAGS="$xorg_testset_save_CFLAGS" 7433 7434 eval supported=\$$cacheid 7435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7436 printf '%s\n' "$supported" >&6; } 7437 if test "$supported" = "yes" ; then 7438 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7439 found="yes" 7440 fi 7441 fi 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 xorg_testset_save_CFLAGS="$CFLAGS" 7458 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7463 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7464 then : 7465 printf %s "(cached) " >&6 7466 else case e in #( 7467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7468 /* end confdefs.h. */ 7469 int i; 7470 _ACEOF 7471 if ac_fn_c_try_compile "$LINENO" 7472 then : 7473 xorg_cv_cc_flag_unknown_warning_option=yes 7474 else case e in #( 7475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7476 esac 7477 fi 7478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7479 esac 7480 fi 7481 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7482 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7484 CFLAGS="$xorg_testset_save_CFLAGS" 7485 fi 7486 7487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7495 then : 7496 printf %s "(cached) " >&6 7497 else case e in #( 7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499 /* end confdefs.h. */ 7500 int i; 7501 _ACEOF 7502 if ac_fn_c_try_compile "$LINENO" 7503 then : 7504 xorg_cv_cc_flag_unused_command_line_argument=yes 7505 else case e in #( 7506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7507 esac 7508 fi 7509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7510 esac 7511 fi 7512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7513 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 fi 7517 7518 found="no" 7519 7520 if test $found = "no" ; then 7521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7523 fi 7524 7525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7527 fi 7528 7529 CFLAGS="$CFLAGS -Wlogical-op" 7530 7531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7532 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7533 cacheid=xorg_cv_cc_flag__Wlogical_op 7534 if eval test \${$cacheid+y} 7535 then : 7536 printf %s "(cached) " >&6 7537 else case e in #( 7538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539 /* end confdefs.h. */ 7540 int i; 7541 int 7542 main (void) 7543 { 7544 7545 ; 7546 return 0; 7547 } 7548 _ACEOF 7549 if ac_fn_c_try_link "$LINENO" 7550 then : 7551 eval $cacheid=yes 7552 else case e in #( 7553 e) eval $cacheid=no ;; 7554 esac 7555 fi 7556 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7557 conftest$ac_exeext conftest.$ac_ext ;; 7558 esac 7559 fi 7560 7561 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563 7564 eval supported=\$$cacheid 7565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7566 printf '%s\n' "$supported" >&6; } 7567 if test "$supported" = "yes" ; then 7568 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7569 found="yes" 7570 fi 7571 fi 7572 7573 7574 7575 # These are currently disabled because they are noisy. They will be enabled 7576 # in the future once the codebase is sufficiently modernized to silence 7577 # them. For now, I don't want them to drown out the other warnings. 7578 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7579 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7580 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7581 7582 # Turn some warnings into errors, so we don't accidentally get successful builds 7583 # when there are problems that should be fixed. 7584 7585 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 xorg_testset_save_CFLAGS="$CFLAGS" 7600 7601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7605 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7606 then : 7607 printf %s "(cached) " >&6 7608 else case e in #( 7609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610 /* end confdefs.h. */ 7611 int i; 7612 _ACEOF 7613 if ac_fn_c_try_compile "$LINENO" 7614 then : 7615 xorg_cv_cc_flag_unknown_warning_option=yes 7616 else case e in #( 7617 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7618 esac 7619 fi 7620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7621 esac 7622 fi 7623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7624 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7626 CFLAGS="$xorg_testset_save_CFLAGS" 7627 fi 7628 7629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7637 then : 7638 printf %s "(cached) " >&6 7639 else case e in #( 7640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641 /* end confdefs.h. */ 7642 int i; 7643 _ACEOF 7644 if ac_fn_c_try_compile "$LINENO" 7645 then : 7646 xorg_cv_cc_flag_unused_command_line_argument=yes 7647 else case e in #( 7648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7649 esac 7650 fi 7651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7652 esac 7653 fi 7654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7655 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7657 CFLAGS="$xorg_testset_save_CFLAGS" 7658 fi 7659 7660 found="no" 7661 7662 if test $found = "no" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 fi 7670 7671 CFLAGS="$CFLAGS -Werror=implicit" 7672 7673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7674 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7675 cacheid=xorg_cv_cc_flag__Werror_implicit 7676 if eval test \${$cacheid+y} 7677 then : 7678 printf %s "(cached) " >&6 7679 else case e in #( 7680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681 /* end confdefs.h. */ 7682 int i; 7683 int 7684 main (void) 7685 { 7686 7687 ; 7688 return 0; 7689 } 7690 _ACEOF 7691 if ac_fn_c_try_link "$LINENO" 7692 then : 7693 eval $cacheid=yes 7694 else case e in #( 7695 e) eval $cacheid=no ;; 7696 esac 7697 fi 7698 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7699 conftest$ac_exeext conftest.$ac_ext ;; 7700 esac 7701 fi 7702 7703 7704 CFLAGS="$xorg_testset_save_CFLAGS" 7705 7706 eval supported=\$$cacheid 7707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7708 printf '%s\n' "$supported" >&6; } 7709 if test "$supported" = "yes" ; then 7710 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7711 found="yes" 7712 fi 7713 fi 7714 7715 if test $found = "no" ; then 7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 fi 7719 7720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7722 fi 7723 7724 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7725 7726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7727 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7728 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7729 if eval test \${$cacheid+y} 7730 then : 7731 printf %s "(cached) " >&6 7732 else case e in #( 7733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734 /* end confdefs.h. */ 7735 int i; 7736 int 7737 main (void) 7738 { 7739 7740 ; 7741 return 0; 7742 } 7743 _ACEOF 7744 if ac_fn_c_try_link "$LINENO" 7745 then : 7746 eval $cacheid=yes 7747 else case e in #( 7748 e) eval $cacheid=no ;; 7749 esac 7750 fi 7751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7752 conftest$ac_exeext conftest.$ac_ext ;; 7753 esac 7754 fi 7755 7756 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758 7759 eval supported=\$$cacheid 7760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7761 printf '%s\n' "$supported" >&6; } 7762 if test "$supported" = "yes" ; then 7763 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7764 found="yes" 7765 fi 7766 fi 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 xorg_testset_save_CFLAGS="$CFLAGS" 7783 7784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7787 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7788 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7789 then : 7790 printf %s "(cached) " >&6 7791 else case e in #( 7792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793 /* end confdefs.h. */ 7794 int i; 7795 _ACEOF 7796 if ac_fn_c_try_compile "$LINENO" 7797 then : 7798 xorg_cv_cc_flag_unknown_warning_option=yes 7799 else case e in #( 7800 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7801 esac 7802 fi 7803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7804 esac 7805 fi 7806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7807 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7809 CFLAGS="$xorg_testset_save_CFLAGS" 7810 fi 7811 7812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815 fi 7816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7820 then : 7821 printf %s "(cached) " >&6 7822 else case e in #( 7823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7824 /* end confdefs.h. */ 7825 int i; 7826 _ACEOF 7827 if ac_fn_c_try_compile "$LINENO" 7828 then : 7829 xorg_cv_cc_flag_unused_command_line_argument=yes 7830 else case e in #( 7831 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7832 esac 7833 fi 7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7835 esac 7836 fi 7837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7838 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841 fi 7842 7843 found="no" 7844 7845 if test $found = "no" ; then 7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7852 fi 7853 7854 CFLAGS="$CFLAGS -Werror=nonnull" 7855 7856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7857 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7858 cacheid=xorg_cv_cc_flag__Werror_nonnull 7859 if eval test \${$cacheid+y} 7860 then : 7861 printf %s "(cached) " >&6 7862 else case e in #( 7863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864 /* end confdefs.h. */ 7865 int i; 7866 int 7867 main (void) 7868 { 7869 7870 ; 7871 return 0; 7872 } 7873 _ACEOF 7874 if ac_fn_c_try_link "$LINENO" 7875 then : 7876 eval $cacheid=yes 7877 else case e in #( 7878 e) eval $cacheid=no ;; 7879 esac 7880 fi 7881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7882 conftest$ac_exeext conftest.$ac_ext ;; 7883 esac 7884 fi 7885 7886 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888 7889 eval supported=\$$cacheid 7890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7891 printf '%s\n' "$supported" >&6; } 7892 if test "$supported" = "yes" ; then 7893 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7894 found="yes" 7895 fi 7896 fi 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 xorg_testset_save_CFLAGS="$CFLAGS" 7913 7914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7918 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7919 then : 7920 printf %s "(cached) " >&6 7921 else case e in #( 7922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923 /* end confdefs.h. */ 7924 int i; 7925 _ACEOF 7926 if ac_fn_c_try_compile "$LINENO" 7927 then : 7928 xorg_cv_cc_flag_unknown_warning_option=yes 7929 else case e in #( 7930 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7931 esac 7932 fi 7933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7934 esac 7935 fi 7936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7937 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940 fi 7941 7942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7945 fi 7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7948 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7949 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7950 then : 7951 printf %s "(cached) " >&6 7952 else case e in #( 7953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7954 /* end confdefs.h. */ 7955 int i; 7956 _ACEOF 7957 if ac_fn_c_try_compile "$LINENO" 7958 then : 7959 xorg_cv_cc_flag_unused_command_line_argument=yes 7960 else case e in #( 7961 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7962 esac 7963 fi 7964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7965 esac 7966 fi 7967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7968 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971 fi 7972 7973 found="no" 7974 7975 if test $found = "no" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7982 fi 7983 7984 CFLAGS="$CFLAGS -Werror=init-self" 7985 7986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7987 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7988 cacheid=xorg_cv_cc_flag__Werror_init_self 7989 if eval test \${$cacheid+y} 7990 then : 7991 printf %s "(cached) " >&6 7992 else case e in #( 7993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994 /* end confdefs.h. */ 7995 int i; 7996 int 7997 main (void) 7998 { 7999 8000 ; 8001 return 0; 8002 } 8003 _ACEOF 8004 if ac_fn_c_try_link "$LINENO" 8005 then : 8006 eval $cacheid=yes 8007 else case e in #( 8008 e) eval $cacheid=no ;; 8009 esac 8010 fi 8011 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8012 conftest$ac_exeext conftest.$ac_ext ;; 8013 esac 8014 fi 8015 8016 8017 CFLAGS="$xorg_testset_save_CFLAGS" 8018 8019 eval supported=\$$cacheid 8020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8021 printf '%s\n' "$supported" >&6; } 8022 if test "$supported" = "yes" ; then 8023 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8024 found="yes" 8025 fi 8026 fi 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 xorg_testset_save_CFLAGS="$CFLAGS" 8043 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8048 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8049 then : 8050 printf %s "(cached) " >&6 8051 else case e in #( 8052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053 /* end confdefs.h. */ 8054 int i; 8055 _ACEOF 8056 if ac_fn_c_try_compile "$LINENO" 8057 then : 8058 xorg_cv_cc_flag_unknown_warning_option=yes 8059 else case e in #( 8060 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8061 esac 8062 fi 8063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8064 esac 8065 fi 8066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8067 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070 fi 8071 8072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 fi 8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8080 then : 8081 printf %s "(cached) " >&6 8082 else case e in #( 8083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084 /* end confdefs.h. */ 8085 int i; 8086 _ACEOF 8087 if ac_fn_c_try_compile "$LINENO" 8088 then : 8089 xorg_cv_cc_flag_unused_command_line_argument=yes 8090 else case e in #( 8091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8092 esac 8093 fi 8094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8095 esac 8096 fi 8097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8098 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101 fi 8102 8103 found="no" 8104 8105 if test $found = "no" ; then 8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8108 fi 8109 8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8112 fi 8113 8114 CFLAGS="$CFLAGS -Werror=main" 8115 8116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8117 printf %s "checking if $CC supports -Werror=main... " >&6; } 8118 cacheid=xorg_cv_cc_flag__Werror_main 8119 if eval test \${$cacheid+y} 8120 then : 8121 printf %s "(cached) " >&6 8122 else case e in #( 8123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124 /* end confdefs.h. */ 8125 int i; 8126 int 8127 main (void) 8128 { 8129 8130 ; 8131 return 0; 8132 } 8133 _ACEOF 8134 if ac_fn_c_try_link "$LINENO" 8135 then : 8136 eval $cacheid=yes 8137 else case e in #( 8138 e) eval $cacheid=no ;; 8139 esac 8140 fi 8141 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8142 conftest$ac_exeext conftest.$ac_ext ;; 8143 esac 8144 fi 8145 8146 8147 CFLAGS="$xorg_testset_save_CFLAGS" 8148 8149 eval supported=\$$cacheid 8150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8151 printf '%s\n' "$supported" >&6; } 8152 if test "$supported" = "yes" ; then 8153 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8154 found="yes" 8155 fi 8156 fi 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 xorg_testset_save_CFLAGS="$CFLAGS" 8173 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8178 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8179 then : 8180 printf %s "(cached) " >&6 8181 else case e in #( 8182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183 /* end confdefs.h. */ 8184 int i; 8185 _ACEOF 8186 if ac_fn_c_try_compile "$LINENO" 8187 then : 8188 xorg_cv_cc_flag_unknown_warning_option=yes 8189 else case e in #( 8190 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8191 esac 8192 fi 8193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8194 esac 8195 fi 8196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8197 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8199 CFLAGS="$xorg_testset_save_CFLAGS" 8200 fi 8201 8202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 fi 8206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8208 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8209 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8210 then : 8211 printf %s "(cached) " >&6 8212 else case e in #( 8213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214 /* end confdefs.h. */ 8215 int i; 8216 _ACEOF 8217 if ac_fn_c_try_compile "$LINENO" 8218 then : 8219 xorg_cv_cc_flag_unused_command_line_argument=yes 8220 else case e in #( 8221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8222 esac 8223 fi 8224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8225 esac 8226 fi 8227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8228 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8230 CFLAGS="$xorg_testset_save_CFLAGS" 8231 fi 8232 8233 found="no" 8234 8235 if test $found = "no" ; then 8236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 fi 8239 8240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8242 fi 8243 8244 CFLAGS="$CFLAGS -Werror=missing-braces" 8245 8246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8247 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8248 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8249 if eval test \${$cacheid+y} 8250 then : 8251 printf %s "(cached) " >&6 8252 else case e in #( 8253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254 /* end confdefs.h. */ 8255 int i; 8256 int 8257 main (void) 8258 { 8259 8260 ; 8261 return 0; 8262 } 8263 _ACEOF 8264 if ac_fn_c_try_link "$LINENO" 8265 then : 8266 eval $cacheid=yes 8267 else case e in #( 8268 e) eval $cacheid=no ;; 8269 esac 8270 fi 8271 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8272 conftest$ac_exeext conftest.$ac_ext ;; 8273 esac 8274 fi 8275 8276 8277 CFLAGS="$xorg_testset_save_CFLAGS" 8278 8279 eval supported=\$$cacheid 8280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8281 printf '%s\n' "$supported" >&6; } 8282 if test "$supported" = "yes" ; then 8283 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8284 found="yes" 8285 fi 8286 fi 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 xorg_testset_save_CFLAGS="$CFLAGS" 8303 8304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8308 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8309 then : 8310 printf %s "(cached) " >&6 8311 else case e in #( 8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313 /* end confdefs.h. */ 8314 int i; 8315 _ACEOF 8316 if ac_fn_c_try_compile "$LINENO" 8317 then : 8318 xorg_cv_cc_flag_unknown_warning_option=yes 8319 else case e in #( 8320 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8321 esac 8322 fi 8323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8324 esac 8325 fi 8326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8327 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330 fi 8331 8332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 fi 8336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8340 then : 8341 printf %s "(cached) " >&6 8342 else case e in #( 8343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8344 /* end confdefs.h. */ 8345 int i; 8346 _ACEOF 8347 if ac_fn_c_try_compile "$LINENO" 8348 then : 8349 xorg_cv_cc_flag_unused_command_line_argument=yes 8350 else case e in #( 8351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8352 esac 8353 fi 8354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8355 esac 8356 fi 8357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8358 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361 fi 8362 8363 found="no" 8364 8365 if test $found = "no" ; then 8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8368 fi 8369 8370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8372 fi 8373 8374 CFLAGS="$CFLAGS -Werror=sequence-point" 8375 8376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8377 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8378 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8379 if eval test \${$cacheid+y} 8380 then : 8381 printf %s "(cached) " >&6 8382 else case e in #( 8383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8384 /* end confdefs.h. */ 8385 int i; 8386 int 8387 main (void) 8388 { 8389 8390 ; 8391 return 0; 8392 } 8393 _ACEOF 8394 if ac_fn_c_try_link "$LINENO" 8395 then : 8396 eval $cacheid=yes 8397 else case e in #( 8398 e) eval $cacheid=no ;; 8399 esac 8400 fi 8401 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8402 conftest$ac_exeext conftest.$ac_ext ;; 8403 esac 8404 fi 8405 8406 8407 CFLAGS="$xorg_testset_save_CFLAGS" 8408 8409 eval supported=\$$cacheid 8410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8411 printf '%s\n' "$supported" >&6; } 8412 if test "$supported" = "yes" ; then 8413 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8414 found="yes" 8415 fi 8416 fi 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 xorg_testset_save_CFLAGS="$CFLAGS" 8433 8434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8438 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8439 then : 8440 printf %s "(cached) " >&6 8441 else case e in #( 8442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8443 /* end confdefs.h. */ 8444 int i; 8445 _ACEOF 8446 if ac_fn_c_try_compile "$LINENO" 8447 then : 8448 xorg_cv_cc_flag_unknown_warning_option=yes 8449 else case e in #( 8450 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8451 esac 8452 fi 8453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8454 esac 8455 fi 8456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8457 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460 fi 8461 8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8470 then : 8471 printf %s "(cached) " >&6 8472 else case e in #( 8473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474 /* end confdefs.h. */ 8475 int i; 8476 _ACEOF 8477 if ac_fn_c_try_compile "$LINENO" 8478 then : 8479 xorg_cv_cc_flag_unused_command_line_argument=yes 8480 else case e in #( 8481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8482 esac 8483 fi 8484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8485 esac 8486 fi 8487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8488 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8490 CFLAGS="$xorg_testset_save_CFLAGS" 8491 fi 8492 8493 found="no" 8494 8495 if test $found = "no" ; then 8496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 fi 8499 8500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8502 fi 8503 8504 CFLAGS="$CFLAGS -Werror=return-type" 8505 8506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8507 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8508 cacheid=xorg_cv_cc_flag__Werror_return_type 8509 if eval test \${$cacheid+y} 8510 then : 8511 printf %s "(cached) " >&6 8512 else case e in #( 8513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514 /* end confdefs.h. */ 8515 int i; 8516 int 8517 main (void) 8518 { 8519 8520 ; 8521 return 0; 8522 } 8523 _ACEOF 8524 if ac_fn_c_try_link "$LINENO" 8525 then : 8526 eval $cacheid=yes 8527 else case e in #( 8528 e) eval $cacheid=no ;; 8529 esac 8530 fi 8531 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8532 conftest$ac_exeext conftest.$ac_ext ;; 8533 esac 8534 fi 8535 8536 8537 CFLAGS="$xorg_testset_save_CFLAGS" 8538 8539 eval supported=\$$cacheid 8540 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8541 printf '%s\n' "$supported" >&6; } 8542 if test "$supported" = "yes" ; then 8543 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8544 found="yes" 8545 fi 8546 fi 8547 8548 if test $found = "no" ; then 8549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8551 fi 8552 8553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8555 fi 8556 8557 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8558 8559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8560 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8561 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8562 if eval test \${$cacheid+y} 8563 then : 8564 printf %s "(cached) " >&6 8565 else case e in #( 8566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567 /* end confdefs.h. */ 8568 int i; 8569 int 8570 main (void) 8571 { 8572 8573 ; 8574 return 0; 8575 } 8576 _ACEOF 8577 if ac_fn_c_try_link "$LINENO" 8578 then : 8579 eval $cacheid=yes 8580 else case e in #( 8581 e) eval $cacheid=no ;; 8582 esac 8583 fi 8584 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8585 conftest$ac_exeext conftest.$ac_ext ;; 8586 esac 8587 fi 8588 8589 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591 8592 eval supported=\$$cacheid 8593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8594 printf '%s\n' "$supported" >&6; } 8595 if test "$supported" = "yes" ; then 8596 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8597 found="yes" 8598 fi 8599 fi 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 xorg_testset_save_CFLAGS="$CFLAGS" 8616 8617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8620 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8621 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8622 then : 8623 printf %s "(cached) " >&6 8624 else case e in #( 8625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626 /* end confdefs.h. */ 8627 int i; 8628 _ACEOF 8629 if ac_fn_c_try_compile "$LINENO" 8630 then : 8631 xorg_cv_cc_flag_unknown_warning_option=yes 8632 else case e in #( 8633 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8634 esac 8635 fi 8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8637 esac 8638 fi 8639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8640 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8642 CFLAGS="$xorg_testset_save_CFLAGS" 8643 fi 8644 8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8648 fi 8649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8651 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8652 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8653 then : 8654 printf %s "(cached) " >&6 8655 else case e in #( 8656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657 /* end confdefs.h. */ 8658 int i; 8659 _ACEOF 8660 if ac_fn_c_try_compile "$LINENO" 8661 then : 8662 xorg_cv_cc_flag_unused_command_line_argument=yes 8663 else case e in #( 8664 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8665 esac 8666 fi 8667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8668 esac 8669 fi 8670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8671 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674 fi 8675 8676 found="no" 8677 8678 if test $found = "no" ; then 8679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 fi 8682 8683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8685 fi 8686 8687 CFLAGS="$CFLAGS -Werror=trigraphs" 8688 8689 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8690 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8691 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8692 if eval test \${$cacheid+y} 8693 then : 8694 printf %s "(cached) " >&6 8695 else case e in #( 8696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697 /* end confdefs.h. */ 8698 int i; 8699 int 8700 main (void) 8701 { 8702 8703 ; 8704 return 0; 8705 } 8706 _ACEOF 8707 if ac_fn_c_try_link "$LINENO" 8708 then : 8709 eval $cacheid=yes 8710 else case e in #( 8711 e) eval $cacheid=no ;; 8712 esac 8713 fi 8714 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8715 conftest$ac_exeext conftest.$ac_ext ;; 8716 esac 8717 fi 8718 8719 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721 8722 eval supported=\$$cacheid 8723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8724 printf '%s\n' "$supported" >&6; } 8725 if test "$supported" = "yes" ; then 8726 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8727 found="yes" 8728 fi 8729 fi 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 xorg_testset_save_CFLAGS="$CFLAGS" 8746 8747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8751 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8752 then : 8753 printf %s "(cached) " >&6 8754 else case e in #( 8755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756 /* end confdefs.h. */ 8757 int i; 8758 _ACEOF 8759 if ac_fn_c_try_compile "$LINENO" 8760 then : 8761 xorg_cv_cc_flag_unknown_warning_option=yes 8762 else case e in #( 8763 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8764 esac 8765 fi 8766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8767 esac 8768 fi 8769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8770 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8772 CFLAGS="$xorg_testset_save_CFLAGS" 8773 fi 8774 8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8778 fi 8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8783 then : 8784 printf %s "(cached) " >&6 8785 else case e in #( 8786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8787 /* end confdefs.h. */ 8788 int i; 8789 _ACEOF 8790 if ac_fn_c_try_compile "$LINENO" 8791 then : 8792 xorg_cv_cc_flag_unused_command_line_argument=yes 8793 else case e in #( 8794 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8795 esac 8796 fi 8797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8798 esac 8799 fi 8800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8801 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8803 CFLAGS="$xorg_testset_save_CFLAGS" 8804 fi 8805 8806 found="no" 8807 8808 if test $found = "no" ; then 8809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8811 fi 8812 8813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8815 fi 8816 8817 CFLAGS="$CFLAGS -Werror=array-bounds" 8818 8819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8820 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8821 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8822 if eval test \${$cacheid+y} 8823 then : 8824 printf %s "(cached) " >&6 8825 else case e in #( 8826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827 /* end confdefs.h. */ 8828 int i; 8829 int 8830 main (void) 8831 { 8832 8833 ; 8834 return 0; 8835 } 8836 _ACEOF 8837 if ac_fn_c_try_link "$LINENO" 8838 then : 8839 eval $cacheid=yes 8840 else case e in #( 8841 e) eval $cacheid=no ;; 8842 esac 8843 fi 8844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8845 conftest$ac_exeext conftest.$ac_ext ;; 8846 esac 8847 fi 8848 8849 8850 CFLAGS="$xorg_testset_save_CFLAGS" 8851 8852 eval supported=\$$cacheid 8853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8854 printf '%s\n' "$supported" >&6; } 8855 if test "$supported" = "yes" ; then 8856 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8857 found="yes" 8858 fi 8859 fi 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 xorg_testset_save_CFLAGS="$CFLAGS" 8876 8877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8881 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8882 then : 8883 printf %s "(cached) " >&6 8884 else case e in #( 8885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886 /* end confdefs.h. */ 8887 int i; 8888 _ACEOF 8889 if ac_fn_c_try_compile "$LINENO" 8890 then : 8891 xorg_cv_cc_flag_unknown_warning_option=yes 8892 else case e in #( 8893 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8894 esac 8895 fi 8896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8897 esac 8898 fi 8899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8900 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903 fi 8904 8905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8908 fi 8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8913 then : 8914 printf %s "(cached) " >&6 8915 else case e in #( 8916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917 /* end confdefs.h. */ 8918 int i; 8919 _ACEOF 8920 if ac_fn_c_try_compile "$LINENO" 8921 then : 8922 xorg_cv_cc_flag_unused_command_line_argument=yes 8923 else case e in #( 8924 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8925 esac 8926 fi 8927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8928 esac 8929 fi 8930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8931 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934 fi 8935 8936 found="no" 8937 8938 if test $found = "no" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8945 fi 8946 8947 CFLAGS="$CFLAGS -Werror=write-strings" 8948 8949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8950 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8951 cacheid=xorg_cv_cc_flag__Werror_write_strings 8952 if eval test \${$cacheid+y} 8953 then : 8954 printf %s "(cached) " >&6 8955 else case e in #( 8956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957 /* end confdefs.h. */ 8958 int i; 8959 int 8960 main (void) 8961 { 8962 8963 ; 8964 return 0; 8965 } 8966 _ACEOF 8967 if ac_fn_c_try_link "$LINENO" 8968 then : 8969 eval $cacheid=yes 8970 else case e in #( 8971 e) eval $cacheid=no ;; 8972 esac 8973 fi 8974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8975 conftest$ac_exeext conftest.$ac_ext ;; 8976 esac 8977 fi 8978 8979 8980 CFLAGS="$xorg_testset_save_CFLAGS" 8981 8982 eval supported=\$$cacheid 8983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8984 printf '%s\n' "$supported" >&6; } 8985 if test "$supported" = "yes" ; then 8986 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8987 found="yes" 8988 fi 8989 fi 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 xorg_testset_save_CFLAGS="$CFLAGS" 9006 9007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9011 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9012 then : 9013 printf %s "(cached) " >&6 9014 else case e in #( 9015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016 /* end confdefs.h. */ 9017 int i; 9018 _ACEOF 9019 if ac_fn_c_try_compile "$LINENO" 9020 then : 9021 xorg_cv_cc_flag_unknown_warning_option=yes 9022 else case e in #( 9023 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9024 esac 9025 fi 9026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9027 esac 9028 fi 9029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9030 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033 fi 9034 9035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9043 then : 9044 printf %s "(cached) " >&6 9045 else case e in #( 9046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047 /* end confdefs.h. */ 9048 int i; 9049 _ACEOF 9050 if ac_fn_c_try_compile "$LINENO" 9051 then : 9052 xorg_cv_cc_flag_unused_command_line_argument=yes 9053 else case e in #( 9054 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9055 esac 9056 fi 9057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9058 esac 9059 fi 9060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9061 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064 fi 9065 9066 found="no" 9067 9068 if test $found = "no" ; then 9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 fi 9072 9073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 fi 9076 9077 CFLAGS="$CFLAGS -Werror=address" 9078 9079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9080 printf %s "checking if $CC supports -Werror=address... " >&6; } 9081 cacheid=xorg_cv_cc_flag__Werror_address 9082 if eval test \${$cacheid+y} 9083 then : 9084 printf %s "(cached) " >&6 9085 else case e in #( 9086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087 /* end confdefs.h. */ 9088 int i; 9089 int 9090 main (void) 9091 { 9092 9093 ; 9094 return 0; 9095 } 9096 _ACEOF 9097 if ac_fn_c_try_link "$LINENO" 9098 then : 9099 eval $cacheid=yes 9100 else case e in #( 9101 e) eval $cacheid=no ;; 9102 esac 9103 fi 9104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9105 conftest$ac_exeext conftest.$ac_ext ;; 9106 esac 9107 fi 9108 9109 9110 CFLAGS="$xorg_testset_save_CFLAGS" 9111 9112 eval supported=\$$cacheid 9113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9114 printf '%s\n' "$supported" >&6; } 9115 if test "$supported" = "yes" ; then 9116 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9117 found="yes" 9118 fi 9119 fi 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 xorg_testset_save_CFLAGS="$CFLAGS" 9136 9137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9141 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9142 then : 9143 printf %s "(cached) " >&6 9144 else case e in #( 9145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9146 /* end confdefs.h. */ 9147 int i; 9148 _ACEOF 9149 if ac_fn_c_try_compile "$LINENO" 9150 then : 9151 xorg_cv_cc_flag_unknown_warning_option=yes 9152 else case e in #( 9153 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9154 esac 9155 fi 9156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9157 esac 9158 fi 9159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9160 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9162 CFLAGS="$xorg_testset_save_CFLAGS" 9163 fi 9164 9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9168 fi 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9173 then : 9174 printf %s "(cached) " >&6 9175 else case e in #( 9176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177 /* end confdefs.h. */ 9178 int i; 9179 _ACEOF 9180 if ac_fn_c_try_compile "$LINENO" 9181 then : 9182 xorg_cv_cc_flag_unused_command_line_argument=yes 9183 else case e in #( 9184 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9185 esac 9186 fi 9187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9188 esac 9189 fi 9190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9191 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9193 CFLAGS="$xorg_testset_save_CFLAGS" 9194 fi 9195 9196 found="no" 9197 9198 if test $found = "no" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 fi 9206 9207 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9208 9209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9210 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9211 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9212 if eval test \${$cacheid+y} 9213 then : 9214 printf %s "(cached) " >&6 9215 else case e in #( 9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217 /* end confdefs.h. */ 9218 int i; 9219 int 9220 main (void) 9221 { 9222 9223 ; 9224 return 0; 9225 } 9226 _ACEOF 9227 if ac_fn_c_try_link "$LINENO" 9228 then : 9229 eval $cacheid=yes 9230 else case e in #( 9231 e) eval $cacheid=no ;; 9232 esac 9233 fi 9234 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9235 conftest$ac_exeext conftest.$ac_ext ;; 9236 esac 9237 fi 9238 9239 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241 9242 eval supported=\$$cacheid 9243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9244 printf '%s\n' "$supported" >&6; } 9245 if test "$supported" = "yes" ; then 9246 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9247 found="yes" 9248 fi 9249 fi 9250 9251 if test $found = "no" ; then 9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254 fi 9255 9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9258 fi 9259 9260 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9261 9262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9263 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9264 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9265 if eval test \${$cacheid+y} 9266 then : 9267 printf %s "(cached) " >&6 9268 else case e in #( 9269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270 /* end confdefs.h. */ 9271 int i; 9272 int 9273 main (void) 9274 { 9275 9276 ; 9277 return 0; 9278 } 9279 _ACEOF 9280 if ac_fn_c_try_link "$LINENO" 9281 then : 9282 eval $cacheid=yes 9283 else case e in #( 9284 e) eval $cacheid=no ;; 9285 esac 9286 fi 9287 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9288 conftest$ac_exeext conftest.$ac_ext ;; 9289 esac 9290 fi 9291 9292 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294 9295 eval supported=\$$cacheid 9296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9297 printf '%s\n' "$supported" >&6; } 9298 if test "$supported" = "yes" ; then 9299 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9300 found="yes" 9301 fi 9302 fi 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 xorg_testset_save_CFLAGS="$CFLAGS" 9319 9320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9324 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9325 then : 9326 printf %s "(cached) " >&6 9327 else case e in #( 9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329 /* end confdefs.h. */ 9330 int i; 9331 _ACEOF 9332 if ac_fn_c_try_compile "$LINENO" 9333 then : 9334 xorg_cv_cc_flag_unknown_warning_option=yes 9335 else case e in #( 9336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9337 esac 9338 fi 9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9340 esac 9341 fi 9342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9343 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346 fi 9347 9348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9356 then : 9357 printf %s "(cached) " >&6 9358 else case e in #( 9359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360 /* end confdefs.h. */ 9361 int i; 9362 _ACEOF 9363 if ac_fn_c_try_compile "$LINENO" 9364 then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366 else case e in #( 9367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9368 esac 9369 fi 9370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9371 esac 9372 fi 9373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9374 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9376 CFLAGS="$xorg_testset_save_CFLAGS" 9377 fi 9378 9379 found="no" 9380 9381 if test $found = "no" ; then 9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9384 fi 9385 9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9388 fi 9389 9390 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9391 9392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9393 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9394 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9395 if eval test \${$cacheid+y} 9396 then : 9397 printf %s "(cached) " >&6 9398 else case e in #( 9399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400 /* end confdefs.h. */ 9401 int i; 9402 int 9403 main (void) 9404 { 9405 9406 ; 9407 return 0; 9408 } 9409 _ACEOF 9410 if ac_fn_c_try_link "$LINENO" 9411 then : 9412 eval $cacheid=yes 9413 else case e in #( 9414 e) eval $cacheid=no ;; 9415 esac 9416 fi 9417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9418 conftest$ac_exeext conftest.$ac_ext ;; 9419 esac 9420 fi 9421 9422 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424 9425 eval supported=\$$cacheid 9426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9427 printf '%s\n' "$supported" >&6; } 9428 if test "$supported" = "yes" ; then 9429 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9430 found="yes" 9431 fi 9432 fi 9433 9434 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9435 else 9436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 9437 printf '%s\n' "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 xorg_testset_save_CFLAGS="$CFLAGS" 9452 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9457 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9458 then : 9459 printf %s "(cached) " >&6 9460 else case e in #( 9461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462 /* end confdefs.h. */ 9463 int i; 9464 _ACEOF 9465 if ac_fn_c_try_compile "$LINENO" 9466 then : 9467 xorg_cv_cc_flag_unknown_warning_option=yes 9468 else case e in #( 9469 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9470 esac 9471 fi 9472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9473 esac 9474 fi 9475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9476 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479 fi 9480 9481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9484 fi 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9489 then : 9490 printf %s "(cached) " >&6 9491 else case e in #( 9492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9493 /* end confdefs.h. */ 9494 int i; 9495 _ACEOF 9496 if ac_fn_c_try_compile "$LINENO" 9497 then : 9498 xorg_cv_cc_flag_unused_command_line_argument=yes 9499 else case e in #( 9500 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9501 esac 9502 fi 9503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9504 esac 9505 fi 9506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9507 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510 fi 9511 9512 found="no" 9513 9514 if test $found = "no" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 fi 9522 9523 CFLAGS="$CFLAGS -Wimplicit" 9524 9525 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9526 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9527 cacheid=xorg_cv_cc_flag__Wimplicit 9528 if eval test \${$cacheid+y} 9529 then : 9530 printf %s "(cached) " >&6 9531 else case e in #( 9532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533 /* end confdefs.h. */ 9534 int i; 9535 int 9536 main (void) 9537 { 9538 9539 ; 9540 return 0; 9541 } 9542 _ACEOF 9543 if ac_fn_c_try_link "$LINENO" 9544 then : 9545 eval $cacheid=yes 9546 else case e in #( 9547 e) eval $cacheid=no ;; 9548 esac 9549 fi 9550 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9551 conftest$ac_exeext conftest.$ac_ext ;; 9552 esac 9553 fi 9554 9555 9556 CFLAGS="$xorg_testset_save_CFLAGS" 9557 9558 eval supported=\$$cacheid 9559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9560 printf '%s\n' "$supported" >&6; } 9561 if test "$supported" = "yes" ; then 9562 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9563 found="yes" 9564 fi 9565 fi 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 xorg_testset_save_CFLAGS="$CFLAGS" 9582 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9587 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9588 then : 9589 printf %s "(cached) " >&6 9590 else case e in #( 9591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9592 /* end confdefs.h. */ 9593 int i; 9594 _ACEOF 9595 if ac_fn_c_try_compile "$LINENO" 9596 then : 9597 xorg_cv_cc_flag_unknown_warning_option=yes 9598 else case e in #( 9599 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9600 esac 9601 fi 9602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9603 esac 9604 fi 9605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9606 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609 fi 9610 9611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9614 fi 9615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9619 then : 9620 printf %s "(cached) " >&6 9621 else case e in #( 9622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623 /* end confdefs.h. */ 9624 int i; 9625 _ACEOF 9626 if ac_fn_c_try_compile "$LINENO" 9627 then : 9628 xorg_cv_cc_flag_unused_command_line_argument=yes 9629 else case e in #( 9630 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9631 esac 9632 fi 9633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9634 esac 9635 fi 9636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9637 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9639 CFLAGS="$xorg_testset_save_CFLAGS" 9640 fi 9641 9642 found="no" 9643 9644 if test $found = "no" ; then 9645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9647 fi 9648 9649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9651 fi 9652 9653 CFLAGS="$CFLAGS -Wnonnull" 9654 9655 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9656 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9657 cacheid=xorg_cv_cc_flag__Wnonnull 9658 if eval test \${$cacheid+y} 9659 then : 9660 printf %s "(cached) " >&6 9661 else case e in #( 9662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663 /* end confdefs.h. */ 9664 int i; 9665 int 9666 main (void) 9667 { 9668 9669 ; 9670 return 0; 9671 } 9672 _ACEOF 9673 if ac_fn_c_try_link "$LINENO" 9674 then : 9675 eval $cacheid=yes 9676 else case e in #( 9677 e) eval $cacheid=no ;; 9678 esac 9679 fi 9680 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9681 conftest$ac_exeext conftest.$ac_ext ;; 9682 esac 9683 fi 9684 9685 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687 9688 eval supported=\$$cacheid 9689 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9690 printf '%s\n' "$supported" >&6; } 9691 if test "$supported" = "yes" ; then 9692 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9693 found="yes" 9694 fi 9695 fi 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 xorg_testset_save_CFLAGS="$CFLAGS" 9712 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9717 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9718 then : 9719 printf %s "(cached) " >&6 9720 else case e in #( 9721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722 /* end confdefs.h. */ 9723 int i; 9724 _ACEOF 9725 if ac_fn_c_try_compile "$LINENO" 9726 then : 9727 xorg_cv_cc_flag_unknown_warning_option=yes 9728 else case e in #( 9729 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9730 esac 9731 fi 9732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9733 esac 9734 fi 9735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9736 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9738 CFLAGS="$xorg_testset_save_CFLAGS" 9739 fi 9740 9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 fi 9745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9747 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9748 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9749 then : 9750 printf %s "(cached) " >&6 9751 else case e in #( 9752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753 /* end confdefs.h. */ 9754 int i; 9755 _ACEOF 9756 if ac_fn_c_try_compile "$LINENO" 9757 then : 9758 xorg_cv_cc_flag_unused_command_line_argument=yes 9759 else case e in #( 9760 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9761 esac 9762 fi 9763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9764 esac 9765 fi 9766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9767 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9769 CFLAGS="$xorg_testset_save_CFLAGS" 9770 fi 9771 9772 found="no" 9773 9774 if test $found = "no" ; then 9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 fi 9778 9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9781 fi 9782 9783 CFLAGS="$CFLAGS -Winit-self" 9784 9785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9786 printf %s "checking if $CC supports -Winit-self... " >&6; } 9787 cacheid=xorg_cv_cc_flag__Winit_self 9788 if eval test \${$cacheid+y} 9789 then : 9790 printf %s "(cached) " >&6 9791 else case e in #( 9792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793 /* end confdefs.h. */ 9794 int i; 9795 int 9796 main (void) 9797 { 9798 9799 ; 9800 return 0; 9801 } 9802 _ACEOF 9803 if ac_fn_c_try_link "$LINENO" 9804 then : 9805 eval $cacheid=yes 9806 else case e in #( 9807 e) eval $cacheid=no ;; 9808 esac 9809 fi 9810 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9811 conftest$ac_exeext conftest.$ac_ext ;; 9812 esac 9813 fi 9814 9815 9816 CFLAGS="$xorg_testset_save_CFLAGS" 9817 9818 eval supported=\$$cacheid 9819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9820 printf '%s\n' "$supported" >&6; } 9821 if test "$supported" = "yes" ; then 9822 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9823 found="yes" 9824 fi 9825 fi 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 xorg_testset_save_CFLAGS="$CFLAGS" 9842 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9847 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9848 then : 9849 printf %s "(cached) " >&6 9850 else case e in #( 9851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852 /* end confdefs.h. */ 9853 int i; 9854 _ACEOF 9855 if ac_fn_c_try_compile "$LINENO" 9856 then : 9857 xorg_cv_cc_flag_unknown_warning_option=yes 9858 else case e in #( 9859 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9860 esac 9861 fi 9862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9863 esac 9864 fi 9865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9866 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9868 CFLAGS="$xorg_testset_save_CFLAGS" 9869 fi 9870 9871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9874 fi 9875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9879 then : 9880 printf %s "(cached) " >&6 9881 else case e in #( 9882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883 /* end confdefs.h. */ 9884 int i; 9885 _ACEOF 9886 if ac_fn_c_try_compile "$LINENO" 9887 then : 9888 xorg_cv_cc_flag_unused_command_line_argument=yes 9889 else case e in #( 9890 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9891 esac 9892 fi 9893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9894 esac 9895 fi 9896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9897 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9899 CFLAGS="$xorg_testset_save_CFLAGS" 9900 fi 9901 9902 found="no" 9903 9904 if test $found = "no" ; then 9905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9907 fi 9908 9909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9911 fi 9912 9913 CFLAGS="$CFLAGS -Wmain" 9914 9915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9916 printf %s "checking if $CC supports -Wmain... " >&6; } 9917 cacheid=xorg_cv_cc_flag__Wmain 9918 if eval test \${$cacheid+y} 9919 then : 9920 printf %s "(cached) " >&6 9921 else case e in #( 9922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923 /* end confdefs.h. */ 9924 int i; 9925 int 9926 main (void) 9927 { 9928 9929 ; 9930 return 0; 9931 } 9932 _ACEOF 9933 if ac_fn_c_try_link "$LINENO" 9934 then : 9935 eval $cacheid=yes 9936 else case e in #( 9937 e) eval $cacheid=no ;; 9938 esac 9939 fi 9940 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9941 conftest$ac_exeext conftest.$ac_ext ;; 9942 esac 9943 fi 9944 9945 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947 9948 eval supported=\$$cacheid 9949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9950 printf '%s\n' "$supported" >&6; } 9951 if test "$supported" = "yes" ; then 9952 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9953 found="yes" 9954 fi 9955 fi 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 xorg_testset_save_CFLAGS="$CFLAGS" 9972 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9976 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9977 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9978 then : 9979 printf %s "(cached) " >&6 9980 else case e in #( 9981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982 /* end confdefs.h. */ 9983 int i; 9984 _ACEOF 9985 if ac_fn_c_try_compile "$LINENO" 9986 then : 9987 xorg_cv_cc_flag_unknown_warning_option=yes 9988 else case e in #( 9989 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9990 esac 9991 fi 9992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9993 esac 9994 fi 9995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9996 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999 fi 10000 10001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10004 fi 10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10007 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10008 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10009 then : 10010 printf %s "(cached) " >&6 10011 else case e in #( 10012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10013 /* end confdefs.h. */ 10014 int i; 10015 _ACEOF 10016 if ac_fn_c_try_compile "$LINENO" 10017 then : 10018 xorg_cv_cc_flag_unused_command_line_argument=yes 10019 else case e in #( 10020 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10021 esac 10022 fi 10023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10024 esac 10025 fi 10026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10027 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10029 CFLAGS="$xorg_testset_save_CFLAGS" 10030 fi 10031 10032 found="no" 10033 10034 if test $found = "no" ; then 10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10037 fi 10038 10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10041 fi 10042 10043 CFLAGS="$CFLAGS -Wmissing-braces" 10044 10045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10046 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10047 cacheid=xorg_cv_cc_flag__Wmissing_braces 10048 if eval test \${$cacheid+y} 10049 then : 10050 printf %s "(cached) " >&6 10051 else case e in #( 10052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10053 /* end confdefs.h. */ 10054 int i; 10055 int 10056 main (void) 10057 { 10058 10059 ; 10060 return 0; 10061 } 10062 _ACEOF 10063 if ac_fn_c_try_link "$LINENO" 10064 then : 10065 eval $cacheid=yes 10066 else case e in #( 10067 e) eval $cacheid=no ;; 10068 esac 10069 fi 10070 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10071 conftest$ac_exeext conftest.$ac_ext ;; 10072 esac 10073 fi 10074 10075 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077 10078 eval supported=\$$cacheid 10079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10080 printf '%s\n' "$supported" >&6; } 10081 if test "$supported" = "yes" ; then 10082 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10083 found="yes" 10084 fi 10085 fi 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 xorg_testset_save_CFLAGS="$CFLAGS" 10102 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10107 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10108 then : 10109 printf %s "(cached) " >&6 10110 else case e in #( 10111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112 /* end confdefs.h. */ 10113 int i; 10114 _ACEOF 10115 if ac_fn_c_try_compile "$LINENO" 10116 then : 10117 xorg_cv_cc_flag_unknown_warning_option=yes 10118 else case e in #( 10119 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10120 esac 10121 fi 10122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10123 esac 10124 fi 10125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10126 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10128 CFLAGS="$xorg_testset_save_CFLAGS" 10129 fi 10130 10131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10134 fi 10135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10139 then : 10140 printf %s "(cached) " >&6 10141 else case e in #( 10142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143 /* end confdefs.h. */ 10144 int i; 10145 _ACEOF 10146 if ac_fn_c_try_compile "$LINENO" 10147 then : 10148 xorg_cv_cc_flag_unused_command_line_argument=yes 10149 else case e in #( 10150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10151 esac 10152 fi 10153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10154 esac 10155 fi 10156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10157 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10159 CFLAGS="$xorg_testset_save_CFLAGS" 10160 fi 10161 10162 found="no" 10163 10164 if test $found = "no" ; then 10165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10167 fi 10168 10169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10171 fi 10172 10173 CFLAGS="$CFLAGS -Wsequence-point" 10174 10175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10176 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10177 cacheid=xorg_cv_cc_flag__Wsequence_point 10178 if eval test \${$cacheid+y} 10179 then : 10180 printf %s "(cached) " >&6 10181 else case e in #( 10182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183 /* end confdefs.h. */ 10184 int i; 10185 int 10186 main (void) 10187 { 10188 10189 ; 10190 return 0; 10191 } 10192 _ACEOF 10193 if ac_fn_c_try_link "$LINENO" 10194 then : 10195 eval $cacheid=yes 10196 else case e in #( 10197 e) eval $cacheid=no ;; 10198 esac 10199 fi 10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10201 conftest$ac_exeext conftest.$ac_ext ;; 10202 esac 10203 fi 10204 10205 10206 CFLAGS="$xorg_testset_save_CFLAGS" 10207 10208 eval supported=\$$cacheid 10209 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10210 printf '%s\n' "$supported" >&6; } 10211 if test "$supported" = "yes" ; then 10212 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10213 found="yes" 10214 fi 10215 fi 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 xorg_testset_save_CFLAGS="$CFLAGS" 10232 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10237 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10238 then : 10239 printf %s "(cached) " >&6 10240 else case e in #( 10241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10242 /* end confdefs.h. */ 10243 int i; 10244 _ACEOF 10245 if ac_fn_c_try_compile "$LINENO" 10246 then : 10247 xorg_cv_cc_flag_unknown_warning_option=yes 10248 else case e in #( 10249 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10250 esac 10251 fi 10252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10253 esac 10254 fi 10255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10256 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 fi 10260 10261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10264 fi 10265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10269 then : 10270 printf %s "(cached) " >&6 10271 else case e in #( 10272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273 /* end confdefs.h. */ 10274 int i; 10275 _ACEOF 10276 if ac_fn_c_try_compile "$LINENO" 10277 then : 10278 xorg_cv_cc_flag_unused_command_line_argument=yes 10279 else case e in #( 10280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10281 esac 10282 fi 10283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10284 esac 10285 fi 10286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10287 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10289 CFLAGS="$xorg_testset_save_CFLAGS" 10290 fi 10291 10292 found="no" 10293 10294 if test $found = "no" ; then 10295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10297 fi 10298 10299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10301 fi 10302 10303 CFLAGS="$CFLAGS -Wreturn-type" 10304 10305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10306 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10307 cacheid=xorg_cv_cc_flag__Wreturn_type 10308 if eval test \${$cacheid+y} 10309 then : 10310 printf %s "(cached) " >&6 10311 else case e in #( 10312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313 /* end confdefs.h. */ 10314 int i; 10315 int 10316 main (void) 10317 { 10318 10319 ; 10320 return 0; 10321 } 10322 _ACEOF 10323 if ac_fn_c_try_link "$LINENO" 10324 then : 10325 eval $cacheid=yes 10326 else case e in #( 10327 e) eval $cacheid=no ;; 10328 esac 10329 fi 10330 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10331 conftest$ac_exeext conftest.$ac_ext ;; 10332 esac 10333 fi 10334 10335 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337 10338 eval supported=\$$cacheid 10339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10340 printf '%s\n' "$supported" >&6; } 10341 if test "$supported" = "yes" ; then 10342 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10343 found="yes" 10344 fi 10345 fi 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 xorg_testset_save_CFLAGS="$CFLAGS" 10362 10363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10367 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10368 then : 10369 printf %s "(cached) " >&6 10370 else case e in #( 10371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372 /* end confdefs.h. */ 10373 int i; 10374 _ACEOF 10375 if ac_fn_c_try_compile "$LINENO" 10376 then : 10377 xorg_cv_cc_flag_unknown_warning_option=yes 10378 else case e in #( 10379 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10380 esac 10381 fi 10382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10383 esac 10384 fi 10385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10386 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10388 CFLAGS="$xorg_testset_save_CFLAGS" 10389 fi 10390 10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10394 fi 10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10397 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10398 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10399 then : 10400 printf %s "(cached) " >&6 10401 else case e in #( 10402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10403 /* end confdefs.h. */ 10404 int i; 10405 _ACEOF 10406 if ac_fn_c_try_compile "$LINENO" 10407 then : 10408 xorg_cv_cc_flag_unused_command_line_argument=yes 10409 else case e in #( 10410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10411 esac 10412 fi 10413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10414 esac 10415 fi 10416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10417 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420 fi 10421 10422 found="no" 10423 10424 if test $found = "no" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10431 fi 10432 10433 CFLAGS="$CFLAGS -Wtrigraphs" 10434 10435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10436 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10437 cacheid=xorg_cv_cc_flag__Wtrigraphs 10438 if eval test \${$cacheid+y} 10439 then : 10440 printf %s "(cached) " >&6 10441 else case e in #( 10442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443 /* end confdefs.h. */ 10444 int i; 10445 int 10446 main (void) 10447 { 10448 10449 ; 10450 return 0; 10451 } 10452 _ACEOF 10453 if ac_fn_c_try_link "$LINENO" 10454 then : 10455 eval $cacheid=yes 10456 else case e in #( 10457 e) eval $cacheid=no ;; 10458 esac 10459 fi 10460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10461 conftest$ac_exeext conftest.$ac_ext ;; 10462 esac 10463 fi 10464 10465 10466 CFLAGS="$xorg_testset_save_CFLAGS" 10467 10468 eval supported=\$$cacheid 10469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10470 printf '%s\n' "$supported" >&6; } 10471 if test "$supported" = "yes" ; then 10472 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10473 found="yes" 10474 fi 10475 fi 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 xorg_testset_save_CFLAGS="$CFLAGS" 10492 10493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10496 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10497 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10498 then : 10499 printf %s "(cached) " >&6 10500 else case e in #( 10501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502 /* end confdefs.h. */ 10503 int i; 10504 _ACEOF 10505 if ac_fn_c_try_compile "$LINENO" 10506 then : 10507 xorg_cv_cc_flag_unknown_warning_option=yes 10508 else case e in #( 10509 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10510 esac 10511 fi 10512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10513 esac 10514 fi 10515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10516 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10518 CFLAGS="$xorg_testset_save_CFLAGS" 10519 fi 10520 10521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10524 fi 10525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10529 then : 10530 printf %s "(cached) " >&6 10531 else case e in #( 10532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10533 /* end confdefs.h. */ 10534 int i; 10535 _ACEOF 10536 if ac_fn_c_try_compile "$LINENO" 10537 then : 10538 xorg_cv_cc_flag_unused_command_line_argument=yes 10539 else case e in #( 10540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10541 esac 10542 fi 10543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10544 esac 10545 fi 10546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10547 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10549 CFLAGS="$xorg_testset_save_CFLAGS" 10550 fi 10551 10552 found="no" 10553 10554 if test $found = "no" ; then 10555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10557 fi 10558 10559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10561 fi 10562 10563 CFLAGS="$CFLAGS -Warray-bounds" 10564 10565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10566 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10567 cacheid=xorg_cv_cc_flag__Warray_bounds 10568 if eval test \${$cacheid+y} 10569 then : 10570 printf %s "(cached) " >&6 10571 else case e in #( 10572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573 /* end confdefs.h. */ 10574 int i; 10575 int 10576 main (void) 10577 { 10578 10579 ; 10580 return 0; 10581 } 10582 _ACEOF 10583 if ac_fn_c_try_link "$LINENO" 10584 then : 10585 eval $cacheid=yes 10586 else case e in #( 10587 e) eval $cacheid=no ;; 10588 esac 10589 fi 10590 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10591 conftest$ac_exeext conftest.$ac_ext ;; 10592 esac 10593 fi 10594 10595 10596 CFLAGS="$xorg_testset_save_CFLAGS" 10597 10598 eval supported=\$$cacheid 10599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10600 printf '%s\n' "$supported" >&6; } 10601 if test "$supported" = "yes" ; then 10602 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10603 found="yes" 10604 fi 10605 fi 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 xorg_testset_save_CFLAGS="$CFLAGS" 10622 10623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10627 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10628 then : 10629 printf %s "(cached) " >&6 10630 else case e in #( 10631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10632 /* end confdefs.h. */ 10633 int i; 10634 _ACEOF 10635 if ac_fn_c_try_compile "$LINENO" 10636 then : 10637 xorg_cv_cc_flag_unknown_warning_option=yes 10638 else case e in #( 10639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10640 esac 10641 fi 10642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10643 esac 10644 fi 10645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10646 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10648 CFLAGS="$xorg_testset_save_CFLAGS" 10649 fi 10650 10651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10654 fi 10655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10659 then : 10660 printf %s "(cached) " >&6 10661 else case e in #( 10662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663 /* end confdefs.h. */ 10664 int i; 10665 _ACEOF 10666 if ac_fn_c_try_compile "$LINENO" 10667 then : 10668 xorg_cv_cc_flag_unused_command_line_argument=yes 10669 else case e in #( 10670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10671 esac 10672 fi 10673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10674 esac 10675 fi 10676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10677 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10679 CFLAGS="$xorg_testset_save_CFLAGS" 10680 fi 10681 10682 found="no" 10683 10684 if test $found = "no" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10691 fi 10692 10693 CFLAGS="$CFLAGS -Wwrite-strings" 10694 10695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10696 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10697 cacheid=xorg_cv_cc_flag__Wwrite_strings 10698 if eval test \${$cacheid+y} 10699 then : 10700 printf %s "(cached) " >&6 10701 else case e in #( 10702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703 /* end confdefs.h. */ 10704 int i; 10705 int 10706 main (void) 10707 { 10708 10709 ; 10710 return 0; 10711 } 10712 _ACEOF 10713 if ac_fn_c_try_link "$LINENO" 10714 then : 10715 eval $cacheid=yes 10716 else case e in #( 10717 e) eval $cacheid=no ;; 10718 esac 10719 fi 10720 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10721 conftest$ac_exeext conftest.$ac_ext ;; 10722 esac 10723 fi 10724 10725 10726 CFLAGS="$xorg_testset_save_CFLAGS" 10727 10728 eval supported=\$$cacheid 10729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10730 printf '%s\n' "$supported" >&6; } 10731 if test "$supported" = "yes" ; then 10732 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10733 found="yes" 10734 fi 10735 fi 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 xorg_testset_save_CFLAGS="$CFLAGS" 10752 10753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10757 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10758 then : 10759 printf %s "(cached) " >&6 10760 else case e in #( 10761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10762 /* end confdefs.h. */ 10763 int i; 10764 _ACEOF 10765 if ac_fn_c_try_compile "$LINENO" 10766 then : 10767 xorg_cv_cc_flag_unknown_warning_option=yes 10768 else case e in #( 10769 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10770 esac 10771 fi 10772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10773 esac 10774 fi 10775 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10776 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10778 CFLAGS="$xorg_testset_save_CFLAGS" 10779 fi 10780 10781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10784 fi 10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10787 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10788 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10789 then : 10790 printf %s "(cached) " >&6 10791 else case e in #( 10792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10793 /* end confdefs.h. */ 10794 int i; 10795 _ACEOF 10796 if ac_fn_c_try_compile "$LINENO" 10797 then : 10798 xorg_cv_cc_flag_unused_command_line_argument=yes 10799 else case e in #( 10800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10801 esac 10802 fi 10803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10804 esac 10805 fi 10806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10807 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10809 CFLAGS="$xorg_testset_save_CFLAGS" 10810 fi 10811 10812 found="no" 10813 10814 if test $found = "no" ; then 10815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10817 fi 10818 10819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10821 fi 10822 10823 CFLAGS="$CFLAGS -Waddress" 10824 10825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10826 printf %s "checking if $CC supports -Waddress... " >&6; } 10827 cacheid=xorg_cv_cc_flag__Waddress 10828 if eval test \${$cacheid+y} 10829 then : 10830 printf %s "(cached) " >&6 10831 else case e in #( 10832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10833 /* end confdefs.h. */ 10834 int i; 10835 int 10836 main (void) 10837 { 10838 10839 ; 10840 return 0; 10841 } 10842 _ACEOF 10843 if ac_fn_c_try_link "$LINENO" 10844 then : 10845 eval $cacheid=yes 10846 else case e in #( 10847 e) eval $cacheid=no ;; 10848 esac 10849 fi 10850 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10851 conftest$ac_exeext conftest.$ac_ext ;; 10852 esac 10853 fi 10854 10855 10856 CFLAGS="$xorg_testset_save_CFLAGS" 10857 10858 eval supported=\$$cacheid 10859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10860 printf '%s\n' "$supported" >&6; } 10861 if test "$supported" = "yes" ; then 10862 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10863 found="yes" 10864 fi 10865 fi 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 xorg_testset_save_CFLAGS="$CFLAGS" 10882 10883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10887 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10888 then : 10889 printf %s "(cached) " >&6 10890 else case e in #( 10891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892 /* end confdefs.h. */ 10893 int i; 10894 _ACEOF 10895 if ac_fn_c_try_compile "$LINENO" 10896 then : 10897 xorg_cv_cc_flag_unknown_warning_option=yes 10898 else case e in #( 10899 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10900 esac 10901 fi 10902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10903 esac 10904 fi 10905 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10906 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909 fi 10910 10911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10914 fi 10915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10919 then : 10920 printf %s "(cached) " >&6 10921 else case e in #( 10922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10923 /* end confdefs.h. */ 10924 int i; 10925 _ACEOF 10926 if ac_fn_c_try_compile "$LINENO" 10927 then : 10928 xorg_cv_cc_flag_unused_command_line_argument=yes 10929 else case e in #( 10930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10931 esac 10932 fi 10933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10934 esac 10935 fi 10936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10937 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10939 CFLAGS="$xorg_testset_save_CFLAGS" 10940 fi 10941 10942 found="no" 10943 10944 if test $found = "no" ; then 10945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10947 fi 10948 10949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10951 fi 10952 10953 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10954 10955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10956 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10957 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10958 if eval test \${$cacheid+y} 10959 then : 10960 printf %s "(cached) " >&6 10961 else case e in #( 10962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10963 /* end confdefs.h. */ 10964 int i; 10965 int 10966 main (void) 10967 { 10968 10969 ; 10970 return 0; 10971 } 10972 _ACEOF 10973 if ac_fn_c_try_link "$LINENO" 10974 then : 10975 eval $cacheid=yes 10976 else case e in #( 10977 e) eval $cacheid=no ;; 10978 esac 10979 fi 10980 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10981 conftest$ac_exeext conftest.$ac_ext ;; 10982 esac 10983 fi 10984 10985 10986 CFLAGS="$xorg_testset_save_CFLAGS" 10987 10988 eval supported=\$$cacheid 10989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10990 printf '%s\n' "$supported" >&6; } 10991 if test "$supported" = "yes" ; then 10992 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10993 found="yes" 10994 fi 10995 fi 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 xorg_testset_save_CFLAGS="$CFLAGS" 11012 11013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11017 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11018 then : 11019 printf %s "(cached) " >&6 11020 else case e in #( 11021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022 /* end confdefs.h. */ 11023 int i; 11024 _ACEOF 11025 if ac_fn_c_try_compile "$LINENO" 11026 then : 11027 xorg_cv_cc_flag_unknown_warning_option=yes 11028 else case e in #( 11029 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11030 esac 11031 fi 11032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11033 esac 11034 fi 11035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11036 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11038 CFLAGS="$xorg_testset_save_CFLAGS" 11039 fi 11040 11041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11044 fi 11045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11049 then : 11050 printf %s "(cached) " >&6 11051 else case e in #( 11052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11053 /* end confdefs.h. */ 11054 int i; 11055 _ACEOF 11056 if ac_fn_c_try_compile "$LINENO" 11057 then : 11058 xorg_cv_cc_flag_unused_command_line_argument=yes 11059 else case e in #( 11060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11061 esac 11062 fi 11063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11064 esac 11065 fi 11066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11067 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11069 CFLAGS="$xorg_testset_save_CFLAGS" 11070 fi 11071 11072 found="no" 11073 11074 if test $found = "no" ; then 11075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11077 fi 11078 11079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11081 fi 11082 11083 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11084 11085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11086 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11087 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11088 if eval test \${$cacheid+y} 11089 then : 11090 printf %s "(cached) " >&6 11091 else case e in #( 11092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11093 /* end confdefs.h. */ 11094 int i; 11095 int 11096 main (void) 11097 { 11098 11099 ; 11100 return 0; 11101 } 11102 _ACEOF 11103 if ac_fn_c_try_link "$LINENO" 11104 then : 11105 eval $cacheid=yes 11106 else case e in #( 11107 e) eval $cacheid=no ;; 11108 esac 11109 fi 11110 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11111 conftest$ac_exeext conftest.$ac_ext ;; 11112 esac 11113 fi 11114 11115 11116 CFLAGS="$xorg_testset_save_CFLAGS" 11117 11118 eval supported=\$$cacheid 11119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11120 printf '%s\n' "$supported" >&6; } 11121 if test "$supported" = "yes" ; then 11122 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11123 found="yes" 11124 fi 11125 fi 11126 11127 11128 fi 11129 11130 11131 11132 11133 11134 11135 11136 CWARNFLAGS="$BASE_CFLAGS" 11137 if test "x$GCC" = xyes ; then 11138 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11139 fi 11140 11141 11142 11143 11144 11145 11146 11147 11148 # Check whether --enable-strict-compilation was given. 11149 if test ${enable_strict_compilation+y} 11150 then : 11151 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11152 else case e in #( 11153 e) STRICT_COMPILE=no ;; 11154 esac 11155 fi 11156 11157 11158 11159 11160 11161 11162 STRICT_CFLAGS="" 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 xorg_testset_save_CFLAGS="$CFLAGS" 11177 11178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11182 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11183 then : 11184 printf %s "(cached) " >&6 11185 else case e in #( 11186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187 /* end confdefs.h. */ 11188 int i; 11189 _ACEOF 11190 if ac_fn_c_try_compile "$LINENO" 11191 then : 11192 xorg_cv_cc_flag_unknown_warning_option=yes 11193 else case e in #( 11194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11195 esac 11196 fi 11197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11198 esac 11199 fi 11200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11201 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11203 CFLAGS="$xorg_testset_save_CFLAGS" 11204 fi 11205 11206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11209 fi 11210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11214 then : 11215 printf %s "(cached) " >&6 11216 else case e in #( 11217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11218 /* end confdefs.h. */ 11219 int i; 11220 _ACEOF 11221 if ac_fn_c_try_compile "$LINENO" 11222 then : 11223 xorg_cv_cc_flag_unused_command_line_argument=yes 11224 else case e in #( 11225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11226 esac 11227 fi 11228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11229 esac 11230 fi 11231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11232 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11234 CFLAGS="$xorg_testset_save_CFLAGS" 11235 fi 11236 11237 found="no" 11238 11239 if test $found = "no" ; then 11240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11242 fi 11243 11244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11246 fi 11247 11248 CFLAGS="$CFLAGS -pedantic" 11249 11250 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11251 printf %s "checking if $CC supports -pedantic... " >&6; } 11252 cacheid=xorg_cv_cc_flag__pedantic 11253 if eval test \${$cacheid+y} 11254 then : 11255 printf %s "(cached) " >&6 11256 else case e in #( 11257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11258 /* end confdefs.h. */ 11259 int i; 11260 int 11261 main (void) 11262 { 11263 11264 ; 11265 return 0; 11266 } 11267 _ACEOF 11268 if ac_fn_c_try_link "$LINENO" 11269 then : 11270 eval $cacheid=yes 11271 else case e in #( 11272 e) eval $cacheid=no ;; 11273 esac 11274 fi 11275 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11276 conftest$ac_exeext conftest.$ac_ext ;; 11277 esac 11278 fi 11279 11280 11281 CFLAGS="$xorg_testset_save_CFLAGS" 11282 11283 eval supported=\$$cacheid 11284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11285 printf '%s\n' "$supported" >&6; } 11286 if test "$supported" = "yes" ; then 11287 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11288 found="yes" 11289 fi 11290 fi 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 xorg_testset_save_CFLAGS="$CFLAGS" 11307 11308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11312 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11313 then : 11314 printf %s "(cached) " >&6 11315 else case e in #( 11316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317 /* end confdefs.h. */ 11318 int i; 11319 _ACEOF 11320 if ac_fn_c_try_compile "$LINENO" 11321 then : 11322 xorg_cv_cc_flag_unknown_warning_option=yes 11323 else case e in #( 11324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11325 esac 11326 fi 11327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11328 esac 11329 fi 11330 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11331 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11333 CFLAGS="$xorg_testset_save_CFLAGS" 11334 fi 11335 11336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11339 fi 11340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11344 then : 11345 printf %s "(cached) " >&6 11346 else case e in #( 11347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348 /* end confdefs.h. */ 11349 int i; 11350 _ACEOF 11351 if ac_fn_c_try_compile "$LINENO" 11352 then : 11353 xorg_cv_cc_flag_unused_command_line_argument=yes 11354 else case e in #( 11355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11356 esac 11357 fi 11358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11359 esac 11360 fi 11361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11362 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11364 CFLAGS="$xorg_testset_save_CFLAGS" 11365 fi 11366 11367 found="no" 11368 11369 if test $found = "no" ; then 11370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11372 fi 11373 11374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11376 fi 11377 11378 CFLAGS="$CFLAGS -Werror" 11379 11380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11381 printf %s "checking if $CC supports -Werror... " >&6; } 11382 cacheid=xorg_cv_cc_flag__Werror 11383 if eval test \${$cacheid+y} 11384 then : 11385 printf %s "(cached) " >&6 11386 else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388 /* end confdefs.h. */ 11389 int i; 11390 int 11391 main (void) 11392 { 11393 11394 ; 11395 return 0; 11396 } 11397 _ACEOF 11398 if ac_fn_c_try_link "$LINENO" 11399 then : 11400 eval $cacheid=yes 11401 else case e in #( 11402 e) eval $cacheid=no ;; 11403 esac 11404 fi 11405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11406 conftest$ac_exeext conftest.$ac_ext ;; 11407 esac 11408 fi 11409 11410 11411 CFLAGS="$xorg_testset_save_CFLAGS" 11412 11413 eval supported=\$$cacheid 11414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11415 printf '%s\n' "$supported" >&6; } 11416 if test "$supported" = "yes" ; then 11417 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11418 found="yes" 11419 fi 11420 fi 11421 11422 if test $found = "no" ; then 11423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11425 fi 11426 11427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11429 fi 11430 11431 CFLAGS="$CFLAGS -errwarn" 11432 11433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11434 printf %s "checking if $CC supports -errwarn... " >&6; } 11435 cacheid=xorg_cv_cc_flag__errwarn 11436 if eval test \${$cacheid+y} 11437 then : 11438 printf %s "(cached) " >&6 11439 else case e in #( 11440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11441 /* end confdefs.h. */ 11442 int i; 11443 int 11444 main (void) 11445 { 11446 11447 ; 11448 return 0; 11449 } 11450 _ACEOF 11451 if ac_fn_c_try_link "$LINENO" 11452 then : 11453 eval $cacheid=yes 11454 else case e in #( 11455 e) eval $cacheid=no ;; 11456 esac 11457 fi 11458 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11459 conftest$ac_exeext conftest.$ac_ext ;; 11460 esac 11461 fi 11462 11463 11464 CFLAGS="$xorg_testset_save_CFLAGS" 11465 11466 eval supported=\$$cacheid 11467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11468 printf '%s\n' "$supported" >&6; } 11469 if test "$supported" = "yes" ; then 11470 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11471 found="yes" 11472 fi 11473 fi 11474 11475 11476 11477 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11478 # activate it with -Werror, so we add it here explicitly. 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 xorg_testset_save_CFLAGS="$CFLAGS" 11493 11494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11498 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11499 then : 11500 printf %s "(cached) " >&6 11501 else case e in #( 11502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11503 /* end confdefs.h. */ 11504 int i; 11505 _ACEOF 11506 if ac_fn_c_try_compile "$LINENO" 11507 then : 11508 xorg_cv_cc_flag_unknown_warning_option=yes 11509 else case e in #( 11510 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11511 esac 11512 fi 11513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11514 esac 11515 fi 11516 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11517 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11519 CFLAGS="$xorg_testset_save_CFLAGS" 11520 fi 11521 11522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11525 fi 11526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11530 then : 11531 printf %s "(cached) " >&6 11532 else case e in #( 11533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11534 /* end confdefs.h. */ 11535 int i; 11536 _ACEOF 11537 if ac_fn_c_try_compile "$LINENO" 11538 then : 11539 xorg_cv_cc_flag_unused_command_line_argument=yes 11540 else case e in #( 11541 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11542 esac 11543 fi 11544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11545 esac 11546 fi 11547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11548 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11550 CFLAGS="$xorg_testset_save_CFLAGS" 11551 fi 11552 11553 found="no" 11554 11555 if test $found = "no" ; then 11556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11558 fi 11559 11560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11562 fi 11563 11564 CFLAGS="$CFLAGS -Werror=attributes" 11565 11566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11567 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11568 cacheid=xorg_cv_cc_flag__Werror_attributes 11569 if eval test \${$cacheid+y} 11570 then : 11571 printf %s "(cached) " >&6 11572 else case e in #( 11573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574 /* end confdefs.h. */ 11575 int i; 11576 int 11577 main (void) 11578 { 11579 11580 ; 11581 return 0; 11582 } 11583 _ACEOF 11584 if ac_fn_c_try_link "$LINENO" 11585 then : 11586 eval $cacheid=yes 11587 else case e in #( 11588 e) eval $cacheid=no ;; 11589 esac 11590 fi 11591 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11592 conftest$ac_exeext conftest.$ac_ext ;; 11593 esac 11594 fi 11595 11596 11597 CFLAGS="$xorg_testset_save_CFLAGS" 11598 11599 eval supported=\$$cacheid 11600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11601 printf '%s\n' "$supported" >&6; } 11602 if test "$supported" = "yes" ; then 11603 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11604 found="yes" 11605 fi 11606 fi 11607 11608 11609 11610 if test "x$STRICT_COMPILE" = "xyes"; then 11611 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11612 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11613 fi 11614 11615 11616 11617 11618 11619 11620 11621 11622 cat >>confdefs.h <<_ACEOF 11623 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11624 _ACEOF 11625 11626 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11627 if test "x$PVM" = "x"; then 11628 PVM="0" 11629 fi 11630 11631 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11632 11633 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11634 if test "x$PVP" = "x"; then 11635 PVP="0" 11636 fi 11637 11638 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11639 11640 11641 11642 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11643 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11644 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11645 touch \$(top_srcdir)/ChangeLog; \ 11646 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11647 11648 11649 11650 11651 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11652 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11653 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11654 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11655 touch \$(top_srcdir)/INSTALL; \ 11656 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11657 11658 11659 11660 11661 11662 11663 case $host_os in 11664 solaris*) 11665 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11666 # check for a man page file found in later versions that use 11667 # traditional section numbers instead 11668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11669 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11670 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11671 then : 11672 printf %s "(cached) " >&6 11673 else case e in #( 11674 e) test "$cross_compiling" = yes && 11675 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11676 if test -r "/usr/share/man/man7/attributes.7"; then 11677 ac_cv_file__usr_share_man_man7_attributes_7=yes 11678 else 11679 ac_cv_file__usr_share_man_man7_attributes_7=no 11680 fi ;; 11681 esac 11682 fi 11683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11684 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11685 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11686 then : 11687 SYSV_MAN_SECTIONS=false 11688 else case e in #( 11689 e) SYSV_MAN_SECTIONS=true ;; 11690 esac 11691 fi 11692 11693 ;; 11694 *) SYSV_MAN_SECTIONS=false ;; 11695 esac 11696 11697 if test x$APP_MAN_SUFFIX = x ; then 11698 APP_MAN_SUFFIX=1 11699 fi 11700 if test x$APP_MAN_DIR = x ; then 11701 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11702 fi 11703 11704 if test x$LIB_MAN_SUFFIX = x ; then 11705 LIB_MAN_SUFFIX=3 11706 fi 11707 if test x$LIB_MAN_DIR = x ; then 11708 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11709 fi 11710 11711 if test x$FILE_MAN_SUFFIX = x ; then 11712 case $SYSV_MAN_SECTIONS in 11713 true) FILE_MAN_SUFFIX=4 ;; 11714 *) FILE_MAN_SUFFIX=5 ;; 11715 esac 11716 fi 11717 if test x$FILE_MAN_DIR = x ; then 11718 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11719 fi 11720 11721 if test x$MISC_MAN_SUFFIX = x ; then 11722 case $SYSV_MAN_SECTIONS in 11723 true) MISC_MAN_SUFFIX=5 ;; 11724 *) MISC_MAN_SUFFIX=7 ;; 11725 esac 11726 fi 11727 if test x$MISC_MAN_DIR = x ; then 11728 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11729 fi 11730 11731 if test x$DRIVER_MAN_SUFFIX = x ; then 11732 case $SYSV_MAN_SECTIONS in 11733 true) DRIVER_MAN_SUFFIX=7 ;; 11734 *) DRIVER_MAN_SUFFIX=4 ;; 11735 esac 11736 fi 11737 if test x$DRIVER_MAN_DIR = x ; then 11738 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11739 fi 11740 11741 if test x$ADMIN_MAN_SUFFIX = x ; then 11742 case $SYSV_MAN_SECTIONS in 11743 true) ADMIN_MAN_SUFFIX=1m ;; 11744 *) ADMIN_MAN_SUFFIX=8 ;; 11745 esac 11746 fi 11747 if test x$ADMIN_MAN_DIR = x ; then 11748 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11749 fi 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 XORG_MAN_PAGE="X Version 11" 11766 11767 MAN_SUBSTS="\ 11768 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11769 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11770 -e 's|__xservername__|Xorg|g' \ 11771 -e 's|__xconfigfile__|xorg.conf|g' \ 11772 -e 's|__projectroot__|\$(prefix)|g' \ 11773 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11774 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11775 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11776 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11777 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11778 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11779 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11780 11781 11782 11783 11784 AM_DEFAULT_VERBOSITY=0 11785 11786 11787 11788 11789 11790 # Checks for pkg-config packages 11791 11792 pkg_failed=no 11793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XSETROOT" >&5 11794 printf %s "checking for XSETROOT... " >&6; } 11795 11796 if test -n "$XSETROOT_CFLAGS"; then 11797 pkg_cv_XSETROOT_CFLAGS="$XSETROOT_CFLAGS" 11798 elif test -n "$PKG_CONFIG"; then 11799 if test -n "$PKG_CONFIG" && \ 11800 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.25\""; } >&5 11801 ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.25") 2>&5 11802 ac_status=$? 11803 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11804 test $ac_status = 0; }; then 11805 pkg_cv_XSETROOT_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>/dev/null` 11806 test "x$?" != "x0" && pkg_failed=yes 11807 else 11808 pkg_failed=yes 11809 fi 11810 else 11811 pkg_failed=untried 11812 fi 11813 if test -n "$XSETROOT_LIBS"; then 11814 pkg_cv_XSETROOT_LIBS="$XSETROOT_LIBS" 11815 elif test -n "$PKG_CONFIG"; then 11816 if test -n "$PKG_CONFIG" && \ 11817 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.25\""; } >&5 11818 ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.25") 2>&5 11819 ac_status=$? 11820 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11821 test $ac_status = 0; }; then 11822 pkg_cv_XSETROOT_LIBS=`$PKG_CONFIG --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>/dev/null` 11823 test "x$?" != "x0" && pkg_failed=yes 11824 else 11825 pkg_failed=yes 11826 fi 11827 else 11828 pkg_failed=untried 11829 fi 11830 11831 11832 11833 if test $pkg_failed = yes; then 11834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11835 printf '%s\n' "no" >&6; } 11836 11837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11838 _pkg_short_errors_supported=yes 11839 else 11840 _pkg_short_errors_supported=no 11841 fi 11842 if test $_pkg_short_errors_supported = yes; then 11843 XSETROOT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>&1` 11844 else 11845 XSETROOT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.25" 2>&1` 11846 fi 11847 # Put the nasty error message in config.log where it belongs 11848 echo "$XSETROOT_PKG_ERRORS" >&5 11849 11850 as_fn_error $? "Package requirements (xmuu x11 xbitmaps xcursor xproto >= 7.0.25) were not met: 11851 11852 $XSETROOT_PKG_ERRORS 11853 11854 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11855 installed software in a non-standard prefix. 11856 11857 Alternatively, you may set the environment variables XSETROOT_CFLAGS 11858 and XSETROOT_LIBS to avoid the need to call pkg-config. 11859 See the pkg-config man page for more details." "$LINENO" 5 11860 elif test $pkg_failed = untried; then 11861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11862 printf '%s\n' "no" >&6; } 11863 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11864 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 11865 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11866 is in your PATH or set the PKG_CONFIG environment variable to the full 11867 path to pkg-config. 11868 11869 Alternatively, you may set the environment variables XSETROOT_CFLAGS 11870 and XSETROOT_LIBS to avoid the need to call pkg-config. 11871 See the pkg-config man page for more details. 11872 11873 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11874 See 'config.log' for more details" "$LINENO" 5; } 11875 else 11876 XSETROOT_CFLAGS=$pkg_cv_XSETROOT_CFLAGS 11877 XSETROOT_LIBS=$pkg_cv_XSETROOT_LIBS 11878 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11879 printf '%s\n' "yes" >&6; } 11880 11881 fi 11882 11883 11884 11885 11886 11887 11888 # Check whether --with-lint was given. 11889 if test ${with_lint+y} 11890 then : 11891 withval=$with_lint; use_lint=$withval 11892 else case e in #( 11893 e) use_lint=no ;; 11894 esac 11895 fi 11896 11897 11898 # Obtain platform specific info like program name and options 11899 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 11900 case $host_os in 11901 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11902 lint_name=splint 11903 lint_options="-badflag" 11904 ;; 11905 *freebsd* | *netbsd*) 11906 lint_name=lint 11907 lint_options="-u -b" 11908 ;; 11909 *solaris*) 11910 lint_name=lint 11911 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11912 ;; 11913 esac 11914 11915 # Test for the presence of the program (either guessed by the code or spelled out by the user) 11916 if test "x$use_lint" = x"yes" ; then 11917 # Extract the first word of "$lint_name", so it can be a program name with args. 11918 set dummy $lint_name; ac_word=$2 11919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11920 printf %s "checking for $ac_word... " >&6; } 11921 if test ${ac_cv_path_LINT+y} 11922 then : 11923 printf %s "(cached) " >&6 11924 else case e in #( 11925 e) case $LINT in 11926 [\\/]* | ?:[\\/]*) 11927 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11928 ;; 11929 *) 11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11931 for as_dir in $PATH 11932 do 11933 IFS=$as_save_IFS 11934 case $as_dir in #((( 11935 '') as_dir=./ ;; 11936 */) ;; 11937 *) as_dir=$as_dir/ ;; 11938 esac 11939 for ac_exec_ext in '' $ac_executable_extensions; do 11940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11941 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11942 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11943 break 2 11944 fi 11945 done 11946 done 11947 IFS=$as_save_IFS 11948 11949 ;; 11950 esac ;; 11951 esac 11952 fi 11953 LINT=$ac_cv_path_LINT 11954 if test -n "$LINT"; then 11955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11956 printf '%s\n' "$LINT" >&6; } 11957 else 11958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11959 printf '%s\n' "no" >&6; } 11960 fi 11961 11962 11963 if test "x$LINT" = "x"; then 11964 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11965 fi 11966 elif test "x$use_lint" = x"no" ; then 11967 if test "x$LINT" != "x"; then 11968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11969 printf '%s\n' "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11970 fi 11971 else 11972 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11973 fi 11974 11975 # User supplied flags override default flags 11976 if test "x$LINT_FLAGS" != "x"; then 11977 lint_options=$LINT_FLAGS 11978 fi 11979 11980 LINT_FLAGS=$lint_options 11981 11982 if test "x$LINT" != x; then 11983 LINT_TRUE= 11984 LINT_FALSE='#' 11985 else 11986 LINT_TRUE='#' 11987 LINT_FALSE= 11988 fi 11989 11990 11991 11992 11993 ac_config_files="$ac_config_files Makefile man/Makefile" 11994 11995 cat >confcache <<\_ACEOF 11996 # This file is a shell script that caches the results of configure 11997 # tests run on this system so they can be shared between configure 11998 # scripts and configure runs, see configure's option --config-cache. 11999 # It is not useful on other systems. If it contains results you don't 12000 # want to keep, you may remove or edit it. 12001 # 12002 # config.status only pays attention to the cache file if you give it 12003 # the --recheck option to rerun configure. 12004 # 12005 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12006 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12007 # following values. 12008 12009 _ACEOF 12010 12011 ac_cache_dump | 12012 sed ' 12013 /^ac_cv_env_/b end 12014 t clear 12015 :clear 12016 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12017 t end 12018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12019 :end' >>confcache 12020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12021 if test -w "$cache_file"; then 12022 if test "x$cache_file" != "x/dev/null"; then 12023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12024 printf '%s\n' "$as_me: updating cache $cache_file" >&6;} 12025 if test ! -f "$cache_file" || test -h "$cache_file"; then 12026 cat confcache >"$cache_file" 12027 else 12028 case $cache_file in #( 12029 */* | ?:*) 12030 mv -f confcache "$cache_file"$$ && 12031 mv -f "$cache_file"$$ "$cache_file" ;; #( 12032 *) 12033 mv -f confcache "$cache_file" ;; 12034 esac 12035 fi 12036 fi 12037 else 12038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12039 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;} 12040 fi 12041 fi 12042 rm -f confcache 12043 12044 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12045 # Let make expand exec_prefix. 12046 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12047 12048 DEFS=-DHAVE_CONFIG_H 12049 12050 ac_libobjs= 12051 ac_ltlibobjs= 12052 U= 12053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12054 # 1. Remove the extension, and $U if already installed. 12055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12056 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"` 12057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12058 # will be set to the directory where LIBOBJS objects are built. 12059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12061 done 12062 LIBOBJS=$ac_libobjs 12063 12064 LTLIBOBJS=$ac_ltlibobjs 12065 12066 12067 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12068 printf %s "checking that generated files are newer than configure... " >&6; } 12069 if test -n "$am_sleep_pid"; then 12070 # Hide warnings about reused PIDs. 12071 wait $am_sleep_pid 2>/dev/null 12072 fi 12073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5 12074 printf '%s\n' "done" >&6; } 12075 case $enable_silent_rules in # ((( 12076 yes) AM_DEFAULT_VERBOSITY=0;; 12077 no) AM_DEFAULT_VERBOSITY=1;; 12078 esac 12079 if test $am_cv_make_support_nested_variables = yes; then 12080 AM_V='$(V)' 12081 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12082 else 12083 AM_V=$AM_DEFAULT_VERBOSITY 12084 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12085 fi 12086 12087 if test -n "$EXEEXT"; then 12088 am__EXEEXT_TRUE= 12089 am__EXEEXT_FALSE='#' 12090 else 12091 am__EXEEXT_TRUE='#' 12092 am__EXEEXT_FALSE= 12093 fi 12094 12095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12096 as_fn_error $? "conditional \"AMDEP\" was never defined. 12097 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12098 fi 12099 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12100 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12101 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12102 fi 12103 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12104 as_fn_error $? "conditional \"LINT\" was never defined. 12105 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12106 fi 12107 12108 : "${CONFIG_STATUS=./config.status}" 12109 case $CONFIG_STATUS in #( 12110 -*) : 12111 CONFIG_STATUS=./$CONFIG_STATUS ;; #( 12112 */*) : 12113 ;; #( 12114 *) : 12115 CONFIG_STATUS=./$CONFIG_STATUS ;; 12116 esac 12117 12118 ac_write_fail=0 12119 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"' 12120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12121 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;} 12122 as_write_fail=0 12123 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1 12124 #! $SHELL 12125 # Generated by $as_me. 12126 # Run this file to recreate the current configuration. 12127 # Compiler output produced by configure, useful for debugging 12128 # configure, is in config.log if it exists. 12129 12130 debug=false 12131 ac_cs_recheck=false 12132 ac_cs_silent=false 12133 12134 SHELL=\${CONFIG_SHELL-$SHELL} 12135 export SHELL 12136 _ASEOF 12137 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1 12138 ## -------------------- ## 12139 ## M4sh Initialization. ## 12140 ## -------------------- ## 12141 12142 # Be more Bourne compatible 12143 DUALCASE=1; export DUALCASE # for MKS sh 12144 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12145 then : 12146 emulate sh 12147 NULLCMD=: 12148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12149 # contradicts POSIX and common usage. Disable this. 12150 alias -g '${1+"$@"}'='"$@"' 12151 setopt NO_GLOB_SUBST 12152 else case e in #( 12153 e) case `(set -o) 2>/dev/null` in #( 12154 *posix*) : 12155 set -o posix ;; #( 12156 *) : 12157 ;; 12158 esac ;; 12159 esac 12160 fi 12161 12162 12163 12164 # Reset variables that may have inherited troublesome values from 12165 # the environment. 12166 12167 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12168 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12169 # side effect of setting IFS to empty, thus disabling word splitting.) 12170 # Quoting is to prevent editors from complaining about space-tab. 12171 as_nl=' 12172 ' 12173 export as_nl 12174 IFS=" "" $as_nl" 12175 12176 PS1='$ ' 12177 PS2='> ' 12178 PS4='+ ' 12179 12180 # Ensure predictable behavior from utilities with locale-dependent output. 12181 LC_ALL=C 12182 export LC_ALL 12183 LANGUAGE=C 12184 export LANGUAGE 12185 12186 # We cannot yet rely on "unset" to work, but we need these variables 12187 # to be unset--not just set to an empty or harmless value--now, to 12188 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12189 # also avoids known problems related to "unset" and subshell syntax 12190 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12191 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12192 do eval test \${$as_var+y} \ 12193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12194 done 12195 12196 # Ensure that fds 0, 1, and 2 are open. 12197 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12198 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12199 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12200 12201 # The user is always right. 12202 if ${PATH_SEPARATOR+false} :; then 12203 PATH_SEPARATOR=: 12204 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12205 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12206 PATH_SEPARATOR=';' 12207 } 12208 fi 12209 12210 12211 # Find who we are. Look in the path if we contain no directory separator. 12212 as_myself= 12213 case $0 in #(( 12214 *[\\/]* ) as_myself=$0 ;; 12215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12216 for as_dir in $PATH 12217 do 12218 IFS=$as_save_IFS 12219 case $as_dir in #((( 12220 '') as_dir=./ ;; 12221 */) ;; 12222 *) as_dir=$as_dir/ ;; 12223 esac 12224 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12225 done 12226 IFS=$as_save_IFS 12227 12228 ;; 12229 esac 12230 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12231 # in which case we are not to be found in the path. 12232 if test "x$as_myself" = x; then 12233 as_myself=$0 12234 fi 12235 if test ! -f "$as_myself"; then 12236 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12237 exit 1 12238 fi 12239 12240 12241 12242 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12243 # ---------------------------------------- 12244 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12245 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12246 # script with STATUS, using 1 if that was 0. 12247 as_fn_error () 12248 { 12249 as_status=$1; test $as_status -eq 0 && as_status=1 12250 if test "$4"; then 12251 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12252 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12253 fi 12254 printf '%s\n' "$as_me: error: $2" >&2 12255 as_fn_exit $as_status 12256 } # as_fn_error 12257 12258 12259 # as_fn_set_status STATUS 12260 # ----------------------- 12261 # Set $? to STATUS, without forking. 12262 as_fn_set_status () 12263 { 12264 return $1 12265 } # as_fn_set_status 12266 12267 # as_fn_exit STATUS 12268 # ----------------- 12269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12270 as_fn_exit () 12271 { 12272 set +e 12273 as_fn_set_status $1 12274 exit $1 12275 } # as_fn_exit 12276 12277 # as_fn_unset VAR 12278 # --------------- 12279 # Portably unset VAR. 12280 as_fn_unset () 12281 { 12282 { eval $1=; unset $1;} 12283 } 12284 as_unset=as_fn_unset 12285 12286 # as_fn_append VAR VALUE 12287 # ---------------------- 12288 # Append the text in VALUE to the end of the definition contained in VAR. Take 12289 # advantage of any shell optimizations that allow amortized linear growth over 12290 # repeated appends, instead of the typical quadratic growth present in naive 12291 # implementations. 12292 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12293 then : 12294 eval 'as_fn_append () 12295 { 12296 eval $1+=\$2 12297 }' 12298 else case e in #( 12299 e) as_fn_append () 12300 { 12301 eval $1=\$$1\$2 12302 } ;; 12303 esac 12304 fi # as_fn_append 12305 12306 # as_fn_arith ARG... 12307 # ------------------ 12308 # Perform arithmetic evaluation on the ARGs, and store the result in the 12309 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12310 # must be portable across $(()) and expr. 12311 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12312 then : 12313 eval 'as_fn_arith () 12314 { 12315 as_val=$(( $* )) 12316 }' 12317 else case e in #( 12318 e) as_fn_arith () 12319 { 12320 as_val=`expr "$@" || test $? -eq 1` 12321 } ;; 12322 esac 12323 fi # as_fn_arith 12324 12325 12326 if expr a : '\(a\)' >/dev/null 2>&1 && 12327 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12328 as_expr=expr 12329 else 12330 as_expr=false 12331 fi 12332 12333 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12334 as_basename=basename 12335 else 12336 as_basename=false 12337 fi 12338 12339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12340 as_dirname=dirname 12341 else 12342 as_dirname=false 12343 fi 12344 12345 as_me=`$as_basename -- "$0" || 12346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12347 X"$0" : 'X\(//\)$' \| \ 12348 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12349 printf '%s\n' X/"$0" | 12350 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12351 s//\1/ 12352 q 12353 } 12354 /^X\/\(\/\/\)$/{ 12355 s//\1/ 12356 q 12357 } 12358 /^X\/\(\/\).*/{ 12359 s//\1/ 12360 q 12361 } 12362 s/.*/./; q'` 12363 12364 # Avoid depending upon Character Ranges. 12365 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12368 as_cr_digits='0123456789' 12369 as_cr_alnum=$as_cr_Letters$as_cr_digits 12370 12371 rm -f conf$$ conf$$.exe conf$$.file 12372 if test -d conf$$.dir; then 12373 rm -f conf$$.dir/conf$$.file 12374 else 12375 rm -f conf$$.dir 12376 mkdir conf$$.dir 2>/dev/null 12377 fi 12378 if (echo >conf$$.file) 2>/dev/null; then 12379 if ln -s conf$$.file conf$$ 2>/dev/null; then 12380 as_ln_s='ln -s' 12381 # ... but there are two gotchas: 12382 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12383 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12384 # In both cases, we have to default to 'cp -pR'. 12385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12386 as_ln_s='cp -pR' 12387 elif ln conf$$.file conf$$ 2>/dev/null; then 12388 as_ln_s=ln 12389 else 12390 as_ln_s='cp -pR' 12391 fi 12392 else 12393 as_ln_s='cp -pR' 12394 fi 12395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12396 rmdir conf$$.dir 2>/dev/null 12397 12398 12399 # as_fn_mkdir_p 12400 # ------------- 12401 # Create "$as_dir" as a directory, including parents if necessary. 12402 as_fn_mkdir_p () 12403 { 12404 12405 case $as_dir in #( 12406 -*) as_dir=./$as_dir;; 12407 esac 12408 test -d "$as_dir" || eval $as_mkdir_p || { 12409 as_dirs= 12410 while :; do 12411 case $as_dir in #( 12412 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12413 *) as_qdir=$as_dir;; 12414 esac 12415 as_dirs="'$as_qdir' $as_dirs" 12416 as_dir=`$as_dirname -- "$as_dir" || 12417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12418 X"$as_dir" : 'X\(//\)[^/]' \| \ 12419 X"$as_dir" : 'X\(//\)$' \| \ 12420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12421 printf '%s\n' X"$as_dir" | 12422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12423 s//\1/ 12424 q 12425 } 12426 /^X\(\/\/\)[^/].*/{ 12427 s//\1/ 12428 q 12429 } 12430 /^X\(\/\/\)$/{ 12431 s//\1/ 12432 q 12433 } 12434 /^X\(\/\).*/{ 12435 s//\1/ 12436 q 12437 } 12438 s/.*/./; q'` 12439 test -d "$as_dir" && break 12440 done 12441 test -z "$as_dirs" || eval "mkdir $as_dirs" 12442 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12443 12444 12445 } # as_fn_mkdir_p 12446 if mkdir -p . 2>/dev/null; then 12447 as_mkdir_p='mkdir -p "$as_dir"' 12448 else 12449 test -d ./-p && rmdir ./-p 12450 as_mkdir_p=false 12451 fi 12452 12453 12454 # as_fn_executable_p FILE 12455 # ----------------------- 12456 # Test if FILE is an executable regular file. 12457 as_fn_executable_p () 12458 { 12459 test -f "$1" && test -x "$1" 12460 } # as_fn_executable_p 12461 as_test_x='test -x' 12462 as_executable_p=as_fn_executable_p 12463 12464 # Sed expression to map a string onto a valid CPP name. 12465 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12466 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12467 12468 # Sed expression to map a string onto a valid variable name. 12469 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12470 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12471 12472 12473 exec 6>&1 12474 ## ------------------------------------- ## 12475 ## Main body of "$CONFIG_STATUS" script. ## 12476 ## ------------------------------------- ## 12477 _ASEOF 12478 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1 12479 12480 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12481 # Save the log message, to keep $0 and so on meaningful, and to 12482 # report actual input values of CONFIG_FILES etc. instead of their 12483 # values after options handling. 12484 ac_log=" 12485 This file was extended by xsetroot $as_me 1.1.4, which was 12486 generated by GNU Autoconf 2.73. Invocation command line was 12487 12488 CONFIG_FILES = $CONFIG_FILES 12489 CONFIG_HEADERS = $CONFIG_HEADERS 12490 CONFIG_LINKS = $CONFIG_LINKS 12491 CONFIG_COMMANDS = $CONFIG_COMMANDS 12492 $ $0 $@ 12493 12494 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12495 " 12496 12497 _ACEOF 12498 12499 case $ac_config_files in *" 12500 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12501 esac 12502 12503 case $ac_config_headers in *" 12504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12505 esac 12506 12507 12508 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12509 # Files that config.status was made for. 12510 config_files="$ac_config_files" 12511 config_headers="$ac_config_headers" 12512 config_commands="$ac_config_commands" 12513 12514 _ACEOF 12515 12516 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12517 ac_cs_usage="\ 12518 '$as_me' instantiates files and other configuration actions 12519 from templates according to the current configuration. Unless the files 12520 and actions are specified as TAGs, all are instantiated by default. 12521 12522 Usage: $0 [OPTION]... [TAG]... 12523 12524 -h, --help print this help, then exit 12525 -V, --version print version number and configuration settings, then exit 12526 --config print configuration, then exit 12527 -q, --quiet, --silent 12528 do not print progress messages 12529 -d, --debug don't remove temporary files 12530 --recheck update $as_me by reconfiguring in the same conditions 12531 --file=FILE[:TEMPLATE] 12532 instantiate the configuration file FILE 12533 --header=FILE[:TEMPLATE] 12534 instantiate the configuration header FILE 12535 12536 Configuration files: 12537 $config_files 12538 12539 Configuration headers: 12540 $config_headers 12541 12542 Configuration commands: 12543 $config_commands 12544 12545 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xsetroot/-/issues>." 12546 12547 _ACEOF 12548 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"` 12549 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12550 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12551 ac_cs_config='$ac_cs_config_escaped' 12552 ac_cs_version="\\ 12553 xsetroot config.status 1.1.4 12554 configured by $0, generated by GNU Autoconf 2.73, 12555 with options \\"\$ac_cs_config\\" 12556 12557 Copyright (C) 2026 Free Software Foundation, Inc. 12558 This config.status script is free software; the Free Software Foundation 12559 gives unlimited permission to copy, distribute and modify it." 12560 12561 ac_pwd='$ac_pwd' 12562 srcdir='$srcdir' 12563 INSTALL='$INSTALL' 12564 MKDIR_P='$MKDIR_P' 12565 AWK='$AWK' 12566 test -n "\$AWK" || { 12567 awk '' </dev/null || 12568 as_fn_error \$? "try installing gawk" 12569 AWK=awk 12570 } 12571 _ACEOF 12572 12573 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12574 # The default lists apply if the user does not specify any file. 12575 ac_need_defaults=: 12576 while test $# != 0 12577 do 12578 case $1 in 12579 --*=?*) 12580 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12581 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12582 ac_shift=: 12583 ;; 12584 --*=) 12585 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12586 ac_optarg= 12587 ac_shift=: 12588 ;; 12589 *) 12590 ac_option=$1 12591 ac_optarg=$2 12592 ac_shift=shift 12593 ;; 12594 esac 12595 12596 case $ac_option in 12597 # Handling of the options. 12598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12599 ac_cs_recheck=: ;; 12600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12601 printf '%s\n' "$ac_cs_version"; exit ;; 12602 --config | --confi | --conf | --con | --co | --c ) 12603 printf '%s\n' "$ac_cs_config"; exit ;; 12604 --debug | --debu | --deb | --de | --d | -d ) 12605 debug=: ;; 12606 --file | --fil | --fi | --f ) 12607 $ac_shift 12608 case $ac_optarg in 12609 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12610 '') as_fn_error $? "missing file argument" ;; 12611 esac 12612 as_fn_append CONFIG_FILES " '$ac_optarg'" 12613 ac_need_defaults=false;; 12614 --header | --heade | --head | --hea ) 12615 $ac_shift 12616 case $ac_optarg in 12617 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12618 esac 12619 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12620 ac_need_defaults=false;; 12621 --he | --h) 12622 # Conflict between --help and --header 12623 as_fn_error $? "ambiguous option: '$1' 12624 Try '$0 --help' for more information.";; 12625 --help | --hel | -h ) 12626 printf '%s\n' "$ac_cs_usage"; exit ;; 12627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12628 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12629 ac_cs_silent=: ;; 12630 12631 # This is an error. 12632 -*) as_fn_error $? "unrecognized option: '$1' 12633 Try '$0 --help' for more information." ;; 12634 12635 *) as_fn_append ac_config_targets " $1" 12636 ac_need_defaults=false ;; 12637 12638 esac 12639 shift 12640 done 12641 12642 ac_configure_extra_args= 12643 12644 if $ac_cs_silent; then 12645 exec 6>/dev/null 12646 ac_configure_extra_args="$ac_configure_extra_args --silent" 12647 fi 12648 12649 _ACEOF 12650 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12651 if \$ac_cs_recheck; then 12652 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12653 shift 12654 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6 12655 CONFIG_SHELL='$SHELL' 12656 export CONFIG_SHELL 12657 exec "\$@" 12658 fi 12659 12660 _ACEOF 12661 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12662 exec 5>>config.log 12663 { 12664 echo 12665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12666 ## Running $as_me. ## 12667 _ASBOX 12668 printf '%s\n' "$ac_log" 12669 } >&5 12670 12671 _ACEOF 12672 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12673 # 12674 # INIT-COMMANDS 12675 # 12676 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12677 12678 _ACEOF 12679 12680 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12681 12682 # Handling of arguments. 12683 for ac_config_target in $ac_config_targets 12684 do 12685 case $ac_config_target in 12686 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12688 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12689 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12690 12691 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12692 esac 12693 done 12694 12695 12696 # If the user did not use the arguments to specify the items to instantiate, 12697 # then the envvar interface is used. Set only those that are not. 12698 # We use the long form for the default assignment because of an extremely 12699 # bizarre bug on SunOS 4.1.3. 12700 if $ac_need_defaults; then 12701 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12702 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12703 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12704 fi 12705 12706 # Have a temporary directory for convenience. Make it in the build tree 12707 # simply because there is no reason against having it here, and in addition, 12708 # creating and moving files from /tmp can sometimes cause problems. 12709 # Hook for its removal unless debugging. 12710 # Note that there is a small window in which the directory will not be cleaned: 12711 # after its creation but before its name has been assigned to '$tmp'. 12712 $debug || 12713 { 12714 tmp= ac_tmp= 12715 trap 'exit_status=$? 12716 : "${ac_tmp:=$tmp}" 12717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12718 ' 0 12719 trap 'as_fn_exit 1' 1 2 13 15 12720 } 12721 # Create a (secure) tmp directory for tmp files. 12722 12723 { 12724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12725 test -d "$tmp" 12726 } || 12727 { 12728 tmp=./conf$$-$RANDOM 12729 (umask 077 && mkdir "$tmp") 12730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12731 ac_tmp=$tmp 12732 12733 # Set up the scripts for CONFIG_FILES section. 12734 # No need to generate them if there are no CONFIG_FILES. 12735 # This happens for instance with './config.status config.h'. 12736 if test -n "$CONFIG_FILES"; then 12737 12738 12739 ac_cr=`echo X | tr X '\015'` 12740 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12741 # But we know of no other shell where ac_cr would be empty at this 12742 # point, so we can use a bashism as a fallback. 12743 if test "x$ac_cr" = x; then 12744 eval ac_cr=\$\'\\r\' 12745 fi 12746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12748 ac_cs_awk_cr='\\r' 12749 else 12750 ac_cs_awk_cr=$ac_cr 12751 fi 12752 12753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12754 _ACEOF 12755 12756 12757 { 12758 echo "cat >conf$$subs.awk <<_ACEOF" && 12759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12760 echo "_ACEOF" 12761 } >conf$$subs.sh || 12762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12763 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='` 12764 ac_delim='%!_!# ' 12765 for ac_last_try in false false false false false :; do 12766 . ./conf$$subs.sh || 12767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12768 12769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='` 12770 if test $ac_delim_n = $ac_delim_num; then 12771 break 12772 elif $ac_last_try; then 12773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12774 else 12775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12776 fi 12777 done 12778 rm -f conf$$subs.sh 12779 12780 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12782 _ACEOF 12783 sed -n ' 12784 h 12785 s/^/S["/; s/!.*/"]=/ 12786 p 12787 g 12788 s/^[^!]*!// 12789 :repl 12790 t repl 12791 s/'"$ac_delim"'$// 12792 t delim 12793 :nl 12794 h 12795 s/\(.\{148\}\)..*/\1/ 12796 t more1 12797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12798 p 12799 n 12800 b repl 12801 :more1 12802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12803 p 12804 g 12805 s/.\{148\}// 12806 t nl 12807 :delim 12808 h 12809 s/\(.\{148\}\)..*/\1/ 12810 t more2 12811 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12812 p 12813 b 12814 :more2 12815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12816 p 12817 g 12818 s/.\{148\}// 12819 t delim 12820 ' <conf$$subs.awk | sed ' 12821 /^[^""]/{ 12822 N 12823 s/\n// 12824 } 12825 ' >>"$CONFIG_STATUS" || ac_write_fail=1 12826 rm -f conf$$subs.awk 12827 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12828 _ACAWK 12829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12830 for (key in S) S_is_set[key] = 1 12831 FS = "" 12832 12833 } 12834 { 12835 line = $ 0 12836 nfields = split(line, field, "@") 12837 substed = 0 12838 len = length(field[1]) 12839 for (i = 2; i < nfields; i++) { 12840 key = field[i] 12841 keylen = length(key) 12842 if (S_is_set[key]) { 12843 value = S[key] 12844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12845 len += length(value) + length(field[++i]) 12846 substed = 1 12847 } else 12848 len += 1 + keylen 12849 } 12850 12851 print line 12852 } 12853 12854 _ACAWK 12855 _ACEOF 12856 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12859 else 12860 cat 12861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12863 _ACEOF 12864 12865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12867 # trailing colons and then remove the whole line if VPATH becomes empty 12868 # (actually we leave an empty line to preserve line numbers). 12869 if test "x$srcdir" = x.; then 12870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12871 h 12872 s/// 12873 s/^/:/ 12874 s/[ ]*$/:/ 12875 s/:\$(srcdir):/:/g 12876 s/:\${srcdir}:/:/g 12877 s/:@srcdir@:/:/g 12878 s/^:*// 12879 s/:*$// 12880 x 12881 s/\(=[ ]*\).*/\1/ 12882 G 12883 s/\n// 12884 s/^[^=]*=[ ]*$// 12885 }' 12886 fi 12887 12888 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12889 fi # test -n "$CONFIG_FILES" 12890 12891 # Set up the scripts for CONFIG_HEADERS section. 12892 # No need to generate them if there are no CONFIG_HEADERS. 12893 # This happens for instance with './config.status Makefile'. 12894 if test -n "$CONFIG_HEADERS"; then 12895 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12896 BEGIN { 12897 _ACEOF 12898 12899 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12900 # here-document in config.status, that substitutes the proper values into 12901 # config.h.in to produce config.h. 12902 12903 # Create a delimiter string that does not exist in confdefs.h, to ease 12904 # handling of long lines. 12905 ac_delim='%!_!# ' 12906 for ac_last_try in false false :; do 12907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12908 if test -z "$ac_tt"; then 12909 break 12910 elif $ac_last_try; then 12911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12912 else 12913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12914 fi 12915 done 12916 12917 # For the awk script, D is an array of macro values keyed by name, 12918 # likewise P contains macro parameters if any. Preserve backslash 12919 # newline sequences. 12920 12921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12922 sed -n ' 12923 s/.\{148\}/&'"$ac_delim"'/g 12924 t rset 12925 :rset 12926 s/^[ ]*#[ ]*define[ ][ ]*/ / 12927 t def 12928 d 12929 :def 12930 s/\\$// 12931 t bsnl 12932 s/["\\]/\\&/g 12933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12934 D["\1"]=" \3"/p 12935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12936 d 12937 :bsnl 12938 s/["\\]/\\&/g 12939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12940 D["\1"]=" \3\\\\\\n"\\/p 12941 t cont 12942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12943 t cont 12944 d 12945 :cont 12946 n 12947 s/.\{148\}/&'"$ac_delim"'/g 12948 t clear 12949 :clear 12950 s/\\$// 12951 t bsnlc 12952 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12953 d 12954 :bsnlc 12955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12956 b cont 12957 ' <confdefs.h | sed ' 12958 s/'"$ac_delim"'/"\\\ 12959 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1 12960 12961 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12962 for (key in D) D_is_set[key] = 1 12963 FS = "" 12964 } 12965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12966 line = \$ 0 12967 split(line, arg, " ") 12968 if (arg[1] == "#") { 12969 defundef = arg[2] 12970 mac1 = arg[3] 12971 } else { 12972 defundef = substr(arg[1], 2) 12973 mac1 = arg[2] 12974 } 12975 split(mac1, mac2, "(") #) 12976 macro = mac2[1] 12977 prefix = substr(line, 1, index(line, defundef) - 1) 12978 if (D_is_set[macro]) { 12979 suffix = P[macro] D[macro] 12980 while (suffix ~ /[\t ]$/) { 12981 suffix = substr(suffix, 1, length(suffix) - 1) 12982 } 12983 # Preserve the white space surrounding the "#". 12984 print prefix "define", macro suffix 12985 next 12986 } else { 12987 # Replace #undef with comments. This is necessary, for example, 12988 # in the case of _POSIX_SOURCE, which is predefined and required 12989 # on some systems where configure will not decide to define it. 12990 if (defundef == "undef") { 12991 print "/*", prefix defundef, macro, "*/" 12992 next 12993 } 12994 } 12995 } 12996 { print } 12997 _ACAWK 12998 _ACEOF 12999 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13000 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13001 fi # test -n "$CONFIG_HEADERS" 13002 13003 13004 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13005 shift 13006 for ac_tag 13007 do 13008 case $ac_tag in 13009 :[FHLC]) ac_mode=$ac_tag; continue;; 13010 esac 13011 case $ac_mode$ac_tag in 13012 :[FHL]*:*);; 13013 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13014 :[FH]-) ac_tag=-:-;; 13015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13016 esac 13017 ac_save_IFS=$IFS 13018 IFS=: 13019 set x $ac_tag 13020 IFS=$ac_save_IFS 13021 shift 13022 ac_file=$1 13023 shift 13024 13025 case $ac_mode in 13026 :L) ac_source=$1;; 13027 :[FH]) 13028 ac_file_inputs= 13029 for ac_f 13030 do 13031 case $ac_f in 13032 -) ac_f="$ac_tmp/stdin";; 13033 *) # Look for the file first in the build tree, then in the source tree 13034 # (if the path is not absolute). The absolute path cannot be DOS-style, 13035 # because $ac_f cannot contain ':'. 13036 test -f "$ac_f" || 13037 case $ac_f in 13038 [\\/$]*) false;; 13039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13040 esac || 13041 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13042 esac 13043 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13044 as_fn_append ac_file_inputs " '$ac_f'" 13045 done 13046 13047 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13048 # use $as_me), people would be surprised to read: 13049 # /* config.h. Generated by config.status. */ 13050 configure_input='Generated from '` 13051 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13052 `' by configure.' 13053 if test x"$ac_file" != x-; then 13054 configure_input="$ac_file. $configure_input" 13055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13056 printf '%s\n' "$as_me: creating $ac_file" >&6;} 13057 fi 13058 # Neutralize special characters interpreted by sed in replacement strings. 13059 case $configure_input in #( 13060 *\&* | *\|* | *\\* ) 13061 ac_sed_conf_input=`printf '%s\n' "$configure_input" | 13062 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13063 *) ac_sed_conf_input=$configure_input;; 13064 esac 13065 13066 case $ac_tag in 13067 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13069 esac 13070 ;; 13071 esac 13072 13073 ac_dir=`$as_dirname -- "$ac_file" || 13074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13075 X"$ac_file" : 'X\(//\)[^/]' \| \ 13076 X"$ac_file" : 'X\(//\)$' \| \ 13077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13078 printf '%s\n' X"$ac_file" | 13079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13080 s//\1/ 13081 q 13082 } 13083 /^X\(\/\/\)[^/].*/{ 13084 s//\1/ 13085 q 13086 } 13087 /^X\(\/\/\)$/{ 13088 s//\1/ 13089 q 13090 } 13091 /^X\(\/\).*/{ 13092 s//\1/ 13093 q 13094 } 13095 s/.*/./; q'` 13096 as_dir="$ac_dir"; as_fn_mkdir_p 13097 ac_builddir=. 13098 13099 case "$ac_dir" in 13100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13101 *) 13102 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 13103 # A ".." for each directory in $ac_dir_suffix. 13104 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13105 case $ac_top_builddir_sub in 13106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13108 esac ;; 13109 esac 13110 ac_abs_top_builddir=$ac_pwd 13111 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13112 # for backward compatibility: 13113 ac_top_builddir=$ac_top_build_prefix 13114 13115 case $srcdir in 13116 .) # We are building in place. 13117 ac_srcdir=. 13118 ac_top_srcdir=$ac_top_builddir_sub 13119 ac_abs_top_srcdir=$ac_pwd ;; 13120 [\\/]* | ?:[\\/]* ) # Absolute name. 13121 ac_srcdir=$srcdir$ac_dir_suffix; 13122 ac_top_srcdir=$srcdir 13123 ac_abs_top_srcdir=$srcdir ;; 13124 *) # Relative name. 13125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13126 ac_top_srcdir=$ac_top_build_prefix$srcdir 13127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13128 esac 13129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13130 13131 13132 case $ac_mode in 13133 :F) 13134 # 13135 # CONFIG_FILE 13136 # 13137 13138 case $INSTALL in 13139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13141 esac 13142 ac_MKDIR_P=$MKDIR_P 13143 case $MKDIR_P in 13144 [\\/$]* | ?:[\\/]* ) ;; 13145 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13146 esac 13147 _ACEOF 13148 13149 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13150 # If the template does not know about datarootdir, expand it. 13151 # FIXME: This hack should be removed a few years after 2.60. 13152 ac_datarootdir_hack=; ac_datarootdir_seen= 13153 ac_sed_dataroot=' 13154 /datarootdir/ { 13155 p 13156 q 13157 } 13158 /@datadir@/p 13159 /@docdir@/p 13160 /@infodir@/p 13161 /@localedir@/p 13162 /@mandir@/p' 13163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13164 *datarootdir*) ac_datarootdir_seen=yes;; 13165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13167 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13168 _ACEOF 13169 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13170 ac_datarootdir_hack=' 13171 s&@datadir@&$datadir&g 13172 s&@docdir@&$docdir&g 13173 s&@infodir@&$infodir&g 13174 s&@localedir@&$localedir&g 13175 s&@mandir@&$mandir&g 13176 s&\\\${datarootdir}&$datarootdir&g' ;; 13177 esac 13178 _ACEOF 13179 13180 # Neutralize VPATH when '$srcdir' = '.'. 13181 # Shell code in configure.ac might set extrasub. 13182 # FIXME: do we really want to maintain this feature? 13183 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13184 ac_sed_extra="$ac_vpsub 13185 $extrasub 13186 _ACEOF 13187 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13188 :t 13189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13190 s|@configure_input@|$ac_sed_conf_input|;t t 13191 s&@top_builddir@&$ac_top_builddir_sub&;t t 13192 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13193 s&@srcdir@&$ac_srcdir&;t t 13194 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13195 s&@top_srcdir@&$ac_top_srcdir&;t t 13196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13197 s&@builddir@&$ac_builddir&;t t 13198 s&@abs_builddir@&$ac_abs_builddir&;t t 13199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13200 s&@INSTALL@&$ac_INSTALL&;t t 13201 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13202 $ac_datarootdir_hack 13203 " 13204 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13205 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13206 13207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13208 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13210 "$ac_tmp/out"`; test -z "$ac_out"; } && 13211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13212 which seems to be undefined. Please make sure it is defined" >&5 13213 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13214 which seems to be undefined. Please make sure it is defined" >&2;} 13215 13216 rm -f "$ac_tmp/stdin" 13217 case $ac_file in 13218 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13219 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13220 esac \ 13221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13222 ;; 13223 :H) 13224 # 13225 # CONFIG_HEADER 13226 # 13227 if test x"$ac_file" != x-; then 13228 { 13229 printf '%s\n' "/* $configure_input */" >&1 \ 13230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13231 } >"$ac_tmp/config.h" \ 13232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13233 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13235 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;} 13236 else 13237 rm -f "$ac_file" 13238 mv "$ac_tmp/config.h" "$ac_file" \ 13239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13240 fi 13241 else 13242 printf '%s\n' "/* $configure_input */" >&1 \ 13243 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13244 || as_fn_error $? "could not create -" "$LINENO" 5 13245 fi 13246 # Compute "$ac_file"'s index in $config_headers. 13247 _am_arg="$ac_file" 13248 _am_stamp_count=1 13249 for _am_header in $config_headers :; do 13250 case $_am_header in 13251 $_am_arg | $_am_arg:* ) 13252 break ;; 13253 * ) 13254 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13255 esac 13256 done 13257 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13258 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13259 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13260 X"$_am_arg" : 'X\(//\)$' \| \ 13261 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13262 printf '%s\n' X"$_am_arg" | 13263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13264 s//\1/ 13265 q 13266 } 13267 /^X\(\/\/\)[^/].*/{ 13268 s//\1/ 13269 q 13270 } 13271 /^X\(\/\/\)$/{ 13272 s//\1/ 13273 q 13274 } 13275 /^X\(\/\).*/{ 13276 s//\1/ 13277 q 13278 } 13279 s/.*/./; q'`/stamp-h$_am_stamp_count 13280 ;; 13281 13282 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13283 printf '%s\n' "$as_me: executing $ac_file commands" >&6;} 13284 ;; 13285 esac 13286 13287 13288 case $ac_file$ac_mode in 13289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13290 # Older Autoconf quotes --file arguments for eval, but not when files 13291 # are listed without --file. Let's play safe and only enable the eval 13292 # if we detect the quoting. 13293 # TODO: see whether this extra hack can be removed once we start 13294 # requiring Autoconf 2.70 or later. 13295 case $CONFIG_FILES in #( 13296 *\'*) : 13297 eval set x "$CONFIG_FILES" ;; #( 13298 *) : 13299 set x $CONFIG_FILES ;; #( 13300 *) : 13301 ;; 13302 esac 13303 shift 13304 # Used to flag and report bootstrapping failures. 13305 am_rc=0 13306 for am_mf 13307 do 13308 # Strip MF so we end up with the name of the file. 13309 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'` 13310 # Check whether this is an Automake generated Makefile which includes 13311 # dependency-tracking related rules and includes. 13312 # Grep'ing the whole file directly is not great: AIX grep has a line 13313 # limit of 2048, but all sed's we know have understand at least 4000. 13314 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13315 || continue 13316 am_dirpart=`$as_dirname -- "$am_mf" || 13317 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13318 X"$am_mf" : 'X\(//\)[^/]' \| \ 13319 X"$am_mf" : 'X\(//\)$' \| \ 13320 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13321 printf '%s\n' X"$am_mf" | 13322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13323 s//\1/ 13324 q 13325 } 13326 /^X\(\/\/\)[^/].*/{ 13327 s//\1/ 13328 q 13329 } 13330 /^X\(\/\/\)$/{ 13331 s//\1/ 13332 q 13333 } 13334 /^X\(\/\).*/{ 13335 s//\1/ 13336 q 13337 } 13338 s/.*/./; q'` 13339 am_filepart=`$as_basename -- "$am_mf" || 13340 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13341 X"$am_mf" : 'X\(//\)$' \| \ 13342 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13343 printf '%s\n' X/"$am_mf" | 13344 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13345 s//\1/ 13346 q 13347 } 13348 /^X\/\(\/\/\)$/{ 13349 s//\1/ 13350 q 13351 } 13352 /^X\/\(\/\).*/{ 13353 s//\1/ 13354 q 13355 } 13356 s/.*/./; q'` 13357 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13358 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13359 | $MAKE -f - am--depfiles" >&5 13360 (cd "$am_dirpart" \ 13361 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13362 | $MAKE -f - am--depfiles) >&5 2>&5 13363 ac_status=$? 13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13365 (exit $ac_status); } || am_rc=$? 13366 done 13367 if test $am_rc -ne 0; then 13368 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13369 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 13370 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13371 for automatic dependency tracking. If GNU make was not used, consider 13372 re-running the configure script with MAKE=\"gmake\" (or whatever is 13373 necessary). You can also try re-running configure with the 13374 '--disable-dependency-tracking' option to at least be able to build 13375 the package (albeit without support for automatic dependency tracking). 13376 See 'config.log' for more details" "$LINENO" 5; } 13377 fi 13378 { am_dirpart=; unset am_dirpart;} 13379 { am_filepart=; unset am_filepart;} 13380 { am_mf=; unset am_mf;} 13381 { am_rc=; unset am_rc;} 13382 rm -f conftest-deps.mk 13383 } 13384 ;; 13385 13386 esac 13387 done # for ac_tag 13388 13389 13390 as_fn_exit 0 13391 _ACEOF 13392 ac_clean_CONFIG_STATUS= 13393 13394 test $ac_write_fail = 0 || 13395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13396 13397 13398 # configure is writing to config.log, and then calls config.status. 13399 # config.status does its own redirection, appending to config.log. 13400 # Unfortunately, on DOS this fails, as config.log is still kept open 13401 # by configure, so config.status won't be able to write to it; its 13402 # output is simply discarded. So we exec the FD to /dev/null, 13403 # effectively closing config.log, so it can be properly (re)opened and 13404 # appended to by config.status. When coming back to configure, we 13405 # need to make the FD available again. 13406 if test "$no_create" != yes; then 13407 ac_cs_success=: 13408 case $CONFIG_STATUS in #( 13409 -*) : 13410 ac_no_opts=-- ;; #( 13411 *) : 13412 ac_no_opts= ;; 13413 esac 13414 ac_config_status_args= 13415 test "$silent" = yes && 13416 ac_config_status_args="$ac_config_status_args --quiet" 13417 exec 5>/dev/null 13418 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args || 13419 ac_cs_success=false 13420 exec 5>>config.log 13421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13422 # would make configure fail if this is the last instruction. 13423 $ac_cs_success || as_fn_exit 1 13424 fi 13425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13427 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13428 fi 13429 13430 13431