1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xprop 1.2.8. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/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/app/xprop/-/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='xprop' 607 PACKAGE_TARNAME='xprop' 608 PACKAGE_VERSION='1.2.8' 609 PACKAGE_STRING='xprop 1.2.8' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/-/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 LINT_FALSE 651 LINT_TRUE 652 LINT_FLAGS 653 LINT 654 XPROP_LIBS 655 XPROP_CFLAGS 656 MAN_SUBSTS 657 XORG_MAN_PAGE 658 ADMIN_MAN_DIR 659 DRIVER_MAN_DIR 660 MISC_MAN_DIR 661 FILE_MAN_DIR 662 LIB_MAN_DIR 663 APP_MAN_DIR 664 ADMIN_MAN_SUFFIX 665 DRIVER_MAN_SUFFIX 666 MISC_MAN_SUFFIX 667 FILE_MAN_SUFFIX 668 LIB_MAN_SUFFIX 669 APP_MAN_SUFFIX 670 SED 671 host_os 672 host_vendor 673 host_cpu 674 host 675 build_os 676 build_vendor 677 build_cpu 678 build 679 INSTALL_CMD 680 PKG_CONFIG_LIBDIR 681 PKG_CONFIG_PATH 682 PKG_CONFIG 683 CHANGELOG_CMD 684 STRICT_CFLAGS 685 CWARNFLAGS 686 BASE_CFLAGS 687 am__fastdepCC_FALSE 688 am__fastdepCC_TRUE 689 CCDEPMODE 690 am__nodep 691 AMDEPBACKSLASH 692 AMDEP_FALSE 693 AMDEP_TRUE 694 am__include 695 DEPDIR 696 OBJEXT 697 EXEEXT 698 ac_ct_CC 699 CPPFLAGS 700 LDFLAGS 701 CFLAGS 702 CC 703 am__xargs_n 704 am__rm_f_notfound 705 AM_BACKSLASH 706 AM_DEFAULT_VERBOSITY 707 AM_DEFAULT_V 708 AM_V 709 CSCOPE 710 ETAGS 711 CTAGS 712 am__untar 713 am__tar 714 AMTAR 715 am__leading_dot 716 SET_MAKE 717 AWK 718 mkdir_p 719 MKDIR_P 720 INSTALL_STRIP_PROGRAM 721 STRIP 722 install_sh 723 MAKEINFO 724 AUTOHEADER 725 AUTOMAKE 726 AUTOCONF 727 ACLOCAL 728 VERSION 729 PACKAGE 730 CYGPATH_W 731 am__isrc 732 INSTALL_DATA 733 INSTALL_SCRIPT 734 INSTALL_PROGRAM 735 target_alias 736 host_alias 737 build_alias 738 LIBS 739 ECHO_T 740 ECHO_N 741 ECHO_C 742 DEFS 743 mandir 744 localedir 745 libdir 746 psdir 747 pdfdir 748 dvidir 749 htmldir 750 infodir 751 docdir 752 oldincludedir 753 includedir 754 runstatedir 755 localstatedir 756 sharedstatedir 757 sysconfdir 758 datadir 759 datarootdir 760 libexecdir 761 sbindir 762 bindir 763 program_transform_name 764 prefix 765 exec_prefix 766 PACKAGE_URL 767 PACKAGE_BUGREPORT 768 PACKAGE_STRING 769 PACKAGE_VERSION 770 PACKAGE_TARNAME 771 PACKAGE_NAME 772 PATH_SEPARATOR 773 SHELL 774 am__quote' 775 ac_subst_files='' 776 ac_user_opts=' 777 enable_option_checking 778 enable_silent_rules 779 enable_dependency_tracking 780 enable_selective_werror 781 enable_strict_compilation 782 with_lint 783 ' 784 ac_precious_vars='build_alias 785 host_alias 786 target_alias 787 CC 788 CFLAGS 789 LDFLAGS 790 LIBS 791 CPPFLAGS 792 PKG_CONFIG 793 PKG_CONFIG_PATH 794 PKG_CONFIG_LIBDIR 795 XPROP_CFLAGS 796 XPROP_LIBS 797 LINT 798 LINT_FLAGS' 799 800 801 # Initialize some variables set by options. 802 ac_init_help= 803 ac_init_version=false 804 ac_unrecognized_opts= 805 ac_unrecognized_sep= 806 # The variables have the same names as the options, with 807 # dashes changed to underlines. 808 cache_file=/dev/null 809 exec_prefix=NONE 810 no_create= 811 no_recursion= 812 prefix=NONE 813 program_prefix=NONE 814 program_suffix=NONE 815 program_transform_name=s,x,x, 816 silent= 817 site= 818 srcdir= 819 verbose= 820 x_includes=NONE 821 x_libraries=NONE 822 823 # Installation directory options. 824 # These are left unexpanded so users can "make install exec_prefix=/foo" 825 # and all the variables that are supposed to be based on exec_prefix 826 # by default will actually change. 827 # Use braces instead of parens because sh, perl, etc. also accept them. 828 # (The list follows the same order as the GNU Coding Standards.) 829 bindir='${exec_prefix}/bin' 830 sbindir='${exec_prefix}/sbin' 831 libexecdir='${exec_prefix}/libexec' 832 datarootdir='${prefix}/share' 833 datadir='${datarootdir}' 834 sysconfdir='${prefix}/etc' 835 sharedstatedir='${prefix}/com' 836 localstatedir='${prefix}/var' 837 runstatedir='${localstatedir}/run' 838 includedir='${prefix}/include' 839 oldincludedir='/usr/include' 840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841 infodir='${datarootdir}/info' 842 htmldir='${docdir}' 843 dvidir='${docdir}' 844 pdfdir='${docdir}' 845 psdir='${docdir}' 846 libdir='${exec_prefix}/lib' 847 localedir='${datarootdir}/locale' 848 mandir='${datarootdir}/man' 849 850 ac_prev= 851 ac_dashdash= 852 for ac_option 853 do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: '$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912 "enable_$ac_useropt" 913 "*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938 "enable_$ac_useropt" 939 "*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151 "with_$ac_useropt" 1152 "*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: '$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167 "with_$ac_useropt" 1168 "*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: '$ac_option' 1193 Try '$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215 done 1216 1217 if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220 fi 1221 1222 if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228 fi 1229 1230 # Check all directory arguments for consistency. 1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235 do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249 done 1250 1251 # There might be people who depend on the old broken behavior: '$host' 1252 # used to hold the argument of --host etc. 1253 # FIXME: To remove some day. 1254 build=$build_alias 1255 host=$host_alias 1256 target=$target_alias 1257 1258 # FIXME: To remove some day. 1259 if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265 fi 1266 1267 ac_tool_prefix= 1268 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270 test "$silent" = yes && exec 6>/dev/null 1271 1272 1273 ac_pwd=`pwd` && test -n "$ac_pwd" && 1274 ac_ls_di=`ls -di .` && 1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281 # Find the source files, if location was not specified. 1282 if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290 printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312 else 1313 ac_srcdir_defaulted=no 1314 fi 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318 fi 1319 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1320 ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323 # When building in place, set srcdir=. 1324 if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326 fi 1327 # Remove unnecessary trailing slashes from srcdir. 1328 # Double slashes in file names in object file debugging info 1329 # mess up M-x gdb in Emacs. 1330 case $srcdir in 1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332 esac 1333 for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338 done 1339 1340 # 1341 # Report the --help message. 1342 # 1343 if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347 'configure' configures xprop 1.2.8 to adapt to many kinds of systems. 1348 1349 Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352 VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354 Defaults for the options are specified in brackets. 1355 1356 Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print 'checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for '--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1366 1367 Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373 By default, 'make install' will install all the files in 1374 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1375 an installation prefix other than '$ac_default_prefix' using '--prefix', 1376 for instance '--prefix=\$HOME'. 1377 1378 For better control, use the options below. 1379 1380 Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401 _ACEOF 1402 1403 cat <<\_ACEOF 1404 1405 Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410 System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413 _ACEOF 1414 fi 1415 1416 if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xprop 1.2.8:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422 Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439 Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-lint Use a lint-style source code checker (default: 1443 disabled) 1444 1445 Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 XPROP_CFLAGS 1459 C compiler flags for XPROP, overriding pkg-config 1460 XPROP_LIBS linker flags for XPROP, overriding pkg-config 1461 LINT Path to a lint-style command 1462 LINT_FLAGS Flags for the lint-style command 1463 1464 Use these variables to override the choices made by 'configure' or to help 1465 it to find libraries and programs with nonstandard names/locations. 1466 1467 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>. 1468 _ACEOF 1469 ac_status=$? 1470 fi 1471 1472 if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480 case "$ac_dir" in 1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) 1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490 esac 1491 ac_abs_top_builddir=$ac_pwd 1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493 # for backward compatibility: 1494 ac_top_builddir=$ac_top_build_prefix 1495 1496 case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509 esac 1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for configure.gnu first; this name is used for a wrapper for 1514 # Metaconfig's "Configure" on case-insensitive file systems. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526 fi 1527 1528 test -n "$ac_init_help" && exit $ac_status 1529 if $ac_init_version; then 1530 cat <<\_ACEOF 1531 xprop configure 1.2.8 1532 generated by GNU Autoconf 2.72 1533 1534 Copyright (C) 2023 Free Software Foundation, Inc. 1535 This configure script is free software; the Free Software Foundation 1536 gives unlimited permission to copy, distribute and modify it. 1537 _ACEOF 1538 exit 1539 fi 1540 1541 ## ------------------------ ## 1542 ## Autoconf initialization. ## 1543 ## ------------------------ ## 1544 1545 # ac_fn_c_try_compile LINENO 1546 # -------------------------- 1547 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1548 ac_fn_c_try_compile () 1549 { 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 rm -f conftest.$ac_objext conftest.beam 1552 if { { ac_try="$ac_compile" 1553 case "(($ac_try" in 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555 *) ac_try_echo=$ac_try;; 1556 esac 1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558 printf "%s\n" "$ac_try_echo"; } >&5 1559 (eval "$ac_compile") 2>conftest.err 1560 ac_status=$? 1561 if test -s conftest.err; then 1562 grep -v '^ *+' conftest.err >conftest.er1 1563 cat conftest.er1 >&5 1564 mv -f conftest.er1 conftest.err 1565 fi 1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1567 test $ac_status = 0; } && { 1568 test -z "$ac_c_werror_flag" || 1569 test ! -s conftest.err 1570 } && test -s conftest.$ac_objext 1571 then : 1572 ac_retval=0 1573 else case e in #( 1574 e) printf "%s\n" "$as_me: failed program was:" >&5 1575 sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 ;; 1578 esac 1579 fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583 } # ac_fn_c_try_compile 1584 1585 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1586 # ------------------------------------------------------------------ 1587 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1588 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1589 ac_fn_check_decl () 1590 { 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 as_decl_name=`echo $2|sed 's/ *(.*//'` 1593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1594 printf %s "checking whether $as_decl_name is declared... " >&6; } 1595 if eval test \${$3+y} 1596 then : 1597 printf %s "(cached) " >&6 1598 else case e in #( 1599 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1600 eval ac_save_FLAGS=\$$6 1601 as_fn_append $6 " $5" 1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1603 /* end confdefs.h. */ 1604 $4 1605 int 1606 main (void) 1607 { 1608 #ifndef $as_decl_name 1609 #ifdef __cplusplus 1610 (void) $as_decl_use; 1611 #else 1612 (void) $as_decl_name; 1613 #endif 1614 #endif 1615 1616 ; 1617 return 0; 1618 } 1619 _ACEOF 1620 if ac_fn_c_try_compile "$LINENO" 1621 then : 1622 eval "$3=yes" 1623 else case e in #( 1624 e) eval "$3=no" ;; 1625 esac 1626 fi 1627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1628 eval $6=\$ac_save_FLAGS 1629 ;; 1630 esac 1631 fi 1632 eval ac_res=\$$3 1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634 printf "%s\n" "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637 } # ac_fn_check_decl 1638 1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1640 # ------------------------------------------------------- 1641 # Tests whether HEADER exists and can be compiled using the include files in 1642 # INCLUDES, setting the cache variable VAR accordingly. 1643 ac_fn_c_check_header_compile () 1644 { 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1647 printf %s "checking for $2... " >&6; } 1648 if eval test \${$3+y} 1649 then : 1650 printf %s "(cached) " >&6 1651 else case e in #( 1652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653 /* end confdefs.h. */ 1654 $4 1655 #include <$2> 1656 _ACEOF 1657 if ac_fn_c_try_compile "$LINENO" 1658 then : 1659 eval "$3=yes" 1660 else case e in #( 1661 e) eval "$3=no" ;; 1662 esac 1663 fi 1664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1665 esac 1666 fi 1667 eval ac_res=\$$3 1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669 printf "%s\n" "$ac_res" >&6; } 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 1672 } # ac_fn_c_check_header_compile 1673 1674 # ac_fn_c_try_link LINENO 1675 # ----------------------- 1676 # Try to link conftest.$ac_ext, and return whether this succeeded. 1677 ac_fn_c_try_link () 1678 { 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1681 if { { ac_try="$ac_link" 1682 case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685 esac 1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687 printf "%s\n" "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest$ac_exeext && { 1700 test "$cross_compiling" = yes || 1701 test -x conftest$ac_exeext 1702 } 1703 then : 1704 ac_retval=0 1705 else case e in #( 1706 e) printf "%s\n" "$as_me: failed program was:" >&5 1707 sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 ;; 1710 esac 1711 fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720 } # ac_fn_c_try_link 1721 ac_configure_args_raw= 1722 for ac_arg 1723 do 1724 case $ac_arg in 1725 *\'*) 1726 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1727 esac 1728 as_fn_append ac_configure_args_raw " '$ac_arg'" 1729 done 1730 1731 case $ac_configure_args_raw in 1732 *$as_nl*) 1733 ac_safe_unquote= ;; 1734 *) 1735 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1736 ac_unsafe_a="$ac_unsafe_z#~" 1737 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1738 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1739 esac 1740 1741 cat >config.log <<_ACEOF 1742 This file contains any messages produced by compilers while 1743 running configure, to aid debugging if configure makes a mistake. 1744 1745 It was created by xprop $as_me 1.2.8, which was 1746 generated by GNU Autoconf 2.72. Invocation command line was 1747 1748 $ $0$ac_configure_args_raw 1749 1750 _ACEOF 1751 exec 5>>config.log 1752 { 1753 cat <<_ASUNAME 1754 ## --------- ## 1755 ## Platform. ## 1756 ## --------- ## 1757 1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775 _ASUNAME 1776 1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778 for as_dir in $PATH 1779 do 1780 IFS=$as_save_IFS 1781 case $as_dir in #((( 1782 '') as_dir=./ ;; 1783 */) ;; 1784 *) as_dir=$as_dir/ ;; 1785 esac 1786 printf "%s\n" "PATH: $as_dir" 1787 done 1788 IFS=$as_save_IFS 1789 1790 } >&5 1791 1792 cat >&5 <<_ACEOF 1793 1794 1795 ## ----------- ## 1796 ## Core tests. ## 1797 ## ----------- ## 1798 1799 _ACEOF 1800 1801 1802 # Keep a trace of the command line. 1803 # Strip out --no-create and --no-recursion so they do not pile up. 1804 # Strip out --silent because we don't want to record it for future runs. 1805 # Also quote any args containing shell meta-characters. 1806 # Make two passes to allow for proper duplicate-argument suppression. 1807 ac_configure_args= 1808 ac_configure_args0= 1809 ac_configure_args1= 1810 ac_must_keep_next=false 1811 for ac_pass in 1 2 1812 do 1813 for ac_arg 1814 do 1815 case $ac_arg in 1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1818 | -silent | --silent | --silen | --sile | --sil) 1819 continue ;; 1820 *\'*) 1821 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1822 esac 1823 case $ac_pass in 1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1825 2) 1826 as_fn_append ac_configure_args1 " '$ac_arg'" 1827 if test $ac_must_keep_next = true; then 1828 ac_must_keep_next=false # Got value, back to normal. 1829 else 1830 case $ac_arg in 1831 *=* | --config-cache | -C | -disable-* | --disable-* \ 1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1834 | -with-* | --with-* | -without-* | --without-* | --x) 1835 case "$ac_configure_args0 " in 1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1837 esac 1838 ;; 1839 -* ) ac_must_keep_next=true ;; 1840 esac 1841 fi 1842 as_fn_append ac_configure_args " '$ac_arg'" 1843 ;; 1844 esac 1845 done 1846 done 1847 { ac_configure_args0=; unset ac_configure_args0;} 1848 { ac_configure_args1=; unset ac_configure_args1;} 1849 1850 # When interrupted or exit'd, cleanup temporary files, and complete 1851 # config.log. We remove comments because anyway the quotes in there 1852 # would cause problems or look ugly. 1853 # WARNING: Use '\'' to represent an apostrophe within the trap. 1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1855 trap 'exit_status=$? 1856 # Sanitize IFS. 1857 IFS=" "" $as_nl" 1858 # Save into config.log some information that might help in debugging. 1859 { 1860 echo 1861 1862 printf "%s\n" "## ---------------- ## 1863 ## Cache variables. ## 1864 ## ---------------- ##" 1865 echo 1866 # The following way of writing the cache mishandles newlines in values, 1867 ( 1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in #( 1871 *${as_nl}*) 1872 case $ac_var in #( 1873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1874 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1875 esac 1876 case $ac_var in #( 1877 _ | IFS | as_nl) ;; #( 1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1879 *) { eval $ac_var=; unset $ac_var;} ;; 1880 esac ;; 1881 esac 1882 done 1883 (set) 2>&1 | 1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1885 *${as_nl}ac_space=\ *) 1886 sed -n \ 1887 "s/'\''/'\''\\\\'\'''\''/g; 1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1889 ;; #( 1890 *) 1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1892 ;; 1893 esac | 1894 sort 1895 ) 1896 echo 1897 1898 printf "%s\n" "## ----------------- ## 1899 ## Output variables. ## 1900 ## ----------------- ##" 1901 echo 1902 for ac_var in $ac_subst_vars 1903 do 1904 eval ac_val=\$$ac_var 1905 case $ac_val in 1906 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907 esac 1908 printf "%s\n" "$ac_var='\''$ac_val'\''" 1909 done | sort 1910 echo 1911 1912 if test -n "$ac_subst_files"; then 1913 printf "%s\n" "## ------------------- ## 1914 ## File substitutions. ## 1915 ## ------------------- ##" 1916 echo 1917 for ac_var in $ac_subst_files 1918 do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in 1921 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1922 esac 1923 printf "%s\n" "$ac_var='\''$ac_val'\''" 1924 done | sort 1925 echo 1926 fi 1927 1928 if test -s confdefs.h; then 1929 printf "%s\n" "## ----------- ## 1930 ## confdefs.h. ## 1931 ## ----------- ##" 1932 echo 1933 cat confdefs.h 1934 echo 1935 fi 1936 test "$ac_signal" != 0 && 1937 printf "%s\n" "$as_me: caught signal $ac_signal" 1938 printf "%s\n" "$as_me: exit $exit_status" 1939 } >&5 1940 rm -f core *.core core.conftest.* && 1941 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1942 exit $exit_status 1943 ' 0 1944 for ac_signal in 1 2 13 15; do 1945 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1946 done 1947 ac_signal=0 1948 1949 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1950 rm -f -r conftest* confdefs.h 1951 1952 printf "%s\n" "/* confdefs.h */" > confdefs.h 1953 1954 # Predefined preprocessor variables. 1955 1956 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1957 1958 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1959 1960 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1961 1962 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1963 1964 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1965 1966 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1967 1968 1969 # Let the site file select an alternate cache file if it wants to. 1970 # Prefer an explicitly selected file to automatically selected ones. 1971 if test -n "$CONFIG_SITE"; then 1972 ac_site_files="$CONFIG_SITE" 1973 elif test "x$prefix" != xNONE; then 1974 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1975 else 1976 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1977 fi 1978 1979 for ac_site_file in $ac_site_files 1980 do 1981 case $ac_site_file in #( 1982 */*) : 1983 ;; #( 1984 *) : 1985 ac_site_file=./$ac_site_file ;; 1986 esac 1987 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1989 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1990 sed 's/^/| /' "$ac_site_file" >&5 1991 . "$ac_site_file" \ 1992 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1993 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1994 as_fn_error $? "failed to load site script $ac_site_file 1995 See 'config.log' for more details" "$LINENO" 5; } 1996 fi 1997 done 1998 1999 if test -r "$cache_file"; then 2000 # Some versions of bash will fail to source /dev/null (special files 2001 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2004 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2005 case $cache_file in 2006 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2007 *) . "./$cache_file";; 2008 esac 2009 fi 2010 else 2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2012 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2013 >$cache_file 2014 fi 2015 2016 # Test code for whether the C compiler supports C89 (global declarations) 2017 ac_c_conftest_c89_globals=' 2018 /* Does the compiler advertise C89 conformance? 2019 Do not test the value of __STDC__, because some compilers set it to 0 2020 while being otherwise adequately conformant. */ 2021 #if !defined __STDC__ 2022 # error "Compiler does not advertise C89 conformance" 2023 #endif 2024 2025 #include <stddef.h> 2026 #include <stdarg.h> 2027 struct stat; 2028 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2029 struct buf { int x; }; 2030 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2031 static char *e (char **p, int i) 2032 { 2033 return p[i]; 2034 } 2035 static char *f (char * (*g) (char **, int), char **p, ...) 2036 { 2037 char *s; 2038 va_list v; 2039 va_start (v,p); 2040 s = g (p, va_arg (v,int)); 2041 va_end (v); 2042 return s; 2043 } 2044 2045 /* C89 style stringification. */ 2046 #define noexpand_stringify(a) #a 2047 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2048 2049 /* C89 style token pasting. Exercises some of the corner cases that 2050 e.g. old MSVC gets wrong, but not very hard. */ 2051 #define noexpand_concat(a,b) a##b 2052 #define expand_concat(a,b) noexpand_concat(a,b) 2053 extern int vA; 2054 extern int vbee; 2055 #define aye A 2056 #define bee B 2057 int *pvA = &expand_concat(v,aye); 2058 int *pvbee = &noexpand_concat(v,bee); 2059 2060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2061 function prototypes and stuff, but not \xHH hex character constants. 2062 These do not provoke an error unfortunately, instead are silently treated 2063 as an "x". The following induces an error, until -std is added to get 2064 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2065 array size at least. It is necessary to write \x00 == 0 to get something 2066 that is true only with -std. */ 2067 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2068 2069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2070 inside strings and character constants. */ 2071 #define FOO(x) '\''x'\'' 2072 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2073 2074 int test (int i, double x); 2075 struct s1 {int (*f) (int a);}; 2076 struct s2 {int (*f) (double a);}; 2077 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2078 int, int);' 2079 2080 # Test code for whether the C compiler supports C89 (body of main). 2081 ac_c_conftest_c89_main=' 2082 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2083 ' 2084 2085 # Test code for whether the C compiler supports C99 (global declarations) 2086 ac_c_conftest_c99_globals=' 2087 /* Does the compiler advertise C99 conformance? */ 2088 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2089 # error "Compiler does not advertise C99 conformance" 2090 #endif 2091 2092 // See if C++-style comments work. 2093 2094 #include <stdbool.h> 2095 extern int puts (const char *); 2096 extern int printf (const char *, ...); 2097 extern int dprintf (int, const char *, ...); 2098 extern void *malloc (size_t); 2099 extern void free (void *); 2100 2101 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2102 // dprintf is used instead of fprintf to avoid needing to declare 2103 // FILE and stderr. 2104 #define debug(...) dprintf (2, __VA_ARGS__) 2105 #define showlist(...) puts (#__VA_ARGS__) 2106 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2107 static void 2108 test_varargs_macros (void) 2109 { 2110 int x = 1234; 2111 int y = 5678; 2112 debug ("Flag"); 2113 debug ("X = %d\n", x); 2114 showlist (The first, second, and third items.); 2115 report (x>y, "x is %d but y is %d", x, y); 2116 } 2117 2118 // Check long long types. 2119 #define BIG64 18446744073709551615ull 2120 #define BIG32 4294967295ul 2121 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2122 #if !BIG_OK 2123 #error "your preprocessor is broken" 2124 #endif 2125 #if BIG_OK 2126 #else 2127 #error "your preprocessor is broken" 2128 #endif 2129 static long long int bignum = -9223372036854775807LL; 2130 static unsigned long long int ubignum = BIG64; 2131 2132 struct incomplete_array 2133 { 2134 int datasize; 2135 double data[]; 2136 }; 2137 2138 struct named_init { 2139 int number; 2140 const wchar_t *name; 2141 double average; 2142 }; 2143 2144 typedef const char *ccp; 2145 2146 static inline int 2147 test_restrict (ccp restrict text) 2148 { 2149 // Iterate through items via the restricted pointer. 2150 // Also check for declarations in for loops. 2151 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2152 continue; 2153 return 0; 2154 } 2155 2156 // Check varargs and va_copy. 2157 static bool 2158 test_varargs (const char *format, ...) 2159 { 2160 va_list args; 2161 va_start (args, format); 2162 va_list args_copy; 2163 va_copy (args_copy, args); 2164 2165 const char *str = ""; 2166 int number = 0; 2167 float fnumber = 0; 2168 2169 while (*format) 2170 { 2171 switch (*format++) 2172 { 2173 case '\''s'\'': // string 2174 str = va_arg (args_copy, const char *); 2175 break; 2176 case '\''d'\'': // int 2177 number = va_arg (args_copy, int); 2178 break; 2179 case '\''f'\'': // float 2180 fnumber = va_arg (args_copy, double); 2181 break; 2182 default: 2183 break; 2184 } 2185 } 2186 va_end (args_copy); 2187 va_end (args); 2188 2189 return *str && number && fnumber; 2190 } 2191 ' 2192 2193 # Test code for whether the C compiler supports C99 (body of main). 2194 ac_c_conftest_c99_main=' 2195 // Check bool. 2196 _Bool success = false; 2197 success |= (argc != 0); 2198 2199 // Check restrict. 2200 if (test_restrict ("String literal") == 0) 2201 success = true; 2202 char *restrict newvar = "Another string"; 2203 2204 // Check varargs. 2205 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2206 test_varargs_macros (); 2207 2208 // Check flexible array members. 2209 struct incomplete_array *ia = 2210 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2211 ia->datasize = 10; 2212 for (int i = 0; i < ia->datasize; ++i) 2213 ia->data[i] = i * 1.234; 2214 // Work around memory leak warnings. 2215 free (ia); 2216 2217 // Check named initializers. 2218 struct named_init ni = { 2219 .number = 34, 2220 .name = L"Test wide string", 2221 .average = 543.34343, 2222 }; 2223 2224 ni.number = 58; 2225 2226 int dynamic_array[ni.number]; 2227 dynamic_array[0] = argv[0][0]; 2228 dynamic_array[ni.number - 1] = 543; 2229 2230 // work around unused variable warnings 2231 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2232 || dynamic_array[ni.number - 1] != 543); 2233 ' 2234 2235 # Test code for whether the C compiler supports C11 (global declarations) 2236 ac_c_conftest_c11_globals=' 2237 /* Does the compiler advertise C11 conformance? */ 2238 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2239 # error "Compiler does not advertise C11 conformance" 2240 #endif 2241 2242 // Check _Alignas. 2243 char _Alignas (double) aligned_as_double; 2244 char _Alignas (0) no_special_alignment; 2245 extern char aligned_as_int; 2246 char _Alignas (0) _Alignas (int) aligned_as_int; 2247 2248 // Check _Alignof. 2249 enum 2250 { 2251 int_alignment = _Alignof (int), 2252 int_array_alignment = _Alignof (int[100]), 2253 char_alignment = _Alignof (char) 2254 }; 2255 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2256 2257 // Check _Noreturn. 2258 int _Noreturn does_not_return (void) { for (;;) continue; } 2259 2260 // Check _Static_assert. 2261 struct test_static_assert 2262 { 2263 int x; 2264 _Static_assert (sizeof (int) <= sizeof (long int), 2265 "_Static_assert does not work in struct"); 2266 long int y; 2267 }; 2268 2269 // Check UTF-8 literals. 2270 #define u8 syntax error! 2271 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2272 2273 // Check duplicate typedefs. 2274 typedef long *long_ptr; 2275 typedef long int *long_ptr; 2276 typedef long_ptr long_ptr; 2277 2278 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2279 struct anonymous 2280 { 2281 union { 2282 struct { int i; int j; }; 2283 struct { int k; long int l; } w; 2284 }; 2285 int m; 2286 } v1; 2287 ' 2288 2289 # Test code for whether the C compiler supports C11 (body of main). 2290 ac_c_conftest_c11_main=' 2291 _Static_assert ((offsetof (struct anonymous, i) 2292 == offsetof (struct anonymous, w.k)), 2293 "Anonymous union alignment botch"); 2294 v1.i = 2; 2295 v1.w.k = 5; 2296 ok |= v1.i != 5; 2297 ' 2298 2299 # Test code for whether the C compiler supports C11 (complete). 2300 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2301 ${ac_c_conftest_c99_globals} 2302 ${ac_c_conftest_c11_globals} 2303 2304 int 2305 main (int argc, char **argv) 2306 { 2307 int ok = 0; 2308 ${ac_c_conftest_c89_main} 2309 ${ac_c_conftest_c99_main} 2310 ${ac_c_conftest_c11_main} 2311 return ok; 2312 } 2313 " 2314 2315 # Test code for whether the C compiler supports C99 (complete). 2316 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2317 ${ac_c_conftest_c99_globals} 2318 2319 int 2320 main (int argc, char **argv) 2321 { 2322 int ok = 0; 2323 ${ac_c_conftest_c89_main} 2324 ${ac_c_conftest_c99_main} 2325 return ok; 2326 } 2327 " 2328 2329 # Test code for whether the C compiler supports C89 (complete). 2330 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2331 2332 int 2333 main (int argc, char **argv) 2334 { 2335 int ok = 0; 2336 ${ac_c_conftest_c89_main} 2337 return ok; 2338 } 2339 " 2340 2341 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2342 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2343 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2344 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2345 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2346 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2347 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2348 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2349 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2350 2351 # Auxiliary files required by this configure script. 2352 ac_aux_files="config.guess config.sub compile missing install-sh" 2353 2354 # Locations in which to look for auxiliary files. 2355 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2356 2357 # Search for a directory containing all of the required auxiliary files, 2358 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2359 # If we don't find one directory that contains all the files we need, 2360 # we report the set of missing files from the *first* directory in 2361 # $ac_aux_dir_candidates and give up. 2362 ac_missing_aux_files="" 2363 ac_first_candidate=: 2364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2366 as_found=false 2367 for as_dir in $ac_aux_dir_candidates 2368 do 2369 IFS=$as_save_IFS 2370 case $as_dir in #((( 2371 '') as_dir=./ ;; 2372 */) ;; 2373 *) as_dir=$as_dir/ ;; 2374 esac 2375 as_found=: 2376 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2378 ac_aux_dir_found=yes 2379 ac_install_sh= 2380 for ac_aux in $ac_aux_files 2381 do 2382 # As a special case, if "install-sh" is required, that requirement 2383 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2384 # and $ac_install_sh is set appropriately for whichever one is found. 2385 if test x"$ac_aux" = x"install-sh" 2386 then 2387 if test -f "${as_dir}install-sh"; then 2388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2389 ac_install_sh="${as_dir}install-sh -c" 2390 elif test -f "${as_dir}install.sh"; then 2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2392 ac_install_sh="${as_dir}install.sh -c" 2393 elif test -f "${as_dir}shtool"; then 2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2395 ac_install_sh="${as_dir}shtool install -c" 2396 else 2397 ac_aux_dir_found=no 2398 if $ac_first_candidate; then 2399 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2400 else 2401 break 2402 fi 2403 fi 2404 else 2405 if test -f "${as_dir}${ac_aux}"; then 2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2407 else 2408 ac_aux_dir_found=no 2409 if $ac_first_candidate; then 2410 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2411 else 2412 break 2413 fi 2414 fi 2415 fi 2416 done 2417 if test "$ac_aux_dir_found" = yes; then 2418 ac_aux_dir="$as_dir" 2419 break 2420 fi 2421 ac_first_candidate=false 2422 2423 as_found=false 2424 done 2425 IFS=$as_save_IFS 2426 if $as_found 2427 then : 2428 2429 else case e in #( 2430 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2431 esac 2432 fi 2433 2434 2435 # These three variables are undocumented and unsupported, 2436 # and are intended to be withdrawn in a future Autoconf release. 2437 # They can cause serious problems if a builder's source tree is in a directory 2438 # whose full name contains unusual characters. 2439 if test -f "${ac_aux_dir}config.guess"; then 2440 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2441 fi 2442 if test -f "${ac_aux_dir}config.sub"; then 2443 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2444 fi 2445 if test -f "$ac_aux_dir/configure"; then 2446 ac_configure="$SHELL ${ac_aux_dir}configure" 2447 fi 2448 2449 # Check that the precious variables saved in the cache have kept the same 2450 # value. 2451 ac_cache_corrupted=false 2452 for ac_var in $ac_precious_vars; do 2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2454 eval ac_new_set=\$ac_env_${ac_var}_set 2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2456 eval ac_new_val=\$ac_env_${ac_var}_value 2457 case $ac_old_set,$ac_new_set in 2458 set,) 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2460 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,set) 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2464 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2465 ac_cache_corrupted=: ;; 2466 ,);; 2467 *) 2468 if test "x$ac_old_val" != "x$ac_new_val"; then 2469 # differences in whitespace do not lead to failure. 2470 ac_old_val_w=`echo x $ac_old_val` 2471 ac_new_val_w=`echo x $ac_new_val` 2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2474 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2475 ac_cache_corrupted=: 2476 else 2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2478 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2479 eval $ac_var=\$ac_old_val 2480 fi 2481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2482 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2484 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2485 fi;; 2486 esac 2487 # Pass precious variables to config.status. 2488 if test "$ac_new_set" = set; then 2489 case $ac_new_val in 2490 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2491 *) ac_arg=$ac_var=$ac_new_val ;; 2492 esac 2493 case " $ac_configure_args " in 2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2496 esac 2497 fi 2498 done 2499 if $ac_cache_corrupted; then 2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2501 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2503 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2504 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2505 and start over" "$LINENO" 5 2506 fi 2507 ## -------------------- ## 2508 ## Main body of script. ## 2509 ## -------------------- ## 2510 2511 ac_ext=c 2512 ac_cpp='$CPP $CPPFLAGS' 2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2516 2517 2518 2519 ac_config_headers="$ac_config_headers config.h" 2520 2521 2522 # Initialize Automake 2523 am__api_version='1.17' 2524 2525 2526 2527 # Find a good install program. We prefer a C program (faster), 2528 # so one script is as good as another. But avoid the broken or 2529 # incompatible versions: 2530 # SysV /etc/install, /usr/sbin/install 2531 # SunOS /usr/etc/install 2532 # IRIX /sbin/install 2533 # AIX /bin/install 2534 # AmigaOS /C/install, which installs bootblocks on floppy discs 2535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2538 # OS/2's system install, which has a completely different semantic 2539 # ./install, which can be erroneously created by make from ./install.sh. 2540 # Reject install programs that cannot install multiple files. 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2542 printf %s "checking for a BSD-compatible install... " >&6; } 2543 if test -z "$INSTALL"; then 2544 if test ${ac_cv_path_install+y} 2545 then : 2546 printf %s "(cached) " >&6 2547 else case e in #( 2548 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549 for as_dir in $PATH 2550 do 2551 IFS=$as_save_IFS 2552 case $as_dir in #((( 2553 '') as_dir=./ ;; 2554 */) ;; 2555 *) as_dir=$as_dir/ ;; 2556 esac 2557 # Account for fact that we put trailing slashes in our PATH walk. 2558 case $as_dir in #(( 2559 ./ | /[cC]/* | \ 2560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2562 /usr/ucb/* ) ;; 2563 *) 2564 # OSF1 and SCO ODT 3.0 have their own names for install. 2565 # Don't use installbsd from OSF since it installs stuff as root 2566 # by default. 2567 for ac_prog in ginstall scoinst install; do 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2570 if test $ac_prog = install && 2571 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2572 # AIX install. It has an incompatible calling convention. 2573 : 2574 elif test $ac_prog = install && 2575 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2576 # program-specific install script used by HP pwplus--don't use. 2577 : 2578 else 2579 rm -rf conftest.one conftest.two conftest.dir 2580 echo one > conftest.one 2581 echo two > conftest.two 2582 mkdir conftest.dir 2583 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2584 test -s conftest.one && test -s conftest.two && 2585 test -s conftest.dir/conftest.one && 2586 test -s conftest.dir/conftest.two 2587 then 2588 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2589 break 3 2590 fi 2591 fi 2592 fi 2593 done 2594 done 2595 ;; 2596 esac 2597 2598 done 2599 IFS=$as_save_IFS 2600 2601 rm -rf conftest.one conftest.two conftest.dir 2602 ;; 2603 esac 2604 fi 2605 if test ${ac_cv_path_install+y}; then 2606 INSTALL=$ac_cv_path_install 2607 else 2608 # As a last resort, use the slow shell script. Don't cache a 2609 # value for INSTALL within a source directory, because that will 2610 # break other packages using the cache if that directory is 2611 # removed, or if the value is a relative name. 2612 INSTALL=$ac_install_sh 2613 fi 2614 fi 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2616 printf "%s\n" "$INSTALL" >&6; } 2617 2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2619 # It thinks the first close brace ends the variable substitution. 2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2621 2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2623 2624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2625 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2627 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2628 if test ${am_cv_sleep_fractional_seconds+y} 2629 then : 2630 printf %s "(cached) " >&6 2631 else case e in #( 2632 e) if sleep 0.001 2>/dev/null 2633 then : 2634 am_cv_sleep_fractional_seconds=yes 2635 else case e in #( 2636 e) am_cv_sleep_fractional_seconds=no ;; 2637 esac 2638 fi 2639 ;; 2640 esac 2641 fi 2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2643 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2644 2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2646 printf %s "checking filesystem timestamp resolution... " >&6; } 2647 if test ${am_cv_filesystem_timestamp_resolution+y} 2648 then : 2649 printf %s "(cached) " >&6 2650 else case e in #( 2651 e) # Default to the worst case. 2652 am_cv_filesystem_timestamp_resolution=2 2653 2654 # Only try to go finer than 1 sec if sleep can do it. 2655 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2656 # - 1 sec is not much of a win compared to 2 sec, and 2657 # - it takes 2 seconds to perform the test whether 1 sec works. 2658 # 2659 # Instead, just use the default 2s on platforms that have 1s resolution, 2660 # accept the extra 1s delay when using $sleep in the Automake tests, in 2661 # exchange for not incurring the 2s delay for running the test for all 2662 # packages. 2663 # 2664 am_try_resolutions= 2665 if test "$am_cv_sleep_fractional_seconds" = yes; then 2666 # Even a millisecond often causes a bunch of false positives, 2667 # so just try a hundredth of a second. The time saved between .001 and 2668 # .01 is not terribly consequential. 2669 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2670 fi 2671 2672 # In order to catch current-generation FAT out, we must *modify* files 2673 # that already exist; the *creation* timestamp is finer. Use names 2674 # that make ls -t sort them differently when they have equal 2675 # timestamps than when they have distinct timestamps, keeping 2676 # in mind that ls -t prints the *newest* file first. 2677 rm -f conftest.ts? 2678 : > conftest.ts1 2679 : > conftest.ts2 2680 : > conftest.ts3 2681 2682 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2683 # clobber the current shell's arguments. (Outer-level square brackets 2684 # are removed by m4; they're present so that m4 does not expand 2685 # <dollar><star>; be careful, easy to get confused.) 2686 if ( 2687 set X `ls -t conftest.ts[12]` && 2688 { 2689 test "$*" != "X conftest.ts1 conftest.ts2" || 2690 test "$*" != "X conftest.ts2 conftest.ts1"; 2691 } 2692 ); then :; else 2693 # If neither matched, then we have a broken ls. This can happen 2694 # if, for instance, CONFIG_SHELL is bash and it inherits a 2695 # broken ls alias from the environment. This has actually 2696 # happened. Such a system could not be considered "sane". 2697 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2699 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2700 as_fn_error $? "ls -t produces unexpected output. 2701 Make sure there is not a broken ls alias in your environment. 2702 See 'config.log' for more details" "$LINENO" 5; } 2703 fi 2704 2705 for am_try_res in $am_try_resolutions; do 2706 # Any one fine-grained sleep might happen to cross the boundary 2707 # between two values of a coarser actual resolution, but if we do 2708 # two fine-grained sleeps in a row, at least one of them will fall 2709 # entirely within a coarse interval. 2710 echo alpha > conftest.ts1 2711 sleep $am_try_res 2712 echo beta > conftest.ts2 2713 sleep $am_try_res 2714 echo gamma > conftest.ts3 2715 2716 # We assume that 'ls -t' will make use of high-resolution 2717 # timestamps if the operating system supports them at all. 2718 if (set X `ls -t conftest.ts?` && 2719 test "$2" = conftest.ts3 && 2720 test "$3" = conftest.ts2 && 2721 test "$4" = conftest.ts1); then 2722 # 2723 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2724 # because we don't need to test make. 2725 make_ok=true 2726 if test $am_try_res != 1; then 2727 # But if we've succeeded so far with a subsecond resolution, we 2728 # have one more thing to check: make. It can happen that 2729 # everything else supports the subsecond mtimes, but make doesn't; 2730 # notably on macOS, which ships make 3.81 from 2006 (the last one 2731 # released under GPLv2). https://bugs.gnu.org/68808 2732 # 2733 # We test $MAKE if it is defined in the environment, else "make". 2734 # It might get overridden later, but our hope is that in practice 2735 # it does not matter: it is the system "make" which is (by far) 2736 # the most likely to be broken, whereas if the user overrides it, 2737 # probably they did so with a better, or at least not worse, make. 2738 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2739 # 2740 # Create a Makefile (real tab character here): 2741 rm -f conftest.mk 2742 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2743 echo ' touch conftest.ts2' >>conftest.mk 2744 # 2745 # Now, running 2746 # touch conftest.ts1; touch conftest.ts2; make 2747 # should touch ts1 because ts2 is newer. This could happen by luck, 2748 # but most often, it will fail if make's support is insufficient. So 2749 # test for several consecutive successes. 2750 # 2751 # (We reuse conftest.ts[12] because we still want to modify existing 2752 # files, not create new ones, per above.) 2753 n=0 2754 make=${MAKE-make} 2755 until test $n -eq 3; do 2756 echo one > conftest.ts1 2757 sleep $am_try_res 2758 echo two > conftest.ts2 # ts2 should now be newer than ts1 2759 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2760 make_ok=false 2761 break # out of $n loop 2762 fi 2763 n=`expr $n + 1` 2764 done 2765 fi 2766 # 2767 if $make_ok; then 2768 # Everything we know to check worked out, so call this resolution good. 2769 am_cv_filesystem_timestamp_resolution=$am_try_res 2770 break # out of $am_try_res loop 2771 fi 2772 # Otherwise, we'll go on to check the next resolution. 2773 fi 2774 done 2775 rm -f conftest.ts? 2776 # (end _am_filesystem_timestamp_resolution) 2777 ;; 2778 esac 2779 fi 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2781 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2782 2783 # This check should not be cached, as it may vary across builds of 2784 # different projects. 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2786 printf %s "checking whether build environment is sane... " >&6; } 2787 # Reject unsafe characters in $srcdir or the absolute working directory 2788 # name. Accept space and tab only in the latter. 2789 am_lf=' 2790 ' 2791 case `pwd` in 2792 *[\\\"\#\$\&\'\`$am_lf]*) 2793 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2794 esac 2795 case $srcdir in 2796 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2797 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2798 esac 2799 2800 # Do 'set' in a subshell so we don't clobber the current shell's 2801 # arguments. Must try -L first in case configure is actually a 2802 # symlink; some systems play weird games with the mod time of symlinks 2803 # (eg FreeBSD returns the mod time of the symlink's containing 2804 # directory). 2805 am_build_env_is_sane=no 2806 am_has_slept=no 2807 rm -f conftest.file 2808 for am_try in 1 2; do 2809 echo "timestamp, slept: $am_has_slept" > conftest.file 2810 if ( 2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2812 if test "$*" = "X"; then 2813 # -L didn't work. 2814 set X `ls -t "$srcdir/configure" conftest.file` 2815 fi 2816 test "$2" = conftest.file 2817 ); then 2818 am_build_env_is_sane=yes 2819 break 2820 fi 2821 # Just in case. 2822 sleep "$am_cv_filesystem_timestamp_resolution" 2823 am_has_slept=yes 2824 done 2825 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2827 printf "%s\n" "$am_build_env_is_sane" >&6; } 2828 if test "$am_build_env_is_sane" = no; then 2829 as_fn_error $? "newly created file is older than distributed files! 2830 Check your system clock" "$LINENO" 5 2831 fi 2832 2833 # If we didn't sleep, we still need to ensure time stamps of config.status and 2834 # generated files are strictly newer. 2835 am_sleep_pid= 2836 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2837 then : 2838 2839 else case e in #( 2840 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2841 am_sleep_pid=$! 2842 ;; 2843 esac 2844 fi 2845 2846 rm -f conftest.file 2847 2848 test "$program_prefix" != NONE && 2849 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2850 # Use a double $ so make ignores it. 2851 test "$program_suffix" != NONE && 2852 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2853 # Double any \ or $. 2854 # By default was 's,x,x', remove it if useless. 2855 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2856 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2857 2858 2859 # Expand $ac_aux_dir to an absolute path. 2860 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2861 2862 2863 if test x"${MISSING+set}" != xset; then 2864 MISSING="\${SHELL} '$am_aux_dir/missing'" 2865 fi 2866 # Use eval to expand $SHELL 2867 if eval "$MISSING --is-lightweight"; then 2868 am_missing_run="$MISSING " 2869 else 2870 am_missing_run= 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2872 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2873 fi 2874 2875 if test x"${install_sh+set}" != xset; then 2876 case $am_aux_dir in 2877 *\ * | *\ *) 2878 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2879 *) 2880 install_sh="\${SHELL} $am_aux_dir/install-sh" 2881 esac 2882 fi 2883 2884 # Installed binaries are usually stripped using 'strip' when the user 2885 # run "make install-strip". However 'strip' might not be the right 2886 # tool to use in cross-compilation environments, therefore Automake 2887 # will honor the 'STRIP' environment variable to overrule this program. 2888 if test "$cross_compiling" != no; then 2889 if test -n "$ac_tool_prefix"; then 2890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2891 set dummy ${ac_tool_prefix}strip; ac_word=$2 2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2893 printf %s "checking for $ac_word... " >&6; } 2894 if test ${ac_cv_prog_STRIP+y} 2895 then : 2896 printf %s "(cached) " >&6 2897 else case e in #( 2898 e) if test -n "$STRIP"; then 2899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2900 else 2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902 for as_dir in $PATH 2903 do 2904 IFS=$as_save_IFS 2905 case $as_dir in #((( 2906 '') as_dir=./ ;; 2907 */) ;; 2908 *) as_dir=$as_dir/ ;; 2909 esac 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916 done 2917 done 2918 IFS=$as_save_IFS 2919 2920 fi ;; 2921 esac 2922 fi 2923 STRIP=$ac_cv_prog_STRIP 2924 if test -n "$STRIP"; then 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2926 printf "%s\n" "$STRIP" >&6; } 2927 else 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929 printf "%s\n" "no" >&6; } 2930 fi 2931 2932 2933 fi 2934 if test -z "$ac_cv_prog_STRIP"; then 2935 ac_ct_STRIP=$STRIP 2936 # Extract the first word of "strip", so it can be a program name with args. 2937 set dummy strip; ac_word=$2 2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939 printf %s "checking for $ac_word... " >&6; } 2940 if test ${ac_cv_prog_ac_ct_STRIP+y} 2941 then : 2942 printf %s "(cached) " >&6 2943 else case e in #( 2944 e) if test -n "$ac_ct_STRIP"; then 2945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2946 else 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948 for as_dir in $PATH 2949 do 2950 IFS=$as_save_IFS 2951 case $as_dir in #((( 2952 '') as_dir=./ ;; 2953 */) ;; 2954 *) as_dir=$as_dir/ ;; 2955 esac 2956 for ac_exec_ext in '' $ac_executable_extensions; do 2957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2958 ac_cv_prog_ac_ct_STRIP="strip" 2959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962 done 2963 done 2964 IFS=$as_save_IFS 2965 2966 fi ;; 2967 esac 2968 fi 2969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2970 if test -n "$ac_ct_STRIP"; then 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2972 printf "%s\n" "$ac_ct_STRIP" >&6; } 2973 else 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975 printf "%s\n" "no" >&6; } 2976 fi 2977 2978 if test "x$ac_ct_STRIP" = x; then 2979 STRIP=":" 2980 else 2981 case $cross_compiling:$ac_tool_warned in 2982 yes:) 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2985 ac_tool_warned=yes ;; 2986 esac 2987 STRIP=$ac_ct_STRIP 2988 fi 2989 else 2990 STRIP="$ac_cv_prog_STRIP" 2991 fi 2992 2993 fi 2994 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2995 2996 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2998 printf %s "checking for a race-free mkdir -p... " >&6; } 2999 if test -z "$MKDIR_P"; then 3000 if test ${ac_cv_path_mkdir+y} 3001 then : 3002 printf %s "(cached) " >&6 3003 else case e in #( 3004 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3006 do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_prog in mkdir gmkdir; do 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3016 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3017 'mkdir ('*'coreutils) '* | \ 3018 *'BusyBox '* | \ 3019 'mkdir (fileutils) '4.1*) 3020 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3021 break 3;; 3022 esac 3023 done 3024 done 3025 done 3026 IFS=$as_save_IFS 3027 ;; 3028 esac 3029 fi 3030 3031 test -d ./--version && rmdir ./--version 3032 if test ${ac_cv_path_mkdir+y}; then 3033 MKDIR_P="$ac_cv_path_mkdir -p" 3034 else 3035 # As a last resort, use plain mkdir -p, 3036 # in the hope it doesn't have the bugs of ancient mkdir. 3037 MKDIR_P='mkdir -p' 3038 fi 3039 fi 3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3041 printf "%s\n" "$MKDIR_P" >&6; } 3042 3043 for ac_prog in gawk mawk nawk awk 3044 do 3045 # Extract the first word of "$ac_prog", so it can be a program name with args. 3046 set dummy $ac_prog; ac_word=$2 3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048 printf %s "checking for $ac_word... " >&6; } 3049 if test ${ac_cv_prog_AWK+y} 3050 then : 3051 printf %s "(cached) " >&6 3052 else case e in #( 3053 e) if test -n "$AWK"; then 3054 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3055 else 3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057 for as_dir in $PATH 3058 do 3059 IFS=$as_save_IFS 3060 case $as_dir in #((( 3061 '') as_dir=./ ;; 3062 */) ;; 3063 *) as_dir=$as_dir/ ;; 3064 esac 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_AWK="$ac_prog" 3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071 done 3072 done 3073 IFS=$as_save_IFS 3074 3075 fi ;; 3076 esac 3077 fi 3078 AWK=$ac_cv_prog_AWK 3079 if test -n "$AWK"; then 3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3081 printf "%s\n" "$AWK" >&6; } 3082 else 3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084 printf "%s\n" "no" >&6; } 3085 fi 3086 3087 3088 test -n "$AWK" && break 3089 done 3090 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3092 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3093 set x ${MAKE-make} 3094 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3095 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3096 then : 3097 printf %s "(cached) " >&6 3098 else case e in #( 3099 e) cat >conftest.make <<\_ACEOF 3100 SHELL = /bin/sh 3101 all: 3102 @echo '@@@%%%=$(MAKE)=@@@%%%' 3103 _ACEOF 3104 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3105 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3106 *@@@%%%=?*=@@@%%%*) 3107 eval ac_cv_prog_make_${ac_make}_set=yes;; 3108 *) 3109 eval ac_cv_prog_make_${ac_make}_set=no;; 3110 esac 3111 rm -f conftest.make ;; 3112 esac 3113 fi 3114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3116 printf "%s\n" "yes" >&6; } 3117 SET_MAKE= 3118 else 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120 printf "%s\n" "no" >&6; } 3121 SET_MAKE="MAKE=${MAKE-make}" 3122 fi 3123 3124 rm -rf .tst 2>/dev/null 3125 mkdir .tst 2>/dev/null 3126 if test -d .tst; then 3127 am__leading_dot=. 3128 else 3129 am__leading_dot=_ 3130 fi 3131 rmdir .tst 2>/dev/null 3132 3133 AM_DEFAULT_VERBOSITY=1 3134 # Check whether --enable-silent-rules was given. 3135 if test ${enable_silent_rules+y} 3136 then : 3137 enableval=$enable_silent_rules; 3138 fi 3139 3140 am_make=${MAKE-make} 3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3142 printf %s "checking whether $am_make supports nested variables... " >&6; } 3143 if test ${am_cv_make_support_nested_variables+y} 3144 then : 3145 printf %s "(cached) " >&6 3146 else case e in #( 3147 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3148 BAR0=false 3149 BAR1=true 3150 V=1 3151 am__doit: 3152 @$(TRUE) 3153 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3154 am_cv_make_support_nested_variables=yes 3155 else 3156 am_cv_make_support_nested_variables=no 3157 fi ;; 3158 esac 3159 fi 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3161 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3162 AM_BACKSLASH='\' 3163 3164 am__rm_f_notfound= 3165 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3166 then : 3167 3168 else case e in #( 3169 e) am__rm_f_notfound='""' ;; 3170 esac 3171 fi 3172 3173 3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3175 printf %s "checking xargs -n works... " >&6; } 3176 if test ${am_cv_xargs_n_works+y} 3177 then : 3178 printf %s "(cached) " >&6 3179 else case e in #( 3180 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3181 3" 3182 then : 3183 am_cv_xargs_n_works=yes 3184 else case e in #( 3185 e) am_cv_xargs_n_works=no ;; 3186 esac 3187 fi ;; 3188 esac 3189 fi 3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3191 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3192 if test "$am_cv_xargs_n_works" = yes 3193 then : 3194 am__xargs_n='xargs -n' 3195 else case e in #( 3196 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3197 ;; 3198 esac 3199 fi 3200 3201 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3202 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3203 # is not polluted with repeated "-I." 3204 am__isrc=' -I$(srcdir)' 3205 # test to see if srcdir already configured 3206 if test -f $srcdir/config.status; then 3207 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3208 fi 3209 fi 3210 3211 # test whether we have cygpath 3212 if test -z "$CYGPATH_W"; then 3213 if (cygpath --version) >/dev/null 2>/dev/null; then 3214 CYGPATH_W='cygpath -w' 3215 else 3216 CYGPATH_W=echo 3217 fi 3218 fi 3219 3220 3221 # Define the identity of the package. 3222 PACKAGE='xprop' 3223 VERSION='1.2.8' 3224 3225 3226 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3227 3228 3229 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3230 3231 # Some tools Automake needs. 3232 3233 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3234 3235 3236 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3237 3238 3239 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3240 3241 3242 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3243 3244 3245 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3246 3247 # For better backward compatibility. To be removed once Automake 1.9.x 3248 # dies out for good. For more background, see: 3249 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3250 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3251 mkdir_p='$(MKDIR_P)' 3252 3253 # We need awk for the "check" target (and possibly the TAP driver). The 3254 # system "awk" is bad on some platforms. 3255 # Always define AMTAR for backward compatibility. Yes, it's still used 3256 # in the wild :-( We should find a proper way to deprecate it ... 3257 AMTAR='$${TAR-tar}' 3258 3259 3260 # We'll loop over all known methods to create a tar archive until one works. 3261 _am_tools='gnutar pax cpio none' 3262 3263 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3264 3265 3266 3267 3268 3269 # Variables for tags utilities; see am/tags.am 3270 if test -z "$CTAGS"; then 3271 CTAGS=ctags 3272 fi 3273 3274 if test -z "$ETAGS"; then 3275 ETAGS=etags 3276 fi 3277 3278 if test -z "$CSCOPE"; then 3279 CSCOPE=cscope 3280 fi 3281 3282 3283 3284 3285 3286 3287 3288 3289 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 DEPDIR="${am__leading_dot}deps" 3311 3312 ac_config_commands="$ac_config_commands depfiles" 3313 3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3315 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3316 cat > confinc.mk << 'END' 3317 am__doit: 3318 @echo this is the am__doit target >confinc.out 3319 .PHONY: am__doit 3320 END 3321 am__include="#" 3322 am__quote= 3323 # BSD make does it like this. 3324 echo '.include "confinc.mk" # ignored' > confmf.BSD 3325 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3326 echo 'include confinc.mk # ignored' > confmf.GNU 3327 _am_result=no 3328 for s in GNU BSD; do 3329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3331 ac_status=$? 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } 3334 case $?:`cat confinc.out 2>/dev/null` in #( 3335 '0:this is the am__doit target') : 3336 case $s in #( 3337 BSD) : 3338 am__include='.include' am__quote='"' ;; #( 3339 *) : 3340 am__include='include' am__quote='' ;; 3341 esac ;; #( 3342 *) : 3343 ;; 3344 esac 3345 if test "$am__include" != "#"; then 3346 _am_result="yes ($s style)" 3347 break 3348 fi 3349 done 3350 rm -f confinc.* confmf.* 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3352 printf "%s\n" "${_am_result}" >&6; } 3353 3354 # Check whether --enable-dependency-tracking was given. 3355 if test ${enable_dependency_tracking+y} 3356 then : 3357 enableval=$enable_dependency_tracking; 3358 fi 3359 3360 if test "x$enable_dependency_tracking" != xno; then 3361 am_depcomp="$ac_aux_dir/depcomp" 3362 AMDEPBACKSLASH='\' 3363 am__nodep='_no' 3364 fi 3365 if test "x$enable_dependency_tracking" != xno; then 3366 AMDEP_TRUE= 3367 AMDEP_FALSE='#' 3368 else 3369 AMDEP_TRUE='#' 3370 AMDEP_FALSE= 3371 fi 3372 3373 3374 ac_ext=c 3375 ac_cpp='$CPP $CPPFLAGS' 3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3379 if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383 printf %s "checking for $ac_word... " >&6; } 3384 if test ${ac_cv_prog_CC+y} 3385 then : 3386 printf %s "(cached) " >&6 3387 else case e in #( 3388 e) if test -n "$CC"; then 3389 ac_cv_prog_CC="$CC" # Let the user override the test. 3390 else 3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392 for as_dir in $PATH 3393 do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406 done 3407 done 3408 IFS=$as_save_IFS 3409 3410 fi ;; 3411 esac 3412 fi 3413 CC=$ac_cv_prog_CC 3414 if test -n "$CC"; then 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3416 printf "%s\n" "$CC" >&6; } 3417 else 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419 printf "%s\n" "no" >&6; } 3420 fi 3421 3422 3423 fi 3424 if test -z "$ac_cv_prog_CC"; then 3425 ac_ct_CC=$CC 3426 # Extract the first word of "gcc", so it can be a program name with args. 3427 set dummy gcc; ac_word=$2 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429 printf %s "checking for $ac_word... " >&6; } 3430 if test ${ac_cv_prog_ac_ct_CC+y} 3431 then : 3432 printf %s "(cached) " >&6 3433 else case e in #( 3434 e) if test -n "$ac_ct_CC"; then 3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3436 else 3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438 for as_dir in $PATH 3439 do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_ac_ct_CC="gcc" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452 done 3453 done 3454 IFS=$as_save_IFS 3455 3456 fi ;; 3457 esac 3458 fi 3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3460 if test -n "$ac_ct_CC"; then 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3462 printf "%s\n" "$ac_ct_CC" >&6; } 3463 else 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465 printf "%s\n" "no" >&6; } 3466 fi 3467 3468 if test "x$ac_ct_CC" = x; then 3469 CC="" 3470 else 3471 case $cross_compiling:$ac_tool_warned in 3472 yes:) 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3474 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3475 ac_tool_warned=yes ;; 3476 esac 3477 CC=$ac_ct_CC 3478 fi 3479 else 3480 CC="$ac_cv_prog_CC" 3481 fi 3482 3483 if test -z "$CC"; then 3484 if test -n "$ac_tool_prefix"; then 3485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3486 set dummy ${ac_tool_prefix}cc; ac_word=$2 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3488 printf %s "checking for $ac_word... " >&6; } 3489 if test ${ac_cv_prog_CC+y} 3490 then : 3491 printf %s "(cached) " >&6 3492 else case e in #( 3493 e) if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495 else 3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497 for as_dir in $PATH 3498 do 3499 IFS=$as_save_IFS 3500 case $as_dir in #((( 3501 '') as_dir=./ ;; 3502 */) ;; 3503 *) as_dir=$as_dir/ ;; 3504 esac 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_CC="${ac_tool_prefix}cc" 3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511 done 3512 done 3513 IFS=$as_save_IFS 3514 3515 fi ;; 3516 esac 3517 fi 3518 CC=$ac_cv_prog_CC 3519 if test -n "$CC"; then 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3521 printf "%s\n" "$CC" >&6; } 3522 else 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524 printf "%s\n" "no" >&6; } 3525 fi 3526 3527 3528 fi 3529 fi 3530 if test -z "$CC"; then 3531 # Extract the first word of "cc", so it can be a program name with args. 3532 set dummy cc; ac_word=$2 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534 printf %s "checking for $ac_word... " >&6; } 3535 if test ${ac_cv_prog_CC+y} 3536 then : 3537 printf %s "(cached) " >&6 3538 else case e in #( 3539 e) if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541 else 3542 ac_prog_rejected=no 3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544 for as_dir in $PATH 3545 do 3546 IFS=$as_save_IFS 3547 case $as_dir in #((( 3548 '') as_dir=./ ;; 3549 */) ;; 3550 *) as_dir=$as_dir/ ;; 3551 esac 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3554 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3555 ac_prog_rejected=yes 3556 continue 3557 fi 3558 ac_cv_prog_CC="cc" 3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562 done 3563 done 3564 IFS=$as_save_IFS 3565 3566 if test $ac_prog_rejected = yes; then 3567 # We found a bogon in the path, so make sure we never use it. 3568 set dummy $ac_cv_prog_CC 3569 shift 3570 if test $# != 0; then 3571 # We chose a different compiler from the bogus one. 3572 # However, it has the same basename, so the bogon will be chosen 3573 # first if we set CC to just the basename; use the full file name. 3574 shift 3575 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3576 fi 3577 fi 3578 fi ;; 3579 esac 3580 fi 3581 CC=$ac_cv_prog_CC 3582 if test -n "$CC"; then 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584 printf "%s\n" "$CC" >&6; } 3585 else 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587 printf "%s\n" "no" >&6; } 3588 fi 3589 3590 3591 fi 3592 if test -z "$CC"; then 3593 if test -n "$ac_tool_prefix"; then 3594 for ac_prog in cl.exe 3595 do 3596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599 printf %s "checking for $ac_word... " >&6; } 3600 if test ${ac_cv_prog_CC+y} 3601 then : 3602 printf %s "(cached) " >&6 3603 else case e in #( 3604 e) if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606 else 3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608 for as_dir in $PATH 3609 do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622 done 3623 done 3624 IFS=$as_save_IFS 3625 3626 fi ;; 3627 esac 3628 fi 3629 CC=$ac_cv_prog_CC 3630 if test -n "$CC"; then 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3632 printf "%s\n" "$CC" >&6; } 3633 else 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3635 printf "%s\n" "no" >&6; } 3636 fi 3637 3638 3639 test -n "$CC" && break 3640 done 3641 fi 3642 if test -z "$CC"; then 3643 ac_ct_CC=$CC 3644 for ac_prog in cl.exe 3645 do 3646 # Extract the first word of "$ac_prog", so it can be a program name with args. 3647 set dummy $ac_prog; ac_word=$2 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649 printf %s "checking for $ac_word... " >&6; } 3650 if test ${ac_cv_prog_ac_ct_CC+y} 3651 then : 3652 printf %s "(cached) " >&6 3653 else case e in #( 3654 e) if test -n "$ac_ct_CC"; then 3655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3656 else 3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3658 for as_dir in $PATH 3659 do 3660 IFS=$as_save_IFS 3661 case $as_dir in #((( 3662 '') as_dir=./ ;; 3663 */) ;; 3664 *) as_dir=$as_dir/ ;; 3665 esac 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3668 ac_cv_prog_ac_ct_CC="$ac_prog" 3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3670 break 2 3671 fi 3672 done 3673 done 3674 IFS=$as_save_IFS 3675 3676 fi ;; 3677 esac 3678 fi 3679 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3680 if test -n "$ac_ct_CC"; then 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3682 printf "%s\n" "$ac_ct_CC" >&6; } 3683 else 3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685 printf "%s\n" "no" >&6; } 3686 fi 3687 3688 3689 test -n "$ac_ct_CC" && break 3690 done 3691 3692 if test "x$ac_ct_CC" = x; then 3693 CC="" 3694 else 3695 case $cross_compiling:$ac_tool_warned in 3696 yes:) 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3699 ac_tool_warned=yes ;; 3700 esac 3701 CC=$ac_ct_CC 3702 fi 3703 fi 3704 3705 fi 3706 if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3709 set dummy ${ac_tool_prefix}clang; ac_word=$2 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711 printf %s "checking for $ac_word... " >&6; } 3712 if test ${ac_cv_prog_CC+y} 3713 then : 3714 printf %s "(cached) " >&6 3715 else case e in #( 3716 e) if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718 else 3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720 for as_dir in $PATH 3721 do 3722 IFS=$as_save_IFS 3723 case $as_dir in #((( 3724 '') as_dir=./ ;; 3725 */) ;; 3726 *) as_dir=$as_dir/ ;; 3727 esac 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3730 ac_cv_prog_CC="${ac_tool_prefix}clang" 3731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734 done 3735 done 3736 IFS=$as_save_IFS 3737 3738 fi ;; 3739 esac 3740 fi 3741 CC=$ac_cv_prog_CC 3742 if test -n "$CC"; then 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3744 printf "%s\n" "$CC" >&6; } 3745 else 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747 printf "%s\n" "no" >&6; } 3748 fi 3749 3750 3751 fi 3752 if test -z "$ac_cv_prog_CC"; then 3753 ac_ct_CC=$CC 3754 # Extract the first word of "clang", so it can be a program name with args. 3755 set dummy clang; ac_word=$2 3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757 printf %s "checking for $ac_word... " >&6; } 3758 if test ${ac_cv_prog_ac_ct_CC+y} 3759 then : 3760 printf %s "(cached) " >&6 3761 else case e in #( 3762 e) if test -n "$ac_ct_CC"; then 3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3764 else 3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766 for as_dir in $PATH 3767 do 3768 IFS=$as_save_IFS 3769 case $as_dir in #((( 3770 '') as_dir=./ ;; 3771 */) ;; 3772 *) as_dir=$as_dir/ ;; 3773 esac 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3776 ac_cv_prog_ac_ct_CC="clang" 3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3778 break 2 3779 fi 3780 done 3781 done 3782 IFS=$as_save_IFS 3783 3784 fi ;; 3785 esac 3786 fi 3787 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3788 if test -n "$ac_ct_CC"; then 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3790 printf "%s\n" "$ac_ct_CC" >&6; } 3791 else 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793 printf "%s\n" "no" >&6; } 3794 fi 3795 3796 if test "x$ac_ct_CC" = x; then 3797 CC="" 3798 else 3799 case $cross_compiling:$ac_tool_warned in 3800 yes:) 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3802 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3803 ac_tool_warned=yes ;; 3804 esac 3805 CC=$ac_ct_CC 3806 fi 3807 else 3808 CC="$ac_cv_prog_CC" 3809 fi 3810 3811 fi 3812 3813 3814 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3815 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3816 as_fn_error $? "no acceptable C compiler found in \$PATH 3817 See 'config.log' for more details" "$LINENO" 5; } 3818 3819 # Provide some information about the compiler. 3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3821 set X $ac_compile 3822 ac_compiler=$2 3823 for ac_option in --version -v -V -qversion -version; do 3824 { { ac_try="$ac_compiler $ac_option >&5" 3825 case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828 esac 3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830 printf "%s\n" "$ac_try_echo"; } >&5 3831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3832 ac_status=$? 3833 if test -s conftest.err; then 3834 sed '10a\ 3835 ... rest of stderr output deleted ... 3836 10q' conftest.err >conftest.er1 3837 cat conftest.er1 >&5 3838 fi 3839 rm -f conftest.er1 conftest.err 3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3841 test $ac_status = 0; } 3842 done 3843 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845 /* end confdefs.h. */ 3846 3847 int 3848 main (void) 3849 { 3850 3851 ; 3852 return 0; 3853 } 3854 _ACEOF 3855 ac_clean_files_save=$ac_clean_files 3856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3857 # Try to create an executable without -o first, disregard a.out. 3858 # It will help us diagnose broken compilers, and finding out an intuition 3859 # of exeext. 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3861 printf %s "checking whether the C compiler works... " >&6; } 3862 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3863 3864 # The possible output files: 3865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3866 3867 ac_rmfiles= 3868 for ac_file in $ac_files 3869 do 3870 case $ac_file in 3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3872 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3873 esac 3874 done 3875 rm -f $ac_rmfiles 3876 3877 if { { ac_try="$ac_link_default" 3878 case "(($ac_try" in 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880 *) ac_try_echo=$ac_try;; 3881 esac 3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3883 printf "%s\n" "$ac_try_echo"; } >&5 3884 (eval "$ac_link_default") 2>&5 3885 ac_status=$? 3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3887 test $ac_status = 0; } 3888 then : 3889 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3890 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3891 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3892 # so that the user can short-circuit this test for compilers unknown to 3893 # Autoconf. 3894 for ac_file in $ac_files '' 3895 do 3896 test -f "$ac_file" || continue 3897 case $ac_file in 3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3899 ;; 3900 [ab].out ) 3901 # We found the default executable, but exeext='' is most 3902 # certainly right. 3903 break;; 3904 *.* ) 3905 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3906 then :; else 3907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3908 fi 3909 # We set ac_cv_exeext here because the later test for it is not 3910 # safe: cross compilers may not add the suffix if given an '-o' 3911 # argument, so we may need to know it at that point already. 3912 # Even if this section looks crufty: it has the advantage of 3913 # actually working. 3914 break;; 3915 * ) 3916 break;; 3917 esac 3918 done 3919 test "$ac_cv_exeext" = no && ac_cv_exeext= 3920 3921 else case e in #( 3922 e) ac_file='' ;; 3923 esac 3924 fi 3925 if test -z "$ac_file" 3926 then : 3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3928 printf "%s\n" "no" >&6; } 3929 printf "%s\n" "$as_me: failed program was:" >&5 3930 sed 's/^/| /' conftest.$ac_ext >&5 3931 3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3933 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3934 as_fn_error 77 "C compiler cannot create executables 3935 See 'config.log' for more details" "$LINENO" 5; } 3936 else case e in #( 3937 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3938 printf "%s\n" "yes" >&6; } ;; 3939 esac 3940 fi 3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3942 printf %s "checking for C compiler default output file name... " >&6; } 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3944 printf "%s\n" "$ac_file" >&6; } 3945 ac_exeext=$ac_cv_exeext 3946 3947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3948 ac_clean_files=$ac_clean_files_save 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3950 printf %s "checking for suffix of executables... " >&6; } 3951 if { { ac_try="$ac_link" 3952 case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955 esac 3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3957 printf "%s\n" "$ac_try_echo"; } >&5 3958 (eval "$ac_link") 2>&5 3959 ac_status=$? 3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; } 3962 then : 3963 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3964 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3965 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3966 # 'rm'. 3967 for ac_file in conftest.exe conftest conftest.*; 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 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3972 break;; 3973 * ) break;; 3974 esac 3975 done 3976 else case e in #( 3977 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3978 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3979 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3980 See 'config.log' for more details" "$LINENO" 5; } ;; 3981 esac 3982 fi 3983 rm -f conftest conftest$ac_cv_exeext 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3985 printf "%s\n" "$ac_cv_exeext" >&6; } 3986 3987 rm -f conftest.$ac_ext 3988 EXEEXT=$ac_cv_exeext 3989 ac_exeext=$EXEEXT 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991 /* end confdefs.h. */ 3992 #include <stdio.h> 3993 int 3994 main (void) 3995 { 3996 FILE *f = fopen ("conftest.out", "w"); 3997 if (!f) 3998 return 1; 3999 return ferror (f) || fclose (f) != 0; 4000 4001 ; 4002 return 0; 4003 } 4004 _ACEOF 4005 ac_clean_files="$ac_clean_files conftest.out" 4006 # Check that the compiler produces executables we can run. If not, either 4007 # the compiler is broken, or we cross compile. 4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4009 printf %s "checking whether we are cross compiling... " >&6; } 4010 if test "$cross_compiling" != yes; then 4011 { { ac_try="$ac_link" 4012 case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015 esac 4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017 printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_link") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022 if { ac_try='./conftest$ac_cv_exeext' 4023 { { case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026 esac 4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028 printf "%s\n" "$ac_try_echo"; } >&5 4029 (eval "$ac_try") 2>&5 4030 ac_status=$? 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; }; }; then 4033 cross_compiling=no 4034 else 4035 if test "$cross_compiling" = maybe; then 4036 cross_compiling=yes 4037 else 4038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4039 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4040 as_fn_error 77 "cannot run C compiled programs. 4041 If you meant to cross compile, use '--host'. 4042 See 'config.log' for more details" "$LINENO" 5; } 4043 fi 4044 fi 4045 fi 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4047 printf "%s\n" "$cross_compiling" >&6; } 4048 4049 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4050 conftest.o conftest.obj conftest.out 4051 ac_clean_files=$ac_clean_files_save 4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4053 printf %s "checking for suffix of object files... " >&6; } 4054 if test ${ac_cv_objext+y} 4055 then : 4056 printf %s "(cached) " >&6 4057 else case e in #( 4058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059 /* end confdefs.h. */ 4060 4061 int 4062 main (void) 4063 { 4064 4065 ; 4066 return 0; 4067 } 4068 _ACEOF 4069 rm -f conftest.o conftest.obj 4070 if { { ac_try="$ac_compile" 4071 case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074 esac 4075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076 printf "%s\n" "$ac_try_echo"; } >&5 4077 (eval "$ac_compile") 2>&5 4078 ac_status=$? 4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; } 4081 then : 4082 for ac_file in conftest.o conftest.obj conftest.*; do 4083 test -f "$ac_file" || continue; 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4087 break;; 4088 esac 4089 done 4090 else case e in #( 4091 e) printf "%s\n" "$as_me: failed program was:" >&5 4092 sed 's/^/| /' conftest.$ac_ext >&5 4093 4094 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4095 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4096 as_fn_error $? "cannot compute suffix of object files: cannot compile 4097 See 'config.log' for more details" "$LINENO" 5; } ;; 4098 esac 4099 fi 4100 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4101 esac 4102 fi 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4104 printf "%s\n" "$ac_cv_objext" >&6; } 4105 OBJEXT=$ac_cv_objext 4106 ac_objext=$OBJEXT 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4108 printf %s "checking whether the compiler supports GNU C... " >&6; } 4109 if test ${ac_cv_c_compiler_gnu+y} 4110 then : 4111 printf %s "(cached) " >&6 4112 else case e in #( 4113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114 /* end confdefs.h. */ 4115 4116 int 4117 main (void) 4118 { 4119 #ifndef __GNUC__ 4120 choke me 4121 #endif 4122 4123 ; 4124 return 0; 4125 } 4126 _ACEOF 4127 if ac_fn_c_try_compile "$LINENO" 4128 then : 4129 ac_compiler_gnu=yes 4130 else case e in #( 4131 e) ac_compiler_gnu=no ;; 4132 esac 4133 fi 4134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4135 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4136 ;; 4137 esac 4138 fi 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4140 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4142 4143 if test $ac_compiler_gnu = yes; then 4144 GCC=yes 4145 else 4146 GCC= 4147 fi 4148 ac_test_CFLAGS=${CFLAGS+y} 4149 ac_save_CFLAGS=$CFLAGS 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4151 printf %s "checking whether $CC accepts -g... " >&6; } 4152 if test ${ac_cv_prog_cc_g+y} 4153 then : 4154 printf %s "(cached) " >&6 4155 else case e in #( 4156 e) ac_save_c_werror_flag=$ac_c_werror_flag 4157 ac_c_werror_flag=yes 4158 ac_cv_prog_cc_g=no 4159 CFLAGS="-g" 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161 /* end confdefs.h. */ 4162 4163 int 4164 main (void) 4165 { 4166 4167 ; 4168 return 0; 4169 } 4170 _ACEOF 4171 if ac_fn_c_try_compile "$LINENO" 4172 then : 4173 ac_cv_prog_cc_g=yes 4174 else case e in #( 4175 e) CFLAGS="" 4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177 /* end confdefs.h. */ 4178 4179 int 4180 main (void) 4181 { 4182 4183 ; 4184 return 0; 4185 } 4186 _ACEOF 4187 if ac_fn_c_try_compile "$LINENO" 4188 then : 4189 4190 else case e in #( 4191 e) ac_c_werror_flag=$ac_save_c_werror_flag 4192 CFLAGS="-g" 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194 /* end confdefs.h. */ 4195 4196 int 4197 main (void) 4198 { 4199 4200 ; 4201 return 0; 4202 } 4203 _ACEOF 4204 if ac_fn_c_try_compile "$LINENO" 4205 then : 4206 ac_cv_prog_cc_g=yes 4207 fi 4208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4209 esac 4210 fi 4211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4212 esac 4213 fi 4214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4215 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4216 esac 4217 fi 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4219 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4220 if test $ac_test_CFLAGS; then 4221 CFLAGS=$ac_save_CFLAGS 4222 elif test $ac_cv_prog_cc_g = yes; then 4223 if test "$GCC" = yes; then 4224 CFLAGS="-g -O2" 4225 else 4226 CFLAGS="-g" 4227 fi 4228 else 4229 if test "$GCC" = yes; then 4230 CFLAGS="-O2" 4231 else 4232 CFLAGS= 4233 fi 4234 fi 4235 ac_prog_cc_stdc=no 4236 if test x$ac_prog_cc_stdc = xno 4237 then : 4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4239 printf %s "checking for $CC option to enable C11 features... " >&6; } 4240 if test ${ac_cv_prog_cc_c11+y} 4241 then : 4242 printf %s "(cached) " >&6 4243 else case e in #( 4244 e) ac_cv_prog_cc_c11=no 4245 ac_save_CC=$CC 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247 /* end confdefs.h. */ 4248 $ac_c_conftest_c11_program 4249 _ACEOF 4250 for ac_arg in '' -std=gnu11 4251 do 4252 CC="$ac_save_CC $ac_arg" 4253 if ac_fn_c_try_compile "$LINENO" 4254 then : 4255 ac_cv_prog_cc_c11=$ac_arg 4256 fi 4257 rm -f core conftest.err conftest.$ac_objext conftest.beam 4258 test "x$ac_cv_prog_cc_c11" != "xno" && break 4259 done 4260 rm -f conftest.$ac_ext 4261 CC=$ac_save_CC ;; 4262 esac 4263 fi 4264 4265 if test "x$ac_cv_prog_cc_c11" = xno 4266 then : 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4268 printf "%s\n" "unsupported" >&6; } 4269 else case e in #( 4270 e) if test "x$ac_cv_prog_cc_c11" = x 4271 then : 4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4273 printf "%s\n" "none needed" >&6; } 4274 else case e in #( 4275 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4276 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4277 CC="$CC $ac_cv_prog_cc_c11" ;; 4278 esac 4279 fi 4280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4281 ac_prog_cc_stdc=c11 ;; 4282 esac 4283 fi 4284 fi 4285 if test x$ac_prog_cc_stdc = xno 4286 then : 4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4288 printf %s "checking for $CC option to enable C99 features... " >&6; } 4289 if test ${ac_cv_prog_cc_c99+y} 4290 then : 4291 printf %s "(cached) " >&6 4292 else case e in #( 4293 e) ac_cv_prog_cc_c99=no 4294 ac_save_CC=$CC 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296 /* end confdefs.h. */ 4297 $ac_c_conftest_c99_program 4298 _ACEOF 4299 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4300 do 4301 CC="$ac_save_CC $ac_arg" 4302 if ac_fn_c_try_compile "$LINENO" 4303 then : 4304 ac_cv_prog_cc_c99=$ac_arg 4305 fi 4306 rm -f core conftest.err conftest.$ac_objext conftest.beam 4307 test "x$ac_cv_prog_cc_c99" != "xno" && break 4308 done 4309 rm -f conftest.$ac_ext 4310 CC=$ac_save_CC ;; 4311 esac 4312 fi 4313 4314 if test "x$ac_cv_prog_cc_c99" = xno 4315 then : 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4317 printf "%s\n" "unsupported" >&6; } 4318 else case e in #( 4319 e) if test "x$ac_cv_prog_cc_c99" = x 4320 then : 4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4322 printf "%s\n" "none needed" >&6; } 4323 else case e in #( 4324 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4325 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4326 CC="$CC $ac_cv_prog_cc_c99" ;; 4327 esac 4328 fi 4329 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4330 ac_prog_cc_stdc=c99 ;; 4331 esac 4332 fi 4333 fi 4334 if test x$ac_prog_cc_stdc = xno 4335 then : 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4337 printf %s "checking for $CC option to enable C89 features... " >&6; } 4338 if test ${ac_cv_prog_cc_c89+y} 4339 then : 4340 printf %s "(cached) " >&6 4341 else case e in #( 4342 e) ac_cv_prog_cc_c89=no 4343 ac_save_CC=$CC 4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345 /* end confdefs.h. */ 4346 $ac_c_conftest_c89_program 4347 _ACEOF 4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4349 do 4350 CC="$ac_save_CC $ac_arg" 4351 if ac_fn_c_try_compile "$LINENO" 4352 then : 4353 ac_cv_prog_cc_c89=$ac_arg 4354 fi 4355 rm -f core conftest.err conftest.$ac_objext conftest.beam 4356 test "x$ac_cv_prog_cc_c89" != "xno" && break 4357 done 4358 rm -f conftest.$ac_ext 4359 CC=$ac_save_CC ;; 4360 esac 4361 fi 4362 4363 if test "x$ac_cv_prog_cc_c89" = xno 4364 then : 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4366 printf "%s\n" "unsupported" >&6; } 4367 else case e in #( 4368 e) if test "x$ac_cv_prog_cc_c89" = x 4369 then : 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4371 printf "%s\n" "none needed" >&6; } 4372 else case e in #( 4373 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4374 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4375 CC="$CC $ac_cv_prog_cc_c89" ;; 4376 esac 4377 fi 4378 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4379 ac_prog_cc_stdc=c89 ;; 4380 esac 4381 fi 4382 fi 4383 4384 ac_ext=c 4385 ac_cpp='$CPP $CPPFLAGS' 4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390 4391 ac_ext=c 4392 ac_cpp='$CPP $CPPFLAGS' 4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4397 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4398 if test ${am_cv_prog_cc_c_o+y} 4399 then : 4400 printf %s "(cached) " >&6 4401 else case e in #( 4402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403 /* end confdefs.h. */ 4404 4405 int 4406 main (void) 4407 { 4408 4409 ; 4410 return 0; 4411 } 4412 _ACEOF 4413 # Make sure it works both with $CC and with simple cc. 4414 # Following AC_PROG_CC_C_O, we do the test twice because some 4415 # compilers refuse to overwrite an existing .o file with -o, 4416 # though they will create one. 4417 am_cv_prog_cc_c_o=yes 4418 for am_i in 1 2; do 4419 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4420 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4421 ac_status=$? 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); } \ 4424 && test -f conftest2.$ac_objext; then 4425 : OK 4426 else 4427 am_cv_prog_cc_c_o=no 4428 break 4429 fi 4430 done 4431 rm -f core conftest* 4432 unset am_i ;; 4433 esac 4434 fi 4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4436 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4437 if test "$am_cv_prog_cc_c_o" != yes; then 4438 # Losing compiler, so override with the script. 4439 # FIXME: It is wrong to rewrite CC. 4440 # But if we don't then we get into trouble of one sort or another. 4441 # A longer-term fix would be to have automake use am__CC in this case, 4442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4443 CC="$am_aux_dir/compile $CC" 4444 fi 4445 ac_ext=c 4446 ac_cpp='$CPP $CPPFLAGS' 4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452 depcc="$CC" am_compiler_list= 4453 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4455 printf %s "checking dependency style of $depcc... " >&6; } 4456 if test ${am_cv_CC_dependencies_compiler_type+y} 4457 then : 4458 printf %s "(cached) " >&6 4459 else case e in #( 4460 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4461 # We make a subdir and do the tests there. Otherwise we can end up 4462 # making bogus files that we don't know about and never remove. For 4463 # instance it was reported that on HP-UX the gcc test will end up 4464 # making a dummy file named 'D' -- because '-MD' means "put the output 4465 # in D". 4466 rm -rf conftest.dir 4467 mkdir conftest.dir 4468 # Copy depcomp to subdir because otherwise we won't find it if we're 4469 # using a relative directory. 4470 cp "$am_depcomp" conftest.dir 4471 cd conftest.dir 4472 # We will build objects and dependencies in a subdirectory because 4473 # it helps to detect inapplicable dependency modes. For instance 4474 # both Tru64's cc and ICC support -MD to output dependencies as a 4475 # side effect of compilation, but ICC will put the dependencies in 4476 # the current directory while Tru64 will put them in the object 4477 # directory. 4478 mkdir sub 4479 4480 am_cv_CC_dependencies_compiler_type=none 4481 if test "$am_compiler_list" = ""; then 4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4483 fi 4484 am__universal=false 4485 case " $depcc " in #( 4486 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4487 esac 4488 4489 for depmode in $am_compiler_list; do 4490 # Setup a source with many dependencies, because some compilers 4491 # like to wrap large dependency lists on column 80 (with \), and 4492 # we should not choose a depcomp mode which is confused by this. 4493 # 4494 # We need to recreate these files for each test, as the compiler may 4495 # overwrite some of them when testing with obscure command lines. 4496 # This happens at least with the AIX C compiler. 4497 : > sub/conftest.c 4498 for i in 1 2 3 4 5 6; do 4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4501 # Solaris 10 /bin/sh. 4502 echo '/* dummy */' > sub/conftst$i.h 4503 done 4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4505 4506 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4507 # mode. It turns out that the SunPro C++ compiler does not properly 4508 # handle '-M -o', and we need to detect this. Also, some Intel 4509 # versions had trouble with output in subdirs. 4510 am__obj=sub/conftest.${OBJEXT-o} 4511 am__minus_obj="-o $am__obj" 4512 case $depmode in 4513 gcc) 4514 # This depmode causes a compiler race in universal mode. 4515 test "$am__universal" = false || continue 4516 ;; 4517 nosideeffect) 4518 # After this tag, mechanisms are not by side-effect, so they'll 4519 # only be used when explicitly requested. 4520 if test "x$enable_dependency_tracking" = xyes; then 4521 continue 4522 else 4523 break 4524 fi 4525 ;; 4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4527 # This compiler won't grok '-c -o', but also, the minuso test has 4528 # not run yet. These depmodes are late enough in the game, and 4529 # so weak that their functioning should not be impacted. 4530 am__obj=conftest.${OBJEXT-o} 4531 am__minus_obj= 4532 ;; 4533 none) break ;; 4534 esac 4535 if depmode=$depmode \ 4536 source=sub/conftest.c object=$am__obj \ 4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4539 >/dev/null 2>conftest.err && 4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4544 # icc doesn't choke on unknown options, it will just issue warnings 4545 # or remarks (even with -Werror). So we grep stderr for any message 4546 # that says an option was ignored or not supported. 4547 # When given -MP, icc 7.0 and 7.1 complain thus: 4548 # icc: Command line warning: ignoring option '-M'; no argument required 4549 # The diagnosis changed in icc 8.0: 4550 # icc: Command line remark: option '-MP' not supported 4551 if (grep 'ignoring option' conftest.err || 4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4553 am_cv_CC_dependencies_compiler_type=$depmode 4554 break 4555 fi 4556 fi 4557 done 4558 4559 cd .. 4560 rm -rf conftest.dir 4561 else 4562 am_cv_CC_dependencies_compiler_type=none 4563 fi 4564 ;; 4565 esac 4566 fi 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4568 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4569 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4570 4571 if 4572 test "x$enable_dependency_tracking" != xno \ 4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4574 am__fastdepCC_TRUE= 4575 am__fastdepCC_FALSE='#' 4576 else 4577 am__fastdepCC_TRUE='#' 4578 am__fastdepCC_FALSE= 4579 fi 4580 4581 4582 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4584 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4585 if test ${ac_cv_c_undeclared_builtin_options+y} 4586 then : 4587 printf %s "(cached) " >&6 4588 else case e in #( 4589 e) ac_save_CFLAGS=$CFLAGS 4590 ac_cv_c_undeclared_builtin_options='cannot detect' 4591 for ac_arg in '' -fno-builtin; do 4592 CFLAGS="$ac_save_CFLAGS $ac_arg" 4593 # This test program should *not* compile successfully. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595 /* end confdefs.h. */ 4596 4597 int 4598 main (void) 4599 { 4600 (void) strchr; 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 if ac_fn_c_try_compile "$LINENO" 4606 then : 4607 4608 else case e in #( 4609 e) # This test program should compile successfully. 4610 # No library function is consistently available on 4611 # freestanding implementations, so test against a dummy 4612 # declaration. Include always-available headers on the 4613 # off chance that they somehow elicit warnings. 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615 /* end confdefs.h. */ 4616 #include <float.h> 4617 #include <limits.h> 4618 #include <stdarg.h> 4619 #include <stddef.h> 4620 extern void ac_decl (int, char *); 4621 4622 int 4623 main (void) 4624 { 4625 (void) ac_decl (0, (char *) 0); 4626 (void) ac_decl; 4627 4628 ; 4629 return 0; 4630 } 4631 _ACEOF 4632 if ac_fn_c_try_compile "$LINENO" 4633 then : 4634 if test x"$ac_arg" = x 4635 then : 4636 ac_cv_c_undeclared_builtin_options='none needed' 4637 else case e in #( 4638 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4639 esac 4640 fi 4641 break 4642 fi 4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4644 esac 4645 fi 4646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4647 done 4648 CFLAGS=$ac_save_CFLAGS 4649 ;; 4650 esac 4651 fi 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4653 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4654 case $ac_cv_c_undeclared_builtin_options in #( 4655 'cannot detect') : 4656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4657 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4658 as_fn_error $? "cannot make $CC report undeclared builtins 4659 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4660 'none needed') : 4661 ac_c_undeclared_builtin_options='' ;; #( 4662 *) : 4663 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4664 esac 4665 4666 ac_header= ac_cache= 4667 for ac_item in $ac_header_c_list 4668 do 4669 if test $ac_cache; then 4670 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4671 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4672 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4673 fi 4674 ac_header= ac_cache= 4675 elif test $ac_header; then 4676 ac_cache=$ac_item 4677 else 4678 ac_header=$ac_item 4679 fi 4680 done 4681 4682 4683 4684 4685 4686 4687 4688 4689 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4690 then : 4691 4692 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4693 4694 fi 4695 4696 4697 4698 4699 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4700 if test "x$ac_cv_have_decl___clang__" = xyes 4701 then : 4702 CLANGCC="yes" 4703 else case e in #( 4704 e) CLANGCC="no" ;; 4705 esac 4706 fi 4707 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4708 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4709 then : 4710 INTELCC="yes" 4711 else case e in #( 4712 e) INTELCC="no" ;; 4713 esac 4714 fi 4715 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4716 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4717 then : 4718 SUNCC="yes" 4719 else case e in #( 4720 e) SUNCC="no" ;; 4721 esac 4722 fi 4723 4724 4725 4726 4727 4728 4729 4730 4731 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4732 if test -n "$ac_tool_prefix"; then 4733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4736 printf %s "checking for $ac_word... " >&6; } 4737 if test ${ac_cv_path_PKG_CONFIG+y} 4738 then : 4739 printf %s "(cached) " >&6 4740 else case e in #( 4741 e) case $PKG_CONFIG in 4742 [\\/]* | ?:[\\/]*) 4743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4744 ;; 4745 *) 4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747 for as_dir in $PATH 4748 do 4749 IFS=$as_save_IFS 4750 case $as_dir in #((( 4751 '') as_dir=./ ;; 4752 */) ;; 4753 *) as_dir=$as_dir/ ;; 4754 esac 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4757 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4759 break 2 4760 fi 4761 done 4762 done 4763 IFS=$as_save_IFS 4764 4765 ;; 4766 esac ;; 4767 esac 4768 fi 4769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4770 if test -n "$PKG_CONFIG"; then 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4772 printf "%s\n" "$PKG_CONFIG" >&6; } 4773 else 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4775 printf "%s\n" "no" >&6; } 4776 fi 4777 4778 4779 fi 4780 if test -z "$ac_cv_path_PKG_CONFIG"; then 4781 ac_pt_PKG_CONFIG=$PKG_CONFIG 4782 # Extract the first word of "pkg-config", so it can be a program name with args. 4783 set dummy pkg-config; ac_word=$2 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4785 printf %s "checking for $ac_word... " >&6; } 4786 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4787 then : 4788 printf %s "(cached) " >&6 4789 else case e in #( 4790 e) case $ac_pt_PKG_CONFIG in 4791 [\\/]* | ?:[\\/]*) 4792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4793 ;; 4794 *) 4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4796 for as_dir in $PATH 4797 do 4798 IFS=$as_save_IFS 4799 case $as_dir in #((( 4800 '') as_dir=./ ;; 4801 */) ;; 4802 *) as_dir=$as_dir/ ;; 4803 esac 4804 for ac_exec_ext in '' $ac_executable_extensions; do 4805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4806 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4808 break 2 4809 fi 4810 done 4811 done 4812 IFS=$as_save_IFS 4813 4814 ;; 4815 esac ;; 4816 esac 4817 fi 4818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4819 if test -n "$ac_pt_PKG_CONFIG"; then 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4821 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4822 else 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4824 printf "%s\n" "no" >&6; } 4825 fi 4826 4827 if test "x$ac_pt_PKG_CONFIG" = x; then 4828 PKG_CONFIG="" 4829 else 4830 case $cross_compiling:$ac_tool_warned in 4831 yes:) 4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4834 ac_tool_warned=yes ;; 4835 esac 4836 PKG_CONFIG=$ac_pt_PKG_CONFIG 4837 fi 4838 else 4839 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4840 fi 4841 4842 fi 4843 if test -n "$PKG_CONFIG"; then 4844 _pkg_min_version=0.9.0 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4846 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4847 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4849 printf "%s\n" "yes" >&6; } 4850 else 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4852 printf "%s\n" "no" >&6; } 4853 PKG_CONFIG="" 4854 fi 4855 fi 4856 4857 4858 # Make sure we can run config.sub. 4859 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4860 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4861 4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4863 printf %s "checking build system type... " >&6; } 4864 if test ${ac_cv_build+y} 4865 then : 4866 printf %s "(cached) " >&6 4867 else case e in #( 4868 e) ac_build_alias=$build_alias 4869 test "x$ac_build_alias" = x && 4870 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4871 test "x$ac_build_alias" = x && 4872 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4873 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4874 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4875 ;; 4876 esac 4877 fi 4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4879 printf "%s\n" "$ac_cv_build" >&6; } 4880 case $ac_cv_build in 4881 *-*-*) ;; 4882 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4883 esac 4884 build=$ac_cv_build 4885 ac_save_IFS=$IFS; IFS='-' 4886 set x $ac_cv_build 4887 shift 4888 build_cpu=$1 4889 build_vendor=$2 4890 shift; shift 4891 # Remember, the first character of IFS is used to create $*, 4892 # except with old shells: 4893 build_os=$* 4894 IFS=$ac_save_IFS 4895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4896 4897 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4899 printf %s "checking host system type... " >&6; } 4900 if test ${ac_cv_host+y} 4901 then : 4902 printf %s "(cached) " >&6 4903 else case e in #( 4904 e) if test "x$host_alias" = x; then 4905 ac_cv_host=$ac_cv_build 4906 else 4907 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4908 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4909 fi 4910 ;; 4911 esac 4912 fi 4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4914 printf "%s\n" "$ac_cv_host" >&6; } 4915 case $ac_cv_host in 4916 *-*-*) ;; 4917 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4918 esac 4919 host=$ac_cv_host 4920 ac_save_IFS=$IFS; IFS='-' 4921 set x $ac_cv_host 4922 shift 4923 host_cpu=$1 4924 host_vendor=$2 4925 shift; shift 4926 # Remember, the first character of IFS is used to create $*, 4927 # except with old shells: 4928 host_os=$* 4929 IFS=$ac_save_IFS 4930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4931 4932 4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4934 printf %s "checking for a sed that does not truncate output... " >&6; } 4935 if test ${ac_cv_path_SED+y} 4936 then : 4937 printf %s "(cached) " >&6 4938 else case e in #( 4939 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4940 for ac_i in 1 2 3 4 5 6 7; do 4941 ac_script="$ac_script$as_nl$ac_script" 4942 done 4943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4944 { ac_script=; unset ac_script;} 4945 if test -z "$SED"; then 4946 ac_path_SED_found=false 4947 # Loop through the user's path and test for each of PROGNAME-LIST 4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949 for as_dir in $PATH 4950 do 4951 IFS=$as_save_IFS 4952 case $as_dir in #((( 4953 '') as_dir=./ ;; 4954 */) ;; 4955 *) as_dir=$as_dir/ ;; 4956 esac 4957 for ac_prog in sed gsed 4958 do 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4961 as_fn_executable_p "$ac_path_SED" || continue 4962 # Check for GNU ac_path_SED and select it if it is found. 4963 # Check for GNU $ac_path_SED 4964 case `"$ac_path_SED" --version 2>&1` in #( 4965 *GNU*) 4966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4967 #( 4968 *) 4969 ac_count=0 4970 printf %s 0123456789 >"conftest.in" 4971 while : 4972 do 4973 cat "conftest.in" "conftest.in" >"conftest.tmp" 4974 mv "conftest.tmp" "conftest.in" 4975 cp "conftest.in" "conftest.nl" 4976 printf "%s\n" '' >> "conftest.nl" 4977 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4979 as_fn_arith $ac_count + 1 && ac_count=$as_val 4980 if test $ac_count -gt ${ac_path_SED_max-0}; then 4981 # Best one so far, save it but keep looking for a better one 4982 ac_cv_path_SED="$ac_path_SED" 4983 ac_path_SED_max=$ac_count 4984 fi 4985 # 10*(2^10) chars as input seems more than enough 4986 test $ac_count -gt 10 && break 4987 done 4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4989 esac 4990 4991 $ac_path_SED_found && break 3 4992 done 4993 done 4994 done 4995 IFS=$as_save_IFS 4996 if test -z "$ac_cv_path_SED"; then 4997 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4998 fi 4999 else 5000 ac_cv_path_SED=$SED 5001 fi 5002 ;; 5003 esac 5004 fi 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5006 printf "%s\n" "$ac_cv_path_SED" >&6; } 5007 SED="$ac_cv_path_SED" 5008 rm -f conftest.sed 5009 5010 5011 5012 5013 5014 5015 # Check whether --enable-selective-werror was given. 5016 if test ${enable_selective_werror+y} 5017 then : 5018 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5019 else case e in #( 5020 e) SELECTIVE_WERROR=yes ;; 5021 esac 5022 fi 5023 5024 5025 5026 5027 5028 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5029 if test "x$SUNCC" = "xyes"; then 5030 BASE_CFLAGS="-v" 5031 else 5032 BASE_CFLAGS="" 5033 fi 5034 5035 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 xorg_testset_save_CFLAGS="$CFLAGS" 5050 5051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5055 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5056 then : 5057 printf %s "(cached) " >&6 5058 else case e in #( 5059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060 /* end confdefs.h. */ 5061 int i; 5062 _ACEOF 5063 if ac_fn_c_try_compile "$LINENO" 5064 then : 5065 xorg_cv_cc_flag_unknown_warning_option=yes 5066 else case e in #( 5067 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5068 esac 5069 fi 5070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5071 esac 5072 fi 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5076 CFLAGS="$xorg_testset_save_CFLAGS" 5077 fi 5078 5079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5082 fi 5083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5087 then : 5088 printf %s "(cached) " >&6 5089 else case e in #( 5090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091 /* end confdefs.h. */ 5092 int i; 5093 _ACEOF 5094 if ac_fn_c_try_compile "$LINENO" 5095 then : 5096 xorg_cv_cc_flag_unused_command_line_argument=yes 5097 else case e in #( 5098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5099 esac 5100 fi 5101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5102 esac 5103 fi 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108 fi 5109 5110 found="no" 5111 5112 if test $found = "no" ; then 5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5115 fi 5116 5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5119 fi 5120 5121 CFLAGS="$CFLAGS -Wall" 5122 5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5124 printf %s "checking if $CC supports -Wall... " >&6; } 5125 cacheid=xorg_cv_cc_flag__Wall 5126 if eval test \${$cacheid+y} 5127 then : 5128 printf %s "(cached) " >&6 5129 else case e in #( 5130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131 /* end confdefs.h. */ 5132 int i; 5133 int 5134 main (void) 5135 { 5136 5137 ; 5138 return 0; 5139 } 5140 _ACEOF 5141 if ac_fn_c_try_link "$LINENO" 5142 then : 5143 eval $cacheid=yes 5144 else case e in #( 5145 e) eval $cacheid=no ;; 5146 esac 5147 fi 5148 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5149 conftest$ac_exeext conftest.$ac_ext ;; 5150 esac 5151 fi 5152 5153 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155 5156 eval supported=\$$cacheid 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5158 printf "%s\n" "$supported" >&6; } 5159 if test "$supported" = "yes" ; then 5160 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5161 found="yes" 5162 fi 5163 fi 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 xorg_testset_save_CFLAGS="$CFLAGS" 5180 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5185 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5186 then : 5187 printf %s "(cached) " >&6 5188 else case e in #( 5189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190 /* end confdefs.h. */ 5191 int i; 5192 _ACEOF 5193 if ac_fn_c_try_compile "$LINENO" 5194 then : 5195 xorg_cv_cc_flag_unknown_warning_option=yes 5196 else case e in #( 5197 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5198 esac 5199 fi 5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5201 esac 5202 fi 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 fi 5208 5209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5217 then : 5218 printf %s "(cached) " >&6 5219 else case e in #( 5220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221 /* end confdefs.h. */ 5222 int i; 5223 _ACEOF 5224 if ac_fn_c_try_compile "$LINENO" 5225 then : 5226 xorg_cv_cc_flag_unused_command_line_argument=yes 5227 else case e in #( 5228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5229 esac 5230 fi 5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5232 esac 5233 fi 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5237 CFLAGS="$xorg_testset_save_CFLAGS" 5238 fi 5239 5240 found="no" 5241 5242 if test $found = "no" ; then 5243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5245 fi 5246 5247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5249 fi 5250 5251 CFLAGS="$CFLAGS -Wpointer-arith" 5252 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5254 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5255 cacheid=xorg_cv_cc_flag__Wpointer_arith 5256 if eval test \${$cacheid+y} 5257 then : 5258 printf %s "(cached) " >&6 5259 else case e in #( 5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261 /* end confdefs.h. */ 5262 int i; 5263 int 5264 main (void) 5265 { 5266 5267 ; 5268 return 0; 5269 } 5270 _ACEOF 5271 if ac_fn_c_try_link "$LINENO" 5272 then : 5273 eval $cacheid=yes 5274 else case e in #( 5275 e) eval $cacheid=no ;; 5276 esac 5277 fi 5278 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5279 conftest$ac_exeext conftest.$ac_ext ;; 5280 esac 5281 fi 5282 5283 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285 5286 eval supported=\$$cacheid 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5288 printf "%s\n" "$supported" >&6; } 5289 if test "$supported" = "yes" ; then 5290 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5291 found="yes" 5292 fi 5293 fi 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 xorg_testset_save_CFLAGS="$CFLAGS" 5310 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5315 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5316 then : 5317 printf %s "(cached) " >&6 5318 else case e in #( 5319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320 /* end confdefs.h. */ 5321 int i; 5322 _ACEOF 5323 if ac_fn_c_try_compile "$LINENO" 5324 then : 5325 xorg_cv_cc_flag_unknown_warning_option=yes 5326 else case e in #( 5327 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5328 esac 5329 fi 5330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5331 esac 5332 fi 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 fi 5338 5339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 fi 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5347 then : 5348 printf %s "(cached) " >&6 5349 else case e in #( 5350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5351 /* end confdefs.h. */ 5352 int i; 5353 _ACEOF 5354 if ac_fn_c_try_compile "$LINENO" 5355 then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357 else case e in #( 5358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5359 esac 5360 fi 5361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5362 esac 5363 fi 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5367 CFLAGS="$xorg_testset_save_CFLAGS" 5368 fi 5369 5370 found="no" 5371 5372 if test $found = "no" ; then 5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5375 fi 5376 5377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5379 fi 5380 5381 CFLAGS="$CFLAGS -Wmissing-declarations" 5382 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5384 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5385 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5386 if eval test \${$cacheid+y} 5387 then : 5388 printf %s "(cached) " >&6 5389 else case e in #( 5390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391 /* end confdefs.h. */ 5392 int i; 5393 int 5394 main (void) 5395 { 5396 5397 ; 5398 return 0; 5399 } 5400 _ACEOF 5401 if ac_fn_c_try_link "$LINENO" 5402 then : 5403 eval $cacheid=yes 5404 else case e in #( 5405 e) eval $cacheid=no ;; 5406 esac 5407 fi 5408 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5409 conftest$ac_exeext conftest.$ac_ext ;; 5410 esac 5411 fi 5412 5413 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415 5416 eval supported=\$$cacheid 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5418 printf "%s\n" "$supported" >&6; } 5419 if test "$supported" = "yes" ; then 5420 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5421 found="yes" 5422 fi 5423 fi 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 xorg_testset_save_CFLAGS="$CFLAGS" 5440 5441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5445 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5446 then : 5447 printf %s "(cached) " >&6 5448 else case e in #( 5449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5450 /* end confdefs.h. */ 5451 int i; 5452 _ACEOF 5453 if ac_fn_c_try_compile "$LINENO" 5454 then : 5455 xorg_cv_cc_flag_unknown_warning_option=yes 5456 else case e in #( 5457 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5458 esac 5459 fi 5460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5461 esac 5462 fi 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467 fi 5468 5469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5477 then : 5478 printf %s "(cached) " >&6 5479 else case e in #( 5480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481 /* end confdefs.h. */ 5482 int i; 5483 _ACEOF 5484 if ac_fn_c_try_compile "$LINENO" 5485 then : 5486 xorg_cv_cc_flag_unused_command_line_argument=yes 5487 else case e in #( 5488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5489 esac 5490 fi 5491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5492 esac 5493 fi 5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5495 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498 fi 5499 5500 found="no" 5501 5502 if test $found = "no" ; then 5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 fi 5506 5507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5509 fi 5510 5511 CFLAGS="$CFLAGS -Wformat=2" 5512 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5514 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5515 cacheid=xorg_cv_cc_flag__Wformat_2 5516 if eval test \${$cacheid+y} 5517 then : 5518 printf %s "(cached) " >&6 5519 else case e in #( 5520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521 /* end confdefs.h. */ 5522 int i; 5523 int 5524 main (void) 5525 { 5526 5527 ; 5528 return 0; 5529 } 5530 _ACEOF 5531 if ac_fn_c_try_link "$LINENO" 5532 then : 5533 eval $cacheid=yes 5534 else case e in #( 5535 e) eval $cacheid=no ;; 5536 esac 5537 fi 5538 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5539 conftest$ac_exeext conftest.$ac_ext ;; 5540 esac 5541 fi 5542 5543 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545 5546 eval supported=\$$cacheid 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5548 printf "%s\n" "$supported" >&6; } 5549 if test "$supported" = "yes" ; then 5550 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5551 found="yes" 5552 fi 5553 fi 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wformat" 5565 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5567 printf %s "checking if $CC supports -Wformat... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wformat 5569 if eval test \${$cacheid+y} 5570 then : 5571 printf %s "(cached) " >&6 5572 else case e in #( 5573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574 /* end confdefs.h. */ 5575 int i; 5576 int 5577 main (void) 5578 { 5579 5580 ; 5581 return 0; 5582 } 5583 _ACEOF 5584 if ac_fn_c_try_link "$LINENO" 5585 then : 5586 eval $cacheid=yes 5587 else case e in #( 5588 e) eval $cacheid=no ;; 5589 esac 5590 fi 5591 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5592 conftest$ac_exeext conftest.$ac_ext ;; 5593 esac 5594 fi 5595 5596 5597 CFLAGS="$xorg_testset_save_CFLAGS" 5598 5599 eval supported=\$$cacheid 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5601 printf "%s\n" "$supported" >&6; } 5602 if test "$supported" = "yes" ; then 5603 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5604 found="yes" 5605 fi 5606 fi 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 xorg_testset_save_CFLAGS="$CFLAGS" 5625 5626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5630 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5631 then : 5632 printf %s "(cached) " >&6 5633 else case e in #( 5634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635 /* end confdefs.h. */ 5636 int i; 5637 _ACEOF 5638 if ac_fn_c_try_compile "$LINENO" 5639 then : 5640 xorg_cv_cc_flag_unknown_warning_option=yes 5641 else case e in #( 5642 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5643 esac 5644 fi 5645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5646 esac 5647 fi 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652 fi 5653 5654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5662 then : 5663 printf %s "(cached) " >&6 5664 else case e in #( 5665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666 /* end confdefs.h. */ 5667 int i; 5668 _ACEOF 5669 if ac_fn_c_try_compile "$LINENO" 5670 then : 5671 xorg_cv_cc_flag_unused_command_line_argument=yes 5672 else case e in #( 5673 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5674 esac 5675 fi 5676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5677 esac 5678 fi 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683 fi 5684 5685 found="no" 5686 5687 if test $found = "no" ; then 5688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5690 fi 5691 5692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5694 fi 5695 5696 CFLAGS="$CFLAGS -Wstrict-prototypes" 5697 5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5699 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5700 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5701 if eval test \${$cacheid+y} 5702 then : 5703 printf %s "(cached) " >&6 5704 else case e in #( 5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706 /* end confdefs.h. */ 5707 int i; 5708 int 5709 main (void) 5710 { 5711 5712 ; 5713 return 0; 5714 } 5715 _ACEOF 5716 if ac_fn_c_try_link "$LINENO" 5717 then : 5718 eval $cacheid=yes 5719 else case e in #( 5720 e) eval $cacheid=no ;; 5721 esac 5722 fi 5723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5724 conftest$ac_exeext conftest.$ac_ext ;; 5725 esac 5726 fi 5727 5728 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730 5731 eval supported=\$$cacheid 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733 printf "%s\n" "$supported" >&6; } 5734 if test "$supported" = "yes" ; then 5735 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5736 found="yes" 5737 fi 5738 fi 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 xorg_testset_save_CFLAGS="$CFLAGS" 5755 5756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5760 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5761 then : 5762 printf %s "(cached) " >&6 5763 else case e in #( 5764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5765 /* end confdefs.h. */ 5766 int i; 5767 _ACEOF 5768 if ac_fn_c_try_compile "$LINENO" 5769 then : 5770 xorg_cv_cc_flag_unknown_warning_option=yes 5771 else case e in #( 5772 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5773 esac 5774 fi 5775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5776 esac 5777 fi 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782 fi 5783 5784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5787 fi 5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5792 then : 5793 printf %s "(cached) " >&6 5794 else case e in #( 5795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796 /* end confdefs.h. */ 5797 int i; 5798 _ACEOF 5799 if ac_fn_c_try_compile "$LINENO" 5800 then : 5801 xorg_cv_cc_flag_unused_command_line_argument=yes 5802 else case e in #( 5803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5804 esac 5805 fi 5806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5807 esac 5808 fi 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813 fi 5814 5815 found="no" 5816 5817 if test $found = "no" ; then 5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5820 fi 5821 5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5824 fi 5825 5826 CFLAGS="$CFLAGS -Wmissing-prototypes" 5827 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5829 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5830 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5831 if eval test \${$cacheid+y} 5832 then : 5833 printf %s "(cached) " >&6 5834 else case e in #( 5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836 /* end confdefs.h. */ 5837 int i; 5838 int 5839 main (void) 5840 { 5841 5842 ; 5843 return 0; 5844 } 5845 _ACEOF 5846 if ac_fn_c_try_link "$LINENO" 5847 then : 5848 eval $cacheid=yes 5849 else case e in #( 5850 e) eval $cacheid=no ;; 5851 esac 5852 fi 5853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5854 conftest$ac_exeext conftest.$ac_ext ;; 5855 esac 5856 fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863 printf "%s\n" "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5891 then : 5892 printf %s "(cached) " >&6 5893 else case e in #( 5894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895 /* end confdefs.h. */ 5896 int i; 5897 _ACEOF 5898 if ac_fn_c_try_compile "$LINENO" 5899 then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901 else case e in #( 5902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5903 esac 5904 fi 5905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5906 esac 5907 fi 5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5909 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912 fi 5913 5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 fi 5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5922 then : 5923 printf %s "(cached) " >&6 5924 else case e in #( 5925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926 /* end confdefs.h. */ 5927 int i; 5928 _ACEOF 5929 if ac_fn_c_try_compile "$LINENO" 5930 then : 5931 xorg_cv_cc_flag_unused_command_line_argument=yes 5932 else case e in #( 5933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5934 esac 5935 fi 5936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5937 esac 5938 fi 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5940 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943 fi 5944 5945 found="no" 5946 5947 if test $found = "no" ; then 5948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5950 fi 5951 5952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 fi 5955 5956 CFLAGS="$CFLAGS -Wnested-externs" 5957 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5959 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5960 cacheid=xorg_cv_cc_flag__Wnested_externs 5961 if eval test \${$cacheid+y} 5962 then : 5963 printf %s "(cached) " >&6 5964 else case e in #( 5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966 /* end confdefs.h. */ 5967 int i; 5968 int 5969 main (void) 5970 { 5971 5972 ; 5973 return 0; 5974 } 5975 _ACEOF 5976 if ac_fn_c_try_link "$LINENO" 5977 then : 5978 eval $cacheid=yes 5979 else case e in #( 5980 e) eval $cacheid=no ;; 5981 esac 5982 fi 5983 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5984 conftest$ac_exeext conftest.$ac_ext ;; 5985 esac 5986 fi 5987 5988 5989 CFLAGS="$xorg_testset_save_CFLAGS" 5990 5991 eval supported=\$$cacheid 5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5993 printf "%s\n" "$supported" >&6; } 5994 if test "$supported" = "yes" ; then 5995 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5996 found="yes" 5997 fi 5998 fi 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 xorg_testset_save_CFLAGS="$CFLAGS" 6015 6016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6020 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6021 then : 6022 printf %s "(cached) " >&6 6023 else case e in #( 6024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6025 /* end confdefs.h. */ 6026 int i; 6027 _ACEOF 6028 if ac_fn_c_try_compile "$LINENO" 6029 then : 6030 xorg_cv_cc_flag_unknown_warning_option=yes 6031 else case e in #( 6032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6033 esac 6034 fi 6035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6036 esac 6037 fi 6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6039 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042 fi 6043 6044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047 fi 6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6052 then : 6053 printf %s "(cached) " >&6 6054 else case e in #( 6055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056 /* end confdefs.h. */ 6057 int i; 6058 _ACEOF 6059 if ac_fn_c_try_compile "$LINENO" 6060 then : 6061 xorg_cv_cc_flag_unused_command_line_argument=yes 6062 else case e in #( 6063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6064 esac 6065 fi 6066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6067 esac 6068 fi 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073 fi 6074 6075 found="no" 6076 6077 if test $found = "no" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 6082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6084 fi 6085 6086 CFLAGS="$CFLAGS -Wbad-function-cast" 6087 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6089 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6090 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6091 if eval test \${$cacheid+y} 6092 then : 6093 printf %s "(cached) " >&6 6094 else case e in #( 6095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096 /* end confdefs.h. */ 6097 int i; 6098 int 6099 main (void) 6100 { 6101 6102 ; 6103 return 0; 6104 } 6105 _ACEOF 6106 if ac_fn_c_try_link "$LINENO" 6107 then : 6108 eval $cacheid=yes 6109 else case e in #( 6110 e) eval $cacheid=no ;; 6111 esac 6112 fi 6113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6114 conftest$ac_exeext conftest.$ac_ext ;; 6115 esac 6116 fi 6117 6118 6119 CFLAGS="$xorg_testset_save_CFLAGS" 6120 6121 eval supported=\$$cacheid 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6123 printf "%s\n" "$supported" >&6; } 6124 if test "$supported" = "yes" ; then 6125 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6126 found="yes" 6127 fi 6128 fi 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 xorg_testset_save_CFLAGS="$CFLAGS" 6145 6146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6150 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6151 then : 6152 printf %s "(cached) " >&6 6153 else case e in #( 6154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6155 /* end confdefs.h. */ 6156 int i; 6157 _ACEOF 6158 if ac_fn_c_try_compile "$LINENO" 6159 then : 6160 xorg_cv_cc_flag_unknown_warning_option=yes 6161 else case e in #( 6162 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6163 esac 6164 fi 6165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6166 esac 6167 fi 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172 fi 6173 6174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6177 fi 6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6182 then : 6183 printf %s "(cached) " >&6 6184 else case e in #( 6185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186 /* end confdefs.h. */ 6187 int i; 6188 _ACEOF 6189 if ac_fn_c_try_compile "$LINENO" 6190 then : 6191 xorg_cv_cc_flag_unused_command_line_argument=yes 6192 else case e in #( 6193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6194 esac 6195 fi 6196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6197 esac 6198 fi 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203 fi 6204 6205 found="no" 6206 6207 if test $found = "no" ; then 6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 fi 6211 6212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6214 fi 6215 6216 CFLAGS="$CFLAGS -Wold-style-definition" 6217 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6219 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6220 cacheid=xorg_cv_cc_flag__Wold_style_definition 6221 if eval test \${$cacheid+y} 6222 then : 6223 printf %s "(cached) " >&6 6224 else case e in #( 6225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226 /* end confdefs.h. */ 6227 int i; 6228 int 6229 main (void) 6230 { 6231 6232 ; 6233 return 0; 6234 } 6235 _ACEOF 6236 if ac_fn_c_try_link "$LINENO" 6237 then : 6238 eval $cacheid=yes 6239 else case e in #( 6240 e) eval $cacheid=no ;; 6241 esac 6242 fi 6243 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6244 conftest$ac_exeext conftest.$ac_ext ;; 6245 esac 6246 fi 6247 6248 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250 6251 eval supported=\$$cacheid 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6253 printf "%s\n" "$supported" >&6; } 6254 if test "$supported" = "yes" ; then 6255 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6256 found="yes" 6257 fi 6258 fi 6259 6260 if test $found = "no" ; then 6261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6263 fi 6264 6265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6267 fi 6268 6269 CFLAGS="$CFLAGS -fd" 6270 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6272 printf %s "checking if $CC supports -fd... " >&6; } 6273 cacheid=xorg_cv_cc_flag__fd 6274 if eval test \${$cacheid+y} 6275 then : 6276 printf %s "(cached) " >&6 6277 else case e in #( 6278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279 /* end confdefs.h. */ 6280 int i; 6281 int 6282 main (void) 6283 { 6284 6285 ; 6286 return 0; 6287 } 6288 _ACEOF 6289 if ac_fn_c_try_link "$LINENO" 6290 then : 6291 eval $cacheid=yes 6292 else case e in #( 6293 e) eval $cacheid=no ;; 6294 esac 6295 fi 6296 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6297 conftest$ac_exeext conftest.$ac_ext ;; 6298 esac 6299 fi 6300 6301 6302 CFLAGS="$xorg_testset_save_CFLAGS" 6303 6304 eval supported=\$$cacheid 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6306 printf "%s\n" "$supported" >&6; } 6307 if test "$supported" = "yes" ; then 6308 BASE_CFLAGS="$BASE_CFLAGS -fd" 6309 found="yes" 6310 fi 6311 fi 6312 6313 6314 6315 6316 6317 # This chunk adds additional warnings that could catch undesired effects. 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 xorg_testset_save_CFLAGS="$CFLAGS" 6332 6333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6337 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6338 then : 6339 printf %s "(cached) " >&6 6340 else case e in #( 6341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342 /* end confdefs.h. */ 6343 int i; 6344 _ACEOF 6345 if ac_fn_c_try_compile "$LINENO" 6346 then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348 else case e in #( 6349 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6350 esac 6351 fi 6352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6353 esac 6354 fi 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6358 CFLAGS="$xorg_testset_save_CFLAGS" 6359 fi 6360 6361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 fi 6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6369 then : 6370 printf %s "(cached) " >&6 6371 else case e in #( 6372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373 /* end confdefs.h. */ 6374 int i; 6375 _ACEOF 6376 if ac_fn_c_try_compile "$LINENO" 6377 then : 6378 xorg_cv_cc_flag_unused_command_line_argument=yes 6379 else case e in #( 6380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6381 esac 6382 fi 6383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6384 esac 6385 fi 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390 fi 6391 6392 found="no" 6393 6394 if test $found = "no" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6401 fi 6402 6403 CFLAGS="$CFLAGS -Wunused" 6404 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6406 printf %s "checking if $CC supports -Wunused... " >&6; } 6407 cacheid=xorg_cv_cc_flag__Wunused 6408 if eval test \${$cacheid+y} 6409 then : 6410 printf %s "(cached) " >&6 6411 else case e in #( 6412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413 /* end confdefs.h. */ 6414 int i; 6415 int 6416 main (void) 6417 { 6418 6419 ; 6420 return 0; 6421 } 6422 _ACEOF 6423 if ac_fn_c_try_link "$LINENO" 6424 then : 6425 eval $cacheid=yes 6426 else case e in #( 6427 e) eval $cacheid=no ;; 6428 esac 6429 fi 6430 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6431 conftest$ac_exeext conftest.$ac_ext ;; 6432 esac 6433 fi 6434 6435 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437 6438 eval supported=\$$cacheid 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6440 printf "%s\n" "$supported" >&6; } 6441 if test "$supported" = "yes" ; then 6442 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6443 found="yes" 6444 fi 6445 fi 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 xorg_testset_save_CFLAGS="$CFLAGS" 6462 6463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6467 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6468 then : 6469 printf %s "(cached) " >&6 6470 else case e in #( 6471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472 /* end confdefs.h. */ 6473 int i; 6474 _ACEOF 6475 if ac_fn_c_try_compile "$LINENO" 6476 then : 6477 xorg_cv_cc_flag_unknown_warning_option=yes 6478 else case e in #( 6479 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6480 esac 6481 fi 6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6483 esac 6484 fi 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 fi 6490 6491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6494 fi 6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6499 then : 6500 printf %s "(cached) " >&6 6501 else case e in #( 6502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503 /* end confdefs.h. */ 6504 int i; 6505 _ACEOF 6506 if ac_fn_c_try_compile "$LINENO" 6507 then : 6508 xorg_cv_cc_flag_unused_command_line_argument=yes 6509 else case e in #( 6510 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6511 esac 6512 fi 6513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6514 esac 6515 fi 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6517 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6519 CFLAGS="$xorg_testset_save_CFLAGS" 6520 fi 6521 6522 found="no" 6523 6524 if test $found = "no" ; then 6525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6527 fi 6528 6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6531 fi 6532 6533 CFLAGS="$CFLAGS -Wuninitialized" 6534 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6536 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6537 cacheid=xorg_cv_cc_flag__Wuninitialized 6538 if eval test \${$cacheid+y} 6539 then : 6540 printf %s "(cached) " >&6 6541 else case e in #( 6542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543 /* end confdefs.h. */ 6544 int i; 6545 int 6546 main (void) 6547 { 6548 6549 ; 6550 return 0; 6551 } 6552 _ACEOF 6553 if ac_fn_c_try_link "$LINENO" 6554 then : 6555 eval $cacheid=yes 6556 else case e in #( 6557 e) eval $cacheid=no ;; 6558 esac 6559 fi 6560 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6561 conftest$ac_exeext conftest.$ac_ext ;; 6562 esac 6563 fi 6564 6565 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567 6568 eval supported=\$$cacheid 6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6570 printf "%s\n" "$supported" >&6; } 6571 if test "$supported" = "yes" ; then 6572 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6573 found="yes" 6574 fi 6575 fi 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 xorg_testset_save_CFLAGS="$CFLAGS" 6592 6593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6596 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6597 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6598 then : 6599 printf %s "(cached) " >&6 6600 else case e in #( 6601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602 /* end confdefs.h. */ 6603 int i; 6604 _ACEOF 6605 if ac_fn_c_try_compile "$LINENO" 6606 then : 6607 xorg_cv_cc_flag_unknown_warning_option=yes 6608 else case e in #( 6609 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6610 esac 6611 fi 6612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6613 esac 6614 fi 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6616 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619 fi 6620 6621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6624 fi 6625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6627 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6628 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6629 then : 6630 printf %s "(cached) " >&6 6631 else case e in #( 6632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633 /* end confdefs.h. */ 6634 int i; 6635 _ACEOF 6636 if ac_fn_c_try_compile "$LINENO" 6637 then : 6638 xorg_cv_cc_flag_unused_command_line_argument=yes 6639 else case e in #( 6640 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6641 esac 6642 fi 6643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6644 esac 6645 fi 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6647 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650 fi 6651 6652 found="no" 6653 6654 if test $found = "no" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 fi 6662 6663 CFLAGS="$CFLAGS -Wshadow" 6664 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6666 printf %s "checking if $CC supports -Wshadow... " >&6; } 6667 cacheid=xorg_cv_cc_flag__Wshadow 6668 if eval test \${$cacheid+y} 6669 then : 6670 printf %s "(cached) " >&6 6671 else case e in #( 6672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673 /* end confdefs.h. */ 6674 int i; 6675 int 6676 main (void) 6677 { 6678 6679 ; 6680 return 0; 6681 } 6682 _ACEOF 6683 if ac_fn_c_try_link "$LINENO" 6684 then : 6685 eval $cacheid=yes 6686 else case e in #( 6687 e) eval $cacheid=no ;; 6688 esac 6689 fi 6690 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6691 conftest$ac_exeext conftest.$ac_ext ;; 6692 esac 6693 fi 6694 6695 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697 6698 eval supported=\$$cacheid 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6700 printf "%s\n" "$supported" >&6; } 6701 if test "$supported" = "yes" ; then 6702 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6703 found="yes" 6704 fi 6705 fi 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 xorg_testset_save_CFLAGS="$CFLAGS" 6722 6723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6726 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6727 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6728 then : 6729 printf %s "(cached) " >&6 6730 else case e in #( 6731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732 /* end confdefs.h. */ 6733 int i; 6734 _ACEOF 6735 if ac_fn_c_try_compile "$LINENO" 6736 then : 6737 xorg_cv_cc_flag_unknown_warning_option=yes 6738 else case e in #( 6739 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6740 esac 6741 fi 6742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6743 esac 6744 fi 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 fi 6750 6751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 fi 6755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6759 then : 6760 printf %s "(cached) " >&6 6761 else case e in #( 6762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763 /* end confdefs.h. */ 6764 int i; 6765 _ACEOF 6766 if ac_fn_c_try_compile "$LINENO" 6767 then : 6768 xorg_cv_cc_flag_unused_command_line_argument=yes 6769 else case e in #( 6770 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6771 esac 6772 fi 6773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6774 esac 6775 fi 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6777 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780 fi 6781 6782 found="no" 6783 6784 if test $found = "no" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6791 fi 6792 6793 CFLAGS="$CFLAGS -Wmissing-noreturn" 6794 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6796 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6797 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6798 if eval test \${$cacheid+y} 6799 then : 6800 printf %s "(cached) " >&6 6801 else case e in #( 6802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803 /* end confdefs.h. */ 6804 int i; 6805 int 6806 main (void) 6807 { 6808 6809 ; 6810 return 0; 6811 } 6812 _ACEOF 6813 if ac_fn_c_try_link "$LINENO" 6814 then : 6815 eval $cacheid=yes 6816 else case e in #( 6817 e) eval $cacheid=no ;; 6818 esac 6819 fi 6820 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6821 conftest$ac_exeext conftest.$ac_ext ;; 6822 esac 6823 fi 6824 6825 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827 6828 eval supported=\$$cacheid 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6830 printf "%s\n" "$supported" >&6; } 6831 if test "$supported" = "yes" ; then 6832 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6833 found="yes" 6834 fi 6835 fi 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 xorg_testset_save_CFLAGS="$CFLAGS" 6852 6853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6856 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6857 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6858 then : 6859 printf %s "(cached) " >&6 6860 else case e in #( 6861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862 /* end confdefs.h. */ 6863 int i; 6864 _ACEOF 6865 if ac_fn_c_try_compile "$LINENO" 6866 then : 6867 xorg_cv_cc_flag_unknown_warning_option=yes 6868 else case e in #( 6869 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6870 esac 6871 fi 6872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6873 esac 6874 fi 6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6876 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879 fi 6880 6881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 fi 6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6887 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6888 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6889 then : 6890 printf %s "(cached) " >&6 6891 else case e in #( 6892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893 /* end confdefs.h. */ 6894 int i; 6895 _ACEOF 6896 if ac_fn_c_try_compile "$LINENO" 6897 then : 6898 xorg_cv_cc_flag_unused_command_line_argument=yes 6899 else case e in #( 6900 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6901 esac 6902 fi 6903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6904 esac 6905 fi 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910 fi 6911 6912 found="no" 6913 6914 if test $found = "no" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6921 fi 6922 6923 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6924 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6926 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6927 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6928 if eval test \${$cacheid+y} 6929 then : 6930 printf %s "(cached) " >&6 6931 else case e in #( 6932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933 /* end confdefs.h. */ 6934 int i; 6935 int 6936 main (void) 6937 { 6938 6939 ; 6940 return 0; 6941 } 6942 _ACEOF 6943 if ac_fn_c_try_link "$LINENO" 6944 then : 6945 eval $cacheid=yes 6946 else case e in #( 6947 e) eval $cacheid=no ;; 6948 esac 6949 fi 6950 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6951 conftest$ac_exeext conftest.$ac_ext ;; 6952 esac 6953 fi 6954 6955 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 6958 eval supported=\$$cacheid 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6960 printf "%s\n" "$supported" >&6; } 6961 if test "$supported" = "yes" ; then 6962 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6963 found="yes" 6964 fi 6965 fi 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 xorg_testset_save_CFLAGS="$CFLAGS" 6982 6983 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6986 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6987 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6988 then : 6989 printf %s "(cached) " >&6 6990 else case e in #( 6991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6992 /* end confdefs.h. */ 6993 int i; 6994 _ACEOF 6995 if ac_fn_c_try_compile "$LINENO" 6996 then : 6997 xorg_cv_cc_flag_unknown_warning_option=yes 6998 else case e in #( 6999 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7000 esac 7001 fi 7002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7003 esac 7004 fi 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7006 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7008 CFLAGS="$xorg_testset_save_CFLAGS" 7009 fi 7010 7011 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7014 fi 7015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7017 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7018 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7019 then : 7020 printf %s "(cached) " >&6 7021 else case e in #( 7022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023 /* end confdefs.h. */ 7024 int i; 7025 _ACEOF 7026 if ac_fn_c_try_compile "$LINENO" 7027 then : 7028 xorg_cv_cc_flag_unused_command_line_argument=yes 7029 else case e in #( 7030 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7031 esac 7032 fi 7033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7034 esac 7035 fi 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040 fi 7041 7042 found="no" 7043 7044 if test $found = "no" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 fi 7052 7053 CFLAGS="$CFLAGS -Wredundant-decls" 7054 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7056 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7057 cacheid=xorg_cv_cc_flag__Wredundant_decls 7058 if eval test \${$cacheid+y} 7059 then : 7060 printf %s "(cached) " >&6 7061 else case e in #( 7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063 /* end confdefs.h. */ 7064 int i; 7065 int 7066 main (void) 7067 { 7068 7069 ; 7070 return 0; 7071 } 7072 _ACEOF 7073 if ac_fn_c_try_link "$LINENO" 7074 then : 7075 eval $cacheid=yes 7076 else case e in #( 7077 e) eval $cacheid=no ;; 7078 esac 7079 fi 7080 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7081 conftest$ac_exeext conftest.$ac_ext ;; 7082 esac 7083 fi 7084 7085 7086 CFLAGS="$xorg_testset_save_CFLAGS" 7087 7088 eval supported=\$$cacheid 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7090 printf "%s\n" "$supported" >&6; } 7091 if test "$supported" = "yes" ; then 7092 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7093 found="yes" 7094 fi 7095 fi 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 xorg_testset_save_CFLAGS="$CFLAGS" 7112 7113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7116 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7117 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7118 then : 7119 printf %s "(cached) " >&6 7120 else case e in #( 7121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122 /* end confdefs.h. */ 7123 int i; 7124 _ACEOF 7125 if ac_fn_c_try_compile "$LINENO" 7126 then : 7127 xorg_cv_cc_flag_unknown_warning_option=yes 7128 else case e in #( 7129 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7130 esac 7131 fi 7132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7133 esac 7134 fi 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7136 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139 fi 7140 7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7144 fi 7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7147 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7148 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7149 then : 7150 printf %s "(cached) " >&6 7151 else case e in #( 7152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153 /* end confdefs.h. */ 7154 int i; 7155 _ACEOF 7156 if ac_fn_c_try_compile "$LINENO" 7157 then : 7158 xorg_cv_cc_flag_unused_command_line_argument=yes 7159 else case e in #( 7160 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7161 esac 7162 fi 7163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7164 esac 7165 fi 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7167 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7169 CFLAGS="$xorg_testset_save_CFLAGS" 7170 fi 7171 7172 found="no" 7173 7174 if test $found = "no" ; then 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 fi 7178 7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7181 fi 7182 7183 CFLAGS="$CFLAGS -Wlogical-op" 7184 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7186 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7187 cacheid=xorg_cv_cc_flag__Wlogical_op 7188 if eval test \${$cacheid+y} 7189 then : 7190 printf %s "(cached) " >&6 7191 else case e in #( 7192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193 /* end confdefs.h. */ 7194 int i; 7195 int 7196 main (void) 7197 { 7198 7199 ; 7200 return 0; 7201 } 7202 _ACEOF 7203 if ac_fn_c_try_link "$LINENO" 7204 then : 7205 eval $cacheid=yes 7206 else case e in #( 7207 e) eval $cacheid=no ;; 7208 esac 7209 fi 7210 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7211 conftest$ac_exeext conftest.$ac_ext ;; 7212 esac 7213 fi 7214 7215 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217 7218 eval supported=\$$cacheid 7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7220 printf "%s\n" "$supported" >&6; } 7221 if test "$supported" = "yes" ; then 7222 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7223 found="yes" 7224 fi 7225 fi 7226 7227 7228 7229 # These are currently disabled because they are noisy. They will be enabled 7230 # in the future once the codebase is sufficiently modernized to silence 7231 # them. For now, I don't want them to drown out the other warnings. 7232 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7233 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7234 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7235 7236 # Turn some warnings into errors, so we don't accidentally get successful builds 7237 # when there are problems that should be fixed. 7238 7239 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 xorg_testset_save_CFLAGS="$CFLAGS" 7254 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7259 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7260 then : 7261 printf %s "(cached) " >&6 7262 else case e in #( 7263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264 /* end confdefs.h. */ 7265 int i; 7266 _ACEOF 7267 if ac_fn_c_try_compile "$LINENO" 7268 then : 7269 xorg_cv_cc_flag_unknown_warning_option=yes 7270 else case e in #( 7271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7272 esac 7273 fi 7274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7275 esac 7276 fi 7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7278 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281 fi 7282 7283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7286 fi 7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7289 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7290 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7291 then : 7292 printf %s "(cached) " >&6 7293 else case e in #( 7294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295 /* end confdefs.h. */ 7296 int i; 7297 _ACEOF 7298 if ac_fn_c_try_compile "$LINENO" 7299 then : 7300 xorg_cv_cc_flag_unused_command_line_argument=yes 7301 else case e in #( 7302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7303 esac 7304 fi 7305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7306 esac 7307 fi 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7309 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312 fi 7313 7314 found="no" 7315 7316 if test $found = "no" ; then 7317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319 fi 7320 7321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 fi 7324 7325 CFLAGS="$CFLAGS -Werror=implicit" 7326 7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7328 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7329 cacheid=xorg_cv_cc_flag__Werror_implicit 7330 if eval test \${$cacheid+y} 7331 then : 7332 printf %s "(cached) " >&6 7333 else case e in #( 7334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335 /* end confdefs.h. */ 7336 int i; 7337 int 7338 main (void) 7339 { 7340 7341 ; 7342 return 0; 7343 } 7344 _ACEOF 7345 if ac_fn_c_try_link "$LINENO" 7346 then : 7347 eval $cacheid=yes 7348 else case e in #( 7349 e) eval $cacheid=no ;; 7350 esac 7351 fi 7352 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7353 conftest$ac_exeext conftest.$ac_ext ;; 7354 esac 7355 fi 7356 7357 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359 7360 eval supported=\$$cacheid 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7362 printf "%s\n" "$supported" >&6; } 7363 if test "$supported" = "yes" ; then 7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7365 found="yes" 7366 fi 7367 fi 7368 7369 if test $found = "no" ; then 7370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 7374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7376 fi 7377 7378 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7379 7380 { 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 7381 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7382 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7383 if eval test \${$cacheid+y} 7384 then : 7385 printf %s "(cached) " >&6 7386 else case e in #( 7387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388 /* end confdefs.h. */ 7389 int i; 7390 int 7391 main (void) 7392 { 7393 7394 ; 7395 return 0; 7396 } 7397 _ACEOF 7398 if ac_fn_c_try_link "$LINENO" 7399 then : 7400 eval $cacheid=yes 7401 else case e in #( 7402 e) eval $cacheid=no ;; 7403 esac 7404 fi 7405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7406 conftest$ac_exeext conftest.$ac_ext ;; 7407 esac 7408 fi 7409 7410 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412 7413 eval supported=\$$cacheid 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415 printf "%s\n" "$supported" >&6; } 7416 if test "$supported" = "yes" ; then 7417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7418 found="yes" 7419 fi 7420 fi 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 xorg_testset_save_CFLAGS="$CFLAGS" 7437 7438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7442 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7443 then : 7444 printf %s "(cached) " >&6 7445 else case e in #( 7446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447 /* end confdefs.h. */ 7448 int i; 7449 _ACEOF 7450 if ac_fn_c_try_compile "$LINENO" 7451 then : 7452 xorg_cv_cc_flag_unknown_warning_option=yes 7453 else case e in #( 7454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7455 esac 7456 fi 7457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7458 esac 7459 fi 7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7461 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464 fi 7465 7466 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 fi 7470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7472 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7473 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7474 then : 7475 printf %s "(cached) " >&6 7476 else case e in #( 7477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478 /* end confdefs.h. */ 7479 int i; 7480 _ACEOF 7481 if ac_fn_c_try_compile "$LINENO" 7482 then : 7483 xorg_cv_cc_flag_unused_command_line_argument=yes 7484 else case e in #( 7485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7486 esac 7487 fi 7488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7489 esac 7490 fi 7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495 fi 7496 7497 found="no" 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -Werror=nonnull" 7509 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7511 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7512 cacheid=xorg_cv_cc_flag__Werror_nonnull 7513 if eval test \${$cacheid+y} 7514 then : 7515 printf %s "(cached) " >&6 7516 else case e in #( 7517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518 /* end confdefs.h. */ 7519 int i; 7520 int 7521 main (void) 7522 { 7523 7524 ; 7525 return 0; 7526 } 7527 _ACEOF 7528 if ac_fn_c_try_link "$LINENO" 7529 then : 7530 eval $cacheid=yes 7531 else case e in #( 7532 e) eval $cacheid=no ;; 7533 esac 7534 fi 7535 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7536 conftest$ac_exeext conftest.$ac_ext ;; 7537 esac 7538 fi 7539 7540 7541 CFLAGS="$xorg_testset_save_CFLAGS" 7542 7543 eval supported=\$$cacheid 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7545 printf "%s\n" "$supported" >&6; } 7546 if test "$supported" = "yes" ; then 7547 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7548 found="yes" 7549 fi 7550 fi 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 xorg_testset_save_CFLAGS="$CFLAGS" 7567 7568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7571 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7572 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7573 then : 7574 printf %s "(cached) " >&6 7575 else case e in #( 7576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577 /* end confdefs.h. */ 7578 int i; 7579 _ACEOF 7580 if ac_fn_c_try_compile "$LINENO" 7581 then : 7582 xorg_cv_cc_flag_unknown_warning_option=yes 7583 else case e in #( 7584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7585 esac 7586 fi 7587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7588 esac 7589 fi 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7593 CFLAGS="$xorg_testset_save_CFLAGS" 7594 fi 7595 7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7604 then : 7605 printf %s "(cached) " >&6 7606 else case e in #( 7607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7608 /* end confdefs.h. */ 7609 int i; 7610 _ACEOF 7611 if ac_fn_c_try_compile "$LINENO" 7612 then : 7613 xorg_cv_cc_flag_unused_command_line_argument=yes 7614 else case e in #( 7615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7616 esac 7617 fi 7618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7619 esac 7620 fi 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625 fi 7626 7627 found="no" 7628 7629 if test $found = "no" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 fi 7637 7638 CFLAGS="$CFLAGS -Werror=init-self" 7639 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7641 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7642 cacheid=xorg_cv_cc_flag__Werror_init_self 7643 if eval test \${$cacheid+y} 7644 then : 7645 printf %s "(cached) " >&6 7646 else case e in #( 7647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648 /* end confdefs.h. */ 7649 int i; 7650 int 7651 main (void) 7652 { 7653 7654 ; 7655 return 0; 7656 } 7657 _ACEOF 7658 if ac_fn_c_try_link "$LINENO" 7659 then : 7660 eval $cacheid=yes 7661 else case e in #( 7662 e) eval $cacheid=no ;; 7663 esac 7664 fi 7665 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7666 conftest$ac_exeext conftest.$ac_ext ;; 7667 esac 7668 fi 7669 7670 7671 CFLAGS="$xorg_testset_save_CFLAGS" 7672 7673 eval supported=\$$cacheid 7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7675 printf "%s\n" "$supported" >&6; } 7676 if test "$supported" = "yes" ; then 7677 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7678 found="yes" 7679 fi 7680 fi 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 xorg_testset_save_CFLAGS="$CFLAGS" 7697 7698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7702 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7703 then : 7704 printf %s "(cached) " >&6 7705 else case e in #( 7706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707 /* end confdefs.h. */ 7708 int i; 7709 _ACEOF 7710 if ac_fn_c_try_compile "$LINENO" 7711 then : 7712 xorg_cv_cc_flag_unknown_warning_option=yes 7713 else case e in #( 7714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7715 esac 7716 fi 7717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7718 esac 7719 fi 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724 fi 7725 7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7729 fi 7730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7734 then : 7735 printf %s "(cached) " >&6 7736 else case e in #( 7737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738 /* end confdefs.h. */ 7739 int i; 7740 _ACEOF 7741 if ac_fn_c_try_compile "$LINENO" 7742 then : 7743 xorg_cv_cc_flag_unused_command_line_argument=yes 7744 else case e in #( 7745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7746 esac 7747 fi 7748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7749 esac 7750 fi 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755 fi 7756 7757 found="no" 7758 7759 if test $found = "no" ; then 7760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 fi 7763 7764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7766 fi 7767 7768 CFLAGS="$CFLAGS -Werror=main" 7769 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7771 printf %s "checking if $CC supports -Werror=main... " >&6; } 7772 cacheid=xorg_cv_cc_flag__Werror_main 7773 if eval test \${$cacheid+y} 7774 then : 7775 printf %s "(cached) " >&6 7776 else case e in #( 7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778 /* end confdefs.h. */ 7779 int i; 7780 int 7781 main (void) 7782 { 7783 7784 ; 7785 return 0; 7786 } 7787 _ACEOF 7788 if ac_fn_c_try_link "$LINENO" 7789 then : 7790 eval $cacheid=yes 7791 else case e in #( 7792 e) eval $cacheid=no ;; 7793 esac 7794 fi 7795 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7796 conftest$ac_exeext conftest.$ac_ext ;; 7797 esac 7798 fi 7799 7800 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802 7803 eval supported=\$$cacheid 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7805 printf "%s\n" "$supported" >&6; } 7806 if test "$supported" = "yes" ; then 7807 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7808 found="yes" 7809 fi 7810 fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 xorg_testset_save_CFLAGS="$CFLAGS" 7827 7828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7832 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7833 then : 7834 printf %s "(cached) " >&6 7835 else case e in #( 7836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837 /* end confdefs.h. */ 7838 int i; 7839 _ACEOF 7840 if ac_fn_c_try_compile "$LINENO" 7841 then : 7842 xorg_cv_cc_flag_unknown_warning_option=yes 7843 else case e in #( 7844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7845 esac 7846 fi 7847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7848 esac 7849 fi 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854 fi 7855 7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7859 fi 7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7864 then : 7865 printf %s "(cached) " >&6 7866 else case e in #( 7867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868 /* end confdefs.h. */ 7869 int i; 7870 _ACEOF 7871 if ac_fn_c_try_compile "$LINENO" 7872 then : 7873 xorg_cv_cc_flag_unused_command_line_argument=yes 7874 else case e in #( 7875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7876 esac 7877 fi 7878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7879 esac 7880 fi 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7884 CFLAGS="$xorg_testset_save_CFLAGS" 7885 fi 7886 7887 found="no" 7888 7889 if test $found = "no" ; then 7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 fi 7893 7894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7896 fi 7897 7898 CFLAGS="$CFLAGS -Werror=missing-braces" 7899 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7901 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7902 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7903 if eval test \${$cacheid+y} 7904 then : 7905 printf %s "(cached) " >&6 7906 else case e in #( 7907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908 /* end confdefs.h. */ 7909 int i; 7910 int 7911 main (void) 7912 { 7913 7914 ; 7915 return 0; 7916 } 7917 _ACEOF 7918 if ac_fn_c_try_link "$LINENO" 7919 then : 7920 eval $cacheid=yes 7921 else case e in #( 7922 e) eval $cacheid=no ;; 7923 esac 7924 fi 7925 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7926 conftest$ac_exeext conftest.$ac_ext ;; 7927 esac 7928 fi 7929 7930 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932 7933 eval supported=\$$cacheid 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7935 printf "%s\n" "$supported" >&6; } 7936 if test "$supported" = "yes" ; then 7937 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7938 found="yes" 7939 fi 7940 fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 xorg_testset_save_CFLAGS="$CFLAGS" 7957 7958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7962 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7963 then : 7964 printf %s "(cached) " >&6 7965 else case e in #( 7966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967 /* end confdefs.h. */ 7968 int i; 7969 _ACEOF 7970 if ac_fn_c_try_compile "$LINENO" 7971 then : 7972 xorg_cv_cc_flag_unknown_warning_option=yes 7973 else case e in #( 7974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7975 esac 7976 fi 7977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7978 esac 7979 fi 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984 fi 7985 7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7989 fi 7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7994 then : 7995 printf %s "(cached) " >&6 7996 else case e in #( 7997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998 /* end confdefs.h. */ 7999 int i; 8000 _ACEOF 8001 if ac_fn_c_try_compile "$LINENO" 8002 then : 8003 xorg_cv_cc_flag_unused_command_line_argument=yes 8004 else case e in #( 8005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8006 esac 8007 fi 8008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8009 esac 8010 fi 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015 fi 8016 8017 found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Werror=sequence-point" 8029 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8031 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8032 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8033 if eval test \${$cacheid+y} 8034 then : 8035 printf %s "(cached) " >&6 8036 else case e in #( 8037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038 /* end confdefs.h. */ 8039 int i; 8040 int 8041 main (void) 8042 { 8043 8044 ; 8045 return 0; 8046 } 8047 _ACEOF 8048 if ac_fn_c_try_link "$LINENO" 8049 then : 8050 eval $cacheid=yes 8051 else case e in #( 8052 e) eval $cacheid=no ;; 8053 esac 8054 fi 8055 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8056 conftest$ac_exeext conftest.$ac_ext ;; 8057 esac 8058 fi 8059 8060 8061 CFLAGS="$xorg_testset_save_CFLAGS" 8062 8063 eval supported=\$$cacheid 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8065 printf "%s\n" "$supported" >&6; } 8066 if test "$supported" = "yes" ; then 8067 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8068 found="yes" 8069 fi 8070 fi 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 xorg_testset_save_CFLAGS="$CFLAGS" 8087 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8092 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8093 then : 8094 printf %s "(cached) " >&6 8095 else case e in #( 8096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097 /* end confdefs.h. */ 8098 int i; 8099 _ACEOF 8100 if ac_fn_c_try_compile "$LINENO" 8101 then : 8102 xorg_cv_cc_flag_unknown_warning_option=yes 8103 else case e in #( 8104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8105 esac 8106 fi 8107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8108 esac 8109 fi 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8111 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 fi 8115 8116 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8122 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8123 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8124 then : 8125 printf %s "(cached) " >&6 8126 else case e in #( 8127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128 /* end confdefs.h. */ 8129 int i; 8130 _ACEOF 8131 if ac_fn_c_try_compile "$LINENO" 8132 then : 8133 xorg_cv_cc_flag_unused_command_line_argument=yes 8134 else case e in #( 8135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8136 esac 8137 fi 8138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8139 esac 8140 fi 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145 fi 8146 8147 found="no" 8148 8149 if test $found = "no" ; then 8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8156 fi 8157 8158 CFLAGS="$CFLAGS -Werror=return-type" 8159 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8161 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8162 cacheid=xorg_cv_cc_flag__Werror_return_type 8163 if eval test \${$cacheid+y} 8164 then : 8165 printf %s "(cached) " >&6 8166 else case e in #( 8167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168 /* end confdefs.h. */ 8169 int i; 8170 int 8171 main (void) 8172 { 8173 8174 ; 8175 return 0; 8176 } 8177 _ACEOF 8178 if ac_fn_c_try_link "$LINENO" 8179 then : 8180 eval $cacheid=yes 8181 else case e in #( 8182 e) eval $cacheid=no ;; 8183 esac 8184 fi 8185 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8186 conftest$ac_exeext conftest.$ac_ext ;; 8187 esac 8188 fi 8189 8190 8191 CFLAGS="$xorg_testset_save_CFLAGS" 8192 8193 eval supported=\$$cacheid 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8195 printf "%s\n" "$supported" >&6; } 8196 if test "$supported" = "yes" ; then 8197 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8198 found="yes" 8199 fi 8200 fi 8201 8202 if test $found = "no" ; then 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 fi 8206 8207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8209 fi 8210 8211 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8212 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8214 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8215 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8216 if eval test \${$cacheid+y} 8217 then : 8218 printf %s "(cached) " >&6 8219 else case e in #( 8220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221 /* end confdefs.h. */ 8222 int i; 8223 int 8224 main (void) 8225 { 8226 8227 ; 8228 return 0; 8229 } 8230 _ACEOF 8231 if ac_fn_c_try_link "$LINENO" 8232 then : 8233 eval $cacheid=yes 8234 else case e in #( 8235 e) eval $cacheid=no ;; 8236 esac 8237 fi 8238 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8239 conftest$ac_exeext conftest.$ac_ext ;; 8240 esac 8241 fi 8242 8243 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 eval supported=\$$cacheid 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8248 printf "%s\n" "$supported" >&6; } 8249 if test "$supported" = "yes" ; then 8250 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8251 found="yes" 8252 fi 8253 fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 xorg_testset_save_CFLAGS="$CFLAGS" 8270 8271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8275 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8276 then : 8277 printf %s "(cached) " >&6 8278 else case e in #( 8279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280 /* end confdefs.h. */ 8281 int i; 8282 _ACEOF 8283 if ac_fn_c_try_compile "$LINENO" 8284 then : 8285 xorg_cv_cc_flag_unknown_warning_option=yes 8286 else case e in #( 8287 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8288 esac 8289 fi 8290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8291 esac 8292 fi 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8296 CFLAGS="$xorg_testset_save_CFLAGS" 8297 fi 8298 8299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 fi 8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8307 then : 8308 printf %s "(cached) " >&6 8309 else case e in #( 8310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311 /* end confdefs.h. */ 8312 int i; 8313 _ACEOF 8314 if ac_fn_c_try_compile "$LINENO" 8315 then : 8316 xorg_cv_cc_flag_unused_command_line_argument=yes 8317 else case e in #( 8318 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8319 esac 8320 fi 8321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8322 esac 8323 fi 8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328 fi 8329 8330 found="no" 8331 8332 if test $found = "no" ; then 8333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 fi 8336 8337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8339 fi 8340 8341 CFLAGS="$CFLAGS -Werror=trigraphs" 8342 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8344 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8345 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8346 if eval test \${$cacheid+y} 8347 then : 8348 printf %s "(cached) " >&6 8349 else case e in #( 8350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351 /* end confdefs.h. */ 8352 int i; 8353 int 8354 main (void) 8355 { 8356 8357 ; 8358 return 0; 8359 } 8360 _ACEOF 8361 if ac_fn_c_try_link "$LINENO" 8362 then : 8363 eval $cacheid=yes 8364 else case e in #( 8365 e) eval $cacheid=no ;; 8366 esac 8367 fi 8368 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8369 conftest$ac_exeext conftest.$ac_ext ;; 8370 esac 8371 fi 8372 8373 8374 CFLAGS="$xorg_testset_save_CFLAGS" 8375 8376 eval supported=\$$cacheid 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8378 printf "%s\n" "$supported" >&6; } 8379 if test "$supported" = "yes" ; then 8380 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8381 found="yes" 8382 fi 8383 fi 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 xorg_testset_save_CFLAGS="$CFLAGS" 8400 8401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8405 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8406 then : 8407 printf %s "(cached) " >&6 8408 else case e in #( 8409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410 /* end confdefs.h. */ 8411 int i; 8412 _ACEOF 8413 if ac_fn_c_try_compile "$LINENO" 8414 then : 8415 xorg_cv_cc_flag_unknown_warning_option=yes 8416 else case e in #( 8417 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8418 esac 8419 fi 8420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8421 esac 8422 fi 8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427 fi 8428 8429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432 fi 8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8437 then : 8438 printf %s "(cached) " >&6 8439 else case e in #( 8440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441 /* end confdefs.h. */ 8442 int i; 8443 _ACEOF 8444 if ac_fn_c_try_compile "$LINENO" 8445 then : 8446 xorg_cv_cc_flag_unused_command_line_argument=yes 8447 else case e in #( 8448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8449 esac 8450 fi 8451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8452 esac 8453 fi 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8455 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 fi 8459 8460 found="no" 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -Werror=array-bounds" 8472 8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8474 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8475 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8476 if eval test \${$cacheid+y} 8477 then : 8478 printf %s "(cached) " >&6 8479 else case e in #( 8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481 /* end confdefs.h. */ 8482 int i; 8483 int 8484 main (void) 8485 { 8486 8487 ; 8488 return 0; 8489 } 8490 _ACEOF 8491 if ac_fn_c_try_link "$LINENO" 8492 then : 8493 eval $cacheid=yes 8494 else case e in #( 8495 e) eval $cacheid=no ;; 8496 esac 8497 fi 8498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8499 conftest$ac_exeext conftest.$ac_ext ;; 8500 esac 8501 fi 8502 8503 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505 8506 eval supported=\$$cacheid 8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8508 printf "%s\n" "$supported" >&6; } 8509 if test "$supported" = "yes" ; then 8510 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8511 found="yes" 8512 fi 8513 fi 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 xorg_testset_save_CFLAGS="$CFLAGS" 8530 8531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8535 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8536 then : 8537 printf %s "(cached) " >&6 8538 else case e in #( 8539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540 /* end confdefs.h. */ 8541 int i; 8542 _ACEOF 8543 if ac_fn_c_try_compile "$LINENO" 8544 then : 8545 xorg_cv_cc_flag_unknown_warning_option=yes 8546 else case e in #( 8547 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8548 esac 8549 fi 8550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8551 esac 8552 fi 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 fi 8558 8559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8562 fi 8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8567 then : 8568 printf %s "(cached) " >&6 8569 else case e in #( 8570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571 /* end confdefs.h. */ 8572 int i; 8573 _ACEOF 8574 if ac_fn_c_try_compile "$LINENO" 8575 then : 8576 xorg_cv_cc_flag_unused_command_line_argument=yes 8577 else case e in #( 8578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8579 esac 8580 fi 8581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8582 esac 8583 fi 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588 fi 8589 8590 found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Werror=write-strings" 8602 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8604 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Werror_write_strings 8606 if eval test \${$cacheid+y} 8607 then : 8608 printf %s "(cached) " >&6 8609 else case e in #( 8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611 /* end confdefs.h. */ 8612 int i; 8613 int 8614 main (void) 8615 { 8616 8617 ; 8618 return 0; 8619 } 8620 _ACEOF 8621 if ac_fn_c_try_link "$LINENO" 8622 then : 8623 eval $cacheid=yes 8624 else case e in #( 8625 e) eval $cacheid=no ;; 8626 esac 8627 fi 8628 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8629 conftest$ac_exeext conftest.$ac_ext ;; 8630 esac 8631 fi 8632 8633 8634 CFLAGS="$xorg_testset_save_CFLAGS" 8635 8636 eval supported=\$$cacheid 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8638 printf "%s\n" "$supported" >&6; } 8639 if test "$supported" = "yes" ; then 8640 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8641 found="yes" 8642 fi 8643 fi 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 xorg_testset_save_CFLAGS="$CFLAGS" 8660 8661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8665 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8666 then : 8667 printf %s "(cached) " >&6 8668 else case e in #( 8669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670 /* end confdefs.h. */ 8671 int i; 8672 _ACEOF 8673 if ac_fn_c_try_compile "$LINENO" 8674 then : 8675 xorg_cv_cc_flag_unknown_warning_option=yes 8676 else case e in #( 8677 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8678 esac 8679 fi 8680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8681 esac 8682 fi 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 fi 8688 8689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692 fi 8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8697 then : 8698 printf %s "(cached) " >&6 8699 else case e in #( 8700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701 /* end confdefs.h. */ 8702 int i; 8703 _ACEOF 8704 if ac_fn_c_try_compile "$LINENO" 8705 then : 8706 xorg_cv_cc_flag_unused_command_line_argument=yes 8707 else case e in #( 8708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8709 esac 8710 fi 8711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8712 esac 8713 fi 8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718 fi 8719 8720 found="no" 8721 8722 if test $found = "no" ; then 8723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 fi 8726 8727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8729 fi 8730 8731 CFLAGS="$CFLAGS -Werror=address" 8732 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8734 printf %s "checking if $CC supports -Werror=address... " >&6; } 8735 cacheid=xorg_cv_cc_flag__Werror_address 8736 if eval test \${$cacheid+y} 8737 then : 8738 printf %s "(cached) " >&6 8739 else case e in #( 8740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741 /* end confdefs.h. */ 8742 int i; 8743 int 8744 main (void) 8745 { 8746 8747 ; 8748 return 0; 8749 } 8750 _ACEOF 8751 if ac_fn_c_try_link "$LINENO" 8752 then : 8753 eval $cacheid=yes 8754 else case e in #( 8755 e) eval $cacheid=no ;; 8756 esac 8757 fi 8758 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8759 conftest$ac_exeext conftest.$ac_ext ;; 8760 esac 8761 fi 8762 8763 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765 8766 eval supported=\$$cacheid 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8768 printf "%s\n" "$supported" >&6; } 8769 if test "$supported" = "yes" ; then 8770 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8771 found="yes" 8772 fi 8773 fi 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 xorg_testset_save_CFLAGS="$CFLAGS" 8790 8791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8794 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8795 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8796 then : 8797 printf %s "(cached) " >&6 8798 else case e in #( 8799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800 /* end confdefs.h. */ 8801 int i; 8802 _ACEOF 8803 if ac_fn_c_try_compile "$LINENO" 8804 then : 8805 xorg_cv_cc_flag_unknown_warning_option=yes 8806 else case e in #( 8807 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8808 esac 8809 fi 8810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8811 esac 8812 fi 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817 fi 8818 8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 fi 8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8827 then : 8828 printf %s "(cached) " >&6 8829 else case e in #( 8830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831 /* end confdefs.h. */ 8832 int i; 8833 _ACEOF 8834 if ac_fn_c_try_compile "$LINENO" 8835 then : 8836 xorg_cv_cc_flag_unused_command_line_argument=yes 8837 else case e in #( 8838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8839 esac 8840 fi 8841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8842 esac 8843 fi 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848 fi 8849 8850 found="no" 8851 8852 if test $found = "no" ; then 8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 fi 8856 8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8859 fi 8860 8861 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8862 8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8864 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8865 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8866 if eval test \${$cacheid+y} 8867 then : 8868 printf %s "(cached) " >&6 8869 else case e in #( 8870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871 /* end confdefs.h. */ 8872 int i; 8873 int 8874 main (void) 8875 { 8876 8877 ; 8878 return 0; 8879 } 8880 _ACEOF 8881 if ac_fn_c_try_link "$LINENO" 8882 then : 8883 eval $cacheid=yes 8884 else case e in #( 8885 e) eval $cacheid=no ;; 8886 esac 8887 fi 8888 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8889 conftest$ac_exeext conftest.$ac_ext ;; 8890 esac 8891 fi 8892 8893 8894 CFLAGS="$xorg_testset_save_CFLAGS" 8895 8896 eval supported=\$$cacheid 8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8898 printf "%s\n" "$supported" >&6; } 8899 if test "$supported" = "yes" ; then 8900 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8901 found="yes" 8902 fi 8903 fi 8904 8905 if test $found = "no" ; then 8906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8908 fi 8909 8910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8912 fi 8913 8914 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8915 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8917 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8918 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8919 if eval test \${$cacheid+y} 8920 then : 8921 printf %s "(cached) " >&6 8922 else case e in #( 8923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8924 /* end confdefs.h. */ 8925 int i; 8926 int 8927 main (void) 8928 { 8929 8930 ; 8931 return 0; 8932 } 8933 _ACEOF 8934 if ac_fn_c_try_link "$LINENO" 8935 then : 8936 eval $cacheid=yes 8937 else case e in #( 8938 e) eval $cacheid=no ;; 8939 esac 8940 fi 8941 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8942 conftest$ac_exeext conftest.$ac_ext ;; 8943 esac 8944 fi 8945 8946 8947 CFLAGS="$xorg_testset_save_CFLAGS" 8948 8949 eval supported=\$$cacheid 8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8951 printf "%s\n" "$supported" >&6; } 8952 if test "$supported" = "yes" ; then 8953 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8954 found="yes" 8955 fi 8956 fi 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 xorg_testset_save_CFLAGS="$CFLAGS" 8973 8974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8978 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8979 then : 8980 printf %s "(cached) " >&6 8981 else case e in #( 8982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983 /* end confdefs.h. */ 8984 int i; 8985 _ACEOF 8986 if ac_fn_c_try_compile "$LINENO" 8987 then : 8988 xorg_cv_cc_flag_unknown_warning_option=yes 8989 else case e in #( 8990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8991 esac 8992 fi 8993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8994 esac 8995 fi 8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000 fi 9001 9002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 fi 9006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9010 then : 9011 printf %s "(cached) " >&6 9012 else case e in #( 9013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014 /* end confdefs.h. */ 9015 int i; 9016 _ACEOF 9017 if ac_fn_c_try_compile "$LINENO" 9018 then : 9019 xorg_cv_cc_flag_unused_command_line_argument=yes 9020 else case e in #( 9021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9022 esac 9023 fi 9024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9025 esac 9026 fi 9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031 fi 9032 9033 found="no" 9034 9035 if test $found = "no" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 9040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9042 fi 9043 9044 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9045 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9047 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9048 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9049 if eval test \${$cacheid+y} 9050 then : 9051 printf %s "(cached) " >&6 9052 else case e in #( 9053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054 /* end confdefs.h. */ 9055 int i; 9056 int 9057 main (void) 9058 { 9059 9060 ; 9061 return 0; 9062 } 9063 _ACEOF 9064 if ac_fn_c_try_link "$LINENO" 9065 then : 9066 eval $cacheid=yes 9067 else case e in #( 9068 e) eval $cacheid=no ;; 9069 esac 9070 fi 9071 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9072 conftest$ac_exeext conftest.$ac_ext ;; 9073 esac 9074 fi 9075 9076 9077 CFLAGS="$xorg_testset_save_CFLAGS" 9078 9079 eval supported=\$$cacheid 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9081 printf "%s\n" "$supported" >&6; } 9082 if test "$supported" = "yes" ; then 9083 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9084 found="yes" 9085 fi 9086 fi 9087 9088 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9089 else 9090 { 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 9091 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;} 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 xorg_testset_save_CFLAGS="$CFLAGS" 9106 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9111 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9112 then : 9113 printf %s "(cached) " >&6 9114 else case e in #( 9115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116 /* end confdefs.h. */ 9117 int i; 9118 _ACEOF 9119 if ac_fn_c_try_compile "$LINENO" 9120 then : 9121 xorg_cv_cc_flag_unknown_warning_option=yes 9122 else case e in #( 9123 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9124 esac 9125 fi 9126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9127 esac 9128 fi 9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133 fi 9134 9135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 fi 9139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9143 then : 9144 printf %s "(cached) " >&6 9145 else case e in #( 9146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147 /* end confdefs.h. */ 9148 int i; 9149 _ACEOF 9150 if ac_fn_c_try_compile "$LINENO" 9151 then : 9152 xorg_cv_cc_flag_unused_command_line_argument=yes 9153 else case e in #( 9154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9155 esac 9156 fi 9157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9158 esac 9159 fi 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164 fi 9165 9166 found="no" 9167 9168 if test $found = "no" ; then 9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 fi 9172 9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9175 fi 9176 9177 CFLAGS="$CFLAGS -Wimplicit" 9178 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9180 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9181 cacheid=xorg_cv_cc_flag__Wimplicit 9182 if eval test \${$cacheid+y} 9183 then : 9184 printf %s "(cached) " >&6 9185 else case e in #( 9186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187 /* end confdefs.h. */ 9188 int i; 9189 int 9190 main (void) 9191 { 9192 9193 ; 9194 return 0; 9195 } 9196 _ACEOF 9197 if ac_fn_c_try_link "$LINENO" 9198 then : 9199 eval $cacheid=yes 9200 else case e in #( 9201 e) eval $cacheid=no ;; 9202 esac 9203 fi 9204 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9205 conftest$ac_exeext conftest.$ac_ext ;; 9206 esac 9207 fi 9208 9209 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211 9212 eval supported=\$$cacheid 9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9214 printf "%s\n" "$supported" >&6; } 9215 if test "$supported" = "yes" ; then 9216 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9217 found="yes" 9218 fi 9219 fi 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 xorg_testset_save_CFLAGS="$CFLAGS" 9236 9237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9241 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9242 then : 9243 printf %s "(cached) " >&6 9244 else case e in #( 9245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246 /* end confdefs.h. */ 9247 int i; 9248 _ACEOF 9249 if ac_fn_c_try_compile "$LINENO" 9250 then : 9251 xorg_cv_cc_flag_unknown_warning_option=yes 9252 else case e in #( 9253 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9254 esac 9255 fi 9256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9257 esac 9258 fi 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9260 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 fi 9264 9265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 fi 9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9273 then : 9274 printf %s "(cached) " >&6 9275 else case e in #( 9276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9277 /* end confdefs.h. */ 9278 int i; 9279 _ACEOF 9280 if ac_fn_c_try_compile "$LINENO" 9281 then : 9282 xorg_cv_cc_flag_unused_command_line_argument=yes 9283 else case e in #( 9284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9285 esac 9286 fi 9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9288 esac 9289 fi 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294 fi 9295 9296 found="no" 9297 9298 if test $found = "no" ; then 9299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301 fi 9302 9303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9305 fi 9306 9307 CFLAGS="$CFLAGS -Wnonnull" 9308 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9310 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9311 cacheid=xorg_cv_cc_flag__Wnonnull 9312 if eval test \${$cacheid+y} 9313 then : 9314 printf %s "(cached) " >&6 9315 else case e in #( 9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317 /* end confdefs.h. */ 9318 int i; 9319 int 9320 main (void) 9321 { 9322 9323 ; 9324 return 0; 9325 } 9326 _ACEOF 9327 if ac_fn_c_try_link "$LINENO" 9328 then : 9329 eval $cacheid=yes 9330 else case e in #( 9331 e) eval $cacheid=no ;; 9332 esac 9333 fi 9334 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9335 conftest$ac_exeext conftest.$ac_ext ;; 9336 esac 9337 fi 9338 9339 9340 CFLAGS="$xorg_testset_save_CFLAGS" 9341 9342 eval supported=\$$cacheid 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9344 printf "%s\n" "$supported" >&6; } 9345 if test "$supported" = "yes" ; then 9346 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9347 found="yes" 9348 fi 9349 fi 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 xorg_testset_save_CFLAGS="$CFLAGS" 9366 9367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9371 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9372 then : 9373 printf %s "(cached) " >&6 9374 else case e in #( 9375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376 /* end confdefs.h. */ 9377 int i; 9378 _ACEOF 9379 if ac_fn_c_try_compile "$LINENO" 9380 then : 9381 xorg_cv_cc_flag_unknown_warning_option=yes 9382 else case e in #( 9383 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9384 esac 9385 fi 9386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9387 esac 9388 fi 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9390 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393 fi 9394 9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9398 fi 9399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9403 then : 9404 printf %s "(cached) " >&6 9405 else case e in #( 9406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407 /* end confdefs.h. */ 9408 int i; 9409 _ACEOF 9410 if ac_fn_c_try_compile "$LINENO" 9411 then : 9412 xorg_cv_cc_flag_unused_command_line_argument=yes 9413 else case e in #( 9414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9415 esac 9416 fi 9417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9418 esac 9419 fi 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424 fi 9425 9426 found="no" 9427 9428 if test $found = "no" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 9433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9435 fi 9436 9437 CFLAGS="$CFLAGS -Winit-self" 9438 9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9440 printf %s "checking if $CC supports -Winit-self... " >&6; } 9441 cacheid=xorg_cv_cc_flag__Winit_self 9442 if eval test \${$cacheid+y} 9443 then : 9444 printf %s "(cached) " >&6 9445 else case e in #( 9446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447 /* end confdefs.h. */ 9448 int i; 9449 int 9450 main (void) 9451 { 9452 9453 ; 9454 return 0; 9455 } 9456 _ACEOF 9457 if ac_fn_c_try_link "$LINENO" 9458 then : 9459 eval $cacheid=yes 9460 else case e in #( 9461 e) eval $cacheid=no ;; 9462 esac 9463 fi 9464 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9465 conftest$ac_exeext conftest.$ac_ext ;; 9466 esac 9467 fi 9468 9469 9470 CFLAGS="$xorg_testset_save_CFLAGS" 9471 9472 eval supported=\$$cacheid 9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9474 printf "%s\n" "$supported" >&6; } 9475 if test "$supported" = "yes" ; then 9476 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9477 found="yes" 9478 fi 9479 fi 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 xorg_testset_save_CFLAGS="$CFLAGS" 9496 9497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9501 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9502 then : 9503 printf %s "(cached) " >&6 9504 else case e in #( 9505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506 /* end confdefs.h. */ 9507 int i; 9508 _ACEOF 9509 if ac_fn_c_try_compile "$LINENO" 9510 then : 9511 xorg_cv_cc_flag_unknown_warning_option=yes 9512 else case e in #( 9513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9514 esac 9515 fi 9516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9517 esac 9518 fi 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523 fi 9524 9525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 fi 9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9533 then : 9534 printf %s "(cached) " >&6 9535 else case e in #( 9536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537 /* end confdefs.h. */ 9538 int i; 9539 _ACEOF 9540 if ac_fn_c_try_compile "$LINENO" 9541 then : 9542 xorg_cv_cc_flag_unused_command_line_argument=yes 9543 else case e in #( 9544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9545 esac 9546 fi 9547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9548 esac 9549 fi 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 fi 9555 9556 found="no" 9557 9558 if test $found = "no" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9565 fi 9566 9567 CFLAGS="$CFLAGS -Wmain" 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9570 printf %s "checking if $CC supports -Wmain... " >&6; } 9571 cacheid=xorg_cv_cc_flag__Wmain 9572 if eval test \${$cacheid+y} 9573 then : 9574 printf %s "(cached) " >&6 9575 else case e in #( 9576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577 /* end confdefs.h. */ 9578 int i; 9579 int 9580 main (void) 9581 { 9582 9583 ; 9584 return 0; 9585 } 9586 _ACEOF 9587 if ac_fn_c_try_link "$LINENO" 9588 then : 9589 eval $cacheid=yes 9590 else case e in #( 9591 e) eval $cacheid=no ;; 9592 esac 9593 fi 9594 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9595 conftest$ac_exeext conftest.$ac_ext ;; 9596 esac 9597 fi 9598 9599 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601 9602 eval supported=\$$cacheid 9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9604 printf "%s\n" "$supported" >&6; } 9605 if test "$supported" = "yes" ; then 9606 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9607 found="yes" 9608 fi 9609 fi 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 xorg_testset_save_CFLAGS="$CFLAGS" 9626 9627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9631 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9632 then : 9633 printf %s "(cached) " >&6 9634 else case e in #( 9635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636 /* end confdefs.h. */ 9637 int i; 9638 _ACEOF 9639 if ac_fn_c_try_compile "$LINENO" 9640 then : 9641 xorg_cv_cc_flag_unknown_warning_option=yes 9642 else case e in #( 9643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9644 esac 9645 fi 9646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9647 esac 9648 fi 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653 fi 9654 9655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9663 then : 9664 printf %s "(cached) " >&6 9665 else case e in #( 9666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667 /* end confdefs.h. */ 9668 int i; 9669 _ACEOF 9670 if ac_fn_c_try_compile "$LINENO" 9671 then : 9672 xorg_cv_cc_flag_unused_command_line_argument=yes 9673 else case e in #( 9674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9675 esac 9676 fi 9677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9678 esac 9679 fi 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684 fi 9685 9686 found="no" 9687 9688 if test $found = "no" ; then 9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9691 fi 9692 9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9695 fi 9696 9697 CFLAGS="$CFLAGS -Wmissing-braces" 9698 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9700 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9701 cacheid=xorg_cv_cc_flag__Wmissing_braces 9702 if eval test \${$cacheid+y} 9703 then : 9704 printf %s "(cached) " >&6 9705 else case e in #( 9706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707 /* end confdefs.h. */ 9708 int i; 9709 int 9710 main (void) 9711 { 9712 9713 ; 9714 return 0; 9715 } 9716 _ACEOF 9717 if ac_fn_c_try_link "$LINENO" 9718 then : 9719 eval $cacheid=yes 9720 else case e in #( 9721 e) eval $cacheid=no ;; 9722 esac 9723 fi 9724 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9725 conftest$ac_exeext conftest.$ac_ext ;; 9726 esac 9727 fi 9728 9729 9730 CFLAGS="$xorg_testset_save_CFLAGS" 9731 9732 eval supported=\$$cacheid 9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9734 printf "%s\n" "$supported" >&6; } 9735 if test "$supported" = "yes" ; then 9736 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9737 found="yes" 9738 fi 9739 fi 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 xorg_testset_save_CFLAGS="$CFLAGS" 9756 9757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9761 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9762 then : 9763 printf %s "(cached) " >&6 9764 else case e in #( 9765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766 /* end confdefs.h. */ 9767 int i; 9768 _ACEOF 9769 if ac_fn_c_try_compile "$LINENO" 9770 then : 9771 xorg_cv_cc_flag_unknown_warning_option=yes 9772 else case e in #( 9773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9774 esac 9775 fi 9776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9777 esac 9778 fi 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783 fi 9784 9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9793 then : 9794 printf %s "(cached) " >&6 9795 else case e in #( 9796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797 /* end confdefs.h. */ 9798 int i; 9799 _ACEOF 9800 if ac_fn_c_try_compile "$LINENO" 9801 then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803 else case e in #( 9804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9805 esac 9806 fi 9807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9808 esac 9809 fi 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814 fi 9815 9816 found="no" 9817 9818 if test $found = "no" ; then 9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 fi 9822 9823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9825 fi 9826 9827 CFLAGS="$CFLAGS -Wsequence-point" 9828 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9830 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9831 cacheid=xorg_cv_cc_flag__Wsequence_point 9832 if eval test \${$cacheid+y} 9833 then : 9834 printf %s "(cached) " >&6 9835 else case e in #( 9836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837 /* end confdefs.h. */ 9838 int i; 9839 int 9840 main (void) 9841 { 9842 9843 ; 9844 return 0; 9845 } 9846 _ACEOF 9847 if ac_fn_c_try_link "$LINENO" 9848 then : 9849 eval $cacheid=yes 9850 else case e in #( 9851 e) eval $cacheid=no ;; 9852 esac 9853 fi 9854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9855 conftest$ac_exeext conftest.$ac_ext ;; 9856 esac 9857 fi 9858 9859 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861 9862 eval supported=\$$cacheid 9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9864 printf "%s\n" "$supported" >&6; } 9865 if test "$supported" = "yes" ; then 9866 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9867 found="yes" 9868 fi 9869 fi 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 xorg_testset_save_CFLAGS="$CFLAGS" 9886 9887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9891 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9892 then : 9893 printf %s "(cached) " >&6 9894 else case e in #( 9895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896 /* end confdefs.h. */ 9897 int i; 9898 _ACEOF 9899 if ac_fn_c_try_compile "$LINENO" 9900 then : 9901 xorg_cv_cc_flag_unknown_warning_option=yes 9902 else case e in #( 9903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9904 esac 9905 fi 9906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9907 esac 9908 fi 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913 fi 9914 9915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9918 fi 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9923 then : 9924 printf %s "(cached) " >&6 9925 else case e in #( 9926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9927 /* end confdefs.h. */ 9928 int i; 9929 _ACEOF 9930 if ac_fn_c_try_compile "$LINENO" 9931 then : 9932 xorg_cv_cc_flag_unused_command_line_argument=yes 9933 else case e in #( 9934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9935 esac 9936 fi 9937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9938 esac 9939 fi 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9943 CFLAGS="$xorg_testset_save_CFLAGS" 9944 fi 9945 9946 found="no" 9947 9948 if test $found = "no" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9955 fi 9956 9957 CFLAGS="$CFLAGS -Wreturn-type" 9958 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9960 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9961 cacheid=xorg_cv_cc_flag__Wreturn_type 9962 if eval test \${$cacheid+y} 9963 then : 9964 printf %s "(cached) " >&6 9965 else case e in #( 9966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967 /* end confdefs.h. */ 9968 int i; 9969 int 9970 main (void) 9971 { 9972 9973 ; 9974 return 0; 9975 } 9976 _ACEOF 9977 if ac_fn_c_try_link "$LINENO" 9978 then : 9979 eval $cacheid=yes 9980 else case e in #( 9981 e) eval $cacheid=no ;; 9982 esac 9983 fi 9984 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9985 conftest$ac_exeext conftest.$ac_ext ;; 9986 esac 9987 fi 9988 9989 9990 CFLAGS="$xorg_testset_save_CFLAGS" 9991 9992 eval supported=\$$cacheid 9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9994 printf "%s\n" "$supported" >&6; } 9995 if test "$supported" = "yes" ; then 9996 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9997 found="yes" 9998 fi 9999 fi 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 xorg_testset_save_CFLAGS="$CFLAGS" 10016 10017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10021 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10022 then : 10023 printf %s "(cached) " >&6 10024 else case e in #( 10025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10026 /* end confdefs.h. */ 10027 int i; 10028 _ACEOF 10029 if ac_fn_c_try_compile "$LINENO" 10030 then : 10031 xorg_cv_cc_flag_unknown_warning_option=yes 10032 else case e in #( 10033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10034 esac 10035 fi 10036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10037 esac 10038 fi 10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043 fi 10044 10045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 fi 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10053 then : 10054 printf %s "(cached) " >&6 10055 else case e in #( 10056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057 /* end confdefs.h. */ 10058 int i; 10059 _ACEOF 10060 if ac_fn_c_try_compile "$LINENO" 10061 then : 10062 xorg_cv_cc_flag_unused_command_line_argument=yes 10063 else case e in #( 10064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10065 esac 10066 fi 10067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10068 esac 10069 fi 10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074 fi 10075 10076 found="no" 10077 10078 if test $found = "no" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10085 fi 10086 10087 CFLAGS="$CFLAGS -Wtrigraphs" 10088 10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10090 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10091 cacheid=xorg_cv_cc_flag__Wtrigraphs 10092 if eval test \${$cacheid+y} 10093 then : 10094 printf %s "(cached) " >&6 10095 else case e in #( 10096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097 /* end confdefs.h. */ 10098 int i; 10099 int 10100 main (void) 10101 { 10102 10103 ; 10104 return 0; 10105 } 10106 _ACEOF 10107 if ac_fn_c_try_link "$LINENO" 10108 then : 10109 eval $cacheid=yes 10110 else case e in #( 10111 e) eval $cacheid=no ;; 10112 esac 10113 fi 10114 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10115 conftest$ac_exeext conftest.$ac_ext ;; 10116 esac 10117 fi 10118 10119 10120 CFLAGS="$xorg_testset_save_CFLAGS" 10121 10122 eval supported=\$$cacheid 10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10124 printf "%s\n" "$supported" >&6; } 10125 if test "$supported" = "yes" ; then 10126 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10127 found="yes" 10128 fi 10129 fi 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 xorg_testset_save_CFLAGS="$CFLAGS" 10146 10147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10151 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10152 then : 10153 printf %s "(cached) " >&6 10154 else case e in #( 10155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156 /* end confdefs.h. */ 10157 int i; 10158 _ACEOF 10159 if ac_fn_c_try_compile "$LINENO" 10160 then : 10161 xorg_cv_cc_flag_unknown_warning_option=yes 10162 else case e in #( 10163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10164 esac 10165 fi 10166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10167 esac 10168 fi 10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173 fi 10174 10175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10178 fi 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10183 then : 10184 printf %s "(cached) " >&6 10185 else case e in #( 10186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187 /* end confdefs.h. */ 10188 int i; 10189 _ACEOF 10190 if ac_fn_c_try_compile "$LINENO" 10191 then : 10192 xorg_cv_cc_flag_unused_command_line_argument=yes 10193 else case e in #( 10194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10195 esac 10196 fi 10197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10198 esac 10199 fi 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10201 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204 fi 10205 10206 found="no" 10207 10208 if test $found = "no" ; then 10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10215 fi 10216 10217 CFLAGS="$CFLAGS -Warray-bounds" 10218 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10220 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10221 cacheid=xorg_cv_cc_flag__Warray_bounds 10222 if eval test \${$cacheid+y} 10223 then : 10224 printf %s "(cached) " >&6 10225 else case e in #( 10226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227 /* end confdefs.h. */ 10228 int i; 10229 int 10230 main (void) 10231 { 10232 10233 ; 10234 return 0; 10235 } 10236 _ACEOF 10237 if ac_fn_c_try_link "$LINENO" 10238 then : 10239 eval $cacheid=yes 10240 else case e in #( 10241 e) eval $cacheid=no ;; 10242 esac 10243 fi 10244 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext ;; 10246 esac 10247 fi 10248 10249 10250 CFLAGS="$xorg_testset_save_CFLAGS" 10251 10252 eval supported=\$$cacheid 10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10254 printf "%s\n" "$supported" >&6; } 10255 if test "$supported" = "yes" ; then 10256 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10257 found="yes" 10258 fi 10259 fi 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 xorg_testset_save_CFLAGS="$CFLAGS" 10276 10277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10280 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10281 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10282 then : 10283 printf %s "(cached) " >&6 10284 else case e in #( 10285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286 /* end confdefs.h. */ 10287 int i; 10288 _ACEOF 10289 if ac_fn_c_try_compile "$LINENO" 10290 then : 10291 xorg_cv_cc_flag_unknown_warning_option=yes 10292 else case e in #( 10293 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10294 esac 10295 fi 10296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10297 esac 10298 fi 10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10300 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303 fi 10304 10305 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 fi 10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10311 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10312 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10313 then : 10314 printf %s "(cached) " >&6 10315 else case e in #( 10316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10317 /* end confdefs.h. */ 10318 int i; 10319 _ACEOF 10320 if ac_fn_c_try_compile "$LINENO" 10321 then : 10322 xorg_cv_cc_flag_unused_command_line_argument=yes 10323 else case e in #( 10324 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10325 esac 10326 fi 10327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10328 esac 10329 fi 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10331 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334 fi 10335 10336 found="no" 10337 10338 if test $found = "no" ; then 10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10341 fi 10342 10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 fi 10346 10347 CFLAGS="$CFLAGS -Wwrite-strings" 10348 10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10350 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10351 cacheid=xorg_cv_cc_flag__Wwrite_strings 10352 if eval test \${$cacheid+y} 10353 then : 10354 printf %s "(cached) " >&6 10355 else case e in #( 10356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357 /* end confdefs.h. */ 10358 int i; 10359 int 10360 main (void) 10361 { 10362 10363 ; 10364 return 0; 10365 } 10366 _ACEOF 10367 if ac_fn_c_try_link "$LINENO" 10368 then : 10369 eval $cacheid=yes 10370 else case e in #( 10371 e) eval $cacheid=no ;; 10372 esac 10373 fi 10374 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10375 conftest$ac_exeext conftest.$ac_ext ;; 10376 esac 10377 fi 10378 10379 10380 CFLAGS="$xorg_testset_save_CFLAGS" 10381 10382 eval supported=\$$cacheid 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10384 printf "%s\n" "$supported" >&6; } 10385 if test "$supported" = "yes" ; then 10386 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10387 found="yes" 10388 fi 10389 fi 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 xorg_testset_save_CFLAGS="$CFLAGS" 10406 10407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10410 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10411 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10412 then : 10413 printf %s "(cached) " >&6 10414 else case e in #( 10415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416 /* end confdefs.h. */ 10417 int i; 10418 _ACEOF 10419 if ac_fn_c_try_compile "$LINENO" 10420 then : 10421 xorg_cv_cc_flag_unknown_warning_option=yes 10422 else case e in #( 10423 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10424 esac 10425 fi 10426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10427 esac 10428 fi 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10430 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433 fi 10434 10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10441 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10442 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10443 then : 10444 printf %s "(cached) " >&6 10445 else case e in #( 10446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447 /* end confdefs.h. */ 10448 int i; 10449 _ACEOF 10450 if ac_fn_c_try_compile "$LINENO" 10451 then : 10452 xorg_cv_cc_flag_unused_command_line_argument=yes 10453 else case e in #( 10454 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10455 esac 10456 fi 10457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10458 esac 10459 fi 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10461 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464 fi 10465 10466 found="no" 10467 10468 if test $found = "no" ; then 10469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10471 fi 10472 10473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10475 fi 10476 10477 CFLAGS="$CFLAGS -Waddress" 10478 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10480 printf %s "checking if $CC supports -Waddress... " >&6; } 10481 cacheid=xorg_cv_cc_flag__Waddress 10482 if eval test \${$cacheid+y} 10483 then : 10484 printf %s "(cached) " >&6 10485 else case e in #( 10486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487 /* end confdefs.h. */ 10488 int i; 10489 int 10490 main (void) 10491 { 10492 10493 ; 10494 return 0; 10495 } 10496 _ACEOF 10497 if ac_fn_c_try_link "$LINENO" 10498 then : 10499 eval $cacheid=yes 10500 else case e in #( 10501 e) eval $cacheid=no ;; 10502 esac 10503 fi 10504 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10505 conftest$ac_exeext conftest.$ac_ext ;; 10506 esac 10507 fi 10508 10509 10510 CFLAGS="$xorg_testset_save_CFLAGS" 10511 10512 eval supported=\$$cacheid 10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10514 printf "%s\n" "$supported" >&6; } 10515 if test "$supported" = "yes" ; then 10516 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10517 found="yes" 10518 fi 10519 fi 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 xorg_testset_save_CFLAGS="$CFLAGS" 10536 10537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10540 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10541 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10542 then : 10543 printf %s "(cached) " >&6 10544 else case e in #( 10545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10546 /* end confdefs.h. */ 10547 int i; 10548 _ACEOF 10549 if ac_fn_c_try_compile "$LINENO" 10550 then : 10551 xorg_cv_cc_flag_unknown_warning_option=yes 10552 else case e in #( 10553 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10554 esac 10555 fi 10556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10557 esac 10558 fi 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10560 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563 fi 10564 10565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10568 fi 10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10571 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10572 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10573 then : 10574 printf %s "(cached) " >&6 10575 else case e in #( 10576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577 /* end confdefs.h. */ 10578 int i; 10579 _ACEOF 10580 if ac_fn_c_try_compile "$LINENO" 10581 then : 10582 xorg_cv_cc_flag_unused_command_line_argument=yes 10583 else case e in #( 10584 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10585 esac 10586 fi 10587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10588 esac 10589 fi 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10591 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594 fi 10595 10596 found="no" 10597 10598 if test $found = "no" ; then 10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10601 fi 10602 10603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10605 fi 10606 10607 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10608 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10610 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10611 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10612 if eval test \${$cacheid+y} 10613 then : 10614 printf %s "(cached) " >&6 10615 else case e in #( 10616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617 /* end confdefs.h. */ 10618 int i; 10619 int 10620 main (void) 10621 { 10622 10623 ; 10624 return 0; 10625 } 10626 _ACEOF 10627 if ac_fn_c_try_link "$LINENO" 10628 then : 10629 eval $cacheid=yes 10630 else case e in #( 10631 e) eval $cacheid=no ;; 10632 esac 10633 fi 10634 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10635 conftest$ac_exeext conftest.$ac_ext ;; 10636 esac 10637 fi 10638 10639 10640 CFLAGS="$xorg_testset_save_CFLAGS" 10641 10642 eval supported=\$$cacheid 10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10644 printf "%s\n" "$supported" >&6; } 10645 if test "$supported" = "yes" ; then 10646 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10647 found="yes" 10648 fi 10649 fi 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 xorg_testset_save_CFLAGS="$CFLAGS" 10666 10667 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10670 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10671 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10672 then : 10673 printf %s "(cached) " >&6 10674 else case e in #( 10675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10676 /* end confdefs.h. */ 10677 int i; 10678 _ACEOF 10679 if ac_fn_c_try_compile "$LINENO" 10680 then : 10681 xorg_cv_cc_flag_unknown_warning_option=yes 10682 else case e in #( 10683 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10684 esac 10685 fi 10686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10687 esac 10688 fi 10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10692 CFLAGS="$xorg_testset_save_CFLAGS" 10693 fi 10694 10695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10698 fi 10699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10703 then : 10704 printf %s "(cached) " >&6 10705 else case e in #( 10706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10707 /* end confdefs.h. */ 10708 int i; 10709 _ACEOF 10710 if ac_fn_c_try_compile "$LINENO" 10711 then : 10712 xorg_cv_cc_flag_unused_command_line_argument=yes 10713 else case e in #( 10714 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10715 esac 10716 fi 10717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10718 esac 10719 fi 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10723 CFLAGS="$xorg_testset_save_CFLAGS" 10724 fi 10725 10726 found="no" 10727 10728 if test $found = "no" ; then 10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10731 fi 10732 10733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10735 fi 10736 10737 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10738 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10740 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10741 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10742 if eval test \${$cacheid+y} 10743 then : 10744 printf %s "(cached) " >&6 10745 else case e in #( 10746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747 /* end confdefs.h. */ 10748 int i; 10749 int 10750 main (void) 10751 { 10752 10753 ; 10754 return 0; 10755 } 10756 _ACEOF 10757 if ac_fn_c_try_link "$LINENO" 10758 then : 10759 eval $cacheid=yes 10760 else case e in #( 10761 e) eval $cacheid=no ;; 10762 esac 10763 fi 10764 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10765 conftest$ac_exeext conftest.$ac_ext ;; 10766 esac 10767 fi 10768 10769 10770 CFLAGS="$xorg_testset_save_CFLAGS" 10771 10772 eval supported=\$$cacheid 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10774 printf "%s\n" "$supported" >&6; } 10775 if test "$supported" = "yes" ; then 10776 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10777 found="yes" 10778 fi 10779 fi 10780 10781 10782 fi 10783 10784 10785 10786 10787 10788 10789 10790 CWARNFLAGS="$BASE_CFLAGS" 10791 if test "x$GCC" = xyes ; then 10792 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10793 fi 10794 10795 10796 10797 10798 10799 10800 10801 10802 # Check whether --enable-strict-compilation was given. 10803 if test ${enable_strict_compilation+y} 10804 then : 10805 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10806 else case e in #( 10807 e) STRICT_COMPILE=no ;; 10808 esac 10809 fi 10810 10811 10812 10813 10814 10815 10816 STRICT_CFLAGS="" 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 xorg_testset_save_CFLAGS="$CFLAGS" 10831 10832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10836 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10837 then : 10838 printf %s "(cached) " >&6 10839 else case e in #( 10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841 /* end confdefs.h. */ 10842 int i; 10843 _ACEOF 10844 if ac_fn_c_try_compile "$LINENO" 10845 then : 10846 xorg_cv_cc_flag_unknown_warning_option=yes 10847 else case e in #( 10848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10849 esac 10850 fi 10851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10852 esac 10853 fi 10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858 fi 10859 10860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10863 fi 10864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10868 then : 10869 printf %s "(cached) " >&6 10870 else case e in #( 10871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872 /* end confdefs.h. */ 10873 int i; 10874 _ACEOF 10875 if ac_fn_c_try_compile "$LINENO" 10876 then : 10877 xorg_cv_cc_flag_unused_command_line_argument=yes 10878 else case e in #( 10879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10880 esac 10881 fi 10882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10883 esac 10884 fi 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10888 CFLAGS="$xorg_testset_save_CFLAGS" 10889 fi 10890 10891 found="no" 10892 10893 if test $found = "no" ; then 10894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10896 fi 10897 10898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10900 fi 10901 10902 CFLAGS="$CFLAGS -pedantic" 10903 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10905 printf %s "checking if $CC supports -pedantic... " >&6; } 10906 cacheid=xorg_cv_cc_flag__pedantic 10907 if eval test \${$cacheid+y} 10908 then : 10909 printf %s "(cached) " >&6 10910 else case e in #( 10911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912 /* end confdefs.h. */ 10913 int i; 10914 int 10915 main (void) 10916 { 10917 10918 ; 10919 return 0; 10920 } 10921 _ACEOF 10922 if ac_fn_c_try_link "$LINENO" 10923 then : 10924 eval $cacheid=yes 10925 else case e in #( 10926 e) eval $cacheid=no ;; 10927 esac 10928 fi 10929 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10930 conftest$ac_exeext conftest.$ac_ext ;; 10931 esac 10932 fi 10933 10934 10935 CFLAGS="$xorg_testset_save_CFLAGS" 10936 10937 eval supported=\$$cacheid 10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10939 printf "%s\n" "$supported" >&6; } 10940 if test "$supported" = "yes" ; then 10941 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10942 found="yes" 10943 fi 10944 fi 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 xorg_testset_save_CFLAGS="$CFLAGS" 10961 10962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10966 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10967 then : 10968 printf %s "(cached) " >&6 10969 else case e in #( 10970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971 /* end confdefs.h. */ 10972 int i; 10973 _ACEOF 10974 if ac_fn_c_try_compile "$LINENO" 10975 then : 10976 xorg_cv_cc_flag_unknown_warning_option=yes 10977 else case e in #( 10978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10979 esac 10980 fi 10981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10982 esac 10983 fi 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10987 CFLAGS="$xorg_testset_save_CFLAGS" 10988 fi 10989 10990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10993 fi 10994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10998 then : 10999 printf %s "(cached) " >&6 11000 else case e in #( 11001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11002 /* end confdefs.h. */ 11003 int i; 11004 _ACEOF 11005 if ac_fn_c_try_compile "$LINENO" 11006 then : 11007 xorg_cv_cc_flag_unused_command_line_argument=yes 11008 else case e in #( 11009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11010 esac 11011 fi 11012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11013 esac 11014 fi 11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11016 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11018 CFLAGS="$xorg_testset_save_CFLAGS" 11019 fi 11020 11021 found="no" 11022 11023 if test $found = "no" ; then 11024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11026 fi 11027 11028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11030 fi 11031 11032 CFLAGS="$CFLAGS -Werror" 11033 11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11035 printf %s "checking if $CC supports -Werror... " >&6; } 11036 cacheid=xorg_cv_cc_flag__Werror 11037 if eval test \${$cacheid+y} 11038 then : 11039 printf %s "(cached) " >&6 11040 else case e in #( 11041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042 /* end confdefs.h. */ 11043 int i; 11044 int 11045 main (void) 11046 { 11047 11048 ; 11049 return 0; 11050 } 11051 _ACEOF 11052 if ac_fn_c_try_link "$LINENO" 11053 then : 11054 eval $cacheid=yes 11055 else case e in #( 11056 e) eval $cacheid=no ;; 11057 esac 11058 fi 11059 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11060 conftest$ac_exeext conftest.$ac_ext ;; 11061 esac 11062 fi 11063 11064 11065 CFLAGS="$xorg_testset_save_CFLAGS" 11066 11067 eval supported=\$$cacheid 11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11069 printf "%s\n" "$supported" >&6; } 11070 if test "$supported" = "yes" ; then 11071 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11072 found="yes" 11073 fi 11074 fi 11075 11076 if test $found = "no" ; then 11077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11079 fi 11080 11081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11083 fi 11084 11085 CFLAGS="$CFLAGS -errwarn" 11086 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11088 printf %s "checking if $CC supports -errwarn... " >&6; } 11089 cacheid=xorg_cv_cc_flag__errwarn 11090 if eval test \${$cacheid+y} 11091 then : 11092 printf %s "(cached) " >&6 11093 else case e in #( 11094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11095 /* end confdefs.h. */ 11096 int i; 11097 int 11098 main (void) 11099 { 11100 11101 ; 11102 return 0; 11103 } 11104 _ACEOF 11105 if ac_fn_c_try_link "$LINENO" 11106 then : 11107 eval $cacheid=yes 11108 else case e in #( 11109 e) eval $cacheid=no ;; 11110 esac 11111 fi 11112 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11113 conftest$ac_exeext conftest.$ac_ext ;; 11114 esac 11115 fi 11116 11117 11118 CFLAGS="$xorg_testset_save_CFLAGS" 11119 11120 eval supported=\$$cacheid 11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11122 printf "%s\n" "$supported" >&6; } 11123 if test "$supported" = "yes" ; then 11124 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11125 found="yes" 11126 fi 11127 fi 11128 11129 11130 11131 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11132 # activate it with -Werror, so we add it here explicitly. 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 xorg_testset_save_CFLAGS="$CFLAGS" 11147 11148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11152 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11153 then : 11154 printf %s "(cached) " >&6 11155 else case e in #( 11156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11157 /* end confdefs.h. */ 11158 int i; 11159 _ACEOF 11160 if ac_fn_c_try_compile "$LINENO" 11161 then : 11162 xorg_cv_cc_flag_unknown_warning_option=yes 11163 else case e in #( 11164 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11165 esac 11166 fi 11167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11168 esac 11169 fi 11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11171 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11173 CFLAGS="$xorg_testset_save_CFLAGS" 11174 fi 11175 11176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11179 fi 11180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11182 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11183 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11184 then : 11185 printf %s "(cached) " >&6 11186 else case e in #( 11187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11188 /* end confdefs.h. */ 11189 int i; 11190 _ACEOF 11191 if ac_fn_c_try_compile "$LINENO" 11192 then : 11193 xorg_cv_cc_flag_unused_command_line_argument=yes 11194 else case e in #( 11195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11196 esac 11197 fi 11198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11199 esac 11200 fi 11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11204 CFLAGS="$xorg_testset_save_CFLAGS" 11205 fi 11206 11207 found="no" 11208 11209 if test $found = "no" ; then 11210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11212 fi 11213 11214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11216 fi 11217 11218 CFLAGS="$CFLAGS -Werror=attributes" 11219 11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11221 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11222 cacheid=xorg_cv_cc_flag__Werror_attributes 11223 if eval test \${$cacheid+y} 11224 then : 11225 printf %s "(cached) " >&6 11226 else case e in #( 11227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228 /* end confdefs.h. */ 11229 int i; 11230 int 11231 main (void) 11232 { 11233 11234 ; 11235 return 0; 11236 } 11237 _ACEOF 11238 if ac_fn_c_try_link "$LINENO" 11239 then : 11240 eval $cacheid=yes 11241 else case e in #( 11242 e) eval $cacheid=no ;; 11243 esac 11244 fi 11245 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11246 conftest$ac_exeext conftest.$ac_ext ;; 11247 esac 11248 fi 11249 11250 11251 CFLAGS="$xorg_testset_save_CFLAGS" 11252 11253 eval supported=\$$cacheid 11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11255 printf "%s\n" "$supported" >&6; } 11256 if test "$supported" = "yes" ; then 11257 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11258 found="yes" 11259 fi 11260 fi 11261 11262 11263 11264 if test "x$STRICT_COMPILE" = "xyes"; then 11265 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11266 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11267 fi 11268 11269 11270 11271 11272 11273 11274 11275 11276 cat >>confdefs.h <<_ACEOF 11277 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11278 _ACEOF 11279 11280 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11281 if test "x$PVM" = "x"; then 11282 PVM="0" 11283 fi 11284 11285 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11286 11287 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11288 if test "x$PVP" = "x"; then 11289 PVP="0" 11290 fi 11291 11292 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11293 11294 11295 11296 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11297 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11298 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11299 touch \$(top_srcdir)/ChangeLog; \ 11300 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11301 11302 11303 11304 11305 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11306 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11307 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11308 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11309 touch \$(top_srcdir)/INSTALL; \ 11310 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11311 11312 11313 11314 11315 11316 11317 case $host_os in 11318 solaris*) 11319 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11320 # check for a man page file found in later versions that use 11321 # traditional section numbers instead 11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11323 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11324 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11325 then : 11326 printf %s "(cached) " >&6 11327 else case e in #( 11328 e) test "$cross_compiling" = yes && 11329 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11330 if test -r "/usr/share/man/man7/attributes.7"; then 11331 ac_cv_file__usr_share_man_man7_attributes_7=yes 11332 else 11333 ac_cv_file__usr_share_man_man7_attributes_7=no 11334 fi ;; 11335 esac 11336 fi 11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11338 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11339 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11340 then : 11341 SYSV_MAN_SECTIONS=false 11342 else case e in #( 11343 e) SYSV_MAN_SECTIONS=true ;; 11344 esac 11345 fi 11346 11347 ;; 11348 *) SYSV_MAN_SECTIONS=false ;; 11349 esac 11350 11351 if test x$APP_MAN_SUFFIX = x ; then 11352 APP_MAN_SUFFIX=1 11353 fi 11354 if test x$APP_MAN_DIR = x ; then 11355 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11356 fi 11357 11358 if test x$LIB_MAN_SUFFIX = x ; then 11359 LIB_MAN_SUFFIX=3 11360 fi 11361 if test x$LIB_MAN_DIR = x ; then 11362 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11363 fi 11364 11365 if test x$FILE_MAN_SUFFIX = x ; then 11366 case $SYSV_MAN_SECTIONS in 11367 true) FILE_MAN_SUFFIX=4 ;; 11368 *) FILE_MAN_SUFFIX=5 ;; 11369 esac 11370 fi 11371 if test x$FILE_MAN_DIR = x ; then 11372 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11373 fi 11374 11375 if test x$MISC_MAN_SUFFIX = x ; then 11376 case $SYSV_MAN_SECTIONS in 11377 true) MISC_MAN_SUFFIX=5 ;; 11378 *) MISC_MAN_SUFFIX=7 ;; 11379 esac 11380 fi 11381 if test x$MISC_MAN_DIR = x ; then 11382 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11383 fi 11384 11385 if test x$DRIVER_MAN_SUFFIX = x ; then 11386 case $SYSV_MAN_SECTIONS in 11387 true) DRIVER_MAN_SUFFIX=7 ;; 11388 *) DRIVER_MAN_SUFFIX=4 ;; 11389 esac 11390 fi 11391 if test x$DRIVER_MAN_DIR = x ; then 11392 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11393 fi 11394 11395 if test x$ADMIN_MAN_SUFFIX = x ; then 11396 case $SYSV_MAN_SECTIONS in 11397 true) ADMIN_MAN_SUFFIX=1m ;; 11398 *) ADMIN_MAN_SUFFIX=8 ;; 11399 esac 11400 fi 11401 if test x$ADMIN_MAN_DIR = x ; then 11402 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11403 fi 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 XORG_MAN_PAGE="X Version 11" 11420 11421 MAN_SUBSTS="\ 11422 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11423 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11424 -e 's|__xservername__|Xorg|g' \ 11425 -e 's|__xconfigfile__|xorg.conf|g' \ 11426 -e 's|__projectroot__|\$(prefix)|g' \ 11427 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11428 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11429 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11430 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11431 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11432 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11433 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11434 11435 11436 11437 11438 AM_DEFAULT_VERBOSITY=0 11439 11440 11441 11442 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 11443 if test "x$ac_cv_header_wchar_h" = xyes 11444 then : 11445 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 11446 11447 fi 11448 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 11449 if test "x$ac_cv_header_wctype_h" = xyes 11450 then : 11451 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 11452 11453 fi 11454 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 11455 if test "x$ac_cv_header_langinfo_h" = xyes 11456 then : 11457 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h 11458 11459 fi 11460 11461 11462 # Checks for pkg-config packages 11463 11464 pkg_failed=no 11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5 11466 printf %s "checking for XPROP... " >&6; } 11467 11468 if test -n "$XPROP_CFLAGS"; then 11469 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS" 11470 elif test -n "$PKG_CONFIG"; then 11471 if test -n "$PKG_CONFIG" && \ 11472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11473 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11474 ac_status=$? 11475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11476 test $ac_status = 0; }; then 11477 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 11478 test "x$?" != "x0" && pkg_failed=yes 11479 else 11480 pkg_failed=yes 11481 fi 11482 else 11483 pkg_failed=untried 11484 fi 11485 if test -n "$XPROP_LIBS"; then 11486 pkg_cv_XPROP_LIBS="$XPROP_LIBS" 11487 elif test -n "$PKG_CONFIG"; then 11488 if test -n "$PKG_CONFIG" && \ 11489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11490 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11491 ac_status=$? 11492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11493 test $ac_status = 0; }; then 11494 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 11495 test "x$?" != "x0" && pkg_failed=yes 11496 else 11497 pkg_failed=yes 11498 fi 11499 else 11500 pkg_failed=untried 11501 fi 11502 11503 11504 11505 if test $pkg_failed = yes; then 11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507 printf "%s\n" "no" >&6; } 11508 11509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11510 _pkg_short_errors_supported=yes 11511 else 11512 _pkg_short_errors_supported=no 11513 fi 11514 if test $_pkg_short_errors_supported = yes; then 11515 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11516 else 11517 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11518 fi 11519 # Put the nasty error message in config.log where it belongs 11520 echo "$XPROP_PKG_ERRORS" >&5 11521 11522 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 11523 11524 $XPROP_PKG_ERRORS 11525 11526 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11527 installed software in a non-standard prefix. 11528 11529 Alternatively, you may set the environment variables XPROP_CFLAGS 11530 and XPROP_LIBS to avoid the need to call pkg-config. 11531 See the pkg-config man page for more details." "$LINENO" 5 11532 elif test $pkg_failed = untried; then 11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11534 printf "%s\n" "no" >&6; } 11535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11536 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11537 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11538 is in your PATH or set the PKG_CONFIG environment variable to the full 11539 path to pkg-config. 11540 11541 Alternatively, you may set the environment variables XPROP_CFLAGS 11542 and XPROP_LIBS to avoid the need to call pkg-config. 11543 See the pkg-config man page for more details. 11544 11545 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11546 See 'config.log' for more details" "$LINENO" 5; } 11547 else 11548 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS 11549 XPROP_LIBS=$pkg_cv_XPROP_LIBS 11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11551 printf "%s\n" "yes" >&6; } 11552 11553 fi 11554 11555 11556 11557 11558 11559 11560 # Check whether --with-lint was given. 11561 if test ${with_lint+y} 11562 then : 11563 withval=$with_lint; use_lint=$withval 11564 else case e in #( 11565 e) use_lint=no ;; 11566 esac 11567 fi 11568 11569 11570 # Obtain platform specific info like program name and options 11571 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 11572 case $host_os in 11573 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11574 lint_name=splint 11575 lint_options="-badflag" 11576 ;; 11577 *freebsd* | *netbsd*) 11578 lint_name=lint 11579 lint_options="-u -b" 11580 ;; 11581 *solaris*) 11582 lint_name=lint 11583 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11584 ;; 11585 esac 11586 11587 # Test for the presence of the program (either guessed by the code or spelled out by the user) 11588 if test "x$use_lint" = x"yes" ; then 11589 # Extract the first word of "$lint_name", so it can be a program name with args. 11590 set dummy $lint_name; ac_word=$2 11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11592 printf %s "checking for $ac_word... " >&6; } 11593 if test ${ac_cv_path_LINT+y} 11594 then : 11595 printf %s "(cached) " >&6 11596 else case e in #( 11597 e) case $LINT in 11598 [\\/]* | ?:[\\/]*) 11599 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11600 ;; 11601 *) 11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11603 for as_dir in $PATH 11604 do 11605 IFS=$as_save_IFS 11606 case $as_dir in #((( 11607 '') as_dir=./ ;; 11608 */) ;; 11609 *) as_dir=$as_dir/ ;; 11610 esac 11611 for ac_exec_ext in '' $ac_executable_extensions; do 11612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11613 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11615 break 2 11616 fi 11617 done 11618 done 11619 IFS=$as_save_IFS 11620 11621 ;; 11622 esac ;; 11623 esac 11624 fi 11625 LINT=$ac_cv_path_LINT 11626 if test -n "$LINT"; then 11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11628 printf "%s\n" "$LINT" >&6; } 11629 else 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11631 printf "%s\n" "no" >&6; } 11632 fi 11633 11634 11635 if test "x$LINT" = "x"; then 11636 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11637 fi 11638 elif test "x$use_lint" = x"no" ; then 11639 if test "x$LINT" != "x"; then 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11641 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11642 fi 11643 else 11644 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11645 fi 11646 11647 # User supplied flags override default flags 11648 if test "x$LINT_FLAGS" != "x"; then 11649 lint_options=$LINT_FLAGS 11650 fi 11651 11652 LINT_FLAGS=$lint_options 11653 11654 if test "x$LINT" != x; then 11655 LINT_TRUE= 11656 LINT_FALSE='#' 11657 else 11658 LINT_TRUE='#' 11659 LINT_FALSE= 11660 fi 11661 11662 11663 11664 11665 ac_config_files="$ac_config_files Makefile man/Makefile" 11666 11667 cat >confcache <<\_ACEOF 11668 # This file is a shell script that caches the results of configure 11669 # tests run on this system so they can be shared between configure 11670 # scripts and configure runs, see configure's option --config-cache. 11671 # It is not useful on other systems. If it contains results you don't 11672 # want to keep, you may remove or edit it. 11673 # 11674 # config.status only pays attention to the cache file if you give it 11675 # the --recheck option to rerun configure. 11676 # 11677 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11678 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11679 # following values. 11680 11681 _ACEOF 11682 11683 # The following way of writing the cache mishandles newlines in values, 11684 # but we know of no workaround that is simple, portable, and efficient. 11685 # So, we kill variables containing newlines. 11686 # Ultrix sh set writes to stderr and can't be redirected directly, 11687 # and sets the high bit in the cache file unless we assign to the vars. 11688 ( 11689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11690 eval ac_val=\$$ac_var 11691 case $ac_val in #( 11692 *${as_nl}*) 11693 case $ac_var in #( 11694 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11695 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11696 esac 11697 case $ac_var in #( 11698 _ | IFS | as_nl) ;; #( 11699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11700 *) { eval $ac_var=; unset $ac_var;} ;; 11701 esac ;; 11702 esac 11703 done 11704 11705 (set) 2>&1 | 11706 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11707 *${as_nl}ac_space=\ *) 11708 # 'set' does not quote correctly, so add quotes: double-quote 11709 # substitution turns \\\\ into \\, and sed turns \\ into \. 11710 sed -n \ 11711 "s/'/'\\\\''/g; 11712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11713 ;; #( 11714 *) 11715 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11717 ;; 11718 esac | 11719 sort 11720 ) | 11721 sed ' 11722 /^ac_cv_env_/b end 11723 t clear 11724 :clear 11725 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11726 t end 11727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11728 :end' >>confcache 11729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11730 if test -w "$cache_file"; then 11731 if test "x$cache_file" != "x/dev/null"; then 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11733 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11734 if test ! -f "$cache_file" || test -h "$cache_file"; then 11735 cat confcache >"$cache_file" 11736 else 11737 case $cache_file in #( 11738 */* | ?:*) 11739 mv -f confcache "$cache_file"$$ && 11740 mv -f "$cache_file"$$ "$cache_file" ;; #( 11741 *) 11742 mv -f confcache "$cache_file" ;; 11743 esac 11744 fi 11745 fi 11746 else 11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11748 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11749 fi 11750 fi 11751 rm -f confcache 11752 11753 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11754 # Let make expand exec_prefix. 11755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11756 11757 DEFS=-DHAVE_CONFIG_H 11758 11759 ac_libobjs= 11760 ac_ltlibobjs= 11761 U= 11762 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11763 # 1. Remove the extension, and $U if already installed. 11764 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11765 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11766 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11767 # will be set to the directory where LIBOBJS objects are built. 11768 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11769 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11770 done 11771 LIBOBJS=$ac_libobjs 11772 11773 LTLIBOBJS=$ac_ltlibobjs 11774 11775 11776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11777 printf %s "checking that generated files are newer than configure... " >&6; } 11778 if test -n "$am_sleep_pid"; then 11779 # Hide warnings about reused PIDs. 11780 wait $am_sleep_pid 2>/dev/null 11781 fi 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11783 printf "%s\n" "done" >&6; } 11784 case $enable_silent_rules in # ((( 11785 yes) AM_DEFAULT_VERBOSITY=0;; 11786 no) AM_DEFAULT_VERBOSITY=1;; 11787 esac 11788 if test $am_cv_make_support_nested_variables = yes; then 11789 AM_V='$(V)' 11790 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11791 else 11792 AM_V=$AM_DEFAULT_VERBOSITY 11793 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11794 fi 11795 11796 if test -n "$EXEEXT"; then 11797 am__EXEEXT_TRUE= 11798 am__EXEEXT_FALSE='#' 11799 else 11800 am__EXEEXT_TRUE='#' 11801 am__EXEEXT_FALSE= 11802 fi 11803 11804 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11805 as_fn_error $? "conditional \"AMDEP\" was never defined. 11806 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11807 fi 11808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11809 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11810 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11811 fi 11812 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11813 as_fn_error $? "conditional \"LINT\" was never defined. 11814 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11815 fi 11816 11817 : "${CONFIG_STATUS=./config.status}" 11818 ac_write_fail=0 11819 ac_clean_files_save=$ac_clean_files 11820 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11822 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11823 as_write_fail=0 11824 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11825 #! $SHELL 11826 # Generated by $as_me. 11827 # Run this file to recreate the current configuration. 11828 # Compiler output produced by configure, useful for debugging 11829 # configure, is in config.log if it exists. 11830 11831 debug=false 11832 ac_cs_recheck=false 11833 ac_cs_silent=false 11834 11835 SHELL=\${CONFIG_SHELL-$SHELL} 11836 export SHELL 11837 _ASEOF 11838 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11839 ## -------------------- ## 11840 ## M4sh Initialization. ## 11841 ## -------------------- ## 11842 11843 # Be more Bourne compatible 11844 DUALCASE=1; export DUALCASE # for MKS sh 11845 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11846 then : 11847 emulate sh 11848 NULLCMD=: 11849 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11850 # is contrary to our usage. Disable this feature. 11851 alias -g '${1+"$@"}'='"$@"' 11852 setopt NO_GLOB_SUBST 11853 else case e in #( 11854 e) case `(set -o) 2>/dev/null` in #( 11855 *posix*) : 11856 set -o posix ;; #( 11857 *) : 11858 ;; 11859 esac ;; 11860 esac 11861 fi 11862 11863 11864 11865 # Reset variables that may have inherited troublesome values from 11866 # the environment. 11867 11868 # IFS needs to be set, to space, tab, and newline, in precisely that order. 11869 # (If _AS_PATH_WALK were called with IFS unset, it would have the 11870 # side effect of setting IFS to empty, thus disabling word splitting.) 11871 # Quoting is to prevent editors from complaining about space-tab. 11872 as_nl=' 11873 ' 11874 export as_nl 11875 IFS=" "" $as_nl" 11876 11877 PS1='$ ' 11878 PS2='> ' 11879 PS4='+ ' 11880 11881 # Ensure predictable behavior from utilities with locale-dependent output. 11882 LC_ALL=C 11883 export LC_ALL 11884 LANGUAGE=C 11885 export LANGUAGE 11886 11887 # We cannot yet rely on "unset" to work, but we need these variables 11888 # to be unset--not just set to an empty or harmless value--now, to 11889 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11890 # also avoids known problems related to "unset" and subshell syntax 11891 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11892 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11893 do eval test \${$as_var+y} \ 11894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11895 done 11896 11897 # Ensure that fds 0, 1, and 2 are open. 11898 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11899 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11900 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11901 11902 # The user is always right. 11903 if ${PATH_SEPARATOR+false} :; then 11904 PATH_SEPARATOR=: 11905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11907 PATH_SEPARATOR=';' 11908 } 11909 fi 11910 11911 11912 # Find who we are. Look in the path if we contain no directory separator. 11913 as_myself= 11914 case $0 in #(( 11915 *[\\/]* ) as_myself=$0 ;; 11916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11917 for as_dir in $PATH 11918 do 11919 IFS=$as_save_IFS 11920 case $as_dir in #((( 11921 '') as_dir=./ ;; 11922 */) ;; 11923 *) as_dir=$as_dir/ ;; 11924 esac 11925 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11926 done 11927 IFS=$as_save_IFS 11928 11929 ;; 11930 esac 11931 # We did not find ourselves, most probably we were run as 'sh COMMAND' 11932 # in which case we are not to be found in the path. 11933 if test "x$as_myself" = x; then 11934 as_myself=$0 11935 fi 11936 if test ! -f "$as_myself"; then 11937 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11938 exit 1 11939 fi 11940 11941 11942 11943 # as_fn_error STATUS ERROR [LINENO LOG_FD] 11944 # ---------------------------------------- 11945 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11946 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11947 # script with STATUS, using 1 if that was 0. 11948 as_fn_error () 11949 { 11950 as_status=$1; test $as_status -eq 0 && as_status=1 11951 if test "$4"; then 11952 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11954 fi 11955 printf "%s\n" "$as_me: error: $2" >&2 11956 as_fn_exit $as_status 11957 } # as_fn_error 11958 11959 11960 # as_fn_set_status STATUS 11961 # ----------------------- 11962 # Set $? to STATUS, without forking. 11963 as_fn_set_status () 11964 { 11965 return $1 11966 } # as_fn_set_status 11967 11968 # as_fn_exit STATUS 11969 # ----------------- 11970 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11971 as_fn_exit () 11972 { 11973 set +e 11974 as_fn_set_status $1 11975 exit $1 11976 } # as_fn_exit 11977 11978 # as_fn_unset VAR 11979 # --------------- 11980 # Portably unset VAR. 11981 as_fn_unset () 11982 { 11983 { eval $1=; unset $1;} 11984 } 11985 as_unset=as_fn_unset 11986 11987 # as_fn_append VAR VALUE 11988 # ---------------------- 11989 # Append the text in VALUE to the end of the definition contained in VAR. Take 11990 # advantage of any shell optimizations that allow amortized linear growth over 11991 # repeated appends, instead of the typical quadratic growth present in naive 11992 # implementations. 11993 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11994 then : 11995 eval 'as_fn_append () 11996 { 11997 eval $1+=\$2 11998 }' 11999 else case e in #( 12000 e) as_fn_append () 12001 { 12002 eval $1=\$$1\$2 12003 } ;; 12004 esac 12005 fi # as_fn_append 12006 12007 # as_fn_arith ARG... 12008 # ------------------ 12009 # Perform arithmetic evaluation on the ARGs, and store the result in the 12010 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12011 # must be portable across $(()) and expr. 12012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12013 then : 12014 eval 'as_fn_arith () 12015 { 12016 as_val=$(( $* )) 12017 }' 12018 else case e in #( 12019 e) as_fn_arith () 12020 { 12021 as_val=`expr "$@" || test $? -eq 1` 12022 } ;; 12023 esac 12024 fi # as_fn_arith 12025 12026 12027 if expr a : '\(a\)' >/dev/null 2>&1 && 12028 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12029 as_expr=expr 12030 else 12031 as_expr=false 12032 fi 12033 12034 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12035 as_basename=basename 12036 else 12037 as_basename=false 12038 fi 12039 12040 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12041 as_dirname=dirname 12042 else 12043 as_dirname=false 12044 fi 12045 12046 as_me=`$as_basename -- "$0" || 12047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12048 X"$0" : 'X\(//\)$' \| \ 12049 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12050 printf "%s\n" X/"$0" | 12051 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12052 s//\1/ 12053 q 12054 } 12055 /^X\/\(\/\/\)$/{ 12056 s//\1/ 12057 q 12058 } 12059 /^X\/\(\/\).*/{ 12060 s//\1/ 12061 q 12062 } 12063 s/.*/./; q'` 12064 12065 # Avoid depending upon Character Ranges. 12066 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12069 as_cr_digits='0123456789' 12070 as_cr_alnum=$as_cr_Letters$as_cr_digits 12071 12072 12073 # Determine whether it's possible to make 'echo' print without a newline. 12074 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12075 # for compatibility with existing Makefiles. 12076 ECHO_C= ECHO_N= ECHO_T= 12077 case `echo -n x` in #((((( 12078 -n*) 12079 case `echo 'xy\c'` in 12080 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12081 xy) ECHO_C='\c';; 12082 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12083 ECHO_T=' ';; 12084 esac;; 12085 *) 12086 ECHO_N='-n';; 12087 esac 12088 12089 # For backward compatibility with old third-party macros, we provide 12090 # the shell variables $as_echo and $as_echo_n. New code should use 12091 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12092 as_echo='printf %s\n' 12093 as_echo_n='printf %s' 12094 12095 rm -f conf$$ conf$$.exe conf$$.file 12096 if test -d conf$$.dir; then 12097 rm -f conf$$.dir/conf$$.file 12098 else 12099 rm -f conf$$.dir 12100 mkdir conf$$.dir 2>/dev/null 12101 fi 12102 if (echo >conf$$.file) 2>/dev/null; then 12103 if ln -s conf$$.file conf$$ 2>/dev/null; then 12104 as_ln_s='ln -s' 12105 # ... but there are two gotchas: 12106 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12107 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12108 # In both cases, we have to default to 'cp -pR'. 12109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12110 as_ln_s='cp -pR' 12111 elif ln conf$$.file conf$$ 2>/dev/null; then 12112 as_ln_s=ln 12113 else 12114 as_ln_s='cp -pR' 12115 fi 12116 else 12117 as_ln_s='cp -pR' 12118 fi 12119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12120 rmdir conf$$.dir 2>/dev/null 12121 12122 12123 # as_fn_mkdir_p 12124 # ------------- 12125 # Create "$as_dir" as a directory, including parents if necessary. 12126 as_fn_mkdir_p () 12127 { 12128 12129 case $as_dir in #( 12130 -*) as_dir=./$as_dir;; 12131 esac 12132 test -d "$as_dir" || eval $as_mkdir_p || { 12133 as_dirs= 12134 while :; do 12135 case $as_dir in #( 12136 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12137 *) as_qdir=$as_dir;; 12138 esac 12139 as_dirs="'$as_qdir' $as_dirs" 12140 as_dir=`$as_dirname -- "$as_dir" || 12141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12142 X"$as_dir" : 'X\(//\)[^/]' \| \ 12143 X"$as_dir" : 'X\(//\)$' \| \ 12144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12145 printf "%s\n" X"$as_dir" | 12146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12147 s//\1/ 12148 q 12149 } 12150 /^X\(\/\/\)[^/].*/{ 12151 s//\1/ 12152 q 12153 } 12154 /^X\(\/\/\)$/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\(\/\).*/{ 12159 s//\1/ 12160 q 12161 } 12162 s/.*/./; q'` 12163 test -d "$as_dir" && break 12164 done 12165 test -z "$as_dirs" || eval "mkdir $as_dirs" 12166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12167 12168 12169 } # as_fn_mkdir_p 12170 if mkdir -p . 2>/dev/null; then 12171 as_mkdir_p='mkdir -p "$as_dir"' 12172 else 12173 test -d ./-p && rmdir ./-p 12174 as_mkdir_p=false 12175 fi 12176 12177 12178 # as_fn_executable_p FILE 12179 # ----------------------- 12180 # Test if FILE is an executable regular file. 12181 as_fn_executable_p () 12182 { 12183 test -f "$1" && test -x "$1" 12184 } # as_fn_executable_p 12185 as_test_x='test -x' 12186 as_executable_p=as_fn_executable_p 12187 12188 # Sed expression to map a string onto a valid CPP name. 12189 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12190 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12191 12192 # Sed expression to map a string onto a valid variable name. 12193 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12194 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12195 12196 12197 exec 6>&1 12198 ## ----------------------------------- ## 12199 ## Main body of $CONFIG_STATUS script. ## 12200 ## ----------------------------------- ## 12201 _ASEOF 12202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12203 12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12205 # Save the log message, to keep $0 and so on meaningful, and to 12206 # report actual input values of CONFIG_FILES etc. instead of their 12207 # values after options handling. 12208 ac_log=" 12209 This file was extended by xprop $as_me 1.2.8, which was 12210 generated by GNU Autoconf 2.72. Invocation command line was 12211 12212 CONFIG_FILES = $CONFIG_FILES 12213 CONFIG_HEADERS = $CONFIG_HEADERS 12214 CONFIG_LINKS = $CONFIG_LINKS 12215 CONFIG_COMMANDS = $CONFIG_COMMANDS 12216 $ $0 $@ 12217 12218 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12219 " 12220 12221 _ACEOF 12222 12223 case $ac_config_files in *" 12224 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12225 esac 12226 12227 case $ac_config_headers in *" 12228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12229 esac 12230 12231 12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12233 # Files that config.status was made for. 12234 config_files="$ac_config_files" 12235 config_headers="$ac_config_headers" 12236 config_commands="$ac_config_commands" 12237 12238 _ACEOF 12239 12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12241 ac_cs_usage="\ 12242 '$as_me' instantiates files and other configuration actions 12243 from templates according to the current configuration. Unless the files 12244 and actions are specified as TAGs, all are instantiated by default. 12245 12246 Usage: $0 [OPTION]... [TAG]... 12247 12248 -h, --help print this help, then exit 12249 -V, --version print version number and configuration settings, then exit 12250 --config print configuration, then exit 12251 -q, --quiet, --silent 12252 do not print progress messages 12253 -d, --debug don't remove temporary files 12254 --recheck update $as_me by reconfiguring in the same conditions 12255 --file=FILE[:TEMPLATE] 12256 instantiate the configuration file FILE 12257 --header=FILE[:TEMPLATE] 12258 instantiate the configuration header FILE 12259 12260 Configuration files: 12261 $config_files 12262 12263 Configuration headers: 12264 $config_headers 12265 12266 Configuration commands: 12267 $config_commands 12268 12269 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>." 12270 12271 _ACEOF 12272 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12273 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12275 ac_cs_config='$ac_cs_config_escaped' 12276 ac_cs_version="\\ 12277 xprop config.status 1.2.8 12278 configured by $0, generated by GNU Autoconf 2.72, 12279 with options \\"\$ac_cs_config\\" 12280 12281 Copyright (C) 2023 Free Software Foundation, Inc. 12282 This config.status script is free software; the Free Software Foundation 12283 gives unlimited permission to copy, distribute and modify it." 12284 12285 ac_pwd='$ac_pwd' 12286 srcdir='$srcdir' 12287 INSTALL='$INSTALL' 12288 MKDIR_P='$MKDIR_P' 12289 AWK='$AWK' 12290 test -n "\$AWK" || AWK=awk 12291 _ACEOF 12292 12293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12294 # The default lists apply if the user does not specify any file. 12295 ac_need_defaults=: 12296 while test $# != 0 12297 do 12298 case $1 in 12299 --*=?*) 12300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12302 ac_shift=: 12303 ;; 12304 --*=) 12305 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12306 ac_optarg= 12307 ac_shift=: 12308 ;; 12309 *) 12310 ac_option=$1 12311 ac_optarg=$2 12312 ac_shift=shift 12313 ;; 12314 esac 12315 12316 case $ac_option in 12317 # Handling of the options. 12318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12319 ac_cs_recheck=: ;; 12320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12321 printf "%s\n" "$ac_cs_version"; exit ;; 12322 --config | --confi | --conf | --con | --co | --c ) 12323 printf "%s\n" "$ac_cs_config"; exit ;; 12324 --debug | --debu | --deb | --de | --d | -d ) 12325 debug=: ;; 12326 --file | --fil | --fi | --f ) 12327 $ac_shift 12328 case $ac_optarg in 12329 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12330 '') as_fn_error $? "missing file argument" ;; 12331 esac 12332 as_fn_append CONFIG_FILES " '$ac_optarg'" 12333 ac_need_defaults=false;; 12334 --header | --heade | --head | --hea ) 12335 $ac_shift 12336 case $ac_optarg in 12337 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12338 esac 12339 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12340 ac_need_defaults=false;; 12341 --he | --h) 12342 # Conflict between --help and --header 12343 as_fn_error $? "ambiguous option: '$1' 12344 Try '$0 --help' for more information.";; 12345 --help | --hel | -h ) 12346 printf "%s\n" "$ac_cs_usage"; exit ;; 12347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12348 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12349 ac_cs_silent=: ;; 12350 12351 # This is an error. 12352 -*) as_fn_error $? "unrecognized option: '$1' 12353 Try '$0 --help' for more information." ;; 12354 12355 *) as_fn_append ac_config_targets " $1" 12356 ac_need_defaults=false ;; 12357 12358 esac 12359 shift 12360 done 12361 12362 ac_configure_extra_args= 12363 12364 if $ac_cs_silent; then 12365 exec 6>/dev/null 12366 ac_configure_extra_args="$ac_configure_extra_args --silent" 12367 fi 12368 12369 _ACEOF 12370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12371 if \$ac_cs_recheck; then 12372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12373 shift 12374 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12375 CONFIG_SHELL='$SHELL' 12376 export CONFIG_SHELL 12377 exec "\$@" 12378 fi 12379 12380 _ACEOF 12381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12382 exec 5>>config.log 12383 { 12384 echo 12385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12386 ## Running $as_me. ## 12387 _ASBOX 12388 printf "%s\n" "$ac_log" 12389 } >&5 12390 12391 _ACEOF 12392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12393 # 12394 # INIT-COMMANDS 12395 # 12396 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12397 12398 _ACEOF 12399 12400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12401 12402 # Handling of arguments. 12403 for ac_config_target in $ac_config_targets 12404 do 12405 case $ac_config_target in 12406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12409 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12410 12411 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12412 esac 12413 done 12414 12415 12416 # If the user did not use the arguments to specify the items to instantiate, 12417 # then the envvar interface is used. Set only those that are not. 12418 # We use the long form for the default assignment because of an extremely 12419 # bizarre bug on SunOS 4.1.3. 12420 if $ac_need_defaults; then 12421 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12422 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12423 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12424 fi 12425 12426 # Have a temporary directory for convenience. Make it in the build tree 12427 # simply because there is no reason against having it here, and in addition, 12428 # creating and moving files from /tmp can sometimes cause problems. 12429 # Hook for its removal unless debugging. 12430 # Note that there is a small window in which the directory will not be cleaned: 12431 # after its creation but before its name has been assigned to '$tmp'. 12432 $debug || 12433 { 12434 tmp= ac_tmp= 12435 trap 'exit_status=$? 12436 : "${ac_tmp:=$tmp}" 12437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12438 ' 0 12439 trap 'as_fn_exit 1' 1 2 13 15 12440 } 12441 # Create a (secure) tmp directory for tmp files. 12442 12443 { 12444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12445 test -d "$tmp" 12446 } || 12447 { 12448 tmp=./conf$$-$RANDOM 12449 (umask 077 && mkdir "$tmp") 12450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12451 ac_tmp=$tmp 12452 12453 # Set up the scripts for CONFIG_FILES section. 12454 # No need to generate them if there are no CONFIG_FILES. 12455 # This happens for instance with './config.status config.h'. 12456 if test -n "$CONFIG_FILES"; then 12457 12458 12459 ac_cr=`echo X | tr X '\015'` 12460 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12461 # But we know of no other shell where ac_cr would be empty at this 12462 # point, so we can use a bashism as a fallback. 12463 if test "x$ac_cr" = x; then 12464 eval ac_cr=\$\'\\r\' 12465 fi 12466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12468 ac_cs_awk_cr='\\r' 12469 else 12470 ac_cs_awk_cr=$ac_cr 12471 fi 12472 12473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12474 _ACEOF 12475 12476 12477 { 12478 echo "cat >conf$$subs.awk <<_ACEOF" && 12479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12480 echo "_ACEOF" 12481 } >conf$$subs.sh || 12482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12484 ac_delim='%!_!# ' 12485 for ac_last_try in false false false false false :; do 12486 . ./conf$$subs.sh || 12487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12488 12489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12490 if test $ac_delim_n = $ac_delim_num; then 12491 break 12492 elif $ac_last_try; then 12493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12494 else 12495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12496 fi 12497 done 12498 rm -f conf$$subs.sh 12499 12500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12502 _ACEOF 12503 sed -n ' 12504 h 12505 s/^/S["/; s/!.*/"]=/ 12506 p 12507 g 12508 s/^[^!]*!// 12509 :repl 12510 t repl 12511 s/'"$ac_delim"'$// 12512 t delim 12513 :nl 12514 h 12515 s/\(.\{148\}\)..*/\1/ 12516 t more1 12517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12518 p 12519 n 12520 b repl 12521 :more1 12522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12523 p 12524 g 12525 s/.\{148\}// 12526 t nl 12527 :delim 12528 h 12529 s/\(.\{148\}\)..*/\1/ 12530 t more2 12531 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12532 p 12533 b 12534 :more2 12535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12536 p 12537 g 12538 s/.\{148\}// 12539 t delim 12540 ' <conf$$subs.awk | sed ' 12541 /^[^""]/{ 12542 N 12543 s/\n// 12544 } 12545 ' >>$CONFIG_STATUS || ac_write_fail=1 12546 rm -f conf$$subs.awk 12547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12548 _ACAWK 12549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12550 for (key in S) S_is_set[key] = 1 12551 FS = "" 12552 12553 } 12554 { 12555 line = $ 0 12556 nfields = split(line, field, "@") 12557 substed = 0 12558 len = length(field[1]) 12559 for (i = 2; i < nfields; i++) { 12560 key = field[i] 12561 keylen = length(key) 12562 if (S_is_set[key]) { 12563 value = S[key] 12564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12565 len += length(value) + length(field[++i]) 12566 substed = 1 12567 } else 12568 len += 1 + keylen 12569 } 12570 12571 print line 12572 } 12573 12574 _ACAWK 12575 _ACEOF 12576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12579 else 12580 cat 12581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12583 _ACEOF 12584 12585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12587 # trailing colons and then remove the whole line if VPATH becomes empty 12588 # (actually we leave an empty line to preserve line numbers). 12589 if test "x$srcdir" = x.; then 12590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12591 h 12592 s/// 12593 s/^/:/ 12594 s/[ ]*$/:/ 12595 s/:\$(srcdir):/:/g 12596 s/:\${srcdir}:/:/g 12597 s/:@srcdir@:/:/g 12598 s/^:*// 12599 s/:*$// 12600 x 12601 s/\(=[ ]*\).*/\1/ 12602 G 12603 s/\n// 12604 s/^[^=]*=[ ]*$// 12605 }' 12606 fi 12607 12608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12609 fi # test -n "$CONFIG_FILES" 12610 12611 # Set up the scripts for CONFIG_HEADERS section. 12612 # No need to generate them if there are no CONFIG_HEADERS. 12613 # This happens for instance with './config.status Makefile'. 12614 if test -n "$CONFIG_HEADERS"; then 12615 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12616 BEGIN { 12617 _ACEOF 12618 12619 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12620 # here-document in config.status, that substitutes the proper values into 12621 # config.h.in to produce config.h. 12622 12623 # Create a delimiter string that does not exist in confdefs.h, to ease 12624 # handling of long lines. 12625 ac_delim='%!_!# ' 12626 for ac_last_try in false false :; do 12627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12628 if test -z "$ac_tt"; then 12629 break 12630 elif $ac_last_try; then 12631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12632 else 12633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12634 fi 12635 done 12636 12637 # For the awk script, D is an array of macro values keyed by name, 12638 # likewise P contains macro parameters if any. Preserve backslash 12639 # newline sequences. 12640 12641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12642 sed -n ' 12643 s/.\{148\}/&'"$ac_delim"'/g 12644 t rset 12645 :rset 12646 s/^[ ]*#[ ]*define[ ][ ]*/ / 12647 t def 12648 d 12649 :def 12650 s/\\$// 12651 t bsnl 12652 s/["\\]/\\&/g 12653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12654 D["\1"]=" \3"/p 12655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12656 d 12657 :bsnl 12658 s/["\\]/\\&/g 12659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12660 D["\1"]=" \3\\\\\\n"\\/p 12661 t cont 12662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12663 t cont 12664 d 12665 :cont 12666 n 12667 s/.\{148\}/&'"$ac_delim"'/g 12668 t clear 12669 :clear 12670 s/\\$// 12671 t bsnlc 12672 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12673 d 12674 :bsnlc 12675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12676 b cont 12677 ' <confdefs.h | sed ' 12678 s/'"$ac_delim"'/"\\\ 12679 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12680 12681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12682 for (key in D) D_is_set[key] = 1 12683 FS = "" 12684 } 12685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12686 line = \$ 0 12687 split(line, arg, " ") 12688 if (arg[1] == "#") { 12689 defundef = arg[2] 12690 mac1 = arg[3] 12691 } else { 12692 defundef = substr(arg[1], 2) 12693 mac1 = arg[2] 12694 } 12695 split(mac1, mac2, "(") #) 12696 macro = mac2[1] 12697 prefix = substr(line, 1, index(line, defundef) - 1) 12698 if (D_is_set[macro]) { 12699 # Preserve the white space surrounding the "#". 12700 print prefix "define", macro P[macro] D[macro] 12701 next 12702 } else { 12703 # Replace #undef with comments. This is necessary, for example, 12704 # in the case of _POSIX_SOURCE, which is predefined and required 12705 # on some systems where configure will not decide to define it. 12706 if (defundef == "undef") { 12707 print "/*", prefix defundef, macro, "*/" 12708 next 12709 } 12710 } 12711 } 12712 { print } 12713 _ACAWK 12714 _ACEOF 12715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12717 fi # test -n "$CONFIG_HEADERS" 12718 12719 12720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12721 shift 12722 for ac_tag 12723 do 12724 case $ac_tag in 12725 :[FHLC]) ac_mode=$ac_tag; continue;; 12726 esac 12727 case $ac_mode$ac_tag in 12728 :[FHL]*:*);; 12729 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12730 :[FH]-) ac_tag=-:-;; 12731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12732 esac 12733 ac_save_IFS=$IFS 12734 IFS=: 12735 set x $ac_tag 12736 IFS=$ac_save_IFS 12737 shift 12738 ac_file=$1 12739 shift 12740 12741 case $ac_mode in 12742 :L) ac_source=$1;; 12743 :[FH]) 12744 ac_file_inputs= 12745 for ac_f 12746 do 12747 case $ac_f in 12748 -) ac_f="$ac_tmp/stdin";; 12749 *) # Look for the file first in the build tree, then in the source tree 12750 # (if the path is not absolute). The absolute path cannot be DOS-style, 12751 # because $ac_f cannot contain ':'. 12752 test -f "$ac_f" || 12753 case $ac_f in 12754 [\\/$]*) false;; 12755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12756 esac || 12757 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12758 esac 12759 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12760 as_fn_append ac_file_inputs " '$ac_f'" 12761 done 12762 12763 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12764 # use $as_me), people would be surprised to read: 12765 # /* config.h. Generated by config.status. */ 12766 configure_input='Generated from '` 12767 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12768 `' by configure.' 12769 if test x"$ac_file" != x-; then 12770 configure_input="$ac_file. $configure_input" 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12772 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12773 fi 12774 # Neutralize special characters interpreted by sed in replacement strings. 12775 case $configure_input in #( 12776 *\&* | *\|* | *\\* ) 12777 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12778 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12779 *) ac_sed_conf_input=$configure_input;; 12780 esac 12781 12782 case $ac_tag in 12783 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12785 esac 12786 ;; 12787 esac 12788 12789 ac_dir=`$as_dirname -- "$ac_file" || 12790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12791 X"$ac_file" : 'X\(//\)[^/]' \| \ 12792 X"$ac_file" : 'X\(//\)$' \| \ 12793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12794 printf "%s\n" X"$ac_file" | 12795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12796 s//\1/ 12797 q 12798 } 12799 /^X\(\/\/\)[^/].*/{ 12800 s//\1/ 12801 q 12802 } 12803 /^X\(\/\/\)$/{ 12804 s//\1/ 12805 q 12806 } 12807 /^X\(\/\).*/{ 12808 s//\1/ 12809 q 12810 } 12811 s/.*/./; q'` 12812 as_dir="$ac_dir"; as_fn_mkdir_p 12813 ac_builddir=. 12814 12815 case "$ac_dir" in 12816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12817 *) 12818 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12819 # A ".." for each directory in $ac_dir_suffix. 12820 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12821 case $ac_top_builddir_sub in 12822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12824 esac ;; 12825 esac 12826 ac_abs_top_builddir=$ac_pwd 12827 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12828 # for backward compatibility: 12829 ac_top_builddir=$ac_top_build_prefix 12830 12831 case $srcdir in 12832 .) # We are building in place. 12833 ac_srcdir=. 12834 ac_top_srcdir=$ac_top_builddir_sub 12835 ac_abs_top_srcdir=$ac_pwd ;; 12836 [\\/]* | ?:[\\/]* ) # Absolute name. 12837 ac_srcdir=$srcdir$ac_dir_suffix; 12838 ac_top_srcdir=$srcdir 12839 ac_abs_top_srcdir=$srcdir ;; 12840 *) # Relative name. 12841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12842 ac_top_srcdir=$ac_top_build_prefix$srcdir 12843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12844 esac 12845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12846 12847 12848 case $ac_mode in 12849 :F) 12850 # 12851 # CONFIG_FILE 12852 # 12853 12854 case $INSTALL in 12855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12857 esac 12858 ac_MKDIR_P=$MKDIR_P 12859 case $MKDIR_P in 12860 [\\/$]* | ?:[\\/]* ) ;; 12861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12862 esac 12863 _ACEOF 12864 12865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12866 # If the template does not know about datarootdir, expand it. 12867 # FIXME: This hack should be removed a few years after 2.60. 12868 ac_datarootdir_hack=; ac_datarootdir_seen= 12869 ac_sed_dataroot=' 12870 /datarootdir/ { 12871 p 12872 q 12873 } 12874 /@datadir@/p 12875 /@docdir@/p 12876 /@infodir@/p 12877 /@localedir@/p 12878 /@mandir@/p' 12879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12880 *datarootdir*) ac_datarootdir_seen=yes;; 12881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12883 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12884 _ACEOF 12885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12886 ac_datarootdir_hack=' 12887 s&@datadir@&$datadir&g 12888 s&@docdir@&$docdir&g 12889 s&@infodir@&$infodir&g 12890 s&@localedir@&$localedir&g 12891 s&@mandir@&$mandir&g 12892 s&\\\${datarootdir}&$datarootdir&g' ;; 12893 esac 12894 _ACEOF 12895 12896 # Neutralize VPATH when '$srcdir' = '.'. 12897 # Shell code in configure.ac might set extrasub. 12898 # FIXME: do we really want to maintain this feature? 12899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12900 ac_sed_extra="$ac_vpsub 12901 $extrasub 12902 _ACEOF 12903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12904 :t 12905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12906 s|@configure_input@|$ac_sed_conf_input|;t t 12907 s&@top_builddir@&$ac_top_builddir_sub&;t t 12908 s&@top_build_prefix@&$ac_top_build_prefix&;t t 12909 s&@srcdir@&$ac_srcdir&;t t 12910 s&@abs_srcdir@&$ac_abs_srcdir&;t t 12911 s&@top_srcdir@&$ac_top_srcdir&;t t 12912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12913 s&@builddir@&$ac_builddir&;t t 12914 s&@abs_builddir@&$ac_abs_builddir&;t t 12915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12916 s&@INSTALL@&$ac_INSTALL&;t t 12917 s&@MKDIR_P@&$ac_MKDIR_P&;t t 12918 $ac_datarootdir_hack 12919 " 12920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12922 12923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12926 "$ac_tmp/out"`; test -z "$ac_out"; } && 12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12928 which seems to be undefined. Please make sure it is defined" >&5 12929 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12930 which seems to be undefined. Please make sure it is defined" >&2;} 12931 12932 rm -f "$ac_tmp/stdin" 12933 case $ac_file in 12934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12936 esac \ 12937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12938 ;; 12939 :H) 12940 # 12941 # CONFIG_HEADER 12942 # 12943 if test x"$ac_file" != x-; then 12944 { 12945 printf "%s\n" "/* $configure_input */" >&1 \ 12946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12947 } >"$ac_tmp/config.h" \ 12948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12951 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12952 else 12953 rm -f "$ac_file" 12954 mv "$ac_tmp/config.h" "$ac_file" \ 12955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12956 fi 12957 else 12958 printf "%s\n" "/* $configure_input */" >&1 \ 12959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12960 || as_fn_error $? "could not create -" "$LINENO" 5 12961 fi 12962 # Compute "$ac_file"'s index in $config_headers. 12963 _am_arg="$ac_file" 12964 _am_stamp_count=1 12965 for _am_header in $config_headers :; do 12966 case $_am_header in 12967 $_am_arg | $_am_arg:* ) 12968 break ;; 12969 * ) 12970 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12971 esac 12972 done 12973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12975 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12976 X"$_am_arg" : 'X\(//\)$' \| \ 12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12978 printf "%s\n" X"$_am_arg" | 12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12980 s//\1/ 12981 q 12982 } 12983 /^X\(\/\/\)[^/].*/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\(\/\/\)$/{ 12988 s//\1/ 12989 q 12990 } 12991 /^X\(\/\).*/{ 12992 s//\1/ 12993 q 12994 } 12995 s/.*/./; q'`/stamp-h$_am_stamp_count 12996 ;; 12997 12998 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12999 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13000 ;; 13001 esac 13002 13003 13004 case $ac_file$ac_mode in 13005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13006 # Older Autoconf quotes --file arguments for eval, but not when files 13007 # are listed without --file. Let's play safe and only enable the eval 13008 # if we detect the quoting. 13009 # TODO: see whether this extra hack can be removed once we start 13010 # requiring Autoconf 2.70 or later. 13011 case $CONFIG_FILES in #( 13012 *\'*) : 13013 eval set x "$CONFIG_FILES" ;; #( 13014 *) : 13015 set x $CONFIG_FILES ;; #( 13016 *) : 13017 ;; 13018 esac 13019 shift 13020 # Used to flag and report bootstrapping failures. 13021 am_rc=0 13022 for am_mf 13023 do 13024 # Strip MF so we end up with the name of the file. 13025 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13026 # Check whether this is an Automake generated Makefile which includes 13027 # dependency-tracking related rules and includes. 13028 # Grep'ing the whole file directly is not great: AIX grep has a line 13029 # limit of 2048, but all sed's we know have understand at least 4000. 13030 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13031 || continue 13032 am_dirpart=`$as_dirname -- "$am_mf" || 13033 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13034 X"$am_mf" : 'X\(//\)[^/]' \| \ 13035 X"$am_mf" : 'X\(//\)$' \| \ 13036 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13037 printf "%s\n" X"$am_mf" | 13038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13039 s//\1/ 13040 q 13041 } 13042 /^X\(\/\/\)[^/].*/{ 13043 s//\1/ 13044 q 13045 } 13046 /^X\(\/\/\)$/{ 13047 s//\1/ 13048 q 13049 } 13050 /^X\(\/\).*/{ 13051 s//\1/ 13052 q 13053 } 13054 s/.*/./; q'` 13055 am_filepart=`$as_basename -- "$am_mf" || 13056 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13057 X"$am_mf" : 'X\(//\)$' \| \ 13058 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13059 printf "%s\n" X/"$am_mf" | 13060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13061 s//\1/ 13062 q 13063 } 13064 /^X\/\(\/\/\)$/{ 13065 s//\1/ 13066 q 13067 } 13068 /^X\/\(\/\).*/{ 13069 s//\1/ 13070 q 13071 } 13072 s/.*/./; q'` 13073 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13074 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13075 | $MAKE -f - am--depfiles" >&5 13076 (cd "$am_dirpart" \ 13077 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13078 | $MAKE -f - am--depfiles) >&5 2>&5 13079 ac_status=$? 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } || am_rc=$? 13082 done 13083 if test $am_rc -ne 0; then 13084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13085 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13086 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13087 for automatic dependency tracking. If GNU make was not used, consider 13088 re-running the configure script with MAKE=\"gmake\" (or whatever is 13089 necessary). You can also try re-running configure with the 13090 '--disable-dependency-tracking' option to at least be able to build 13091 the package (albeit without support for automatic dependency tracking). 13092 See 'config.log' for more details" "$LINENO" 5; } 13093 fi 13094 { am_dirpart=; unset am_dirpart;} 13095 { am_filepart=; unset am_filepart;} 13096 { am_mf=; unset am_mf;} 13097 { am_rc=; unset am_rc;} 13098 rm -f conftest-deps.mk 13099 } 13100 ;; 13101 13102 esac 13103 done # for ac_tag 13104 13105 13106 as_fn_exit 0 13107 _ACEOF 13108 ac_clean_files=$ac_clean_files_save 13109 13110 test $ac_write_fail = 0 || 13111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13112 13113 13114 # configure is writing to config.log, and then calls config.status. 13115 # config.status does its own redirection, appending to config.log. 13116 # Unfortunately, on DOS this fails, as config.log is still kept open 13117 # by configure, so config.status won't be able to write to it; its 13118 # output is simply discarded. So we exec the FD to /dev/null, 13119 # effectively closing config.log, so it can be properly (re)opened and 13120 # appended to by config.status. When coming back to configure, we 13121 # need to make the FD available again. 13122 if test "$no_create" != yes; then 13123 ac_cs_success=: 13124 ac_config_status_args= 13125 test "$silent" = yes && 13126 ac_config_status_args="$ac_config_status_args --quiet" 13127 exec 5>/dev/null 13128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13129 exec 5>>config.log 13130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13131 # would make configure fail if this is the last instruction. 13132 $ac_cs_success || as_fn_exit 1 13133 fi 13134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13136 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13137 fi 13138 13139 13140