1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for x11perf 1.7.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/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/test/x11perf/-/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 585 test -n "$DJDIR" || exec 7<&0 </dev/null 586 exec 6>&1 587 588 # Name of the host. 589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590 # so uname gets run too. 591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593 # 594 # Initializations. 595 # 596 ac_default_prefix=/usr/local 597 ac_clean_files= 598 ac_config_libobj_dir=. 599 LIBOBJS= 600 cross_compiling=no 601 subdirs= 602 MFLAGS= 603 MAKEFLAGS= 604 605 # Identity of this package. 606 PACKAGE_NAME='x11perf' 607 PACKAGE_TARNAME='x11perf' 608 PACKAGE_VERSION='1.7.0' 609 PACKAGE_STRING='x11perf 1.7.0' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues' 611 PACKAGE_URL='' 612 613 ac_unique_file="Makefile.am" 614 # Factoring default headers for most tests. 615 ac_includes_default="\ 616 #include <stddef.h> 617 #ifdef HAVE_STDIO_H 618 # include <stdio.h> 619 #endif 620 #ifdef HAVE_STDLIB_H 621 # include <stdlib.h> 622 #endif 623 #ifdef HAVE_STRING_H 624 # include <string.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_STRINGS_H 633 # include <strings.h> 634 #endif 635 #ifdef HAVE_SYS_TYPES_H 636 # include <sys/types.h> 637 #endif 638 #ifdef HAVE_SYS_STAT_H 639 # include <sys/stat.h> 640 #endif 641 #ifdef HAVE_UNISTD_H 642 # include <unistd.h> 643 #endif" 644 645 ac_header_c_list= 646 ac_subst_vars='am__EXEEXT_FALSE 647 am__EXEEXT_TRUE 648 LTLIBOBJS 649 LIBOBJS 650 XEXT_LIBS 651 XEXT_CFLAGS 652 XFT_LIBS 653 XFT_CFLAGS 654 XRENDER_LIBS 655 XRENDER_CFLAGS 656 X11PERF_LIBS 657 X11PERF_CFLAGS 658 MKTEMP 659 x11perfcompdir 660 MAN_SUBSTS 661 XORG_MAN_PAGE 662 ADMIN_MAN_DIR 663 DRIVER_MAN_DIR 664 MISC_MAN_DIR 665 FILE_MAN_DIR 666 LIB_MAN_DIR 667 APP_MAN_DIR 668 ADMIN_MAN_SUFFIX 669 DRIVER_MAN_SUFFIX 670 MISC_MAN_SUFFIX 671 FILE_MAN_SUFFIX 672 LIB_MAN_SUFFIX 673 APP_MAN_SUFFIX 674 SED 675 host_os 676 host_vendor 677 host_cpu 678 host 679 build_os 680 build_vendor 681 build_cpu 682 build 683 INSTALL_CMD 684 PKG_CONFIG_LIBDIR 685 PKG_CONFIG_PATH 686 PKG_CONFIG 687 CHANGELOG_CMD 688 STRICT_CFLAGS 689 CWARNFLAGS 690 BASE_CFLAGS 691 am__fastdepCC_FALSE 692 am__fastdepCC_TRUE 693 CCDEPMODE 694 am__nodep 695 AMDEPBACKSLASH 696 AMDEP_FALSE 697 AMDEP_TRUE 698 am__include 699 DEPDIR 700 OBJEXT 701 EXEEXT 702 ac_ct_CC 703 CPPFLAGS 704 LDFLAGS 705 CFLAGS 706 CC 707 am__xargs_n 708 am__rm_f_notfound 709 AM_BACKSLASH 710 AM_DEFAULT_VERBOSITY 711 AM_DEFAULT_V 712 AM_V 713 CSCOPE 714 ETAGS 715 CTAGS 716 am__untar 717 am__tar 718 AMTAR 719 am__leading_dot 720 SET_MAKE 721 AWK 722 mkdir_p 723 MKDIR_P 724 INSTALL_STRIP_PROGRAM 725 STRIP 726 install_sh 727 MAKEINFO 728 AUTOHEADER 729 AUTOMAKE 730 AUTOCONF 731 ACLOCAL 732 VERSION 733 PACKAGE 734 CYGPATH_W 735 am__isrc 736 INSTALL_DATA 737 INSTALL_SCRIPT 738 INSTALL_PROGRAM 739 target_alias 740 host_alias 741 build_alias 742 LIBS 743 ECHO_T 744 ECHO_N 745 ECHO_C 746 DEFS 747 mandir 748 localedir 749 libdir 750 psdir 751 pdfdir 752 dvidir 753 htmldir 754 infodir 755 docdir 756 oldincludedir 757 includedir 758 runstatedir 759 localstatedir 760 sharedstatedir 761 sysconfdir 762 datadir 763 datarootdir 764 libexecdir 765 sbindir 766 bindir 767 program_transform_name 768 prefix 769 exec_prefix 770 PACKAGE_URL 771 PACKAGE_BUGREPORT 772 PACKAGE_STRING 773 PACKAGE_VERSION 774 PACKAGE_TARNAME 775 PACKAGE_NAME 776 PATH_SEPARATOR 777 SHELL 778 am__quote' 779 ac_subst_files='' 780 ac_user_opts=' 781 enable_option_checking 782 enable_silent_rules 783 enable_dependency_tracking 784 enable_selective_werror 785 enable_strict_compilation 786 ' 787 ac_precious_vars='build_alias 788 host_alias 789 target_alias 790 CC 791 CFLAGS 792 LDFLAGS 793 LIBS 794 CPPFLAGS 795 PKG_CONFIG 796 PKG_CONFIG_PATH 797 PKG_CONFIG_LIBDIR 798 X11PERF_CFLAGS 799 X11PERF_LIBS 800 XRENDER_CFLAGS 801 XRENDER_LIBS 802 XFT_CFLAGS 803 XFT_LIBS 804 XEXT_CFLAGS 805 XEXT_LIBS' 806 807 808 # Initialize some variables set by options. 809 ac_init_help= 810 ac_init_version=false 811 ac_unrecognized_opts= 812 ac_unrecognized_sep= 813 # The variables have the same names as the options, with 814 # dashes changed to underlines. 815 cache_file=/dev/null 816 exec_prefix=NONE 817 no_create= 818 no_recursion= 819 prefix=NONE 820 program_prefix=NONE 821 program_suffix=NONE 822 program_transform_name=s,x,x, 823 silent= 824 site= 825 srcdir= 826 verbose= 827 x_includes=NONE 828 x_libraries=NONE 829 830 # Installation directory options. 831 # These are left unexpanded so users can "make install exec_prefix=/foo" 832 # and all the variables that are supposed to be based on exec_prefix 833 # by default will actually change. 834 # Use braces instead of parens because sh, perl, etc. also accept them. 835 # (The list follows the same order as the GNU Coding Standards.) 836 bindir='${exec_prefix}/bin' 837 sbindir='${exec_prefix}/sbin' 838 libexecdir='${exec_prefix}/libexec' 839 datarootdir='${prefix}/share' 840 datadir='${datarootdir}' 841 sysconfdir='${prefix}/etc' 842 sharedstatedir='${prefix}/com' 843 localstatedir='${prefix}/var' 844 runstatedir='${localstatedir}/run' 845 includedir='${prefix}/include' 846 oldincludedir='/usr/include' 847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848 infodir='${datarootdir}/info' 849 htmldir='${docdir}' 850 dvidir='${docdir}' 851 pdfdir='${docdir}' 852 psdir='${docdir}' 853 libdir='${exec_prefix}/lib' 854 localedir='${datarootdir}/locale' 855 mandir='${datarootdir}/man' 856 857 ac_prev= 858 ac_dashdash= 859 for ac_option 860 do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: '$ac_useropt'" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919 "enable_$ac_useropt" 920 "*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: '$ac_useropt'" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945 "enable_$ac_useropt" 946 "*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1096 | --runstate | --runstat | --runsta | --runst | --runs \ 1097 | --run | --ru | --r) 1098 ac_prev=runstatedir ;; 1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1101 | --run=* | --ru=* | --r=*) 1102 runstatedir=$ac_optarg ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158 "with_$ac_useropt" 1159 "*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: '$ac_useropt'" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174 "with_$ac_useropt" 1175 "*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: '$ac_option' 1200 Try '$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222 done 1223 1224 if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227 fi 1228 1229 if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235 fi 1236 1237 # Check all directory arguments for consistency. 1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir runstatedir 1242 do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256 done 1257 1258 # There might be people who depend on the old broken behavior: '$host' 1259 # used to hold the argument of --host etc. 1260 # FIXME: To remove some day. 1261 build=$build_alias 1262 host=$host_alias 1263 target=$target_alias 1264 1265 # FIXME: To remove some day. 1266 if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272 fi 1273 1274 ac_tool_prefix= 1275 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277 test "$silent" = yes && exec 6>/dev/null 1278 1279 1280 ac_pwd=`pwd` && test -n "$ac_pwd" && 1281 ac_ls_di=`ls -di .` && 1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288 # Find the source files, if location was not specified. 1289 if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297 printf "%s\n" X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319 else 1320 ac_srcdir_defaulted=no 1321 fi 1322 if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325 fi 1326 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1327 ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330 # When building in place, set srcdir=. 1331 if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333 fi 1334 # Remove unnecessary trailing slashes from srcdir. 1335 # Double slashes in file names in object file debugging info 1336 # mess up M-x gdb in Emacs. 1337 case $srcdir in 1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339 esac 1340 for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345 done 1346 1347 # 1348 # Report the --help message. 1349 # 1350 if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354 'configure' configures x11perf 1.7.0 to adapt to many kinds of systems. 1355 1356 Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359 VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361 Defaults for the options are specified in brackets. 1362 1363 Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print 'checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for '--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1373 1374 Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380 By default, 'make install' will install all the files in 1381 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1382 an installation prefix other than '$ac_default_prefix' using '--prefix', 1383 for instance '--prefix=\$HOME'. 1384 1385 For better control, use the options below. 1386 1387 Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/x11perf] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408 _ACEOF 1409 1410 cat <<\_ACEOF 1411 1412 Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417 System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420 _ACEOF 1421 fi 1422 1423 if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of x11perf 1.7.0:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429 Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-silent-rules less verbose build output (undo: "make V=1") 1434 --disable-silent-rules verbose build output (undo: "make V=0") 1435 --enable-dependency-tracking 1436 do not reject slow dependency extractors 1437 --disable-dependency-tracking 1438 speeds up one-time build 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 1446 Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 LIBS libraries to pass to the linker, e.g. -l<library> 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453 you have headers in a nonstandard directory <include dir> 1454 PKG_CONFIG path to pkg-config utility 1455 PKG_CONFIG_PATH 1456 directories to add to pkg-config's search path 1457 PKG_CONFIG_LIBDIR 1458 path overriding pkg-config's built-in search path 1459 X11PERF_CFLAGS 1460 C compiler flags for X11PERF, overriding pkg-config 1461 X11PERF_LIBS 1462 linker flags for X11PERF, overriding pkg-config 1463 XRENDER_CFLAGS 1464 C compiler flags for XRENDER, overriding pkg-config 1465 XRENDER_LIBS 1466 linker flags for XRENDER, overriding pkg-config 1467 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1468 XFT_LIBS linker flags for XFT, overriding pkg-config 1469 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1470 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1471 1472 Use these variables to override the choices made by 'configure' or to help 1473 it to find libraries and programs with nonstandard names/locations. 1474 1475 Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>. 1476 _ACEOF 1477 ac_status=$? 1478 fi 1479 1480 if test "$ac_init_help" = "recursive"; then 1481 # If there are subdirs, report their specific --help. 1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1483 test -d "$ac_dir" || 1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1485 continue 1486 ac_builddir=. 1487 1488 case "$ac_dir" in 1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490 *) 1491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1492 # A ".." for each directory in $ac_dir_suffix. 1493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1494 case $ac_top_builddir_sub in 1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1497 esac ;; 1498 esac 1499 ac_abs_top_builddir=$ac_pwd 1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1501 # for backward compatibility: 1502 ac_top_builddir=$ac_top_build_prefix 1503 1504 case $srcdir in 1505 .) # We are building in place. 1506 ac_srcdir=. 1507 ac_top_srcdir=$ac_top_builddir_sub 1508 ac_abs_top_srcdir=$ac_pwd ;; 1509 [\\/]* | ?:[\\/]* ) # Absolute name. 1510 ac_srcdir=$srcdir$ac_dir_suffix; 1511 ac_top_srcdir=$srcdir 1512 ac_abs_top_srcdir=$srcdir ;; 1513 *) # Relative name. 1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1515 ac_top_srcdir=$ac_top_build_prefix$srcdir 1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1517 esac 1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1519 1520 cd "$ac_dir" || { ac_status=$?; continue; } 1521 # Check for configure.gnu first; this name is used for a wrapper for 1522 # Metaconfig's "Configure" on case-insensitive file systems. 1523 if test -f "$ac_srcdir/configure.gnu"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1526 elif test -f "$ac_srcdir/configure"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure" --help=recursive 1529 else 1530 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1531 fi || ac_status=$? 1532 cd "$ac_pwd" || { ac_status=$?; break; } 1533 done 1534 fi 1535 1536 test -n "$ac_init_help" && exit $ac_status 1537 if $ac_init_version; then 1538 cat <<\_ACEOF 1539 x11perf configure 1.7.0 1540 generated by GNU Autoconf 2.72 1541 1542 Copyright (C) 2023 Free Software Foundation, Inc. 1543 This configure script is free software; the Free Software Foundation 1544 gives unlimited permission to copy, distribute and modify it. 1545 _ACEOF 1546 exit 1547 fi 1548 1549 ## ------------------------ ## 1550 ## Autoconf initialization. ## 1551 ## ------------------------ ## 1552 1553 # ac_fn_c_try_compile LINENO 1554 # -------------------------- 1555 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1556 ac_fn_c_try_compile () 1557 { 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext conftest.beam 1560 if { { ac_try="$ac_compile" 1561 case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564 esac 1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566 printf "%s\n" "$ac_try_echo"; } >&5 1567 (eval "$ac_compile") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest.$ac_objext 1579 then : 1580 ac_retval=0 1581 else case e in #( 1582 e) printf "%s\n" "$as_me: failed program was:" >&5 1583 sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 ;; 1586 esac 1587 fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591 } # ac_fn_c_try_compile 1592 1593 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1594 # ------------------------------------------------------------------ 1595 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1596 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1597 ac_fn_check_decl () 1598 { 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 as_decl_name=`echo $2|sed 's/ *(.*//'` 1601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1602 printf %s "checking whether $as_decl_name is declared... " >&6; } 1603 if eval test \${$3+y} 1604 then : 1605 printf %s "(cached) " >&6 1606 else case e in #( 1607 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1608 eval ac_save_FLAGS=\$$6 1609 as_fn_append $6 " $5" 1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611 /* end confdefs.h. */ 1612 $4 1613 int 1614 main (void) 1615 { 1616 #ifndef $as_decl_name 1617 #ifdef __cplusplus 1618 (void) $as_decl_use; 1619 #else 1620 (void) $as_decl_name; 1621 #endif 1622 #endif 1623 1624 ; 1625 return 0; 1626 } 1627 _ACEOF 1628 if ac_fn_c_try_compile "$LINENO" 1629 then : 1630 eval "$3=yes" 1631 else case e in #( 1632 e) eval "$3=no" ;; 1633 esac 1634 fi 1635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1636 eval $6=\$ac_save_FLAGS 1637 ;; 1638 esac 1639 fi 1640 eval ac_res=\$$3 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1642 printf "%s\n" "$ac_res" >&6; } 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645 } # ac_fn_check_decl 1646 1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1648 # ------------------------------------------------------- 1649 # Tests whether HEADER exists and can be compiled using the include files in 1650 # INCLUDES, setting the cache variable VAR accordingly. 1651 ac_fn_c_check_header_compile () 1652 { 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655 printf %s "checking for $2... " >&6; } 1656 if eval test \${$3+y} 1657 then : 1658 printf %s "(cached) " >&6 1659 else case e in #( 1660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661 /* end confdefs.h. */ 1662 $4 1663 #include <$2> 1664 _ACEOF 1665 if ac_fn_c_try_compile "$LINENO" 1666 then : 1667 eval "$3=yes" 1668 else case e in #( 1669 e) eval "$3=no" ;; 1670 esac 1671 fi 1672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1673 esac 1674 fi 1675 eval ac_res=\$$3 1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1677 printf "%s\n" "$ac_res" >&6; } 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 1680 } # ac_fn_c_check_header_compile 1681 1682 # ac_fn_c_try_link LINENO 1683 # ----------------------- 1684 # Try to link conftest.$ac_ext, and return whether this succeeded. 1685 ac_fn_c_try_link () 1686 { 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1689 if { { ac_try="$ac_link" 1690 case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693 esac 1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695 printf "%s\n" "$ac_try_echo"; } >&5 1696 (eval "$ac_link") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { 1705 test -z "$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 } && test -s conftest$ac_exeext && { 1708 test "$cross_compiling" = yes || 1709 test -x conftest$ac_exeext 1710 } 1711 then : 1712 ac_retval=0 1713 else case e in #( 1714 e) printf "%s\n" "$as_me: failed program was:" >&5 1715 sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 ;; 1718 esac 1719 fi 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722 # interfere with the next link command; also delete a directory that is 1723 # left behind by Apple's compiler. We do this before executing the actions. 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728 } # ac_fn_c_try_link 1729 1730 # ac_fn_c_check_func LINENO FUNC VAR 1731 # ---------------------------------- 1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1733 ac_fn_c_check_func () 1734 { 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737 printf %s "checking for $2... " >&6; } 1738 if eval test \${$3+y} 1739 then : 1740 printf %s "(cached) " >&6 1741 else case e in #( 1742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743 /* end confdefs.h. */ 1744 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1746 #define $2 innocuous_$2 1747 1748 /* System header to define __stub macros and hopefully few prototypes, 1749 which can conflict with char $2 (void); below. */ 1750 1751 #include <limits.h> 1752 #undef $2 1753 1754 /* Override any GCC internal prototype to avoid an error. 1755 Use char because int might match the return type of a GCC 1756 builtin and then its argument prototype would still apply. */ 1757 #ifdef __cplusplus 1758 extern "C" 1759 #endif 1760 char $2 (void); 1761 /* The GNU C library defines this for functions which it implements 1762 to always fail with ENOSYS. Some functions are actually named 1763 something starting with __ and the normal name is an alias. */ 1764 #if defined __stub_$2 || defined __stub___$2 1765 choke me 1766 #endif 1767 1768 int 1769 main (void) 1770 { 1771 return $2 (); 1772 ; 1773 return 0; 1774 } 1775 _ACEOF 1776 if ac_fn_c_try_link "$LINENO" 1777 then : 1778 eval "$3=yes" 1779 else case e in #( 1780 e) eval "$3=no" ;; 1781 esac 1782 fi 1783 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1784 conftest$ac_exeext conftest.$ac_ext ;; 1785 esac 1786 fi 1787 eval ac_res=\$$3 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789 printf "%s\n" "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792 } # ac_fn_c_check_func 1793 ac_configure_args_raw= 1794 for ac_arg 1795 do 1796 case $ac_arg in 1797 *\'*) 1798 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1799 esac 1800 as_fn_append ac_configure_args_raw " '$ac_arg'" 1801 done 1802 1803 case $ac_configure_args_raw in 1804 *$as_nl*) 1805 ac_safe_unquote= ;; 1806 *) 1807 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1808 ac_unsafe_a="$ac_unsafe_z#~" 1809 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1810 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1811 esac 1812 1813 cat >config.log <<_ACEOF 1814 This file contains any messages produced by compilers while 1815 running configure, to aid debugging if configure makes a mistake. 1816 1817 It was created by x11perf $as_me 1.7.0, which was 1818 generated by GNU Autoconf 2.72. Invocation command line was 1819 1820 $ $0$ac_configure_args_raw 1821 1822 _ACEOF 1823 exec 5>>config.log 1824 { 1825 cat <<_ASUNAME 1826 ## --------- ## 1827 ## Platform. ## 1828 ## --------- ## 1829 1830 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1831 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1832 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1833 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1834 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1835 1836 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1837 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1838 1839 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1840 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1841 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1842 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1843 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1844 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1845 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1846 1847 _ASUNAME 1848 1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1850 for as_dir in $PATH 1851 do 1852 IFS=$as_save_IFS 1853 case $as_dir in #((( 1854 '') as_dir=./ ;; 1855 */) ;; 1856 *) as_dir=$as_dir/ ;; 1857 esac 1858 printf "%s\n" "PATH: $as_dir" 1859 done 1860 IFS=$as_save_IFS 1861 1862 } >&5 1863 1864 cat >&5 <<_ACEOF 1865 1866 1867 ## ----------- ## 1868 ## Core tests. ## 1869 ## ----------- ## 1870 1871 _ACEOF 1872 1873 1874 # Keep a trace of the command line. 1875 # Strip out --no-create and --no-recursion so they do not pile up. 1876 # Strip out --silent because we don't want to record it for future runs. 1877 # Also quote any args containing shell meta-characters. 1878 # Make two passes to allow for proper duplicate-argument suppression. 1879 ac_configure_args= 1880 ac_configure_args0= 1881 ac_configure_args1= 1882 ac_must_keep_next=false 1883 for ac_pass in 1 2 1884 do 1885 for ac_arg 1886 do 1887 case $ac_arg in 1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1890 | -silent | --silent | --silen | --sile | --sil) 1891 continue ;; 1892 *\'*) 1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 esac 1895 case $ac_pass in 1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1897 2) 1898 as_fn_append ac_configure_args1 " '$ac_arg'" 1899 if test $ac_must_keep_next = true; then 1900 ac_must_keep_next=false # Got value, back to normal. 1901 else 1902 case $ac_arg in 1903 *=* | --config-cache | -C | -disable-* | --disable-* \ 1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1906 | -with-* | --with-* | -without-* | --without-* | --x) 1907 case "$ac_configure_args0 " in 1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1909 esac 1910 ;; 1911 -* ) ac_must_keep_next=true ;; 1912 esac 1913 fi 1914 as_fn_append ac_configure_args " '$ac_arg'" 1915 ;; 1916 esac 1917 done 1918 done 1919 { ac_configure_args0=; unset ac_configure_args0;} 1920 { ac_configure_args1=; unset ac_configure_args1;} 1921 1922 # When interrupted or exit'd, cleanup temporary files, and complete 1923 # config.log. We remove comments because anyway the quotes in there 1924 # would cause problems or look ugly. 1925 # WARNING: Use '\'' to represent an apostrophe within the trap. 1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1927 trap 'exit_status=$? 1928 # Sanitize IFS. 1929 IFS=" "" $as_nl" 1930 # Save into config.log some information that might help in debugging. 1931 { 1932 echo 1933 1934 printf "%s\n" "## ---------------- ## 1935 ## Cache variables. ## 1936 ## ---------------- ##" 1937 echo 1938 # The following way of writing the cache mishandles newlines in values, 1939 ( 1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1941 eval ac_val=\$$ac_var 1942 case $ac_val in #( 1943 *${as_nl}*) 1944 case $ac_var in #( 1945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1946 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1947 esac 1948 case $ac_var in #( 1949 _ | IFS | as_nl) ;; #( 1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1951 *) { eval $ac_var=; unset $ac_var;} ;; 1952 esac ;; 1953 esac 1954 done 1955 (set) 2>&1 | 1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1957 *${as_nl}ac_space=\ *) 1958 sed -n \ 1959 "s/'\''/'\''\\\\'\'''\''/g; 1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1961 ;; #( 1962 *) 1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1964 ;; 1965 esac | 1966 sort 1967 ) 1968 echo 1969 1970 printf "%s\n" "## ----------------- ## 1971 ## Output variables. ## 1972 ## ----------------- ##" 1973 echo 1974 for ac_var in $ac_subst_vars 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 1984 if test -n "$ac_subst_files"; then 1985 printf "%s\n" "## ------------------- ## 1986 ## File substitutions. ## 1987 ## ------------------- ##" 1988 echo 1989 for ac_var in $ac_subst_files 1990 do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in 1993 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1994 esac 1995 printf "%s\n" "$ac_var='\''$ac_val'\''" 1996 done | sort 1997 echo 1998 fi 1999 2000 if test -s confdefs.h; then 2001 printf "%s\n" "## ----------- ## 2002 ## confdefs.h. ## 2003 ## ----------- ##" 2004 echo 2005 cat confdefs.h 2006 echo 2007 fi 2008 test "$ac_signal" != 0 && 2009 printf "%s\n" "$as_me: caught signal $ac_signal" 2010 printf "%s\n" "$as_me: exit $exit_status" 2011 } >&5 2012 rm -f core *.core core.conftest.* && 2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2014 exit $exit_status 2015 ' 0 2016 for ac_signal in 1 2 13 15; do 2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2018 done 2019 ac_signal=0 2020 2021 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2022 rm -f -r conftest* confdefs.h 2023 2024 printf "%s\n" "/* confdefs.h */" > confdefs.h 2025 2026 # Predefined preprocessor variables. 2027 2028 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2029 2030 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2031 2032 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2033 2034 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2035 2036 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2037 2038 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2039 2040 2041 # Let the site file select an alternate cache file if it wants to. 2042 # Prefer an explicitly selected file to automatically selected ones. 2043 if test -n "$CONFIG_SITE"; then 2044 ac_site_files="$CONFIG_SITE" 2045 elif test "x$prefix" != xNONE; then 2046 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2047 else 2048 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2049 fi 2050 2051 for ac_site_file in $ac_site_files 2052 do 2053 case $ac_site_file in #( 2054 */*) : 2055 ;; #( 2056 *) : 2057 ac_site_file=./$ac_site_file ;; 2058 esac 2059 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2065 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2066 as_fn_error $? "failed to load site script $ac_site_file 2067 See 'config.log' for more details" "$LINENO" 5; } 2068 fi 2069 done 2070 2071 if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082 else 2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086 fi 2087 2088 # Test code for whether the C compiler supports C89 (global declarations) 2089 ac_c_conftest_c89_globals=' 2090 /* Does the compiler advertise C89 conformance? 2091 Do not test the value of __STDC__, because some compilers set it to 0 2092 while being otherwise adequately conformant. */ 2093 #if !defined __STDC__ 2094 # error "Compiler does not advertise C89 conformance" 2095 #endif 2096 2097 #include <stddef.h> 2098 #include <stdarg.h> 2099 struct stat; 2100 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2101 struct buf { int x; }; 2102 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2103 static char *e (char **p, int i) 2104 { 2105 return p[i]; 2106 } 2107 static char *f (char * (*g) (char **, int), char **p, ...) 2108 { 2109 char *s; 2110 va_list v; 2111 va_start (v,p); 2112 s = g (p, va_arg (v,int)); 2113 va_end (v); 2114 return s; 2115 } 2116 2117 /* C89 style stringification. */ 2118 #define noexpand_stringify(a) #a 2119 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2120 2121 /* C89 style token pasting. Exercises some of the corner cases that 2122 e.g. old MSVC gets wrong, but not very hard. */ 2123 #define noexpand_concat(a,b) a##b 2124 #define expand_concat(a,b) noexpand_concat(a,b) 2125 extern int vA; 2126 extern int vbee; 2127 #define aye A 2128 #define bee B 2129 int *pvA = &expand_concat(v,aye); 2130 int *pvbee = &noexpand_concat(v,bee); 2131 2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2133 function prototypes and stuff, but not \xHH hex character constants. 2134 These do not provoke an error unfortunately, instead are silently treated 2135 as an "x". The following induces an error, until -std is added to get 2136 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2137 array size at least. It is necessary to write \x00 == 0 to get something 2138 that is true only with -std. */ 2139 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2140 2141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2142 inside strings and character constants. */ 2143 #define FOO(x) '\''x'\'' 2144 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2145 2146 int test (int i, double x); 2147 struct s1 {int (*f) (int a);}; 2148 struct s2 {int (*f) (double a);}; 2149 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2150 int, int);' 2151 2152 # Test code for whether the C compiler supports C89 (body of main). 2153 ac_c_conftest_c89_main=' 2154 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2155 ' 2156 2157 # Test code for whether the C compiler supports C99 (global declarations) 2158 ac_c_conftest_c99_globals=' 2159 /* Does the compiler advertise C99 conformance? */ 2160 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2161 # error "Compiler does not advertise C99 conformance" 2162 #endif 2163 2164 // See if C++-style comments work. 2165 2166 #include <stdbool.h> 2167 extern int puts (const char *); 2168 extern int printf (const char *, ...); 2169 extern int dprintf (int, const char *, ...); 2170 extern void *malloc (size_t); 2171 extern void free (void *); 2172 2173 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2174 // dprintf is used instead of fprintf to avoid needing to declare 2175 // FILE and stderr. 2176 #define debug(...) dprintf (2, __VA_ARGS__) 2177 #define showlist(...) puts (#__VA_ARGS__) 2178 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2179 static void 2180 test_varargs_macros (void) 2181 { 2182 int x = 1234; 2183 int y = 5678; 2184 debug ("Flag"); 2185 debug ("X = %d\n", x); 2186 showlist (The first, second, and third items.); 2187 report (x>y, "x is %d but y is %d", x, y); 2188 } 2189 2190 // Check long long types. 2191 #define BIG64 18446744073709551615ull 2192 #define BIG32 4294967295ul 2193 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2194 #if !BIG_OK 2195 #error "your preprocessor is broken" 2196 #endif 2197 #if BIG_OK 2198 #else 2199 #error "your preprocessor is broken" 2200 #endif 2201 static long long int bignum = -9223372036854775807LL; 2202 static unsigned long long int ubignum = BIG64; 2203 2204 struct incomplete_array 2205 { 2206 int datasize; 2207 double data[]; 2208 }; 2209 2210 struct named_init { 2211 int number; 2212 const wchar_t *name; 2213 double average; 2214 }; 2215 2216 typedef const char *ccp; 2217 2218 static inline int 2219 test_restrict (ccp restrict text) 2220 { 2221 // Iterate through items via the restricted pointer. 2222 // Also check for declarations in for loops. 2223 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2224 continue; 2225 return 0; 2226 } 2227 2228 // Check varargs and va_copy. 2229 static bool 2230 test_varargs (const char *format, ...) 2231 { 2232 va_list args; 2233 va_start (args, format); 2234 va_list args_copy; 2235 va_copy (args_copy, args); 2236 2237 const char *str = ""; 2238 int number = 0; 2239 float fnumber = 0; 2240 2241 while (*format) 2242 { 2243 switch (*format++) 2244 { 2245 case '\''s'\'': // string 2246 str = va_arg (args_copy, const char *); 2247 break; 2248 case '\''d'\'': // int 2249 number = va_arg (args_copy, int); 2250 break; 2251 case '\''f'\'': // float 2252 fnumber = va_arg (args_copy, double); 2253 break; 2254 default: 2255 break; 2256 } 2257 } 2258 va_end (args_copy); 2259 va_end (args); 2260 2261 return *str && number && fnumber; 2262 } 2263 ' 2264 2265 # Test code for whether the C compiler supports C99 (body of main). 2266 ac_c_conftest_c99_main=' 2267 // Check bool. 2268 _Bool success = false; 2269 success |= (argc != 0); 2270 2271 // Check restrict. 2272 if (test_restrict ("String literal") == 0) 2273 success = true; 2274 char *restrict newvar = "Another string"; 2275 2276 // Check varargs. 2277 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2278 test_varargs_macros (); 2279 2280 // Check flexible array members. 2281 struct incomplete_array *ia = 2282 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2283 ia->datasize = 10; 2284 for (int i = 0; i < ia->datasize; ++i) 2285 ia->data[i] = i * 1.234; 2286 // Work around memory leak warnings. 2287 free (ia); 2288 2289 // Check named initializers. 2290 struct named_init ni = { 2291 .number = 34, 2292 .name = L"Test wide string", 2293 .average = 543.34343, 2294 }; 2295 2296 ni.number = 58; 2297 2298 int dynamic_array[ni.number]; 2299 dynamic_array[0] = argv[0][0]; 2300 dynamic_array[ni.number - 1] = 543; 2301 2302 // work around unused variable warnings 2303 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2304 || dynamic_array[ni.number - 1] != 543); 2305 ' 2306 2307 # Test code for whether the C compiler supports C11 (global declarations) 2308 ac_c_conftest_c11_globals=' 2309 /* Does the compiler advertise C11 conformance? */ 2310 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2311 # error "Compiler does not advertise C11 conformance" 2312 #endif 2313 2314 // Check _Alignas. 2315 char _Alignas (double) aligned_as_double; 2316 char _Alignas (0) no_special_alignment; 2317 extern char aligned_as_int; 2318 char _Alignas (0) _Alignas (int) aligned_as_int; 2319 2320 // Check _Alignof. 2321 enum 2322 { 2323 int_alignment = _Alignof (int), 2324 int_array_alignment = _Alignof (int[100]), 2325 char_alignment = _Alignof (char) 2326 }; 2327 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2328 2329 // Check _Noreturn. 2330 int _Noreturn does_not_return (void) { for (;;) continue; } 2331 2332 // Check _Static_assert. 2333 struct test_static_assert 2334 { 2335 int x; 2336 _Static_assert (sizeof (int) <= sizeof (long int), 2337 "_Static_assert does not work in struct"); 2338 long int y; 2339 }; 2340 2341 // Check UTF-8 literals. 2342 #define u8 syntax error! 2343 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2344 2345 // Check duplicate typedefs. 2346 typedef long *long_ptr; 2347 typedef long int *long_ptr; 2348 typedef long_ptr long_ptr; 2349 2350 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2351 struct anonymous 2352 { 2353 union { 2354 struct { int i; int j; }; 2355 struct { int k; long int l; } w; 2356 }; 2357 int m; 2358 } v1; 2359 ' 2360 2361 # Test code for whether the C compiler supports C11 (body of main). 2362 ac_c_conftest_c11_main=' 2363 _Static_assert ((offsetof (struct anonymous, i) 2364 == offsetof (struct anonymous, w.k)), 2365 "Anonymous union alignment botch"); 2366 v1.i = 2; 2367 v1.w.k = 5; 2368 ok |= v1.i != 5; 2369 ' 2370 2371 # Test code for whether the C compiler supports C11 (complete). 2372 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2373 ${ac_c_conftest_c99_globals} 2374 ${ac_c_conftest_c11_globals} 2375 2376 int 2377 main (int argc, char **argv) 2378 { 2379 int ok = 0; 2380 ${ac_c_conftest_c89_main} 2381 ${ac_c_conftest_c99_main} 2382 ${ac_c_conftest_c11_main} 2383 return ok; 2384 } 2385 " 2386 2387 # Test code for whether the C compiler supports C99 (complete). 2388 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2389 ${ac_c_conftest_c99_globals} 2390 2391 int 2392 main (int argc, char **argv) 2393 { 2394 int ok = 0; 2395 ${ac_c_conftest_c89_main} 2396 ${ac_c_conftest_c99_main} 2397 return ok; 2398 } 2399 " 2400 2401 # Test code for whether the C compiler supports C89 (complete). 2402 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2403 2404 int 2405 main (int argc, char **argv) 2406 { 2407 int ok = 0; 2408 ${ac_c_conftest_c89_main} 2409 return ok; 2410 } 2411 " 2412 2413 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2414 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2415 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2416 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2417 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2418 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2419 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2420 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2421 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2422 2423 # Auxiliary files required by this configure script. 2424 ac_aux_files="config.guess config.sub compile missing install-sh" 2425 2426 # Locations in which to look for auxiliary files. 2427 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2428 2429 # Search for a directory containing all of the required auxiliary files, 2430 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2431 # If we don't find one directory that contains all the files we need, 2432 # we report the set of missing files from the *first* directory in 2433 # $ac_aux_dir_candidates and give up. 2434 ac_missing_aux_files="" 2435 ac_first_candidate=: 2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438 as_found=false 2439 for as_dir in $ac_aux_dir_candidates 2440 do 2441 IFS=$as_save_IFS 2442 case $as_dir in #((( 2443 '') as_dir=./ ;; 2444 */) ;; 2445 *) as_dir=$as_dir/ ;; 2446 esac 2447 as_found=: 2448 2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2450 ac_aux_dir_found=yes 2451 ac_install_sh= 2452 for ac_aux in $ac_aux_files 2453 do 2454 # As a special case, if "install-sh" is required, that requirement 2455 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2456 # and $ac_install_sh is set appropriately for whichever one is found. 2457 if test x"$ac_aux" = x"install-sh" 2458 then 2459 if test -f "${as_dir}install-sh"; then 2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2461 ac_install_sh="${as_dir}install-sh -c" 2462 elif test -f "${as_dir}install.sh"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2464 ac_install_sh="${as_dir}install.sh -c" 2465 elif test -f "${as_dir}shtool"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2467 ac_install_sh="${as_dir}shtool install -c" 2468 else 2469 ac_aux_dir_found=no 2470 if $ac_first_candidate; then 2471 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2472 else 2473 break 2474 fi 2475 fi 2476 else 2477 if test -f "${as_dir}${ac_aux}"; then 2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2479 else 2480 ac_aux_dir_found=no 2481 if $ac_first_candidate; then 2482 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2483 else 2484 break 2485 fi 2486 fi 2487 fi 2488 done 2489 if test "$ac_aux_dir_found" = yes; then 2490 ac_aux_dir="$as_dir" 2491 break 2492 fi 2493 ac_first_candidate=false 2494 2495 as_found=false 2496 done 2497 IFS=$as_save_IFS 2498 if $as_found 2499 then : 2500 2501 else case e in #( 2502 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2503 esac 2504 fi 2505 2506 2507 # These three variables are undocumented and unsupported, 2508 # and are intended to be withdrawn in a future Autoconf release. 2509 # They can cause serious problems if a builder's source tree is in a directory 2510 # whose full name contains unusual characters. 2511 if test -f "${ac_aux_dir}config.guess"; then 2512 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2513 fi 2514 if test -f "${ac_aux_dir}config.sub"; then 2515 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2516 fi 2517 if test -f "$ac_aux_dir/configure"; then 2518 ac_configure="$SHELL ${ac_aux_dir}configure" 2519 fi 2520 2521 # Check that the precious variables saved in the cache have kept the same 2522 # value. 2523 ac_cache_corrupted=false 2524 for ac_var in $ac_precious_vars; do 2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2526 eval ac_new_set=\$ac_env_${ac_var}_set 2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2528 eval ac_new_val=\$ac_env_${ac_var}_value 2529 case $ac_old_set,$ac_new_set in 2530 set,) 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2532 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2533 ac_cache_corrupted=: ;; 2534 ,set) 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2536 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2537 ac_cache_corrupted=: ;; 2538 ,);; 2539 *) 2540 if test "x$ac_old_val" != "x$ac_new_val"; then 2541 # differences in whitespace do not lead to failure. 2542 ac_old_val_w=`echo x $ac_old_val` 2543 ac_new_val_w=`echo x $ac_new_val` 2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2546 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2547 ac_cache_corrupted=: 2548 else 2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2550 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2551 eval $ac_var=\$ac_old_val 2552 fi 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2554 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2556 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2557 fi;; 2558 esac 2559 # Pass precious variables to config.status. 2560 if test "$ac_new_set" = set; then 2561 case $ac_new_val in 2562 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2563 *) ac_arg=$ac_var=$ac_new_val ;; 2564 esac 2565 case " $ac_configure_args " in 2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2568 esac 2569 fi 2570 done 2571 if $ac_cache_corrupted; then 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2573 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2575 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2576 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2577 and start over" "$LINENO" 5 2578 fi 2579 ## -------------------- ## 2580 ## Main body of script. ## 2581 ## -------------------- ## 2582 2583 ac_ext=c 2584 ac_cpp='$CPP $CPPFLAGS' 2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2588 2589 2590 2591 ac_config_headers="$ac_config_headers config.h" 2592 2593 2594 # Initialize Automake 2595 am__api_version='1.17' 2596 2597 2598 2599 # Find a good install program. We prefer a C program (faster), 2600 # so one script is as good as another. But avoid the broken or 2601 # incompatible versions: 2602 # SysV /etc/install, /usr/sbin/install 2603 # SunOS /usr/etc/install 2604 # IRIX /sbin/install 2605 # AIX /bin/install 2606 # AmigaOS /C/install, which installs bootblocks on floppy discs 2607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2610 # OS/2's system install, which has a completely different semantic 2611 # ./install, which can be erroneously created by make from ./install.sh. 2612 # Reject install programs that cannot install multiple files. 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2614 printf %s "checking for a BSD-compatible install... " >&6; } 2615 if test -z "$INSTALL"; then 2616 if test ${ac_cv_path_install+y} 2617 then : 2618 printf %s "(cached) " >&6 2619 else case e in #( 2620 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621 for as_dir in $PATH 2622 do 2623 IFS=$as_save_IFS 2624 case $as_dir in #((( 2625 '') as_dir=./ ;; 2626 */) ;; 2627 *) as_dir=$as_dir/ ;; 2628 esac 2629 # Account for fact that we put trailing slashes in our PATH walk. 2630 case $as_dir in #(( 2631 ./ | /[cC]/* | \ 2632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2634 /usr/ucb/* ) ;; 2635 *) 2636 # OSF1 and SCO ODT 3.0 have their own names for install. 2637 # Don't use installbsd from OSF since it installs stuff as root 2638 # by default. 2639 for ac_prog in ginstall scoinst install; do 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2642 if test $ac_prog = install && 2643 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2644 # AIX install. It has an incompatible calling convention. 2645 : 2646 elif test $ac_prog = install && 2647 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2648 # program-specific install script used by HP pwplus--don't use. 2649 : 2650 else 2651 rm -rf conftest.one conftest.two conftest.dir 2652 echo one > conftest.one 2653 echo two > conftest.two 2654 mkdir conftest.dir 2655 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2656 test -s conftest.one && test -s conftest.two && 2657 test -s conftest.dir/conftest.one && 2658 test -s conftest.dir/conftest.two 2659 then 2660 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2661 break 3 2662 fi 2663 fi 2664 fi 2665 done 2666 done 2667 ;; 2668 esac 2669 2670 done 2671 IFS=$as_save_IFS 2672 2673 rm -rf conftest.one conftest.two conftest.dir 2674 ;; 2675 esac 2676 fi 2677 if test ${ac_cv_path_install+y}; then 2678 INSTALL=$ac_cv_path_install 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for INSTALL within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 INSTALL=$ac_install_sh 2685 fi 2686 fi 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2688 printf "%s\n" "$INSTALL" >&6; } 2689 2690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2691 # It thinks the first close brace ends the variable substitution. 2692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2693 2694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2695 2696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2697 2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2699 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2700 if test ${am_cv_sleep_fractional_seconds+y} 2701 then : 2702 printf %s "(cached) " >&6 2703 else case e in #( 2704 e) if sleep 0.001 2>/dev/null 2705 then : 2706 am_cv_sleep_fractional_seconds=yes 2707 else case e in #( 2708 e) am_cv_sleep_fractional_seconds=no ;; 2709 esac 2710 fi 2711 ;; 2712 esac 2713 fi 2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2715 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2716 2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2718 printf %s "checking filesystem timestamp resolution... " >&6; } 2719 if test ${am_cv_filesystem_timestamp_resolution+y} 2720 then : 2721 printf %s "(cached) " >&6 2722 else case e in #( 2723 e) # Default to the worst case. 2724 am_cv_filesystem_timestamp_resolution=2 2725 2726 # Only try to go finer than 1 sec if sleep can do it. 2727 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2728 # - 1 sec is not much of a win compared to 2 sec, and 2729 # - it takes 2 seconds to perform the test whether 1 sec works. 2730 # 2731 # Instead, just use the default 2s on platforms that have 1s resolution, 2732 # accept the extra 1s delay when using $sleep in the Automake tests, in 2733 # exchange for not incurring the 2s delay for running the test for all 2734 # packages. 2735 # 2736 am_try_resolutions= 2737 if test "$am_cv_sleep_fractional_seconds" = yes; then 2738 # Even a millisecond often causes a bunch of false positives, 2739 # so just try a hundredth of a second. The time saved between .001 and 2740 # .01 is not terribly consequential. 2741 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2742 fi 2743 2744 # In order to catch current-generation FAT out, we must *modify* files 2745 # that already exist; the *creation* timestamp is finer. Use names 2746 # that make ls -t sort them differently when they have equal 2747 # timestamps than when they have distinct timestamps, keeping 2748 # in mind that ls -t prints the *newest* file first. 2749 rm -f conftest.ts? 2750 : > conftest.ts1 2751 : > conftest.ts2 2752 : > conftest.ts3 2753 2754 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2755 # clobber the current shell's arguments. (Outer-level square brackets 2756 # are removed by m4; they're present so that m4 does not expand 2757 # <dollar><star>; be careful, easy to get confused.) 2758 if ( 2759 set X `ls -t conftest.ts[12]` && 2760 { 2761 test "$*" != "X conftest.ts1 conftest.ts2" || 2762 test "$*" != "X conftest.ts2 conftest.ts1"; 2763 } 2764 ); then :; else 2765 # If neither matched, then we have a broken ls. This can happen 2766 # if, for instance, CONFIG_SHELL is bash and it inherits a 2767 # broken ls alias from the environment. This has actually 2768 # happened. Such a system could not be considered "sane". 2769 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2771 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2772 as_fn_error $? "ls -t produces unexpected output. 2773 Make sure there is not a broken ls alias in your environment. 2774 See 'config.log' for more details" "$LINENO" 5; } 2775 fi 2776 2777 for am_try_res in $am_try_resolutions; do 2778 # Any one fine-grained sleep might happen to cross the boundary 2779 # between two values of a coarser actual resolution, but if we do 2780 # two fine-grained sleeps in a row, at least one of them will fall 2781 # entirely within a coarse interval. 2782 echo alpha > conftest.ts1 2783 sleep $am_try_res 2784 echo beta > conftest.ts2 2785 sleep $am_try_res 2786 echo gamma > conftest.ts3 2787 2788 # We assume that 'ls -t' will make use of high-resolution 2789 # timestamps if the operating system supports them at all. 2790 if (set X `ls -t conftest.ts?` && 2791 test "$2" = conftest.ts3 && 2792 test "$3" = conftest.ts2 && 2793 test "$4" = conftest.ts1); then 2794 # 2795 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2796 # because we don't need to test make. 2797 make_ok=true 2798 if test $am_try_res != 1; then 2799 # But if we've succeeded so far with a subsecond resolution, we 2800 # have one more thing to check: make. It can happen that 2801 # everything else supports the subsecond mtimes, but make doesn't; 2802 # notably on macOS, which ships make 3.81 from 2006 (the last one 2803 # released under GPLv2). https://bugs.gnu.org/68808 2804 # 2805 # We test $MAKE if it is defined in the environment, else "make". 2806 # It might get overridden later, but our hope is that in practice 2807 # it does not matter: it is the system "make" which is (by far) 2808 # the most likely to be broken, whereas if the user overrides it, 2809 # probably they did so with a better, or at least not worse, make. 2810 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2811 # 2812 # Create a Makefile (real tab character here): 2813 rm -f conftest.mk 2814 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2815 echo ' touch conftest.ts2' >>conftest.mk 2816 # 2817 # Now, running 2818 # touch conftest.ts1; touch conftest.ts2; make 2819 # should touch ts1 because ts2 is newer. This could happen by luck, 2820 # but most often, it will fail if make's support is insufficient. So 2821 # test for several consecutive successes. 2822 # 2823 # (We reuse conftest.ts[12] because we still want to modify existing 2824 # files, not create new ones, per above.) 2825 n=0 2826 make=${MAKE-make} 2827 until test $n -eq 3; do 2828 echo one > conftest.ts1 2829 sleep $am_try_res 2830 echo two > conftest.ts2 # ts2 should now be newer than ts1 2831 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2832 make_ok=false 2833 break # out of $n loop 2834 fi 2835 n=`expr $n + 1` 2836 done 2837 fi 2838 # 2839 if $make_ok; then 2840 # Everything we know to check worked out, so call this resolution good. 2841 am_cv_filesystem_timestamp_resolution=$am_try_res 2842 break # out of $am_try_res loop 2843 fi 2844 # Otherwise, we'll go on to check the next resolution. 2845 fi 2846 done 2847 rm -f conftest.ts? 2848 # (end _am_filesystem_timestamp_resolution) 2849 ;; 2850 esac 2851 fi 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2853 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2854 2855 # This check should not be cached, as it may vary across builds of 2856 # different projects. 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2858 printf %s "checking whether build environment is sane... " >&6; } 2859 # Reject unsafe characters in $srcdir or the absolute working directory 2860 # name. Accept space and tab only in the latter. 2861 am_lf=' 2862 ' 2863 case `pwd` in 2864 *[\\\"\#\$\&\'\`$am_lf]*) 2865 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2866 esac 2867 case $srcdir in 2868 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2869 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2870 esac 2871 2872 # Do 'set' in a subshell so we don't clobber the current shell's 2873 # arguments. Must try -L first in case configure is actually a 2874 # symlink; some systems play weird games with the mod time of symlinks 2875 # (eg FreeBSD returns the mod time of the symlink's containing 2876 # directory). 2877 am_build_env_is_sane=no 2878 am_has_slept=no 2879 rm -f conftest.file 2880 for am_try in 1 2; do 2881 echo "timestamp, slept: $am_has_slept" > conftest.file 2882 if ( 2883 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2884 if test "$*" = "X"; then 2885 # -L didn't work. 2886 set X `ls -t "$srcdir/configure" conftest.file` 2887 fi 2888 test "$2" = conftest.file 2889 ); then 2890 am_build_env_is_sane=yes 2891 break 2892 fi 2893 # Just in case. 2894 sleep "$am_cv_filesystem_timestamp_resolution" 2895 am_has_slept=yes 2896 done 2897 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2899 printf "%s\n" "$am_build_env_is_sane" >&6; } 2900 if test "$am_build_env_is_sane" = no; then 2901 as_fn_error $? "newly created file is older than distributed files! 2902 Check your system clock" "$LINENO" 5 2903 fi 2904 2905 # If we didn't sleep, we still need to ensure time stamps of config.status and 2906 # generated files are strictly newer. 2907 am_sleep_pid= 2908 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2909 then : 2910 2911 else case e in #( 2912 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2913 am_sleep_pid=$! 2914 ;; 2915 esac 2916 fi 2917 2918 rm -f conftest.file 2919 2920 test "$program_prefix" != NONE && 2921 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2922 # Use a double $ so make ignores it. 2923 test "$program_suffix" != NONE && 2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2925 # Double any \ or $. 2926 # By default was 's,x,x', remove it if useless. 2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2928 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2929 2930 2931 # Expand $ac_aux_dir to an absolute path. 2932 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2933 2934 2935 if test x"${MISSING+set}" != xset; then 2936 MISSING="\${SHELL} '$am_aux_dir/missing'" 2937 fi 2938 # Use eval to expand $SHELL 2939 if eval "$MISSING --is-lightweight"; then 2940 am_missing_run="$MISSING " 2941 else 2942 am_missing_run= 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2944 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2945 fi 2946 2947 if test x"${install_sh+set}" != xset; then 2948 case $am_aux_dir in 2949 *\ * | *\ *) 2950 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2951 *) 2952 install_sh="\${SHELL} $am_aux_dir/install-sh" 2953 esac 2954 fi 2955 2956 # Installed binaries are usually stripped using 'strip' when the user 2957 # run "make install-strip". However 'strip' might not be the right 2958 # tool to use in cross-compilation environments, therefore Automake 2959 # will honor the 'STRIP' environment variable to overrule this program. 2960 if test "$cross_compiling" != no; then 2961 if test -n "$ac_tool_prefix"; then 2962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2963 set dummy ${ac_tool_prefix}strip; ac_word=$2 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965 printf %s "checking for $ac_word... " >&6; } 2966 if test ${ac_cv_prog_STRIP+y} 2967 then : 2968 printf %s "(cached) " >&6 2969 else case e in #( 2970 e) if test -n "$STRIP"; then 2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2972 else 2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974 for as_dir in $PATH 2975 do 2976 IFS=$as_save_IFS 2977 case $as_dir in #((( 2978 '') as_dir=./ ;; 2979 */) ;; 2980 *) as_dir=$as_dir/ ;; 2981 esac 2982 for ac_exec_ext in '' $ac_executable_extensions; do 2983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2984 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2986 break 2 2987 fi 2988 done 2989 done 2990 IFS=$as_save_IFS 2991 2992 fi ;; 2993 esac 2994 fi 2995 STRIP=$ac_cv_prog_STRIP 2996 if test -n "$STRIP"; then 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2998 printf "%s\n" "$STRIP" >&6; } 2999 else 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001 printf "%s\n" "no" >&6; } 3002 fi 3003 3004 3005 fi 3006 if test -z "$ac_cv_prog_STRIP"; then 3007 ac_ct_STRIP=$STRIP 3008 # Extract the first word of "strip", so it can be a program name with args. 3009 set dummy strip; ac_word=$2 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011 printf %s "checking for $ac_word... " >&6; } 3012 if test ${ac_cv_prog_ac_ct_STRIP+y} 3013 then : 3014 printf %s "(cached) " >&6 3015 else case e in #( 3016 e) if test -n "$ac_ct_STRIP"; then 3017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3018 else 3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020 for as_dir in $PATH 3021 do 3022 IFS=$as_save_IFS 3023 case $as_dir in #((( 3024 '') as_dir=./ ;; 3025 */) ;; 3026 *) as_dir=$as_dir/ ;; 3027 esac 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3030 ac_cv_prog_ac_ct_STRIP="strip" 3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034 done 3035 done 3036 IFS=$as_save_IFS 3037 3038 fi ;; 3039 esac 3040 fi 3041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3042 if test -n "$ac_ct_STRIP"; then 3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3044 printf "%s\n" "$ac_ct_STRIP" >&6; } 3045 else 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047 printf "%s\n" "no" >&6; } 3048 fi 3049 3050 if test "x$ac_ct_STRIP" = x; then 3051 STRIP=":" 3052 else 3053 case $cross_compiling:$ac_tool_warned in 3054 yes:) 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3057 ac_tool_warned=yes ;; 3058 esac 3059 STRIP=$ac_ct_STRIP 3060 fi 3061 else 3062 STRIP="$ac_cv_prog_STRIP" 3063 fi 3064 3065 fi 3066 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3067 3068 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3070 printf %s "checking for a race-free mkdir -p... " >&6; } 3071 if test -z "$MKDIR_P"; then 3072 if test ${ac_cv_path_mkdir+y} 3073 then : 3074 printf %s "(cached) " >&6 3075 else case e in #( 3076 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3078 do 3079 IFS=$as_save_IFS 3080 case $as_dir in #((( 3081 '') as_dir=./ ;; 3082 */) ;; 3083 *) as_dir=$as_dir/ ;; 3084 esac 3085 for ac_prog in mkdir gmkdir; do 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3088 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3089 'mkdir ('*'coreutils) '* | \ 3090 *'BusyBox '* | \ 3091 'mkdir (fileutils) '4.1*) 3092 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3093 break 3;; 3094 esac 3095 done 3096 done 3097 done 3098 IFS=$as_save_IFS 3099 ;; 3100 esac 3101 fi 3102 3103 test -d ./--version && rmdir ./--version 3104 if test ${ac_cv_path_mkdir+y}; then 3105 MKDIR_P="$ac_cv_path_mkdir -p" 3106 else 3107 # As a last resort, use plain mkdir -p, 3108 # in the hope it doesn't have the bugs of ancient mkdir. 3109 MKDIR_P='mkdir -p' 3110 fi 3111 fi 3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3113 printf "%s\n" "$MKDIR_P" >&6; } 3114 3115 for ac_prog in gawk mawk nawk awk 3116 do 3117 # Extract the first word of "$ac_prog", so it can be a program name with args. 3118 set dummy $ac_prog; ac_word=$2 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120 printf %s "checking for $ac_word... " >&6; } 3121 if test ${ac_cv_prog_AWK+y} 3122 then : 3123 printf %s "(cached) " >&6 3124 else case e in #( 3125 e) if test -n "$AWK"; then 3126 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3127 else 3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129 for as_dir in $PATH 3130 do 3131 IFS=$as_save_IFS 3132 case $as_dir in #((( 3133 '') as_dir=./ ;; 3134 */) ;; 3135 *) as_dir=$as_dir/ ;; 3136 esac 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3139 ac_cv_prog_AWK="$ac_prog" 3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3141 break 2 3142 fi 3143 done 3144 done 3145 IFS=$as_save_IFS 3146 3147 fi ;; 3148 esac 3149 fi 3150 AWK=$ac_cv_prog_AWK 3151 if test -n "$AWK"; then 3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3153 printf "%s\n" "$AWK" >&6; } 3154 else 3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3156 printf "%s\n" "no" >&6; } 3157 fi 3158 3159 3160 test -n "$AWK" && break 3161 done 3162 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3164 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3165 set x ${MAKE-make} 3166 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3167 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3168 then : 3169 printf %s "(cached) " >&6 3170 else case e in #( 3171 e) cat >conftest.make <<\_ACEOF 3172 SHELL = /bin/sh 3173 all: 3174 @echo '@@@%%%=$(MAKE)=@@@%%%' 3175 _ACEOF 3176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3177 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3178 *@@@%%%=?*=@@@%%%*) 3179 eval ac_cv_prog_make_${ac_make}_set=yes;; 3180 *) 3181 eval ac_cv_prog_make_${ac_make}_set=no;; 3182 esac 3183 rm -f conftest.make ;; 3184 esac 3185 fi 3186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3188 printf "%s\n" "yes" >&6; } 3189 SET_MAKE= 3190 else 3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192 printf "%s\n" "no" >&6; } 3193 SET_MAKE="MAKE=${MAKE-make}" 3194 fi 3195 3196 rm -rf .tst 2>/dev/null 3197 mkdir .tst 2>/dev/null 3198 if test -d .tst; then 3199 am__leading_dot=. 3200 else 3201 am__leading_dot=_ 3202 fi 3203 rmdir .tst 2>/dev/null 3204 3205 AM_DEFAULT_VERBOSITY=1 3206 # Check whether --enable-silent-rules was given. 3207 if test ${enable_silent_rules+y} 3208 then : 3209 enableval=$enable_silent_rules; 3210 fi 3211 3212 am_make=${MAKE-make} 3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3214 printf %s "checking whether $am_make supports nested variables... " >&6; } 3215 if test ${am_cv_make_support_nested_variables+y} 3216 then : 3217 printf %s "(cached) " >&6 3218 else case e in #( 3219 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3220 BAR0=false 3221 BAR1=true 3222 V=1 3223 am__doit: 3224 @$(TRUE) 3225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3226 am_cv_make_support_nested_variables=yes 3227 else 3228 am_cv_make_support_nested_variables=no 3229 fi ;; 3230 esac 3231 fi 3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3233 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3234 AM_BACKSLASH='\' 3235 3236 am__rm_f_notfound= 3237 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3238 then : 3239 3240 else case e in #( 3241 e) am__rm_f_notfound='""' ;; 3242 esac 3243 fi 3244 3245 3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3247 printf %s "checking xargs -n works... " >&6; } 3248 if test ${am_cv_xargs_n_works+y} 3249 then : 3250 printf %s "(cached) " >&6 3251 else case e in #( 3252 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3253 3" 3254 then : 3255 am_cv_xargs_n_works=yes 3256 else case e in #( 3257 e) am_cv_xargs_n_works=no ;; 3258 esac 3259 fi ;; 3260 esac 3261 fi 3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3263 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3264 if test "$am_cv_xargs_n_works" = yes 3265 then : 3266 am__xargs_n='xargs -n' 3267 else case e in #( 3268 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3269 ;; 3270 esac 3271 fi 3272 3273 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3274 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3275 # is not polluted with repeated "-I." 3276 am__isrc=' -I$(srcdir)' 3277 # test to see if srcdir already configured 3278 if test -f $srcdir/config.status; then 3279 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3280 fi 3281 fi 3282 3283 # test whether we have cygpath 3284 if test -z "$CYGPATH_W"; then 3285 if (cygpath --version) >/dev/null 2>/dev/null; then 3286 CYGPATH_W='cygpath -w' 3287 else 3288 CYGPATH_W=echo 3289 fi 3290 fi 3291 3292 3293 # Define the identity of the package. 3294 PACKAGE='x11perf' 3295 VERSION='1.7.0' 3296 3297 3298 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3299 3300 3301 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3302 3303 # Some tools Automake needs. 3304 3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3306 3307 3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3309 3310 3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3312 3313 3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3315 3316 3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3318 3319 # For better backward compatibility. To be removed once Automake 1.9.x 3320 # dies out for good. For more background, see: 3321 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3322 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3323 mkdir_p='$(MKDIR_P)' 3324 3325 # We need awk for the "check" target (and possibly the TAP driver). The 3326 # system "awk" is bad on some platforms. 3327 # Always define AMTAR for backward compatibility. Yes, it's still used 3328 # in the wild :-( We should find a proper way to deprecate it ... 3329 AMTAR='$${TAR-tar}' 3330 3331 3332 # We'll loop over all known methods to create a tar archive until one works. 3333 _am_tools='gnutar pax cpio none' 3334 3335 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3336 3337 3338 3339 3340 3341 # Variables for tags utilities; see am/tags.am 3342 if test -z "$CTAGS"; then 3343 CTAGS=ctags 3344 fi 3345 3346 if test -z "$ETAGS"; then 3347 ETAGS=etags 3348 fi 3349 3350 if test -z "$CSCOPE"; then 3351 CSCOPE=cscope 3352 fi 3353 3354 3355 3356 3357 3358 3359 3360 3361 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 DEPDIR="${am__leading_dot}deps" 3383 3384 ac_config_commands="$ac_config_commands depfiles" 3385 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3387 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3388 cat > confinc.mk << 'END' 3389 am__doit: 3390 @echo this is the am__doit target >confinc.out 3391 .PHONY: am__doit 3392 END 3393 am__include="#" 3394 am__quote= 3395 # BSD make does it like this. 3396 echo '.include "confinc.mk" # ignored' > confmf.BSD 3397 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3398 echo 'include confinc.mk # ignored' > confmf.GNU 3399 _am_result=no 3400 for s in GNU BSD; do 3401 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3402 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3403 ac_status=$? 3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3405 (exit $ac_status); } 3406 case $?:`cat confinc.out 2>/dev/null` in #( 3407 '0:this is the am__doit target') : 3408 case $s in #( 3409 BSD) : 3410 am__include='.include' am__quote='"' ;; #( 3411 *) : 3412 am__include='include' am__quote='' ;; 3413 esac ;; #( 3414 *) : 3415 ;; 3416 esac 3417 if test "$am__include" != "#"; then 3418 _am_result="yes ($s style)" 3419 break 3420 fi 3421 done 3422 rm -f confinc.* confmf.* 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3424 printf "%s\n" "${_am_result}" >&6; } 3425 3426 # Check whether --enable-dependency-tracking was given. 3427 if test ${enable_dependency_tracking+y} 3428 then : 3429 enableval=$enable_dependency_tracking; 3430 fi 3431 3432 if test "x$enable_dependency_tracking" != xno; then 3433 am_depcomp="$ac_aux_dir/depcomp" 3434 AMDEPBACKSLASH='\' 3435 am__nodep='_no' 3436 fi 3437 if test "x$enable_dependency_tracking" != xno; then 3438 AMDEP_TRUE= 3439 AMDEP_FALSE='#' 3440 else 3441 AMDEP_TRUE='#' 3442 AMDEP_FALSE= 3443 fi 3444 3445 3446 ac_ext=c 3447 ac_cpp='$CPP $CPPFLAGS' 3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3451 if test -n "$ac_tool_prefix"; then 3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3455 printf %s "checking for $ac_word... " >&6; } 3456 if test ${ac_cv_prog_CC+y} 3457 then : 3458 printf %s "(cached) " >&6 3459 else case e in #( 3460 e) if test -n "$CC"; then 3461 ac_cv_prog_CC="$CC" # Let the user override the test. 3462 else 3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464 for as_dir in $PATH 3465 do 3466 IFS=$as_save_IFS 3467 case $as_dir in #((( 3468 '') as_dir=./ ;; 3469 */) ;; 3470 *) as_dir=$as_dir/ ;; 3471 esac 3472 for ac_exec_ext in '' $ac_executable_extensions; do 3473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3474 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3476 break 2 3477 fi 3478 done 3479 done 3480 IFS=$as_save_IFS 3481 3482 fi ;; 3483 esac 3484 fi 3485 CC=$ac_cv_prog_CC 3486 if test -n "$CC"; then 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3488 printf "%s\n" "$CC" >&6; } 3489 else 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491 printf "%s\n" "no" >&6; } 3492 fi 3493 3494 3495 fi 3496 if test -z "$ac_cv_prog_CC"; then 3497 ac_ct_CC=$CC 3498 # Extract the first word of "gcc", so it can be a program name with args. 3499 set dummy gcc; ac_word=$2 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 printf %s "checking for $ac_word... " >&6; } 3502 if test ${ac_cv_prog_ac_ct_CC+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else case e in #( 3506 e) if test -n "$ac_ct_CC"; then 3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3508 else 3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510 for as_dir in $PATH 3511 do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_ac_ct_CC="gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524 done 3525 done 3526 IFS=$as_save_IFS 3527 3528 fi ;; 3529 esac 3530 fi 3531 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3532 if test -n "$ac_ct_CC"; then 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3534 printf "%s\n" "$ac_ct_CC" >&6; } 3535 else 3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537 printf "%s\n" "no" >&6; } 3538 fi 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544 yes:) 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547 ac_tool_warned=yes ;; 3548 esac 3549 CC=$ac_ct_CC 3550 fi 3551 else 3552 CC="$ac_cv_prog_CC" 3553 fi 3554 3555 if test -z "$CC"; then 3556 if test -n "$ac_tool_prefix"; then 3557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3558 set dummy ${ac_tool_prefix}cc; ac_word=$2 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560 printf %s "checking for $ac_word... " >&6; } 3561 if test ${ac_cv_prog_CC+y} 3562 then : 3563 printf %s "(cached) " >&6 3564 else case e in #( 3565 e) if test -n "$CC"; then 3566 ac_cv_prog_CC="$CC" # Let the user override the test. 3567 else 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569 for as_dir in $PATH 3570 do 3571 IFS=$as_save_IFS 3572 case $as_dir in #((( 3573 '') as_dir=./ ;; 3574 */) ;; 3575 *) as_dir=$as_dir/ ;; 3576 esac 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="${ac_tool_prefix}cc" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583 done 3584 done 3585 IFS=$as_save_IFS 3586 3587 fi ;; 3588 esac 3589 fi 3590 CC=$ac_cv_prog_CC 3591 if test -n "$CC"; then 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593 printf "%s\n" "$CC" >&6; } 3594 else 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596 printf "%s\n" "no" >&6; } 3597 fi 3598 3599 3600 fi 3601 fi 3602 if test -z "$CC"; then 3603 # Extract the first word of "cc", so it can be a program name with args. 3604 set dummy cc; ac_word=$2 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606 printf %s "checking for $ac_word... " >&6; } 3607 if test ${ac_cv_prog_CC+y} 3608 then : 3609 printf %s "(cached) " >&6 3610 else case e in #( 3611 e) if test -n "$CC"; then 3612 ac_cv_prog_CC="$CC" # Let the user override the test. 3613 else 3614 ac_prog_rejected=no 3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616 for as_dir in $PATH 3617 do 3618 IFS=$as_save_IFS 3619 case $as_dir in #((( 3620 '') as_dir=./ ;; 3621 */) ;; 3622 *) as_dir=$as_dir/ ;; 3623 esac 3624 for ac_exec_ext in '' $ac_executable_extensions; do 3625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3626 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3627 ac_prog_rejected=yes 3628 continue 3629 fi 3630 ac_cv_prog_CC="cc" 3631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3632 break 2 3633 fi 3634 done 3635 done 3636 IFS=$as_save_IFS 3637 3638 if test $ac_prog_rejected = yes; then 3639 # We found a bogon in the path, so make sure we never use it. 3640 set dummy $ac_cv_prog_CC 3641 shift 3642 if test $# != 0; then 3643 # We chose a different compiler from the bogus one. 3644 # However, it has the same basename, so the bogon will be chosen 3645 # first if we set CC to just the basename; use the full file name. 3646 shift 3647 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3648 fi 3649 fi 3650 fi ;; 3651 esac 3652 fi 3653 CC=$ac_cv_prog_CC 3654 if test -n "$CC"; then 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3656 printf "%s\n" "$CC" >&6; } 3657 else 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3659 printf "%s\n" "no" >&6; } 3660 fi 3661 3662 3663 fi 3664 if test -z "$CC"; then 3665 if test -n "$ac_tool_prefix"; then 3666 for ac_prog in cl.exe 3667 do 3668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3671 printf %s "checking for $ac_word... " >&6; } 3672 if test ${ac_cv_prog_CC+y} 3673 then : 3674 printf %s "(cached) " >&6 3675 else case e in #( 3676 e) if test -n "$CC"; then 3677 ac_cv_prog_CC="$CC" # Let the user override the test. 3678 else 3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680 for as_dir in $PATH 3681 do 3682 IFS=$as_save_IFS 3683 case $as_dir in #((( 3684 '') as_dir=./ ;; 3685 */) ;; 3686 *) as_dir=$as_dir/ ;; 3687 esac 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3692 break 2 3693 fi 3694 done 3695 done 3696 IFS=$as_save_IFS 3697 3698 fi ;; 3699 esac 3700 fi 3701 CC=$ac_cv_prog_CC 3702 if test -n "$CC"; then 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3704 printf "%s\n" "$CC" >&6; } 3705 else 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707 printf "%s\n" "no" >&6; } 3708 fi 3709 3710 3711 test -n "$CC" && break 3712 done 3713 fi 3714 if test -z "$CC"; then 3715 ac_ct_CC=$CC 3716 for ac_prog in cl.exe 3717 do 3718 # Extract the first word of "$ac_prog", so it can be a program name with args. 3719 set dummy $ac_prog; ac_word=$2 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721 printf %s "checking for $ac_word... " >&6; } 3722 if test ${ac_cv_prog_ac_ct_CC+y} 3723 then : 3724 printf %s "(cached) " >&6 3725 else case e in #( 3726 e) if test -n "$ac_ct_CC"; then 3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3728 else 3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3730 for as_dir in $PATH 3731 do 3732 IFS=$as_save_IFS 3733 case $as_dir in #((( 3734 '') as_dir=./ ;; 3735 */) ;; 3736 *) as_dir=$as_dir/ ;; 3737 esac 3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3740 ac_cv_prog_ac_ct_CC="$ac_prog" 3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3742 break 2 3743 fi 3744 done 3745 done 3746 IFS=$as_save_IFS 3747 3748 fi ;; 3749 esac 3750 fi 3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3752 if test -n "$ac_ct_CC"; then 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3754 printf "%s\n" "$ac_ct_CC" >&6; } 3755 else 3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3757 printf "%s\n" "no" >&6; } 3758 fi 3759 3760 3761 test -n "$ac_ct_CC" && break 3762 done 3763 3764 if test "x$ac_ct_CC" = x; then 3765 CC="" 3766 else 3767 case $cross_compiling:$ac_tool_warned in 3768 yes:) 3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3771 ac_tool_warned=yes ;; 3772 esac 3773 CC=$ac_ct_CC 3774 fi 3775 fi 3776 3777 fi 3778 if test -z "$CC"; then 3779 if test -n "$ac_tool_prefix"; then 3780 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3781 set dummy ${ac_tool_prefix}clang; ac_word=$2 3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783 printf %s "checking for $ac_word... " >&6; } 3784 if test ${ac_cv_prog_CC+y} 3785 then : 3786 printf %s "(cached) " >&6 3787 else case e in #( 3788 e) if test -n "$CC"; then 3789 ac_cv_prog_CC="$CC" # Let the user override the test. 3790 else 3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792 for as_dir in $PATH 3793 do 3794 IFS=$as_save_IFS 3795 case $as_dir in #((( 3796 '') as_dir=./ ;; 3797 */) ;; 3798 *) as_dir=$as_dir/ ;; 3799 esac 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3802 ac_cv_prog_CC="${ac_tool_prefix}clang" 3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3804 break 2 3805 fi 3806 done 3807 done 3808 IFS=$as_save_IFS 3809 3810 fi ;; 3811 esac 3812 fi 3813 CC=$ac_cv_prog_CC 3814 if test -n "$CC"; then 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3816 printf "%s\n" "$CC" >&6; } 3817 else 3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3819 printf "%s\n" "no" >&6; } 3820 fi 3821 3822 3823 fi 3824 if test -z "$ac_cv_prog_CC"; then 3825 ac_ct_CC=$CC 3826 # Extract the first word of "clang", so it can be a program name with args. 3827 set dummy clang; ac_word=$2 3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3829 printf %s "checking for $ac_word... " >&6; } 3830 if test ${ac_cv_prog_ac_ct_CC+y} 3831 then : 3832 printf %s "(cached) " >&6 3833 else case e in #( 3834 e) if test -n "$ac_ct_CC"; then 3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3836 else 3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838 for as_dir in $PATH 3839 do 3840 IFS=$as_save_IFS 3841 case $as_dir in #((( 3842 '') as_dir=./ ;; 3843 */) ;; 3844 *) as_dir=$as_dir/ ;; 3845 esac 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3848 ac_cv_prog_ac_ct_CC="clang" 3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3850 break 2 3851 fi 3852 done 3853 done 3854 IFS=$as_save_IFS 3855 3856 fi ;; 3857 esac 3858 fi 3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3860 if test -n "$ac_ct_CC"; then 3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3862 printf "%s\n" "$ac_ct_CC" >&6; } 3863 else 3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3865 printf "%s\n" "no" >&6; } 3866 fi 3867 3868 if test "x$ac_ct_CC" = x; then 3869 CC="" 3870 else 3871 case $cross_compiling:$ac_tool_warned in 3872 yes:) 3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3875 ac_tool_warned=yes ;; 3876 esac 3877 CC=$ac_ct_CC 3878 fi 3879 else 3880 CC="$ac_cv_prog_CC" 3881 fi 3882 3883 fi 3884 3885 3886 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3887 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3888 as_fn_error $? "no acceptable C compiler found in \$PATH 3889 See 'config.log' for more details" "$LINENO" 5; } 3890 3891 # Provide some information about the compiler. 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3893 set X $ac_compile 3894 ac_compiler=$2 3895 for ac_option in --version -v -V -qversion -version; do 3896 { { ac_try="$ac_compiler $ac_option >&5" 3897 case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900 esac 3901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902 printf "%s\n" "$ac_try_echo"; } >&5 3903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3904 ac_status=$? 3905 if test -s conftest.err; then 3906 sed '10a\ 3907 ... rest of stderr output deleted ... 3908 10q' conftest.err >conftest.er1 3909 cat conftest.er1 >&5 3910 fi 3911 rm -f conftest.er1 conftest.err 3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; } 3914 done 3915 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917 /* end confdefs.h. */ 3918 3919 int 3920 main (void) 3921 { 3922 3923 ; 3924 return 0; 3925 } 3926 _ACEOF 3927 ac_clean_files_save=$ac_clean_files 3928 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3929 # Try to create an executable without -o first, disregard a.out. 3930 # It will help us diagnose broken compilers, and finding out an intuition 3931 # of exeext. 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3933 printf %s "checking whether the C compiler works... " >&6; } 3934 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3935 3936 # The possible output files: 3937 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3938 3939 ac_rmfiles= 3940 for ac_file in $ac_files 3941 do 3942 case $ac_file in 3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3944 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3945 esac 3946 done 3947 rm -f $ac_rmfiles 3948 3949 if { { ac_try="$ac_link_default" 3950 case "(($ac_try" in 3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3952 *) ac_try_echo=$ac_try;; 3953 esac 3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3955 printf "%s\n" "$ac_try_echo"; } >&5 3956 (eval "$ac_link_default") 2>&5 3957 ac_status=$? 3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3959 test $ac_status = 0; } 3960 then : 3961 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3962 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3963 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3964 # so that the user can short-circuit this test for compilers unknown to 3965 # Autoconf. 3966 for ac_file in $ac_files '' 3967 do 3968 test -f "$ac_file" || continue 3969 case $ac_file in 3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3971 ;; 3972 [ab].out ) 3973 # We found the default executable, but exeext='' is most 3974 # certainly right. 3975 break;; 3976 *.* ) 3977 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3978 then :; else 3979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3980 fi 3981 # We set ac_cv_exeext here because the later test for it is not 3982 # safe: cross compilers may not add the suffix if given an '-o' 3983 # argument, so we may need to know it at that point already. 3984 # Even if this section looks crufty: it has the advantage of 3985 # actually working. 3986 break;; 3987 * ) 3988 break;; 3989 esac 3990 done 3991 test "$ac_cv_exeext" = no && ac_cv_exeext= 3992 3993 else case e in #( 3994 e) ac_file='' ;; 3995 esac 3996 fi 3997 if test -z "$ac_file" 3998 then : 3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4000 printf "%s\n" "no" >&6; } 4001 printf "%s\n" "$as_me: failed program was:" >&5 4002 sed 's/^/| /' conftest.$ac_ext >&5 4003 4004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4005 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4006 as_fn_error 77 "C compiler cannot create executables 4007 See 'config.log' for more details" "$LINENO" 5; } 4008 else case e in #( 4009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4010 printf "%s\n" "yes" >&6; } ;; 4011 esac 4012 fi 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4014 printf %s "checking for C compiler default output file name... " >&6; } 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4016 printf "%s\n" "$ac_file" >&6; } 4017 ac_exeext=$ac_cv_exeext 4018 4019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4020 ac_clean_files=$ac_clean_files_save 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4022 printf %s "checking for suffix of executables... " >&6; } 4023 if { { ac_try="$ac_link" 4024 case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027 esac 4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029 printf "%s\n" "$ac_try_echo"; } >&5 4030 (eval "$ac_link") 2>&5 4031 ac_status=$? 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; } 4034 then : 4035 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4036 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4037 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4038 # 'rm'. 4039 for ac_file in conftest.exe conftest conftest.*; do 4040 test -f "$ac_file" || continue 4041 case $ac_file in 4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4044 break;; 4045 * ) break;; 4046 esac 4047 done 4048 else case e in #( 4049 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4051 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4052 See 'config.log' for more details" "$LINENO" 5; } ;; 4053 esac 4054 fi 4055 rm -f conftest conftest$ac_cv_exeext 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4057 printf "%s\n" "$ac_cv_exeext" >&6; } 4058 4059 rm -f conftest.$ac_ext 4060 EXEEXT=$ac_cv_exeext 4061 ac_exeext=$EXEEXT 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063 /* end confdefs.h. */ 4064 #include <stdio.h> 4065 int 4066 main (void) 4067 { 4068 FILE *f = fopen ("conftest.out", "w"); 4069 if (!f) 4070 return 1; 4071 return ferror (f) || fclose (f) != 0; 4072 4073 ; 4074 return 0; 4075 } 4076 _ACEOF 4077 ac_clean_files="$ac_clean_files conftest.out" 4078 # Check that the compiler produces executables we can run. If not, either 4079 # the compiler is broken, or we cross compile. 4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4081 printf %s "checking whether we are cross compiling... " >&6; } 4082 if test "$cross_compiling" != yes; then 4083 { { ac_try="$ac_link" 4084 case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087 esac 4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089 printf "%s\n" "$ac_try_echo"; } >&5 4090 (eval "$ac_link") 2>&5 4091 ac_status=$? 4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; } 4094 if { ac_try='./conftest$ac_cv_exeext' 4095 { { case "(($ac_try" in 4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4097 *) ac_try_echo=$ac_try;; 4098 esac 4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4100 printf "%s\n" "$ac_try_echo"; } >&5 4101 (eval "$ac_try") 2>&5 4102 ac_status=$? 4103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4104 test $ac_status = 0; }; }; then 4105 cross_compiling=no 4106 else 4107 if test "$cross_compiling" = maybe; then 4108 cross_compiling=yes 4109 else 4110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4112 as_fn_error 77 "cannot run C compiled programs. 4113 If you meant to cross compile, use '--host'. 4114 See 'config.log' for more details" "$LINENO" 5; } 4115 fi 4116 fi 4117 fi 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4119 printf "%s\n" "$cross_compiling" >&6; } 4120 4121 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4122 conftest.o conftest.obj conftest.out 4123 ac_clean_files=$ac_clean_files_save 4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4125 printf %s "checking for suffix of object files... " >&6; } 4126 if test ${ac_cv_objext+y} 4127 then : 4128 printf %s "(cached) " >&6 4129 else case e in #( 4130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131 /* end confdefs.h. */ 4132 4133 int 4134 main (void) 4135 { 4136 4137 ; 4138 return 0; 4139 } 4140 _ACEOF 4141 rm -f conftest.o conftest.obj 4142 if { { ac_try="$ac_compile" 4143 case "(($ac_try" in 4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4145 *) ac_try_echo=$ac_try;; 4146 esac 4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4148 printf "%s\n" "$ac_try_echo"; } >&5 4149 (eval "$ac_compile") 2>&5 4150 ac_status=$? 4151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4152 test $ac_status = 0; } 4153 then : 4154 for ac_file in conftest.o conftest.obj conftest.*; do 4155 test -f "$ac_file" || continue; 4156 case $ac_file in 4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4158 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4159 break;; 4160 esac 4161 done 4162 else case e in #( 4163 e) printf "%s\n" "$as_me: failed program was:" >&5 4164 sed 's/^/| /' conftest.$ac_ext >&5 4165 4166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4167 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4168 as_fn_error $? "cannot compute suffix of object files: cannot compile 4169 See 'config.log' for more details" "$LINENO" 5; } ;; 4170 esac 4171 fi 4172 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4173 esac 4174 fi 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4176 printf "%s\n" "$ac_cv_objext" >&6; } 4177 OBJEXT=$ac_cv_objext 4178 ac_objext=$OBJEXT 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4180 printf %s "checking whether the compiler supports GNU C... " >&6; } 4181 if test ${ac_cv_c_compiler_gnu+y} 4182 then : 4183 printf %s "(cached) " >&6 4184 else case e in #( 4185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186 /* end confdefs.h. */ 4187 4188 int 4189 main (void) 4190 { 4191 #ifndef __GNUC__ 4192 choke me 4193 #endif 4194 4195 ; 4196 return 0; 4197 } 4198 _ACEOF 4199 if ac_fn_c_try_compile "$LINENO" 4200 then : 4201 ac_compiler_gnu=yes 4202 else case e in #( 4203 e) ac_compiler_gnu=no ;; 4204 esac 4205 fi 4206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4207 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4208 ;; 4209 esac 4210 fi 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4212 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4214 4215 if test $ac_compiler_gnu = yes; then 4216 GCC=yes 4217 else 4218 GCC= 4219 fi 4220 ac_test_CFLAGS=${CFLAGS+y} 4221 ac_save_CFLAGS=$CFLAGS 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4223 printf %s "checking whether $CC accepts -g... " >&6; } 4224 if test ${ac_cv_prog_cc_g+y} 4225 then : 4226 printf %s "(cached) " >&6 4227 else case e in #( 4228 e) ac_save_c_werror_flag=$ac_c_werror_flag 4229 ac_c_werror_flag=yes 4230 ac_cv_prog_cc_g=no 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 4235 int 4236 main (void) 4237 { 4238 4239 ; 4240 return 0; 4241 } 4242 _ACEOF 4243 if ac_fn_c_try_compile "$LINENO" 4244 then : 4245 ac_cv_prog_cc_g=yes 4246 else case e in #( 4247 e) CFLAGS="" 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249 /* end confdefs.h. */ 4250 4251 int 4252 main (void) 4253 { 4254 4255 ; 4256 return 0; 4257 } 4258 _ACEOF 4259 if ac_fn_c_try_compile "$LINENO" 4260 then : 4261 4262 else case e in #( 4263 e) ac_c_werror_flag=$ac_save_c_werror_flag 4264 CFLAGS="-g" 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266 /* end confdefs.h. */ 4267 4268 int 4269 main (void) 4270 { 4271 4272 ; 4273 return 0; 4274 } 4275 _ACEOF 4276 if ac_fn_c_try_compile "$LINENO" 4277 then : 4278 ac_cv_prog_cc_g=yes 4279 fi 4280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4281 esac 4282 fi 4283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4284 esac 4285 fi 4286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4287 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4288 esac 4289 fi 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4291 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4292 if test $ac_test_CFLAGS; then 4293 CFLAGS=$ac_save_CFLAGS 4294 elif test $ac_cv_prog_cc_g = yes; then 4295 if test "$GCC" = yes; then 4296 CFLAGS="-g -O2" 4297 else 4298 CFLAGS="-g" 4299 fi 4300 else 4301 if test "$GCC" = yes; then 4302 CFLAGS="-O2" 4303 else 4304 CFLAGS= 4305 fi 4306 fi 4307 ac_prog_cc_stdc=no 4308 if test x$ac_prog_cc_stdc = xno 4309 then : 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4311 printf %s "checking for $CC option to enable C11 features... " >&6; } 4312 if test ${ac_cv_prog_cc_c11+y} 4313 then : 4314 printf %s "(cached) " >&6 4315 else case e in #( 4316 e) ac_cv_prog_cc_c11=no 4317 ac_save_CC=$CC 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319 /* end confdefs.h. */ 4320 $ac_c_conftest_c11_program 4321 _ACEOF 4322 for ac_arg in '' -std=gnu11 4323 do 4324 CC="$ac_save_CC $ac_arg" 4325 if ac_fn_c_try_compile "$LINENO" 4326 then : 4327 ac_cv_prog_cc_c11=$ac_arg 4328 fi 4329 rm -f core conftest.err conftest.$ac_objext conftest.beam 4330 test "x$ac_cv_prog_cc_c11" != "xno" && break 4331 done 4332 rm -f conftest.$ac_ext 4333 CC=$ac_save_CC ;; 4334 esac 4335 fi 4336 4337 if test "x$ac_cv_prog_cc_c11" = xno 4338 then : 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4340 printf "%s\n" "unsupported" >&6; } 4341 else case e in #( 4342 e) if test "x$ac_cv_prog_cc_c11" = x 4343 then : 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4345 printf "%s\n" "none needed" >&6; } 4346 else case e in #( 4347 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4348 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4349 CC="$CC $ac_cv_prog_cc_c11" ;; 4350 esac 4351 fi 4352 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4353 ac_prog_cc_stdc=c11 ;; 4354 esac 4355 fi 4356 fi 4357 if test x$ac_prog_cc_stdc = xno 4358 then : 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4360 printf %s "checking for $CC option to enable C99 features... " >&6; } 4361 if test ${ac_cv_prog_cc_c99+y} 4362 then : 4363 printf %s "(cached) " >&6 4364 else case e in #( 4365 e) ac_cv_prog_cc_c99=no 4366 ac_save_CC=$CC 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368 /* end confdefs.h. */ 4369 $ac_c_conftest_c99_program 4370 _ACEOF 4371 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4372 do 4373 CC="$ac_save_CC $ac_arg" 4374 if ac_fn_c_try_compile "$LINENO" 4375 then : 4376 ac_cv_prog_cc_c99=$ac_arg 4377 fi 4378 rm -f core conftest.err conftest.$ac_objext conftest.beam 4379 test "x$ac_cv_prog_cc_c99" != "xno" && break 4380 done 4381 rm -f conftest.$ac_ext 4382 CC=$ac_save_CC ;; 4383 esac 4384 fi 4385 4386 if test "x$ac_cv_prog_cc_c99" = xno 4387 then : 4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4389 printf "%s\n" "unsupported" >&6; } 4390 else case e in #( 4391 e) if test "x$ac_cv_prog_cc_c99" = x 4392 then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4394 printf "%s\n" "none needed" >&6; } 4395 else case e in #( 4396 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4397 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4398 CC="$CC $ac_cv_prog_cc_c99" ;; 4399 esac 4400 fi 4401 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4402 ac_prog_cc_stdc=c99 ;; 4403 esac 4404 fi 4405 fi 4406 if test x$ac_prog_cc_stdc = xno 4407 then : 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4409 printf %s "checking for $CC option to enable C89 features... " >&6; } 4410 if test ${ac_cv_prog_cc_c89+y} 4411 then : 4412 printf %s "(cached) " >&6 4413 else case e in #( 4414 e) ac_cv_prog_cc_c89=no 4415 ac_save_CC=$CC 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417 /* end confdefs.h. */ 4418 $ac_c_conftest_c89_program 4419 _ACEOF 4420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4421 do 4422 CC="$ac_save_CC $ac_arg" 4423 if ac_fn_c_try_compile "$LINENO" 4424 then : 4425 ac_cv_prog_cc_c89=$ac_arg 4426 fi 4427 rm -f core conftest.err conftest.$ac_objext conftest.beam 4428 test "x$ac_cv_prog_cc_c89" != "xno" && break 4429 done 4430 rm -f conftest.$ac_ext 4431 CC=$ac_save_CC ;; 4432 esac 4433 fi 4434 4435 if test "x$ac_cv_prog_cc_c89" = xno 4436 then : 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4438 printf "%s\n" "unsupported" >&6; } 4439 else case e in #( 4440 e) if test "x$ac_cv_prog_cc_c89" = x 4441 then : 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4443 printf "%s\n" "none needed" >&6; } 4444 else case e in #( 4445 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4446 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4447 CC="$CC $ac_cv_prog_cc_c89" ;; 4448 esac 4449 fi 4450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4451 ac_prog_cc_stdc=c89 ;; 4452 esac 4453 fi 4454 fi 4455 4456 ac_ext=c 4457 ac_cpp='$CPP $CPPFLAGS' 4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4461 4462 4463 ac_ext=c 4464 ac_cpp='$CPP $CPPFLAGS' 4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4469 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4470 if test ${am_cv_prog_cc_c_o+y} 4471 then : 4472 printf %s "(cached) " >&6 4473 else case e in #( 4474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475 /* end confdefs.h. */ 4476 4477 int 4478 main (void) 4479 { 4480 4481 ; 4482 return 0; 4483 } 4484 _ACEOF 4485 # Make sure it works both with $CC and with simple cc. 4486 # Following AC_PROG_CC_C_O, we do the test twice because some 4487 # compilers refuse to overwrite an existing .o file with -o, 4488 # though they will create one. 4489 am_cv_prog_cc_c_o=yes 4490 for am_i in 1 2; do 4491 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4492 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4493 ac_status=$? 4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4495 (exit $ac_status); } \ 4496 && test -f conftest2.$ac_objext; then 4497 : OK 4498 else 4499 am_cv_prog_cc_c_o=no 4500 break 4501 fi 4502 done 4503 rm -f core conftest* 4504 unset am_i ;; 4505 esac 4506 fi 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4508 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4509 if test "$am_cv_prog_cc_c_o" != yes; then 4510 # Losing compiler, so override with the script. 4511 # FIXME: It is wrong to rewrite CC. 4512 # But if we don't then we get into trouble of one sort or another. 4513 # A longer-term fix would be to have automake use am__CC in this case, 4514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4515 CC="$am_aux_dir/compile $CC" 4516 fi 4517 ac_ext=c 4518 ac_cpp='$CPP $CPPFLAGS' 4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4522 4523 4524 depcc="$CC" am_compiler_list= 4525 4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4527 printf %s "checking dependency style of $depcc... " >&6; } 4528 if test ${am_cv_CC_dependencies_compiler_type+y} 4529 then : 4530 printf %s "(cached) " >&6 4531 else case e in #( 4532 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4533 # We make a subdir and do the tests there. Otherwise we can end up 4534 # making bogus files that we don't know about and never remove. For 4535 # instance it was reported that on HP-UX the gcc test will end up 4536 # making a dummy file named 'D' -- because '-MD' means "put the output 4537 # in D". 4538 rm -rf conftest.dir 4539 mkdir conftest.dir 4540 # Copy depcomp to subdir because otherwise we won't find it if we're 4541 # using a relative directory. 4542 cp "$am_depcomp" conftest.dir 4543 cd conftest.dir 4544 # We will build objects and dependencies in a subdirectory because 4545 # it helps to detect inapplicable dependency modes. For instance 4546 # both Tru64's cc and ICC support -MD to output dependencies as a 4547 # side effect of compilation, but ICC will put the dependencies in 4548 # the current directory while Tru64 will put them in the object 4549 # directory. 4550 mkdir sub 4551 4552 am_cv_CC_dependencies_compiler_type=none 4553 if test "$am_compiler_list" = ""; then 4554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4555 fi 4556 am__universal=false 4557 case " $depcc " in #( 4558 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4559 esac 4560 4561 for depmode in $am_compiler_list; do 4562 # Setup a source with many dependencies, because some compilers 4563 # like to wrap large dependency lists on column 80 (with \), and 4564 # we should not choose a depcomp mode which is confused by this. 4565 # 4566 # We need to recreate these files for each test, as the compiler may 4567 # overwrite some of them when testing with obscure command lines. 4568 # This happens at least with the AIX C compiler. 4569 : > sub/conftest.c 4570 for i in 1 2 3 4 5 6; do 4571 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4573 # Solaris 10 /bin/sh. 4574 echo '/* dummy */' > sub/conftst$i.h 4575 done 4576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4577 4578 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4579 # mode. It turns out that the SunPro C++ compiler does not properly 4580 # handle '-M -o', and we need to detect this. Also, some Intel 4581 # versions had trouble with output in subdirs. 4582 am__obj=sub/conftest.${OBJEXT-o} 4583 am__minus_obj="-o $am__obj" 4584 case $depmode in 4585 gcc) 4586 # This depmode causes a compiler race in universal mode. 4587 test "$am__universal" = false || continue 4588 ;; 4589 nosideeffect) 4590 # After this tag, mechanisms are not by side-effect, so they'll 4591 # only be used when explicitly requested. 4592 if test "x$enable_dependency_tracking" = xyes; then 4593 continue 4594 else 4595 break 4596 fi 4597 ;; 4598 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4599 # This compiler won't grok '-c -o', but also, the minuso test has 4600 # not run yet. These depmodes are late enough in the game, and 4601 # so weak that their functioning should not be impacted. 4602 am__obj=conftest.${OBJEXT-o} 4603 am__minus_obj= 4604 ;; 4605 none) break ;; 4606 esac 4607 if depmode=$depmode \ 4608 source=sub/conftest.c object=$am__obj \ 4609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4611 >/dev/null 2>conftest.err && 4612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4616 # icc doesn't choke on unknown options, it will just issue warnings 4617 # or remarks (even with -Werror). So we grep stderr for any message 4618 # that says an option was ignored or not supported. 4619 # When given -MP, icc 7.0 and 7.1 complain thus: 4620 # icc: Command line warning: ignoring option '-M'; no argument required 4621 # The diagnosis changed in icc 8.0: 4622 # icc: Command line remark: option '-MP' not supported 4623 if (grep 'ignoring option' conftest.err || 4624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4625 am_cv_CC_dependencies_compiler_type=$depmode 4626 break 4627 fi 4628 fi 4629 done 4630 4631 cd .. 4632 rm -rf conftest.dir 4633 else 4634 am_cv_CC_dependencies_compiler_type=none 4635 fi 4636 ;; 4637 esac 4638 fi 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4640 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4642 4643 if 4644 test "x$enable_dependency_tracking" != xno \ 4645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4646 am__fastdepCC_TRUE= 4647 am__fastdepCC_FALSE='#' 4648 else 4649 am__fastdepCC_TRUE='#' 4650 am__fastdepCC_FALSE= 4651 fi 4652 4653 4654 4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4656 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4657 if test ${ac_cv_c_undeclared_builtin_options+y} 4658 then : 4659 printf %s "(cached) " >&6 4660 else case e in #( 4661 e) ac_save_CFLAGS=$CFLAGS 4662 ac_cv_c_undeclared_builtin_options='cannot detect' 4663 for ac_arg in '' -fno-builtin; do 4664 CFLAGS="$ac_save_CFLAGS $ac_arg" 4665 # This test program should *not* compile successfully. 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667 /* end confdefs.h. */ 4668 4669 int 4670 main (void) 4671 { 4672 (void) strchr; 4673 ; 4674 return 0; 4675 } 4676 _ACEOF 4677 if ac_fn_c_try_compile "$LINENO" 4678 then : 4679 4680 else case e in #( 4681 e) # This test program should compile successfully. 4682 # No library function is consistently available on 4683 # freestanding implementations, so test against a dummy 4684 # declaration. Include always-available headers on the 4685 # off chance that they somehow elicit warnings. 4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687 /* end confdefs.h. */ 4688 #include <float.h> 4689 #include <limits.h> 4690 #include <stdarg.h> 4691 #include <stddef.h> 4692 extern void ac_decl (int, char *); 4693 4694 int 4695 main (void) 4696 { 4697 (void) ac_decl (0, (char *) 0); 4698 (void) ac_decl; 4699 4700 ; 4701 return 0; 4702 } 4703 _ACEOF 4704 if ac_fn_c_try_compile "$LINENO" 4705 then : 4706 if test x"$ac_arg" = x 4707 then : 4708 ac_cv_c_undeclared_builtin_options='none needed' 4709 else case e in #( 4710 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4711 esac 4712 fi 4713 break 4714 fi 4715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4716 esac 4717 fi 4718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4719 done 4720 CFLAGS=$ac_save_CFLAGS 4721 ;; 4722 esac 4723 fi 4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4725 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4726 case $ac_cv_c_undeclared_builtin_options in #( 4727 'cannot detect') : 4728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4729 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4730 as_fn_error $? "cannot make $CC report undeclared builtins 4731 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4732 'none needed') : 4733 ac_c_undeclared_builtin_options='' ;; #( 4734 *) : 4735 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4736 esac 4737 4738 ac_header= ac_cache= 4739 for ac_item in $ac_header_c_list 4740 do 4741 if test $ac_cache; then 4742 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4743 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4744 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4745 fi 4746 ac_header= ac_cache= 4747 elif test $ac_header; then 4748 ac_cache=$ac_item 4749 else 4750 ac_header=$ac_item 4751 fi 4752 done 4753 4754 4755 4756 4757 4758 4759 4760 4761 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4762 then : 4763 4764 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4765 4766 fi 4767 4768 4769 4770 4771 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4772 if test "x$ac_cv_have_decl___clang__" = xyes 4773 then : 4774 CLANGCC="yes" 4775 else case e in #( 4776 e) CLANGCC="no" ;; 4777 esac 4778 fi 4779 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4780 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4781 then : 4782 INTELCC="yes" 4783 else case e in #( 4784 e) INTELCC="no" ;; 4785 esac 4786 fi 4787 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4788 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4789 then : 4790 SUNCC="yes" 4791 else case e in #( 4792 e) SUNCC="no" ;; 4793 esac 4794 fi 4795 4796 4797 4798 4799 4800 4801 4802 4803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4804 if test -n "$ac_tool_prefix"; then 4805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808 printf %s "checking for $ac_word... " >&6; } 4809 if test ${ac_cv_path_PKG_CONFIG+y} 4810 then : 4811 printf %s "(cached) " >&6 4812 else case e in #( 4813 e) case $PKG_CONFIG in 4814 [\\/]* | ?:[\\/]*) 4815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4816 ;; 4817 *) 4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819 for as_dir in $PATH 4820 do 4821 IFS=$as_save_IFS 4822 case $as_dir in #((( 4823 '') as_dir=./ ;; 4824 */) ;; 4825 *) as_dir=$as_dir/ ;; 4826 esac 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4829 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 4837 ;; 4838 esac ;; 4839 esac 4840 fi 4841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4842 if test -n "$PKG_CONFIG"; then 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4844 printf "%s\n" "$PKG_CONFIG" >&6; } 4845 else 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4847 printf "%s\n" "no" >&6; } 4848 fi 4849 4850 4851 fi 4852 if test -z "$ac_cv_path_PKG_CONFIG"; then 4853 ac_pt_PKG_CONFIG=$PKG_CONFIG 4854 # Extract the first word of "pkg-config", so it can be a program name with args. 4855 set dummy pkg-config; ac_word=$2 4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4857 printf %s "checking for $ac_word... " >&6; } 4858 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4859 then : 4860 printf %s "(cached) " >&6 4861 else case e in #( 4862 e) case $ac_pt_PKG_CONFIG in 4863 [\\/]* | ?:[\\/]*) 4864 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4865 ;; 4866 *) 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868 for as_dir in $PATH 4869 do 4870 IFS=$as_save_IFS 4871 case $as_dir in #((( 4872 '') as_dir=./ ;; 4873 */) ;; 4874 *) as_dir=$as_dir/ ;; 4875 esac 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4878 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4880 break 2 4881 fi 4882 done 4883 done 4884 IFS=$as_save_IFS 4885 4886 ;; 4887 esac ;; 4888 esac 4889 fi 4890 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4891 if test -n "$ac_pt_PKG_CONFIG"; then 4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4893 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4894 else 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4896 printf "%s\n" "no" >&6; } 4897 fi 4898 4899 if test "x$ac_pt_PKG_CONFIG" = x; then 4900 PKG_CONFIG="" 4901 else 4902 case $cross_compiling:$ac_tool_warned in 4903 yes:) 4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4906 ac_tool_warned=yes ;; 4907 esac 4908 PKG_CONFIG=$ac_pt_PKG_CONFIG 4909 fi 4910 else 4911 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4912 fi 4913 4914 fi 4915 if test -n "$PKG_CONFIG"; then 4916 _pkg_min_version=0.9.0 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4918 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4919 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4921 printf "%s\n" "yes" >&6; } 4922 else 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4924 printf "%s\n" "no" >&6; } 4925 PKG_CONFIG="" 4926 fi 4927 fi 4928 4929 4930 # Make sure we can run config.sub. 4931 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4932 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4933 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4935 printf %s "checking build system type... " >&6; } 4936 if test ${ac_cv_build+y} 4937 then : 4938 printf %s "(cached) " >&6 4939 else case e in #( 4940 e) ac_build_alias=$build_alias 4941 test "x$ac_build_alias" = x && 4942 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4943 test "x$ac_build_alias" = x && 4944 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4945 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4946 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4947 ;; 4948 esac 4949 fi 4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4951 printf "%s\n" "$ac_cv_build" >&6; } 4952 case $ac_cv_build in 4953 *-*-*) ;; 4954 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4955 esac 4956 build=$ac_cv_build 4957 ac_save_IFS=$IFS; IFS='-' 4958 set x $ac_cv_build 4959 shift 4960 build_cpu=$1 4961 build_vendor=$2 4962 shift; shift 4963 # Remember, the first character of IFS is used to create $*, 4964 # except with old shells: 4965 build_os=$* 4966 IFS=$ac_save_IFS 4967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4968 4969 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4971 printf %s "checking host system type... " >&6; } 4972 if test ${ac_cv_host+y} 4973 then : 4974 printf %s "(cached) " >&6 4975 else case e in #( 4976 e) if test "x$host_alias" = x; then 4977 ac_cv_host=$ac_cv_build 4978 else 4979 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4980 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4981 fi 4982 ;; 4983 esac 4984 fi 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4986 printf "%s\n" "$ac_cv_host" >&6; } 4987 case $ac_cv_host in 4988 *-*-*) ;; 4989 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4990 esac 4991 host=$ac_cv_host 4992 ac_save_IFS=$IFS; IFS='-' 4993 set x $ac_cv_host 4994 shift 4995 host_cpu=$1 4996 host_vendor=$2 4997 shift; shift 4998 # Remember, the first character of IFS is used to create $*, 4999 # except with old shells: 5000 host_os=$* 5001 IFS=$ac_save_IFS 5002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5003 5004 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5006 printf %s "checking for a sed that does not truncate output... " >&6; } 5007 if test ${ac_cv_path_SED+y} 5008 then : 5009 printf %s "(cached) " >&6 5010 else case e in #( 5011 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5012 for ac_i in 1 2 3 4 5 6 7; do 5013 ac_script="$ac_script$as_nl$ac_script" 5014 done 5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5016 { ac_script=; unset ac_script;} 5017 if test -z "$SED"; then 5018 ac_path_SED_found=false 5019 # Loop through the user's path and test for each of PROGNAME-LIST 5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5021 for as_dir in $PATH 5022 do 5023 IFS=$as_save_IFS 5024 case $as_dir in #((( 5025 '') as_dir=./ ;; 5026 */) ;; 5027 *) as_dir=$as_dir/ ;; 5028 esac 5029 for ac_prog in sed gsed 5030 do 5031 for ac_exec_ext in '' $ac_executable_extensions; do 5032 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5033 as_fn_executable_p "$ac_path_SED" || continue 5034 # Check for GNU ac_path_SED and select it if it is found. 5035 # Check for GNU $ac_path_SED 5036 case `"$ac_path_SED" --version 2>&1` in #( 5037 *GNU*) 5038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5039 #( 5040 *) 5041 ac_count=0 5042 printf %s 0123456789 >"conftest.in" 5043 while : 5044 do 5045 cat "conftest.in" "conftest.in" >"conftest.tmp" 5046 mv "conftest.tmp" "conftest.in" 5047 cp "conftest.in" "conftest.nl" 5048 printf "%s\n" '' >> "conftest.nl" 5049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5051 as_fn_arith $ac_count + 1 && ac_count=$as_val 5052 if test $ac_count -gt ${ac_path_SED_max-0}; then 5053 # Best one so far, save it but keep looking for a better one 5054 ac_cv_path_SED="$ac_path_SED" 5055 ac_path_SED_max=$ac_count 5056 fi 5057 # 10*(2^10) chars as input seems more than enough 5058 test $ac_count -gt 10 && break 5059 done 5060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5061 esac 5062 5063 $ac_path_SED_found && break 3 5064 done 5065 done 5066 done 5067 IFS=$as_save_IFS 5068 if test -z "$ac_cv_path_SED"; then 5069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5070 fi 5071 else 5072 ac_cv_path_SED=$SED 5073 fi 5074 ;; 5075 esac 5076 fi 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5078 printf "%s\n" "$ac_cv_path_SED" >&6; } 5079 SED="$ac_cv_path_SED" 5080 rm -f conftest.sed 5081 5082 5083 5084 5085 5086 5087 # Check whether --enable-selective-werror was given. 5088 if test ${enable_selective_werror+y} 5089 then : 5090 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5091 else case e in #( 5092 e) SELECTIVE_WERROR=yes ;; 5093 esac 5094 fi 5095 5096 5097 5098 5099 5100 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5101 if test "x$SUNCC" = "xyes"; then 5102 BASE_CFLAGS="-v" 5103 else 5104 BASE_CFLAGS="" 5105 fi 5106 5107 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 xorg_testset_save_CFLAGS="$CFLAGS" 5122 5123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5127 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5128 then : 5129 printf %s "(cached) " >&6 5130 else case e in #( 5131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132 /* end confdefs.h. */ 5133 int i; 5134 _ACEOF 5135 if ac_fn_c_try_compile "$LINENO" 5136 then : 5137 xorg_cv_cc_flag_unknown_warning_option=yes 5138 else case e in #( 5139 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5140 esac 5141 fi 5142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5143 esac 5144 fi 5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149 fi 5150 5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5159 then : 5160 printf %s "(cached) " >&6 5161 else case e in #( 5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163 /* end confdefs.h. */ 5164 int i; 5165 _ACEOF 5166 if ac_fn_c_try_compile "$LINENO" 5167 then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169 else case e in #( 5170 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5171 esac 5172 fi 5173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5174 esac 5175 fi 5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180 fi 5181 5182 found="no" 5183 5184 if test $found = "no" ; then 5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 fi 5188 5189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 fi 5192 5193 CFLAGS="$CFLAGS -Wall" 5194 5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5196 printf %s "checking if $CC supports -Wall... " >&6; } 5197 cacheid=xorg_cv_cc_flag__Wall 5198 if eval test \${$cacheid+y} 5199 then : 5200 printf %s "(cached) " >&6 5201 else case e in #( 5202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203 /* end confdefs.h. */ 5204 int i; 5205 int 5206 main (void) 5207 { 5208 5209 ; 5210 return 0; 5211 } 5212 _ACEOF 5213 if ac_fn_c_try_link "$LINENO" 5214 then : 5215 eval $cacheid=yes 5216 else case e in #( 5217 e) eval $cacheid=no ;; 5218 esac 5219 fi 5220 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5221 conftest$ac_exeext conftest.$ac_ext ;; 5222 esac 5223 fi 5224 5225 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227 5228 eval supported=\$$cacheid 5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5230 printf "%s\n" "$supported" >&6; } 5231 if test "$supported" = "yes" ; then 5232 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5233 found="yes" 5234 fi 5235 fi 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 xorg_testset_save_CFLAGS="$CFLAGS" 5252 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5257 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5258 then : 5259 printf %s "(cached) " >&6 5260 else case e in #( 5261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262 /* end confdefs.h. */ 5263 int i; 5264 _ACEOF 5265 if ac_fn_c_try_compile "$LINENO" 5266 then : 5267 xorg_cv_cc_flag_unknown_warning_option=yes 5268 else case e in #( 5269 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5270 esac 5271 fi 5272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5273 esac 5274 fi 5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5278 CFLAGS="$xorg_testset_save_CFLAGS" 5279 fi 5280 5281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5284 fi 5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5289 then : 5290 printf %s "(cached) " >&6 5291 else case e in #( 5292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293 /* end confdefs.h. */ 5294 int i; 5295 _ACEOF 5296 if ac_fn_c_try_compile "$LINENO" 5297 then : 5298 xorg_cv_cc_flag_unused_command_line_argument=yes 5299 else case e in #( 5300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5301 esac 5302 fi 5303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5304 esac 5305 fi 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310 fi 5311 5312 found="no" 5313 5314 if test $found = "no" ; then 5315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5317 fi 5318 5319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5321 fi 5322 5323 CFLAGS="$CFLAGS -Wpointer-arith" 5324 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5326 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5327 cacheid=xorg_cv_cc_flag__Wpointer_arith 5328 if eval test \${$cacheid+y} 5329 then : 5330 printf %s "(cached) " >&6 5331 else case e in #( 5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333 /* end confdefs.h. */ 5334 int i; 5335 int 5336 main (void) 5337 { 5338 5339 ; 5340 return 0; 5341 } 5342 _ACEOF 5343 if ac_fn_c_try_link "$LINENO" 5344 then : 5345 eval $cacheid=yes 5346 else case e in #( 5347 e) eval $cacheid=no ;; 5348 esac 5349 fi 5350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5351 conftest$ac_exeext conftest.$ac_ext ;; 5352 esac 5353 fi 5354 5355 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357 5358 eval supported=\$$cacheid 5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5360 printf "%s\n" "$supported" >&6; } 5361 if test "$supported" = "yes" ; then 5362 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5363 found="yes" 5364 fi 5365 fi 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 xorg_testset_save_CFLAGS="$CFLAGS" 5382 5383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5387 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5388 then : 5389 printf %s "(cached) " >&6 5390 else case e in #( 5391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392 /* end confdefs.h. */ 5393 int i; 5394 _ACEOF 5395 if ac_fn_c_try_compile "$LINENO" 5396 then : 5397 xorg_cv_cc_flag_unknown_warning_option=yes 5398 else case e in #( 5399 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5400 esac 5401 fi 5402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5403 esac 5404 fi 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 fi 5410 5411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5414 fi 5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5418 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5419 then : 5420 printf %s "(cached) " >&6 5421 else case e in #( 5422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423 /* end confdefs.h. */ 5424 int i; 5425 _ACEOF 5426 if ac_fn_c_try_compile "$LINENO" 5427 then : 5428 xorg_cv_cc_flag_unused_command_line_argument=yes 5429 else case e in #( 5430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5431 esac 5432 fi 5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5434 esac 5435 fi 5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440 fi 5441 5442 found="no" 5443 5444 if test $found = "no" ; then 5445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5447 fi 5448 5449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 fi 5452 5453 CFLAGS="$CFLAGS -Wmissing-declarations" 5454 5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5456 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5457 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5458 if eval test \${$cacheid+y} 5459 then : 5460 printf %s "(cached) " >&6 5461 else case e in #( 5462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463 /* end confdefs.h. */ 5464 int i; 5465 int 5466 main (void) 5467 { 5468 5469 ; 5470 return 0; 5471 } 5472 _ACEOF 5473 if ac_fn_c_try_link "$LINENO" 5474 then : 5475 eval $cacheid=yes 5476 else case e in #( 5477 e) eval $cacheid=no ;; 5478 esac 5479 fi 5480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5481 conftest$ac_exeext conftest.$ac_ext ;; 5482 esac 5483 fi 5484 5485 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487 5488 eval supported=\$$cacheid 5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5490 printf "%s\n" "$supported" >&6; } 5491 if test "$supported" = "yes" ; then 5492 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5493 found="yes" 5494 fi 5495 fi 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 xorg_testset_save_CFLAGS="$CFLAGS" 5512 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5517 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5518 then : 5519 printf %s "(cached) " >&6 5520 else case e in #( 5521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522 /* end confdefs.h. */ 5523 int i; 5524 _ACEOF 5525 if ac_fn_c_try_compile "$LINENO" 5526 then : 5527 xorg_cv_cc_flag_unknown_warning_option=yes 5528 else case e in #( 5529 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5530 esac 5531 fi 5532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5533 esac 5534 fi 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 fi 5540 5541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5544 fi 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5549 then : 5550 printf %s "(cached) " >&6 5551 else case e in #( 5552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553 /* end confdefs.h. */ 5554 int i; 5555 _ACEOF 5556 if ac_fn_c_try_compile "$LINENO" 5557 then : 5558 xorg_cv_cc_flag_unused_command_line_argument=yes 5559 else case e in #( 5560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5561 esac 5562 fi 5563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5564 esac 5565 fi 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570 fi 5571 5572 found="no" 5573 5574 if test $found = "no" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 fi 5582 5583 CFLAGS="$CFLAGS -Wformat=2" 5584 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5586 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5587 cacheid=xorg_cv_cc_flag__Wformat_2 5588 if eval test \${$cacheid+y} 5589 then : 5590 printf %s "(cached) " >&6 5591 else case e in #( 5592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593 /* end confdefs.h. */ 5594 int i; 5595 int 5596 main (void) 5597 { 5598 5599 ; 5600 return 0; 5601 } 5602 _ACEOF 5603 if ac_fn_c_try_link "$LINENO" 5604 then : 5605 eval $cacheid=yes 5606 else case e in #( 5607 e) eval $cacheid=no ;; 5608 esac 5609 fi 5610 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5611 conftest$ac_exeext conftest.$ac_ext ;; 5612 esac 5613 fi 5614 5615 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617 5618 eval supported=\$$cacheid 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5620 printf "%s\n" "$supported" >&6; } 5621 if test "$supported" = "yes" ; then 5622 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5623 found="yes" 5624 fi 5625 fi 5626 5627 if test $found = "no" ; then 5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 fi 5631 5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5634 fi 5635 5636 CFLAGS="$CFLAGS -Wformat" 5637 5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5639 printf %s "checking if $CC supports -Wformat... " >&6; } 5640 cacheid=xorg_cv_cc_flag__Wformat 5641 if eval test \${$cacheid+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else case e in #( 5645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646 /* end confdefs.h. */ 5647 int i; 5648 int 5649 main (void) 5650 { 5651 5652 ; 5653 return 0; 5654 } 5655 _ACEOF 5656 if ac_fn_c_try_link "$LINENO" 5657 then : 5658 eval $cacheid=yes 5659 else case e in #( 5660 e) eval $cacheid=no ;; 5661 esac 5662 fi 5663 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5664 conftest$ac_exeext conftest.$ac_ext ;; 5665 esac 5666 fi 5667 5668 5669 CFLAGS="$xorg_testset_save_CFLAGS" 5670 5671 eval supported=\$$cacheid 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5673 printf "%s\n" "$supported" >&6; } 5674 if test "$supported" = "yes" ; then 5675 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5676 found="yes" 5677 fi 5678 fi 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 xorg_testset_save_CFLAGS="$CFLAGS" 5697 5698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5702 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5703 then : 5704 printf %s "(cached) " >&6 5705 else case e in #( 5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707 /* end confdefs.h. */ 5708 int i; 5709 _ACEOF 5710 if ac_fn_c_try_compile "$LINENO" 5711 then : 5712 xorg_cv_cc_flag_unknown_warning_option=yes 5713 else case e in #( 5714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5715 esac 5716 fi 5717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5718 esac 5719 fi 5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724 fi 5725 5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 fi 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5734 then : 5735 printf %s "(cached) " >&6 5736 else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738 /* end confdefs.h. */ 5739 int i; 5740 _ACEOF 5741 if ac_fn_c_try_compile "$LINENO" 5742 then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744 else case e in #( 5745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5746 esac 5747 fi 5748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5749 esac 5750 fi 5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755 fi 5756 5757 found="no" 5758 5759 if test $found = "no" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 fi 5767 5768 CFLAGS="$CFLAGS -Wstrict-prototypes" 5769 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5771 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5772 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5773 if eval test \${$cacheid+y} 5774 then : 5775 printf %s "(cached) " >&6 5776 else case e in #( 5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778 /* end confdefs.h. */ 5779 int i; 5780 int 5781 main (void) 5782 { 5783 5784 ; 5785 return 0; 5786 } 5787 _ACEOF 5788 if ac_fn_c_try_link "$LINENO" 5789 then : 5790 eval $cacheid=yes 5791 else case e in #( 5792 e) eval $cacheid=no ;; 5793 esac 5794 fi 5795 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5796 conftest$ac_exeext conftest.$ac_ext ;; 5797 esac 5798 fi 5799 5800 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 5803 eval supported=\$$cacheid 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5805 printf "%s\n" "$supported" >&6; } 5806 if test "$supported" = "yes" ; then 5807 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5808 found="yes" 5809 fi 5810 fi 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 xorg_testset_save_CFLAGS="$CFLAGS" 5827 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5832 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5833 then : 5834 printf %s "(cached) " >&6 5835 else case e in #( 5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837 /* end confdefs.h. */ 5838 int i; 5839 _ACEOF 5840 if ac_fn_c_try_compile "$LINENO" 5841 then : 5842 xorg_cv_cc_flag_unknown_warning_option=yes 5843 else case e in #( 5844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5845 esac 5846 fi 5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5848 esac 5849 fi 5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854 fi 5855 5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5864 then : 5865 printf %s "(cached) " >&6 5866 else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868 /* end confdefs.h. */ 5869 int i; 5870 _ACEOF 5871 if ac_fn_c_try_compile "$LINENO" 5872 then : 5873 xorg_cv_cc_flag_unused_command_line_argument=yes 5874 else case e in #( 5875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5876 esac 5877 fi 5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5879 esac 5880 fi 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885 fi 5886 5887 found="no" 5888 5889 if test $found = "no" ; then 5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 fi 5893 5894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5896 fi 5897 5898 CFLAGS="$CFLAGS -Wmissing-prototypes" 5899 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5901 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5902 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5903 if eval test \${$cacheid+y} 5904 then : 5905 printf %s "(cached) " >&6 5906 else case e in #( 5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908 /* end confdefs.h. */ 5909 int i; 5910 int 5911 main (void) 5912 { 5913 5914 ; 5915 return 0; 5916 } 5917 _ACEOF 5918 if ac_fn_c_try_link "$LINENO" 5919 then : 5920 eval $cacheid=yes 5921 else case e in #( 5922 e) eval $cacheid=no ;; 5923 esac 5924 fi 5925 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5926 conftest$ac_exeext conftest.$ac_ext ;; 5927 esac 5928 fi 5929 5930 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932 5933 eval supported=\$$cacheid 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5935 printf "%s\n" "$supported" >&6; } 5936 if test "$supported" = "yes" ; then 5937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5938 found="yes" 5939 fi 5940 fi 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 xorg_testset_save_CFLAGS="$CFLAGS" 5957 5958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5962 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5963 then : 5964 printf %s "(cached) " >&6 5965 else case e in #( 5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967 /* end confdefs.h. */ 5968 int i; 5969 _ACEOF 5970 if ac_fn_c_try_compile "$LINENO" 5971 then : 5972 xorg_cv_cc_flag_unknown_warning_option=yes 5973 else case e in #( 5974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5975 esac 5976 fi 5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5978 esac 5979 fi 5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984 fi 5985 5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5994 then : 5995 printf %s "(cached) " >&6 5996 else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998 /* end confdefs.h. */ 5999 int i; 6000 _ACEOF 6001 if ac_fn_c_try_compile "$LINENO" 6002 then : 6003 xorg_cv_cc_flag_unused_command_line_argument=yes 6004 else case e in #( 6005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6006 esac 6007 fi 6008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6009 esac 6010 fi 6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015 fi 6016 6017 found="no" 6018 6019 if test $found = "no" ; then 6020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6022 fi 6023 6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6026 fi 6027 6028 CFLAGS="$CFLAGS -Wnested-externs" 6029 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6031 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6032 cacheid=xorg_cv_cc_flag__Wnested_externs 6033 if eval test \${$cacheid+y} 6034 then : 6035 printf %s "(cached) " >&6 6036 else case e in #( 6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038 /* end confdefs.h. */ 6039 int i; 6040 int 6041 main (void) 6042 { 6043 6044 ; 6045 return 0; 6046 } 6047 _ACEOF 6048 if ac_fn_c_try_link "$LINENO" 6049 then : 6050 eval $cacheid=yes 6051 else case e in #( 6052 e) eval $cacheid=no ;; 6053 esac 6054 fi 6055 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6056 conftest$ac_exeext conftest.$ac_ext ;; 6057 esac 6058 fi 6059 6060 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062 6063 eval supported=\$$cacheid 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6065 printf "%s\n" "$supported" >&6; } 6066 if test "$supported" = "yes" ; then 6067 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6068 found="yes" 6069 fi 6070 fi 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 xorg_testset_save_CFLAGS="$CFLAGS" 6087 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6092 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6093 then : 6094 printf %s "(cached) " >&6 6095 else case e in #( 6096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097 /* end confdefs.h. */ 6098 int i; 6099 _ACEOF 6100 if ac_fn_c_try_compile "$LINENO" 6101 then : 6102 xorg_cv_cc_flag_unknown_warning_option=yes 6103 else case e in #( 6104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6105 esac 6106 fi 6107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6108 esac 6109 fi 6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114 fi 6115 6116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6119 fi 6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6124 then : 6125 printf %s "(cached) " >&6 6126 else case e in #( 6127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128 /* end confdefs.h. */ 6129 int i; 6130 _ACEOF 6131 if ac_fn_c_try_compile "$LINENO" 6132 then : 6133 xorg_cv_cc_flag_unused_command_line_argument=yes 6134 else case e in #( 6135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6136 esac 6137 fi 6138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6139 esac 6140 fi 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145 fi 6146 6147 found="no" 6148 6149 if test $found = "no" ; then 6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 fi 6153 6154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156 fi 6157 6158 CFLAGS="$CFLAGS -Wbad-function-cast" 6159 6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6161 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6162 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6163 if eval test \${$cacheid+y} 6164 then : 6165 printf %s "(cached) " >&6 6166 else case e in #( 6167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168 /* end confdefs.h. */ 6169 int i; 6170 int 6171 main (void) 6172 { 6173 6174 ; 6175 return 0; 6176 } 6177 _ACEOF 6178 if ac_fn_c_try_link "$LINENO" 6179 then : 6180 eval $cacheid=yes 6181 else case e in #( 6182 e) eval $cacheid=no ;; 6183 esac 6184 fi 6185 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6186 conftest$ac_exeext conftest.$ac_ext ;; 6187 esac 6188 fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=\$$cacheid 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195 printf "%s\n" "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 xorg_testset_save_CFLAGS="$CFLAGS" 6217 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6223 then : 6224 printf %s "(cached) " >&6 6225 else case e in #( 6226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227 /* end confdefs.h. */ 6228 int i; 6229 _ACEOF 6230 if ac_fn_c_try_compile "$LINENO" 6231 then : 6232 xorg_cv_cc_flag_unknown_warning_option=yes 6233 else case e in #( 6234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6235 esac 6236 fi 6237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6238 esac 6239 fi 6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244 fi 6245 6246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6254 then : 6255 printf %s "(cached) " >&6 6256 else case e in #( 6257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6258 /* end confdefs.h. */ 6259 int i; 6260 _ACEOF 6261 if ac_fn_c_try_compile "$LINENO" 6262 then : 6263 xorg_cv_cc_flag_unused_command_line_argument=yes 6264 else case e in #( 6265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6266 esac 6267 fi 6268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6269 esac 6270 fi 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275 fi 6276 6277 found="no" 6278 6279 if test $found = "no" ; then 6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6282 fi 6283 6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286 fi 6287 6288 CFLAGS="$CFLAGS -Wold-style-definition" 6289 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6291 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6292 cacheid=xorg_cv_cc_flag__Wold_style_definition 6293 if eval test \${$cacheid+y} 6294 then : 6295 printf %s "(cached) " >&6 6296 else case e in #( 6297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298 /* end confdefs.h. */ 6299 int i; 6300 int 6301 main (void) 6302 { 6303 6304 ; 6305 return 0; 6306 } 6307 _ACEOF 6308 if ac_fn_c_try_link "$LINENO" 6309 then : 6310 eval $cacheid=yes 6311 else case e in #( 6312 e) eval $cacheid=no ;; 6313 esac 6314 fi 6315 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6316 conftest$ac_exeext conftest.$ac_ext ;; 6317 esac 6318 fi 6319 6320 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322 6323 eval supported=\$$cacheid 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6325 printf "%s\n" "$supported" >&6; } 6326 if test "$supported" = "yes" ; then 6327 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6328 found="yes" 6329 fi 6330 fi 6331 6332 if test $found = "no" ; then 6333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 fi 6336 6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6339 fi 6340 6341 CFLAGS="$CFLAGS -fd" 6342 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6344 printf %s "checking if $CC supports -fd... " >&6; } 6345 cacheid=xorg_cv_cc_flag__fd 6346 if eval test \${$cacheid+y} 6347 then : 6348 printf %s "(cached) " >&6 6349 else case e in #( 6350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351 /* end confdefs.h. */ 6352 int i; 6353 int 6354 main (void) 6355 { 6356 6357 ; 6358 return 0; 6359 } 6360 _ACEOF 6361 if ac_fn_c_try_link "$LINENO" 6362 then : 6363 eval $cacheid=yes 6364 else case e in #( 6365 e) eval $cacheid=no ;; 6366 esac 6367 fi 6368 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6369 conftest$ac_exeext conftest.$ac_ext ;; 6370 esac 6371 fi 6372 6373 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375 6376 eval supported=\$$cacheid 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6378 printf "%s\n" "$supported" >&6; } 6379 if test "$supported" = "yes" ; then 6380 BASE_CFLAGS="$BASE_CFLAGS -fd" 6381 found="yes" 6382 fi 6383 fi 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 xorg_testset_save_CFLAGS="$CFLAGS" 6400 6401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6405 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6406 then : 6407 printf %s "(cached) " >&6 6408 else case e in #( 6409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410 /* end confdefs.h. */ 6411 int i; 6412 _ACEOF 6413 if ac_fn_c_try_compile "$LINENO" 6414 then : 6415 xorg_cv_cc_flag_unknown_warning_option=yes 6416 else case e in #( 6417 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6418 esac 6419 fi 6420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6421 esac 6422 fi 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427 fi 6428 6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6432 fi 6433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6437 then : 6438 printf %s "(cached) " >&6 6439 else case e in #( 6440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441 /* end confdefs.h. */ 6442 int i; 6443 _ACEOF 6444 if ac_fn_c_try_compile "$LINENO" 6445 then : 6446 xorg_cv_cc_flag_unused_command_line_argument=yes 6447 else case e in #( 6448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6449 esac 6450 fi 6451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6452 esac 6453 fi 6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6455 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6457 CFLAGS="$xorg_testset_save_CFLAGS" 6458 fi 6459 6460 found="no" 6461 6462 if test $found = "no" ; then 6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6465 fi 6466 6467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6469 fi 6470 6471 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6472 6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6474 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6475 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6476 if eval test \${$cacheid+y} 6477 then : 6478 printf %s "(cached) " >&6 6479 else case e in #( 6480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481 /* end confdefs.h. */ 6482 int i; 6483 int 6484 main (void) 6485 { 6486 6487 ; 6488 return 0; 6489 } 6490 _ACEOF 6491 if ac_fn_c_try_link "$LINENO" 6492 then : 6493 eval $cacheid=yes 6494 else case e in #( 6495 e) eval $cacheid=no ;; 6496 esac 6497 fi 6498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6499 conftest$ac_exeext conftest.$ac_ext ;; 6500 esac 6501 fi 6502 6503 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505 6506 eval supported=\$$cacheid 6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6508 printf "%s\n" "$supported" >&6; } 6509 if test "$supported" = "yes" ; then 6510 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6511 found="yes" 6512 fi 6513 fi 6514 6515 6516 6517 6518 6519 # This chunk adds additional warnings that could catch undesired effects. 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 xorg_testset_save_CFLAGS="$CFLAGS" 6534 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6539 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6540 then : 6541 printf %s "(cached) " >&6 6542 else case e in #( 6543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544 /* end confdefs.h. */ 6545 int i; 6546 _ACEOF 6547 if ac_fn_c_try_compile "$LINENO" 6548 then : 6549 xorg_cv_cc_flag_unknown_warning_option=yes 6550 else case e in #( 6551 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6552 esac 6553 fi 6554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6555 esac 6556 fi 6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561 fi 6562 6563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 fi 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6571 then : 6572 printf %s "(cached) " >&6 6573 else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575 /* end confdefs.h. */ 6576 int i; 6577 _ACEOF 6578 if ac_fn_c_try_compile "$LINENO" 6579 then : 6580 xorg_cv_cc_flag_unused_command_line_argument=yes 6581 else case e in #( 6582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6583 esac 6584 fi 6585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6586 esac 6587 fi 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592 fi 6593 6594 found="no" 6595 6596 if test $found = "no" ; then 6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 fi 6600 6601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6603 fi 6604 6605 CFLAGS="$CFLAGS -Wunused" 6606 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6608 printf %s "checking if $CC supports -Wunused... " >&6; } 6609 cacheid=xorg_cv_cc_flag__Wunused 6610 if eval test \${$cacheid+y} 6611 then : 6612 printf %s "(cached) " >&6 6613 else case e in #( 6614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615 /* end confdefs.h. */ 6616 int i; 6617 int 6618 main (void) 6619 { 6620 6621 ; 6622 return 0; 6623 } 6624 _ACEOF 6625 if ac_fn_c_try_link "$LINENO" 6626 then : 6627 eval $cacheid=yes 6628 else case e in #( 6629 e) eval $cacheid=no ;; 6630 esac 6631 fi 6632 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6633 conftest$ac_exeext conftest.$ac_ext ;; 6634 esac 6635 fi 6636 6637 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 6640 eval supported=\$$cacheid 6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6642 printf "%s\n" "$supported" >&6; } 6643 if test "$supported" = "yes" ; then 6644 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6645 found="yes" 6646 fi 6647 fi 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 xorg_testset_save_CFLAGS="$CFLAGS" 6664 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6669 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6670 then : 6671 printf %s "(cached) " >&6 6672 else case e in #( 6673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 int i; 6676 _ACEOF 6677 if ac_fn_c_try_compile "$LINENO" 6678 then : 6679 xorg_cv_cc_flag_unknown_warning_option=yes 6680 else case e in #( 6681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6682 esac 6683 fi 6684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6685 esac 6686 fi 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691 fi 6692 6693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 fi 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6701 then : 6702 printf %s "(cached) " >&6 6703 else case e in #( 6704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705 /* end confdefs.h. */ 6706 int i; 6707 _ACEOF 6708 if ac_fn_c_try_compile "$LINENO" 6709 then : 6710 xorg_cv_cc_flag_unused_command_line_argument=yes 6711 else case e in #( 6712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6713 esac 6714 fi 6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6716 esac 6717 fi 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 fi 6723 6724 found="no" 6725 6726 if test $found = "no" ; then 6727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 fi 6730 6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 fi 6734 6735 CFLAGS="$CFLAGS -Wuninitialized" 6736 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6738 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6739 cacheid=xorg_cv_cc_flag__Wuninitialized 6740 if eval test \${$cacheid+y} 6741 then : 6742 printf %s "(cached) " >&6 6743 else case e in #( 6744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745 /* end confdefs.h. */ 6746 int i; 6747 int 6748 main (void) 6749 { 6750 6751 ; 6752 return 0; 6753 } 6754 _ACEOF 6755 if ac_fn_c_try_link "$LINENO" 6756 then : 6757 eval $cacheid=yes 6758 else case e in #( 6759 e) eval $cacheid=no ;; 6760 esac 6761 fi 6762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6763 conftest$ac_exeext conftest.$ac_ext ;; 6764 esac 6765 fi 6766 6767 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 6770 eval supported=\$$cacheid 6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6772 printf "%s\n" "$supported" >&6; } 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6775 found="yes" 6776 fi 6777 fi 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 xorg_testset_save_CFLAGS="$CFLAGS" 6794 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6799 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6800 then : 6801 printf %s "(cached) " >&6 6802 else case e in #( 6803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6804 /* end confdefs.h. */ 6805 int i; 6806 _ACEOF 6807 if ac_fn_c_try_compile "$LINENO" 6808 then : 6809 xorg_cv_cc_flag_unknown_warning_option=yes 6810 else case e in #( 6811 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6812 esac 6813 fi 6814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6815 esac 6816 fi 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 fi 6822 6823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 fi 6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6831 then : 6832 printf %s "(cached) " >&6 6833 else case e in #( 6834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835 /* end confdefs.h. */ 6836 int i; 6837 _ACEOF 6838 if ac_fn_c_try_compile "$LINENO" 6839 then : 6840 xorg_cv_cc_flag_unused_command_line_argument=yes 6841 else case e in #( 6842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6843 esac 6844 fi 6845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6846 esac 6847 fi 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6851 CFLAGS="$xorg_testset_save_CFLAGS" 6852 fi 6853 6854 found="no" 6855 6856 if test $found = "no" ; then 6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 fi 6860 6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 fi 6864 6865 CFLAGS="$CFLAGS -Wshadow" 6866 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6868 printf %s "checking if $CC supports -Wshadow... " >&6; } 6869 cacheid=xorg_cv_cc_flag__Wshadow 6870 if eval test \${$cacheid+y} 6871 then : 6872 printf %s "(cached) " >&6 6873 else case e in #( 6874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875 /* end confdefs.h. */ 6876 int i; 6877 int 6878 main (void) 6879 { 6880 6881 ; 6882 return 0; 6883 } 6884 _ACEOF 6885 if ac_fn_c_try_link "$LINENO" 6886 then : 6887 eval $cacheid=yes 6888 else case e in #( 6889 e) eval $cacheid=no ;; 6890 esac 6891 fi 6892 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6893 conftest$ac_exeext conftest.$ac_ext ;; 6894 esac 6895 fi 6896 6897 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 6900 eval supported=\$$cacheid 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6902 printf "%s\n" "$supported" >&6; } 6903 if test "$supported" = "yes" ; then 6904 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6905 found="yes" 6906 fi 6907 fi 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 xorg_testset_save_CFLAGS="$CFLAGS" 6924 6925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6928 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6929 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6930 then : 6931 printf %s "(cached) " >&6 6932 else case e in #( 6933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934 /* end confdefs.h. */ 6935 int i; 6936 _ACEOF 6937 if ac_fn_c_try_compile "$LINENO" 6938 then : 6939 xorg_cv_cc_flag_unknown_warning_option=yes 6940 else case e in #( 6941 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6942 esac 6943 fi 6944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6945 esac 6946 fi 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6950 CFLAGS="$xorg_testset_save_CFLAGS" 6951 fi 6952 6953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6956 fi 6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6961 then : 6962 printf %s "(cached) " >&6 6963 else case e in #( 6964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965 /* end confdefs.h. */ 6966 int i; 6967 _ACEOF 6968 if ac_fn_c_try_compile "$LINENO" 6969 then : 6970 xorg_cv_cc_flag_unused_command_line_argument=yes 6971 else case e in #( 6972 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6973 esac 6974 fi 6975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6976 esac 6977 fi 6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6979 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982 fi 6983 6984 found="no" 6985 6986 if test $found = "no" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 fi 6994 6995 CFLAGS="$CFLAGS -Wmissing-noreturn" 6996 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6998 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6999 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7000 if eval test \${$cacheid+y} 7001 then : 7002 printf %s "(cached) " >&6 7003 else case e in #( 7004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005 /* end confdefs.h. */ 7006 int i; 7007 int 7008 main (void) 7009 { 7010 7011 ; 7012 return 0; 7013 } 7014 _ACEOF 7015 if ac_fn_c_try_link "$LINENO" 7016 then : 7017 eval $cacheid=yes 7018 else case e in #( 7019 e) eval $cacheid=no ;; 7020 esac 7021 fi 7022 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7023 conftest$ac_exeext conftest.$ac_ext ;; 7024 esac 7025 fi 7026 7027 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029 7030 eval supported=\$$cacheid 7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7032 printf "%s\n" "$supported" >&6; } 7033 if test "$supported" = "yes" ; then 7034 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7035 found="yes" 7036 fi 7037 fi 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 xorg_testset_save_CFLAGS="$CFLAGS" 7054 7055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7059 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7060 then : 7061 printf %s "(cached) " >&6 7062 else case e in #( 7063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064 /* end confdefs.h. */ 7065 int i; 7066 _ACEOF 7067 if ac_fn_c_try_compile "$LINENO" 7068 then : 7069 xorg_cv_cc_flag_unknown_warning_option=yes 7070 else case e in #( 7071 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7072 esac 7073 fi 7074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7075 esac 7076 fi 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7080 CFLAGS="$xorg_testset_save_CFLAGS" 7081 fi 7082 7083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7086 fi 7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7091 then : 7092 printf %s "(cached) " >&6 7093 else case e in #( 7094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095 /* end confdefs.h. */ 7096 int i; 7097 _ACEOF 7098 if ac_fn_c_try_compile "$LINENO" 7099 then : 7100 xorg_cv_cc_flag_unused_command_line_argument=yes 7101 else case e in #( 7102 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7103 esac 7104 fi 7105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7106 esac 7107 fi 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7111 CFLAGS="$xorg_testset_save_CFLAGS" 7112 fi 7113 7114 found="no" 7115 7116 if test $found = "no" ; then 7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 fi 7120 7121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7123 fi 7124 7125 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7126 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7128 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7129 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7130 if eval test \${$cacheid+y} 7131 then : 7132 printf %s "(cached) " >&6 7133 else case e in #( 7134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 int i; 7137 int 7138 main (void) 7139 { 7140 7141 ; 7142 return 0; 7143 } 7144 _ACEOF 7145 if ac_fn_c_try_link "$LINENO" 7146 then : 7147 eval $cacheid=yes 7148 else case e in #( 7149 e) eval $cacheid=no ;; 7150 esac 7151 fi 7152 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7153 conftest$ac_exeext conftest.$ac_ext ;; 7154 esac 7155 fi 7156 7157 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159 7160 eval supported=\$$cacheid 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7162 printf "%s\n" "$supported" >&6; } 7163 if test "$supported" = "yes" ; then 7164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7165 found="yes" 7166 fi 7167 fi 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 xorg_testset_save_CFLAGS="$CFLAGS" 7184 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7189 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7190 then : 7191 printf %s "(cached) " >&6 7192 else case e in #( 7193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194 /* end confdefs.h. */ 7195 int i; 7196 _ACEOF 7197 if ac_fn_c_try_compile "$LINENO" 7198 then : 7199 xorg_cv_cc_flag_unknown_warning_option=yes 7200 else case e in #( 7201 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7202 esac 7203 fi 7204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7205 esac 7206 fi 7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211 fi 7212 7213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7221 then : 7222 printf %s "(cached) " >&6 7223 else case e in #( 7224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225 /* end confdefs.h. */ 7226 int i; 7227 _ACEOF 7228 if ac_fn_c_try_compile "$LINENO" 7229 then : 7230 xorg_cv_cc_flag_unused_command_line_argument=yes 7231 else case e in #( 7232 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7233 esac 7234 fi 7235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7236 esac 7237 fi 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7241 CFLAGS="$xorg_testset_save_CFLAGS" 7242 fi 7243 7244 found="no" 7245 7246 if test $found = "no" ; then 7247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 fi 7250 7251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7253 fi 7254 7255 CFLAGS="$CFLAGS -Wredundant-decls" 7256 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7258 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7259 cacheid=xorg_cv_cc_flag__Wredundant_decls 7260 if eval test \${$cacheid+y} 7261 then : 7262 printf %s "(cached) " >&6 7263 else case e in #( 7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265 /* end confdefs.h. */ 7266 int i; 7267 int 7268 main (void) 7269 { 7270 7271 ; 7272 return 0; 7273 } 7274 _ACEOF 7275 if ac_fn_c_try_link "$LINENO" 7276 then : 7277 eval $cacheid=yes 7278 else case e in #( 7279 e) eval $cacheid=no ;; 7280 esac 7281 fi 7282 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7283 conftest$ac_exeext conftest.$ac_ext ;; 7284 esac 7285 fi 7286 7287 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289 7290 eval supported=\$$cacheid 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7292 printf "%s\n" "$supported" >&6; } 7293 if test "$supported" = "yes" ; then 7294 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7295 found="yes" 7296 fi 7297 fi 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 xorg_testset_save_CFLAGS="$CFLAGS" 7314 7315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7319 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7320 then : 7321 printf %s "(cached) " >&6 7322 else case e in #( 7323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324 /* end confdefs.h. */ 7325 int i; 7326 _ACEOF 7327 if ac_fn_c_try_compile "$LINENO" 7328 then : 7329 xorg_cv_cc_flag_unknown_warning_option=yes 7330 else case e in #( 7331 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7332 esac 7333 fi 7334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7335 esac 7336 fi 7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341 fi 7342 7343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7351 then : 7352 printf %s "(cached) " >&6 7353 else case e in #( 7354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355 /* end confdefs.h. */ 7356 int i; 7357 _ACEOF 7358 if ac_fn_c_try_compile "$LINENO" 7359 then : 7360 xorg_cv_cc_flag_unused_command_line_argument=yes 7361 else case e in #( 7362 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7363 esac 7364 fi 7365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7366 esac 7367 fi 7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7371 CFLAGS="$xorg_testset_save_CFLAGS" 7372 fi 7373 7374 found="no" 7375 7376 if test $found = "no" ; then 7377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7379 fi 7380 7381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7383 fi 7384 7385 CFLAGS="$CFLAGS -Wlogical-op" 7386 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7388 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7389 cacheid=xorg_cv_cc_flag__Wlogical_op 7390 if eval test \${$cacheid+y} 7391 then : 7392 printf %s "(cached) " >&6 7393 else case e in #( 7394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395 /* end confdefs.h. */ 7396 int i; 7397 int 7398 main (void) 7399 { 7400 7401 ; 7402 return 0; 7403 } 7404 _ACEOF 7405 if ac_fn_c_try_link "$LINENO" 7406 then : 7407 eval $cacheid=yes 7408 else case e in #( 7409 e) eval $cacheid=no ;; 7410 esac 7411 fi 7412 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7413 conftest$ac_exeext conftest.$ac_ext ;; 7414 esac 7415 fi 7416 7417 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419 7420 eval supported=\$$cacheid 7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7422 printf "%s\n" "$supported" >&6; } 7423 if test "$supported" = "yes" ; then 7424 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7425 found="yes" 7426 fi 7427 fi 7428 7429 7430 7431 # These are currently disabled because they are noisy. They will be enabled 7432 # in the future once the codebase is sufficiently modernized to silence 7433 # them. For now, I don't want them to drown out the other warnings. 7434 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7435 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7436 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7437 7438 # Turn some warnings into errors, so we don't accidentally get successful builds 7439 # when there are problems that should be fixed. 7440 7441 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 xorg_testset_save_CFLAGS="$CFLAGS" 7456 7457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7461 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7462 then : 7463 printf %s "(cached) " >&6 7464 else case e in #( 7465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466 /* end confdefs.h. */ 7467 int i; 7468 _ACEOF 7469 if ac_fn_c_try_compile "$LINENO" 7470 then : 7471 xorg_cv_cc_flag_unknown_warning_option=yes 7472 else case e in #( 7473 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7474 esac 7475 fi 7476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7477 esac 7478 fi 7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483 fi 7484 7485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7488 fi 7489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7493 then : 7494 printf %s "(cached) " >&6 7495 else case e in #( 7496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497 /* end confdefs.h. */ 7498 int i; 7499 _ACEOF 7500 if ac_fn_c_try_compile "$LINENO" 7501 then : 7502 xorg_cv_cc_flag_unused_command_line_argument=yes 7503 else case e in #( 7504 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7505 esac 7506 fi 7507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7508 esac 7509 fi 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7514 fi 7515 7516 found="no" 7517 7518 if test $found = "no" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7525 fi 7526 7527 CFLAGS="$CFLAGS -Werror=implicit" 7528 7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7530 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7531 cacheid=xorg_cv_cc_flag__Werror_implicit 7532 if eval test \${$cacheid+y} 7533 then : 7534 printf %s "(cached) " >&6 7535 else case e in #( 7536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7537 /* end confdefs.h. */ 7538 int i; 7539 int 7540 main (void) 7541 { 7542 7543 ; 7544 return 0; 7545 } 7546 _ACEOF 7547 if ac_fn_c_try_link "$LINENO" 7548 then : 7549 eval $cacheid=yes 7550 else case e in #( 7551 e) eval $cacheid=no ;; 7552 esac 7553 fi 7554 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7555 conftest$ac_exeext conftest.$ac_ext ;; 7556 esac 7557 fi 7558 7559 7560 CFLAGS="$xorg_testset_save_CFLAGS" 7561 7562 eval supported=\$$cacheid 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7564 printf "%s\n" "$supported" >&6; } 7565 if test "$supported" = "yes" ; then 7566 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7567 found="yes" 7568 fi 7569 fi 7570 7571 if test $found = "no" ; then 7572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7574 fi 7575 7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7578 fi 7579 7580 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7581 7582 { 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 7583 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7584 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7585 if eval test \${$cacheid+y} 7586 then : 7587 printf %s "(cached) " >&6 7588 else case e in #( 7589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590 /* end confdefs.h. */ 7591 int i; 7592 int 7593 main (void) 7594 { 7595 7596 ; 7597 return 0; 7598 } 7599 _ACEOF 7600 if ac_fn_c_try_link "$LINENO" 7601 then : 7602 eval $cacheid=yes 7603 else case e in #( 7604 e) eval $cacheid=no ;; 7605 esac 7606 fi 7607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7608 conftest$ac_exeext conftest.$ac_ext ;; 7609 esac 7610 fi 7611 7612 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614 7615 eval supported=\$$cacheid 7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7617 printf "%s\n" "$supported" >&6; } 7618 if test "$supported" = "yes" ; then 7619 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7620 found="yes" 7621 fi 7622 fi 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 xorg_testset_save_CFLAGS="$CFLAGS" 7639 7640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7644 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7645 then : 7646 printf %s "(cached) " >&6 7647 else case e in #( 7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649 /* end confdefs.h. */ 7650 int i; 7651 _ACEOF 7652 if ac_fn_c_try_compile "$LINENO" 7653 then : 7654 xorg_cv_cc_flag_unknown_warning_option=yes 7655 else case e in #( 7656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7657 esac 7658 fi 7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7660 esac 7661 fi 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7663 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7665 CFLAGS="$xorg_testset_save_CFLAGS" 7666 fi 7667 7668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7671 fi 7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7676 then : 7677 printf %s "(cached) " >&6 7678 else case e in #( 7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680 /* end confdefs.h. */ 7681 int i; 7682 _ACEOF 7683 if ac_fn_c_try_compile "$LINENO" 7684 then : 7685 xorg_cv_cc_flag_unused_command_line_argument=yes 7686 else case e in #( 7687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7688 esac 7689 fi 7690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7691 esac 7692 fi 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697 fi 7698 7699 found="no" 7700 7701 if test $found = "no" ; then 7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7704 fi 7705 7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7708 fi 7709 7710 CFLAGS="$CFLAGS -Werror=nonnull" 7711 7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7713 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7714 cacheid=xorg_cv_cc_flag__Werror_nonnull 7715 if eval test \${$cacheid+y} 7716 then : 7717 printf %s "(cached) " >&6 7718 else case e in #( 7719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720 /* end confdefs.h. */ 7721 int i; 7722 int 7723 main (void) 7724 { 7725 7726 ; 7727 return 0; 7728 } 7729 _ACEOF 7730 if ac_fn_c_try_link "$LINENO" 7731 then : 7732 eval $cacheid=yes 7733 else case e in #( 7734 e) eval $cacheid=no ;; 7735 esac 7736 fi 7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7738 conftest$ac_exeext conftest.$ac_ext ;; 7739 esac 7740 fi 7741 7742 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744 7745 eval supported=\$$cacheid 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7747 printf "%s\n" "$supported" >&6; } 7748 if test "$supported" = "yes" ; then 7749 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7750 found="yes" 7751 fi 7752 fi 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 xorg_testset_save_CFLAGS="$CFLAGS" 7769 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7773 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7774 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7775 then : 7776 printf %s "(cached) " >&6 7777 else case e in #( 7778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779 /* end confdefs.h. */ 7780 int i; 7781 _ACEOF 7782 if ac_fn_c_try_compile "$LINENO" 7783 then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785 else case e in #( 7786 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7787 esac 7788 fi 7789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7790 esac 7791 fi 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7793 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796 fi 7797 7798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 fi 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7804 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7805 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7806 then : 7807 printf %s "(cached) " >&6 7808 else case e in #( 7809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810 /* end confdefs.h. */ 7811 int i; 7812 _ACEOF 7813 if ac_fn_c_try_compile "$LINENO" 7814 then : 7815 xorg_cv_cc_flag_unused_command_line_argument=yes 7816 else case e in #( 7817 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7818 esac 7819 fi 7820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7821 esac 7822 fi 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827 fi 7828 7829 found="no" 7830 7831 if test $found = "no" ; then 7832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7834 fi 7835 7836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 fi 7839 7840 CFLAGS="$CFLAGS -Werror=init-self" 7841 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7843 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7844 cacheid=xorg_cv_cc_flag__Werror_init_self 7845 if eval test \${$cacheid+y} 7846 then : 7847 printf %s "(cached) " >&6 7848 else case e in #( 7849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850 /* end confdefs.h. */ 7851 int i; 7852 int 7853 main (void) 7854 { 7855 7856 ; 7857 return 0; 7858 } 7859 _ACEOF 7860 if ac_fn_c_try_link "$LINENO" 7861 then : 7862 eval $cacheid=yes 7863 else case e in #( 7864 e) eval $cacheid=no ;; 7865 esac 7866 fi 7867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7868 conftest$ac_exeext conftest.$ac_ext ;; 7869 esac 7870 fi 7871 7872 7873 CFLAGS="$xorg_testset_save_CFLAGS" 7874 7875 eval supported=\$$cacheid 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7877 printf "%s\n" "$supported" >&6; } 7878 if test "$supported" = "yes" ; then 7879 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7880 found="yes" 7881 fi 7882 fi 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 xorg_testset_save_CFLAGS="$CFLAGS" 7899 7900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7904 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7905 then : 7906 printf %s "(cached) " >&6 7907 else case e in #( 7908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909 /* end confdefs.h. */ 7910 int i; 7911 _ACEOF 7912 if ac_fn_c_try_compile "$LINENO" 7913 then : 7914 xorg_cv_cc_flag_unknown_warning_option=yes 7915 else case e in #( 7916 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7917 esac 7918 fi 7919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7920 esac 7921 fi 7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7923 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926 fi 7927 7928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7931 fi 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7934 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7935 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else case e in #( 7939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 /* end confdefs.h. */ 7941 int i; 7942 _ACEOF 7943 if ac_fn_c_try_compile "$LINENO" 7944 then : 7945 xorg_cv_cc_flag_unused_command_line_argument=yes 7946 else case e in #( 7947 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7948 esac 7949 fi 7950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7951 esac 7952 fi 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7954 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957 fi 7958 7959 found="no" 7960 7961 if test $found = "no" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 fi 7969 7970 CFLAGS="$CFLAGS -Werror=main" 7971 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7973 printf %s "checking if $CC supports -Werror=main... " >&6; } 7974 cacheid=xorg_cv_cc_flag__Werror_main 7975 if eval test \${$cacheid+y} 7976 then : 7977 printf %s "(cached) " >&6 7978 else case e in #( 7979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980 /* end confdefs.h. */ 7981 int i; 7982 int 7983 main (void) 7984 { 7985 7986 ; 7987 return 0; 7988 } 7989 _ACEOF 7990 if ac_fn_c_try_link "$LINENO" 7991 then : 7992 eval $cacheid=yes 7993 else case e in #( 7994 e) eval $cacheid=no ;; 7995 esac 7996 fi 7997 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7998 conftest$ac_exeext conftest.$ac_ext ;; 7999 esac 8000 fi 8001 8002 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 8005 eval supported=\$$cacheid 8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8007 printf "%s\n" "$supported" >&6; } 8008 if test "$supported" = "yes" ; then 8009 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8010 found="yes" 8011 fi 8012 fi 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 xorg_testset_save_CFLAGS="$CFLAGS" 8029 8030 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8033 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8034 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8035 then : 8036 printf %s "(cached) " >&6 8037 else case e in #( 8038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039 /* end confdefs.h. */ 8040 int i; 8041 _ACEOF 8042 if ac_fn_c_try_compile "$LINENO" 8043 then : 8044 xorg_cv_cc_flag_unknown_warning_option=yes 8045 else case e in #( 8046 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8047 esac 8048 fi 8049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8050 esac 8051 fi 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056 fi 8057 8058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 fi 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8066 then : 8067 printf %s "(cached) " >&6 8068 else case e in #( 8069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070 /* end confdefs.h. */ 8071 int i; 8072 _ACEOF 8073 if ac_fn_c_try_compile "$LINENO" 8074 then : 8075 xorg_cv_cc_flag_unused_command_line_argument=yes 8076 else case e in #( 8077 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8078 esac 8079 fi 8080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8081 esac 8082 fi 8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087 fi 8088 8089 found="no" 8090 8091 if test $found = "no" ; then 8092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8094 fi 8095 8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8098 fi 8099 8100 CFLAGS="$CFLAGS -Werror=missing-braces" 8101 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8103 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8104 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8105 if eval test \${$cacheid+y} 8106 then : 8107 printf %s "(cached) " >&6 8108 else case e in #( 8109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110 /* end confdefs.h. */ 8111 int i; 8112 int 8113 main (void) 8114 { 8115 8116 ; 8117 return 0; 8118 } 8119 _ACEOF 8120 if ac_fn_c_try_link "$LINENO" 8121 then : 8122 eval $cacheid=yes 8123 else case e in #( 8124 e) eval $cacheid=no ;; 8125 esac 8126 fi 8127 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8128 conftest$ac_exeext conftest.$ac_ext ;; 8129 esac 8130 fi 8131 8132 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134 8135 eval supported=\$$cacheid 8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8137 printf "%s\n" "$supported" >&6; } 8138 if test "$supported" = "yes" ; then 8139 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8140 found="yes" 8141 fi 8142 fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 xorg_testset_save_CFLAGS="$CFLAGS" 8159 8160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8164 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8165 then : 8166 printf %s "(cached) " >&6 8167 else case e in #( 8168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169 /* end confdefs.h. */ 8170 int i; 8171 _ACEOF 8172 if ac_fn_c_try_compile "$LINENO" 8173 then : 8174 xorg_cv_cc_flag_unknown_warning_option=yes 8175 else case e in #( 8176 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8177 esac 8178 fi 8179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8180 esac 8181 fi 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8185 CFLAGS="$xorg_testset_save_CFLAGS" 8186 fi 8187 8188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8191 fi 8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8196 then : 8197 printf %s "(cached) " >&6 8198 else case e in #( 8199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200 /* end confdefs.h. */ 8201 int i; 8202 _ACEOF 8203 if ac_fn_c_try_compile "$LINENO" 8204 then : 8205 xorg_cv_cc_flag_unused_command_line_argument=yes 8206 else case e in #( 8207 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8208 esac 8209 fi 8210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8211 esac 8212 fi 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8216 CFLAGS="$xorg_testset_save_CFLAGS" 8217 fi 8218 8219 found="no" 8220 8221 if test $found = "no" ; then 8222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8224 fi 8225 8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8228 fi 8229 8230 CFLAGS="$CFLAGS -Werror=sequence-point" 8231 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8233 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8234 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8235 if eval test \${$cacheid+y} 8236 then : 8237 printf %s "(cached) " >&6 8238 else case e in #( 8239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240 /* end confdefs.h. */ 8241 int i; 8242 int 8243 main (void) 8244 { 8245 8246 ; 8247 return 0; 8248 } 8249 _ACEOF 8250 if ac_fn_c_try_link "$LINENO" 8251 then : 8252 eval $cacheid=yes 8253 else case e in #( 8254 e) eval $cacheid=no ;; 8255 esac 8256 fi 8257 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8258 conftest$ac_exeext conftest.$ac_ext ;; 8259 esac 8260 fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267 printf "%s\n" "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8270 found="yes" 8271 fi 8272 fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 xorg_testset_save_CFLAGS="$CFLAGS" 8289 8290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8294 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8295 then : 8296 printf %s "(cached) " >&6 8297 else case e in #( 8298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299 /* end confdefs.h. */ 8300 int i; 8301 _ACEOF 8302 if ac_fn_c_try_compile "$LINENO" 8303 then : 8304 xorg_cv_cc_flag_unknown_warning_option=yes 8305 else case e in #( 8306 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8307 esac 8308 fi 8309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8310 esac 8311 fi 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8315 CFLAGS="$xorg_testset_save_CFLAGS" 8316 fi 8317 8318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8321 fi 8322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8326 then : 8327 printf %s "(cached) " >&6 8328 else case e in #( 8329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330 /* end confdefs.h. */ 8331 int i; 8332 _ACEOF 8333 if ac_fn_c_try_compile "$LINENO" 8334 then : 8335 xorg_cv_cc_flag_unused_command_line_argument=yes 8336 else case e in #( 8337 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8338 esac 8339 fi 8340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8341 esac 8342 fi 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8344 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8346 CFLAGS="$xorg_testset_save_CFLAGS" 8347 fi 8348 8349 found="no" 8350 8351 if test $found = "no" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 8356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 fi 8359 8360 CFLAGS="$CFLAGS -Werror=return-type" 8361 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8363 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8364 cacheid=xorg_cv_cc_flag__Werror_return_type 8365 if eval test \${$cacheid+y} 8366 then : 8367 printf %s "(cached) " >&6 8368 else case e in #( 8369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370 /* end confdefs.h. */ 8371 int i; 8372 int 8373 main (void) 8374 { 8375 8376 ; 8377 return 0; 8378 } 8379 _ACEOF 8380 if ac_fn_c_try_link "$LINENO" 8381 then : 8382 eval $cacheid=yes 8383 else case e in #( 8384 e) eval $cacheid=no ;; 8385 esac 8386 fi 8387 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8388 conftest$ac_exeext conftest.$ac_ext ;; 8389 esac 8390 fi 8391 8392 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394 8395 eval supported=\$$cacheid 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8397 printf "%s\n" "$supported" >&6; } 8398 if test "$supported" = "yes" ; then 8399 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8400 found="yes" 8401 fi 8402 fi 8403 8404 if test $found = "no" ; then 8405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407 fi 8408 8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8411 fi 8412 8413 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8414 8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8416 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8417 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8418 if eval test \${$cacheid+y} 8419 then : 8420 printf %s "(cached) " >&6 8421 else case e in #( 8422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423 /* end confdefs.h. */ 8424 int i; 8425 int 8426 main (void) 8427 { 8428 8429 ; 8430 return 0; 8431 } 8432 _ACEOF 8433 if ac_fn_c_try_link "$LINENO" 8434 then : 8435 eval $cacheid=yes 8436 else case e in #( 8437 e) eval $cacheid=no ;; 8438 esac 8439 fi 8440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8441 conftest$ac_exeext conftest.$ac_ext ;; 8442 esac 8443 fi 8444 8445 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447 8448 eval supported=\$$cacheid 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8450 printf "%s\n" "$supported" >&6; } 8451 if test "$supported" = "yes" ; then 8452 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8453 found="yes" 8454 fi 8455 fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 xorg_testset_save_CFLAGS="$CFLAGS" 8472 8473 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8476 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8477 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8478 then : 8479 printf %s "(cached) " >&6 8480 else case e in #( 8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482 /* end confdefs.h. */ 8483 int i; 8484 _ACEOF 8485 if ac_fn_c_try_compile "$LINENO" 8486 then : 8487 xorg_cv_cc_flag_unknown_warning_option=yes 8488 else case e in #( 8489 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8490 esac 8491 fi 8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8493 esac 8494 fi 8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499 fi 8500 8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504 fi 8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8509 then : 8510 printf %s "(cached) " >&6 8511 else case e in #( 8512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513 /* end confdefs.h. */ 8514 int i; 8515 _ACEOF 8516 if ac_fn_c_try_compile "$LINENO" 8517 then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519 else case e in #( 8520 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8521 esac 8522 fi 8523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8524 esac 8525 fi 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 fi 8531 8532 found="no" 8533 8534 if test $found = "no" ; then 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 fi 8538 8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 fi 8542 8543 CFLAGS="$CFLAGS -Werror=trigraphs" 8544 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8546 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8547 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8548 if eval test \${$cacheid+y} 8549 then : 8550 printf %s "(cached) " >&6 8551 else case e in #( 8552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553 /* end confdefs.h. */ 8554 int i; 8555 int 8556 main (void) 8557 { 8558 8559 ; 8560 return 0; 8561 } 8562 _ACEOF 8563 if ac_fn_c_try_link "$LINENO" 8564 then : 8565 eval $cacheid=yes 8566 else case e in #( 8567 e) eval $cacheid=no ;; 8568 esac 8569 fi 8570 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8571 conftest$ac_exeext conftest.$ac_ext ;; 8572 esac 8573 fi 8574 8575 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577 8578 eval supported=\$$cacheid 8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8580 printf "%s\n" "$supported" >&6; } 8581 if test "$supported" = "yes" ; then 8582 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8583 found="yes" 8584 fi 8585 fi 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 xorg_testset_save_CFLAGS="$CFLAGS" 8602 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8607 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8608 then : 8609 printf %s "(cached) " >&6 8610 else case e in #( 8611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612 /* end confdefs.h. */ 8613 int i; 8614 _ACEOF 8615 if ac_fn_c_try_compile "$LINENO" 8616 then : 8617 xorg_cv_cc_flag_unknown_warning_option=yes 8618 else case e in #( 8619 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8620 esac 8621 fi 8622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8623 esac 8624 fi 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8628 CFLAGS="$xorg_testset_save_CFLAGS" 8629 fi 8630 8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8639 then : 8640 printf %s "(cached) " >&6 8641 else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643 /* end confdefs.h. */ 8644 int i; 8645 _ACEOF 8646 if ac_fn_c_try_compile "$LINENO" 8647 then : 8648 xorg_cv_cc_flag_unused_command_line_argument=yes 8649 else case e in #( 8650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8651 esac 8652 fi 8653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8654 esac 8655 fi 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 fi 8661 8662 found="no" 8663 8664 if test $found = "no" ; then 8665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8667 fi 8668 8669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8671 fi 8672 8673 CFLAGS="$CFLAGS -Werror=array-bounds" 8674 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8676 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8677 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8678 if eval test \${$cacheid+y} 8679 then : 8680 printf %s "(cached) " >&6 8681 else case e in #( 8682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683 /* end confdefs.h. */ 8684 int i; 8685 int 8686 main (void) 8687 { 8688 8689 ; 8690 return 0; 8691 } 8692 _ACEOF 8693 if ac_fn_c_try_link "$LINENO" 8694 then : 8695 eval $cacheid=yes 8696 else case e in #( 8697 e) eval $cacheid=no ;; 8698 esac 8699 fi 8700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8701 conftest$ac_exeext conftest.$ac_ext ;; 8702 esac 8703 fi 8704 8705 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707 8708 eval supported=\$$cacheid 8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8710 printf "%s\n" "$supported" >&6; } 8711 if test "$supported" = "yes" ; then 8712 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8713 found="yes" 8714 fi 8715 fi 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 xorg_testset_save_CFLAGS="$CFLAGS" 8732 8733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8737 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8738 then : 8739 printf %s "(cached) " >&6 8740 else case e in #( 8741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742 /* end confdefs.h. */ 8743 int i; 8744 _ACEOF 8745 if ac_fn_c_try_compile "$LINENO" 8746 then : 8747 xorg_cv_cc_flag_unknown_warning_option=yes 8748 else case e in #( 8749 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8750 esac 8751 fi 8752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8753 esac 8754 fi 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8758 CFLAGS="$xorg_testset_save_CFLAGS" 8759 fi 8760 8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8764 fi 8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8769 then : 8770 printf %s "(cached) " >&6 8771 else case e in #( 8772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773 /* end confdefs.h. */ 8774 int i; 8775 _ACEOF 8776 if ac_fn_c_try_compile "$LINENO" 8777 then : 8778 xorg_cv_cc_flag_unused_command_line_argument=yes 8779 else case e in #( 8780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8781 esac 8782 fi 8783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8784 esac 8785 fi 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790 fi 8791 8792 found="no" 8793 8794 if test $found = "no" ; then 8795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 fi 8798 8799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 fi 8802 8803 CFLAGS="$CFLAGS -Werror=write-strings" 8804 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8806 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8807 cacheid=xorg_cv_cc_flag__Werror_write_strings 8808 if eval test \${$cacheid+y} 8809 then : 8810 printf %s "(cached) " >&6 8811 else case e in #( 8812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813 /* end confdefs.h. */ 8814 int i; 8815 int 8816 main (void) 8817 { 8818 8819 ; 8820 return 0; 8821 } 8822 _ACEOF 8823 if ac_fn_c_try_link "$LINENO" 8824 then : 8825 eval $cacheid=yes 8826 else case e in #( 8827 e) eval $cacheid=no ;; 8828 esac 8829 fi 8830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8831 conftest$ac_exeext conftest.$ac_ext ;; 8832 esac 8833 fi 8834 8835 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837 8838 eval supported=\$$cacheid 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8840 printf "%s\n" "$supported" >&6; } 8841 if test "$supported" = "yes" ; then 8842 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8843 found="yes" 8844 fi 8845 fi 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 xorg_testset_save_CFLAGS="$CFLAGS" 8862 8863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else case e in #( 8871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872 /* end confdefs.h. */ 8873 int i; 8874 _ACEOF 8875 if ac_fn_c_try_compile "$LINENO" 8876 then : 8877 xorg_cv_cc_flag_unknown_warning_option=yes 8878 else case e in #( 8879 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8880 esac 8881 fi 8882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8883 esac 8884 fi 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8888 CFLAGS="$xorg_testset_save_CFLAGS" 8889 fi 8890 8891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8894 fi 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8899 then : 8900 printf %s "(cached) " >&6 8901 else case e in #( 8902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903 /* end confdefs.h. */ 8904 int i; 8905 _ACEOF 8906 if ac_fn_c_try_compile "$LINENO" 8907 then : 8908 xorg_cv_cc_flag_unused_command_line_argument=yes 8909 else case e in #( 8910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8911 esac 8912 fi 8913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8914 esac 8915 fi 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920 fi 8921 8922 found="no" 8923 8924 if test $found = "no" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 fi 8932 8933 CFLAGS="$CFLAGS -Werror=address" 8934 8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8936 printf %s "checking if $CC supports -Werror=address... " >&6; } 8937 cacheid=xorg_cv_cc_flag__Werror_address 8938 if eval test \${$cacheid+y} 8939 then : 8940 printf %s "(cached) " >&6 8941 else case e in #( 8942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943 /* end confdefs.h. */ 8944 int i; 8945 int 8946 main (void) 8947 { 8948 8949 ; 8950 return 0; 8951 } 8952 _ACEOF 8953 if ac_fn_c_try_link "$LINENO" 8954 then : 8955 eval $cacheid=yes 8956 else case e in #( 8957 e) eval $cacheid=no ;; 8958 esac 8959 fi 8960 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8961 conftest$ac_exeext conftest.$ac_ext ;; 8962 esac 8963 fi 8964 8965 8966 CFLAGS="$xorg_testset_save_CFLAGS" 8967 8968 eval supported=\$$cacheid 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8970 printf "%s\n" "$supported" >&6; } 8971 if test "$supported" = "yes" ; then 8972 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8973 found="yes" 8974 fi 8975 fi 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 xorg_testset_save_CFLAGS="$CFLAGS" 8992 8993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8996 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8997 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8998 then : 8999 printf %s "(cached) " >&6 9000 else case e in #( 9001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9002 /* end confdefs.h. */ 9003 int i; 9004 _ACEOF 9005 if ac_fn_c_try_compile "$LINENO" 9006 then : 9007 xorg_cv_cc_flag_unknown_warning_option=yes 9008 else case e in #( 9009 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9010 esac 9011 fi 9012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9013 esac 9014 fi 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9018 CFLAGS="$xorg_testset_save_CFLAGS" 9019 fi 9020 9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 fi 9025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9029 then : 9030 printf %s "(cached) " >&6 9031 else case e in #( 9032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033 /* end confdefs.h. */ 9034 int i; 9035 _ACEOF 9036 if ac_fn_c_try_compile "$LINENO" 9037 then : 9038 xorg_cv_cc_flag_unused_command_line_argument=yes 9039 else case e in #( 9040 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9041 esac 9042 fi 9043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9044 esac 9045 fi 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9049 CFLAGS="$xorg_testset_save_CFLAGS" 9050 fi 9051 9052 found="no" 9053 9054 if test $found = "no" ; then 9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 fi 9058 9059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9061 fi 9062 9063 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9064 9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9066 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9067 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9068 if eval test \${$cacheid+y} 9069 then : 9070 printf %s "(cached) " >&6 9071 else case e in #( 9072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073 /* end confdefs.h. */ 9074 int i; 9075 int 9076 main (void) 9077 { 9078 9079 ; 9080 return 0; 9081 } 9082 _ACEOF 9083 if ac_fn_c_try_link "$LINENO" 9084 then : 9085 eval $cacheid=yes 9086 else case e in #( 9087 e) eval $cacheid=no ;; 9088 esac 9089 fi 9090 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9091 conftest$ac_exeext conftest.$ac_ext ;; 9092 esac 9093 fi 9094 9095 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097 9098 eval supported=\$$cacheid 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9100 printf "%s\n" "$supported" >&6; } 9101 if test "$supported" = "yes" ; then 9102 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9103 found="yes" 9104 fi 9105 fi 9106 9107 if test $found = "no" ; then 9108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 fi 9111 9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9114 fi 9115 9116 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9117 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9119 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9120 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9121 if eval test \${$cacheid+y} 9122 then : 9123 printf %s "(cached) " >&6 9124 else case e in #( 9125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9126 /* end confdefs.h. */ 9127 int i; 9128 int 9129 main (void) 9130 { 9131 9132 ; 9133 return 0; 9134 } 9135 _ACEOF 9136 if ac_fn_c_try_link "$LINENO" 9137 then : 9138 eval $cacheid=yes 9139 else case e in #( 9140 e) eval $cacheid=no ;; 9141 esac 9142 fi 9143 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9144 conftest$ac_exeext conftest.$ac_ext ;; 9145 esac 9146 fi 9147 9148 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150 9151 eval supported=\$$cacheid 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9153 printf "%s\n" "$supported" >&6; } 9154 if test "$supported" = "yes" ; then 9155 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9156 found="yes" 9157 fi 9158 fi 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 xorg_testset_save_CFLAGS="$CFLAGS" 9175 9176 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9179 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9180 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9181 then : 9182 printf %s "(cached) " >&6 9183 else case e in #( 9184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185 /* end confdefs.h. */ 9186 int i; 9187 _ACEOF 9188 if ac_fn_c_try_compile "$LINENO" 9189 then : 9190 xorg_cv_cc_flag_unknown_warning_option=yes 9191 else case e in #( 9192 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9193 esac 9194 fi 9195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9196 esac 9197 fi 9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9199 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202 fi 9203 9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 fi 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9210 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9211 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9212 then : 9213 printf %s "(cached) " >&6 9214 else case e in #( 9215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216 /* end confdefs.h. */ 9217 int i; 9218 _ACEOF 9219 if ac_fn_c_try_compile "$LINENO" 9220 then : 9221 xorg_cv_cc_flag_unused_command_line_argument=yes 9222 else case e in #( 9223 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9224 esac 9225 fi 9226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9227 esac 9228 fi 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9230 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233 fi 9234 9235 found="no" 9236 9237 if test $found = "no" ; then 9238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9240 fi 9241 9242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9244 fi 9245 9246 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9247 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9249 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9250 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9251 if eval test \${$cacheid+y} 9252 then : 9253 printf %s "(cached) " >&6 9254 else case e in #( 9255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256 /* end confdefs.h. */ 9257 int i; 9258 int 9259 main (void) 9260 { 9261 9262 ; 9263 return 0; 9264 } 9265 _ACEOF 9266 if ac_fn_c_try_link "$LINENO" 9267 then : 9268 eval $cacheid=yes 9269 else case e in #( 9270 e) eval $cacheid=no ;; 9271 esac 9272 fi 9273 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9274 conftest$ac_exeext conftest.$ac_ext ;; 9275 esac 9276 fi 9277 9278 9279 CFLAGS="$xorg_testset_save_CFLAGS" 9280 9281 eval supported=\$$cacheid 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9283 printf "%s\n" "$supported" >&6; } 9284 if test "$supported" = "yes" ; then 9285 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9286 found="yes" 9287 fi 9288 fi 9289 9290 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9291 else 9292 { 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 9293 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;} 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 xorg_testset_save_CFLAGS="$CFLAGS" 9308 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9313 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9314 then : 9315 printf %s "(cached) " >&6 9316 else case e in #( 9317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318 /* end confdefs.h. */ 9319 int i; 9320 _ACEOF 9321 if ac_fn_c_try_compile "$LINENO" 9322 then : 9323 xorg_cv_cc_flag_unknown_warning_option=yes 9324 else case e in #( 9325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9326 esac 9327 fi 9328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9329 esac 9330 fi 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335 fi 9336 9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9340 fi 9341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9345 then : 9346 printf %s "(cached) " >&6 9347 else case e in #( 9348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349 /* end confdefs.h. */ 9350 int i; 9351 _ACEOF 9352 if ac_fn_c_try_compile "$LINENO" 9353 then : 9354 xorg_cv_cc_flag_unused_command_line_argument=yes 9355 else case e in #( 9356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9357 esac 9358 fi 9359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9360 esac 9361 fi 9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366 fi 9367 9368 found="no" 9369 9370 if test $found = "no" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 9375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9377 fi 9378 9379 CFLAGS="$CFLAGS -Wimplicit" 9380 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9382 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9383 cacheid=xorg_cv_cc_flag__Wimplicit 9384 if eval test \${$cacheid+y} 9385 then : 9386 printf %s "(cached) " >&6 9387 else case e in #( 9388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389 /* end confdefs.h. */ 9390 int i; 9391 int 9392 main (void) 9393 { 9394 9395 ; 9396 return 0; 9397 } 9398 _ACEOF 9399 if ac_fn_c_try_link "$LINENO" 9400 then : 9401 eval $cacheid=yes 9402 else case e in #( 9403 e) eval $cacheid=no ;; 9404 esac 9405 fi 9406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9407 conftest$ac_exeext conftest.$ac_ext ;; 9408 esac 9409 fi 9410 9411 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413 9414 eval supported=\$$cacheid 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9416 printf "%s\n" "$supported" >&6; } 9417 if test "$supported" = "yes" ; then 9418 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9419 found="yes" 9420 fi 9421 fi 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 xorg_testset_save_CFLAGS="$CFLAGS" 9438 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9443 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9444 then : 9445 printf %s "(cached) " >&6 9446 else case e in #( 9447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448 /* end confdefs.h. */ 9449 int i; 9450 _ACEOF 9451 if ac_fn_c_try_compile "$LINENO" 9452 then : 9453 xorg_cv_cc_flag_unknown_warning_option=yes 9454 else case e in #( 9455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9456 esac 9457 fi 9458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9459 esac 9460 fi 9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465 fi 9466 9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 fi 9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9475 then : 9476 printf %s "(cached) " >&6 9477 else case e in #( 9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479 /* end confdefs.h. */ 9480 int i; 9481 _ACEOF 9482 if ac_fn_c_try_compile "$LINENO" 9483 then : 9484 xorg_cv_cc_flag_unused_command_line_argument=yes 9485 else case e in #( 9486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9487 esac 9488 fi 9489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9490 esac 9491 fi 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496 fi 9497 9498 found="no" 9499 9500 if test $found = "no" ; then 9501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 fi 9504 9505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9507 fi 9508 9509 CFLAGS="$CFLAGS -Wnonnull" 9510 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9512 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9513 cacheid=xorg_cv_cc_flag__Wnonnull 9514 if eval test \${$cacheid+y} 9515 then : 9516 printf %s "(cached) " >&6 9517 else case e in #( 9518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519 /* end confdefs.h. */ 9520 int i; 9521 int 9522 main (void) 9523 { 9524 9525 ; 9526 return 0; 9527 } 9528 _ACEOF 9529 if ac_fn_c_try_link "$LINENO" 9530 then : 9531 eval $cacheid=yes 9532 else case e in #( 9533 e) eval $cacheid=no ;; 9534 esac 9535 fi 9536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9537 conftest$ac_exeext conftest.$ac_ext ;; 9538 esac 9539 fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546 printf "%s\n" "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 xorg_testset_save_CFLAGS="$CFLAGS" 9568 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9573 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9574 then : 9575 printf %s "(cached) " >&6 9576 else case e in #( 9577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 _ACEOF 9581 if ac_fn_c_try_compile "$LINENO" 9582 then : 9583 xorg_cv_cc_flag_unknown_warning_option=yes 9584 else case e in #( 9585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9586 esac 9587 fi 9588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9589 esac 9590 fi 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595 fi 9596 9597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9605 then : 9606 printf %s "(cached) " >&6 9607 else case e in #( 9608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609 /* end confdefs.h. */ 9610 int i; 9611 _ACEOF 9612 if ac_fn_c_try_compile "$LINENO" 9613 then : 9614 xorg_cv_cc_flag_unused_command_line_argument=yes 9615 else case e in #( 9616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9617 esac 9618 fi 9619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9620 esac 9621 fi 9622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 fi 9627 9628 found="no" 9629 9630 if test $found = "no" ; then 9631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 fi 9634 9635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9637 fi 9638 9639 CFLAGS="$CFLAGS -Winit-self" 9640 9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9642 printf %s "checking if $CC supports -Winit-self... " >&6; } 9643 cacheid=xorg_cv_cc_flag__Winit_self 9644 if eval test \${$cacheid+y} 9645 then : 9646 printf %s "(cached) " >&6 9647 else case e in #( 9648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649 /* end confdefs.h. */ 9650 int i; 9651 int 9652 main (void) 9653 { 9654 9655 ; 9656 return 0; 9657 } 9658 _ACEOF 9659 if ac_fn_c_try_link "$LINENO" 9660 then : 9661 eval $cacheid=yes 9662 else case e in #( 9663 e) eval $cacheid=no ;; 9664 esac 9665 fi 9666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9667 conftest$ac_exeext conftest.$ac_ext ;; 9668 esac 9669 fi 9670 9671 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673 9674 eval supported=\$$cacheid 9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9676 printf "%s\n" "$supported" >&6; } 9677 if test "$supported" = "yes" ; then 9678 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9679 found="yes" 9680 fi 9681 fi 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 xorg_testset_save_CFLAGS="$CFLAGS" 9698 9699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9703 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9704 then : 9705 printf %s "(cached) " >&6 9706 else case e in #( 9707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708 /* end confdefs.h. */ 9709 int i; 9710 _ACEOF 9711 if ac_fn_c_try_compile "$LINENO" 9712 then : 9713 xorg_cv_cc_flag_unknown_warning_option=yes 9714 else case e in #( 9715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9716 esac 9717 fi 9718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9719 esac 9720 fi 9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9724 CFLAGS="$xorg_testset_save_CFLAGS" 9725 fi 9726 9727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9730 fi 9731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9735 then : 9736 printf %s "(cached) " >&6 9737 else case e in #( 9738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739 /* end confdefs.h. */ 9740 int i; 9741 _ACEOF 9742 if ac_fn_c_try_compile "$LINENO" 9743 then : 9744 xorg_cv_cc_flag_unused_command_line_argument=yes 9745 else case e in #( 9746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9747 esac 9748 fi 9749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9750 esac 9751 fi 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9756 fi 9757 9758 found="no" 9759 9760 if test $found = "no" ; then 9761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 fi 9764 9765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9767 fi 9768 9769 CFLAGS="$CFLAGS -Wmain" 9770 9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9772 printf %s "checking if $CC supports -Wmain... " >&6; } 9773 cacheid=xorg_cv_cc_flag__Wmain 9774 if eval test \${$cacheid+y} 9775 then : 9776 printf %s "(cached) " >&6 9777 else case e in #( 9778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779 /* end confdefs.h. */ 9780 int i; 9781 int 9782 main (void) 9783 { 9784 9785 ; 9786 return 0; 9787 } 9788 _ACEOF 9789 if ac_fn_c_try_link "$LINENO" 9790 then : 9791 eval $cacheid=yes 9792 else case e in #( 9793 e) eval $cacheid=no ;; 9794 esac 9795 fi 9796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9797 conftest$ac_exeext conftest.$ac_ext ;; 9798 esac 9799 fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806 printf "%s\n" "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9834 then : 9835 printf %s "(cached) " >&6 9836 else case e in #( 9837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838 /* end confdefs.h. */ 9839 int i; 9840 _ACEOF 9841 if ac_fn_c_try_compile "$LINENO" 9842 then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844 else case e in #( 9845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9846 esac 9847 fi 9848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9849 esac 9850 fi 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9852 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9854 CFLAGS="$xorg_testset_save_CFLAGS" 9855 fi 9856 9857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9860 fi 9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9863 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9864 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9865 then : 9866 printf %s "(cached) " >&6 9867 else case e in #( 9868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869 /* end confdefs.h. */ 9870 int i; 9871 _ACEOF 9872 if ac_fn_c_try_compile "$LINENO" 9873 then : 9874 xorg_cv_cc_flag_unused_command_line_argument=yes 9875 else case e in #( 9876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9877 esac 9878 fi 9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9880 esac 9881 fi 9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886 fi 9887 9888 found="no" 9889 9890 if test $found = "no" ; then 9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 fi 9894 9895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9897 fi 9898 9899 CFLAGS="$CFLAGS -Wmissing-braces" 9900 9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9902 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9903 cacheid=xorg_cv_cc_flag__Wmissing_braces 9904 if eval test \${$cacheid+y} 9905 then : 9906 printf %s "(cached) " >&6 9907 else case e in #( 9908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909 /* end confdefs.h. */ 9910 int i; 9911 int 9912 main (void) 9913 { 9914 9915 ; 9916 return 0; 9917 } 9918 _ACEOF 9919 if ac_fn_c_try_link "$LINENO" 9920 then : 9921 eval $cacheid=yes 9922 else case e in #( 9923 e) eval $cacheid=no ;; 9924 esac 9925 fi 9926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9927 conftest$ac_exeext conftest.$ac_ext ;; 9928 esac 9929 fi 9930 9931 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933 9934 eval supported=\$$cacheid 9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9936 printf "%s\n" "$supported" >&6; } 9937 if test "$supported" = "yes" ; then 9938 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9939 found="yes" 9940 fi 9941 fi 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 xorg_testset_save_CFLAGS="$CFLAGS" 9958 9959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9964 then : 9965 printf %s "(cached) " >&6 9966 else case e in #( 9967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968 /* end confdefs.h. */ 9969 int i; 9970 _ACEOF 9971 if ac_fn_c_try_compile "$LINENO" 9972 then : 9973 xorg_cv_cc_flag_unknown_warning_option=yes 9974 else case e in #( 9975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9976 esac 9977 fi 9978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9979 esac 9980 fi 9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9984 CFLAGS="$xorg_testset_save_CFLAGS" 9985 fi 9986 9987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9990 fi 9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9995 then : 9996 printf %s "(cached) " >&6 9997 else case e in #( 9998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999 /* end confdefs.h. */ 10000 int i; 10001 _ACEOF 10002 if ac_fn_c_try_compile "$LINENO" 10003 then : 10004 xorg_cv_cc_flag_unused_command_line_argument=yes 10005 else case e in #( 10006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10007 esac 10008 fi 10009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10010 esac 10011 fi 10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016 fi 10017 10018 found="no" 10019 10020 if test $found = "no" ; then 10021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10023 fi 10024 10025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10027 fi 10028 10029 CFLAGS="$CFLAGS -Wsequence-point" 10030 10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10032 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10033 cacheid=xorg_cv_cc_flag__Wsequence_point 10034 if eval test \${$cacheid+y} 10035 then : 10036 printf %s "(cached) " >&6 10037 else case e in #( 10038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039 /* end confdefs.h. */ 10040 int i; 10041 int 10042 main (void) 10043 { 10044 10045 ; 10046 return 0; 10047 } 10048 _ACEOF 10049 if ac_fn_c_try_link "$LINENO" 10050 then : 10051 eval $cacheid=yes 10052 else case e in #( 10053 e) eval $cacheid=no ;; 10054 esac 10055 fi 10056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10057 conftest$ac_exeext conftest.$ac_ext ;; 10058 esac 10059 fi 10060 10061 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063 10064 eval supported=\$$cacheid 10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10066 printf "%s\n" "$supported" >&6; } 10067 if test "$supported" = "yes" ; then 10068 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10069 found="yes" 10070 fi 10071 fi 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 xorg_testset_save_CFLAGS="$CFLAGS" 10088 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10094 then : 10095 printf %s "(cached) " >&6 10096 else case e in #( 10097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098 /* end confdefs.h. */ 10099 int i; 10100 _ACEOF 10101 if ac_fn_c_try_compile "$LINENO" 10102 then : 10103 xorg_cv_cc_flag_unknown_warning_option=yes 10104 else case e in #( 10105 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10106 esac 10107 fi 10108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10109 esac 10110 fi 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10114 CFLAGS="$xorg_testset_save_CFLAGS" 10115 fi 10116 10117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10120 fi 10121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10125 then : 10126 printf %s "(cached) " >&6 10127 else case e in #( 10128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129 /* end confdefs.h. */ 10130 int i; 10131 _ACEOF 10132 if ac_fn_c_try_compile "$LINENO" 10133 then : 10134 xorg_cv_cc_flag_unused_command_line_argument=yes 10135 else case e in #( 10136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10137 esac 10138 fi 10139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10140 esac 10141 fi 10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 fi 10147 10148 found="no" 10149 10150 if test $found = "no" ; then 10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 fi 10154 10155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10157 fi 10158 10159 CFLAGS="$CFLAGS -Wreturn-type" 10160 10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10162 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10163 cacheid=xorg_cv_cc_flag__Wreturn_type 10164 if eval test \${$cacheid+y} 10165 then : 10166 printf %s "(cached) " >&6 10167 else case e in #( 10168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169 /* end confdefs.h. */ 10170 int i; 10171 int 10172 main (void) 10173 { 10174 10175 ; 10176 return 0; 10177 } 10178 _ACEOF 10179 if ac_fn_c_try_link "$LINENO" 10180 then : 10181 eval $cacheid=yes 10182 else case e in #( 10183 e) eval $cacheid=no ;; 10184 esac 10185 fi 10186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10187 conftest$ac_exeext conftest.$ac_ext ;; 10188 esac 10189 fi 10190 10191 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193 10194 eval supported=\$$cacheid 10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10196 printf "%s\n" "$supported" >&6; } 10197 if test "$supported" = "yes" ; then 10198 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10199 found="yes" 10200 fi 10201 fi 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 xorg_testset_save_CFLAGS="$CFLAGS" 10218 10219 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10222 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10223 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10224 then : 10225 printf %s "(cached) " >&6 10226 else case e in #( 10227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228 /* end confdefs.h. */ 10229 int i; 10230 _ACEOF 10231 if ac_fn_c_try_compile "$LINENO" 10232 then : 10233 xorg_cv_cc_flag_unknown_warning_option=yes 10234 else case e in #( 10235 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10236 esac 10237 fi 10238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10239 esac 10240 fi 10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10242 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245 fi 10246 10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10253 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10254 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10255 then : 10256 printf %s "(cached) " >&6 10257 else case e in #( 10258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259 /* end confdefs.h. */ 10260 int i; 10261 _ACEOF 10262 if ac_fn_c_try_compile "$LINENO" 10263 then : 10264 xorg_cv_cc_flag_unused_command_line_argument=yes 10265 else case e in #( 10266 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10267 esac 10268 fi 10269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10270 esac 10271 fi 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10273 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276 fi 10277 10278 found="no" 10279 10280 if test $found = "no" ; then 10281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10283 fi 10284 10285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10287 fi 10288 10289 CFLAGS="$CFLAGS -Wtrigraphs" 10290 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10292 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10293 cacheid=xorg_cv_cc_flag__Wtrigraphs 10294 if eval test \${$cacheid+y} 10295 then : 10296 printf %s "(cached) " >&6 10297 else case e in #( 10298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299 /* end confdefs.h. */ 10300 int i; 10301 int 10302 main (void) 10303 { 10304 10305 ; 10306 return 0; 10307 } 10308 _ACEOF 10309 if ac_fn_c_try_link "$LINENO" 10310 then : 10311 eval $cacheid=yes 10312 else case e in #( 10313 e) eval $cacheid=no ;; 10314 esac 10315 fi 10316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10317 conftest$ac_exeext conftest.$ac_ext ;; 10318 esac 10319 fi 10320 10321 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323 10324 eval supported=\$$cacheid 10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10326 printf "%s\n" "$supported" >&6; } 10327 if test "$supported" = "yes" ; then 10328 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10329 found="yes" 10330 fi 10331 fi 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 xorg_testset_save_CFLAGS="$CFLAGS" 10348 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10353 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10354 then : 10355 printf %s "(cached) " >&6 10356 else case e in #( 10357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358 /* end confdefs.h. */ 10359 int i; 10360 _ACEOF 10361 if ac_fn_c_try_compile "$LINENO" 10362 then : 10363 xorg_cv_cc_flag_unknown_warning_option=yes 10364 else case e in #( 10365 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10366 esac 10367 fi 10368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10369 esac 10370 fi 10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10374 CFLAGS="$xorg_testset_save_CFLAGS" 10375 fi 10376 10377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10380 fi 10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10385 then : 10386 printf %s "(cached) " >&6 10387 else case e in #( 10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 int i; 10391 _ACEOF 10392 if ac_fn_c_try_compile "$LINENO" 10393 then : 10394 xorg_cv_cc_flag_unused_command_line_argument=yes 10395 else case e in #( 10396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10397 esac 10398 fi 10399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10400 esac 10401 fi 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406 fi 10407 10408 found="no" 10409 10410 if test $found = "no" ; then 10411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10413 fi 10414 10415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10417 fi 10418 10419 CFLAGS="$CFLAGS -Warray-bounds" 10420 10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10422 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10423 cacheid=xorg_cv_cc_flag__Warray_bounds 10424 if eval test \${$cacheid+y} 10425 then : 10426 printf %s "(cached) " >&6 10427 else case e in #( 10428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429 /* end confdefs.h. */ 10430 int i; 10431 int 10432 main (void) 10433 { 10434 10435 ; 10436 return 0; 10437 } 10438 _ACEOF 10439 if ac_fn_c_try_link "$LINENO" 10440 then : 10441 eval $cacheid=yes 10442 else case e in #( 10443 e) eval $cacheid=no ;; 10444 esac 10445 fi 10446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10447 conftest$ac_exeext conftest.$ac_ext ;; 10448 esac 10449 fi 10450 10451 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453 10454 eval supported=\$$cacheid 10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10456 printf "%s\n" "$supported" >&6; } 10457 if test "$supported" = "yes" ; then 10458 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10459 found="yes" 10460 fi 10461 fi 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 xorg_testset_save_CFLAGS="$CFLAGS" 10478 10479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10483 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10484 then : 10485 printf %s "(cached) " >&6 10486 else case e in #( 10487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488 /* end confdefs.h. */ 10489 int i; 10490 _ACEOF 10491 if ac_fn_c_try_compile "$LINENO" 10492 then : 10493 xorg_cv_cc_flag_unknown_warning_option=yes 10494 else case e in #( 10495 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10496 esac 10497 fi 10498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10499 esac 10500 fi 10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10504 CFLAGS="$xorg_testset_save_CFLAGS" 10505 fi 10506 10507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10510 fi 10511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10515 then : 10516 printf %s "(cached) " >&6 10517 else case e in #( 10518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519 /* end confdefs.h. */ 10520 int i; 10521 _ACEOF 10522 if ac_fn_c_try_compile "$LINENO" 10523 then : 10524 xorg_cv_cc_flag_unused_command_line_argument=yes 10525 else case e in #( 10526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10527 esac 10528 fi 10529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10530 esac 10531 fi 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10535 CFLAGS="$xorg_testset_save_CFLAGS" 10536 fi 10537 10538 found="no" 10539 10540 if test $found = "no" ; then 10541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10543 fi 10544 10545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10547 fi 10548 10549 CFLAGS="$CFLAGS -Wwrite-strings" 10550 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10552 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10553 cacheid=xorg_cv_cc_flag__Wwrite_strings 10554 if eval test \${$cacheid+y} 10555 then : 10556 printf %s "(cached) " >&6 10557 else case e in #( 10558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10559 /* end confdefs.h. */ 10560 int i; 10561 int 10562 main (void) 10563 { 10564 10565 ; 10566 return 0; 10567 } 10568 _ACEOF 10569 if ac_fn_c_try_link "$LINENO" 10570 then : 10571 eval $cacheid=yes 10572 else case e in #( 10573 e) eval $cacheid=no ;; 10574 esac 10575 fi 10576 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10577 conftest$ac_exeext conftest.$ac_ext ;; 10578 esac 10579 fi 10580 10581 10582 CFLAGS="$xorg_testset_save_CFLAGS" 10583 10584 eval supported=\$$cacheid 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10586 printf "%s\n" "$supported" >&6; } 10587 if test "$supported" = "yes" ; then 10588 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10589 found="yes" 10590 fi 10591 fi 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 xorg_testset_save_CFLAGS="$CFLAGS" 10608 10609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10613 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10614 then : 10615 printf %s "(cached) " >&6 10616 else case e in #( 10617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618 /* end confdefs.h. */ 10619 int i; 10620 _ACEOF 10621 if ac_fn_c_try_compile "$LINENO" 10622 then : 10623 xorg_cv_cc_flag_unknown_warning_option=yes 10624 else case e in #( 10625 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10626 esac 10627 fi 10628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10629 esac 10630 fi 10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10632 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10634 CFLAGS="$xorg_testset_save_CFLAGS" 10635 fi 10636 10637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10640 fi 10641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10643 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10644 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10645 then : 10646 printf %s "(cached) " >&6 10647 else case e in #( 10648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649 /* end confdefs.h. */ 10650 int i; 10651 _ACEOF 10652 if ac_fn_c_try_compile "$LINENO" 10653 then : 10654 xorg_cv_cc_flag_unused_command_line_argument=yes 10655 else case e in #( 10656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10657 esac 10658 fi 10659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10660 esac 10661 fi 10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10663 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10665 CFLAGS="$xorg_testset_save_CFLAGS" 10666 fi 10667 10668 found="no" 10669 10670 if test $found = "no" ; then 10671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10673 fi 10674 10675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10677 fi 10678 10679 CFLAGS="$CFLAGS -Waddress" 10680 10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10682 printf %s "checking if $CC supports -Waddress... " >&6; } 10683 cacheid=xorg_cv_cc_flag__Waddress 10684 if eval test \${$cacheid+y} 10685 then : 10686 printf %s "(cached) " >&6 10687 else case e in #( 10688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689 /* end confdefs.h. */ 10690 int i; 10691 int 10692 main (void) 10693 { 10694 10695 ; 10696 return 0; 10697 } 10698 _ACEOF 10699 if ac_fn_c_try_link "$LINENO" 10700 then : 10701 eval $cacheid=yes 10702 else case e in #( 10703 e) eval $cacheid=no ;; 10704 esac 10705 fi 10706 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10707 conftest$ac_exeext conftest.$ac_ext ;; 10708 esac 10709 fi 10710 10711 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713 10714 eval supported=\$$cacheid 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10716 printf "%s\n" "$supported" >&6; } 10717 if test "$supported" = "yes" ; then 10718 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10719 found="yes" 10720 fi 10721 fi 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 xorg_testset_save_CFLAGS="$CFLAGS" 10738 10739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10743 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10744 then : 10745 printf %s "(cached) " >&6 10746 else case e in #( 10747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748 /* end confdefs.h. */ 10749 int i; 10750 _ACEOF 10751 if ac_fn_c_try_compile "$LINENO" 10752 then : 10753 xorg_cv_cc_flag_unknown_warning_option=yes 10754 else case e in #( 10755 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10756 esac 10757 fi 10758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10759 esac 10760 fi 10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10762 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10764 CFLAGS="$xorg_testset_save_CFLAGS" 10765 fi 10766 10767 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10770 fi 10771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10773 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10774 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10775 then : 10776 printf %s "(cached) " >&6 10777 else case e in #( 10778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779 /* end confdefs.h. */ 10780 int i; 10781 _ACEOF 10782 if ac_fn_c_try_compile "$LINENO" 10783 then : 10784 xorg_cv_cc_flag_unused_command_line_argument=yes 10785 else case e in #( 10786 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10787 esac 10788 fi 10789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10790 esac 10791 fi 10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10793 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10795 CFLAGS="$xorg_testset_save_CFLAGS" 10796 fi 10797 10798 found="no" 10799 10800 if test $found = "no" ; then 10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 fi 10804 10805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10807 fi 10808 10809 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10810 10811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10812 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10813 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10814 if eval test \${$cacheid+y} 10815 then : 10816 printf %s "(cached) " >&6 10817 else case e in #( 10818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10819 /* end confdefs.h. */ 10820 int i; 10821 int 10822 main (void) 10823 { 10824 10825 ; 10826 return 0; 10827 } 10828 _ACEOF 10829 if ac_fn_c_try_link "$LINENO" 10830 then : 10831 eval $cacheid=yes 10832 else case e in #( 10833 e) eval $cacheid=no ;; 10834 esac 10835 fi 10836 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10837 conftest$ac_exeext conftest.$ac_ext ;; 10838 esac 10839 fi 10840 10841 10842 CFLAGS="$xorg_testset_save_CFLAGS" 10843 10844 eval supported=\$$cacheid 10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10846 printf "%s\n" "$supported" >&6; } 10847 if test "$supported" = "yes" ; then 10848 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10849 found="yes" 10850 fi 10851 fi 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 xorg_testset_save_CFLAGS="$CFLAGS" 10868 10869 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10872 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10873 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10874 then : 10875 printf %s "(cached) " >&6 10876 else case e in #( 10877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878 /* end confdefs.h. */ 10879 int i; 10880 _ACEOF 10881 if ac_fn_c_try_compile "$LINENO" 10882 then : 10883 xorg_cv_cc_flag_unknown_warning_option=yes 10884 else case e in #( 10885 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10886 esac 10887 fi 10888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10889 esac 10890 fi 10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10892 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10894 CFLAGS="$xorg_testset_save_CFLAGS" 10895 fi 10896 10897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10900 fi 10901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10903 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10904 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10905 then : 10906 printf %s "(cached) " >&6 10907 else case e in #( 10908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909 /* end confdefs.h. */ 10910 int i; 10911 _ACEOF 10912 if ac_fn_c_try_compile "$LINENO" 10913 then : 10914 xorg_cv_cc_flag_unused_command_line_argument=yes 10915 else case e in #( 10916 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10917 esac 10918 fi 10919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10920 esac 10921 fi 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10925 CFLAGS="$xorg_testset_save_CFLAGS" 10926 fi 10927 10928 found="no" 10929 10930 if test $found = "no" ; then 10931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10933 fi 10934 10935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10937 fi 10938 10939 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10940 10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10942 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10943 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10944 if eval test \${$cacheid+y} 10945 then : 10946 printf %s "(cached) " >&6 10947 else case e in #( 10948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949 /* end confdefs.h. */ 10950 int i; 10951 int 10952 main (void) 10953 { 10954 10955 ; 10956 return 0; 10957 } 10958 _ACEOF 10959 if ac_fn_c_try_link "$LINENO" 10960 then : 10961 eval $cacheid=yes 10962 else case e in #( 10963 e) eval $cacheid=no ;; 10964 esac 10965 fi 10966 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10967 conftest$ac_exeext conftest.$ac_ext ;; 10968 esac 10969 fi 10970 10971 10972 CFLAGS="$xorg_testset_save_CFLAGS" 10973 10974 eval supported=\$$cacheid 10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10976 printf "%s\n" "$supported" >&6; } 10977 if test "$supported" = "yes" ; then 10978 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10979 found="yes" 10980 fi 10981 fi 10982 10983 10984 fi 10985 10986 10987 10988 10989 10990 10991 10992 CWARNFLAGS="$BASE_CFLAGS" 10993 if test "x$GCC" = xyes ; then 10994 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10995 fi 10996 10997 10998 10999 11000 11001 11002 11003 11004 # Check whether --enable-strict-compilation was given. 11005 if test ${enable_strict_compilation+y} 11006 then : 11007 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11008 else case e in #( 11009 e) STRICT_COMPILE=no ;; 11010 esac 11011 fi 11012 11013 11014 11015 11016 11017 11018 STRICT_CFLAGS="" 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 xorg_testset_save_CFLAGS="$CFLAGS" 11033 11034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11038 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11039 then : 11040 printf %s "(cached) " >&6 11041 else case e in #( 11042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043 /* end confdefs.h. */ 11044 int i; 11045 _ACEOF 11046 if ac_fn_c_try_compile "$LINENO" 11047 then : 11048 xorg_cv_cc_flag_unknown_warning_option=yes 11049 else case e in #( 11050 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11051 esac 11052 fi 11053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11054 esac 11055 fi 11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11059 CFLAGS="$xorg_testset_save_CFLAGS" 11060 fi 11061 11062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11065 fi 11066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11070 then : 11071 printf %s "(cached) " >&6 11072 else case e in #( 11073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11074 /* end confdefs.h. */ 11075 int i; 11076 _ACEOF 11077 if ac_fn_c_try_compile "$LINENO" 11078 then : 11079 xorg_cv_cc_flag_unused_command_line_argument=yes 11080 else case e in #( 11081 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11082 esac 11083 fi 11084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11085 esac 11086 fi 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11090 CFLAGS="$xorg_testset_save_CFLAGS" 11091 fi 11092 11093 found="no" 11094 11095 if test $found = "no" ; then 11096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11098 fi 11099 11100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11102 fi 11103 11104 CFLAGS="$CFLAGS -pedantic" 11105 11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11107 printf %s "checking if $CC supports -pedantic... " >&6; } 11108 cacheid=xorg_cv_cc_flag__pedantic 11109 if eval test \${$cacheid+y} 11110 then : 11111 printf %s "(cached) " >&6 11112 else case e in #( 11113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11114 /* end confdefs.h. */ 11115 int i; 11116 int 11117 main (void) 11118 { 11119 11120 ; 11121 return 0; 11122 } 11123 _ACEOF 11124 if ac_fn_c_try_link "$LINENO" 11125 then : 11126 eval $cacheid=yes 11127 else case e in #( 11128 e) eval $cacheid=no ;; 11129 esac 11130 fi 11131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11132 conftest$ac_exeext conftest.$ac_ext ;; 11133 esac 11134 fi 11135 11136 11137 CFLAGS="$xorg_testset_save_CFLAGS" 11138 11139 eval supported=\$$cacheid 11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11141 printf "%s\n" "$supported" >&6; } 11142 if test "$supported" = "yes" ; then 11143 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11144 found="yes" 11145 fi 11146 fi 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 xorg_testset_save_CFLAGS="$CFLAGS" 11163 11164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11167 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11168 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11169 then : 11170 printf %s "(cached) " >&6 11171 else case e in #( 11172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11173 /* end confdefs.h. */ 11174 int i; 11175 _ACEOF 11176 if ac_fn_c_try_compile "$LINENO" 11177 then : 11178 xorg_cv_cc_flag_unknown_warning_option=yes 11179 else case e in #( 11180 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11181 esac 11182 fi 11183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11184 esac 11185 fi 11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11189 CFLAGS="$xorg_testset_save_CFLAGS" 11190 fi 11191 11192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11195 fi 11196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11200 then : 11201 printf %s "(cached) " >&6 11202 else case e in #( 11203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11204 /* end confdefs.h. */ 11205 int i; 11206 _ACEOF 11207 if ac_fn_c_try_compile "$LINENO" 11208 then : 11209 xorg_cv_cc_flag_unused_command_line_argument=yes 11210 else case e in #( 11211 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11212 esac 11213 fi 11214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11215 esac 11216 fi 11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11220 CFLAGS="$xorg_testset_save_CFLAGS" 11221 fi 11222 11223 found="no" 11224 11225 if test $found = "no" ; then 11226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11228 fi 11229 11230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11232 fi 11233 11234 CFLAGS="$CFLAGS -Werror" 11235 11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11237 printf %s "checking if $CC supports -Werror... " >&6; } 11238 cacheid=xorg_cv_cc_flag__Werror 11239 if eval test \${$cacheid+y} 11240 then : 11241 printf %s "(cached) " >&6 11242 else case e in #( 11243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11244 /* end confdefs.h. */ 11245 int i; 11246 int 11247 main (void) 11248 { 11249 11250 ; 11251 return 0; 11252 } 11253 _ACEOF 11254 if ac_fn_c_try_link "$LINENO" 11255 then : 11256 eval $cacheid=yes 11257 else case e in #( 11258 e) eval $cacheid=no ;; 11259 esac 11260 fi 11261 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11262 conftest$ac_exeext conftest.$ac_ext ;; 11263 esac 11264 fi 11265 11266 11267 CFLAGS="$xorg_testset_save_CFLAGS" 11268 11269 eval supported=\$$cacheid 11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11271 printf "%s\n" "$supported" >&6; } 11272 if test "$supported" = "yes" ; then 11273 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11274 found="yes" 11275 fi 11276 fi 11277 11278 if test $found = "no" ; then 11279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11281 fi 11282 11283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11285 fi 11286 11287 CFLAGS="$CFLAGS -errwarn" 11288 11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11290 printf %s "checking if $CC supports -errwarn... " >&6; } 11291 cacheid=xorg_cv_cc_flag__errwarn 11292 if eval test \${$cacheid+y} 11293 then : 11294 printf %s "(cached) " >&6 11295 else case e in #( 11296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11297 /* end confdefs.h. */ 11298 int i; 11299 int 11300 main (void) 11301 { 11302 11303 ; 11304 return 0; 11305 } 11306 _ACEOF 11307 if ac_fn_c_try_link "$LINENO" 11308 then : 11309 eval $cacheid=yes 11310 else case e in #( 11311 e) eval $cacheid=no ;; 11312 esac 11313 fi 11314 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11315 conftest$ac_exeext conftest.$ac_ext ;; 11316 esac 11317 fi 11318 11319 11320 CFLAGS="$xorg_testset_save_CFLAGS" 11321 11322 eval supported=\$$cacheid 11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11324 printf "%s\n" "$supported" >&6; } 11325 if test "$supported" = "yes" ; then 11326 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11327 found="yes" 11328 fi 11329 fi 11330 11331 11332 11333 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11334 # activate it with -Werror, so we add it here explicitly. 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 xorg_testset_save_CFLAGS="$CFLAGS" 11349 11350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11353 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11354 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11355 then : 11356 printf %s "(cached) " >&6 11357 else case e in #( 11358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359 /* end confdefs.h. */ 11360 int i; 11361 _ACEOF 11362 if ac_fn_c_try_compile "$LINENO" 11363 then : 11364 xorg_cv_cc_flag_unknown_warning_option=yes 11365 else case e in #( 11366 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11367 esac 11368 fi 11369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11370 esac 11371 fi 11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11373 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11375 CFLAGS="$xorg_testset_save_CFLAGS" 11376 fi 11377 11378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11381 fi 11382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11386 then : 11387 printf %s "(cached) " >&6 11388 else case e in #( 11389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390 /* end confdefs.h. */ 11391 int i; 11392 _ACEOF 11393 if ac_fn_c_try_compile "$LINENO" 11394 then : 11395 xorg_cv_cc_flag_unused_command_line_argument=yes 11396 else case e in #( 11397 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11398 esac 11399 fi 11400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11401 esac 11402 fi 11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11406 CFLAGS="$xorg_testset_save_CFLAGS" 11407 fi 11408 11409 found="no" 11410 11411 if test $found = "no" ; then 11412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11414 fi 11415 11416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11418 fi 11419 11420 CFLAGS="$CFLAGS -Werror=attributes" 11421 11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11423 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11424 cacheid=xorg_cv_cc_flag__Werror_attributes 11425 if eval test \${$cacheid+y} 11426 then : 11427 printf %s "(cached) " >&6 11428 else case e in #( 11429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11430 /* end confdefs.h. */ 11431 int i; 11432 int 11433 main (void) 11434 { 11435 11436 ; 11437 return 0; 11438 } 11439 _ACEOF 11440 if ac_fn_c_try_link "$LINENO" 11441 then : 11442 eval $cacheid=yes 11443 else case e in #( 11444 e) eval $cacheid=no ;; 11445 esac 11446 fi 11447 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11448 conftest$ac_exeext conftest.$ac_ext ;; 11449 esac 11450 fi 11451 11452 11453 CFLAGS="$xorg_testset_save_CFLAGS" 11454 11455 eval supported=\$$cacheid 11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11457 printf "%s\n" "$supported" >&6; } 11458 if test "$supported" = "yes" ; then 11459 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11460 found="yes" 11461 fi 11462 fi 11463 11464 11465 11466 if test "x$STRICT_COMPILE" = "xyes"; then 11467 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11468 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11469 fi 11470 11471 11472 11473 11474 11475 11476 11477 11478 cat >>confdefs.h <<_ACEOF 11479 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11480 _ACEOF 11481 11482 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11483 if test "x$PVM" = "x"; then 11484 PVM="0" 11485 fi 11486 11487 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11488 11489 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11490 if test "x$PVP" = "x"; then 11491 PVP="0" 11492 fi 11493 11494 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11495 11496 11497 11498 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11499 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11500 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11501 touch \$(top_srcdir)/ChangeLog; \ 11502 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11503 11504 11505 11506 11507 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11508 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11509 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11510 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11511 touch \$(top_srcdir)/INSTALL; \ 11512 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11513 11514 11515 11516 11517 11518 11519 case $host_os in 11520 solaris*) 11521 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11522 # check for a man page file found in later versions that use 11523 # traditional section numbers instead 11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11525 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11526 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11527 then : 11528 printf %s "(cached) " >&6 11529 else case e in #( 11530 e) test "$cross_compiling" = yes && 11531 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11532 if test -r "/usr/share/man/man7/attributes.7"; then 11533 ac_cv_file__usr_share_man_man7_attributes_7=yes 11534 else 11535 ac_cv_file__usr_share_man_man7_attributes_7=no 11536 fi ;; 11537 esac 11538 fi 11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11540 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11541 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11542 then : 11543 SYSV_MAN_SECTIONS=false 11544 else case e in #( 11545 e) SYSV_MAN_SECTIONS=true ;; 11546 esac 11547 fi 11548 11549 ;; 11550 *) SYSV_MAN_SECTIONS=false ;; 11551 esac 11552 11553 if test x$APP_MAN_SUFFIX = x ; then 11554 APP_MAN_SUFFIX=1 11555 fi 11556 if test x$APP_MAN_DIR = x ; then 11557 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11558 fi 11559 11560 if test x$LIB_MAN_SUFFIX = x ; then 11561 LIB_MAN_SUFFIX=3 11562 fi 11563 if test x$LIB_MAN_DIR = x ; then 11564 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11565 fi 11566 11567 if test x$FILE_MAN_SUFFIX = x ; then 11568 case $SYSV_MAN_SECTIONS in 11569 true) FILE_MAN_SUFFIX=4 ;; 11570 *) FILE_MAN_SUFFIX=5 ;; 11571 esac 11572 fi 11573 if test x$FILE_MAN_DIR = x ; then 11574 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11575 fi 11576 11577 if test x$MISC_MAN_SUFFIX = x ; then 11578 case $SYSV_MAN_SECTIONS in 11579 true) MISC_MAN_SUFFIX=5 ;; 11580 *) MISC_MAN_SUFFIX=7 ;; 11581 esac 11582 fi 11583 if test x$MISC_MAN_DIR = x ; then 11584 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11585 fi 11586 11587 if test x$DRIVER_MAN_SUFFIX = x ; then 11588 case $SYSV_MAN_SECTIONS in 11589 true) DRIVER_MAN_SUFFIX=7 ;; 11590 *) DRIVER_MAN_SUFFIX=4 ;; 11591 esac 11592 fi 11593 if test x$DRIVER_MAN_DIR = x ; then 11594 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11595 fi 11596 11597 if test x$ADMIN_MAN_SUFFIX = x ; then 11598 case $SYSV_MAN_SECTIONS in 11599 true) ADMIN_MAN_SUFFIX=1m ;; 11600 *) ADMIN_MAN_SUFFIX=8 ;; 11601 esac 11602 fi 11603 if test x$ADMIN_MAN_DIR = x ; then 11604 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11605 fi 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 XORG_MAN_PAGE="X Version 11" 11622 11623 MAN_SUBSTS="\ 11624 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11625 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11626 -e 's|__xservername__|Xorg|g' \ 11627 -e 's|__xconfigfile__|xorg.conf|g' \ 11628 -e 's|__projectroot__|\$(prefix)|g' \ 11629 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11630 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11631 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11632 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11633 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11634 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11635 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11636 11637 11638 11639 11640 AM_DEFAULT_VERBOSITY=0 11641 11642 11643 11644 # Define the installation directory for the x11 performance compare scripts 11645 x11perfcompdir=$datadir/X11/x11perfcomp 11646 11647 11648 # Checks for programs run by the scripts we install 11649 # Extract the first word of "mktemp", so it can be a program name with args. 11650 set dummy mktemp; ac_word=$2 11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11652 printf %s "checking for $ac_word... " >&6; } 11653 if test ${ac_cv_path_MKTEMP+y} 11654 then : 11655 printf %s "(cached) " >&6 11656 else case e in #( 11657 e) case $MKTEMP in 11658 [\\/]* | ?:[\\/]*) 11659 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 11660 ;; 11661 *) 11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11663 for as_dir in $PATH 11664 do 11665 IFS=$as_save_IFS 11666 case $as_dir in #((( 11667 '') as_dir=./ ;; 11668 */) ;; 11669 *) as_dir=$as_dir/ ;; 11670 esac 11671 for ac_exec_ext in '' $ac_executable_extensions; do 11672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11673 ac_cv_path_MKTEMP="$as_dir$ac_word$ac_exec_ext" 11674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11675 break 2 11676 fi 11677 done 11678 done 11679 IFS=$as_save_IFS 11680 11681 ;; 11682 esac ;; 11683 esac 11684 fi 11685 MKTEMP=$ac_cv_path_MKTEMP 11686 if test -n "$MKTEMP"; then 11687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 11688 printf "%s\n" "$MKTEMP" >&6; } 11689 else 11690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11691 printf "%s\n" "no" >&6; } 11692 fi 11693 11694 11695 11696 # Checks for pkg-config packages 11697 11698 pkg_failed=no 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5 11700 printf %s "checking for X11PERF... " >&6; } 11701 11702 if test -n "$X11PERF_CFLAGS"; then 11703 pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS" 11704 elif test -n "$PKG_CONFIG"; then 11705 if test -n "$PKG_CONFIG" && \ 11706 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.25\""; } >&5 11707 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.25") 2>&5 11708 ac_status=$? 11709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11710 test $ac_status = 0; }; then 11711 pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.25" 2>/dev/null` 11712 test "x$?" != "x0" && pkg_failed=yes 11713 else 11714 pkg_failed=yes 11715 fi 11716 else 11717 pkg_failed=untried 11718 fi 11719 if test -n "$X11PERF_LIBS"; then 11720 pkg_cv_X11PERF_LIBS="$X11PERF_LIBS" 11721 elif test -n "$PKG_CONFIG"; then 11722 if test -n "$PKG_CONFIG" && \ 11723 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.25\""; } >&5 11724 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.25") 2>&5 11725 ac_status=$? 11726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11727 test $ac_status = 0; }; then 11728 pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.25" 2>/dev/null` 11729 test "x$?" != "x0" && pkg_failed=yes 11730 else 11731 pkg_failed=yes 11732 fi 11733 else 11734 pkg_failed=untried 11735 fi 11736 11737 11738 11739 if test $pkg_failed = yes; then 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11741 printf "%s\n" "no" >&6; } 11742 11743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11744 _pkg_short_errors_supported=yes 11745 else 11746 _pkg_short_errors_supported=no 11747 fi 11748 if test $_pkg_short_errors_supported = yes; then 11749 X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.25" 2>&1` 11750 else 11751 X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.25" 2>&1` 11752 fi 11753 # Put the nasty error message in config.log where it belongs 11754 echo "$X11PERF_PKG_ERRORS" >&5 11755 11756 as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.25) were not met: 11757 11758 $X11PERF_PKG_ERRORS 11759 11760 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11761 installed software in a non-standard prefix. 11762 11763 Alternatively, you may set the environment variables X11PERF_CFLAGS 11764 and X11PERF_LIBS to avoid the need to call pkg-config. 11765 See the pkg-config man page for more details." "$LINENO" 5 11766 elif test $pkg_failed = untried; then 11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11768 printf "%s\n" "no" >&6; } 11769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11770 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11771 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11772 is in your PATH or set the PKG_CONFIG environment variable to the full 11773 path to pkg-config. 11774 11775 Alternatively, you may set the environment variables X11PERF_CFLAGS 11776 and X11PERF_LIBS to avoid the need to call pkg-config. 11777 See the pkg-config man page for more details. 11778 11779 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11780 See 'config.log' for more details" "$LINENO" 5; } 11781 else 11782 X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS 11783 X11PERF_LIBS=$pkg_cv_X11PERF_LIBS 11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11785 printf "%s\n" "yes" >&6; } 11786 11787 fi 11788 11789 # Check for Xrender library 11790 11791 pkg_failed=no 11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5 11793 printf %s "checking for XRENDER... " >&6; } 11794 11795 if test -n "$XRENDER_CFLAGS"; then 11796 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 11797 elif test -n "$PKG_CONFIG"; then 11798 if test -n "$PKG_CONFIG" && \ 11799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11800 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11801 ac_status=$? 11802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11803 test $ac_status = 0; }; then 11804 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null` 11805 test "x$?" != "x0" && pkg_failed=yes 11806 else 11807 pkg_failed=yes 11808 fi 11809 else 11810 pkg_failed=untried 11811 fi 11812 if test -n "$XRENDER_LIBS"; then 11813 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 11814 elif test -n "$PKG_CONFIG"; then 11815 if test -n "$PKG_CONFIG" && \ 11816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11817 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11818 ac_status=$? 11819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11820 test $ac_status = 0; }; then 11821 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null` 11822 test "x$?" != "x0" && pkg_failed=yes 11823 else 11824 pkg_failed=yes 11825 fi 11826 else 11827 pkg_failed=untried 11828 fi 11829 11830 11831 11832 if test $pkg_failed = yes; then 11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11834 printf "%s\n" "no" >&6; } 11835 11836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11837 _pkg_short_errors_supported=yes 11838 else 11839 _pkg_short_errors_supported=no 11840 fi 11841 if test $_pkg_short_errors_supported = yes; then 11842 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender" 2>&1` 11843 else 11844 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender" 2>&1` 11845 fi 11846 # Put the nasty error message in config.log where it belongs 11847 echo "$XRENDER_PKG_ERRORS" >&5 11848 11849 xrender_found=no 11850 elif test $pkg_failed = untried; then 11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11852 printf "%s\n" "no" >&6; } 11853 xrender_found=no 11854 else 11855 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 11856 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11858 printf "%s\n" "yes" >&6; } 11859 xrender_found=yes 11860 fi 11861 case "$xrender_found" in 11862 yes) 11863 11864 printf "%s\n" "#define XRENDER 1" >>confdefs.h 11865 11866 ;; 11867 esac 11868 11869 # Check for Xft library 11870 11871 pkg_failed=no 11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 11873 printf %s "checking for XFT... " >&6; } 11874 11875 if test -n "$XFT_CFLAGS"; then 11876 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 11877 elif test -n "$PKG_CONFIG"; then 11878 if test -n "$PKG_CONFIG" && \ 11879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft fontconfig\""; } >&5 11880 ($PKG_CONFIG --exists --print-errors "xft fontconfig") 2>&5 11881 ac_status=$? 11882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11883 test $ac_status = 0; }; then 11884 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft fontconfig" 2>/dev/null` 11885 test "x$?" != "x0" && pkg_failed=yes 11886 else 11887 pkg_failed=yes 11888 fi 11889 else 11890 pkg_failed=untried 11891 fi 11892 if test -n "$XFT_LIBS"; then 11893 pkg_cv_XFT_LIBS="$XFT_LIBS" 11894 elif test -n "$PKG_CONFIG"; then 11895 if test -n "$PKG_CONFIG" && \ 11896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft fontconfig\""; } >&5 11897 ($PKG_CONFIG --exists --print-errors "xft fontconfig") 2>&5 11898 ac_status=$? 11899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11900 test $ac_status = 0; }; then 11901 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft fontconfig" 2>/dev/null` 11902 test "x$?" != "x0" && pkg_failed=yes 11903 else 11904 pkg_failed=yes 11905 fi 11906 else 11907 pkg_failed=untried 11908 fi 11909 11910 11911 11912 if test $pkg_failed = yes; then 11913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11914 printf "%s\n" "no" >&6; } 11915 11916 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11917 _pkg_short_errors_supported=yes 11918 else 11919 _pkg_short_errors_supported=no 11920 fi 11921 if test $_pkg_short_errors_supported = yes; then 11922 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft fontconfig" 2>&1` 11923 else 11924 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft fontconfig" 2>&1` 11925 fi 11926 # Put the nasty error message in config.log where it belongs 11927 echo "$XFT_PKG_ERRORS" >&5 11928 11929 xft_found=no 11930 elif test $pkg_failed = untried; then 11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11932 printf "%s\n" "no" >&6; } 11933 xft_found=no 11934 else 11935 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 11936 XFT_LIBS=$pkg_cv_XFT_LIBS 11937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11938 printf "%s\n" "yes" >&6; } 11939 xft_found=yes 11940 fi 11941 case "$xft_found" in 11942 yes) 11943 11944 printf "%s\n" "#define XFT 1" >>confdefs.h 11945 11946 ;; 11947 esac 11948 11949 # Check for MIT-SHM extension 11950 11951 pkg_failed=no 11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 11953 printf %s "checking for XEXT... " >&6; } 11954 11955 if test -n "$XEXT_CFLAGS"; then 11956 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 11957 elif test -n "$PKG_CONFIG"; then 11958 if test -n "$PKG_CONFIG" && \ 11959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11960 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11961 ac_status=$? 11962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11963 test $ac_status = 0; }; then 11964 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 11965 test "x$?" != "x0" && pkg_failed=yes 11966 else 11967 pkg_failed=yes 11968 fi 11969 else 11970 pkg_failed=untried 11971 fi 11972 if test -n "$XEXT_LIBS"; then 11973 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 11974 elif test -n "$PKG_CONFIG"; then 11975 if test -n "$PKG_CONFIG" && \ 11976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 11977 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 11978 ac_status=$? 11979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11980 test $ac_status = 0; }; then 11981 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 11982 test "x$?" != "x0" && pkg_failed=yes 11983 else 11984 pkg_failed=yes 11985 fi 11986 else 11987 pkg_failed=untried 11988 fi 11989 11990 11991 11992 if test $pkg_failed = yes; then 11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11994 printf "%s\n" "no" >&6; } 11995 11996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11997 _pkg_short_errors_supported=yes 11998 else 11999 _pkg_short_errors_supported=no 12000 fi 12001 if test $_pkg_short_errors_supported = yes; then 12002 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1` 12003 else 12004 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1` 12005 fi 12006 # Put the nasty error message in config.log where it belongs 12007 echo "$XEXT_PKG_ERRORS" >&5 12008 12009 xext_found=no 12010 elif test $pkg_failed = untried; then 12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12012 printf "%s\n" "no" >&6; } 12013 xext_found=no 12014 else 12015 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 12016 XEXT_LIBS=$pkg_cv_XEXT_LIBS 12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12018 printf "%s\n" "yes" >&6; } 12019 xext_found=yes 12020 fi 12021 case "$xext_found" in 12022 yes) 12023 save_LIBS="$LIBS" 12024 LIBS="$XEXT_LIBS $LIBS" 12025 12026 for ac_func in XShmQueryExtension 12027 do : 12028 ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension" 12029 if test "x$ac_cv_func_XShmQueryExtension" = xyes 12030 then : 12031 printf "%s\n" "#define HAVE_XSHMQUERYEXTENSION 1" >>confdefs.h 12032 12033 printf "%s\n" "#define MITSHM 1" >>confdefs.h 12034 12035 fi 12036 12037 done 12038 LIBS="$save_LIBS" 12039 ;; 12040 esac 12041 12042 # Substitute config variables in man pages 12043 ac_config_files="$ac_config_files man/x11perf.1:man/x11perf.man" 12044 12045 ac_config_files="$ac_config_files man/x11perfcomp.1:man/x11perfcomp.man" 12046 12047 ac_config_files="$ac_config_files man/Xmark.1:man/Xmark.man" 12048 12049 12050 ac_config_files="$ac_config_files Makefile man/Makefile" 12051 12052 cat >confcache <<\_ACEOF 12053 # This file is a shell script that caches the results of configure 12054 # tests run on this system so they can be shared between configure 12055 # scripts and configure runs, see configure's option --config-cache. 12056 # It is not useful on other systems. If it contains results you don't 12057 # want to keep, you may remove or edit it. 12058 # 12059 # config.status only pays attention to the cache file if you give it 12060 # the --recheck option to rerun configure. 12061 # 12062 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 12063 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 12064 # following values. 12065 12066 _ACEOF 12067 12068 # The following way of writing the cache mishandles newlines in values, 12069 # but we know of no workaround that is simple, portable, and efficient. 12070 # So, we kill variables containing newlines. 12071 # Ultrix sh set writes to stderr and can't be redirected directly, 12072 # and sets the high bit in the cache file unless we assign to the vars. 12073 ( 12074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12075 eval ac_val=\$$ac_var 12076 case $ac_val in #( 12077 *${as_nl}*) 12078 case $ac_var in #( 12079 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12080 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12081 esac 12082 case $ac_var in #( 12083 _ | IFS | as_nl) ;; #( 12084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12085 *) { eval $ac_var=; unset $ac_var;} ;; 12086 esac ;; 12087 esac 12088 done 12089 12090 (set) 2>&1 | 12091 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12092 *${as_nl}ac_space=\ *) 12093 # 'set' does not quote correctly, so add quotes: double-quote 12094 # substitution turns \\\\ into \\, and sed turns \\ into \. 12095 sed -n \ 12096 "s/'/'\\\\''/g; 12097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12098 ;; #( 12099 *) 12100 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12102 ;; 12103 esac | 12104 sort 12105 ) | 12106 sed ' 12107 /^ac_cv_env_/b end 12108 t clear 12109 :clear 12110 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12111 t end 12112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12113 :end' >>confcache 12114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12115 if test -w "$cache_file"; then 12116 if test "x$cache_file" != "x/dev/null"; then 12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12118 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12119 if test ! -f "$cache_file" || test -h "$cache_file"; then 12120 cat confcache >"$cache_file" 12121 else 12122 case $cache_file in #( 12123 */* | ?:*) 12124 mv -f confcache "$cache_file"$$ && 12125 mv -f "$cache_file"$$ "$cache_file" ;; #( 12126 *) 12127 mv -f confcache "$cache_file" ;; 12128 esac 12129 fi 12130 fi 12131 else 12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12133 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12134 fi 12135 fi 12136 rm -f confcache 12137 12138 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12139 # Let make expand exec_prefix. 12140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12141 12142 DEFS=-DHAVE_CONFIG_H 12143 12144 ac_libobjs= 12145 ac_ltlibobjs= 12146 U= 12147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12148 # 1. Remove the extension, and $U if already installed. 12149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12150 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12152 # will be set to the directory where LIBOBJS objects are built. 12153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12155 done 12156 LIBOBJS=$ac_libobjs 12157 12158 LTLIBOBJS=$ac_ltlibobjs 12159 12160 12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12162 printf %s "checking that generated files are newer than configure... " >&6; } 12163 if test -n "$am_sleep_pid"; then 12164 # Hide warnings about reused PIDs. 12165 wait $am_sleep_pid 2>/dev/null 12166 fi 12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12168 printf "%s\n" "done" >&6; } 12169 case $enable_silent_rules in # ((( 12170 yes) AM_DEFAULT_VERBOSITY=0;; 12171 no) AM_DEFAULT_VERBOSITY=1;; 12172 esac 12173 if test $am_cv_make_support_nested_variables = yes; then 12174 AM_V='$(V)' 12175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12176 else 12177 AM_V=$AM_DEFAULT_VERBOSITY 12178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12179 fi 12180 12181 if test -n "$EXEEXT"; then 12182 am__EXEEXT_TRUE= 12183 am__EXEEXT_FALSE='#' 12184 else 12185 am__EXEEXT_TRUE='#' 12186 am__EXEEXT_FALSE= 12187 fi 12188 12189 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12190 as_fn_error $? "conditional \"AMDEP\" was never defined. 12191 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12192 fi 12193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12194 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12195 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12196 fi 12197 12198 : "${CONFIG_STATUS=./config.status}" 12199 ac_write_fail=0 12200 ac_clean_files_save=$ac_clean_files 12201 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12203 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12204 as_write_fail=0 12205 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12206 #! $SHELL 12207 # Generated by $as_me. 12208 # Run this file to recreate the current configuration. 12209 # Compiler output produced by configure, useful for debugging 12210 # configure, is in config.log if it exists. 12211 12212 debug=false 12213 ac_cs_recheck=false 12214 ac_cs_silent=false 12215 12216 SHELL=\${CONFIG_SHELL-$SHELL} 12217 export SHELL 12218 _ASEOF 12219 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12220 ## -------------------- ## 12221 ## M4sh Initialization. ## 12222 ## -------------------- ## 12223 12224 # Be more Bourne compatible 12225 DUALCASE=1; export DUALCASE # for MKS sh 12226 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12227 then : 12228 emulate sh 12229 NULLCMD=: 12230 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12231 # is contrary to our usage. Disable this feature. 12232 alias -g '${1+"$@"}'='"$@"' 12233 setopt NO_GLOB_SUBST 12234 else case e in #( 12235 e) case `(set -o) 2>/dev/null` in #( 12236 *posix*) : 12237 set -o posix ;; #( 12238 *) : 12239 ;; 12240 esac ;; 12241 esac 12242 fi 12243 12244 12245 12246 # Reset variables that may have inherited troublesome values from 12247 # the environment. 12248 12249 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12250 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12251 # side effect of setting IFS to empty, thus disabling word splitting.) 12252 # Quoting is to prevent editors from complaining about space-tab. 12253 as_nl=' 12254 ' 12255 export as_nl 12256 IFS=" "" $as_nl" 12257 12258 PS1='$ ' 12259 PS2='> ' 12260 PS4='+ ' 12261 12262 # Ensure predictable behavior from utilities with locale-dependent output. 12263 LC_ALL=C 12264 export LC_ALL 12265 LANGUAGE=C 12266 export LANGUAGE 12267 12268 # We cannot yet rely on "unset" to work, but we need these variables 12269 # to be unset--not just set to an empty or harmless value--now, to 12270 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12271 # also avoids known problems related to "unset" and subshell syntax 12272 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12273 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12274 do eval test \${$as_var+y} \ 12275 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12276 done 12277 12278 # Ensure that fds 0, 1, and 2 are open. 12279 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12280 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12281 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12282 12283 # The user is always right. 12284 if ${PATH_SEPARATOR+false} :; then 12285 PATH_SEPARATOR=: 12286 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12287 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12288 PATH_SEPARATOR=';' 12289 } 12290 fi 12291 12292 12293 # Find who we are. Look in the path if we contain no directory separator. 12294 as_myself= 12295 case $0 in #(( 12296 *[\\/]* ) as_myself=$0 ;; 12297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12298 for as_dir in $PATH 12299 do 12300 IFS=$as_save_IFS 12301 case $as_dir in #((( 12302 '') as_dir=./ ;; 12303 */) ;; 12304 *) as_dir=$as_dir/ ;; 12305 esac 12306 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12307 done 12308 IFS=$as_save_IFS 12309 12310 ;; 12311 esac 12312 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12313 # in which case we are not to be found in the path. 12314 if test "x$as_myself" = x; then 12315 as_myself=$0 12316 fi 12317 if test ! -f "$as_myself"; then 12318 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12319 exit 1 12320 fi 12321 12322 12323 12324 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12325 # ---------------------------------------- 12326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12328 # script with STATUS, using 1 if that was 0. 12329 as_fn_error () 12330 { 12331 as_status=$1; test $as_status -eq 0 && as_status=1 12332 if test "$4"; then 12333 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12335 fi 12336 printf "%s\n" "$as_me: error: $2" >&2 12337 as_fn_exit $as_status 12338 } # as_fn_error 12339 12340 12341 # as_fn_set_status STATUS 12342 # ----------------------- 12343 # Set $? to STATUS, without forking. 12344 as_fn_set_status () 12345 { 12346 return $1 12347 } # as_fn_set_status 12348 12349 # as_fn_exit STATUS 12350 # ----------------- 12351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12352 as_fn_exit () 12353 { 12354 set +e 12355 as_fn_set_status $1 12356 exit $1 12357 } # as_fn_exit 12358 12359 # as_fn_unset VAR 12360 # --------------- 12361 # Portably unset VAR. 12362 as_fn_unset () 12363 { 12364 { eval $1=; unset $1;} 12365 } 12366 as_unset=as_fn_unset 12367 12368 # as_fn_append VAR VALUE 12369 # ---------------------- 12370 # Append the text in VALUE to the end of the definition contained in VAR. Take 12371 # advantage of any shell optimizations that allow amortized linear growth over 12372 # repeated appends, instead of the typical quadratic growth present in naive 12373 # implementations. 12374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12375 then : 12376 eval 'as_fn_append () 12377 { 12378 eval $1+=\$2 12379 }' 12380 else case e in #( 12381 e) as_fn_append () 12382 { 12383 eval $1=\$$1\$2 12384 } ;; 12385 esac 12386 fi # as_fn_append 12387 12388 # as_fn_arith ARG... 12389 # ------------------ 12390 # Perform arithmetic evaluation on the ARGs, and store the result in the 12391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12392 # must be portable across $(()) and expr. 12393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12394 then : 12395 eval 'as_fn_arith () 12396 { 12397 as_val=$(( $* )) 12398 }' 12399 else case e in #( 12400 e) as_fn_arith () 12401 { 12402 as_val=`expr "$@" || test $? -eq 1` 12403 } ;; 12404 esac 12405 fi # as_fn_arith 12406 12407 12408 if expr a : '\(a\)' >/dev/null 2>&1 && 12409 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12410 as_expr=expr 12411 else 12412 as_expr=false 12413 fi 12414 12415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12416 as_basename=basename 12417 else 12418 as_basename=false 12419 fi 12420 12421 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12422 as_dirname=dirname 12423 else 12424 as_dirname=false 12425 fi 12426 12427 as_me=`$as_basename -- "$0" || 12428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12429 X"$0" : 'X\(//\)$' \| \ 12430 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12431 printf "%s\n" X/"$0" | 12432 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12433 s//\1/ 12434 q 12435 } 12436 /^X\/\(\/\/\)$/{ 12437 s//\1/ 12438 q 12439 } 12440 /^X\/\(\/\).*/{ 12441 s//\1/ 12442 q 12443 } 12444 s/.*/./; q'` 12445 12446 # Avoid depending upon Character Ranges. 12447 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12450 as_cr_digits='0123456789' 12451 as_cr_alnum=$as_cr_Letters$as_cr_digits 12452 12453 12454 # Determine whether it's possible to make 'echo' print without a newline. 12455 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12456 # for compatibility with existing Makefiles. 12457 ECHO_C= ECHO_N= ECHO_T= 12458 case `echo -n x` in #((((( 12459 -n*) 12460 case `echo 'xy\c'` in 12461 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12462 xy) ECHO_C='\c';; 12463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12464 ECHO_T=' ';; 12465 esac;; 12466 *) 12467 ECHO_N='-n';; 12468 esac 12469 12470 # For backward compatibility with old third-party macros, we provide 12471 # the shell variables $as_echo and $as_echo_n. New code should use 12472 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12473 as_echo='printf %s\n' 12474 as_echo_n='printf %s' 12475 12476 rm -f conf$$ conf$$.exe conf$$.file 12477 if test -d conf$$.dir; then 12478 rm -f conf$$.dir/conf$$.file 12479 else 12480 rm -f conf$$.dir 12481 mkdir conf$$.dir 2>/dev/null 12482 fi 12483 if (echo >conf$$.file) 2>/dev/null; then 12484 if ln -s conf$$.file conf$$ 2>/dev/null; then 12485 as_ln_s='ln -s' 12486 # ... but there are two gotchas: 12487 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12488 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12489 # In both cases, we have to default to 'cp -pR'. 12490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12491 as_ln_s='cp -pR' 12492 elif ln conf$$.file conf$$ 2>/dev/null; then 12493 as_ln_s=ln 12494 else 12495 as_ln_s='cp -pR' 12496 fi 12497 else 12498 as_ln_s='cp -pR' 12499 fi 12500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12501 rmdir conf$$.dir 2>/dev/null 12502 12503 12504 # as_fn_mkdir_p 12505 # ------------- 12506 # Create "$as_dir" as a directory, including parents if necessary. 12507 as_fn_mkdir_p () 12508 { 12509 12510 case $as_dir in #( 12511 -*) as_dir=./$as_dir;; 12512 esac 12513 test -d "$as_dir" || eval $as_mkdir_p || { 12514 as_dirs= 12515 while :; do 12516 case $as_dir in #( 12517 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12518 *) as_qdir=$as_dir;; 12519 esac 12520 as_dirs="'$as_qdir' $as_dirs" 12521 as_dir=`$as_dirname -- "$as_dir" || 12522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12523 X"$as_dir" : 'X\(//\)[^/]' \| \ 12524 X"$as_dir" : 'X\(//\)$' \| \ 12525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12526 printf "%s\n" X"$as_dir" | 12527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12528 s//\1/ 12529 q 12530 } 12531 /^X\(\/\/\)[^/].*/{ 12532 s//\1/ 12533 q 12534 } 12535 /^X\(\/\/\)$/{ 12536 s//\1/ 12537 q 12538 } 12539 /^X\(\/\).*/{ 12540 s//\1/ 12541 q 12542 } 12543 s/.*/./; q'` 12544 test -d "$as_dir" && break 12545 done 12546 test -z "$as_dirs" || eval "mkdir $as_dirs" 12547 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12548 12549 12550 } # as_fn_mkdir_p 12551 if mkdir -p . 2>/dev/null; then 12552 as_mkdir_p='mkdir -p "$as_dir"' 12553 else 12554 test -d ./-p && rmdir ./-p 12555 as_mkdir_p=false 12556 fi 12557 12558 12559 # as_fn_executable_p FILE 12560 # ----------------------- 12561 # Test if FILE is an executable regular file. 12562 as_fn_executable_p () 12563 { 12564 test -f "$1" && test -x "$1" 12565 } # as_fn_executable_p 12566 as_test_x='test -x' 12567 as_executable_p=as_fn_executable_p 12568 12569 # Sed expression to map a string onto a valid CPP name. 12570 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12571 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12572 12573 # Sed expression to map a string onto a valid variable name. 12574 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12575 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12576 12577 12578 exec 6>&1 12579 ## ----------------------------------- ## 12580 ## Main body of $CONFIG_STATUS script. ## 12581 ## ----------------------------------- ## 12582 _ASEOF 12583 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12584 12585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12586 # Save the log message, to keep $0 and so on meaningful, and to 12587 # report actual input values of CONFIG_FILES etc. instead of their 12588 # values after options handling. 12589 ac_log=" 12590 This file was extended by x11perf $as_me 1.7.0, which was 12591 generated by GNU Autoconf 2.72. Invocation command line was 12592 12593 CONFIG_FILES = $CONFIG_FILES 12594 CONFIG_HEADERS = $CONFIG_HEADERS 12595 CONFIG_LINKS = $CONFIG_LINKS 12596 CONFIG_COMMANDS = $CONFIG_COMMANDS 12597 $ $0 $@ 12598 12599 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12600 " 12601 12602 _ACEOF 12603 12604 case $ac_config_files in *" 12605 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12606 esac 12607 12608 case $ac_config_headers in *" 12609 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12610 esac 12611 12612 12613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12614 # Files that config.status was made for. 12615 config_files="$ac_config_files" 12616 config_headers="$ac_config_headers" 12617 config_commands="$ac_config_commands" 12618 12619 _ACEOF 12620 12621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12622 ac_cs_usage="\ 12623 '$as_me' instantiates files and other configuration actions 12624 from templates according to the current configuration. Unless the files 12625 and actions are specified as TAGs, all are instantiated by default. 12626 12627 Usage: $0 [OPTION]... [TAG]... 12628 12629 -h, --help print this help, then exit 12630 -V, --version print version number and configuration settings, then exit 12631 --config print configuration, then exit 12632 -q, --quiet, --silent 12633 do not print progress messages 12634 -d, --debug don't remove temporary files 12635 --recheck update $as_me by reconfiguring in the same conditions 12636 --file=FILE[:TEMPLATE] 12637 instantiate the configuration file FILE 12638 --header=FILE[:TEMPLATE] 12639 instantiate the configuration header FILE 12640 12641 Configuration files: 12642 $config_files 12643 12644 Configuration headers: 12645 $config_headers 12646 12647 Configuration commands: 12648 $config_commands 12649 12650 Report bugs to <https://gitlab.freedesktop.org/xorg/test/x11perf/-/issues>." 12651 12652 _ACEOF 12653 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12654 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12656 ac_cs_config='$ac_cs_config_escaped' 12657 ac_cs_version="\\ 12658 x11perf config.status 1.7.0 12659 configured by $0, generated by GNU Autoconf 2.72, 12660 with options \\"\$ac_cs_config\\" 12661 12662 Copyright (C) 2023 Free Software Foundation, Inc. 12663 This config.status script is free software; the Free Software Foundation 12664 gives unlimited permission to copy, distribute and modify it." 12665 12666 ac_pwd='$ac_pwd' 12667 srcdir='$srcdir' 12668 INSTALL='$INSTALL' 12669 MKDIR_P='$MKDIR_P' 12670 AWK='$AWK' 12671 test -n "\$AWK" || AWK=awk 12672 _ACEOF 12673 12674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12675 # The default lists apply if the user does not specify any file. 12676 ac_need_defaults=: 12677 while test $# != 0 12678 do 12679 case $1 in 12680 --*=?*) 12681 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12682 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12683 ac_shift=: 12684 ;; 12685 --*=) 12686 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12687 ac_optarg= 12688 ac_shift=: 12689 ;; 12690 *) 12691 ac_option=$1 12692 ac_optarg=$2 12693 ac_shift=shift 12694 ;; 12695 esac 12696 12697 case $ac_option in 12698 # Handling of the options. 12699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12700 ac_cs_recheck=: ;; 12701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12702 printf "%s\n" "$ac_cs_version"; exit ;; 12703 --config | --confi | --conf | --con | --co | --c ) 12704 printf "%s\n" "$ac_cs_config"; exit ;; 12705 --debug | --debu | --deb | --de | --d | -d ) 12706 debug=: ;; 12707 --file | --fil | --fi | --f ) 12708 $ac_shift 12709 case $ac_optarg in 12710 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12711 '') as_fn_error $? "missing file argument" ;; 12712 esac 12713 as_fn_append CONFIG_FILES " '$ac_optarg'" 12714 ac_need_defaults=false;; 12715 --header | --heade | --head | --hea ) 12716 $ac_shift 12717 case $ac_optarg in 12718 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12719 esac 12720 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12721 ac_need_defaults=false;; 12722 --he | --h) 12723 # Conflict between --help and --header 12724 as_fn_error $? "ambiguous option: '$1' 12725 Try '$0 --help' for more information.";; 12726 --help | --hel | -h ) 12727 printf "%s\n" "$ac_cs_usage"; exit ;; 12728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12729 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12730 ac_cs_silent=: ;; 12731 12732 # This is an error. 12733 -*) as_fn_error $? "unrecognized option: '$1' 12734 Try '$0 --help' for more information." ;; 12735 12736 *) as_fn_append ac_config_targets " $1" 12737 ac_need_defaults=false ;; 12738 12739 esac 12740 shift 12741 done 12742 12743 ac_configure_extra_args= 12744 12745 if $ac_cs_silent; then 12746 exec 6>/dev/null 12747 ac_configure_extra_args="$ac_configure_extra_args --silent" 12748 fi 12749 12750 _ACEOF 12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12752 if \$ac_cs_recheck; then 12753 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12754 shift 12755 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12756 CONFIG_SHELL='$SHELL' 12757 export CONFIG_SHELL 12758 exec "\$@" 12759 fi 12760 12761 _ACEOF 12762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12763 exec 5>>config.log 12764 { 12765 echo 12766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12767 ## Running $as_me. ## 12768 _ASBOX 12769 printf "%s\n" "$ac_log" 12770 } >&5 12771 12772 _ACEOF 12773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12774 # 12775 # INIT-COMMANDS 12776 # 12777 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12778 12779 _ACEOF 12780 12781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12782 12783 # Handling of arguments. 12784 for ac_config_target in $ac_config_targets 12785 do 12786 case $ac_config_target in 12787 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12788 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12789 "man/x11perf.1") CONFIG_FILES="$CONFIG_FILES man/x11perf.1:man/x11perf.man" ;; 12790 "man/x11perfcomp.1") CONFIG_FILES="$CONFIG_FILES man/x11perfcomp.1:man/x11perfcomp.man" ;; 12791 "man/Xmark.1") CONFIG_FILES="$CONFIG_FILES man/Xmark.1:man/Xmark.man" ;; 12792 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12793 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12794 12795 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12796 esac 12797 done 12798 12799 12800 # If the user did not use the arguments to specify the items to instantiate, 12801 # then the envvar interface is used. Set only those that are not. 12802 # We use the long form for the default assignment because of an extremely 12803 # bizarre bug on SunOS 4.1.3. 12804 if $ac_need_defaults; then 12805 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12806 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12807 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12808 fi 12809 12810 # Have a temporary directory for convenience. Make it in the build tree 12811 # simply because there is no reason against having it here, and in addition, 12812 # creating and moving files from /tmp can sometimes cause problems. 12813 # Hook for its removal unless debugging. 12814 # Note that there is a small window in which the directory will not be cleaned: 12815 # after its creation but before its name has been assigned to '$tmp'. 12816 $debug || 12817 { 12818 tmp= ac_tmp= 12819 trap 'exit_status=$? 12820 : "${ac_tmp:=$tmp}" 12821 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12822 ' 0 12823 trap 'as_fn_exit 1' 1 2 13 15 12824 } 12825 # Create a (secure) tmp directory for tmp files. 12826 12827 { 12828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12829 test -d "$tmp" 12830 } || 12831 { 12832 tmp=./conf$$-$RANDOM 12833 (umask 077 && mkdir "$tmp") 12834 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12835 ac_tmp=$tmp 12836 12837 # Set up the scripts for CONFIG_FILES section. 12838 # No need to generate them if there are no CONFIG_FILES. 12839 # This happens for instance with './config.status config.h'. 12840 if test -n "$CONFIG_FILES"; then 12841 12842 12843 ac_cr=`echo X | tr X '\015'` 12844 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12845 # But we know of no other shell where ac_cr would be empty at this 12846 # point, so we can use a bashism as a fallback. 12847 if test "x$ac_cr" = x; then 12848 eval ac_cr=\$\'\\r\' 12849 fi 12850 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12851 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12852 ac_cs_awk_cr='\\r' 12853 else 12854 ac_cs_awk_cr=$ac_cr 12855 fi 12856 12857 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12858 _ACEOF 12859 12860 12861 { 12862 echo "cat >conf$$subs.awk <<_ACEOF" && 12863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12864 echo "_ACEOF" 12865 } >conf$$subs.sh || 12866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12867 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12868 ac_delim='%!_!# ' 12869 for ac_last_try in false false false false false :; do 12870 . ./conf$$subs.sh || 12871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12872 12873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12874 if test $ac_delim_n = $ac_delim_num; then 12875 break 12876 elif $ac_last_try; then 12877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12878 else 12879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12880 fi 12881 done 12882 rm -f conf$$subs.sh 12883 12884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12885 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12886 _ACEOF 12887 sed -n ' 12888 h 12889 s/^/S["/; s/!.*/"]=/ 12890 p 12891 g 12892 s/^[^!]*!// 12893 :repl 12894 t repl 12895 s/'"$ac_delim"'$// 12896 t delim 12897 :nl 12898 h 12899 s/\(.\{148\}\)..*/\1/ 12900 t more1 12901 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12902 p 12903 n 12904 b repl 12905 :more1 12906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12907 p 12908 g 12909 s/.\{148\}// 12910 t nl 12911 :delim 12912 h 12913 s/\(.\{148\}\)..*/\1/ 12914 t more2 12915 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12916 p 12917 b 12918 :more2 12919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12920 p 12921 g 12922 s/.\{148\}// 12923 t delim 12924 ' <conf$$subs.awk | sed ' 12925 /^[^""]/{ 12926 N 12927 s/\n// 12928 } 12929 ' >>$CONFIG_STATUS || ac_write_fail=1 12930 rm -f conf$$subs.awk 12931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12932 _ACAWK 12933 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12934 for (key in S) S_is_set[key] = 1 12935 FS = "" 12936 12937 } 12938 { 12939 line = $ 0 12940 nfields = split(line, field, "@") 12941 substed = 0 12942 len = length(field[1]) 12943 for (i = 2; i < nfields; i++) { 12944 key = field[i] 12945 keylen = length(key) 12946 if (S_is_set[key]) { 12947 value = S[key] 12948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12949 len += length(value) + length(field[++i]) 12950 substed = 1 12951 } else 12952 len += 1 + keylen 12953 } 12954 12955 print line 12956 } 12957 12958 _ACAWK 12959 _ACEOF 12960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12961 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12963 else 12964 cat 12965 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12966 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12967 _ACEOF 12968 12969 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12970 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12971 # trailing colons and then remove the whole line if VPATH becomes empty 12972 # (actually we leave an empty line to preserve line numbers). 12973 if test "x$srcdir" = x.; then 12974 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12975 h 12976 s/// 12977 s/^/:/ 12978 s/[ ]*$/:/ 12979 s/:\$(srcdir):/:/g 12980 s/:\${srcdir}:/:/g 12981 s/:@srcdir@:/:/g 12982 s/^:*// 12983 s/:*$// 12984 x 12985 s/\(=[ ]*\).*/\1/ 12986 G 12987 s/\n// 12988 s/^[^=]*=[ ]*$// 12989 }' 12990 fi 12991 12992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12993 fi # test -n "$CONFIG_FILES" 12994 12995 # Set up the scripts for CONFIG_HEADERS section. 12996 # No need to generate them if there are no CONFIG_HEADERS. 12997 # This happens for instance with './config.status Makefile'. 12998 if test -n "$CONFIG_HEADERS"; then 12999 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13000 BEGIN { 13001 _ACEOF 13002 13003 # Transform confdefs.h into an awk script 'defines.awk', embedded as 13004 # here-document in config.status, that substitutes the proper values into 13005 # config.h.in to produce config.h. 13006 13007 # Create a delimiter string that does not exist in confdefs.h, to ease 13008 # handling of long lines. 13009 ac_delim='%!_!# ' 13010 for ac_last_try in false false :; do 13011 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13012 if test -z "$ac_tt"; then 13013 break 13014 elif $ac_last_try; then 13015 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13016 else 13017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13018 fi 13019 done 13020 13021 # For the awk script, D is an array of macro values keyed by name, 13022 # likewise P contains macro parameters if any. Preserve backslash 13023 # newline sequences. 13024 13025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13026 sed -n ' 13027 s/.\{148\}/&'"$ac_delim"'/g 13028 t rset 13029 :rset 13030 s/^[ ]*#[ ]*define[ ][ ]*/ / 13031 t def 13032 d 13033 :def 13034 s/\\$// 13035 t bsnl 13036 s/["\\]/\\&/g 13037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13038 D["\1"]=" \3"/p 13039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13040 d 13041 :bsnl 13042 s/["\\]/\\&/g 13043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13044 D["\1"]=" \3\\\\\\n"\\/p 13045 t cont 13046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13047 t cont 13048 d 13049 :cont 13050 n 13051 s/.\{148\}/&'"$ac_delim"'/g 13052 t clear 13053 :clear 13054 s/\\$// 13055 t bsnlc 13056 s/["\\]/\\&/g; s/^/"/; s/$/"/p 13057 d 13058 :bsnlc 13059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13060 b cont 13061 ' <confdefs.h | sed ' 13062 s/'"$ac_delim"'/"\\\ 13063 "/g' >>$CONFIG_STATUS || ac_write_fail=1 13064 13065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13066 for (key in D) D_is_set[key] = 1 13067 FS = "" 13068 } 13069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13070 line = \$ 0 13071 split(line, arg, " ") 13072 if (arg[1] == "#") { 13073 defundef = arg[2] 13074 mac1 = arg[3] 13075 } else { 13076 defundef = substr(arg[1], 2) 13077 mac1 = arg[2] 13078 } 13079 split(mac1, mac2, "(") #) 13080 macro = mac2[1] 13081 prefix = substr(line, 1, index(line, defundef) - 1) 13082 if (D_is_set[macro]) { 13083 # Preserve the white space surrounding the "#". 13084 print prefix "define", macro P[macro] D[macro] 13085 next 13086 } else { 13087 # Replace #undef with comments. This is necessary, for example, 13088 # in the case of _POSIX_SOURCE, which is predefined and required 13089 # on some systems where configure will not decide to define it. 13090 if (defundef == "undef") { 13091 print "/*", prefix defundef, macro, "*/" 13092 next 13093 } 13094 } 13095 } 13096 { print } 13097 _ACAWK 13098 _ACEOF 13099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13100 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13101 fi # test -n "$CONFIG_HEADERS" 13102 13103 13104 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13105 shift 13106 for ac_tag 13107 do 13108 case $ac_tag in 13109 :[FHLC]) ac_mode=$ac_tag; continue;; 13110 esac 13111 case $ac_mode$ac_tag in 13112 :[FHL]*:*);; 13113 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13114 :[FH]-) ac_tag=-:-;; 13115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13116 esac 13117 ac_save_IFS=$IFS 13118 IFS=: 13119 set x $ac_tag 13120 IFS=$ac_save_IFS 13121 shift 13122 ac_file=$1 13123 shift 13124 13125 case $ac_mode in 13126 :L) ac_source=$1;; 13127 :[FH]) 13128 ac_file_inputs= 13129 for ac_f 13130 do 13131 case $ac_f in 13132 -) ac_f="$ac_tmp/stdin";; 13133 *) # Look for the file first in the build tree, then in the source tree 13134 # (if the path is not absolute). The absolute path cannot be DOS-style, 13135 # because $ac_f cannot contain ':'. 13136 test -f "$ac_f" || 13137 case $ac_f in 13138 [\\/$]*) false;; 13139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13140 esac || 13141 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13142 esac 13143 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13144 as_fn_append ac_file_inputs " '$ac_f'" 13145 done 13146 13147 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13148 # use $as_me), people would be surprised to read: 13149 # /* config.h. Generated by config.status. */ 13150 configure_input='Generated from '` 13151 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13152 `' by configure.' 13153 if test x"$ac_file" != x-; then 13154 configure_input="$ac_file. $configure_input" 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13156 printf "%s\n" "$as_me: creating $ac_file" >&6;} 13157 fi 13158 # Neutralize special characters interpreted by sed in replacement strings. 13159 case $configure_input in #( 13160 *\&* | *\|* | *\\* ) 13161 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13162 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13163 *) ac_sed_conf_input=$configure_input;; 13164 esac 13165 13166 case $ac_tag in 13167 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13169 esac 13170 ;; 13171 esac 13172 13173 ac_dir=`$as_dirname -- "$ac_file" || 13174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13175 X"$ac_file" : 'X\(//\)[^/]' \| \ 13176 X"$ac_file" : 'X\(//\)$' \| \ 13177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13178 printf "%s\n" X"$ac_file" | 13179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13180 s//\1/ 13181 q 13182 } 13183 /^X\(\/\/\)[^/].*/{ 13184 s//\1/ 13185 q 13186 } 13187 /^X\(\/\/\)$/{ 13188 s//\1/ 13189 q 13190 } 13191 /^X\(\/\).*/{ 13192 s//\1/ 13193 q 13194 } 13195 s/.*/./; q'` 13196 as_dir="$ac_dir"; as_fn_mkdir_p 13197 ac_builddir=. 13198 13199 case "$ac_dir" in 13200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13201 *) 13202 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13203 # A ".." for each directory in $ac_dir_suffix. 13204 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13205 case $ac_top_builddir_sub in 13206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13208 esac ;; 13209 esac 13210 ac_abs_top_builddir=$ac_pwd 13211 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13212 # for backward compatibility: 13213 ac_top_builddir=$ac_top_build_prefix 13214 13215 case $srcdir in 13216 .) # We are building in place. 13217 ac_srcdir=. 13218 ac_top_srcdir=$ac_top_builddir_sub 13219 ac_abs_top_srcdir=$ac_pwd ;; 13220 [\\/]* | ?:[\\/]* ) # Absolute name. 13221 ac_srcdir=$srcdir$ac_dir_suffix; 13222 ac_top_srcdir=$srcdir 13223 ac_abs_top_srcdir=$srcdir ;; 13224 *) # Relative name. 13225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13226 ac_top_srcdir=$ac_top_build_prefix$srcdir 13227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13228 esac 13229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13230 13231 13232 case $ac_mode in 13233 :F) 13234 # 13235 # CONFIG_FILE 13236 # 13237 13238 case $INSTALL in 13239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13241 esac 13242 ac_MKDIR_P=$MKDIR_P 13243 case $MKDIR_P in 13244 [\\/$]* | ?:[\\/]* ) ;; 13245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13246 esac 13247 _ACEOF 13248 13249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13250 # If the template does not know about datarootdir, expand it. 13251 # FIXME: This hack should be removed a few years after 2.60. 13252 ac_datarootdir_hack=; ac_datarootdir_seen= 13253 ac_sed_dataroot=' 13254 /datarootdir/ { 13255 p 13256 q 13257 } 13258 /@datadir@/p 13259 /@docdir@/p 13260 /@infodir@/p 13261 /@localedir@/p 13262 /@mandir@/p' 13263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13264 *datarootdir*) ac_datarootdir_seen=yes;; 13265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13267 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13268 _ACEOF 13269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13270 ac_datarootdir_hack=' 13271 s&@datadir@&$datadir&g 13272 s&@docdir@&$docdir&g 13273 s&@infodir@&$infodir&g 13274 s&@localedir@&$localedir&g 13275 s&@mandir@&$mandir&g 13276 s&\\\${datarootdir}&$datarootdir&g' ;; 13277 esac 13278 _ACEOF 13279 13280 # Neutralize VPATH when '$srcdir' = '.'. 13281 # Shell code in configure.ac might set extrasub. 13282 # FIXME: do we really want to maintain this feature? 13283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13284 ac_sed_extra="$ac_vpsub 13285 $extrasub 13286 _ACEOF 13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13288 :t 13289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13290 s|@configure_input@|$ac_sed_conf_input|;t t 13291 s&@top_builddir@&$ac_top_builddir_sub&;t t 13292 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13293 s&@srcdir@&$ac_srcdir&;t t 13294 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13295 s&@top_srcdir@&$ac_top_srcdir&;t t 13296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13297 s&@builddir@&$ac_builddir&;t t 13298 s&@abs_builddir@&$ac_abs_builddir&;t t 13299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13300 s&@INSTALL@&$ac_INSTALL&;t t 13301 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13302 $ac_datarootdir_hack 13303 " 13304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13306 13307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13310 "$ac_tmp/out"`; test -z "$ac_out"; } && 13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13312 which seems to be undefined. Please make sure it is defined" >&5 13313 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13314 which seems to be undefined. Please make sure it is defined" >&2;} 13315 13316 rm -f "$ac_tmp/stdin" 13317 case $ac_file in 13318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13320 esac \ 13321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13322 ;; 13323 :H) 13324 # 13325 # CONFIG_HEADER 13326 # 13327 if test x"$ac_file" != x-; then 13328 { 13329 printf "%s\n" "/* $configure_input */" >&1 \ 13330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13331 } >"$ac_tmp/config.h" \ 13332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13333 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13335 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13336 else 13337 rm -f "$ac_file" 13338 mv "$ac_tmp/config.h" "$ac_file" \ 13339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13340 fi 13341 else 13342 printf "%s\n" "/* $configure_input */" >&1 \ 13343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13344 || as_fn_error $? "could not create -" "$LINENO" 5 13345 fi 13346 # Compute "$ac_file"'s index in $config_headers. 13347 _am_arg="$ac_file" 13348 _am_stamp_count=1 13349 for _am_header in $config_headers :; do 13350 case $_am_header in 13351 $_am_arg | $_am_arg:* ) 13352 break ;; 13353 * ) 13354 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13355 esac 13356 done 13357 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13358 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13359 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13360 X"$_am_arg" : 'X\(//\)$' \| \ 13361 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13362 printf "%s\n" X"$_am_arg" | 13363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13364 s//\1/ 13365 q 13366 } 13367 /^X\(\/\/\)[^/].*/{ 13368 s//\1/ 13369 q 13370 } 13371 /^X\(\/\/\)$/{ 13372 s//\1/ 13373 q 13374 } 13375 /^X\(\/\).*/{ 13376 s//\1/ 13377 q 13378 } 13379 s/.*/./; q'`/stamp-h$_am_stamp_count 13380 ;; 13381 13382 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13383 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13384 ;; 13385 esac 13386 13387 13388 case $ac_file$ac_mode in 13389 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13390 # Older Autoconf quotes --file arguments for eval, but not when files 13391 # are listed without --file. Let's play safe and only enable the eval 13392 # if we detect the quoting. 13393 # TODO: see whether this extra hack can be removed once we start 13394 # requiring Autoconf 2.70 or later. 13395 case $CONFIG_FILES in #( 13396 *\'*) : 13397 eval set x "$CONFIG_FILES" ;; #( 13398 *) : 13399 set x $CONFIG_FILES ;; #( 13400 *) : 13401 ;; 13402 esac 13403 shift 13404 # Used to flag and report bootstrapping failures. 13405 am_rc=0 13406 for am_mf 13407 do 13408 # Strip MF so we end up with the name of the file. 13409 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13410 # Check whether this is an Automake generated Makefile which includes 13411 # dependency-tracking related rules and includes. 13412 # Grep'ing the whole file directly is not great: AIX grep has a line 13413 # limit of 2048, but all sed's we know have understand at least 4000. 13414 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13415 || continue 13416 am_dirpart=`$as_dirname -- "$am_mf" || 13417 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13418 X"$am_mf" : 'X\(//\)[^/]' \| \ 13419 X"$am_mf" : 'X\(//\)$' \| \ 13420 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13421 printf "%s\n" X"$am_mf" | 13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13423 s//\1/ 13424 q 13425 } 13426 /^X\(\/\/\)[^/].*/{ 13427 s//\1/ 13428 q 13429 } 13430 /^X\(\/\/\)$/{ 13431 s//\1/ 13432 q 13433 } 13434 /^X\(\/\).*/{ 13435 s//\1/ 13436 q 13437 } 13438 s/.*/./; q'` 13439 am_filepart=`$as_basename -- "$am_mf" || 13440 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13441 X"$am_mf" : 'X\(//\)$' \| \ 13442 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13443 printf "%s\n" X/"$am_mf" | 13444 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13445 s//\1/ 13446 q 13447 } 13448 /^X\/\(\/\/\)$/{ 13449 s//\1/ 13450 q 13451 } 13452 /^X\/\(\/\).*/{ 13453 s//\1/ 13454 q 13455 } 13456 s/.*/./; q'` 13457 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13458 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13459 | $MAKE -f - am--depfiles" >&5 13460 (cd "$am_dirpart" \ 13461 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13462 | $MAKE -f - am--depfiles) >&5 2>&5 13463 ac_status=$? 13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13465 (exit $ac_status); } || am_rc=$? 13466 done 13467 if test $am_rc -ne 0; then 13468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13469 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13470 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13471 for automatic dependency tracking. If GNU make was not used, consider 13472 re-running the configure script with MAKE=\"gmake\" (or whatever is 13473 necessary). You can also try re-running configure with the 13474 '--disable-dependency-tracking' option to at least be able to build 13475 the package (albeit without support for automatic dependency tracking). 13476 See 'config.log' for more details" "$LINENO" 5; } 13477 fi 13478 { am_dirpart=; unset am_dirpart;} 13479 { am_filepart=; unset am_filepart;} 13480 { am_mf=; unset am_mf;} 13481 { am_rc=; unset am_rc;} 13482 rm -f conftest-deps.mk 13483 } 13484 ;; 13485 13486 esac 13487 done # for ac_tag 13488 13489 13490 as_fn_exit 0 13491 _ACEOF 13492 ac_clean_files=$ac_clean_files_save 13493 13494 test $ac_write_fail = 0 || 13495 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13496 13497 13498 # configure is writing to config.log, and then calls config.status. 13499 # config.status does its own redirection, appending to config.log. 13500 # Unfortunately, on DOS this fails, as config.log is still kept open 13501 # by configure, so config.status won't be able to write to it; its 13502 # output is simply discarded. So we exec the FD to /dev/null, 13503 # effectively closing config.log, so it can be properly (re)opened and 13504 # appended to by config.status. When coming back to configure, we 13505 # need to make the FD available again. 13506 if test "$no_create" != yes; then 13507 ac_cs_success=: 13508 ac_config_status_args= 13509 test "$silent" = yes && 13510 ac_config_status_args="$ac_config_status_args --quiet" 13511 exec 5>/dev/null 13512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13513 exec 5>>config.log 13514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13515 # would make configure fail if this is the last instruction. 13516 $ac_cs_success || as_fn_exit 1 13517 fi 13518 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13520 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13521 fi 13522 13523 13524