1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.73 for xclipboard 1.1.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/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/xclipboard/-/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='xclipboard' 591 PACKAGE_TARNAME='xclipboard' 592 PACKAGE_VERSION='1.1.6' 593 PACKAGE_STRING='xclipboard 1.1.6' 594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issues' 595 PACKAGE_URL='https://gitlab.freedesktop.org/xorg/app/xclipboard/' 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 appdefaultdir 635 APPDEFS_LIBS 636 APPDEFS_CFLAGS 637 XCLIPBOARD_LIBS 638 XCLIPBOARD_CFLAGS 639 MAN_SUBSTS 640 XORG_MAN_PAGE 641 ADMIN_MAN_DIR 642 DRIVER_MAN_DIR 643 MISC_MAN_DIR 644 FILE_MAN_DIR 645 LIB_MAN_DIR 646 APP_MAN_DIR 647 ADMIN_MAN_SUFFIX 648 DRIVER_MAN_SUFFIX 649 MISC_MAN_SUFFIX 650 FILE_MAN_SUFFIX 651 LIB_MAN_SUFFIX 652 APP_MAN_SUFFIX 653 SED 654 host_os 655 host_vendor 656 host_cpu 657 host 658 build_os 659 build_vendor 660 build_cpu 661 build 662 INSTALL_CMD 663 PKG_CONFIG_LIBDIR 664 PKG_CONFIG_PATH 665 PKG_CONFIG 666 CHANGELOG_CMD 667 STRICT_CFLAGS 668 CWARNFLAGS 669 BASE_CFLAGS 670 am__fastdepCC_FALSE 671 am__fastdepCC_TRUE 672 CCDEPMODE 673 am__nodep 674 AMDEPBACKSLASH 675 AMDEP_FALSE 676 AMDEP_TRUE 677 am__include 678 DEPDIR 679 OBJEXT 680 EXEEXT 681 ac_ct_CC 682 CPPFLAGS 683 LDFLAGS 684 CFLAGS 685 CC 686 am__xargs_n 687 am__rm_f_notfound 688 AM_BACKSLASH 689 AM_DEFAULT_VERBOSITY 690 AM_DEFAULT_V 691 AM_V 692 CSCOPE 693 ETAGS 694 CTAGS 695 am__untar 696 am__tar 697 AMTAR 698 am__leading_dot 699 SET_MAKE 700 AWK 701 mkdir_p 702 MKDIR_P 703 INSTALL_STRIP_PROGRAM 704 STRIP 705 install_sh 706 MAKEINFO 707 AUTOHEADER 708 AUTOMAKE 709 AUTOCONF 710 ACLOCAL 711 VERSION 712 PACKAGE 713 CYGPATH_W 714 am__isrc 715 INSTALL_DATA 716 INSTALL_SCRIPT 717 INSTALL_PROGRAM 718 ECHO_T 719 ECHO_N 720 ECHO_C 721 target_alias 722 host_alias 723 build_alias 724 LIBS 725 DEFS 726 mandir 727 localedir 728 libdir 729 psdir 730 pdfdir 731 dvidir 732 htmldir 733 infodir 734 docdir 735 oldincludedir 736 includedir 737 runstatedir 738 localstatedir 739 sharedstatedir 740 sysconfdir 741 datadir 742 datarootdir 743 libexecdir 744 sbindir 745 bindir 746 program_transform_name 747 prefix 748 exec_prefix 749 PACKAGE_URL 750 PACKAGE_BUGREPORT 751 PACKAGE_STRING 752 PACKAGE_VERSION 753 PACKAGE_TARNAME 754 PACKAGE_NAME 755 PATH_SEPARATOR 756 SHELL 757 am__quote' 758 ac_subst_files='' 759 ac_user_opts=' 760 enable_option_checking 761 enable_silent_rules 762 enable_dependency_tracking 763 enable_selective_werror 764 enable_strict_compilation 765 with_appdefaultdir 766 ' 767 ac_precious_vars='build_alias 768 host_alias 769 target_alias 770 CC 771 CFLAGS 772 LDFLAGS 773 LIBS 774 CPPFLAGS 775 PKG_CONFIG 776 PKG_CONFIG_PATH 777 PKG_CONFIG_LIBDIR 778 XCLIPBOARD_CFLAGS 779 XCLIPBOARD_LIBS 780 APPDEFS_CFLAGS 781 APPDEFS_LIBS' 782 783 784 # Initialize some variables set by options. 785 ac_init_help= 786 ac_init_version=false 787 ac_unrecognized_opts= 788 ac_unrecognized_sep= 789 # The variables have the same names as the options, with 790 # dashes changed to underlines. 791 cache_file=/dev/null 792 exec_prefix=NONE 793 no_create= 794 no_recursion= 795 prefix=NONE 796 program_prefix=NONE 797 program_suffix=NONE 798 program_transform_name=s,x,x, 799 silent= 800 site= 801 srcdir= 802 verbose= 803 x_includes=NONE 804 x_libraries=NONE 805 806 # Installation directory options. 807 # These are left unexpanded so users can "make install exec_prefix=/foo" 808 # and all the variables that are supposed to be based on exec_prefix 809 # by default will actually change. 810 # Use braces instead of parens because sh, perl, etc. also accept them. 811 # (The list follows the same order as the GNU Coding Standards.) 812 bindir='${exec_prefix}/bin' 813 sbindir='${exec_prefix}/sbin' 814 libexecdir='${exec_prefix}/libexec' 815 datarootdir='${prefix}/share' 816 datadir='${datarootdir}' 817 sysconfdir='${prefix}/etc' 818 sharedstatedir='${prefix}/com' 819 localstatedir='${prefix}/var' 820 runstatedir='${localstatedir}/run' 821 includedir='${prefix}/include' 822 oldincludedir='/usr/include' 823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824 infodir='${datarootdir}/info' 825 htmldir='${docdir}' 826 dvidir='${docdir}' 827 pdfdir='${docdir}' 828 psdir='${docdir}' 829 libdir='${exec_prefix}/lib' 830 localedir='${datarootdir}/locale' 831 mandir='${datarootdir}/man' 832 833 ac_prev= 834 ac_dashdash= 835 for ac_option 836 do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *=) ac_optarg= ;; 847 *) ac_optarg=yes ;; 848 esac 849 850 case $ac_dashdash$ac_option in 851 --) 852 ac_dashdash=yes ;; 853 854 -bindir | --bindir | --bindi | --bind | --bin | --bi) 855 ac_prev=bindir ;; 856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 857 bindir=$ac_optarg ;; 858 859 -build | --build | --buil | --bui | --bu) 860 ac_prev=build_alias ;; 861 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 862 build_alias=$ac_optarg ;; 863 864 -cache-file | --cache-file | --cache-fil | --cache-fi \ 865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 866 ac_prev=cache_file ;; 867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 869 cache_file=$ac_optarg ;; 870 871 --config-cache | -C) 872 cache_file=config.cache ;; 873 874 -datadir | --datadir | --datadi | --datad) 875 ac_prev=datadir ;; 876 -datadir=* | --datadir=* | --datadi=* | --datad=*) 877 datadir=$ac_optarg ;; 878 879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 880 | --dataroo | --dataro | --datar) 881 ac_prev=datarootdir ;; 882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 884 datarootdir=$ac_optarg ;; 885 886 -disable-* | --disable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: '$ac_useropt'" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895 "enable_$ac_useropt" 896 "*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=no ;; 901 902 -docdir | --docdir | --docdi | --doc | --do) 903 ac_prev=docdir ;; 904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 905 docdir=$ac_optarg ;; 906 907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 908 ac_prev=dvidir ;; 909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 910 dvidir=$ac_optarg ;; 911 912 -enable-* | --enable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: '$ac_useropt'" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921 "enable_$ac_useropt" 922 "*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=\$ac_optarg ;; 927 928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 930 | --exec | --exe | --ex) 931 ac_prev=exec_prefix ;; 932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 934 | --exec=* | --exe=* | --ex=*) 935 exec_prefix=$ac_optarg ;; 936 937 -gas | --gas | --ga | --g) 938 # Obsolete; use --with-gas. 939 with_gas=yes ;; 940 941 -help | --help | --hel | --he | -h) 942 ac_init_help=long ;; 943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 944 ac_init_help=recursive ;; 945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 946 ac_init_help=short ;; 947 948 -host | --host | --hos | --ho) 949 ac_prev=host_alias ;; 950 -host=* | --host=* | --hos=* | --ho=*) 951 host_alias=$ac_optarg ;; 952 953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 954 ac_prev=htmldir ;; 955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 956 | --ht=*) 957 htmldir=$ac_optarg ;; 958 959 -includedir | --includedir | --includedi | --included | --include \ 960 | --includ | --inclu | --incl | --inc) 961 ac_prev=includedir ;; 962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 963 | --includ=* | --inclu=* | --incl=* | --inc=*) 964 includedir=$ac_optarg ;; 965 966 -infodir | --infodir | --infodi | --infod | --info | --inf) 967 ac_prev=infodir ;; 968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 969 infodir=$ac_optarg ;; 970 971 -libdir | --libdir | --libdi | --libd) 972 ac_prev=libdir ;; 973 -libdir=* | --libdir=* | --libdi=* | --libd=*) 974 libdir=$ac_optarg ;; 975 976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 977 | --libexe | --libex | --libe) 978 ac_prev=libexecdir ;; 979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 980 | --libexe=* | --libex=* | --libe=*) 981 libexecdir=$ac_optarg ;; 982 983 -localedir | --localedir | --localedi | --localed | --locale) 984 ac_prev=localedir ;; 985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 986 localedir=$ac_optarg ;; 987 988 -localstatedir | --localstatedir | --localstatedi | --localstated \ 989 | --localstate | --localstat | --localsta | --localst | --locals) 990 ac_prev=localstatedir ;; 991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 993 localstatedir=$ac_optarg ;; 994 995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 996 ac_prev=mandir ;; 997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 998 mandir=$ac_optarg ;; 999 1000 -nfp | --nfp | --nf) 1001 # Obsolete; use --without-fp. 1002 with_fp=no ;; 1003 1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1005 | --no-cr | --no-c | -n) 1006 no_create=yes ;; 1007 1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1010 no_recursion=yes ;; 1011 1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1014 | --oldin | --oldi | --old | --ol | --o) 1015 ac_prev=oldincludedir ;; 1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1019 oldincludedir=$ac_optarg ;; 1020 1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1022 ac_prev=prefix ;; 1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1024 prefix=$ac_optarg ;; 1025 1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1027 | --program-pre | --program-pr | --program-p) 1028 ac_prev=program_prefix ;; 1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1031 program_prefix=$ac_optarg ;; 1032 1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1034 | --program-suf | --program-su | --program-s) 1035 ac_prev=program_suffix ;; 1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1038 program_suffix=$ac_optarg ;; 1039 1040 -program-transform-name | --program-transform-name \ 1041 | --program-transform-nam | --program-transform-na \ 1042 | --program-transform-n | --program-transform- \ 1043 | --program-transform | --program-transfor \ 1044 | --program-transfo | --program-transf \ 1045 | --program-trans | --program-tran \ 1046 | --progr-tra | --program-tr | --program-t) 1047 ac_prev=program_transform_name ;; 1048 -program-transform-name=* | --program-transform-name=* \ 1049 | --program-transform-nam=* | --program-transform-na=* \ 1050 | --program-transform-n=* | --program-transform-=* \ 1051 | --program-transform=* | --program-transfor=* \ 1052 | --program-transfo=* | --program-transf=* \ 1053 | --program-trans=* | --program-tran=* \ 1054 | --progr-tra=* | --program-tr=* | --program-t=*) 1055 program_transform_name=$ac_optarg ;; 1056 1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1058 ac_prev=pdfdir ;; 1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1060 pdfdir=$ac_optarg ;; 1061 1062 -psdir | --psdir | --psdi | --psd | --ps) 1063 ac_prev=psdir ;; 1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1065 psdir=$ac_optarg ;; 1066 1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 | -silent | --silent | --silen | --sile | --sil) 1069 silent=yes ;; 1070 1071 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1072 | --runstate | --runstat | --runsta | --runst | --runs \ 1073 | --run | --ru | --r) 1074 ac_prev=runstatedir ;; 1075 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1076 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1077 | --run=* | --ru=* | --r=*) 1078 runstatedir=$ac_optarg ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: '$ac_useropt'" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134 "with_$ac_useropt" 1135 "*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: '$ac_useropt'" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150 "with_$ac_useropt" 1151 "*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: '$ac_option' 1176 Try '$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198 done 1199 1200 if test -n "$ac_prev"; then 1201 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203 fi 1204 1205 if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211 fi 1212 1213 # Check all directory arguments for consistency. 1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir runstatedir 1218 do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232 done 1233 1234 # There might be people who depend on the old broken behavior: '$host' 1235 # used to hold the argument of --host etc. 1236 # FIXME: To remove some day. 1237 build=$build_alias 1238 host=$host_alias 1239 target=$target_alias 1240 1241 # FIXME: To remove some day. 1242 if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248 fi 1249 1250 ac_tool_prefix= 1251 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253 test "$silent" = yes && exec 6>/dev/null 1254 1255 1256 ac_pwd=`pwd` && test -n "$ac_pwd" && 1257 ac_ls_di=`ls -di .` && 1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 as_fn_error $? "working directory cannot be determined" 1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 as_fn_error $? "pwd does not report name of working directory" 1262 1263 1264 # Find the source files, if location was not specified. 1265 if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$as_myself" || 1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$as_myself" : 'X\(//\)[^/]' \| \ 1271 X"$as_myself" : 'X\(//\)$' \| \ 1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1273 printf '%s\n' X"$as_myself" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295 else 1296 ac_srcdir_defaulted=no 1297 fi 1298 if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1301 fi 1302 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1303 ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1305 pwd)` 1306 # When building in place, set srcdir=. 1307 if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309 fi 1310 # Remove unnecessary trailing slashes from srcdir. 1311 # Double slashes in file names in object file debugging info 1312 # mess up M-x gdb in Emacs. 1313 case $srcdir in 1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315 esac 1316 for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321 done 1322 1323 # 1324 # Report the --help message. 1325 # 1326 if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330 'configure' configures xclipboard 1.1.6 to adapt to many kinds of systems. 1331 1332 Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335 VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337 Defaults for the options are specified in brackets. 1338 1339 Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print 'checking ...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for '--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1349 1350 Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356 By default, 'make install' will install all the files in 1357 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1358 an installation prefix other than '$ac_default_prefix' using '--prefix', 1359 for instance '--prefix=\$HOME'. 1360 1361 For better control, use the options below. 1362 1363 Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/xclipboard] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384 _ACEOF 1385 1386 cat <<\_ACEOF 1387 1388 Program names: 1389 --program-prefix=PREFIX prepend PREFIX to installed program names 1390 --program-suffix=SUFFIX append SUFFIX to installed program names 1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392 1393 System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396 _ACEOF 1397 fi 1398 1399 if test -n "$ac_init_help"; then 1400 case $ac_init_help in 1401 short | recursive ) echo "Configuration of xclipboard 1.1.6:";; 1402 esac 1403 cat <<\_ACEOF 1404 1405 Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-silent-rules less verbose build output (undo: "make V=1") 1410 --disable-silent-rules verbose build output (undo: "make V=0") 1411 --enable-dependency-tracking 1412 do not reject slow dependency extractors 1413 --disable-dependency-tracking 1414 speeds up one-time build 1415 --disable-selective-werror 1416 Turn off selective compiler errors. (default: 1417 enabled) 1418 --enable-strict-compilation 1419 Enable all warnings from compiler and make them 1420 errors (default: disabled) 1421 1422 Optional Packages: 1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1425 --with-appdefaultdir=<pathname> 1426 specify directory for app-defaults files (default is 1427 autodetected) 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 XCLIPBOARD_CFLAGS 1443 C compiler flags for XCLIPBOARD, overriding pkg-config 1444 XCLIPBOARD_LIBS 1445 linker flags for XCLIPBOARD, overriding pkg-config 1446 APPDEFS_CFLAGS 1447 C compiler flags for APPDEFS, overriding pkg-config 1448 APPDEFS_LIBS 1449 linker flags for APPDEFS, overriding pkg-config 1450 1451 Use these variables to override the choices made by 'configure' or to help 1452 it to find libraries and programs with nonstandard names/locations. 1453 1454 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issues>. 1455 xclipboard home page: <https://gitlab.freedesktop.org/xorg/app/xclipboard/>. 1456 _ACEOF 1457 ac_status=$? 1458 fi 1459 1460 if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468 case "$ac_dir" in 1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) 1471 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478 esac 1479 ac_abs_top_builddir=$ac_pwd 1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481 # for backward compatibility: 1482 ac_top_builddir=$ac_top_build_prefix 1483 1484 case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497 esac 1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for configure.gnu first; this name is used for a wrapper for 1502 # Metaconfig's "Configure" on case-insensitive file systems. 1503 if test -f "$ac_srcdir/configure.gnu"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1506 elif test -f "$ac_srcdir/configure"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure" --help=recursive 1509 else 1510 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1511 fi || ac_status=$? 1512 cd "$ac_pwd" || { ac_status=$?; break; } 1513 done 1514 fi 1515 1516 test -n "$ac_init_help" && exit $ac_status 1517 if $ac_init_version; then 1518 cat <<\_ACEOF 1519 xclipboard configure 1.1.6 1520 generated by GNU Autoconf 2.73 1521 1522 Copyright (C) 2026 Free Software Foundation, Inc. 1523 This configure script is free software; the Free Software Foundation 1524 gives unlimited permission to copy, distribute and modify it. 1525 _ACEOF 1526 exit 1527 fi 1528 1529 ## ------------------------ ## 1530 ## Autoconf initialization. ## 1531 ## ------------------------ ## 1532 1533 # ac_fn_c_try_compile LINENO 1534 # -------------------------- 1535 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1536 ac_fn_c_try_compile () 1537 { 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext conftest.beam 1540 if { { ac_try="$ac_compile" 1541 case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544 esac 1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546 printf '%s\n' "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext 1559 then : 1560 ac_retval=0 1561 else case e in #( 1562 e) printf '%s\n' "$as_me: failed program was:" >&5 1563 sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 ;; 1566 esac 1567 fi 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1569 as_fn_set_status $ac_retval 1570 1571 } # ac_fn_c_try_compile 1572 1573 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1574 # ------------------------------------------------------------------ 1575 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1576 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1577 ac_fn_check_decl () 1578 { 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 as_decl_name=`echo $2|sed 's/ *(.*//'` 1581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1582 printf %s "checking whether $as_decl_name is declared... " >&6; } 1583 if eval test \${$3+y} 1584 then : 1585 printf %s "(cached) " >&6 1586 else case e in #( 1587 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1588 eval ac_save_FLAGS=\$$6 1589 as_fn_append $6 " $5" 1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1591 /* end confdefs.h. */ 1592 $4 1593 int 1594 main (void) 1595 { 1596 #ifndef $as_decl_name 1597 #ifdef __cplusplus 1598 (void) $as_decl_use; 1599 #else 1600 (void) $as_decl_name; 1601 #endif 1602 #endif 1603 1604 ; 1605 return 0; 1606 } 1607 _ACEOF 1608 if ac_fn_c_try_compile "$LINENO" 1609 then : 1610 eval "$3=yes" 1611 else case e in #( 1612 e) eval "$3=no" ;; 1613 esac 1614 fi 1615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1616 eval $6=\$ac_save_FLAGS 1617 ;; 1618 esac 1619 fi 1620 eval ac_res=\$$3 1621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622 printf '%s\n' "$ac_res" >&6; } 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 1625 } # ac_fn_check_decl 1626 1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1628 # ------------------------------------------------------- 1629 # Tests whether HEADER exists and can be compiled using the include files in 1630 # INCLUDES, setting the cache variable VAR accordingly. 1631 ac_fn_c_check_header_compile () 1632 { 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1635 printf %s "checking for $2... " >&6; } 1636 if eval test \${$3+y} 1637 then : 1638 printf %s "(cached) " >&6 1639 else case e in #( 1640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641 /* end confdefs.h. */ 1642 $4 1643 #include <$2> 1644 _ACEOF 1645 if ac_fn_c_try_compile "$LINENO" 1646 then : 1647 eval "$3=yes" 1648 else case e in #( 1649 e) eval "$3=no" ;; 1650 esac 1651 fi 1652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1653 esac 1654 fi 1655 eval ac_res=\$$3 1656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1657 printf '%s\n' "$ac_res" >&6; } 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 1660 } # ac_fn_c_check_header_compile 1661 1662 # ac_fn_c_try_link LINENO 1663 # ----------------------- 1664 # Try to link conftest.$ac_ext, and return whether this succeeded. 1665 ac_fn_c_try_link () 1666 { 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670 case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673 esac 1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675 printf '%s\n' "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 test -x conftest$ac_exeext 1690 } 1691 then : 1692 ac_retval=0 1693 else case e in #( 1694 e) printf '%s\n' "$as_me: failed program was:" >&5 1695 sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 ;; 1698 esac 1699 fi 1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1702 # interfere with the next link command; also delete a directory that is 1703 # left behind by Apple's compiler. We do this before executing the actions. 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708 } # ac_fn_c_try_link 1709 ac_configure_args_raw= 1710 for ac_arg 1711 do 1712 case $ac_arg in 1713 *\'*) 1714 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1715 esac 1716 as_fn_append ac_configure_args_raw " '$ac_arg'" 1717 done 1718 1719 case $ac_configure_args_raw in 1720 *$as_nl*) 1721 ac_safe_unquote= ;; 1722 *) 1723 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1724 ac_unsafe_a="$ac_unsafe_z#~" 1725 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1726 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1727 esac 1728 1729 cat >config.log <<_ACEOF 1730 This file contains any messages produced by compilers while 1731 running configure, to aid debugging if configure makes a mistake. 1732 1733 It was created by xclipboard $as_me 1.1.6, which was 1734 generated by GNU Autoconf 2.73. Invocation command line was 1735 1736 $ $0$ac_configure_args_raw 1737 1738 _ACEOF 1739 exec 5>>config.log 1740 { 1741 cat <<_ASUNAME 1742 ## --------- ## 1743 ## Platform. ## 1744 ## --------- ## 1745 1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1747 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1748 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1749 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1750 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1751 1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1754 1755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1762 1763 _ASUNAME 1764 1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1766 for as_dir in $PATH 1767 do 1768 IFS=$as_save_IFS 1769 case $as_dir in #((( 1770 '') as_dir=./ ;; 1771 */) ;; 1772 *) as_dir=$as_dir/ ;; 1773 esac 1774 printf '%s\n' "PATH: $as_dir" 1775 done 1776 IFS=$as_save_IFS 1777 1778 } >&5 1779 1780 cat >&5 <<_ACEOF 1781 1782 1783 ## ----------- ## 1784 ## Core tests. ## 1785 ## ----------- ## 1786 1787 _ACEOF 1788 1789 1790 # Keep a trace of the command line. 1791 # Strip out --no-create and --no-recursion so they do not pile up. 1792 # Strip out --silent because we don't want to record it for future runs. 1793 # Also quote any args containing shell meta-characters. 1794 # Make two passes to allow for proper duplicate-argument suppression. 1795 ac_configure_args= 1796 ac_configure_args0= 1797 ac_configure_args1= 1798 ac_must_keep_next=false 1799 for ac_pass in 1 2 1800 do 1801 for ac_arg 1802 do 1803 case $ac_arg in 1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1806 | -silent | --silent | --silen | --sile | --sil) 1807 continue ;; 1808 *\'*) 1809 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1810 esac 1811 case $ac_pass in 1812 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1813 2) 1814 as_fn_append ac_configure_args1 " '$ac_arg'" 1815 if test $ac_must_keep_next = true; then 1816 ac_must_keep_next=false # Got value, back to normal. 1817 else 1818 case $ac_arg in 1819 *=* | --config-cache | -C | -disable-* | --disable-* \ 1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1822 | -with-* | --with-* | -without-* | --without-* | --x) 1823 case "$ac_configure_args0 " in 1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1825 esac 1826 ;; 1827 -* ) ac_must_keep_next=true ;; 1828 esac 1829 fi 1830 as_fn_append ac_configure_args " '$ac_arg'" 1831 ;; 1832 esac 1833 done 1834 done 1835 { ac_configure_args0=; unset ac_configure_args0;} 1836 { ac_configure_args1=; unset ac_configure_args1;} 1837 1838 # Dump the cache to stdout. It can be in a pipe (this is a requirement). 1839 ac_cache_dump () 1840 { 1841 # The following way of writing the cache mishandles newlines in values, 1842 # but we know of no workaround that is simple, portable, and efficient. 1843 # So, we kill variables containing newlines. 1844 # Ultrix sh set writes to stderr and can't be redirected directly, 1845 # and sets the high bit in the cache file unless we assign to the vars. 1846 ( 1847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 1848 eval ac_val=\$$ac_var 1849 case $ac_val in #( 1850 *${as_nl}*) 1851 case $ac_var in #( 1852 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1853 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1854 esac 1855 case $ac_var in #( 1856 _ | IFS | as_nl) ;; #( 1857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1858 *) { eval $ac_var=; unset $ac_var;} ;; 1859 esac ;; 1860 esac 1861 done 1862 1863 (set) 2>&1 | 1864 case $as_nl`(ac_space=' '; set) 2>&1` in #( 1865 *${as_nl}ac_space=\ *) 1866 # 'set' does not quote correctly, so add quotes: double-quote 1867 # substitution turns \\\\ into \\, and sed turns \\ into \. 1868 sed -n \ 1869 "s/'/'\\\\''/g; 1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1871 ;; #( 1872 *) 1873 # 'set' quotes correctly as required by POSIX, so do not add quotes. 1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1875 ;; 1876 esac | 1877 sort 1878 ) 1879 } 1880 1881 # Print debugging info to stdout. 1882 ac_dump_debugging_info () 1883 { 1884 echo 1885 1886 printf '%s\n' "## ---------------- ## 1887 ## Cache variables. ## 1888 ## ---------------- ##" 1889 echo 1890 ac_cache_dump 1891 echo 1892 1893 printf '%s\n' "## ----------------- ## 1894 ## Output variables. ## 1895 ## ----------------- ##" 1896 echo 1897 for ac_var in $ac_subst_vars 1898 do 1899 eval ac_val=\$$ac_var 1900 case $ac_val in 1901 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1902 esac 1903 printf '%s\n' "$ac_var='$ac_val'" 1904 done | sort 1905 echo 1906 1907 if test -n "$ac_subst_files"; then 1908 printf '%s\n' "## ------------------- ## 1909 ## File substitutions. ## 1910 ## ------------------- ##" 1911 echo 1912 for ac_var in $ac_subst_files 1913 do 1914 eval ac_val=\$$ac_var 1915 case $ac_val in 1916 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 1917 esac 1918 printf '%s\n' "$ac_var='$ac_val'" 1919 done | sort 1920 echo 1921 fi 1922 1923 if test -s confdefs.h; then 1924 printf '%s\n' "## ----------- ## 1925 ## confdefs.h. ## 1926 ## ----------- ##" 1927 echo 1928 cat confdefs.h 1929 echo 1930 fi 1931 test "$ac_signal" != 0 && 1932 printf '%s\n' "$as_me: caught signal $ac_signal" 1933 printf '%s\n' "$as_me: exit $exit_status" 1934 } 1935 1936 # When interrupted or exit'd, cleanup temporary files, and complete 1937 # config.log. 1938 ac_exit_trap () 1939 { 1940 exit_status= 1941 # Sanitize IFS. 1942 IFS=" "" $as_nl" 1943 # Save into config.log some information that might help in debugging. 1944 ac_dump_debugging_info >&5 1945 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" && 1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1947 exit $exit_status 1948 } 1949 1950 trap 'ac_exit_trap $?' 0 1951 for ac_signal in 1 2 13 15; do 1952 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1953 done 1954 ac_signal=0 1955 1956 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1957 rm -f -r conftest* confdefs.h 1958 1959 printf '%s\n' "/* confdefs.h */" > confdefs.h 1960 1961 # Predefined preprocessor variables. 1962 1963 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1964 1965 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1966 1967 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1968 1969 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1970 1971 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1972 1973 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1974 1975 1976 # Let the site file select an alternate cache file if it wants to. 1977 # Prefer an explicitly selected file to automatically selected ones. 1978 if test -n "$CONFIG_SITE"; then 1979 ac_site_files="$CONFIG_SITE" 1980 elif test "x$prefix" != xNONE; then 1981 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1982 else 1983 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1984 fi 1985 1986 for ac_site_file in $ac_site_files 1987 do 1988 case $ac_site_file in #( 1989 */*) : 1990 ;; #( 1991 *) : 1992 ac_site_file=./$ac_site_file ;; 1993 esac 1994 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1996 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;} 1997 sed 's/^/| /' "$ac_site_file" >&5 1998 . "$ac_site_file" \ 1999 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2000 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2001 as_fn_error $? "failed to load site script $ac_site_file 2002 See 'config.log' for more details" "$LINENO" 5; } 2003 fi 2004 done 2005 2006 if test -r "$cache_file"; then 2007 # Some versions of bash will fail to source /dev/null (special files 2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2011 printf '%s\n' "$as_me: loading cache $cache_file" >&6;} 2012 case $cache_file in 2013 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2014 *) . "./$cache_file";; 2015 esac 2016 fi 2017 else 2018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2019 printf '%s\n' "$as_me: creating cache $cache_file" >&6;} 2020 >$cache_file 2021 fi 2022 2023 # Test code for whether the C compiler supports C23 (global declarations) 2024 ac_c_conftest_c23_globals=' 2025 /* Does the compiler advertise conformance to C17 or earlier? 2026 Although GCC 14 does not do that, even with -std=gnu23, 2027 it is close enough, and defines __STDC_VERSION == 202000L. */ 2028 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L 2029 # error "Compiler advertises conformance to C17 or earlier" 2030 #endif 2031 2032 // Check alignas. 2033 char alignas (double) c23_aligned_as_double; 2034 char alignas (0) c23_no_special_alignment; 2035 extern char c23_aligned_as_int; 2036 char alignas (0) alignas (int) c23_aligned_as_int; 2037 2038 // Check alignof. 2039 enum 2040 { 2041 c23_int_alignment = alignof (int), 2042 c23_int_array_alignment = alignof (int[100]), 2043 c23_char_alignment = alignof (char) 2044 }; 2045 static_assert (0 < -alignof (int), "alignof is signed"); 2046 2047 int function_with_unnamed_parameter (int) { return 0; } 2048 2049 void c23_noreturn (); 2050 2051 /* Test parsing of string and char UTF-8 literals (including hex escapes). 2052 The parens pacify GCC 15. */ 2053 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\''); 2054 2055 bool check_that_bool_works = true | false | !nullptr; 2056 #if !true 2057 # error "true does not work in #if" 2058 #endif 2059 #if false 2060 #elifdef __STDC_VERSION__ 2061 #else 2062 # error "#elifdef does not work" 2063 #endif 2064 2065 #ifndef __has_c_attribute 2066 # error "__has_c_attribute not defined" 2067 #endif 2068 2069 #ifndef __has_include 2070 # error "__has_include not defined" 2071 #endif 2072 2073 #define LPAREN() ( 2074 #define FORTY_TWO(x) 42 2075 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x)) 2076 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42); 2077 2078 static_assert (0b101010 == 42); 2079 static_assert (0B101010 == 42); 2080 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559); 2081 static_assert (0.500'\''000'\''000 == 0.5); 2082 2083 enum unsignedish : unsigned int { uione = 1 }; 2084 static_assert (0 < -uione); 2085 2086 #include <stddef.h> 2087 constexpr nullptr_t null_pointer = nullptr; 2088 2089 static typeof (1 + 1L) two () { return 2; } 2090 static long int three () { return 3; } 2091 ' 2092 2093 # Test code for whether the C compiler supports C23 (body of main). 2094 ac_c_conftest_c23_main=' 2095 { 2096 label_before_declaration: 2097 int arr[10] = {}; 2098 if (arr[0]) 2099 goto label_before_declaration; 2100 if (!arr[0]) 2101 goto label_at_end_of_block; 2102 label_at_end_of_block: 2103 } 2104 ok |= !null_pointer; 2105 ok |= two != three; 2106 ' 2107 2108 # Test code for whether the C compiler supports C23 (complete). 2109 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals} 2110 2111 int 2112 main (int, char **) 2113 { 2114 int ok = 0; 2115 ${ac_c_conftest_c23_main} 2116 return ok; 2117 } 2118 " 2119 2120 # Test code for whether the C compiler supports C89 (global declarations) 2121 ac_c_conftest_c89_globals=' 2122 /* Do not test the value of __STDC__, because some compilers define it to 0 2123 or do not define it, while otherwise adequately conforming. */ 2124 2125 #include <stddef.h> 2126 #include <stdarg.h> 2127 struct stat; 2128 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2129 struct buf { int x; }; 2130 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2131 static char *e (char **p, int i) 2132 { 2133 return p[i]; 2134 } 2135 static char *f (char * (*g) (char **, int), char **p, ...) 2136 { 2137 char *s; 2138 va_list v; 2139 va_start (v,p); 2140 s = g (p, va_arg (v,int)); 2141 va_end (v); 2142 return s; 2143 } 2144 2145 /* C89 style stringification. */ 2146 #define noexpand_stringify(a) #a 2147 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2148 2149 /* C89 style token pasting. Exercises some of the corner cases that 2150 e.g. old MSVC gets wrong, but not very hard. */ 2151 #define noexpand_concat(a,b) a##b 2152 #define expand_concat(a,b) noexpand_concat(a,b) 2153 extern int vA; 2154 extern int vbee; 2155 #define aye A 2156 #define bee B 2157 int *pvA = &expand_concat(v,aye); 2158 int *pvbee = &noexpand_concat(v,bee); 2159 2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2161 function prototypes and stuff, but not \xHH hex character constants. 2162 These do not provoke an error unfortunately, instead are silently treated 2163 as an "x". The following induces an error, until -std is added to get 2164 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2165 array size at least. It is necessary to write \x00 == 0 to get something 2166 that is true only with -std. */ 2167 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2168 2169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2170 inside strings and character constants. */ 2171 #define FOO(x) '\''x'\'' 2172 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2173 2174 int test (int i, double x); 2175 struct s1 {int (*f) (int a);}; 2176 struct s2 {int (*f) (double a);}; 2177 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2178 int, int);' 2179 2180 # Test code for whether the C compiler supports C89 (body of main). 2181 ac_c_conftest_c89_main=' 2182 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2183 ' 2184 2185 # Test code for whether the C compiler supports C99 (global declarations) 2186 ac_c_conftest_c99_globals=' 2187 /* Does the compiler advertise C99 conformance? */ 2188 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2189 # error "Compiler does not advertise C99 conformance" 2190 #endif 2191 2192 // See if C++-style comments work. 2193 2194 #include <stdbool.h> 2195 extern int puts (const char *); 2196 extern int printf (const char *, ...); 2197 extern int dprintf (int, const char *, ...); 2198 extern void *malloc (size_t); 2199 extern void free (void *); 2200 2201 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2202 // dprintf is used instead of fprintf to avoid needing to declare 2203 // FILE and stderr, and "aND" is used instead of "and" to work around 2204 // GCC bug 40564 which is irrelevant here. 2205 #define debug(...) dprintf (2, __VA_ARGS__) 2206 #define showlist(...) puts (#__VA_ARGS__) 2207 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2208 static void 2209 test_varargs_macros (void) 2210 { 2211 int x = 1234; 2212 int y = 5678; 2213 debug ("Flag"); 2214 debug ("X = %d\n", x); 2215 showlist (The first, second, aND third items.); 2216 report (x>y, "x is %d but y is %d", x, y); 2217 } 2218 2219 // Check long long types. 2220 #define BIG64 18446744073709551615ull 2221 #define BIG32 4294967295ul 2222 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2223 #if !BIG_OK 2224 #error "your preprocessor is broken" 2225 #endif 2226 #if BIG_OK 2227 #else 2228 #error "your preprocessor is broken" 2229 #endif 2230 static long long int bignum = -9223372036854775807LL; 2231 static unsigned long long int ubignum = BIG64; 2232 2233 struct incomplete_array 2234 { 2235 int datasize; 2236 double data[]; 2237 }; 2238 2239 struct named_init { 2240 int number; 2241 const wchar_t *name; 2242 double average; 2243 }; 2244 2245 typedef const char *ccp; 2246 2247 static inline int 2248 test_restrict (ccp restrict text) 2249 { 2250 // Iterate through items via the restricted pointer. 2251 // Also check for declarations in for loops. 2252 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2253 continue; 2254 return 0; 2255 } 2256 2257 // Check varargs and va_copy. 2258 static bool 2259 test_varargs (const char *format, ...) 2260 { 2261 va_list args; 2262 va_start (args, format); 2263 va_list args_copy; 2264 va_copy (args_copy, args); 2265 2266 const char *str = ""; 2267 int number = 0; 2268 float fnumber = 0; 2269 2270 while (*format) 2271 { 2272 switch (*format++) 2273 { 2274 case '\''s'\'': // string 2275 str = va_arg (args_copy, const char *); 2276 break; 2277 case '\''d'\'': // int 2278 number = va_arg (args_copy, int); 2279 break; 2280 case '\''f'\'': // float 2281 fnumber = va_arg (args_copy, double); 2282 break; 2283 default: 2284 break; 2285 } 2286 } 2287 va_end (args_copy); 2288 va_end (args); 2289 2290 return *str && number && fnumber; 2291 } 2292 ' 2293 2294 # Test code for whether the C compiler supports C99 (body of main). 2295 ac_c_conftest_c99_main=' 2296 // Check bool. 2297 _Bool success = false; 2298 success |= (argc != 0); 2299 2300 // Check restrict. 2301 if (test_restrict ("String literal") == 0) 2302 success = true; 2303 const char *restrict newvar = "Another string"; 2304 2305 // Check varargs. 2306 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2307 test_varargs_macros (); 2308 2309 // Check flexible array members. 2310 static struct incomplete_array *volatile incomplete_array_pointer; 2311 struct incomplete_array *ia = incomplete_array_pointer; 2312 ia->datasize = 10; 2313 for (int i = 0; i < ia->datasize; ++i) 2314 ia->data[i] = i * 1.234; 2315 // Work around memory leak warnings. 2316 free (ia); 2317 2318 // Check named initializers. 2319 struct named_init ni = { 2320 .number = 34, 2321 .name = L"Test wide string", 2322 .average = 543.34343, 2323 }; 2324 2325 ni.number = 58; 2326 2327 // Do not test for VLAs, as some otherwise-conforming compilers lack them. 2328 // C code should instead use __STDC_NO_VLA__; see Autoconf manual. 2329 2330 // work around unused variable warnings 2331 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2332 || ni.number != 58); 2333 ' 2334 2335 # Test code for whether the C compiler supports C11 (global declarations) 2336 ac_c_conftest_c11_globals=' 2337 /* Does the compiler advertise C11 conformance? */ 2338 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2339 # error "Compiler does not advertise C11 conformance" 2340 #endif 2341 2342 // Check _Alignas. 2343 char _Alignas (double) aligned_as_double; 2344 char _Alignas (0) no_special_alignment; 2345 extern char aligned_as_int; 2346 char _Alignas (0) _Alignas (int) aligned_as_int; 2347 2348 // Check _Alignof. 2349 enum 2350 { 2351 int_alignment = _Alignof (int), 2352 int_array_alignment = _Alignof (int[100]), 2353 char_alignment = _Alignof (char) 2354 }; 2355 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2356 2357 // Check _Noreturn. 2358 int _Noreturn does_not_return (void) { for (;;) continue; } 2359 2360 // Check _Static_assert. 2361 struct test_static_assert 2362 { 2363 int x; 2364 _Static_assert (sizeof (int) <= sizeof (long int), 2365 "_Static_assert does not work in struct"); 2366 long int y; 2367 }; 2368 2369 // Check UTF-8 literals. 2370 #define u8 syntax error! 2371 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2372 2373 // Check duplicate typedefs. 2374 typedef long *long_ptr; 2375 typedef long int *long_ptr; 2376 typedef long_ptr long_ptr; 2377 2378 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2379 struct anonymous 2380 { 2381 union { 2382 struct { int i; int j; }; 2383 struct { int k; long int l; } w; 2384 }; 2385 int m; 2386 } v1; 2387 ' 2388 2389 # Test code for whether the C compiler supports C11 (body of main). 2390 ac_c_conftest_c11_main=' 2391 _Static_assert ((offsetof (struct anonymous, i) 2392 == offsetof (struct anonymous, w.k)), 2393 "Anonymous union alignment botch"); 2394 v1.i = 2; 2395 v1.w.k = 5; 2396 ok |= v1.i != 5; 2397 ' 2398 2399 # Test code for whether the C compiler supports C11 (complete). 2400 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2401 ${ac_c_conftest_c99_globals} 2402 ${ac_c_conftest_c11_globals} 2403 2404 int 2405 main (int argc, char **argv) 2406 { 2407 int ok = 0; 2408 ${ac_c_conftest_c89_main} 2409 ${ac_c_conftest_c99_main} 2410 ${ac_c_conftest_c11_main} 2411 return ok; 2412 } 2413 " 2414 2415 # Test code for whether the C compiler supports C99 (complete). 2416 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2417 ${ac_c_conftest_c99_globals} 2418 2419 int 2420 main (int argc, char **argv) 2421 { 2422 int ok = 0; 2423 ${ac_c_conftest_c89_main} 2424 ${ac_c_conftest_c99_main} 2425 return ok; 2426 } 2427 " 2428 2429 # Test code for whether the C compiler supports C89 (complete). 2430 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2431 2432 int 2433 main (int argc, char **argv) 2434 { 2435 int ok = 0; 2436 ${ac_c_conftest_c89_main} 2437 return ok; 2438 } 2439 " 2440 2441 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2442 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2443 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2444 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2445 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2446 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2447 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2448 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2449 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2450 2451 # Auxiliary files required by this configure script. 2452 ac_aux_files="config.guess config.sub compile missing install-sh" 2453 2454 # Locations in which to look for auxiliary files. 2455 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2456 2457 # Search for a directory containing all of the required auxiliary files, 2458 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2459 # If we don't find one directory that contains all the files we need, 2460 # we report the set of missing files from the *first* directory in 2461 # $ac_aux_dir_candidates and give up. 2462 ac_missing_aux_files="" 2463 ac_first_candidate=: 2464 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466 as_found=false 2467 for as_dir in $ac_aux_dir_candidates 2468 do 2469 IFS=$as_save_IFS 2470 case $as_dir in #((( 2471 '') as_dir=./ ;; 2472 */) ;; 2473 *) as_dir=$as_dir/ ;; 2474 esac 2475 as_found=: 2476 2477 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2478 ac_aux_dir_found=yes 2479 ac_install_sh= 2480 for ac_aux in $ac_aux_files 2481 do 2482 # As a special case, if "install-sh" is required, that requirement 2483 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2484 # and $ac_install_sh is set appropriately for whichever one is found. 2485 if test x"$ac_aux" = x"install-sh" 2486 then 2487 if 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}install.sh"; then 2491 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2492 ac_install_sh="${as_dir}install.sh -c" 2493 elif test -f "${as_dir}shtool"; then 2494 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2495 ac_install_sh="${as_dir}shtool install -c" 2496 else 2497 ac_aux_dir_found=no 2498 if $ac_first_candidate; then 2499 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2500 else 2501 break 2502 fi 2503 fi 2504 else 2505 if test -f "${as_dir}${ac_aux}"; then 2506 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2507 else 2508 ac_aux_dir_found=no 2509 if $ac_first_candidate; then 2510 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2511 else 2512 break 2513 fi 2514 fi 2515 fi 2516 done 2517 if test "$ac_aux_dir_found" = yes; then 2518 ac_aux_dir="$as_dir" 2519 break 2520 fi 2521 ac_first_candidate=false 2522 2523 as_found=false 2524 done 2525 IFS=$as_save_IFS 2526 if $as_found 2527 then : 2528 2529 else case e in #( 2530 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2531 esac 2532 fi 2533 2534 2535 # These three variables are undocumented and unsupported, 2536 # and are intended to be withdrawn in a future Autoconf release. 2537 # They can cause serious problems if a builder's source tree is in a directory 2538 # whose full name contains unusual characters. 2539 if test -f "${ac_aux_dir}config.guess"; then 2540 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2541 fi 2542 if test -f "${ac_aux_dir}config.sub"; then 2543 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2544 fi 2545 if test -f "$ac_aux_dir/configure"; then 2546 ac_configure="$SHELL ${ac_aux_dir}configure" 2547 fi 2548 2549 # Check that the precious variables saved in the cache have kept the same 2550 # value. 2551 ac_cache_corrupted=false 2552 for ac_var in $ac_precious_vars; do 2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2554 eval ac_new_set=\$ac_env_${ac_var}_set 2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2556 eval ac_new_val=\$ac_env_${ac_var}_value 2557 case $ac_old_set,$ac_new_set in 2558 set,) 2559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2560 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2561 ac_cache_corrupted=: ;; 2562 ,set) 2563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2564 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,);; 2567 *) 2568 if test "x$ac_old_val" != "x$ac_new_val"; then 2569 # differences in whitespace do not lead to failure. 2570 ac_old_val_w= 2571 for ac_val in x $ac_old_val; do 2572 ac_old_val_w="$ac_old_val_w $ac_val" 2573 done 2574 ac_new_val_w= 2575 for ac_val in x $ac_new_val; do 2576 ac_new_val_w="$ac_new_val_w $ac_val" 2577 done 2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2580 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2581 ac_cache_corrupted=: 2582 else 2583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2584 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2585 eval $ac_var=\$ac_old_val 2586 fi 2587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2588 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;} 2589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2590 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;} 2591 fi;; 2592 esac 2593 # Pass precious variables to config.status. 2594 if test "$ac_new_set" = set; then 2595 case $ac_new_val in 2596 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2597 *) ac_arg=$ac_var=$ac_new_val ;; 2598 esac 2599 case " $ac_configure_args " in 2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2602 esac 2603 fi 2604 done 2605 if $ac_cache_corrupted; then 2606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2607 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2609 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;} 2610 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2611 and start over" "$LINENO" 5 2612 fi 2613 ## -------------------- ## 2614 ## Main body of script. ## 2615 ## -------------------- ## 2616 2617 2618 # Determine whether it's possible to make 'echo' print without a newline. 2619 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 2620 # for compatibility with existing Makefiles. 2621 ECHO_C= ECHO_N= ECHO_T= 2622 case `echo -n x` in #((((( 2623 -n*) 2624 case `echo 'xy\c'` in 2625 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2626 xy) ECHO_C='\c';; 2627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2628 ECHO_T=' ';; 2629 esac;; 2630 *) 2631 ECHO_N='-n';; 2632 esac 2633 2634 ac_ext=c 2635 ac_cpp='$CPP $CPPFLAGS' 2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2639 2640 2641 2642 ac_config_headers="$ac_config_headers config.h" 2643 2644 2645 # Initialize Automake 2646 am__api_version='1.18' 2647 2648 2649 2650 # Find a good install program. We prefer a C program (faster), 2651 # so one script is as good as another. But avoid the broken or 2652 # incompatible versions: 2653 # SysV /etc/install, /usr/sbin/install 2654 # SunOS /usr/etc/install 2655 # IRIX /sbin/install 2656 # AIX /bin/install 2657 # AmigaOS /C/install, which installs bootblocks on floppy discs 2658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2661 # OS/2's system install, which has a completely different semantic 2662 # ./install, which can be erroneously created by make from ./install.sh. 2663 # Reject install programs that cannot install multiple files. 2664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2665 printf %s "checking for a BSD-compatible install... " >&6; } 2666 if test -z "$INSTALL"; then 2667 if test ${ac_cv_path_install+y} 2668 then : 2669 printf %s "(cached) " >&6 2670 else case e in #( 2671 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672 for as_dir in $PATH 2673 do 2674 IFS=$as_save_IFS 2675 case $as_dir in #((( 2676 '') as_dir=./ ;; 2677 */) ;; 2678 *) as_dir=$as_dir/ ;; 2679 esac 2680 # Account for fact that we put trailing slashes in our PATH walk. 2681 case $as_dir in #(( 2682 ./ | /[cC]/* | \ 2683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2685 /usr/ucb/* ) ;; 2686 *) 2687 # OSF/1 and SCO ODT 3.0 have their own names for install. 2688 # Don't use installbsd from OSF/1 since it installs stuff as root 2689 # by default. 2690 for ac_prog in ginstall scoinst install; do 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2693 if test $ac_prog = install && 2694 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # AIX install. It has an incompatible calling convention. 2696 : 2697 elif test $ac_prog = install && 2698 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # program-specific install script used by HP pwplus--don't use. 2700 : 2701 else 2702 rm -rf conftest.one conftest.two conftest.dir 2703 echo one > conftest.one 2704 echo two > conftest.two 2705 mkdir conftest.dir 2706 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2707 test -s conftest.one && test -s conftest.two && 2708 test -s conftest.dir/conftest.one && 2709 test -s conftest.dir/conftest.two 2710 then 2711 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2712 break 3 2713 fi 2714 fi 2715 fi 2716 done 2717 done 2718 ;; 2719 esac 2720 2721 done 2722 IFS=$as_save_IFS 2723 2724 rm -rf conftest.one conftest.two conftest.dir 2725 ;; 2726 esac 2727 fi 2728 if test ${ac_cv_path_install+y}; then 2729 INSTALL=$ac_cv_path_install 2730 else 2731 # As a last resort, use the slow shell script. Don't cache a 2732 # value for INSTALL within a source directory, because that will 2733 # break other packages using the cache if that directory is 2734 # removed, or if the value is a relative name. 2735 INSTALL=$ac_install_sh 2736 fi 2737 fi 2738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2739 printf '%s\n' "$INSTALL" >&6; } 2740 2741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2742 # It thinks the first close brace ends the variable substitution. 2743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2744 2745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2746 2747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2748 2749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2750 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2751 if test ${am_cv_sleep_fractional_seconds+y} 2752 then : 2753 printf %s "(cached) " >&6 2754 else case e in #( 2755 e) if sleep 0.001 2>/dev/null 2756 then : 2757 am_cv_sleep_fractional_seconds=yes 2758 else case e in #( 2759 e) am_cv_sleep_fractional_seconds=no ;; 2760 esac 2761 fi 2762 ;; 2763 esac 2764 fi 2765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2766 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; } 2767 2768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2769 printf %s "checking filesystem timestamp resolution... " >&6; } 2770 if test ${am_cv_filesystem_timestamp_resolution+y} 2771 then : 2772 printf %s "(cached) " >&6 2773 else case e in #( 2774 e) # Default to the worst case. 2775 am_cv_filesystem_timestamp_resolution=2 2776 2777 # Only try to go finer than 1 sec if sleep can do it. 2778 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2779 # - 1 sec is not much of a win compared to 2 sec, and 2780 # - it takes 2 seconds to perform the test whether 1 sec works. 2781 # 2782 # Instead, just use the default 2s on platforms that have 1s resolution, 2783 # accept the extra 1s delay when using $sleep in the Automake tests, in 2784 # exchange for not incurring the 2s delay for running the test for all 2785 # packages. 2786 # 2787 am_try_resolutions= 2788 if test "$am_cv_sleep_fractional_seconds" = yes; then 2789 # Even a millisecond often causes a bunch of false positives, 2790 # so just try a hundredth of a second. The time saved between .001 and 2791 # .01 is not terribly consequential. 2792 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2793 fi 2794 2795 # In order to catch current-generation FAT out, we must *modify* files 2796 # that already exist; the *creation* timestamp is finer. Use names 2797 # that make ls -t sort them differently when they have equal 2798 # timestamps than when they have distinct timestamps, keeping 2799 # in mind that ls -t prints the *newest* file first. 2800 rm -f conftest.ts? 2801 : > conftest.ts1 2802 : > conftest.ts2 2803 : > conftest.ts3 2804 2805 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2806 # clobber the current shell's arguments. (Outer-level square brackets 2807 # are removed by m4; they're present so that m4 does not expand 2808 # <dollar><star>; be careful, easy to get confused.) 2809 if ( 2810 set X `ls -t conftest.ts[12]` && 2811 { 2812 test "$*" != "X conftest.ts1 conftest.ts2" || 2813 test "$*" != "X conftest.ts2 conftest.ts1"; 2814 } 2815 ); then :; else 2816 # If neither matched, then we have a broken ls. This can happen 2817 # if, for instance, CONFIG_SHELL is bash and it inherits a 2818 # broken ls alias from the environment. This has actually 2819 # happened. Such a system could not be considered "sane". 2820 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2821 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2822 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2823 as_fn_error $? "ls -t produces unexpected output. 2824 Make sure there is not a broken ls alias in your environment. 2825 See 'config.log' for more details" "$LINENO" 5; } 2826 fi 2827 2828 for am_try_res in $am_try_resolutions; do 2829 # Any one fine-grained sleep might happen to cross the boundary 2830 # between two values of a coarser actual resolution, but if we do 2831 # two fine-grained sleeps in a row, at least one of them will fall 2832 # entirely within a coarse interval. 2833 echo alpha > conftest.ts1 2834 sleep $am_try_res 2835 echo beta > conftest.ts2 2836 sleep $am_try_res 2837 echo gamma > conftest.ts3 2838 2839 # We assume that 'ls -t' will make use of high-resolution 2840 # timestamps if the operating system supports them at all. 2841 if (set X `ls -t conftest.ts?` && 2842 test "$2" = conftest.ts3 && 2843 test "$3" = conftest.ts2 && 2844 test "$4" = conftest.ts1); then 2845 # 2846 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2847 # because we don't need to test make. 2848 make_ok=true 2849 if test $am_try_res != 1; then 2850 # But if we've succeeded so far with a subsecond resolution, we 2851 # have one more thing to check: make. It can happen that 2852 # everything else supports the subsecond mtimes, but make doesn't; 2853 # notably on macOS, which ships make 3.81 from 2006 (the last one 2854 # released under GPLv2). https://bugs.gnu.org/68808 2855 # 2856 # We test $MAKE if it is defined in the environment, else "make". 2857 # It might get overridden later, but our hope is that in practice 2858 # it does not matter: it is the system "make" which is (by far) 2859 # the most likely to be broken, whereas if the user overrides it, 2860 # probably they did so with a better, or at least not worse, make. 2861 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2862 # 2863 # Create a Makefile (real tab character here): 2864 rm -f conftest.mk 2865 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2866 echo ' touch conftest.ts2' >>conftest.mk 2867 # 2868 # Now, running 2869 # touch conftest.ts1; touch conftest.ts2; make 2870 # should touch ts1 because ts2 is newer. This could happen by luck, 2871 # but most often, it will fail if make's support is insufficient. So 2872 # test for several consecutive successes. 2873 # 2874 # (We reuse conftest.ts[12] because we still want to modify existing 2875 # files, not create new ones, per above.) 2876 n=0 2877 make=${MAKE-make} 2878 until test $n -eq 3; do 2879 echo one > conftest.ts1 2880 sleep $am_try_res 2881 echo two > conftest.ts2 # ts2 should now be newer than ts1 2882 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2883 make_ok=false 2884 break # out of $n loop 2885 fi 2886 n=`expr $n + 1` 2887 done 2888 fi 2889 # 2890 if $make_ok; then 2891 # Everything we know to check worked out, so call this resolution good. 2892 am_cv_filesystem_timestamp_resolution=$am_try_res 2893 break # out of $am_try_res loop 2894 fi 2895 # Otherwise, we'll go on to check the next resolution. 2896 fi 2897 done 2898 rm -f conftest.ts? 2899 # (end _am_filesystem_timestamp_resolution) 2900 ;; 2901 esac 2902 fi 2903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2904 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; } 2905 2906 # This check should not be cached, as it may vary across builds of 2907 # different projects. 2908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2909 printf %s "checking whether build environment is sane... " >&6; } 2910 # Reject unsafe characters in $srcdir or the absolute working directory 2911 # name. Accept space and tab only in the latter. 2912 am_lf=' 2913 ' 2914 case `pwd` in 2915 *[\\\"\#\$\&\'\`$am_lf]*) 2916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917 printf '%s\n' "no" >&6; } 2918 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2919 esac 2920 case $srcdir in 2921 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 2923 printf '%s\n' "no" >&6; } 2924 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2925 esac 2926 2927 # Do 'set' in a subshell so we don't clobber the current shell's 2928 # arguments. Must try -L first in case configure is actually a 2929 # symlink; some systems play weird games with the mod time of symlinks 2930 # (eg FreeBSD returns the mod time of the symlink's containing 2931 # directory). 2932 am_build_env_is_sane=no 2933 am_has_slept=no 2934 rm -f conftest.file 2935 for am_try in 1 2; do 2936 echo "timestamp, slept: $am_has_slept" > conftest.file 2937 if ( 2938 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2939 if test "$*" = "X"; then 2940 # -L didn't work. 2941 set X `ls -t "$srcdir/configure" conftest.file` 2942 fi 2943 test "$2" = conftest.file 2944 ); then 2945 am_build_env_is_sane=yes 2946 break 2947 fi 2948 # Just in case. 2949 sleep "$am_cv_filesystem_timestamp_resolution" 2950 am_has_slept=yes 2951 done 2952 2953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2954 printf '%s\n' "$am_build_env_is_sane" >&6; } 2955 if test "$am_build_env_is_sane" = no; then 2956 as_fn_error $? "newly created file is older than distributed files! 2957 Check your system clock" "$LINENO" 5 2958 fi 2959 2960 # If we didn't sleep, we still need to ensure time stamps of config.status and 2961 # generated files are strictly newer. 2962 am_sleep_pid= 2963 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2964 then : 2965 2966 else case e in #( 2967 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2968 am_sleep_pid=$! 2969 ;; 2970 esac 2971 fi 2972 2973 rm -f conftest.file 2974 2975 test "$program_prefix" != NONE && 2976 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2977 # Use a double $ so make ignores it. 2978 test "$program_suffix" != NONE && 2979 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2980 # Double any \ or $. 2981 # By default was 's,x,x', remove it if useless. 2982 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2983 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"` 2984 2985 2986 # Expand $ac_aux_dir to an absolute path. 2987 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2988 2989 2990 if test x"${MISSING+set}" != xset; then 2991 MISSING="\${SHELL} '$am_aux_dir/missing'" 2992 fi 2993 # Use eval to expand $SHELL 2994 if eval "$MISSING --is-lightweight"; then 2995 am_missing_run="$MISSING " 2996 else 2997 am_missing_run= 2998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2999 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3000 fi 3001 3002 if test x"${install_sh+set}" != xset; then 3003 case $am_aux_dir in 3004 *\ * | *\ *) 3005 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3006 *) 3007 install_sh="\${SHELL} $am_aux_dir/install-sh" 3008 esac 3009 fi 3010 3011 # Installed binaries are usually stripped using 'strip' when the user 3012 # run "make install-strip". However 'strip' might not be the right 3013 # tool to use in cross-compilation environments, therefore Automake 3014 # will honor the 'STRIP' environment variable to overrule this program. 3015 if test "$cross_compiling" != no; then 3016 if test -n "$ac_tool_prefix"; then 3017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3018 set dummy ${ac_tool_prefix}strip; ac_word=$2 3019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020 printf %s "checking for $ac_word... " >&6; } 3021 if test ${ac_cv_prog_STRIP+y} 3022 then : 3023 printf %s "(cached) " >&6 3024 else case e in #( 3025 e) if test -n "$STRIP"; then 3026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3027 else 3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029 for as_dir in $PATH 3030 do 3031 IFS=$as_save_IFS 3032 case $as_dir in #((( 3033 '') as_dir=./ ;; 3034 */) ;; 3035 *) as_dir=$as_dir/ ;; 3036 esac 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3039 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3040 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3041 break 2 3042 fi 3043 done 3044 done 3045 IFS=$as_save_IFS 3046 3047 fi ;; 3048 esac 3049 fi 3050 STRIP=$ac_cv_prog_STRIP 3051 if test -n "$STRIP"; then 3052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3053 printf '%s\n' "$STRIP" >&6; } 3054 else 3055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056 printf '%s\n' "no" >&6; } 3057 fi 3058 3059 3060 fi 3061 if test -z "$ac_cv_prog_STRIP"; then 3062 ac_ct_STRIP=$STRIP 3063 # Extract the first word of "strip", so it can be a program name with args. 3064 set dummy strip; ac_word=$2 3065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066 printf %s "checking for $ac_word... " >&6; } 3067 if test ${ac_cv_prog_ac_ct_STRIP+y} 3068 then : 3069 printf %s "(cached) " >&6 3070 else case e in #( 3071 e) if test -n "$ac_ct_STRIP"; then 3072 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3073 else 3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075 for as_dir in $PATH 3076 do 3077 IFS=$as_save_IFS 3078 case $as_dir in #((( 3079 '') as_dir=./ ;; 3080 */) ;; 3081 *) as_dir=$as_dir/ ;; 3082 esac 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_ac_ct_STRIP="strip" 3086 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089 done 3090 done 3091 IFS=$as_save_IFS 3092 3093 fi ;; 3094 esac 3095 fi 3096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3097 if test -n "$ac_ct_STRIP"; then 3098 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3099 printf '%s\n' "$ac_ct_STRIP" >&6; } 3100 else 3101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102 printf '%s\n' "no" >&6; } 3103 fi 3104 3105 if test "x$ac_ct_STRIP" = x; then 3106 STRIP=":" 3107 else 3108 case $cross_compiling:$ac_tool_warned in 3109 yes:) 3110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112 ac_tool_warned=yes ;; 3113 esac 3114 STRIP=$ac_ct_STRIP 3115 fi 3116 else 3117 STRIP="$ac_cv_prog_STRIP" 3118 fi 3119 3120 fi 3121 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3122 3123 3124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3125 printf %s "checking for a race-free mkdir -p... " >&6; } 3126 if test -z "$MKDIR_P"; then 3127 if test ${ac_cv_path_mkdir+y} 3128 then : 3129 printf %s "(cached) " >&6 3130 else case e in #( 3131 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3133 do 3134 IFS=$as_save_IFS 3135 case $as_dir in #((( 3136 '') as_dir=./ ;; 3137 */) ;; 3138 *) as_dir=$as_dir/ ;; 3139 esac 3140 for ac_prog in mkdir gmkdir; do 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3143 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3144 'mkdir ('*'coreutils) '* | \ 3145 *'BusyBox '* | \ 3146 'mkdir (fileutils) '4.1*) 3147 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3148 break 3;; 3149 esac 3150 done 3151 done 3152 done 3153 IFS=$as_save_IFS 3154 ;; 3155 esac 3156 fi 3157 3158 test -d ./--version && rmdir ./--version 3159 if test ${ac_cv_path_mkdir+y}; then 3160 MKDIR_P="$ac_cv_path_mkdir -p" 3161 else 3162 # As a last resort, use plain mkdir -p, 3163 # in the hope it doesn't have the bugs of ancient mkdir. 3164 MKDIR_P='mkdir -p' 3165 fi 3166 fi 3167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3168 printf '%s\n' "$MKDIR_P" >&6; } 3169 3170 for ac_prog in gawk mawk nawk awk 'busybox awk' 3171 do 3172 # Extract the first word of "$ac_prog", so it can be a program name with args. 3173 set dummy $ac_prog; ac_word=$2 3174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175 printf %s "checking for $ac_word... " >&6; } 3176 if test ${ac_cv_prog_AWK+y} 3177 then : 3178 printf %s "(cached) " >&6 3179 else case e in #( 3180 e) if test -n "$AWK"; then 3181 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3182 else 3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3184 for as_dir in $PATH 3185 do 3186 IFS=$as_save_IFS 3187 case $as_dir in #((( 3188 '') as_dir=./ ;; 3189 */) ;; 3190 *) as_dir=$as_dir/ ;; 3191 esac 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3194 ac_cv_prog_AWK="$ac_prog" 3195 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198 done 3199 done 3200 IFS=$as_save_IFS 3201 3202 fi ;; 3203 esac 3204 fi 3205 AWK=$ac_cv_prog_AWK 3206 if test -n "$AWK"; then 3207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3208 printf '%s\n' "$AWK" >&6; } 3209 else 3210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211 printf '%s\n' "no" >&6; } 3212 fi 3213 3214 3215 test -n "$AWK" && break 3216 done 3217 3218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3219 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3220 set x ${MAKE-make} 3221 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3222 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3223 then : 3224 printf %s "(cached) " >&6 3225 else case e in #( 3226 e) cat >conftest.make <<\_ACEOF 3227 SHELL = /bin/sh 3228 all: 3229 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%' 3230 _ACEOF 3231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3232 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3233 *@@@%%%=?*=@@@%%%*) 3234 eval ac_cv_prog_make_${ac_make}_set=yes;; 3235 *) 3236 eval ac_cv_prog_make_${ac_make}_set=no;; 3237 esac 3238 rm -f conftest.make ;; 3239 esac 3240 fi 3241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3243 printf '%s\n' "yes" >&6; } 3244 SET_MAKE= 3245 else 3246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247 printf '%s\n' "no" >&6; } 3248 SET_MAKE="MAKE=${MAKE-make}" 3249 fi 3250 3251 rm -rf .tst 2>/dev/null 3252 mkdir .tst 2>/dev/null 3253 if test -d .tst; then 3254 am__leading_dot=. 3255 else 3256 am__leading_dot=_ 3257 fi 3258 rmdir .tst 2>/dev/null 3259 3260 AM_DEFAULT_VERBOSITY=1 3261 # Check whether --enable-silent-rules was given. 3262 if test ${enable_silent_rules+y} 3263 then : 3264 enableval=$enable_silent_rules; 3265 fi 3266 3267 am_make=${MAKE-make} 3268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3269 printf %s "checking whether $am_make supports nested variables... " >&6; } 3270 if test ${am_cv_make_support_nested_variables+y} 3271 then : 3272 printf %s "(cached) " >&6 3273 else case e in #( 3274 e) if printf '%s\n' 'TRUE=$(BAR$(V)) 3275 BAR0=false 3276 BAR1=true 3277 V=1 3278 am__doit: 3279 @$(TRUE) 3280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3281 am_cv_make_support_nested_variables=yes 3282 else 3283 am_cv_make_support_nested_variables=no 3284 fi ;; 3285 esac 3286 fi 3287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3288 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; } 3289 AM_BACKSLASH='\' 3290 3291 am__rm_f_notfound= 3292 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3293 then : 3294 3295 else case e in #( 3296 e) am__rm_f_notfound='""' ;; 3297 esac 3298 fi 3299 3300 3301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3302 printf %s "checking xargs -n works... " >&6; } 3303 if test ${am_cv_xargs_n_works+y} 3304 then : 3305 printf %s "(cached) " >&6 3306 else case e in #( 3307 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3308 3" 3309 then : 3310 am_cv_xargs_n_works=yes 3311 else case e in #( 3312 e) am_cv_xargs_n_works=no ;; 3313 esac 3314 fi ;; 3315 esac 3316 fi 3317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3318 printf '%s\n' "$am_cv_xargs_n_works" >&6; } 3319 if test "$am_cv_xargs_n_works" = yes 3320 then : 3321 am__xargs_n='xargs -n' 3322 else case e in #( 3323 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3324 ;; 3325 esac 3326 fi 3327 3328 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3330 # is not polluted with repeated "-I." 3331 am__isrc=' -I$(srcdir)' 3332 # test to see if srcdir already configured 3333 if test -f $srcdir/config.status; then 3334 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3335 fi 3336 fi 3337 3338 # test whether we have cygpath 3339 if test -z "$CYGPATH_W"; then 3340 if (cygpath --version) >/dev/null 2>/dev/null; then 3341 CYGPATH_W='cygpath -w' 3342 else 3343 CYGPATH_W=echo 3344 fi 3345 fi 3346 3347 3348 # Define the identity of the package. 3349 PACKAGE='xclipboard' 3350 VERSION='1.1.6' 3351 3352 3353 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3354 3355 3356 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h 3357 3358 # Some tools Automake needs. 3359 3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3361 3362 3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3364 3365 3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3367 3368 3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3370 3371 3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3373 3374 # For better backward compatibility. To be removed once Automake 1.9.x 3375 # dies out for good. For more background, see: 3376 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3377 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3378 mkdir_p='$(MKDIR_P)' 3379 3380 # We need awk for the "check" target (and possibly the TAP driver). The 3381 # system "awk" is bad on some platforms. 3382 # Always define AMTAR for backward compatibility. Yes, it's still used 3383 # in the wild :-( We should find a proper way to deprecate it ... 3384 AMTAR='$${TAR-tar}' 3385 3386 3387 # We'll loop over all known methods to create a tar archive until one works. 3388 _am_tools='gnutar plaintar pax cpio none' 3389 3390 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3391 # There is notably a 21 bits limit for the UID and the GID. In fact, 3392 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3393 # and bug#13588). 3394 am_max_uid=2097151 # 2^21 - 1 3395 am_max_gid=$am_max_uid 3396 # The $UID and $GID variables are not portable, so we need to resort 3397 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3398 # below are definitely unexpected, so allow the users to see them 3399 # (that is, avoid stderr redirection). 3400 am_uid=`id -u || echo unknown` 3401 am_gid=`id -g || echo unknown` 3402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3403 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3404 if test x$am_uid = xunknown; then 3405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3406 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3407 elif test $am_uid -le $am_max_uid; then 3408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3409 printf '%s\n' "yes" >&6; } 3410 else 3411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412 printf '%s\n' "no" >&6; } 3413 _am_tools=none 3414 fi 3415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3416 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3417 if test x$gm_gid = xunknown; then 3418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3419 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3420 elif test $am_gid -le $am_max_gid; then 3421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3422 printf '%s\n' "yes" >&6; } 3423 else 3424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425 printf '%s\n' "no" >&6; } 3426 _am_tools=none 3427 fi 3428 3429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3430 printf %s "checking how to create a ustar tar archive... " >&6; } 3431 3432 # Go ahead even if we have the value already cached. We do so because we 3433 # need to set the values for the 'am__tar' and 'am__untar' variables. 3434 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3435 3436 for _am_tool in $_am_tools; do 3437 case $_am_tool in 3438 gnutar) 3439 for _am_tar in tar gnutar gtar; do 3440 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3441 ($_am_tar --version) >&5 2>&5 3442 ac_status=$? 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 (exit $ac_status); } && break 3445 done 3446 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3447 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3448 am__untar="$_am_tar -xf -" 3449 ;; 3450 plaintar) 3451 # Must skip GNU tar: if it does not support --format= it doesn't create 3452 # ustar tarball either. 3453 (tar --version) >/dev/null 2>&1 && continue 3454 am__tar='tar chf - "$$tardir"' 3455 am__tar_='tar chf - "$tardir"' 3456 am__untar='tar xf -' 3457 ;; 3458 pax) 3459 am__tar='pax -L -x ustar -w "$$tardir"' 3460 am__tar_='pax -L -x ustar -w "$tardir"' 3461 am__untar='pax -r' 3462 ;; 3463 cpio) 3464 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3465 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3466 am__untar='cpio -i -H ustar -d' 3467 ;; 3468 none) 3469 am__tar=false 3470 am__tar_=false 3471 am__untar=false 3472 ;; 3473 esac 3474 3475 # If the value was cached, stop now. We just wanted to have am__tar 3476 # and am__untar set. 3477 test -n "${am_cv_prog_tar_ustar}" && break 3478 3479 # tar/untar a dummy directory, and stop if the command works. 3480 rm -rf conftest.dir 3481 mkdir conftest.dir 3482 echo GrepMe > conftest.dir/file 3483 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3484 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); } 3488 rm -rf conftest.dir 3489 if test -s conftest.tar; then 3490 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3491 ($am__untar <conftest.tar) >&5 2>&5 3492 ac_status=$? 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); } 3495 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3496 (cat conftest.dir/file) >&5 2>&5 3497 ac_status=$? 3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3499 (exit $ac_status); } 3500 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3501 fi 3502 done 3503 rm -rf conftest.dir 3504 3505 if test ${am_cv_prog_tar_ustar+y} 3506 then : 3507 printf %s "(cached) " >&6 3508 else case e in #( 3509 e) am_cv_prog_tar_ustar=$_am_tool ;; 3510 esac 3511 fi 3512 3513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3514 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; } 3515 3516 3517 3518 3519 3520 # Variables for tags utilities; see am/tags.am 3521 if test -z "$CTAGS"; then 3522 CTAGS=ctags 3523 fi 3524 3525 if test -z "$ETAGS"; then 3526 ETAGS=etags 3527 fi 3528 3529 if test -z "$CSCOPE"; then 3530 CSCOPE=cscope 3531 fi 3532 3533 3534 3535 3536 3537 3538 3539 3540 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 DEPDIR="${am__leading_dot}deps" 3565 3566 ac_config_commands="$ac_config_commands depfiles" 3567 3568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3569 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3570 cat > confinc.mk << 'END' 3571 am__doit: 3572 @echo this is the am__doit target >confinc.out 3573 .PHONY: am__doit 3574 END 3575 am__include="#" 3576 am__quote= 3577 # BSD make does it like this. 3578 echo '.include "confinc.mk" # ignored' > confmf.BSD 3579 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3580 echo 'include confinc.mk # ignored' > confmf.GNU 3581 _am_result=no 3582 for s in GNU BSD; do 3583 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3584 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3585 ac_status=$? 3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3587 (exit $ac_status); } 3588 case $?:`cat confinc.out 2>/dev/null` in #( 3589 '0:this is the am__doit target') : 3590 case $s in #( 3591 BSD) : 3592 am__include='.include' am__quote='"' ;; #( 3593 *) : 3594 am__include='include' am__quote='' ;; 3595 esac ;; #( 3596 *) : 3597 ;; 3598 esac 3599 if test "$am__include" != "#"; then 3600 _am_result="yes ($s style)" 3601 break 3602 fi 3603 done 3604 rm -f confinc.* confmf.* 3605 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3606 printf '%s\n' "${_am_result}" >&6; } 3607 3608 # Check whether --enable-dependency-tracking was given. 3609 if test ${enable_dependency_tracking+y} 3610 then : 3611 enableval=$enable_dependency_tracking; 3612 fi 3613 3614 if test "x$enable_dependency_tracking" != xno; then 3615 am_depcomp="$ac_aux_dir/depcomp" 3616 AMDEPBACKSLASH='\' 3617 am__nodep='_no' 3618 fi 3619 if test "x$enable_dependency_tracking" != xno; then 3620 AMDEP_TRUE= 3621 AMDEP_FALSE='#' 3622 else 3623 AMDEP_TRUE='#' 3624 AMDEP_FALSE= 3625 fi 3626 3627 3628 ac_ext=c 3629 ac_cpp='$CPP $CPPFLAGS' 3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3633 if test -n "$ac_tool_prefix"; then 3634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3635 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3637 printf %s "checking for $ac_word... " >&6; } 3638 if test ${ac_cv_prog_CC+y} 3639 then : 3640 printf %s "(cached) " >&6 3641 else case e in #( 3642 e) if test -n "$CC"; then 3643 ac_cv_prog_CC="$CC" # Let the user override the test. 3644 else 3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646 for as_dir in $PATH 3647 do 3648 IFS=$as_save_IFS 3649 case $as_dir in #((( 3650 '') as_dir=./ ;; 3651 */) ;; 3652 *) as_dir=$as_dir/ ;; 3653 esac 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3657 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660 done 3661 done 3662 IFS=$as_save_IFS 3663 3664 fi ;; 3665 esac 3666 fi 3667 CC=$ac_cv_prog_CC 3668 if test -n "$CC"; then 3669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3670 printf '%s\n' "$CC" >&6; } 3671 else 3672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3673 printf '%s\n' "no" >&6; } 3674 fi 3675 3676 3677 fi 3678 if test -z "$ac_cv_prog_CC"; then 3679 ac_ct_CC=$CC 3680 # Extract the first word of "gcc", so it can be a program name with args. 3681 set dummy gcc; ac_word=$2 3682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683 printf %s "checking for $ac_word... " >&6; } 3684 if test ${ac_cv_prog_ac_ct_CC+y} 3685 then : 3686 printf %s "(cached) " >&6 3687 else case e in #( 3688 e) if test -n "$ac_ct_CC"; then 3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3690 else 3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692 for as_dir in $PATH 3693 do 3694 IFS=$as_save_IFS 3695 case $as_dir in #((( 3696 '') as_dir=./ ;; 3697 */) ;; 3698 *) as_dir=$as_dir/ ;; 3699 esac 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3702 ac_cv_prog_ac_ct_CC="gcc" 3703 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3704 break 2 3705 fi 3706 done 3707 done 3708 IFS=$as_save_IFS 3709 3710 fi ;; 3711 esac 3712 fi 3713 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3714 if test -n "$ac_ct_CC"; then 3715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3716 printf '%s\n' "$ac_ct_CC" >&6; } 3717 else 3718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719 printf '%s\n' "no" >&6; } 3720 fi 3721 3722 if test "x$ac_ct_CC" = x; then 3723 CC="" 3724 else 3725 case $cross_compiling:$ac_tool_warned in 3726 yes:) 3727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3728 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3729 ac_tool_warned=yes ;; 3730 esac 3731 CC=$ac_ct_CC 3732 fi 3733 else 3734 CC="$ac_cv_prog_CC" 3735 fi 3736 3737 if test -z "$CC"; then 3738 if test -n "$ac_tool_prefix"; then 3739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3740 set dummy ${ac_tool_prefix}cc; ac_word=$2 3741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3742 printf %s "checking for $ac_word... " >&6; } 3743 if test ${ac_cv_prog_CC+y} 3744 then : 3745 printf %s "(cached) " >&6 3746 else case e in #( 3747 e) if test -n "$CC"; then 3748 ac_cv_prog_CC="$CC" # Let the user override the test. 3749 else 3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751 for as_dir in $PATH 3752 do 3753 IFS=$as_save_IFS 3754 case $as_dir in #((( 3755 '') as_dir=./ ;; 3756 */) ;; 3757 *) as_dir=$as_dir/ ;; 3758 esac 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3761 ac_cv_prog_CC="${ac_tool_prefix}cc" 3762 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3763 break 2 3764 fi 3765 done 3766 done 3767 IFS=$as_save_IFS 3768 3769 fi ;; 3770 esac 3771 fi 3772 CC=$ac_cv_prog_CC 3773 if test -n "$CC"; then 3774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3775 printf '%s\n' "$CC" >&6; } 3776 else 3777 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3778 printf '%s\n' "no" >&6; } 3779 fi 3780 3781 3782 fi 3783 fi 3784 if test -z "$CC"; then 3785 # Extract the first word of "cc", so it can be a program name with args. 3786 set dummy cc; ac_word=$2 3787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3788 printf %s "checking for $ac_word... " >&6; } 3789 if test ${ac_cv_prog_CC+y} 3790 then : 3791 printf %s "(cached) " >&6 3792 else case e in #( 3793 e) if test -n "$CC"; then 3794 ac_cv_prog_CC="$CC" # Let the user override the test. 3795 else 3796 ac_prog_rejected=no 3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798 for as_dir in $PATH 3799 do 3800 IFS=$as_save_IFS 3801 case $as_dir in #((( 3802 '') as_dir=./ ;; 3803 */) ;; 3804 *) as_dir=$as_dir/ ;; 3805 esac 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3808 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3809 ac_prog_rejected=yes 3810 continue 3811 fi 3812 ac_cv_prog_CC="cc" 3813 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3814 break 2 3815 fi 3816 done 3817 done 3818 IFS=$as_save_IFS 3819 3820 if test $ac_prog_rejected = yes; then 3821 # We found a bogon in the path, so make sure we never use it. 3822 set dummy $ac_cv_prog_CC 3823 shift 3824 if test $# != 0; then 3825 # We chose a different compiler from the bogus one. 3826 # However, it has the same basename, so the bogon will be chosen 3827 # first if we set CC to just the basename; use the full file name. 3828 shift 3829 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3830 fi 3831 fi 3832 fi ;; 3833 esac 3834 fi 3835 CC=$ac_cv_prog_CC 3836 if test -n "$CC"; then 3837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3838 printf '%s\n' "$CC" >&6; } 3839 else 3840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3841 printf '%s\n' "no" >&6; } 3842 fi 3843 3844 3845 fi 3846 if test -z "$CC"; then 3847 if test -n "$ac_tool_prefix"; then 3848 for ac_prog in cl.exe 3849 do 3850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853 printf %s "checking for $ac_word... " >&6; } 3854 if test ${ac_cv_prog_CC+y} 3855 then : 3856 printf %s "(cached) " >&6 3857 else case e in #( 3858 e) if test -n "$CC"; then 3859 ac_cv_prog_CC="$CC" # Let the user override the test. 3860 else 3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3862 for as_dir in $PATH 3863 do 3864 IFS=$as_save_IFS 3865 case $as_dir in #((( 3866 '') as_dir=./ ;; 3867 */) ;; 3868 *) as_dir=$as_dir/ ;; 3869 esac 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3873 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3874 break 2 3875 fi 3876 done 3877 done 3878 IFS=$as_save_IFS 3879 3880 fi ;; 3881 esac 3882 fi 3883 CC=$ac_cv_prog_CC 3884 if test -n "$CC"; then 3885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3886 printf '%s\n' "$CC" >&6; } 3887 else 3888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889 printf '%s\n' "no" >&6; } 3890 fi 3891 3892 3893 test -n "$CC" && break 3894 done 3895 fi 3896 if test -z "$CC"; then 3897 ac_ct_CC=$CC 3898 for ac_prog in cl.exe 3899 do 3900 # Extract the first word of "$ac_prog", so it can be a program name with args. 3901 set dummy $ac_prog; ac_word=$2 3902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3903 printf %s "checking for $ac_word... " >&6; } 3904 if test ${ac_cv_prog_ac_ct_CC+y} 3905 then : 3906 printf %s "(cached) " >&6 3907 else case e in #( 3908 e) if test -n "$ac_ct_CC"; then 3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3910 else 3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912 for as_dir in $PATH 3913 do 3914 IFS=$as_save_IFS 3915 case $as_dir in #((( 3916 '') as_dir=./ ;; 3917 */) ;; 3918 *) as_dir=$as_dir/ ;; 3919 esac 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_ac_ct_CC="$ac_prog" 3923 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926 done 3927 done 3928 IFS=$as_save_IFS 3929 3930 fi ;; 3931 esac 3932 fi 3933 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3934 if test -n "$ac_ct_CC"; then 3935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3936 printf '%s\n' "$ac_ct_CC" >&6; } 3937 else 3938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3939 printf '%s\n' "no" >&6; } 3940 fi 3941 3942 3943 test -n "$ac_ct_CC" && break 3944 done 3945 3946 if test "x$ac_ct_CC" = x; then 3947 CC="" 3948 else 3949 case $cross_compiling:$ac_tool_warned in 3950 yes:) 3951 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3952 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3953 ac_tool_warned=yes ;; 3954 esac 3955 CC=$ac_ct_CC 3956 fi 3957 fi 3958 3959 fi 3960 if test -z "$CC"; then 3961 if test -n "$ac_tool_prefix"; then 3962 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3963 set dummy ${ac_tool_prefix}clang; ac_word=$2 3964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3965 printf %s "checking for $ac_word... " >&6; } 3966 if test ${ac_cv_prog_CC+y} 3967 then : 3968 printf %s "(cached) " >&6 3969 else case e in #( 3970 e) if test -n "$CC"; then 3971 ac_cv_prog_CC="$CC" # Let the user override the test. 3972 else 3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974 for as_dir in $PATH 3975 do 3976 IFS=$as_save_IFS 3977 case $as_dir in #((( 3978 '') as_dir=./ ;; 3979 */) ;; 3980 *) as_dir=$as_dir/ ;; 3981 esac 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3984 ac_cv_prog_CC="${ac_tool_prefix}clang" 3985 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3986 break 2 3987 fi 3988 done 3989 done 3990 IFS=$as_save_IFS 3991 3992 fi ;; 3993 esac 3994 fi 3995 CC=$ac_cv_prog_CC 3996 if test -n "$CC"; then 3997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3998 printf '%s\n' "$CC" >&6; } 3999 else 4000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4001 printf '%s\n' "no" >&6; } 4002 fi 4003 4004 4005 fi 4006 if test -z "$ac_cv_prog_CC"; then 4007 ac_ct_CC=$CC 4008 # Extract the first word of "clang", so it can be a program name with args. 4009 set dummy clang; ac_word=$2 4010 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4011 printf %s "checking for $ac_word... " >&6; } 4012 if test ${ac_cv_prog_ac_ct_CC+y} 4013 then : 4014 printf %s "(cached) " >&6 4015 else case e in #( 4016 e) if test -n "$ac_ct_CC"; then 4017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4018 else 4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020 for as_dir in $PATH 4021 do 4022 IFS=$as_save_IFS 4023 case $as_dir in #((( 4024 '') as_dir=./ ;; 4025 */) ;; 4026 *) as_dir=$as_dir/ ;; 4027 esac 4028 for ac_exec_ext in '' $ac_executable_extensions; do 4029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4030 ac_cv_prog_ac_ct_CC="clang" 4031 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4032 break 2 4033 fi 4034 done 4035 done 4036 IFS=$as_save_IFS 4037 4038 fi ;; 4039 esac 4040 fi 4041 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4042 if test -n "$ac_ct_CC"; then 4043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4044 printf '%s\n' "$ac_ct_CC" >&6; } 4045 else 4046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4047 printf '%s\n' "no" >&6; } 4048 fi 4049 4050 if test "x$ac_ct_CC" = x; then 4051 CC="" 4052 else 4053 case $cross_compiling:$ac_tool_warned in 4054 yes:) 4055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4056 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4057 ac_tool_warned=yes ;; 4058 esac 4059 CC=$ac_ct_CC 4060 fi 4061 else 4062 CC="$ac_cv_prog_CC" 4063 fi 4064 4065 fi 4066 4067 4068 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4069 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4070 as_fn_error $? "no acceptable C compiler found in \$PATH 4071 See 'config.log' for more details" "$LINENO" 5; } 4072 4073 # Provide some information about the compiler. 4074 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4075 set X $ac_compile 4076 ac_compiler=$2 4077 for ac_option in --version -v -V -qversion -version; do 4078 { { ac_try="$ac_compiler $ac_option >&5" 4079 case "(($ac_try" in 4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4081 *) ac_try_echo=$ac_try;; 4082 esac 4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4084 printf '%s\n' "$ac_try_echo"; } >&5 4085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4086 ac_status=$? 4087 if test -s conftest.err; then 4088 sed '10a\ 4089 ... rest of stderr output deleted ... 4090 10q' conftest.err >conftest.er1 4091 cat conftest.er1 >&5 4092 fi 4093 rm -f conftest.er1 conftest.err 4094 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4095 test $ac_status = 0; } 4096 done 4097 4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099 /* end confdefs.h. */ 4100 4101 int 4102 main (void) 4103 { 4104 4105 ; 4106 return 0; 4107 } 4108 _ACEOF 4109 ac_clean_files_save=$ac_clean_files 4110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4111 # Try to create an executable without -o first, disregard a.out. 4112 # It will help us diagnose broken compilers, and finding out an intuition 4113 # of exeext. 4114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4115 printf %s "checking whether the C compiler works... " >&6; } 4116 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4117 4118 # The possible output files: 4119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4120 4121 ac_rmfiles= 4122 for ac_file in $ac_files 4123 do 4124 case $ac_file in 4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4126 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4127 esac 4128 done 4129 rm -f $ac_rmfiles 4130 4131 if { { ac_try="$ac_link_default" 4132 case "(($ac_try" in 4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4134 *) ac_try_echo=$ac_try;; 4135 esac 4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4137 printf '%s\n' "$ac_try_echo"; } >&5 4138 (eval "$ac_link_default") 2>&5 4139 ac_status=$? 4140 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4141 test $ac_status = 0; } 4142 then : 4143 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4144 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4145 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4146 # so that the user can short-circuit this test for compilers unknown to 4147 # Autoconf. 4148 for ac_file in $ac_files '' 4149 do 4150 test -f "$ac_file" || continue 4151 case $ac_file in 4152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4153 ;; 4154 [ab].out ) 4155 # We found the default executable, but exeext='' is most 4156 # certainly right. 4157 break;; 4158 *.* ) 4159 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4160 then :; else 4161 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4162 fi 4163 # We set ac_cv_exeext here because the later test for it is not 4164 # safe: cross compilers may not add the suffix if given an '-o' 4165 # argument, so we may need to know it at that point already. 4166 # Even if this section looks crufty: it has the advantage of 4167 # actually working. 4168 break;; 4169 * ) 4170 break;; 4171 esac 4172 done 4173 test "$ac_cv_exeext" = no && ac_cv_exeext= 4174 4175 else case e in #( 4176 e) ac_file='' ;; 4177 esac 4178 fi 4179 if test -z "$ac_file" 4180 then : 4181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4182 printf '%s\n' "no" >&6; } 4183 printf '%s\n' "$as_me: failed program was:" >&5 4184 sed 's/^/| /' conftest.$ac_ext >&5 4185 4186 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4187 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4188 as_fn_error 77 "C compiler cannot create executables 4189 See 'config.log' for more details" "$LINENO" 5; } 4190 else case e in #( 4191 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4192 printf '%s\n' "yes" >&6; } ;; 4193 esac 4194 fi 4195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4196 printf %s "checking for C compiler default output file name... " >&6; } 4197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4198 printf '%s\n' "$ac_file" >&6; } 4199 ac_exeext=$ac_cv_exeext 4200 4201 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4202 ac_clean_files=$ac_clean_files_save 4203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4204 printf %s "checking for suffix of executables... " >&6; } 4205 if { { ac_try="$ac_link" 4206 case "(($ac_try" in 4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4208 *) ac_try_echo=$ac_try;; 4209 esac 4210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4211 printf '%s\n' "$ac_try_echo"; } >&5 4212 (eval "$ac_link") 2>&5 4213 ac_status=$? 4214 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4215 test $ac_status = 0; } 4216 then : 4217 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4218 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4219 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4220 # 'rm'. 4221 for ac_file in conftest.exe conftest conftest.*; do 4222 test -f "$ac_file" || continue 4223 case $ac_file in 4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4226 break;; 4227 * ) break;; 4228 esac 4229 done 4230 else case e in #( 4231 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4232 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4233 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4234 See 'config.log' for more details" "$LINENO" 5; } ;; 4235 esac 4236 fi 4237 rm -f conftest conftest$ac_cv_exeext 4238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4239 printf '%s\n' "$ac_cv_exeext" >&6; } 4240 4241 rm -f conftest.$ac_ext 4242 EXEEXT=$ac_cv_exeext 4243 ac_exeext=$EXEEXT 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245 /* end confdefs.h. */ 4246 #include <stdio.h> 4247 int 4248 main (void) 4249 { 4250 FILE *f = fopen ("conftest.out", "w"); 4251 if (!f) 4252 return 1; 4253 return ferror (f) || fclose (f) != 0; 4254 4255 ; 4256 return 0; 4257 } 4258 _ACEOF 4259 ac_clean_files="$ac_clean_files conftest.out" 4260 # Check that the compiler produces executables we can run. If not, either 4261 # the compiler is broken, or we cross compile. 4262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4263 printf %s "checking whether we are cross compiling... " >&6; } 4264 if test "$cross_compiling" != yes; then 4265 { { ac_try="$ac_link" 4266 case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269 esac 4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4271 printf '%s\n' "$ac_try_echo"; } >&5 4272 (eval "$ac_link") 2>&5 4273 ac_status=$? 4274 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4275 test $ac_status = 0; } 4276 if { ac_try='./conftest$ac_cv_exeext' 4277 { { case "(($ac_try" in 4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4279 *) ac_try_echo=$ac_try;; 4280 esac 4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4282 printf '%s\n' "$ac_try_echo"; } >&5 4283 (eval "$ac_try") 2>&5 4284 ac_status=$? 4285 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4286 test $ac_status = 0; }; }; then 4287 cross_compiling=no 4288 else 4289 if test "$cross_compiling" = maybe; then 4290 cross_compiling=yes 4291 else 4292 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4293 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4294 as_fn_error 77 "cannot run C compiled programs. 4295 If you meant to cross compile, use '--host'. 4296 See 'config.log' for more details" "$LINENO" 5; } 4297 fi 4298 fi 4299 fi 4300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4301 printf '%s\n' "$cross_compiling" >&6; } 4302 4303 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4304 conftest.o conftest.obj conftest.out 4305 ac_clean_files=$ac_clean_files_save 4306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4307 printf %s "checking for suffix of object files... " >&6; } 4308 if test ${ac_cv_objext+y} 4309 then : 4310 printf %s "(cached) " >&6 4311 else case e in #( 4312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313 /* end confdefs.h. */ 4314 4315 int 4316 main (void) 4317 { 4318 4319 ; 4320 return 0; 4321 } 4322 _ACEOF 4323 rm -f conftest.o conftest.obj 4324 if { { ac_try="$ac_compile" 4325 case "(($ac_try" in 4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4327 *) ac_try_echo=$ac_try;; 4328 esac 4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4330 printf '%s\n' "$ac_try_echo"; } >&5 4331 (eval "$ac_compile") 2>&5 4332 ac_status=$? 4333 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4334 test $ac_status = 0; } 4335 then : 4336 for ac_file in conftest.o conftest.obj conftest.*; do 4337 test -f "$ac_file" || continue; 4338 case $ac_file in 4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4341 break;; 4342 esac 4343 done 4344 else case e in #( 4345 e) printf '%s\n' "$as_me: failed program was:" >&5 4346 sed 's/^/| /' conftest.$ac_ext >&5 4347 4348 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4349 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4350 as_fn_error $? "cannot compute suffix of object files: cannot compile 4351 See 'config.log' for more details" "$LINENO" 5; } ;; 4352 esac 4353 fi 4354 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4355 esac 4356 fi 4357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4358 printf '%s\n' "$ac_cv_objext" >&6; } 4359 OBJEXT=$ac_cv_objext 4360 ac_objext=$OBJEXT 4361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4362 printf %s "checking whether the compiler supports GNU C... " >&6; } 4363 if test ${ac_cv_c_compiler_gnu+y} 4364 then : 4365 printf %s "(cached) " >&6 4366 else case e in #( 4367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368 /* end confdefs.h. */ 4369 4370 int 4371 main (void) 4372 { 4373 #ifndef __GNUC__ 4374 choke me 4375 #endif 4376 4377 ; 4378 return 0; 4379 } 4380 _ACEOF 4381 if ac_fn_c_try_compile "$LINENO" 4382 then : 4383 ac_compiler_gnu=yes 4384 else case e in #( 4385 e) ac_compiler_gnu=no ;; 4386 esac 4387 fi 4388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4389 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4390 ;; 4391 esac 4392 fi 4393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4394 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; } 4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4396 4397 if test $ac_compiler_gnu = yes; then 4398 GCC=yes 4399 else 4400 GCC= 4401 fi 4402 ac_test_CFLAGS=${CFLAGS+y} 4403 ac_save_CFLAGS=$CFLAGS 4404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4405 printf %s "checking whether $CC accepts -g... " >&6; } 4406 if test ${ac_cv_prog_cc_g+y} 4407 then : 4408 printf %s "(cached) " >&6 4409 else case e in #( 4410 e) ac_save_c_werror_flag=$ac_c_werror_flag 4411 ac_c_werror_flag=yes 4412 ac_cv_prog_cc_g=no 4413 CFLAGS="-g" 4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4415 /* end confdefs.h. */ 4416 4417 int 4418 main (void) 4419 { 4420 4421 ; 4422 return 0; 4423 } 4424 _ACEOF 4425 if ac_fn_c_try_compile "$LINENO" 4426 then : 4427 ac_cv_prog_cc_g=yes 4428 else case e in #( 4429 e) CFLAGS="" 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431 /* end confdefs.h. */ 4432 4433 int 4434 main (void) 4435 { 4436 4437 ; 4438 return 0; 4439 } 4440 _ACEOF 4441 if ac_fn_c_try_compile "$LINENO" 4442 then : 4443 4444 else case e in #( 4445 e) ac_c_werror_flag=$ac_save_c_werror_flag 4446 CFLAGS="-g" 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448 /* end confdefs.h. */ 4449 4450 int 4451 main (void) 4452 { 4453 4454 ; 4455 return 0; 4456 } 4457 _ACEOF 4458 if ac_fn_c_try_compile "$LINENO" 4459 then : 4460 ac_cv_prog_cc_g=yes 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 esac 4467 fi 4468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4469 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4470 esac 4471 fi 4472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4473 printf '%s\n' "$ac_cv_prog_cc_g" >&6; } 4474 if test $ac_test_CFLAGS; then 4475 CFLAGS=$ac_save_CFLAGS 4476 elif test $ac_cv_prog_cc_g = yes; then 4477 if test "$GCC" = yes; then 4478 CFLAGS="-g -O2" 4479 else 4480 CFLAGS="-g" 4481 fi 4482 else 4483 if test "$GCC" = yes; then 4484 CFLAGS="-O2" 4485 else 4486 CFLAGS= 4487 fi 4488 fi 4489 ac_prog_cc_stdc=no 4490 if test x$ac_prog_cc_stdc = xno 4491 then : 4492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5 4493 printf %s "checking for $CC option to enable C23 features... " >&6; } 4494 if test ${ac_cv_prog_cc_c23+y} 4495 then : 4496 printf %s "(cached) " >&6 4497 else case e in #( 4498 e) ac_cv_prog_cc_c23=no 4499 ac_save_CC=$CC 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501 /* end confdefs.h. */ 4502 $ac_c_conftest_c23_program 4503 _ACEOF 4504 for ac_arg in '' -std=gnu23 4505 do 4506 CC="$ac_save_CC $ac_arg" 4507 if ac_fn_c_try_compile "$LINENO" 4508 then : 4509 ac_cv_prog_cc_c23=$ac_arg 4510 fi 4511 rm -f core conftest.err conftest.$ac_objext conftest.beam 4512 test "x$ac_cv_prog_cc_c23" != "xno" && break 4513 done 4514 rm -f conftest.$ac_ext 4515 CC=$ac_save_CC ;; 4516 esac 4517 fi 4518 4519 if test "x$ac_cv_prog_cc_c23" = xno 4520 then : 4521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4522 printf '%s\n' "unsupported" >&6; } 4523 else case e in #( 4524 e) if test "x$ac_cv_prog_cc_c23" = x 4525 then : 4526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4527 printf '%s\n' "none needed" >&6; } 4528 else case e in #( 4529 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5 4530 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; } 4531 CC="$CC $ac_cv_prog_cc_c23" ;; 4532 esac 4533 fi 4534 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23 4535 ac_prog_cc_stdc=c23 ;; 4536 esac 4537 fi 4538 fi 4539 if test x$ac_prog_cc_stdc = xno 4540 then : 4541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4542 printf %s "checking for $CC option to enable C11 features... " >&6; } 4543 if test ${ac_cv_prog_cc_c11+y} 4544 then : 4545 printf %s "(cached) " >&6 4546 else case e in #( 4547 e) ac_cv_prog_cc_c11=no 4548 ac_save_CC=$CC 4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4550 /* end confdefs.h. */ 4551 $ac_c_conftest_c11_program 4552 _ACEOF 4553 for ac_arg in '' -std=gnu11 -std:c11 4554 do 4555 CC="$ac_save_CC $ac_arg" 4556 if ac_fn_c_try_compile "$LINENO" 4557 then : 4558 ac_cv_prog_cc_c11=$ac_arg 4559 fi 4560 rm -f core conftest.err conftest.$ac_objext conftest.beam 4561 test "x$ac_cv_prog_cc_c11" != "xno" && break 4562 done 4563 rm -f conftest.$ac_ext 4564 CC=$ac_save_CC ;; 4565 esac 4566 fi 4567 4568 if test "x$ac_cv_prog_cc_c11" = xno 4569 then : 4570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4571 printf '%s\n' "unsupported" >&6; } 4572 else case e in #( 4573 e) if test "x$ac_cv_prog_cc_c11" = x 4574 then : 4575 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4576 printf '%s\n' "none needed" >&6; } 4577 else case e in #( 4578 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4579 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; } 4580 CC="$CC $ac_cv_prog_cc_c11" ;; 4581 esac 4582 fi 4583 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4584 ac_prog_cc_stdc=c11 ;; 4585 esac 4586 fi 4587 fi 4588 if test x$ac_prog_cc_stdc = xno 4589 then : 4590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4591 printf %s "checking for $CC option to enable C99 features... " >&6; } 4592 if test ${ac_cv_prog_cc_c99+y} 4593 then : 4594 printf %s "(cached) " >&6 4595 else case e in #( 4596 e) ac_cv_prog_cc_c99=no 4597 ac_save_CC=$CC 4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4599 /* end confdefs.h. */ 4600 $ac_c_conftest_c99_program 4601 _ACEOF 4602 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4603 do 4604 CC="$ac_save_CC $ac_arg" 4605 if ac_fn_c_try_compile "$LINENO" 4606 then : 4607 ac_cv_prog_cc_c99=$ac_arg 4608 fi 4609 rm -f core conftest.err conftest.$ac_objext conftest.beam 4610 test "x$ac_cv_prog_cc_c99" != "xno" && break 4611 done 4612 rm -f conftest.$ac_ext 4613 CC=$ac_save_CC ;; 4614 esac 4615 fi 4616 4617 if test "x$ac_cv_prog_cc_c99" = xno 4618 then : 4619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4620 printf '%s\n' "unsupported" >&6; } 4621 else case e in #( 4622 e) if test "x$ac_cv_prog_cc_c99" = x 4623 then : 4624 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4625 printf '%s\n' "none needed" >&6; } 4626 else case e in #( 4627 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4628 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; } 4629 CC="$CC $ac_cv_prog_cc_c99" ;; 4630 esac 4631 fi 4632 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4633 ac_prog_cc_stdc=c99 ;; 4634 esac 4635 fi 4636 fi 4637 if test x$ac_prog_cc_stdc = xno 4638 then : 4639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4640 printf %s "checking for $CC option to enable C89 features... " >&6; } 4641 if test ${ac_cv_prog_cc_c89+y} 4642 then : 4643 printf %s "(cached) " >&6 4644 else case e in #( 4645 e) ac_cv_prog_cc_c89=no 4646 ac_save_CC=$CC 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4648 /* end confdefs.h. */ 4649 $ac_c_conftest_c89_program 4650 _ACEOF 4651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4652 do 4653 CC="$ac_save_CC $ac_arg" 4654 if ac_fn_c_try_compile "$LINENO" 4655 then : 4656 ac_cv_prog_cc_c89=$ac_arg 4657 fi 4658 rm -f core conftest.err conftest.$ac_objext conftest.beam 4659 test "x$ac_cv_prog_cc_c89" != "xno" && break 4660 done 4661 rm -f conftest.$ac_ext 4662 CC=$ac_save_CC ;; 4663 esac 4664 fi 4665 4666 if test "x$ac_cv_prog_cc_c89" = xno 4667 then : 4668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4669 printf '%s\n' "unsupported" >&6; } 4670 else case e in #( 4671 e) if test "x$ac_cv_prog_cc_c89" = x 4672 then : 4673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4674 printf '%s\n' "none needed" >&6; } 4675 else case e in #( 4676 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4677 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; } 4678 CC="$CC $ac_cv_prog_cc_c89" ;; 4679 esac 4680 fi 4681 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4682 ac_prog_cc_stdc=c89 ;; 4683 esac 4684 fi 4685 fi 4686 4687 ac_ext=c 4688 ac_cpp='$CPP $CPPFLAGS' 4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4692 4693 4694 ac_ext=c 4695 ac_cpp='$CPP $CPPFLAGS' 4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4700 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4701 if test ${am_cv_prog_cc_c_o+y} 4702 then : 4703 printf %s "(cached) " >&6 4704 else case e in #( 4705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706 /* end confdefs.h. */ 4707 4708 int 4709 main (void) 4710 { 4711 4712 ; 4713 return 0; 4714 } 4715 _ACEOF 4716 # Make sure it works both with $CC and with simple cc. 4717 # Following AC_PROG_CC_C_O, we do the test twice because some 4718 # compilers refuse to overwrite an existing .o file with -o, 4719 # though they will create one. 4720 am_cv_prog_cc_c_o=yes 4721 for am_i in 1 2; do 4722 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4723 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); } \ 4727 && test -f conftest2.$ac_objext; then 4728 : OK 4729 else 4730 am_cv_prog_cc_c_o=no 4731 break 4732 fi 4733 done 4734 # aligned with autoconf, so not including core; see bug#72225. 4735 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4736 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4737 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4738 unset am_i ;; 4739 esac 4740 fi 4741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4742 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; } 4743 if test "$am_cv_prog_cc_c_o" != yes; then 4744 # Losing compiler, so override with the script. 4745 # FIXME: It is wrong to rewrite CC. 4746 # But if we don't then we get into trouble of one sort or another. 4747 # A longer-term fix would be to have automake use am__CC in this case, 4748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4749 CC="$am_aux_dir/compile $CC" 4750 fi 4751 ac_ext=c 4752 ac_cpp='$CPP $CPPFLAGS' 4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4756 4757 4758 depcc="$CC" am_compiler_list= 4759 4760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4761 printf %s "checking dependency style of $depcc... " >&6; } 4762 if test ${am_cv_CC_dependencies_compiler_type+y} 4763 then : 4764 printf %s "(cached) " >&6 4765 else case e in #( 4766 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4767 # We make a subdir and do the tests there. Otherwise we can end up 4768 # making bogus files that we don't know about and never remove. For 4769 # instance it was reported that on HP-UX the gcc test will end up 4770 # making a dummy file named 'D' -- because '-MD' means "put the output 4771 # in D". 4772 rm -rf conftest.dir 4773 mkdir conftest.dir 4774 # Copy depcomp to subdir because otherwise we won't find it if we're 4775 # using a relative directory. 4776 cp "$am_depcomp" conftest.dir 4777 cd conftest.dir 4778 # We will build objects and dependencies in a subdirectory because 4779 # it helps to detect inapplicable dependency modes. For instance 4780 # both Tru64's cc and ICC support -MD to output dependencies as a 4781 # side effect of compilation, but ICC will put the dependencies in 4782 # the current directory while Tru64 will put them in the object 4783 # directory. 4784 mkdir sub 4785 4786 am_cv_CC_dependencies_compiler_type=none 4787 if test "$am_compiler_list" = ""; then 4788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4789 fi 4790 am__universal=false 4791 case " $depcc " in #( 4792 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4793 esac 4794 4795 for depmode in $am_compiler_list; do 4796 # Setup a source with many dependencies, because some compilers 4797 # like to wrap large dependency lists on column 80 (with \), and 4798 # we should not choose a depcomp mode which is confused by this. 4799 # 4800 # We need to recreate these files for each test, as the compiler may 4801 # overwrite some of them when testing with obscure command lines. 4802 # This happens at least with the AIX C compiler. 4803 : > sub/conftest.c 4804 for i in 1 2 3 4 5 6; do 4805 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4806 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4807 # Solaris 10 /bin/sh. 4808 echo '/* dummy */' > sub/conftst$i.h 4809 done 4810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4811 4812 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4813 # mode. It turns out that the SunPro C++ compiler does not properly 4814 # handle '-M -o', and we need to detect this. Also, some Intel 4815 # versions had trouble with output in subdirs. 4816 am__obj=sub/conftest.${OBJEXT-o} 4817 am__minus_obj="-o $am__obj" 4818 case $depmode in 4819 gcc) 4820 # This depmode causes a compiler race in universal mode. 4821 test "$am__universal" = false || continue 4822 ;; 4823 nosideeffect) 4824 # After this tag, mechanisms are not by side-effect, so they'll 4825 # only be used when explicitly requested. 4826 if test "x$enable_dependency_tracking" = xyes; then 4827 continue 4828 else 4829 break 4830 fi 4831 ;; 4832 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4833 # This compiler won't grok '-c -o', but also, the minuso test has 4834 # not run yet. These depmodes are late enough in the game, and 4835 # so weak that their functioning should not be impacted. 4836 am__obj=conftest.${OBJEXT-o} 4837 am__minus_obj= 4838 ;; 4839 none) break ;; 4840 esac 4841 if depmode=$depmode \ 4842 source=sub/conftest.c object=$am__obj \ 4843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4844 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4845 >/dev/null 2>conftest.err && 4846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4848 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4850 # icc doesn't choke on unknown options, it will just issue warnings 4851 # or remarks (even with -Werror). So we grep stderr for any message 4852 # that says an option was ignored or not supported. 4853 # When given -MP, icc 7.0 and 7.1 complain thus: 4854 # icc: Command line warning: ignoring option '-M'; no argument required 4855 # The diagnosis changed in icc 8.0: 4856 # icc: Command line remark: option '-MP' not supported 4857 if (grep 'ignoring option' conftest.err || 4858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4859 am_cv_CC_dependencies_compiler_type=$depmode 4860 break 4861 fi 4862 fi 4863 done 4864 4865 cd .. 4866 rm -rf conftest.dir 4867 else 4868 am_cv_CC_dependencies_compiler_type=none 4869 fi 4870 ;; 4871 esac 4872 fi 4873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4874 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; } 4875 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4876 4877 if 4878 test "x$enable_dependency_tracking" != xno \ 4879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4880 am__fastdepCC_TRUE= 4881 am__fastdepCC_FALSE='#' 4882 else 4883 am__fastdepCC_TRUE='#' 4884 am__fastdepCC_FALSE= 4885 fi 4886 4887 4888 4889 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5 4890 printf %s "checking for $CC options to detect undeclared functions... " >&6; } 4891 if test ${ac_cv_c_undeclared_builtin_options+y} 4892 then : 4893 printf %s "(cached) " >&6 4894 else case e in #( 4895 e) ac_save_CFLAGS=$CFLAGS 4896 ac_cv_c_undeclared_builtin_options='cannot detect' 4897 for ac_arg in '' -fno-builtin; do 4898 CFLAGS="$ac_save_CFLAGS $ac_arg" 4899 # This test program should *not* compile successfully. 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901 /* end confdefs.h. */ 4902 4903 int 4904 main (void) 4905 { 4906 (void) strchr; 4907 ; 4908 return 0; 4909 } 4910 _ACEOF 4911 if ac_fn_c_try_compile "$LINENO" 4912 then : 4913 4914 else case e in #( 4915 e) # This test program should compile successfully. 4916 # No library function is consistently available on 4917 # freestanding implementations, so test against a dummy 4918 # declaration. Include always-available headers on the 4919 # off chance that they somehow elicit warnings. 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921 /* end confdefs.h. */ 4922 #include <float.h> 4923 #include <limits.h> 4924 #include <stdarg.h> 4925 #include <stddef.h> 4926 extern void ac_decl (int, char *); 4927 4928 int 4929 main (void) 4930 { 4931 (void) ac_decl (0, (char *) 0); 4932 (void) ac_decl; 4933 4934 ; 4935 return 0; 4936 } 4937 _ACEOF 4938 if ac_fn_c_try_compile "$LINENO" 4939 then : 4940 if test x"$ac_arg" = x 4941 then : 4942 ac_cv_c_undeclared_builtin_options='none needed' 4943 else case e in #( 4944 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4945 esac 4946 fi 4947 break 4948 fi 4949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4950 esac 4951 fi 4952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4953 done 4954 CFLAGS=$ac_save_CFLAGS 4955 ;; 4956 esac 4957 fi 4958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4959 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; } 4960 case $ac_cv_c_undeclared_builtin_options in #( 4961 'cannot detect') : 4962 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4963 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4964 as_fn_error $? "cannot make $CC report undeclared builtins 4965 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4966 'none needed') : 4967 ac_c_undeclared_builtin_options='' ;; #( 4968 *) : 4969 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4970 esac 4971 4972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5 4973 printf %s "checking for $CC options to ignore future-version functions... " >&6; } 4974 if test ${ac_cv_c_future_darwin_options+y} 4975 then : 4976 printf %s "(cached) " >&6 4977 else case e in #( 4978 e) ac_compile_saved="$ac_compile" 4979 ac_compile="$ac_compile -Werror=unguarded-availability-new" 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981 /* end confdefs.h. */ 4982 #if ! (defined __APPLE__ && defined __MACH__) 4983 #error "-Werror=unguarded-availability-new not needed here" 4984 #endif 4985 4986 int 4987 main (void) 4988 { 4989 4990 ; 4991 return 0; 4992 } 4993 _ACEOF 4994 if ac_fn_c_try_compile "$LINENO" 4995 then : 4996 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new' 4997 else case e in #( 4998 e) ac_cv_c_future_darwin_options='none needed' ;; 4999 esac 5000 fi 5001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5002 ac_compile="$ac_compile_saved" 5003 ;; 5004 esac 5005 fi 5006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5 5007 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; } 5008 case $ac_cv_c_future_darwin_options in #( 5009 'none needed') : 5010 ac_c_future_darwin_options='' ;; #( 5011 *) : 5012 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;; 5013 esac 5014 5015 ac_header= ac_cache= 5016 for ac_item in $ac_header_c_list 5017 do 5018 if test $ac_cache; then 5019 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5020 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5021 printf '%s\n' "#define $ac_item 1" >> confdefs.h 5022 fi 5023 ac_header= ac_cache= 5024 elif test $ac_header; then 5025 ac_cache=$ac_item 5026 else 5027 ac_header=$ac_item 5028 fi 5029 done 5030 5031 5032 5033 5034 5035 5036 5037 5038 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5039 then : 5040 5041 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h 5042 5043 fi 5044 5045 5046 5047 5048 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" 5049 if test "x$ac_cv_have_decl___clang__" = xyes 5050 then : 5051 CLANGCC="yes" 5052 else case e in #( 5053 e) CLANGCC="no" ;; 5054 esac 5055 fi 5056 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" 5057 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5058 then : 5059 INTELCC="yes" 5060 else case e in #( 5061 e) INTELCC="no" ;; 5062 esac 5063 fi 5064 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" 5065 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5066 then : 5067 SUNCC="yes" 5068 else case e in #( 5069 e) SUNCC="no" ;; 5070 esac 5071 fi 5072 5073 5074 5075 5076 5077 5078 5079 5080 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5081 if test -n "$ac_tool_prefix"; then 5082 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5083 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5085 printf %s "checking for $ac_word... " >&6; } 5086 if test ${ac_cv_path_PKG_CONFIG+y} 5087 then : 5088 printf %s "(cached) " >&6 5089 else case e in #( 5090 e) case $PKG_CONFIG in 5091 [\\/]* | ?:[\\/]*) 5092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5093 ;; 5094 *) 5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5096 for as_dir in $PATH 5097 do 5098 IFS=$as_save_IFS 5099 case $as_dir in #((( 5100 '') as_dir=./ ;; 5101 */) ;; 5102 *) as_dir=$as_dir/ ;; 5103 esac 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5106 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5107 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110 done 5111 done 5112 IFS=$as_save_IFS 5113 5114 ;; 5115 esac ;; 5116 esac 5117 fi 5118 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5119 if test -n "$PKG_CONFIG"; then 5120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5121 printf '%s\n' "$PKG_CONFIG" >&6; } 5122 else 5123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5124 printf '%s\n' "no" >&6; } 5125 fi 5126 5127 5128 fi 5129 if test -z "$ac_cv_path_PKG_CONFIG"; then 5130 ac_pt_PKG_CONFIG=$PKG_CONFIG 5131 # Extract the first word of "pkg-config", so it can be a program name with args. 5132 set dummy pkg-config; ac_word=$2 5133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5134 printf %s "checking for $ac_word... " >&6; } 5135 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5136 then : 5137 printf %s "(cached) " >&6 5138 else case e in #( 5139 e) case $ac_pt_PKG_CONFIG in 5140 [\\/]* | ?:[\\/]*) 5141 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5142 ;; 5143 *) 5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5145 for as_dir in $PATH 5146 do 5147 IFS=$as_save_IFS 5148 case $as_dir in #((( 5149 '') as_dir=./ ;; 5150 */) ;; 5151 *) as_dir=$as_dir/ ;; 5152 esac 5153 for ac_exec_ext in '' $ac_executable_extensions; do 5154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5155 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5156 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5157 break 2 5158 fi 5159 done 5160 done 5161 IFS=$as_save_IFS 5162 5163 ;; 5164 esac ;; 5165 esac 5166 fi 5167 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5168 if test -n "$ac_pt_PKG_CONFIG"; then 5169 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5170 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; } 5171 else 5172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5173 printf '%s\n' "no" >&6; } 5174 fi 5175 5176 if test "x$ac_pt_PKG_CONFIG" = x; then 5177 PKG_CONFIG="" 5178 else 5179 case $cross_compiling:$ac_tool_warned in 5180 yes:) 5181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5182 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5183 ac_tool_warned=yes ;; 5184 esac 5185 PKG_CONFIG=$ac_pt_PKG_CONFIG 5186 fi 5187 else 5188 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5189 fi 5190 5191 fi 5192 if test -n "$PKG_CONFIG"; then 5193 _pkg_min_version=0.9.0 5194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5195 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5196 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5197 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5198 printf '%s\n' "yes" >&6; } 5199 else 5200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201 printf '%s\n' "no" >&6; } 5202 PKG_CONFIG="" 5203 fi 5204 fi 5205 5206 5207 # Make sure we can run config.sub. 5208 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5209 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5210 5211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5212 printf %s "checking build system type... " >&6; } 5213 if test ${ac_cv_build+y} 5214 then : 5215 printf %s "(cached) " >&6 5216 else case e in #( 5217 e) ac_build_alias=$build_alias 5218 test "x$ac_build_alias" = x && 5219 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5220 test "x$ac_build_alias" = x && 5221 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5222 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5223 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5224 ;; 5225 esac 5226 fi 5227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5228 printf '%s\n' "$ac_cv_build" >&6; } 5229 case $ac_cv_build in 5230 *-*-*) ;; 5231 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5232 esac 5233 build=$ac_cv_build 5234 ac_save_IFS=$IFS; IFS='-' 5235 set x $ac_cv_build 5236 shift 5237 build_cpu=$1 5238 build_vendor=$2 5239 shift; shift 5240 # Remember, the first character of IFS is used to create $*, 5241 # except with old shells: 5242 build_os=$* 5243 IFS=$ac_save_IFS 5244 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac 5245 5246 5247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5248 printf %s "checking host system type... " >&6; } 5249 if test ${ac_cv_host+y} 5250 then : 5251 printf %s "(cached) " >&6 5252 else case e in #( 5253 e) if test "x$host_alias" = x; then 5254 ac_cv_host=$ac_cv_build 5255 else 5256 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5257 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5258 fi 5259 ;; 5260 esac 5261 fi 5262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5263 printf '%s\n' "$ac_cv_host" >&6; } 5264 case $ac_cv_host in 5265 *-*-*) ;; 5266 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5267 esac 5268 host=$ac_cv_host 5269 ac_save_IFS=$IFS; IFS='-' 5270 set x $ac_cv_host 5271 shift 5272 host_cpu=$1 5273 host_vendor=$2 5274 shift; shift 5275 # Remember, the first character of IFS is used to create $*, 5276 # except with old shells: 5277 host_os=$* 5278 IFS=$ac_save_IFS 5279 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac 5280 5281 5282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5283 printf %s "checking for a sed that does not truncate output... " >&6; } 5284 if test ${ac_cv_path_SED+y} 5285 then : 5286 printf %s "(cached) " >&6 5287 else case e in #( 5288 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5289 for ac_i in 1 2 3 4 5 6 7; do 5290 ac_script="$ac_script$as_nl$ac_script" 5291 done 5292 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5293 { ac_script=; unset ac_script;} 5294 if test -z "$SED"; then 5295 ac_path_SED_found=false 5296 # Loop through the user's path and test for each of PROGNAME-LIST 5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298 for as_dir in $PATH 5299 do 5300 IFS=$as_save_IFS 5301 case $as_dir in #((( 5302 '') as_dir=./ ;; 5303 */) ;; 5304 *) as_dir=$as_dir/ ;; 5305 esac 5306 for ac_prog in sed gsed 5307 do 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5310 as_fn_executable_p "$ac_path_SED" || continue 5311 # Check for GNU ac_path_SED and select it if it is found. 5312 # Check for GNU $ac_path_SED 5313 case `"$ac_path_SED" --version 2>&1` in #( 5314 *GNU*) 5315 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5316 #( 5317 *) 5318 ac_count=0 5319 printf %s 0123456789 >"conftest.in" 5320 while : 5321 do 5322 cat "conftest.in" "conftest.in" >"conftest.tmp" 5323 mv "conftest.tmp" "conftest.in" 5324 cp "conftest.in" "conftest.nl" 5325 printf '%s\n' '' >> "conftest.nl" 5326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5328 as_fn_arith $ac_count + 1 && ac_count=$as_val 5329 if test $ac_count -gt ${ac_path_SED_max-0}; then 5330 # Best one so far, save it but keep looking for a better one 5331 ac_cv_path_SED="$ac_path_SED" 5332 ac_path_SED_max=$ac_count 5333 fi 5334 # 10*(2^10) chars as input seems more than enough 5335 test $ac_count -gt 10 && break 5336 done 5337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5338 esac 5339 5340 $ac_path_SED_found && break 3 5341 done 5342 done 5343 done 5344 IFS=$as_save_IFS 5345 if test -z "$ac_cv_path_SED"; then 5346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5347 fi 5348 else 5349 ac_cv_path_SED=$SED 5350 fi 5351 ;; 5352 esac 5353 fi 5354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5355 printf '%s\n' "$ac_cv_path_SED" >&6; } 5356 SED="$ac_cv_path_SED" 5357 rm -f conftest.sed 5358 5359 5360 5361 5362 5363 5364 # Check whether --enable-selective-werror was given. 5365 if test ${enable_selective_werror+y} 5366 then : 5367 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5368 else case e in #( 5369 e) SELECTIVE_WERROR=yes ;; 5370 esac 5371 fi 5372 5373 5374 5375 5376 5377 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5378 if test "x$SUNCC" = "xyes"; then 5379 BASE_CFLAGS="-v" 5380 else 5381 BASE_CFLAGS="" 5382 fi 5383 5384 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 xorg_testset_save_CFLAGS="$CFLAGS" 5399 5400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5404 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5405 then : 5406 printf %s "(cached) " >&6 5407 else case e in #( 5408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5409 /* end confdefs.h. */ 5410 int i; 5411 _ACEOF 5412 if ac_fn_c_try_compile "$LINENO" 5413 then : 5414 xorg_cv_cc_flag_unknown_warning_option=yes 5415 else case e in #( 5416 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5417 esac 5418 fi 5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5420 esac 5421 fi 5422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5423 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5425 CFLAGS="$xorg_testset_save_CFLAGS" 5426 fi 5427 5428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5431 fi 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5436 then : 5437 printf %s "(cached) " >&6 5438 else case e in #( 5439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5440 /* end confdefs.h. */ 5441 int i; 5442 _ACEOF 5443 if ac_fn_c_try_compile "$LINENO" 5444 then : 5445 xorg_cv_cc_flag_unused_command_line_argument=yes 5446 else case e in #( 5447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5448 esac 5449 fi 5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5451 esac 5452 fi 5453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5454 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457 fi 5458 5459 found="no" 5460 5461 if test $found = "no" ; then 5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5464 fi 5465 5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5468 fi 5469 5470 CFLAGS="$CFLAGS -Wall" 5471 5472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5473 printf %s "checking if $CC supports -Wall... " >&6; } 5474 cacheid=xorg_cv_cc_flag__Wall 5475 if eval test \${$cacheid+y} 5476 then : 5477 printf %s "(cached) " >&6 5478 else case e in #( 5479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480 /* end confdefs.h. */ 5481 int i; 5482 int 5483 main (void) 5484 { 5485 5486 ; 5487 return 0; 5488 } 5489 _ACEOF 5490 if ac_fn_c_try_link "$LINENO" 5491 then : 5492 eval $cacheid=yes 5493 else case e in #( 5494 e) eval $cacheid=no ;; 5495 esac 5496 fi 5497 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5498 conftest$ac_exeext conftest.$ac_ext ;; 5499 esac 5500 fi 5501 5502 5503 CFLAGS="$xorg_testset_save_CFLAGS" 5504 5505 eval supported=\$$cacheid 5506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5507 printf '%s\n' "$supported" >&6; } 5508 if test "$supported" = "yes" ; then 5509 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5510 found="yes" 5511 fi 5512 fi 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 xorg_testset_save_CFLAGS="$CFLAGS" 5529 5530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5534 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5535 then : 5536 printf %s "(cached) " >&6 5537 else case e in #( 5538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539 /* end confdefs.h. */ 5540 int i; 5541 _ACEOF 5542 if ac_fn_c_try_compile "$LINENO" 5543 then : 5544 xorg_cv_cc_flag_unknown_warning_option=yes 5545 else case e in #( 5546 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5547 esac 5548 fi 5549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5550 esac 5551 fi 5552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5553 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556 fi 5557 5558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5566 then : 5567 printf %s "(cached) " >&6 5568 else case e in #( 5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570 /* end confdefs.h. */ 5571 int i; 5572 _ACEOF 5573 if ac_fn_c_try_compile "$LINENO" 5574 then : 5575 xorg_cv_cc_flag_unused_command_line_argument=yes 5576 else case e in #( 5577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5578 esac 5579 fi 5580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5581 esac 5582 fi 5583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5584 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587 fi 5588 5589 found="no" 5590 5591 if test $found = "no" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5598 fi 5599 5600 CFLAGS="$CFLAGS -Wpointer-arith" 5601 5602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5603 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5604 cacheid=xorg_cv_cc_flag__Wpointer_arith 5605 if eval test \${$cacheid+y} 5606 then : 5607 printf %s "(cached) " >&6 5608 else case e in #( 5609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610 /* end confdefs.h. */ 5611 int i; 5612 int 5613 main (void) 5614 { 5615 5616 ; 5617 return 0; 5618 } 5619 _ACEOF 5620 if ac_fn_c_try_link "$LINENO" 5621 then : 5622 eval $cacheid=yes 5623 else case e in #( 5624 e) eval $cacheid=no ;; 5625 esac 5626 fi 5627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5628 conftest$ac_exeext conftest.$ac_ext ;; 5629 esac 5630 fi 5631 5632 5633 CFLAGS="$xorg_testset_save_CFLAGS" 5634 5635 eval supported=\$$cacheid 5636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5637 printf '%s\n' "$supported" >&6; } 5638 if test "$supported" = "yes" ; then 5639 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5640 found="yes" 5641 fi 5642 fi 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 xorg_testset_save_CFLAGS="$CFLAGS" 5659 5660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5664 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5665 then : 5666 printf %s "(cached) " >&6 5667 else case e in #( 5668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5669 /* end confdefs.h. */ 5670 int i; 5671 _ACEOF 5672 if ac_fn_c_try_compile "$LINENO" 5673 then : 5674 xorg_cv_cc_flag_unknown_warning_option=yes 5675 else case e in #( 5676 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5677 esac 5678 fi 5679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5680 esac 5681 fi 5682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5683 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686 fi 5687 5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5696 then : 5697 printf %s "(cached) " >&6 5698 else case e in #( 5699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700 /* end confdefs.h. */ 5701 int i; 5702 _ACEOF 5703 if ac_fn_c_try_compile "$LINENO" 5704 then : 5705 xorg_cv_cc_flag_unused_command_line_argument=yes 5706 else case e in #( 5707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5708 esac 5709 fi 5710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5711 esac 5712 fi 5713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5714 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5716 CFLAGS="$xorg_testset_save_CFLAGS" 5717 fi 5718 5719 found="no" 5720 5721 if test $found = "no" ; then 5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 fi 5725 5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5728 fi 5729 5730 CFLAGS="$CFLAGS -Wmissing-declarations" 5731 5732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5733 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5734 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5735 if eval test \${$cacheid+y} 5736 then : 5737 printf %s "(cached) " >&6 5738 else case e in #( 5739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5740 /* end confdefs.h. */ 5741 int i; 5742 int 5743 main (void) 5744 { 5745 5746 ; 5747 return 0; 5748 } 5749 _ACEOF 5750 if ac_fn_c_try_link "$LINENO" 5751 then : 5752 eval $cacheid=yes 5753 else case e in #( 5754 e) eval $cacheid=no ;; 5755 esac 5756 fi 5757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5758 conftest$ac_exeext conftest.$ac_ext ;; 5759 esac 5760 fi 5761 5762 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764 5765 eval supported=\$$cacheid 5766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5767 printf '%s\n' "$supported" >&6; } 5768 if test "$supported" = "yes" ; then 5769 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5770 found="yes" 5771 fi 5772 fi 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 xorg_testset_save_CFLAGS="$CFLAGS" 5789 5790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5794 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5795 then : 5796 printf %s "(cached) " >&6 5797 else case e in #( 5798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799 /* end confdefs.h. */ 5800 int i; 5801 _ACEOF 5802 if ac_fn_c_try_compile "$LINENO" 5803 then : 5804 xorg_cv_cc_flag_unknown_warning_option=yes 5805 else case e in #( 5806 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5807 esac 5808 fi 5809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5810 esac 5811 fi 5812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5813 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5815 CFLAGS="$xorg_testset_save_CFLAGS" 5816 fi 5817 5818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 fi 5822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5826 then : 5827 printf %s "(cached) " >&6 5828 else case e in #( 5829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830 /* end confdefs.h. */ 5831 int i; 5832 _ACEOF 5833 if ac_fn_c_try_compile "$LINENO" 5834 then : 5835 xorg_cv_cc_flag_unused_command_line_argument=yes 5836 else case e in #( 5837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5838 esac 5839 fi 5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5841 esac 5842 fi 5843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5844 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847 fi 5848 5849 found="no" 5850 5851 if test $found = "no" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5858 fi 5859 5860 CFLAGS="$CFLAGS -Wformat=2" 5861 5862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5863 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5864 cacheid=xorg_cv_cc_flag__Wformat_2 5865 if eval test \${$cacheid+y} 5866 then : 5867 printf %s "(cached) " >&6 5868 else case e in #( 5869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870 /* end confdefs.h. */ 5871 int i; 5872 int 5873 main (void) 5874 { 5875 5876 ; 5877 return 0; 5878 } 5879 _ACEOF 5880 if ac_fn_c_try_link "$LINENO" 5881 then : 5882 eval $cacheid=yes 5883 else case e in #( 5884 e) eval $cacheid=no ;; 5885 esac 5886 fi 5887 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5888 conftest$ac_exeext conftest.$ac_ext ;; 5889 esac 5890 fi 5891 5892 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894 5895 eval supported=\$$cacheid 5896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5897 printf '%s\n' "$supported" >&6; } 5898 if test "$supported" = "yes" ; then 5899 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5900 found="yes" 5901 fi 5902 fi 5903 5904 if test $found = "no" ; then 5905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5907 fi 5908 5909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5911 fi 5912 5913 CFLAGS="$CFLAGS -Wformat" 5914 5915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5916 printf %s "checking if $CC supports -Wformat... " >&6; } 5917 cacheid=xorg_cv_cc_flag__Wformat 5918 if eval test \${$cacheid+y} 5919 then : 5920 printf %s "(cached) " >&6 5921 else case e in #( 5922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923 /* end confdefs.h. */ 5924 int i; 5925 int 5926 main (void) 5927 { 5928 5929 ; 5930 return 0; 5931 } 5932 _ACEOF 5933 if ac_fn_c_try_link "$LINENO" 5934 then : 5935 eval $cacheid=yes 5936 else case e in #( 5937 e) eval $cacheid=no ;; 5938 esac 5939 fi 5940 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5941 conftest$ac_exeext conftest.$ac_ext ;; 5942 esac 5943 fi 5944 5945 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947 5948 eval supported=\$$cacheid 5949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5950 printf '%s\n' "$supported" >&6; } 5951 if test "$supported" = "yes" ; then 5952 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5953 found="yes" 5954 fi 5955 fi 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 xorg_testset_save_CFLAGS="$CFLAGS" 5974 5975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5979 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5980 then : 5981 printf %s "(cached) " >&6 5982 else case e in #( 5983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5984 /* end confdefs.h. */ 5985 int i; 5986 _ACEOF 5987 if ac_fn_c_try_compile "$LINENO" 5988 then : 5989 xorg_cv_cc_flag_unknown_warning_option=yes 5990 else case e in #( 5991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5992 esac 5993 fi 5994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5995 esac 5996 fi 5997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5998 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6000 CFLAGS="$xorg_testset_save_CFLAGS" 6001 fi 6002 6003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6006 fi 6007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6011 then : 6012 printf %s "(cached) " >&6 6013 else case e in #( 6014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015 /* end confdefs.h. */ 6016 int i; 6017 _ACEOF 6018 if ac_fn_c_try_compile "$LINENO" 6019 then : 6020 xorg_cv_cc_flag_unused_command_line_argument=yes 6021 else case e in #( 6022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6023 esac 6024 fi 6025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6026 esac 6027 fi 6028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6029 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6031 CFLAGS="$xorg_testset_save_CFLAGS" 6032 fi 6033 6034 found="no" 6035 6036 if test $found = "no" ; then 6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6039 fi 6040 6041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6043 fi 6044 6045 CFLAGS="$CFLAGS -Wstrict-prototypes" 6046 6047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6048 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6049 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6050 if eval test \${$cacheid+y} 6051 then : 6052 printf %s "(cached) " >&6 6053 else case e in #( 6054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055 /* end confdefs.h. */ 6056 int i; 6057 int 6058 main (void) 6059 { 6060 6061 ; 6062 return 0; 6063 } 6064 _ACEOF 6065 if ac_fn_c_try_link "$LINENO" 6066 then : 6067 eval $cacheid=yes 6068 else case e in #( 6069 e) eval $cacheid=no ;; 6070 esac 6071 fi 6072 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6073 conftest$ac_exeext conftest.$ac_ext ;; 6074 esac 6075 fi 6076 6077 6078 CFLAGS="$xorg_testset_save_CFLAGS" 6079 6080 eval supported=\$$cacheid 6081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6082 printf '%s\n' "$supported" >&6; } 6083 if test "$supported" = "yes" ; then 6084 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6085 found="yes" 6086 fi 6087 fi 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 xorg_testset_save_CFLAGS="$CFLAGS" 6104 6105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6109 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6110 then : 6111 printf %s "(cached) " >&6 6112 else case e in #( 6113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6114 /* end confdefs.h. */ 6115 int i; 6116 _ACEOF 6117 if ac_fn_c_try_compile "$LINENO" 6118 then : 6119 xorg_cv_cc_flag_unknown_warning_option=yes 6120 else case e in #( 6121 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6122 esac 6123 fi 6124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6125 esac 6126 fi 6127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6128 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6130 CFLAGS="$xorg_testset_save_CFLAGS" 6131 fi 6132 6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 fi 6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6141 then : 6142 printf %s "(cached) " >&6 6143 else case e in #( 6144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6145 /* end confdefs.h. */ 6146 int i; 6147 _ACEOF 6148 if ac_fn_c_try_compile "$LINENO" 6149 then : 6150 xorg_cv_cc_flag_unused_command_line_argument=yes 6151 else case e in #( 6152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6153 esac 6154 fi 6155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6156 esac 6157 fi 6158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6159 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162 fi 6163 6164 found="no" 6165 6166 if test $found = "no" ; then 6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6169 fi 6170 6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6173 fi 6174 6175 CFLAGS="$CFLAGS -Wmissing-prototypes" 6176 6177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6178 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6179 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6180 if eval test \${$cacheid+y} 6181 then : 6182 printf %s "(cached) " >&6 6183 else case e in #( 6184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185 /* end confdefs.h. */ 6186 int i; 6187 int 6188 main (void) 6189 { 6190 6191 ; 6192 return 0; 6193 } 6194 _ACEOF 6195 if ac_fn_c_try_link "$LINENO" 6196 then : 6197 eval $cacheid=yes 6198 else case e in #( 6199 e) eval $cacheid=no ;; 6200 esac 6201 fi 6202 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6203 conftest$ac_exeext conftest.$ac_ext ;; 6204 esac 6205 fi 6206 6207 6208 CFLAGS="$xorg_testset_save_CFLAGS" 6209 6210 eval supported=\$$cacheid 6211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6212 printf '%s\n' "$supported" >&6; } 6213 if test "$supported" = "yes" ; then 6214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6215 found="yes" 6216 fi 6217 fi 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 xorg_testset_save_CFLAGS="$CFLAGS" 6234 6235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6239 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6240 then : 6241 printf %s "(cached) " >&6 6242 else case e in #( 6243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6244 /* end confdefs.h. */ 6245 int i; 6246 _ACEOF 6247 if ac_fn_c_try_compile "$LINENO" 6248 then : 6249 xorg_cv_cc_flag_unknown_warning_option=yes 6250 else case e in #( 6251 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6252 esac 6253 fi 6254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6255 esac 6256 fi 6257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6258 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6260 CFLAGS="$xorg_testset_save_CFLAGS" 6261 fi 6262 6263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6266 fi 6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6271 then : 6272 printf %s "(cached) " >&6 6273 else case e in #( 6274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275 /* end confdefs.h. */ 6276 int i; 6277 _ACEOF 6278 if ac_fn_c_try_compile "$LINENO" 6279 then : 6280 xorg_cv_cc_flag_unused_command_line_argument=yes 6281 else case e in #( 6282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6283 esac 6284 fi 6285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6286 esac 6287 fi 6288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6289 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6291 CFLAGS="$xorg_testset_save_CFLAGS" 6292 fi 6293 6294 found="no" 6295 6296 if test $found = "no" ; then 6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 fi 6300 6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303 fi 6304 6305 CFLAGS="$CFLAGS -Wnested-externs" 6306 6307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6308 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6309 cacheid=xorg_cv_cc_flag__Wnested_externs 6310 if eval test \${$cacheid+y} 6311 then : 6312 printf %s "(cached) " >&6 6313 else case e in #( 6314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315 /* end confdefs.h. */ 6316 int i; 6317 int 6318 main (void) 6319 { 6320 6321 ; 6322 return 0; 6323 } 6324 _ACEOF 6325 if ac_fn_c_try_link "$LINENO" 6326 then : 6327 eval $cacheid=yes 6328 else case e in #( 6329 e) eval $cacheid=no ;; 6330 esac 6331 fi 6332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6333 conftest$ac_exeext conftest.$ac_ext ;; 6334 esac 6335 fi 6336 6337 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339 6340 eval supported=\$$cacheid 6341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6342 printf '%s\n' "$supported" >&6; } 6343 if test "$supported" = "yes" ; then 6344 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6345 found="yes" 6346 fi 6347 fi 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 xorg_testset_save_CFLAGS="$CFLAGS" 6364 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6369 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6370 then : 6371 printf %s "(cached) " >&6 6372 else case e in #( 6373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374 /* end confdefs.h. */ 6375 int i; 6376 _ACEOF 6377 if ac_fn_c_try_compile "$LINENO" 6378 then : 6379 xorg_cv_cc_flag_unknown_warning_option=yes 6380 else case e in #( 6381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6382 esac 6383 fi 6384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6385 esac 6386 fi 6387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6388 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6390 CFLAGS="$xorg_testset_save_CFLAGS" 6391 fi 6392 6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6396 fi 6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6401 then : 6402 printf %s "(cached) " >&6 6403 else case e in #( 6404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405 /* end confdefs.h. */ 6406 int i; 6407 _ACEOF 6408 if ac_fn_c_try_compile "$LINENO" 6409 then : 6410 xorg_cv_cc_flag_unused_command_line_argument=yes 6411 else case e in #( 6412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6413 esac 6414 fi 6415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6416 esac 6417 fi 6418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6419 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 fi 6423 6424 found="no" 6425 6426 if test $found = "no" ; then 6427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6429 fi 6430 6431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6433 fi 6434 6435 CFLAGS="$CFLAGS -Wbad-function-cast" 6436 6437 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6438 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6439 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6440 if eval test \${$cacheid+y} 6441 then : 6442 printf %s "(cached) " >&6 6443 else case e in #( 6444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445 /* end confdefs.h. */ 6446 int i; 6447 int 6448 main (void) 6449 { 6450 6451 ; 6452 return 0; 6453 } 6454 _ACEOF 6455 if ac_fn_c_try_link "$LINENO" 6456 then : 6457 eval $cacheid=yes 6458 else case e in #( 6459 e) eval $cacheid=no ;; 6460 esac 6461 fi 6462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6463 conftest$ac_exeext conftest.$ac_ext ;; 6464 esac 6465 fi 6466 6467 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469 6470 eval supported=\$$cacheid 6471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6472 printf '%s\n' "$supported" >&6; } 6473 if test "$supported" = "yes" ; then 6474 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6475 found="yes" 6476 fi 6477 fi 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 xorg_testset_save_CFLAGS="$CFLAGS" 6494 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6500 then : 6501 printf %s "(cached) " >&6 6502 else case e in #( 6503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504 /* end confdefs.h. */ 6505 int i; 6506 _ACEOF 6507 if ac_fn_c_try_compile "$LINENO" 6508 then : 6509 xorg_cv_cc_flag_unknown_warning_option=yes 6510 else case e in #( 6511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6512 esac 6513 fi 6514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6515 esac 6516 fi 6517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6518 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521 fi 6522 6523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 fi 6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6531 then : 6532 printf %s "(cached) " >&6 6533 else case e in #( 6534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6535 /* end confdefs.h. */ 6536 int i; 6537 _ACEOF 6538 if ac_fn_c_try_compile "$LINENO" 6539 then : 6540 xorg_cv_cc_flag_unused_command_line_argument=yes 6541 else case e in #( 6542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6543 esac 6544 fi 6545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6546 esac 6547 fi 6548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6549 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6551 CFLAGS="$xorg_testset_save_CFLAGS" 6552 fi 6553 6554 found="no" 6555 6556 if test $found = "no" ; then 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 fi 6560 6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6563 fi 6564 6565 CFLAGS="$CFLAGS -Wold-style-definition" 6566 6567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6568 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6569 cacheid=xorg_cv_cc_flag__Wold_style_definition 6570 if eval test \${$cacheid+y} 6571 then : 6572 printf %s "(cached) " >&6 6573 else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 int 6578 main (void) 6579 { 6580 6581 ; 6582 return 0; 6583 } 6584 _ACEOF 6585 if ac_fn_c_try_link "$LINENO" 6586 then : 6587 eval $cacheid=yes 6588 else case e in #( 6589 e) eval $cacheid=no ;; 6590 esac 6591 fi 6592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6593 conftest$ac_exeext conftest.$ac_ext ;; 6594 esac 6595 fi 6596 6597 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599 6600 eval supported=\$$cacheid 6601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6602 printf '%s\n' "$supported" >&6; } 6603 if test "$supported" = "yes" ; then 6604 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6605 found="yes" 6606 fi 6607 fi 6608 6609 if test $found = "no" ; then 6610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6612 fi 6613 6614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6616 fi 6617 6618 CFLAGS="$CFLAGS -fd" 6619 6620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6621 printf %s "checking if $CC supports -fd... " >&6; } 6622 cacheid=xorg_cv_cc_flag__fd 6623 if eval test \${$cacheid+y} 6624 then : 6625 printf %s "(cached) " >&6 6626 else case e in #( 6627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628 /* end confdefs.h. */ 6629 int i; 6630 int 6631 main (void) 6632 { 6633 6634 ; 6635 return 0; 6636 } 6637 _ACEOF 6638 if ac_fn_c_try_link "$LINENO" 6639 then : 6640 eval $cacheid=yes 6641 else case e in #( 6642 e) eval $cacheid=no ;; 6643 esac 6644 fi 6645 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6646 conftest$ac_exeext conftest.$ac_ext ;; 6647 esac 6648 fi 6649 6650 6651 CFLAGS="$xorg_testset_save_CFLAGS" 6652 6653 eval supported=\$$cacheid 6654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6655 printf '%s\n' "$supported" >&6; } 6656 if test "$supported" = "yes" ; then 6657 BASE_CFLAGS="$BASE_CFLAGS -fd" 6658 found="yes" 6659 fi 6660 fi 6661 6662 6663 6664 6665 6666 # This chunk adds additional warnings that could catch undesired effects. 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 xorg_testset_save_CFLAGS="$CFLAGS" 6681 6682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6686 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6687 then : 6688 printf %s "(cached) " >&6 6689 else case e in #( 6690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691 /* end confdefs.h. */ 6692 int i; 6693 _ACEOF 6694 if ac_fn_c_try_compile "$LINENO" 6695 then : 6696 xorg_cv_cc_flag_unknown_warning_option=yes 6697 else case e in #( 6698 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6699 esac 6700 fi 6701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6702 esac 6703 fi 6704 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6705 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6707 CFLAGS="$xorg_testset_save_CFLAGS" 6708 fi 6709 6710 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6713 fi 6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6716 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6717 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6718 then : 6719 printf %s "(cached) " >&6 6720 else case e in #( 6721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722 /* end confdefs.h. */ 6723 int i; 6724 _ACEOF 6725 if ac_fn_c_try_compile "$LINENO" 6726 then : 6727 xorg_cv_cc_flag_unused_command_line_argument=yes 6728 else case e in #( 6729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6730 esac 6731 fi 6732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6733 esac 6734 fi 6735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6736 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6738 CFLAGS="$xorg_testset_save_CFLAGS" 6739 fi 6740 6741 found="no" 6742 6743 if test $found = "no" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6750 fi 6751 6752 CFLAGS="$CFLAGS -Wunused" 6753 6754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6755 printf %s "checking if $CC supports -Wunused... " >&6; } 6756 cacheid=xorg_cv_cc_flag__Wunused 6757 if eval test \${$cacheid+y} 6758 then : 6759 printf %s "(cached) " >&6 6760 else case e in #( 6761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762 /* end confdefs.h. */ 6763 int i; 6764 int 6765 main (void) 6766 { 6767 6768 ; 6769 return 0; 6770 } 6771 _ACEOF 6772 if ac_fn_c_try_link "$LINENO" 6773 then : 6774 eval $cacheid=yes 6775 else case e in #( 6776 e) eval $cacheid=no ;; 6777 esac 6778 fi 6779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6780 conftest$ac_exeext conftest.$ac_ext ;; 6781 esac 6782 fi 6783 6784 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786 6787 eval supported=\$$cacheid 6788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6789 printf '%s\n' "$supported" >&6; } 6790 if test "$supported" = "yes" ; then 6791 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6792 found="yes" 6793 fi 6794 fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 xorg_testset_save_CFLAGS="$CFLAGS" 6811 6812 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6815 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6816 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6817 then : 6818 printf %s "(cached) " >&6 6819 else case e in #( 6820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821 /* end confdefs.h. */ 6822 int i; 6823 _ACEOF 6824 if ac_fn_c_try_compile "$LINENO" 6825 then : 6826 xorg_cv_cc_flag_unknown_warning_option=yes 6827 else case e in #( 6828 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6829 esac 6830 fi 6831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6832 esac 6833 fi 6834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6835 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6837 CFLAGS="$xorg_testset_save_CFLAGS" 6838 fi 6839 6840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 fi 6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6848 then : 6849 printf %s "(cached) " >&6 6850 else case e in #( 6851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852 /* end confdefs.h. */ 6853 int i; 6854 _ACEOF 6855 if ac_fn_c_try_compile "$LINENO" 6856 then : 6857 xorg_cv_cc_flag_unused_command_line_argument=yes 6858 else case e in #( 6859 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6860 esac 6861 fi 6862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6863 esac 6864 fi 6865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6866 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6868 CFLAGS="$xorg_testset_save_CFLAGS" 6869 fi 6870 6871 found="no" 6872 6873 if test $found = "no" ; then 6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6876 fi 6877 6878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6880 fi 6881 6882 CFLAGS="$CFLAGS -Wuninitialized" 6883 6884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6885 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6886 cacheid=xorg_cv_cc_flag__Wuninitialized 6887 if eval test \${$cacheid+y} 6888 then : 6889 printf %s "(cached) " >&6 6890 else case e in #( 6891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892 /* end confdefs.h. */ 6893 int i; 6894 int 6895 main (void) 6896 { 6897 6898 ; 6899 return 0; 6900 } 6901 _ACEOF 6902 if ac_fn_c_try_link "$LINENO" 6903 then : 6904 eval $cacheid=yes 6905 else case e in #( 6906 e) eval $cacheid=no ;; 6907 esac 6908 fi 6909 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6910 conftest$ac_exeext conftest.$ac_ext ;; 6911 esac 6912 fi 6913 6914 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 6917 eval supported=\$$cacheid 6918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6919 printf '%s\n' "$supported" >&6; } 6920 if test "$supported" = "yes" ; then 6921 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6922 found="yes" 6923 fi 6924 fi 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 xorg_testset_save_CFLAGS="$CFLAGS" 6941 6942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6946 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6947 then : 6948 printf %s "(cached) " >&6 6949 else case e in #( 6950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951 /* end confdefs.h. */ 6952 int i; 6953 _ACEOF 6954 if ac_fn_c_try_compile "$LINENO" 6955 then : 6956 xorg_cv_cc_flag_unknown_warning_option=yes 6957 else case e in #( 6958 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6959 esac 6960 fi 6961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6962 esac 6963 fi 6964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6965 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6967 CFLAGS="$xorg_testset_save_CFLAGS" 6968 fi 6969 6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6973 fi 6974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6977 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6978 then : 6979 printf %s "(cached) " >&6 6980 else case e in #( 6981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982 /* end confdefs.h. */ 6983 int i; 6984 _ACEOF 6985 if ac_fn_c_try_compile "$LINENO" 6986 then : 6987 xorg_cv_cc_flag_unused_command_line_argument=yes 6988 else case e in #( 6989 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6990 esac 6991 fi 6992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6993 esac 6994 fi 6995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6996 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6998 CFLAGS="$xorg_testset_save_CFLAGS" 6999 fi 7000 7001 found="no" 7002 7003 if test $found = "no" ; then 7004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7006 fi 7007 7008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7010 fi 7011 7012 CFLAGS="$CFLAGS -Wshadow" 7013 7014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7015 printf %s "checking if $CC supports -Wshadow... " >&6; } 7016 cacheid=xorg_cv_cc_flag__Wshadow 7017 if eval test \${$cacheid+y} 7018 then : 7019 printf %s "(cached) " >&6 7020 else case e in #( 7021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7022 /* end confdefs.h. */ 7023 int i; 7024 int 7025 main (void) 7026 { 7027 7028 ; 7029 return 0; 7030 } 7031 _ACEOF 7032 if ac_fn_c_try_link "$LINENO" 7033 then : 7034 eval $cacheid=yes 7035 else case e in #( 7036 e) eval $cacheid=no ;; 7037 esac 7038 fi 7039 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7040 conftest$ac_exeext conftest.$ac_ext ;; 7041 esac 7042 fi 7043 7044 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046 7047 eval supported=\$$cacheid 7048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7049 printf '%s\n' "$supported" >&6; } 7050 if test "$supported" = "yes" ; then 7051 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7052 found="yes" 7053 fi 7054 fi 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 xorg_testset_save_CFLAGS="$CFLAGS" 7071 7072 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7075 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7076 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7077 then : 7078 printf %s "(cached) " >&6 7079 else case e in #( 7080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7081 /* end confdefs.h. */ 7082 int i; 7083 _ACEOF 7084 if ac_fn_c_try_compile "$LINENO" 7085 then : 7086 xorg_cv_cc_flag_unknown_warning_option=yes 7087 else case e in #( 7088 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7089 esac 7090 fi 7091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7092 esac 7093 fi 7094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7095 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 fi 7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7108 then : 7109 printf %s "(cached) " >&6 7110 else case e in #( 7111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112 /* end confdefs.h. */ 7113 int i; 7114 _ACEOF 7115 if ac_fn_c_try_compile "$LINENO" 7116 then : 7117 xorg_cv_cc_flag_unused_command_line_argument=yes 7118 else case e in #( 7119 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7120 esac 7121 fi 7122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7123 esac 7124 fi 7125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7126 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129 fi 7130 7131 found="no" 7132 7133 if test $found = "no" ; then 7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7140 fi 7141 7142 CFLAGS="$CFLAGS -Wmissing-noreturn" 7143 7144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7145 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7146 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7147 if eval test \${$cacheid+y} 7148 then : 7149 printf %s "(cached) " >&6 7150 else case e in #( 7151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152 /* end confdefs.h. */ 7153 int i; 7154 int 7155 main (void) 7156 { 7157 7158 ; 7159 return 0; 7160 } 7161 _ACEOF 7162 if ac_fn_c_try_link "$LINENO" 7163 then : 7164 eval $cacheid=yes 7165 else case e in #( 7166 e) eval $cacheid=no ;; 7167 esac 7168 fi 7169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7170 conftest$ac_exeext conftest.$ac_ext ;; 7171 esac 7172 fi 7173 7174 7175 CFLAGS="$xorg_testset_save_CFLAGS" 7176 7177 eval supported=\$$cacheid 7178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7179 printf '%s\n' "$supported" >&6; } 7180 if test "$supported" = "yes" ; then 7181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7182 found="yes" 7183 fi 7184 fi 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 xorg_testset_save_CFLAGS="$CFLAGS" 7201 7202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7206 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7207 then : 7208 printf %s "(cached) " >&6 7209 else case e in #( 7210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211 /* end confdefs.h. */ 7212 int i; 7213 _ACEOF 7214 if ac_fn_c_try_compile "$LINENO" 7215 then : 7216 xorg_cv_cc_flag_unknown_warning_option=yes 7217 else case e in #( 7218 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7219 esac 7220 fi 7221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7222 esac 7223 fi 7224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7225 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228 fi 7229 7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7233 fi 7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7235 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7238 then : 7239 printf %s "(cached) " >&6 7240 else case e in #( 7241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242 /* end confdefs.h. */ 7243 int i; 7244 _ACEOF 7245 if ac_fn_c_try_compile "$LINENO" 7246 then : 7247 xorg_cv_cc_flag_unused_command_line_argument=yes 7248 else case e in #( 7249 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7250 esac 7251 fi 7252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7253 esac 7254 fi 7255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7256 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259 fi 7260 7261 found="no" 7262 7263 if test $found = "no" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7270 fi 7271 7272 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7273 7274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7275 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7276 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7277 if eval test \${$cacheid+y} 7278 then : 7279 printf %s "(cached) " >&6 7280 else case e in #( 7281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282 /* end confdefs.h. */ 7283 int i; 7284 int 7285 main (void) 7286 { 7287 7288 ; 7289 return 0; 7290 } 7291 _ACEOF 7292 if ac_fn_c_try_link "$LINENO" 7293 then : 7294 eval $cacheid=yes 7295 else case e in #( 7296 e) eval $cacheid=no ;; 7297 esac 7298 fi 7299 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7300 conftest$ac_exeext conftest.$ac_ext ;; 7301 esac 7302 fi 7303 7304 7305 CFLAGS="$xorg_testset_save_CFLAGS" 7306 7307 eval supported=\$$cacheid 7308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7309 printf '%s\n' "$supported" >&6; } 7310 if test "$supported" = "yes" ; then 7311 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7312 found="yes" 7313 fi 7314 fi 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 xorg_testset_save_CFLAGS="$CFLAGS" 7331 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7335 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7336 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7337 then : 7338 printf %s "(cached) " >&6 7339 else case e in #( 7340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7341 /* end confdefs.h. */ 7342 int i; 7343 _ACEOF 7344 if ac_fn_c_try_compile "$LINENO" 7345 then : 7346 xorg_cv_cc_flag_unknown_warning_option=yes 7347 else case e in #( 7348 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7349 esac 7350 fi 7351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7352 esac 7353 fi 7354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7355 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7357 CFLAGS="$xorg_testset_save_CFLAGS" 7358 fi 7359 7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 fi 7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7365 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7368 then : 7369 printf %s "(cached) " >&6 7370 else case e in #( 7371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372 /* end confdefs.h. */ 7373 int i; 7374 _ACEOF 7375 if ac_fn_c_try_compile "$LINENO" 7376 then : 7377 xorg_cv_cc_flag_unused_command_line_argument=yes 7378 else case e in #( 7379 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7380 esac 7381 fi 7382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7383 esac 7384 fi 7385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7386 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389 fi 7390 7391 found="no" 7392 7393 if test $found = "no" ; then 7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7396 fi 7397 7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7400 fi 7401 7402 CFLAGS="$CFLAGS -Wredundant-decls" 7403 7404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7405 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7406 cacheid=xorg_cv_cc_flag__Wredundant_decls 7407 if eval test \${$cacheid+y} 7408 then : 7409 printf %s "(cached) " >&6 7410 else case e in #( 7411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412 /* end confdefs.h. */ 7413 int i; 7414 int 7415 main (void) 7416 { 7417 7418 ; 7419 return 0; 7420 } 7421 _ACEOF 7422 if ac_fn_c_try_link "$LINENO" 7423 then : 7424 eval $cacheid=yes 7425 else case e in #( 7426 e) eval $cacheid=no ;; 7427 esac 7428 fi 7429 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7430 conftest$ac_exeext conftest.$ac_ext ;; 7431 esac 7432 fi 7433 7434 7435 CFLAGS="$xorg_testset_save_CFLAGS" 7436 7437 eval supported=\$$cacheid 7438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7439 printf '%s\n' "$supported" >&6; } 7440 if test "$supported" = "yes" ; then 7441 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7442 found="yes" 7443 fi 7444 fi 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 xorg_testset_save_CFLAGS="$CFLAGS" 7461 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7466 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7467 then : 7468 printf %s "(cached) " >&6 7469 else case e in #( 7470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471 /* end confdefs.h. */ 7472 int i; 7473 _ACEOF 7474 if ac_fn_c_try_compile "$LINENO" 7475 then : 7476 xorg_cv_cc_flag_unknown_warning_option=yes 7477 else case e in #( 7478 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7479 esac 7480 fi 7481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7482 esac 7483 fi 7484 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7485 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488 fi 7489 7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 fi 7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7498 then : 7499 printf %s "(cached) " >&6 7500 else case e in #( 7501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502 /* end confdefs.h. */ 7503 int i; 7504 _ACEOF 7505 if ac_fn_c_try_compile "$LINENO" 7506 then : 7507 xorg_cv_cc_flag_unused_command_line_argument=yes 7508 else case e in #( 7509 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7510 esac 7511 fi 7512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7513 esac 7514 fi 7515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7516 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519 fi 7520 7521 found="no" 7522 7523 if test $found = "no" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 fi 7531 7532 CFLAGS="$CFLAGS -Wlogical-op" 7533 7534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7535 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7536 cacheid=xorg_cv_cc_flag__Wlogical_op 7537 if eval test \${$cacheid+y} 7538 then : 7539 printf %s "(cached) " >&6 7540 else case e in #( 7541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542 /* end confdefs.h. */ 7543 int i; 7544 int 7545 main (void) 7546 { 7547 7548 ; 7549 return 0; 7550 } 7551 _ACEOF 7552 if ac_fn_c_try_link "$LINENO" 7553 then : 7554 eval $cacheid=yes 7555 else case e in #( 7556 e) eval $cacheid=no ;; 7557 esac 7558 fi 7559 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7560 conftest$ac_exeext conftest.$ac_ext ;; 7561 esac 7562 fi 7563 7564 7565 CFLAGS="$xorg_testset_save_CFLAGS" 7566 7567 eval supported=\$$cacheid 7568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7569 printf '%s\n' "$supported" >&6; } 7570 if test "$supported" = "yes" ; then 7571 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7572 found="yes" 7573 fi 7574 fi 7575 7576 7577 7578 # These are currently disabled because they are noisy. They will be enabled 7579 # in the future once the codebase is sufficiently modernized to silence 7580 # them. For now, I don't want them to drown out the other warnings. 7581 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7582 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7583 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7584 7585 # Turn some warnings into errors, so we don't accidentally get successful builds 7586 # when there are problems that should be fixed. 7587 7588 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 xorg_testset_save_CFLAGS="$CFLAGS" 7603 7604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7608 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7609 then : 7610 printf %s "(cached) " >&6 7611 else case e in #( 7612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613 /* end confdefs.h. */ 7614 int i; 7615 _ACEOF 7616 if ac_fn_c_try_compile "$LINENO" 7617 then : 7618 xorg_cv_cc_flag_unknown_warning_option=yes 7619 else case e in #( 7620 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7621 esac 7622 fi 7623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7624 esac 7625 fi 7626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7627 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7629 CFLAGS="$xorg_testset_save_CFLAGS" 7630 fi 7631 7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7635 fi 7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7640 then : 7641 printf %s "(cached) " >&6 7642 else case e in #( 7643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644 /* end confdefs.h. */ 7645 int i; 7646 _ACEOF 7647 if ac_fn_c_try_compile "$LINENO" 7648 then : 7649 xorg_cv_cc_flag_unused_command_line_argument=yes 7650 else case e in #( 7651 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7652 esac 7653 fi 7654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7655 esac 7656 fi 7657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7658 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 fi 7662 7663 found="no" 7664 7665 if test $found = "no" ; then 7666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7668 fi 7669 7670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672 fi 7673 7674 CFLAGS="$CFLAGS -Werror=implicit" 7675 7676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7677 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7678 cacheid=xorg_cv_cc_flag__Werror_implicit 7679 if eval test \${$cacheid+y} 7680 then : 7681 printf %s "(cached) " >&6 7682 else case e in #( 7683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7684 /* end confdefs.h. */ 7685 int i; 7686 int 7687 main (void) 7688 { 7689 7690 ; 7691 return 0; 7692 } 7693 _ACEOF 7694 if ac_fn_c_try_link "$LINENO" 7695 then : 7696 eval $cacheid=yes 7697 else case e in #( 7698 e) eval $cacheid=no ;; 7699 esac 7700 fi 7701 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7702 conftest$ac_exeext conftest.$ac_ext ;; 7703 esac 7704 fi 7705 7706 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708 7709 eval supported=\$$cacheid 7710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7711 printf '%s\n' "$supported" >&6; } 7712 if test "$supported" = "yes" ; then 7713 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7714 found="yes" 7715 fi 7716 fi 7717 7718 if test $found = "no" ; then 7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 fi 7722 7723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7725 fi 7726 7727 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7728 7729 { 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 7730 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7731 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7732 if eval test \${$cacheid+y} 7733 then : 7734 printf %s "(cached) " >&6 7735 else case e in #( 7736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737 /* end confdefs.h. */ 7738 int i; 7739 int 7740 main (void) 7741 { 7742 7743 ; 7744 return 0; 7745 } 7746 _ACEOF 7747 if ac_fn_c_try_link "$LINENO" 7748 then : 7749 eval $cacheid=yes 7750 else case e in #( 7751 e) eval $cacheid=no ;; 7752 esac 7753 fi 7754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7755 conftest$ac_exeext conftest.$ac_ext ;; 7756 esac 7757 fi 7758 7759 7760 CFLAGS="$xorg_testset_save_CFLAGS" 7761 7762 eval supported=\$$cacheid 7763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7764 printf '%s\n' "$supported" >&6; } 7765 if test "$supported" = "yes" ; then 7766 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7767 found="yes" 7768 fi 7769 fi 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 xorg_testset_save_CFLAGS="$CFLAGS" 7786 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7791 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7792 then : 7793 printf %s "(cached) " >&6 7794 else case e in #( 7795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796 /* end confdefs.h. */ 7797 int i; 7798 _ACEOF 7799 if ac_fn_c_try_compile "$LINENO" 7800 then : 7801 xorg_cv_cc_flag_unknown_warning_option=yes 7802 else case e in #( 7803 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7804 esac 7805 fi 7806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7807 esac 7808 fi 7809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7810 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813 fi 7814 7815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7818 fi 7819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7823 then : 7824 printf %s "(cached) " >&6 7825 else case e in #( 7826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827 /* end confdefs.h. */ 7828 int i; 7829 _ACEOF 7830 if ac_fn_c_try_compile "$LINENO" 7831 then : 7832 xorg_cv_cc_flag_unused_command_line_argument=yes 7833 else case e in #( 7834 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7835 esac 7836 fi 7837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7838 esac 7839 fi 7840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7841 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7843 CFLAGS="$xorg_testset_save_CFLAGS" 7844 fi 7845 7846 found="no" 7847 7848 if test $found = "no" ; then 7849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7851 fi 7852 7853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7855 fi 7856 7857 CFLAGS="$CFLAGS -Werror=nonnull" 7858 7859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7860 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7861 cacheid=xorg_cv_cc_flag__Werror_nonnull 7862 if eval test \${$cacheid+y} 7863 then : 7864 printf %s "(cached) " >&6 7865 else case e in #( 7866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867 /* end confdefs.h. */ 7868 int i; 7869 int 7870 main (void) 7871 { 7872 7873 ; 7874 return 0; 7875 } 7876 _ACEOF 7877 if ac_fn_c_try_link "$LINENO" 7878 then : 7879 eval $cacheid=yes 7880 else case e in #( 7881 e) eval $cacheid=no ;; 7882 esac 7883 fi 7884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7885 conftest$ac_exeext conftest.$ac_ext ;; 7886 esac 7887 fi 7888 7889 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891 7892 eval supported=\$$cacheid 7893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7894 printf '%s\n' "$supported" >&6; } 7895 if test "$supported" = "yes" ; then 7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7897 found="yes" 7898 fi 7899 fi 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 xorg_testset_save_CFLAGS="$CFLAGS" 7916 7917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7921 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7922 then : 7923 printf %s "(cached) " >&6 7924 else case e in #( 7925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7926 /* end confdefs.h. */ 7927 int i; 7928 _ACEOF 7929 if ac_fn_c_try_compile "$LINENO" 7930 then : 7931 xorg_cv_cc_flag_unknown_warning_option=yes 7932 else case e in #( 7933 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7934 esac 7935 fi 7936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7937 esac 7938 fi 7939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7940 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7942 CFLAGS="$xorg_testset_save_CFLAGS" 7943 fi 7944 7945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7948 fi 7949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7953 then : 7954 printf %s "(cached) " >&6 7955 else case e in #( 7956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957 /* end confdefs.h. */ 7958 int i; 7959 _ACEOF 7960 if ac_fn_c_try_compile "$LINENO" 7961 then : 7962 xorg_cv_cc_flag_unused_command_line_argument=yes 7963 else case e in #( 7964 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7965 esac 7966 fi 7967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7968 esac 7969 fi 7970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7971 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7973 CFLAGS="$xorg_testset_save_CFLAGS" 7974 fi 7975 7976 found="no" 7977 7978 if test $found = "no" ; then 7979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7981 fi 7982 7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7985 fi 7986 7987 CFLAGS="$CFLAGS -Werror=init-self" 7988 7989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7990 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7991 cacheid=xorg_cv_cc_flag__Werror_init_self 7992 if eval test \${$cacheid+y} 7993 then : 7994 printf %s "(cached) " >&6 7995 else case e in #( 7996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997 /* end confdefs.h. */ 7998 int i; 7999 int 8000 main (void) 8001 { 8002 8003 ; 8004 return 0; 8005 } 8006 _ACEOF 8007 if ac_fn_c_try_link "$LINENO" 8008 then : 8009 eval $cacheid=yes 8010 else case e in #( 8011 e) eval $cacheid=no ;; 8012 esac 8013 fi 8014 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8015 conftest$ac_exeext conftest.$ac_ext ;; 8016 esac 8017 fi 8018 8019 8020 CFLAGS="$xorg_testset_save_CFLAGS" 8021 8022 eval supported=\$$cacheid 8023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8024 printf '%s\n' "$supported" >&6; } 8025 if test "$supported" = "yes" ; then 8026 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8027 found="yes" 8028 fi 8029 fi 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 xorg_testset_save_CFLAGS="$CFLAGS" 8046 8047 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8050 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8051 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8052 then : 8053 printf %s "(cached) " >&6 8054 else case e in #( 8055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8056 /* end confdefs.h. */ 8057 int i; 8058 _ACEOF 8059 if ac_fn_c_try_compile "$LINENO" 8060 then : 8061 xorg_cv_cc_flag_unknown_warning_option=yes 8062 else case e in #( 8063 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8064 esac 8065 fi 8066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8067 esac 8068 fi 8069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8070 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8072 CFLAGS="$xorg_testset_save_CFLAGS" 8073 fi 8074 8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 fi 8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8081 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8082 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8083 then : 8084 printf %s "(cached) " >&6 8085 else case e in #( 8086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087 /* end confdefs.h. */ 8088 int i; 8089 _ACEOF 8090 if ac_fn_c_try_compile "$LINENO" 8091 then : 8092 xorg_cv_cc_flag_unused_command_line_argument=yes 8093 else case e in #( 8094 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8095 esac 8096 fi 8097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8098 esac 8099 fi 8100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8101 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104 fi 8105 8106 found="no" 8107 8108 if test $found = "no" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8115 fi 8116 8117 CFLAGS="$CFLAGS -Werror=main" 8118 8119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8120 printf %s "checking if $CC supports -Werror=main... " >&6; } 8121 cacheid=xorg_cv_cc_flag__Werror_main 8122 if eval test \${$cacheid+y} 8123 then : 8124 printf %s "(cached) " >&6 8125 else case e in #( 8126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8127 /* end confdefs.h. */ 8128 int i; 8129 int 8130 main (void) 8131 { 8132 8133 ; 8134 return 0; 8135 } 8136 _ACEOF 8137 if ac_fn_c_try_link "$LINENO" 8138 then : 8139 eval $cacheid=yes 8140 else case e in #( 8141 e) eval $cacheid=no ;; 8142 esac 8143 fi 8144 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8145 conftest$ac_exeext conftest.$ac_ext ;; 8146 esac 8147 fi 8148 8149 8150 CFLAGS="$xorg_testset_save_CFLAGS" 8151 8152 eval supported=\$$cacheid 8153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8154 printf '%s\n' "$supported" >&6; } 8155 if test "$supported" = "yes" ; then 8156 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8157 found="yes" 8158 fi 8159 fi 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 xorg_testset_save_CFLAGS="$CFLAGS" 8176 8177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8180 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8181 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8182 then : 8183 printf %s "(cached) " >&6 8184 else case e in #( 8185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186 /* end confdefs.h. */ 8187 int i; 8188 _ACEOF 8189 if ac_fn_c_try_compile "$LINENO" 8190 then : 8191 xorg_cv_cc_flag_unknown_warning_option=yes 8192 else case e in #( 8193 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8194 esac 8195 fi 8196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8197 esac 8198 fi 8199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8200 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8202 CFLAGS="$xorg_testset_save_CFLAGS" 8203 fi 8204 8205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 fi 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8211 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8212 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8213 then : 8214 printf %s "(cached) " >&6 8215 else case e in #( 8216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217 /* end confdefs.h. */ 8218 int i; 8219 _ACEOF 8220 if ac_fn_c_try_compile "$LINENO" 8221 then : 8222 xorg_cv_cc_flag_unused_command_line_argument=yes 8223 else case e in #( 8224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8225 esac 8226 fi 8227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8228 esac 8229 fi 8230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8231 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8233 CFLAGS="$xorg_testset_save_CFLAGS" 8234 fi 8235 8236 found="no" 8237 8238 if test $found = "no" ; then 8239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8241 fi 8242 8243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8245 fi 8246 8247 CFLAGS="$CFLAGS -Werror=missing-braces" 8248 8249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8250 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8251 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8252 if eval test \${$cacheid+y} 8253 then : 8254 printf %s "(cached) " >&6 8255 else case e in #( 8256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257 /* end confdefs.h. */ 8258 int i; 8259 int 8260 main (void) 8261 { 8262 8263 ; 8264 return 0; 8265 } 8266 _ACEOF 8267 if ac_fn_c_try_link "$LINENO" 8268 then : 8269 eval $cacheid=yes 8270 else case e in #( 8271 e) eval $cacheid=no ;; 8272 esac 8273 fi 8274 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8275 conftest$ac_exeext conftest.$ac_ext ;; 8276 esac 8277 fi 8278 8279 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281 8282 eval supported=\$$cacheid 8283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8284 printf '%s\n' "$supported" >&6; } 8285 if test "$supported" = "yes" ; then 8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8287 found="yes" 8288 fi 8289 fi 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 xorg_testset_save_CFLAGS="$CFLAGS" 8306 8307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8311 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8312 then : 8313 printf %s "(cached) " >&6 8314 else case e in #( 8315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316 /* end confdefs.h. */ 8317 int i; 8318 _ACEOF 8319 if ac_fn_c_try_compile "$LINENO" 8320 then : 8321 xorg_cv_cc_flag_unknown_warning_option=yes 8322 else case e in #( 8323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8324 esac 8325 fi 8326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8327 esac 8328 fi 8329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8330 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8332 CFLAGS="$xorg_testset_save_CFLAGS" 8333 fi 8334 8335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8338 fi 8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8343 then : 8344 printf %s "(cached) " >&6 8345 else case e in #( 8346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347 /* end confdefs.h. */ 8348 int i; 8349 _ACEOF 8350 if ac_fn_c_try_compile "$LINENO" 8351 then : 8352 xorg_cv_cc_flag_unused_command_line_argument=yes 8353 else case e in #( 8354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8355 esac 8356 fi 8357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8358 esac 8359 fi 8360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8361 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8363 CFLAGS="$xorg_testset_save_CFLAGS" 8364 fi 8365 8366 found="no" 8367 8368 if test $found = "no" ; then 8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8371 fi 8372 8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375 fi 8376 8377 CFLAGS="$CFLAGS -Werror=sequence-point" 8378 8379 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8380 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8381 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8382 if eval test \${$cacheid+y} 8383 then : 8384 printf %s "(cached) " >&6 8385 else case e in #( 8386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8387 /* end confdefs.h. */ 8388 int i; 8389 int 8390 main (void) 8391 { 8392 8393 ; 8394 return 0; 8395 } 8396 _ACEOF 8397 if ac_fn_c_try_link "$LINENO" 8398 then : 8399 eval $cacheid=yes 8400 else case e in #( 8401 e) eval $cacheid=no ;; 8402 esac 8403 fi 8404 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8405 conftest$ac_exeext conftest.$ac_ext ;; 8406 esac 8407 fi 8408 8409 8410 CFLAGS="$xorg_testset_save_CFLAGS" 8411 8412 eval supported=\$$cacheid 8413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8414 printf '%s\n' "$supported" >&6; } 8415 if test "$supported" = "yes" ; then 8416 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8417 found="yes" 8418 fi 8419 fi 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 xorg_testset_save_CFLAGS="$CFLAGS" 8436 8437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8442 then : 8443 printf %s "(cached) " >&6 8444 else case e in #( 8445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446 /* end confdefs.h. */ 8447 int i; 8448 _ACEOF 8449 if ac_fn_c_try_compile "$LINENO" 8450 then : 8451 xorg_cv_cc_flag_unknown_warning_option=yes 8452 else case e in #( 8453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8454 esac 8455 fi 8456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8457 esac 8458 fi 8459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8460 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8462 CFLAGS="$xorg_testset_save_CFLAGS" 8463 fi 8464 8465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 fi 8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8473 then : 8474 printf %s "(cached) " >&6 8475 else case e in #( 8476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477 /* end confdefs.h. */ 8478 int i; 8479 _ACEOF 8480 if ac_fn_c_try_compile "$LINENO" 8481 then : 8482 xorg_cv_cc_flag_unused_command_line_argument=yes 8483 else case e in #( 8484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8485 esac 8486 fi 8487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8488 esac 8489 fi 8490 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8491 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8493 CFLAGS="$xorg_testset_save_CFLAGS" 8494 fi 8495 8496 found="no" 8497 8498 if test $found = "no" ; then 8499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8501 fi 8502 8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8505 fi 8506 8507 CFLAGS="$CFLAGS -Werror=return-type" 8508 8509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8510 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8511 cacheid=xorg_cv_cc_flag__Werror_return_type 8512 if eval test \${$cacheid+y} 8513 then : 8514 printf %s "(cached) " >&6 8515 else case e in #( 8516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517 /* end confdefs.h. */ 8518 int i; 8519 int 8520 main (void) 8521 { 8522 8523 ; 8524 return 0; 8525 } 8526 _ACEOF 8527 if ac_fn_c_try_link "$LINENO" 8528 then : 8529 eval $cacheid=yes 8530 else case e in #( 8531 e) eval $cacheid=no ;; 8532 esac 8533 fi 8534 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8535 conftest$ac_exeext conftest.$ac_ext ;; 8536 esac 8537 fi 8538 8539 8540 CFLAGS="$xorg_testset_save_CFLAGS" 8541 8542 eval supported=\$$cacheid 8543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8544 printf '%s\n' "$supported" >&6; } 8545 if test "$supported" = "yes" ; then 8546 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8547 found="yes" 8548 fi 8549 fi 8550 8551 if test $found = "no" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8558 fi 8559 8560 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8561 8562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8563 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8564 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8565 if eval test \${$cacheid+y} 8566 then : 8567 printf %s "(cached) " >&6 8568 else case e in #( 8569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8570 /* end confdefs.h. */ 8571 int i; 8572 int 8573 main (void) 8574 { 8575 8576 ; 8577 return 0; 8578 } 8579 _ACEOF 8580 if ac_fn_c_try_link "$LINENO" 8581 then : 8582 eval $cacheid=yes 8583 else case e in #( 8584 e) eval $cacheid=no ;; 8585 esac 8586 fi 8587 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8588 conftest$ac_exeext conftest.$ac_ext ;; 8589 esac 8590 fi 8591 8592 8593 CFLAGS="$xorg_testset_save_CFLAGS" 8594 8595 eval supported=\$$cacheid 8596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8597 printf '%s\n' "$supported" >&6; } 8598 if test "$supported" = "yes" ; then 8599 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8600 found="yes" 8601 fi 8602 fi 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 xorg_testset_save_CFLAGS="$CFLAGS" 8619 8620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8624 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8625 then : 8626 printf %s "(cached) " >&6 8627 else case e in #( 8628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629 /* end confdefs.h. */ 8630 int i; 8631 _ACEOF 8632 if ac_fn_c_try_compile "$LINENO" 8633 then : 8634 xorg_cv_cc_flag_unknown_warning_option=yes 8635 else case e in #( 8636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8637 esac 8638 fi 8639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8640 esac 8641 fi 8642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8643 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8645 CFLAGS="$xorg_testset_save_CFLAGS" 8646 fi 8647 8648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8651 fi 8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8656 then : 8657 printf %s "(cached) " >&6 8658 else case e in #( 8659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8660 /* end confdefs.h. */ 8661 int i; 8662 _ACEOF 8663 if ac_fn_c_try_compile "$LINENO" 8664 then : 8665 xorg_cv_cc_flag_unused_command_line_argument=yes 8666 else case e in #( 8667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8668 esac 8669 fi 8670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8671 esac 8672 fi 8673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8674 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8676 CFLAGS="$xorg_testset_save_CFLAGS" 8677 fi 8678 8679 found="no" 8680 8681 if test $found = "no" ; then 8682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8684 fi 8685 8686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8688 fi 8689 8690 CFLAGS="$CFLAGS -Werror=trigraphs" 8691 8692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8693 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8694 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8695 if eval test \${$cacheid+y} 8696 then : 8697 printf %s "(cached) " >&6 8698 else case e in #( 8699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8700 /* end confdefs.h. */ 8701 int i; 8702 int 8703 main (void) 8704 { 8705 8706 ; 8707 return 0; 8708 } 8709 _ACEOF 8710 if ac_fn_c_try_link "$LINENO" 8711 then : 8712 eval $cacheid=yes 8713 else case e in #( 8714 e) eval $cacheid=no ;; 8715 esac 8716 fi 8717 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8718 conftest$ac_exeext conftest.$ac_ext ;; 8719 esac 8720 fi 8721 8722 8723 CFLAGS="$xorg_testset_save_CFLAGS" 8724 8725 eval supported=\$$cacheid 8726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8727 printf '%s\n' "$supported" >&6; } 8728 if test "$supported" = "yes" ; then 8729 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8730 found="yes" 8731 fi 8732 fi 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 xorg_testset_save_CFLAGS="$CFLAGS" 8749 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8755 then : 8756 printf %s "(cached) " >&6 8757 else case e in #( 8758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759 /* end confdefs.h. */ 8760 int i; 8761 _ACEOF 8762 if ac_fn_c_try_compile "$LINENO" 8763 then : 8764 xorg_cv_cc_flag_unknown_warning_option=yes 8765 else case e in #( 8766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8767 esac 8768 fi 8769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8770 esac 8771 fi 8772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8773 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8775 CFLAGS="$xorg_testset_save_CFLAGS" 8776 fi 8777 8778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 fi 8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8783 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8786 then : 8787 printf %s "(cached) " >&6 8788 else case e in #( 8789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790 /* end confdefs.h. */ 8791 int i; 8792 _ACEOF 8793 if ac_fn_c_try_compile "$LINENO" 8794 then : 8795 xorg_cv_cc_flag_unused_command_line_argument=yes 8796 else case e in #( 8797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8798 esac 8799 fi 8800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8801 esac 8802 fi 8803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8804 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8806 CFLAGS="$xorg_testset_save_CFLAGS" 8807 fi 8808 8809 found="no" 8810 8811 if test $found = "no" ; then 8812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8814 fi 8815 8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8818 fi 8819 8820 CFLAGS="$CFLAGS -Werror=array-bounds" 8821 8822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8823 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8824 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8825 if eval test \${$cacheid+y} 8826 then : 8827 printf %s "(cached) " >&6 8828 else case e in #( 8829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830 /* end confdefs.h. */ 8831 int i; 8832 int 8833 main (void) 8834 { 8835 8836 ; 8837 return 0; 8838 } 8839 _ACEOF 8840 if ac_fn_c_try_link "$LINENO" 8841 then : 8842 eval $cacheid=yes 8843 else case e in #( 8844 e) eval $cacheid=no ;; 8845 esac 8846 fi 8847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8848 conftest$ac_exeext conftest.$ac_ext ;; 8849 esac 8850 fi 8851 8852 8853 CFLAGS="$xorg_testset_save_CFLAGS" 8854 8855 eval supported=\$$cacheid 8856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8857 printf '%s\n' "$supported" >&6; } 8858 if test "$supported" = "yes" ; then 8859 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8860 found="yes" 8861 fi 8862 fi 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 xorg_testset_save_CFLAGS="$CFLAGS" 8879 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8884 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8885 then : 8886 printf %s "(cached) " >&6 8887 else case e in #( 8888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889 /* end confdefs.h. */ 8890 int i; 8891 _ACEOF 8892 if ac_fn_c_try_compile "$LINENO" 8893 then : 8894 xorg_cv_cc_flag_unknown_warning_option=yes 8895 else case e in #( 8896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8897 esac 8898 fi 8899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8900 esac 8901 fi 8902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8903 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 fi 8907 8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 fi 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8916 then : 8917 printf %s "(cached) " >&6 8918 else case e in #( 8919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920 /* end confdefs.h. */ 8921 int i; 8922 _ACEOF 8923 if ac_fn_c_try_compile "$LINENO" 8924 then : 8925 xorg_cv_cc_flag_unused_command_line_argument=yes 8926 else case e in #( 8927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8928 esac 8929 fi 8930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8931 esac 8932 fi 8933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8934 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8936 CFLAGS="$xorg_testset_save_CFLAGS" 8937 fi 8938 8939 found="no" 8940 8941 if test $found = "no" ; then 8942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 fi 8945 8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8948 fi 8949 8950 CFLAGS="$CFLAGS -Werror=write-strings" 8951 8952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8953 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8954 cacheid=xorg_cv_cc_flag__Werror_write_strings 8955 if eval test \${$cacheid+y} 8956 then : 8957 printf %s "(cached) " >&6 8958 else case e in #( 8959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8960 /* end confdefs.h. */ 8961 int i; 8962 int 8963 main (void) 8964 { 8965 8966 ; 8967 return 0; 8968 } 8969 _ACEOF 8970 if ac_fn_c_try_link "$LINENO" 8971 then : 8972 eval $cacheid=yes 8973 else case e in #( 8974 e) eval $cacheid=no ;; 8975 esac 8976 fi 8977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8978 conftest$ac_exeext conftest.$ac_ext ;; 8979 esac 8980 fi 8981 8982 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984 8985 eval supported=\$$cacheid 8986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8987 printf '%s\n' "$supported" >&6; } 8988 if test "$supported" = "yes" ; then 8989 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8990 found="yes" 8991 fi 8992 fi 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 xorg_testset_save_CFLAGS="$CFLAGS" 9009 9010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9015 then : 9016 printf %s "(cached) " >&6 9017 else case e in #( 9018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019 /* end confdefs.h. */ 9020 int i; 9021 _ACEOF 9022 if ac_fn_c_try_compile "$LINENO" 9023 then : 9024 xorg_cv_cc_flag_unknown_warning_option=yes 9025 else case e in #( 9026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9027 esac 9028 fi 9029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9030 esac 9031 fi 9032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9033 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9035 CFLAGS="$xorg_testset_save_CFLAGS" 9036 fi 9037 9038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9041 fi 9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9046 then : 9047 printf %s "(cached) " >&6 9048 else case e in #( 9049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050 /* end confdefs.h. */ 9051 int i; 9052 _ACEOF 9053 if ac_fn_c_try_compile "$LINENO" 9054 then : 9055 xorg_cv_cc_flag_unused_command_line_argument=yes 9056 else case e in #( 9057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9058 esac 9059 fi 9060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9061 esac 9062 fi 9063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9064 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067 fi 9068 9069 found="no" 9070 9071 if test $found = "no" ; then 9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 fi 9075 9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9078 fi 9079 9080 CFLAGS="$CFLAGS -Werror=address" 9081 9082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9083 printf %s "checking if $CC supports -Werror=address... " >&6; } 9084 cacheid=xorg_cv_cc_flag__Werror_address 9085 if eval test \${$cacheid+y} 9086 then : 9087 printf %s "(cached) " >&6 9088 else case e in #( 9089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9090 /* end confdefs.h. */ 9091 int i; 9092 int 9093 main (void) 9094 { 9095 9096 ; 9097 return 0; 9098 } 9099 _ACEOF 9100 if ac_fn_c_try_link "$LINENO" 9101 then : 9102 eval $cacheid=yes 9103 else case e in #( 9104 e) eval $cacheid=no ;; 9105 esac 9106 fi 9107 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9108 conftest$ac_exeext conftest.$ac_ext ;; 9109 esac 9110 fi 9111 9112 9113 CFLAGS="$xorg_testset_save_CFLAGS" 9114 9115 eval supported=\$$cacheid 9116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9117 printf '%s\n' "$supported" >&6; } 9118 if test "$supported" = "yes" ; then 9119 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9120 found="yes" 9121 fi 9122 fi 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 xorg_testset_save_CFLAGS="$CFLAGS" 9139 9140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9144 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9145 then : 9146 printf %s "(cached) " >&6 9147 else case e in #( 9148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149 /* end confdefs.h. */ 9150 int i; 9151 _ACEOF 9152 if ac_fn_c_try_compile "$LINENO" 9153 then : 9154 xorg_cv_cc_flag_unknown_warning_option=yes 9155 else case e in #( 9156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9157 esac 9158 fi 9159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9160 esac 9161 fi 9162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9163 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9165 CFLAGS="$xorg_testset_save_CFLAGS" 9166 fi 9167 9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 fi 9172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9176 then : 9177 printf %s "(cached) " >&6 9178 else case e in #( 9179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180 /* end confdefs.h. */ 9181 int i; 9182 _ACEOF 9183 if ac_fn_c_try_compile "$LINENO" 9184 then : 9185 xorg_cv_cc_flag_unused_command_line_argument=yes 9186 else case e in #( 9187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9188 esac 9189 fi 9190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9191 esac 9192 fi 9193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9194 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9196 CFLAGS="$xorg_testset_save_CFLAGS" 9197 fi 9198 9199 found="no" 9200 9201 if test $found = "no" ; then 9202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 fi 9205 9206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9208 fi 9209 9210 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9211 9212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9213 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9214 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9215 if eval test \${$cacheid+y} 9216 then : 9217 printf %s "(cached) " >&6 9218 else case e in #( 9219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9220 /* end confdefs.h. */ 9221 int i; 9222 int 9223 main (void) 9224 { 9225 9226 ; 9227 return 0; 9228 } 9229 _ACEOF 9230 if ac_fn_c_try_link "$LINENO" 9231 then : 9232 eval $cacheid=yes 9233 else case e in #( 9234 e) eval $cacheid=no ;; 9235 esac 9236 fi 9237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9238 conftest$ac_exeext conftest.$ac_ext ;; 9239 esac 9240 fi 9241 9242 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244 9245 eval supported=\$$cacheid 9246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9247 printf '%s\n' "$supported" >&6; } 9248 if test "$supported" = "yes" ; then 9249 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9250 found="yes" 9251 fi 9252 fi 9253 9254 if test $found = "no" ; then 9255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9257 fi 9258 9259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9261 fi 9262 9263 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9264 9265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9266 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9267 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9268 if eval test \${$cacheid+y} 9269 then : 9270 printf %s "(cached) " >&6 9271 else case e in #( 9272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273 /* end confdefs.h. */ 9274 int i; 9275 int 9276 main (void) 9277 { 9278 9279 ; 9280 return 0; 9281 } 9282 _ACEOF 9283 if ac_fn_c_try_link "$LINENO" 9284 then : 9285 eval $cacheid=yes 9286 else case e in #( 9287 e) eval $cacheid=no ;; 9288 esac 9289 fi 9290 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9291 conftest$ac_exeext conftest.$ac_ext ;; 9292 esac 9293 fi 9294 9295 9296 CFLAGS="$xorg_testset_save_CFLAGS" 9297 9298 eval supported=\$$cacheid 9299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9300 printf '%s\n' "$supported" >&6; } 9301 if test "$supported" = "yes" ; then 9302 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9303 found="yes" 9304 fi 9305 fi 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 xorg_testset_save_CFLAGS="$CFLAGS" 9322 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9326 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9327 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9328 then : 9329 printf %s "(cached) " >&6 9330 else case e in #( 9331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332 /* end confdefs.h. */ 9333 int i; 9334 _ACEOF 9335 if ac_fn_c_try_compile "$LINENO" 9336 then : 9337 xorg_cv_cc_flag_unknown_warning_option=yes 9338 else case e in #( 9339 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9340 esac 9341 fi 9342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9343 esac 9344 fi 9345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9346 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9348 CFLAGS="$xorg_testset_save_CFLAGS" 9349 fi 9350 9351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354 fi 9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9359 then : 9360 printf %s "(cached) " >&6 9361 else case e in #( 9362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363 /* end confdefs.h. */ 9364 int i; 9365 _ACEOF 9366 if ac_fn_c_try_compile "$LINENO" 9367 then : 9368 xorg_cv_cc_flag_unused_command_line_argument=yes 9369 else case e in #( 9370 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9371 esac 9372 fi 9373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9374 esac 9375 fi 9376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9377 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380 fi 9381 9382 found="no" 9383 9384 if test $found = "no" ; then 9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 fi 9388 9389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9391 fi 9392 9393 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9394 9395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9396 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9397 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9398 if eval test \${$cacheid+y} 9399 then : 9400 printf %s "(cached) " >&6 9401 else case e in #( 9402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403 /* end confdefs.h. */ 9404 int i; 9405 int 9406 main (void) 9407 { 9408 9409 ; 9410 return 0; 9411 } 9412 _ACEOF 9413 if ac_fn_c_try_link "$LINENO" 9414 then : 9415 eval $cacheid=yes 9416 else case e in #( 9417 e) eval $cacheid=no ;; 9418 esac 9419 fi 9420 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9421 conftest$ac_exeext conftest.$ac_ext ;; 9422 esac 9423 fi 9424 9425 9426 CFLAGS="$xorg_testset_save_CFLAGS" 9427 9428 eval supported=\$$cacheid 9429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9430 printf '%s\n' "$supported" >&6; } 9431 if test "$supported" = "yes" ; then 9432 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9433 found="yes" 9434 fi 9435 fi 9436 9437 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9438 else 9439 { 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 9440 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;} 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 xorg_testset_save_CFLAGS="$CFLAGS" 9455 9456 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9459 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9460 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9461 then : 9462 printf %s "(cached) " >&6 9463 else case e in #( 9464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465 /* end confdefs.h. */ 9466 int i; 9467 _ACEOF 9468 if ac_fn_c_try_compile "$LINENO" 9469 then : 9470 xorg_cv_cc_flag_unknown_warning_option=yes 9471 else case e in #( 9472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9473 esac 9474 fi 9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9476 esac 9477 fi 9478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9479 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9481 CFLAGS="$xorg_testset_save_CFLAGS" 9482 fi 9483 9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9487 fi 9488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9489 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9492 then : 9493 printf %s "(cached) " >&6 9494 else case e in #( 9495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496 /* end confdefs.h. */ 9497 int i; 9498 _ACEOF 9499 if ac_fn_c_try_compile "$LINENO" 9500 then : 9501 xorg_cv_cc_flag_unused_command_line_argument=yes 9502 else case e in #( 9503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9504 esac 9505 fi 9506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9507 esac 9508 fi 9509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9510 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9512 CFLAGS="$xorg_testset_save_CFLAGS" 9513 fi 9514 9515 found="no" 9516 9517 if test $found = "no" ; then 9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9520 fi 9521 9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9524 fi 9525 9526 CFLAGS="$CFLAGS -Wimplicit" 9527 9528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9529 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9530 cacheid=xorg_cv_cc_flag__Wimplicit 9531 if eval test \${$cacheid+y} 9532 then : 9533 printf %s "(cached) " >&6 9534 else case e in #( 9535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9536 /* end confdefs.h. */ 9537 int i; 9538 int 9539 main (void) 9540 { 9541 9542 ; 9543 return 0; 9544 } 9545 _ACEOF 9546 if ac_fn_c_try_link "$LINENO" 9547 then : 9548 eval $cacheid=yes 9549 else case e in #( 9550 e) eval $cacheid=no ;; 9551 esac 9552 fi 9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9554 conftest$ac_exeext conftest.$ac_ext ;; 9555 esac 9556 fi 9557 9558 9559 CFLAGS="$xorg_testset_save_CFLAGS" 9560 9561 eval supported=\$$cacheid 9562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9563 printf '%s\n' "$supported" >&6; } 9564 if test "$supported" = "yes" ; then 9565 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9566 found="yes" 9567 fi 9568 fi 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 xorg_testset_save_CFLAGS="$CFLAGS" 9585 9586 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9589 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9590 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9591 then : 9592 printf %s "(cached) " >&6 9593 else case e in #( 9594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595 /* end confdefs.h. */ 9596 int i; 9597 _ACEOF 9598 if ac_fn_c_try_compile "$LINENO" 9599 then : 9600 xorg_cv_cc_flag_unknown_warning_option=yes 9601 else case e in #( 9602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9603 esac 9604 fi 9605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9606 esac 9607 fi 9608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9609 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9611 CFLAGS="$xorg_testset_save_CFLAGS" 9612 fi 9613 9614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9617 fi 9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9619 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9622 then : 9623 printf %s "(cached) " >&6 9624 else case e in #( 9625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626 /* end confdefs.h. */ 9627 int i; 9628 _ACEOF 9629 if ac_fn_c_try_compile "$LINENO" 9630 then : 9631 xorg_cv_cc_flag_unused_command_line_argument=yes 9632 else case e in #( 9633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9634 esac 9635 fi 9636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9637 esac 9638 fi 9639 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9640 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9642 CFLAGS="$xorg_testset_save_CFLAGS" 9643 fi 9644 9645 found="no" 9646 9647 if test $found = "no" ; then 9648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 fi 9651 9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9654 fi 9655 9656 CFLAGS="$CFLAGS -Wnonnull" 9657 9658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9659 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9660 cacheid=xorg_cv_cc_flag__Wnonnull 9661 if eval test \${$cacheid+y} 9662 then : 9663 printf %s "(cached) " >&6 9664 else case e in #( 9665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666 /* end confdefs.h. */ 9667 int i; 9668 int 9669 main (void) 9670 { 9671 9672 ; 9673 return 0; 9674 } 9675 _ACEOF 9676 if ac_fn_c_try_link "$LINENO" 9677 then : 9678 eval $cacheid=yes 9679 else case e in #( 9680 e) eval $cacheid=no ;; 9681 esac 9682 fi 9683 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9684 conftest$ac_exeext conftest.$ac_ext ;; 9685 esac 9686 fi 9687 9688 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690 9691 eval supported=\$$cacheid 9692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9693 printf '%s\n' "$supported" >&6; } 9694 if test "$supported" = "yes" ; then 9695 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9696 found="yes" 9697 fi 9698 fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 xorg_testset_save_CFLAGS="$CFLAGS" 9715 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9720 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9721 then : 9722 printf %s "(cached) " >&6 9723 else case e in #( 9724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725 /* end confdefs.h. */ 9726 int i; 9727 _ACEOF 9728 if ac_fn_c_try_compile "$LINENO" 9729 then : 9730 xorg_cv_cc_flag_unknown_warning_option=yes 9731 else case e in #( 9732 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9733 esac 9734 fi 9735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9736 esac 9737 fi 9738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9739 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9741 CFLAGS="$xorg_testset_save_CFLAGS" 9742 fi 9743 9744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9747 fi 9748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9750 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9751 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9752 then : 9753 printf %s "(cached) " >&6 9754 else case e in #( 9755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756 /* end confdefs.h. */ 9757 int i; 9758 _ACEOF 9759 if ac_fn_c_try_compile "$LINENO" 9760 then : 9761 xorg_cv_cc_flag_unused_command_line_argument=yes 9762 else case e in #( 9763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9764 esac 9765 fi 9766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9767 esac 9768 fi 9769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9770 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9772 CFLAGS="$xorg_testset_save_CFLAGS" 9773 fi 9774 9775 found="no" 9776 9777 if test $found = "no" ; then 9778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9780 fi 9781 9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9784 fi 9785 9786 CFLAGS="$CFLAGS -Winit-self" 9787 9788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9789 printf %s "checking if $CC supports -Winit-self... " >&6; } 9790 cacheid=xorg_cv_cc_flag__Winit_self 9791 if eval test \${$cacheid+y} 9792 then : 9793 printf %s "(cached) " >&6 9794 else case e in #( 9795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796 /* end confdefs.h. */ 9797 int i; 9798 int 9799 main (void) 9800 { 9801 9802 ; 9803 return 0; 9804 } 9805 _ACEOF 9806 if ac_fn_c_try_link "$LINENO" 9807 then : 9808 eval $cacheid=yes 9809 else case e in #( 9810 e) eval $cacheid=no ;; 9811 esac 9812 fi 9813 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9814 conftest$ac_exeext conftest.$ac_ext ;; 9815 esac 9816 fi 9817 9818 9819 CFLAGS="$xorg_testset_save_CFLAGS" 9820 9821 eval supported=\$$cacheid 9822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9823 printf '%s\n' "$supported" >&6; } 9824 if test "$supported" = "yes" ; then 9825 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9826 found="yes" 9827 fi 9828 fi 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 xorg_testset_save_CFLAGS="$CFLAGS" 9845 9846 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9849 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9850 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9851 then : 9852 printf %s "(cached) " >&6 9853 else case e in #( 9854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855 /* end confdefs.h. */ 9856 int i; 9857 _ACEOF 9858 if ac_fn_c_try_compile "$LINENO" 9859 then : 9860 xorg_cv_cc_flag_unknown_warning_option=yes 9861 else case e in #( 9862 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9863 esac 9864 fi 9865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9866 esac 9867 fi 9868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9869 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872 fi 9873 9874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9877 fi 9878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9882 then : 9883 printf %s "(cached) " >&6 9884 else case e in #( 9885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886 /* end confdefs.h. */ 9887 int i; 9888 _ACEOF 9889 if ac_fn_c_try_compile "$LINENO" 9890 then : 9891 xorg_cv_cc_flag_unused_command_line_argument=yes 9892 else case e in #( 9893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9894 esac 9895 fi 9896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9897 esac 9898 fi 9899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9900 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9902 CFLAGS="$xorg_testset_save_CFLAGS" 9903 fi 9904 9905 found="no" 9906 9907 if test $found = "no" ; then 9908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9910 fi 9911 9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 fi 9915 9916 CFLAGS="$CFLAGS -Wmain" 9917 9918 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9919 printf %s "checking if $CC supports -Wmain... " >&6; } 9920 cacheid=xorg_cv_cc_flag__Wmain 9921 if eval test \${$cacheid+y} 9922 then : 9923 printf %s "(cached) " >&6 9924 else case e in #( 9925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926 /* end confdefs.h. */ 9927 int i; 9928 int 9929 main (void) 9930 { 9931 9932 ; 9933 return 0; 9934 } 9935 _ACEOF 9936 if ac_fn_c_try_link "$LINENO" 9937 then : 9938 eval $cacheid=yes 9939 else case e in #( 9940 e) eval $cacheid=no ;; 9941 esac 9942 fi 9943 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9944 conftest$ac_exeext conftest.$ac_ext ;; 9945 esac 9946 fi 9947 9948 9949 CFLAGS="$xorg_testset_save_CFLAGS" 9950 9951 eval supported=\$$cacheid 9952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9953 printf '%s\n' "$supported" >&6; } 9954 if test "$supported" = "yes" ; then 9955 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9956 found="yes" 9957 fi 9958 fi 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 xorg_testset_save_CFLAGS="$CFLAGS" 9975 9976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9978 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9981 then : 9982 printf %s "(cached) " >&6 9983 else case e in #( 9984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9985 /* end confdefs.h. */ 9986 int i; 9987 _ACEOF 9988 if ac_fn_c_try_compile "$LINENO" 9989 then : 9990 xorg_cv_cc_flag_unknown_warning_option=yes 9991 else case e in #( 9992 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9993 esac 9994 fi 9995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9996 esac 9997 fi 9998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9999 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10001 CFLAGS="$xorg_testset_save_CFLAGS" 10002 fi 10003 10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10007 fi 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10010 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10011 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10012 then : 10013 printf %s "(cached) " >&6 10014 else case e in #( 10015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016 /* end confdefs.h. */ 10017 int i; 10018 _ACEOF 10019 if ac_fn_c_try_compile "$LINENO" 10020 then : 10021 xorg_cv_cc_flag_unused_command_line_argument=yes 10022 else case e in #( 10023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10024 esac 10025 fi 10026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10027 esac 10028 fi 10029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10030 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10032 CFLAGS="$xorg_testset_save_CFLAGS" 10033 fi 10034 10035 found="no" 10036 10037 if test $found = "no" ; then 10038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10040 fi 10041 10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10044 fi 10045 10046 CFLAGS="$CFLAGS -Wmissing-braces" 10047 10048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10049 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10050 cacheid=xorg_cv_cc_flag__Wmissing_braces 10051 if eval test \${$cacheid+y} 10052 then : 10053 printf %s "(cached) " >&6 10054 else case e in #( 10055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056 /* end confdefs.h. */ 10057 int i; 10058 int 10059 main (void) 10060 { 10061 10062 ; 10063 return 0; 10064 } 10065 _ACEOF 10066 if ac_fn_c_try_link "$LINENO" 10067 then : 10068 eval $cacheid=yes 10069 else case e in #( 10070 e) eval $cacheid=no ;; 10071 esac 10072 fi 10073 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10074 conftest$ac_exeext conftest.$ac_ext ;; 10075 esac 10076 fi 10077 10078 10079 CFLAGS="$xorg_testset_save_CFLAGS" 10080 10081 eval supported=\$$cacheid 10082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10083 printf '%s\n' "$supported" >&6; } 10084 if test "$supported" = "yes" ; then 10085 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10086 found="yes" 10087 fi 10088 fi 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 xorg_testset_save_CFLAGS="$CFLAGS" 10105 10106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10108 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10110 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10111 then : 10112 printf %s "(cached) " >&6 10113 else case e in #( 10114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115 /* end confdefs.h. */ 10116 int i; 10117 _ACEOF 10118 if ac_fn_c_try_compile "$LINENO" 10119 then : 10120 xorg_cv_cc_flag_unknown_warning_option=yes 10121 else case e in #( 10122 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10123 esac 10124 fi 10125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10126 esac 10127 fi 10128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10129 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10131 CFLAGS="$xorg_testset_save_CFLAGS" 10132 fi 10133 10134 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10139 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10140 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10141 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10142 then : 10143 printf %s "(cached) " >&6 10144 else case e in #( 10145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146 /* end confdefs.h. */ 10147 int i; 10148 _ACEOF 10149 if ac_fn_c_try_compile "$LINENO" 10150 then : 10151 xorg_cv_cc_flag_unused_command_line_argument=yes 10152 else case e in #( 10153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10154 esac 10155 fi 10156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10157 esac 10158 fi 10159 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10160 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163 fi 10164 10165 found="no" 10166 10167 if test $found = "no" ; then 10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10170 fi 10171 10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10174 fi 10175 10176 CFLAGS="$CFLAGS -Wsequence-point" 10177 10178 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10179 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10180 cacheid=xorg_cv_cc_flag__Wsequence_point 10181 if eval test \${$cacheid+y} 10182 then : 10183 printf %s "(cached) " >&6 10184 else case e in #( 10185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186 /* end confdefs.h. */ 10187 int i; 10188 int 10189 main (void) 10190 { 10191 10192 ; 10193 return 0; 10194 } 10195 _ACEOF 10196 if ac_fn_c_try_link "$LINENO" 10197 then : 10198 eval $cacheid=yes 10199 else case e in #( 10200 e) eval $cacheid=no ;; 10201 esac 10202 fi 10203 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10204 conftest$ac_exeext conftest.$ac_ext ;; 10205 esac 10206 fi 10207 10208 10209 CFLAGS="$xorg_testset_save_CFLAGS" 10210 10211 eval supported=\$$cacheid 10212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10213 printf '%s\n' "$supported" >&6; } 10214 if test "$supported" = "yes" ; then 10215 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10216 found="yes" 10217 fi 10218 fi 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 xorg_testset_save_CFLAGS="$CFLAGS" 10235 10236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10240 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10241 then : 10242 printf %s "(cached) " >&6 10243 else case e in #( 10244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245 /* end confdefs.h. */ 10246 int i; 10247 _ACEOF 10248 if ac_fn_c_try_compile "$LINENO" 10249 then : 10250 xorg_cv_cc_flag_unknown_warning_option=yes 10251 else case e in #( 10252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10253 esac 10254 fi 10255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10256 esac 10257 fi 10258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10259 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262 fi 10263 10264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10267 fi 10268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10270 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10271 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10272 then : 10273 printf %s "(cached) " >&6 10274 else case e in #( 10275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276 /* end confdefs.h. */ 10277 int i; 10278 _ACEOF 10279 if ac_fn_c_try_compile "$LINENO" 10280 then : 10281 xorg_cv_cc_flag_unused_command_line_argument=yes 10282 else case e in #( 10283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10284 esac 10285 fi 10286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10287 esac 10288 fi 10289 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10290 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10292 CFLAGS="$xorg_testset_save_CFLAGS" 10293 fi 10294 10295 found="no" 10296 10297 if test $found = "no" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10304 fi 10305 10306 CFLAGS="$CFLAGS -Wreturn-type" 10307 10308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10309 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10310 cacheid=xorg_cv_cc_flag__Wreturn_type 10311 if eval test \${$cacheid+y} 10312 then : 10313 printf %s "(cached) " >&6 10314 else case e in #( 10315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316 /* end confdefs.h. */ 10317 int i; 10318 int 10319 main (void) 10320 { 10321 10322 ; 10323 return 0; 10324 } 10325 _ACEOF 10326 if ac_fn_c_try_link "$LINENO" 10327 then : 10328 eval $cacheid=yes 10329 else case e in #( 10330 e) eval $cacheid=no ;; 10331 esac 10332 fi 10333 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10334 conftest$ac_exeext conftest.$ac_ext ;; 10335 esac 10336 fi 10337 10338 10339 CFLAGS="$xorg_testset_save_CFLAGS" 10340 10341 eval supported=\$$cacheid 10342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10343 printf '%s\n' "$supported" >&6; } 10344 if test "$supported" = "yes" ; then 10345 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10346 found="yes" 10347 fi 10348 fi 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 xorg_testset_save_CFLAGS="$CFLAGS" 10365 10366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10368 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10370 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10371 then : 10372 printf %s "(cached) " >&6 10373 else case e in #( 10374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375 /* end confdefs.h. */ 10376 int i; 10377 _ACEOF 10378 if ac_fn_c_try_compile "$LINENO" 10379 then : 10380 xorg_cv_cc_flag_unknown_warning_option=yes 10381 else case e in #( 10382 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10383 esac 10384 fi 10385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10386 esac 10387 fi 10388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10389 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10391 CFLAGS="$xorg_testset_save_CFLAGS" 10392 fi 10393 10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10397 fi 10398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10399 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10402 then : 10403 printf %s "(cached) " >&6 10404 else case e in #( 10405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406 /* end confdefs.h. */ 10407 int i; 10408 _ACEOF 10409 if ac_fn_c_try_compile "$LINENO" 10410 then : 10411 xorg_cv_cc_flag_unused_command_line_argument=yes 10412 else case e in #( 10413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10414 esac 10415 fi 10416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10417 esac 10418 fi 10419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10420 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423 fi 10424 10425 found="no" 10426 10427 if test $found = "no" ; then 10428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10430 fi 10431 10432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10434 fi 10435 10436 CFLAGS="$CFLAGS -Wtrigraphs" 10437 10438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10439 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10440 cacheid=xorg_cv_cc_flag__Wtrigraphs 10441 if eval test \${$cacheid+y} 10442 then : 10443 printf %s "(cached) " >&6 10444 else case e in #( 10445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446 /* end confdefs.h. */ 10447 int i; 10448 int 10449 main (void) 10450 { 10451 10452 ; 10453 return 0; 10454 } 10455 _ACEOF 10456 if ac_fn_c_try_link "$LINENO" 10457 then : 10458 eval $cacheid=yes 10459 else case e in #( 10460 e) eval $cacheid=no ;; 10461 esac 10462 fi 10463 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10464 conftest$ac_exeext conftest.$ac_ext ;; 10465 esac 10466 fi 10467 10468 10469 CFLAGS="$xorg_testset_save_CFLAGS" 10470 10471 eval supported=\$$cacheid 10472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10473 printf '%s\n' "$supported" >&6; } 10474 if test "$supported" = "yes" ; then 10475 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10476 found="yes" 10477 fi 10478 fi 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 xorg_testset_save_CFLAGS="$CFLAGS" 10495 10496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10500 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10501 then : 10502 printf %s "(cached) " >&6 10503 else case e in #( 10504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505 /* end confdefs.h. */ 10506 int i; 10507 _ACEOF 10508 if ac_fn_c_try_compile "$LINENO" 10509 then : 10510 xorg_cv_cc_flag_unknown_warning_option=yes 10511 else case e in #( 10512 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10513 esac 10514 fi 10515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10516 esac 10517 fi 10518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10519 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10521 CFLAGS="$xorg_testset_save_CFLAGS" 10522 fi 10523 10524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10527 fi 10528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10532 then : 10533 printf %s "(cached) " >&6 10534 else case e in #( 10535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536 /* end confdefs.h. */ 10537 int i; 10538 _ACEOF 10539 if ac_fn_c_try_compile "$LINENO" 10540 then : 10541 xorg_cv_cc_flag_unused_command_line_argument=yes 10542 else case e in #( 10543 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10544 esac 10545 fi 10546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10547 esac 10548 fi 10549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10550 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10552 CFLAGS="$xorg_testset_save_CFLAGS" 10553 fi 10554 10555 found="no" 10556 10557 if test $found = "no" ; then 10558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10560 fi 10561 10562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10564 fi 10565 10566 CFLAGS="$CFLAGS -Warray-bounds" 10567 10568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10569 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10570 cacheid=xorg_cv_cc_flag__Warray_bounds 10571 if eval test \${$cacheid+y} 10572 then : 10573 printf %s "(cached) " >&6 10574 else case e in #( 10575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10576 /* end confdefs.h. */ 10577 int i; 10578 int 10579 main (void) 10580 { 10581 10582 ; 10583 return 0; 10584 } 10585 _ACEOF 10586 if ac_fn_c_try_link "$LINENO" 10587 then : 10588 eval $cacheid=yes 10589 else case e in #( 10590 e) eval $cacheid=no ;; 10591 esac 10592 fi 10593 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10594 conftest$ac_exeext conftest.$ac_ext ;; 10595 esac 10596 fi 10597 10598 10599 CFLAGS="$xorg_testset_save_CFLAGS" 10600 10601 eval supported=\$$cacheid 10602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10603 printf '%s\n' "$supported" >&6; } 10604 if test "$supported" = "yes" ; then 10605 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10606 found="yes" 10607 fi 10608 fi 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 xorg_testset_save_CFLAGS="$CFLAGS" 10625 10626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10630 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10631 then : 10632 printf %s "(cached) " >&6 10633 else case e in #( 10634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635 /* end confdefs.h. */ 10636 int i; 10637 _ACEOF 10638 if ac_fn_c_try_compile "$LINENO" 10639 then : 10640 xorg_cv_cc_flag_unknown_warning_option=yes 10641 else case e in #( 10642 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10643 esac 10644 fi 10645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10646 esac 10647 fi 10648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10649 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10651 CFLAGS="$xorg_testset_save_CFLAGS" 10652 fi 10653 10654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10657 fi 10658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10662 then : 10663 printf %s "(cached) " >&6 10664 else case e in #( 10665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10666 /* end confdefs.h. */ 10667 int i; 10668 _ACEOF 10669 if ac_fn_c_try_compile "$LINENO" 10670 then : 10671 xorg_cv_cc_flag_unused_command_line_argument=yes 10672 else case e in #( 10673 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10674 esac 10675 fi 10676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10677 esac 10678 fi 10679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10680 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10682 CFLAGS="$xorg_testset_save_CFLAGS" 10683 fi 10684 10685 found="no" 10686 10687 if test $found = "no" ; then 10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10690 fi 10691 10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10694 fi 10695 10696 CFLAGS="$CFLAGS -Wwrite-strings" 10697 10698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10699 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10700 cacheid=xorg_cv_cc_flag__Wwrite_strings 10701 if eval test \${$cacheid+y} 10702 then : 10703 printf %s "(cached) " >&6 10704 else case e in #( 10705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10706 /* end confdefs.h. */ 10707 int i; 10708 int 10709 main (void) 10710 { 10711 10712 ; 10713 return 0; 10714 } 10715 _ACEOF 10716 if ac_fn_c_try_link "$LINENO" 10717 then : 10718 eval $cacheid=yes 10719 else case e in #( 10720 e) eval $cacheid=no ;; 10721 esac 10722 fi 10723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10724 conftest$ac_exeext conftest.$ac_ext ;; 10725 esac 10726 fi 10727 10728 10729 CFLAGS="$xorg_testset_save_CFLAGS" 10730 10731 eval supported=\$$cacheid 10732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10733 printf '%s\n' "$supported" >&6; } 10734 if test "$supported" = "yes" ; then 10735 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10736 found="yes" 10737 fi 10738 fi 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 xorg_testset_save_CFLAGS="$CFLAGS" 10755 10756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10760 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10761 then : 10762 printf %s "(cached) " >&6 10763 else case e in #( 10764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765 /* end confdefs.h. */ 10766 int i; 10767 _ACEOF 10768 if ac_fn_c_try_compile "$LINENO" 10769 then : 10770 xorg_cv_cc_flag_unknown_warning_option=yes 10771 else case e in #( 10772 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10773 esac 10774 fi 10775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10776 esac 10777 fi 10778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10779 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10781 CFLAGS="$xorg_testset_save_CFLAGS" 10782 fi 10783 10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10787 fi 10788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10792 then : 10793 printf %s "(cached) " >&6 10794 else case e in #( 10795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796 /* end confdefs.h. */ 10797 int i; 10798 _ACEOF 10799 if ac_fn_c_try_compile "$LINENO" 10800 then : 10801 xorg_cv_cc_flag_unused_command_line_argument=yes 10802 else case e in #( 10803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10804 esac 10805 fi 10806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10807 esac 10808 fi 10809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10810 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10812 CFLAGS="$xorg_testset_save_CFLAGS" 10813 fi 10814 10815 found="no" 10816 10817 if test $found = "no" ; then 10818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10820 fi 10821 10822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10824 fi 10825 10826 CFLAGS="$CFLAGS -Waddress" 10827 10828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10829 printf %s "checking if $CC supports -Waddress... " >&6; } 10830 cacheid=xorg_cv_cc_flag__Waddress 10831 if eval test \${$cacheid+y} 10832 then : 10833 printf %s "(cached) " >&6 10834 else case e in #( 10835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10836 /* end confdefs.h. */ 10837 int i; 10838 int 10839 main (void) 10840 { 10841 10842 ; 10843 return 0; 10844 } 10845 _ACEOF 10846 if ac_fn_c_try_link "$LINENO" 10847 then : 10848 eval $cacheid=yes 10849 else case e in #( 10850 e) eval $cacheid=no ;; 10851 esac 10852 fi 10853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10854 conftest$ac_exeext conftest.$ac_ext ;; 10855 esac 10856 fi 10857 10858 10859 CFLAGS="$xorg_testset_save_CFLAGS" 10860 10861 eval supported=\$$cacheid 10862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10863 printf '%s\n' "$supported" >&6; } 10864 if test "$supported" = "yes" ; then 10865 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10866 found="yes" 10867 fi 10868 fi 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 xorg_testset_save_CFLAGS="$CFLAGS" 10885 10886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10891 then : 10892 printf %s "(cached) " >&6 10893 else case e in #( 10894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10895 /* end confdefs.h. */ 10896 int i; 10897 _ACEOF 10898 if ac_fn_c_try_compile "$LINENO" 10899 then : 10900 xorg_cv_cc_flag_unknown_warning_option=yes 10901 else case e in #( 10902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10903 esac 10904 fi 10905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10906 esac 10907 fi 10908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10909 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10911 CFLAGS="$xorg_testset_save_CFLAGS" 10912 fi 10913 10914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10917 fi 10918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10922 then : 10923 printf %s "(cached) " >&6 10924 else case e in #( 10925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10926 /* end confdefs.h. */ 10927 int i; 10928 _ACEOF 10929 if ac_fn_c_try_compile "$LINENO" 10930 then : 10931 xorg_cv_cc_flag_unused_command_line_argument=yes 10932 else case e in #( 10933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10934 esac 10935 fi 10936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10937 esac 10938 fi 10939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10940 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10942 CFLAGS="$xorg_testset_save_CFLAGS" 10943 fi 10944 10945 found="no" 10946 10947 if test $found = "no" ; then 10948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10950 fi 10951 10952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10954 fi 10955 10956 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10957 10958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10959 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10960 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10961 if eval test \${$cacheid+y} 10962 then : 10963 printf %s "(cached) " >&6 10964 else case e in #( 10965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10966 /* end confdefs.h. */ 10967 int i; 10968 int 10969 main (void) 10970 { 10971 10972 ; 10973 return 0; 10974 } 10975 _ACEOF 10976 if ac_fn_c_try_link "$LINENO" 10977 then : 10978 eval $cacheid=yes 10979 else case e in #( 10980 e) eval $cacheid=no ;; 10981 esac 10982 fi 10983 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10984 conftest$ac_exeext conftest.$ac_ext ;; 10985 esac 10986 fi 10987 10988 10989 CFLAGS="$xorg_testset_save_CFLAGS" 10990 10991 eval supported=\$$cacheid 10992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10993 printf '%s\n' "$supported" >&6; } 10994 if test "$supported" = "yes" ; then 10995 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10996 found="yes" 10997 fi 10998 fi 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 xorg_testset_save_CFLAGS="$CFLAGS" 11015 11016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11020 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11021 then : 11022 printf %s "(cached) " >&6 11023 else case e in #( 11024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025 /* end confdefs.h. */ 11026 int i; 11027 _ACEOF 11028 if ac_fn_c_try_compile "$LINENO" 11029 then : 11030 xorg_cv_cc_flag_unknown_warning_option=yes 11031 else case e in #( 11032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11033 esac 11034 fi 11035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11036 esac 11037 fi 11038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11039 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11041 CFLAGS="$xorg_testset_save_CFLAGS" 11042 fi 11043 11044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11047 fi 11048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11052 then : 11053 printf %s "(cached) " >&6 11054 else case e in #( 11055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056 /* end confdefs.h. */ 11057 int i; 11058 _ACEOF 11059 if ac_fn_c_try_compile "$LINENO" 11060 then : 11061 xorg_cv_cc_flag_unused_command_line_argument=yes 11062 else case e in #( 11063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11064 esac 11065 fi 11066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11067 esac 11068 fi 11069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11070 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11072 CFLAGS="$xorg_testset_save_CFLAGS" 11073 fi 11074 11075 found="no" 11076 11077 if test $found = "no" ; then 11078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11080 fi 11081 11082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11084 fi 11085 11086 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11087 11088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11089 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11090 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11091 if eval test \${$cacheid+y} 11092 then : 11093 printf %s "(cached) " >&6 11094 else case e in #( 11095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096 /* end confdefs.h. */ 11097 int i; 11098 int 11099 main (void) 11100 { 11101 11102 ; 11103 return 0; 11104 } 11105 _ACEOF 11106 if ac_fn_c_try_link "$LINENO" 11107 then : 11108 eval $cacheid=yes 11109 else case e in #( 11110 e) eval $cacheid=no ;; 11111 esac 11112 fi 11113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext ;; 11115 esac 11116 fi 11117 11118 11119 CFLAGS="$xorg_testset_save_CFLAGS" 11120 11121 eval supported=\$$cacheid 11122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11123 printf '%s\n' "$supported" >&6; } 11124 if test "$supported" = "yes" ; then 11125 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11126 found="yes" 11127 fi 11128 fi 11129 11130 11131 fi 11132 11133 11134 11135 11136 11137 11138 11139 CWARNFLAGS="$BASE_CFLAGS" 11140 if test "x$GCC" = xyes ; then 11141 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11142 fi 11143 11144 11145 11146 11147 11148 11149 11150 11151 # Check whether --enable-strict-compilation was given. 11152 if test ${enable_strict_compilation+y} 11153 then : 11154 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11155 else case e in #( 11156 e) STRICT_COMPILE=no ;; 11157 esac 11158 fi 11159 11160 11161 11162 11163 11164 11165 STRICT_CFLAGS="" 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 xorg_testset_save_CFLAGS="$CFLAGS" 11180 11181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11185 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11186 then : 11187 printf %s "(cached) " >&6 11188 else case e in #( 11189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11190 /* end confdefs.h. */ 11191 int i; 11192 _ACEOF 11193 if ac_fn_c_try_compile "$LINENO" 11194 then : 11195 xorg_cv_cc_flag_unknown_warning_option=yes 11196 else case e in #( 11197 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11198 esac 11199 fi 11200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11201 esac 11202 fi 11203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11204 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11206 CFLAGS="$xorg_testset_save_CFLAGS" 11207 fi 11208 11209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11212 fi 11213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11217 then : 11218 printf %s "(cached) " >&6 11219 else case e in #( 11220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11221 /* end confdefs.h. */ 11222 int i; 11223 _ACEOF 11224 if ac_fn_c_try_compile "$LINENO" 11225 then : 11226 xorg_cv_cc_flag_unused_command_line_argument=yes 11227 else case e in #( 11228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11229 esac 11230 fi 11231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11232 esac 11233 fi 11234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11235 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11237 CFLAGS="$xorg_testset_save_CFLAGS" 11238 fi 11239 11240 found="no" 11241 11242 if test $found = "no" ; then 11243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11245 fi 11246 11247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11249 fi 11250 11251 CFLAGS="$CFLAGS -pedantic" 11252 11253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11254 printf %s "checking if $CC supports -pedantic... " >&6; } 11255 cacheid=xorg_cv_cc_flag__pedantic 11256 if eval test \${$cacheid+y} 11257 then : 11258 printf %s "(cached) " >&6 11259 else case e in #( 11260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11261 /* end confdefs.h. */ 11262 int i; 11263 int 11264 main (void) 11265 { 11266 11267 ; 11268 return 0; 11269 } 11270 _ACEOF 11271 if ac_fn_c_try_link "$LINENO" 11272 then : 11273 eval $cacheid=yes 11274 else case e in #( 11275 e) eval $cacheid=no ;; 11276 esac 11277 fi 11278 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11279 conftest$ac_exeext conftest.$ac_ext ;; 11280 esac 11281 fi 11282 11283 11284 CFLAGS="$xorg_testset_save_CFLAGS" 11285 11286 eval supported=\$$cacheid 11287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11288 printf '%s\n' "$supported" >&6; } 11289 if test "$supported" = "yes" ; then 11290 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11291 found="yes" 11292 fi 11293 fi 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 xorg_testset_save_CFLAGS="$CFLAGS" 11310 11311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11313 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11315 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11316 then : 11317 printf %s "(cached) " >&6 11318 else case e in #( 11319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320 /* end confdefs.h. */ 11321 int i; 11322 _ACEOF 11323 if ac_fn_c_try_compile "$LINENO" 11324 then : 11325 xorg_cv_cc_flag_unknown_warning_option=yes 11326 else case e in #( 11327 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11328 esac 11329 fi 11330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11331 esac 11332 fi 11333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11334 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11336 CFLAGS="$xorg_testset_save_CFLAGS" 11337 fi 11338 11339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11342 fi 11343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11347 then : 11348 printf %s "(cached) " >&6 11349 else case e in #( 11350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11351 /* end confdefs.h. */ 11352 int i; 11353 _ACEOF 11354 if ac_fn_c_try_compile "$LINENO" 11355 then : 11356 xorg_cv_cc_flag_unused_command_line_argument=yes 11357 else case e in #( 11358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11359 esac 11360 fi 11361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11362 esac 11363 fi 11364 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11365 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11367 CFLAGS="$xorg_testset_save_CFLAGS" 11368 fi 11369 11370 found="no" 11371 11372 if test $found = "no" ; then 11373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11375 fi 11376 11377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11379 fi 11380 11381 CFLAGS="$CFLAGS -Werror" 11382 11383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11384 printf %s "checking if $CC supports -Werror... " >&6; } 11385 cacheid=xorg_cv_cc_flag__Werror 11386 if eval test \${$cacheid+y} 11387 then : 11388 printf %s "(cached) " >&6 11389 else case e in #( 11390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11391 /* end confdefs.h. */ 11392 int i; 11393 int 11394 main (void) 11395 { 11396 11397 ; 11398 return 0; 11399 } 11400 _ACEOF 11401 if ac_fn_c_try_link "$LINENO" 11402 then : 11403 eval $cacheid=yes 11404 else case e in #( 11405 e) eval $cacheid=no ;; 11406 esac 11407 fi 11408 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11409 conftest$ac_exeext conftest.$ac_ext ;; 11410 esac 11411 fi 11412 11413 11414 CFLAGS="$xorg_testset_save_CFLAGS" 11415 11416 eval supported=\$$cacheid 11417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11418 printf '%s\n' "$supported" >&6; } 11419 if test "$supported" = "yes" ; then 11420 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11421 found="yes" 11422 fi 11423 fi 11424 11425 if test $found = "no" ; then 11426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11428 fi 11429 11430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11432 fi 11433 11434 CFLAGS="$CFLAGS -errwarn" 11435 11436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11437 printf %s "checking if $CC supports -errwarn... " >&6; } 11438 cacheid=xorg_cv_cc_flag__errwarn 11439 if eval test \${$cacheid+y} 11440 then : 11441 printf %s "(cached) " >&6 11442 else case e in #( 11443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11444 /* end confdefs.h. */ 11445 int i; 11446 int 11447 main (void) 11448 { 11449 11450 ; 11451 return 0; 11452 } 11453 _ACEOF 11454 if ac_fn_c_try_link "$LINENO" 11455 then : 11456 eval $cacheid=yes 11457 else case e in #( 11458 e) eval $cacheid=no ;; 11459 esac 11460 fi 11461 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11462 conftest$ac_exeext conftest.$ac_ext ;; 11463 esac 11464 fi 11465 11466 11467 CFLAGS="$xorg_testset_save_CFLAGS" 11468 11469 eval supported=\$$cacheid 11470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11471 printf '%s\n' "$supported" >&6; } 11472 if test "$supported" = "yes" ; then 11473 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11474 found="yes" 11475 fi 11476 fi 11477 11478 11479 11480 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11481 # activate it with -Werror, so we add it here explicitly. 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 xorg_testset_save_CFLAGS="$CFLAGS" 11496 11497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11501 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11502 then : 11503 printf %s "(cached) " >&6 11504 else case e in #( 11505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11506 /* end confdefs.h. */ 11507 int i; 11508 _ACEOF 11509 if ac_fn_c_try_compile "$LINENO" 11510 then : 11511 xorg_cv_cc_flag_unknown_warning_option=yes 11512 else case e in #( 11513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11514 esac 11515 fi 11516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11517 esac 11518 fi 11519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11520 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11522 CFLAGS="$xorg_testset_save_CFLAGS" 11523 fi 11524 11525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11528 fi 11529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11533 then : 11534 printf %s "(cached) " >&6 11535 else case e in #( 11536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11537 /* end confdefs.h. */ 11538 int i; 11539 _ACEOF 11540 if ac_fn_c_try_compile "$LINENO" 11541 then : 11542 xorg_cv_cc_flag_unused_command_line_argument=yes 11543 else case e in #( 11544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11545 esac 11546 fi 11547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11548 esac 11549 fi 11550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11551 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11553 CFLAGS="$xorg_testset_save_CFLAGS" 11554 fi 11555 11556 found="no" 11557 11558 if test $found = "no" ; then 11559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11561 fi 11562 11563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11565 fi 11566 11567 CFLAGS="$CFLAGS -Werror=attributes" 11568 11569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11570 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11571 cacheid=xorg_cv_cc_flag__Werror_attributes 11572 if eval test \${$cacheid+y} 11573 then : 11574 printf %s "(cached) " >&6 11575 else case e in #( 11576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577 /* end confdefs.h. */ 11578 int i; 11579 int 11580 main (void) 11581 { 11582 11583 ; 11584 return 0; 11585 } 11586 _ACEOF 11587 if ac_fn_c_try_link "$LINENO" 11588 then : 11589 eval $cacheid=yes 11590 else case e in #( 11591 e) eval $cacheid=no ;; 11592 esac 11593 fi 11594 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11595 conftest$ac_exeext conftest.$ac_ext ;; 11596 esac 11597 fi 11598 11599 11600 CFLAGS="$xorg_testset_save_CFLAGS" 11601 11602 eval supported=\$$cacheid 11603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11604 printf '%s\n' "$supported" >&6; } 11605 if test "$supported" = "yes" ; then 11606 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11607 found="yes" 11608 fi 11609 fi 11610 11611 11612 11613 if test "x$STRICT_COMPILE" = "xyes"; then 11614 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11615 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11616 fi 11617 11618 11619 11620 11621 11622 11623 11624 11625 cat >>confdefs.h <<_ACEOF 11626 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11627 _ACEOF 11628 11629 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11630 if test "x$PVM" = "x"; then 11631 PVM="0" 11632 fi 11633 11634 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11635 11636 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11637 if test "x$PVP" = "x"; then 11638 PVP="0" 11639 fi 11640 11641 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11642 11643 11644 11645 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11646 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11647 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11648 touch \$(top_srcdir)/ChangeLog; \ 11649 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11650 11651 11652 11653 11654 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11655 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11656 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11657 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11658 touch \$(top_srcdir)/INSTALL; \ 11659 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11660 11661 11662 11663 11664 11665 11666 case $host_os in 11667 solaris*) 11668 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11669 # check for a man page file found in later versions that use 11670 # traditional section numbers instead 11671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11672 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11673 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11674 then : 11675 printf %s "(cached) " >&6 11676 else case e in #( 11677 e) test "$cross_compiling" = yes && 11678 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11679 if test -r "/usr/share/man/man7/attributes.7"; then 11680 ac_cv_file__usr_share_man_man7_attributes_7=yes 11681 else 11682 ac_cv_file__usr_share_man_man7_attributes_7=no 11683 fi ;; 11684 esac 11685 fi 11686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11687 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11688 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11689 then : 11690 SYSV_MAN_SECTIONS=false 11691 else case e in #( 11692 e) SYSV_MAN_SECTIONS=true ;; 11693 esac 11694 fi 11695 11696 ;; 11697 *) SYSV_MAN_SECTIONS=false ;; 11698 esac 11699 11700 if test x$APP_MAN_SUFFIX = x ; then 11701 APP_MAN_SUFFIX=1 11702 fi 11703 if test x$APP_MAN_DIR = x ; then 11704 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11705 fi 11706 11707 if test x$LIB_MAN_SUFFIX = x ; then 11708 LIB_MAN_SUFFIX=3 11709 fi 11710 if test x$LIB_MAN_DIR = x ; then 11711 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11712 fi 11713 11714 if test x$FILE_MAN_SUFFIX = x ; then 11715 case $SYSV_MAN_SECTIONS in 11716 true) FILE_MAN_SUFFIX=4 ;; 11717 *) FILE_MAN_SUFFIX=5 ;; 11718 esac 11719 fi 11720 if test x$FILE_MAN_DIR = x ; then 11721 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11722 fi 11723 11724 if test x$MISC_MAN_SUFFIX = x ; then 11725 case $SYSV_MAN_SECTIONS in 11726 true) MISC_MAN_SUFFIX=5 ;; 11727 *) MISC_MAN_SUFFIX=7 ;; 11728 esac 11729 fi 11730 if test x$MISC_MAN_DIR = x ; then 11731 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11732 fi 11733 11734 if test x$DRIVER_MAN_SUFFIX = x ; then 11735 case $SYSV_MAN_SECTIONS in 11736 true) DRIVER_MAN_SUFFIX=7 ;; 11737 *) DRIVER_MAN_SUFFIX=4 ;; 11738 esac 11739 fi 11740 if test x$DRIVER_MAN_DIR = x ; then 11741 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11742 fi 11743 11744 if test x$ADMIN_MAN_SUFFIX = x ; then 11745 case $SYSV_MAN_SECTIONS in 11746 true) ADMIN_MAN_SUFFIX=1m ;; 11747 *) ADMIN_MAN_SUFFIX=8 ;; 11748 esac 11749 fi 11750 if test x$ADMIN_MAN_DIR = x ; then 11751 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11752 fi 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 XORG_MAN_PAGE="X Version 11" 11769 11770 MAN_SUBSTS="\ 11771 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11772 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11773 -e 's|__xservername__|Xorg|g' \ 11774 -e 's|__xconfigfile__|xorg.conf|g' \ 11775 -e 's|__projectroot__|\$(prefix)|g' \ 11776 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11777 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11778 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11779 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11780 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11781 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11782 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11783 11784 11785 11786 11787 AM_DEFAULT_VERBOSITY=0 11788 11789 11790 11791 11792 11793 # Checks for pkg-config packages 11794 if test -n "$PKG_CONFIG" && \ 11795 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5 11796 ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5 11797 ac_status=$? 11798 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11799 test $ac_status = 0; }; then 11800 XKBPKG="xkbfile" 11801 else 11802 XKBPKG="" 11803 fi 11804 if test x$XKBPKG = xxkbfile ; then 11805 11806 printf '%s\n' "#define XKB 1" >>confdefs.h 11807 11808 fi 11809 11810 pkg_failed=no 11811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XCLIPBOARD" >&5 11812 printf %s "checking for XCLIPBOARD... " >&6; } 11813 11814 if test -n "$XCLIPBOARD_CFLAGS"; then 11815 pkg_cv_XCLIPBOARD_CFLAGS="$XCLIPBOARD_CFLAGS" 11816 elif test -n "$PKG_CONFIG"; then 11817 if test -n "$PKG_CONFIG" && \ 11818 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5 11819 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5 11820 ac_status=$? 11821 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11822 test $ac_status = 0; }; then 11823 pkg_cv_XCLIPBOARD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null` 11824 test "x$?" != "x0" && pkg_failed=yes 11825 else 11826 pkg_failed=yes 11827 fi 11828 else 11829 pkg_failed=untried 11830 fi 11831 if test -n "$XCLIPBOARD_LIBS"; then 11832 pkg_cv_XCLIPBOARD_LIBS="$XCLIPBOARD_LIBS" 11833 elif test -n "$PKG_CONFIG"; then 11834 if test -n "$PKG_CONFIG" && \ 11835 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.1 x11 \${XKBPKG} xproto >= 7.0.17\""; } >&5 11836 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17") 2>&5 11837 ac_status=$? 11838 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11839 test $ac_status = 0; }; then 11840 pkg_cv_XCLIPBOARD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>/dev/null` 11841 test "x$?" != "x0" && pkg_failed=yes 11842 else 11843 pkg_failed=yes 11844 fi 11845 else 11846 pkg_failed=untried 11847 fi 11848 11849 11850 11851 if test $pkg_failed = yes; then 11852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11853 printf '%s\n' "no" >&6; } 11854 11855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11856 _pkg_short_errors_supported=yes 11857 else 11858 _pkg_short_errors_supported=no 11859 fi 11860 if test $_pkg_short_errors_supported = yes; then 11861 XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1` 11862 else 11863 XCLIPBOARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17" 2>&1` 11864 fi 11865 # Put the nasty error message in config.log where it belongs 11866 echo "$XCLIPBOARD_PKG_ERRORS" >&5 11867 11868 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.1 x11 ${XKBPKG} xproto >= 7.0.17) were not met: 11869 11870 $XCLIPBOARD_PKG_ERRORS 11871 11872 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11873 installed software in a non-standard prefix. 11874 11875 Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS 11876 and XCLIPBOARD_LIBS to avoid the need to call pkg-config. 11877 See the pkg-config man page for more details." "$LINENO" 5 11878 elif test $pkg_failed = untried; then 11879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11880 printf '%s\n' "no" >&6; } 11881 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11882 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 11883 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11884 is in your PATH or set the PKG_CONFIG environment variable to the full 11885 path to pkg-config. 11886 11887 Alternatively, you may set the environment variables XCLIPBOARD_CFLAGS 11888 and XCLIPBOARD_LIBS to avoid the need to call pkg-config. 11889 See the pkg-config man page for more details. 11890 11891 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11892 See 'config.log' for more details" "$LINENO" 5; } 11893 else 11894 XCLIPBOARD_CFLAGS=$pkg_cv_XCLIPBOARD_CFLAGS 11895 XCLIPBOARD_LIBS=$pkg_cv_XCLIPBOARD_LIBS 11896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11897 printf '%s\n' "yes" >&6; } 11898 11899 fi 11900 11901 11902 pkg_failed=no 11903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11904 printf %s "checking for APPDEFS... " >&6; } 11905 11906 if test -n "$APPDEFS_CFLAGS"; then 11907 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11908 elif test -n "$PKG_CONFIG"; then 11909 if test -n "$PKG_CONFIG" && \ 11910 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11911 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11912 ac_status=$? 11913 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11914 test $ac_status = 0; }; then 11915 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11916 test "x$?" != "x0" && pkg_failed=yes 11917 else 11918 pkg_failed=yes 11919 fi 11920 else 11921 pkg_failed=untried 11922 fi 11923 if test -n "$APPDEFS_LIBS"; then 11924 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11925 elif test -n "$PKG_CONFIG"; then 11926 if test -n "$PKG_CONFIG" && \ 11927 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11928 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11929 ac_status=$? 11930 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11931 test $ac_status = 0; }; then 11932 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11933 test "x$?" != "x0" && pkg_failed=yes 11934 else 11935 pkg_failed=yes 11936 fi 11937 else 11938 pkg_failed=untried 11939 fi 11940 11941 11942 11943 if test $pkg_failed = yes; then 11944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11945 printf '%s\n' "no" >&6; } 11946 11947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11948 _pkg_short_errors_supported=yes 11949 else 11950 _pkg_short_errors_supported=no 11951 fi 11952 if test $_pkg_short_errors_supported = yes; then 11953 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11954 else 11955 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11956 fi 11957 # Put the nasty error message in config.log where it belongs 11958 echo "$APPDEFS_PKG_ERRORS" >&5 11959 11960 as_fn_error $? "Package requirements (xt) were not met: 11961 11962 $APPDEFS_PKG_ERRORS 11963 11964 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11965 installed software in a non-standard prefix. 11966 11967 Alternatively, you may set the environment variables APPDEFS_CFLAGS 11968 and APPDEFS_LIBS to avoid the need to call pkg-config. 11969 See the pkg-config man page for more details." "$LINENO" 5 11970 elif test $pkg_failed = untried; then 11971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 11972 printf '%s\n' "no" >&6; } 11973 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11974 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 11975 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11976 is in your PATH or set the PKG_CONFIG environment variable to the full 11977 path to pkg-config. 11978 11979 Alternatively, you may set the environment variables APPDEFS_CFLAGS 11980 and APPDEFS_LIBS to avoid the need to call pkg-config. 11981 See the pkg-config man page for more details. 11982 11983 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11984 See 'config.log' for more details" "$LINENO" 5; } 11985 else 11986 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11987 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11989 printf '%s\n' "yes" >&6; } 11990 11991 fi 11992 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11993 11994 # Check whether --with-appdefaultdir was given. 11995 if test ${with_appdefaultdir+y} 11996 then : 11997 withval=$with_appdefaultdir; appdefaultdir="$withval" 11998 else case e in #( 11999 e) appdefaultdir="${xt_appdefaultdir}" ;; 12000 esac 12001 fi 12002 12003 12004 12005 12006 ac_config_files="$ac_config_files Makefile man/Makefile" 12007 12008 cat >confcache <<\_ACEOF 12009 # This file is a shell script that caches the results of configure 12010 # tests run on this system so they can be shared between configure 12011 # scripts and configure runs, see configure's option --config-cache. 12012 # It is not useful on other systems. If it contains results you don't 12013 # want to keep, you may remove or edit it. 12014 # 12015 # config.status only pays attention to the cache file if you give it 12016 # the --recheck option to rerun configure. 12017 # 12018 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12019 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12020 # following values. 12021 12022 _ACEOF 12023 12024 ac_cache_dump | 12025 sed ' 12026 /^ac_cv_env_/b end 12027 t clear 12028 :clear 12029 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12030 t end 12031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12032 :end' >>confcache 12033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12034 if test -w "$cache_file"; then 12035 if test "x$cache_file" != "x/dev/null"; then 12036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12037 printf '%s\n' "$as_me: updating cache $cache_file" >&6;} 12038 if test ! -f "$cache_file" || test -h "$cache_file"; then 12039 cat confcache >"$cache_file" 12040 else 12041 case $cache_file in #( 12042 */* | ?:*) 12043 mv -f confcache "$cache_file"$$ && 12044 mv -f "$cache_file"$$ "$cache_file" ;; #( 12045 *) 12046 mv -f confcache "$cache_file" ;; 12047 esac 12048 fi 12049 fi 12050 else 12051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12052 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;} 12053 fi 12054 fi 12055 rm -f confcache 12056 12057 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12058 # Let make expand exec_prefix. 12059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12060 12061 DEFS=-DHAVE_CONFIG_H 12062 12063 ac_libobjs= 12064 ac_ltlibobjs= 12065 U= 12066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12067 # 1. Remove the extension, and $U if already installed. 12068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12069 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"` 12070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12071 # will be set to the directory where LIBOBJS objects are built. 12072 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12073 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12074 done 12075 LIBOBJS=$ac_libobjs 12076 12077 LTLIBOBJS=$ac_ltlibobjs 12078 12079 12080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12081 printf %s "checking that generated files are newer than configure... " >&6; } 12082 if test -n "$am_sleep_pid"; then 12083 # Hide warnings about reused PIDs. 12084 wait $am_sleep_pid 2>/dev/null 12085 fi 12086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5 12087 printf '%s\n' "done" >&6; } 12088 case $enable_silent_rules in # ((( 12089 yes) AM_DEFAULT_VERBOSITY=0;; 12090 no) AM_DEFAULT_VERBOSITY=1;; 12091 esac 12092 if test $am_cv_make_support_nested_variables = yes; then 12093 AM_V='$(V)' 12094 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12095 else 12096 AM_V=$AM_DEFAULT_VERBOSITY 12097 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12098 fi 12099 12100 if test -n "$EXEEXT"; then 12101 am__EXEEXT_TRUE= 12102 am__EXEEXT_FALSE='#' 12103 else 12104 am__EXEEXT_TRUE='#' 12105 am__EXEEXT_FALSE= 12106 fi 12107 12108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12109 as_fn_error $? "conditional \"AMDEP\" was never defined. 12110 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12111 fi 12112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12114 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12115 fi 12116 12117 : "${CONFIG_STATUS=./config.status}" 12118 case $CONFIG_STATUS in #( 12119 -*) : 12120 CONFIG_STATUS=./$CONFIG_STATUS ;; #( 12121 */*) : 12122 ;; #( 12123 *) : 12124 CONFIG_STATUS=./$CONFIG_STATUS ;; 12125 esac 12126 12127 ac_write_fail=0 12128 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"' 12129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12130 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;} 12131 as_write_fail=0 12132 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1 12133 #! $SHELL 12134 # Generated by $as_me. 12135 # Run this file to recreate the current configuration. 12136 # Compiler output produced by configure, useful for debugging 12137 # configure, is in config.log if it exists. 12138 12139 debug=false 12140 ac_cs_recheck=false 12141 ac_cs_silent=false 12142 12143 SHELL=\${CONFIG_SHELL-$SHELL} 12144 export SHELL 12145 _ASEOF 12146 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1 12147 ## -------------------- ## 12148 ## M4sh Initialization. ## 12149 ## -------------------- ## 12150 12151 # Be more Bourne compatible 12152 DUALCASE=1; export DUALCASE # for MKS sh 12153 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12154 then : 12155 emulate sh 12156 NULLCMD=: 12157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12158 # contradicts POSIX and common usage. Disable this. 12159 alias -g '${1+"$@"}'='"$@"' 12160 setopt NO_GLOB_SUBST 12161 else case e in #( 12162 e) case `(set -o) 2>/dev/null` in #( 12163 *posix*) : 12164 set -o posix ;; #( 12165 *) : 12166 ;; 12167 esac ;; 12168 esac 12169 fi 12170 12171 12172 12173 # Reset variables that may have inherited troublesome values from 12174 # the environment. 12175 12176 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12177 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12178 # side effect of setting IFS to empty, thus disabling word splitting.) 12179 # Quoting is to prevent editors from complaining about space-tab. 12180 as_nl=' 12181 ' 12182 export as_nl 12183 IFS=" "" $as_nl" 12184 12185 PS1='$ ' 12186 PS2='> ' 12187 PS4='+ ' 12188 12189 # Ensure predictable behavior from utilities with locale-dependent output. 12190 LC_ALL=C 12191 export LC_ALL 12192 LANGUAGE=C 12193 export LANGUAGE 12194 12195 # We cannot yet rely on "unset" to work, but we need these variables 12196 # to be unset--not just set to an empty or harmless value--now, to 12197 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12198 # also avoids known problems related to "unset" and subshell syntax 12199 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12200 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12201 do eval test \${$as_var+y} \ 12202 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12203 done 12204 12205 # Ensure that fds 0, 1, and 2 are open. 12206 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12207 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12208 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12209 12210 # The user is always right. 12211 if ${PATH_SEPARATOR+false} :; then 12212 PATH_SEPARATOR=: 12213 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12214 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12215 PATH_SEPARATOR=';' 12216 } 12217 fi 12218 12219 12220 # Find who we are. Look in the path if we contain no directory separator. 12221 as_myself= 12222 case $0 in #(( 12223 *[\\/]* ) as_myself=$0 ;; 12224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12225 for as_dir in $PATH 12226 do 12227 IFS=$as_save_IFS 12228 case $as_dir in #((( 12229 '') as_dir=./ ;; 12230 */) ;; 12231 *) as_dir=$as_dir/ ;; 12232 esac 12233 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12234 done 12235 IFS=$as_save_IFS 12236 12237 ;; 12238 esac 12239 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12240 # in which case we are not to be found in the path. 12241 if test "x$as_myself" = x; then 12242 as_myself=$0 12243 fi 12244 if test ! -f "$as_myself"; then 12245 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12246 exit 1 12247 fi 12248 12249 12250 12251 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12252 # ---------------------------------------- 12253 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12254 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12255 # script with STATUS, using 1 if that was 0. 12256 as_fn_error () 12257 { 12258 as_status=$1; test $as_status -eq 0 && as_status=1 12259 if test "$4"; then 12260 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12261 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12262 fi 12263 printf '%s\n' "$as_me: error: $2" >&2 12264 as_fn_exit $as_status 12265 } # as_fn_error 12266 12267 12268 # as_fn_set_status STATUS 12269 # ----------------------- 12270 # Set $? to STATUS, without forking. 12271 as_fn_set_status () 12272 { 12273 return $1 12274 } # as_fn_set_status 12275 12276 # as_fn_exit STATUS 12277 # ----------------- 12278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12279 as_fn_exit () 12280 { 12281 set +e 12282 as_fn_set_status $1 12283 exit $1 12284 } # as_fn_exit 12285 12286 # as_fn_unset VAR 12287 # --------------- 12288 # Portably unset VAR. 12289 as_fn_unset () 12290 { 12291 { eval $1=; unset $1;} 12292 } 12293 as_unset=as_fn_unset 12294 12295 # as_fn_append VAR VALUE 12296 # ---------------------- 12297 # Append the text in VALUE to the end of the definition contained in VAR. Take 12298 # advantage of any shell optimizations that allow amortized linear growth over 12299 # repeated appends, instead of the typical quadratic growth present in naive 12300 # implementations. 12301 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12302 then : 12303 eval 'as_fn_append () 12304 { 12305 eval $1+=\$2 12306 }' 12307 else case e in #( 12308 e) as_fn_append () 12309 { 12310 eval $1=\$$1\$2 12311 } ;; 12312 esac 12313 fi # as_fn_append 12314 12315 # as_fn_arith ARG... 12316 # ------------------ 12317 # Perform arithmetic evaluation on the ARGs, and store the result in the 12318 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12319 # must be portable across $(()) and expr. 12320 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12321 then : 12322 eval 'as_fn_arith () 12323 { 12324 as_val=$(( $* )) 12325 }' 12326 else case e in #( 12327 e) as_fn_arith () 12328 { 12329 as_val=`expr "$@" || test $? -eq 1` 12330 } ;; 12331 esac 12332 fi # as_fn_arith 12333 12334 12335 if expr a : '\(a\)' >/dev/null 2>&1 && 12336 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12337 as_expr=expr 12338 else 12339 as_expr=false 12340 fi 12341 12342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12343 as_basename=basename 12344 else 12345 as_basename=false 12346 fi 12347 12348 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12349 as_dirname=dirname 12350 else 12351 as_dirname=false 12352 fi 12353 12354 as_me=`$as_basename -- "$0" || 12355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12356 X"$0" : 'X\(//\)$' \| \ 12357 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12358 printf '%s\n' X/"$0" | 12359 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12360 s//\1/ 12361 q 12362 } 12363 /^X\/\(\/\/\)$/{ 12364 s//\1/ 12365 q 12366 } 12367 /^X\/\(\/\).*/{ 12368 s//\1/ 12369 q 12370 } 12371 s/.*/./; q'` 12372 12373 # Avoid depending upon Character Ranges. 12374 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12377 as_cr_digits='0123456789' 12378 as_cr_alnum=$as_cr_Letters$as_cr_digits 12379 12380 rm -f conf$$ conf$$.exe conf$$.file 12381 if test -d conf$$.dir; then 12382 rm -f conf$$.dir/conf$$.file 12383 else 12384 rm -f conf$$.dir 12385 mkdir conf$$.dir 2>/dev/null 12386 fi 12387 if (echo >conf$$.file) 2>/dev/null; then 12388 if ln -s conf$$.file conf$$ 2>/dev/null; then 12389 as_ln_s='ln -s' 12390 # ... but there are two gotchas: 12391 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12392 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12393 # In both cases, we have to default to 'cp -pR'. 12394 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12395 as_ln_s='cp -pR' 12396 elif ln conf$$.file conf$$ 2>/dev/null; then 12397 as_ln_s=ln 12398 else 12399 as_ln_s='cp -pR' 12400 fi 12401 else 12402 as_ln_s='cp -pR' 12403 fi 12404 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12405 rmdir conf$$.dir 2>/dev/null 12406 12407 12408 # as_fn_mkdir_p 12409 # ------------- 12410 # Create "$as_dir" as a directory, including parents if necessary. 12411 as_fn_mkdir_p () 12412 { 12413 12414 case $as_dir in #( 12415 -*) as_dir=./$as_dir;; 12416 esac 12417 test -d "$as_dir" || eval $as_mkdir_p || { 12418 as_dirs= 12419 while :; do 12420 case $as_dir in #( 12421 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12422 *) as_qdir=$as_dir;; 12423 esac 12424 as_dirs="'$as_qdir' $as_dirs" 12425 as_dir=`$as_dirname -- "$as_dir" || 12426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12427 X"$as_dir" : 'X\(//\)[^/]' \| \ 12428 X"$as_dir" : 'X\(//\)$' \| \ 12429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12430 printf '%s\n' X"$as_dir" | 12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12432 s//\1/ 12433 q 12434 } 12435 /^X\(\/\/\)[^/].*/{ 12436 s//\1/ 12437 q 12438 } 12439 /^X\(\/\/\)$/{ 12440 s//\1/ 12441 q 12442 } 12443 /^X\(\/\).*/{ 12444 s//\1/ 12445 q 12446 } 12447 s/.*/./; q'` 12448 test -d "$as_dir" && break 12449 done 12450 test -z "$as_dirs" || eval "mkdir $as_dirs" 12451 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12452 12453 12454 } # as_fn_mkdir_p 12455 if mkdir -p . 2>/dev/null; then 12456 as_mkdir_p='mkdir -p "$as_dir"' 12457 else 12458 test -d ./-p && rmdir ./-p 12459 as_mkdir_p=false 12460 fi 12461 12462 12463 # as_fn_executable_p FILE 12464 # ----------------------- 12465 # Test if FILE is an executable regular file. 12466 as_fn_executable_p () 12467 { 12468 test -f "$1" && test -x "$1" 12469 } # as_fn_executable_p 12470 as_test_x='test -x' 12471 as_executable_p=as_fn_executable_p 12472 12473 # Sed expression to map a string onto a valid CPP name. 12474 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12475 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12476 12477 # Sed expression to map a string onto a valid variable name. 12478 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12479 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12480 12481 12482 exec 6>&1 12483 ## ------------------------------------- ## 12484 ## Main body of "$CONFIG_STATUS" script. ## 12485 ## ------------------------------------- ## 12486 _ASEOF 12487 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1 12488 12489 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12490 # Save the log message, to keep $0 and so on meaningful, and to 12491 # report actual input values of CONFIG_FILES etc. instead of their 12492 # values after options handling. 12493 ac_log=" 12494 This file was extended by xclipboard $as_me 1.1.6, which was 12495 generated by GNU Autoconf 2.73. Invocation command line was 12496 12497 CONFIG_FILES = $CONFIG_FILES 12498 CONFIG_HEADERS = $CONFIG_HEADERS 12499 CONFIG_LINKS = $CONFIG_LINKS 12500 CONFIG_COMMANDS = $CONFIG_COMMANDS 12501 $ $0 $@ 12502 12503 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12504 " 12505 12506 _ACEOF 12507 12508 case $ac_config_files in *" 12509 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12510 esac 12511 12512 case $ac_config_headers in *" 12513 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12514 esac 12515 12516 12517 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12518 # Files that config.status was made for. 12519 config_files="$ac_config_files" 12520 config_headers="$ac_config_headers" 12521 config_commands="$ac_config_commands" 12522 12523 _ACEOF 12524 12525 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12526 ac_cs_usage="\ 12527 '$as_me' instantiates files and other configuration actions 12528 from templates according to the current configuration. Unless the files 12529 and actions are specified as TAGs, all are instantiated by default. 12530 12531 Usage: $0 [OPTION]... [TAG]... 12532 12533 -h, --help print this help, then exit 12534 -V, --version print version number and configuration settings, then exit 12535 --config print configuration, then exit 12536 -q, --quiet, --silent 12537 do not print progress messages 12538 -d, --debug don't remove temporary files 12539 --recheck update $as_me by reconfiguring in the same conditions 12540 --file=FILE[:TEMPLATE] 12541 instantiate the configuration file FILE 12542 --header=FILE[:TEMPLATE] 12543 instantiate the configuration header FILE 12544 12545 Configuration files: 12546 $config_files 12547 12548 Configuration headers: 12549 $config_headers 12550 12551 Configuration commands: 12552 $config_commands 12553 12554 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/issues>. 12555 xclipboard home page: <https://gitlab.freedesktop.org/xorg/app/xclipboard/>." 12556 12557 _ACEOF 12558 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"` 12559 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12560 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12561 ac_cs_config='$ac_cs_config_escaped' 12562 ac_cs_version="\\ 12563 xclipboard config.status 1.1.6 12564 configured by $0, generated by GNU Autoconf 2.73, 12565 with options \\"\$ac_cs_config\\" 12566 12567 Copyright (C) 2026 Free Software Foundation, Inc. 12568 This config.status script is free software; the Free Software Foundation 12569 gives unlimited permission to copy, distribute and modify it." 12570 12571 ac_pwd='$ac_pwd' 12572 srcdir='$srcdir' 12573 INSTALL='$INSTALL' 12574 MKDIR_P='$MKDIR_P' 12575 AWK='$AWK' 12576 test -n "\$AWK" || { 12577 awk '' </dev/null || 12578 as_fn_error \$? "try installing gawk" 12579 AWK=awk 12580 } 12581 _ACEOF 12582 12583 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12584 # The default lists apply if the user does not specify any file. 12585 ac_need_defaults=: 12586 while test $# != 0 12587 do 12588 case $1 in 12589 --*=?*) 12590 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12592 ac_shift=: 12593 ;; 12594 --*=) 12595 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12596 ac_optarg= 12597 ac_shift=: 12598 ;; 12599 *) 12600 ac_option=$1 12601 ac_optarg=$2 12602 ac_shift=shift 12603 ;; 12604 esac 12605 12606 case $ac_option in 12607 # Handling of the options. 12608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12609 ac_cs_recheck=: ;; 12610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12611 printf '%s\n' "$ac_cs_version"; exit ;; 12612 --config | --confi | --conf | --con | --co | --c ) 12613 printf '%s\n' "$ac_cs_config"; exit ;; 12614 --debug | --debu | --deb | --de | --d | -d ) 12615 debug=: ;; 12616 --file | --fil | --fi | --f ) 12617 $ac_shift 12618 case $ac_optarg in 12619 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12620 '') as_fn_error $? "missing file argument" ;; 12621 esac 12622 as_fn_append CONFIG_FILES " '$ac_optarg'" 12623 ac_need_defaults=false;; 12624 --header | --heade | --head | --hea ) 12625 $ac_shift 12626 case $ac_optarg in 12627 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12628 esac 12629 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12630 ac_need_defaults=false;; 12631 --he | --h) 12632 # Conflict between --help and --header 12633 as_fn_error $? "ambiguous option: '$1' 12634 Try '$0 --help' for more information.";; 12635 --help | --hel | -h ) 12636 printf '%s\n' "$ac_cs_usage"; exit ;; 12637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12638 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12639 ac_cs_silent=: ;; 12640 12641 # This is an error. 12642 -*) as_fn_error $? "unrecognized option: '$1' 12643 Try '$0 --help' for more information." ;; 12644 12645 *) as_fn_append ac_config_targets " $1" 12646 ac_need_defaults=false ;; 12647 12648 esac 12649 shift 12650 done 12651 12652 ac_configure_extra_args= 12653 12654 if $ac_cs_silent; then 12655 exec 6>/dev/null 12656 ac_configure_extra_args="$ac_configure_extra_args --silent" 12657 fi 12658 12659 _ACEOF 12660 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12661 if \$ac_cs_recheck; then 12662 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12663 shift 12664 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6 12665 CONFIG_SHELL='$SHELL' 12666 export CONFIG_SHELL 12667 exec "\$@" 12668 fi 12669 12670 _ACEOF 12671 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12672 exec 5>>config.log 12673 { 12674 echo 12675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12676 ## Running $as_me. ## 12677 _ASBOX 12678 printf '%s\n' "$ac_log" 12679 } >&5 12680 12681 _ACEOF 12682 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12683 # 12684 # INIT-COMMANDS 12685 # 12686 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12687 12688 _ACEOF 12689 12690 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12691 12692 # Handling of arguments. 12693 for ac_config_target in $ac_config_targets 12694 do 12695 case $ac_config_target in 12696 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12697 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12699 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12700 12701 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12702 esac 12703 done 12704 12705 12706 # If the user did not use the arguments to specify the items to instantiate, 12707 # then the envvar interface is used. Set only those that are not. 12708 # We use the long form for the default assignment because of an extremely 12709 # bizarre bug on SunOS 4.1.3. 12710 if $ac_need_defaults; then 12711 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12712 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12713 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12714 fi 12715 12716 # Have a temporary directory for convenience. Make it in the build tree 12717 # simply because there is no reason against having it here, and in addition, 12718 # creating and moving files from /tmp can sometimes cause problems. 12719 # Hook for its removal unless debugging. 12720 # Note that there is a small window in which the directory will not be cleaned: 12721 # after its creation but before its name has been assigned to '$tmp'. 12722 $debug || 12723 { 12724 tmp= ac_tmp= 12725 trap 'exit_status=$? 12726 : "${ac_tmp:=$tmp}" 12727 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12728 ' 0 12729 trap 'as_fn_exit 1' 1 2 13 15 12730 } 12731 # Create a (secure) tmp directory for tmp files. 12732 12733 { 12734 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12735 test -d "$tmp" 12736 } || 12737 { 12738 tmp=./conf$$-$RANDOM 12739 (umask 077 && mkdir "$tmp") 12740 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12741 ac_tmp=$tmp 12742 12743 # Set up the scripts for CONFIG_FILES section. 12744 # No need to generate them if there are no CONFIG_FILES. 12745 # This happens for instance with './config.status config.h'. 12746 if test -n "$CONFIG_FILES"; then 12747 12748 12749 ac_cr=`echo X | tr X '\015'` 12750 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12751 # But we know of no other shell where ac_cr would be empty at this 12752 # point, so we can use a bashism as a fallback. 12753 if test "x$ac_cr" = x; then 12754 eval ac_cr=\$\'\\r\' 12755 fi 12756 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12757 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12758 ac_cs_awk_cr='\\r' 12759 else 12760 ac_cs_awk_cr=$ac_cr 12761 fi 12762 12763 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12764 _ACEOF 12765 12766 12767 { 12768 echo "cat >conf$$subs.awk <<_ACEOF" && 12769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12770 echo "_ACEOF" 12771 } >conf$$subs.sh || 12772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12773 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='` 12774 ac_delim='%!_!# ' 12775 for ac_last_try in false false false false false :; do 12776 . ./conf$$subs.sh || 12777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12778 12779 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='` 12780 if test $ac_delim_n = $ac_delim_num; then 12781 break 12782 elif $ac_last_try; then 12783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12784 else 12785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12786 fi 12787 done 12788 rm -f conf$$subs.sh 12789 12790 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12791 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12792 _ACEOF 12793 sed -n ' 12794 h 12795 s/^/S["/; s/!.*/"]=/ 12796 p 12797 g 12798 s/^[^!]*!// 12799 :repl 12800 t repl 12801 s/'"$ac_delim"'$// 12802 t delim 12803 :nl 12804 h 12805 s/\(.\{148\}\)..*/\1/ 12806 t more1 12807 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12808 p 12809 n 12810 b repl 12811 :more1 12812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12813 p 12814 g 12815 s/.\{148\}// 12816 t nl 12817 :delim 12818 h 12819 s/\(.\{148\}\)..*/\1/ 12820 t more2 12821 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12822 p 12823 b 12824 :more2 12825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12826 p 12827 g 12828 s/.\{148\}// 12829 t delim 12830 ' <conf$$subs.awk | sed ' 12831 /^[^""]/{ 12832 N 12833 s/\n// 12834 } 12835 ' >>"$CONFIG_STATUS" || ac_write_fail=1 12836 rm -f conf$$subs.awk 12837 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12838 _ACAWK 12839 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12840 for (key in S) S_is_set[key] = 1 12841 FS = "" 12842 12843 } 12844 { 12845 line = $ 0 12846 nfields = split(line, field, "@") 12847 substed = 0 12848 len = length(field[1]) 12849 for (i = 2; i < nfields; i++) { 12850 key = field[i] 12851 keylen = length(key) 12852 if (S_is_set[key]) { 12853 value = S[key] 12854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12855 len += length(value) + length(field[++i]) 12856 substed = 1 12857 } else 12858 len += 1 + keylen 12859 } 12860 12861 print line 12862 } 12863 12864 _ACAWK 12865 _ACEOF 12866 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12867 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12868 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12869 else 12870 cat 12871 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12872 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12873 _ACEOF 12874 12875 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12876 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12877 # trailing colons and then remove the whole line if VPATH becomes empty 12878 # (actually we leave an empty line to preserve line numbers). 12879 if test "x$srcdir" = x.; then 12880 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12881 h 12882 s/// 12883 s/^/:/ 12884 s/[ ]*$/:/ 12885 s/:\$(srcdir):/:/g 12886 s/:\${srcdir}:/:/g 12887 s/:@srcdir@:/:/g 12888 s/^:*// 12889 s/:*$// 12890 x 12891 s/\(=[ ]*\).*/\1/ 12892 G 12893 s/\n// 12894 s/^[^=]*=[ ]*$// 12895 }' 12896 fi 12897 12898 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 12899 fi # test -n "$CONFIG_FILES" 12900 12901 # Set up the scripts for CONFIG_HEADERS section. 12902 # No need to generate them if there are no CONFIG_HEADERS. 12903 # This happens for instance with './config.status Makefile'. 12904 if test -n "$CONFIG_HEADERS"; then 12905 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12906 BEGIN { 12907 _ACEOF 12908 12909 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12910 # here-document in config.status, that substitutes the proper values into 12911 # config.h.in to produce config.h. 12912 12913 # Create a delimiter string that does not exist in confdefs.h, to ease 12914 # handling of long lines. 12915 ac_delim='%!_!# ' 12916 for ac_last_try in false false :; do 12917 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12918 if test -z "$ac_tt"; then 12919 break 12920 elif $ac_last_try; then 12921 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12922 else 12923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12924 fi 12925 done 12926 12927 # For the awk script, D is an array of macro values keyed by name, 12928 # likewise P contains macro parameters if any. Preserve backslash 12929 # newline sequences. 12930 12931 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12932 sed -n ' 12933 s/.\{148\}/&'"$ac_delim"'/g 12934 t rset 12935 :rset 12936 s/^[ ]*#[ ]*define[ ][ ]*/ / 12937 t def 12938 d 12939 :def 12940 s/\\$// 12941 t bsnl 12942 s/["\\]/\\&/g 12943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12944 D["\1"]=" \3"/p 12945 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12946 d 12947 :bsnl 12948 s/["\\]/\\&/g 12949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12950 D["\1"]=" \3\\\\\\n"\\/p 12951 t cont 12952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12953 t cont 12954 d 12955 :cont 12956 n 12957 s/.\{148\}/&'"$ac_delim"'/g 12958 t clear 12959 :clear 12960 s/\\$// 12961 t bsnlc 12962 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12963 d 12964 :bsnlc 12965 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12966 b cont 12967 ' <confdefs.h | sed ' 12968 s/'"$ac_delim"'/"\\\ 12969 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1 12970 12971 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 12972 for (key in D) D_is_set[key] = 1 12973 FS = "" 12974 } 12975 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12976 line = \$ 0 12977 split(line, arg, " ") 12978 if (arg[1] == "#") { 12979 defundef = arg[2] 12980 mac1 = arg[3] 12981 } else { 12982 defundef = substr(arg[1], 2) 12983 mac1 = arg[2] 12984 } 12985 split(mac1, mac2, "(") #) 12986 macro = mac2[1] 12987 prefix = substr(line, 1, index(line, defundef) - 1) 12988 if (D_is_set[macro]) { 12989 suffix = P[macro] D[macro] 12990 while (suffix ~ /[\t ]$/) { 12991 suffix = substr(suffix, 1, length(suffix) - 1) 12992 } 12993 # Preserve the white space surrounding the "#". 12994 print prefix "define", macro suffix 12995 next 12996 } else { 12997 # Replace #undef with comments. This is necessary, for example, 12998 # in the case of _POSIX_SOURCE, which is predefined and required 12999 # on some systems where configure will not decide to define it. 13000 if (defundef == "undef") { 13001 print "/*", prefix defundef, macro, "*/" 13002 next 13003 } 13004 } 13005 } 13006 { print } 13007 _ACAWK 13008 _ACEOF 13009 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13010 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13011 fi # test -n "$CONFIG_HEADERS" 13012 13013 13014 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13015 shift 13016 for ac_tag 13017 do 13018 case $ac_tag in 13019 :[FHLC]) ac_mode=$ac_tag; continue;; 13020 esac 13021 case $ac_mode$ac_tag in 13022 :[FHL]*:*);; 13023 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13024 :[FH]-) ac_tag=-:-;; 13025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13026 esac 13027 ac_save_IFS=$IFS 13028 IFS=: 13029 set x $ac_tag 13030 IFS=$ac_save_IFS 13031 shift 13032 ac_file=$1 13033 shift 13034 13035 case $ac_mode in 13036 :L) ac_source=$1;; 13037 :[FH]) 13038 ac_file_inputs= 13039 for ac_f 13040 do 13041 case $ac_f in 13042 -) ac_f="$ac_tmp/stdin";; 13043 *) # Look for the file first in the build tree, then in the source tree 13044 # (if the path is not absolute). The absolute path cannot be DOS-style, 13045 # because $ac_f cannot contain ':'. 13046 test -f "$ac_f" || 13047 case $ac_f in 13048 [\\/$]*) false;; 13049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13050 esac || 13051 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13052 esac 13053 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13054 as_fn_append ac_file_inputs " '$ac_f'" 13055 done 13056 13057 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13058 # use $as_me), people would be surprised to read: 13059 # /* config.h. Generated by config.status. */ 13060 configure_input='Generated from '` 13061 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13062 `' by configure.' 13063 if test x"$ac_file" != x-; then 13064 configure_input="$ac_file. $configure_input" 13065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13066 printf '%s\n' "$as_me: creating $ac_file" >&6;} 13067 fi 13068 # Neutralize special characters interpreted by sed in replacement strings. 13069 case $configure_input in #( 13070 *\&* | *\|* | *\\* ) 13071 ac_sed_conf_input=`printf '%s\n' "$configure_input" | 13072 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13073 *) ac_sed_conf_input=$configure_input;; 13074 esac 13075 13076 case $ac_tag in 13077 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13079 esac 13080 ;; 13081 esac 13082 13083 ac_dir=`$as_dirname -- "$ac_file" || 13084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13085 X"$ac_file" : 'X\(//\)[^/]' \| \ 13086 X"$ac_file" : 'X\(//\)$' \| \ 13087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13088 printf '%s\n' X"$ac_file" | 13089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13090 s//\1/ 13091 q 13092 } 13093 /^X\(\/\/\)[^/].*/{ 13094 s//\1/ 13095 q 13096 } 13097 /^X\(\/\/\)$/{ 13098 s//\1/ 13099 q 13100 } 13101 /^X\(\/\).*/{ 13102 s//\1/ 13103 q 13104 } 13105 s/.*/./; q'` 13106 as_dir="$ac_dir"; as_fn_mkdir_p 13107 ac_builddir=. 13108 13109 case "$ac_dir" in 13110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13111 *) 13112 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 13113 # A ".." for each directory in $ac_dir_suffix. 13114 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13115 case $ac_top_builddir_sub in 13116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13118 esac ;; 13119 esac 13120 ac_abs_top_builddir=$ac_pwd 13121 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13122 # for backward compatibility: 13123 ac_top_builddir=$ac_top_build_prefix 13124 13125 case $srcdir in 13126 .) # We are building in place. 13127 ac_srcdir=. 13128 ac_top_srcdir=$ac_top_builddir_sub 13129 ac_abs_top_srcdir=$ac_pwd ;; 13130 [\\/]* | ?:[\\/]* ) # Absolute name. 13131 ac_srcdir=$srcdir$ac_dir_suffix; 13132 ac_top_srcdir=$srcdir 13133 ac_abs_top_srcdir=$srcdir ;; 13134 *) # Relative name. 13135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13136 ac_top_srcdir=$ac_top_build_prefix$srcdir 13137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13138 esac 13139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13140 13141 13142 case $ac_mode in 13143 :F) 13144 # 13145 # CONFIG_FILE 13146 # 13147 13148 case $INSTALL in 13149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13150 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13151 esac 13152 ac_MKDIR_P=$MKDIR_P 13153 case $MKDIR_P in 13154 [\\/$]* | ?:[\\/]* ) ;; 13155 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13156 esac 13157 _ACEOF 13158 13159 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13160 # If the template does not know about datarootdir, expand it. 13161 # FIXME: This hack should be removed a few years after 2.60. 13162 ac_datarootdir_hack=; ac_datarootdir_seen= 13163 ac_sed_dataroot=' 13164 /datarootdir/ { 13165 p 13166 q 13167 } 13168 /@datadir@/p 13169 /@docdir@/p 13170 /@infodir@/p 13171 /@localedir@/p 13172 /@mandir@/p' 13173 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13174 *datarootdir*) ac_datarootdir_seen=yes;; 13175 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13177 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13178 _ACEOF 13179 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13180 ac_datarootdir_hack=' 13181 s&@datadir@&$datadir&g 13182 s&@docdir@&$docdir&g 13183 s&@infodir@&$infodir&g 13184 s&@localedir@&$localedir&g 13185 s&@mandir@&$mandir&g 13186 s&\\\${datarootdir}&$datarootdir&g' ;; 13187 esac 13188 _ACEOF 13189 13190 # Neutralize VPATH when '$srcdir' = '.'. 13191 # Shell code in configure.ac might set extrasub. 13192 # FIXME: do we really want to maintain this feature? 13193 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 13194 ac_sed_extra="$ac_vpsub 13195 $extrasub 13196 _ACEOF 13197 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 13198 :t 13199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13200 s|@configure_input@|$ac_sed_conf_input|;t t 13201 s&@top_builddir@&$ac_top_builddir_sub&;t t 13202 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13203 s&@srcdir@&$ac_srcdir&;t t 13204 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13205 s&@top_srcdir@&$ac_top_srcdir&;t t 13206 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13207 s&@builddir@&$ac_builddir&;t t 13208 s&@abs_builddir@&$ac_abs_builddir&;t t 13209 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13210 s&@INSTALL@&$ac_INSTALL&;t t 13211 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13212 $ac_datarootdir_hack 13213 " 13214 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13215 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13216 13217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13218 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13220 "$ac_tmp/out"`; test -z "$ac_out"; } && 13221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13222 which seems to be undefined. Please make sure it is defined" >&5 13223 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13224 which seems to be undefined. Please make sure it is defined" >&2;} 13225 13226 rm -f "$ac_tmp/stdin" 13227 case $ac_file in 13228 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13229 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13230 esac \ 13231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13232 ;; 13233 :H) 13234 # 13235 # CONFIG_HEADER 13236 # 13237 if test x"$ac_file" != x-; then 13238 { 13239 printf '%s\n' "/* $configure_input */" >&1 \ 13240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13241 } >"$ac_tmp/config.h" \ 13242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13243 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13245 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;} 13246 else 13247 rm -f "$ac_file" 13248 mv "$ac_tmp/config.h" "$ac_file" \ 13249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13250 fi 13251 else 13252 printf '%s\n' "/* $configure_input */" >&1 \ 13253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13254 || as_fn_error $? "could not create -" "$LINENO" 5 13255 fi 13256 # Compute "$ac_file"'s index in $config_headers. 13257 _am_arg="$ac_file" 13258 _am_stamp_count=1 13259 for _am_header in $config_headers :; do 13260 case $_am_header in 13261 $_am_arg | $_am_arg:* ) 13262 break ;; 13263 * ) 13264 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13265 esac 13266 done 13267 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13268 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13269 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13270 X"$_am_arg" : 'X\(//\)$' \| \ 13271 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13272 printf '%s\n' X"$_am_arg" | 13273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13274 s//\1/ 13275 q 13276 } 13277 /^X\(\/\/\)[^/].*/{ 13278 s//\1/ 13279 q 13280 } 13281 /^X\(\/\/\)$/{ 13282 s//\1/ 13283 q 13284 } 13285 /^X\(\/\).*/{ 13286 s//\1/ 13287 q 13288 } 13289 s/.*/./; q'`/stamp-h$_am_stamp_count 13290 ;; 13291 13292 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13293 printf '%s\n' "$as_me: executing $ac_file commands" >&6;} 13294 ;; 13295 esac 13296 13297 13298 case $ac_file$ac_mode in 13299 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13300 # Older Autoconf quotes --file arguments for eval, but not when files 13301 # are listed without --file. Let's play safe and only enable the eval 13302 # if we detect the quoting. 13303 # TODO: see whether this extra hack can be removed once we start 13304 # requiring Autoconf 2.70 or later. 13305 case $CONFIG_FILES in #( 13306 *\'*) : 13307 eval set x "$CONFIG_FILES" ;; #( 13308 *) : 13309 set x $CONFIG_FILES ;; #( 13310 *) : 13311 ;; 13312 esac 13313 shift 13314 # Used to flag and report bootstrapping failures. 13315 am_rc=0 13316 for am_mf 13317 do 13318 # Strip MF so we end up with the name of the file. 13319 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'` 13320 # Check whether this is an Automake generated Makefile which includes 13321 # dependency-tracking related rules and includes. 13322 # Grep'ing the whole file directly is not great: AIX grep has a line 13323 # limit of 2048, but all sed's we know have understand at least 4000. 13324 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13325 || continue 13326 am_dirpart=`$as_dirname -- "$am_mf" || 13327 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13328 X"$am_mf" : 'X\(//\)[^/]' \| \ 13329 X"$am_mf" : 'X\(//\)$' \| \ 13330 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13331 printf '%s\n' X"$am_mf" | 13332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13333 s//\1/ 13334 q 13335 } 13336 /^X\(\/\/\)[^/].*/{ 13337 s//\1/ 13338 q 13339 } 13340 /^X\(\/\/\)$/{ 13341 s//\1/ 13342 q 13343 } 13344 /^X\(\/\).*/{ 13345 s//\1/ 13346 q 13347 } 13348 s/.*/./; q'` 13349 am_filepart=`$as_basename -- "$am_mf" || 13350 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13351 X"$am_mf" : 'X\(//\)$' \| \ 13352 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13353 printf '%s\n' X/"$am_mf" | 13354 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\/\(\/\/\)$/{ 13359 s//\1/ 13360 q 13361 } 13362 /^X\/\(\/\).*/{ 13363 s//\1/ 13364 q 13365 } 13366 s/.*/./; q'` 13367 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13368 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13369 | $MAKE -f - am--depfiles" >&5 13370 (cd "$am_dirpart" \ 13371 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13372 | $MAKE -f - am--depfiles) >&5 2>&5 13373 ac_status=$? 13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); } || am_rc=$? 13376 done 13377 if test $am_rc -ne 0; then 13378 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13379 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 13380 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13381 for automatic dependency tracking. If GNU make was not used, consider 13382 re-running the configure script with MAKE=\"gmake\" (or whatever is 13383 necessary). You can also try re-running configure with the 13384 '--disable-dependency-tracking' option to at least be able to build 13385 the package (albeit without support for automatic dependency tracking). 13386 See 'config.log' for more details" "$LINENO" 5; } 13387 fi 13388 { am_dirpart=; unset am_dirpart;} 13389 { am_filepart=; unset am_filepart;} 13390 { am_mf=; unset am_mf;} 13391 { am_rc=; unset am_rc;} 13392 rm -f conftest-deps.mk 13393 } 13394 ;; 13395 13396 esac 13397 done # for ac_tag 13398 13399 13400 as_fn_exit 0 13401 _ACEOF 13402 ac_clean_CONFIG_STATUS= 13403 13404 test $ac_write_fail = 0 || 13405 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13406 13407 13408 # configure is writing to config.log, and then calls config.status. 13409 # config.status does its own redirection, appending to config.log. 13410 # Unfortunately, on DOS this fails, as config.log is still kept open 13411 # by configure, so config.status won't be able to write to it; its 13412 # output is simply discarded. So we exec the FD to /dev/null, 13413 # effectively closing config.log, so it can be properly (re)opened and 13414 # appended to by config.status. When coming back to configure, we 13415 # need to make the FD available again. 13416 if test "$no_create" != yes; then 13417 ac_cs_success=: 13418 case $CONFIG_STATUS in #( 13419 -*) : 13420 ac_no_opts=-- ;; #( 13421 *) : 13422 ac_no_opts= ;; 13423 esac 13424 ac_config_status_args= 13425 test "$silent" = yes && 13426 ac_config_status_args="$ac_config_status_args --quiet" 13427 exec 5>/dev/null 13428 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args || 13429 ac_cs_success=false 13430 exec 5>>config.log 13431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13432 # would make configure fail if this is the last instruction. 13433 $ac_cs_success || as_fn_exit 1 13434 fi 13435 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13437 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13438 fi 13439 13440 13441