1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xset 1.2.5. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/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 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188 then : 189 as_have_required=yes 190 else $as_nop 191 as_have_required=no 192 fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 then : 195 196 else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198 as_found=false 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200 do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215 then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218 then : 219 break 2 220 fi 221 fi 222 done;; 223 esac 224 as_found=false 225 done 226 IFS=$as_save_IFS 227 if $as_found 228 then : 229 230 else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233 then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235 fi 236 fi 237 238 239 if test "x$CONFIG_SHELL" != x 240 then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno 263 then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 271 $0: https://gitlab.freedesktop.org/xorg/app/xset/-/issues 272 $0: about your system, including any error possibly output 273 $0: before this message. Then install a modern shell, or 274 $0: manually run the script under such a shell if you do 275 $0: have one." 276 fi 277 exit 1 278 fi 279 fi 280 fi 281 SHELL=${CONFIG_SHELL-/bin/sh} 282 export SHELL 283 # Unset more variables known to interfere with behavior of common tools. 284 CLICOLOR_FORCE= GREP_OPTIONS= 285 unset CLICOLOR_FORCE GREP_OPTIONS 286 287 ## --------------------- ## 288 ## M4sh Shell Functions. ## 289 ## --------------------- ## 290 # as_fn_unset VAR 291 # --------------- 292 # Portably unset VAR. 293 as_fn_unset () 294 { 295 { eval $1=; unset $1;} 296 } 297 as_unset=as_fn_unset 298 299 300 # as_fn_set_status STATUS 301 # ----------------------- 302 # Set $? to STATUS, without forking. 303 as_fn_set_status () 304 { 305 return $1 306 } # as_fn_set_status 307 308 # as_fn_exit STATUS 309 # ----------------- 310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311 as_fn_exit () 312 { 313 set +e 314 as_fn_set_status $1 315 exit $1 316 } # as_fn_exit 317 # as_fn_nop 318 # --------- 319 # Do nothing but, unlike ":", preserve the value of $?. 320 as_fn_nop () 321 { 322 return $? 323 } 324 as_nop=as_fn_nop 325 326 # as_fn_mkdir_p 327 # ------------- 328 # Create "$as_dir" as a directory, including parents if necessary. 329 as_fn_mkdir_p () 330 { 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348 printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372 } # as_fn_mkdir_p 373 374 # as_fn_executable_p FILE 375 # ----------------------- 376 # Test if FILE is an executable regular file. 377 as_fn_executable_p () 378 { 379 test -f "$1" && test -x "$1" 380 } # as_fn_executable_p 381 # as_fn_append VAR VALUE 382 # ---------------------- 383 # Append the text in VALUE to the end of the definition contained in VAR. Take 384 # advantage of any shell optimizations that allow amortized linear growth over 385 # repeated appends, instead of the typical quadratic growth present in naive 386 # implementations. 387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393 else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398 fi # as_fn_append 399 400 # as_fn_arith ARG... 401 # ------------------ 402 # Perform arithmetic evaluation on the ARGs, and store the result in the 403 # global $as_val. Take advantage of shells that can avoid forks. The arguments 404 # must be portable across $(()) and expr. 405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411 else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416 fi # as_fn_arith 417 418 # as_fn_nop 419 # --------- 420 # Do nothing but, unlike ":", preserve the value of $?. 421 as_fn_nop () 422 { 423 return $? 424 } 425 as_nop=as_fn_nop 426 427 # as_fn_error STATUS ERROR [LINENO LOG_FD] 428 # ---------------------------------------- 429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431 # script with STATUS, using 1 if that was 0. 432 as_fn_error () 433 { 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441 } # as_fn_error 442 443 if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446 else 447 as_expr=false 448 fi 449 450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452 else 453 as_basename=false 454 fi 455 456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458 else 459 as_dirname=false 460 fi 461 462 as_me=`$as_basename -- "$0" || 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466 printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481 # Avoid depending upon Character Ranges. 482 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485 as_cr_digits='0123456789' 486 as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 548 rm -f conf$$ conf$$.exe conf$$.file 549 if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551 else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554 fi 555 if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569 else 570 as_ln_s='cp -pR' 571 fi 572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573 rmdir conf$$.dir 2>/dev/null 574 575 if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577 else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580 fi 581 582 as_test_x='test -x' 583 as_executable_p=as_fn_executable_p 584 585 # Sed expression to map a string onto a valid CPP name. 586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588 # Sed expression to map a string onto a valid variable name. 589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592 test -n "$DJDIR" || exec 7<&0 </dev/null 593 exec 6>&1 594 595 # Name of the host. 596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597 # so uname gets run too. 598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600 # 601 # Initializations. 602 # 603 ac_default_prefix=/usr/local 604 ac_clean_files= 605 ac_config_libobj_dir=. 606 LIBOBJS= 607 cross_compiling=no 608 subdirs= 609 MFLAGS= 610 MAKEFLAGS= 611 612 # Identity of this package. 613 PACKAGE_NAME='xset' 614 PACKAGE_TARNAME='xset' 615 PACKAGE_VERSION='1.2.5' 616 PACKAGE_STRING='xset 1.2.5' 617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xset/-/issues' 618 PACKAGE_URL='' 619 620 ac_unique_file="Makefile.am" 621 # Factoring default headers for most tests. 622 ac_includes_default="\ 623 #include <stddef.h> 624 #ifdef HAVE_STDIO_H 625 # include <stdio.h> 626 #endif 627 #ifdef HAVE_STDLIB_H 628 # include <stdlib.h> 629 #endif 630 #ifdef HAVE_STRING_H 631 # include <string.h> 632 #endif 633 #ifdef HAVE_INTTYPES_H 634 # include <inttypes.h> 635 #endif 636 #ifdef HAVE_STDINT_H 637 # include <stdint.h> 638 #endif 639 #ifdef HAVE_STRINGS_H 640 # include <strings.h> 641 #endif 642 #ifdef HAVE_SYS_TYPES_H 643 # include <sys/types.h> 644 #endif 645 #ifdef HAVE_SYS_STAT_H 646 # include <sys/stat.h> 647 #endif 648 #ifdef HAVE_UNISTD_H 649 # include <unistd.h> 650 #endif" 651 652 ac_header_c_list= 653 ac_subst_vars='am__EXEEXT_FALSE 654 am__EXEEXT_TRUE 655 LTLIBOBJS 656 LIBOBJS 657 SET_FONTCACHE_LIBS 658 SET_FONTCACHE_CFLAGS 659 SET_XF86MISC_LIBS 660 SET_XF86MISC_CFLAGS 661 SET_XKB_LIBS 662 SET_XKB_CFLAGS 663 SET_XEXT_LIBS 664 SET_XEXT_CFLAGS 665 SET_X11_LIBS 666 SET_X11_CFLAGS 667 XSET_LIBS 668 XSET_CFLAGS 669 MAN_SUBSTS 670 XORG_MAN_PAGE 671 ADMIN_MAN_DIR 672 DRIVER_MAN_DIR 673 MISC_MAN_DIR 674 FILE_MAN_DIR 675 LIB_MAN_DIR 676 APP_MAN_DIR 677 ADMIN_MAN_SUFFIX 678 DRIVER_MAN_SUFFIX 679 MISC_MAN_SUFFIX 680 FILE_MAN_SUFFIX 681 LIB_MAN_SUFFIX 682 APP_MAN_SUFFIX 683 SED 684 host_os 685 host_vendor 686 host_cpu 687 host 688 build_os 689 build_vendor 690 build_cpu 691 build 692 INSTALL_CMD 693 PKG_CONFIG_LIBDIR 694 PKG_CONFIG_PATH 695 PKG_CONFIG 696 CHANGELOG_CMD 697 STRICT_CFLAGS 698 CWARNFLAGS 699 BASE_CFLAGS 700 AM_BACKSLASH 701 AM_DEFAULT_VERBOSITY 702 AM_DEFAULT_V 703 AM_V 704 CSCOPE 705 ETAGS 706 CTAGS 707 am__fastdepCC_FALSE 708 am__fastdepCC_TRUE 709 CCDEPMODE 710 am__nodep 711 AMDEPBACKSLASH 712 AMDEP_FALSE 713 AMDEP_TRUE 714 am__include 715 DEPDIR 716 am__untar 717 am__tar 718 AMTAR 719 am__leading_dot 720 SET_MAKE 721 AWK 722 mkdir_p 723 MKDIR_P 724 INSTALL_STRIP_PROGRAM 725 STRIP 726 install_sh 727 MAKEINFO 728 AUTOHEADER 729 AUTOMAKE 730 AUTOCONF 731 ACLOCAL 732 VERSION 733 PACKAGE 734 CYGPATH_W 735 am__isrc 736 INSTALL_DATA 737 INSTALL_SCRIPT 738 INSTALL_PROGRAM 739 OBJEXT 740 EXEEXT 741 ac_ct_CC 742 CPPFLAGS 743 LDFLAGS 744 CFLAGS 745 CC 746 target_alias 747 host_alias 748 build_alias 749 LIBS 750 ECHO_T 751 ECHO_N 752 ECHO_C 753 DEFS 754 mandir 755 localedir 756 libdir 757 psdir 758 pdfdir 759 dvidir 760 htmldir 761 infodir 762 docdir 763 oldincludedir 764 includedir 765 runstatedir 766 localstatedir 767 sharedstatedir 768 sysconfdir 769 datadir 770 datarootdir 771 libexecdir 772 sbindir 773 bindir 774 program_transform_name 775 prefix 776 exec_prefix 777 PACKAGE_URL 778 PACKAGE_BUGREPORT 779 PACKAGE_STRING 780 PACKAGE_VERSION 781 PACKAGE_TARNAME 782 PACKAGE_NAME 783 PATH_SEPARATOR 784 SHELL 785 am__quote' 786 ac_subst_files='' 787 ac_user_opts=' 788 enable_option_checking 789 enable_dependency_tracking 790 enable_silent_rules 791 enable_selective_werror 792 enable_strict_compilation 793 with_xf86misc 794 with_fontcache 795 ' 796 ac_precious_vars='build_alias 797 host_alias 798 target_alias 799 CC 800 CFLAGS 801 LDFLAGS 802 LIBS 803 CPPFLAGS 804 PKG_CONFIG 805 PKG_CONFIG_PATH 806 PKG_CONFIG_LIBDIR 807 XSET_CFLAGS 808 XSET_LIBS 809 SET_X11_CFLAGS 810 SET_X11_LIBS 811 SET_XEXT_CFLAGS 812 SET_XEXT_LIBS 813 SET_XKB_CFLAGS 814 SET_XKB_LIBS 815 SET_XF86MISC_CFLAGS 816 SET_XF86MISC_LIBS 817 SET_FONTCACHE_CFLAGS 818 SET_FONTCACHE_LIBS' 819 820 821 # Initialize some variables set by options. 822 ac_init_help= 823 ac_init_version=false 824 ac_unrecognized_opts= 825 ac_unrecognized_sep= 826 # The variables have the same names as the options, with 827 # dashes changed to underlines. 828 cache_file=/dev/null 829 exec_prefix=NONE 830 no_create= 831 no_recursion= 832 prefix=NONE 833 program_prefix=NONE 834 program_suffix=NONE 835 program_transform_name=s,x,x, 836 silent= 837 site= 838 srcdir= 839 verbose= 840 x_includes=NONE 841 x_libraries=NONE 842 843 # Installation directory options. 844 # These are left unexpanded so users can "make install exec_prefix=/foo" 845 # and all the variables that are supposed to be based on exec_prefix 846 # by default will actually change. 847 # Use braces instead of parens because sh, perl, etc. also accept them. 848 # (The list follows the same order as the GNU Coding Standards.) 849 bindir='${exec_prefix}/bin' 850 sbindir='${exec_prefix}/sbin' 851 libexecdir='${exec_prefix}/libexec' 852 datarootdir='${prefix}/share' 853 datadir='${datarootdir}' 854 sysconfdir='${prefix}/etc' 855 sharedstatedir='${prefix}/com' 856 localstatedir='${prefix}/var' 857 runstatedir='${localstatedir}/run' 858 includedir='${prefix}/include' 859 oldincludedir='/usr/include' 860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861 infodir='${datarootdir}/info' 862 htmldir='${docdir}' 863 dvidir='${docdir}' 864 pdfdir='${docdir}' 865 psdir='${docdir}' 866 libdir='${exec_prefix}/lib' 867 localedir='${datarootdir}/locale' 868 mandir='${datarootdir}/man' 869 870 ac_prev= 871 ac_dashdash= 872 for ac_option 873 do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *=) ac_optarg= ;; 884 *) ac_optarg=yes ;; 885 esac 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: \`$ac_useropt'" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932 "enable_$ac_useropt" 933 "*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: \`$ac_useropt'" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958 "enable_$ac_useropt" 959 "*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1109 | --runstate | --runstat | --runsta | --runst | --runs \ 1110 | --run | --ru | --r) 1111 ac_prev=runstatedir ;; 1112 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1113 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1114 | --run=* | --ru=* | --r=*) 1115 runstatedir=$ac_optarg ;; 1116 1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1118 ac_prev=sbindir ;; 1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1120 | --sbi=* | --sb=*) 1121 sbindir=$ac_optarg ;; 1122 1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1125 | --sharedst | --shareds | --shared | --share | --shar \ 1126 | --sha | --sh) 1127 ac_prev=sharedstatedir ;; 1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1131 | --sha=* | --sh=*) 1132 sharedstatedir=$ac_optarg ;; 1133 1134 -site | --site | --sit) 1135 ac_prev=site ;; 1136 -site=* | --site=* | --sit=*) 1137 site=$ac_optarg ;; 1138 1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1140 ac_prev=srcdir ;; 1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1142 srcdir=$ac_optarg ;; 1143 1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1145 | --syscon | --sysco | --sysc | --sys | --sy) 1146 ac_prev=sysconfdir ;; 1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1149 sysconfdir=$ac_optarg ;; 1150 1151 -target | --target | --targe | --targ | --tar | --ta | --t) 1152 ac_prev=target_alias ;; 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1154 target_alias=$ac_optarg ;; 1155 1156 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1157 verbose=yes ;; 1158 1159 -version | --version | --versio | --versi | --vers | -V) 1160 ac_init_version=: ;; 1161 1162 -with-* | --with-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: \`$ac_useropt'" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171 "with_$ac_useropt" 1172 "*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=\$ac_optarg ;; 1177 1178 -without-* | --without-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error $? "invalid package name: \`$ac_useropt'" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187 "with_$ac_useropt" 1188 "*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=no ;; 1193 1194 --x) 1195 # Obsolete; use --with-x. 1196 with_x=yes ;; 1197 1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1199 | --x-incl | --x-inc | --x-in | --x-i) 1200 ac_prev=x_includes ;; 1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1203 x_includes=$ac_optarg ;; 1204 1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1207 ac_prev=x_libraries ;; 1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1210 x_libraries=$ac_optarg ;; 1211 1212 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1213 Try \`$0 --help' for more information" 1214 ;; 1215 1216 *=*) 1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1218 # Reject names that are not valid shell variable names. 1219 case $ac_envvar in #( 1220 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1222 esac 1223 eval $ac_envvar=\$ac_optarg 1224 export $ac_envvar ;; 1225 1226 *) 1227 # FIXME: should be removed in autoconf 3.0. 1228 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1232 ;; 1233 1234 esac 1235 done 1236 1237 if test -n "$ac_prev"; then 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1239 as_fn_error $? "missing argument to $ac_option" 1240 fi 1241 1242 if test -n "$ac_unrecognized_opts"; then 1243 case $enable_option_checking in 1244 no) ;; 1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1246 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1247 esac 1248 fi 1249 1250 # Check all directory arguments for consistency. 1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1252 datadir sysconfdir sharedstatedir localstatedir includedir \ 1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1254 libdir localedir mandir runstatedir 1255 do 1256 eval ac_val=\$$ac_var 1257 # Remove trailing slashes. 1258 case $ac_val in 1259 */ ) 1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1261 eval $ac_var=\$ac_val;; 1262 esac 1263 # Be sure to have absolute directory names. 1264 case $ac_val in 1265 [\\/$]* | ?:[\\/]* ) continue;; 1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1267 esac 1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1269 done 1270 1271 # There might be people who depend on the old broken behavior: `$host' 1272 # used to hold the argument of --host etc. 1273 # FIXME: To remove some day. 1274 build=$build_alias 1275 host=$host_alias 1276 target=$target_alias 1277 1278 # FIXME: To remove some day. 1279 if test "x$host_alias" != x; then 1280 if test "x$build_alias" = x; then 1281 cross_compiling=maybe 1282 elif test "x$build_alias" != "x$host_alias"; then 1283 cross_compiling=yes 1284 fi 1285 fi 1286 1287 ac_tool_prefix= 1288 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1289 1290 test "$silent" = yes && exec 6>/dev/null 1291 1292 1293 ac_pwd=`pwd` && test -n "$ac_pwd" && 1294 ac_ls_di=`ls -di .` && 1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1296 as_fn_error $? "working directory cannot be determined" 1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1298 as_fn_error $? "pwd does not report name of working directory" 1299 1300 1301 # Find the source files, if location was not specified. 1302 if test -z "$srcdir"; then 1303 ac_srcdir_defaulted=yes 1304 # Try the directory containing this script, then the parent directory. 1305 ac_confdir=`$as_dirname -- "$as_myself" || 1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1307 X"$as_myself" : 'X\(//\)[^/]' \| \ 1308 X"$as_myself" : 'X\(//\)$' \| \ 1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1310 printf "%s\n" X"$as_myself" | 1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)[^/].*/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\).*/{ 1324 s//\1/ 1325 q 1326 } 1327 s/.*/./; q'` 1328 srcdir=$ac_confdir 1329 if test ! -r "$srcdir/$ac_unique_file"; then 1330 srcdir=.. 1331 fi 1332 else 1333 ac_srcdir_defaulted=no 1334 fi 1335 if test ! -r "$srcdir/$ac_unique_file"; then 1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1338 fi 1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1340 ac_abs_confdir=`( 1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1342 pwd)` 1343 # When building in place, set srcdir=. 1344 if test "$ac_abs_confdir" = "$ac_pwd"; then 1345 srcdir=. 1346 fi 1347 # Remove unnecessary trailing slashes from srcdir. 1348 # Double slashes in file names in object file debugging info 1349 # mess up M-x gdb in Emacs. 1350 case $srcdir in 1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1352 esac 1353 for ac_var in $ac_precious_vars; do 1354 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_env_${ac_var}_value=\$${ac_var} 1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1358 done 1359 1360 # 1361 # Report the --help message. 1362 # 1363 if test "$ac_init_help" = "long"; then 1364 # Omit some internal or obsolete options to make the list less imposing. 1365 # This message is too long to be a string in the A/UX 3.1 sh. 1366 cat <<_ACEOF 1367 \`configure' configures xset 1.2.5 to adapt to many kinds of systems. 1368 1369 Usage: $0 [OPTION]... [VAR=VALUE]... 1370 1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1372 VAR=VALUE. See below for descriptions of some of the useful variables. 1373 1374 Defaults for the options are specified in brackets. 1375 1376 Configuration: 1377 -h, --help display this help and exit 1378 --help=short display options specific to this package 1379 --help=recursive display the short help of all the included packages 1380 -V, --version display version information and exit 1381 -q, --quiet, --silent do not print \`checking ...' messages 1382 --cache-file=FILE cache test results in FILE [disabled] 1383 -C, --config-cache alias for \`--cache-file=config.cache' 1384 -n, --no-create do not create output files 1385 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1386 1387 Installation directories: 1388 --prefix=PREFIX install architecture-independent files in PREFIX 1389 [$ac_default_prefix] 1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1391 [PREFIX] 1392 1393 By default, \`make install' will install all the files in 1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1396 for instance \`--prefix=\$HOME'. 1397 1398 For better control, use the options below. 1399 1400 Fine tuning of the installation directories: 1401 --bindir=DIR user executables [EPREFIX/bin] 1402 --sbindir=DIR system admin executables [EPREFIX/sbin] 1403 --libexecdir=DIR program executables [EPREFIX/libexec] 1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1407 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1408 --libdir=DIR object code libraries [EPREFIX/lib] 1409 --includedir=DIR C header files [PREFIX/include] 1410 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1413 --infodir=DIR info documentation [DATAROOTDIR/info] 1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1415 --mandir=DIR man documentation [DATAROOTDIR/man] 1416 --docdir=DIR documentation root [DATAROOTDIR/doc/xset] 1417 --htmldir=DIR html documentation [DOCDIR] 1418 --dvidir=DIR dvi documentation [DOCDIR] 1419 --pdfdir=DIR pdf documentation [DOCDIR] 1420 --psdir=DIR ps documentation [DOCDIR] 1421 _ACEOF 1422 1423 cat <<\_ACEOF 1424 1425 Program names: 1426 --program-prefix=PREFIX prepend PREFIX to installed program names 1427 --program-suffix=SUFFIX append SUFFIX to installed program names 1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1429 1430 System types: 1431 --build=BUILD configure for building on BUILD [guessed] 1432 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1433 _ACEOF 1434 fi 1435 1436 if test -n "$ac_init_help"; then 1437 case $ac_init_help in 1438 short | recursive ) echo "Configuration of xset 1.2.5:";; 1439 esac 1440 cat <<\_ACEOF 1441 1442 Optional Features: 1443 --disable-option-checking ignore unrecognized --enable/--with options 1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1446 --enable-dependency-tracking 1447 do not reject slow dependency extractors 1448 --disable-dependency-tracking 1449 speeds up one-time build 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --disable-selective-werror 1453 Turn off selective compiler errors. (default: 1454 enabled) 1455 --enable-strict-compilation 1456 Enable all warnings from compiler and make them 1457 errors (default: disabled) 1458 1459 Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-xf86misc Enable xf86misc support. 1463 --without-fontcache Disable fontcache support. 1464 1465 Some influential environment variables: 1466 CC C compiler command 1467 CFLAGS C compiler flags 1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1469 nonstandard directory <lib dir> 1470 LIBS libraries to pass to the linker, e.g. -l<library> 1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1472 you have headers in a nonstandard directory <include dir> 1473 PKG_CONFIG path to pkg-config utility 1474 PKG_CONFIG_PATH 1475 directories to add to pkg-config's search path 1476 PKG_CONFIG_LIBDIR 1477 path overriding pkg-config's built-in search path 1478 XSET_CFLAGS C compiler flags for XSET, overriding pkg-config 1479 XSET_LIBS linker flags for XSET, overriding pkg-config 1480 SET_X11_CFLAGS 1481 C compiler flags for SET_X11, overriding pkg-config 1482 SET_X11_LIBS 1483 linker flags for SET_X11, overriding pkg-config 1484 SET_XEXT_CFLAGS 1485 C compiler flags for SET_XEXT, overriding pkg-config 1486 SET_XEXT_LIBS 1487 linker flags for SET_XEXT, overriding pkg-config 1488 SET_XKB_CFLAGS 1489 C compiler flags for SET_XKB, overriding pkg-config 1490 SET_XKB_LIBS 1491 linker flags for SET_XKB, overriding pkg-config 1492 SET_XF86MISC_CFLAGS 1493 C compiler flags for SET_XF86MISC, overriding pkg-config 1494 SET_XF86MISC_LIBS 1495 linker flags for SET_XF86MISC, overriding pkg-config 1496 SET_FONTCACHE_CFLAGS 1497 C compiler flags for SET_FONTCACHE, overriding pkg-config 1498 SET_FONTCACHE_LIBS 1499 linker flags for SET_FONTCACHE, overriding pkg-config 1500 1501 Use these variables to override the choices made by `configure' or to help 1502 it to find libraries and programs with nonstandard names/locations. 1503 1504 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>. 1505 _ACEOF 1506 ac_status=$? 1507 fi 1508 1509 if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517 case "$ac_dir" in 1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519 *) 1520 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527 esac 1528 ac_abs_top_builddir=$ac_pwd 1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530 # for backward compatibility: 1531 ac_top_builddir=$ac_top_build_prefix 1532 1533 case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546 esac 1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for configure.gnu first; this name is used for a wrapper for 1551 # Metaconfig's "Configure" on case-insensitive file systems. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563 fi 1564 1565 test -n "$ac_init_help" && exit $ac_status 1566 if $ac_init_version; then 1567 cat <<\_ACEOF 1568 xset configure 1.2.5 1569 generated by GNU Autoconf 2.71 1570 1571 Copyright (C) 2021 Free Software Foundation, Inc. 1572 This configure script is free software; the Free Software Foundation 1573 gives unlimited permission to copy, distribute and modify it. 1574 _ACEOF 1575 exit 1576 fi 1577 1578 ## ------------------------ ## 1579 ## Autoconf initialization. ## 1580 ## ------------------------ ## 1581 1582 # ac_fn_c_try_compile LINENO 1583 # -------------------------- 1584 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1585 ac_fn_c_try_compile () 1586 { 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext conftest.beam 1589 if { { ac_try="$ac_compile" 1590 case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593 esac 1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595 printf "%s\n" "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext 1608 then : 1609 ac_retval=0 1610 else $as_nop 1611 printf "%s\n" "$as_me: failed program was:" >&5 1612 sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615 fi 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619 } # ac_fn_c_try_compile 1620 1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1622 # ------------------------------------------------------- 1623 # Tests whether HEADER exists and can be compiled using the include files in 1624 # INCLUDES, setting the cache variable VAR accordingly. 1625 ac_fn_c_check_header_compile () 1626 { 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1629 printf %s "checking for $2... " >&6; } 1630 if eval test \${$3+y} 1631 then : 1632 printf %s "(cached) " >&6 1633 else $as_nop 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635 /* end confdefs.h. */ 1636 $4 1637 #include <$2> 1638 _ACEOF 1639 if ac_fn_c_try_compile "$LINENO" 1640 then : 1641 eval "$3=yes" 1642 else $as_nop 1643 eval "$3=no" 1644 fi 1645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1646 fi 1647 eval ac_res=\$$3 1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1649 printf "%s\n" "$ac_res" >&6; } 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 1652 } # ac_fn_c_check_header_compile 1653 1654 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1655 # ------------------------------------------------------------------ 1656 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1657 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1658 ac_fn_check_decl () 1659 { 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 as_decl_name=`echo $2|sed 's/ *(.*//'` 1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1663 printf %s "checking whether $as_decl_name is declared... " >&6; } 1664 if eval test \${$3+y} 1665 then : 1666 printf %s "(cached) " >&6 1667 else $as_nop 1668 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1669 eval ac_save_FLAGS=\$$6 1670 as_fn_append $6 " $5" 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672 /* end confdefs.h. */ 1673 $4 1674 int 1675 main (void) 1676 { 1677 #ifndef $as_decl_name 1678 #ifdef __cplusplus 1679 (void) $as_decl_use; 1680 #else 1681 (void) $as_decl_name; 1682 #endif 1683 #endif 1684 1685 ; 1686 return 0; 1687 } 1688 _ACEOF 1689 if ac_fn_c_try_compile "$LINENO" 1690 then : 1691 eval "$3=yes" 1692 else $as_nop 1693 eval "$3=no" 1694 fi 1695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1696 eval $6=\$ac_save_FLAGS 1697 1698 fi 1699 eval ac_res=\$$3 1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701 printf "%s\n" "$ac_res" >&6; } 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 1704 } # ac_fn_check_decl 1705 1706 # ac_fn_c_try_link LINENO 1707 # ----------------------- 1708 # Try to link conftest.$ac_ext, and return whether this succeeded. 1709 ac_fn_c_try_link () 1710 { 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1713 if { { ac_try="$ac_link" 1714 case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717 esac 1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719 printf "%s\n" "$ac_try_echo"; } >&5 1720 (eval "$ac_link") 2>conftest.err 1721 ac_status=$? 1722 if test -s conftest.err; then 1723 grep -v '^ *+' conftest.err >conftest.er1 1724 cat conftest.er1 >&5 1725 mv -f conftest.er1 conftest.err 1726 fi 1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; } && { 1729 test -z "$ac_c_werror_flag" || 1730 test ! -s conftest.err 1731 } && test -s conftest$ac_exeext && { 1732 test "$cross_compiling" = yes || 1733 test -x conftest$ac_exeext 1734 } 1735 then : 1736 ac_retval=0 1737 else $as_nop 1738 printf "%s\n" "$as_me: failed program was:" >&5 1739 sed 's/^/| /' conftest.$ac_ext >&5 1740 1741 ac_retval=1 1742 fi 1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1745 # interfere with the next link command; also delete a directory that is 1746 # left behind by Apple's compiler. We do this before executing the actions. 1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 as_fn_set_status $ac_retval 1750 1751 } # ac_fn_c_try_link 1752 1753 # ac_fn_c_check_func LINENO FUNC VAR 1754 # ---------------------------------- 1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1756 ac_fn_c_check_func () 1757 { 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760 printf %s "checking for $2... " >&6; } 1761 if eval test \${$3+y} 1762 then : 1763 printf %s "(cached) " >&6 1764 else $as_nop 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766 /* end confdefs.h. */ 1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1769 #define $2 innocuous_$2 1770 1771 /* System header to define __stub macros and hopefully few prototypes, 1772 which can conflict with char $2 (); below. */ 1773 1774 #include <limits.h> 1775 #undef $2 1776 1777 /* Override any GCC internal prototype to avoid an error. 1778 Use char because int might match the return type of a GCC 1779 builtin and then its argument prototype would still apply. */ 1780 #ifdef __cplusplus 1781 extern "C" 1782 #endif 1783 char $2 (); 1784 /* The GNU C library defines this for functions which it implements 1785 to always fail with ENOSYS. Some functions are actually named 1786 something starting with __ and the normal name is an alias. */ 1787 #if defined __stub_$2 || defined __stub___$2 1788 choke me 1789 #endif 1790 1791 int 1792 main (void) 1793 { 1794 return $2 (); 1795 ; 1796 return 0; 1797 } 1798 _ACEOF 1799 if ac_fn_c_try_link "$LINENO" 1800 then : 1801 eval "$3=yes" 1802 else $as_nop 1803 eval "$3=no" 1804 fi 1805 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1806 conftest$ac_exeext conftest.$ac_ext 1807 fi 1808 eval ac_res=\$$3 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810 printf "%s\n" "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813 } # ac_fn_c_check_func 1814 ac_configure_args_raw= 1815 for ac_arg 1816 do 1817 case $ac_arg in 1818 *\'*) 1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1820 esac 1821 as_fn_append ac_configure_args_raw " '$ac_arg'" 1822 done 1823 1824 case $ac_configure_args_raw in 1825 *$as_nl*) 1826 ac_safe_unquote= ;; 1827 *) 1828 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1829 ac_unsafe_a="$ac_unsafe_z#~" 1830 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1831 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1832 esac 1833 1834 cat >config.log <<_ACEOF 1835 This file contains any messages produced by compilers while 1836 running configure, to aid debugging if configure makes a mistake. 1837 1838 It was created by xset $as_me 1.2.5, which was 1839 generated by GNU Autoconf 2.71. Invocation command line was 1840 1841 $ $0$ac_configure_args_raw 1842 1843 _ACEOF 1844 exec 5>>config.log 1845 { 1846 cat <<_ASUNAME 1847 ## --------- ## 1848 ## Platform. ## 1849 ## --------- ## 1850 1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1852 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1853 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1854 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1855 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1856 1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1859 1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1867 1868 _ASUNAME 1869 1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1871 for as_dir in $PATH 1872 do 1873 IFS=$as_save_IFS 1874 case $as_dir in #((( 1875 '') as_dir=./ ;; 1876 */) ;; 1877 *) as_dir=$as_dir/ ;; 1878 esac 1879 printf "%s\n" "PATH: $as_dir" 1880 done 1881 IFS=$as_save_IFS 1882 1883 } >&5 1884 1885 cat >&5 <<_ACEOF 1886 1887 1888 ## ----------- ## 1889 ## Core tests. ## 1890 ## ----------- ## 1891 1892 _ACEOF 1893 1894 1895 # Keep a trace of the command line. 1896 # Strip out --no-create and --no-recursion so they do not pile up. 1897 # Strip out --silent because we don't want to record it for future runs. 1898 # Also quote any args containing shell meta-characters. 1899 # Make two passes to allow for proper duplicate-argument suppression. 1900 ac_configure_args= 1901 ac_configure_args0= 1902 ac_configure_args1= 1903 ac_must_keep_next=false 1904 for ac_pass in 1 2 1905 do 1906 for ac_arg 1907 do 1908 case $ac_arg in 1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1911 | -silent | --silent | --silen | --sile | --sil) 1912 continue ;; 1913 *\'*) 1914 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1915 esac 1916 case $ac_pass in 1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1918 2) 1919 as_fn_append ac_configure_args1 " '$ac_arg'" 1920 if test $ac_must_keep_next = true; then 1921 ac_must_keep_next=false # Got value, back to normal. 1922 else 1923 case $ac_arg in 1924 *=* | --config-cache | -C | -disable-* | --disable-* \ 1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1927 | -with-* | --with-* | -without-* | --without-* | --x) 1928 case "$ac_configure_args0 " in 1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1930 esac 1931 ;; 1932 -* ) ac_must_keep_next=true ;; 1933 esac 1934 fi 1935 as_fn_append ac_configure_args " '$ac_arg'" 1936 ;; 1937 esac 1938 done 1939 done 1940 { ac_configure_args0=; unset ac_configure_args0;} 1941 { ac_configure_args1=; unset ac_configure_args1;} 1942 1943 # When interrupted or exit'd, cleanup temporary files, and complete 1944 # config.log. We remove comments because anyway the quotes in there 1945 # would cause problems or look ugly. 1946 # WARNING: Use '\'' to represent an apostrophe within the trap. 1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1948 trap 'exit_status=$? 1949 # Sanitize IFS. 1950 IFS=" "" $as_nl" 1951 # Save into config.log some information that might help in debugging. 1952 { 1953 echo 1954 1955 printf "%s\n" "## ---------------- ## 1956 ## Cache variables. ## 1957 ## ---------------- ##" 1958 echo 1959 # The following way of writing the cache mishandles newlines in values, 1960 ( 1961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1962 eval ac_val=\$$ac_var 1963 case $ac_val in #( 1964 *${as_nl}*) 1965 case $ac_var in #( 1966 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1967 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1968 esac 1969 case $ac_var in #( 1970 _ | IFS | as_nl) ;; #( 1971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1972 *) { eval $ac_var=; unset $ac_var;} ;; 1973 esac ;; 1974 esac 1975 done 1976 (set) 2>&1 | 1977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1978 *${as_nl}ac_space=\ *) 1979 sed -n \ 1980 "s/'\''/'\''\\\\'\'''\''/g; 1981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1982 ;; #( 1983 *) 1984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1985 ;; 1986 esac | 1987 sort 1988 ) 1989 echo 1990 1991 printf "%s\n" "## ----------------- ## 1992 ## Output variables. ## 1993 ## ----------------- ##" 1994 echo 1995 for ac_var in $ac_subst_vars 1996 do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in 1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2000 esac 2001 printf "%s\n" "$ac_var='\''$ac_val'\''" 2002 done | sort 2003 echo 2004 2005 if test -n "$ac_subst_files"; then 2006 printf "%s\n" "## ------------------- ## 2007 ## File substitutions. ## 2008 ## ------------------- ##" 2009 echo 2010 for ac_var in $ac_subst_files 2011 do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in 2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2015 esac 2016 printf "%s\n" "$ac_var='\''$ac_val'\''" 2017 done | sort 2018 echo 2019 fi 2020 2021 if test -s confdefs.h; then 2022 printf "%s\n" "## ----------- ## 2023 ## confdefs.h. ## 2024 ## ----------- ##" 2025 echo 2026 cat confdefs.h 2027 echo 2028 fi 2029 test "$ac_signal" != 0 && 2030 printf "%s\n" "$as_me: caught signal $ac_signal" 2031 printf "%s\n" "$as_me: exit $exit_status" 2032 } >&5 2033 rm -f core *.core core.conftest.* && 2034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2035 exit $exit_status 2036 ' 0 2037 for ac_signal in 1 2 13 15; do 2038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2039 done 2040 ac_signal=0 2041 2042 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2043 rm -f -r conftest* confdefs.h 2044 2045 printf "%s\n" "/* confdefs.h */" > confdefs.h 2046 2047 # Predefined preprocessor variables. 2048 2049 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2050 2051 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2052 2053 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2054 2055 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2056 2057 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2058 2059 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2060 2061 2062 # Let the site file select an alternate cache file if it wants to. 2063 # Prefer an explicitly selected file to automatically selected ones. 2064 if test -n "$CONFIG_SITE"; then 2065 ac_site_files="$CONFIG_SITE" 2066 elif test "x$prefix" != xNONE; then 2067 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2068 else 2069 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2070 fi 2071 2072 for ac_site_file in $ac_site_files 2073 do 2074 case $ac_site_file in #( 2075 */*) : 2076 ;; #( 2077 *) : 2078 ac_site_file=./$ac_site_file ;; 2079 esac 2080 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2082 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2083 sed 's/^/| /' "$ac_site_file" >&5 2084 . "$ac_site_file" \ 2085 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2087 as_fn_error $? "failed to load site script $ac_site_file 2088 See \`config.log' for more details" "$LINENO" 5; } 2089 fi 2090 done 2091 2092 if test -r "$cache_file"; then 2093 # Some versions of bash will fail to source /dev/null (special files 2094 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2097 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2098 case $cache_file in 2099 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2100 *) . "./$cache_file";; 2101 esac 2102 fi 2103 else 2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2105 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2106 >$cache_file 2107 fi 2108 2109 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2110 # Test code for whether the C compiler supports C89 (global declarations) 2111 ac_c_conftest_c89_globals=' 2112 /* Does the compiler advertise C89 conformance? 2113 Do not test the value of __STDC__, because some compilers set it to 0 2114 while being otherwise adequately conformant. */ 2115 #if !defined __STDC__ 2116 # error "Compiler does not advertise C89 conformance" 2117 #endif 2118 2119 #include <stddef.h> 2120 #include <stdarg.h> 2121 struct stat; 2122 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2123 struct buf { int x; }; 2124 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2125 static char *e (p, i) 2126 char **p; 2127 int i; 2128 { 2129 return p[i]; 2130 } 2131 static char *f (char * (*g) (char **, int), char **p, ...) 2132 { 2133 char *s; 2134 va_list v; 2135 va_start (v,p); 2136 s = g (p, va_arg (v,int)); 2137 va_end (v); 2138 return s; 2139 } 2140 2141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2142 function prototypes and stuff, but not \xHH hex character constants. 2143 These do not provoke an error unfortunately, instead are silently treated 2144 as an "x". The following induces an error, until -std is added to get 2145 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2146 array size at least. It is necessary to write \x00 == 0 to get something 2147 that is true only with -std. */ 2148 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2149 2150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2151 inside strings and character constants. */ 2152 #define FOO(x) '\''x'\'' 2153 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2154 2155 int test (int i, double x); 2156 struct s1 {int (*f) (int a);}; 2157 struct s2 {int (*f) (double a);}; 2158 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2159 int, int);' 2160 2161 # Test code for whether the C compiler supports C89 (body of main). 2162 ac_c_conftest_c89_main=' 2163 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2164 ' 2165 2166 # Test code for whether the C compiler supports C99 (global declarations) 2167 ac_c_conftest_c99_globals=' 2168 // Does the compiler advertise C99 conformance? 2169 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2170 # error "Compiler does not advertise C99 conformance" 2171 #endif 2172 2173 #include <stdbool.h> 2174 extern int puts (const char *); 2175 extern int printf (const char *, ...); 2176 extern int dprintf (int, const char *, ...); 2177 extern void *malloc (size_t); 2178 2179 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2180 // dprintf is used instead of fprintf to avoid needing to declare 2181 // FILE and stderr. 2182 #define debug(...) dprintf (2, __VA_ARGS__) 2183 #define showlist(...) puts (#__VA_ARGS__) 2184 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2185 static void 2186 test_varargs_macros (void) 2187 { 2188 int x = 1234; 2189 int y = 5678; 2190 debug ("Flag"); 2191 debug ("X = %d\n", x); 2192 showlist (The first, second, and third items.); 2193 report (x>y, "x is %d but y is %d", x, y); 2194 } 2195 2196 // Check long long types. 2197 #define BIG64 18446744073709551615ull 2198 #define BIG32 4294967295ul 2199 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2200 #if !BIG_OK 2201 #error "your preprocessor is broken" 2202 #endif 2203 #if BIG_OK 2204 #else 2205 #error "your preprocessor is broken" 2206 #endif 2207 static long long int bignum = -9223372036854775807LL; 2208 static unsigned long long int ubignum = BIG64; 2209 2210 struct incomplete_array 2211 { 2212 int datasize; 2213 double data[]; 2214 }; 2215 2216 struct named_init { 2217 int number; 2218 const wchar_t *name; 2219 double average; 2220 }; 2221 2222 typedef const char *ccp; 2223 2224 static inline int 2225 test_restrict (ccp restrict text) 2226 { 2227 // See if C++-style comments work. 2228 // Iterate through items via the restricted pointer. 2229 // Also check for declarations in for loops. 2230 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2231 continue; 2232 return 0; 2233 } 2234 2235 // Check varargs and va_copy. 2236 static bool 2237 test_varargs (const char *format, ...) 2238 { 2239 va_list args; 2240 va_start (args, format); 2241 va_list args_copy; 2242 va_copy (args_copy, args); 2243 2244 const char *str = ""; 2245 int number = 0; 2246 float fnumber = 0; 2247 2248 while (*format) 2249 { 2250 switch (*format++) 2251 { 2252 case '\''s'\'': // string 2253 str = va_arg (args_copy, const char *); 2254 break; 2255 case '\''d'\'': // int 2256 number = va_arg (args_copy, int); 2257 break; 2258 case '\''f'\'': // float 2259 fnumber = va_arg (args_copy, double); 2260 break; 2261 default: 2262 break; 2263 } 2264 } 2265 va_end (args_copy); 2266 va_end (args); 2267 2268 return *str && number && fnumber; 2269 } 2270 ' 2271 2272 # Test code for whether the C compiler supports C99 (body of main). 2273 ac_c_conftest_c99_main=' 2274 // Check bool. 2275 _Bool success = false; 2276 success |= (argc != 0); 2277 2278 // Check restrict. 2279 if (test_restrict ("String literal") == 0) 2280 success = true; 2281 char *restrict newvar = "Another string"; 2282 2283 // Check varargs. 2284 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2285 test_varargs_macros (); 2286 2287 // Check flexible array members. 2288 struct incomplete_array *ia = 2289 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2290 ia->datasize = 10; 2291 for (int i = 0; i < ia->datasize; ++i) 2292 ia->data[i] = i * 1.234; 2293 2294 // Check named initializers. 2295 struct named_init ni = { 2296 .number = 34, 2297 .name = L"Test wide string", 2298 .average = 543.34343, 2299 }; 2300 2301 ni.number = 58; 2302 2303 int dynamic_array[ni.number]; 2304 dynamic_array[0] = argv[0][0]; 2305 dynamic_array[ni.number - 1] = 543; 2306 2307 // work around unused variable warnings 2308 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2309 || dynamic_array[ni.number - 1] != 543); 2310 ' 2311 2312 # Test code for whether the C compiler supports C11 (global declarations) 2313 ac_c_conftest_c11_globals=' 2314 // Does the compiler advertise C11 conformance? 2315 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2316 # error "Compiler does not advertise C11 conformance" 2317 #endif 2318 2319 // Check _Alignas. 2320 char _Alignas (double) aligned_as_double; 2321 char _Alignas (0) no_special_alignment; 2322 extern char aligned_as_int; 2323 char _Alignas (0) _Alignas (int) aligned_as_int; 2324 2325 // Check _Alignof. 2326 enum 2327 { 2328 int_alignment = _Alignof (int), 2329 int_array_alignment = _Alignof (int[100]), 2330 char_alignment = _Alignof (char) 2331 }; 2332 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2333 2334 // Check _Noreturn. 2335 int _Noreturn does_not_return (void) { for (;;) continue; } 2336 2337 // Check _Static_assert. 2338 struct test_static_assert 2339 { 2340 int x; 2341 _Static_assert (sizeof (int) <= sizeof (long int), 2342 "_Static_assert does not work in struct"); 2343 long int y; 2344 }; 2345 2346 // Check UTF-8 literals. 2347 #define u8 syntax error! 2348 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2349 2350 // Check duplicate typedefs. 2351 typedef long *long_ptr; 2352 typedef long int *long_ptr; 2353 typedef long_ptr long_ptr; 2354 2355 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2356 struct anonymous 2357 { 2358 union { 2359 struct { int i; int j; }; 2360 struct { int k; long int l; } w; 2361 }; 2362 int m; 2363 } v1; 2364 ' 2365 2366 # Test code for whether the C compiler supports C11 (body of main). 2367 ac_c_conftest_c11_main=' 2368 _Static_assert ((offsetof (struct anonymous, i) 2369 == offsetof (struct anonymous, w.k)), 2370 "Anonymous union alignment botch"); 2371 v1.i = 2; 2372 v1.w.k = 5; 2373 ok |= v1.i != 5; 2374 ' 2375 2376 # Test code for whether the C compiler supports C11 (complete). 2377 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2378 ${ac_c_conftest_c99_globals} 2379 ${ac_c_conftest_c11_globals} 2380 2381 int 2382 main (int argc, char **argv) 2383 { 2384 int ok = 0; 2385 ${ac_c_conftest_c89_main} 2386 ${ac_c_conftest_c99_main} 2387 ${ac_c_conftest_c11_main} 2388 return ok; 2389 } 2390 " 2391 2392 # Test code for whether the C compiler supports C99 (complete). 2393 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2394 ${ac_c_conftest_c99_globals} 2395 2396 int 2397 main (int argc, char **argv) 2398 { 2399 int ok = 0; 2400 ${ac_c_conftest_c89_main} 2401 ${ac_c_conftest_c99_main} 2402 return ok; 2403 } 2404 " 2405 2406 # Test code for whether the C compiler supports C89 (complete). 2407 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2408 2409 int 2410 main (int argc, char **argv) 2411 { 2412 int ok = 0; 2413 ${ac_c_conftest_c89_main} 2414 return ok; 2415 } 2416 " 2417 2418 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2419 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2420 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2421 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2422 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2423 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2424 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2425 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2426 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2427 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2428 2429 # Auxiliary files required by this configure script. 2430 ac_aux_files="config.guess config.sub missing install-sh compile" 2431 2432 # Locations in which to look for auxiliary files. 2433 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2434 2435 # Search for a directory containing all of the required auxiliary files, 2436 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2437 # If we don't find one directory that contains all the files we need, 2438 # we report the set of missing files from the *first* directory in 2439 # $ac_aux_dir_candidates and give up. 2440 ac_missing_aux_files="" 2441 ac_first_candidate=: 2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2444 as_found=false 2445 for as_dir in $ac_aux_dir_candidates 2446 do 2447 IFS=$as_save_IFS 2448 case $as_dir in #((( 2449 '') as_dir=./ ;; 2450 */) ;; 2451 *) as_dir=$as_dir/ ;; 2452 esac 2453 as_found=: 2454 2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2456 ac_aux_dir_found=yes 2457 ac_install_sh= 2458 for ac_aux in $ac_aux_files 2459 do 2460 # As a special case, if "install-sh" is required, that requirement 2461 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2462 # and $ac_install_sh is set appropriately for whichever one is found. 2463 if test x"$ac_aux" = x"install-sh" 2464 then 2465 if test -f "${as_dir}install-sh"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2467 ac_install_sh="${as_dir}install-sh -c" 2468 elif test -f "${as_dir}install.sh"; then 2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2470 ac_install_sh="${as_dir}install.sh -c" 2471 elif test -f "${as_dir}shtool"; then 2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2473 ac_install_sh="${as_dir}shtool install -c" 2474 else 2475 ac_aux_dir_found=no 2476 if $ac_first_candidate; then 2477 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2478 else 2479 break 2480 fi 2481 fi 2482 else 2483 if test -f "${as_dir}${ac_aux}"; then 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2485 else 2486 ac_aux_dir_found=no 2487 if $ac_first_candidate; then 2488 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2489 else 2490 break 2491 fi 2492 fi 2493 fi 2494 done 2495 if test "$ac_aux_dir_found" = yes; then 2496 ac_aux_dir="$as_dir" 2497 break 2498 fi 2499 ac_first_candidate=false 2500 2501 as_found=false 2502 done 2503 IFS=$as_save_IFS 2504 if $as_found 2505 then : 2506 2507 else $as_nop 2508 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2509 fi 2510 2511 2512 # These three variables are undocumented and unsupported, 2513 # and are intended to be withdrawn in a future Autoconf release. 2514 # They can cause serious problems if a builder's source tree is in a directory 2515 # whose full name contains unusual characters. 2516 if test -f "${ac_aux_dir}config.guess"; then 2517 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2518 fi 2519 if test -f "${ac_aux_dir}config.sub"; then 2520 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2521 fi 2522 if test -f "$ac_aux_dir/configure"; then 2523 ac_configure="$SHELL ${ac_aux_dir}configure" 2524 fi 2525 2526 # Check that the precious variables saved in the cache have kept the same 2527 # value. 2528 ac_cache_corrupted=false 2529 for ac_var in $ac_precious_vars; do 2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2531 eval ac_new_set=\$ac_env_${ac_var}_set 2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2533 eval ac_new_val=\$ac_env_${ac_var}_value 2534 case $ac_old_set,$ac_new_set in 2535 set,) 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2537 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2538 ac_cache_corrupted=: ;; 2539 ,set) 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2541 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2542 ac_cache_corrupted=: ;; 2543 ,);; 2544 *) 2545 if test "x$ac_old_val" != "x$ac_new_val"; then 2546 # differences in whitespace do not lead to failure. 2547 ac_old_val_w=`echo x $ac_old_val` 2548 ac_new_val_w=`echo x $ac_new_val` 2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2551 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2552 ac_cache_corrupted=: 2553 else 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2555 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2556 eval $ac_var=\$ac_old_val 2557 fi 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2559 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2561 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2562 fi;; 2563 esac 2564 # Pass precious variables to config.status. 2565 if test "$ac_new_set" = set; then 2566 case $ac_new_val in 2567 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2568 *) ac_arg=$ac_var=$ac_new_val ;; 2569 esac 2570 case " $ac_configure_args " in 2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2573 esac 2574 fi 2575 done 2576 if $ac_cache_corrupted; then 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2580 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2581 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2582 and start over" "$LINENO" 5 2583 fi 2584 ## -------------------- ## 2585 ## Main body of script. ## 2586 ## -------------------- ## 2587 2588 ac_ext=c 2589 ac_cpp='$CPP $CPPFLAGS' 2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2593 2594 2595 2596 ac_config_headers="$ac_config_headers config.h" 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 # Expand $ac_aux_dir to an absolute path. 2610 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2611 2612 ac_ext=c 2613 ac_cpp='$CPP $CPPFLAGS' 2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2617 if test -n "$ac_tool_prefix"; then 2618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2619 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621 printf %s "checking for $ac_word... " >&6; } 2622 if test ${ac_cv_prog_CC+y} 2623 then : 2624 printf %s "(cached) " >&6 2625 else $as_nop 2626 if test -n "$CC"; then 2627 ac_cv_prog_CC="$CC" # Let the user override the test. 2628 else 2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630 for as_dir in $PATH 2631 do 2632 IFS=$as_save_IFS 2633 case $as_dir in #((( 2634 '') as_dir=./ ;; 2635 */) ;; 2636 *) as_dir=$as_dir/ ;; 2637 esac 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2640 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644 done 2645 done 2646 IFS=$as_save_IFS 2647 2648 fi 2649 fi 2650 CC=$ac_cv_prog_CC 2651 if test -n "$CC"; then 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2653 printf "%s\n" "$CC" >&6; } 2654 else 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656 printf "%s\n" "no" >&6; } 2657 fi 2658 2659 2660 fi 2661 if test -z "$ac_cv_prog_CC"; then 2662 ac_ct_CC=$CC 2663 # Extract the first word of "gcc", so it can be a program name with args. 2664 set dummy gcc; ac_word=$2 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2666 printf %s "checking for $ac_word... " >&6; } 2667 if test ${ac_cv_prog_ac_ct_CC+y} 2668 then : 2669 printf %s "(cached) " >&6 2670 else $as_nop 2671 if test -n "$ac_ct_CC"; then 2672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2673 else 2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675 for as_dir in $PATH 2676 do 2677 IFS=$as_save_IFS 2678 case $as_dir in #((( 2679 '') as_dir=./ ;; 2680 */) ;; 2681 *) as_dir=$as_dir/ ;; 2682 esac 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2685 ac_cv_prog_ac_ct_CC="gcc" 2686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689 done 2690 done 2691 IFS=$as_save_IFS 2692 2693 fi 2694 fi 2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2696 if test -n "$ac_ct_CC"; then 2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2698 printf "%s\n" "$ac_ct_CC" >&6; } 2699 else 2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2701 printf "%s\n" "no" >&6; } 2702 fi 2703 2704 if test "x$ac_ct_CC" = x; then 2705 CC="" 2706 else 2707 case $cross_compiling:$ac_tool_warned in 2708 yes:) 2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2711 ac_tool_warned=yes ;; 2712 esac 2713 CC=$ac_ct_CC 2714 fi 2715 else 2716 CC="$ac_cv_prog_CC" 2717 fi 2718 2719 if test -z "$CC"; then 2720 if test -n "$ac_tool_prefix"; then 2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2722 set dummy ${ac_tool_prefix}cc; ac_word=$2 2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724 printf %s "checking for $ac_word... " >&6; } 2725 if test ${ac_cv_prog_CC+y} 2726 then : 2727 printf %s "(cached) " >&6 2728 else $as_nop 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731 else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733 for as_dir in $PATH 2734 do 2735 IFS=$as_save_IFS 2736 case $as_dir in #((( 2737 '') as_dir=./ ;; 2738 */) ;; 2739 *) as_dir=$as_dir/ ;; 2740 esac 2741 for ac_exec_ext in '' $ac_executable_extensions; do 2742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2743 ac_cv_prog_CC="${ac_tool_prefix}cc" 2744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2745 break 2 2746 fi 2747 done 2748 done 2749 IFS=$as_save_IFS 2750 2751 fi 2752 fi 2753 CC=$ac_cv_prog_CC 2754 if test -n "$CC"; then 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2756 printf "%s\n" "$CC" >&6; } 2757 else 2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2759 printf "%s\n" "no" >&6; } 2760 fi 2761 2762 2763 fi 2764 fi 2765 if test -z "$CC"; then 2766 # Extract the first word of "cc", so it can be a program name with args. 2767 set dummy cc; ac_word=$2 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769 printf %s "checking for $ac_word... " >&6; } 2770 if test ${ac_cv_prog_CC+y} 2771 then : 2772 printf %s "(cached) " >&6 2773 else $as_nop 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776 else 2777 ac_prog_rejected=no 2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779 for as_dir in $PATH 2780 do 2781 IFS=$as_save_IFS 2782 case $as_dir in #((( 2783 '') as_dir=./ ;; 2784 */) ;; 2785 *) as_dir=$as_dir/ ;; 2786 esac 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2789 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2790 ac_prog_rejected=yes 2791 continue 2792 fi 2793 ac_cv_prog_CC="cc" 2794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797 done 2798 done 2799 IFS=$as_save_IFS 2800 2801 if test $ac_prog_rejected = yes; then 2802 # We found a bogon in the path, so make sure we never use it. 2803 set dummy $ac_cv_prog_CC 2804 shift 2805 if test $# != 0; then 2806 # We chose a different compiler from the bogus one. 2807 # However, it has the same basename, so the bogon will be chosen 2808 # first if we set CC to just the basename; use the full file name. 2809 shift 2810 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2811 fi 2812 fi 2813 fi 2814 fi 2815 CC=$ac_cv_prog_CC 2816 if test -n "$CC"; then 2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818 printf "%s\n" "$CC" >&6; } 2819 else 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821 printf "%s\n" "no" >&6; } 2822 fi 2823 2824 2825 fi 2826 if test -z "$CC"; then 2827 if test -n "$ac_tool_prefix"; then 2828 for ac_prog in cl.exe 2829 do 2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833 printf %s "checking for $ac_word... " >&6; } 2834 if test ${ac_cv_prog_CC+y} 2835 then : 2836 printf %s "(cached) " >&6 2837 else $as_nop 2838 if test -n "$CC"; then 2839 ac_cv_prog_CC="$CC" # Let the user override the test. 2840 else 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842 for as_dir in $PATH 2843 do 2844 IFS=$as_save_IFS 2845 case $as_dir in #((( 2846 '') as_dir=./ ;; 2847 */) ;; 2848 *) as_dir=$as_dir/ ;; 2849 esac 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2852 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856 done 2857 done 2858 IFS=$as_save_IFS 2859 2860 fi 2861 fi 2862 CC=$ac_cv_prog_CC 2863 if test -n "$CC"; then 2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2865 printf "%s\n" "$CC" >&6; } 2866 else 2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868 printf "%s\n" "no" >&6; } 2869 fi 2870 2871 2872 test -n "$CC" && break 2873 done 2874 fi 2875 if test -z "$CC"; then 2876 ac_ct_CC=$CC 2877 for ac_prog in cl.exe 2878 do 2879 # Extract the first word of "$ac_prog", so it can be a program name with args. 2880 set dummy $ac_prog; ac_word=$2 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882 printf %s "checking for $ac_word... " >&6; } 2883 if test ${ac_cv_prog_ac_ct_CC+y} 2884 then : 2885 printf %s "(cached) " >&6 2886 else $as_nop 2887 if test -n "$ac_ct_CC"; then 2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2889 else 2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891 for as_dir in $PATH 2892 do 2893 IFS=$as_save_IFS 2894 case $as_dir in #((( 2895 '') as_dir=./ ;; 2896 */) ;; 2897 *) as_dir=$as_dir/ ;; 2898 esac 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2901 ac_cv_prog_ac_ct_CC="$ac_prog" 2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905 done 2906 done 2907 IFS=$as_save_IFS 2908 2909 fi 2910 fi 2911 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2912 if test -n "$ac_ct_CC"; then 2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2914 printf "%s\n" "$ac_ct_CC" >&6; } 2915 else 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917 printf "%s\n" "no" >&6; } 2918 fi 2919 2920 2921 test -n "$ac_ct_CC" && break 2922 done 2923 2924 if test "x$ac_ct_CC" = x; then 2925 CC="" 2926 else 2927 case $cross_compiling:$ac_tool_warned in 2928 yes:) 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2931 ac_tool_warned=yes ;; 2932 esac 2933 CC=$ac_ct_CC 2934 fi 2935 fi 2936 2937 fi 2938 if test -z "$CC"; then 2939 if test -n "$ac_tool_prefix"; then 2940 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2941 set dummy ${ac_tool_prefix}clang; ac_word=$2 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943 printf %s "checking for $ac_word... " >&6; } 2944 if test ${ac_cv_prog_CC+y} 2945 then : 2946 printf %s "(cached) " >&6 2947 else $as_nop 2948 if test -n "$CC"; then 2949 ac_cv_prog_CC="$CC" # Let the user override the test. 2950 else 2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952 for as_dir in $PATH 2953 do 2954 IFS=$as_save_IFS 2955 case $as_dir in #((( 2956 '') as_dir=./ ;; 2957 */) ;; 2958 *) as_dir=$as_dir/ ;; 2959 esac 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_CC="${ac_tool_prefix}clang" 2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966 done 2967 done 2968 IFS=$as_save_IFS 2969 2970 fi 2971 fi 2972 CC=$ac_cv_prog_CC 2973 if test -n "$CC"; then 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2975 printf "%s\n" "$CC" >&6; } 2976 else 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978 printf "%s\n" "no" >&6; } 2979 fi 2980 2981 2982 fi 2983 if test -z "$ac_cv_prog_CC"; then 2984 ac_ct_CC=$CC 2985 # Extract the first word of "clang", so it can be a program name with args. 2986 set dummy clang; ac_word=$2 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988 printf %s "checking for $ac_word... " >&6; } 2989 if test ${ac_cv_prog_ac_ct_CC+y} 2990 then : 2991 printf %s "(cached) " >&6 2992 else $as_nop 2993 if test -n "$ac_ct_CC"; then 2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2995 else 2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997 for as_dir in $PATH 2998 do 2999 IFS=$as_save_IFS 3000 case $as_dir in #((( 3001 '') as_dir=./ ;; 3002 */) ;; 3003 *) as_dir=$as_dir/ ;; 3004 esac 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3007 ac_cv_prog_ac_ct_CC="clang" 3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011 done 3012 done 3013 IFS=$as_save_IFS 3014 3015 fi 3016 fi 3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3018 if test -n "$ac_ct_CC"; then 3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3020 printf "%s\n" "$ac_ct_CC" >&6; } 3021 else 3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023 printf "%s\n" "no" >&6; } 3024 fi 3025 3026 if test "x$ac_ct_CC" = x; then 3027 CC="" 3028 else 3029 case $cross_compiling:$ac_tool_warned in 3030 yes:) 3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3033 ac_tool_warned=yes ;; 3034 esac 3035 CC=$ac_ct_CC 3036 fi 3037 else 3038 CC="$ac_cv_prog_CC" 3039 fi 3040 3041 fi 3042 3043 3044 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3046 as_fn_error $? "no acceptable C compiler found in \$PATH 3047 See \`config.log' for more details" "$LINENO" 5; } 3048 3049 # Provide some information about the compiler. 3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3051 set X $ac_compile 3052 ac_compiler=$2 3053 for ac_option in --version -v -V -qversion -version; do 3054 { { ac_try="$ac_compiler $ac_option >&5" 3055 case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058 esac 3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3060 printf "%s\n" "$ac_try_echo"; } >&5 3061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3062 ac_status=$? 3063 if test -s conftest.err; then 3064 sed '10a\ 3065 ... rest of stderr output deleted ... 3066 10q' conftest.err >conftest.er1 3067 cat conftest.er1 >&5 3068 fi 3069 rm -f conftest.er1 conftest.err 3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3071 test $ac_status = 0; } 3072 done 3073 3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3075 /* end confdefs.h. */ 3076 3077 int 3078 main (void) 3079 { 3080 3081 ; 3082 return 0; 3083 } 3084 _ACEOF 3085 ac_clean_files_save=$ac_clean_files 3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3087 # Try to create an executable without -o first, disregard a.out. 3088 # It will help us diagnose broken compilers, and finding out an intuition 3089 # of exeext. 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3091 printf %s "checking whether the C compiler works... " >&6; } 3092 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3093 3094 # The possible output files: 3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3096 3097 ac_rmfiles= 3098 for ac_file in $ac_files 3099 do 3100 case $ac_file in 3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3103 esac 3104 done 3105 rm -f $ac_rmfiles 3106 3107 if { { ac_try="$ac_link_default" 3108 case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111 esac 3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3113 printf "%s\n" "$ac_try_echo"; } >&5 3114 (eval "$ac_link_default") 2>&5 3115 ac_status=$? 3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3117 test $ac_status = 0; } 3118 then : 3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3121 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3122 # so that the user can short-circuit this test for compilers unknown to 3123 # Autoconf. 3124 for ac_file in $ac_files '' 3125 do 3126 test -f "$ac_file" || continue 3127 case $ac_file in 3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3129 ;; 3130 [ab].out ) 3131 # We found the default executable, but exeext='' is most 3132 # certainly right. 3133 break;; 3134 *.* ) 3135 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3136 then :; else 3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3138 fi 3139 # We set ac_cv_exeext here because the later test for it is not 3140 # safe: cross compilers may not add the suffix if given an `-o' 3141 # argument, so we may need to know it at that point already. 3142 # Even if this section looks crufty: it has the advantage of 3143 # actually working. 3144 break;; 3145 * ) 3146 break;; 3147 esac 3148 done 3149 test "$ac_cv_exeext" = no && ac_cv_exeext= 3150 3151 else $as_nop 3152 ac_file='' 3153 fi 3154 if test -z "$ac_file" 3155 then : 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157 printf "%s\n" "no" >&6; } 3158 printf "%s\n" "$as_me: failed program was:" >&5 3159 sed 's/^/| /' conftest.$ac_ext >&5 3160 3161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3163 as_fn_error 77 "C compiler cannot create executables 3164 See \`config.log' for more details" "$LINENO" 5; } 3165 else $as_nop 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3167 printf "%s\n" "yes" >&6; } 3168 fi 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3170 printf %s "checking for C compiler default output file name... " >&6; } 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3172 printf "%s\n" "$ac_file" >&6; } 3173 ac_exeext=$ac_cv_exeext 3174 3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3176 ac_clean_files=$ac_clean_files_save 3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3178 printf %s "checking for suffix of executables... " >&6; } 3179 if { { ac_try="$ac_link" 3180 case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183 esac 3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3185 printf "%s\n" "$ac_try_echo"; } >&5 3186 (eval "$ac_link") 2>&5 3187 ac_status=$? 3188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3189 test $ac_status = 0; } 3190 then : 3191 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3193 # work properly (i.e., refer to `conftest.exe'), while it won't with 3194 # `rm'. 3195 for ac_file in conftest.exe conftest conftest.*; do 3196 test -f "$ac_file" || continue 3197 case $ac_file in 3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3200 break;; 3201 * ) break;; 3202 esac 3203 done 3204 else $as_nop 3205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3207 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3208 See \`config.log' for more details" "$LINENO" 5; } 3209 fi 3210 rm -f conftest conftest$ac_cv_exeext 3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3212 printf "%s\n" "$ac_cv_exeext" >&6; } 3213 3214 rm -f conftest.$ac_ext 3215 EXEEXT=$ac_cv_exeext 3216 ac_exeext=$EXEEXT 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218 /* end confdefs.h. */ 3219 #include <stdio.h> 3220 int 3221 main (void) 3222 { 3223 FILE *f = fopen ("conftest.out", "w"); 3224 return ferror (f) || fclose (f) != 0; 3225 3226 ; 3227 return 0; 3228 } 3229 _ACEOF 3230 ac_clean_files="$ac_clean_files conftest.out" 3231 # Check that the compiler produces executables we can run. If not, either 3232 # the compiler is broken, or we cross compile. 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3234 printf %s "checking whether we are cross compiling... " >&6; } 3235 if test "$cross_compiling" != yes; then 3236 { { ac_try="$ac_link" 3237 case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240 esac 3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3242 printf "%s\n" "$ac_try_echo"; } >&5 3243 (eval "$ac_link") 2>&5 3244 ac_status=$? 3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3246 test $ac_status = 0; } 3247 if { ac_try='./conftest$ac_cv_exeext' 3248 { { case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251 esac 3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3253 printf "%s\n" "$ac_try_echo"; } >&5 3254 (eval "$ac_try") 2>&5 3255 ac_status=$? 3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3257 test $ac_status = 0; }; }; then 3258 cross_compiling=no 3259 else 3260 if test "$cross_compiling" = maybe; then 3261 cross_compiling=yes 3262 else 3263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3264 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3265 as_fn_error 77 "cannot run C compiled programs. 3266 If you meant to cross compile, use \`--host'. 3267 See \`config.log' for more details" "$LINENO" 5; } 3268 fi 3269 fi 3270 fi 3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3272 printf "%s\n" "$cross_compiling" >&6; } 3273 3274 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3275 ac_clean_files=$ac_clean_files_save 3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3277 printf %s "checking for suffix of object files... " >&6; } 3278 if test ${ac_cv_objext+y} 3279 then : 3280 printf %s "(cached) " >&6 3281 else $as_nop 3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283 /* end confdefs.h. */ 3284 3285 int 3286 main (void) 3287 { 3288 3289 ; 3290 return 0; 3291 } 3292 _ACEOF 3293 rm -f conftest.o conftest.obj 3294 if { { ac_try="$ac_compile" 3295 case "(($ac_try" in 3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297 *) ac_try_echo=$ac_try;; 3298 esac 3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3300 printf "%s\n" "$ac_try_echo"; } >&5 3301 (eval "$ac_compile") 2>&5 3302 ac_status=$? 3303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3304 test $ac_status = 0; } 3305 then : 3306 for ac_file in conftest.o conftest.obj conftest.*; do 3307 test -f "$ac_file" || continue; 3308 case $ac_file in 3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3311 break;; 3312 esac 3313 done 3314 else $as_nop 3315 printf "%s\n" "$as_me: failed program was:" >&5 3316 sed 's/^/| /' conftest.$ac_ext >&5 3317 3318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3319 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3320 as_fn_error $? "cannot compute suffix of object files: cannot compile 3321 See \`config.log' for more details" "$LINENO" 5; } 3322 fi 3323 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3324 fi 3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3326 printf "%s\n" "$ac_cv_objext" >&6; } 3327 OBJEXT=$ac_cv_objext 3328 ac_objext=$OBJEXT 3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3330 printf %s "checking whether the compiler supports GNU C... " >&6; } 3331 if test ${ac_cv_c_compiler_gnu+y} 3332 then : 3333 printf %s "(cached) " >&6 3334 else $as_nop 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336 /* end confdefs.h. */ 3337 3338 int 3339 main (void) 3340 { 3341 #ifndef __GNUC__ 3342 choke me 3343 #endif 3344 3345 ; 3346 return 0; 3347 } 3348 _ACEOF 3349 if ac_fn_c_try_compile "$LINENO" 3350 then : 3351 ac_compiler_gnu=yes 3352 else $as_nop 3353 ac_compiler_gnu=no 3354 fi 3355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3357 3358 fi 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3360 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3362 3363 if test $ac_compiler_gnu = yes; then 3364 GCC=yes 3365 else 3366 GCC= 3367 fi 3368 ac_test_CFLAGS=${CFLAGS+y} 3369 ac_save_CFLAGS=$CFLAGS 3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3371 printf %s "checking whether $CC accepts -g... " >&6; } 3372 if test ${ac_cv_prog_cc_g+y} 3373 then : 3374 printf %s "(cached) " >&6 3375 else $as_nop 3376 ac_save_c_werror_flag=$ac_c_werror_flag 3377 ac_c_werror_flag=yes 3378 ac_cv_prog_cc_g=no 3379 CFLAGS="-g" 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381 /* end confdefs.h. */ 3382 3383 int 3384 main (void) 3385 { 3386 3387 ; 3388 return 0; 3389 } 3390 _ACEOF 3391 if ac_fn_c_try_compile "$LINENO" 3392 then : 3393 ac_cv_prog_cc_g=yes 3394 else $as_nop 3395 CFLAGS="" 3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397 /* end confdefs.h. */ 3398 3399 int 3400 main (void) 3401 { 3402 3403 ; 3404 return 0; 3405 } 3406 _ACEOF 3407 if ac_fn_c_try_compile "$LINENO" 3408 then : 3409 3410 else $as_nop 3411 ac_c_werror_flag=$ac_save_c_werror_flag 3412 CFLAGS="-g" 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414 /* end confdefs.h. */ 3415 3416 int 3417 main (void) 3418 { 3419 3420 ; 3421 return 0; 3422 } 3423 _ACEOF 3424 if ac_fn_c_try_compile "$LINENO" 3425 then : 3426 ac_cv_prog_cc_g=yes 3427 fi 3428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3429 fi 3430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3431 fi 3432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3433 ac_c_werror_flag=$ac_save_c_werror_flag 3434 fi 3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3436 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3437 if test $ac_test_CFLAGS; then 3438 CFLAGS=$ac_save_CFLAGS 3439 elif test $ac_cv_prog_cc_g = yes; then 3440 if test "$GCC" = yes; then 3441 CFLAGS="-g -O2" 3442 else 3443 CFLAGS="-g" 3444 fi 3445 else 3446 if test "$GCC" = yes; then 3447 CFLAGS="-O2" 3448 else 3449 CFLAGS= 3450 fi 3451 fi 3452 ac_prog_cc_stdc=no 3453 if test x$ac_prog_cc_stdc = xno 3454 then : 3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3456 printf %s "checking for $CC option to enable C11 features... " >&6; } 3457 if test ${ac_cv_prog_cc_c11+y} 3458 then : 3459 printf %s "(cached) " >&6 3460 else $as_nop 3461 ac_cv_prog_cc_c11=no 3462 ac_save_CC=$CC 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464 /* end confdefs.h. */ 3465 $ac_c_conftest_c11_program 3466 _ACEOF 3467 for ac_arg in '' -std=gnu11 3468 do 3469 CC="$ac_save_CC $ac_arg" 3470 if ac_fn_c_try_compile "$LINENO" 3471 then : 3472 ac_cv_prog_cc_c11=$ac_arg 3473 fi 3474 rm -f core conftest.err conftest.$ac_objext conftest.beam 3475 test "x$ac_cv_prog_cc_c11" != "xno" && break 3476 done 3477 rm -f conftest.$ac_ext 3478 CC=$ac_save_CC 3479 fi 3480 3481 if test "x$ac_cv_prog_cc_c11" = xno 3482 then : 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3484 printf "%s\n" "unsupported" >&6; } 3485 else $as_nop 3486 if test "x$ac_cv_prog_cc_c11" = x 3487 then : 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3489 printf "%s\n" "none needed" >&6; } 3490 else $as_nop 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3492 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3493 CC="$CC $ac_cv_prog_cc_c11" 3494 fi 3495 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3496 ac_prog_cc_stdc=c11 3497 fi 3498 fi 3499 if test x$ac_prog_cc_stdc = xno 3500 then : 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3502 printf %s "checking for $CC option to enable C99 features... " >&6; } 3503 if test ${ac_cv_prog_cc_c99+y} 3504 then : 3505 printf %s "(cached) " >&6 3506 else $as_nop 3507 ac_cv_prog_cc_c99=no 3508 ac_save_CC=$CC 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510 /* end confdefs.h. */ 3511 $ac_c_conftest_c99_program 3512 _ACEOF 3513 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3514 do 3515 CC="$ac_save_CC $ac_arg" 3516 if ac_fn_c_try_compile "$LINENO" 3517 then : 3518 ac_cv_prog_cc_c99=$ac_arg 3519 fi 3520 rm -f core conftest.err conftest.$ac_objext conftest.beam 3521 test "x$ac_cv_prog_cc_c99" != "xno" && break 3522 done 3523 rm -f conftest.$ac_ext 3524 CC=$ac_save_CC 3525 fi 3526 3527 if test "x$ac_cv_prog_cc_c99" = xno 3528 then : 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3530 printf "%s\n" "unsupported" >&6; } 3531 else $as_nop 3532 if test "x$ac_cv_prog_cc_c99" = x 3533 then : 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3535 printf "%s\n" "none needed" >&6; } 3536 else $as_nop 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3538 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3539 CC="$CC $ac_cv_prog_cc_c99" 3540 fi 3541 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3542 ac_prog_cc_stdc=c99 3543 fi 3544 fi 3545 if test x$ac_prog_cc_stdc = xno 3546 then : 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3548 printf %s "checking for $CC option to enable C89 features... " >&6; } 3549 if test ${ac_cv_prog_cc_c89+y} 3550 then : 3551 printf %s "(cached) " >&6 3552 else $as_nop 3553 ac_cv_prog_cc_c89=no 3554 ac_save_CC=$CC 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 /* end confdefs.h. */ 3557 $ac_c_conftest_c89_program 3558 _ACEOF 3559 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560 do 3561 CC="$ac_save_CC $ac_arg" 3562 if ac_fn_c_try_compile "$LINENO" 3563 then : 3564 ac_cv_prog_cc_c89=$ac_arg 3565 fi 3566 rm -f core conftest.err conftest.$ac_objext conftest.beam 3567 test "x$ac_cv_prog_cc_c89" != "xno" && break 3568 done 3569 rm -f conftest.$ac_ext 3570 CC=$ac_save_CC 3571 fi 3572 3573 if test "x$ac_cv_prog_cc_c89" = xno 3574 then : 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3576 printf "%s\n" "unsupported" >&6; } 3577 else $as_nop 3578 if test "x$ac_cv_prog_cc_c89" = x 3579 then : 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3581 printf "%s\n" "none needed" >&6; } 3582 else $as_nop 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3584 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3585 CC="$CC $ac_cv_prog_cc_c89" 3586 fi 3587 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3588 ac_prog_cc_stdc=c89 3589 fi 3590 fi 3591 3592 ac_ext=c 3593 ac_cpp='$CPP $CPPFLAGS' 3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3597 3598 3599 ac_ext=c 3600 ac_cpp='$CPP $CPPFLAGS' 3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3605 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3606 if test ${am_cv_prog_cc_c_o+y} 3607 then : 3608 printf %s "(cached) " >&6 3609 else $as_nop 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611 /* end confdefs.h. */ 3612 3613 int 3614 main (void) 3615 { 3616 3617 ; 3618 return 0; 3619 } 3620 _ACEOF 3621 # Make sure it works both with $CC and with simple cc. 3622 # Following AC_PROG_CC_C_O, we do the test twice because some 3623 # compilers refuse to overwrite an existing .o file with -o, 3624 # though they will create one. 3625 am_cv_prog_cc_c_o=yes 3626 for am_i in 1 2; do 3627 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3628 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3629 ac_status=$? 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); } \ 3632 && test -f conftest2.$ac_objext; then 3633 : OK 3634 else 3635 am_cv_prog_cc_c_o=no 3636 break 3637 fi 3638 done 3639 rm -f core conftest* 3640 unset am_i 3641 fi 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3643 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3644 if test "$am_cv_prog_cc_c_o" != yes; then 3645 # Losing compiler, so override with the script. 3646 # FIXME: It is wrong to rewrite CC. 3647 # But if we don't then we get into trouble of one sort or another. 3648 # A longer-term fix would be to have automake use am__CC in this case, 3649 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3650 CC="$am_aux_dir/compile $CC" 3651 fi 3652 ac_ext=c 3653 ac_cpp='$CPP $CPPFLAGS' 3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3657 3658 3659 3660 ac_header= ac_cache= 3661 for ac_item in $ac_header_c_list 3662 do 3663 if test $ac_cache; then 3664 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3665 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3666 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3667 fi 3668 ac_header= ac_cache= 3669 elif test $ac_header; then 3670 ac_cache=$ac_item 3671 else 3672 ac_header=$ac_item 3673 fi 3674 done 3675 3676 3677 3678 3679 3680 3681 3682 3683 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3684 then : 3685 3686 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3687 3688 fi 3689 3690 3691 3692 3693 3694 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3696 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3697 if test ${ac_cv_safe_to_define___extensions__+y} 3698 then : 3699 printf %s "(cached) " >&6 3700 else $as_nop 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702 /* end confdefs.h. */ 3703 3704 # define __EXTENSIONS__ 1 3705 $ac_includes_default 3706 int 3707 main (void) 3708 { 3709 3710 ; 3711 return 0; 3712 } 3713 _ACEOF 3714 if ac_fn_c_try_compile "$LINENO" 3715 then : 3716 ac_cv_safe_to_define___extensions__=yes 3717 else $as_nop 3718 ac_cv_safe_to_define___extensions__=no 3719 fi 3720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3721 fi 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3723 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3724 3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3726 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3727 if test ${ac_cv_should_define__xopen_source+y} 3728 then : 3729 printf %s "(cached) " >&6 3730 else $as_nop 3731 ac_cv_should_define__xopen_source=no 3732 if test $ac_cv_header_wchar_h = yes 3733 then : 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735 /* end confdefs.h. */ 3736 3737 #include <wchar.h> 3738 mbstate_t x; 3739 int 3740 main (void) 3741 { 3742 3743 ; 3744 return 0; 3745 } 3746 _ACEOF 3747 if ac_fn_c_try_compile "$LINENO" 3748 then : 3749 3750 else $as_nop 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752 /* end confdefs.h. */ 3753 3754 #define _XOPEN_SOURCE 500 3755 #include <wchar.h> 3756 mbstate_t x; 3757 int 3758 main (void) 3759 { 3760 3761 ; 3762 return 0; 3763 } 3764 _ACEOF 3765 if ac_fn_c_try_compile "$LINENO" 3766 then : 3767 ac_cv_should_define__xopen_source=yes 3768 fi 3769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3770 fi 3771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3772 fi 3773 fi 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3775 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3776 3777 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3778 3779 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3780 3781 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3782 3783 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3784 3785 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3786 3787 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3788 3789 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3790 3791 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3792 3793 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3794 3795 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3796 3797 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3798 3799 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3800 3801 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3802 3803 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3804 3805 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3806 3807 if test $ac_cv_header_minix_config_h = yes 3808 then : 3809 MINIX=yes 3810 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3811 3812 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3813 3814 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3815 3816 else $as_nop 3817 MINIX= 3818 fi 3819 if test $ac_cv_safe_to_define___extensions__ = yes 3820 then : 3821 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3822 3823 fi 3824 if test $ac_cv_should_define__xopen_source = yes 3825 then : 3826 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3827 3828 fi 3829 3830 3831 # Initialize Automake 3832 am__api_version='1.16' 3833 3834 3835 # Find a good install program. We prefer a C program (faster), 3836 # so one script is as good as another. But avoid the broken or 3837 # incompatible versions: 3838 # SysV /etc/install, /usr/sbin/install 3839 # SunOS /usr/etc/install 3840 # IRIX /sbin/install 3841 # AIX /bin/install 3842 # AmigaOS /C/install, which installs bootblocks on floppy discs 3843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3846 # OS/2's system install, which has a completely different semantic 3847 # ./install, which can be erroneously created by make from ./install.sh. 3848 # Reject install programs that cannot install multiple files. 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3850 printf %s "checking for a BSD-compatible install... " >&6; } 3851 if test -z "$INSTALL"; then 3852 if test ${ac_cv_path_install+y} 3853 then : 3854 printf %s "(cached) " >&6 3855 else $as_nop 3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3857 for as_dir in $PATH 3858 do 3859 IFS=$as_save_IFS 3860 case $as_dir in #((( 3861 '') as_dir=./ ;; 3862 */) ;; 3863 *) as_dir=$as_dir/ ;; 3864 esac 3865 # Account for fact that we put trailing slashes in our PATH walk. 3866 case $as_dir in #(( 3867 ./ | /[cC]/* | \ 3868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3869 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3870 /usr/ucb/* ) ;; 3871 *) 3872 # OSF1 and SCO ODT 3.0 have their own names for install. 3873 # Don't use installbsd from OSF since it installs stuff as root 3874 # by default. 3875 for ac_prog in ginstall scoinst install; do 3876 for ac_exec_ext in '' $ac_executable_extensions; do 3877 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3878 if test $ac_prog = install && 3879 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3880 # AIX install. It has an incompatible calling convention. 3881 : 3882 elif test $ac_prog = install && 3883 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3884 # program-specific install script used by HP pwplus--don't use. 3885 : 3886 else 3887 rm -rf conftest.one conftest.two conftest.dir 3888 echo one > conftest.one 3889 echo two > conftest.two 3890 mkdir conftest.dir 3891 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3892 test -s conftest.one && test -s conftest.two && 3893 test -s conftest.dir/conftest.one && 3894 test -s conftest.dir/conftest.two 3895 then 3896 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3897 break 3 3898 fi 3899 fi 3900 fi 3901 done 3902 done 3903 ;; 3904 esac 3905 3906 done 3907 IFS=$as_save_IFS 3908 3909 rm -rf conftest.one conftest.two conftest.dir 3910 3911 fi 3912 if test ${ac_cv_path_install+y}; then 3913 INSTALL=$ac_cv_path_install 3914 else 3915 # As a last resort, use the slow shell script. Don't cache a 3916 # value for INSTALL within a source directory, because that will 3917 # break other packages using the cache if that directory is 3918 # removed, or if the value is a relative name. 3919 INSTALL=$ac_install_sh 3920 fi 3921 fi 3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3923 printf "%s\n" "$INSTALL" >&6; } 3924 3925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3926 # It thinks the first close brace ends the variable substitution. 3927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3928 3929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3930 3931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3932 3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3934 printf %s "checking whether build environment is sane... " >&6; } 3935 # Reject unsafe characters in $srcdir or the absolute working directory 3936 # name. Accept space and tab only in the latter. 3937 am_lf=' 3938 ' 3939 case `pwd` in 3940 *[\\\"\#\$\&\'\`$am_lf]*) 3941 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3942 esac 3943 case $srcdir in 3944 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3945 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3946 esac 3947 3948 # Do 'set' in a subshell so we don't clobber the current shell's 3949 # arguments. Must try -L first in case configure is actually a 3950 # symlink; some systems play weird games with the mod time of symlinks 3951 # (eg FreeBSD returns the mod time of the symlink's containing 3952 # directory). 3953 if ( 3954 am_has_slept=no 3955 for am_try in 1 2; do 3956 echo "timestamp, slept: $am_has_slept" > conftest.file 3957 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3958 if test "$*" = "X"; then 3959 # -L didn't work. 3960 set X `ls -t "$srcdir/configure" conftest.file` 3961 fi 3962 if test "$*" != "X $srcdir/configure conftest.file" \ 3963 && test "$*" != "X conftest.file $srcdir/configure"; then 3964 3965 # If neither matched, then we have a broken ls. This can happen 3966 # if, for instance, CONFIG_SHELL is bash and it inherits a 3967 # broken ls alias from the environment. This has actually 3968 # happened. Such a system could not be considered "sane". 3969 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3970 alias in your environment" "$LINENO" 5 3971 fi 3972 if test "$2" = conftest.file || test $am_try -eq 2; then 3973 break 3974 fi 3975 # Just in case. 3976 sleep 1 3977 am_has_slept=yes 3978 done 3979 test "$2" = conftest.file 3980 ) 3981 then 3982 # Ok. 3983 : 3984 else 3985 as_fn_error $? "newly created file is older than distributed files! 3986 Check your system clock" "$LINENO" 5 3987 fi 3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3989 printf "%s\n" "yes" >&6; } 3990 # If we didn't sleep, we still need to ensure time stamps of config.status and 3991 # generated files are strictly newer. 3992 am_sleep_pid= 3993 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3994 ( sleep 1 ) & 3995 am_sleep_pid=$! 3996 fi 3997 3998 rm -f conftest.file 3999 4000 test "$program_prefix" != NONE && 4001 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4002 # Use a double $ so make ignores it. 4003 test "$program_suffix" != NONE && 4004 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4005 # Double any \ or $. 4006 # By default was `s,x,x', remove it if useless. 4007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4008 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4009 4010 4011 if test x"${MISSING+set}" != xset; then 4012 MISSING="\${SHELL} '$am_aux_dir/missing'" 4013 fi 4014 # Use eval to expand $SHELL 4015 if eval "$MISSING --is-lightweight"; then 4016 am_missing_run="$MISSING " 4017 else 4018 am_missing_run= 4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4020 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4021 fi 4022 4023 if test x"${install_sh+set}" != xset; then 4024 case $am_aux_dir in 4025 *\ * | *\ *) 4026 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4027 *) 4028 install_sh="\${SHELL} $am_aux_dir/install-sh" 4029 esac 4030 fi 4031 4032 # Installed binaries are usually stripped using 'strip' when the user 4033 # run "make install-strip". However 'strip' might not be the right 4034 # tool to use in cross-compilation environments, therefore Automake 4035 # will honor the 'STRIP' environment variable to overrule this program. 4036 if test "$cross_compiling" != no; then 4037 if test -n "$ac_tool_prefix"; then 4038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4039 set dummy ${ac_tool_prefix}strip; ac_word=$2 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041 printf %s "checking for $ac_word... " >&6; } 4042 if test ${ac_cv_prog_STRIP+y} 4043 then : 4044 printf %s "(cached) " >&6 4045 else $as_nop 4046 if test -n "$STRIP"; then 4047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4048 else 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050 for as_dir in $PATH 4051 do 4052 IFS=$as_save_IFS 4053 case $as_dir in #((( 4054 '') as_dir=./ ;; 4055 */) ;; 4056 *) as_dir=$as_dir/ ;; 4057 esac 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4060 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4062 break 2 4063 fi 4064 done 4065 done 4066 IFS=$as_save_IFS 4067 4068 fi 4069 fi 4070 STRIP=$ac_cv_prog_STRIP 4071 if test -n "$STRIP"; then 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4073 printf "%s\n" "$STRIP" >&6; } 4074 else 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4076 printf "%s\n" "no" >&6; } 4077 fi 4078 4079 4080 fi 4081 if test -z "$ac_cv_prog_STRIP"; then 4082 ac_ct_STRIP=$STRIP 4083 # Extract the first word of "strip", so it can be a program name with args. 4084 set dummy strip; ac_word=$2 4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4086 printf %s "checking for $ac_word... " >&6; } 4087 if test ${ac_cv_prog_ac_ct_STRIP+y} 4088 then : 4089 printf %s "(cached) " >&6 4090 else $as_nop 4091 if test -n "$ac_ct_STRIP"; then 4092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4093 else 4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4095 for as_dir in $PATH 4096 do 4097 IFS=$as_save_IFS 4098 case $as_dir in #((( 4099 '') as_dir=./ ;; 4100 */) ;; 4101 *) as_dir=$as_dir/ ;; 4102 esac 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4105 ac_cv_prog_ac_ct_STRIP="strip" 4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4107 break 2 4108 fi 4109 done 4110 done 4111 IFS=$as_save_IFS 4112 4113 fi 4114 fi 4115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4116 if test -n "$ac_ct_STRIP"; then 4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4118 printf "%s\n" "$ac_ct_STRIP" >&6; } 4119 else 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4121 printf "%s\n" "no" >&6; } 4122 fi 4123 4124 if test "x$ac_ct_STRIP" = x; then 4125 STRIP=":" 4126 else 4127 case $cross_compiling:$ac_tool_warned in 4128 yes:) 4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4131 ac_tool_warned=yes ;; 4132 esac 4133 STRIP=$ac_ct_STRIP 4134 fi 4135 else 4136 STRIP="$ac_cv_prog_STRIP" 4137 fi 4138 4139 fi 4140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4141 4142 4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4144 printf %s "checking for a race-free mkdir -p... " >&6; } 4145 if test -z "$MKDIR_P"; then 4146 if test ${ac_cv_path_mkdir+y} 4147 then : 4148 printf %s "(cached) " >&6 4149 else $as_nop 4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4152 do 4153 IFS=$as_save_IFS 4154 case $as_dir in #((( 4155 '') as_dir=./ ;; 4156 */) ;; 4157 *) as_dir=$as_dir/ ;; 4158 esac 4159 for ac_prog in mkdir gmkdir; do 4160 for ac_exec_ext in '' $ac_executable_extensions; do 4161 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4162 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4163 'mkdir ('*'coreutils) '* | \ 4164 'BusyBox '* | \ 4165 'mkdir (fileutils) '4.1*) 4166 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4167 break 3;; 4168 esac 4169 done 4170 done 4171 done 4172 IFS=$as_save_IFS 4173 4174 fi 4175 4176 test -d ./--version && rmdir ./--version 4177 if test ${ac_cv_path_mkdir+y}; then 4178 MKDIR_P="$ac_cv_path_mkdir -p" 4179 else 4180 # As a last resort, use the slow shell script. Don't cache a 4181 # value for MKDIR_P within a source directory, because that will 4182 # break other packages using the cache if that directory is 4183 # removed, or if the value is a relative name. 4184 MKDIR_P="$ac_install_sh -d" 4185 fi 4186 fi 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4188 printf "%s\n" "$MKDIR_P" >&6; } 4189 4190 for ac_prog in gawk mawk nawk awk 4191 do 4192 # Extract the first word of "$ac_prog", so it can be a program name with args. 4193 set dummy $ac_prog; ac_word=$2 4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4195 printf %s "checking for $ac_word... " >&6; } 4196 if test ${ac_cv_prog_AWK+y} 4197 then : 4198 printf %s "(cached) " >&6 4199 else $as_nop 4200 if test -n "$AWK"; then 4201 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4202 else 4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4204 for as_dir in $PATH 4205 do 4206 IFS=$as_save_IFS 4207 case $as_dir in #((( 4208 '') as_dir=./ ;; 4209 */) ;; 4210 *) as_dir=$as_dir/ ;; 4211 esac 4212 for ac_exec_ext in '' $ac_executable_extensions; do 4213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4214 ac_cv_prog_AWK="$ac_prog" 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4216 break 2 4217 fi 4218 done 4219 done 4220 IFS=$as_save_IFS 4221 4222 fi 4223 fi 4224 AWK=$ac_cv_prog_AWK 4225 if test -n "$AWK"; then 4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4227 printf "%s\n" "$AWK" >&6; } 4228 else 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4230 printf "%s\n" "no" >&6; } 4231 fi 4232 4233 4234 test -n "$AWK" && break 4235 done 4236 4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4238 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4239 set x ${MAKE-make} 4240 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4241 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4242 then : 4243 printf %s "(cached) " >&6 4244 else $as_nop 4245 cat >conftest.make <<\_ACEOF 4246 SHELL = /bin/sh 4247 all: 4248 @echo '@@@%%%=$(MAKE)=@@@%%%' 4249 _ACEOF 4250 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4251 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4252 *@@@%%%=?*=@@@%%%*) 4253 eval ac_cv_prog_make_${ac_make}_set=yes;; 4254 *) 4255 eval ac_cv_prog_make_${ac_make}_set=no;; 4256 esac 4257 rm -f conftest.make 4258 fi 4259 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4261 printf "%s\n" "yes" >&6; } 4262 SET_MAKE= 4263 else 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4265 printf "%s\n" "no" >&6; } 4266 SET_MAKE="MAKE=${MAKE-make}" 4267 fi 4268 4269 rm -rf .tst 2>/dev/null 4270 mkdir .tst 2>/dev/null 4271 if test -d .tst; then 4272 am__leading_dot=. 4273 else 4274 am__leading_dot=_ 4275 fi 4276 rmdir .tst 2>/dev/null 4277 4278 DEPDIR="${am__leading_dot}deps" 4279 4280 ac_config_commands="$ac_config_commands depfiles" 4281 4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4283 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4284 cat > confinc.mk << 'END' 4285 am__doit: 4286 @echo this is the am__doit target >confinc.out 4287 .PHONY: am__doit 4288 END 4289 am__include="#" 4290 am__quote= 4291 # BSD make does it like this. 4292 echo '.include "confinc.mk" # ignored' > confmf.BSD 4293 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4294 echo 'include confinc.mk # ignored' > confmf.GNU 4295 _am_result=no 4296 for s in GNU BSD; do 4297 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4298 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); } 4302 case $?:`cat confinc.out 2>/dev/null` in #( 4303 '0:this is the am__doit target') : 4304 case $s in #( 4305 BSD) : 4306 am__include='.include' am__quote='"' ;; #( 4307 *) : 4308 am__include='include' am__quote='' ;; 4309 esac ;; #( 4310 *) : 4311 ;; 4312 esac 4313 if test "$am__include" != "#"; then 4314 _am_result="yes ($s style)" 4315 break 4316 fi 4317 done 4318 rm -f confinc.* confmf.* 4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4320 printf "%s\n" "${_am_result}" >&6; } 4321 4322 # Check whether --enable-dependency-tracking was given. 4323 if test ${enable_dependency_tracking+y} 4324 then : 4325 enableval=$enable_dependency_tracking; 4326 fi 4327 4328 if test "x$enable_dependency_tracking" != xno; then 4329 am_depcomp="$ac_aux_dir/depcomp" 4330 AMDEPBACKSLASH='\' 4331 am__nodep='_no' 4332 fi 4333 if test "x$enable_dependency_tracking" != xno; then 4334 AMDEP_TRUE= 4335 AMDEP_FALSE='#' 4336 else 4337 AMDEP_TRUE='#' 4338 AMDEP_FALSE= 4339 fi 4340 4341 4342 # Check whether --enable-silent-rules was given. 4343 if test ${enable_silent_rules+y} 4344 then : 4345 enableval=$enable_silent_rules; 4346 fi 4347 4348 case $enable_silent_rules in # ((( 4349 yes) AM_DEFAULT_VERBOSITY=0;; 4350 no) AM_DEFAULT_VERBOSITY=1;; 4351 *) AM_DEFAULT_VERBOSITY=1;; 4352 esac 4353 am_make=${MAKE-make} 4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4355 printf %s "checking whether $am_make supports nested variables... " >&6; } 4356 if test ${am_cv_make_support_nested_variables+y} 4357 then : 4358 printf %s "(cached) " >&6 4359 else $as_nop 4360 if printf "%s\n" 'TRUE=$(BAR$(V)) 4361 BAR0=false 4362 BAR1=true 4363 V=1 4364 am__doit: 4365 @$(TRUE) 4366 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4367 am_cv_make_support_nested_variables=yes 4368 else 4369 am_cv_make_support_nested_variables=no 4370 fi 4371 fi 4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4373 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4374 if test $am_cv_make_support_nested_variables = yes; then 4375 AM_V='$(V)' 4376 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4377 else 4378 AM_V=$AM_DEFAULT_VERBOSITY 4379 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4380 fi 4381 AM_BACKSLASH='\' 4382 4383 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4384 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4385 # is not polluted with repeated "-I." 4386 am__isrc=' -I$(srcdir)' 4387 # test to see if srcdir already configured 4388 if test -f $srcdir/config.status; then 4389 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4390 fi 4391 fi 4392 4393 # test whether we have cygpath 4394 if test -z "$CYGPATH_W"; then 4395 if (cygpath --version) >/dev/null 2>/dev/null; then 4396 CYGPATH_W='cygpath -w' 4397 else 4398 CYGPATH_W=echo 4399 fi 4400 fi 4401 4402 4403 # Define the identity of the package. 4404 PACKAGE='xset' 4405 VERSION='1.2.5' 4406 4407 4408 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4409 4410 4411 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4412 4413 # Some tools Automake needs. 4414 4415 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4416 4417 4418 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4419 4420 4421 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4422 4423 4424 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4425 4426 4427 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4428 4429 # For better backward compatibility. To be removed once Automake 1.9.x 4430 # dies out for good. For more background, see: 4431 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4432 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4433 mkdir_p='$(MKDIR_P)' 4434 4435 # We need awk for the "check" target (and possibly the TAP driver). The 4436 # system "awk" is bad on some platforms. 4437 # Always define AMTAR for backward compatibility. Yes, it's still used 4438 # in the wild :-( We should find a proper way to deprecate it ... 4439 AMTAR='$${TAR-tar}' 4440 4441 4442 # We'll loop over all known methods to create a tar archive until one works. 4443 _am_tools='gnutar pax cpio none' 4444 4445 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4446 4447 4448 4449 4450 4451 depcc="$CC" am_compiler_list= 4452 4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4454 printf %s "checking dependency style of $depcc... " >&6; } 4455 if test ${am_cv_CC_dependencies_compiler_type+y} 4456 then : 4457 printf %s "(cached) " >&6 4458 else $as_nop 4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4460 # We make a subdir and do the tests there. Otherwise we can end up 4461 # making bogus files that we don't know about and never remove. For 4462 # instance it was reported that on HP-UX the gcc test will end up 4463 # making a dummy file named 'D' -- because '-MD' means "put the output 4464 # in D". 4465 rm -rf conftest.dir 4466 mkdir conftest.dir 4467 # Copy depcomp to subdir because otherwise we won't find it if we're 4468 # using a relative directory. 4469 cp "$am_depcomp" conftest.dir 4470 cd conftest.dir 4471 # We will build objects and dependencies in a subdirectory because 4472 # it helps to detect inapplicable dependency modes. For instance 4473 # both Tru64's cc and ICC support -MD to output dependencies as a 4474 # side effect of compilation, but ICC will put the dependencies in 4475 # the current directory while Tru64 will put them in the object 4476 # directory. 4477 mkdir sub 4478 4479 am_cv_CC_dependencies_compiler_type=none 4480 if test "$am_compiler_list" = ""; then 4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4482 fi 4483 am__universal=false 4484 case " $depcc " in #( 4485 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4486 esac 4487 4488 for depmode in $am_compiler_list; do 4489 # Setup a source with many dependencies, because some compilers 4490 # like to wrap large dependency lists on column 80 (with \), and 4491 # we should not choose a depcomp mode which is confused by this. 4492 # 4493 # We need to recreate these files for each test, as the compiler may 4494 # overwrite some of them when testing with obscure command lines. 4495 # This happens at least with the AIX C compiler. 4496 : > sub/conftest.c 4497 for i in 1 2 3 4 5 6; do 4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4499 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4500 # Solaris 10 /bin/sh. 4501 echo '/* dummy */' > sub/conftst$i.h 4502 done 4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4504 4505 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4506 # mode. It turns out that the SunPro C++ compiler does not properly 4507 # handle '-M -o', and we need to detect this. Also, some Intel 4508 # versions had trouble with output in subdirs. 4509 am__obj=sub/conftest.${OBJEXT-o} 4510 am__minus_obj="-o $am__obj" 4511 case $depmode in 4512 gcc) 4513 # This depmode causes a compiler race in universal mode. 4514 test "$am__universal" = false || continue 4515 ;; 4516 nosideeffect) 4517 # After this tag, mechanisms are not by side-effect, so they'll 4518 # only be used when explicitly requested. 4519 if test "x$enable_dependency_tracking" = xyes; then 4520 continue 4521 else 4522 break 4523 fi 4524 ;; 4525 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4526 # This compiler won't grok '-c -o', but also, the minuso test has 4527 # not run yet. These depmodes are late enough in the game, and 4528 # so weak that their functioning should not be impacted. 4529 am__obj=conftest.${OBJEXT-o} 4530 am__minus_obj= 4531 ;; 4532 none) break ;; 4533 esac 4534 if depmode=$depmode \ 4535 source=sub/conftest.c object=$am__obj \ 4536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4538 >/dev/null 2>conftest.err && 4539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4543 # icc doesn't choke on unknown options, it will just issue warnings 4544 # or remarks (even with -Werror). So we grep stderr for any message 4545 # that says an option was ignored or not supported. 4546 # When given -MP, icc 7.0 and 7.1 complain thusly: 4547 # icc: Command line warning: ignoring option '-M'; no argument required 4548 # The diagnosis changed in icc 8.0: 4549 # icc: Command line remark: option '-MP' not supported 4550 if (grep 'ignoring option' conftest.err || 4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4552 am_cv_CC_dependencies_compiler_type=$depmode 4553 break 4554 fi 4555 fi 4556 done 4557 4558 cd .. 4559 rm -rf conftest.dir 4560 else 4561 am_cv_CC_dependencies_compiler_type=none 4562 fi 4563 4564 fi 4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4566 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4568 4569 if 4570 test "x$enable_dependency_tracking" != xno \ 4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4572 am__fastdepCC_TRUE= 4573 am__fastdepCC_FALSE='#' 4574 else 4575 am__fastdepCC_TRUE='#' 4576 am__fastdepCC_FALSE= 4577 fi 4578 4579 4580 # Variables for tags utilities; see am/tags.am 4581 if test -z "$CTAGS"; then 4582 CTAGS=ctags 4583 fi 4584 4585 if test -z "$ETAGS"; then 4586 ETAGS=etags 4587 fi 4588 4589 if test -z "$CSCOPE"; then 4590 CSCOPE=cscope 4591 fi 4592 4593 4594 4595 # POSIX will say in a future version that running "rm -f" with no argument 4596 # is OK; and we want to be able to make that assumption in our Makefile 4597 # recipes. So use an aggressive probe to check that the usage we want is 4598 # actually supported "in the wild" to an acceptable degree. 4599 # See automake bug#10828. 4600 # To make any issue more visible, cause the running configure to be aborted 4601 # by default if the 'rm' program in use doesn't match our expectations; the 4602 # user can still override this though. 4603 if rm -f && rm -fr && rm -rf; then : OK; else 4604 cat >&2 <<'END' 4605 Oops! 4606 4607 Your 'rm' program seems unable to run without file operands specified 4608 on the command line, even when the '-f' option is present. This is contrary 4609 to the behaviour of most rm programs out there, and not conforming with 4610 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4611 4612 Please tell bug-automake@gnu.org about your system, including the value 4613 of your $PATH and any error possibly output before this message. This 4614 can help us improve future automake versions. 4615 4616 END 4617 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4618 echo 'Configuration will proceed anyway, since you have set the' >&2 4619 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4620 echo >&2 4621 else 4622 cat >&2 <<'END' 4623 Aborting the configuration process, to ensure you take notice of the issue. 4624 4625 You can download and install GNU coreutils to get an 'rm' implementation 4626 that behaves properly: <https://www.gnu.org/software/coreutils/>. 4627 4628 If you want to complete the configuration process using your problematic 4629 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4630 to "yes", and re-run configure. 4631 4632 END 4633 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4634 fi 4635 fi 4636 4637 4638 # Require xorg-macros: XORG_MANPAGE_SECTIONS 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4652 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4653 if test ${ac_cv_c_undeclared_builtin_options+y} 4654 then : 4655 printf %s "(cached) " >&6 4656 else $as_nop 4657 ac_save_CFLAGS=$CFLAGS 4658 ac_cv_c_undeclared_builtin_options='cannot detect' 4659 for ac_arg in '' -fno-builtin; do 4660 CFLAGS="$ac_save_CFLAGS $ac_arg" 4661 # This test program should *not* compile successfully. 4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4663 /* end confdefs.h. */ 4664 4665 int 4666 main (void) 4667 { 4668 (void) strchr; 4669 ; 4670 return 0; 4671 } 4672 _ACEOF 4673 if ac_fn_c_try_compile "$LINENO" 4674 then : 4675 4676 else $as_nop 4677 # This test program should compile successfully. 4678 # No library function is consistently available on 4679 # freestanding implementations, so test against a dummy 4680 # declaration. Include always-available headers on the 4681 # off chance that they somehow elicit warnings. 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683 /* end confdefs.h. */ 4684 #include <float.h> 4685 #include <limits.h> 4686 #include <stdarg.h> 4687 #include <stddef.h> 4688 extern void ac_decl (int, char *); 4689 4690 int 4691 main (void) 4692 { 4693 (void) ac_decl (0, (char *) 0); 4694 (void) ac_decl; 4695 4696 ; 4697 return 0; 4698 } 4699 _ACEOF 4700 if ac_fn_c_try_compile "$LINENO" 4701 then : 4702 if test x"$ac_arg" = x 4703 then : 4704 ac_cv_c_undeclared_builtin_options='none needed' 4705 else $as_nop 4706 ac_cv_c_undeclared_builtin_options=$ac_arg 4707 fi 4708 break 4709 fi 4710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4711 fi 4712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4713 done 4714 CFLAGS=$ac_save_CFLAGS 4715 4716 fi 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4718 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4719 case $ac_cv_c_undeclared_builtin_options in #( 4720 'cannot detect') : 4721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4722 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4723 as_fn_error $? "cannot make $CC report undeclared builtins 4724 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4725 'none needed') : 4726 ac_c_undeclared_builtin_options='' ;; #( 4727 *) : 4728 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4729 esac 4730 4731 4732 4733 4734 4735 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4736 if test "x$ac_cv_have_decl___clang__" = xyes 4737 then : 4738 CLANGCC="yes" 4739 else $as_nop 4740 CLANGCC="no" 4741 fi 4742 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4743 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4744 then : 4745 INTELCC="yes" 4746 else $as_nop 4747 INTELCC="no" 4748 fi 4749 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4750 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4751 then : 4752 SUNCC="yes" 4753 else $as_nop 4754 SUNCC="no" 4755 fi 4756 4757 4758 4759 4760 4761 4762 4763 4764 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4765 if test -n "$ac_tool_prefix"; then 4766 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4767 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4769 printf %s "checking for $ac_word... " >&6; } 4770 if test ${ac_cv_path_PKG_CONFIG+y} 4771 then : 4772 printf %s "(cached) " >&6 4773 else $as_nop 4774 case $PKG_CONFIG in 4775 [\\/]* | ?:[\\/]*) 4776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4777 ;; 4778 *) 4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4780 for as_dir in $PATH 4781 do 4782 IFS=$as_save_IFS 4783 case $as_dir in #((( 4784 '') as_dir=./ ;; 4785 */) ;; 4786 *) as_dir=$as_dir/ ;; 4787 esac 4788 for ac_exec_ext in '' $ac_executable_extensions; do 4789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4790 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4792 break 2 4793 fi 4794 done 4795 done 4796 IFS=$as_save_IFS 4797 4798 ;; 4799 esac 4800 fi 4801 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4802 if test -n "$PKG_CONFIG"; then 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4804 printf "%s\n" "$PKG_CONFIG" >&6; } 4805 else 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807 printf "%s\n" "no" >&6; } 4808 fi 4809 4810 4811 fi 4812 if test -z "$ac_cv_path_PKG_CONFIG"; then 4813 ac_pt_PKG_CONFIG=$PKG_CONFIG 4814 # Extract the first word of "pkg-config", so it can be a program name with args. 4815 set dummy pkg-config; ac_word=$2 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4817 printf %s "checking for $ac_word... " >&6; } 4818 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4819 then : 4820 printf %s "(cached) " >&6 4821 else $as_nop 4822 case $ac_pt_PKG_CONFIG in 4823 [\\/]* | ?:[\\/]*) 4824 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4825 ;; 4826 *) 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828 for as_dir in $PATH 4829 do 4830 IFS=$as_save_IFS 4831 case $as_dir in #((( 4832 '') as_dir=./ ;; 4833 */) ;; 4834 *) as_dir=$as_dir/ ;; 4835 esac 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4838 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842 done 4843 done 4844 IFS=$as_save_IFS 4845 4846 ;; 4847 esac 4848 fi 4849 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4850 if test -n "$ac_pt_PKG_CONFIG"; then 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4852 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4853 else 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855 printf "%s\n" "no" >&6; } 4856 fi 4857 4858 if test "x$ac_pt_PKG_CONFIG" = x; then 4859 PKG_CONFIG="" 4860 else 4861 case $cross_compiling:$ac_tool_warned in 4862 yes:) 4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4865 ac_tool_warned=yes ;; 4866 esac 4867 PKG_CONFIG=$ac_pt_PKG_CONFIG 4868 fi 4869 else 4870 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4871 fi 4872 4873 fi 4874 if test -n "$PKG_CONFIG"; then 4875 _pkg_min_version=0.9.0 4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4877 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4878 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4880 printf "%s\n" "yes" >&6; } 4881 else 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4883 printf "%s\n" "no" >&6; } 4884 PKG_CONFIG="" 4885 fi 4886 fi 4887 4888 4889 # Make sure we can run config.sub. 4890 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4891 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4892 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4894 printf %s "checking build system type... " >&6; } 4895 if test ${ac_cv_build+y} 4896 then : 4897 printf %s "(cached) " >&6 4898 else $as_nop 4899 ac_build_alias=$build_alias 4900 test "x$ac_build_alias" = x && 4901 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4902 test "x$ac_build_alias" = x && 4903 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4904 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4905 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4906 4907 fi 4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4909 printf "%s\n" "$ac_cv_build" >&6; } 4910 case $ac_cv_build in 4911 *-*-*) ;; 4912 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4913 esac 4914 build=$ac_cv_build 4915 ac_save_IFS=$IFS; IFS='-' 4916 set x $ac_cv_build 4917 shift 4918 build_cpu=$1 4919 build_vendor=$2 4920 shift; shift 4921 # Remember, the first character of IFS is used to create $*, 4922 # except with old shells: 4923 build_os=$* 4924 IFS=$ac_save_IFS 4925 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4926 4927 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4929 printf %s "checking host system type... " >&6; } 4930 if test ${ac_cv_host+y} 4931 then : 4932 printf %s "(cached) " >&6 4933 else $as_nop 4934 if test "x$host_alias" = x; then 4935 ac_cv_host=$ac_cv_build 4936 else 4937 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4938 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4939 fi 4940 4941 fi 4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4943 printf "%s\n" "$ac_cv_host" >&6; } 4944 case $ac_cv_host in 4945 *-*-*) ;; 4946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4947 esac 4948 host=$ac_cv_host 4949 ac_save_IFS=$IFS; IFS='-' 4950 set x $ac_cv_host 4951 shift 4952 host_cpu=$1 4953 host_vendor=$2 4954 shift; shift 4955 # Remember, the first character of IFS is used to create $*, 4956 # except with old shells: 4957 host_os=$* 4958 IFS=$ac_save_IFS 4959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4960 4961 4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4963 printf %s "checking for a sed that does not truncate output... " >&6; } 4964 if test ${ac_cv_path_SED+y} 4965 then : 4966 printf %s "(cached) " >&6 4967 else $as_nop 4968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4969 for ac_i in 1 2 3 4 5 6 7; do 4970 ac_script="$ac_script$as_nl$ac_script" 4971 done 4972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4973 { ac_script=; unset ac_script;} 4974 if test -z "$SED"; then 4975 ac_path_SED_found=false 4976 # Loop through the user's path and test for each of PROGNAME-LIST 4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4978 for as_dir in $PATH 4979 do 4980 IFS=$as_save_IFS 4981 case $as_dir in #((( 4982 '') as_dir=./ ;; 4983 */) ;; 4984 *) as_dir=$as_dir/ ;; 4985 esac 4986 for ac_prog in sed gsed 4987 do 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4990 as_fn_executable_p "$ac_path_SED" || continue 4991 # Check for GNU ac_path_SED and select it if it is found. 4992 # Check for GNU $ac_path_SED 4993 case `"$ac_path_SED" --version 2>&1` in 4994 *GNU*) 4995 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4996 *) 4997 ac_count=0 4998 printf %s 0123456789 >"conftest.in" 4999 while : 5000 do 5001 cat "conftest.in" "conftest.in" >"conftest.tmp" 5002 mv "conftest.tmp" "conftest.in" 5003 cp "conftest.in" "conftest.nl" 5004 printf "%s\n" '' >> "conftest.nl" 5005 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5007 as_fn_arith $ac_count + 1 && ac_count=$as_val 5008 if test $ac_count -gt ${ac_path_SED_max-0}; then 5009 # Best one so far, save it but keep looking for a better one 5010 ac_cv_path_SED="$ac_path_SED" 5011 ac_path_SED_max=$ac_count 5012 fi 5013 # 10*(2^10) chars as input seems more than enough 5014 test $ac_count -gt 10 && break 5015 done 5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5017 esac 5018 5019 $ac_path_SED_found && break 3 5020 done 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 if test -z "$ac_cv_path_SED"; then 5025 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5026 fi 5027 else 5028 ac_cv_path_SED=$SED 5029 fi 5030 5031 fi 5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5033 printf "%s\n" "$ac_cv_path_SED" >&6; } 5034 SED="$ac_cv_path_SED" 5035 rm -f conftest.sed 5036 5037 5038 5039 5040 5041 5042 # Check whether --enable-selective-werror was given. 5043 if test ${enable_selective_werror+y} 5044 then : 5045 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5046 else $as_nop 5047 SELECTIVE_WERROR=yes 5048 fi 5049 5050 5051 5052 5053 5054 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5055 if test "x$SUNCC" = "xyes"; then 5056 BASE_CFLAGS="-v" 5057 else 5058 BASE_CFLAGS="" 5059 fi 5060 5061 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 xorg_testset_save_CFLAGS="$CFLAGS" 5076 5077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5081 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5082 then : 5083 printf %s "(cached) " >&6 5084 else $as_nop 5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5086 /* end confdefs.h. */ 5087 int i; 5088 _ACEOF 5089 if ac_fn_c_try_compile "$LINENO" 5090 then : 5091 xorg_cv_cc_flag_unknown_warning_option=yes 5092 else $as_nop 5093 xorg_cv_cc_flag_unknown_warning_option=no 5094 fi 5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5096 fi 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101 fi 5102 5103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5106 fi 5107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5111 then : 5112 printf %s "(cached) " >&6 5113 else $as_nop 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115 /* end confdefs.h. */ 5116 int i; 5117 _ACEOF 5118 if ac_fn_c_try_compile "$LINENO" 5119 then : 5120 xorg_cv_cc_flag_unused_command_line_argument=yes 5121 else $as_nop 5122 xorg_cv_cc_flag_unused_command_line_argument=no 5123 fi 5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5125 fi 5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5129 CFLAGS="$xorg_testset_save_CFLAGS" 5130 fi 5131 5132 found="no" 5133 5134 if test $found = "no" ; then 5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5137 fi 5138 5139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141 fi 5142 5143 CFLAGS="$CFLAGS -Wall" 5144 5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5146 printf %s "checking if $CC supports -Wall... " >&6; } 5147 cacheid=xorg_cv_cc_flag__Wall 5148 if eval test \${$cacheid+y} 5149 then : 5150 printf %s "(cached) " >&6 5151 else $as_nop 5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153 /* end confdefs.h. */ 5154 int i; 5155 int 5156 main (void) 5157 { 5158 5159 ; 5160 return 0; 5161 } 5162 _ACEOF 5163 if ac_fn_c_try_link "$LINENO" 5164 then : 5165 eval $cacheid=yes 5166 else $as_nop 5167 eval $cacheid=no 5168 fi 5169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5170 conftest$ac_exeext conftest.$ac_ext 5171 fi 5172 5173 5174 CFLAGS="$xorg_testset_save_CFLAGS" 5175 5176 eval supported=\$$cacheid 5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5178 printf "%s\n" "$supported" >&6; } 5179 if test "$supported" = "yes" ; then 5180 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5181 found="yes" 5182 fi 5183 fi 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 xorg_testset_save_CFLAGS="$CFLAGS" 5200 5201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5205 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5206 then : 5207 printf %s "(cached) " >&6 5208 else $as_nop 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210 /* end confdefs.h. */ 5211 int i; 5212 _ACEOF 5213 if ac_fn_c_try_compile "$LINENO" 5214 then : 5215 xorg_cv_cc_flag_unknown_warning_option=yes 5216 else $as_nop 5217 xorg_cv_cc_flag_unknown_warning_option=no 5218 fi 5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5220 fi 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225 fi 5226 5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5230 fi 5231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5235 then : 5236 printf %s "(cached) " >&6 5237 else $as_nop 5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5239 /* end confdefs.h. */ 5240 int i; 5241 _ACEOF 5242 if ac_fn_c_try_compile "$LINENO" 5243 then : 5244 xorg_cv_cc_flag_unused_command_line_argument=yes 5245 else $as_nop 5246 xorg_cv_cc_flag_unused_command_line_argument=no 5247 fi 5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5249 fi 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5251 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5253 CFLAGS="$xorg_testset_save_CFLAGS" 5254 fi 5255 5256 found="no" 5257 5258 if test $found = "no" ; then 5259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5261 fi 5262 5263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5265 fi 5266 5267 CFLAGS="$CFLAGS -Wpointer-arith" 5268 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5270 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5271 cacheid=xorg_cv_cc_flag__Wpointer_arith 5272 if eval test \${$cacheid+y} 5273 then : 5274 printf %s "(cached) " >&6 5275 else $as_nop 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277 /* end confdefs.h. */ 5278 int i; 5279 int 5280 main (void) 5281 { 5282 5283 ; 5284 return 0; 5285 } 5286 _ACEOF 5287 if ac_fn_c_try_link "$LINENO" 5288 then : 5289 eval $cacheid=yes 5290 else $as_nop 5291 eval $cacheid=no 5292 fi 5293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5294 conftest$ac_exeext conftest.$ac_ext 5295 fi 5296 5297 5298 CFLAGS="$xorg_testset_save_CFLAGS" 5299 5300 eval supported=\$$cacheid 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5302 printf "%s\n" "$supported" >&6; } 5303 if test "$supported" = "yes" ; then 5304 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5305 found="yes" 5306 fi 5307 fi 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 xorg_testset_save_CFLAGS="$CFLAGS" 5324 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5329 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5330 then : 5331 printf %s "(cached) " >&6 5332 else $as_nop 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334 /* end confdefs.h. */ 5335 int i; 5336 _ACEOF 5337 if ac_fn_c_try_compile "$LINENO" 5338 then : 5339 xorg_cv_cc_flag_unknown_warning_option=yes 5340 else $as_nop 5341 xorg_cv_cc_flag_unknown_warning_option=no 5342 fi 5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5344 fi 5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5346 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5348 CFLAGS="$xorg_testset_save_CFLAGS" 5349 fi 5350 5351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5354 fi 5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5359 then : 5360 printf %s "(cached) " >&6 5361 else $as_nop 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363 /* end confdefs.h. */ 5364 int i; 5365 _ACEOF 5366 if ac_fn_c_try_compile "$LINENO" 5367 then : 5368 xorg_cv_cc_flag_unused_command_line_argument=yes 5369 else $as_nop 5370 xorg_cv_cc_flag_unused_command_line_argument=no 5371 fi 5372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5373 fi 5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5375 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378 fi 5379 5380 found="no" 5381 5382 if test $found = "no" ; then 5383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 fi 5386 5387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5389 fi 5390 5391 CFLAGS="$CFLAGS -Wmissing-declarations" 5392 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5394 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5395 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5396 if eval test \${$cacheid+y} 5397 then : 5398 printf %s "(cached) " >&6 5399 else $as_nop 5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5401 /* end confdefs.h. */ 5402 int i; 5403 int 5404 main (void) 5405 { 5406 5407 ; 5408 return 0; 5409 } 5410 _ACEOF 5411 if ac_fn_c_try_link "$LINENO" 5412 then : 5413 eval $cacheid=yes 5414 else $as_nop 5415 eval $cacheid=no 5416 fi 5417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5418 conftest$ac_exeext conftest.$ac_ext 5419 fi 5420 5421 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423 5424 eval supported=\$$cacheid 5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5426 printf "%s\n" "$supported" >&6; } 5427 if test "$supported" = "yes" ; then 5428 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5429 found="yes" 5430 fi 5431 fi 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 xorg_testset_save_CFLAGS="$CFLAGS" 5448 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5452 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5453 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5454 then : 5455 printf %s "(cached) " >&6 5456 else $as_nop 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458 /* end confdefs.h. */ 5459 int i; 5460 _ACEOF 5461 if ac_fn_c_try_compile "$LINENO" 5462 then : 5463 xorg_cv_cc_flag_unknown_warning_option=yes 5464 else $as_nop 5465 xorg_cv_cc_flag_unknown_warning_option=no 5466 fi 5467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5468 fi 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5470 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473 fi 5474 5475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5478 fi 5479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5481 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5482 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5483 then : 5484 printf %s "(cached) " >&6 5485 else $as_nop 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487 /* end confdefs.h. */ 5488 int i; 5489 _ACEOF 5490 if ac_fn_c_try_compile "$LINENO" 5491 then : 5492 xorg_cv_cc_flag_unused_command_line_argument=yes 5493 else $as_nop 5494 xorg_cv_cc_flag_unused_command_line_argument=no 5495 fi 5496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5497 fi 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5499 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5501 CFLAGS="$xorg_testset_save_CFLAGS" 5502 fi 5503 5504 found="no" 5505 5506 if test $found = "no" ; then 5507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5509 fi 5510 5511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5513 fi 5514 5515 CFLAGS="$CFLAGS -Wformat=2" 5516 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5518 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5519 cacheid=xorg_cv_cc_flag__Wformat_2 5520 if eval test \${$cacheid+y} 5521 then : 5522 printf %s "(cached) " >&6 5523 else $as_nop 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525 /* end confdefs.h. */ 5526 int i; 5527 int 5528 main (void) 5529 { 5530 5531 ; 5532 return 0; 5533 } 5534 _ACEOF 5535 if ac_fn_c_try_link "$LINENO" 5536 then : 5537 eval $cacheid=yes 5538 else $as_nop 5539 eval $cacheid=no 5540 fi 5541 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5542 conftest$ac_exeext conftest.$ac_ext 5543 fi 5544 5545 5546 CFLAGS="$xorg_testset_save_CFLAGS" 5547 5548 eval supported=\$$cacheid 5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5550 printf "%s\n" "$supported" >&6; } 5551 if test "$supported" = "yes" ; then 5552 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5553 found="yes" 5554 fi 5555 fi 5556 5557 if test $found = "no" ; then 5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5560 fi 5561 5562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5564 fi 5565 5566 CFLAGS="$CFLAGS -Wformat" 5567 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5569 printf %s "checking if $CC supports -Wformat... " >&6; } 5570 cacheid=xorg_cv_cc_flag__Wformat 5571 if eval test \${$cacheid+y} 5572 then : 5573 printf %s "(cached) " >&6 5574 else $as_nop 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576 /* end confdefs.h. */ 5577 int i; 5578 int 5579 main (void) 5580 { 5581 5582 ; 5583 return 0; 5584 } 5585 _ACEOF 5586 if ac_fn_c_try_link "$LINENO" 5587 then : 5588 eval $cacheid=yes 5589 else $as_nop 5590 eval $cacheid=no 5591 fi 5592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5593 conftest$ac_exeext conftest.$ac_ext 5594 fi 5595 5596 5597 CFLAGS="$xorg_testset_save_CFLAGS" 5598 5599 eval supported=\$$cacheid 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5601 printf "%s\n" "$supported" >&6; } 5602 if test "$supported" = "yes" ; then 5603 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5604 found="yes" 5605 fi 5606 fi 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 xorg_testset_save_CFLAGS="$CFLAGS" 5625 5626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5630 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5631 then : 5632 printf %s "(cached) " >&6 5633 else $as_nop 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635 /* end confdefs.h. */ 5636 int i; 5637 _ACEOF 5638 if ac_fn_c_try_compile "$LINENO" 5639 then : 5640 xorg_cv_cc_flag_unknown_warning_option=yes 5641 else $as_nop 5642 xorg_cv_cc_flag_unknown_warning_option=no 5643 fi 5644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5645 fi 5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5649 CFLAGS="$xorg_testset_save_CFLAGS" 5650 fi 5651 5652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 fi 5656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5660 then : 5661 printf %s "(cached) " >&6 5662 else $as_nop 5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5664 /* end confdefs.h. */ 5665 int i; 5666 _ACEOF 5667 if ac_fn_c_try_compile "$LINENO" 5668 then : 5669 xorg_cv_cc_flag_unused_command_line_argument=yes 5670 else $as_nop 5671 xorg_cv_cc_flag_unused_command_line_argument=no 5672 fi 5673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5674 fi 5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5678 CFLAGS="$xorg_testset_save_CFLAGS" 5679 fi 5680 5681 found="no" 5682 5683 if test $found = "no" ; then 5684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5686 fi 5687 5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5690 fi 5691 5692 CFLAGS="$CFLAGS -Wstrict-prototypes" 5693 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5695 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5696 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5697 if eval test \${$cacheid+y} 5698 then : 5699 printf %s "(cached) " >&6 5700 else $as_nop 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702 /* end confdefs.h. */ 5703 int i; 5704 int 5705 main (void) 5706 { 5707 5708 ; 5709 return 0; 5710 } 5711 _ACEOF 5712 if ac_fn_c_try_link "$LINENO" 5713 then : 5714 eval $cacheid=yes 5715 else $as_nop 5716 eval $cacheid=no 5717 fi 5718 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5719 conftest$ac_exeext conftest.$ac_ext 5720 fi 5721 5722 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724 5725 eval supported=\$$cacheid 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5727 printf "%s\n" "$supported" >&6; } 5728 if test "$supported" = "yes" ; then 5729 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5730 found="yes" 5731 fi 5732 fi 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 xorg_testset_save_CFLAGS="$CFLAGS" 5749 5750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5755 then : 5756 printf %s "(cached) " >&6 5757 else $as_nop 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759 /* end confdefs.h. */ 5760 int i; 5761 _ACEOF 5762 if ac_fn_c_try_compile "$LINENO" 5763 then : 5764 xorg_cv_cc_flag_unknown_warning_option=yes 5765 else $as_nop 5766 xorg_cv_cc_flag_unknown_warning_option=no 5767 fi 5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5769 fi 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5773 CFLAGS="$xorg_testset_save_CFLAGS" 5774 fi 5775 5776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5779 fi 5780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5784 then : 5785 printf %s "(cached) " >&6 5786 else $as_nop 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5788 /* end confdefs.h. */ 5789 int i; 5790 _ACEOF 5791 if ac_fn_c_try_compile "$LINENO" 5792 then : 5793 xorg_cv_cc_flag_unused_command_line_argument=yes 5794 else $as_nop 5795 xorg_cv_cc_flag_unused_command_line_argument=no 5796 fi 5797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5798 fi 5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5802 CFLAGS="$xorg_testset_save_CFLAGS" 5803 fi 5804 5805 found="no" 5806 5807 if test $found = "no" ; then 5808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5810 fi 5811 5812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5814 fi 5815 5816 CFLAGS="$CFLAGS -Wmissing-prototypes" 5817 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5819 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5820 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5821 if eval test \${$cacheid+y} 5822 then : 5823 printf %s "(cached) " >&6 5824 else $as_nop 5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826 /* end confdefs.h. */ 5827 int i; 5828 int 5829 main (void) 5830 { 5831 5832 ; 5833 return 0; 5834 } 5835 _ACEOF 5836 if ac_fn_c_try_link "$LINENO" 5837 then : 5838 eval $cacheid=yes 5839 else $as_nop 5840 eval $cacheid=no 5841 fi 5842 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5843 conftest$ac_exeext conftest.$ac_ext 5844 fi 5845 5846 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848 5849 eval supported=\$$cacheid 5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5851 printf "%s\n" "$supported" >&6; } 5852 if test "$supported" = "yes" ; then 5853 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5854 found="yes" 5855 fi 5856 fi 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 xorg_testset_save_CFLAGS="$CFLAGS" 5873 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5878 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5879 then : 5880 printf %s "(cached) " >&6 5881 else $as_nop 5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5883 /* end confdefs.h. */ 5884 int i; 5885 _ACEOF 5886 if ac_fn_c_try_compile "$LINENO" 5887 then : 5888 xorg_cv_cc_flag_unknown_warning_option=yes 5889 else $as_nop 5890 xorg_cv_cc_flag_unknown_warning_option=no 5891 fi 5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5893 fi 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5897 CFLAGS="$xorg_testset_save_CFLAGS" 5898 fi 5899 5900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5903 fi 5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5908 then : 5909 printf %s "(cached) " >&6 5910 else $as_nop 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912 /* end confdefs.h. */ 5913 int i; 5914 _ACEOF 5915 if ac_fn_c_try_compile "$LINENO" 5916 then : 5917 xorg_cv_cc_flag_unused_command_line_argument=yes 5918 else $as_nop 5919 xorg_cv_cc_flag_unused_command_line_argument=no 5920 fi 5921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5922 fi 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927 fi 5928 5929 found="no" 5930 5931 if test $found = "no" ; then 5932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5934 fi 5935 5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5938 fi 5939 5940 CFLAGS="$CFLAGS -Wnested-externs" 5941 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5943 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5944 cacheid=xorg_cv_cc_flag__Wnested_externs 5945 if eval test \${$cacheid+y} 5946 then : 5947 printf %s "(cached) " >&6 5948 else $as_nop 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950 /* end confdefs.h. */ 5951 int i; 5952 int 5953 main (void) 5954 { 5955 5956 ; 5957 return 0; 5958 } 5959 _ACEOF 5960 if ac_fn_c_try_link "$LINENO" 5961 then : 5962 eval $cacheid=yes 5963 else $as_nop 5964 eval $cacheid=no 5965 fi 5966 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5967 conftest$ac_exeext conftest.$ac_ext 5968 fi 5969 5970 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972 5973 eval supported=\$$cacheid 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5975 printf "%s\n" "$supported" >&6; } 5976 if test "$supported" = "yes" ; then 5977 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5978 found="yes" 5979 fi 5980 fi 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 xorg_testset_save_CFLAGS="$CFLAGS" 5997 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6001 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6002 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6003 then : 6004 printf %s "(cached) " >&6 6005 else $as_nop 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007 /* end confdefs.h. */ 6008 int i; 6009 _ACEOF 6010 if ac_fn_c_try_compile "$LINENO" 6011 then : 6012 xorg_cv_cc_flag_unknown_warning_option=yes 6013 else $as_nop 6014 xorg_cv_cc_flag_unknown_warning_option=no 6015 fi 6016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6017 fi 6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6019 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022 fi 6023 6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6027 fi 6028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6030 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6031 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6032 then : 6033 printf %s "(cached) " >&6 6034 else $as_nop 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036 /* end confdefs.h. */ 6037 int i; 6038 _ACEOF 6039 if ac_fn_c_try_compile "$LINENO" 6040 then : 6041 xorg_cv_cc_flag_unused_command_line_argument=yes 6042 else $as_nop 6043 xorg_cv_cc_flag_unused_command_line_argument=no 6044 fi 6045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6046 fi 6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6048 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051 fi 6052 6053 found="no" 6054 6055 if test $found = "no" ; then 6056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6058 fi 6059 6060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6062 fi 6063 6064 CFLAGS="$CFLAGS -Wbad-function-cast" 6065 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6067 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6068 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6069 if eval test \${$cacheid+y} 6070 then : 6071 printf %s "(cached) " >&6 6072 else $as_nop 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074 /* end confdefs.h. */ 6075 int i; 6076 int 6077 main (void) 6078 { 6079 6080 ; 6081 return 0; 6082 } 6083 _ACEOF 6084 if ac_fn_c_try_link "$LINENO" 6085 then : 6086 eval $cacheid=yes 6087 else $as_nop 6088 eval $cacheid=no 6089 fi 6090 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6091 conftest$ac_exeext conftest.$ac_ext 6092 fi 6093 6094 6095 CFLAGS="$xorg_testset_save_CFLAGS" 6096 6097 eval supported=\$$cacheid 6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6099 printf "%s\n" "$supported" >&6; } 6100 if test "$supported" = "yes" ; then 6101 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6102 found="yes" 6103 fi 6104 fi 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 xorg_testset_save_CFLAGS="$CFLAGS" 6121 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6126 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6127 then : 6128 printf %s "(cached) " >&6 6129 else $as_nop 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131 /* end confdefs.h. */ 6132 int i; 6133 _ACEOF 6134 if ac_fn_c_try_compile "$LINENO" 6135 then : 6136 xorg_cv_cc_flag_unknown_warning_option=yes 6137 else $as_nop 6138 xorg_cv_cc_flag_unknown_warning_option=no 6139 fi 6140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6141 fi 6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6143 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6145 CFLAGS="$xorg_testset_save_CFLAGS" 6146 fi 6147 6148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6151 fi 6152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6156 then : 6157 printf %s "(cached) " >&6 6158 else $as_nop 6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6160 /* end confdefs.h. */ 6161 int i; 6162 _ACEOF 6163 if ac_fn_c_try_compile "$LINENO" 6164 then : 6165 xorg_cv_cc_flag_unused_command_line_argument=yes 6166 else $as_nop 6167 xorg_cv_cc_flag_unused_command_line_argument=no 6168 fi 6169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6170 fi 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175 fi 6176 6177 found="no" 6178 6179 if test $found = "no" ; then 6180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6182 fi 6183 6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6186 fi 6187 6188 CFLAGS="$CFLAGS -Wold-style-definition" 6189 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6191 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6192 cacheid=xorg_cv_cc_flag__Wold_style_definition 6193 if eval test \${$cacheid+y} 6194 then : 6195 printf %s "(cached) " >&6 6196 else $as_nop 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198 /* end confdefs.h. */ 6199 int i; 6200 int 6201 main (void) 6202 { 6203 6204 ; 6205 return 0; 6206 } 6207 _ACEOF 6208 if ac_fn_c_try_link "$LINENO" 6209 then : 6210 eval $cacheid=yes 6211 else $as_nop 6212 eval $cacheid=no 6213 fi 6214 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6215 conftest$ac_exeext conftest.$ac_ext 6216 fi 6217 6218 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220 6221 eval supported=\$$cacheid 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6223 printf "%s\n" "$supported" >&6; } 6224 if test "$supported" = "yes" ; then 6225 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6226 found="yes" 6227 fi 6228 fi 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -fd" 6240 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6242 printf %s "checking if $CC supports -fd... " >&6; } 6243 cacheid=xorg_cv_cc_flag__fd 6244 if eval test \${$cacheid+y} 6245 then : 6246 printf %s "(cached) " >&6 6247 else $as_nop 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249 /* end confdefs.h. */ 6250 int i; 6251 int 6252 main (void) 6253 { 6254 6255 ; 6256 return 0; 6257 } 6258 _ACEOF 6259 if ac_fn_c_try_link "$LINENO" 6260 then : 6261 eval $cacheid=yes 6262 else $as_nop 6263 eval $cacheid=no 6264 fi 6265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6266 conftest$ac_exeext conftest.$ac_ext 6267 fi 6268 6269 6270 CFLAGS="$xorg_testset_save_CFLAGS" 6271 6272 eval supported=\$$cacheid 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6274 printf "%s\n" "$supported" >&6; } 6275 if test "$supported" = "yes" ; then 6276 BASE_CFLAGS="$BASE_CFLAGS -fd" 6277 found="yes" 6278 fi 6279 fi 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 xorg_testset_save_CFLAGS="$CFLAGS" 6296 6297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6301 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6302 then : 6303 printf %s "(cached) " >&6 6304 else $as_nop 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306 /* end confdefs.h. */ 6307 int i; 6308 _ACEOF 6309 if ac_fn_c_try_compile "$LINENO" 6310 then : 6311 xorg_cv_cc_flag_unknown_warning_option=yes 6312 else $as_nop 6313 xorg_cv_cc_flag_unknown_warning_option=no 6314 fi 6315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6316 fi 6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321 fi 6322 6323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6326 fi 6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6331 then : 6332 printf %s "(cached) " >&6 6333 else $as_nop 6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6335 /* end confdefs.h. */ 6336 int i; 6337 _ACEOF 6338 if ac_fn_c_try_compile "$LINENO" 6339 then : 6340 xorg_cv_cc_flag_unused_command_line_argument=yes 6341 else $as_nop 6342 xorg_cv_cc_flag_unused_command_line_argument=no 6343 fi 6344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6345 fi 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350 fi 6351 6352 found="no" 6353 6354 if test $found = "no" ; then 6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6357 fi 6358 6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 fi 6362 6363 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6364 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6366 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6367 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6368 if eval test \${$cacheid+y} 6369 then : 6370 printf %s "(cached) " >&6 6371 else $as_nop 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373 /* end confdefs.h. */ 6374 int i; 6375 int 6376 main (void) 6377 { 6378 6379 ; 6380 return 0; 6381 } 6382 _ACEOF 6383 if ac_fn_c_try_link "$LINENO" 6384 then : 6385 eval $cacheid=yes 6386 else $as_nop 6387 eval $cacheid=no 6388 fi 6389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6390 conftest$ac_exeext conftest.$ac_ext 6391 fi 6392 6393 6394 CFLAGS="$xorg_testset_save_CFLAGS" 6395 6396 eval supported=\$$cacheid 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6398 printf "%s\n" "$supported" >&6; } 6399 if test "$supported" = "yes" ; then 6400 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6401 found="yes" 6402 fi 6403 fi 6404 6405 6406 6407 6408 6409 # This chunk adds additional warnings that could catch undesired effects. 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 xorg_testset_save_CFLAGS="$CFLAGS" 6424 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6429 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6430 then : 6431 printf %s "(cached) " >&6 6432 else $as_nop 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434 /* end confdefs.h. */ 6435 int i; 6436 _ACEOF 6437 if ac_fn_c_try_compile "$LINENO" 6438 then : 6439 xorg_cv_cc_flag_unknown_warning_option=yes 6440 else $as_nop 6441 xorg_cv_cc_flag_unknown_warning_option=no 6442 fi 6443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6444 fi 6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6446 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6448 CFLAGS="$xorg_testset_save_CFLAGS" 6449 fi 6450 6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6457 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6458 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6459 then : 6460 printf %s "(cached) " >&6 6461 else $as_nop 6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6463 /* end confdefs.h. */ 6464 int i; 6465 _ACEOF 6466 if ac_fn_c_try_compile "$LINENO" 6467 then : 6468 xorg_cv_cc_flag_unused_command_line_argument=yes 6469 else $as_nop 6470 xorg_cv_cc_flag_unused_command_line_argument=no 6471 fi 6472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6473 fi 6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6475 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478 fi 6479 6480 found="no" 6481 6482 if test $found = "no" ; then 6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 6487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 fi 6490 6491 CFLAGS="$CFLAGS -Wunused" 6492 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6494 printf %s "checking if $CC supports -Wunused... " >&6; } 6495 cacheid=xorg_cv_cc_flag__Wunused 6496 if eval test \${$cacheid+y} 6497 then : 6498 printf %s "(cached) " >&6 6499 else $as_nop 6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501 /* end confdefs.h. */ 6502 int i; 6503 int 6504 main (void) 6505 { 6506 6507 ; 6508 return 0; 6509 } 6510 _ACEOF 6511 if ac_fn_c_try_link "$LINENO" 6512 then : 6513 eval $cacheid=yes 6514 else $as_nop 6515 eval $cacheid=no 6516 fi 6517 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6518 conftest$ac_exeext conftest.$ac_ext 6519 fi 6520 6521 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523 6524 eval supported=\$$cacheid 6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6526 printf "%s\n" "$supported" >&6; } 6527 if test "$supported" = "yes" ; then 6528 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6529 found="yes" 6530 fi 6531 fi 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 xorg_testset_save_CFLAGS="$CFLAGS" 6548 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6553 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6554 then : 6555 printf %s "(cached) " >&6 6556 else $as_nop 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558 /* end confdefs.h. */ 6559 int i; 6560 _ACEOF 6561 if ac_fn_c_try_compile "$LINENO" 6562 then : 6563 xorg_cv_cc_flag_unknown_warning_option=yes 6564 else $as_nop 6565 xorg_cv_cc_flag_unknown_warning_option=no 6566 fi 6567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6568 fi 6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573 fi 6574 6575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6583 then : 6584 printf %s "(cached) " >&6 6585 else $as_nop 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587 /* end confdefs.h. */ 6588 int i; 6589 _ACEOF 6590 if ac_fn_c_try_compile "$LINENO" 6591 then : 6592 xorg_cv_cc_flag_unused_command_line_argument=yes 6593 else $as_nop 6594 xorg_cv_cc_flag_unused_command_line_argument=no 6595 fi 6596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6597 fi 6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6599 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6601 CFLAGS="$xorg_testset_save_CFLAGS" 6602 fi 6603 6604 found="no" 6605 6606 if test $found = "no" ; then 6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6609 fi 6610 6611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6613 fi 6614 6615 CFLAGS="$CFLAGS -Wuninitialized" 6616 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6618 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6619 cacheid=xorg_cv_cc_flag__Wuninitialized 6620 if eval test \${$cacheid+y} 6621 then : 6622 printf %s "(cached) " >&6 6623 else $as_nop 6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625 /* end confdefs.h. */ 6626 int i; 6627 int 6628 main (void) 6629 { 6630 6631 ; 6632 return 0; 6633 } 6634 _ACEOF 6635 if ac_fn_c_try_link "$LINENO" 6636 then : 6637 eval $cacheid=yes 6638 else $as_nop 6639 eval $cacheid=no 6640 fi 6641 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6642 conftest$ac_exeext conftest.$ac_ext 6643 fi 6644 6645 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647 6648 eval supported=\$$cacheid 6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6650 printf "%s\n" "$supported" >&6; } 6651 if test "$supported" = "yes" ; then 6652 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6653 found="yes" 6654 fi 6655 fi 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 xorg_testset_save_CFLAGS="$CFLAGS" 6672 6673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6677 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6678 then : 6679 printf %s "(cached) " >&6 6680 else $as_nop 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682 /* end confdefs.h. */ 6683 int i; 6684 _ACEOF 6685 if ac_fn_c_try_compile "$LINENO" 6686 then : 6687 xorg_cv_cc_flag_unknown_warning_option=yes 6688 else $as_nop 6689 xorg_cv_cc_flag_unknown_warning_option=no 6690 fi 6691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6692 fi 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697 fi 6698 6699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6707 then : 6708 printf %s "(cached) " >&6 6709 else $as_nop 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711 /* end confdefs.h. */ 6712 int i; 6713 _ACEOF 6714 if ac_fn_c_try_compile "$LINENO" 6715 then : 6716 xorg_cv_cc_flag_unused_command_line_argument=yes 6717 else $as_nop 6718 xorg_cv_cc_flag_unused_command_line_argument=no 6719 fi 6720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6721 fi 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726 fi 6727 6728 found="no" 6729 6730 if test $found = "no" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 fi 6738 6739 CFLAGS="$CFLAGS -Wshadow" 6740 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6742 printf %s "checking if $CC supports -Wshadow... " >&6; } 6743 cacheid=xorg_cv_cc_flag__Wshadow 6744 if eval test \${$cacheid+y} 6745 then : 6746 printf %s "(cached) " >&6 6747 else $as_nop 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749 /* end confdefs.h. */ 6750 int i; 6751 int 6752 main (void) 6753 { 6754 6755 ; 6756 return 0; 6757 } 6758 _ACEOF 6759 if ac_fn_c_try_link "$LINENO" 6760 then : 6761 eval $cacheid=yes 6762 else $as_nop 6763 eval $cacheid=no 6764 fi 6765 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6766 conftest$ac_exeext conftest.$ac_ext 6767 fi 6768 6769 6770 CFLAGS="$xorg_testset_save_CFLAGS" 6771 6772 eval supported=\$$cacheid 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6774 printf "%s\n" "$supported" >&6; } 6775 if test "$supported" = "yes" ; then 6776 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6777 found="yes" 6778 fi 6779 fi 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 xorg_testset_save_CFLAGS="$CFLAGS" 6796 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6800 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6801 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6802 then : 6803 printf %s "(cached) " >&6 6804 else $as_nop 6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806 /* end confdefs.h. */ 6807 int i; 6808 _ACEOF 6809 if ac_fn_c_try_compile "$LINENO" 6810 then : 6811 xorg_cv_cc_flag_unknown_warning_option=yes 6812 else $as_nop 6813 xorg_cv_cc_flag_unknown_warning_option=no 6814 fi 6815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6816 fi 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 fi 6822 6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 fi 6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6831 then : 6832 printf %s "(cached) " >&6 6833 else $as_nop 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835 /* end confdefs.h. */ 6836 int i; 6837 _ACEOF 6838 if ac_fn_c_try_compile "$LINENO" 6839 then : 6840 xorg_cv_cc_flag_unused_command_line_argument=yes 6841 else $as_nop 6842 xorg_cv_cc_flag_unused_command_line_argument=no 6843 fi 6844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6845 fi 6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6849 CFLAGS="$xorg_testset_save_CFLAGS" 6850 fi 6851 6852 found="no" 6853 6854 if test $found = "no" ; then 6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 fi 6858 6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6861 fi 6862 6863 CFLAGS="$CFLAGS -Wmissing-noreturn" 6864 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6866 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6867 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6868 if eval test \${$cacheid+y} 6869 then : 6870 printf %s "(cached) " >&6 6871 else $as_nop 6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873 /* end confdefs.h. */ 6874 int i; 6875 int 6876 main (void) 6877 { 6878 6879 ; 6880 return 0; 6881 } 6882 _ACEOF 6883 if ac_fn_c_try_link "$LINENO" 6884 then : 6885 eval $cacheid=yes 6886 else $as_nop 6887 eval $cacheid=no 6888 fi 6889 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6890 conftest$ac_exeext conftest.$ac_ext 6891 fi 6892 6893 6894 CFLAGS="$xorg_testset_save_CFLAGS" 6895 6896 eval supported=\$$cacheid 6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6898 printf "%s\n" "$supported" >&6; } 6899 if test "$supported" = "yes" ; then 6900 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6901 found="yes" 6902 fi 6903 fi 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 xorg_testset_save_CFLAGS="$CFLAGS" 6920 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6925 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6926 then : 6927 printf %s "(cached) " >&6 6928 else $as_nop 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930 /* end confdefs.h. */ 6931 int i; 6932 _ACEOF 6933 if ac_fn_c_try_compile "$LINENO" 6934 then : 6935 xorg_cv_cc_flag_unknown_warning_option=yes 6936 else $as_nop 6937 xorg_cv_cc_flag_unknown_warning_option=no 6938 fi 6939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6940 fi 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945 fi 6946 6947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 fi 6951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6955 then : 6956 printf %s "(cached) " >&6 6957 else $as_nop 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6959 /* end confdefs.h. */ 6960 int i; 6961 _ACEOF 6962 if ac_fn_c_try_compile "$LINENO" 6963 then : 6964 xorg_cv_cc_flag_unused_command_line_argument=yes 6965 else $as_nop 6966 xorg_cv_cc_flag_unused_command_line_argument=no 6967 fi 6968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6969 fi 6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974 fi 6975 6976 found="no" 6977 6978 if test $found = "no" ; then 6979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6981 fi 6982 6983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6985 fi 6986 6987 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6988 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6990 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6991 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6992 if eval test \${$cacheid+y} 6993 then : 6994 printf %s "(cached) " >&6 6995 else $as_nop 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997 /* end confdefs.h. */ 6998 int i; 6999 int 7000 main (void) 7001 { 7002 7003 ; 7004 return 0; 7005 } 7006 _ACEOF 7007 if ac_fn_c_try_link "$LINENO" 7008 then : 7009 eval $cacheid=yes 7010 else $as_nop 7011 eval $cacheid=no 7012 fi 7013 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7014 conftest$ac_exeext conftest.$ac_ext 7015 fi 7016 7017 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019 7020 eval supported=\$$cacheid 7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7022 printf "%s\n" "$supported" >&6; } 7023 if test "$supported" = "yes" ; then 7024 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7025 found="yes" 7026 fi 7027 fi 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 xorg_testset_save_CFLAGS="$CFLAGS" 7044 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7049 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7050 then : 7051 printf %s "(cached) " >&6 7052 else $as_nop 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054 /* end confdefs.h. */ 7055 int i; 7056 _ACEOF 7057 if ac_fn_c_try_compile "$LINENO" 7058 then : 7059 xorg_cv_cc_flag_unknown_warning_option=yes 7060 else $as_nop 7061 xorg_cv_cc_flag_unknown_warning_option=no 7062 fi 7063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7064 fi 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7066 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069 fi 7070 7071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7074 fi 7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7079 then : 7080 printf %s "(cached) " >&6 7081 else $as_nop 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 /* end confdefs.h. */ 7084 int i; 7085 _ACEOF 7086 if ac_fn_c_try_compile "$LINENO" 7087 then : 7088 xorg_cv_cc_flag_unused_command_line_argument=yes 7089 else $as_nop 7090 xorg_cv_cc_flag_unused_command_line_argument=no 7091 fi 7092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7093 fi 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098 fi 7099 7100 found="no" 7101 7102 if test $found = "no" ; then 7103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7105 fi 7106 7107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 fi 7110 7111 CFLAGS="$CFLAGS -Wredundant-decls" 7112 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7114 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7115 cacheid=xorg_cv_cc_flag__Wredundant_decls 7116 if eval test \${$cacheid+y} 7117 then : 7118 printf %s "(cached) " >&6 7119 else $as_nop 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121 /* end confdefs.h. */ 7122 int i; 7123 int 7124 main (void) 7125 { 7126 7127 ; 7128 return 0; 7129 } 7130 _ACEOF 7131 if ac_fn_c_try_link "$LINENO" 7132 then : 7133 eval $cacheid=yes 7134 else $as_nop 7135 eval $cacheid=no 7136 fi 7137 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7138 conftest$ac_exeext conftest.$ac_ext 7139 fi 7140 7141 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143 7144 eval supported=\$$cacheid 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7146 printf "%s\n" "$supported" >&6; } 7147 if test "$supported" = "yes" ; then 7148 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7149 found="yes" 7150 fi 7151 fi 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 xorg_testset_save_CFLAGS="$CFLAGS" 7168 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7173 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7174 then : 7175 printf %s "(cached) " >&6 7176 else $as_nop 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178 /* end confdefs.h. */ 7179 int i; 7180 _ACEOF 7181 if ac_fn_c_try_compile "$LINENO" 7182 then : 7183 xorg_cv_cc_flag_unknown_warning_option=yes 7184 else $as_nop 7185 xorg_cv_cc_flag_unknown_warning_option=no 7186 fi 7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7188 fi 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193 fi 7194 7195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 fi 7199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7203 then : 7204 printf %s "(cached) " >&6 7205 else $as_nop 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207 /* end confdefs.h. */ 7208 int i; 7209 _ACEOF 7210 if ac_fn_c_try_compile "$LINENO" 7211 then : 7212 xorg_cv_cc_flag_unused_command_line_argument=yes 7213 else $as_nop 7214 xorg_cv_cc_flag_unused_command_line_argument=no 7215 fi 7216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7217 fi 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7219 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222 fi 7223 7224 found="no" 7225 7226 if test $found = "no" ; then 7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 fi 7230 7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 fi 7234 7235 CFLAGS="$CFLAGS -Wlogical-op" 7236 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7238 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7239 cacheid=xorg_cv_cc_flag__Wlogical_op 7240 if eval test \${$cacheid+y} 7241 then : 7242 printf %s "(cached) " >&6 7243 else $as_nop 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245 /* end confdefs.h. */ 7246 int i; 7247 int 7248 main (void) 7249 { 7250 7251 ; 7252 return 0; 7253 } 7254 _ACEOF 7255 if ac_fn_c_try_link "$LINENO" 7256 then : 7257 eval $cacheid=yes 7258 else $as_nop 7259 eval $cacheid=no 7260 fi 7261 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7262 conftest$ac_exeext conftest.$ac_ext 7263 fi 7264 7265 7266 CFLAGS="$xorg_testset_save_CFLAGS" 7267 7268 eval supported=\$$cacheid 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7270 printf "%s\n" "$supported" >&6; } 7271 if test "$supported" = "yes" ; then 7272 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7273 found="yes" 7274 fi 7275 fi 7276 7277 7278 7279 # These are currently disabled because they are noisy. They will be enabled 7280 # in the future once the codebase is sufficiently modernized to silence 7281 # them. For now, I don't want them to drown out the other warnings. 7282 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7283 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7284 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7285 7286 # Turn some warnings into errors, so we don't accidently get successful builds 7287 # when there are problems that should be fixed. 7288 7289 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 xorg_testset_save_CFLAGS="$CFLAGS" 7304 7305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7309 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7310 then : 7311 printf %s "(cached) " >&6 7312 else $as_nop 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314 /* end confdefs.h. */ 7315 int i; 7316 _ACEOF 7317 if ac_fn_c_try_compile "$LINENO" 7318 then : 7319 xorg_cv_cc_flag_unknown_warning_option=yes 7320 else $as_nop 7321 xorg_cv_cc_flag_unknown_warning_option=no 7322 fi 7323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7324 fi 7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7326 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329 fi 7330 7331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7339 then : 7340 printf %s "(cached) " >&6 7341 else $as_nop 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343 /* end confdefs.h. */ 7344 int i; 7345 _ACEOF 7346 if ac_fn_c_try_compile "$LINENO" 7347 then : 7348 xorg_cv_cc_flag_unused_command_line_argument=yes 7349 else $as_nop 7350 xorg_cv_cc_flag_unused_command_line_argument=no 7351 fi 7352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7353 fi 7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7355 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7357 CFLAGS="$xorg_testset_save_CFLAGS" 7358 fi 7359 7360 found="no" 7361 7362 if test $found = "no" ; then 7363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7365 fi 7366 7367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7369 fi 7370 7371 CFLAGS="$CFLAGS -Werror=implicit" 7372 7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7374 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7375 cacheid=xorg_cv_cc_flag__Werror_implicit 7376 if eval test \${$cacheid+y} 7377 then : 7378 printf %s "(cached) " >&6 7379 else $as_nop 7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7381 /* end confdefs.h. */ 7382 int i; 7383 int 7384 main (void) 7385 { 7386 7387 ; 7388 return 0; 7389 } 7390 _ACEOF 7391 if ac_fn_c_try_link "$LINENO" 7392 then : 7393 eval $cacheid=yes 7394 else $as_nop 7395 eval $cacheid=no 7396 fi 7397 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7398 conftest$ac_exeext conftest.$ac_ext 7399 fi 7400 7401 7402 CFLAGS="$xorg_testset_save_CFLAGS" 7403 7404 eval supported=\$$cacheid 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7406 printf "%s\n" "$supported" >&6; } 7407 if test "$supported" = "yes" ; then 7408 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7409 found="yes" 7410 fi 7411 fi 7412 7413 if test $found = "no" ; then 7414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7416 fi 7417 7418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7420 fi 7421 7422 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7423 7424 { 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 7425 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7426 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7427 if eval test \${$cacheid+y} 7428 then : 7429 printf %s "(cached) " >&6 7430 else $as_nop 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432 /* end confdefs.h. */ 7433 int i; 7434 int 7435 main (void) 7436 { 7437 7438 ; 7439 return 0; 7440 } 7441 _ACEOF 7442 if ac_fn_c_try_link "$LINENO" 7443 then : 7444 eval $cacheid=yes 7445 else $as_nop 7446 eval $cacheid=no 7447 fi 7448 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7449 conftest$ac_exeext conftest.$ac_ext 7450 fi 7451 7452 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454 7455 eval supported=\$$cacheid 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7457 printf "%s\n" "$supported" >&6; } 7458 if test "$supported" = "yes" ; then 7459 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7460 found="yes" 7461 fi 7462 fi 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 xorg_testset_save_CFLAGS="$CFLAGS" 7479 7480 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7483 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7484 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7485 then : 7486 printf %s "(cached) " >&6 7487 else $as_nop 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489 /* end confdefs.h. */ 7490 int i; 7491 _ACEOF 7492 if ac_fn_c_try_compile "$LINENO" 7493 then : 7494 xorg_cv_cc_flag_unknown_warning_option=yes 7495 else $as_nop 7496 xorg_cv_cc_flag_unknown_warning_option=no 7497 fi 7498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7499 fi 7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7503 CFLAGS="$xorg_testset_save_CFLAGS" 7504 fi 7505 7506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7509 fi 7510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7514 then : 7515 printf %s "(cached) " >&6 7516 else $as_nop 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518 /* end confdefs.h. */ 7519 int i; 7520 _ACEOF 7521 if ac_fn_c_try_compile "$LINENO" 7522 then : 7523 xorg_cv_cc_flag_unused_command_line_argument=yes 7524 else $as_nop 7525 xorg_cv_cc_flag_unused_command_line_argument=no 7526 fi 7527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7528 fi 7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7532 CFLAGS="$xorg_testset_save_CFLAGS" 7533 fi 7534 7535 found="no" 7536 7537 if test $found = "no" ; then 7538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540 fi 7541 7542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7544 fi 7545 7546 CFLAGS="$CFLAGS -Werror=nonnull" 7547 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7549 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7550 cacheid=xorg_cv_cc_flag__Werror_nonnull 7551 if eval test \${$cacheid+y} 7552 then : 7553 printf %s "(cached) " >&6 7554 else $as_nop 7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556 /* end confdefs.h. */ 7557 int i; 7558 int 7559 main (void) 7560 { 7561 7562 ; 7563 return 0; 7564 } 7565 _ACEOF 7566 if ac_fn_c_try_link "$LINENO" 7567 then : 7568 eval $cacheid=yes 7569 else $as_nop 7570 eval $cacheid=no 7571 fi 7572 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7573 conftest$ac_exeext conftest.$ac_ext 7574 fi 7575 7576 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578 7579 eval supported=\$$cacheid 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7581 printf "%s\n" "$supported" >&6; } 7582 if test "$supported" = "yes" ; then 7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7584 found="yes" 7585 fi 7586 fi 7587 7588 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 $as_nop 7612 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 $as_nop 7620 xorg_cv_cc_flag_unknown_warning_option=no 7621 fi 7622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7623 fi 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628 fi 7629 7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 fi 7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7638 then : 7639 printf %s "(cached) " >&6 7640 else $as_nop 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642 /* end confdefs.h. */ 7643 int i; 7644 _ACEOF 7645 if ac_fn_c_try_compile "$LINENO" 7646 then : 7647 xorg_cv_cc_flag_unused_command_line_argument=yes 7648 else $as_nop 7649 xorg_cv_cc_flag_unused_command_line_argument=no 7650 fi 7651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7652 fi 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7654 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7656 CFLAGS="$xorg_testset_save_CFLAGS" 7657 fi 7658 7659 found="no" 7660 7661 if test $found = "no" ; then 7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7664 fi 7665 7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7668 fi 7669 7670 CFLAGS="$CFLAGS -Werror=init-self" 7671 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7673 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7674 cacheid=xorg_cv_cc_flag__Werror_init_self 7675 if eval test \${$cacheid+y} 7676 then : 7677 printf %s "(cached) " >&6 7678 else $as_nop 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680 /* end confdefs.h. */ 7681 int i; 7682 int 7683 main (void) 7684 { 7685 7686 ; 7687 return 0; 7688 } 7689 _ACEOF 7690 if ac_fn_c_try_link "$LINENO" 7691 then : 7692 eval $cacheid=yes 7693 else $as_nop 7694 eval $cacheid=no 7695 fi 7696 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7697 conftest$ac_exeext conftest.$ac_ext 7698 fi 7699 7700 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702 7703 eval supported=\$$cacheid 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7705 printf "%s\n" "$supported" >&6; } 7706 if test "$supported" = "yes" ; then 7707 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7708 found="yes" 7709 fi 7710 fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 xorg_testset_save_CFLAGS="$CFLAGS" 7727 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7732 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7733 then : 7734 printf %s "(cached) " >&6 7735 else $as_nop 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737 /* end confdefs.h. */ 7738 int i; 7739 _ACEOF 7740 if ac_fn_c_try_compile "$LINENO" 7741 then : 7742 xorg_cv_cc_flag_unknown_warning_option=yes 7743 else $as_nop 7744 xorg_cv_cc_flag_unknown_warning_option=no 7745 fi 7746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7747 fi 7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752 fi 7753 7754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757 fi 7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7762 then : 7763 printf %s "(cached) " >&6 7764 else $as_nop 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766 /* end confdefs.h. */ 7767 int i; 7768 _ACEOF 7769 if ac_fn_c_try_compile "$LINENO" 7770 then : 7771 xorg_cv_cc_flag_unused_command_line_argument=yes 7772 else $as_nop 7773 xorg_cv_cc_flag_unused_command_line_argument=no 7774 fi 7775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7776 fi 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7778 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7780 CFLAGS="$xorg_testset_save_CFLAGS" 7781 fi 7782 7783 found="no" 7784 7785 if test $found = "no" ; then 7786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7788 fi 7789 7790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7792 fi 7793 7794 CFLAGS="$CFLAGS -Werror=main" 7795 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7797 printf %s "checking if $CC supports -Werror=main... " >&6; } 7798 cacheid=xorg_cv_cc_flag__Werror_main 7799 if eval test \${$cacheid+y} 7800 then : 7801 printf %s "(cached) " >&6 7802 else $as_nop 7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804 /* end confdefs.h. */ 7805 int i; 7806 int 7807 main (void) 7808 { 7809 7810 ; 7811 return 0; 7812 } 7813 _ACEOF 7814 if ac_fn_c_try_link "$LINENO" 7815 then : 7816 eval $cacheid=yes 7817 else $as_nop 7818 eval $cacheid=no 7819 fi 7820 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7821 conftest$ac_exeext conftest.$ac_ext 7822 fi 7823 7824 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826 7827 eval supported=\$$cacheid 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7829 printf "%s\n" "$supported" >&6; } 7830 if test "$supported" = "yes" ; then 7831 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7832 found="yes" 7833 fi 7834 fi 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 xorg_testset_save_CFLAGS="$CFLAGS" 7851 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7856 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7857 then : 7858 printf %s "(cached) " >&6 7859 else $as_nop 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861 /* end confdefs.h. */ 7862 int i; 7863 _ACEOF 7864 if ac_fn_c_try_compile "$LINENO" 7865 then : 7866 xorg_cv_cc_flag_unknown_warning_option=yes 7867 else $as_nop 7868 xorg_cv_cc_flag_unknown_warning_option=no 7869 fi 7870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7871 fi 7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876 fi 7877 7878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7881 fi 7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7886 then : 7887 printf %s "(cached) " >&6 7888 else $as_nop 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890 /* end confdefs.h. */ 7891 int i; 7892 _ACEOF 7893 if ac_fn_c_try_compile "$LINENO" 7894 then : 7895 xorg_cv_cc_flag_unused_command_line_argument=yes 7896 else $as_nop 7897 xorg_cv_cc_flag_unused_command_line_argument=no 7898 fi 7899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7900 fi 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7904 CFLAGS="$xorg_testset_save_CFLAGS" 7905 fi 7906 7907 found="no" 7908 7909 if test $found = "no" ; then 7910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7912 fi 7913 7914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7916 fi 7917 7918 CFLAGS="$CFLAGS -Werror=missing-braces" 7919 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7921 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7922 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7923 if eval test \${$cacheid+y} 7924 then : 7925 printf %s "(cached) " >&6 7926 else $as_nop 7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7928 /* end confdefs.h. */ 7929 int i; 7930 int 7931 main (void) 7932 { 7933 7934 ; 7935 return 0; 7936 } 7937 _ACEOF 7938 if ac_fn_c_try_link "$LINENO" 7939 then : 7940 eval $cacheid=yes 7941 else $as_nop 7942 eval $cacheid=no 7943 fi 7944 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7945 conftest$ac_exeext conftest.$ac_ext 7946 fi 7947 7948 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950 7951 eval supported=\$$cacheid 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7953 printf "%s\n" "$supported" >&6; } 7954 if test "$supported" = "yes" ; then 7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7956 found="yes" 7957 fi 7958 fi 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 xorg_testset_save_CFLAGS="$CFLAGS" 7975 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7981 then : 7982 printf %s "(cached) " >&6 7983 else $as_nop 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985 /* end confdefs.h. */ 7986 int i; 7987 _ACEOF 7988 if ac_fn_c_try_compile "$LINENO" 7989 then : 7990 xorg_cv_cc_flag_unknown_warning_option=yes 7991 else $as_nop 7992 xorg_cv_cc_flag_unknown_warning_option=no 7993 fi 7994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7995 fi 7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7999 CFLAGS="$xorg_testset_save_CFLAGS" 8000 fi 8001 8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8005 fi 8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8010 then : 8011 printf %s "(cached) " >&6 8012 else $as_nop 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014 /* end confdefs.h. */ 8015 int i; 8016 _ACEOF 8017 if ac_fn_c_try_compile "$LINENO" 8018 then : 8019 xorg_cv_cc_flag_unused_command_line_argument=yes 8020 else $as_nop 8021 xorg_cv_cc_flag_unused_command_line_argument=no 8022 fi 8023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8024 fi 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 fi 8030 8031 found="no" 8032 8033 if test $found = "no" ; then 8034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8036 fi 8037 8038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8040 fi 8041 8042 CFLAGS="$CFLAGS -Werror=sequence-point" 8043 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8045 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8046 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8047 if eval test \${$cacheid+y} 8048 then : 8049 printf %s "(cached) " >&6 8050 else $as_nop 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052 /* end confdefs.h. */ 8053 int i; 8054 int 8055 main (void) 8056 { 8057 8058 ; 8059 return 0; 8060 } 8061 _ACEOF 8062 if ac_fn_c_try_link "$LINENO" 8063 then : 8064 eval $cacheid=yes 8065 else $as_nop 8066 eval $cacheid=no 8067 fi 8068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8069 conftest$ac_exeext conftest.$ac_ext 8070 fi 8071 8072 8073 CFLAGS="$xorg_testset_save_CFLAGS" 8074 8075 eval supported=\$$cacheid 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8077 printf "%s\n" "$supported" >&6; } 8078 if test "$supported" = "yes" ; then 8079 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8080 found="yes" 8081 fi 8082 fi 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 xorg_testset_save_CFLAGS="$CFLAGS" 8099 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8105 then : 8106 printf %s "(cached) " >&6 8107 else $as_nop 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109 /* end confdefs.h. */ 8110 int i; 8111 _ACEOF 8112 if ac_fn_c_try_compile "$LINENO" 8113 then : 8114 xorg_cv_cc_flag_unknown_warning_option=yes 8115 else $as_nop 8116 xorg_cv_cc_flag_unknown_warning_option=no 8117 fi 8118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8119 fi 8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8123 CFLAGS="$xorg_testset_save_CFLAGS" 8124 fi 8125 8126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8134 then : 8135 printf %s "(cached) " >&6 8136 else $as_nop 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8138 /* end confdefs.h. */ 8139 int i; 8140 _ACEOF 8141 if ac_fn_c_try_compile "$LINENO" 8142 then : 8143 xorg_cv_cc_flag_unused_command_line_argument=yes 8144 else $as_nop 8145 xorg_cv_cc_flag_unused_command_line_argument=no 8146 fi 8147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8148 fi 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8152 CFLAGS="$xorg_testset_save_CFLAGS" 8153 fi 8154 8155 found="no" 8156 8157 if test $found = "no" ; then 8158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8160 fi 8161 8162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8164 fi 8165 8166 CFLAGS="$CFLAGS -Werror=return-type" 8167 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8169 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8170 cacheid=xorg_cv_cc_flag__Werror_return_type 8171 if eval test \${$cacheid+y} 8172 then : 8173 printf %s "(cached) " >&6 8174 else $as_nop 8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8176 /* end confdefs.h. */ 8177 int i; 8178 int 8179 main (void) 8180 { 8181 8182 ; 8183 return 0; 8184 } 8185 _ACEOF 8186 if ac_fn_c_try_link "$LINENO" 8187 then : 8188 eval $cacheid=yes 8189 else $as_nop 8190 eval $cacheid=no 8191 fi 8192 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8193 conftest$ac_exeext conftest.$ac_ext 8194 fi 8195 8196 8197 CFLAGS="$xorg_testset_save_CFLAGS" 8198 8199 eval supported=\$$cacheid 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8201 printf "%s\n" "$supported" >&6; } 8202 if test "$supported" = "yes" ; then 8203 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8204 found="yes" 8205 fi 8206 fi 8207 8208 if test $found = "no" ; then 8209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8211 fi 8212 8213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8215 fi 8216 8217 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8218 8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8220 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8221 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8222 if eval test \${$cacheid+y} 8223 then : 8224 printf %s "(cached) " >&6 8225 else $as_nop 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227 /* end confdefs.h. */ 8228 int i; 8229 int 8230 main (void) 8231 { 8232 8233 ; 8234 return 0; 8235 } 8236 _ACEOF 8237 if ac_fn_c_try_link "$LINENO" 8238 then : 8239 eval $cacheid=yes 8240 else $as_nop 8241 eval $cacheid=no 8242 fi 8243 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8244 conftest$ac_exeext conftest.$ac_ext 8245 fi 8246 8247 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249 8250 eval supported=\$$cacheid 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8252 printf "%s\n" "$supported" >&6; } 8253 if test "$supported" = "yes" ; then 8254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8255 found="yes" 8256 fi 8257 fi 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 xorg_testset_save_CFLAGS="$CFLAGS" 8274 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8279 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8280 then : 8281 printf %s "(cached) " >&6 8282 else $as_nop 8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8284 /* end confdefs.h. */ 8285 int i; 8286 _ACEOF 8287 if ac_fn_c_try_compile "$LINENO" 8288 then : 8289 xorg_cv_cc_flag_unknown_warning_option=yes 8290 else $as_nop 8291 xorg_cv_cc_flag_unknown_warning_option=no 8292 fi 8293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8294 fi 8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299 fi 8300 8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 fi 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8309 then : 8310 printf %s "(cached) " >&6 8311 else $as_nop 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313 /* end confdefs.h. */ 8314 int i; 8315 _ACEOF 8316 if ac_fn_c_try_compile "$LINENO" 8317 then : 8318 xorg_cv_cc_flag_unused_command_line_argument=yes 8319 else $as_nop 8320 xorg_cv_cc_flag_unused_command_line_argument=no 8321 fi 8322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8323 fi 8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328 fi 8329 8330 found="no" 8331 8332 if test $found = "no" ; then 8333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 fi 8336 8337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8339 fi 8340 8341 CFLAGS="$CFLAGS -Werror=trigraphs" 8342 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8344 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8345 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8346 if eval test \${$cacheid+y} 8347 then : 8348 printf %s "(cached) " >&6 8349 else $as_nop 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351 /* end confdefs.h. */ 8352 int i; 8353 int 8354 main (void) 8355 { 8356 8357 ; 8358 return 0; 8359 } 8360 _ACEOF 8361 if ac_fn_c_try_link "$LINENO" 8362 then : 8363 eval $cacheid=yes 8364 else $as_nop 8365 eval $cacheid=no 8366 fi 8367 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8368 conftest$ac_exeext conftest.$ac_ext 8369 fi 8370 8371 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373 8374 eval supported=\$$cacheid 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8376 printf "%s\n" "$supported" >&6; } 8377 if test "$supported" = "yes" ; then 8378 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8379 found="yes" 8380 fi 8381 fi 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 xorg_testset_save_CFLAGS="$CFLAGS" 8398 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8402 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8403 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8404 then : 8405 printf %s "(cached) " >&6 8406 else $as_nop 8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408 /* end confdefs.h. */ 8409 int i; 8410 _ACEOF 8411 if ac_fn_c_try_compile "$LINENO" 8412 then : 8413 xorg_cv_cc_flag_unknown_warning_option=yes 8414 else $as_nop 8415 xorg_cv_cc_flag_unknown_warning_option=no 8416 fi 8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8418 fi 8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8420 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423 fi 8424 8425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428 fi 8429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8431 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8432 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8433 then : 8434 printf %s "(cached) " >&6 8435 else $as_nop 8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437 /* end confdefs.h. */ 8438 int i; 8439 _ACEOF 8440 if ac_fn_c_try_compile "$LINENO" 8441 then : 8442 xorg_cv_cc_flag_unused_command_line_argument=yes 8443 else $as_nop 8444 xorg_cv_cc_flag_unused_command_line_argument=no 8445 fi 8446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8447 fi 8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452 fi 8453 8454 found="no" 8455 8456 if test $found = "no" ; then 8457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8459 fi 8460 8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8463 fi 8464 8465 CFLAGS="$CFLAGS -Werror=array-bounds" 8466 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8468 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8469 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8470 if eval test \${$cacheid+y} 8471 then : 8472 printf %s "(cached) " >&6 8473 else $as_nop 8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8475 /* end confdefs.h. */ 8476 int i; 8477 int 8478 main (void) 8479 { 8480 8481 ; 8482 return 0; 8483 } 8484 _ACEOF 8485 if ac_fn_c_try_link "$LINENO" 8486 then : 8487 eval $cacheid=yes 8488 else $as_nop 8489 eval $cacheid=no 8490 fi 8491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8492 conftest$ac_exeext conftest.$ac_ext 8493 fi 8494 8495 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497 8498 eval supported=\$$cacheid 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8500 printf "%s\n" "$supported" >&6; } 8501 if test "$supported" = "yes" ; then 8502 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8503 found="yes" 8504 fi 8505 fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 xorg_testset_save_CFLAGS="$CFLAGS" 8522 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8527 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8528 then : 8529 printf %s "(cached) " >&6 8530 else $as_nop 8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8532 /* end confdefs.h. */ 8533 int i; 8534 _ACEOF 8535 if ac_fn_c_try_compile "$LINENO" 8536 then : 8537 xorg_cv_cc_flag_unknown_warning_option=yes 8538 else $as_nop 8539 xorg_cv_cc_flag_unknown_warning_option=no 8540 fi 8541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8542 fi 8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8546 CFLAGS="$xorg_testset_save_CFLAGS" 8547 fi 8548 8549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8552 fi 8553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8557 then : 8558 printf %s "(cached) " >&6 8559 else $as_nop 8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561 /* end confdefs.h. */ 8562 int i; 8563 _ACEOF 8564 if ac_fn_c_try_compile "$LINENO" 8565 then : 8566 xorg_cv_cc_flag_unused_command_line_argument=yes 8567 else $as_nop 8568 xorg_cv_cc_flag_unused_command_line_argument=no 8569 fi 8570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8571 fi 8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576 fi 8577 8578 found="no" 8579 8580 if test $found = "no" ; then 8581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8583 fi 8584 8585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8587 fi 8588 8589 CFLAGS="$CFLAGS -Werror=write-strings" 8590 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8592 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8593 cacheid=xorg_cv_cc_flag__Werror_write_strings 8594 if eval test \${$cacheid+y} 8595 then : 8596 printf %s "(cached) " >&6 8597 else $as_nop 8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8599 /* end confdefs.h. */ 8600 int i; 8601 int 8602 main (void) 8603 { 8604 8605 ; 8606 return 0; 8607 } 8608 _ACEOF 8609 if ac_fn_c_try_link "$LINENO" 8610 then : 8611 eval $cacheid=yes 8612 else $as_nop 8613 eval $cacheid=no 8614 fi 8615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8616 conftest$ac_exeext conftest.$ac_ext 8617 fi 8618 8619 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621 8622 eval supported=\$$cacheid 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8624 printf "%s\n" "$supported" >&6; } 8625 if test "$supported" = "yes" ; then 8626 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8627 found="yes" 8628 fi 8629 fi 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 xorg_testset_save_CFLAGS="$CFLAGS" 8646 8647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8651 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8652 then : 8653 printf %s "(cached) " >&6 8654 else $as_nop 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656 /* end confdefs.h. */ 8657 int i; 8658 _ACEOF 8659 if ac_fn_c_try_compile "$LINENO" 8660 then : 8661 xorg_cv_cc_flag_unknown_warning_option=yes 8662 else $as_nop 8663 xorg_cv_cc_flag_unknown_warning_option=no 8664 fi 8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8666 fi 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8670 CFLAGS="$xorg_testset_save_CFLAGS" 8671 fi 8672 8673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8676 fi 8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8681 then : 8682 printf %s "(cached) " >&6 8683 else $as_nop 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685 /* end confdefs.h. */ 8686 int i; 8687 _ACEOF 8688 if ac_fn_c_try_compile "$LINENO" 8689 then : 8690 xorg_cv_cc_flag_unused_command_line_argument=yes 8691 else $as_nop 8692 xorg_cv_cc_flag_unused_command_line_argument=no 8693 fi 8694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8695 fi 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700 fi 8701 8702 found="no" 8703 8704 if test $found = "no" ; then 8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 fi 8708 8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8711 fi 8712 8713 CFLAGS="$CFLAGS -Werror=address" 8714 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8716 printf %s "checking if $CC supports -Werror=address... " >&6; } 8717 cacheid=xorg_cv_cc_flag__Werror_address 8718 if eval test \${$cacheid+y} 8719 then : 8720 printf %s "(cached) " >&6 8721 else $as_nop 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723 /* end confdefs.h. */ 8724 int i; 8725 int 8726 main (void) 8727 { 8728 8729 ; 8730 return 0; 8731 } 8732 _ACEOF 8733 if ac_fn_c_try_link "$LINENO" 8734 then : 8735 eval $cacheid=yes 8736 else $as_nop 8737 eval $cacheid=no 8738 fi 8739 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8740 conftest$ac_exeext conftest.$ac_ext 8741 fi 8742 8743 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745 8746 eval supported=\$$cacheid 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8748 printf "%s\n" "$supported" >&6; } 8749 if test "$supported" = "yes" ; then 8750 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8751 found="yes" 8752 fi 8753 fi 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 xorg_testset_save_CFLAGS="$CFLAGS" 8770 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8775 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8776 then : 8777 printf %s "(cached) " >&6 8778 else $as_nop 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780 /* end confdefs.h. */ 8781 int i; 8782 _ACEOF 8783 if ac_fn_c_try_compile "$LINENO" 8784 then : 8785 xorg_cv_cc_flag_unknown_warning_option=yes 8786 else $as_nop 8787 xorg_cv_cc_flag_unknown_warning_option=no 8788 fi 8789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8790 fi 8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8794 CFLAGS="$xorg_testset_save_CFLAGS" 8795 fi 8796 8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8800 fi 8801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8805 then : 8806 printf %s "(cached) " >&6 8807 else $as_nop 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809 /* end confdefs.h. */ 8810 int i; 8811 _ACEOF 8812 if ac_fn_c_try_compile "$LINENO" 8813 then : 8814 xorg_cv_cc_flag_unused_command_line_argument=yes 8815 else $as_nop 8816 xorg_cv_cc_flag_unused_command_line_argument=no 8817 fi 8818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8819 fi 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8823 CFLAGS="$xorg_testset_save_CFLAGS" 8824 fi 8825 8826 found="no" 8827 8828 if test $found = "no" ; then 8829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8831 fi 8832 8833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8835 fi 8836 8837 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8838 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8840 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8841 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8842 if eval test \${$cacheid+y} 8843 then : 8844 printf %s "(cached) " >&6 8845 else $as_nop 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847 /* end confdefs.h. */ 8848 int i; 8849 int 8850 main (void) 8851 { 8852 8853 ; 8854 return 0; 8855 } 8856 _ACEOF 8857 if ac_fn_c_try_link "$LINENO" 8858 then : 8859 eval $cacheid=yes 8860 else $as_nop 8861 eval $cacheid=no 8862 fi 8863 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8864 conftest$ac_exeext conftest.$ac_ext 8865 fi 8866 8867 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869 8870 eval supported=\$$cacheid 8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8872 printf "%s\n" "$supported" >&6; } 8873 if test "$supported" = "yes" ; then 8874 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8875 found="yes" 8876 fi 8877 fi 8878 8879 if test $found = "no" ; then 8880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8882 fi 8883 8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8886 fi 8887 8888 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8889 8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8891 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8892 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8893 if eval test \${$cacheid+y} 8894 then : 8895 printf %s "(cached) " >&6 8896 else $as_nop 8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898 /* end confdefs.h. */ 8899 int i; 8900 int 8901 main (void) 8902 { 8903 8904 ; 8905 return 0; 8906 } 8907 _ACEOF 8908 if ac_fn_c_try_link "$LINENO" 8909 then : 8910 eval $cacheid=yes 8911 else $as_nop 8912 eval $cacheid=no 8913 fi 8914 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8915 conftest$ac_exeext conftest.$ac_ext 8916 fi 8917 8918 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920 8921 eval supported=\$$cacheid 8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8923 printf "%s\n" "$supported" >&6; } 8924 if test "$supported" = "yes" ; then 8925 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8926 found="yes" 8927 fi 8928 fi 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 xorg_testset_save_CFLAGS="$CFLAGS" 8945 8946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8950 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8951 then : 8952 printf %s "(cached) " >&6 8953 else $as_nop 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955 /* end confdefs.h. */ 8956 int i; 8957 _ACEOF 8958 if ac_fn_c_try_compile "$LINENO" 8959 then : 8960 xorg_cv_cc_flag_unknown_warning_option=yes 8961 else $as_nop 8962 xorg_cv_cc_flag_unknown_warning_option=no 8963 fi 8964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8965 fi 8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8969 CFLAGS="$xorg_testset_save_CFLAGS" 8970 fi 8971 8972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8975 fi 8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8980 then : 8981 printf %s "(cached) " >&6 8982 else $as_nop 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984 /* end confdefs.h. */ 8985 int i; 8986 _ACEOF 8987 if ac_fn_c_try_compile "$LINENO" 8988 then : 8989 xorg_cv_cc_flag_unused_command_line_argument=yes 8990 else $as_nop 8991 xorg_cv_cc_flag_unused_command_line_argument=no 8992 fi 8993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8994 fi 8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8998 CFLAGS="$xorg_testset_save_CFLAGS" 8999 fi 9000 9001 found="no" 9002 9003 if test $found = "no" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 9008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9010 fi 9011 9012 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9013 9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9015 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9016 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9017 if eval test \${$cacheid+y} 9018 then : 9019 printf %s "(cached) " >&6 9020 else $as_nop 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022 /* end confdefs.h. */ 9023 int i; 9024 int 9025 main (void) 9026 { 9027 9028 ; 9029 return 0; 9030 } 9031 _ACEOF 9032 if ac_fn_c_try_link "$LINENO" 9033 then : 9034 eval $cacheid=yes 9035 else $as_nop 9036 eval $cacheid=no 9037 fi 9038 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9039 conftest$ac_exeext conftest.$ac_ext 9040 fi 9041 9042 9043 CFLAGS="$xorg_testset_save_CFLAGS" 9044 9045 eval supported=\$$cacheid 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9047 printf "%s\n" "$supported" >&6; } 9048 if test "$supported" = "yes" ; then 9049 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9050 found="yes" 9051 fi 9052 fi 9053 9054 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9055 else 9056 { 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 9057 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;} 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 xorg_testset_save_CFLAGS="$CFLAGS" 9072 9073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9077 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9078 then : 9079 printf %s "(cached) " >&6 9080 else $as_nop 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082 /* end confdefs.h. */ 9083 int i; 9084 _ACEOF 9085 if ac_fn_c_try_compile "$LINENO" 9086 then : 9087 xorg_cv_cc_flag_unknown_warning_option=yes 9088 else $as_nop 9089 xorg_cv_cc_flag_unknown_warning_option=no 9090 fi 9091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9092 fi 9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097 fi 9098 9099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9102 fi 9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9107 then : 9108 printf %s "(cached) " >&6 9109 else $as_nop 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111 /* end confdefs.h. */ 9112 int i; 9113 _ACEOF 9114 if ac_fn_c_try_compile "$LINENO" 9115 then : 9116 xorg_cv_cc_flag_unused_command_line_argument=yes 9117 else $as_nop 9118 xorg_cv_cc_flag_unused_command_line_argument=no 9119 fi 9120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9121 fi 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9125 CFLAGS="$xorg_testset_save_CFLAGS" 9126 fi 9127 9128 found="no" 9129 9130 if test $found = "no" ; then 9131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9133 fi 9134 9135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9137 fi 9138 9139 CFLAGS="$CFLAGS -Wimplicit" 9140 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9142 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9143 cacheid=xorg_cv_cc_flag__Wimplicit 9144 if eval test \${$cacheid+y} 9145 then : 9146 printf %s "(cached) " >&6 9147 else $as_nop 9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149 /* end confdefs.h. */ 9150 int i; 9151 int 9152 main (void) 9153 { 9154 9155 ; 9156 return 0; 9157 } 9158 _ACEOF 9159 if ac_fn_c_try_link "$LINENO" 9160 then : 9161 eval $cacheid=yes 9162 else $as_nop 9163 eval $cacheid=no 9164 fi 9165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9166 conftest$ac_exeext conftest.$ac_ext 9167 fi 9168 9169 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171 9172 eval supported=\$$cacheid 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9174 printf "%s\n" "$supported" >&6; } 9175 if test "$supported" = "yes" ; then 9176 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9177 found="yes" 9178 fi 9179 fi 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 xorg_testset_save_CFLAGS="$CFLAGS" 9196 9197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9201 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9202 then : 9203 printf %s "(cached) " >&6 9204 else $as_nop 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206 /* end confdefs.h. */ 9207 int i; 9208 _ACEOF 9209 if ac_fn_c_try_compile "$LINENO" 9210 then : 9211 xorg_cv_cc_flag_unknown_warning_option=yes 9212 else $as_nop 9213 xorg_cv_cc_flag_unknown_warning_option=no 9214 fi 9215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9216 fi 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221 fi 9222 9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9226 fi 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9231 then : 9232 printf %s "(cached) " >&6 9233 else $as_nop 9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9235 /* end confdefs.h. */ 9236 int i; 9237 _ACEOF 9238 if ac_fn_c_try_compile "$LINENO" 9239 then : 9240 xorg_cv_cc_flag_unused_command_line_argument=yes 9241 else $as_nop 9242 xorg_cv_cc_flag_unused_command_line_argument=no 9243 fi 9244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9245 fi 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 fi 9251 9252 found="no" 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 -Wnonnull" 9264 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9266 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9267 cacheid=xorg_cv_cc_flag__Wnonnull 9268 if eval test \${$cacheid+y} 9269 then : 9270 printf %s "(cached) " >&6 9271 else $as_nop 9272 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 $as_nop 9287 eval $cacheid=no 9288 fi 9289 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9290 conftest$ac_exeext conftest.$ac_ext 9291 fi 9292 9293 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295 9296 eval supported=\$$cacheid 9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9298 printf "%s\n" "$supported" >&6; } 9299 if test "$supported" = "yes" ; then 9300 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9301 found="yes" 9302 fi 9303 fi 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 xorg_testset_save_CFLAGS="$CFLAGS" 9320 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9325 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9326 then : 9327 printf %s "(cached) " >&6 9328 else $as_nop 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330 /* end confdefs.h. */ 9331 int i; 9332 _ACEOF 9333 if ac_fn_c_try_compile "$LINENO" 9334 then : 9335 xorg_cv_cc_flag_unknown_warning_option=yes 9336 else $as_nop 9337 xorg_cv_cc_flag_unknown_warning_option=no 9338 fi 9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9340 fi 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9342 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345 fi 9346 9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9350 fi 9351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9353 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9354 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9355 then : 9356 printf %s "(cached) " >&6 9357 else $as_nop 9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9359 /* end confdefs.h. */ 9360 int i; 9361 _ACEOF 9362 if ac_fn_c_try_compile "$LINENO" 9363 then : 9364 xorg_cv_cc_flag_unused_command_line_argument=yes 9365 else $as_nop 9366 xorg_cv_cc_flag_unused_command_line_argument=no 9367 fi 9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9369 fi 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9373 CFLAGS="$xorg_testset_save_CFLAGS" 9374 fi 9375 9376 found="no" 9377 9378 if test $found = "no" ; then 9379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9381 fi 9382 9383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9385 fi 9386 9387 CFLAGS="$CFLAGS -Winit-self" 9388 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9390 printf %s "checking if $CC supports -Winit-self... " >&6; } 9391 cacheid=xorg_cv_cc_flag__Winit_self 9392 if eval test \${$cacheid+y} 9393 then : 9394 printf %s "(cached) " >&6 9395 else $as_nop 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397 /* end confdefs.h. */ 9398 int i; 9399 int 9400 main (void) 9401 { 9402 9403 ; 9404 return 0; 9405 } 9406 _ACEOF 9407 if ac_fn_c_try_link "$LINENO" 9408 then : 9409 eval $cacheid=yes 9410 else $as_nop 9411 eval $cacheid=no 9412 fi 9413 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9414 conftest$ac_exeext conftest.$ac_ext 9415 fi 9416 9417 9418 CFLAGS="$xorg_testset_save_CFLAGS" 9419 9420 eval supported=\$$cacheid 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9422 printf "%s\n" "$supported" >&6; } 9423 if test "$supported" = "yes" ; then 9424 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9425 found="yes" 9426 fi 9427 fi 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 xorg_testset_save_CFLAGS="$CFLAGS" 9444 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9448 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9449 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9450 then : 9451 printf %s "(cached) " >&6 9452 else $as_nop 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454 /* end confdefs.h. */ 9455 int i; 9456 _ACEOF 9457 if ac_fn_c_try_compile "$LINENO" 9458 then : 9459 xorg_cv_cc_flag_unknown_warning_option=yes 9460 else $as_nop 9461 xorg_cv_cc_flag_unknown_warning_option=no 9462 fi 9463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9464 fi 9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9466 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469 fi 9470 9471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9474 fi 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9479 then : 9480 printf %s "(cached) " >&6 9481 else $as_nop 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483 /* end confdefs.h. */ 9484 int i; 9485 _ACEOF 9486 if ac_fn_c_try_compile "$LINENO" 9487 then : 9488 xorg_cv_cc_flag_unused_command_line_argument=yes 9489 else $as_nop 9490 xorg_cv_cc_flag_unused_command_line_argument=no 9491 fi 9492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9493 fi 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9497 CFLAGS="$xorg_testset_save_CFLAGS" 9498 fi 9499 9500 found="no" 9501 9502 if test $found = "no" ; then 9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 fi 9506 9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9509 fi 9510 9511 CFLAGS="$CFLAGS -Wmain" 9512 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9514 printf %s "checking if $CC supports -Wmain... " >&6; } 9515 cacheid=xorg_cv_cc_flag__Wmain 9516 if eval test \${$cacheid+y} 9517 then : 9518 printf %s "(cached) " >&6 9519 else $as_nop 9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521 /* end confdefs.h. */ 9522 int i; 9523 int 9524 main (void) 9525 { 9526 9527 ; 9528 return 0; 9529 } 9530 _ACEOF 9531 if ac_fn_c_try_link "$LINENO" 9532 then : 9533 eval $cacheid=yes 9534 else $as_nop 9535 eval $cacheid=no 9536 fi 9537 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9538 conftest$ac_exeext conftest.$ac_ext 9539 fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546 printf "%s\n" "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 xorg_testset_save_CFLAGS="$CFLAGS" 9568 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9573 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9574 then : 9575 printf %s "(cached) " >&6 9576 else $as_nop 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 _ACEOF 9581 if ac_fn_c_try_compile "$LINENO" 9582 then : 9583 xorg_cv_cc_flag_unknown_warning_option=yes 9584 else $as_nop 9585 xorg_cv_cc_flag_unknown_warning_option=no 9586 fi 9587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9588 fi 9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593 fi 9594 9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 fi 9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9603 then : 9604 printf %s "(cached) " >&6 9605 else $as_nop 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607 /* end confdefs.h. */ 9608 int i; 9609 _ACEOF 9610 if ac_fn_c_try_compile "$LINENO" 9611 then : 9612 xorg_cv_cc_flag_unused_command_line_argument=yes 9613 else $as_nop 9614 xorg_cv_cc_flag_unused_command_line_argument=no 9615 fi 9616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9617 fi 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622 fi 9623 9624 found="no" 9625 9626 if test $found = "no" ; then 9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 fi 9630 9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9633 fi 9634 9635 CFLAGS="$CFLAGS -Wmissing-braces" 9636 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9638 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9639 cacheid=xorg_cv_cc_flag__Wmissing_braces 9640 if eval test \${$cacheid+y} 9641 then : 9642 printf %s "(cached) " >&6 9643 else $as_nop 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645 /* end confdefs.h. */ 9646 int i; 9647 int 9648 main (void) 9649 { 9650 9651 ; 9652 return 0; 9653 } 9654 _ACEOF 9655 if ac_fn_c_try_link "$LINENO" 9656 then : 9657 eval $cacheid=yes 9658 else $as_nop 9659 eval $cacheid=no 9660 fi 9661 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9662 conftest$ac_exeext conftest.$ac_ext 9663 fi 9664 9665 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667 9668 eval supported=\$$cacheid 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9670 printf "%s\n" "$supported" >&6; } 9671 if test "$supported" = "yes" ; then 9672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9673 found="yes" 9674 fi 9675 fi 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 xorg_testset_save_CFLAGS="$CFLAGS" 9692 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9697 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9698 then : 9699 printf %s "(cached) " >&6 9700 else $as_nop 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702 /* end confdefs.h. */ 9703 int i; 9704 _ACEOF 9705 if ac_fn_c_try_compile "$LINENO" 9706 then : 9707 xorg_cv_cc_flag_unknown_warning_option=yes 9708 else $as_nop 9709 xorg_cv_cc_flag_unknown_warning_option=no 9710 fi 9711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9712 fi 9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717 fi 9718 9719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9722 fi 9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9727 then : 9728 printf %s "(cached) " >&6 9729 else $as_nop 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731 /* end confdefs.h. */ 9732 int i; 9733 _ACEOF 9734 if ac_fn_c_try_compile "$LINENO" 9735 then : 9736 xorg_cv_cc_flag_unused_command_line_argument=yes 9737 else $as_nop 9738 xorg_cv_cc_flag_unused_command_line_argument=no 9739 fi 9740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9741 fi 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9745 CFLAGS="$xorg_testset_save_CFLAGS" 9746 fi 9747 9748 found="no" 9749 9750 if test $found = "no" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9757 fi 9758 9759 CFLAGS="$CFLAGS -Wsequence-point" 9760 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9762 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9763 cacheid=xorg_cv_cc_flag__Wsequence_point 9764 if eval test \${$cacheid+y} 9765 then : 9766 printf %s "(cached) " >&6 9767 else $as_nop 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769 /* end confdefs.h. */ 9770 int i; 9771 int 9772 main (void) 9773 { 9774 9775 ; 9776 return 0; 9777 } 9778 _ACEOF 9779 if ac_fn_c_try_link "$LINENO" 9780 then : 9781 eval $cacheid=yes 9782 else $as_nop 9783 eval $cacheid=no 9784 fi 9785 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9786 conftest$ac_exeext conftest.$ac_ext 9787 fi 9788 9789 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791 9792 eval supported=\$$cacheid 9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9794 printf "%s\n" "$supported" >&6; } 9795 if test "$supported" = "yes" ; then 9796 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9797 found="yes" 9798 fi 9799 fi 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 xorg_testset_save_CFLAGS="$CFLAGS" 9816 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9821 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9822 then : 9823 printf %s "(cached) " >&6 9824 else $as_nop 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826 /* end confdefs.h. */ 9827 int i; 9828 _ACEOF 9829 if ac_fn_c_try_compile "$LINENO" 9830 then : 9831 xorg_cv_cc_flag_unknown_warning_option=yes 9832 else $as_nop 9833 xorg_cv_cc_flag_unknown_warning_option=no 9834 fi 9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9836 fi 9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841 fi 9842 9843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9846 fi 9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9851 then : 9852 printf %s "(cached) " >&6 9853 else $as_nop 9854 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_unused_command_line_argument=yes 9861 else $as_nop 9862 xorg_cv_cc_flag_unused_command_line_argument=no 9863 fi 9864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9865 fi 9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9869 CFLAGS="$xorg_testset_save_CFLAGS" 9870 fi 9871 9872 found="no" 9873 9874 if test $found = "no" ; then 9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9877 fi 9878 9879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9881 fi 9882 9883 CFLAGS="$CFLAGS -Wreturn-type" 9884 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9886 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9887 cacheid=xorg_cv_cc_flag__Wreturn_type 9888 if eval test \${$cacheid+y} 9889 then : 9890 printf %s "(cached) " >&6 9891 else $as_nop 9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893 /* end confdefs.h. */ 9894 int i; 9895 int 9896 main (void) 9897 { 9898 9899 ; 9900 return 0; 9901 } 9902 _ACEOF 9903 if ac_fn_c_try_link "$LINENO" 9904 then : 9905 eval $cacheid=yes 9906 else $as_nop 9907 eval $cacheid=no 9908 fi 9909 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9910 conftest$ac_exeext conftest.$ac_ext 9911 fi 9912 9913 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915 9916 eval supported=\$$cacheid 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9918 printf "%s\n" "$supported" >&6; } 9919 if test "$supported" = "yes" ; then 9920 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9921 found="yes" 9922 fi 9923 fi 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 xorg_testset_save_CFLAGS="$CFLAGS" 9940 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9945 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9946 then : 9947 printf %s "(cached) " >&6 9948 else $as_nop 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950 /* end confdefs.h. */ 9951 int i; 9952 _ACEOF 9953 if ac_fn_c_try_compile "$LINENO" 9954 then : 9955 xorg_cv_cc_flag_unknown_warning_option=yes 9956 else $as_nop 9957 xorg_cv_cc_flag_unknown_warning_option=no 9958 fi 9959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9960 fi 9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965 fi 9966 9967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9970 fi 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9975 then : 9976 printf %s "(cached) " >&6 9977 else $as_nop 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979 /* end confdefs.h. */ 9980 int i; 9981 _ACEOF 9982 if ac_fn_c_try_compile "$LINENO" 9983 then : 9984 xorg_cv_cc_flag_unused_command_line_argument=yes 9985 else $as_nop 9986 xorg_cv_cc_flag_unused_command_line_argument=no 9987 fi 9988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9989 fi 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9993 CFLAGS="$xorg_testset_save_CFLAGS" 9994 fi 9995 9996 found="no" 9997 9998 if test $found = "no" ; then 9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 fi 10002 10003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10005 fi 10006 10007 CFLAGS="$CFLAGS -Wtrigraphs" 10008 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10010 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10011 cacheid=xorg_cv_cc_flag__Wtrigraphs 10012 if eval test \${$cacheid+y} 10013 then : 10014 printf %s "(cached) " >&6 10015 else $as_nop 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017 /* end confdefs.h. */ 10018 int i; 10019 int 10020 main (void) 10021 { 10022 10023 ; 10024 return 0; 10025 } 10026 _ACEOF 10027 if ac_fn_c_try_link "$LINENO" 10028 then : 10029 eval $cacheid=yes 10030 else $as_nop 10031 eval $cacheid=no 10032 fi 10033 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10034 conftest$ac_exeext conftest.$ac_ext 10035 fi 10036 10037 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039 10040 eval supported=\$$cacheid 10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10042 printf "%s\n" "$supported" >&6; } 10043 if test "$supported" = "yes" ; then 10044 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10045 found="yes" 10046 fi 10047 fi 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 xorg_testset_save_CFLAGS="$CFLAGS" 10064 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10068 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10069 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10070 then : 10071 printf %s "(cached) " >&6 10072 else $as_nop 10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10074 /* end confdefs.h. */ 10075 int i; 10076 _ACEOF 10077 if ac_fn_c_try_compile "$LINENO" 10078 then : 10079 xorg_cv_cc_flag_unknown_warning_option=yes 10080 else $as_nop 10081 xorg_cv_cc_flag_unknown_warning_option=no 10082 fi 10083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10084 fi 10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10086 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089 fi 10090 10091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 fi 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10097 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10098 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10099 then : 10100 printf %s "(cached) " >&6 10101 else $as_nop 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10103 /* end confdefs.h. */ 10104 int i; 10105 _ACEOF 10106 if ac_fn_c_try_compile "$LINENO" 10107 then : 10108 xorg_cv_cc_flag_unused_command_line_argument=yes 10109 else $as_nop 10110 xorg_cv_cc_flag_unused_command_line_argument=no 10111 fi 10112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10113 fi 10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10117 CFLAGS="$xorg_testset_save_CFLAGS" 10118 fi 10119 10120 found="no" 10121 10122 if test $found = "no" ; then 10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10125 fi 10126 10127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10129 fi 10130 10131 CFLAGS="$CFLAGS -Warray-bounds" 10132 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10134 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10135 cacheid=xorg_cv_cc_flag__Warray_bounds 10136 if eval test \${$cacheid+y} 10137 then : 10138 printf %s "(cached) " >&6 10139 else $as_nop 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141 /* end confdefs.h. */ 10142 int i; 10143 int 10144 main (void) 10145 { 10146 10147 ; 10148 return 0; 10149 } 10150 _ACEOF 10151 if ac_fn_c_try_link "$LINENO" 10152 then : 10153 eval $cacheid=yes 10154 else $as_nop 10155 eval $cacheid=no 10156 fi 10157 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10158 conftest$ac_exeext conftest.$ac_ext 10159 fi 10160 10161 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163 10164 eval supported=\$$cacheid 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10166 printf "%s\n" "$supported" >&6; } 10167 if test "$supported" = "yes" ; then 10168 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10169 found="yes" 10170 fi 10171 fi 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 xorg_testset_save_CFLAGS="$CFLAGS" 10188 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10193 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10194 then : 10195 printf %s "(cached) " >&6 10196 else $as_nop 10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10198 /* end confdefs.h. */ 10199 int i; 10200 _ACEOF 10201 if ac_fn_c_try_compile "$LINENO" 10202 then : 10203 xorg_cv_cc_flag_unknown_warning_option=yes 10204 else $as_nop 10205 xorg_cv_cc_flag_unknown_warning_option=no 10206 fi 10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10208 fi 10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10212 CFLAGS="$xorg_testset_save_CFLAGS" 10213 fi 10214 10215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10218 fi 10219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10223 then : 10224 printf %s "(cached) " >&6 10225 else $as_nop 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227 /* end confdefs.h. */ 10228 int i; 10229 _ACEOF 10230 if ac_fn_c_try_compile "$LINENO" 10231 then : 10232 xorg_cv_cc_flag_unused_command_line_argument=yes 10233 else $as_nop 10234 xorg_cv_cc_flag_unused_command_line_argument=no 10235 fi 10236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10237 fi 10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10241 CFLAGS="$xorg_testset_save_CFLAGS" 10242 fi 10243 10244 found="no" 10245 10246 if test $found = "no" ; then 10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249 fi 10250 10251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10253 fi 10254 10255 CFLAGS="$CFLAGS -Wwrite-strings" 10256 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10258 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10259 cacheid=xorg_cv_cc_flag__Wwrite_strings 10260 if eval test \${$cacheid+y} 10261 then : 10262 printf %s "(cached) " >&6 10263 else $as_nop 10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10265 /* end confdefs.h. */ 10266 int i; 10267 int 10268 main (void) 10269 { 10270 10271 ; 10272 return 0; 10273 } 10274 _ACEOF 10275 if ac_fn_c_try_link "$LINENO" 10276 then : 10277 eval $cacheid=yes 10278 else $as_nop 10279 eval $cacheid=no 10280 fi 10281 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10282 conftest$ac_exeext conftest.$ac_ext 10283 fi 10284 10285 10286 CFLAGS="$xorg_testset_save_CFLAGS" 10287 10288 eval supported=\$$cacheid 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10290 printf "%s\n" "$supported" >&6; } 10291 if test "$supported" = "yes" ; then 10292 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10293 found="yes" 10294 fi 10295 fi 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 xorg_testset_save_CFLAGS="$CFLAGS" 10312 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10318 then : 10319 printf %s "(cached) " >&6 10320 else $as_nop 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10322 /* end confdefs.h. */ 10323 int i; 10324 _ACEOF 10325 if ac_fn_c_try_compile "$LINENO" 10326 then : 10327 xorg_cv_cc_flag_unknown_warning_option=yes 10328 else $as_nop 10329 xorg_cv_cc_flag_unknown_warning_option=no 10330 fi 10331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10332 fi 10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10336 CFLAGS="$xorg_testset_save_CFLAGS" 10337 fi 10338 10339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10347 then : 10348 printf %s "(cached) " >&6 10349 else $as_nop 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351 /* end confdefs.h. */ 10352 int i; 10353 _ACEOF 10354 if ac_fn_c_try_compile "$LINENO" 10355 then : 10356 xorg_cv_cc_flag_unused_command_line_argument=yes 10357 else $as_nop 10358 xorg_cv_cc_flag_unused_command_line_argument=no 10359 fi 10360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10361 fi 10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10365 CFLAGS="$xorg_testset_save_CFLAGS" 10366 fi 10367 10368 found="no" 10369 10370 if test $found = "no" ; then 10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10373 fi 10374 10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10377 fi 10378 10379 CFLAGS="$CFLAGS -Waddress" 10380 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10382 printf %s "checking if $CC supports -Waddress... " >&6; } 10383 cacheid=xorg_cv_cc_flag__Waddress 10384 if eval test \${$cacheid+y} 10385 then : 10386 printf %s "(cached) " >&6 10387 else $as_nop 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 int i; 10391 int 10392 main (void) 10393 { 10394 10395 ; 10396 return 0; 10397 } 10398 _ACEOF 10399 if ac_fn_c_try_link "$LINENO" 10400 then : 10401 eval $cacheid=yes 10402 else $as_nop 10403 eval $cacheid=no 10404 fi 10405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10406 conftest$ac_exeext conftest.$ac_ext 10407 fi 10408 10409 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411 10412 eval supported=\$$cacheid 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10414 printf "%s\n" "$supported" >&6; } 10415 if test "$supported" = "yes" ; then 10416 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10417 found="yes" 10418 fi 10419 fi 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 xorg_testset_save_CFLAGS="$CFLAGS" 10436 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10442 then : 10443 printf %s "(cached) " >&6 10444 else $as_nop 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446 /* end confdefs.h. */ 10447 int i; 10448 _ACEOF 10449 if ac_fn_c_try_compile "$LINENO" 10450 then : 10451 xorg_cv_cc_flag_unknown_warning_option=yes 10452 else $as_nop 10453 xorg_cv_cc_flag_unknown_warning_option=no 10454 fi 10455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10456 fi 10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461 fi 10462 10463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10466 fi 10467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10471 then : 10472 printf %s "(cached) " >&6 10473 else $as_nop 10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475 /* end confdefs.h. */ 10476 int i; 10477 _ACEOF 10478 if ac_fn_c_try_compile "$LINENO" 10479 then : 10480 xorg_cv_cc_flag_unused_command_line_argument=yes 10481 else $as_nop 10482 xorg_cv_cc_flag_unused_command_line_argument=no 10483 fi 10484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10485 fi 10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 fi 10491 10492 found="no" 10493 10494 if test $found = "no" ; then 10495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10497 fi 10498 10499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10501 fi 10502 10503 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10504 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10506 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10507 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10508 if eval test \${$cacheid+y} 10509 then : 10510 printf %s "(cached) " >&6 10511 else $as_nop 10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10513 /* end confdefs.h. */ 10514 int i; 10515 int 10516 main (void) 10517 { 10518 10519 ; 10520 return 0; 10521 } 10522 _ACEOF 10523 if ac_fn_c_try_link "$LINENO" 10524 then : 10525 eval $cacheid=yes 10526 else $as_nop 10527 eval $cacheid=no 10528 fi 10529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10530 conftest$ac_exeext conftest.$ac_ext 10531 fi 10532 10533 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535 10536 eval supported=\$$cacheid 10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10538 printf "%s\n" "$supported" >&6; } 10539 if test "$supported" = "yes" ; then 10540 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10541 found="yes" 10542 fi 10543 fi 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 xorg_testset_save_CFLAGS="$CFLAGS" 10560 10561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10565 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10566 then : 10567 printf %s "(cached) " >&6 10568 else $as_nop 10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570 /* end confdefs.h. */ 10571 int i; 10572 _ACEOF 10573 if ac_fn_c_try_compile "$LINENO" 10574 then : 10575 xorg_cv_cc_flag_unknown_warning_option=yes 10576 else $as_nop 10577 xorg_cv_cc_flag_unknown_warning_option=no 10578 fi 10579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10580 fi 10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10584 CFLAGS="$xorg_testset_save_CFLAGS" 10585 fi 10586 10587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10590 fi 10591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10595 then : 10596 printf %s "(cached) " >&6 10597 else $as_nop 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599 /* end confdefs.h. */ 10600 int i; 10601 _ACEOF 10602 if ac_fn_c_try_compile "$LINENO" 10603 then : 10604 xorg_cv_cc_flag_unused_command_line_argument=yes 10605 else $as_nop 10606 xorg_cv_cc_flag_unused_command_line_argument=no 10607 fi 10608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10609 fi 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614 fi 10615 10616 found="no" 10617 10618 if test $found = "no" ; then 10619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10621 fi 10622 10623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10625 fi 10626 10627 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10628 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10630 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10631 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10632 if eval test \${$cacheid+y} 10633 then : 10634 printf %s "(cached) " >&6 10635 else $as_nop 10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637 /* end confdefs.h. */ 10638 int i; 10639 int 10640 main (void) 10641 { 10642 10643 ; 10644 return 0; 10645 } 10646 _ACEOF 10647 if ac_fn_c_try_link "$LINENO" 10648 then : 10649 eval $cacheid=yes 10650 else $as_nop 10651 eval $cacheid=no 10652 fi 10653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10654 conftest$ac_exeext conftest.$ac_ext 10655 fi 10656 10657 10658 CFLAGS="$xorg_testset_save_CFLAGS" 10659 10660 eval supported=\$$cacheid 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10662 printf "%s\n" "$supported" >&6; } 10663 if test "$supported" = "yes" ; then 10664 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10665 found="yes" 10666 fi 10667 fi 10668 10669 10670 fi 10671 10672 10673 10674 10675 10676 10677 10678 CWARNFLAGS="$BASE_CFLAGS" 10679 if test "x$GCC" = xyes ; then 10680 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10681 fi 10682 10683 10684 10685 10686 10687 10688 10689 10690 # Check whether --enable-strict-compilation was given. 10691 if test ${enable_strict_compilation+y} 10692 then : 10693 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10694 else $as_nop 10695 STRICT_COMPILE=no 10696 fi 10697 10698 10699 10700 10701 10702 10703 STRICT_CFLAGS="" 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 xorg_testset_save_CFLAGS="$CFLAGS" 10718 10719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10723 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10724 then : 10725 printf %s "(cached) " >&6 10726 else $as_nop 10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728 /* end confdefs.h. */ 10729 int i; 10730 _ACEOF 10731 if ac_fn_c_try_compile "$LINENO" 10732 then : 10733 xorg_cv_cc_flag_unknown_warning_option=yes 10734 else $as_nop 10735 xorg_cv_cc_flag_unknown_warning_option=no 10736 fi 10737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10738 fi 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10740 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10742 CFLAGS="$xorg_testset_save_CFLAGS" 10743 fi 10744 10745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10748 fi 10749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10753 then : 10754 printf %s "(cached) " >&6 10755 else $as_nop 10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10757 /* end confdefs.h. */ 10758 int i; 10759 _ACEOF 10760 if ac_fn_c_try_compile "$LINENO" 10761 then : 10762 xorg_cv_cc_flag_unused_command_line_argument=yes 10763 else $as_nop 10764 xorg_cv_cc_flag_unused_command_line_argument=no 10765 fi 10766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10767 fi 10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10771 CFLAGS="$xorg_testset_save_CFLAGS" 10772 fi 10773 10774 found="no" 10775 10776 if test $found = "no" ; then 10777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10779 fi 10780 10781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10783 fi 10784 10785 CFLAGS="$CFLAGS -pedantic" 10786 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10788 printf %s "checking if $CC supports -pedantic... " >&6; } 10789 cacheid=xorg_cv_cc_flag__pedantic 10790 if eval test \${$cacheid+y} 10791 then : 10792 printf %s "(cached) " >&6 10793 else $as_nop 10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10795 /* end confdefs.h. */ 10796 int i; 10797 int 10798 main (void) 10799 { 10800 10801 ; 10802 return 0; 10803 } 10804 _ACEOF 10805 if ac_fn_c_try_link "$LINENO" 10806 then : 10807 eval $cacheid=yes 10808 else $as_nop 10809 eval $cacheid=no 10810 fi 10811 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10812 conftest$ac_exeext conftest.$ac_ext 10813 fi 10814 10815 10816 CFLAGS="$xorg_testset_save_CFLAGS" 10817 10818 eval supported=\$$cacheid 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10820 printf "%s\n" "$supported" >&6; } 10821 if test "$supported" = "yes" ; then 10822 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10823 found="yes" 10824 fi 10825 fi 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 xorg_testset_save_CFLAGS="$CFLAGS" 10842 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10847 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10848 then : 10849 printf %s "(cached) " >&6 10850 else $as_nop 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852 /* end confdefs.h. */ 10853 int i; 10854 _ACEOF 10855 if ac_fn_c_try_compile "$LINENO" 10856 then : 10857 xorg_cv_cc_flag_unknown_warning_option=yes 10858 else $as_nop 10859 xorg_cv_cc_flag_unknown_warning_option=no 10860 fi 10861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10862 fi 10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10864 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10866 CFLAGS="$xorg_testset_save_CFLAGS" 10867 fi 10868 10869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10872 fi 10873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10875 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10876 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10877 then : 10878 printf %s "(cached) " >&6 10879 else $as_nop 10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10881 /* end confdefs.h. */ 10882 int i; 10883 _ACEOF 10884 if ac_fn_c_try_compile "$LINENO" 10885 then : 10886 xorg_cv_cc_flag_unused_command_line_argument=yes 10887 else $as_nop 10888 xorg_cv_cc_flag_unused_command_line_argument=no 10889 fi 10890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10891 fi 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10895 CFLAGS="$xorg_testset_save_CFLAGS" 10896 fi 10897 10898 found="no" 10899 10900 if test $found = "no" ; then 10901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10903 fi 10904 10905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10907 fi 10908 10909 CFLAGS="$CFLAGS -Werror" 10910 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10912 printf %s "checking if $CC supports -Werror... " >&6; } 10913 cacheid=xorg_cv_cc_flag__Werror 10914 if eval test \${$cacheid+y} 10915 then : 10916 printf %s "(cached) " >&6 10917 else $as_nop 10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919 /* end confdefs.h. */ 10920 int i; 10921 int 10922 main (void) 10923 { 10924 10925 ; 10926 return 0; 10927 } 10928 _ACEOF 10929 if ac_fn_c_try_link "$LINENO" 10930 then : 10931 eval $cacheid=yes 10932 else $as_nop 10933 eval $cacheid=no 10934 fi 10935 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10936 conftest$ac_exeext conftest.$ac_ext 10937 fi 10938 10939 10940 CFLAGS="$xorg_testset_save_CFLAGS" 10941 10942 eval supported=\$$cacheid 10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10944 printf "%s\n" "$supported" >&6; } 10945 if test "$supported" = "yes" ; then 10946 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10947 found="yes" 10948 fi 10949 fi 10950 10951 if test $found = "no" ; then 10952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10954 fi 10955 10956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10958 fi 10959 10960 CFLAGS="$CFLAGS -errwarn" 10961 10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10963 printf %s "checking if $CC supports -errwarn... " >&6; } 10964 cacheid=xorg_cv_cc_flag__errwarn 10965 if eval test \${$cacheid+y} 10966 then : 10967 printf %s "(cached) " >&6 10968 else $as_nop 10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970 /* end confdefs.h. */ 10971 int i; 10972 int 10973 main (void) 10974 { 10975 10976 ; 10977 return 0; 10978 } 10979 _ACEOF 10980 if ac_fn_c_try_link "$LINENO" 10981 then : 10982 eval $cacheid=yes 10983 else $as_nop 10984 eval $cacheid=no 10985 fi 10986 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10987 conftest$ac_exeext conftest.$ac_ext 10988 fi 10989 10990 10991 CFLAGS="$xorg_testset_save_CFLAGS" 10992 10993 eval supported=\$$cacheid 10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10995 printf "%s\n" "$supported" >&6; } 10996 if test "$supported" = "yes" ; then 10997 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10998 found="yes" 10999 fi 11000 fi 11001 11002 11003 11004 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11005 # activate it with -Werror, so we add it here explicitly. 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 xorg_testset_save_CFLAGS="$CFLAGS" 11020 11021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11025 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11026 then : 11027 printf %s "(cached) " >&6 11028 else $as_nop 11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11030 /* end confdefs.h. */ 11031 int i; 11032 _ACEOF 11033 if ac_fn_c_try_compile "$LINENO" 11034 then : 11035 xorg_cv_cc_flag_unknown_warning_option=yes 11036 else $as_nop 11037 xorg_cv_cc_flag_unknown_warning_option=no 11038 fi 11039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11040 fi 11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11042 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11044 CFLAGS="$xorg_testset_save_CFLAGS" 11045 fi 11046 11047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11050 fi 11051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11053 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11054 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11055 then : 11056 printf %s "(cached) " >&6 11057 else $as_nop 11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059 /* end confdefs.h. */ 11060 int i; 11061 _ACEOF 11062 if ac_fn_c_try_compile "$LINENO" 11063 then : 11064 xorg_cv_cc_flag_unused_command_line_argument=yes 11065 else $as_nop 11066 xorg_cv_cc_flag_unused_command_line_argument=no 11067 fi 11068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11069 fi 11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11073 CFLAGS="$xorg_testset_save_CFLAGS" 11074 fi 11075 11076 found="no" 11077 11078 if test $found = "no" ; then 11079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11081 fi 11082 11083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11085 fi 11086 11087 CFLAGS="$CFLAGS -Werror=attributes" 11088 11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11090 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11091 cacheid=xorg_cv_cc_flag__Werror_attributes 11092 if eval test \${$cacheid+y} 11093 then : 11094 printf %s "(cached) " >&6 11095 else $as_nop 11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097 /* end confdefs.h. */ 11098 int i; 11099 int 11100 main (void) 11101 { 11102 11103 ; 11104 return 0; 11105 } 11106 _ACEOF 11107 if ac_fn_c_try_link "$LINENO" 11108 then : 11109 eval $cacheid=yes 11110 else $as_nop 11111 eval $cacheid=no 11112 fi 11113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext 11115 fi 11116 11117 11118 CFLAGS="$xorg_testset_save_CFLAGS" 11119 11120 eval supported=\$$cacheid 11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11122 printf "%s\n" "$supported" >&6; } 11123 if test "$supported" = "yes" ; then 11124 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11125 found="yes" 11126 fi 11127 fi 11128 11129 11130 11131 if test "x$STRICT_COMPILE" = "xyes"; then 11132 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11133 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11134 fi 11135 11136 11137 11138 11139 11140 11141 cat >>confdefs.h <<_ACEOF 11142 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11143 _ACEOF 11144 11145 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11146 if test "x$PVM" = "x"; then 11147 PVM="0" 11148 fi 11149 11150 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11151 11152 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11153 if test "x$PVP" = "x"; then 11154 PVP="0" 11155 fi 11156 11157 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11158 11159 11160 11161 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11162 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11163 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11164 touch \$(top_srcdir)/ChangeLog; \ 11165 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11166 11167 11168 11169 11170 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11171 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11172 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11173 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11174 touch \$(top_srcdir)/INSTALL; \ 11175 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11176 11177 11178 11179 11180 11181 11182 case $host_os in 11183 solaris*) 11184 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11185 # check for a man page file found in later versions that use 11186 # traditional section numbers instead 11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11188 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11189 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11190 then : 11191 printf %s "(cached) " >&6 11192 else $as_nop 11193 test "$cross_compiling" = yes && 11194 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11195 if test -r "/usr/share/man/man7/attributes.7"; then 11196 ac_cv_file__usr_share_man_man7_attributes_7=yes 11197 else 11198 ac_cv_file__usr_share_man_man7_attributes_7=no 11199 fi 11200 fi 11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11202 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11203 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11204 then : 11205 SYSV_MAN_SECTIONS=false 11206 else $as_nop 11207 SYSV_MAN_SECTIONS=true 11208 fi 11209 11210 ;; 11211 *) SYSV_MAN_SECTIONS=false ;; 11212 esac 11213 11214 if test x$APP_MAN_SUFFIX = x ; then 11215 APP_MAN_SUFFIX=1 11216 fi 11217 if test x$APP_MAN_DIR = x ; then 11218 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11219 fi 11220 11221 if test x$LIB_MAN_SUFFIX = x ; then 11222 LIB_MAN_SUFFIX=3 11223 fi 11224 if test x$LIB_MAN_DIR = x ; then 11225 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11226 fi 11227 11228 if test x$FILE_MAN_SUFFIX = x ; then 11229 case $SYSV_MAN_SECTIONS in 11230 true) FILE_MAN_SUFFIX=4 ;; 11231 *) FILE_MAN_SUFFIX=5 ;; 11232 esac 11233 fi 11234 if test x$FILE_MAN_DIR = x ; then 11235 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11236 fi 11237 11238 if test x$MISC_MAN_SUFFIX = x ; then 11239 case $SYSV_MAN_SECTIONS in 11240 true) MISC_MAN_SUFFIX=5 ;; 11241 *) MISC_MAN_SUFFIX=7 ;; 11242 esac 11243 fi 11244 if test x$MISC_MAN_DIR = x ; then 11245 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11246 fi 11247 11248 if test x$DRIVER_MAN_SUFFIX = x ; then 11249 case $SYSV_MAN_SECTIONS in 11250 true) DRIVER_MAN_SUFFIX=7 ;; 11251 *) DRIVER_MAN_SUFFIX=4 ;; 11252 esac 11253 fi 11254 if test x$DRIVER_MAN_DIR = x ; then 11255 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11256 fi 11257 11258 if test x$ADMIN_MAN_SUFFIX = x ; then 11259 case $SYSV_MAN_SECTIONS in 11260 true) ADMIN_MAN_SUFFIX=1m ;; 11261 *) ADMIN_MAN_SUFFIX=8 ;; 11262 esac 11263 fi 11264 if test x$ADMIN_MAN_DIR = x ; then 11265 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11266 fi 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 XORG_MAN_PAGE="X Version 11" 11283 11284 MAN_SUBSTS="\ 11285 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11286 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11287 -e 's|__xservername__|Xorg|g' \ 11288 -e 's|__xconfigfile__|xorg.conf|g' \ 11289 -e 's|__projectroot__|\$(prefix)|g' \ 11290 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11291 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11292 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11293 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11294 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11295 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11296 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11297 11298 11299 11300 # Check whether --enable-silent-rules was given. 11301 if test ${enable_silent_rules+y} 11302 then : 11303 enableval=$enable_silent_rules; 11304 fi 11305 11306 case $enable_silent_rules in # ((( 11307 yes) AM_DEFAULT_VERBOSITY=0;; 11308 no) AM_DEFAULT_VERBOSITY=1;; 11309 *) AM_DEFAULT_VERBOSITY=0;; 11310 esac 11311 am_make=${MAKE-make} 11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11313 printf %s "checking whether $am_make supports nested variables... " >&6; } 11314 if test ${am_cv_make_support_nested_variables+y} 11315 then : 11316 printf %s "(cached) " >&6 11317 else $as_nop 11318 if printf "%s\n" 'TRUE=$(BAR$(V)) 11319 BAR0=false 11320 BAR1=true 11321 V=1 11322 am__doit: 11323 @$(TRUE) 11324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11325 am_cv_make_support_nested_variables=yes 11326 else 11327 am_cv_make_support_nested_variables=no 11328 fi 11329 fi 11330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11331 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11332 if test $am_cv_make_support_nested_variables = yes; then 11333 AM_V='$(V)' 11334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11335 else 11336 AM_V=$AM_DEFAULT_VERBOSITY 11337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11338 fi 11339 AM_BACKSLASH='\' 11340 11341 11342 11343 # Checks for system functions 11344 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 11345 if test "x$ac_cv_func_usleep" = xyes 11346 then : 11347 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 11348 11349 fi 11350 11351 11352 # Checks for pkg-config packages 11353 11354 pkg_failed=no 11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5 11356 printf %s "checking for XSET... " >&6; } 11357 11358 if test -n "$XSET_CFLAGS"; then 11359 pkg_cv_XSET_CFLAGS="$XSET_CFLAGS" 11360 elif test -n "$PKG_CONFIG"; then 11361 if test -n "$PKG_CONFIG" && \ 11362 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5 11363 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5 11364 ac_status=$? 11365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11366 test $ac_status = 0; }; then 11367 pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null` 11368 test "x$?" != "x0" && pkg_failed=yes 11369 else 11370 pkg_failed=yes 11371 fi 11372 else 11373 pkg_failed=untried 11374 fi 11375 if test -n "$XSET_LIBS"; then 11376 pkg_cv_XSET_LIBS="$XSET_LIBS" 11377 elif test -n "$PKG_CONFIG"; then 11378 if test -n "$PKG_CONFIG" && \ 11379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5 11380 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5 11381 ac_status=$? 11382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11383 test $ac_status = 0; }; then 11384 pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null` 11385 test "x$?" != "x0" && pkg_failed=yes 11386 else 11387 pkg_failed=yes 11388 fi 11389 else 11390 pkg_failed=untried 11391 fi 11392 11393 11394 11395 if test $pkg_failed = yes; then 11396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11397 printf "%s\n" "no" >&6; } 11398 11399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11400 _pkg_short_errors_supported=yes 11401 else 11402 _pkg_short_errors_supported=no 11403 fi 11404 if test $_pkg_short_errors_supported = yes; then 11405 XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1` 11406 else 11407 XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xmuu" 2>&1` 11408 fi 11409 # Put the nasty error message in config.log where it belongs 11410 echo "$XSET_PKG_ERRORS" >&5 11411 11412 as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met: 11413 11414 $XSET_PKG_ERRORS 11415 11416 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11417 installed software in a non-standard prefix. 11418 11419 Alternatively, you may set the environment variables XSET_CFLAGS 11420 and XSET_LIBS to avoid the need to call pkg-config. 11421 See the pkg-config man page for more details." "$LINENO" 5 11422 elif test $pkg_failed = untried; then 11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11424 printf "%s\n" "no" >&6; } 11425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11427 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11428 is in your PATH or set the PKG_CONFIG environment variable to the full 11429 path to pkg-config. 11430 11431 Alternatively, you may set the environment variables XSET_CFLAGS 11432 and XSET_LIBS to avoid the need to call pkg-config. 11433 See the pkg-config man page for more details. 11434 11435 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11436 See \`config.log' for more details" "$LINENO" 5; } 11437 else 11438 XSET_CFLAGS=$pkg_cv_XSET_CFLAGS 11439 XSET_LIBS=$pkg_cv_XSET_LIBS 11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11441 printf "%s\n" "yes" >&6; } 11442 11443 fi 11444 11445 # This is used below to allow <X11/Xlib.h> to be found 11446 11447 pkg_failed=no 11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5 11449 printf %s "checking for SET_X11... " >&6; } 11450 11451 if test -n "$SET_X11_CFLAGS"; then 11452 pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS" 11453 elif test -n "$PKG_CONFIG"; then 11454 if test -n "$PKG_CONFIG" && \ 11455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11456 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11457 ac_status=$? 11458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11459 test $ac_status = 0; }; then 11460 pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 11461 test "x$?" != "x0" && pkg_failed=yes 11462 else 11463 pkg_failed=yes 11464 fi 11465 else 11466 pkg_failed=untried 11467 fi 11468 if test -n "$SET_X11_LIBS"; then 11469 pkg_cv_SET_X11_LIBS="$SET_X11_LIBS" 11470 elif test -n "$PKG_CONFIG"; then 11471 if test -n "$PKG_CONFIG" && \ 11472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11473 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11474 ac_status=$? 11475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11476 test $ac_status = 0; }; then 11477 pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 11478 test "x$?" != "x0" && pkg_failed=yes 11479 else 11480 pkg_failed=yes 11481 fi 11482 else 11483 pkg_failed=untried 11484 fi 11485 11486 11487 11488 if test $pkg_failed = yes; then 11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11490 printf "%s\n" "no" >&6; } 11491 11492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11493 _pkg_short_errors_supported=yes 11494 else 11495 _pkg_short_errors_supported=no 11496 fi 11497 if test $_pkg_short_errors_supported = yes; then 11498 SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 11499 else 11500 SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 11501 fi 11502 # Put the nasty error message in config.log where it belongs 11503 echo "$SET_X11_PKG_ERRORS" >&5 11504 11505 as_fn_error $? "Package requirements (x11) were not met: 11506 11507 $SET_X11_PKG_ERRORS 11508 11509 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11510 installed software in a non-standard prefix. 11511 11512 Alternatively, you may set the environment variables SET_X11_CFLAGS 11513 and SET_X11_LIBS to avoid the need to call pkg-config. 11514 See the pkg-config man page for more details." "$LINENO" 5 11515 elif test $pkg_failed = untried; then 11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11517 printf "%s\n" "no" >&6; } 11518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11519 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11520 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11521 is in your PATH or set the PKG_CONFIG environment variable to the full 11522 path to pkg-config. 11523 11524 Alternatively, you may set the environment variables SET_X11_CFLAGS 11525 and SET_X11_LIBS to avoid the need to call pkg-config. 11526 See the pkg-config man page for more details. 11527 11528 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11529 See \`config.log' for more details" "$LINENO" 5; } 11530 else 11531 SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS 11532 SET_X11_LIBS=$pkg_cv_SET_X11_LIBS 11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11534 printf "%s\n" "yes" >&6; } 11535 11536 fi 11537 11538 11539 pkg_failed=no 11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5 11541 printf %s "checking for SET_XEXT... " >&6; } 11542 11543 if test -n "$SET_XEXT_CFLAGS"; then 11544 pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS" 11545 elif test -n "$PKG_CONFIG"; then 11546 if test -n "$PKG_CONFIG" && \ 11547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11548 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11549 ac_status=$? 11550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11551 test $ac_status = 0; }; then 11552 pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 11553 test "x$?" != "x0" && pkg_failed=yes 11554 else 11555 pkg_failed=yes 11556 fi 11557 else 11558 pkg_failed=untried 11559 fi 11560 if test -n "$SET_XEXT_LIBS"; then 11561 pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS" 11562 elif test -n "$PKG_CONFIG"; then 11563 if test -n "$PKG_CONFIG" && \ 11564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11565 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11566 ac_status=$? 11567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11568 test $ac_status = 0; }; then 11569 pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 11570 test "x$?" != "x0" && pkg_failed=yes 11571 else 11572 pkg_failed=yes 11573 fi 11574 else 11575 pkg_failed=untried 11576 fi 11577 11578 11579 11580 if test $pkg_failed = yes; then 11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11582 printf "%s\n" "no" >&6; } 11583 11584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11585 _pkg_short_errors_supported=yes 11586 else 11587 _pkg_short_errors_supported=no 11588 fi 11589 if test $_pkg_short_errors_supported = yes; then 11590 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1` 11591 else 11592 SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1` 11593 fi 11594 # Put the nasty error message in config.log where it belongs 11595 echo "$SET_XEXT_PKG_ERRORS" >&5 11596 11597 echo "not found" 11598 elif test $pkg_failed = untried; then 11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600 printf "%s\n" "no" >&6; } 11601 echo "not found" 11602 else 11603 SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS 11604 SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS 11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11606 printf "%s\n" "yes" >&6; } 11607 SAVE_CPPFLAGS="$CPPFLAGS" 11608 CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS" 11609 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dpms.h" "ac_cv_header_X11_extensions_dpms_h" "#include <X11/Xlib.h> 11610 " 11611 if test "x$ac_cv_header_X11_extensions_dpms_h" = xyes 11612 then : 11613 printf "%s\n" "#define HAVE_X11_EXTENSIONS_DPMS_H 1" >>confdefs.h 11614 11615 fi 11616 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/MITMisc.h" "ac_cv_header_X11_extensions_MITMisc_h" "#include <X11/Xlib.h> 11617 " 11618 if test "x$ac_cv_header_X11_extensions_MITMisc_h" = xyes 11619 then : 11620 printf "%s\n" "#define HAVE_X11_EXTENSIONS_MITMISC_H 1" >>confdefs.h 11621 11622 fi 11623 11624 CPPFLAGS="$SAVE_CPPFLAGS" 11625 fi 11626 11627 11628 pkg_failed=no 11629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5 11630 printf %s "checking for SET_XKB... " >&6; } 11631 11632 if test -n "$SET_XKB_CFLAGS"; then 11633 pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS" 11634 elif test -n "$PKG_CONFIG"; then 11635 if test -n "$PKG_CONFIG" && \ 11636 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11637 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11638 ac_status=$? 11639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11640 test $ac_status = 0; }; then 11641 pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 11642 test "x$?" != "x0" && pkg_failed=yes 11643 else 11644 pkg_failed=yes 11645 fi 11646 else 11647 pkg_failed=untried 11648 fi 11649 if test -n "$SET_XKB_LIBS"; then 11650 pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS" 11651 elif test -n "$PKG_CONFIG"; then 11652 if test -n "$PKG_CONFIG" && \ 11653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 11654 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 11655 ac_status=$? 11656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11657 test $ac_status = 0; }; then 11658 pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 11659 test "x$?" != "x0" && pkg_failed=yes 11660 else 11661 pkg_failed=yes 11662 fi 11663 else 11664 pkg_failed=untried 11665 fi 11666 11667 11668 11669 if test $pkg_failed = yes; then 11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11671 printf "%s\n" "no" >&6; } 11672 11673 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11674 _pkg_short_errors_supported=yes 11675 else 11676 _pkg_short_errors_supported=no 11677 fi 11678 if test $_pkg_short_errors_supported = yes; then 11679 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 11680 else 11681 SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 11682 fi 11683 # Put the nasty error message in config.log where it belongs 11684 echo "$SET_XKB_PKG_ERRORS" >&5 11685 11686 echo "not found" 11687 elif test $pkg_failed = untried; then 11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11689 printf "%s\n" "no" >&6; } 11690 echo "not found" 11691 else 11692 SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS 11693 SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS 11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11695 printf "%s\n" "yes" >&6; } 11696 SAVE_CPPFLAGS="$CPPFLAGS" 11697 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS" 11698 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h> 11699 " 11700 if test "x$ac_cv_header_X11_XKBlib_h" = xyes 11701 then : 11702 printf "%s\n" "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h 11703 11704 fi 11705 11706 CPPFLAGS="$SAVE_CPPFLAGS" 11707 fi 11708 11709 11710 # Check whether --with-xf86misc was given. 11711 if test ${with_xf86misc+y} 11712 then : 11713 withval=$with_xf86misc; USE_XF86MISC="$withval" 11714 else $as_nop 11715 USE_XF86MISC="no" 11716 fi 11717 11718 if test "x$USE_XF86MISC" != "xno" ; then 11719 11720 pkg_failed=no 11721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5 11722 printf %s "checking for SET_XF86MISC... " >&6; } 11723 11724 if test -n "$SET_XF86MISC_CFLAGS"; then 11725 pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS" 11726 elif test -n "$PKG_CONFIG"; then 11727 if test -n "$PKG_CONFIG" && \ 11728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11729 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11730 ac_status=$? 11731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11732 test $ac_status = 0; }; then 11733 pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null` 11734 test "x$?" != "x0" && pkg_failed=yes 11735 else 11736 pkg_failed=yes 11737 fi 11738 else 11739 pkg_failed=untried 11740 fi 11741 if test -n "$SET_XF86MISC_LIBS"; then 11742 pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS" 11743 elif test -n "$PKG_CONFIG"; then 11744 if test -n "$PKG_CONFIG" && \ 11745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11746 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11747 ac_status=$? 11748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11749 test $ac_status = 0; }; then 11750 pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null` 11751 test "x$?" != "x0" && pkg_failed=yes 11752 else 11753 pkg_failed=yes 11754 fi 11755 else 11756 pkg_failed=untried 11757 fi 11758 11759 11760 11761 if test $pkg_failed = yes; then 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11763 printf "%s\n" "no" >&6; } 11764 11765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11766 _pkg_short_errors_supported=yes 11767 else 11768 _pkg_short_errors_supported=no 11769 fi 11770 if test $_pkg_short_errors_supported = yes; then 11771 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86misc" 2>&1` 11772 else 11773 SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86misc" 2>&1` 11774 fi 11775 # Put the nasty error message in config.log where it belongs 11776 echo "$SET_XF86MISC_PKG_ERRORS" >&5 11777 11778 echo "not found" 11779 elif test $pkg_failed = untried; then 11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11781 printf "%s\n" "no" >&6; } 11782 echo "not found" 11783 else 11784 SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS 11785 SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS 11786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11787 printf "%s\n" "yes" >&6; } 11788 SAVE_CPPFLAGS="$CPPFLAGS" 11789 CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS" 11790 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86misc.h" "ac_cv_header_X11_extensions_xf86misc_h" "#include <X11/Xlib.h> 11791 #include <X11/Xproto.h> 11792 " 11793 if test "x$ac_cv_header_X11_extensions_xf86misc_h" = xyes 11794 then : 11795 printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MISC_H 1" >>confdefs.h 11796 11797 fi 11798 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86mscstr.h" "ac_cv_header_X11_extensions_xf86mscstr_h" "#include <X11/Xlib.h> 11799 #include <X11/Xproto.h> 11800 " 11801 if test "x$ac_cv_header_X11_extensions_xf86mscstr_h" = xyes 11802 then : 11803 printf "%s\n" "#define HAVE_X11_EXTENSIONS_XF86MSCSTR_H 1" >>confdefs.h 11804 11805 fi 11806 11807 CPPFLAGS="$SAVE_CPPFLAGS" 11808 fi 11809 else 11810 echo "without xf86misc" 11811 fi 11812 11813 11814 # Check whether --with-fontcache was given. 11815 if test ${with_fontcache+y} 11816 then : 11817 withval=$with_fontcache; USE_XFONTCACHE="$withval" 11818 else $as_nop 11819 USE_XFONTCACHE="yes" 11820 fi 11821 11822 if test "x$USE_XFONTCACHE" != "xno" ; then 11823 11824 pkg_failed=no 11825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5 11826 printf %s "checking for SET_FONTCACHE... " >&6; } 11827 11828 if test -n "$SET_FONTCACHE_CFLAGS"; then 11829 pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS" 11830 elif test -n "$PKG_CONFIG"; then 11831 if test -n "$PKG_CONFIG" && \ 11832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5 11833 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5 11834 ac_status=$? 11835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11836 test $ac_status = 0; }; then 11837 pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null` 11838 test "x$?" != "x0" && pkg_failed=yes 11839 else 11840 pkg_failed=yes 11841 fi 11842 else 11843 pkg_failed=untried 11844 fi 11845 if test -n "$SET_FONTCACHE_LIBS"; then 11846 pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS" 11847 elif test -n "$PKG_CONFIG"; then 11848 if test -n "$PKG_CONFIG" && \ 11849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5 11850 ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5 11851 ac_status=$? 11852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11853 test $ac_status = 0; }; then 11854 pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null` 11855 test "x$?" != "x0" && pkg_failed=yes 11856 else 11857 pkg_failed=yes 11858 fi 11859 else 11860 pkg_failed=untried 11861 fi 11862 11863 11864 11865 if test $pkg_failed = yes; then 11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11867 printf "%s\n" "no" >&6; } 11868 11869 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11870 _pkg_short_errors_supported=yes 11871 else 11872 _pkg_short_errors_supported=no 11873 fi 11874 if test $_pkg_short_errors_supported = yes; then 11875 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfontcache" 2>&1` 11876 else 11877 SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfontcache" 2>&1` 11878 fi 11879 # Put the nasty error message in config.log where it belongs 11880 echo "$SET_FONTCACHE_PKG_ERRORS" >&5 11881 11882 echo "not found" 11883 elif test $pkg_failed = untried; then 11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885 printf "%s\n" "no" >&6; } 11886 echo "not found" 11887 else 11888 SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS 11889 SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS 11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11891 printf "%s\n" "yes" >&6; } 11892 SAVE_CPPFLAGS="$CPPFLAGS" 11893 CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS" 11894 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcache.h" "ac_cv_header_X11_extensions_fontcache_h" "#include <X11/Xlib.h> 11895 " 11896 if test "x$ac_cv_header_X11_extensions_fontcache_h" = xyes 11897 then : 11898 printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHE_H 1" >>confdefs.h 11899 11900 fi 11901 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/fontcacheP.h" "ac_cv_header_X11_extensions_fontcacheP_h" "#include <X11/Xlib.h> 11902 " 11903 if test "x$ac_cv_header_X11_extensions_fontcacheP_h" = xyes 11904 then : 11905 printf "%s\n" "#define HAVE_X11_EXTENSIONS_FONTCACHEP_H 1" >>confdefs.h 11906 11907 fi 11908 11909 CPPFLAGS="$SAVE_CPPFLAGS" 11910 fi 11911 else 11912 echo "without fontcache" 11913 fi 11914 11915 XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS" 11916 XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS" 11917 11918 11919 ac_config_files="$ac_config_files Makefile man/Makefile" 11920 11921 cat >confcache <<\_ACEOF 11922 # This file is a shell script that caches the results of configure 11923 # tests run on this system so they can be shared between configure 11924 # scripts and configure runs, see configure's option --config-cache. 11925 # It is not useful on other systems. If it contains results you don't 11926 # want to keep, you may remove or edit it. 11927 # 11928 # config.status only pays attention to the cache file if you give it 11929 # the --recheck option to rerun configure. 11930 # 11931 # `ac_cv_env_foo' variables (set or unset) will be overridden when 11932 # loading this file, other *unset* `ac_cv_foo' will be assigned the 11933 # following values. 11934 11935 _ACEOF 11936 11937 # The following way of writing the cache mishandles newlines in values, 11938 # but we know of no workaround that is simple, portable, and efficient. 11939 # So, we kill variables containing newlines. 11940 # Ultrix sh set writes to stderr and can't be redirected directly, 11941 # and sets the high bit in the cache file unless we assign to the vars. 11942 ( 11943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11944 eval ac_val=\$$ac_var 11945 case $ac_val in #( 11946 *${as_nl}*) 11947 case $ac_var in #( 11948 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11949 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11950 esac 11951 case $ac_var in #( 11952 _ | IFS | as_nl) ;; #( 11953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11954 *) { eval $ac_var=; unset $ac_var;} ;; 11955 esac ;; 11956 esac 11957 done 11958 11959 (set) 2>&1 | 11960 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11961 *${as_nl}ac_space=\ *) 11962 # `set' does not quote correctly, so add quotes: double-quote 11963 # substitution turns \\\\ into \\, and sed turns \\ into \. 11964 sed -n \ 11965 "s/'/'\\\\''/g; 11966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11967 ;; #( 11968 *) 11969 # `set' quotes correctly as required by POSIX, so do not add quotes. 11970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11971 ;; 11972 esac | 11973 sort 11974 ) | 11975 sed ' 11976 /^ac_cv_env_/b end 11977 t clear 11978 :clear 11979 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11980 t end 11981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11982 :end' >>confcache 11983 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11984 if test -w "$cache_file"; then 11985 if test "x$cache_file" != "x/dev/null"; then 11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11987 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11988 if test ! -f "$cache_file" || test -h "$cache_file"; then 11989 cat confcache >"$cache_file" 11990 else 11991 case $cache_file in #( 11992 */* | ?:*) 11993 mv -f confcache "$cache_file"$$ && 11994 mv -f "$cache_file"$$ "$cache_file" ;; #( 11995 *) 11996 mv -f confcache "$cache_file" ;; 11997 esac 11998 fi 11999 fi 12000 else 12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12002 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12003 fi 12004 fi 12005 rm -f confcache 12006 12007 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12008 # Let make expand exec_prefix. 12009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12010 12011 DEFS=-DHAVE_CONFIG_H 12012 12013 ac_libobjs= 12014 ac_ltlibobjs= 12015 U= 12016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12017 # 1. Remove the extension, and $U if already installed. 12018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12019 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12021 # will be set to the directory where LIBOBJS objects are built. 12022 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12023 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12024 done 12025 LIBOBJS=$ac_libobjs 12026 12027 LTLIBOBJS=$ac_ltlibobjs 12028 12029 12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12031 printf %s "checking that generated files are newer than configure... " >&6; } 12032 if test -n "$am_sleep_pid"; then 12033 # Hide warnings about reused PIDs. 12034 wait $am_sleep_pid 2>/dev/null 12035 fi 12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12037 printf "%s\n" "done" >&6; } 12038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12039 as_fn_error $? "conditional \"AMDEP\" was never defined. 12040 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12041 fi 12042 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12043 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12044 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12045 fi 12046 if test -n "$EXEEXT"; then 12047 am__EXEEXT_TRUE= 12048 am__EXEEXT_FALSE='#' 12049 else 12050 am__EXEEXT_TRUE='#' 12051 am__EXEEXT_FALSE= 12052 fi 12053 12054 12055 : "${CONFIG_STATUS=./config.status}" 12056 ac_write_fail=0 12057 ac_clean_files_save=$ac_clean_files 12058 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12060 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12061 as_write_fail=0 12062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12063 #! $SHELL 12064 # Generated by $as_me. 12065 # Run this file to recreate the current configuration. 12066 # Compiler output produced by configure, useful for debugging 12067 # configure, is in config.log if it exists. 12068 12069 debug=false 12070 ac_cs_recheck=false 12071 ac_cs_silent=false 12072 12073 SHELL=\${CONFIG_SHELL-$SHELL} 12074 export SHELL 12075 _ASEOF 12076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12077 ## -------------------- ## 12078 ## M4sh Initialization. ## 12079 ## -------------------- ## 12080 12081 # Be more Bourne compatible 12082 DUALCASE=1; export DUALCASE # for MKS sh 12083 as_nop=: 12084 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12085 then : 12086 emulate sh 12087 NULLCMD=: 12088 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12089 # is contrary to our usage. Disable this feature. 12090 alias -g '${1+"$@"}'='"$@"' 12091 setopt NO_GLOB_SUBST 12092 else $as_nop 12093 case `(set -o) 2>/dev/null` in #( 12094 *posix*) : 12095 set -o posix ;; #( 12096 *) : 12097 ;; 12098 esac 12099 fi 12100 12101 12102 12103 # Reset variables that may have inherited troublesome values from 12104 # the environment. 12105 12106 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12107 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12108 # side effect of setting IFS to empty, thus disabling word splitting.) 12109 # Quoting is to prevent editors from complaining about space-tab. 12110 as_nl=' 12111 ' 12112 export as_nl 12113 IFS=" "" $as_nl" 12114 12115 PS1='$ ' 12116 PS2='> ' 12117 PS4='+ ' 12118 12119 # Ensure predictable behavior from utilities with locale-dependent output. 12120 LC_ALL=C 12121 export LC_ALL 12122 LANGUAGE=C 12123 export LANGUAGE 12124 12125 # We cannot yet rely on "unset" to work, but we need these variables 12126 # to be unset--not just set to an empty or harmless value--now, to 12127 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12128 # also avoids known problems related to "unset" and subshell syntax 12129 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12130 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12131 do eval test \${$as_var+y} \ 12132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12133 done 12134 12135 # Ensure that fds 0, 1, and 2 are open. 12136 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12137 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12138 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12139 12140 # The user is always right. 12141 if ${PATH_SEPARATOR+false} :; then 12142 PATH_SEPARATOR=: 12143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12145 PATH_SEPARATOR=';' 12146 } 12147 fi 12148 12149 12150 # Find who we are. Look in the path if we contain no directory separator. 12151 as_myself= 12152 case $0 in #(( 12153 *[\\/]* ) as_myself=$0 ;; 12154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12155 for as_dir in $PATH 12156 do 12157 IFS=$as_save_IFS 12158 case $as_dir in #((( 12159 '') as_dir=./ ;; 12160 */) ;; 12161 *) as_dir=$as_dir/ ;; 12162 esac 12163 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12164 done 12165 IFS=$as_save_IFS 12166 12167 ;; 12168 esac 12169 # We did not find ourselves, most probably we were run as `sh COMMAND' 12170 # in which case we are not to be found in the path. 12171 if test "x$as_myself" = x; then 12172 as_myself=$0 12173 fi 12174 if test ! -f "$as_myself"; then 12175 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12176 exit 1 12177 fi 12178 12179 12180 12181 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12182 # ---------------------------------------- 12183 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12184 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12185 # script with STATUS, using 1 if that was 0. 12186 as_fn_error () 12187 { 12188 as_status=$1; test $as_status -eq 0 && as_status=1 12189 if test "$4"; then 12190 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12192 fi 12193 printf "%s\n" "$as_me: error: $2" >&2 12194 as_fn_exit $as_status 12195 } # as_fn_error 12196 12197 12198 12199 # as_fn_set_status STATUS 12200 # ----------------------- 12201 # Set $? to STATUS, without forking. 12202 as_fn_set_status () 12203 { 12204 return $1 12205 } # as_fn_set_status 12206 12207 # as_fn_exit STATUS 12208 # ----------------- 12209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12210 as_fn_exit () 12211 { 12212 set +e 12213 as_fn_set_status $1 12214 exit $1 12215 } # as_fn_exit 12216 12217 # as_fn_unset VAR 12218 # --------------- 12219 # Portably unset VAR. 12220 as_fn_unset () 12221 { 12222 { eval $1=; unset $1;} 12223 } 12224 as_unset=as_fn_unset 12225 12226 # as_fn_append VAR VALUE 12227 # ---------------------- 12228 # Append the text in VALUE to the end of the definition contained in VAR. Take 12229 # advantage of any shell optimizations that allow amortized linear growth over 12230 # repeated appends, instead of the typical quadratic growth present in naive 12231 # implementations. 12232 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12233 then : 12234 eval 'as_fn_append () 12235 { 12236 eval $1+=\$2 12237 }' 12238 else $as_nop 12239 as_fn_append () 12240 { 12241 eval $1=\$$1\$2 12242 } 12243 fi # as_fn_append 12244 12245 # as_fn_arith ARG... 12246 # ------------------ 12247 # Perform arithmetic evaluation on the ARGs, and store the result in the 12248 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12249 # must be portable across $(()) and expr. 12250 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12251 then : 12252 eval 'as_fn_arith () 12253 { 12254 as_val=$(( $* )) 12255 }' 12256 else $as_nop 12257 as_fn_arith () 12258 { 12259 as_val=`expr "$@" || test $? -eq 1` 12260 } 12261 fi # as_fn_arith 12262 12263 12264 if expr a : '\(a\)' >/dev/null 2>&1 && 12265 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12266 as_expr=expr 12267 else 12268 as_expr=false 12269 fi 12270 12271 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12272 as_basename=basename 12273 else 12274 as_basename=false 12275 fi 12276 12277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12278 as_dirname=dirname 12279 else 12280 as_dirname=false 12281 fi 12282 12283 as_me=`$as_basename -- "$0" || 12284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12285 X"$0" : 'X\(//\)$' \| \ 12286 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12287 printf "%s\n" X/"$0" | 12288 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12289 s//\1/ 12290 q 12291 } 12292 /^X\/\(\/\/\)$/{ 12293 s//\1/ 12294 q 12295 } 12296 /^X\/\(\/\).*/{ 12297 s//\1/ 12298 q 12299 } 12300 s/.*/./; q'` 12301 12302 # Avoid depending upon Character Ranges. 12303 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12306 as_cr_digits='0123456789' 12307 as_cr_alnum=$as_cr_Letters$as_cr_digits 12308 12309 12310 # Determine whether it's possible to make 'echo' print without a newline. 12311 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12312 # for compatibility with existing Makefiles. 12313 ECHO_C= ECHO_N= ECHO_T= 12314 case `echo -n x` in #((((( 12315 -n*) 12316 case `echo 'xy\c'` in 12317 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12318 xy) ECHO_C='\c';; 12319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12320 ECHO_T=' ';; 12321 esac;; 12322 *) 12323 ECHO_N='-n';; 12324 esac 12325 12326 # For backward compatibility with old third-party macros, we provide 12327 # the shell variables $as_echo and $as_echo_n. New code should use 12328 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12329 as_echo='printf %s\n' 12330 as_echo_n='printf %s' 12331 12332 rm -f conf$$ conf$$.exe conf$$.file 12333 if test -d conf$$.dir; then 12334 rm -f conf$$.dir/conf$$.file 12335 else 12336 rm -f conf$$.dir 12337 mkdir conf$$.dir 2>/dev/null 12338 fi 12339 if (echo >conf$$.file) 2>/dev/null; then 12340 if ln -s conf$$.file conf$$ 2>/dev/null; then 12341 as_ln_s='ln -s' 12342 # ... but there are two gotchas: 12343 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12344 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12345 # In both cases, we have to default to `cp -pR'. 12346 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12347 as_ln_s='cp -pR' 12348 elif ln conf$$.file conf$$ 2>/dev/null; then 12349 as_ln_s=ln 12350 else 12351 as_ln_s='cp -pR' 12352 fi 12353 else 12354 as_ln_s='cp -pR' 12355 fi 12356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12357 rmdir conf$$.dir 2>/dev/null 12358 12359 12360 # as_fn_mkdir_p 12361 # ------------- 12362 # Create "$as_dir" as a directory, including parents if necessary. 12363 as_fn_mkdir_p () 12364 { 12365 12366 case $as_dir in #( 12367 -*) as_dir=./$as_dir;; 12368 esac 12369 test -d "$as_dir" || eval $as_mkdir_p || { 12370 as_dirs= 12371 while :; do 12372 case $as_dir in #( 12373 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12374 *) as_qdir=$as_dir;; 12375 esac 12376 as_dirs="'$as_qdir' $as_dirs" 12377 as_dir=`$as_dirname -- "$as_dir" || 12378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12379 X"$as_dir" : 'X\(//\)[^/]' \| \ 12380 X"$as_dir" : 'X\(//\)$' \| \ 12381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12382 printf "%s\n" X"$as_dir" | 12383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12384 s//\1/ 12385 q 12386 } 12387 /^X\(\/\/\)[^/].*/{ 12388 s//\1/ 12389 q 12390 } 12391 /^X\(\/\/\)$/{ 12392 s//\1/ 12393 q 12394 } 12395 /^X\(\/\).*/{ 12396 s//\1/ 12397 q 12398 } 12399 s/.*/./; q'` 12400 test -d "$as_dir" && break 12401 done 12402 test -z "$as_dirs" || eval "mkdir $as_dirs" 12403 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12404 12405 12406 } # as_fn_mkdir_p 12407 if mkdir -p . 2>/dev/null; then 12408 as_mkdir_p='mkdir -p "$as_dir"' 12409 else 12410 test -d ./-p && rmdir ./-p 12411 as_mkdir_p=false 12412 fi 12413 12414 12415 # as_fn_executable_p FILE 12416 # ----------------------- 12417 # Test if FILE is an executable regular file. 12418 as_fn_executable_p () 12419 { 12420 test -f "$1" && test -x "$1" 12421 } # as_fn_executable_p 12422 as_test_x='test -x' 12423 as_executable_p=as_fn_executable_p 12424 12425 # Sed expression to map a string onto a valid CPP name. 12426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12427 12428 # Sed expression to map a string onto a valid variable name. 12429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12430 12431 12432 exec 6>&1 12433 ## ----------------------------------- ## 12434 ## Main body of $CONFIG_STATUS script. ## 12435 ## ----------------------------------- ## 12436 _ASEOF 12437 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12438 12439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12440 # Save the log message, to keep $0 and so on meaningful, and to 12441 # report actual input values of CONFIG_FILES etc. instead of their 12442 # values after options handling. 12443 ac_log=" 12444 This file was extended by xset $as_me 1.2.5, which was 12445 generated by GNU Autoconf 2.71. Invocation command line was 12446 12447 CONFIG_FILES = $CONFIG_FILES 12448 CONFIG_HEADERS = $CONFIG_HEADERS 12449 CONFIG_LINKS = $CONFIG_LINKS 12450 CONFIG_COMMANDS = $CONFIG_COMMANDS 12451 $ $0 $@ 12452 12453 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12454 " 12455 12456 _ACEOF 12457 12458 case $ac_config_files in *" 12459 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12460 esac 12461 12462 case $ac_config_headers in *" 12463 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12464 esac 12465 12466 12467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12468 # Files that config.status was made for. 12469 config_files="$ac_config_files" 12470 config_headers="$ac_config_headers" 12471 config_commands="$ac_config_commands" 12472 12473 _ACEOF 12474 12475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12476 ac_cs_usage="\ 12477 \`$as_me' instantiates files and other configuration actions 12478 from templates according to the current configuration. Unless the files 12479 and actions are specified as TAGs, all are instantiated by default. 12480 12481 Usage: $0 [OPTION]... [TAG]... 12482 12483 -h, --help print this help, then exit 12484 -V, --version print version number and configuration settings, then exit 12485 --config print configuration, then exit 12486 -q, --quiet, --silent 12487 do not print progress messages 12488 -d, --debug don't remove temporary files 12489 --recheck update $as_me by reconfiguring in the same conditions 12490 --file=FILE[:TEMPLATE] 12491 instantiate the configuration file FILE 12492 --header=FILE[:TEMPLATE] 12493 instantiate the configuration header FILE 12494 12495 Configuration files: 12496 $config_files 12497 12498 Configuration headers: 12499 $config_headers 12500 12501 Configuration commands: 12502 $config_commands 12503 12504 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xset/-/issues>." 12505 12506 _ACEOF 12507 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12508 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12510 ac_cs_config='$ac_cs_config_escaped' 12511 ac_cs_version="\\ 12512 xset config.status 1.2.5 12513 configured by $0, generated by GNU Autoconf 2.71, 12514 with options \\"\$ac_cs_config\\" 12515 12516 Copyright (C) 2021 Free Software Foundation, Inc. 12517 This config.status script is free software; the Free Software Foundation 12518 gives unlimited permission to copy, distribute and modify it." 12519 12520 ac_pwd='$ac_pwd' 12521 srcdir='$srcdir' 12522 INSTALL='$INSTALL' 12523 MKDIR_P='$MKDIR_P' 12524 AWK='$AWK' 12525 test -n "\$AWK" || AWK=awk 12526 _ACEOF 12527 12528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12529 # The default lists apply if the user does not specify any file. 12530 ac_need_defaults=: 12531 while test $# != 0 12532 do 12533 case $1 in 12534 --*=?*) 12535 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12537 ac_shift=: 12538 ;; 12539 --*=) 12540 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12541 ac_optarg= 12542 ac_shift=: 12543 ;; 12544 *) 12545 ac_option=$1 12546 ac_optarg=$2 12547 ac_shift=shift 12548 ;; 12549 esac 12550 12551 case $ac_option in 12552 # Handling of the options. 12553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12554 ac_cs_recheck=: ;; 12555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12556 printf "%s\n" "$ac_cs_version"; exit ;; 12557 --config | --confi | --conf | --con | --co | --c ) 12558 printf "%s\n" "$ac_cs_config"; exit ;; 12559 --debug | --debu | --deb | --de | --d | -d ) 12560 debug=: ;; 12561 --file | --fil | --fi | --f ) 12562 $ac_shift 12563 case $ac_optarg in 12564 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12565 '') as_fn_error $? "missing file argument" ;; 12566 esac 12567 as_fn_append CONFIG_FILES " '$ac_optarg'" 12568 ac_need_defaults=false;; 12569 --header | --heade | --head | --hea ) 12570 $ac_shift 12571 case $ac_optarg in 12572 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12573 esac 12574 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12575 ac_need_defaults=false;; 12576 --he | --h) 12577 # Conflict between --help and --header 12578 as_fn_error $? "ambiguous option: \`$1' 12579 Try \`$0 --help' for more information.";; 12580 --help | --hel | -h ) 12581 printf "%s\n" "$ac_cs_usage"; exit ;; 12582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12583 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12584 ac_cs_silent=: ;; 12585 12586 # This is an error. 12587 -*) as_fn_error $? "unrecognized option: \`$1' 12588 Try \`$0 --help' for more information." ;; 12589 12590 *) as_fn_append ac_config_targets " $1" 12591 ac_need_defaults=false ;; 12592 12593 esac 12594 shift 12595 done 12596 12597 ac_configure_extra_args= 12598 12599 if $ac_cs_silent; then 12600 exec 6>/dev/null 12601 ac_configure_extra_args="$ac_configure_extra_args --silent" 12602 fi 12603 12604 _ACEOF 12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12606 if \$ac_cs_recheck; then 12607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12608 shift 12609 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12610 CONFIG_SHELL='$SHELL' 12611 export CONFIG_SHELL 12612 exec "\$@" 12613 fi 12614 12615 _ACEOF 12616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12617 exec 5>>config.log 12618 { 12619 echo 12620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12621 ## Running $as_me. ## 12622 _ASBOX 12623 printf "%s\n" "$ac_log" 12624 } >&5 12625 12626 _ACEOF 12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12628 # 12629 # INIT-COMMANDS 12630 # 12631 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12632 12633 _ACEOF 12634 12635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12636 12637 # Handling of arguments. 12638 for ac_config_target in $ac_config_targets 12639 do 12640 case $ac_config_target in 12641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12643 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12644 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12645 12646 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12647 esac 12648 done 12649 12650 12651 # If the user did not use the arguments to specify the items to instantiate, 12652 # then the envvar interface is used. Set only those that are not. 12653 # We use the long form for the default assignment because of an extremely 12654 # bizarre bug on SunOS 4.1.3. 12655 if $ac_need_defaults; then 12656 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12657 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12658 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12659 fi 12660 12661 # Have a temporary directory for convenience. Make it in the build tree 12662 # simply because there is no reason against having it here, and in addition, 12663 # creating and moving files from /tmp can sometimes cause problems. 12664 # Hook for its removal unless debugging. 12665 # Note that there is a small window in which the directory will not be cleaned: 12666 # after its creation but before its name has been assigned to `$tmp'. 12667 $debug || 12668 { 12669 tmp= ac_tmp= 12670 trap 'exit_status=$? 12671 : "${ac_tmp:=$tmp}" 12672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12673 ' 0 12674 trap 'as_fn_exit 1' 1 2 13 15 12675 } 12676 # Create a (secure) tmp directory for tmp files. 12677 12678 { 12679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12680 test -d "$tmp" 12681 } || 12682 { 12683 tmp=./conf$$-$RANDOM 12684 (umask 077 && mkdir "$tmp") 12685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12686 ac_tmp=$tmp 12687 12688 # Set up the scripts for CONFIG_FILES section. 12689 # No need to generate them if there are no CONFIG_FILES. 12690 # This happens for instance with `./config.status config.h'. 12691 if test -n "$CONFIG_FILES"; then 12692 12693 12694 ac_cr=`echo X | tr X '\015'` 12695 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12696 # But we know of no other shell where ac_cr would be empty at this 12697 # point, so we can use a bashism as a fallback. 12698 if test "x$ac_cr" = x; then 12699 eval ac_cr=\$\'\\r\' 12700 fi 12701 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12703 ac_cs_awk_cr='\\r' 12704 else 12705 ac_cs_awk_cr=$ac_cr 12706 fi 12707 12708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12709 _ACEOF 12710 12711 12712 { 12713 echo "cat >conf$$subs.awk <<_ACEOF" && 12714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12715 echo "_ACEOF" 12716 } >conf$$subs.sh || 12717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12719 ac_delim='%!_!# ' 12720 for ac_last_try in false false false false false :; do 12721 . ./conf$$subs.sh || 12722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12723 12724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12725 if test $ac_delim_n = $ac_delim_num; then 12726 break 12727 elif $ac_last_try; then 12728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12729 else 12730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12731 fi 12732 done 12733 rm -f conf$$subs.sh 12734 12735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12736 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12737 _ACEOF 12738 sed -n ' 12739 h 12740 s/^/S["/; s/!.*/"]=/ 12741 p 12742 g 12743 s/^[^!]*!// 12744 :repl 12745 t repl 12746 s/'"$ac_delim"'$// 12747 t delim 12748 :nl 12749 h 12750 s/\(.\{148\}\)..*/\1/ 12751 t more1 12752 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12753 p 12754 n 12755 b repl 12756 :more1 12757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12758 p 12759 g 12760 s/.\{148\}// 12761 t nl 12762 :delim 12763 h 12764 s/\(.\{148\}\)..*/\1/ 12765 t more2 12766 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12767 p 12768 b 12769 :more2 12770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12771 p 12772 g 12773 s/.\{148\}// 12774 t delim 12775 ' <conf$$subs.awk | sed ' 12776 /^[^""]/{ 12777 N 12778 s/\n// 12779 } 12780 ' >>$CONFIG_STATUS || ac_write_fail=1 12781 rm -f conf$$subs.awk 12782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12783 _ACAWK 12784 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12785 for (key in S) S_is_set[key] = 1 12786 FS = "" 12787 12788 } 12789 { 12790 line = $ 0 12791 nfields = split(line, field, "@") 12792 substed = 0 12793 len = length(field[1]) 12794 for (i = 2; i < nfields; i++) { 12795 key = field[i] 12796 keylen = length(key) 12797 if (S_is_set[key]) { 12798 value = S[key] 12799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12800 len += length(value) + length(field[++i]) 12801 substed = 1 12802 } else 12803 len += 1 + keylen 12804 } 12805 12806 print line 12807 } 12808 12809 _ACAWK 12810 _ACEOF 12811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12814 else 12815 cat 12816 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12818 _ACEOF 12819 12820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12822 # trailing colons and then remove the whole line if VPATH becomes empty 12823 # (actually we leave an empty line to preserve line numbers). 12824 if test "x$srcdir" = x.; then 12825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12826 h 12827 s/// 12828 s/^/:/ 12829 s/[ ]*$/:/ 12830 s/:\$(srcdir):/:/g 12831 s/:\${srcdir}:/:/g 12832 s/:@srcdir@:/:/g 12833 s/^:*// 12834 s/:*$// 12835 x 12836 s/\(=[ ]*\).*/\1/ 12837 G 12838 s/\n// 12839 s/^[^=]*=[ ]*$// 12840 }' 12841 fi 12842 12843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12844 fi # test -n "$CONFIG_FILES" 12845 12846 # Set up the scripts for CONFIG_HEADERS section. 12847 # No need to generate them if there are no CONFIG_HEADERS. 12848 # This happens for instance with `./config.status Makefile'. 12849 if test -n "$CONFIG_HEADERS"; then 12850 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12851 BEGIN { 12852 _ACEOF 12853 12854 # Transform confdefs.h into an awk script `defines.awk', embedded as 12855 # here-document in config.status, that substitutes the proper values into 12856 # config.h.in to produce config.h. 12857 12858 # Create a delimiter string that does not exist in confdefs.h, to ease 12859 # handling of long lines. 12860 ac_delim='%!_!# ' 12861 for ac_last_try in false false :; do 12862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12863 if test -z "$ac_tt"; then 12864 break 12865 elif $ac_last_try; then 12866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12867 else 12868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12869 fi 12870 done 12871 12872 # For the awk script, D is an array of macro values keyed by name, 12873 # likewise P contains macro parameters if any. Preserve backslash 12874 # newline sequences. 12875 12876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12877 sed -n ' 12878 s/.\{148\}/&'"$ac_delim"'/g 12879 t rset 12880 :rset 12881 s/^[ ]*#[ ]*define[ ][ ]*/ / 12882 t def 12883 d 12884 :def 12885 s/\\$// 12886 t bsnl 12887 s/["\\]/\\&/g 12888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12889 D["\1"]=" \3"/p 12890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12891 d 12892 :bsnl 12893 s/["\\]/\\&/g 12894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12895 D["\1"]=" \3\\\\\\n"\\/p 12896 t cont 12897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12898 t cont 12899 d 12900 :cont 12901 n 12902 s/.\{148\}/&'"$ac_delim"'/g 12903 t clear 12904 :clear 12905 s/\\$// 12906 t bsnlc 12907 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12908 d 12909 :bsnlc 12910 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12911 b cont 12912 ' <confdefs.h | sed ' 12913 s/'"$ac_delim"'/"\\\ 12914 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12915 12916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12917 for (key in D) D_is_set[key] = 1 12918 FS = "" 12919 } 12920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12921 line = \$ 0 12922 split(line, arg, " ") 12923 if (arg[1] == "#") { 12924 defundef = arg[2] 12925 mac1 = arg[3] 12926 } else { 12927 defundef = substr(arg[1], 2) 12928 mac1 = arg[2] 12929 } 12930 split(mac1, mac2, "(") #) 12931 macro = mac2[1] 12932 prefix = substr(line, 1, index(line, defundef) - 1) 12933 if (D_is_set[macro]) { 12934 # Preserve the white space surrounding the "#". 12935 print prefix "define", macro P[macro] D[macro] 12936 next 12937 } else { 12938 # Replace #undef with comments. This is necessary, for example, 12939 # in the case of _POSIX_SOURCE, which is predefined and required 12940 # on some systems where configure will not decide to define it. 12941 if (defundef == "undef") { 12942 print "/*", prefix defundef, macro, "*/" 12943 next 12944 } 12945 } 12946 } 12947 { print } 12948 _ACAWK 12949 _ACEOF 12950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12952 fi # test -n "$CONFIG_HEADERS" 12953 12954 12955 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12956 shift 12957 for ac_tag 12958 do 12959 case $ac_tag in 12960 :[FHLC]) ac_mode=$ac_tag; continue;; 12961 esac 12962 case $ac_mode$ac_tag in 12963 :[FHL]*:*);; 12964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12965 :[FH]-) ac_tag=-:-;; 12966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12967 esac 12968 ac_save_IFS=$IFS 12969 IFS=: 12970 set x $ac_tag 12971 IFS=$ac_save_IFS 12972 shift 12973 ac_file=$1 12974 shift 12975 12976 case $ac_mode in 12977 :L) ac_source=$1;; 12978 :[FH]) 12979 ac_file_inputs= 12980 for ac_f 12981 do 12982 case $ac_f in 12983 -) ac_f="$ac_tmp/stdin";; 12984 *) # Look for the file first in the build tree, then in the source tree 12985 # (if the path is not absolute). The absolute path cannot be DOS-style, 12986 # because $ac_f cannot contain `:'. 12987 test -f "$ac_f" || 12988 case $ac_f in 12989 [\\/$]*) false;; 12990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12991 esac || 12992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12993 esac 12994 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12995 as_fn_append ac_file_inputs " '$ac_f'" 12996 done 12997 12998 # Let's still pretend it is `configure' which instantiates (i.e., don't 12999 # use $as_me), people would be surprised to read: 13000 # /* config.h. Generated by config.status. */ 13001 configure_input='Generated from '` 13002 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13003 `' by configure.' 13004 if test x"$ac_file" != x-; then 13005 configure_input="$ac_file. $configure_input" 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13007 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13008 fi 13009 # Neutralize special characters interpreted by sed in replacement strings. 13010 case $configure_input in #( 13011 *\&* | *\|* | *\\* ) 13012 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13013 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13014 *) ac_sed_conf_input=$configure_input;; 13015 esac 13016 13017 case $ac_tag in 13018 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13020 esac 13021 ;; 13022 esac 13023 13024 ac_dir=`$as_dirname -- "$ac_file" || 13025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13026 X"$ac_file" : 'X\(//\)[^/]' \| \ 13027 X"$ac_file" : 'X\(//\)$' \| \ 13028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13029 printf "%s\n" X"$ac_file" | 13030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13031 s//\1/ 13032 q 13033 } 13034 /^X\(\/\/\)[^/].*/{ 13035 s//\1/ 13036 q 13037 } 13038 /^X\(\/\/\)$/{ 13039 s//\1/ 13040 q 13041 } 13042 /^X\(\/\).*/{ 13043 s//\1/ 13044 q 13045 } 13046 s/.*/./; q'` 13047 as_dir="$ac_dir"; as_fn_mkdir_p 13048 ac_builddir=. 13049 13050 case "$ac_dir" in 13051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13052 *) 13053 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13054 # A ".." for each directory in $ac_dir_suffix. 13055 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13056 case $ac_top_builddir_sub in 13057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13059 esac ;; 13060 esac 13061 ac_abs_top_builddir=$ac_pwd 13062 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13063 # for backward compatibility: 13064 ac_top_builddir=$ac_top_build_prefix 13065 13066 case $srcdir in 13067 .) # We are building in place. 13068 ac_srcdir=. 13069 ac_top_srcdir=$ac_top_builddir_sub 13070 ac_abs_top_srcdir=$ac_pwd ;; 13071 [\\/]* | ?:[\\/]* ) # Absolute name. 13072 ac_srcdir=$srcdir$ac_dir_suffix; 13073 ac_top_srcdir=$srcdir 13074 ac_abs_top_srcdir=$srcdir ;; 13075 *) # Relative name. 13076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13077 ac_top_srcdir=$ac_top_build_prefix$srcdir 13078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13079 esac 13080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13081 13082 13083 case $ac_mode in 13084 :F) 13085 # 13086 # CONFIG_FILE 13087 # 13088 13089 case $INSTALL in 13090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13092 esac 13093 ac_MKDIR_P=$MKDIR_P 13094 case $MKDIR_P in 13095 [\\/$]* | ?:[\\/]* ) ;; 13096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13097 esac 13098 _ACEOF 13099 13100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13101 # If the template does not know about datarootdir, expand it. 13102 # FIXME: This hack should be removed a few years after 2.60. 13103 ac_datarootdir_hack=; ac_datarootdir_seen= 13104 ac_sed_dataroot=' 13105 /datarootdir/ { 13106 p 13107 q 13108 } 13109 /@datadir@/p 13110 /@docdir@/p 13111 /@infodir@/p 13112 /@localedir@/p 13113 /@mandir@/p' 13114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13115 *datarootdir*) ac_datarootdir_seen=yes;; 13116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13118 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13119 _ACEOF 13120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13121 ac_datarootdir_hack=' 13122 s&@datadir@&$datadir&g 13123 s&@docdir@&$docdir&g 13124 s&@infodir@&$infodir&g 13125 s&@localedir@&$localedir&g 13126 s&@mandir@&$mandir&g 13127 s&\\\${datarootdir}&$datarootdir&g' ;; 13128 esac 13129 _ACEOF 13130 13131 # Neutralize VPATH when `$srcdir' = `.'. 13132 # Shell code in configure.ac might set extrasub. 13133 # FIXME: do we really want to maintain this feature? 13134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13135 ac_sed_extra="$ac_vpsub 13136 $extrasub 13137 _ACEOF 13138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13139 :t 13140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13141 s|@configure_input@|$ac_sed_conf_input|;t t 13142 s&@top_builddir@&$ac_top_builddir_sub&;t t 13143 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13144 s&@srcdir@&$ac_srcdir&;t t 13145 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13146 s&@top_srcdir@&$ac_top_srcdir&;t t 13147 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13148 s&@builddir@&$ac_builddir&;t t 13149 s&@abs_builddir@&$ac_abs_builddir&;t t 13150 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13151 s&@INSTALL@&$ac_INSTALL&;t t 13152 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13153 $ac_datarootdir_hack 13154 " 13155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13157 13158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13161 "$ac_tmp/out"`; test -z "$ac_out"; } && 13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13163 which seems to be undefined. Please make sure it is defined" >&5 13164 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13165 which seems to be undefined. Please make sure it is defined" >&2;} 13166 13167 rm -f "$ac_tmp/stdin" 13168 case $ac_file in 13169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13171 esac \ 13172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13173 ;; 13174 :H) 13175 # 13176 # CONFIG_HEADER 13177 # 13178 if test x"$ac_file" != x-; then 13179 { 13180 printf "%s\n" "/* $configure_input */" >&1 \ 13181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13182 } >"$ac_tmp/config.h" \ 13183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13186 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13187 else 13188 rm -f "$ac_file" 13189 mv "$ac_tmp/config.h" "$ac_file" \ 13190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13191 fi 13192 else 13193 printf "%s\n" "/* $configure_input */" >&1 \ 13194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13195 || as_fn_error $? "could not create -" "$LINENO" 5 13196 fi 13197 # Compute "$ac_file"'s index in $config_headers. 13198 _am_arg="$ac_file" 13199 _am_stamp_count=1 13200 for _am_header in $config_headers :; do 13201 case $_am_header in 13202 $_am_arg | $_am_arg:* ) 13203 break ;; 13204 * ) 13205 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13206 esac 13207 done 13208 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13209 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13210 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13211 X"$_am_arg" : 'X\(//\)$' \| \ 13212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13213 printf "%s\n" X"$_am_arg" | 13214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13215 s//\1/ 13216 q 13217 } 13218 /^X\(\/\/\)[^/].*/{ 13219 s//\1/ 13220 q 13221 } 13222 /^X\(\/\/\)$/{ 13223 s//\1/ 13224 q 13225 } 13226 /^X\(\/\).*/{ 13227 s//\1/ 13228 q 13229 } 13230 s/.*/./; q'`/stamp-h$_am_stamp_count 13231 ;; 13232 13233 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13234 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13235 ;; 13236 esac 13237 13238 13239 case $ac_file$ac_mode in 13240 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13241 # Older Autoconf quotes --file arguments for eval, but not when files 13242 # are listed without --file. Let's play safe and only enable the eval 13243 # if we detect the quoting. 13244 # TODO: see whether this extra hack can be removed once we start 13245 # requiring Autoconf 2.70 or later. 13246 case $CONFIG_FILES in #( 13247 *\'*) : 13248 eval set x "$CONFIG_FILES" ;; #( 13249 *) : 13250 set x $CONFIG_FILES ;; #( 13251 *) : 13252 ;; 13253 esac 13254 shift 13255 # Used to flag and report bootstrapping failures. 13256 am_rc=0 13257 for am_mf 13258 do 13259 # Strip MF so we end up with the name of the file. 13260 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13261 # Check whether this is an Automake generated Makefile which includes 13262 # dependency-tracking related rules and includes. 13263 # Grep'ing the whole file directly is not great: AIX grep has a line 13264 # limit of 2048, but all sed's we know have understand at least 4000. 13265 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13266 || continue 13267 am_dirpart=`$as_dirname -- "$am_mf" || 13268 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13269 X"$am_mf" : 'X\(//\)[^/]' \| \ 13270 X"$am_mf" : 'X\(//\)$' \| \ 13271 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13272 printf "%s\n" X"$am_mf" | 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'` 13290 am_filepart=`$as_basename -- "$am_mf" || 13291 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13292 X"$am_mf" : 'X\(//\)$' \| \ 13293 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13294 printf "%s\n" X/"$am_mf" | 13295 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13296 s//\1/ 13297 q 13298 } 13299 /^X\/\(\/\/\)$/{ 13300 s//\1/ 13301 q 13302 } 13303 /^X\/\(\/\).*/{ 13304 s//\1/ 13305 q 13306 } 13307 s/.*/./; q'` 13308 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13309 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13310 | $MAKE -f - am--depfiles" >&5 13311 (cd "$am_dirpart" \ 13312 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13313 | $MAKE -f - am--depfiles) >&5 2>&5 13314 ac_status=$? 13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13316 (exit $ac_status); } || am_rc=$? 13317 done 13318 if test $am_rc -ne 0; then 13319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13321 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13322 for automatic dependency tracking. If GNU make was not used, consider 13323 re-running the configure script with MAKE=\"gmake\" (or whatever is 13324 necessary). You can also try re-running configure with the 13325 '--disable-dependency-tracking' option to at least be able to build 13326 the package (albeit without support for automatic dependency tracking). 13327 See \`config.log' for more details" "$LINENO" 5; } 13328 fi 13329 { am_dirpart=; unset am_dirpart;} 13330 { am_filepart=; unset am_filepart;} 13331 { am_mf=; unset am_mf;} 13332 { am_rc=; unset am_rc;} 13333 rm -f conftest-deps.mk 13334 } 13335 ;; 13336 13337 esac 13338 done # for ac_tag 13339 13340 13341 as_fn_exit 0 13342 _ACEOF 13343 ac_clean_files=$ac_clean_files_save 13344 13345 test $ac_write_fail = 0 || 13346 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13347 13348 13349 # configure is writing to config.log, and then calls config.status. 13350 # config.status does its own redirection, appending to config.log. 13351 # Unfortunately, on DOS this fails, as config.log is still kept open 13352 # by configure, so config.status won't be able to write to it; its 13353 # output is simply discarded. So we exec the FD to /dev/null, 13354 # effectively closing config.log, so it can be properly (re)opened and 13355 # appended to by config.status. When coming back to configure, we 13356 # need to make the FD available again. 13357 if test "$no_create" != yes; then 13358 ac_cs_success=: 13359 ac_config_status_args= 13360 test "$silent" = yes && 13361 ac_config_status_args="$ac_config_status_args --quiet" 13362 exec 5>/dev/null 13363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13364 exec 5>>config.log 13365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13366 # would make configure fail if this is the last instruction. 13367 $ac_cs_success || as_fn_exit 1 13368 fi 13369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13371 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13372 fi 13373 13374 13375