1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xorgproto 2025.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189 then : 190 as_have_required=yes 191 else case e in #( 192 e) as_have_required=no ;; 193 esac 194 fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196 then : 197 198 else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217 then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220 then : 221 break 2 222 fi 223 fi 224 done;; 225 esac 226 as_found=false 227 done 228 IFS=$as_save_IFS 229 if $as_found 230 then : 231 232 else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235 then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi ;; 238 esac 239 fi 240 241 242 if test "x$CONFIG_SHELL" != x 243 then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246 # neutralization value for shells without unset; and this also 247 # works around shells that cannot unset nonexistent variables. 248 # Preserve -v and -x to the replacement shell. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257 esac 258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259 # Admittedly, this is quite paranoid, since all the known shells bail 260 # out after a failed 'exec'. 261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262 exit 255 263 fi 264 265 if test x$as_have_required = xno 266 then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 274 $0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues 275 $0: about your system, including any error possibly output 276 $0: before this message. Then install a modern shell, or 277 $0: manually run the script under such a shell if you do 278 $0: have one." 279 fi 280 exit 1 281 fi ;; 282 esac 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 304 # as_fn_set_status STATUS 305 # ----------------------- 306 # Set $? to STATUS, without forking. 307 as_fn_set_status () 308 { 309 return $1 310 } # as_fn_set_status 311 312 # as_fn_exit STATUS 313 # ----------------- 314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315 as_fn_exit () 316 { 317 set +e 318 as_fn_set_status $1 319 exit $1 320 } # as_fn_exit 321 322 # as_fn_mkdir_p 323 # ------------- 324 # Create "$as_dir" as a directory, including parents if necessary. 325 as_fn_mkdir_p () 326 { 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344 printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368 } # as_fn_mkdir_p 369 370 # as_fn_executable_p FILE 371 # ----------------------- 372 # Test if FILE is an executable regular file. 373 as_fn_executable_p () 374 { 375 test -f "$1" && test -x "$1" 376 } # as_fn_executable_p 377 # as_fn_append VAR VALUE 378 # ---------------------- 379 # Append the text in VALUE to the end of the definition contained in VAR. Take 380 # advantage of any shell optimizations that allow amortized linear growth over 381 # repeated appends, instead of the typical quadratic growth present in naive 382 # implementations. 383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384 then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394 esac 395 fi # as_fn_append 396 397 # as_fn_arith ARG... 398 # ------------------ 399 # Perform arithmetic evaluation on the ARGs, and store the result in the 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 # must be portable across $(()) and expr. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403 then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408 else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413 esac 414 fi # as_fn_arith 415 416 417 # as_fn_error STATUS ERROR [LINENO LOG_FD] 418 # ---------------------------------------- 419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421 # script with STATUS, using 1 if that was 0. 422 as_fn_error () 423 { 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431 } # as_fn_error 432 433 if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436 else 437 as_expr=false 438 fi 439 440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442 else 443 as_basename=false 444 fi 445 446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448 else 449 as_dirname=false 450 fi 451 452 as_me=`$as_basename -- "$0" || 453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456 printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471 # Avoid depending upon Character Ranges. 472 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475 as_cr_digits='0123456789' 476 as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514 } 515 516 517 # Determine whether it's possible to make 'echo' print without a newline. 518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519 # for compatibility with existing Makefiles. 520 ECHO_C= ECHO_N= ECHO_T= 521 case `echo -n x` in #((((( 522 -n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529 *) 530 ECHO_N='-n';; 531 esac 532 533 # For backward compatibility with old third-party macros, we provide 534 # the shell variables $as_echo and $as_echo_n. New code should use 535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536 as_echo='printf %s\n' 537 as_echo_n='printf %s' 538 539 rm -f conf$$ conf$$.exe conf$$.file 540 if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542 else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545 fi 546 if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560 else 561 as_ln_s='cp -pR' 562 fi 563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564 rmdir conf$$.dir 2>/dev/null 565 566 if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568 else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571 fi 572 573 as_test_x='test -x' 574 as_executable_p=as_fn_executable_p 575 576 # Sed expression to map a string onto a valid CPP name. 577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580 # Sed expression to map a string onto a valid variable name. 581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 as_awk_strverscmp=' 585 # Use only awk features that work with 7th edition Unix awk (1978). 586 # My, what an old awk you have, Mr. Solaris! 587 END { 588 while (length(v1) && length(v2)) { 589 # Set d1 to be the next thing to compare from v1, and likewise for d2. 590 # Normally this is a single character, but if v1 and v2 contain digits, 591 # compare them as integers and fractions as strverscmp does. 592 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 593 # Split v1 and v2 into their leading digit string components d1 and d2, 594 # and advance v1 and v2 past the leading digit strings. 595 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 596 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 597 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 598 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 599 if (d1 ~ /^0/) { 600 if (d2 ~ /^0/) { 601 # Compare two fractions. 602 while (d1 ~ /^0/ && d2 ~ /^0/) { 603 d1 = substr(d1, 2); len1-- 604 d2 = substr(d2, 2); len2-- 605 } 606 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 607 # The two components differ in length, and the common prefix 608 # contains only leading zeros. Consider the longer to be less. 609 d1 = -len1 610 d2 = -len2 611 } else { 612 # Otherwise, compare as strings. 613 d1 = "x" d1 614 d2 = "x" d2 615 } 616 } else { 617 # A fraction is less than an integer. 618 exit 1 619 } 620 } else { 621 if (d2 ~ /^0/) { 622 # An integer is greater than a fraction. 623 exit 2 624 } else { 625 # Compare two integers. 626 d1 += 0 627 d2 += 0 628 } 629 } 630 } else { 631 # The normal case, without worrying about digits. 632 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 633 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 634 } 635 if (d1 < d2) exit 1 636 if (d1 > d2) exit 2 637 } 638 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 639 # which mishandles some comparisons of empty strings to integers. 640 if (length(v2)) exit 1 641 if (length(v1)) exit 2 642 } 643 ' 644 645 test -n "$DJDIR" || exec 7<&0 </dev/null 646 exec 6>&1 647 648 # Name of the host. 649 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 650 # so uname gets run too. 651 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 652 653 # 654 # Initializations. 655 # 656 ac_default_prefix=/usr/local 657 ac_clean_files= 658 ac_config_libobj_dir=. 659 LIBOBJS= 660 cross_compiling=no 661 subdirs= 662 MFLAGS= 663 MAKEFLAGS= 664 665 # Identity of this package. 666 PACKAGE_NAME='xorgproto' 667 PACKAGE_TARNAME='xorgproto' 668 PACKAGE_VERSION='2025.1' 669 PACKAGE_STRING='xorgproto 2025.1' 670 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues' 671 PACKAGE_URL='' 672 673 # Factoring default headers for most tests. 674 ac_includes_default="\ 675 #include <stddef.h> 676 #ifdef HAVE_STDIO_H 677 # include <stdio.h> 678 #endif 679 #ifdef HAVE_STDLIB_H 680 # include <stdlib.h> 681 #endif 682 #ifdef HAVE_STRING_H 683 # include <string.h> 684 #endif 685 #ifdef HAVE_INTTYPES_H 686 # include <inttypes.h> 687 #endif 688 #ifdef HAVE_STDINT_H 689 # include <stdint.h> 690 #endif 691 #ifdef HAVE_STRINGS_H 692 # include <strings.h> 693 #endif 694 #ifdef HAVE_SYS_TYPES_H 695 # include <sys/types.h> 696 #endif 697 #ifdef HAVE_SYS_STAT_H 698 # include <sys/stat.h> 699 #endif 700 #ifdef HAVE_UNISTD_H 701 # include <unistd.h> 702 #endif" 703 704 ac_header_c_list= 705 ac_subst_vars='am__EXEEXT_FALSE 706 am__EXEEXT_TRUE 707 LTLIBOBJS 708 LIBOBJS 709 USE_FDS_BITS 710 LEGACY_FALSE 711 LEGACY_TRUE 712 HAVE_PYTHON_FALSE 713 HAVE_PYTHON_TRUE 714 pkgpyexecdir 715 pyexecdir 716 pkgpythondir 717 pythondir 718 PYTHON_EXEC_PREFIX 719 PYTHON_PREFIX 720 PYTHON_PLATFORM 721 PYTHON_VERSION 722 PYTHON 723 HAVE_STYLESHEETS_FALSE 724 HAVE_STYLESHEETS_TRUE 725 XSL_STYLESHEET 726 STYLESHEET_SRCDIR 727 XORG_SGML_PATH 728 HAVE_XSLTPROC_FALSE 729 HAVE_XSLTPROC_TRUE 730 XSLTPROC 731 HAVE_FOP_FALSE 732 HAVE_FOP_TRUE 733 FOP 734 HAVE_XMLTO_FALSE 735 HAVE_XMLTO_TRUE 736 HAVE_XMLTO_TEXT_FALSE 737 HAVE_XMLTO_TEXT_TRUE 738 XMLTO 739 ENABLE_SPECS_FALSE 740 ENABLE_SPECS_TRUE 741 MAN_SUBSTS 742 XORG_MAN_PAGE 743 ADMIN_MAN_DIR 744 DRIVER_MAN_DIR 745 MISC_MAN_DIR 746 FILE_MAN_DIR 747 LIB_MAN_DIR 748 APP_MAN_DIR 749 ADMIN_MAN_SUFFIX 750 DRIVER_MAN_SUFFIX 751 MISC_MAN_SUFFIX 752 FILE_MAN_SUFFIX 753 LIB_MAN_SUFFIX 754 APP_MAN_SUFFIX 755 SED 756 host_os 757 host_vendor 758 host_cpu 759 host 760 build_os 761 build_vendor 762 build_cpu 763 build 764 INSTALL_CMD 765 PKG_CONFIG_LIBDIR 766 PKG_CONFIG_PATH 767 PKG_CONFIG 768 CHANGELOG_CMD 769 STRICT_CFLAGS 770 CWARNFLAGS 771 BASE_CFLAGS 772 am__fastdepCC_FALSE 773 am__fastdepCC_TRUE 774 CCDEPMODE 775 am__nodep 776 AMDEPBACKSLASH 777 AMDEP_FALSE 778 AMDEP_TRUE 779 am__include 780 DEPDIR 781 OBJEXT 782 EXEEXT 783 ac_ct_CC 784 CPPFLAGS 785 LDFLAGS 786 CFLAGS 787 CC 788 am__xargs_n 789 am__rm_f_notfound 790 AM_BACKSLASH 791 AM_DEFAULT_VERBOSITY 792 AM_DEFAULT_V 793 AM_V 794 CSCOPE 795 ETAGS 796 CTAGS 797 am__untar 798 am__tar 799 AMTAR 800 am__leading_dot 801 SET_MAKE 802 AWK 803 mkdir_p 804 MKDIR_P 805 INSTALL_STRIP_PROGRAM 806 STRIP 807 install_sh 808 MAKEINFO 809 AUTOHEADER 810 AUTOMAKE 811 AUTOCONF 812 ACLOCAL 813 VERSION 814 PACKAGE 815 CYGPATH_W 816 am__isrc 817 INSTALL_DATA 818 INSTALL_SCRIPT 819 INSTALL_PROGRAM 820 target_alias 821 host_alias 822 build_alias 823 LIBS 824 ECHO_T 825 ECHO_N 826 ECHO_C 827 DEFS 828 mandir 829 localedir 830 libdir 831 psdir 832 pdfdir 833 dvidir 834 htmldir 835 infodir 836 docdir 837 oldincludedir 838 includedir 839 runstatedir 840 localstatedir 841 sharedstatedir 842 sysconfdir 843 datadir 844 datarootdir 845 libexecdir 846 sbindir 847 bindir 848 program_transform_name 849 prefix 850 exec_prefix 851 PACKAGE_URL 852 PACKAGE_BUGREPORT 853 PACKAGE_STRING 854 PACKAGE_VERSION 855 PACKAGE_TARNAME 856 PACKAGE_NAME 857 PATH_SEPARATOR 858 SHELL 859 am__quote' 860 ac_subst_files='' 861 ac_user_opts=' 862 enable_option_checking 863 enable_silent_rules 864 enable_dependency_tracking 865 enable_selective_werror 866 enable_strict_compilation 867 enable_specs 868 with_xmlto 869 with_fop 870 with_xsltproc 871 with_python_sys_prefix 872 with_python_prefix 873 with_python_exec_prefix 874 enable_legacy 875 ' 876 ac_precious_vars='build_alias 877 host_alias 878 target_alias 879 CC 880 CFLAGS 881 LDFLAGS 882 LIBS 883 CPPFLAGS 884 PKG_CONFIG 885 PKG_CONFIG_PATH 886 PKG_CONFIG_LIBDIR 887 XMLTO 888 FOP 889 XSLTPROC 890 PYTHON' 891 892 893 # Initialize some variables set by options. 894 ac_init_help= 895 ac_init_version=false 896 ac_unrecognized_opts= 897 ac_unrecognized_sep= 898 # The variables have the same names as the options, with 899 # dashes changed to underlines. 900 cache_file=/dev/null 901 exec_prefix=NONE 902 no_create= 903 no_recursion= 904 prefix=NONE 905 program_prefix=NONE 906 program_suffix=NONE 907 program_transform_name=s,x,x, 908 silent= 909 site= 910 srcdir= 911 verbose= 912 x_includes=NONE 913 x_libraries=NONE 914 915 # Installation directory options. 916 # These are left unexpanded so users can "make install exec_prefix=/foo" 917 # and all the variables that are supposed to be based on exec_prefix 918 # by default will actually change. 919 # Use braces instead of parens because sh, perl, etc. also accept them. 920 # (The list follows the same order as the GNU Coding Standards.) 921 bindir='${exec_prefix}/bin' 922 sbindir='${exec_prefix}/sbin' 923 libexecdir='${exec_prefix}/libexec' 924 datarootdir='${prefix}/share' 925 datadir='${datarootdir}' 926 sysconfdir='${prefix}/etc' 927 sharedstatedir='${prefix}/com' 928 localstatedir='${prefix}/var' 929 runstatedir='${localstatedir}/run' 930 includedir='${prefix}/include' 931 oldincludedir='/usr/include' 932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933 infodir='${datarootdir}/info' 934 htmldir='${docdir}' 935 dvidir='${docdir}' 936 pdfdir='${docdir}' 937 psdir='${docdir}' 938 libdir='${exec_prefix}/lib' 939 localedir='${datarootdir}/locale' 940 mandir='${datarootdir}/man' 941 942 ac_prev= 943 ac_dashdash= 944 for ac_option 945 do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 case $ac_dashdash$ac_option in 960 --) 961 ac_dashdash=yes ;; 962 963 -bindir | --bindir | --bindi | --bind | --bin | --bi) 964 ac_prev=bindir ;; 965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 966 bindir=$ac_optarg ;; 967 968 -build | --build | --buil | --bui | --bu) 969 ac_prev=build_alias ;; 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 971 build_alias=$ac_optarg ;; 972 973 -cache-file | --cache-file | --cache-fil | --cache-fi \ 974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 975 ac_prev=cache_file ;; 976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 978 cache_file=$ac_optarg ;; 979 980 --config-cache | -C) 981 cache_file=config.cache ;; 982 983 -datadir | --datadir | --datadi | --datad) 984 ac_prev=datadir ;; 985 -datadir=* | --datadir=* | --datadi=* | --datad=*) 986 datadir=$ac_optarg ;; 987 988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 989 | --dataroo | --dataro | --datar) 990 ac_prev=datarootdir ;; 991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 993 datarootdir=$ac_optarg ;; 994 995 -disable-* | --disable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: '$ac_useropt'" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004 "enable_$ac_useropt" 1005 "*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1025 as_fn_error $? "invalid feature name: '$ac_useropt'" 1026 ac_useropt_orig=$ac_useropt 1027 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1028 case $ac_user_opts in 1029 *" 1030 "enable_$ac_useropt" 1031 "*) ;; 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1033 ac_unrecognized_sep=', ';; 1034 esac 1035 eval enable_$ac_useropt=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1181 | --runstate | --runstat | --runsta | --runst | --runs \ 1182 | --run | --ru | --r) 1183 ac_prev=runstatedir ;; 1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1186 | --run=* | --ru=* | --r=*) 1187 runstatedir=$ac_optarg ;; 1188 1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1190 ac_prev=sbindir ;; 1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1192 | --sbi=* | --sb=*) 1193 sbindir=$ac_optarg ;; 1194 1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1197 | --sharedst | --shareds | --shared | --share | --shar \ 1198 | --sha | --sh) 1199 ac_prev=sharedstatedir ;; 1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1203 | --sha=* | --sh=*) 1204 sharedstatedir=$ac_optarg ;; 1205 1206 -site | --site | --sit) 1207 ac_prev=site ;; 1208 -site=* | --site=* | --sit=*) 1209 site=$ac_optarg ;; 1210 1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1212 ac_prev=srcdir ;; 1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1214 srcdir=$ac_optarg ;; 1215 1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1217 | --syscon | --sysco | --sysc | --sys | --sy) 1218 ac_prev=sysconfdir ;; 1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1221 sysconfdir=$ac_optarg ;; 1222 1223 -target | --target | --targe | --targ | --tar | --ta | --t) 1224 ac_prev=target_alias ;; 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1226 target_alias=$ac_optarg ;; 1227 1228 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1229 verbose=yes ;; 1230 1231 -version | --version | --versio | --versi | --vers | -V) 1232 ac_init_version=: ;; 1233 1234 -with-* | --with-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: '$ac_useropt'" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243 "with_$ac_useropt" 1244 "*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=\$ac_optarg ;; 1249 1250 -without-* | --without-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: '$ac_useropt'" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259 "with_$ac_useropt" 1260 "*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=no ;; 1265 1266 --x) 1267 # Obsolete; use --with-x. 1268 with_x=yes ;; 1269 1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1271 | --x-incl | --x-inc | --x-in | --x-i) 1272 ac_prev=x_includes ;; 1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1275 x_includes=$ac_optarg ;; 1276 1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1279 ac_prev=x_libraries ;; 1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1282 x_libraries=$ac_optarg ;; 1283 1284 -*) as_fn_error $? "unrecognized option: '$ac_option' 1285 Try '$0 --help' for more information" 1286 ;; 1287 1288 *=*) 1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1290 # Reject names that are not valid shell variable names. 1291 case $ac_envvar in #( 1292 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1293 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1294 esac 1295 eval $ac_envvar=\$ac_optarg 1296 export $ac_envvar ;; 1297 1298 *) 1299 # FIXME: should be removed in autoconf 3.0. 1300 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1302 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1304 ;; 1305 1306 esac 1307 done 1308 1309 if test -n "$ac_prev"; then 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1311 as_fn_error $? "missing argument to $ac_option" 1312 fi 1313 1314 if test -n "$ac_unrecognized_opts"; then 1315 case $enable_option_checking in 1316 no) ;; 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1318 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1319 esac 1320 fi 1321 1322 # Check all directory arguments for consistency. 1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1324 datadir sysconfdir sharedstatedir localstatedir includedir \ 1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1326 libdir localedir mandir runstatedir 1327 do 1328 eval ac_val=\$$ac_var 1329 # Remove trailing slashes. 1330 case $ac_val in 1331 */ ) 1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1333 eval $ac_var=\$ac_val;; 1334 esac 1335 # Be sure to have absolute directory names. 1336 case $ac_val in 1337 [\\/$]* | ?:[\\/]* ) continue;; 1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1339 esac 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1341 done 1342 1343 # There might be people who depend on the old broken behavior: '$host' 1344 # used to hold the argument of --host etc. 1345 # FIXME: To remove some day. 1346 build=$build_alias 1347 host=$host_alias 1348 target=$target_alias 1349 1350 # FIXME: To remove some day. 1351 if test "x$host_alias" != x; then 1352 if test "x$build_alias" = x; then 1353 cross_compiling=maybe 1354 elif test "x$build_alias" != "x$host_alias"; then 1355 cross_compiling=yes 1356 fi 1357 fi 1358 1359 ac_tool_prefix= 1360 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1361 1362 test "$silent" = yes && exec 6>/dev/null 1363 1364 1365 ac_pwd=`pwd` && test -n "$ac_pwd" && 1366 ac_ls_di=`ls -di .` && 1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1368 as_fn_error $? "working directory cannot be determined" 1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1370 as_fn_error $? "pwd does not report name of working directory" 1371 1372 1373 # Find the source files, if location was not specified. 1374 if test -z "$srcdir"; then 1375 ac_srcdir_defaulted=yes 1376 # Try the directory containing this script, then the parent directory. 1377 ac_confdir=`$as_dirname -- "$as_myself" || 1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1379 X"$as_myself" : 'X\(//\)[^/]' \| \ 1380 X"$as_myself" : 'X\(//\)$' \| \ 1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1382 printf "%s\n" X"$as_myself" | 1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1384 s//\1/ 1385 q 1386 } 1387 /^X\(\/\/\)[^/].*/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)$/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\).*/{ 1396 s//\1/ 1397 q 1398 } 1399 s/.*/./; q'` 1400 srcdir=$ac_confdir 1401 if test ! -r "$srcdir/$ac_unique_file"; then 1402 srcdir=.. 1403 fi 1404 else 1405 ac_srcdir_defaulted=no 1406 fi 1407 if test ! -r "$srcdir/$ac_unique_file"; then 1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1410 fi 1411 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1412 ac_abs_confdir=`( 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1414 pwd)` 1415 # When building in place, set srcdir=. 1416 if test "$ac_abs_confdir" = "$ac_pwd"; then 1417 srcdir=. 1418 fi 1419 # Remove unnecessary trailing slashes from srcdir. 1420 # Double slashes in file names in object file debugging info 1421 # mess up M-x gdb in Emacs. 1422 case $srcdir in 1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1424 esac 1425 for ac_var in $ac_precious_vars; do 1426 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_env_${ac_var}_value=\$${ac_var} 1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1429 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1430 done 1431 1432 # 1433 # Report the --help message. 1434 # 1435 if test "$ac_init_help" = "long"; then 1436 # Omit some internal or obsolete options to make the list less imposing. 1437 # This message is too long to be a string in the A/UX 3.1 sh. 1438 cat <<_ACEOF 1439 'configure' configures xorgproto 2025.1 to adapt to many kinds of systems. 1440 1441 Usage: $0 [OPTION]... [VAR=VALUE]... 1442 1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1444 VAR=VALUE. See below for descriptions of some of the useful variables. 1445 1446 Defaults for the options are specified in brackets. 1447 1448 Configuration: 1449 -h, --help display this help and exit 1450 --help=short display options specific to this package 1451 --help=recursive display the short help of all the included packages 1452 -V, --version display version information and exit 1453 -q, --quiet, --silent do not print 'checking ...' messages 1454 --cache-file=FILE cache test results in FILE [disabled] 1455 -C, --config-cache alias for '--cache-file=config.cache' 1456 -n, --no-create do not create output files 1457 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1458 1459 Installation directories: 1460 --prefix=PREFIX install architecture-independent files in PREFIX 1461 [$ac_default_prefix] 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1463 [PREFIX] 1464 1465 By default, 'make install' will install all the files in 1466 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1467 an installation prefix other than '$ac_default_prefix' using '--prefix', 1468 for instance '--prefix=\$HOME'. 1469 1470 For better control, use the options below. 1471 1472 Fine tuning of the installation directories: 1473 --bindir=DIR user executables [EPREFIX/bin] 1474 --sbindir=DIR system admin executables [EPREFIX/sbin] 1475 --libexecdir=DIR program executables [EPREFIX/libexec] 1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1480 --libdir=DIR object code libraries [EPREFIX/lib] 1481 --includedir=DIR C header files [PREFIX/include] 1482 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1485 --infodir=DIR info documentation [DATAROOTDIR/info] 1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1487 --mandir=DIR man documentation [DATAROOTDIR/man] 1488 --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto] 1489 --htmldir=DIR html documentation [DOCDIR] 1490 --dvidir=DIR dvi documentation [DOCDIR] 1491 --pdfdir=DIR pdf documentation [DOCDIR] 1492 --psdir=DIR ps documentation [DOCDIR] 1493 _ACEOF 1494 1495 cat <<\_ACEOF 1496 1497 Program names: 1498 --program-prefix=PREFIX prepend PREFIX to installed program names 1499 --program-suffix=SUFFIX append SUFFIX to installed program names 1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1501 1502 System types: 1503 --build=BUILD configure for building on BUILD [guessed] 1504 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1505 _ACEOF 1506 fi 1507 1508 if test -n "$ac_init_help"; then 1509 case $ac_init_help in 1510 short | recursive ) echo "Configuration of xorgproto 2025.1:";; 1511 esac 1512 cat <<\_ACEOF 1513 1514 Optional Features: 1515 --disable-option-checking ignore unrecognized --enable/--with options 1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1518 --enable-silent-rules less verbose build output (undo: "make V=1") 1519 --disable-silent-rules verbose build output (undo: "make V=0") 1520 --enable-dependency-tracking 1521 do not reject slow dependency extractors 1522 --disable-dependency-tracking 1523 speeds up one-time build 1524 --disable-selective-werror 1525 Turn off selective compiler errors. (default: 1526 enabled) 1527 --enable-strict-compilation 1528 Enable all warnings from compiler and make them 1529 errors (default: disabled) 1530 --enable-specs Enable building the specs (default: yes) 1531 --enable-legacy Install legacy protocol headers (default: false) 1532 1533 Optional Packages: 1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1536 --with-xmlto Use xmlto to regenerate documentation (default: 1537 auto) 1538 --with-fop Use fop to regenerate documentation (default: auto) 1539 --with-xsltproc Use xsltproc for the transformation of XML documents 1540 (default: auto) 1541 --with-python-sys-prefix 1542 use Python's sys.prefix and sys.exec_prefix values 1543 --with-python_prefix override the default PYTHON_PREFIX 1544 --with-python_exec_prefix 1545 override the default PYTHON_EXEC_PREFIX 1546 1547 Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 PKG_CONFIG path to pkg-config utility 1556 PKG_CONFIG_PATH 1557 directories to add to pkg-config's search path 1558 PKG_CONFIG_LIBDIR 1559 path overriding pkg-config's built-in search path 1560 XMLTO Path to xmlto command 1561 FOP Path to fop command 1562 XSLTPROC Path to xsltproc command 1563 PYTHON the Python interpreter 1564 1565 Use these variables to override the choices made by 'configure' or to help 1566 it to find libraries and programs with nonstandard names/locations. 1567 1568 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 1569 _ACEOF 1570 ac_status=$? 1571 fi 1572 1573 if test "$ac_init_help" = "recursive"; then 1574 # If there are subdirs, report their specific --help. 1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1576 test -d "$ac_dir" || 1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1578 continue 1579 ac_builddir=. 1580 1581 case "$ac_dir" in 1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583 *) 1584 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1585 # A ".." for each directory in $ac_dir_suffix. 1586 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1587 case $ac_top_builddir_sub in 1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1590 esac ;; 1591 esac 1592 ac_abs_top_builddir=$ac_pwd 1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1594 # for backward compatibility: 1595 ac_top_builddir=$ac_top_build_prefix 1596 1597 case $srcdir in 1598 .) # We are building in place. 1599 ac_srcdir=. 1600 ac_top_srcdir=$ac_top_builddir_sub 1601 ac_abs_top_srcdir=$ac_pwd ;; 1602 [\\/]* | ?:[\\/]* ) # Absolute name. 1603 ac_srcdir=$srcdir$ac_dir_suffix; 1604 ac_top_srcdir=$srcdir 1605 ac_abs_top_srcdir=$srcdir ;; 1606 *) # Relative name. 1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1608 ac_top_srcdir=$ac_top_build_prefix$srcdir 1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1610 esac 1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1612 1613 cd "$ac_dir" || { ac_status=$?; continue; } 1614 # Check for configure.gnu first; this name is used for a wrapper for 1615 # Metaconfig's "Configure" on case-insensitive file systems. 1616 if test -f "$ac_srcdir/configure.gnu"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1619 elif test -f "$ac_srcdir/configure"; then 1620 echo && 1621 $SHELL "$ac_srcdir/configure" --help=recursive 1622 else 1623 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1624 fi || ac_status=$? 1625 cd "$ac_pwd" || { ac_status=$?; break; } 1626 done 1627 fi 1628 1629 test -n "$ac_init_help" && exit $ac_status 1630 if $ac_init_version; then 1631 cat <<\_ACEOF 1632 xorgproto configure 2025.1 1633 generated by GNU Autoconf 2.72 1634 1635 Copyright (C) 2023 Free Software Foundation, Inc. 1636 This configure script is free software; the Free Software Foundation 1637 gives unlimited permission to copy, distribute and modify it. 1638 _ACEOF 1639 exit 1640 fi 1641 1642 ## ------------------------ ## 1643 ## Autoconf initialization. ## 1644 ## ------------------------ ## 1645 1646 # ac_fn_c_try_compile LINENO 1647 # -------------------------- 1648 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1649 ac_fn_c_try_compile () 1650 { 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext conftest.beam 1653 if { { ac_try="$ac_compile" 1654 case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657 esac 1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659 printf "%s\n" "$ac_try_echo"; } >&5 1660 (eval "$ac_compile") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest.$ac_objext 1672 then : 1673 ac_retval=0 1674 else case e in #( 1675 e) printf "%s\n" "$as_me: failed program was:" >&5 1676 sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 ;; 1679 esac 1680 fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684 } # ac_fn_c_try_compile 1685 1686 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1687 # ------------------------------------------------------------------ 1688 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1689 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1690 ac_fn_check_decl () 1691 { 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 as_decl_name=`echo $2|sed 's/ *(.*//'` 1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1695 printf %s "checking whether $as_decl_name is declared... " >&6; } 1696 if eval test \${$3+y} 1697 then : 1698 printf %s "(cached) " >&6 1699 else case e in #( 1700 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1701 eval ac_save_FLAGS=\$$6 1702 as_fn_append $6 " $5" 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704 /* end confdefs.h. */ 1705 $4 1706 int 1707 main (void) 1708 { 1709 #ifndef $as_decl_name 1710 #ifdef __cplusplus 1711 (void) $as_decl_use; 1712 #else 1713 (void) $as_decl_name; 1714 #endif 1715 #endif 1716 1717 ; 1718 return 0; 1719 } 1720 _ACEOF 1721 if ac_fn_c_try_compile "$LINENO" 1722 then : 1723 eval "$3=yes" 1724 else case e in #( 1725 e) eval "$3=no" ;; 1726 esac 1727 fi 1728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1729 eval $6=\$ac_save_FLAGS 1730 ;; 1731 esac 1732 fi 1733 eval ac_res=\$$3 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735 printf "%s\n" "$ac_res" >&6; } 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 1738 } # ac_fn_check_decl 1739 1740 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1741 # ------------------------------------------------------- 1742 # Tests whether HEADER exists and can be compiled using the include files in 1743 # INCLUDES, setting the cache variable VAR accordingly. 1744 ac_fn_c_check_header_compile () 1745 { 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748 printf %s "checking for $2... " >&6; } 1749 if eval test \${$3+y} 1750 then : 1751 printf %s "(cached) " >&6 1752 else case e in #( 1753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754 /* end confdefs.h. */ 1755 $4 1756 #include <$2> 1757 _ACEOF 1758 if ac_fn_c_try_compile "$LINENO" 1759 then : 1760 eval "$3=yes" 1761 else case e in #( 1762 e) eval "$3=no" ;; 1763 esac 1764 fi 1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1766 esac 1767 fi 1768 eval ac_res=\$$3 1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770 printf "%s\n" "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773 } # ac_fn_c_check_header_compile 1774 1775 # ac_fn_c_try_link LINENO 1776 # ----------------------- 1777 # Try to link conftest.$ac_ext, and return whether this succeeded. 1778 ac_fn_c_try_link () 1779 { 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1782 if { { ac_try="$ac_link" 1783 case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786 esac 1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788 printf "%s\n" "$ac_try_echo"; } >&5 1789 (eval "$ac_link") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest$ac_exeext && { 1801 test "$cross_compiling" = yes || 1802 test -x conftest$ac_exeext 1803 } 1804 then : 1805 ac_retval=0 1806 else case e in #( 1807 e) printf "%s\n" "$as_me: failed program was:" >&5 1808 sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=1 ;; 1811 esac 1812 fi 1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1815 # interfere with the next link command; also delete a directory that is 1816 # left behind by Apple's compiler. We do this before executing the actions. 1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 as_fn_set_status $ac_retval 1820 1821 } # ac_fn_c_try_link 1822 1823 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1824 # ---------------------------------------------------- 1825 # Tries to find if the field MEMBER exists in type AGGR, after including 1826 # INCLUDES, setting cache variable VAR accordingly. 1827 ac_fn_c_check_member () 1828 { 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1831 printf %s "checking for $2.$3... " >&6; } 1832 if eval test \${$4+y} 1833 then : 1834 printf %s "(cached) " >&6 1835 else case e in #( 1836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837 /* end confdefs.h. */ 1838 $5 1839 int 1840 main (void) 1841 { 1842 static $2 ac_aggr; 1843 if (ac_aggr.$3) 1844 return 0; 1845 ; 1846 return 0; 1847 } 1848 _ACEOF 1849 if ac_fn_c_try_compile "$LINENO" 1850 then : 1851 eval "$4=yes" 1852 else case e in #( 1853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854 /* end confdefs.h. */ 1855 $5 1856 int 1857 main (void) 1858 { 1859 static $2 ac_aggr; 1860 if (sizeof ac_aggr.$3) 1861 return 0; 1862 ; 1863 return 0; 1864 } 1865 _ACEOF 1866 if ac_fn_c_try_compile "$LINENO" 1867 then : 1868 eval "$4=yes" 1869 else case e in #( 1870 e) eval "$4=no" ;; 1871 esac 1872 fi 1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1874 esac 1875 fi 1876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1877 esac 1878 fi 1879 eval ac_res=\$$4 1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881 printf "%s\n" "$ac_res" >&6; } 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 1884 } # ac_fn_c_check_member 1885 ac_configure_args_raw= 1886 for ac_arg 1887 do 1888 case $ac_arg in 1889 *\'*) 1890 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 esac 1892 as_fn_append ac_configure_args_raw " '$ac_arg'" 1893 done 1894 1895 case $ac_configure_args_raw in 1896 *$as_nl*) 1897 ac_safe_unquote= ;; 1898 *) 1899 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1900 ac_unsafe_a="$ac_unsafe_z#~" 1901 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1902 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1903 esac 1904 1905 cat >config.log <<_ACEOF 1906 This file contains any messages produced by compilers while 1907 running configure, to aid debugging if configure makes a mistake. 1908 1909 It was created by xorgproto $as_me 2025.1, which was 1910 generated by GNU Autoconf 2.72. Invocation command line was 1911 1912 $ $0$ac_configure_args_raw 1913 1914 _ACEOF 1915 exec 5>>config.log 1916 { 1917 cat <<_ASUNAME 1918 ## --------- ## 1919 ## Platform. ## 1920 ## --------- ## 1921 1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1923 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1924 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1925 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1926 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1927 1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1930 1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1938 1939 _ASUNAME 1940 1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1942 for as_dir in $PATH 1943 do 1944 IFS=$as_save_IFS 1945 case $as_dir in #((( 1946 '') as_dir=./ ;; 1947 */) ;; 1948 *) as_dir=$as_dir/ ;; 1949 esac 1950 printf "%s\n" "PATH: $as_dir" 1951 done 1952 IFS=$as_save_IFS 1953 1954 } >&5 1955 1956 cat >&5 <<_ACEOF 1957 1958 1959 ## ----------- ## 1960 ## Core tests. ## 1961 ## ----------- ## 1962 1963 _ACEOF 1964 1965 1966 # Keep a trace of the command line. 1967 # Strip out --no-create and --no-recursion so they do not pile up. 1968 # Strip out --silent because we don't want to record it for future runs. 1969 # Also quote any args containing shell meta-characters. 1970 # Make two passes to allow for proper duplicate-argument suppression. 1971 ac_configure_args= 1972 ac_configure_args0= 1973 ac_configure_args1= 1974 ac_must_keep_next=false 1975 for ac_pass in 1 2 1976 do 1977 for ac_arg 1978 do 1979 case $ac_arg in 1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1982 | -silent | --silent | --silen | --sile | --sil) 1983 continue ;; 1984 *\'*) 1985 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1986 esac 1987 case $ac_pass in 1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1989 2) 1990 as_fn_append ac_configure_args1 " '$ac_arg'" 1991 if test $ac_must_keep_next = true; then 1992 ac_must_keep_next=false # Got value, back to normal. 1993 else 1994 case $ac_arg in 1995 *=* | --config-cache | -C | -disable-* | --disable-* \ 1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1998 | -with-* | --with-* | -without-* | --without-* | --x) 1999 case "$ac_configure_args0 " in 2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2001 esac 2002 ;; 2003 -* ) ac_must_keep_next=true ;; 2004 esac 2005 fi 2006 as_fn_append ac_configure_args " '$ac_arg'" 2007 ;; 2008 esac 2009 done 2010 done 2011 { ac_configure_args0=; unset ac_configure_args0;} 2012 { ac_configure_args1=; unset ac_configure_args1;} 2013 2014 # When interrupted or exit'd, cleanup temporary files, and complete 2015 # config.log. We remove comments because anyway the quotes in there 2016 # would cause problems or look ugly. 2017 # WARNING: Use '\'' to represent an apostrophe within the trap. 2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2019 trap 'exit_status=$? 2020 # Sanitize IFS. 2021 IFS=" "" $as_nl" 2022 # Save into config.log some information that might help in debugging. 2023 { 2024 echo 2025 2026 printf "%s\n" "## ---------------- ## 2027 ## Cache variables. ## 2028 ## ---------------- ##" 2029 echo 2030 # The following way of writing the cache mishandles newlines in values, 2031 ( 2032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2033 eval ac_val=\$$ac_var 2034 case $ac_val in #( 2035 *${as_nl}*) 2036 case $ac_var in #( 2037 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2038 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2039 esac 2040 case $ac_var in #( 2041 _ | IFS | as_nl) ;; #( 2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2043 *) { eval $ac_var=; unset $ac_var;} ;; 2044 esac ;; 2045 esac 2046 done 2047 (set) 2>&1 | 2048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2049 *${as_nl}ac_space=\ *) 2050 sed -n \ 2051 "s/'\''/'\''\\\\'\'''\''/g; 2052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2053 ;; #( 2054 *) 2055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2056 ;; 2057 esac | 2058 sort 2059 ) 2060 echo 2061 2062 printf "%s\n" "## ----------------- ## 2063 ## Output variables. ## 2064 ## ----------------- ##" 2065 echo 2066 for ac_var in $ac_subst_vars 2067 do 2068 eval ac_val=\$$ac_var 2069 case $ac_val in 2070 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2071 esac 2072 printf "%s\n" "$ac_var='\''$ac_val'\''" 2073 done | sort 2074 echo 2075 2076 if test -n "$ac_subst_files"; then 2077 printf "%s\n" "## ------------------- ## 2078 ## File substitutions. ## 2079 ## ------------------- ##" 2080 echo 2081 for ac_var in $ac_subst_files 2082 do 2083 eval ac_val=\$$ac_var 2084 case $ac_val in 2085 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2086 esac 2087 printf "%s\n" "$ac_var='\''$ac_val'\''" 2088 done | sort 2089 echo 2090 fi 2091 2092 if test -s confdefs.h; then 2093 printf "%s\n" "## ----------- ## 2094 ## confdefs.h. ## 2095 ## ----------- ##" 2096 echo 2097 cat confdefs.h 2098 echo 2099 fi 2100 test "$ac_signal" != 0 && 2101 printf "%s\n" "$as_me: caught signal $ac_signal" 2102 printf "%s\n" "$as_me: exit $exit_status" 2103 } >&5 2104 rm -f core *.core core.conftest.* && 2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2106 exit $exit_status 2107 ' 0 2108 for ac_signal in 1 2 13 15; do 2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2110 done 2111 ac_signal=0 2112 2113 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2114 rm -f -r conftest* confdefs.h 2115 2116 printf "%s\n" "/* confdefs.h */" > confdefs.h 2117 2118 # Predefined preprocessor variables. 2119 2120 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2121 2122 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2123 2124 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2125 2126 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2127 2128 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2129 2130 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2131 2132 2133 # Let the site file select an alternate cache file if it wants to. 2134 # Prefer an explicitly selected file to automatically selected ones. 2135 if test -n "$CONFIG_SITE"; then 2136 ac_site_files="$CONFIG_SITE" 2137 elif test "x$prefix" != xNONE; then 2138 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2139 else 2140 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2141 fi 2142 2143 for ac_site_file in $ac_site_files 2144 do 2145 case $ac_site_file in #( 2146 */*) : 2147 ;; #( 2148 *) : 2149 ac_site_file=./$ac_site_file ;; 2150 esac 2151 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2153 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2154 sed 's/^/| /' "$ac_site_file" >&5 2155 . "$ac_site_file" \ 2156 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2157 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2158 as_fn_error $? "failed to load site script $ac_site_file 2159 See 'config.log' for more details" "$LINENO" 5; } 2160 fi 2161 done 2162 2163 if test -r "$cache_file"; then 2164 # Some versions of bash will fail to source /dev/null (special files 2165 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2166 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2168 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2169 case $cache_file in 2170 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2171 *) . "./$cache_file";; 2172 esac 2173 fi 2174 else 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2176 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2177 >$cache_file 2178 fi 2179 2180 # Test code for whether the C compiler supports C89 (global declarations) 2181 ac_c_conftest_c89_globals=' 2182 /* Does the compiler advertise C89 conformance? 2183 Do not test the value of __STDC__, because some compilers set it to 0 2184 while being otherwise adequately conformant. */ 2185 #if !defined __STDC__ 2186 # error "Compiler does not advertise C89 conformance" 2187 #endif 2188 2189 #include <stddef.h> 2190 #include <stdarg.h> 2191 struct stat; 2192 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2193 struct buf { int x; }; 2194 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2195 static char *e (char **p, int i) 2196 { 2197 return p[i]; 2198 } 2199 static char *f (char * (*g) (char **, int), char **p, ...) 2200 { 2201 char *s; 2202 va_list v; 2203 va_start (v,p); 2204 s = g (p, va_arg (v,int)); 2205 va_end (v); 2206 return s; 2207 } 2208 2209 /* C89 style stringification. */ 2210 #define noexpand_stringify(a) #a 2211 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2212 2213 /* C89 style token pasting. Exercises some of the corner cases that 2214 e.g. old MSVC gets wrong, but not very hard. */ 2215 #define noexpand_concat(a,b) a##b 2216 #define expand_concat(a,b) noexpand_concat(a,b) 2217 extern int vA; 2218 extern int vbee; 2219 #define aye A 2220 #define bee B 2221 int *pvA = &expand_concat(v,aye); 2222 int *pvbee = &noexpand_concat(v,bee); 2223 2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2225 function prototypes and stuff, but not \xHH hex character constants. 2226 These do not provoke an error unfortunately, instead are silently treated 2227 as an "x". The following induces an error, until -std is added to get 2228 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2229 array size at least. It is necessary to write \x00 == 0 to get something 2230 that is true only with -std. */ 2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2232 2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2234 inside strings and character constants. */ 2235 #define FOO(x) '\''x'\'' 2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2237 2238 int test (int i, double x); 2239 struct s1 {int (*f) (int a);}; 2240 struct s2 {int (*f) (double a);}; 2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2242 int, int);' 2243 2244 # Test code for whether the C compiler supports C89 (body of main). 2245 ac_c_conftest_c89_main=' 2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2247 ' 2248 2249 # Test code for whether the C compiler supports C99 (global declarations) 2250 ac_c_conftest_c99_globals=' 2251 /* Does the compiler advertise C99 conformance? */ 2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2253 # error "Compiler does not advertise C99 conformance" 2254 #endif 2255 2256 // See if C++-style comments work. 2257 2258 #include <stdbool.h> 2259 extern int puts (const char *); 2260 extern int printf (const char *, ...); 2261 extern int dprintf (int, const char *, ...); 2262 extern void *malloc (size_t); 2263 extern void free (void *); 2264 2265 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2266 // dprintf is used instead of fprintf to avoid needing to declare 2267 // FILE and stderr. 2268 #define debug(...) dprintf (2, __VA_ARGS__) 2269 #define showlist(...) puts (#__VA_ARGS__) 2270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2271 static void 2272 test_varargs_macros (void) 2273 { 2274 int x = 1234; 2275 int y = 5678; 2276 debug ("Flag"); 2277 debug ("X = %d\n", x); 2278 showlist (The first, second, and third items.); 2279 report (x>y, "x is %d but y is %d", x, y); 2280 } 2281 2282 // Check long long types. 2283 #define BIG64 18446744073709551615ull 2284 #define BIG32 4294967295ul 2285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2286 #if !BIG_OK 2287 #error "your preprocessor is broken" 2288 #endif 2289 #if BIG_OK 2290 #else 2291 #error "your preprocessor is broken" 2292 #endif 2293 static long long int bignum = -9223372036854775807LL; 2294 static unsigned long long int ubignum = BIG64; 2295 2296 struct incomplete_array 2297 { 2298 int datasize; 2299 double data[]; 2300 }; 2301 2302 struct named_init { 2303 int number; 2304 const wchar_t *name; 2305 double average; 2306 }; 2307 2308 typedef const char *ccp; 2309 2310 static inline int 2311 test_restrict (ccp restrict text) 2312 { 2313 // Iterate through items via the restricted pointer. 2314 // Also check for declarations in for loops. 2315 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2316 continue; 2317 return 0; 2318 } 2319 2320 // Check varargs and va_copy. 2321 static bool 2322 test_varargs (const char *format, ...) 2323 { 2324 va_list args; 2325 va_start (args, format); 2326 va_list args_copy; 2327 va_copy (args_copy, args); 2328 2329 const char *str = ""; 2330 int number = 0; 2331 float fnumber = 0; 2332 2333 while (*format) 2334 { 2335 switch (*format++) 2336 { 2337 case '\''s'\'': // string 2338 str = va_arg (args_copy, const char *); 2339 break; 2340 case '\''d'\'': // int 2341 number = va_arg (args_copy, int); 2342 break; 2343 case '\''f'\'': // float 2344 fnumber = va_arg (args_copy, double); 2345 break; 2346 default: 2347 break; 2348 } 2349 } 2350 va_end (args_copy); 2351 va_end (args); 2352 2353 return *str && number && fnumber; 2354 } 2355 ' 2356 2357 # Test code for whether the C compiler supports C99 (body of main). 2358 ac_c_conftest_c99_main=' 2359 // Check bool. 2360 _Bool success = false; 2361 success |= (argc != 0); 2362 2363 // Check restrict. 2364 if (test_restrict ("String literal") == 0) 2365 success = true; 2366 char *restrict newvar = "Another string"; 2367 2368 // Check varargs. 2369 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2370 test_varargs_macros (); 2371 2372 // Check flexible array members. 2373 struct incomplete_array *ia = 2374 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2375 ia->datasize = 10; 2376 for (int i = 0; i < ia->datasize; ++i) 2377 ia->data[i] = i * 1.234; 2378 // Work around memory leak warnings. 2379 free (ia); 2380 2381 // Check named initializers. 2382 struct named_init ni = { 2383 .number = 34, 2384 .name = L"Test wide string", 2385 .average = 543.34343, 2386 }; 2387 2388 ni.number = 58; 2389 2390 int dynamic_array[ni.number]; 2391 dynamic_array[0] = argv[0][0]; 2392 dynamic_array[ni.number - 1] = 543; 2393 2394 // work around unused variable warnings 2395 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2396 || dynamic_array[ni.number - 1] != 543); 2397 ' 2398 2399 # Test code for whether the C compiler supports C11 (global declarations) 2400 ac_c_conftest_c11_globals=' 2401 /* Does the compiler advertise C11 conformance? */ 2402 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2403 # error "Compiler does not advertise C11 conformance" 2404 #endif 2405 2406 // Check _Alignas. 2407 char _Alignas (double) aligned_as_double; 2408 char _Alignas (0) no_special_alignment; 2409 extern char aligned_as_int; 2410 char _Alignas (0) _Alignas (int) aligned_as_int; 2411 2412 // Check _Alignof. 2413 enum 2414 { 2415 int_alignment = _Alignof (int), 2416 int_array_alignment = _Alignof (int[100]), 2417 char_alignment = _Alignof (char) 2418 }; 2419 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2420 2421 // Check _Noreturn. 2422 int _Noreturn does_not_return (void) { for (;;) continue; } 2423 2424 // Check _Static_assert. 2425 struct test_static_assert 2426 { 2427 int x; 2428 _Static_assert (sizeof (int) <= sizeof (long int), 2429 "_Static_assert does not work in struct"); 2430 long int y; 2431 }; 2432 2433 // Check UTF-8 literals. 2434 #define u8 syntax error! 2435 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2436 2437 // Check duplicate typedefs. 2438 typedef long *long_ptr; 2439 typedef long int *long_ptr; 2440 typedef long_ptr long_ptr; 2441 2442 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2443 struct anonymous 2444 { 2445 union { 2446 struct { int i; int j; }; 2447 struct { int k; long int l; } w; 2448 }; 2449 int m; 2450 } v1; 2451 ' 2452 2453 # Test code for whether the C compiler supports C11 (body of main). 2454 ac_c_conftest_c11_main=' 2455 _Static_assert ((offsetof (struct anonymous, i) 2456 == offsetof (struct anonymous, w.k)), 2457 "Anonymous union alignment botch"); 2458 v1.i = 2; 2459 v1.w.k = 5; 2460 ok |= v1.i != 5; 2461 ' 2462 2463 # Test code for whether the C compiler supports C11 (complete). 2464 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2465 ${ac_c_conftest_c99_globals} 2466 ${ac_c_conftest_c11_globals} 2467 2468 int 2469 main (int argc, char **argv) 2470 { 2471 int ok = 0; 2472 ${ac_c_conftest_c89_main} 2473 ${ac_c_conftest_c99_main} 2474 ${ac_c_conftest_c11_main} 2475 return ok; 2476 } 2477 " 2478 2479 # Test code for whether the C compiler supports C99 (complete). 2480 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2481 ${ac_c_conftest_c99_globals} 2482 2483 int 2484 main (int argc, char **argv) 2485 { 2486 int ok = 0; 2487 ${ac_c_conftest_c89_main} 2488 ${ac_c_conftest_c99_main} 2489 return ok; 2490 } 2491 " 2492 2493 # Test code for whether the C compiler supports C89 (complete). 2494 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2495 2496 int 2497 main (int argc, char **argv) 2498 { 2499 int ok = 0; 2500 ${ac_c_conftest_c89_main} 2501 return ok; 2502 } 2503 " 2504 2505 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2506 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2507 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2508 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2509 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2510 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2511 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2512 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2513 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2514 2515 # Auxiliary files required by this configure script. 2516 ac_aux_files="config.guess config.sub compile missing install-sh" 2517 2518 # Locations in which to look for auxiliary files. 2519 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2520 2521 # Search for a directory containing all of the required auxiliary files, 2522 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2523 # If we don't find one directory that contains all the files we need, 2524 # we report the set of missing files from the *first* directory in 2525 # $ac_aux_dir_candidates and give up. 2526 ac_missing_aux_files="" 2527 ac_first_candidate=: 2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530 as_found=false 2531 for as_dir in $ac_aux_dir_candidates 2532 do 2533 IFS=$as_save_IFS 2534 case $as_dir in #((( 2535 '') as_dir=./ ;; 2536 */) ;; 2537 *) as_dir=$as_dir/ ;; 2538 esac 2539 as_found=: 2540 2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2542 ac_aux_dir_found=yes 2543 ac_install_sh= 2544 for ac_aux in $ac_aux_files 2545 do 2546 # As a special case, if "install-sh" is required, that requirement 2547 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2548 # and $ac_install_sh is set appropriately for whichever one is found. 2549 if test x"$ac_aux" = x"install-sh" 2550 then 2551 if test -f "${as_dir}install-sh"; then 2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2553 ac_install_sh="${as_dir}install-sh -c" 2554 elif test -f "${as_dir}install.sh"; then 2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2556 ac_install_sh="${as_dir}install.sh -c" 2557 elif test -f "${as_dir}shtool"; then 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2559 ac_install_sh="${as_dir}shtool install -c" 2560 else 2561 ac_aux_dir_found=no 2562 if $ac_first_candidate; then 2563 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2564 else 2565 break 2566 fi 2567 fi 2568 else 2569 if test -f "${as_dir}${ac_aux}"; then 2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2571 else 2572 ac_aux_dir_found=no 2573 if $ac_first_candidate; then 2574 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2575 else 2576 break 2577 fi 2578 fi 2579 fi 2580 done 2581 if test "$ac_aux_dir_found" = yes; then 2582 ac_aux_dir="$as_dir" 2583 break 2584 fi 2585 ac_first_candidate=false 2586 2587 as_found=false 2588 done 2589 IFS=$as_save_IFS 2590 if $as_found 2591 then : 2592 2593 else case e in #( 2594 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2595 esac 2596 fi 2597 2598 2599 # These three variables are undocumented and unsupported, 2600 # and are intended to be withdrawn in a future Autoconf release. 2601 # They can cause serious problems if a builder's source tree is in a directory 2602 # whose full name contains unusual characters. 2603 if test -f "${ac_aux_dir}config.guess"; then 2604 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2605 fi 2606 if test -f "${ac_aux_dir}config.sub"; then 2607 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2608 fi 2609 if test -f "$ac_aux_dir/configure"; then 2610 ac_configure="$SHELL ${ac_aux_dir}configure" 2611 fi 2612 2613 # Check that the precious variables saved in the cache have kept the same 2614 # value. 2615 ac_cache_corrupted=false 2616 for ac_var in $ac_precious_vars; do 2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2618 eval ac_new_set=\$ac_env_${ac_var}_set 2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2620 eval ac_new_val=\$ac_env_${ac_var}_value 2621 case $ac_old_set,$ac_new_set in 2622 set,) 2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2624 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2625 ac_cache_corrupted=: ;; 2626 ,set) 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2628 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2629 ac_cache_corrupted=: ;; 2630 ,);; 2631 *) 2632 if test "x$ac_old_val" != "x$ac_new_val"; then 2633 # differences in whitespace do not lead to failure. 2634 ac_old_val_w=`echo x $ac_old_val` 2635 ac_new_val_w=`echo x $ac_new_val` 2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2638 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2639 ac_cache_corrupted=: 2640 else 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2642 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2643 eval $ac_var=\$ac_old_val 2644 fi 2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2646 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2648 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2649 fi;; 2650 esac 2651 # Pass precious variables to config.status. 2652 if test "$ac_new_set" = set; then 2653 case $ac_new_val in 2654 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2655 *) ac_arg=$ac_var=$ac_new_val ;; 2656 esac 2657 case " $ac_configure_args " in 2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2660 esac 2661 fi 2662 done 2663 if $ac_cache_corrupted; then 2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2665 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2667 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2668 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2669 and start over" "$LINENO" 5 2670 fi 2671 ## -------------------- ## 2672 ## Main body of script. ## 2673 ## -------------------- ## 2674 2675 ac_ext=c 2676 ac_cpp='$CPP $CPPFLAGS' 2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2680 2681 2682 am__api_version='1.18' 2683 2684 2685 2686 # Find a good install program. We prefer a C program (faster), 2687 # so one script is as good as another. But avoid the broken or 2688 # incompatible versions: 2689 # SysV /etc/install, /usr/sbin/install 2690 # SunOS /usr/etc/install 2691 # IRIX /sbin/install 2692 # AIX /bin/install 2693 # AmigaOS /C/install, which installs bootblocks on floppy discs 2694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2697 # OS/2's system install, which has a completely different semantic 2698 # ./install, which can be erroneously created by make from ./install.sh. 2699 # Reject install programs that cannot install multiple files. 2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2701 printf %s "checking for a BSD-compatible install... " >&6; } 2702 if test -z "$INSTALL"; then 2703 if test ${ac_cv_path_install+y} 2704 then : 2705 printf %s "(cached) " >&6 2706 else case e in #( 2707 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708 for as_dir in $PATH 2709 do 2710 IFS=$as_save_IFS 2711 case $as_dir in #((( 2712 '') as_dir=./ ;; 2713 */) ;; 2714 *) as_dir=$as_dir/ ;; 2715 esac 2716 # Account for fact that we put trailing slashes in our PATH walk. 2717 case $as_dir in #(( 2718 ./ | /[cC]/* | \ 2719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2720 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2721 /usr/ucb/* ) ;; 2722 *) 2723 # OSF1 and SCO ODT 3.0 have their own names for install. 2724 # Don't use installbsd from OSF since it installs stuff as root 2725 # by default. 2726 for ac_prog in ginstall scoinst install; do 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2729 if test $ac_prog = install && 2730 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2731 # AIX install. It has an incompatible calling convention. 2732 : 2733 elif test $ac_prog = install && 2734 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2735 # program-specific install script used by HP pwplus--don't use. 2736 : 2737 else 2738 rm -rf conftest.one conftest.two conftest.dir 2739 echo one > conftest.one 2740 echo two > conftest.two 2741 mkdir conftest.dir 2742 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2743 test -s conftest.one && test -s conftest.two && 2744 test -s conftest.dir/conftest.one && 2745 test -s conftest.dir/conftest.two 2746 then 2747 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2748 break 3 2749 fi 2750 fi 2751 fi 2752 done 2753 done 2754 ;; 2755 esac 2756 2757 done 2758 IFS=$as_save_IFS 2759 2760 rm -rf conftest.one conftest.two conftest.dir 2761 ;; 2762 esac 2763 fi 2764 if test ${ac_cv_path_install+y}; then 2765 INSTALL=$ac_cv_path_install 2766 else 2767 # As a last resort, use the slow shell script. Don't cache a 2768 # value for INSTALL within a source directory, because that will 2769 # break other packages using the cache if that directory is 2770 # removed, or if the value is a relative name. 2771 INSTALL=$ac_install_sh 2772 fi 2773 fi 2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2775 printf "%s\n" "$INSTALL" >&6; } 2776 2777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2778 # It thinks the first close brace ends the variable substitution. 2779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2780 2781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2782 2783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2784 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2786 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2787 if test ${am_cv_sleep_fractional_seconds+y} 2788 then : 2789 printf %s "(cached) " >&6 2790 else case e in #( 2791 e) if sleep 0.001 2>/dev/null 2792 then : 2793 am_cv_sleep_fractional_seconds=yes 2794 else case e in #( 2795 e) am_cv_sleep_fractional_seconds=no ;; 2796 esac 2797 fi 2798 ;; 2799 esac 2800 fi 2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2802 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2803 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2805 printf %s "checking filesystem timestamp resolution... " >&6; } 2806 if test ${am_cv_filesystem_timestamp_resolution+y} 2807 then : 2808 printf %s "(cached) " >&6 2809 else case e in #( 2810 e) # Default to the worst case. 2811 am_cv_filesystem_timestamp_resolution=2 2812 2813 # Only try to go finer than 1 sec if sleep can do it. 2814 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2815 # - 1 sec is not much of a win compared to 2 sec, and 2816 # - it takes 2 seconds to perform the test whether 1 sec works. 2817 # 2818 # Instead, just use the default 2s on platforms that have 1s resolution, 2819 # accept the extra 1s delay when using $sleep in the Automake tests, in 2820 # exchange for not incurring the 2s delay for running the test for all 2821 # packages. 2822 # 2823 am_try_resolutions= 2824 if test "$am_cv_sleep_fractional_seconds" = yes; then 2825 # Even a millisecond often causes a bunch of false positives, 2826 # so just try a hundredth of a second. The time saved between .001 and 2827 # .01 is not terribly consequential. 2828 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2829 fi 2830 2831 # In order to catch current-generation FAT out, we must *modify* files 2832 # that already exist; the *creation* timestamp is finer. Use names 2833 # that make ls -t sort them differently when they have equal 2834 # timestamps than when they have distinct timestamps, keeping 2835 # in mind that ls -t prints the *newest* file first. 2836 rm -f conftest.ts? 2837 : > conftest.ts1 2838 : > conftest.ts2 2839 : > conftest.ts3 2840 2841 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2842 # clobber the current shell's arguments. (Outer-level square brackets 2843 # are removed by m4; they're present so that m4 does not expand 2844 # <dollar><star>; be careful, easy to get confused.) 2845 if ( 2846 set X `ls -t conftest.ts[12]` && 2847 { 2848 test "$*" != "X conftest.ts1 conftest.ts2" || 2849 test "$*" != "X conftest.ts2 conftest.ts1"; 2850 } 2851 ); then :; else 2852 # If neither matched, then we have a broken ls. This can happen 2853 # if, for instance, CONFIG_SHELL is bash and it inherits a 2854 # broken ls alias from the environment. This has actually 2855 # happened. Such a system could not be considered "sane". 2856 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2858 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2859 as_fn_error $? "ls -t produces unexpected output. 2860 Make sure there is not a broken ls alias in your environment. 2861 See 'config.log' for more details" "$LINENO" 5; } 2862 fi 2863 2864 for am_try_res in $am_try_resolutions; do 2865 # Any one fine-grained sleep might happen to cross the boundary 2866 # between two values of a coarser actual resolution, but if we do 2867 # two fine-grained sleeps in a row, at least one of them will fall 2868 # entirely within a coarse interval. 2869 echo alpha > conftest.ts1 2870 sleep $am_try_res 2871 echo beta > conftest.ts2 2872 sleep $am_try_res 2873 echo gamma > conftest.ts3 2874 2875 # We assume that 'ls -t' will make use of high-resolution 2876 # timestamps if the operating system supports them at all. 2877 if (set X `ls -t conftest.ts?` && 2878 test "$2" = conftest.ts3 && 2879 test "$3" = conftest.ts2 && 2880 test "$4" = conftest.ts1); then 2881 # 2882 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2883 # because we don't need to test make. 2884 make_ok=true 2885 if test $am_try_res != 1; then 2886 # But if we've succeeded so far with a subsecond resolution, we 2887 # have one more thing to check: make. It can happen that 2888 # everything else supports the subsecond mtimes, but make doesn't; 2889 # notably on macOS, which ships make 3.81 from 2006 (the last one 2890 # released under GPLv2). https://bugs.gnu.org/68808 2891 # 2892 # We test $MAKE if it is defined in the environment, else "make". 2893 # It might get overridden later, but our hope is that in practice 2894 # it does not matter: it is the system "make" which is (by far) 2895 # the most likely to be broken, whereas if the user overrides it, 2896 # probably they did so with a better, or at least not worse, make. 2897 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2898 # 2899 # Create a Makefile (real tab character here): 2900 rm -f conftest.mk 2901 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2902 echo ' touch conftest.ts2' >>conftest.mk 2903 # 2904 # Now, running 2905 # touch conftest.ts1; touch conftest.ts2; make 2906 # should touch ts1 because ts2 is newer. This could happen by luck, 2907 # but most often, it will fail if make's support is insufficient. So 2908 # test for several consecutive successes. 2909 # 2910 # (We reuse conftest.ts[12] because we still want to modify existing 2911 # files, not create new ones, per above.) 2912 n=0 2913 make=${MAKE-make} 2914 until test $n -eq 3; do 2915 echo one > conftest.ts1 2916 sleep $am_try_res 2917 echo two > conftest.ts2 # ts2 should now be newer than ts1 2918 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2919 make_ok=false 2920 break # out of $n loop 2921 fi 2922 n=`expr $n + 1` 2923 done 2924 fi 2925 # 2926 if $make_ok; then 2927 # Everything we know to check worked out, so call this resolution good. 2928 am_cv_filesystem_timestamp_resolution=$am_try_res 2929 break # out of $am_try_res loop 2930 fi 2931 # Otherwise, we'll go on to check the next resolution. 2932 fi 2933 done 2934 rm -f conftest.ts? 2935 # (end _am_filesystem_timestamp_resolution) 2936 ;; 2937 esac 2938 fi 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2940 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2941 2942 # This check should not be cached, as it may vary across builds of 2943 # different projects. 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2945 printf %s "checking whether build environment is sane... " >&6; } 2946 # Reject unsafe characters in $srcdir or the absolute working directory 2947 # name. Accept space and tab only in the latter. 2948 am_lf=' 2949 ' 2950 case `pwd` in 2951 *[\\\"\#\$\&\'\`$am_lf]*) 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2953 printf "%s\n" "no" >&6; } 2954 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2955 esac 2956 case $srcdir in 2957 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959 printf "%s\n" "no" >&6; } 2960 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2961 esac 2962 2963 # Do 'set' in a subshell so we don't clobber the current shell's 2964 # arguments. Must try -L first in case configure is actually a 2965 # symlink; some systems play weird games with the mod time of symlinks 2966 # (eg FreeBSD returns the mod time of the symlink's containing 2967 # directory). 2968 am_build_env_is_sane=no 2969 am_has_slept=no 2970 rm -f conftest.file 2971 for am_try in 1 2; do 2972 echo "timestamp, slept: $am_has_slept" > conftest.file 2973 if ( 2974 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2975 if test "$*" = "X"; then 2976 # -L didn't work. 2977 set X `ls -t "$srcdir/configure" conftest.file` 2978 fi 2979 test "$2" = conftest.file 2980 ); then 2981 am_build_env_is_sane=yes 2982 break 2983 fi 2984 # Just in case. 2985 sleep "$am_cv_filesystem_timestamp_resolution" 2986 am_has_slept=yes 2987 done 2988 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2990 printf "%s\n" "$am_build_env_is_sane" >&6; } 2991 if test "$am_build_env_is_sane" = no; then 2992 as_fn_error $? "newly created file is older than distributed files! 2993 Check your system clock" "$LINENO" 5 2994 fi 2995 2996 # If we didn't sleep, we still need to ensure time stamps of config.status and 2997 # generated files are strictly newer. 2998 am_sleep_pid= 2999 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3000 then : 3001 3002 else case e in #( 3003 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3004 am_sleep_pid=$! 3005 ;; 3006 esac 3007 fi 3008 3009 rm -f conftest.file 3010 3011 test "$program_prefix" != NONE && 3012 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3013 # Use a double $ so make ignores it. 3014 test "$program_suffix" != NONE && 3015 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3016 # Double any \ or $. 3017 # By default was 's,x,x', remove it if useless. 3018 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3019 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3020 3021 3022 # Expand $ac_aux_dir to an absolute path. 3023 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3024 3025 3026 if test x"${MISSING+set}" != xset; then 3027 MISSING="\${SHELL} '$am_aux_dir/missing'" 3028 fi 3029 # Use eval to expand $SHELL 3030 if eval "$MISSING --is-lightweight"; then 3031 am_missing_run="$MISSING " 3032 else 3033 am_missing_run= 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3035 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3036 fi 3037 3038 if test x"${install_sh+set}" != xset; then 3039 case $am_aux_dir in 3040 *\ * | *\ *) 3041 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3042 *) 3043 install_sh="\${SHELL} $am_aux_dir/install-sh" 3044 esac 3045 fi 3046 3047 # Installed binaries are usually stripped using 'strip' when the user 3048 # run "make install-strip". However 'strip' might not be the right 3049 # tool to use in cross-compilation environments, therefore Automake 3050 # will honor the 'STRIP' environment variable to overrule this program. 3051 if test "$cross_compiling" != no; then 3052 if test -n "$ac_tool_prefix"; then 3053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3054 set dummy ${ac_tool_prefix}strip; ac_word=$2 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056 printf %s "checking for $ac_word... " >&6; } 3057 if test ${ac_cv_prog_STRIP+y} 3058 then : 3059 printf %s "(cached) " >&6 3060 else case e in #( 3061 e) if test -n "$STRIP"; then 3062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3063 else 3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065 for as_dir in $PATH 3066 do 3067 IFS=$as_save_IFS 3068 case $as_dir in #((( 3069 '') as_dir=./ ;; 3070 */) ;; 3071 *) as_dir=$as_dir/ ;; 3072 esac 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079 done 3080 done 3081 IFS=$as_save_IFS 3082 3083 fi ;; 3084 esac 3085 fi 3086 STRIP=$ac_cv_prog_STRIP 3087 if test -n "$STRIP"; then 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3089 printf "%s\n" "$STRIP" >&6; } 3090 else 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092 printf "%s\n" "no" >&6; } 3093 fi 3094 3095 3096 fi 3097 if test -z "$ac_cv_prog_STRIP"; then 3098 ac_ct_STRIP=$STRIP 3099 # Extract the first word of "strip", so it can be a program name with args. 3100 set dummy strip; ac_word=$2 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102 printf %s "checking for $ac_word... " >&6; } 3103 if test ${ac_cv_prog_ac_ct_STRIP+y} 3104 then : 3105 printf %s "(cached) " >&6 3106 else case e in #( 3107 e) if test -n "$ac_ct_STRIP"; then 3108 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3109 else 3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111 for as_dir in $PATH 3112 do 3113 IFS=$as_save_IFS 3114 case $as_dir in #((( 3115 '') as_dir=./ ;; 3116 */) ;; 3117 *) as_dir=$as_dir/ ;; 3118 esac 3119 for ac_exec_ext in '' $ac_executable_extensions; do 3120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3121 ac_cv_prog_ac_ct_STRIP="strip" 3122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125 done 3126 done 3127 IFS=$as_save_IFS 3128 3129 fi ;; 3130 esac 3131 fi 3132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3133 if test -n "$ac_ct_STRIP"; then 3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3135 printf "%s\n" "$ac_ct_STRIP" >&6; } 3136 else 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3138 printf "%s\n" "no" >&6; } 3139 fi 3140 3141 if test "x$ac_ct_STRIP" = x; then 3142 STRIP=":" 3143 else 3144 case $cross_compiling:$ac_tool_warned in 3145 yes:) 3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3147 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3148 ac_tool_warned=yes ;; 3149 esac 3150 STRIP=$ac_ct_STRIP 3151 fi 3152 else 3153 STRIP="$ac_cv_prog_STRIP" 3154 fi 3155 3156 fi 3157 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3158 3159 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3161 printf %s "checking for a race-free mkdir -p... " >&6; } 3162 if test -z "$MKDIR_P"; then 3163 if test ${ac_cv_path_mkdir+y} 3164 then : 3165 printf %s "(cached) " >&6 3166 else case e in #( 3167 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3169 do 3170 IFS=$as_save_IFS 3171 case $as_dir in #((( 3172 '') as_dir=./ ;; 3173 */) ;; 3174 *) as_dir=$as_dir/ ;; 3175 esac 3176 for ac_prog in mkdir gmkdir; do 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3179 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3180 'mkdir ('*'coreutils) '* | \ 3181 *'BusyBox '* | \ 3182 'mkdir (fileutils) '4.1*) 3183 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3184 break 3;; 3185 esac 3186 done 3187 done 3188 done 3189 IFS=$as_save_IFS 3190 ;; 3191 esac 3192 fi 3193 3194 test -d ./--version && rmdir ./--version 3195 if test ${ac_cv_path_mkdir+y}; then 3196 MKDIR_P="$ac_cv_path_mkdir -p" 3197 else 3198 # As a last resort, use plain mkdir -p, 3199 # in the hope it doesn't have the bugs of ancient mkdir. 3200 MKDIR_P='mkdir -p' 3201 fi 3202 fi 3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3204 printf "%s\n" "$MKDIR_P" >&6; } 3205 3206 for ac_prog in gawk mawk nawk awk 3207 do 3208 # Extract the first word of "$ac_prog", so it can be a program name with args. 3209 set dummy $ac_prog; ac_word=$2 3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211 printf %s "checking for $ac_word... " >&6; } 3212 if test ${ac_cv_prog_AWK+y} 3213 then : 3214 printf %s "(cached) " >&6 3215 else case e in #( 3216 e) if test -n "$AWK"; then 3217 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3218 else 3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220 for as_dir in $PATH 3221 do 3222 IFS=$as_save_IFS 3223 case $as_dir in #((( 3224 '') as_dir=./ ;; 3225 */) ;; 3226 *) as_dir=$as_dir/ ;; 3227 esac 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3230 ac_cv_prog_AWK="$ac_prog" 3231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3232 break 2 3233 fi 3234 done 3235 done 3236 IFS=$as_save_IFS 3237 3238 fi ;; 3239 esac 3240 fi 3241 AWK=$ac_cv_prog_AWK 3242 if test -n "$AWK"; then 3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3244 printf "%s\n" "$AWK" >&6; } 3245 else 3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247 printf "%s\n" "no" >&6; } 3248 fi 3249 3250 3251 test -n "$AWK" && break 3252 done 3253 3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3255 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3256 set x ${MAKE-make} 3257 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3258 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3259 then : 3260 printf %s "(cached) " >&6 3261 else case e in #( 3262 e) cat >conftest.make <<\_ACEOF 3263 SHELL = /bin/sh 3264 all: 3265 @echo '@@@%%%=$(MAKE)=@@@%%%' 3266 _ACEOF 3267 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3268 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3269 *@@@%%%=?*=@@@%%%*) 3270 eval ac_cv_prog_make_${ac_make}_set=yes;; 3271 *) 3272 eval ac_cv_prog_make_${ac_make}_set=no;; 3273 esac 3274 rm -f conftest.make ;; 3275 esac 3276 fi 3277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3279 printf "%s\n" "yes" >&6; } 3280 SET_MAKE= 3281 else 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283 printf "%s\n" "no" >&6; } 3284 SET_MAKE="MAKE=${MAKE-make}" 3285 fi 3286 3287 rm -rf .tst 2>/dev/null 3288 mkdir .tst 2>/dev/null 3289 if test -d .tst; then 3290 am__leading_dot=. 3291 else 3292 am__leading_dot=_ 3293 fi 3294 rmdir .tst 2>/dev/null 3295 3296 AM_DEFAULT_VERBOSITY=1 3297 # Check whether --enable-silent-rules was given. 3298 if test ${enable_silent_rules+y} 3299 then : 3300 enableval=$enable_silent_rules; 3301 fi 3302 3303 am_make=${MAKE-make} 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3305 printf %s "checking whether $am_make supports nested variables... " >&6; } 3306 if test ${am_cv_make_support_nested_variables+y} 3307 then : 3308 printf %s "(cached) " >&6 3309 else case e in #( 3310 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3311 BAR0=false 3312 BAR1=true 3313 V=1 3314 am__doit: 3315 @$(TRUE) 3316 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3317 am_cv_make_support_nested_variables=yes 3318 else 3319 am_cv_make_support_nested_variables=no 3320 fi ;; 3321 esac 3322 fi 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3324 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3325 AM_BACKSLASH='\' 3326 3327 am__rm_f_notfound= 3328 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3329 then : 3330 3331 else case e in #( 3332 e) am__rm_f_notfound='""' ;; 3333 esac 3334 fi 3335 3336 3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3338 printf %s "checking xargs -n works... " >&6; } 3339 if test ${am_cv_xargs_n_works+y} 3340 then : 3341 printf %s "(cached) " >&6 3342 else case e in #( 3343 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3344 3" 3345 then : 3346 am_cv_xargs_n_works=yes 3347 else case e in #( 3348 e) am_cv_xargs_n_works=no ;; 3349 esac 3350 fi ;; 3351 esac 3352 fi 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3354 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3355 if test "$am_cv_xargs_n_works" = yes 3356 then : 3357 am__xargs_n='xargs -n' 3358 else case e in #( 3359 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3360 ;; 3361 esac 3362 fi 3363 3364 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3366 # is not polluted with repeated "-I." 3367 am__isrc=' -I$(srcdir)' 3368 # test to see if srcdir already configured 3369 if test -f $srcdir/config.status; then 3370 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3371 fi 3372 fi 3373 3374 # test whether we have cygpath 3375 if test -z "$CYGPATH_W"; then 3376 if (cygpath --version) >/dev/null 2>/dev/null; then 3377 CYGPATH_W='cygpath -w' 3378 else 3379 CYGPATH_W=echo 3380 fi 3381 fi 3382 3383 3384 # Define the identity of the package. 3385 PACKAGE='xorgproto' 3386 VERSION='2025.1' 3387 3388 3389 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3390 3391 3392 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3393 3394 # Some tools Automake needs. 3395 3396 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3397 3398 3399 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3400 3401 3402 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3403 3404 3405 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3406 3407 3408 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3409 3410 # For better backward compatibility. To be removed once Automake 1.9.x 3411 # dies out for good. For more background, see: 3412 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3413 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3414 mkdir_p='$(MKDIR_P)' 3415 3416 # We need awk for the "check" target (and possibly the TAP driver). The 3417 # system "awk" is bad on some platforms. 3418 # Always define AMTAR for backward compatibility. Yes, it's still used 3419 # in the wild :-( We should find a proper way to deprecate it ... 3420 AMTAR='$${TAR-tar}' 3421 3422 3423 # We'll loop over all known methods to create a tar archive until one works. 3424 _am_tools='gnutar plaintar pax cpio none' 3425 3426 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3427 # There is notably a 21 bits limit for the UID and the GID. In fact, 3428 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3429 # and bug#13588). 3430 am_max_uid=2097151 # 2^21 - 1 3431 am_max_gid=$am_max_uid 3432 # The $UID and $GID variables are not portable, so we need to resort 3433 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3434 # below are definitely unexpected, so allow the users to see them 3435 # (that is, avoid stderr redirection). 3436 am_uid=`id -u || echo unknown` 3437 am_gid=`id -g || echo unknown` 3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3439 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3440 if test x$am_uid = xunknown; then 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3442 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3443 elif test $am_uid -le $am_max_uid; then 3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3445 printf "%s\n" "yes" >&6; } 3446 else 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448 printf "%s\n" "no" >&6; } 3449 _am_tools=none 3450 fi 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3452 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3453 if test x$gm_gid = xunknown; then 3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3455 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3456 elif test $am_gid -le $am_max_gid; then 3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3458 printf "%s\n" "yes" >&6; } 3459 else 3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461 printf "%s\n" "no" >&6; } 3462 _am_tools=none 3463 fi 3464 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3466 printf %s "checking how to create a ustar tar archive... " >&6; } 3467 3468 # Go ahead even if we have the value already cached. We do so because we 3469 # need to set the values for the 'am__tar' and 'am__untar' variables. 3470 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3471 3472 for _am_tool in $_am_tools; do 3473 case $_am_tool in 3474 gnutar) 3475 for _am_tar in tar gnutar gtar; do 3476 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3477 ($_am_tar --version) >&5 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } && break 3481 done 3482 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3483 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3484 am__untar="$_am_tar -xf -" 3485 ;; 3486 plaintar) 3487 # Must skip GNU tar: if it does not support --format= it doesn't create 3488 # ustar tarball either. 3489 (tar --version) >/dev/null 2>&1 && continue 3490 am__tar='tar chf - "$$tardir"' 3491 am__tar_='tar chf - "$tardir"' 3492 am__untar='tar xf -' 3493 ;; 3494 pax) 3495 am__tar='pax -L -x ustar -w "$$tardir"' 3496 am__tar_='pax -L -x ustar -w "$tardir"' 3497 am__untar='pax -r' 3498 ;; 3499 cpio) 3500 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3501 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3502 am__untar='cpio -i -H ustar -d' 3503 ;; 3504 none) 3505 am__tar=false 3506 am__tar_=false 3507 am__untar=false 3508 ;; 3509 esac 3510 3511 # If the value was cached, stop now. We just wanted to have am__tar 3512 # and am__untar set. 3513 test -n "${am_cv_prog_tar_ustar}" && break 3514 3515 # tar/untar a dummy directory, and stop if the command works. 3516 rm -rf conftest.dir 3517 mkdir conftest.dir 3518 echo GrepMe > conftest.dir/file 3519 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3520 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3521 ac_status=$? 3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 (exit $ac_status); } 3524 rm -rf conftest.dir 3525 if test -s conftest.tar; then 3526 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3527 ($am__untar <conftest.tar) >&5 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); } 3531 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3532 (cat conftest.dir/file) >&5 2>&5 3533 ac_status=$? 3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3535 (exit $ac_status); } 3536 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3537 fi 3538 done 3539 rm -rf conftest.dir 3540 3541 if test ${am_cv_prog_tar_ustar+y} 3542 then : 3543 printf %s "(cached) " >&6 3544 else case e in #( 3545 e) am_cv_prog_tar_ustar=$_am_tool ;; 3546 esac 3547 fi 3548 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3550 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3551 3552 3553 3554 3555 3556 # Variables for tags utilities; see am/tags.am 3557 if test -z "$CTAGS"; then 3558 CTAGS=ctags 3559 fi 3560 3561 if test -z "$ETAGS"; then 3562 ETAGS=etags 3563 fi 3564 3565 if test -z "$CSCOPE"; then 3566 CSCOPE=cscope 3567 fi 3568 3569 3570 3571 3572 3573 3574 3575 3576 # Require xorg-macros: XORG_DEFAULT_OPTIONS 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 DEPDIR="${am__leading_dot}deps" 3598 3599 ac_config_commands="$ac_config_commands depfiles" 3600 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3602 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3603 cat > confinc.mk << 'END' 3604 am__doit: 3605 @echo this is the am__doit target >confinc.out 3606 .PHONY: am__doit 3607 END 3608 am__include="#" 3609 am__quote= 3610 # BSD make does it like this. 3611 echo '.include "confinc.mk" # ignored' > confmf.BSD 3612 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3613 echo 'include confinc.mk # ignored' > confmf.GNU 3614 _am_result=no 3615 for s in GNU BSD; do 3616 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3617 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3618 ac_status=$? 3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3620 (exit $ac_status); } 3621 case $?:`cat confinc.out 2>/dev/null` in #( 3622 '0:this is the am__doit target') : 3623 case $s in #( 3624 BSD) : 3625 am__include='.include' am__quote='"' ;; #( 3626 *) : 3627 am__include='include' am__quote='' ;; 3628 esac ;; #( 3629 *) : 3630 ;; 3631 esac 3632 if test "$am__include" != "#"; then 3633 _am_result="yes ($s style)" 3634 break 3635 fi 3636 done 3637 rm -f confinc.* confmf.* 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3639 printf "%s\n" "${_am_result}" >&6; } 3640 3641 # Check whether --enable-dependency-tracking was given. 3642 if test ${enable_dependency_tracking+y} 3643 then : 3644 enableval=$enable_dependency_tracking; 3645 fi 3646 3647 if test "x$enable_dependency_tracking" != xno; then 3648 am_depcomp="$ac_aux_dir/depcomp" 3649 AMDEPBACKSLASH='\' 3650 am__nodep='_no' 3651 fi 3652 if test "x$enable_dependency_tracking" != xno; then 3653 AMDEP_TRUE= 3654 AMDEP_FALSE='#' 3655 else 3656 AMDEP_TRUE='#' 3657 AMDEP_FALSE= 3658 fi 3659 3660 3661 ac_ext=c 3662 ac_cpp='$CPP $CPPFLAGS' 3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3666 if test -n "$ac_tool_prefix"; then 3667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3668 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3670 printf %s "checking for $ac_word... " >&6; } 3671 if test ${ac_cv_prog_CC+y} 3672 then : 3673 printf %s "(cached) " >&6 3674 else case e in #( 3675 e) if test -n "$CC"; then 3676 ac_cv_prog_CC="$CC" # Let the user override the test. 3677 else 3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679 for as_dir in $PATH 3680 do 3681 IFS=$as_save_IFS 3682 case $as_dir in #((( 3683 '') as_dir=./ ;; 3684 */) ;; 3685 *) as_dir=$as_dir/ ;; 3686 esac 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3689 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693 done 3694 done 3695 IFS=$as_save_IFS 3696 3697 fi ;; 3698 esac 3699 fi 3700 CC=$ac_cv_prog_CC 3701 if test -n "$CC"; then 3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3703 printf "%s\n" "$CC" >&6; } 3704 else 3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706 printf "%s\n" "no" >&6; } 3707 fi 3708 3709 3710 fi 3711 if test -z "$ac_cv_prog_CC"; then 3712 ac_ct_CC=$CC 3713 # Extract the first word of "gcc", so it can be a program name with args. 3714 set dummy gcc; ac_word=$2 3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3716 printf %s "checking for $ac_word... " >&6; } 3717 if test ${ac_cv_prog_ac_ct_CC+y} 3718 then : 3719 printf %s "(cached) " >&6 3720 else case e in #( 3721 e) if test -n "$ac_ct_CC"; then 3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3723 else 3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725 for as_dir in $PATH 3726 do 3727 IFS=$as_save_IFS 3728 case $as_dir in #((( 3729 '') as_dir=./ ;; 3730 */) ;; 3731 *) as_dir=$as_dir/ ;; 3732 esac 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_ac_ct_CC="gcc" 3736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739 done 3740 done 3741 IFS=$as_save_IFS 3742 3743 fi ;; 3744 esac 3745 fi 3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3747 if test -n "$ac_ct_CC"; then 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3749 printf "%s\n" "$ac_ct_CC" >&6; } 3750 else 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3752 printf "%s\n" "no" >&6; } 3753 fi 3754 3755 if test "x$ac_ct_CC" = x; then 3756 CC="" 3757 else 3758 case $cross_compiling:$ac_tool_warned in 3759 yes:) 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3761 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3762 ac_tool_warned=yes ;; 3763 esac 3764 CC=$ac_ct_CC 3765 fi 3766 else 3767 CC="$ac_cv_prog_CC" 3768 fi 3769 3770 if test -z "$CC"; then 3771 if test -n "$ac_tool_prefix"; then 3772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3773 set dummy ${ac_tool_prefix}cc; ac_word=$2 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3775 printf %s "checking for $ac_word... " >&6; } 3776 if test ${ac_cv_prog_CC+y} 3777 then : 3778 printf %s "(cached) " >&6 3779 else case e in #( 3780 e) if test -n "$CC"; then 3781 ac_cv_prog_CC="$CC" # Let the user override the test. 3782 else 3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3784 for as_dir in $PATH 3785 do 3786 IFS=$as_save_IFS 3787 case $as_dir in #((( 3788 '') as_dir=./ ;; 3789 */) ;; 3790 *) as_dir=$as_dir/ ;; 3791 esac 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3794 ac_cv_prog_CC="${ac_tool_prefix}cc" 3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3796 break 2 3797 fi 3798 done 3799 done 3800 IFS=$as_save_IFS 3801 3802 fi ;; 3803 esac 3804 fi 3805 CC=$ac_cv_prog_CC 3806 if test -n "$CC"; then 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3808 printf "%s\n" "$CC" >&6; } 3809 else 3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3811 printf "%s\n" "no" >&6; } 3812 fi 3813 3814 3815 fi 3816 fi 3817 if test -z "$CC"; then 3818 # Extract the first word of "cc", so it can be a program name with args. 3819 set dummy cc; ac_word=$2 3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3821 printf %s "checking for $ac_word... " >&6; } 3822 if test ${ac_cv_prog_CC+y} 3823 then : 3824 printf %s "(cached) " >&6 3825 else case e in #( 3826 e) if test -n "$CC"; then 3827 ac_cv_prog_CC="$CC" # Let the user override the test. 3828 else 3829 ac_prog_rejected=no 3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831 for as_dir in $PATH 3832 do 3833 IFS=$as_save_IFS 3834 case $as_dir in #((( 3835 '') as_dir=./ ;; 3836 */) ;; 3837 *) as_dir=$as_dir/ ;; 3838 esac 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3841 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3842 ac_prog_rejected=yes 3843 continue 3844 fi 3845 ac_cv_prog_CC="cc" 3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3847 break 2 3848 fi 3849 done 3850 done 3851 IFS=$as_save_IFS 3852 3853 if test $ac_prog_rejected = yes; then 3854 # We found a bogon in the path, so make sure we never use it. 3855 set dummy $ac_cv_prog_CC 3856 shift 3857 if test $# != 0; then 3858 # We chose a different compiler from the bogus one. 3859 # However, it has the same basename, so the bogon will be chosen 3860 # first if we set CC to just the basename; use the full file name. 3861 shift 3862 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3863 fi 3864 fi 3865 fi ;; 3866 esac 3867 fi 3868 CC=$ac_cv_prog_CC 3869 if test -n "$CC"; then 3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3871 printf "%s\n" "$CC" >&6; } 3872 else 3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3874 printf "%s\n" "no" >&6; } 3875 fi 3876 3877 3878 fi 3879 if test -z "$CC"; then 3880 if test -n "$ac_tool_prefix"; then 3881 for ac_prog in cl.exe 3882 do 3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3886 printf %s "checking for $ac_word... " >&6; } 3887 if test ${ac_cv_prog_CC+y} 3888 then : 3889 printf %s "(cached) " >&6 3890 else case e in #( 3891 e) if test -n "$CC"; then 3892 ac_cv_prog_CC="$CC" # Let the user override the test. 3893 else 3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895 for as_dir in $PATH 3896 do 3897 IFS=$as_save_IFS 3898 case $as_dir in #((( 3899 '') as_dir=./ ;; 3900 */) ;; 3901 *) as_dir=$as_dir/ ;; 3902 esac 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3907 break 2 3908 fi 3909 done 3910 done 3911 IFS=$as_save_IFS 3912 3913 fi ;; 3914 esac 3915 fi 3916 CC=$ac_cv_prog_CC 3917 if test -n "$CC"; then 3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3919 printf "%s\n" "$CC" >&6; } 3920 else 3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3922 printf "%s\n" "no" >&6; } 3923 fi 3924 3925 3926 test -n "$CC" && break 3927 done 3928 fi 3929 if test -z "$CC"; then 3930 ac_ct_CC=$CC 3931 for ac_prog in cl.exe 3932 do 3933 # Extract the first word of "$ac_prog", so it can be a program name with args. 3934 set dummy $ac_prog; ac_word=$2 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3936 printf %s "checking for $ac_word... " >&6; } 3937 if test ${ac_cv_prog_ac_ct_CC+y} 3938 then : 3939 printf %s "(cached) " >&6 3940 else case e in #( 3941 e) if test -n "$ac_ct_CC"; then 3942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3943 else 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945 for as_dir in $PATH 3946 do 3947 IFS=$as_save_IFS 3948 case $as_dir in #((( 3949 '') as_dir=./ ;; 3950 */) ;; 3951 *) as_dir=$as_dir/ ;; 3952 esac 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_ac_ct_CC="$ac_prog" 3956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959 done 3960 done 3961 IFS=$as_save_IFS 3962 3963 fi ;; 3964 esac 3965 fi 3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3967 if test -n "$ac_ct_CC"; then 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3969 printf "%s\n" "$ac_ct_CC" >&6; } 3970 else 3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3972 printf "%s\n" "no" >&6; } 3973 fi 3974 3975 3976 test -n "$ac_ct_CC" && break 3977 done 3978 3979 if test "x$ac_ct_CC" = x; then 3980 CC="" 3981 else 3982 case $cross_compiling:$ac_tool_warned in 3983 yes:) 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3986 ac_tool_warned=yes ;; 3987 esac 3988 CC=$ac_ct_CC 3989 fi 3990 fi 3991 3992 fi 3993 if test -z "$CC"; then 3994 if test -n "$ac_tool_prefix"; then 3995 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3996 set dummy ${ac_tool_prefix}clang; ac_word=$2 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3998 printf %s "checking for $ac_word... " >&6; } 3999 if test ${ac_cv_prog_CC+y} 4000 then : 4001 printf %s "(cached) " >&6 4002 else case e in #( 4003 e) if test -n "$CC"; then 4004 ac_cv_prog_CC="$CC" # Let the user override the test. 4005 else 4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4007 for as_dir in $PATH 4008 do 4009 IFS=$as_save_IFS 4010 case $as_dir in #((( 4011 '') as_dir=./ ;; 4012 */) ;; 4013 *) as_dir=$as_dir/ ;; 4014 esac 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4017 ac_cv_prog_CC="${ac_tool_prefix}clang" 4018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4019 break 2 4020 fi 4021 done 4022 done 4023 IFS=$as_save_IFS 4024 4025 fi ;; 4026 esac 4027 fi 4028 CC=$ac_cv_prog_CC 4029 if test -n "$CC"; then 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4031 printf "%s\n" "$CC" >&6; } 4032 else 4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4034 printf "%s\n" "no" >&6; } 4035 fi 4036 4037 4038 fi 4039 if test -z "$ac_cv_prog_CC"; then 4040 ac_ct_CC=$CC 4041 # Extract the first word of "clang", so it can be a program name with args. 4042 set dummy clang; ac_word=$2 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4044 printf %s "checking for $ac_word... " >&6; } 4045 if test ${ac_cv_prog_ac_ct_CC+y} 4046 then : 4047 printf %s "(cached) " >&6 4048 else case e in #( 4049 e) if test -n "$ac_ct_CC"; then 4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4051 else 4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053 for as_dir in $PATH 4054 do 4055 IFS=$as_save_IFS 4056 case $as_dir in #((( 4057 '') as_dir=./ ;; 4058 */) ;; 4059 *) as_dir=$as_dir/ ;; 4060 esac 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4063 ac_cv_prog_ac_ct_CC="clang" 4064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4065 break 2 4066 fi 4067 done 4068 done 4069 IFS=$as_save_IFS 4070 4071 fi ;; 4072 esac 4073 fi 4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4075 if test -n "$ac_ct_CC"; then 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4077 printf "%s\n" "$ac_ct_CC" >&6; } 4078 else 4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4080 printf "%s\n" "no" >&6; } 4081 fi 4082 4083 if test "x$ac_ct_CC" = x; then 4084 CC="" 4085 else 4086 case $cross_compiling:$ac_tool_warned in 4087 yes:) 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4090 ac_tool_warned=yes ;; 4091 esac 4092 CC=$ac_ct_CC 4093 fi 4094 else 4095 CC="$ac_cv_prog_CC" 4096 fi 4097 4098 fi 4099 4100 4101 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4102 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4103 as_fn_error $? "no acceptable C compiler found in \$PATH 4104 See 'config.log' for more details" "$LINENO" 5; } 4105 4106 # Provide some information about the compiler. 4107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4108 set X $ac_compile 4109 ac_compiler=$2 4110 for ac_option in --version -v -V -qversion -version; do 4111 { { ac_try="$ac_compiler $ac_option >&5" 4112 case "(($ac_try" in 4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4114 *) ac_try_echo=$ac_try;; 4115 esac 4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4117 printf "%s\n" "$ac_try_echo"; } >&5 4118 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4119 ac_status=$? 4120 if test -s conftest.err; then 4121 sed '10a\ 4122 ... rest of stderr output deleted ... 4123 10q' conftest.err >conftest.er1 4124 cat conftest.er1 >&5 4125 fi 4126 rm -f conftest.er1 conftest.err 4127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4128 test $ac_status = 0; } 4129 done 4130 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132 /* end confdefs.h. */ 4133 4134 int 4135 main (void) 4136 { 4137 4138 ; 4139 return 0; 4140 } 4141 _ACEOF 4142 ac_clean_files_save=$ac_clean_files 4143 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4144 # Try to create an executable without -o first, disregard a.out. 4145 # It will help us diagnose broken compilers, and finding out an intuition 4146 # of exeext. 4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4148 printf %s "checking whether the C compiler works... " >&6; } 4149 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4150 4151 # The possible output files: 4152 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4153 4154 ac_rmfiles= 4155 for ac_file in $ac_files 4156 do 4157 case $ac_file in 4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4159 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4160 esac 4161 done 4162 rm -f $ac_rmfiles 4163 4164 if { { ac_try="$ac_link_default" 4165 case "(($ac_try" in 4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4167 *) ac_try_echo=$ac_try;; 4168 esac 4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4170 printf "%s\n" "$ac_try_echo"; } >&5 4171 (eval "$ac_link_default") 2>&5 4172 ac_status=$? 4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4174 test $ac_status = 0; } 4175 then : 4176 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4177 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4178 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4179 # so that the user can short-circuit this test for compilers unknown to 4180 # Autoconf. 4181 for ac_file in $ac_files '' 4182 do 4183 test -f "$ac_file" || continue 4184 case $ac_file in 4185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4186 ;; 4187 [ab].out ) 4188 # We found the default executable, but exeext='' is most 4189 # certainly right. 4190 break;; 4191 *.* ) 4192 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4193 then :; else 4194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4195 fi 4196 # We set ac_cv_exeext here because the later test for it is not 4197 # safe: cross compilers may not add the suffix if given an '-o' 4198 # argument, so we may need to know it at that point already. 4199 # Even if this section looks crufty: it has the advantage of 4200 # actually working. 4201 break;; 4202 * ) 4203 break;; 4204 esac 4205 done 4206 test "$ac_cv_exeext" = no && ac_cv_exeext= 4207 4208 else case e in #( 4209 e) ac_file='' ;; 4210 esac 4211 fi 4212 if test -z "$ac_file" 4213 then : 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215 printf "%s\n" "no" >&6; } 4216 printf "%s\n" "$as_me: failed program was:" >&5 4217 sed 's/^/| /' conftest.$ac_ext >&5 4218 4219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4221 as_fn_error 77 "C compiler cannot create executables 4222 See 'config.log' for more details" "$LINENO" 5; } 4223 else case e in #( 4224 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4225 printf "%s\n" "yes" >&6; } ;; 4226 esac 4227 fi 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4229 printf %s "checking for C compiler default output file name... " >&6; } 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4231 printf "%s\n" "$ac_file" >&6; } 4232 ac_exeext=$ac_cv_exeext 4233 4234 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4235 ac_clean_files=$ac_clean_files_save 4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4237 printf %s "checking for suffix of executables... " >&6; } 4238 if { { ac_try="$ac_link" 4239 case "(($ac_try" in 4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4241 *) ac_try_echo=$ac_try;; 4242 esac 4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4244 printf "%s\n" "$ac_try_echo"; } >&5 4245 (eval "$ac_link") 2>&5 4246 ac_status=$? 4247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4248 test $ac_status = 0; } 4249 then : 4250 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4251 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4252 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4253 # 'rm'. 4254 for ac_file in conftest.exe conftest conftest.*; do 4255 test -f "$ac_file" || continue 4256 case $ac_file in 4257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4259 break;; 4260 * ) break;; 4261 esac 4262 done 4263 else case e in #( 4264 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4265 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4266 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4267 See 'config.log' for more details" "$LINENO" 5; } ;; 4268 esac 4269 fi 4270 rm -f conftest conftest$ac_cv_exeext 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4272 printf "%s\n" "$ac_cv_exeext" >&6; } 4273 4274 rm -f conftest.$ac_ext 4275 EXEEXT=$ac_cv_exeext 4276 ac_exeext=$EXEEXT 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278 /* end confdefs.h. */ 4279 #include <stdio.h> 4280 int 4281 main (void) 4282 { 4283 FILE *f = fopen ("conftest.out", "w"); 4284 if (!f) 4285 return 1; 4286 return ferror (f) || fclose (f) != 0; 4287 4288 ; 4289 return 0; 4290 } 4291 _ACEOF 4292 ac_clean_files="$ac_clean_files conftest.out" 4293 # Check that the compiler produces executables we can run. If not, either 4294 # the compiler is broken, or we cross compile. 4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4296 printf %s "checking whether we are cross compiling... " >&6; } 4297 if test "$cross_compiling" != yes; then 4298 { { ac_try="$ac_link" 4299 case "(($ac_try" in 4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4301 *) ac_try_echo=$ac_try;; 4302 esac 4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4304 printf "%s\n" "$ac_try_echo"; } >&5 4305 (eval "$ac_link") 2>&5 4306 ac_status=$? 4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4308 test $ac_status = 0; } 4309 if { ac_try='./conftest$ac_cv_exeext' 4310 { { case "(($ac_try" in 4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312 *) ac_try_echo=$ac_try;; 4313 esac 4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4315 printf "%s\n" "$ac_try_echo"; } >&5 4316 (eval "$ac_try") 2>&5 4317 ac_status=$? 4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4319 test $ac_status = 0; }; }; then 4320 cross_compiling=no 4321 else 4322 if test "$cross_compiling" = maybe; then 4323 cross_compiling=yes 4324 else 4325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4326 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4327 as_fn_error 77 "cannot run C compiled programs. 4328 If you meant to cross compile, use '--host'. 4329 See 'config.log' for more details" "$LINENO" 5; } 4330 fi 4331 fi 4332 fi 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4334 printf "%s\n" "$cross_compiling" >&6; } 4335 4336 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4337 conftest.o conftest.obj conftest.out 4338 ac_clean_files=$ac_clean_files_save 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4340 printf %s "checking for suffix of object files... " >&6; } 4341 if test ${ac_cv_objext+y} 4342 then : 4343 printf %s "(cached) " >&6 4344 else case e in #( 4345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346 /* end confdefs.h. */ 4347 4348 int 4349 main (void) 4350 { 4351 4352 ; 4353 return 0; 4354 } 4355 _ACEOF 4356 rm -f conftest.o conftest.obj 4357 if { { ac_try="$ac_compile" 4358 case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361 esac 4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4363 printf "%s\n" "$ac_try_echo"; } >&5 4364 (eval "$ac_compile") 2>&5 4365 ac_status=$? 4366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4367 test $ac_status = 0; } 4368 then : 4369 for ac_file in conftest.o conftest.obj conftest.*; do 4370 test -f "$ac_file" || continue; 4371 case $ac_file in 4372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4374 break;; 4375 esac 4376 done 4377 else case e in #( 4378 e) printf "%s\n" "$as_me: failed program was:" >&5 4379 sed 's/^/| /' conftest.$ac_ext >&5 4380 4381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4382 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4383 as_fn_error $? "cannot compute suffix of object files: cannot compile 4384 See 'config.log' for more details" "$LINENO" 5; } ;; 4385 esac 4386 fi 4387 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4388 esac 4389 fi 4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4391 printf "%s\n" "$ac_cv_objext" >&6; } 4392 OBJEXT=$ac_cv_objext 4393 ac_objext=$OBJEXT 4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4395 printf %s "checking whether the compiler supports GNU C... " >&6; } 4396 if test ${ac_cv_c_compiler_gnu+y} 4397 then : 4398 printf %s "(cached) " >&6 4399 else case e in #( 4400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401 /* end confdefs.h. */ 4402 4403 int 4404 main (void) 4405 { 4406 #ifndef __GNUC__ 4407 choke me 4408 #endif 4409 4410 ; 4411 return 0; 4412 } 4413 _ACEOF 4414 if ac_fn_c_try_compile "$LINENO" 4415 then : 4416 ac_compiler_gnu=yes 4417 else case e in #( 4418 e) ac_compiler_gnu=no ;; 4419 esac 4420 fi 4421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4422 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4423 ;; 4424 esac 4425 fi 4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4427 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4428 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4429 4430 if test $ac_compiler_gnu = yes; then 4431 GCC=yes 4432 else 4433 GCC= 4434 fi 4435 ac_test_CFLAGS=${CFLAGS+y} 4436 ac_save_CFLAGS=$CFLAGS 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4438 printf %s "checking whether $CC accepts -g... " >&6; } 4439 if test ${ac_cv_prog_cc_g+y} 4440 then : 4441 printf %s "(cached) " >&6 4442 else case e in #( 4443 e) ac_save_c_werror_flag=$ac_c_werror_flag 4444 ac_c_werror_flag=yes 4445 ac_cv_prog_cc_g=no 4446 CFLAGS="-g" 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448 /* end confdefs.h. */ 4449 4450 int 4451 main (void) 4452 { 4453 4454 ; 4455 return 0; 4456 } 4457 _ACEOF 4458 if ac_fn_c_try_compile "$LINENO" 4459 then : 4460 ac_cv_prog_cc_g=yes 4461 else case e in #( 4462 e) CFLAGS="" 4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464 /* end confdefs.h. */ 4465 4466 int 4467 main (void) 4468 { 4469 4470 ; 4471 return 0; 4472 } 4473 _ACEOF 4474 if ac_fn_c_try_compile "$LINENO" 4475 then : 4476 4477 else case e in #( 4478 e) ac_c_werror_flag=$ac_save_c_werror_flag 4479 CFLAGS="-g" 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481 /* end confdefs.h. */ 4482 4483 int 4484 main (void) 4485 { 4486 4487 ; 4488 return 0; 4489 } 4490 _ACEOF 4491 if ac_fn_c_try_compile "$LINENO" 4492 then : 4493 ac_cv_prog_cc_g=yes 4494 fi 4495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4496 esac 4497 fi 4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4499 esac 4500 fi 4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4502 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4503 esac 4504 fi 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4506 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4507 if test $ac_test_CFLAGS; then 4508 CFLAGS=$ac_save_CFLAGS 4509 elif test $ac_cv_prog_cc_g = yes; then 4510 if test "$GCC" = yes; then 4511 CFLAGS="-g -O2" 4512 else 4513 CFLAGS="-g" 4514 fi 4515 else 4516 if test "$GCC" = yes; then 4517 CFLAGS="-O2" 4518 else 4519 CFLAGS= 4520 fi 4521 fi 4522 ac_prog_cc_stdc=no 4523 if test x$ac_prog_cc_stdc = xno 4524 then : 4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4526 printf %s "checking for $CC option to enable C11 features... " >&6; } 4527 if test ${ac_cv_prog_cc_c11+y} 4528 then : 4529 printf %s "(cached) " >&6 4530 else case e in #( 4531 e) ac_cv_prog_cc_c11=no 4532 ac_save_CC=$CC 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534 /* end confdefs.h. */ 4535 $ac_c_conftest_c11_program 4536 _ACEOF 4537 for ac_arg in '' -std=gnu11 4538 do 4539 CC="$ac_save_CC $ac_arg" 4540 if ac_fn_c_try_compile "$LINENO" 4541 then : 4542 ac_cv_prog_cc_c11=$ac_arg 4543 fi 4544 rm -f core conftest.err conftest.$ac_objext conftest.beam 4545 test "x$ac_cv_prog_cc_c11" != "xno" && break 4546 done 4547 rm -f conftest.$ac_ext 4548 CC=$ac_save_CC ;; 4549 esac 4550 fi 4551 4552 if test "x$ac_cv_prog_cc_c11" = xno 4553 then : 4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4555 printf "%s\n" "unsupported" >&6; } 4556 else case e in #( 4557 e) if test "x$ac_cv_prog_cc_c11" = x 4558 then : 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4560 printf "%s\n" "none needed" >&6; } 4561 else case e in #( 4562 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4563 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4564 CC="$CC $ac_cv_prog_cc_c11" ;; 4565 esac 4566 fi 4567 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4568 ac_prog_cc_stdc=c11 ;; 4569 esac 4570 fi 4571 fi 4572 if test x$ac_prog_cc_stdc = xno 4573 then : 4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4575 printf %s "checking for $CC option to enable C99 features... " >&6; } 4576 if test ${ac_cv_prog_cc_c99+y} 4577 then : 4578 printf %s "(cached) " >&6 4579 else case e in #( 4580 e) ac_cv_prog_cc_c99=no 4581 ac_save_CC=$CC 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583 /* end confdefs.h. */ 4584 $ac_c_conftest_c99_program 4585 _ACEOF 4586 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4587 do 4588 CC="$ac_save_CC $ac_arg" 4589 if ac_fn_c_try_compile "$LINENO" 4590 then : 4591 ac_cv_prog_cc_c99=$ac_arg 4592 fi 4593 rm -f core conftest.err conftest.$ac_objext conftest.beam 4594 test "x$ac_cv_prog_cc_c99" != "xno" && break 4595 done 4596 rm -f conftest.$ac_ext 4597 CC=$ac_save_CC ;; 4598 esac 4599 fi 4600 4601 if test "x$ac_cv_prog_cc_c99" = xno 4602 then : 4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4604 printf "%s\n" "unsupported" >&6; } 4605 else case e in #( 4606 e) if test "x$ac_cv_prog_cc_c99" = x 4607 then : 4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4609 printf "%s\n" "none needed" >&6; } 4610 else case e in #( 4611 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4612 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4613 CC="$CC $ac_cv_prog_cc_c99" ;; 4614 esac 4615 fi 4616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4617 ac_prog_cc_stdc=c99 ;; 4618 esac 4619 fi 4620 fi 4621 if test x$ac_prog_cc_stdc = xno 4622 then : 4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4624 printf %s "checking for $CC option to enable C89 features... " >&6; } 4625 if test ${ac_cv_prog_cc_c89+y} 4626 then : 4627 printf %s "(cached) " >&6 4628 else case e in #( 4629 e) ac_cv_prog_cc_c89=no 4630 ac_save_CC=$CC 4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4632 /* end confdefs.h. */ 4633 $ac_c_conftest_c89_program 4634 _ACEOF 4635 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4636 do 4637 CC="$ac_save_CC $ac_arg" 4638 if ac_fn_c_try_compile "$LINENO" 4639 then : 4640 ac_cv_prog_cc_c89=$ac_arg 4641 fi 4642 rm -f core conftest.err conftest.$ac_objext conftest.beam 4643 test "x$ac_cv_prog_cc_c89" != "xno" && break 4644 done 4645 rm -f conftest.$ac_ext 4646 CC=$ac_save_CC ;; 4647 esac 4648 fi 4649 4650 if test "x$ac_cv_prog_cc_c89" = xno 4651 then : 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4653 printf "%s\n" "unsupported" >&6; } 4654 else case e in #( 4655 e) if test "x$ac_cv_prog_cc_c89" = x 4656 then : 4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4658 printf "%s\n" "none needed" >&6; } 4659 else case e in #( 4660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4661 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4662 CC="$CC $ac_cv_prog_cc_c89" ;; 4663 esac 4664 fi 4665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4666 ac_prog_cc_stdc=c89 ;; 4667 esac 4668 fi 4669 fi 4670 4671 ac_ext=c 4672 ac_cpp='$CPP $CPPFLAGS' 4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4676 4677 4678 ac_ext=c 4679 ac_cpp='$CPP $CPPFLAGS' 4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4684 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4685 if test ${am_cv_prog_cc_c_o+y} 4686 then : 4687 printf %s "(cached) " >&6 4688 else case e in #( 4689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690 /* end confdefs.h. */ 4691 4692 int 4693 main (void) 4694 { 4695 4696 ; 4697 return 0; 4698 } 4699 _ACEOF 4700 # Make sure it works both with $CC and with simple cc. 4701 # Following AC_PROG_CC_C_O, we do the test twice because some 4702 # compilers refuse to overwrite an existing .o file with -o, 4703 # though they will create one. 4704 am_cv_prog_cc_c_o=yes 4705 for am_i in 1 2; do 4706 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4707 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4708 ac_status=$? 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); } \ 4711 && test -f conftest2.$ac_objext; then 4712 : OK 4713 else 4714 am_cv_prog_cc_c_o=no 4715 break 4716 fi 4717 done 4718 # aligned with autoconf, so not including core; see bug#72225. 4719 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4720 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4721 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4722 unset am_i ;; 4723 esac 4724 fi 4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4726 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4727 if test "$am_cv_prog_cc_c_o" != yes; then 4728 # Losing compiler, so override with the script. 4729 # FIXME: It is wrong to rewrite CC. 4730 # But if we don't then we get into trouble of one sort or another. 4731 # A longer-term fix would be to have automake use am__CC in this case, 4732 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4733 CC="$am_aux_dir/compile $CC" 4734 fi 4735 ac_ext=c 4736 ac_cpp='$CPP $CPPFLAGS' 4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4740 4741 4742 depcc="$CC" am_compiler_list= 4743 4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4745 printf %s "checking dependency style of $depcc... " >&6; } 4746 if test ${am_cv_CC_dependencies_compiler_type+y} 4747 then : 4748 printf %s "(cached) " >&6 4749 else case e in #( 4750 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4751 # We make a subdir and do the tests there. Otherwise we can end up 4752 # making bogus files that we don't know about and never remove. For 4753 # instance it was reported that on HP-UX the gcc test will end up 4754 # making a dummy file named 'D' -- because '-MD' means "put the output 4755 # in D". 4756 rm -rf conftest.dir 4757 mkdir conftest.dir 4758 # Copy depcomp to subdir because otherwise we won't find it if we're 4759 # using a relative directory. 4760 cp "$am_depcomp" conftest.dir 4761 cd conftest.dir 4762 # We will build objects and dependencies in a subdirectory because 4763 # it helps to detect inapplicable dependency modes. For instance 4764 # both Tru64's cc and ICC support -MD to output dependencies as a 4765 # side effect of compilation, but ICC will put the dependencies in 4766 # the current directory while Tru64 will put them in the object 4767 # directory. 4768 mkdir sub 4769 4770 am_cv_CC_dependencies_compiler_type=none 4771 if test "$am_compiler_list" = ""; then 4772 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4773 fi 4774 am__universal=false 4775 case " $depcc " in #( 4776 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4777 esac 4778 4779 for depmode in $am_compiler_list; do 4780 # Setup a source with many dependencies, because some compilers 4781 # like to wrap large dependency lists on column 80 (with \), and 4782 # we should not choose a depcomp mode which is confused by this. 4783 # 4784 # We need to recreate these files for each test, as the compiler may 4785 # overwrite some of them when testing with obscure command lines. 4786 # This happens at least with the AIX C compiler. 4787 : > sub/conftest.c 4788 for i in 1 2 3 4 5 6; do 4789 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4790 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4791 # Solaris 10 /bin/sh. 4792 echo '/* dummy */' > sub/conftst$i.h 4793 done 4794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4795 4796 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4797 # mode. It turns out that the SunPro C++ compiler does not properly 4798 # handle '-M -o', and we need to detect this. Also, some Intel 4799 # versions had trouble with output in subdirs. 4800 am__obj=sub/conftest.${OBJEXT-o} 4801 am__minus_obj="-o $am__obj" 4802 case $depmode in 4803 gcc) 4804 # This depmode causes a compiler race in universal mode. 4805 test "$am__universal" = false || continue 4806 ;; 4807 nosideeffect) 4808 # After this tag, mechanisms are not by side-effect, so they'll 4809 # only be used when explicitly requested. 4810 if test "x$enable_dependency_tracking" = xyes; then 4811 continue 4812 else 4813 break 4814 fi 4815 ;; 4816 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4817 # This compiler won't grok '-c -o', but also, the minuso test has 4818 # not run yet. These depmodes are late enough in the game, and 4819 # so weak that their functioning should not be impacted. 4820 am__obj=conftest.${OBJEXT-o} 4821 am__minus_obj= 4822 ;; 4823 none) break ;; 4824 esac 4825 if depmode=$depmode \ 4826 source=sub/conftest.c object=$am__obj \ 4827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4828 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4829 >/dev/null 2>conftest.err && 4830 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4832 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4834 # icc doesn't choke on unknown options, it will just issue warnings 4835 # or remarks (even with -Werror). So we grep stderr for any message 4836 # that says an option was ignored or not supported. 4837 # When given -MP, icc 7.0 and 7.1 complain thus: 4838 # icc: Command line warning: ignoring option '-M'; no argument required 4839 # The diagnosis changed in icc 8.0: 4840 # icc: Command line remark: option '-MP' not supported 4841 if (grep 'ignoring option' conftest.err || 4842 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4843 am_cv_CC_dependencies_compiler_type=$depmode 4844 break 4845 fi 4846 fi 4847 done 4848 4849 cd .. 4850 rm -rf conftest.dir 4851 else 4852 am_cv_CC_dependencies_compiler_type=none 4853 fi 4854 ;; 4855 esac 4856 fi 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4858 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4860 4861 if 4862 test "x$enable_dependency_tracking" != xno \ 4863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4864 am__fastdepCC_TRUE= 4865 am__fastdepCC_FALSE='#' 4866 else 4867 am__fastdepCC_TRUE='#' 4868 am__fastdepCC_FALSE= 4869 fi 4870 4871 4872 4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4874 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4875 if test ${ac_cv_c_undeclared_builtin_options+y} 4876 then : 4877 printf %s "(cached) " >&6 4878 else case e in #( 4879 e) ac_save_CFLAGS=$CFLAGS 4880 ac_cv_c_undeclared_builtin_options='cannot detect' 4881 for ac_arg in '' -fno-builtin; do 4882 CFLAGS="$ac_save_CFLAGS $ac_arg" 4883 # This test program should *not* compile successfully. 4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4885 /* end confdefs.h. */ 4886 4887 int 4888 main (void) 4889 { 4890 (void) strchr; 4891 ; 4892 return 0; 4893 } 4894 _ACEOF 4895 if ac_fn_c_try_compile "$LINENO" 4896 then : 4897 4898 else case e in #( 4899 e) # This test program should compile successfully. 4900 # No library function is consistently available on 4901 # freestanding implementations, so test against a dummy 4902 # declaration. Include always-available headers on the 4903 # off chance that they somehow elicit warnings. 4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4905 /* end confdefs.h. */ 4906 #include <float.h> 4907 #include <limits.h> 4908 #include <stdarg.h> 4909 #include <stddef.h> 4910 extern void ac_decl (int, char *); 4911 4912 int 4913 main (void) 4914 { 4915 (void) ac_decl (0, (char *) 0); 4916 (void) ac_decl; 4917 4918 ; 4919 return 0; 4920 } 4921 _ACEOF 4922 if ac_fn_c_try_compile "$LINENO" 4923 then : 4924 if test x"$ac_arg" = x 4925 then : 4926 ac_cv_c_undeclared_builtin_options='none needed' 4927 else case e in #( 4928 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4929 esac 4930 fi 4931 break 4932 fi 4933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4934 esac 4935 fi 4936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4937 done 4938 CFLAGS=$ac_save_CFLAGS 4939 ;; 4940 esac 4941 fi 4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4943 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4944 case $ac_cv_c_undeclared_builtin_options in #( 4945 'cannot detect') : 4946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4947 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4948 as_fn_error $? "cannot make $CC report undeclared builtins 4949 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4950 'none needed') : 4951 ac_c_undeclared_builtin_options='' ;; #( 4952 *) : 4953 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4954 esac 4955 4956 ac_header= ac_cache= 4957 for ac_item in $ac_header_c_list 4958 do 4959 if test $ac_cache; then 4960 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4961 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4962 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4963 fi 4964 ac_header= ac_cache= 4965 elif test $ac_header; then 4966 ac_cache=$ac_item 4967 else 4968 ac_header=$ac_item 4969 fi 4970 done 4971 4972 4973 4974 4975 4976 4977 4978 4979 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4980 then : 4981 4982 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4983 4984 fi 4985 4986 4987 4988 4989 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4990 if test "x$ac_cv_have_decl___clang__" = xyes 4991 then : 4992 CLANGCC="yes" 4993 else case e in #( 4994 e) CLANGCC="no" ;; 4995 esac 4996 fi 4997 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4998 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4999 then : 5000 INTELCC="yes" 5001 else case e in #( 5002 e) INTELCC="no" ;; 5003 esac 5004 fi 5005 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5006 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5007 then : 5008 SUNCC="yes" 5009 else case e in #( 5010 e) SUNCC="no" ;; 5011 esac 5012 fi 5013 5014 5015 5016 5017 5018 5019 5020 5021 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5022 if test -n "$ac_tool_prefix"; then 5023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5024 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5026 printf %s "checking for $ac_word... " >&6; } 5027 if test ${ac_cv_path_PKG_CONFIG+y} 5028 then : 5029 printf %s "(cached) " >&6 5030 else case e in #( 5031 e) case $PKG_CONFIG in 5032 [\\/]* | ?:[\\/]*) 5033 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5034 ;; 5035 *) 5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5037 for as_dir in $PATH 5038 do 5039 IFS=$as_save_IFS 5040 case $as_dir in #((( 5041 '') as_dir=./ ;; 5042 */) ;; 5043 *) as_dir=$as_dir/ ;; 5044 esac 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5047 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5049 break 2 5050 fi 5051 done 5052 done 5053 IFS=$as_save_IFS 5054 5055 ;; 5056 esac ;; 5057 esac 5058 fi 5059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5060 if test -n "$PKG_CONFIG"; then 5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5062 printf "%s\n" "$PKG_CONFIG" >&6; } 5063 else 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5065 printf "%s\n" "no" >&6; } 5066 fi 5067 5068 5069 fi 5070 if test -z "$ac_cv_path_PKG_CONFIG"; then 5071 ac_pt_PKG_CONFIG=$PKG_CONFIG 5072 # Extract the first word of "pkg-config", so it can be a program name with args. 5073 set dummy pkg-config; ac_word=$2 5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5075 printf %s "checking for $ac_word... " >&6; } 5076 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5077 then : 5078 printf %s "(cached) " >&6 5079 else case e in #( 5080 e) case $ac_pt_PKG_CONFIG in 5081 [\\/]* | ?:[\\/]*) 5082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5083 ;; 5084 *) 5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086 for as_dir in $PATH 5087 do 5088 IFS=$as_save_IFS 5089 case $as_dir in #((( 5090 '') as_dir=./ ;; 5091 */) ;; 5092 *) as_dir=$as_dir/ ;; 5093 esac 5094 for ac_exec_ext in '' $ac_executable_extensions; do 5095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5096 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5098 break 2 5099 fi 5100 done 5101 done 5102 IFS=$as_save_IFS 5103 5104 ;; 5105 esac ;; 5106 esac 5107 fi 5108 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5109 if test -n "$ac_pt_PKG_CONFIG"; then 5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5111 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5112 else 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5114 printf "%s\n" "no" >&6; } 5115 fi 5116 5117 if test "x$ac_pt_PKG_CONFIG" = x; then 5118 PKG_CONFIG="" 5119 else 5120 case $cross_compiling:$ac_tool_warned in 5121 yes:) 5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5124 ac_tool_warned=yes ;; 5125 esac 5126 PKG_CONFIG=$ac_pt_PKG_CONFIG 5127 fi 5128 else 5129 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5130 fi 5131 5132 fi 5133 if test -n "$PKG_CONFIG"; then 5134 _pkg_min_version=0.9.0 5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5136 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5137 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5139 printf "%s\n" "yes" >&6; } 5140 else 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5142 printf "%s\n" "no" >&6; } 5143 PKG_CONFIG="" 5144 fi 5145 fi 5146 if test -z "$PKG_CONFIG"; then 5147 as_fn_error $? "pkg-config not found" "$LINENO" 5 5148 fi 5149 5150 5151 # Make sure we can run config.sub. 5152 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5153 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5154 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5156 printf %s "checking build system type... " >&6; } 5157 if test ${ac_cv_build+y} 5158 then : 5159 printf %s "(cached) " >&6 5160 else case e in #( 5161 e) ac_build_alias=$build_alias 5162 test "x$ac_build_alias" = x && 5163 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5164 test "x$ac_build_alias" = x && 5165 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5166 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5167 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5168 ;; 5169 esac 5170 fi 5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5172 printf "%s\n" "$ac_cv_build" >&6; } 5173 case $ac_cv_build in 5174 *-*-*) ;; 5175 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5176 esac 5177 build=$ac_cv_build 5178 ac_save_IFS=$IFS; IFS='-' 5179 set x $ac_cv_build 5180 shift 5181 build_cpu=$1 5182 build_vendor=$2 5183 shift; shift 5184 # Remember, the first character of IFS is used to create $*, 5185 # except with old shells: 5186 build_os=$* 5187 IFS=$ac_save_IFS 5188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5189 5190 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5192 printf %s "checking host system type... " >&6; } 5193 if test ${ac_cv_host+y} 5194 then : 5195 printf %s "(cached) " >&6 5196 else case e in #( 5197 e) if test "x$host_alias" = x; then 5198 ac_cv_host=$ac_cv_build 5199 else 5200 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5201 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5202 fi 5203 ;; 5204 esac 5205 fi 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5207 printf "%s\n" "$ac_cv_host" >&6; } 5208 case $ac_cv_host in 5209 *-*-*) ;; 5210 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5211 esac 5212 host=$ac_cv_host 5213 ac_save_IFS=$IFS; IFS='-' 5214 set x $ac_cv_host 5215 shift 5216 host_cpu=$1 5217 host_vendor=$2 5218 shift; shift 5219 # Remember, the first character of IFS is used to create $*, 5220 # except with old shells: 5221 host_os=$* 5222 IFS=$ac_save_IFS 5223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5224 5225 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5227 printf %s "checking for a sed that does not truncate output... " >&6; } 5228 if test ${ac_cv_path_SED+y} 5229 then : 5230 printf %s "(cached) " >&6 5231 else case e in #( 5232 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5233 for ac_i in 1 2 3 4 5 6 7; do 5234 ac_script="$ac_script$as_nl$ac_script" 5235 done 5236 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5237 { ac_script=; unset ac_script;} 5238 if test -z "$SED"; then 5239 ac_path_SED_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242 for as_dir in $PATH 5243 do 5244 IFS=$as_save_IFS 5245 case $as_dir in #((( 5246 '') as_dir=./ ;; 5247 */) ;; 5248 *) as_dir=$as_dir/ ;; 5249 esac 5250 for ac_prog in sed gsed 5251 do 5252 for ac_exec_ext in '' $ac_executable_extensions; do 5253 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5254 as_fn_executable_p "$ac_path_SED" || continue 5255 # Check for GNU ac_path_SED and select it if it is found. 5256 # Check for GNU $ac_path_SED 5257 case `"$ac_path_SED" --version 2>&1` in #( 5258 *GNU*) 5259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5260 #( 5261 *) 5262 ac_count=0 5263 printf %s 0123456789 >"conftest.in" 5264 while : 5265 do 5266 cat "conftest.in" "conftest.in" >"conftest.tmp" 5267 mv "conftest.tmp" "conftest.in" 5268 cp "conftest.in" "conftest.nl" 5269 printf "%s\n" '' >> "conftest.nl" 5270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5272 as_fn_arith $ac_count + 1 && ac_count=$as_val 5273 if test $ac_count -gt ${ac_path_SED_max-0}; then 5274 # Best one so far, save it but keep looking for a better one 5275 ac_cv_path_SED="$ac_path_SED" 5276 ac_path_SED_max=$ac_count 5277 fi 5278 # 10*(2^10) chars as input seems more than enough 5279 test $ac_count -gt 10 && break 5280 done 5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5282 esac 5283 5284 $ac_path_SED_found && break 3 5285 done 5286 done 5287 done 5288 IFS=$as_save_IFS 5289 if test -z "$ac_cv_path_SED"; then 5290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5291 fi 5292 else 5293 ac_cv_path_SED=$SED 5294 fi 5295 ;; 5296 esac 5297 fi 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5299 printf "%s\n" "$ac_cv_path_SED" >&6; } 5300 SED="$ac_cv_path_SED" 5301 rm -f conftest.sed 5302 5303 5304 5305 5306 5307 5308 # Check whether --enable-selective-werror was given. 5309 if test ${enable_selective_werror+y} 5310 then : 5311 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5312 else case e in #( 5313 e) SELECTIVE_WERROR=yes ;; 5314 esac 5315 fi 5316 5317 5318 5319 5320 5321 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5322 if test "x$SUNCC" = "xyes"; then 5323 BASE_CFLAGS="-v" 5324 else 5325 BASE_CFLAGS="" 5326 fi 5327 5328 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 xorg_testset_save_CFLAGS="$CFLAGS" 5343 5344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5349 then : 5350 printf %s "(cached) " >&6 5351 else case e in #( 5352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353 /* end confdefs.h. */ 5354 int i; 5355 _ACEOF 5356 if ac_fn_c_try_compile "$LINENO" 5357 then : 5358 xorg_cv_cc_flag_unknown_warning_option=yes 5359 else case e in #( 5360 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5361 esac 5362 fi 5363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5364 esac 5365 fi 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5369 CFLAGS="$xorg_testset_save_CFLAGS" 5370 fi 5371 5372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5375 fi 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5380 then : 5381 printf %s "(cached) " >&6 5382 else case e in #( 5383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384 /* end confdefs.h. */ 5385 int i; 5386 _ACEOF 5387 if ac_fn_c_try_compile "$LINENO" 5388 then : 5389 xorg_cv_cc_flag_unused_command_line_argument=yes 5390 else case e in #( 5391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5392 esac 5393 fi 5394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5395 esac 5396 fi 5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5400 CFLAGS="$xorg_testset_save_CFLAGS" 5401 fi 5402 5403 found="no" 5404 5405 if test $found = "no" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5412 fi 5413 5414 CFLAGS="$CFLAGS -Wall" 5415 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5417 printf %s "checking if $CC supports -Wall... " >&6; } 5418 cacheid=xorg_cv_cc_flag__Wall 5419 if eval test \${$cacheid+y} 5420 then : 5421 printf %s "(cached) " >&6 5422 else case e in #( 5423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424 /* end confdefs.h. */ 5425 int i; 5426 int 5427 main (void) 5428 { 5429 5430 ; 5431 return 0; 5432 } 5433 _ACEOF 5434 if ac_fn_c_try_link "$LINENO" 5435 then : 5436 eval $cacheid=yes 5437 else case e in #( 5438 e) eval $cacheid=no ;; 5439 esac 5440 fi 5441 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5442 conftest$ac_exeext conftest.$ac_ext ;; 5443 esac 5444 fi 5445 5446 5447 CFLAGS="$xorg_testset_save_CFLAGS" 5448 5449 eval supported=\$$cacheid 5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5451 printf "%s\n" "$supported" >&6; } 5452 if test "$supported" = "yes" ; then 5453 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5454 found="yes" 5455 fi 5456 fi 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 xorg_testset_save_CFLAGS="$CFLAGS" 5473 5474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5478 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5479 then : 5480 printf %s "(cached) " >&6 5481 else case e in #( 5482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5483 /* end confdefs.h. */ 5484 int i; 5485 _ACEOF 5486 if ac_fn_c_try_compile "$LINENO" 5487 then : 5488 xorg_cv_cc_flag_unknown_warning_option=yes 5489 else case e in #( 5490 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5491 esac 5492 fi 5493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5494 esac 5495 fi 5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5499 CFLAGS="$xorg_testset_save_CFLAGS" 5500 fi 5501 5502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 fi 5506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5510 then : 5511 printf %s "(cached) " >&6 5512 else case e in #( 5513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5514 /* end confdefs.h. */ 5515 int i; 5516 _ACEOF 5517 if ac_fn_c_try_compile "$LINENO" 5518 then : 5519 xorg_cv_cc_flag_unused_command_line_argument=yes 5520 else case e in #( 5521 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5522 esac 5523 fi 5524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5525 esac 5526 fi 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5530 CFLAGS="$xorg_testset_save_CFLAGS" 5531 fi 5532 5533 found="no" 5534 5535 if test $found = "no" ; then 5536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 fi 5539 5540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5542 fi 5543 5544 CFLAGS="$CFLAGS -Wpointer-arith" 5545 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5547 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5548 cacheid=xorg_cv_cc_flag__Wpointer_arith 5549 if eval test \${$cacheid+y} 5550 then : 5551 printf %s "(cached) " >&6 5552 else case e in #( 5553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554 /* end confdefs.h. */ 5555 int i; 5556 int 5557 main (void) 5558 { 5559 5560 ; 5561 return 0; 5562 } 5563 _ACEOF 5564 if ac_fn_c_try_link "$LINENO" 5565 then : 5566 eval $cacheid=yes 5567 else case e in #( 5568 e) eval $cacheid=no ;; 5569 esac 5570 fi 5571 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5572 conftest$ac_exeext conftest.$ac_ext ;; 5573 esac 5574 fi 5575 5576 5577 CFLAGS="$xorg_testset_save_CFLAGS" 5578 5579 eval supported=\$$cacheid 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5581 printf "%s\n" "$supported" >&6; } 5582 if test "$supported" = "yes" ; then 5583 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5584 found="yes" 5585 fi 5586 fi 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 xorg_testset_save_CFLAGS="$CFLAGS" 5603 5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5608 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5609 then : 5610 printf %s "(cached) " >&6 5611 else case e in #( 5612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613 /* end confdefs.h. */ 5614 int i; 5615 _ACEOF 5616 if ac_fn_c_try_compile "$LINENO" 5617 then : 5618 xorg_cv_cc_flag_unknown_warning_option=yes 5619 else case e in #( 5620 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5621 esac 5622 fi 5623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5624 esac 5625 fi 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5629 CFLAGS="$xorg_testset_save_CFLAGS" 5630 fi 5631 5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5635 fi 5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5640 then : 5641 printf %s "(cached) " >&6 5642 else case e in #( 5643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644 /* end confdefs.h. */ 5645 int i; 5646 _ACEOF 5647 if ac_fn_c_try_compile "$LINENO" 5648 then : 5649 xorg_cv_cc_flag_unused_command_line_argument=yes 5650 else case e in #( 5651 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5652 esac 5653 fi 5654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5655 esac 5656 fi 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5658 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5660 CFLAGS="$xorg_testset_save_CFLAGS" 5661 fi 5662 5663 found="no" 5664 5665 if test $found = "no" ; then 5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5668 fi 5669 5670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5672 fi 5673 5674 CFLAGS="$CFLAGS -Wmissing-declarations" 5675 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5677 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5678 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5679 if eval test \${$cacheid+y} 5680 then : 5681 printf %s "(cached) " >&6 5682 else case e in #( 5683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684 /* end confdefs.h. */ 5685 int i; 5686 int 5687 main (void) 5688 { 5689 5690 ; 5691 return 0; 5692 } 5693 _ACEOF 5694 if ac_fn_c_try_link "$LINENO" 5695 then : 5696 eval $cacheid=yes 5697 else case e in #( 5698 e) eval $cacheid=no ;; 5699 esac 5700 fi 5701 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5702 conftest$ac_exeext conftest.$ac_ext ;; 5703 esac 5704 fi 5705 5706 5707 CFLAGS="$xorg_testset_save_CFLAGS" 5708 5709 eval supported=\$$cacheid 5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5711 printf "%s\n" "$supported" >&6; } 5712 if test "$supported" = "yes" ; then 5713 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5714 found="yes" 5715 fi 5716 fi 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 xorg_testset_save_CFLAGS="$CFLAGS" 5733 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5737 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5738 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5739 then : 5740 printf %s "(cached) " >&6 5741 else case e in #( 5742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743 /* end confdefs.h. */ 5744 int i; 5745 _ACEOF 5746 if ac_fn_c_try_compile "$LINENO" 5747 then : 5748 xorg_cv_cc_flag_unknown_warning_option=yes 5749 else case e in #( 5750 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5751 esac 5752 fi 5753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5754 esac 5755 fi 5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760 fi 5761 5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5770 then : 5771 printf %s "(cached) " >&6 5772 else case e in #( 5773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774 /* end confdefs.h. */ 5775 int i; 5776 _ACEOF 5777 if ac_fn_c_try_compile "$LINENO" 5778 then : 5779 xorg_cv_cc_flag_unused_command_line_argument=yes 5780 else case e in #( 5781 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5782 esac 5783 fi 5784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5785 esac 5786 fi 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5788 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791 fi 5792 5793 found="no" 5794 5795 if test $found = "no" ; then 5796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 fi 5799 5800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5802 fi 5803 5804 CFLAGS="$CFLAGS -Wformat=2" 5805 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5807 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5808 cacheid=xorg_cv_cc_flag__Wformat_2 5809 if eval test \${$cacheid+y} 5810 then : 5811 printf %s "(cached) " >&6 5812 else case e in #( 5813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814 /* end confdefs.h. */ 5815 int i; 5816 int 5817 main (void) 5818 { 5819 5820 ; 5821 return 0; 5822 } 5823 _ACEOF 5824 if ac_fn_c_try_link "$LINENO" 5825 then : 5826 eval $cacheid=yes 5827 else case e in #( 5828 e) eval $cacheid=no ;; 5829 esac 5830 fi 5831 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5832 conftest$ac_exeext conftest.$ac_ext ;; 5833 esac 5834 fi 5835 5836 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838 5839 eval supported=\$$cacheid 5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5841 printf "%s\n" "$supported" >&6; } 5842 if test "$supported" = "yes" ; then 5843 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5844 found="yes" 5845 fi 5846 fi 5847 5848 if test $found = "no" ; then 5849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5851 fi 5852 5853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 fi 5856 5857 CFLAGS="$CFLAGS -Wformat" 5858 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5860 printf %s "checking if $CC supports -Wformat... " >&6; } 5861 cacheid=xorg_cv_cc_flag__Wformat 5862 if eval test \${$cacheid+y} 5863 then : 5864 printf %s "(cached) " >&6 5865 else case e in #( 5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867 /* end confdefs.h. */ 5868 int i; 5869 int 5870 main (void) 5871 { 5872 5873 ; 5874 return 0; 5875 } 5876 _ACEOF 5877 if ac_fn_c_try_link "$LINENO" 5878 then : 5879 eval $cacheid=yes 5880 else case e in #( 5881 e) eval $cacheid=no ;; 5882 esac 5883 fi 5884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5885 conftest$ac_exeext conftest.$ac_ext ;; 5886 esac 5887 fi 5888 5889 5890 CFLAGS="$xorg_testset_save_CFLAGS" 5891 5892 eval supported=\$$cacheid 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5894 printf "%s\n" "$supported" >&6; } 5895 if test "$supported" = "yes" ; then 5896 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5897 found="yes" 5898 fi 5899 fi 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 xorg_testset_save_CFLAGS="$CFLAGS" 5918 5919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5923 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5924 then : 5925 printf %s "(cached) " >&6 5926 else case e in #( 5927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928 /* end confdefs.h. */ 5929 int i; 5930 _ACEOF 5931 if ac_fn_c_try_compile "$LINENO" 5932 then : 5933 xorg_cv_cc_flag_unknown_warning_option=yes 5934 else case e in #( 5935 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5936 esac 5937 fi 5938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5939 esac 5940 fi 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5944 CFLAGS="$xorg_testset_save_CFLAGS" 5945 fi 5946 5947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5950 fi 5951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5955 then : 5956 printf %s "(cached) " >&6 5957 else case e in #( 5958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959 /* end confdefs.h. */ 5960 int i; 5961 _ACEOF 5962 if ac_fn_c_try_compile "$LINENO" 5963 then : 5964 xorg_cv_cc_flag_unused_command_line_argument=yes 5965 else case e in #( 5966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5967 esac 5968 fi 5969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5970 esac 5971 fi 5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5975 CFLAGS="$xorg_testset_save_CFLAGS" 5976 fi 5977 5978 found="no" 5979 5980 if test $found = "no" ; then 5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 fi 5984 5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987 fi 5988 5989 CFLAGS="$CFLAGS -Wstrict-prototypes" 5990 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5992 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5993 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5994 if eval test \${$cacheid+y} 5995 then : 5996 printf %s "(cached) " >&6 5997 else case e in #( 5998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999 /* end confdefs.h. */ 6000 int i; 6001 int 6002 main (void) 6003 { 6004 6005 ; 6006 return 0; 6007 } 6008 _ACEOF 6009 if ac_fn_c_try_link "$LINENO" 6010 then : 6011 eval $cacheid=yes 6012 else case e in #( 6013 e) eval $cacheid=no ;; 6014 esac 6015 fi 6016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6017 conftest$ac_exeext conftest.$ac_ext ;; 6018 esac 6019 fi 6020 6021 6022 CFLAGS="$xorg_testset_save_CFLAGS" 6023 6024 eval supported=\$$cacheid 6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6026 printf "%s\n" "$supported" >&6; } 6027 if test "$supported" = "yes" ; then 6028 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6029 found="yes" 6030 fi 6031 fi 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 xorg_testset_save_CFLAGS="$CFLAGS" 6048 6049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6053 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6054 then : 6055 printf %s "(cached) " >&6 6056 else case e in #( 6057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058 /* end confdefs.h. */ 6059 int i; 6060 _ACEOF 6061 if ac_fn_c_try_compile "$LINENO" 6062 then : 6063 xorg_cv_cc_flag_unknown_warning_option=yes 6064 else case e in #( 6065 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6066 esac 6067 fi 6068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6069 esac 6070 fi 6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6074 CFLAGS="$xorg_testset_save_CFLAGS" 6075 fi 6076 6077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6085 then : 6086 printf %s "(cached) " >&6 6087 else case e in #( 6088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089 /* end confdefs.h. */ 6090 int i; 6091 _ACEOF 6092 if ac_fn_c_try_compile "$LINENO" 6093 then : 6094 xorg_cv_cc_flag_unused_command_line_argument=yes 6095 else case e in #( 6096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6097 esac 6098 fi 6099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6100 esac 6101 fi 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106 fi 6107 6108 found="no" 6109 6110 if test $found = "no" ; then 6111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6113 fi 6114 6115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6117 fi 6118 6119 CFLAGS="$CFLAGS -Wmissing-prototypes" 6120 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6122 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6123 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6124 if eval test \${$cacheid+y} 6125 then : 6126 printf %s "(cached) " >&6 6127 else case e in #( 6128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6129 /* end confdefs.h. */ 6130 int i; 6131 int 6132 main (void) 6133 { 6134 6135 ; 6136 return 0; 6137 } 6138 _ACEOF 6139 if ac_fn_c_try_link "$LINENO" 6140 then : 6141 eval $cacheid=yes 6142 else case e in #( 6143 e) eval $cacheid=no ;; 6144 esac 6145 fi 6146 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6147 conftest$ac_exeext conftest.$ac_ext ;; 6148 esac 6149 fi 6150 6151 6152 CFLAGS="$xorg_testset_save_CFLAGS" 6153 6154 eval supported=\$$cacheid 6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6156 printf "%s\n" "$supported" >&6; } 6157 if test "$supported" = "yes" ; then 6158 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6159 found="yes" 6160 fi 6161 fi 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 xorg_testset_save_CFLAGS="$CFLAGS" 6178 6179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6183 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6184 then : 6185 printf %s "(cached) " >&6 6186 else case e in #( 6187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188 /* end confdefs.h. */ 6189 int i; 6190 _ACEOF 6191 if ac_fn_c_try_compile "$LINENO" 6192 then : 6193 xorg_cv_cc_flag_unknown_warning_option=yes 6194 else case e in #( 6195 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6196 esac 6197 fi 6198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6199 esac 6200 fi 6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6204 CFLAGS="$xorg_testset_save_CFLAGS" 6205 fi 6206 6207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 fi 6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6215 then : 6216 printf %s "(cached) " >&6 6217 else case e in #( 6218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219 /* end confdefs.h. */ 6220 int i; 6221 _ACEOF 6222 if ac_fn_c_try_compile "$LINENO" 6223 then : 6224 xorg_cv_cc_flag_unused_command_line_argument=yes 6225 else case e in #( 6226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6227 esac 6228 fi 6229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6230 esac 6231 fi 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6235 CFLAGS="$xorg_testset_save_CFLAGS" 6236 fi 6237 6238 found="no" 6239 6240 if test $found = "no" ; then 6241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6243 fi 6244 6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6247 fi 6248 6249 CFLAGS="$CFLAGS -Wnested-externs" 6250 6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6252 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6253 cacheid=xorg_cv_cc_flag__Wnested_externs 6254 if eval test \${$cacheid+y} 6255 then : 6256 printf %s "(cached) " >&6 6257 else case e in #( 6258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6259 /* end confdefs.h. */ 6260 int i; 6261 int 6262 main (void) 6263 { 6264 6265 ; 6266 return 0; 6267 } 6268 _ACEOF 6269 if ac_fn_c_try_link "$LINENO" 6270 then : 6271 eval $cacheid=yes 6272 else case e in #( 6273 e) eval $cacheid=no ;; 6274 esac 6275 fi 6276 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6277 conftest$ac_exeext conftest.$ac_ext ;; 6278 esac 6279 fi 6280 6281 6282 CFLAGS="$xorg_testset_save_CFLAGS" 6283 6284 eval supported=\$$cacheid 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6286 printf "%s\n" "$supported" >&6; } 6287 if test "$supported" = "yes" ; then 6288 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6289 found="yes" 6290 fi 6291 fi 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 xorg_testset_save_CFLAGS="$CFLAGS" 6308 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6313 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6314 then : 6315 printf %s "(cached) " >&6 6316 else case e in #( 6317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318 /* end confdefs.h. */ 6319 int i; 6320 _ACEOF 6321 if ac_fn_c_try_compile "$LINENO" 6322 then : 6323 xorg_cv_cc_flag_unknown_warning_option=yes 6324 else case e in #( 6325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6326 esac 6327 fi 6328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6329 esac 6330 fi 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 fi 6336 6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6340 fi 6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6345 then : 6346 printf %s "(cached) " >&6 6347 else case e in #( 6348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349 /* end confdefs.h. */ 6350 int i; 6351 _ACEOF 6352 if ac_fn_c_try_compile "$LINENO" 6353 then : 6354 xorg_cv_cc_flag_unused_command_line_argument=yes 6355 else case e in #( 6356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6357 esac 6358 fi 6359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6360 esac 6361 fi 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366 fi 6367 6368 found="no" 6369 6370 if test $found = "no" ; then 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 fi 6374 6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 fi 6378 6379 CFLAGS="$CFLAGS -Wbad-function-cast" 6380 6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6382 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6383 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6384 if eval test \${$cacheid+y} 6385 then : 6386 printf %s "(cached) " >&6 6387 else case e in #( 6388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389 /* end confdefs.h. */ 6390 int i; 6391 int 6392 main (void) 6393 { 6394 6395 ; 6396 return 0; 6397 } 6398 _ACEOF 6399 if ac_fn_c_try_link "$LINENO" 6400 then : 6401 eval $cacheid=yes 6402 else case e in #( 6403 e) eval $cacheid=no ;; 6404 esac 6405 fi 6406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6407 conftest$ac_exeext conftest.$ac_ext ;; 6408 esac 6409 fi 6410 6411 6412 CFLAGS="$xorg_testset_save_CFLAGS" 6413 6414 eval supported=\$$cacheid 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6416 printf "%s\n" "$supported" >&6; } 6417 if test "$supported" = "yes" ; then 6418 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6419 found="yes" 6420 fi 6421 fi 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 xorg_testset_save_CFLAGS="$CFLAGS" 6438 6439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6443 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6444 then : 6445 printf %s "(cached) " >&6 6446 else case e in #( 6447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448 /* end confdefs.h. */ 6449 int i; 6450 _ACEOF 6451 if ac_fn_c_try_compile "$LINENO" 6452 then : 6453 xorg_cv_cc_flag_unknown_warning_option=yes 6454 else case e in #( 6455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6456 esac 6457 fi 6458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6459 esac 6460 fi 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6464 CFLAGS="$xorg_testset_save_CFLAGS" 6465 fi 6466 6467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6470 fi 6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6475 then : 6476 printf %s "(cached) " >&6 6477 else case e in #( 6478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479 /* end confdefs.h. */ 6480 int i; 6481 _ACEOF 6482 if ac_fn_c_try_compile "$LINENO" 6483 then : 6484 xorg_cv_cc_flag_unused_command_line_argument=yes 6485 else case e in #( 6486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6487 esac 6488 fi 6489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6490 esac 6491 fi 6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6495 CFLAGS="$xorg_testset_save_CFLAGS" 6496 fi 6497 6498 found="no" 6499 6500 if test $found = "no" ; then 6501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6503 fi 6504 6505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6507 fi 6508 6509 CFLAGS="$CFLAGS -Wold-style-definition" 6510 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6512 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6513 cacheid=xorg_cv_cc_flag__Wold_style_definition 6514 if eval test \${$cacheid+y} 6515 then : 6516 printf %s "(cached) " >&6 6517 else case e in #( 6518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519 /* end confdefs.h. */ 6520 int i; 6521 int 6522 main (void) 6523 { 6524 6525 ; 6526 return 0; 6527 } 6528 _ACEOF 6529 if ac_fn_c_try_link "$LINENO" 6530 then : 6531 eval $cacheid=yes 6532 else case e in #( 6533 e) eval $cacheid=no ;; 6534 esac 6535 fi 6536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6537 conftest$ac_exeext conftest.$ac_ext ;; 6538 esac 6539 fi 6540 6541 6542 CFLAGS="$xorg_testset_save_CFLAGS" 6543 6544 eval supported=\$$cacheid 6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6546 printf "%s\n" "$supported" >&6; } 6547 if test "$supported" = "yes" ; then 6548 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6549 found="yes" 6550 fi 6551 fi 6552 6553 if test $found = "no" ; then 6554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6556 fi 6557 6558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6560 fi 6561 6562 CFLAGS="$CFLAGS -fd" 6563 6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6565 printf %s "checking if $CC supports -fd... " >&6; } 6566 cacheid=xorg_cv_cc_flag__fd 6567 if eval test \${$cacheid+y} 6568 then : 6569 printf %s "(cached) " >&6 6570 else case e in #( 6571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572 /* end confdefs.h. */ 6573 int i; 6574 int 6575 main (void) 6576 { 6577 6578 ; 6579 return 0; 6580 } 6581 _ACEOF 6582 if ac_fn_c_try_link "$LINENO" 6583 then : 6584 eval $cacheid=yes 6585 else case e in #( 6586 e) eval $cacheid=no ;; 6587 esac 6588 fi 6589 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6590 conftest$ac_exeext conftest.$ac_ext ;; 6591 esac 6592 fi 6593 6594 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596 6597 eval supported=\$$cacheid 6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6599 printf "%s\n" "$supported" >&6; } 6600 if test "$supported" = "yes" ; then 6601 BASE_CFLAGS="$BASE_CFLAGS -fd" 6602 found="yes" 6603 fi 6604 fi 6605 6606 6607 6608 6609 6610 # This chunk adds additional warnings that could catch undesired effects. 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 xorg_testset_save_CFLAGS="$CFLAGS" 6625 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6630 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6631 then : 6632 printf %s "(cached) " >&6 6633 else case e in #( 6634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635 /* end confdefs.h. */ 6636 int i; 6637 _ACEOF 6638 if ac_fn_c_try_compile "$LINENO" 6639 then : 6640 xorg_cv_cc_flag_unknown_warning_option=yes 6641 else case e in #( 6642 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6643 esac 6644 fi 6645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6646 esac 6647 fi 6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6651 CFLAGS="$xorg_testset_save_CFLAGS" 6652 fi 6653 6654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6662 then : 6663 printf %s "(cached) " >&6 6664 else case e in #( 6665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6666 /* end confdefs.h. */ 6667 int i; 6668 _ACEOF 6669 if ac_fn_c_try_compile "$LINENO" 6670 then : 6671 xorg_cv_cc_flag_unused_command_line_argument=yes 6672 else case e in #( 6673 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6674 esac 6675 fi 6676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6677 esac 6678 fi 6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6682 CFLAGS="$xorg_testset_save_CFLAGS" 6683 fi 6684 6685 found="no" 6686 6687 if test $found = "no" ; then 6688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 fi 6691 6692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6694 fi 6695 6696 CFLAGS="$CFLAGS -Wunused" 6697 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6699 printf %s "checking if $CC supports -Wunused... " >&6; } 6700 cacheid=xorg_cv_cc_flag__Wunused 6701 if eval test \${$cacheid+y} 6702 then : 6703 printf %s "(cached) " >&6 6704 else case e in #( 6705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706 /* end confdefs.h. */ 6707 int i; 6708 int 6709 main (void) 6710 { 6711 6712 ; 6713 return 0; 6714 } 6715 _ACEOF 6716 if ac_fn_c_try_link "$LINENO" 6717 then : 6718 eval $cacheid=yes 6719 else case e in #( 6720 e) eval $cacheid=no ;; 6721 esac 6722 fi 6723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6724 conftest$ac_exeext conftest.$ac_ext ;; 6725 esac 6726 fi 6727 6728 6729 CFLAGS="$xorg_testset_save_CFLAGS" 6730 6731 eval supported=\$$cacheid 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6733 printf "%s\n" "$supported" >&6; } 6734 if test "$supported" = "yes" ; then 6735 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6736 found="yes" 6737 fi 6738 fi 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 xorg_testset_save_CFLAGS="$CFLAGS" 6755 6756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6760 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6761 then : 6762 printf %s "(cached) " >&6 6763 else case e in #( 6764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765 /* end confdefs.h. */ 6766 int i; 6767 _ACEOF 6768 if ac_fn_c_try_compile "$LINENO" 6769 then : 6770 xorg_cv_cc_flag_unknown_warning_option=yes 6771 else case e in #( 6772 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6773 esac 6774 fi 6775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6776 esac 6777 fi 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6781 CFLAGS="$xorg_testset_save_CFLAGS" 6782 fi 6783 6784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6792 then : 6793 printf %s "(cached) " >&6 6794 else case e in #( 6795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796 /* end confdefs.h. */ 6797 int i; 6798 _ACEOF 6799 if ac_fn_c_try_compile "$LINENO" 6800 then : 6801 xorg_cv_cc_flag_unused_command_line_argument=yes 6802 else case e in #( 6803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6804 esac 6805 fi 6806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6807 esac 6808 fi 6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6812 CFLAGS="$xorg_testset_save_CFLAGS" 6813 fi 6814 6815 found="no" 6816 6817 if test $found = "no" ; then 6818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6820 fi 6821 6822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 fi 6825 6826 CFLAGS="$CFLAGS -Wuninitialized" 6827 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6829 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6830 cacheid=xorg_cv_cc_flag__Wuninitialized 6831 if eval test \${$cacheid+y} 6832 then : 6833 printf %s "(cached) " >&6 6834 else case e in #( 6835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836 /* end confdefs.h. */ 6837 int i; 6838 int 6839 main (void) 6840 { 6841 6842 ; 6843 return 0; 6844 } 6845 _ACEOF 6846 if ac_fn_c_try_link "$LINENO" 6847 then : 6848 eval $cacheid=yes 6849 else case e in #( 6850 e) eval $cacheid=no ;; 6851 esac 6852 fi 6853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6854 conftest$ac_exeext conftest.$ac_ext ;; 6855 esac 6856 fi 6857 6858 6859 CFLAGS="$xorg_testset_save_CFLAGS" 6860 6861 eval supported=\$$cacheid 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6863 printf "%s\n" "$supported" >&6; } 6864 if test "$supported" = "yes" ; then 6865 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6866 found="yes" 6867 fi 6868 fi 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 xorg_testset_save_CFLAGS="$CFLAGS" 6885 6886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6891 then : 6892 printf %s "(cached) " >&6 6893 else case e in #( 6894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895 /* end confdefs.h. */ 6896 int i; 6897 _ACEOF 6898 if ac_fn_c_try_compile "$LINENO" 6899 then : 6900 xorg_cv_cc_flag_unknown_warning_option=yes 6901 else case e in #( 6902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6903 esac 6904 fi 6905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6906 esac 6907 fi 6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6911 CFLAGS="$xorg_testset_save_CFLAGS" 6912 fi 6913 6914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6922 then : 6923 printf %s "(cached) " >&6 6924 else case e in #( 6925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926 /* end confdefs.h. */ 6927 int i; 6928 _ACEOF 6929 if ac_fn_c_try_compile "$LINENO" 6930 then : 6931 xorg_cv_cc_flag_unused_command_line_argument=yes 6932 else case e in #( 6933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6934 esac 6935 fi 6936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6937 esac 6938 fi 6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6942 CFLAGS="$xorg_testset_save_CFLAGS" 6943 fi 6944 6945 found="no" 6946 6947 if test $found = "no" ; then 6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 fi 6951 6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6954 fi 6955 6956 CFLAGS="$CFLAGS -Wshadow" 6957 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6959 printf %s "checking if $CC supports -Wshadow... " >&6; } 6960 cacheid=xorg_cv_cc_flag__Wshadow 6961 if eval test \${$cacheid+y} 6962 then : 6963 printf %s "(cached) " >&6 6964 else case e in #( 6965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6966 /* end confdefs.h. */ 6967 int i; 6968 int 6969 main (void) 6970 { 6971 6972 ; 6973 return 0; 6974 } 6975 _ACEOF 6976 if ac_fn_c_try_link "$LINENO" 6977 then : 6978 eval $cacheid=yes 6979 else case e in #( 6980 e) eval $cacheid=no ;; 6981 esac 6982 fi 6983 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6984 conftest$ac_exeext conftest.$ac_ext ;; 6985 esac 6986 fi 6987 6988 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990 6991 eval supported=\$$cacheid 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6993 printf "%s\n" "$supported" >&6; } 6994 if test "$supported" = "yes" ; then 6995 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6996 found="yes" 6997 fi 6998 fi 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 xorg_testset_save_CFLAGS="$CFLAGS" 7015 7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7020 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7021 then : 7022 printf %s "(cached) " >&6 7023 else case e in #( 7024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025 /* end confdefs.h. */ 7026 int i; 7027 _ACEOF 7028 if ac_fn_c_try_compile "$LINENO" 7029 then : 7030 xorg_cv_cc_flag_unknown_warning_option=yes 7031 else case e in #( 7032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7033 esac 7034 fi 7035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7036 esac 7037 fi 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7039 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7041 CFLAGS="$xorg_testset_save_CFLAGS" 7042 fi 7043 7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7052 then : 7053 printf %s "(cached) " >&6 7054 else case e in #( 7055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056 /* end confdefs.h. */ 7057 int i; 7058 _ACEOF 7059 if ac_fn_c_try_compile "$LINENO" 7060 then : 7061 xorg_cv_cc_flag_unused_command_line_argument=yes 7062 else case e in #( 7063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7064 esac 7065 fi 7066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7067 esac 7068 fi 7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073 fi 7074 7075 found="no" 7076 7077 if test $found = "no" ; then 7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 fi 7081 7082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7084 fi 7085 7086 CFLAGS="$CFLAGS -Wmissing-noreturn" 7087 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7089 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7090 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7091 if eval test \${$cacheid+y} 7092 then : 7093 printf %s "(cached) " >&6 7094 else case e in #( 7095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096 /* end confdefs.h. */ 7097 int i; 7098 int 7099 main (void) 7100 { 7101 7102 ; 7103 return 0; 7104 } 7105 _ACEOF 7106 if ac_fn_c_try_link "$LINENO" 7107 then : 7108 eval $cacheid=yes 7109 else case e in #( 7110 e) eval $cacheid=no ;; 7111 esac 7112 fi 7113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7114 conftest$ac_exeext conftest.$ac_ext ;; 7115 esac 7116 fi 7117 7118 7119 CFLAGS="$xorg_testset_save_CFLAGS" 7120 7121 eval supported=\$$cacheid 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7123 printf "%s\n" "$supported" >&6; } 7124 if test "$supported" = "yes" ; then 7125 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7126 found="yes" 7127 fi 7128 fi 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 xorg_testset_save_CFLAGS="$CFLAGS" 7145 7146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7150 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7151 then : 7152 printf %s "(cached) " >&6 7153 else case e in #( 7154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155 /* end confdefs.h. */ 7156 int i; 7157 _ACEOF 7158 if ac_fn_c_try_compile "$LINENO" 7159 then : 7160 xorg_cv_cc_flag_unknown_warning_option=yes 7161 else case e in #( 7162 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7163 esac 7164 fi 7165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7166 esac 7167 fi 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7171 CFLAGS="$xorg_testset_save_CFLAGS" 7172 fi 7173 7174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 fi 7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7182 then : 7183 printf %s "(cached) " >&6 7184 else case e in #( 7185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186 /* end confdefs.h. */ 7187 int i; 7188 _ACEOF 7189 if ac_fn_c_try_compile "$LINENO" 7190 then : 7191 xorg_cv_cc_flag_unused_command_line_argument=yes 7192 else case e in #( 7193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7194 esac 7195 fi 7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7197 esac 7198 fi 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7202 CFLAGS="$xorg_testset_save_CFLAGS" 7203 fi 7204 7205 found="no" 7206 7207 if test $found = "no" ; then 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 fi 7211 7212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7214 fi 7215 7216 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7217 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7219 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7220 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7221 if eval test \${$cacheid+y} 7222 then : 7223 printf %s "(cached) " >&6 7224 else case e in #( 7225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226 /* end confdefs.h. */ 7227 int i; 7228 int 7229 main (void) 7230 { 7231 7232 ; 7233 return 0; 7234 } 7235 _ACEOF 7236 if ac_fn_c_try_link "$LINENO" 7237 then : 7238 eval $cacheid=yes 7239 else case e in #( 7240 e) eval $cacheid=no ;; 7241 esac 7242 fi 7243 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7244 conftest$ac_exeext conftest.$ac_ext ;; 7245 esac 7246 fi 7247 7248 7249 CFLAGS="$xorg_testset_save_CFLAGS" 7250 7251 eval supported=\$$cacheid 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7253 printf "%s\n" "$supported" >&6; } 7254 if test "$supported" = "yes" ; then 7255 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7256 found="yes" 7257 fi 7258 fi 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 xorg_testset_save_CFLAGS="$CFLAGS" 7275 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7280 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7281 then : 7282 printf %s "(cached) " >&6 7283 else case e in #( 7284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285 /* end confdefs.h. */ 7286 int i; 7287 _ACEOF 7288 if ac_fn_c_try_compile "$LINENO" 7289 then : 7290 xorg_cv_cc_flag_unknown_warning_option=yes 7291 else case e in #( 7292 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7293 esac 7294 fi 7295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7296 esac 7297 fi 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7299 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302 fi 7303 7304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 fi 7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7310 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7311 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7312 then : 7313 printf %s "(cached) " >&6 7314 else case e in #( 7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316 /* end confdefs.h. */ 7317 int i; 7318 _ACEOF 7319 if ac_fn_c_try_compile "$LINENO" 7320 then : 7321 xorg_cv_cc_flag_unused_command_line_argument=yes 7322 else case e in #( 7323 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7324 esac 7325 fi 7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7327 esac 7328 fi 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333 fi 7334 7335 found="no" 7336 7337 if test $found = "no" ; then 7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 fi 7341 7342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7344 fi 7345 7346 CFLAGS="$CFLAGS -Wredundant-decls" 7347 7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7349 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7350 cacheid=xorg_cv_cc_flag__Wredundant_decls 7351 if eval test \${$cacheid+y} 7352 then : 7353 printf %s "(cached) " >&6 7354 else case e in #( 7355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7356 /* end confdefs.h. */ 7357 int i; 7358 int 7359 main (void) 7360 { 7361 7362 ; 7363 return 0; 7364 } 7365 _ACEOF 7366 if ac_fn_c_try_link "$LINENO" 7367 then : 7368 eval $cacheid=yes 7369 else case e in #( 7370 e) eval $cacheid=no ;; 7371 esac 7372 fi 7373 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7374 conftest$ac_exeext conftest.$ac_ext ;; 7375 esac 7376 fi 7377 7378 7379 CFLAGS="$xorg_testset_save_CFLAGS" 7380 7381 eval supported=\$$cacheid 7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7383 printf "%s\n" "$supported" >&6; } 7384 if test "$supported" = "yes" ; then 7385 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7386 found="yes" 7387 fi 7388 fi 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 xorg_testset_save_CFLAGS="$CFLAGS" 7405 7406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7410 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7411 then : 7412 printf %s "(cached) " >&6 7413 else case e in #( 7414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415 /* end confdefs.h. */ 7416 int i; 7417 _ACEOF 7418 if ac_fn_c_try_compile "$LINENO" 7419 then : 7420 xorg_cv_cc_flag_unknown_warning_option=yes 7421 else case e in #( 7422 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7423 esac 7424 fi 7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7426 esac 7427 fi 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432 fi 7433 7434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 fi 7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7442 then : 7443 printf %s "(cached) " >&6 7444 else case e in #( 7445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446 /* end confdefs.h. */ 7447 int i; 7448 _ACEOF 7449 if ac_fn_c_try_compile "$LINENO" 7450 then : 7451 xorg_cv_cc_flag_unused_command_line_argument=yes 7452 else case e in #( 7453 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7454 esac 7455 fi 7456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7457 esac 7458 fi 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463 fi 7464 7465 found="no" 7466 7467 if test $found = "no" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 7472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7474 fi 7475 7476 CFLAGS="$CFLAGS -Wlogical-op" 7477 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7479 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7480 cacheid=xorg_cv_cc_flag__Wlogical_op 7481 if eval test \${$cacheid+y} 7482 then : 7483 printf %s "(cached) " >&6 7484 else case e in #( 7485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486 /* end confdefs.h. */ 7487 int i; 7488 int 7489 main (void) 7490 { 7491 7492 ; 7493 return 0; 7494 } 7495 _ACEOF 7496 if ac_fn_c_try_link "$LINENO" 7497 then : 7498 eval $cacheid=yes 7499 else case e in #( 7500 e) eval $cacheid=no ;; 7501 esac 7502 fi 7503 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7504 conftest$ac_exeext conftest.$ac_ext ;; 7505 esac 7506 fi 7507 7508 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510 7511 eval supported=\$$cacheid 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7513 printf "%s\n" "$supported" >&6; } 7514 if test "$supported" = "yes" ; then 7515 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7516 found="yes" 7517 fi 7518 fi 7519 7520 7521 7522 # These are currently disabled because they are noisy. They will be enabled 7523 # in the future once the codebase is sufficiently modernized to silence 7524 # them. For now, I don't want them to drown out the other warnings. 7525 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7526 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7527 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7528 7529 # Turn some warnings into errors, so we don't accidentally get successful builds 7530 # when there are problems that should be fixed. 7531 7532 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 xorg_testset_save_CFLAGS="$CFLAGS" 7547 7548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7552 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7553 then : 7554 printf %s "(cached) " >&6 7555 else case e in #( 7556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557 /* end confdefs.h. */ 7558 int i; 7559 _ACEOF 7560 if ac_fn_c_try_compile "$LINENO" 7561 then : 7562 xorg_cv_cc_flag_unknown_warning_option=yes 7563 else case e in #( 7564 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7565 esac 7566 fi 7567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7568 esac 7569 fi 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7573 CFLAGS="$xorg_testset_save_CFLAGS" 7574 fi 7575 7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7579 fi 7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7584 then : 7585 printf %s "(cached) " >&6 7586 else case e in #( 7587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588 /* end confdefs.h. */ 7589 int i; 7590 _ACEOF 7591 if ac_fn_c_try_compile "$LINENO" 7592 then : 7593 xorg_cv_cc_flag_unused_command_line_argument=yes 7594 else case e in #( 7595 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7596 esac 7597 fi 7598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7599 esac 7600 fi 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7602 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7604 CFLAGS="$xorg_testset_save_CFLAGS" 7605 fi 7606 7607 found="no" 7608 7609 if test $found = "no" ; then 7610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7612 fi 7613 7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7616 fi 7617 7618 CFLAGS="$CFLAGS -Werror=implicit" 7619 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7621 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7622 cacheid=xorg_cv_cc_flag__Werror_implicit 7623 if eval test \${$cacheid+y} 7624 then : 7625 printf %s "(cached) " >&6 7626 else case e in #( 7627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628 /* end confdefs.h. */ 7629 int i; 7630 int 7631 main (void) 7632 { 7633 7634 ; 7635 return 0; 7636 } 7637 _ACEOF 7638 if ac_fn_c_try_link "$LINENO" 7639 then : 7640 eval $cacheid=yes 7641 else case e in #( 7642 e) eval $cacheid=no ;; 7643 esac 7644 fi 7645 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7646 conftest$ac_exeext conftest.$ac_ext ;; 7647 esac 7648 fi 7649 7650 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652 7653 eval supported=\$$cacheid 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7655 printf "%s\n" "$supported" >&6; } 7656 if test "$supported" = "yes" ; then 7657 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7658 found="yes" 7659 fi 7660 fi 7661 7662 if test $found = "no" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 fi 7670 7671 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7672 7673 { 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 7674 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7675 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7676 if eval test \${$cacheid+y} 7677 then : 7678 printf %s "(cached) " >&6 7679 else case e in #( 7680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681 /* end confdefs.h. */ 7682 int i; 7683 int 7684 main (void) 7685 { 7686 7687 ; 7688 return 0; 7689 } 7690 _ACEOF 7691 if ac_fn_c_try_link "$LINENO" 7692 then : 7693 eval $cacheid=yes 7694 else case e in #( 7695 e) eval $cacheid=no ;; 7696 esac 7697 fi 7698 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7699 conftest$ac_exeext conftest.$ac_ext ;; 7700 esac 7701 fi 7702 7703 7704 CFLAGS="$xorg_testset_save_CFLAGS" 7705 7706 eval supported=\$$cacheid 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7708 printf "%s\n" "$supported" >&6; } 7709 if test "$supported" = "yes" ; then 7710 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7711 found="yes" 7712 fi 7713 fi 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 xorg_testset_save_CFLAGS="$CFLAGS" 7730 7731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7735 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7736 then : 7737 printf %s "(cached) " >&6 7738 else case e in #( 7739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740 /* end confdefs.h. */ 7741 int i; 7742 _ACEOF 7743 if ac_fn_c_try_compile "$LINENO" 7744 then : 7745 xorg_cv_cc_flag_unknown_warning_option=yes 7746 else case e in #( 7747 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7748 esac 7749 fi 7750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7751 esac 7752 fi 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7756 CFLAGS="$xorg_testset_save_CFLAGS" 7757 fi 7758 7759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 fi 7763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7767 then : 7768 printf %s "(cached) " >&6 7769 else case e in #( 7770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7771 /* end confdefs.h. */ 7772 int i; 7773 _ACEOF 7774 if ac_fn_c_try_compile "$LINENO" 7775 then : 7776 xorg_cv_cc_flag_unused_command_line_argument=yes 7777 else case e in #( 7778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7779 esac 7780 fi 7781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7782 esac 7783 fi 7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7787 CFLAGS="$xorg_testset_save_CFLAGS" 7788 fi 7789 7790 found="no" 7791 7792 if test $found = "no" ; then 7793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7795 fi 7796 7797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7799 fi 7800 7801 CFLAGS="$CFLAGS -Werror=nonnull" 7802 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7804 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7805 cacheid=xorg_cv_cc_flag__Werror_nonnull 7806 if eval test \${$cacheid+y} 7807 then : 7808 printf %s "(cached) " >&6 7809 else case e in #( 7810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811 /* end confdefs.h. */ 7812 int i; 7813 int 7814 main (void) 7815 { 7816 7817 ; 7818 return 0; 7819 } 7820 _ACEOF 7821 if ac_fn_c_try_link "$LINENO" 7822 then : 7823 eval $cacheid=yes 7824 else case e in #( 7825 e) eval $cacheid=no ;; 7826 esac 7827 fi 7828 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7829 conftest$ac_exeext conftest.$ac_ext ;; 7830 esac 7831 fi 7832 7833 7834 CFLAGS="$xorg_testset_save_CFLAGS" 7835 7836 eval supported=\$$cacheid 7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7838 printf "%s\n" "$supported" >&6; } 7839 if test "$supported" = "yes" ; then 7840 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7841 found="yes" 7842 fi 7843 fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 xorg_testset_save_CFLAGS="$CFLAGS" 7860 7861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7865 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7866 then : 7867 printf %s "(cached) " >&6 7868 else case e in #( 7869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870 /* end confdefs.h. */ 7871 int i; 7872 _ACEOF 7873 if ac_fn_c_try_compile "$LINENO" 7874 then : 7875 xorg_cv_cc_flag_unknown_warning_option=yes 7876 else case e in #( 7877 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7878 esac 7879 fi 7880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7881 esac 7882 fi 7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7886 CFLAGS="$xorg_testset_save_CFLAGS" 7887 fi 7888 7889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 fi 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7897 then : 7898 printf %s "(cached) " >&6 7899 else case e in #( 7900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901 /* end confdefs.h. */ 7902 int i; 7903 _ACEOF 7904 if ac_fn_c_try_compile "$LINENO" 7905 then : 7906 xorg_cv_cc_flag_unused_command_line_argument=yes 7907 else case e in #( 7908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7909 esac 7910 fi 7911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7912 esac 7913 fi 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7917 CFLAGS="$xorg_testset_save_CFLAGS" 7918 fi 7919 7920 found="no" 7921 7922 if test $found = "no" ; then 7923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7925 fi 7926 7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7929 fi 7930 7931 CFLAGS="$CFLAGS -Werror=init-self" 7932 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7934 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7935 cacheid=xorg_cv_cc_flag__Werror_init_self 7936 if eval test \${$cacheid+y} 7937 then : 7938 printf %s "(cached) " >&6 7939 else case e in #( 7940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941 /* end confdefs.h. */ 7942 int i; 7943 int 7944 main (void) 7945 { 7946 7947 ; 7948 return 0; 7949 } 7950 _ACEOF 7951 if ac_fn_c_try_link "$LINENO" 7952 then : 7953 eval $cacheid=yes 7954 else case e in #( 7955 e) eval $cacheid=no ;; 7956 esac 7957 fi 7958 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7959 conftest$ac_exeext conftest.$ac_ext ;; 7960 esac 7961 fi 7962 7963 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965 7966 eval supported=\$$cacheid 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7968 printf "%s\n" "$supported" >&6; } 7969 if test "$supported" = "yes" ; then 7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7971 found="yes" 7972 fi 7973 fi 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 xorg_testset_save_CFLAGS="$CFLAGS" 7990 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7995 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7996 then : 7997 printf %s "(cached) " >&6 7998 else case e in #( 7999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000 /* end confdefs.h. */ 8001 int i; 8002 _ACEOF 8003 if ac_fn_c_try_compile "$LINENO" 8004 then : 8005 xorg_cv_cc_flag_unknown_warning_option=yes 8006 else case e in #( 8007 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8008 esac 8009 fi 8010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8011 esac 8012 fi 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8014 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8016 CFLAGS="$xorg_testset_save_CFLAGS" 8017 fi 8018 8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8027 then : 8028 printf %s "(cached) " >&6 8029 else case e in #( 8030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031 /* end confdefs.h. */ 8032 int i; 8033 _ACEOF 8034 if ac_fn_c_try_compile "$LINENO" 8035 then : 8036 xorg_cv_cc_flag_unused_command_line_argument=yes 8037 else case e in #( 8038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8039 esac 8040 fi 8041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8042 esac 8043 fi 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8047 CFLAGS="$xorg_testset_save_CFLAGS" 8048 fi 8049 8050 found="no" 8051 8052 if test $found = "no" ; then 8053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 fi 8056 8057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8059 fi 8060 8061 CFLAGS="$CFLAGS -Werror=main" 8062 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8064 printf %s "checking if $CC supports -Werror=main... " >&6; } 8065 cacheid=xorg_cv_cc_flag__Werror_main 8066 if eval test \${$cacheid+y} 8067 then : 8068 printf %s "(cached) " >&6 8069 else case e in #( 8070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071 /* end confdefs.h. */ 8072 int i; 8073 int 8074 main (void) 8075 { 8076 8077 ; 8078 return 0; 8079 } 8080 _ACEOF 8081 if ac_fn_c_try_link "$LINENO" 8082 then : 8083 eval $cacheid=yes 8084 else case e in #( 8085 e) eval $cacheid=no ;; 8086 esac 8087 fi 8088 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8089 conftest$ac_exeext conftest.$ac_ext ;; 8090 esac 8091 fi 8092 8093 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095 8096 eval supported=\$$cacheid 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8098 printf "%s\n" "$supported" >&6; } 8099 if test "$supported" = "yes" ; then 8100 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8101 found="yes" 8102 fi 8103 fi 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 xorg_testset_save_CFLAGS="$CFLAGS" 8120 8121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8125 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8126 then : 8127 printf %s "(cached) " >&6 8128 else case e in #( 8129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8130 /* end confdefs.h. */ 8131 int i; 8132 _ACEOF 8133 if ac_fn_c_try_compile "$LINENO" 8134 then : 8135 xorg_cv_cc_flag_unknown_warning_option=yes 8136 else case e in #( 8137 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8138 esac 8139 fi 8140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8141 esac 8142 fi 8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8146 CFLAGS="$xorg_testset_save_CFLAGS" 8147 fi 8148 8149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8157 then : 8158 printf %s "(cached) " >&6 8159 else case e in #( 8160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161 /* end confdefs.h. */ 8162 int i; 8163 _ACEOF 8164 if ac_fn_c_try_compile "$LINENO" 8165 then : 8166 xorg_cv_cc_flag_unused_command_line_argument=yes 8167 else case e in #( 8168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8169 esac 8170 fi 8171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8172 esac 8173 fi 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8177 CFLAGS="$xorg_testset_save_CFLAGS" 8178 fi 8179 8180 found="no" 8181 8182 if test $found = "no" ; then 8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 fi 8186 8187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8189 fi 8190 8191 CFLAGS="$CFLAGS -Werror=missing-braces" 8192 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8194 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8195 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8196 if eval test \${$cacheid+y} 8197 then : 8198 printf %s "(cached) " >&6 8199 else case e in #( 8200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201 /* end confdefs.h. */ 8202 int i; 8203 int 8204 main (void) 8205 { 8206 8207 ; 8208 return 0; 8209 } 8210 _ACEOF 8211 if ac_fn_c_try_link "$LINENO" 8212 then : 8213 eval $cacheid=yes 8214 else case e in #( 8215 e) eval $cacheid=no ;; 8216 esac 8217 fi 8218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8219 conftest$ac_exeext conftest.$ac_ext ;; 8220 esac 8221 fi 8222 8223 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225 8226 eval supported=\$$cacheid 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8228 printf "%s\n" "$supported" >&6; } 8229 if test "$supported" = "yes" ; then 8230 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8231 found="yes" 8232 fi 8233 fi 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 xorg_testset_save_CFLAGS="$CFLAGS" 8250 8251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8255 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8256 then : 8257 printf %s "(cached) " >&6 8258 else case e in #( 8259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8260 /* end confdefs.h. */ 8261 int i; 8262 _ACEOF 8263 if ac_fn_c_try_compile "$LINENO" 8264 then : 8265 xorg_cv_cc_flag_unknown_warning_option=yes 8266 else case e in #( 8267 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8268 esac 8269 fi 8270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8271 esac 8272 fi 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8276 CFLAGS="$xorg_testset_save_CFLAGS" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8282 fi 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8287 then : 8288 printf %s "(cached) " >&6 8289 else case e in #( 8290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291 /* end confdefs.h. */ 8292 int i; 8293 _ACEOF 8294 if ac_fn_c_try_compile "$LINENO" 8295 then : 8296 xorg_cv_cc_flag_unused_command_line_argument=yes 8297 else case e in #( 8298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8299 esac 8300 fi 8301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8302 esac 8303 fi 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8307 CFLAGS="$xorg_testset_save_CFLAGS" 8308 fi 8309 8310 found="no" 8311 8312 if test $found = "no" ; then 8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 fi 8316 8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8319 fi 8320 8321 CFLAGS="$CFLAGS -Werror=sequence-point" 8322 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8324 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8325 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8326 if eval test \${$cacheid+y} 8327 then : 8328 printf %s "(cached) " >&6 8329 else case e in #( 8330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8331 /* end confdefs.h. */ 8332 int i; 8333 int 8334 main (void) 8335 { 8336 8337 ; 8338 return 0; 8339 } 8340 _ACEOF 8341 if ac_fn_c_try_link "$LINENO" 8342 then : 8343 eval $cacheid=yes 8344 else case e in #( 8345 e) eval $cacheid=no ;; 8346 esac 8347 fi 8348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8349 conftest$ac_exeext conftest.$ac_ext ;; 8350 esac 8351 fi 8352 8353 8354 CFLAGS="$xorg_testset_save_CFLAGS" 8355 8356 eval supported=\$$cacheid 8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8358 printf "%s\n" "$supported" >&6; } 8359 if test "$supported" = "yes" ; then 8360 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8361 found="yes" 8362 fi 8363 fi 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 xorg_testset_save_CFLAGS="$CFLAGS" 8380 8381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8385 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8386 then : 8387 printf %s "(cached) " >&6 8388 else case e in #( 8389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390 /* end confdefs.h. */ 8391 int i; 8392 _ACEOF 8393 if ac_fn_c_try_compile "$LINENO" 8394 then : 8395 xorg_cv_cc_flag_unknown_warning_option=yes 8396 else case e in #( 8397 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8398 esac 8399 fi 8400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8401 esac 8402 fi 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407 fi 8408 8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8412 fi 8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8417 then : 8418 printf %s "(cached) " >&6 8419 else case e in #( 8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421 /* end confdefs.h. */ 8422 int i; 8423 _ACEOF 8424 if ac_fn_c_try_compile "$LINENO" 8425 then : 8426 xorg_cv_cc_flag_unused_command_line_argument=yes 8427 else case e in #( 8428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8429 esac 8430 fi 8431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8432 esac 8433 fi 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438 fi 8439 8440 found="no" 8441 8442 if test $found = "no" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 fi 8450 8451 CFLAGS="$CFLAGS -Werror=return-type" 8452 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8454 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8455 cacheid=xorg_cv_cc_flag__Werror_return_type 8456 if eval test \${$cacheid+y} 8457 then : 8458 printf %s "(cached) " >&6 8459 else case e in #( 8460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461 /* end confdefs.h. */ 8462 int i; 8463 int 8464 main (void) 8465 { 8466 8467 ; 8468 return 0; 8469 } 8470 _ACEOF 8471 if ac_fn_c_try_link "$LINENO" 8472 then : 8473 eval $cacheid=yes 8474 else case e in #( 8475 e) eval $cacheid=no ;; 8476 esac 8477 fi 8478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8479 conftest$ac_exeext conftest.$ac_ext ;; 8480 esac 8481 fi 8482 8483 8484 CFLAGS="$xorg_testset_save_CFLAGS" 8485 8486 eval supported=\$$cacheid 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8488 printf "%s\n" "$supported" >&6; } 8489 if test "$supported" = "yes" ; then 8490 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8491 found="yes" 8492 fi 8493 fi 8494 8495 if test $found = "no" ; then 8496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 fi 8499 8500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8502 fi 8503 8504 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8505 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8507 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8508 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8509 if eval test \${$cacheid+y} 8510 then : 8511 printf %s "(cached) " >&6 8512 else case e in #( 8513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514 /* end confdefs.h. */ 8515 int i; 8516 int 8517 main (void) 8518 { 8519 8520 ; 8521 return 0; 8522 } 8523 _ACEOF 8524 if ac_fn_c_try_link "$LINENO" 8525 then : 8526 eval $cacheid=yes 8527 else case e in #( 8528 e) eval $cacheid=no ;; 8529 esac 8530 fi 8531 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8532 conftest$ac_exeext conftest.$ac_ext ;; 8533 esac 8534 fi 8535 8536 8537 CFLAGS="$xorg_testset_save_CFLAGS" 8538 8539 eval supported=\$$cacheid 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8541 printf "%s\n" "$supported" >&6; } 8542 if test "$supported" = "yes" ; then 8543 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8544 found="yes" 8545 fi 8546 fi 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 xorg_testset_save_CFLAGS="$CFLAGS" 8563 8564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8568 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8569 then : 8570 printf %s "(cached) " >&6 8571 else case e in #( 8572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573 /* end confdefs.h. */ 8574 int i; 8575 _ACEOF 8576 if ac_fn_c_try_compile "$LINENO" 8577 then : 8578 xorg_cv_cc_flag_unknown_warning_option=yes 8579 else case e in #( 8580 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8581 esac 8582 fi 8583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8584 esac 8585 fi 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590 fi 8591 8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8600 then : 8601 printf %s "(cached) " >&6 8602 else case e in #( 8603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604 /* end confdefs.h. */ 8605 int i; 8606 _ACEOF 8607 if ac_fn_c_try_compile "$LINENO" 8608 then : 8609 xorg_cv_cc_flag_unused_command_line_argument=yes 8610 else case e in #( 8611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8612 esac 8613 fi 8614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8615 esac 8616 fi 8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621 fi 8622 8623 found="no" 8624 8625 if test $found = "no" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 fi 8633 8634 CFLAGS="$CFLAGS -Werror=trigraphs" 8635 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8637 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8638 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8639 if eval test \${$cacheid+y} 8640 then : 8641 printf %s "(cached) " >&6 8642 else case e in #( 8643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644 /* end confdefs.h. */ 8645 int i; 8646 int 8647 main (void) 8648 { 8649 8650 ; 8651 return 0; 8652 } 8653 _ACEOF 8654 if ac_fn_c_try_link "$LINENO" 8655 then : 8656 eval $cacheid=yes 8657 else case e in #( 8658 e) eval $cacheid=no ;; 8659 esac 8660 fi 8661 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8662 conftest$ac_exeext conftest.$ac_ext ;; 8663 esac 8664 fi 8665 8666 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668 8669 eval supported=\$$cacheid 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8671 printf "%s\n" "$supported" >&6; } 8672 if test "$supported" = "yes" ; then 8673 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8674 found="yes" 8675 fi 8676 fi 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 xorg_testset_save_CFLAGS="$CFLAGS" 8693 8694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8698 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8699 then : 8700 printf %s "(cached) " >&6 8701 else case e in #( 8702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8703 /* end confdefs.h. */ 8704 int i; 8705 _ACEOF 8706 if ac_fn_c_try_compile "$LINENO" 8707 then : 8708 xorg_cv_cc_flag_unknown_warning_option=yes 8709 else case e in #( 8710 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8711 esac 8712 fi 8713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8714 esac 8715 fi 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8719 CFLAGS="$xorg_testset_save_CFLAGS" 8720 fi 8721 8722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 fi 8726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8730 then : 8731 printf %s "(cached) " >&6 8732 else case e in #( 8733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734 /* end confdefs.h. */ 8735 int i; 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO" 8738 then : 8739 xorg_cv_cc_flag_unused_command_line_argument=yes 8740 else case e in #( 8741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8742 esac 8743 fi 8744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8745 esac 8746 fi 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8750 CFLAGS="$xorg_testset_save_CFLAGS" 8751 fi 8752 8753 found="no" 8754 8755 if test $found = "no" ; then 8756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 fi 8759 8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8762 fi 8763 8764 CFLAGS="$CFLAGS -Werror=array-bounds" 8765 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8767 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8768 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8769 if eval test \${$cacheid+y} 8770 then : 8771 printf %s "(cached) " >&6 8772 else case e in #( 8773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774 /* end confdefs.h. */ 8775 int i; 8776 int 8777 main (void) 8778 { 8779 8780 ; 8781 return 0; 8782 } 8783 _ACEOF 8784 if ac_fn_c_try_link "$LINENO" 8785 then : 8786 eval $cacheid=yes 8787 else case e in #( 8788 e) eval $cacheid=no ;; 8789 esac 8790 fi 8791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8792 conftest$ac_exeext conftest.$ac_ext ;; 8793 esac 8794 fi 8795 8796 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798 8799 eval supported=\$$cacheid 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8801 printf "%s\n" "$supported" >&6; } 8802 if test "$supported" = "yes" ; then 8803 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8804 found="yes" 8805 fi 8806 fi 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 xorg_testset_save_CFLAGS="$CFLAGS" 8823 8824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8828 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8829 then : 8830 printf %s "(cached) " >&6 8831 else case e in #( 8832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833 /* end confdefs.h. */ 8834 int i; 8835 _ACEOF 8836 if ac_fn_c_try_compile "$LINENO" 8837 then : 8838 xorg_cv_cc_flag_unknown_warning_option=yes 8839 else case e in #( 8840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8841 esac 8842 fi 8843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8844 esac 8845 fi 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850 fi 8851 8852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 fi 8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8860 then : 8861 printf %s "(cached) " >&6 8862 else case e in #( 8863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864 /* end confdefs.h. */ 8865 int i; 8866 _ACEOF 8867 if ac_fn_c_try_compile "$LINENO" 8868 then : 8869 xorg_cv_cc_flag_unused_command_line_argument=yes 8870 else case e in #( 8871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8872 esac 8873 fi 8874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8875 esac 8876 fi 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881 fi 8882 8883 found="no" 8884 8885 if test $found = "no" ; then 8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 fi 8889 8890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8892 fi 8893 8894 CFLAGS="$CFLAGS -Werror=write-strings" 8895 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8897 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8898 cacheid=xorg_cv_cc_flag__Werror_write_strings 8899 if eval test \${$cacheid+y} 8900 then : 8901 printf %s "(cached) " >&6 8902 else case e in #( 8903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904 /* end confdefs.h. */ 8905 int i; 8906 int 8907 main (void) 8908 { 8909 8910 ; 8911 return 0; 8912 } 8913 _ACEOF 8914 if ac_fn_c_try_link "$LINENO" 8915 then : 8916 eval $cacheid=yes 8917 else case e in #( 8918 e) eval $cacheid=no ;; 8919 esac 8920 fi 8921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8922 conftest$ac_exeext conftest.$ac_ext ;; 8923 esac 8924 fi 8925 8926 8927 CFLAGS="$xorg_testset_save_CFLAGS" 8928 8929 eval supported=\$$cacheid 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8931 printf "%s\n" "$supported" >&6; } 8932 if test "$supported" = "yes" ; then 8933 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8934 found="yes" 8935 fi 8936 fi 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 xorg_testset_save_CFLAGS="$CFLAGS" 8953 8954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8959 then : 8960 printf %s "(cached) " >&6 8961 else case e in #( 8962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963 /* end confdefs.h. */ 8964 int i; 8965 _ACEOF 8966 if ac_fn_c_try_compile "$LINENO" 8967 then : 8968 xorg_cv_cc_flag_unknown_warning_option=yes 8969 else case e in #( 8970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8971 esac 8972 fi 8973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8974 esac 8975 fi 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8979 CFLAGS="$xorg_testset_save_CFLAGS" 8980 fi 8981 8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8985 fi 8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8990 then : 8991 printf %s "(cached) " >&6 8992 else case e in #( 8993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994 /* end confdefs.h. */ 8995 int i; 8996 _ACEOF 8997 if ac_fn_c_try_compile "$LINENO" 8998 then : 8999 xorg_cv_cc_flag_unused_command_line_argument=yes 9000 else case e in #( 9001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9002 esac 9003 fi 9004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9005 esac 9006 fi 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011 fi 9012 9013 found="no" 9014 9015 if test $found = "no" ; then 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 fi 9019 9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9022 fi 9023 9024 CFLAGS="$CFLAGS -Werror=address" 9025 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9027 printf %s "checking if $CC supports -Werror=address... " >&6; } 9028 cacheid=xorg_cv_cc_flag__Werror_address 9029 if eval test \${$cacheid+y} 9030 then : 9031 printf %s "(cached) " >&6 9032 else case e in #( 9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034 /* end confdefs.h. */ 9035 int i; 9036 int 9037 main (void) 9038 { 9039 9040 ; 9041 return 0; 9042 } 9043 _ACEOF 9044 if ac_fn_c_try_link "$LINENO" 9045 then : 9046 eval $cacheid=yes 9047 else case e in #( 9048 e) eval $cacheid=no ;; 9049 esac 9050 fi 9051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9052 conftest$ac_exeext conftest.$ac_ext ;; 9053 esac 9054 fi 9055 9056 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058 9059 eval supported=\$$cacheid 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9061 printf "%s\n" "$supported" >&6; } 9062 if test "$supported" = "yes" ; then 9063 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9064 found="yes" 9065 fi 9066 fi 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 xorg_testset_save_CFLAGS="$CFLAGS" 9083 9084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9088 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9089 then : 9090 printf %s "(cached) " >&6 9091 else case e in #( 9092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093 /* end confdefs.h. */ 9094 int i; 9095 _ACEOF 9096 if ac_fn_c_try_compile "$LINENO" 9097 then : 9098 xorg_cv_cc_flag_unknown_warning_option=yes 9099 else case e in #( 9100 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9101 esac 9102 fi 9103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9104 esac 9105 fi 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110 fi 9111 9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9115 fi 9116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9120 then : 9121 printf %s "(cached) " >&6 9122 else case e in #( 9123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124 /* end confdefs.h. */ 9125 int i; 9126 _ACEOF 9127 if ac_fn_c_try_compile "$LINENO" 9128 then : 9129 xorg_cv_cc_flag_unused_command_line_argument=yes 9130 else case e in #( 9131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9132 esac 9133 fi 9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9135 esac 9136 fi 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9140 CFLAGS="$xorg_testset_save_CFLAGS" 9141 fi 9142 9143 found="no" 9144 9145 if test $found = "no" ; then 9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 fi 9149 9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 fi 9153 9154 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9155 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9157 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9158 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9159 if eval test \${$cacheid+y} 9160 then : 9161 printf %s "(cached) " >&6 9162 else case e in #( 9163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164 /* end confdefs.h. */ 9165 int i; 9166 int 9167 main (void) 9168 { 9169 9170 ; 9171 return 0; 9172 } 9173 _ACEOF 9174 if ac_fn_c_try_link "$LINENO" 9175 then : 9176 eval $cacheid=yes 9177 else case e in #( 9178 e) eval $cacheid=no ;; 9179 esac 9180 fi 9181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9182 conftest$ac_exeext conftest.$ac_ext ;; 9183 esac 9184 fi 9185 9186 9187 CFLAGS="$xorg_testset_save_CFLAGS" 9188 9189 eval supported=\$$cacheid 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9191 printf "%s\n" "$supported" >&6; } 9192 if test "$supported" = "yes" ; then 9193 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9194 found="yes" 9195 fi 9196 fi 9197 9198 if test $found = "no" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 9203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9205 fi 9206 9207 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9208 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9210 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9211 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9212 if eval test \${$cacheid+y} 9213 then : 9214 printf %s "(cached) " >&6 9215 else case e in #( 9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217 /* end confdefs.h. */ 9218 int i; 9219 int 9220 main (void) 9221 { 9222 9223 ; 9224 return 0; 9225 } 9226 _ACEOF 9227 if ac_fn_c_try_link "$LINENO" 9228 then : 9229 eval $cacheid=yes 9230 else case e in #( 9231 e) eval $cacheid=no ;; 9232 esac 9233 fi 9234 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9235 conftest$ac_exeext conftest.$ac_ext ;; 9236 esac 9237 fi 9238 9239 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241 9242 eval supported=\$$cacheid 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9244 printf "%s\n" "$supported" >&6; } 9245 if test "$supported" = "yes" ; then 9246 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9247 found="yes" 9248 fi 9249 fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 xorg_testset_save_CFLAGS="$CFLAGS" 9266 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9272 then : 9273 printf %s "(cached) " >&6 9274 else case e in #( 9275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276 /* end confdefs.h. */ 9277 int i; 9278 _ACEOF 9279 if ac_fn_c_try_compile "$LINENO" 9280 then : 9281 xorg_cv_cc_flag_unknown_warning_option=yes 9282 else case e in #( 9283 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9284 esac 9285 fi 9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9287 esac 9288 fi 9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9290 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9292 CFLAGS="$xorg_testset_save_CFLAGS" 9293 fi 9294 9295 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 fi 9299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9301 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9302 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9303 then : 9304 printf %s "(cached) " >&6 9305 else case e in #( 9306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9307 /* end confdefs.h. */ 9308 int i; 9309 _ACEOF 9310 if ac_fn_c_try_compile "$LINENO" 9311 then : 9312 xorg_cv_cc_flag_unused_command_line_argument=yes 9313 else case e in #( 9314 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9315 esac 9316 fi 9317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9318 esac 9319 fi 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9323 CFLAGS="$xorg_testset_save_CFLAGS" 9324 fi 9325 9326 found="no" 9327 9328 if test $found = "no" ; then 9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 fi 9332 9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335 fi 9336 9337 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9338 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9340 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9341 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9342 if eval test \${$cacheid+y} 9343 then : 9344 printf %s "(cached) " >&6 9345 else case e in #( 9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347 /* end confdefs.h. */ 9348 int i; 9349 int 9350 main (void) 9351 { 9352 9353 ; 9354 return 0; 9355 } 9356 _ACEOF 9357 if ac_fn_c_try_link "$LINENO" 9358 then : 9359 eval $cacheid=yes 9360 else case e in #( 9361 e) eval $cacheid=no ;; 9362 esac 9363 fi 9364 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9365 conftest$ac_exeext conftest.$ac_ext ;; 9366 esac 9367 fi 9368 9369 9370 CFLAGS="$xorg_testset_save_CFLAGS" 9371 9372 eval supported=\$$cacheid 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9374 printf "%s\n" "$supported" >&6; } 9375 if test "$supported" = "yes" ; then 9376 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9377 found="yes" 9378 fi 9379 fi 9380 9381 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9382 else 9383 { 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 9384 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;} 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 xorg_testset_save_CFLAGS="$CFLAGS" 9399 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9404 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9405 then : 9406 printf %s "(cached) " >&6 9407 else case e in #( 9408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409 /* end confdefs.h. */ 9410 int i; 9411 _ACEOF 9412 if ac_fn_c_try_compile "$LINENO" 9413 then : 9414 xorg_cv_cc_flag_unknown_warning_option=yes 9415 else case e in #( 9416 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9417 esac 9418 fi 9419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9420 esac 9421 fi 9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9423 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426 fi 9427 9428 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9434 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9435 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9436 then : 9437 printf %s "(cached) " >&6 9438 else case e in #( 9439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440 /* end confdefs.h. */ 9441 int i; 9442 _ACEOF 9443 if ac_fn_c_try_compile "$LINENO" 9444 then : 9445 xorg_cv_cc_flag_unused_command_line_argument=yes 9446 else case e in #( 9447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9448 esac 9449 fi 9450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9451 esac 9452 fi 9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457 fi 9458 9459 found="no" 9460 9461 if test $found = "no" ; then 9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9464 fi 9465 9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9468 fi 9469 9470 CFLAGS="$CFLAGS -Wimplicit" 9471 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9473 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9474 cacheid=xorg_cv_cc_flag__Wimplicit 9475 if eval test \${$cacheid+y} 9476 then : 9477 printf %s "(cached) " >&6 9478 else case e in #( 9479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480 /* end confdefs.h. */ 9481 int i; 9482 int 9483 main (void) 9484 { 9485 9486 ; 9487 return 0; 9488 } 9489 _ACEOF 9490 if ac_fn_c_try_link "$LINENO" 9491 then : 9492 eval $cacheid=yes 9493 else case e in #( 9494 e) eval $cacheid=no ;; 9495 esac 9496 fi 9497 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9498 conftest$ac_exeext conftest.$ac_ext ;; 9499 esac 9500 fi 9501 9502 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504 9505 eval supported=\$$cacheid 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9507 printf "%s\n" "$supported" >&6; } 9508 if test "$supported" = "yes" ; then 9509 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9510 found="yes" 9511 fi 9512 fi 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 xorg_testset_save_CFLAGS="$CFLAGS" 9529 9530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9534 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9535 then : 9536 printf %s "(cached) " >&6 9537 else case e in #( 9538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539 /* end confdefs.h. */ 9540 int i; 9541 _ACEOF 9542 if ac_fn_c_try_compile "$LINENO" 9543 then : 9544 xorg_cv_cc_flag_unknown_warning_option=yes 9545 else case e in #( 9546 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9547 esac 9548 fi 9549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9550 esac 9551 fi 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9556 fi 9557 9558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9566 then : 9567 printf %s "(cached) " >&6 9568 else case e in #( 9569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570 /* end confdefs.h. */ 9571 int i; 9572 _ACEOF 9573 if ac_fn_c_try_compile "$LINENO" 9574 then : 9575 xorg_cv_cc_flag_unused_command_line_argument=yes 9576 else case e in #( 9577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9578 esac 9579 fi 9580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9581 esac 9582 fi 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9586 CFLAGS="$xorg_testset_save_CFLAGS" 9587 fi 9588 9589 found="no" 9590 9591 if test $found = "no" ; then 9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 fi 9595 9596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9598 fi 9599 9600 CFLAGS="$CFLAGS -Wnonnull" 9601 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9603 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9604 cacheid=xorg_cv_cc_flag__Wnonnull 9605 if eval test \${$cacheid+y} 9606 then : 9607 printf %s "(cached) " >&6 9608 else case e in #( 9609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610 /* end confdefs.h. */ 9611 int i; 9612 int 9613 main (void) 9614 { 9615 9616 ; 9617 return 0; 9618 } 9619 _ACEOF 9620 if ac_fn_c_try_link "$LINENO" 9621 then : 9622 eval $cacheid=yes 9623 else case e in #( 9624 e) eval $cacheid=no ;; 9625 esac 9626 fi 9627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9628 conftest$ac_exeext conftest.$ac_ext ;; 9629 esac 9630 fi 9631 9632 9633 CFLAGS="$xorg_testset_save_CFLAGS" 9634 9635 eval supported=\$$cacheid 9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9637 printf "%s\n" "$supported" >&6; } 9638 if test "$supported" = "yes" ; then 9639 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9640 found="yes" 9641 fi 9642 fi 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 xorg_testset_save_CFLAGS="$CFLAGS" 9659 9660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9664 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9665 then : 9666 printf %s "(cached) " >&6 9667 else case e in #( 9668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669 /* end confdefs.h. */ 9670 int i; 9671 _ACEOF 9672 if ac_fn_c_try_compile "$LINENO" 9673 then : 9674 xorg_cv_cc_flag_unknown_warning_option=yes 9675 else case e in #( 9676 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9677 esac 9678 fi 9679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9680 esac 9681 fi 9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9685 CFLAGS="$xorg_testset_save_CFLAGS" 9686 fi 9687 9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9691 fi 9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9696 then : 9697 printf %s "(cached) " >&6 9698 else case e in #( 9699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700 /* end confdefs.h. */ 9701 int i; 9702 _ACEOF 9703 if ac_fn_c_try_compile "$LINENO" 9704 then : 9705 xorg_cv_cc_flag_unused_command_line_argument=yes 9706 else case e in #( 9707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9708 esac 9709 fi 9710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9711 esac 9712 fi 9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717 fi 9718 9719 found="no" 9720 9721 if test $found = "no" ; then 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9728 fi 9729 9730 CFLAGS="$CFLAGS -Winit-self" 9731 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9733 printf %s "checking if $CC supports -Winit-self... " >&6; } 9734 cacheid=xorg_cv_cc_flag__Winit_self 9735 if eval test \${$cacheid+y} 9736 then : 9737 printf %s "(cached) " >&6 9738 else case e in #( 9739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740 /* end confdefs.h. */ 9741 int i; 9742 int 9743 main (void) 9744 { 9745 9746 ; 9747 return 0; 9748 } 9749 _ACEOF 9750 if ac_fn_c_try_link "$LINENO" 9751 then : 9752 eval $cacheid=yes 9753 else case e in #( 9754 e) eval $cacheid=no ;; 9755 esac 9756 fi 9757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9758 conftest$ac_exeext conftest.$ac_ext ;; 9759 esac 9760 fi 9761 9762 9763 CFLAGS="$xorg_testset_save_CFLAGS" 9764 9765 eval supported=\$$cacheid 9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9767 printf "%s\n" "$supported" >&6; } 9768 if test "$supported" = "yes" ; then 9769 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9770 found="yes" 9771 fi 9772 fi 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 xorg_testset_save_CFLAGS="$CFLAGS" 9789 9790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9794 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9795 then : 9796 printf %s "(cached) " >&6 9797 else case e in #( 9798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799 /* end confdefs.h. */ 9800 int i; 9801 _ACEOF 9802 if ac_fn_c_try_compile "$LINENO" 9803 then : 9804 xorg_cv_cc_flag_unknown_warning_option=yes 9805 else case e in #( 9806 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9807 esac 9808 fi 9809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9810 esac 9811 fi 9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9813 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9815 CFLAGS="$xorg_testset_save_CFLAGS" 9816 fi 9817 9818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 fi 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9826 then : 9827 printf %s "(cached) " >&6 9828 else case e in #( 9829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830 /* end confdefs.h. */ 9831 int i; 9832 _ACEOF 9833 if ac_fn_c_try_compile "$LINENO" 9834 then : 9835 xorg_cv_cc_flag_unused_command_line_argument=yes 9836 else case e in #( 9837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9838 esac 9839 fi 9840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9841 esac 9842 fi 9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9846 CFLAGS="$xorg_testset_save_CFLAGS" 9847 fi 9848 9849 found="no" 9850 9851 if test $found = "no" ; then 9852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9854 fi 9855 9856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9858 fi 9859 9860 CFLAGS="$CFLAGS -Wmain" 9861 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9863 printf %s "checking if $CC supports -Wmain... " >&6; } 9864 cacheid=xorg_cv_cc_flag__Wmain 9865 if eval test \${$cacheid+y} 9866 then : 9867 printf %s "(cached) " >&6 9868 else case e in #( 9869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9870 /* end confdefs.h. */ 9871 int i; 9872 int 9873 main (void) 9874 { 9875 9876 ; 9877 return 0; 9878 } 9879 _ACEOF 9880 if ac_fn_c_try_link "$LINENO" 9881 then : 9882 eval $cacheid=yes 9883 else case e in #( 9884 e) eval $cacheid=no ;; 9885 esac 9886 fi 9887 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9888 conftest$ac_exeext conftest.$ac_ext ;; 9889 esac 9890 fi 9891 9892 9893 CFLAGS="$xorg_testset_save_CFLAGS" 9894 9895 eval supported=\$$cacheid 9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9897 printf "%s\n" "$supported" >&6; } 9898 if test "$supported" = "yes" ; then 9899 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9900 found="yes" 9901 fi 9902 fi 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 xorg_testset_save_CFLAGS="$CFLAGS" 9919 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9924 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9925 then : 9926 printf %s "(cached) " >&6 9927 else case e in #( 9928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9929 /* end confdefs.h. */ 9930 int i; 9931 _ACEOF 9932 if ac_fn_c_try_compile "$LINENO" 9933 then : 9934 xorg_cv_cc_flag_unknown_warning_option=yes 9935 else case e in #( 9936 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9937 esac 9938 fi 9939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9940 esac 9941 fi 9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9945 CFLAGS="$xorg_testset_save_CFLAGS" 9946 fi 9947 9948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9956 then : 9957 printf %s "(cached) " >&6 9958 else case e in #( 9959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960 /* end confdefs.h. */ 9961 int i; 9962 _ACEOF 9963 if ac_fn_c_try_compile "$LINENO" 9964 then : 9965 xorg_cv_cc_flag_unused_command_line_argument=yes 9966 else case e in #( 9967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9968 esac 9969 fi 9970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9971 esac 9972 fi 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977 fi 9978 9979 found="no" 9980 9981 if test $found = "no" ; then 9982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 fi 9985 9986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9988 fi 9989 9990 CFLAGS="$CFLAGS -Wmissing-braces" 9991 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9993 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9994 cacheid=xorg_cv_cc_flag__Wmissing_braces 9995 if eval test \${$cacheid+y} 9996 then : 9997 printf %s "(cached) " >&6 9998 else case e in #( 9999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10000 /* end confdefs.h. */ 10001 int i; 10002 int 10003 main (void) 10004 { 10005 10006 ; 10007 return 0; 10008 } 10009 _ACEOF 10010 if ac_fn_c_try_link "$LINENO" 10011 then : 10012 eval $cacheid=yes 10013 else case e in #( 10014 e) eval $cacheid=no ;; 10015 esac 10016 fi 10017 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10018 conftest$ac_exeext conftest.$ac_ext ;; 10019 esac 10020 fi 10021 10022 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024 10025 eval supported=\$$cacheid 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10027 printf "%s\n" "$supported" >&6; } 10028 if test "$supported" = "yes" ; then 10029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10030 found="yes" 10031 fi 10032 fi 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 xorg_testset_save_CFLAGS="$CFLAGS" 10049 10050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10054 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10055 then : 10056 printf %s "(cached) " >&6 10057 else case e in #( 10058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059 /* end confdefs.h. */ 10060 int i; 10061 _ACEOF 10062 if ac_fn_c_try_compile "$LINENO" 10063 then : 10064 xorg_cv_cc_flag_unknown_warning_option=yes 10065 else case e in #( 10066 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10067 esac 10068 fi 10069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10070 esac 10071 fi 10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076 fi 10077 10078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10086 then : 10087 printf %s "(cached) " >&6 10088 else case e in #( 10089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10090 /* end confdefs.h. */ 10091 int i; 10092 _ACEOF 10093 if ac_fn_c_try_compile "$LINENO" 10094 then : 10095 xorg_cv_cc_flag_unused_command_line_argument=yes 10096 else case e in #( 10097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10098 esac 10099 fi 10100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10101 esac 10102 fi 10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10106 CFLAGS="$xorg_testset_save_CFLAGS" 10107 fi 10108 10109 found="no" 10110 10111 if test $found = "no" ; then 10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 fi 10115 10116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10118 fi 10119 10120 CFLAGS="$CFLAGS -Wsequence-point" 10121 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10123 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10124 cacheid=xorg_cv_cc_flag__Wsequence_point 10125 if eval test \${$cacheid+y} 10126 then : 10127 printf %s "(cached) " >&6 10128 else case e in #( 10129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130 /* end confdefs.h. */ 10131 int i; 10132 int 10133 main (void) 10134 { 10135 10136 ; 10137 return 0; 10138 } 10139 _ACEOF 10140 if ac_fn_c_try_link "$LINENO" 10141 then : 10142 eval $cacheid=yes 10143 else case e in #( 10144 e) eval $cacheid=no ;; 10145 esac 10146 fi 10147 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10148 conftest$ac_exeext conftest.$ac_ext ;; 10149 esac 10150 fi 10151 10152 10153 CFLAGS="$xorg_testset_save_CFLAGS" 10154 10155 eval supported=\$$cacheid 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10157 printf "%s\n" "$supported" >&6; } 10158 if test "$supported" = "yes" ; then 10159 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10160 found="yes" 10161 fi 10162 fi 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 xorg_testset_save_CFLAGS="$CFLAGS" 10179 10180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10184 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10185 then : 10186 printf %s "(cached) " >&6 10187 else case e in #( 10188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189 /* end confdefs.h. */ 10190 int i; 10191 _ACEOF 10192 if ac_fn_c_try_compile "$LINENO" 10193 then : 10194 xorg_cv_cc_flag_unknown_warning_option=yes 10195 else case e in #( 10196 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10197 esac 10198 fi 10199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10200 esac 10201 fi 10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10205 CFLAGS="$xorg_testset_save_CFLAGS" 10206 fi 10207 10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10216 then : 10217 printf %s "(cached) " >&6 10218 else case e in #( 10219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220 /* end confdefs.h. */ 10221 int i; 10222 _ACEOF 10223 if ac_fn_c_try_compile "$LINENO" 10224 then : 10225 xorg_cv_cc_flag_unused_command_line_argument=yes 10226 else case e in #( 10227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10228 esac 10229 fi 10230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10231 esac 10232 fi 10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237 fi 10238 10239 found="no" 10240 10241 if test $found = "no" ; then 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 fi 10245 10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10248 fi 10249 10250 CFLAGS="$CFLAGS -Wreturn-type" 10251 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10253 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10254 cacheid=xorg_cv_cc_flag__Wreturn_type 10255 if eval test \${$cacheid+y} 10256 then : 10257 printf %s "(cached) " >&6 10258 else case e in #( 10259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10260 /* end confdefs.h. */ 10261 int i; 10262 int 10263 main (void) 10264 { 10265 10266 ; 10267 return 0; 10268 } 10269 _ACEOF 10270 if ac_fn_c_try_link "$LINENO" 10271 then : 10272 eval $cacheid=yes 10273 else case e in #( 10274 e) eval $cacheid=no ;; 10275 esac 10276 fi 10277 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10278 conftest$ac_exeext conftest.$ac_ext ;; 10279 esac 10280 fi 10281 10282 10283 CFLAGS="$xorg_testset_save_CFLAGS" 10284 10285 eval supported=\$$cacheid 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10287 printf "%s\n" "$supported" >&6; } 10288 if test "$supported" = "yes" ; then 10289 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10290 found="yes" 10291 fi 10292 fi 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 xorg_testset_save_CFLAGS="$CFLAGS" 10309 10310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10314 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10315 then : 10316 printf %s "(cached) " >&6 10317 else case e in #( 10318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319 /* end confdefs.h. */ 10320 int i; 10321 _ACEOF 10322 if ac_fn_c_try_compile "$LINENO" 10323 then : 10324 xorg_cv_cc_flag_unknown_warning_option=yes 10325 else case e in #( 10326 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10327 esac 10328 fi 10329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10330 esac 10331 fi 10332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10333 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10335 CFLAGS="$xorg_testset_save_CFLAGS" 10336 fi 10337 10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10341 fi 10342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10346 then : 10347 printf %s "(cached) " >&6 10348 else case e in #( 10349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350 /* end confdefs.h. */ 10351 int i; 10352 _ACEOF 10353 if ac_fn_c_try_compile "$LINENO" 10354 then : 10355 xorg_cv_cc_flag_unused_command_line_argument=yes 10356 else case e in #( 10357 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10358 esac 10359 fi 10360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10361 esac 10362 fi 10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10364 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367 fi 10368 10369 found="no" 10370 10371 if test $found = "no" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378 fi 10379 10380 CFLAGS="$CFLAGS -Wtrigraphs" 10381 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10383 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10384 cacheid=xorg_cv_cc_flag__Wtrigraphs 10385 if eval test \${$cacheid+y} 10386 then : 10387 printf %s "(cached) " >&6 10388 else case e in #( 10389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390 /* end confdefs.h. */ 10391 int i; 10392 int 10393 main (void) 10394 { 10395 10396 ; 10397 return 0; 10398 } 10399 _ACEOF 10400 if ac_fn_c_try_link "$LINENO" 10401 then : 10402 eval $cacheid=yes 10403 else case e in #( 10404 e) eval $cacheid=no ;; 10405 esac 10406 fi 10407 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10408 conftest$ac_exeext conftest.$ac_ext ;; 10409 esac 10410 fi 10411 10412 10413 CFLAGS="$xorg_testset_save_CFLAGS" 10414 10415 eval supported=\$$cacheid 10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10417 printf "%s\n" "$supported" >&6; } 10418 if test "$supported" = "yes" ; then 10419 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10420 found="yes" 10421 fi 10422 fi 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 xorg_testset_save_CFLAGS="$CFLAGS" 10439 10440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10443 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10444 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10445 then : 10446 printf %s "(cached) " >&6 10447 else case e in #( 10448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449 /* end confdefs.h. */ 10450 int i; 10451 _ACEOF 10452 if ac_fn_c_try_compile "$LINENO" 10453 then : 10454 xorg_cv_cc_flag_unknown_warning_option=yes 10455 else case e in #( 10456 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10457 esac 10458 fi 10459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10460 esac 10461 fi 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10465 CFLAGS="$xorg_testset_save_CFLAGS" 10466 fi 10467 10468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10471 fi 10472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10476 then : 10477 printf %s "(cached) " >&6 10478 else case e in #( 10479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10480 /* end confdefs.h. */ 10481 int i; 10482 _ACEOF 10483 if ac_fn_c_try_compile "$LINENO" 10484 then : 10485 xorg_cv_cc_flag_unused_command_line_argument=yes 10486 else case e in #( 10487 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10488 esac 10489 fi 10490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10491 esac 10492 fi 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10494 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10496 CFLAGS="$xorg_testset_save_CFLAGS" 10497 fi 10498 10499 found="no" 10500 10501 if test $found = "no" ; then 10502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10504 fi 10505 10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10508 fi 10509 10510 CFLAGS="$CFLAGS -Warray-bounds" 10511 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10513 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10514 cacheid=xorg_cv_cc_flag__Warray_bounds 10515 if eval test \${$cacheid+y} 10516 then : 10517 printf %s "(cached) " >&6 10518 else case e in #( 10519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10520 /* end confdefs.h. */ 10521 int i; 10522 int 10523 main (void) 10524 { 10525 10526 ; 10527 return 0; 10528 } 10529 _ACEOF 10530 if ac_fn_c_try_link "$LINENO" 10531 then : 10532 eval $cacheid=yes 10533 else case e in #( 10534 e) eval $cacheid=no ;; 10535 esac 10536 fi 10537 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10538 conftest$ac_exeext conftest.$ac_ext ;; 10539 esac 10540 fi 10541 10542 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544 10545 eval supported=\$$cacheid 10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10547 printf "%s\n" "$supported" >&6; } 10548 if test "$supported" = "yes" ; then 10549 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10550 found="yes" 10551 fi 10552 fi 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 xorg_testset_save_CFLAGS="$CFLAGS" 10569 10570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10574 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10575 then : 10576 printf %s "(cached) " >&6 10577 else case e in #( 10578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579 /* end confdefs.h. */ 10580 int i; 10581 _ACEOF 10582 if ac_fn_c_try_compile "$LINENO" 10583 then : 10584 xorg_cv_cc_flag_unknown_warning_option=yes 10585 else case e in #( 10586 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10587 esac 10588 fi 10589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10590 esac 10591 fi 10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10593 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10595 CFLAGS="$xorg_testset_save_CFLAGS" 10596 fi 10597 10598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10601 fi 10602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10605 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10606 then : 10607 printf %s "(cached) " >&6 10608 else case e in #( 10609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10610 /* end confdefs.h. */ 10611 int i; 10612 _ACEOF 10613 if ac_fn_c_try_compile "$LINENO" 10614 then : 10615 xorg_cv_cc_flag_unused_command_line_argument=yes 10616 else case e in #( 10617 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10618 esac 10619 fi 10620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10621 esac 10622 fi 10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10624 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10626 CFLAGS="$xorg_testset_save_CFLAGS" 10627 fi 10628 10629 found="no" 10630 10631 if test $found = "no" ; then 10632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10634 fi 10635 10636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10638 fi 10639 10640 CFLAGS="$CFLAGS -Wwrite-strings" 10641 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10643 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10644 cacheid=xorg_cv_cc_flag__Wwrite_strings 10645 if eval test \${$cacheid+y} 10646 then : 10647 printf %s "(cached) " >&6 10648 else case e in #( 10649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10650 /* end confdefs.h. */ 10651 int i; 10652 int 10653 main (void) 10654 { 10655 10656 ; 10657 return 0; 10658 } 10659 _ACEOF 10660 if ac_fn_c_try_link "$LINENO" 10661 then : 10662 eval $cacheid=yes 10663 else case e in #( 10664 e) eval $cacheid=no ;; 10665 esac 10666 fi 10667 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10668 conftest$ac_exeext conftest.$ac_ext ;; 10669 esac 10670 fi 10671 10672 10673 CFLAGS="$xorg_testset_save_CFLAGS" 10674 10675 eval supported=\$$cacheid 10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10677 printf "%s\n" "$supported" >&6; } 10678 if test "$supported" = "yes" ; then 10679 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10680 found="yes" 10681 fi 10682 fi 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 xorg_testset_save_CFLAGS="$CFLAGS" 10699 10700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10703 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10704 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10705 then : 10706 printf %s "(cached) " >&6 10707 else case e in #( 10708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10709 /* end confdefs.h. */ 10710 int i; 10711 _ACEOF 10712 if ac_fn_c_try_compile "$LINENO" 10713 then : 10714 xorg_cv_cc_flag_unknown_warning_option=yes 10715 else case e in #( 10716 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10717 esac 10718 fi 10719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10720 esac 10721 fi 10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10725 CFLAGS="$xorg_testset_save_CFLAGS" 10726 fi 10727 10728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10731 fi 10732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10736 then : 10737 printf %s "(cached) " >&6 10738 else case e in #( 10739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740 /* end confdefs.h. */ 10741 int i; 10742 _ACEOF 10743 if ac_fn_c_try_compile "$LINENO" 10744 then : 10745 xorg_cv_cc_flag_unused_command_line_argument=yes 10746 else case e in #( 10747 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10748 esac 10749 fi 10750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10751 esac 10752 fi 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10754 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10756 CFLAGS="$xorg_testset_save_CFLAGS" 10757 fi 10758 10759 found="no" 10760 10761 if test $found = "no" ; then 10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10764 fi 10765 10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10768 fi 10769 10770 CFLAGS="$CFLAGS -Waddress" 10771 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10773 printf %s "checking if $CC supports -Waddress... " >&6; } 10774 cacheid=xorg_cv_cc_flag__Waddress 10775 if eval test \${$cacheid+y} 10776 then : 10777 printf %s "(cached) " >&6 10778 else case e in #( 10779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10780 /* end confdefs.h. */ 10781 int i; 10782 int 10783 main (void) 10784 { 10785 10786 ; 10787 return 0; 10788 } 10789 _ACEOF 10790 if ac_fn_c_try_link "$LINENO" 10791 then : 10792 eval $cacheid=yes 10793 else case e in #( 10794 e) eval $cacheid=no ;; 10795 esac 10796 fi 10797 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10798 conftest$ac_exeext conftest.$ac_ext ;; 10799 esac 10800 fi 10801 10802 10803 CFLAGS="$xorg_testset_save_CFLAGS" 10804 10805 eval supported=\$$cacheid 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10807 printf "%s\n" "$supported" >&6; } 10808 if test "$supported" = "yes" ; then 10809 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10810 found="yes" 10811 fi 10812 fi 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 xorg_testset_save_CFLAGS="$CFLAGS" 10829 10830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10834 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10835 then : 10836 printf %s "(cached) " >&6 10837 else case e in #( 10838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10839 /* end confdefs.h. */ 10840 int i; 10841 _ACEOF 10842 if ac_fn_c_try_compile "$LINENO" 10843 then : 10844 xorg_cv_cc_flag_unknown_warning_option=yes 10845 else case e in #( 10846 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10847 esac 10848 fi 10849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10850 esac 10851 fi 10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10853 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10855 CFLAGS="$xorg_testset_save_CFLAGS" 10856 fi 10857 10858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10861 fi 10862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10866 then : 10867 printf %s "(cached) " >&6 10868 else case e in #( 10869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870 /* end confdefs.h. */ 10871 int i; 10872 _ACEOF 10873 if ac_fn_c_try_compile "$LINENO" 10874 then : 10875 xorg_cv_cc_flag_unused_command_line_argument=yes 10876 else case e in #( 10877 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10878 esac 10879 fi 10880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10881 esac 10882 fi 10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10886 CFLAGS="$xorg_testset_save_CFLAGS" 10887 fi 10888 10889 found="no" 10890 10891 if test $found = "no" ; then 10892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10894 fi 10895 10896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10898 fi 10899 10900 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10901 10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10903 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10904 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10905 if eval test \${$cacheid+y} 10906 then : 10907 printf %s "(cached) " >&6 10908 else case e in #( 10909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910 /* end confdefs.h. */ 10911 int i; 10912 int 10913 main (void) 10914 { 10915 10916 ; 10917 return 0; 10918 } 10919 _ACEOF 10920 if ac_fn_c_try_link "$LINENO" 10921 then : 10922 eval $cacheid=yes 10923 else case e in #( 10924 e) eval $cacheid=no ;; 10925 esac 10926 fi 10927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10928 conftest$ac_exeext conftest.$ac_ext ;; 10929 esac 10930 fi 10931 10932 10933 CFLAGS="$xorg_testset_save_CFLAGS" 10934 10935 eval supported=\$$cacheid 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10937 printf "%s\n" "$supported" >&6; } 10938 if test "$supported" = "yes" ; then 10939 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10940 found="yes" 10941 fi 10942 fi 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 xorg_testset_save_CFLAGS="$CFLAGS" 10959 10960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10964 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10965 then : 10966 printf %s "(cached) " >&6 10967 else case e in #( 10968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10969 /* end confdefs.h. */ 10970 int i; 10971 _ACEOF 10972 if ac_fn_c_try_compile "$LINENO" 10973 then : 10974 xorg_cv_cc_flag_unknown_warning_option=yes 10975 else case e in #( 10976 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10977 esac 10978 fi 10979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10980 esac 10981 fi 10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10985 CFLAGS="$xorg_testset_save_CFLAGS" 10986 fi 10987 10988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10991 fi 10992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10996 then : 10997 printf %s "(cached) " >&6 10998 else case e in #( 10999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000 /* end confdefs.h. */ 11001 int i; 11002 _ACEOF 11003 if ac_fn_c_try_compile "$LINENO" 11004 then : 11005 xorg_cv_cc_flag_unused_command_line_argument=yes 11006 else case e in #( 11007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11008 esac 11009 fi 11010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11011 esac 11012 fi 11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11016 CFLAGS="$xorg_testset_save_CFLAGS" 11017 fi 11018 11019 found="no" 11020 11021 if test $found = "no" ; then 11022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11024 fi 11025 11026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11028 fi 11029 11030 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11031 11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11033 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11034 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11035 if eval test \${$cacheid+y} 11036 then : 11037 printf %s "(cached) " >&6 11038 else case e in #( 11039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040 /* end confdefs.h. */ 11041 int i; 11042 int 11043 main (void) 11044 { 11045 11046 ; 11047 return 0; 11048 } 11049 _ACEOF 11050 if ac_fn_c_try_link "$LINENO" 11051 then : 11052 eval $cacheid=yes 11053 else case e in #( 11054 e) eval $cacheid=no ;; 11055 esac 11056 fi 11057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11058 conftest$ac_exeext conftest.$ac_ext ;; 11059 esac 11060 fi 11061 11062 11063 CFLAGS="$xorg_testset_save_CFLAGS" 11064 11065 eval supported=\$$cacheid 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11067 printf "%s\n" "$supported" >&6; } 11068 if test "$supported" = "yes" ; then 11069 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11070 found="yes" 11071 fi 11072 fi 11073 11074 11075 fi 11076 11077 11078 11079 11080 11081 11082 11083 CWARNFLAGS="$BASE_CFLAGS" 11084 if test "x$GCC" = xyes ; then 11085 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11086 fi 11087 11088 11089 11090 11091 11092 11093 11094 11095 # Check whether --enable-strict-compilation was given. 11096 if test ${enable_strict_compilation+y} 11097 then : 11098 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11099 else case e in #( 11100 e) STRICT_COMPILE=no ;; 11101 esac 11102 fi 11103 11104 11105 11106 11107 11108 11109 STRICT_CFLAGS="" 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 xorg_testset_save_CFLAGS="$CFLAGS" 11124 11125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11129 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11130 then : 11131 printf %s "(cached) " >&6 11132 else case e in #( 11133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134 /* end confdefs.h. */ 11135 int i; 11136 _ACEOF 11137 if ac_fn_c_try_compile "$LINENO" 11138 then : 11139 xorg_cv_cc_flag_unknown_warning_option=yes 11140 else case e in #( 11141 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11142 esac 11143 fi 11144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11145 esac 11146 fi 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11148 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11150 CFLAGS="$xorg_testset_save_CFLAGS" 11151 fi 11152 11153 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11156 fi 11157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11159 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11160 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11161 then : 11162 printf %s "(cached) " >&6 11163 else case e in #( 11164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11165 /* end confdefs.h. */ 11166 int i; 11167 _ACEOF 11168 if ac_fn_c_try_compile "$LINENO" 11169 then : 11170 xorg_cv_cc_flag_unused_command_line_argument=yes 11171 else case e in #( 11172 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11173 esac 11174 fi 11175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11176 esac 11177 fi 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11179 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11181 CFLAGS="$xorg_testset_save_CFLAGS" 11182 fi 11183 11184 found="no" 11185 11186 if test $found = "no" ; then 11187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11189 fi 11190 11191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11193 fi 11194 11195 CFLAGS="$CFLAGS -pedantic" 11196 11197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11198 printf %s "checking if $CC supports -pedantic... " >&6; } 11199 cacheid=xorg_cv_cc_flag__pedantic 11200 if eval test \${$cacheid+y} 11201 then : 11202 printf %s "(cached) " >&6 11203 else case e in #( 11204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11205 /* end confdefs.h. */ 11206 int i; 11207 int 11208 main (void) 11209 { 11210 11211 ; 11212 return 0; 11213 } 11214 _ACEOF 11215 if ac_fn_c_try_link "$LINENO" 11216 then : 11217 eval $cacheid=yes 11218 else case e in #( 11219 e) eval $cacheid=no ;; 11220 esac 11221 fi 11222 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11223 conftest$ac_exeext conftest.$ac_ext ;; 11224 esac 11225 fi 11226 11227 11228 CFLAGS="$xorg_testset_save_CFLAGS" 11229 11230 eval supported=\$$cacheid 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11232 printf "%s\n" "$supported" >&6; } 11233 if test "$supported" = "yes" ; then 11234 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11235 found="yes" 11236 fi 11237 fi 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 xorg_testset_save_CFLAGS="$CFLAGS" 11254 11255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11259 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11260 then : 11261 printf %s "(cached) " >&6 11262 else case e in #( 11263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264 /* end confdefs.h. */ 11265 int i; 11266 _ACEOF 11267 if ac_fn_c_try_compile "$LINENO" 11268 then : 11269 xorg_cv_cc_flag_unknown_warning_option=yes 11270 else case e in #( 11271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11272 esac 11273 fi 11274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11275 esac 11276 fi 11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11278 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11280 CFLAGS="$xorg_testset_save_CFLAGS" 11281 fi 11282 11283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11286 fi 11287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11289 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11290 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11291 then : 11292 printf %s "(cached) " >&6 11293 else case e in #( 11294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11295 /* end confdefs.h. */ 11296 int i; 11297 _ACEOF 11298 if ac_fn_c_try_compile "$LINENO" 11299 then : 11300 xorg_cv_cc_flag_unused_command_line_argument=yes 11301 else case e in #( 11302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11303 esac 11304 fi 11305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11306 esac 11307 fi 11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11311 CFLAGS="$xorg_testset_save_CFLAGS" 11312 fi 11313 11314 found="no" 11315 11316 if test $found = "no" ; then 11317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11319 fi 11320 11321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11323 fi 11324 11325 CFLAGS="$CFLAGS -Werror" 11326 11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11328 printf %s "checking if $CC supports -Werror... " >&6; } 11329 cacheid=xorg_cv_cc_flag__Werror 11330 if eval test \${$cacheid+y} 11331 then : 11332 printf %s "(cached) " >&6 11333 else case e in #( 11334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11335 /* end confdefs.h. */ 11336 int i; 11337 int 11338 main (void) 11339 { 11340 11341 ; 11342 return 0; 11343 } 11344 _ACEOF 11345 if ac_fn_c_try_link "$LINENO" 11346 then : 11347 eval $cacheid=yes 11348 else case e in #( 11349 e) eval $cacheid=no ;; 11350 esac 11351 fi 11352 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11353 conftest$ac_exeext conftest.$ac_ext ;; 11354 esac 11355 fi 11356 11357 11358 CFLAGS="$xorg_testset_save_CFLAGS" 11359 11360 eval supported=\$$cacheid 11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11362 printf "%s\n" "$supported" >&6; } 11363 if test "$supported" = "yes" ; then 11364 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11365 found="yes" 11366 fi 11367 fi 11368 11369 if test $found = "no" ; then 11370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11372 fi 11373 11374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11376 fi 11377 11378 CFLAGS="$CFLAGS -errwarn" 11379 11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11381 printf %s "checking if $CC supports -errwarn... " >&6; } 11382 cacheid=xorg_cv_cc_flag__errwarn 11383 if eval test \${$cacheid+y} 11384 then : 11385 printf %s "(cached) " >&6 11386 else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388 /* end confdefs.h. */ 11389 int i; 11390 int 11391 main (void) 11392 { 11393 11394 ; 11395 return 0; 11396 } 11397 _ACEOF 11398 if ac_fn_c_try_link "$LINENO" 11399 then : 11400 eval $cacheid=yes 11401 else case e in #( 11402 e) eval $cacheid=no ;; 11403 esac 11404 fi 11405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11406 conftest$ac_exeext conftest.$ac_ext ;; 11407 esac 11408 fi 11409 11410 11411 CFLAGS="$xorg_testset_save_CFLAGS" 11412 11413 eval supported=\$$cacheid 11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11415 printf "%s\n" "$supported" >&6; } 11416 if test "$supported" = "yes" ; then 11417 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11418 found="yes" 11419 fi 11420 fi 11421 11422 11423 11424 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11425 # activate it with -Werror, so we add it here explicitly. 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 xorg_testset_save_CFLAGS="$CFLAGS" 11440 11441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11445 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11446 then : 11447 printf %s "(cached) " >&6 11448 else case e in #( 11449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11450 /* end confdefs.h. */ 11451 int i; 11452 _ACEOF 11453 if ac_fn_c_try_compile "$LINENO" 11454 then : 11455 xorg_cv_cc_flag_unknown_warning_option=yes 11456 else case e in #( 11457 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11458 esac 11459 fi 11460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11461 esac 11462 fi 11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11466 CFLAGS="$xorg_testset_save_CFLAGS" 11467 fi 11468 11469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11472 fi 11473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11477 then : 11478 printf %s "(cached) " >&6 11479 else case e in #( 11480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481 /* end confdefs.h. */ 11482 int i; 11483 _ACEOF 11484 if ac_fn_c_try_compile "$LINENO" 11485 then : 11486 xorg_cv_cc_flag_unused_command_line_argument=yes 11487 else case e in #( 11488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11489 esac 11490 fi 11491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11492 esac 11493 fi 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11497 CFLAGS="$xorg_testset_save_CFLAGS" 11498 fi 11499 11500 found="no" 11501 11502 if test $found = "no" ; then 11503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11505 fi 11506 11507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11509 fi 11510 11511 CFLAGS="$CFLAGS -Werror=attributes" 11512 11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11514 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11515 cacheid=xorg_cv_cc_flag__Werror_attributes 11516 if eval test \${$cacheid+y} 11517 then : 11518 printf %s "(cached) " >&6 11519 else case e in #( 11520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521 /* end confdefs.h. */ 11522 int i; 11523 int 11524 main (void) 11525 { 11526 11527 ; 11528 return 0; 11529 } 11530 _ACEOF 11531 if ac_fn_c_try_link "$LINENO" 11532 then : 11533 eval $cacheid=yes 11534 else case e in #( 11535 e) eval $cacheid=no ;; 11536 esac 11537 fi 11538 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11539 conftest$ac_exeext conftest.$ac_ext ;; 11540 esac 11541 fi 11542 11543 11544 CFLAGS="$xorg_testset_save_CFLAGS" 11545 11546 eval supported=\$$cacheid 11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11548 printf "%s\n" "$supported" >&6; } 11549 if test "$supported" = "yes" ; then 11550 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11551 found="yes" 11552 fi 11553 fi 11554 11555 11556 11557 if test "x$STRICT_COMPILE" = "xyes"; then 11558 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11559 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11560 fi 11561 11562 11563 11564 11565 11566 11567 11568 11569 cat >>confdefs.h <<_ACEOF 11570 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11571 _ACEOF 11572 11573 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11574 if test "x$PVM" = "x"; then 11575 PVM="0" 11576 fi 11577 11578 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11579 11580 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11581 if test "x$PVP" = "x"; then 11582 PVP="0" 11583 fi 11584 11585 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11586 11587 11588 11589 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11590 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11591 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11592 touch \$(top_srcdir)/ChangeLog; \ 11593 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11594 11595 11596 11597 11598 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11599 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11600 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11601 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11602 touch \$(top_srcdir)/INSTALL; \ 11603 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11604 11605 11606 11607 11608 11609 11610 case $host_os in 11611 solaris*) 11612 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11613 # check for a man page file found in later versions that use 11614 # traditional section numbers instead 11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11616 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11617 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11618 then : 11619 printf %s "(cached) " >&6 11620 else case e in #( 11621 e) test "$cross_compiling" = yes && 11622 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11623 if test -r "/usr/share/man/man7/attributes.7"; then 11624 ac_cv_file__usr_share_man_man7_attributes_7=yes 11625 else 11626 ac_cv_file__usr_share_man_man7_attributes_7=no 11627 fi ;; 11628 esac 11629 fi 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11631 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11632 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11633 then : 11634 SYSV_MAN_SECTIONS=false 11635 else case e in #( 11636 e) SYSV_MAN_SECTIONS=true ;; 11637 esac 11638 fi 11639 11640 ;; 11641 *) SYSV_MAN_SECTIONS=false ;; 11642 esac 11643 11644 if test x$APP_MAN_SUFFIX = x ; then 11645 APP_MAN_SUFFIX=1 11646 fi 11647 if test x$APP_MAN_DIR = x ; then 11648 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11649 fi 11650 11651 if test x$LIB_MAN_SUFFIX = x ; then 11652 LIB_MAN_SUFFIX=3 11653 fi 11654 if test x$LIB_MAN_DIR = x ; then 11655 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11656 fi 11657 11658 if test x$FILE_MAN_SUFFIX = x ; then 11659 case $SYSV_MAN_SECTIONS in 11660 true) FILE_MAN_SUFFIX=4 ;; 11661 *) FILE_MAN_SUFFIX=5 ;; 11662 esac 11663 fi 11664 if test x$FILE_MAN_DIR = x ; then 11665 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11666 fi 11667 11668 if test x$MISC_MAN_SUFFIX = x ; then 11669 case $SYSV_MAN_SECTIONS in 11670 true) MISC_MAN_SUFFIX=5 ;; 11671 *) MISC_MAN_SUFFIX=7 ;; 11672 esac 11673 fi 11674 if test x$MISC_MAN_DIR = x ; then 11675 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11676 fi 11677 11678 if test x$DRIVER_MAN_SUFFIX = x ; then 11679 case $SYSV_MAN_SECTIONS in 11680 true) DRIVER_MAN_SUFFIX=7 ;; 11681 *) DRIVER_MAN_SUFFIX=4 ;; 11682 esac 11683 fi 11684 if test x$DRIVER_MAN_DIR = x ; then 11685 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11686 fi 11687 11688 if test x$ADMIN_MAN_SUFFIX = x ; then 11689 case $SYSV_MAN_SECTIONS in 11690 true) ADMIN_MAN_SUFFIX=1m ;; 11691 *) ADMIN_MAN_SUFFIX=8 ;; 11692 esac 11693 fi 11694 if test x$ADMIN_MAN_DIR = x ; then 11695 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11696 fi 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 XORG_MAN_PAGE="X Version 11" 11713 11714 MAN_SUBSTS="\ 11715 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11716 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11717 -e 's|__xservername__|Xorg|g' \ 11718 -e 's|__xconfigfile__|xorg.conf|g' \ 11719 -e 's|__projectroot__|\$(prefix)|g' \ 11720 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11721 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11722 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11723 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11724 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11725 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11726 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11727 11728 11729 11730 11731 AM_DEFAULT_VERBOSITY=0 11732 11733 11734 11735 11736 11737 11738 # Check whether --enable-specs was given. 11739 if test ${enable_specs+y} 11740 then : 11741 enableval=$enable_specs; build_specs=$enableval 11742 else case e in #( 11743 e) build_specs=yes ;; 11744 esac 11745 fi 11746 11747 11748 if test x$build_specs = xyes; then 11749 ENABLE_SPECS_TRUE= 11750 ENABLE_SPECS_FALSE='#' 11751 else 11752 ENABLE_SPECS_TRUE='#' 11753 ENABLE_SPECS_FALSE= 11754 fi 11755 11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 11757 printf %s "checking whether to build functional specifications... " >&6; } 11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 11759 printf "%s\n" "$build_specs" >&6; } 11760 11761 11762 11763 11764 11765 # Check whether --with-xmlto was given. 11766 if test ${with_xmlto+y} 11767 then : 11768 withval=$with_xmlto; use_xmlto=$withval 11769 else case e in #( 11770 e) use_xmlto=auto ;; 11771 esac 11772 fi 11773 11774 11775 11776 if test "x$use_xmlto" = x"auto"; then 11777 # Extract the first word of "xmlto", so it can be a program name with args. 11778 set dummy xmlto; ac_word=$2 11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11780 printf %s "checking for $ac_word... " >&6; } 11781 if test ${ac_cv_path_XMLTO+y} 11782 then : 11783 printf %s "(cached) " >&6 11784 else case e in #( 11785 e) case $XMLTO in 11786 [\\/]* | ?:[\\/]*) 11787 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11788 ;; 11789 *) 11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11791 for as_dir in $PATH 11792 do 11793 IFS=$as_save_IFS 11794 case $as_dir in #((( 11795 '') as_dir=./ ;; 11796 */) ;; 11797 *) as_dir=$as_dir/ ;; 11798 esac 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11801 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805 done 11806 done 11807 IFS=$as_save_IFS 11808 11809 ;; 11810 esac ;; 11811 esac 11812 fi 11813 XMLTO=$ac_cv_path_XMLTO 11814 if test -n "$XMLTO"; then 11815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11816 printf "%s\n" "$XMLTO" >&6; } 11817 else 11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11819 printf "%s\n" "no" >&6; } 11820 fi 11821 11822 11823 if test "x$XMLTO" = "x"; then 11824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11825 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11826 have_xmlto=no 11827 else 11828 have_xmlto=yes 11829 fi 11830 elif test "x$use_xmlto" = x"yes" ; then 11831 # Extract the first word of "xmlto", so it can be a program name with args. 11832 set dummy xmlto; ac_word=$2 11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11834 printf %s "checking for $ac_word... " >&6; } 11835 if test ${ac_cv_path_XMLTO+y} 11836 then : 11837 printf %s "(cached) " >&6 11838 else case e in #( 11839 e) case $XMLTO in 11840 [\\/]* | ?:[\\/]*) 11841 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11842 ;; 11843 *) 11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11845 for as_dir in $PATH 11846 do 11847 IFS=$as_save_IFS 11848 case $as_dir in #((( 11849 '') as_dir=./ ;; 11850 */) ;; 11851 *) as_dir=$as_dir/ ;; 11852 esac 11853 for ac_exec_ext in '' $ac_executable_extensions; do 11854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11855 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 11856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11857 break 2 11858 fi 11859 done 11860 done 11861 IFS=$as_save_IFS 11862 11863 ;; 11864 esac ;; 11865 esac 11866 fi 11867 XMLTO=$ac_cv_path_XMLTO 11868 if test -n "$XMLTO"; then 11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11870 printf "%s\n" "$XMLTO" >&6; } 11871 else 11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11873 printf "%s\n" "no" >&6; } 11874 fi 11875 11876 11877 if test "x$XMLTO" = "x"; then 11878 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11879 fi 11880 have_xmlto=yes 11881 elif test "x$use_xmlto" = x"no" ; then 11882 if test "x$XMLTO" != "x"; then 11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11884 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11885 fi 11886 have_xmlto=no 11887 else 11888 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11889 fi 11890 11891 # Test for a minimum version of xmlto, if provided. 11892 if test "$have_xmlto" = yes; then 11893 # scrape the xmlto version 11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11895 printf %s "checking the xmlto version... " >&6; } 11896 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11898 printf "%s\n" "$xmlto_version" >&6; } 11899 as_arg_v1=$xmlto_version 11900 as_arg_v2=0.0.22 11901 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11902 case $? in #( 11903 1) : 11904 if test "x$use_xmlto" = xauto; then 11905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 11906 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 11907 have_xmlto=no 11908 else 11909 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 11910 fi ;; #( 11911 0) : 11912 ;; #( 11913 2) : 11914 ;; #( 11915 *) : 11916 ;; 11917 esac 11918 fi 11919 11920 # Test for the ability of xmlto to generate a text target 11921 # 11922 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11923 # following test for empty XML docbook files. 11924 # For compatibility reasons use the following empty XML docbook file and if 11925 # it fails try it again with a non-empty XML file. 11926 have_xmlto_text=no 11927 cat > conftest.xml << "EOF" 11928 EOF 11929 if test "$have_xmlto" = yes 11930 then : 11931 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11932 then : 11933 have_xmlto_text=yes 11934 else case e in #( 11935 e) # Try it again with a non-empty XML file. 11936 cat > conftest.xml << "EOF" 11937 <x></x> 11938 EOF 11939 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 11940 then : 11941 have_xmlto_text=yes 11942 else case e in #( 11943 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11944 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 11945 esac 11946 fi ;; 11947 esac 11948 fi 11949 fi 11950 rm -f conftest.xml 11951 if test $have_xmlto_text = yes; then 11952 HAVE_XMLTO_TEXT_TRUE= 11953 HAVE_XMLTO_TEXT_FALSE='#' 11954 else 11955 HAVE_XMLTO_TEXT_TRUE='#' 11956 HAVE_XMLTO_TEXT_FALSE= 11957 fi 11958 11959 if test "$have_xmlto" = yes; then 11960 HAVE_XMLTO_TRUE= 11961 HAVE_XMLTO_FALSE='#' 11962 else 11963 HAVE_XMLTO_TRUE='#' 11964 HAVE_XMLTO_FALSE= 11965 fi 11966 11967 11968 11969 11970 11971 11972 # Check whether --with-fop was given. 11973 if test ${with_fop+y} 11974 then : 11975 withval=$with_fop; use_fop=$withval 11976 else case e in #( 11977 e) use_fop=auto ;; 11978 esac 11979 fi 11980 11981 11982 11983 if test "x$use_fop" = x"auto"; then 11984 # Extract the first word of "fop", so it can be a program name with args. 11985 set dummy fop; ac_word=$2 11986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11987 printf %s "checking for $ac_word... " >&6; } 11988 if test ${ac_cv_path_FOP+y} 11989 then : 11990 printf %s "(cached) " >&6 11991 else case e in #( 11992 e) case $FOP in 11993 [\\/]* | ?:[\\/]*) 11994 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11995 ;; 11996 *) 11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11998 for as_dir in $PATH 11999 do 12000 IFS=$as_save_IFS 12001 case $as_dir in #((( 12002 '') as_dir=./ ;; 12003 */) ;; 12004 *) as_dir=$as_dir/ ;; 12005 esac 12006 for ac_exec_ext in '' $ac_executable_extensions; do 12007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12008 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 12009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12010 break 2 12011 fi 12012 done 12013 done 12014 IFS=$as_save_IFS 12015 12016 ;; 12017 esac ;; 12018 esac 12019 fi 12020 FOP=$ac_cv_path_FOP 12021 if test -n "$FOP"; then 12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12023 printf "%s\n" "$FOP" >&6; } 12024 else 12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12026 printf "%s\n" "no" >&6; } 12027 fi 12028 12029 12030 if test "x$FOP" = "x"; then 12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12032 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12033 have_fop=no 12034 else 12035 have_fop=yes 12036 fi 12037 elif test "x$use_fop" = x"yes" ; then 12038 # Extract the first word of "fop", so it can be a program name with args. 12039 set dummy fop; ac_word=$2 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12041 printf %s "checking for $ac_word... " >&6; } 12042 if test ${ac_cv_path_FOP+y} 12043 then : 12044 printf %s "(cached) " >&6 12045 else case e in #( 12046 e) case $FOP in 12047 [\\/]* | ?:[\\/]*) 12048 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12049 ;; 12050 *) 12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12052 for as_dir in $PATH 12053 do 12054 IFS=$as_save_IFS 12055 case $as_dir in #((( 12056 '') as_dir=./ ;; 12057 */) ;; 12058 *) as_dir=$as_dir/ ;; 12059 esac 12060 for ac_exec_ext in '' $ac_executable_extensions; do 12061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12062 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 12063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12064 break 2 12065 fi 12066 done 12067 done 12068 IFS=$as_save_IFS 12069 12070 ;; 12071 esac ;; 12072 esac 12073 fi 12074 FOP=$ac_cv_path_FOP 12075 if test -n "$FOP"; then 12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12077 printf "%s\n" "$FOP" >&6; } 12078 else 12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12080 printf "%s\n" "no" >&6; } 12081 fi 12082 12083 12084 if test "x$FOP" = "x"; then 12085 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12086 fi 12087 have_fop=yes 12088 elif test "x$use_fop" = x"no" ; then 12089 if test "x$FOP" != "x"; then 12090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12091 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12092 fi 12093 have_fop=no 12094 else 12095 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12096 fi 12097 12098 # Test for a minimum version of fop, if provided. 12099 12100 if test "$have_fop" = yes; then 12101 HAVE_FOP_TRUE= 12102 HAVE_FOP_FALSE='#' 12103 else 12104 HAVE_FOP_TRUE='#' 12105 HAVE_FOP_FALSE= 12106 fi 12107 12108 12109 12110 12111 # Preserves the interface, should it be implemented later 12112 12113 12114 12115 # Check whether --with-xsltproc was given. 12116 if test ${with_xsltproc+y} 12117 then : 12118 withval=$with_xsltproc; use_xsltproc=$withval 12119 else case e in #( 12120 e) use_xsltproc=auto ;; 12121 esac 12122 fi 12123 12124 12125 12126 if test "x$use_xsltproc" = x"auto"; then 12127 # Extract the first word of "xsltproc", so it can be a program name with args. 12128 set dummy xsltproc; ac_word=$2 12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12130 printf %s "checking for $ac_word... " >&6; } 12131 if test ${ac_cv_path_XSLTPROC+y} 12132 then : 12133 printf %s "(cached) " >&6 12134 else case e in #( 12135 e) case $XSLTPROC in 12136 [\\/]* | ?:[\\/]*) 12137 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12138 ;; 12139 *) 12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12141 for as_dir in $PATH 12142 do 12143 IFS=$as_save_IFS 12144 case $as_dir in #((( 12145 '') as_dir=./ ;; 12146 */) ;; 12147 *) as_dir=$as_dir/ ;; 12148 esac 12149 for ac_exec_ext in '' $ac_executable_extensions; do 12150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12151 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 12152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12153 break 2 12154 fi 12155 done 12156 done 12157 IFS=$as_save_IFS 12158 12159 ;; 12160 esac ;; 12161 esac 12162 fi 12163 XSLTPROC=$ac_cv_path_XSLTPROC 12164 if test -n "$XSLTPROC"; then 12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12166 printf "%s\n" "$XSLTPROC" >&6; } 12167 else 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12169 printf "%s\n" "no" >&6; } 12170 fi 12171 12172 12173 if test "x$XSLTPROC" = "x"; then 12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12175 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12176 have_xsltproc=no 12177 else 12178 have_xsltproc=yes 12179 fi 12180 elif test "x$use_xsltproc" = x"yes" ; then 12181 # Extract the first word of "xsltproc", so it can be a program name with args. 12182 set dummy xsltproc; ac_word=$2 12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12184 printf %s "checking for $ac_word... " >&6; } 12185 if test ${ac_cv_path_XSLTPROC+y} 12186 then : 12187 printf %s "(cached) " >&6 12188 else case e in #( 12189 e) case $XSLTPROC in 12190 [\\/]* | ?:[\\/]*) 12191 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12192 ;; 12193 *) 12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12195 for as_dir in $PATH 12196 do 12197 IFS=$as_save_IFS 12198 case $as_dir in #((( 12199 '') as_dir=./ ;; 12200 */) ;; 12201 *) as_dir=$as_dir/ ;; 12202 esac 12203 for ac_exec_ext in '' $ac_executable_extensions; do 12204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12205 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 12206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12207 break 2 12208 fi 12209 done 12210 done 12211 IFS=$as_save_IFS 12212 12213 ;; 12214 esac ;; 12215 esac 12216 fi 12217 XSLTPROC=$ac_cv_path_XSLTPROC 12218 if test -n "$XSLTPROC"; then 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12220 printf "%s\n" "$XSLTPROC" >&6; } 12221 else 12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12223 printf "%s\n" "no" >&6; } 12224 fi 12225 12226 12227 if test "x$XSLTPROC" = "x"; then 12228 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12229 fi 12230 have_xsltproc=yes 12231 elif test "x$use_xsltproc" = x"no" ; then 12232 if test "x$XSLTPROC" != "x"; then 12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12234 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12235 fi 12236 have_xsltproc=no 12237 else 12238 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12239 fi 12240 12241 if test "$have_xsltproc" = yes; then 12242 HAVE_XSLTPROC_TRUE= 12243 HAVE_XSLTPROC_FALSE='#' 12244 else 12245 HAVE_XSLTPROC_TRUE='#' 12246 HAVE_XSLTPROC_FALSE= 12247 fi 12248 12249 12250 12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12252 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 12253 XORG_SGML_PATH= 12254 if test -n "$PKG_CONFIG" && \ 12255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12256 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12257 ac_status=$? 12258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12259 test $ac_status = 0; }; then 12260 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12261 else 12262 : 12263 12264 fi 12265 12266 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12267 # the path and the name of the doc stylesheet 12268 if test "x$XORG_SGML_PATH" != "x" ; then 12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12270 printf "%s\n" "$XORG_SGML_PATH" >&6; } 12271 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12272 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12273 else 12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12275 printf "%s\n" "no" >&6; } 12276 fi 12277 12278 12279 12280 12281 if test "x$XSL_STYLESHEET" != "x"; then 12282 HAVE_STYLESHEETS_TRUE= 12283 HAVE_STYLESHEETS_FALSE='#' 12284 else 12285 HAVE_STYLESHEETS_TRUE='#' 12286 HAVE_STYLESHEETS_FALSE= 12287 fi 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 if test -n "$PYTHON"; then 12298 # If the user set $PYTHON, use it and don't search something else. 12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5 12300 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; } 12301 prog="import sys 12302 # split strings by '.' and convert to numeric. Append some zeros 12303 # because we need at least 4 digits for the hex conversion. 12304 # map returns an iterator in Python 3.0 and a list in 2.x 12305 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 12306 minverhex = 0 12307 # xrange is not present in Python 3.0 and range returns an iterator 12308 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 12309 sys.exit(sys.hexversion < minverhex)" 12310 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 12311 ($PYTHON -c "$prog") >&5 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); } 12315 then : 12316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12317 printf "%s\n" "yes" >&6; } 12318 else case e in #( 12319 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12320 printf "%s\n" "no" >&6; } 12321 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; 12322 esac 12323 fi 12324 am_display_PYTHON=$PYTHON 12325 else 12326 # Otherwise, try each interpreter until we find one that satisfies 12327 # VERSION. 12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5 12329 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; } 12330 if test ${am_cv_pathless_PYTHON+y} 12331 then : 12332 printf %s "(cached) " >&6 12333 else case e in #( 12334 e) 12335 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 12336 test "$am_cv_pathless_PYTHON" = none && break 12337 prog="import sys 12338 # split strings by '.' and convert to numeric. Append some zeros 12339 # because we need at least 4 digits for the hex conversion. 12340 # map returns an iterator in Python 3.0 and a list in 2.x 12341 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 12342 minverhex = 0 12343 # xrange is not present in Python 3.0 and range returns an iterator 12344 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 12345 sys.exit(sys.hexversion < minverhex)" 12346 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 12347 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 12348 ac_status=$? 12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12350 (exit $ac_status); } 12351 then : 12352 break 12353 fi 12354 done ;; 12355 esac 12356 fi 12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 12358 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 12359 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 12360 if test "$am_cv_pathless_PYTHON" = none; then 12361 PYTHON=: 12362 else 12363 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 12364 set dummy $am_cv_pathless_PYTHON; ac_word=$2 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12366 printf %s "checking for $ac_word... " >&6; } 12367 if test ${ac_cv_path_PYTHON+y} 12368 then : 12369 printf %s "(cached) " >&6 12370 else case e in #( 12371 e) case $PYTHON in 12372 [\\/]* | ?:[\\/]*) 12373 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12374 ;; 12375 *) 12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12377 for as_dir in $PATH 12378 do 12379 IFS=$as_save_IFS 12380 case $as_dir in #((( 12381 '') as_dir=./ ;; 12382 */) ;; 12383 *) as_dir=$as_dir/ ;; 12384 esac 12385 for ac_exec_ext in '' $ac_executable_extensions; do 12386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12387 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 12388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12389 break 2 12390 fi 12391 done 12392 done 12393 IFS=$as_save_IFS 12394 12395 ;; 12396 esac ;; 12397 esac 12398 fi 12399 PYTHON=$ac_cv_path_PYTHON 12400 if test -n "$PYTHON"; then 12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 12402 printf "%s\n" "$PYTHON" >&6; } 12403 else 12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405 printf "%s\n" "no" >&6; } 12406 fi 12407 12408 12409 fi 12410 am_display_PYTHON=$am_cv_pathless_PYTHON 12411 fi 12412 12413 12414 if test "$PYTHON" = :; then 12415 : 12416 else 12417 12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 12419 printf %s "checking for $am_display_PYTHON version... " >&6; } 12420 if test ${am_cv_python_version+y} 12421 then : 12422 printf %s "(cached) " >&6 12423 else case e in #( 12424 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; 12425 esac 12426 fi 12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 12428 printf "%s\n" "$am_cv_python_version" >&6; } 12429 PYTHON_VERSION=$am_cv_python_version 12430 12431 12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 12433 printf %s "checking for $am_display_PYTHON platform... " >&6; } 12434 if test ${am_cv_python_platform+y} 12435 then : 12436 printf %s "(cached) " >&6 12437 else case e in #( 12438 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; 12439 esac 12440 fi 12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 12442 printf "%s\n" "$am_cv_python_platform" >&6; } 12443 PYTHON_PLATFORM=$am_cv_python_platform 12444 12445 12446 if test "x$prefix" = xNONE; then 12447 am__usable_prefix=$ac_default_prefix 12448 else 12449 am__usable_prefix=$prefix 12450 fi 12451 12452 # Allow user to request using sys.* values from Python, 12453 # instead of the GNU $prefix values. 12454 12455 # Check whether --with-python-sys-prefix was given. 12456 if test ${with_python_sys_prefix+y} 12457 then : 12458 withval=$with_python_sys_prefix; am_use_python_sys=: 12459 else case e in #( 12460 e) am_use_python_sys=false ;; 12461 esac 12462 fi 12463 12464 12465 # Allow user to override whatever the default Python prefix is. 12466 12467 # Check whether --with-python_prefix was given. 12468 if test ${with_python_prefix+y} 12469 then : 12470 withval=$with_python_prefix; am_python_prefix_subst=$withval 12471 am_cv_python_prefix=$withval 12472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 12473 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 12475 printf "%s\n" "$am_cv_python_prefix" >&6; } 12476 else case e in #( 12477 e) 12478 if $am_use_python_sys; then 12479 # using python sys.prefix value, not GNU 12480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 12481 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 12482 if test ${am_cv_python_prefix+y} 12483 then : 12484 printf %s "(cached) " >&6 12485 else case e in #( 12486 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; 12487 esac 12488 fi 12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 12490 printf "%s\n" "$am_cv_python_prefix" >&6; } 12491 12492 case $am_cv_python_prefix in 12493 $am__usable_prefix*) 12494 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 12495 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 12496 ;; 12497 *) 12498 am_python_prefix_subst=$am_cv_python_prefix 12499 ;; 12500 esac 12501 else # using GNU prefix value, not python sys.prefix 12502 am_python_prefix_subst='${prefix}' 12503 am_python_prefix=$am_python_prefix_subst 12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 12505 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 12507 printf "%s\n" "$am_python_prefix" >&6; } 12508 fi ;; 12509 esac 12510 fi 12511 12512 # Substituting python_prefix_subst value. 12513 PYTHON_PREFIX=$am_python_prefix_subst 12514 12515 12516 # emacs-page Now do it all over again for Python exec_prefix, but with yet 12517 # another conditional: fall back to regular prefix if that was specified. 12518 12519 # Check whether --with-python_exec_prefix was given. 12520 if test ${with_python_exec_prefix+y} 12521 then : 12522 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 12523 am_cv_python_exec_prefix=$withval 12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 12525 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12527 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12528 else case e in #( 12529 e) 12530 # no explicit --with-python_exec_prefix, but if 12531 # --with-python_prefix was given, use its value for python_exec_prefix too. 12532 if test -n "$with_python_prefix" 12533 then : 12534 am_python_exec_prefix_subst=$with_python_prefix 12535 am_cv_python_exec_prefix=$with_python_prefix 12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 12537 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12539 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12540 else case e in #( 12541 e) 12542 # Set am__usable_exec_prefix whether using GNU or Python values, 12543 # since we use that variable for pyexecdir. 12544 if test "x$exec_prefix" = xNONE; then 12545 am__usable_exec_prefix=$am__usable_prefix 12546 else 12547 am__usable_exec_prefix=$exec_prefix 12548 fi 12549 # 12550 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 12552 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 12553 if test ${am_cv_python_exec_prefix+y} 12554 then : 12555 printf %s "(cached) " >&6 12556 else case e in #( 12557 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; 12558 esac 12559 fi 12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 12561 printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 12562 case $am_cv_python_exec_prefix in 12563 $am__usable_exec_prefix*) 12564 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 12565 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 12566 ;; 12567 *) 12568 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 12569 ;; 12570 esac 12571 else # using GNU $exec_prefix, not python sys.exec_prefix 12572 am_python_exec_prefix_subst='${exec_prefix}' 12573 am_python_exec_prefix=$am_python_exec_prefix_subst 12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 12575 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 12577 printf "%s\n" "$am_python_exec_prefix" >&6; } 12578 fi ;; 12579 esac 12580 fi ;; 12581 esac 12582 fi 12583 12584 # Substituting python_exec_prefix_subst. 12585 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 12586 12587 12588 # Factor out some code duplication into this shell variable. 12589 am_python_setup_sysconfig="\ 12590 import sys 12591 # Prefer sysconfig over distutils.sysconfig, for better compatibility 12592 # with python 3.x. See automake bug#10227. 12593 try: 12594 import sysconfig 12595 except ImportError: 12596 can_use_sysconfig = 0 12597 else: 12598 can_use_sysconfig = 1 12599 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 12600 # <https://github.com/pypa/virtualenv/issues/118> 12601 try: 12602 from platform import python_implementation 12603 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 12604 can_use_sysconfig = 0 12605 except ImportError: 12606 pass" # end of am_python_setup_sysconfig 12607 12608 # More repeated code, for figuring out the installation scheme to use. 12609 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): 12610 scheme = sysconfig.get_default_scheme() 12611 else: 12612 scheme = sysconfig._get_default_scheme() 12613 if scheme == 'posix_local': 12614 if '$am_py_prefix' == '/usr': 12615 scheme = 'deb_system' # should only happen during Debian package builds 12616 else: 12617 # Debian's default scheme installs to /usr/local/ but we want to 12618 # follow the prefix, as we always have. 12619 # See bugs#54412, #64837, et al. 12620 scheme = 'posix_prefix'" # end of am_python_setup_scheme 12621 12622 12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 12624 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 12625 if test ${am_cv_python_pythondir+y} 12626 then : 12627 printf %s "(cached) " >&6 12628 else case e in #( 12629 e) if test "x$am_cv_python_prefix" = x; then 12630 am_py_prefix=$am__usable_prefix 12631 else 12632 am_py_prefix=$am_cv_python_prefix 12633 fi 12634 am_cv_python_pythondir=`$PYTHON -c " 12635 $am_python_setup_sysconfig 12636 if can_use_sysconfig: 12637 try: 12638 $am_python_setup_scheme 12639 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) 12640 except: 12641 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 12642 else: 12643 from distutils import sysconfig 12644 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 12645 sys.stdout.write(sitedir)"` 12646 # 12647 case $am_cv_python_pythondir in 12648 $am_py_prefix*) 12649 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 12650 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 12651 ;; 12652 *) 12653 case $am_py_prefix in 12654 /usr|/System*) ;; 12655 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 12656 ;; 12657 esac 12658 ;; 12659 esac 12660 ;; 12661 esac 12662 fi 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 12664 printf "%s\n" "$am_cv_python_pythondir" >&6; } 12665 pythondir=$am_cv_python_pythondir 12666 12667 12668 pkgpythondir=\${pythondir}/$PACKAGE 12669 12670 12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 12672 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 12673 if test ${am_cv_python_pyexecdir+y} 12674 then : 12675 printf %s "(cached) " >&6 12676 else case e in #( 12677 e) if test "x$am_cv_python_exec_prefix" = x; then 12678 am_py_exec_prefix=$am__usable_exec_prefix 12679 else 12680 am_py_exec_prefix=$am_cv_python_exec_prefix 12681 fi 12682 am_cv_python_pyexecdir=`$PYTHON -c " 12683 $am_python_setup_sysconfig 12684 if can_use_sysconfig: 12685 try: 12686 $am_python_setup_scheme 12687 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) 12688 except: 12689 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 12690 else: 12691 from distutils import sysconfig 12692 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 12693 sys.stdout.write(sitedir)"` 12694 # 12695 case $am_cv_python_pyexecdir in 12696 $am_py_exec_prefix*) 12697 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 12698 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 12699 ;; 12700 *) 12701 case $am_py_exec_prefix in 12702 /usr|/System*) ;; 12703 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 12704 ;; 12705 esac 12706 ;; 12707 esac 12708 ;; 12709 esac 12710 fi 12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 12712 printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 12713 pyexecdir=$am_cv_python_pyexecdir 12714 12715 12716 pkgpyexecdir=\${pyexecdir}/$PACKAGE 12717 12718 12719 12720 fi 12721 12722 if test "$PYTHON" != :; then 12723 HAVE_PYTHON_TRUE= 12724 HAVE_PYTHON_FALSE='#' 12725 else 12726 HAVE_PYTHON_TRUE='#' 12727 HAVE_PYTHON_FALSE= 12728 fi 12729 12730 12731 12732 12733 # Check whether --enable-legacy was given. 12734 if test ${enable_legacy+y} 12735 then : 12736 enableval=$enable_legacy; LEGACY=$enableval 12737 else case e in #( 12738 e) LEGACY=no ;; 12739 esac 12740 fi 12741 12742 if test "x$LEGACY" = "xyes"; then 12743 LEGACY_TRUE= 12744 LEGACY_FALSE='#' 12745 else 12746 LEGACY_TRUE='#' 12747 LEGACY_FALSE= 12748 fi 12749 12750 12751 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 12752 if test "x$ac_cv_header_sys_select_h" = xyes 12753 then : 12754 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 12755 12756 fi 12757 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 12758 if test "x$ac_cv_header_sys_param_h" = xyes 12759 then : 12760 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 12761 12762 fi 12763 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 12764 if test "x$ac_cv_header_sys_types_h" = xyes 12765 then : 12766 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 12767 12768 fi 12769 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 12770 if test "x$ac_cv_header_sys_time_h" = xyes 12771 then : 12772 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 12773 12774 fi 12775 12776 12777 # Handle Xpoll.h.in 12778 # Avoid determining fds_bits on WIN32 hosts (not including cygwin) 12779 case $host_os in 12780 mingw*) fds_bits_found=true;; 12781 *) fds_bits_found=false;; 12782 esac 12783 12784 if test "x$fds_bits_found" = xfalse ; then 12785 ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" " 12786 #ifdef HAVE_SYS_PARAM_H 12787 #include <sys/param.h> 12788 #endif 12789 #ifdef HAVE_SYS_TYPES_H 12790 #include <sys/types.h> 12791 #endif 12792 #ifdef HAVE_SYS_TIME_H 12793 #include <sys/time.h> 12794 #endif 12795 #ifdef HAVE_SYS_SELECT_H 12796 #include <sys/select.h> 12797 #endif 12798 12799 " 12800 if test "x$ac_cv_member_fd_set_fds_bits" = xyes 12801 then : 12802 12803 fds_bits_found=plain 12804 USE_FDS_BITS="fds_bits" 12805 12806 fi 12807 12808 fi 12809 12810 if test "x$fds_bits_found" = xfalse ; then 12811 ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" " 12812 #ifdef HAVE_SYS_PARAM_H 12813 #include <sys/param.h> 12814 #endif 12815 #ifdef HAVE_SYS_TYPES_H 12816 #include <sys/types.h> 12817 #endif 12818 #ifdef HAVE_SYS_TIME_H 12819 #include <sys/time.h> 12820 #endif 12821 #ifdef HAVE_SYS_SELECT_H 12822 #include <sys/select.h> 12823 #endif 12824 12825 " 12826 if test "x$ac_cv_member_fd_set___fds_bits" = xyes 12827 then : 12828 12829 fds_bits_found=underscores 12830 USE_FDS_BITS="__fds_bits" 12831 12832 fi 12833 12834 fi 12835 12836 if test "x$fds_bits_found" = xfalse ; then 12837 as_fn_error $? "Could not determine how to access the fds_bits or equivalent 12838 structure in fd_set on your platform." "$LINENO" 5 12839 fi 12840 12841 12842 12843 ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dpmsproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc" 12844 12845 12846 cat >confcache <<\_ACEOF 12847 # This file is a shell script that caches the results of configure 12848 # tests run on this system so they can be shared between configure 12849 # scripts and configure runs, see configure's option --config-cache. 12850 # It is not useful on other systems. If it contains results you don't 12851 # want to keep, you may remove or edit it. 12852 # 12853 # config.status only pays attention to the cache file if you give it 12854 # the --recheck option to rerun configure. 12855 # 12856 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12857 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12858 # following values. 12859 12860 _ACEOF 12861 12862 # The following way of writing the cache mishandles newlines in values, 12863 # but we know of no workaround that is simple, portable, and efficient. 12864 # So, we kill variables containing newlines. 12865 # Ultrix sh set writes to stderr and can't be redirected directly, 12866 # and sets the high bit in the cache file unless we assign to the vars. 12867 ( 12868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12869 eval ac_val=\$$ac_var 12870 case $ac_val in #( 12871 *${as_nl}*) 12872 case $ac_var in #( 12873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12874 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12875 esac 12876 case $ac_var in #( 12877 _ | IFS | as_nl) ;; #( 12878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12879 *) { eval $ac_var=; unset $ac_var;} ;; 12880 esac ;; 12881 esac 12882 done 12883 12884 (set) 2>&1 | 12885 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12886 *${as_nl}ac_space=\ *) 12887 # 'set' does not quote correctly, so add quotes: double-quote 12888 # substitution turns \\\\ into \\, and sed turns \\ into \. 12889 sed -n \ 12890 "s/'/'\\\\''/g; 12891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12892 ;; #( 12893 *) 12894 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12896 ;; 12897 esac | 12898 sort 12899 ) | 12900 sed ' 12901 /^ac_cv_env_/b end 12902 t clear 12903 :clear 12904 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12905 t end 12906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12907 :end' >>confcache 12908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12909 if test -w "$cache_file"; then 12910 if test "x$cache_file" != "x/dev/null"; then 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12912 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12913 if test ! -f "$cache_file" || test -h "$cache_file"; then 12914 cat confcache >"$cache_file" 12915 else 12916 case $cache_file in #( 12917 */* | ?:*) 12918 mv -f confcache "$cache_file"$$ && 12919 mv -f "$cache_file"$$ "$cache_file" ;; #( 12920 *) 12921 mv -f confcache "$cache_file" ;; 12922 esac 12923 fi 12924 fi 12925 else 12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12927 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12928 fi 12929 fi 12930 rm -f confcache 12931 12932 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12933 # Let make expand exec_prefix. 12934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12935 12936 # Transform confdefs.h into DEFS. 12937 # Protect against shell expansion while executing Makefile rules. 12938 # Protect against Makefile macro expansion. 12939 # 12940 # If the first sed substitution is executed (which looks for macros that 12941 # take arguments), then branch to the quote section. Otherwise, 12942 # look for a macro that doesn't take arguments. 12943 ac_script=' 12944 :mline 12945 /\\$/{ 12946 N 12947 s,\\\n,, 12948 b mline 12949 } 12950 t clear 12951 :clear 12952 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12953 t quote 12954 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12955 t quote 12956 b any 12957 :quote 12958 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12959 s/\$/$$/g 12960 H 12961 :any 12962 ${ 12963 g 12964 s/^\n// 12965 s/\n/ /g 12966 p 12967 } 12968 ' 12969 DEFS=`sed -n "$ac_script" confdefs.h` 12970 12971 12972 ac_libobjs= 12973 ac_ltlibobjs= 12974 U= 12975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12976 # 1. Remove the extension, and $U if already installed. 12977 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12978 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12980 # will be set to the directory where LIBOBJS objects are built. 12981 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12982 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12983 done 12984 LIBOBJS=$ac_libobjs 12985 12986 LTLIBOBJS=$ac_ltlibobjs 12987 12988 12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12990 printf %s "checking that generated files are newer than configure... " >&6; } 12991 if test -n "$am_sleep_pid"; then 12992 # Hide warnings about reused PIDs. 12993 wait $am_sleep_pid 2>/dev/null 12994 fi 12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12996 printf "%s\n" "done" >&6; } 12997 case $enable_silent_rules in # ((( 12998 yes) AM_DEFAULT_VERBOSITY=0;; 12999 no) AM_DEFAULT_VERBOSITY=1;; 13000 esac 13001 if test $am_cv_make_support_nested_variables = yes; then 13002 AM_V='$(V)' 13003 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 13004 else 13005 AM_V=$AM_DEFAULT_VERBOSITY 13006 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 13007 fi 13008 13009 if test -n "$EXEEXT"; then 13010 am__EXEEXT_TRUE= 13011 am__EXEEXT_FALSE='#' 13012 else 13013 am__EXEEXT_TRUE='#' 13014 am__EXEEXT_FALSE= 13015 fi 13016 13017 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13018 as_fn_error $? "conditional \"AMDEP\" was never defined. 13019 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13020 fi 13021 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13022 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13023 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13024 fi 13025 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 13026 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 13027 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13028 fi 13029 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 13030 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13032 fi 13033 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 13034 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13036 fi 13037 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 13038 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 13039 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13040 fi 13041 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 13042 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 13043 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13044 fi 13045 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 13046 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 13047 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13048 fi 13049 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 13050 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 13051 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13052 fi 13053 if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then 13054 as_fn_error $? "conditional \"LEGACY\" was never defined. 13055 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13056 fi 13057 13058 : "${CONFIG_STATUS=./config.status}" 13059 ac_write_fail=0 13060 ac_clean_files_save=$ac_clean_files 13061 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13063 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 13064 as_write_fail=0 13065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13066 #! $SHELL 13067 # Generated by $as_me. 13068 # Run this file to recreate the current configuration. 13069 # Compiler output produced by configure, useful for debugging 13070 # configure, is in config.log if it exists. 13071 13072 debug=false 13073 ac_cs_recheck=false 13074 ac_cs_silent=false 13075 13076 SHELL=\${CONFIG_SHELL-$SHELL} 13077 export SHELL 13078 _ASEOF 13079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13080 ## -------------------- ## 13081 ## M4sh Initialization. ## 13082 ## -------------------- ## 13083 13084 # Be more Bourne compatible 13085 DUALCASE=1; export DUALCASE # for MKS sh 13086 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 13087 then : 13088 emulate sh 13089 NULLCMD=: 13090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13091 # is contrary to our usage. Disable this feature. 13092 alias -g '${1+"$@"}'='"$@"' 13093 setopt NO_GLOB_SUBST 13094 else case e in #( 13095 e) case `(set -o) 2>/dev/null` in #( 13096 *posix*) : 13097 set -o posix ;; #( 13098 *) : 13099 ;; 13100 esac ;; 13101 esac 13102 fi 13103 13104 13105 13106 # Reset variables that may have inherited troublesome values from 13107 # the environment. 13108 13109 # IFS needs to be set, to space, tab, and newline, in precisely that order. 13110 # (If _AS_PATH_WALK were called with IFS unset, it would have the 13111 # side effect of setting IFS to empty, thus disabling word splitting.) 13112 # Quoting is to prevent editors from complaining about space-tab. 13113 as_nl=' 13114 ' 13115 export as_nl 13116 IFS=" "" $as_nl" 13117 13118 PS1='$ ' 13119 PS2='> ' 13120 PS4='+ ' 13121 13122 # Ensure predictable behavior from utilities with locale-dependent output. 13123 LC_ALL=C 13124 export LC_ALL 13125 LANGUAGE=C 13126 export LANGUAGE 13127 13128 # We cannot yet rely on "unset" to work, but we need these variables 13129 # to be unset--not just set to an empty or harmless value--now, to 13130 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 13131 # also avoids known problems related to "unset" and subshell syntax 13132 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 13133 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 13134 do eval test \${$as_var+y} \ 13135 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13136 done 13137 13138 # Ensure that fds 0, 1, and 2 are open. 13139 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 13140 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 13141 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 13142 13143 # The user is always right. 13144 if ${PATH_SEPARATOR+false} :; then 13145 PATH_SEPARATOR=: 13146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13148 PATH_SEPARATOR=';' 13149 } 13150 fi 13151 13152 13153 # Find who we are. Look in the path if we contain no directory separator. 13154 as_myself= 13155 case $0 in #(( 13156 *[\\/]* ) as_myself=$0 ;; 13157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13158 for as_dir in $PATH 13159 do 13160 IFS=$as_save_IFS 13161 case $as_dir in #((( 13162 '') as_dir=./ ;; 13163 */) ;; 13164 *) as_dir=$as_dir/ ;; 13165 esac 13166 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 13167 done 13168 IFS=$as_save_IFS 13169 13170 ;; 13171 esac 13172 # We did not find ourselves, most probably we were run as 'sh COMMAND' 13173 # in which case we are not to be found in the path. 13174 if test "x$as_myself" = x; then 13175 as_myself=$0 13176 fi 13177 if test ! -f "$as_myself"; then 13178 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13179 exit 1 13180 fi 13181 13182 13183 13184 # as_fn_error STATUS ERROR [LINENO LOG_FD] 13185 # ---------------------------------------- 13186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13188 # script with STATUS, using 1 if that was 0. 13189 as_fn_error () 13190 { 13191 as_status=$1; test $as_status -eq 0 && as_status=1 13192 if test "$4"; then 13193 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13195 fi 13196 printf "%s\n" "$as_me: error: $2" >&2 13197 as_fn_exit $as_status 13198 } # as_fn_error 13199 13200 13201 # as_fn_set_status STATUS 13202 # ----------------------- 13203 # Set $? to STATUS, without forking. 13204 as_fn_set_status () 13205 { 13206 return $1 13207 } # as_fn_set_status 13208 13209 # as_fn_exit STATUS 13210 # ----------------- 13211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13212 as_fn_exit () 13213 { 13214 set +e 13215 as_fn_set_status $1 13216 exit $1 13217 } # as_fn_exit 13218 13219 # as_fn_unset VAR 13220 # --------------- 13221 # Portably unset VAR. 13222 as_fn_unset () 13223 { 13224 { eval $1=; unset $1;} 13225 } 13226 as_unset=as_fn_unset 13227 13228 # as_fn_append VAR VALUE 13229 # ---------------------- 13230 # Append the text in VALUE to the end of the definition contained in VAR. Take 13231 # advantage of any shell optimizations that allow amortized linear growth over 13232 # repeated appends, instead of the typical quadratic growth present in naive 13233 # implementations. 13234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 13235 then : 13236 eval 'as_fn_append () 13237 { 13238 eval $1+=\$2 13239 }' 13240 else case e in #( 13241 e) as_fn_append () 13242 { 13243 eval $1=\$$1\$2 13244 } ;; 13245 esac 13246 fi # as_fn_append 13247 13248 # as_fn_arith ARG... 13249 # ------------------ 13250 # Perform arithmetic evaluation on the ARGs, and store the result in the 13251 # global $as_val. Take advantage of shells that can avoid forks. The arguments 13252 # must be portable across $(()) and expr. 13253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 13254 then : 13255 eval 'as_fn_arith () 13256 { 13257 as_val=$(( $* )) 13258 }' 13259 else case e in #( 13260 e) as_fn_arith () 13261 { 13262 as_val=`expr "$@" || test $? -eq 1` 13263 } ;; 13264 esac 13265 fi # as_fn_arith 13266 13267 13268 if expr a : '\(a\)' >/dev/null 2>&1 && 13269 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13270 as_expr=expr 13271 else 13272 as_expr=false 13273 fi 13274 13275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13276 as_basename=basename 13277 else 13278 as_basename=false 13279 fi 13280 13281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13282 as_dirname=dirname 13283 else 13284 as_dirname=false 13285 fi 13286 13287 as_me=`$as_basename -- "$0" || 13288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13289 X"$0" : 'X\(//\)$' \| \ 13290 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13291 printf "%s\n" X/"$0" | 13292 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13293 s//\1/ 13294 q 13295 } 13296 /^X\/\(\/\/\)$/{ 13297 s//\1/ 13298 q 13299 } 13300 /^X\/\(\/\).*/{ 13301 s//\1/ 13302 q 13303 } 13304 s/.*/./; q'` 13305 13306 # Avoid depending upon Character Ranges. 13307 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13310 as_cr_digits='0123456789' 13311 as_cr_alnum=$as_cr_Letters$as_cr_digits 13312 13313 13314 # Determine whether it's possible to make 'echo' print without a newline. 13315 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13316 # for compatibility with existing Makefiles. 13317 ECHO_C= ECHO_N= ECHO_T= 13318 case `echo -n x` in #((((( 13319 -n*) 13320 case `echo 'xy\c'` in 13321 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13322 xy) ECHO_C='\c';; 13323 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13324 ECHO_T=' ';; 13325 esac;; 13326 *) 13327 ECHO_N='-n';; 13328 esac 13329 13330 # For backward compatibility with old third-party macros, we provide 13331 # the shell variables $as_echo and $as_echo_n. New code should use 13332 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13333 as_echo='printf %s\n' 13334 as_echo_n='printf %s' 13335 13336 rm -f conf$$ conf$$.exe conf$$.file 13337 if test -d conf$$.dir; then 13338 rm -f conf$$.dir/conf$$.file 13339 else 13340 rm -f conf$$.dir 13341 mkdir conf$$.dir 2>/dev/null 13342 fi 13343 if (echo >conf$$.file) 2>/dev/null; then 13344 if ln -s conf$$.file conf$$ 2>/dev/null; then 13345 as_ln_s='ln -s' 13346 # ... but there are two gotchas: 13347 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 13348 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 13349 # In both cases, we have to default to 'cp -pR'. 13350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13351 as_ln_s='cp -pR' 13352 elif ln conf$$.file conf$$ 2>/dev/null; then 13353 as_ln_s=ln 13354 else 13355 as_ln_s='cp -pR' 13356 fi 13357 else 13358 as_ln_s='cp -pR' 13359 fi 13360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13361 rmdir conf$$.dir 2>/dev/null 13362 13363 13364 # as_fn_mkdir_p 13365 # ------------- 13366 # Create "$as_dir" as a directory, including parents if necessary. 13367 as_fn_mkdir_p () 13368 { 13369 13370 case $as_dir in #( 13371 -*) as_dir=./$as_dir;; 13372 esac 13373 test -d "$as_dir" || eval $as_mkdir_p || { 13374 as_dirs= 13375 while :; do 13376 case $as_dir in #( 13377 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13378 *) as_qdir=$as_dir;; 13379 esac 13380 as_dirs="'$as_qdir' $as_dirs" 13381 as_dir=`$as_dirname -- "$as_dir" || 13382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13383 X"$as_dir" : 'X\(//\)[^/]' \| \ 13384 X"$as_dir" : 'X\(//\)$' \| \ 13385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13386 printf "%s\n" X"$as_dir" | 13387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13388 s//\1/ 13389 q 13390 } 13391 /^X\(\/\/\)[^/].*/{ 13392 s//\1/ 13393 q 13394 } 13395 /^X\(\/\/\)$/{ 13396 s//\1/ 13397 q 13398 } 13399 /^X\(\/\).*/{ 13400 s//\1/ 13401 q 13402 } 13403 s/.*/./; q'` 13404 test -d "$as_dir" && break 13405 done 13406 test -z "$as_dirs" || eval "mkdir $as_dirs" 13407 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13408 13409 13410 } # as_fn_mkdir_p 13411 if mkdir -p . 2>/dev/null; then 13412 as_mkdir_p='mkdir -p "$as_dir"' 13413 else 13414 test -d ./-p && rmdir ./-p 13415 as_mkdir_p=false 13416 fi 13417 13418 13419 # as_fn_executable_p FILE 13420 # ----------------------- 13421 # Test if FILE is an executable regular file. 13422 as_fn_executable_p () 13423 { 13424 test -f "$1" && test -x "$1" 13425 } # as_fn_executable_p 13426 as_test_x='test -x' 13427 as_executable_p=as_fn_executable_p 13428 13429 # Sed expression to map a string onto a valid CPP name. 13430 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 13431 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 13432 13433 # Sed expression to map a string onto a valid variable name. 13434 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 13435 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 13436 13437 13438 exec 6>&1 13439 ## ----------------------------------- ## 13440 ## Main body of $CONFIG_STATUS script. ## 13441 ## ----------------------------------- ## 13442 _ASEOF 13443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13444 13445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13446 # Save the log message, to keep $0 and so on meaningful, and to 13447 # report actual input values of CONFIG_FILES etc. instead of their 13448 # values after options handling. 13449 ac_log=" 13450 This file was extended by xorgproto $as_me 2025.1, which was 13451 generated by GNU Autoconf 2.72. Invocation command line was 13452 13453 CONFIG_FILES = $CONFIG_FILES 13454 CONFIG_HEADERS = $CONFIG_HEADERS 13455 CONFIG_LINKS = $CONFIG_LINKS 13456 CONFIG_COMMANDS = $CONFIG_COMMANDS 13457 $ $0 $@ 13458 13459 on `(hostname || uname -n) 2>/dev/null | sed 1q` 13460 " 13461 13462 _ACEOF 13463 13464 case $ac_config_files in *" 13465 "*) set x $ac_config_files; shift; ac_config_files=$*;; 13466 esac 13467 13468 13469 13470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13471 # Files that config.status was made for. 13472 config_files="$ac_config_files" 13473 config_commands="$ac_config_commands" 13474 13475 _ACEOF 13476 13477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13478 ac_cs_usage="\ 13479 '$as_me' instantiates files and other configuration actions 13480 from templates according to the current configuration. Unless the files 13481 and actions are specified as TAGs, all are instantiated by default. 13482 13483 Usage: $0 [OPTION]... [TAG]... 13484 13485 -h, --help print this help, then exit 13486 -V, --version print version number and configuration settings, then exit 13487 --config print configuration, then exit 13488 -q, --quiet, --silent 13489 do not print progress messages 13490 -d, --debug don't remove temporary files 13491 --recheck update $as_me by reconfiguring in the same conditions 13492 --file=FILE[:TEMPLATE] 13493 instantiate the configuration file FILE 13494 13495 Configuration files: 13496 $config_files 13497 13498 Configuration commands: 13499 $config_commands 13500 13501 Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>." 13502 13503 _ACEOF 13504 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 13505 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13507 ac_cs_config='$ac_cs_config_escaped' 13508 ac_cs_version="\\ 13509 xorgproto config.status 2025.1 13510 configured by $0, generated by GNU Autoconf 2.72, 13511 with options \\"\$ac_cs_config\\" 13512 13513 Copyright (C) 2023 Free Software Foundation, Inc. 13514 This config.status script is free software; the Free Software Foundation 13515 gives unlimited permission to copy, distribute and modify it." 13516 13517 ac_pwd='$ac_pwd' 13518 srcdir='$srcdir' 13519 INSTALL='$INSTALL' 13520 MKDIR_P='$MKDIR_P' 13521 AWK='$AWK' 13522 test -n "\$AWK" || AWK=awk 13523 _ACEOF 13524 13525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13526 # The default lists apply if the user does not specify any file. 13527 ac_need_defaults=: 13528 while test $# != 0 13529 do 13530 case $1 in 13531 --*=?*) 13532 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13534 ac_shift=: 13535 ;; 13536 --*=) 13537 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13538 ac_optarg= 13539 ac_shift=: 13540 ;; 13541 *) 13542 ac_option=$1 13543 ac_optarg=$2 13544 ac_shift=shift 13545 ;; 13546 esac 13547 13548 case $ac_option in 13549 # Handling of the options. 13550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13551 ac_cs_recheck=: ;; 13552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13553 printf "%s\n" "$ac_cs_version"; exit ;; 13554 --config | --confi | --conf | --con | --co | --c ) 13555 printf "%s\n" "$ac_cs_config"; exit ;; 13556 --debug | --debu | --deb | --de | --d | -d ) 13557 debug=: ;; 13558 --file | --fil | --fi | --f ) 13559 $ac_shift 13560 case $ac_optarg in 13561 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13562 '') as_fn_error $? "missing file argument" ;; 13563 esac 13564 as_fn_append CONFIG_FILES " '$ac_optarg'" 13565 ac_need_defaults=false;; 13566 --he | --h | --help | --hel | -h ) 13567 printf "%s\n" "$ac_cs_usage"; exit ;; 13568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13569 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13570 ac_cs_silent=: ;; 13571 13572 # This is an error. 13573 -*) as_fn_error $? "unrecognized option: '$1' 13574 Try '$0 --help' for more information." ;; 13575 13576 *) as_fn_append ac_config_targets " $1" 13577 ac_need_defaults=false ;; 13578 13579 esac 13580 shift 13581 done 13582 13583 ac_configure_extra_args= 13584 13585 if $ac_cs_silent; then 13586 exec 6>/dev/null 13587 ac_configure_extra_args="$ac_configure_extra_args --silent" 13588 fi 13589 13590 _ACEOF 13591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13592 if \$ac_cs_recheck; then 13593 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13594 shift 13595 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13596 CONFIG_SHELL='$SHELL' 13597 export CONFIG_SHELL 13598 exec "\$@" 13599 fi 13600 13601 _ACEOF 13602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13603 exec 5>>config.log 13604 { 13605 echo 13606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13607 ## Running $as_me. ## 13608 _ASBOX 13609 printf "%s\n" "$ac_log" 13610 } >&5 13611 13612 _ACEOF 13613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13614 # 13615 # INIT-COMMANDS 13616 # 13617 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13618 13619 _ACEOF 13620 13621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13622 13623 # Handling of arguments. 13624 for ac_config_target in $ac_config_targets 13625 do 13626 case $ac_config_target in 13627 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13628 "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;; 13629 "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;; 13630 "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;; 13631 "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;; 13632 "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;; 13633 "dpmsproto.pc") CONFIG_FILES="$CONFIG_FILES dpmsproto.pc" ;; 13634 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;; 13635 "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;; 13636 "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;; 13637 "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;; 13638 "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;; 13639 "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;; 13640 "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;; 13641 "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;; 13642 "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;; 13643 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;; 13644 "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;; 13645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13646 "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;; 13647 "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;; 13648 "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;; 13649 "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;; 13650 "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;; 13651 "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;; 13652 "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;; 13653 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 13654 "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;; 13655 "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;; 13656 "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;; 13657 "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;; 13658 "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;; 13659 "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;; 13660 "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;; 13661 "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;; 13662 "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;; 13663 "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;; 13664 "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;; 13665 "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;; 13666 "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;; 13667 "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;; 13668 "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;; 13669 "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;; 13670 "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;; 13671 "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;; 13672 "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;; 13673 "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;; 13674 "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;; 13675 "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;; 13676 "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;; 13677 "xwaylandproto.pc") CONFIG_FILES="$CONFIG_FILES xwaylandproto.pc" ;; 13678 13679 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13680 esac 13681 done 13682 13683 13684 # If the user did not use the arguments to specify the items to instantiate, 13685 # then the envvar interface is used. Set only those that are not. 13686 # We use the long form for the default assignment because of an extremely 13687 # bizarre bug on SunOS 4.1.3. 13688 if $ac_need_defaults; then 13689 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13690 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13691 fi 13692 13693 # Have a temporary directory for convenience. Make it in the build tree 13694 # simply because there is no reason against having it here, and in addition, 13695 # creating and moving files from /tmp can sometimes cause problems. 13696 # Hook for its removal unless debugging. 13697 # Note that there is a small window in which the directory will not be cleaned: 13698 # after its creation but before its name has been assigned to '$tmp'. 13699 $debug || 13700 { 13701 tmp= ac_tmp= 13702 trap 'exit_status=$? 13703 : "${ac_tmp:=$tmp}" 13704 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13705 ' 0 13706 trap 'as_fn_exit 1' 1 2 13 15 13707 } 13708 # Create a (secure) tmp directory for tmp files. 13709 13710 { 13711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13712 test -d "$tmp" 13713 } || 13714 { 13715 tmp=./conf$$-$RANDOM 13716 (umask 077 && mkdir "$tmp") 13717 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13718 ac_tmp=$tmp 13719 13720 # Set up the scripts for CONFIG_FILES section. 13721 # No need to generate them if there are no CONFIG_FILES. 13722 # This happens for instance with './config.status config.h'. 13723 if test -n "$CONFIG_FILES"; then 13724 13725 13726 ac_cr=`echo X | tr X '\015'` 13727 # On cygwin, bash can eat \r inside `` if the user requested igncr. 13728 # But we know of no other shell where ac_cr would be empty at this 13729 # point, so we can use a bashism as a fallback. 13730 if test "x$ac_cr" = x; then 13731 eval ac_cr=\$\'\\r\' 13732 fi 13733 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13734 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13735 ac_cs_awk_cr='\\r' 13736 else 13737 ac_cs_awk_cr=$ac_cr 13738 fi 13739 13740 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13741 _ACEOF 13742 13743 13744 { 13745 echo "cat >conf$$subs.awk <<_ACEOF" && 13746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13747 echo "_ACEOF" 13748 } >conf$$subs.sh || 13749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13751 ac_delim='%!_!# ' 13752 for ac_last_try in false false false false false :; do 13753 . ./conf$$subs.sh || 13754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13755 13756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13757 if test $ac_delim_n = $ac_delim_num; then 13758 break 13759 elif $ac_last_try; then 13760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13761 else 13762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13763 fi 13764 done 13765 rm -f conf$$subs.sh 13766 13767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13768 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13769 _ACEOF 13770 sed -n ' 13771 h 13772 s/^/S["/; s/!.*/"]=/ 13773 p 13774 g 13775 s/^[^!]*!// 13776 :repl 13777 t repl 13778 s/'"$ac_delim"'$// 13779 t delim 13780 :nl 13781 h 13782 s/\(.\{148\}\)..*/\1/ 13783 t more1 13784 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13785 p 13786 n 13787 b repl 13788 :more1 13789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13790 p 13791 g 13792 s/.\{148\}// 13793 t nl 13794 :delim 13795 h 13796 s/\(.\{148\}\)..*/\1/ 13797 t more2 13798 s/["\\]/\\&/g; s/^/"/; s/$/"/ 13799 p 13800 b 13801 :more2 13802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13803 p 13804 g 13805 s/.\{148\}// 13806 t delim 13807 ' <conf$$subs.awk | sed ' 13808 /^[^""]/{ 13809 N 13810 s/\n// 13811 } 13812 ' >>$CONFIG_STATUS || ac_write_fail=1 13813 rm -f conf$$subs.awk 13814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13815 _ACAWK 13816 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13817 for (key in S) S_is_set[key] = 1 13818 FS = "" 13819 13820 } 13821 { 13822 line = $ 0 13823 nfields = split(line, field, "@") 13824 substed = 0 13825 len = length(field[1]) 13826 for (i = 2; i < nfields; i++) { 13827 key = field[i] 13828 keylen = length(key) 13829 if (S_is_set[key]) { 13830 value = S[key] 13831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13832 len += length(value) + length(field[++i]) 13833 substed = 1 13834 } else 13835 len += 1 + keylen 13836 } 13837 13838 print line 13839 } 13840 13841 _ACAWK 13842 _ACEOF 13843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13844 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13846 else 13847 cat 13848 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13850 _ACEOF 13851 13852 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13853 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13854 # trailing colons and then remove the whole line if VPATH becomes empty 13855 # (actually we leave an empty line to preserve line numbers). 13856 if test "x$srcdir" = x.; then 13857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13858 h 13859 s/// 13860 s/^/:/ 13861 s/[ ]*$/:/ 13862 s/:\$(srcdir):/:/g 13863 s/:\${srcdir}:/:/g 13864 s/:@srcdir@:/:/g 13865 s/^:*// 13866 s/:*$// 13867 x 13868 s/\(=[ ]*\).*/\1/ 13869 G 13870 s/\n// 13871 s/^[^=]*=[ ]*$// 13872 }' 13873 fi 13874 13875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13876 fi # test -n "$CONFIG_FILES" 13877 13878 13879 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13880 shift 13881 for ac_tag 13882 do 13883 case $ac_tag in 13884 :[FHLC]) ac_mode=$ac_tag; continue;; 13885 esac 13886 case $ac_mode$ac_tag in 13887 :[FHL]*:*);; 13888 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13889 :[FH]-) ac_tag=-:-;; 13890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13891 esac 13892 ac_save_IFS=$IFS 13893 IFS=: 13894 set x $ac_tag 13895 IFS=$ac_save_IFS 13896 shift 13897 ac_file=$1 13898 shift 13899 13900 case $ac_mode in 13901 :L) ac_source=$1;; 13902 :[FH]) 13903 ac_file_inputs= 13904 for ac_f 13905 do 13906 case $ac_f in 13907 -) ac_f="$ac_tmp/stdin";; 13908 *) # Look for the file first in the build tree, then in the source tree 13909 # (if the path is not absolute). The absolute path cannot be DOS-style, 13910 # because $ac_f cannot contain ':'. 13911 test -f "$ac_f" || 13912 case $ac_f in 13913 [\\/$]*) false;; 13914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13915 esac || 13916 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13917 esac 13918 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13919 as_fn_append ac_file_inputs " '$ac_f'" 13920 done 13921 13922 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13923 # use $as_me), people would be surprised to read: 13924 # /* config.h. Generated by config.status. */ 13925 configure_input='Generated from '` 13926 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13927 `' by configure.' 13928 if test x"$ac_file" != x-; then 13929 configure_input="$ac_file. $configure_input" 13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13931 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13932 fi 13933 # Neutralize special characters interpreted by sed in replacement strings. 13934 case $configure_input in #( 13935 *\&* | *\|* | *\\* ) 13936 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13937 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13938 *) ac_sed_conf_input=$configure_input;; 13939 esac 13940 13941 case $ac_tag in 13942 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13944 esac 13945 ;; 13946 esac 13947 13948 ac_dir=`$as_dirname -- "$ac_file" || 13949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13950 X"$ac_file" : 'X\(//\)[^/]' \| \ 13951 X"$ac_file" : 'X\(//\)$' \| \ 13952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13953 printf "%s\n" X"$ac_file" | 13954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13955 s//\1/ 13956 q 13957 } 13958 /^X\(\/\/\)[^/].*/{ 13959 s//\1/ 13960 q 13961 } 13962 /^X\(\/\/\)$/{ 13963 s//\1/ 13964 q 13965 } 13966 /^X\(\/\).*/{ 13967 s//\1/ 13968 q 13969 } 13970 s/.*/./; q'` 13971 as_dir="$ac_dir"; as_fn_mkdir_p 13972 ac_builddir=. 13973 13974 case "$ac_dir" in 13975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13976 *) 13977 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13978 # A ".." for each directory in $ac_dir_suffix. 13979 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13980 case $ac_top_builddir_sub in 13981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13983 esac ;; 13984 esac 13985 ac_abs_top_builddir=$ac_pwd 13986 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13987 # for backward compatibility: 13988 ac_top_builddir=$ac_top_build_prefix 13989 13990 case $srcdir in 13991 .) # We are building in place. 13992 ac_srcdir=. 13993 ac_top_srcdir=$ac_top_builddir_sub 13994 ac_abs_top_srcdir=$ac_pwd ;; 13995 [\\/]* | ?:[\\/]* ) # Absolute name. 13996 ac_srcdir=$srcdir$ac_dir_suffix; 13997 ac_top_srcdir=$srcdir 13998 ac_abs_top_srcdir=$srcdir ;; 13999 *) # Relative name. 14000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14001 ac_top_srcdir=$ac_top_build_prefix$srcdir 14002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14003 esac 14004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14005 14006 14007 case $ac_mode in 14008 :F) 14009 # 14010 # CONFIG_FILE 14011 # 14012 14013 case $INSTALL in 14014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14016 esac 14017 ac_MKDIR_P=$MKDIR_P 14018 case $MKDIR_P in 14019 [\\/$]* | ?:[\\/]* ) ;; 14020 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14021 esac 14022 _ACEOF 14023 14024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14025 # If the template does not know about datarootdir, expand it. 14026 # FIXME: This hack should be removed a few years after 2.60. 14027 ac_datarootdir_hack=; ac_datarootdir_seen= 14028 ac_sed_dataroot=' 14029 /datarootdir/ { 14030 p 14031 q 14032 } 14033 /@datadir@/p 14034 /@docdir@/p 14035 /@infodir@/p 14036 /@localedir@/p 14037 /@mandir@/p' 14038 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14039 *datarootdir*) ac_datarootdir_seen=yes;; 14040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14042 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14043 _ACEOF 14044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14045 ac_datarootdir_hack=' 14046 s&@datadir@&$datadir&g 14047 s&@docdir@&$docdir&g 14048 s&@infodir@&$infodir&g 14049 s&@localedir@&$localedir&g 14050 s&@mandir@&$mandir&g 14051 s&\\\${datarootdir}&$datarootdir&g' ;; 14052 esac 14053 _ACEOF 14054 14055 # Neutralize VPATH when '$srcdir' = '.'. 14056 # Shell code in configure.ac might set extrasub. 14057 # FIXME: do we really want to maintain this feature? 14058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14059 ac_sed_extra="$ac_vpsub 14060 $extrasub 14061 _ACEOF 14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14063 :t 14064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14065 s|@configure_input@|$ac_sed_conf_input|;t t 14066 s&@top_builddir@&$ac_top_builddir_sub&;t t 14067 s&@top_build_prefix@&$ac_top_build_prefix&;t t 14068 s&@srcdir@&$ac_srcdir&;t t 14069 s&@abs_srcdir@&$ac_abs_srcdir&;t t 14070 s&@top_srcdir@&$ac_top_srcdir&;t t 14071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14072 s&@builddir@&$ac_builddir&;t t 14073 s&@abs_builddir@&$ac_abs_builddir&;t t 14074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14075 s&@INSTALL@&$ac_INSTALL&;t t 14076 s&@MKDIR_P@&$ac_MKDIR_P&;t t 14077 $ac_datarootdir_hack 14078 " 14079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14081 14082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14085 "$ac_tmp/out"`; test -z "$ac_out"; } && 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14087 which seems to be undefined. Please make sure it is defined" >&5 14088 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 14089 which seems to be undefined. Please make sure it is defined" >&2;} 14090 14091 rm -f "$ac_tmp/stdin" 14092 case $ac_file in 14093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14095 esac \ 14096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14097 ;; 14098 14099 14100 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14101 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 14102 ;; 14103 esac 14104 14105 14106 case $ac_file$ac_mode in 14107 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14108 # Older Autoconf quotes --file arguments for eval, but not when files 14109 # are listed without --file. Let's play safe and only enable the eval 14110 # if we detect the quoting. 14111 # TODO: see whether this extra hack can be removed once we start 14112 # requiring Autoconf 2.70 or later. 14113 case $CONFIG_FILES in #( 14114 *\'*) : 14115 eval set x "$CONFIG_FILES" ;; #( 14116 *) : 14117 set x $CONFIG_FILES ;; #( 14118 *) : 14119 ;; 14120 esac 14121 shift 14122 # Used to flag and report bootstrapping failures. 14123 am_rc=0 14124 for am_mf 14125 do 14126 # Strip MF so we end up with the name of the file. 14127 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 14128 # Check whether this is an Automake generated Makefile which includes 14129 # dependency-tracking related rules and includes. 14130 # Grep'ing the whole file directly is not great: AIX grep has a line 14131 # limit of 2048, but all sed's we know have understand at least 4000. 14132 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14133 || continue 14134 am_dirpart=`$as_dirname -- "$am_mf" || 14135 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14136 X"$am_mf" : 'X\(//\)[^/]' \| \ 14137 X"$am_mf" : 'X\(//\)$' \| \ 14138 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14139 printf "%s\n" X"$am_mf" | 14140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14141 s//\1/ 14142 q 14143 } 14144 /^X\(\/\/\)[^/].*/{ 14145 s//\1/ 14146 q 14147 } 14148 /^X\(\/\/\)$/{ 14149 s//\1/ 14150 q 14151 } 14152 /^X\(\/\).*/{ 14153 s//\1/ 14154 q 14155 } 14156 s/.*/./; q'` 14157 am_filepart=`$as_basename -- "$am_mf" || 14158 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14159 X"$am_mf" : 'X\(//\)$' \| \ 14160 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14161 printf "%s\n" X/"$am_mf" | 14162 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14163 s//\1/ 14164 q 14165 } 14166 /^X\/\(\/\/\)$/{ 14167 s//\1/ 14168 q 14169 } 14170 /^X\/\(\/\).*/{ 14171 s//\1/ 14172 q 14173 } 14174 s/.*/./; q'` 14175 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14176 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14177 | $MAKE -f - am--depfiles" >&5 14178 (cd "$am_dirpart" \ 14179 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14180 | $MAKE -f - am--depfiles) >&5 2>&5 14181 ac_status=$? 14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14183 (exit $ac_status); } || am_rc=$? 14184 done 14185 if test $am_rc -ne 0; then 14186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14187 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14188 as_fn_error $? "Something went wrong bootstrapping makefile fragments 14189 for automatic dependency tracking. If GNU make was not used, consider 14190 re-running the configure script with MAKE=\"gmake\" (or whatever is 14191 necessary). You can also try re-running configure with the 14192 '--disable-dependency-tracking' option to at least be able to build 14193 the package (albeit without support for automatic dependency tracking). 14194 See 'config.log' for more details" "$LINENO" 5; } 14195 fi 14196 { am_dirpart=; unset am_dirpart;} 14197 { am_filepart=; unset am_filepart;} 14198 { am_mf=; unset am_mf;} 14199 { am_rc=; unset am_rc;} 14200 rm -f conftest-deps.mk 14201 } 14202 ;; 14203 14204 esac 14205 done # for ac_tag 14206 14207 14208 as_fn_exit 0 14209 _ACEOF 14210 ac_clean_files=$ac_clean_files_save 14211 14212 test $ac_write_fail = 0 || 14213 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14214 14215 14216 # configure is writing to config.log, and then calls config.status. 14217 # config.status does its own redirection, appending to config.log. 14218 # Unfortunately, on DOS this fails, as config.log is still kept open 14219 # by configure, so config.status won't be able to write to it; its 14220 # output is simply discarded. So we exec the FD to /dev/null, 14221 # effectively closing config.log, so it can be properly (re)opened and 14222 # appended to by config.status. When coming back to configure, we 14223 # need to make the FD available again. 14224 if test "$no_create" != yes; then 14225 ac_cs_success=: 14226 ac_config_status_args= 14227 test "$silent" = yes && 14228 ac_config_status_args="$ac_config_status_args --quiet" 14229 exec 5>/dev/null 14230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14231 exec 5>>config.log 14232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14233 # would make configure fail if this is the last instruction. 14234 $ac_cs_success || as_fn_exit 1 14235 fi 14236 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14238 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14239 fi 14240 14241 14242