1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xkbutils 1.0.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/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/xkbutils/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='xkbutils' 607 PACKAGE_TARNAME='xkbutils' 608 PACKAGE_VERSION='1.0.6' 609 PACKAGE_STRING='xkbutils 1.0.6' 610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbutils/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 XKBWATCH_LIBS 651 XKBWATCH_CFLAGS 652 XKBBELL_LIBS 653 XKBBELL_CFLAGS 654 XKBVLEDS_LIBS 655 XKBVLEDS_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_BACKSLASH 704 AM_DEFAULT_VERBOSITY 705 AM_DEFAULT_V 706 AM_V 707 CSCOPE 708 ETAGS 709 CTAGS 710 am__untar 711 am__tar 712 AMTAR 713 am__leading_dot 714 SET_MAKE 715 AWK 716 mkdir_p 717 MKDIR_P 718 INSTALL_STRIP_PROGRAM 719 STRIP 720 install_sh 721 MAKEINFO 722 AUTOHEADER 723 AUTOMAKE 724 AUTOCONF 725 ACLOCAL 726 VERSION 727 PACKAGE 728 CYGPATH_W 729 am__isrc 730 INSTALL_DATA 731 INSTALL_SCRIPT 732 INSTALL_PROGRAM 733 target_alias 734 host_alias 735 build_alias 736 LIBS 737 ECHO_T 738 ECHO_N 739 ECHO_C 740 DEFS 741 mandir 742 localedir 743 libdir 744 psdir 745 pdfdir 746 dvidir 747 htmldir 748 infodir 749 docdir 750 oldincludedir 751 includedir 752 runstatedir 753 localstatedir 754 sharedstatedir 755 sysconfdir 756 datadir 757 datarootdir 758 libexecdir 759 sbindir 760 bindir 761 program_transform_name 762 prefix 763 exec_prefix 764 PACKAGE_URL 765 PACKAGE_BUGREPORT 766 PACKAGE_STRING 767 PACKAGE_VERSION 768 PACKAGE_TARNAME 769 PACKAGE_NAME 770 PATH_SEPARATOR 771 SHELL 772 am__quote' 773 ac_subst_files='' 774 ac_user_opts=' 775 enable_option_checking 776 enable_silent_rules 777 enable_dependency_tracking 778 enable_selective_werror 779 enable_strict_compilation 780 ' 781 ac_precious_vars='build_alias 782 host_alias 783 target_alias 784 CC 785 CFLAGS 786 LDFLAGS 787 LIBS 788 CPPFLAGS 789 PKG_CONFIG 790 PKG_CONFIG_PATH 791 PKG_CONFIG_LIBDIR 792 XKBVLEDS_CFLAGS 793 XKBVLEDS_LIBS 794 XKBBELL_CFLAGS 795 XKBBELL_LIBS 796 XKBWATCH_CFLAGS 797 XKBWATCH_LIBS' 798 799 800 # Initialize some variables set by options. 801 ac_init_help= 802 ac_init_version=false 803 ac_unrecognized_opts= 804 ac_unrecognized_sep= 805 # The variables have the same names as the options, with 806 # dashes changed to underlines. 807 cache_file=/dev/null 808 exec_prefix=NONE 809 no_create= 810 no_recursion= 811 prefix=NONE 812 program_prefix=NONE 813 program_suffix=NONE 814 program_transform_name=s,x,x, 815 silent= 816 site= 817 srcdir= 818 verbose= 819 x_includes=NONE 820 x_libraries=NONE 821 822 # Installation directory options. 823 # These are left unexpanded so users can "make install exec_prefix=/foo" 824 # and all the variables that are supposed to be based on exec_prefix 825 # by default will actually change. 826 # Use braces instead of parens because sh, perl, etc. also accept them. 827 # (The list follows the same order as the GNU Coding Standards.) 828 bindir='${exec_prefix}/bin' 829 sbindir='${exec_prefix}/sbin' 830 libexecdir='${exec_prefix}/libexec' 831 datarootdir='${prefix}/share' 832 datadir='${datarootdir}' 833 sysconfdir='${prefix}/etc' 834 sharedstatedir='${prefix}/com' 835 localstatedir='${prefix}/var' 836 runstatedir='${localstatedir}/run' 837 includedir='${prefix}/include' 838 oldincludedir='/usr/include' 839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840 infodir='${datarootdir}/info' 841 htmldir='${docdir}' 842 dvidir='${docdir}' 843 pdfdir='${docdir}' 844 psdir='${docdir}' 845 libdir='${exec_prefix}/lib' 846 localedir='${datarootdir}/locale' 847 mandir='${datarootdir}/man' 848 849 ac_prev= 850 ac_dashdash= 851 for ac_option 852 do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: '$ac_useropt'" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911 "enable_$ac_useropt" 912 "*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: '$ac_useropt'" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937 "enable_$ac_useropt" 938 "*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1088 | --runstate | --runstat | --runsta | --runst | --runs \ 1089 | --run | --ru | --r) 1090 ac_prev=runstatedir ;; 1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1093 | --run=* | --ru=* | --r=*) 1094 runstatedir=$ac_optarg ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: '$ac_useropt'" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150 "with_$ac_useropt" 1151 "*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: '$ac_useropt'" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166 "with_$ac_useropt" 1167 "*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: '$ac_option' 1192 Try '$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214 done 1215 1216 if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219 fi 1220 1221 if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227 fi 1228 1229 # Check all directory arguments for consistency. 1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir runstatedir 1234 do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248 done 1249 1250 # There might be people who depend on the old broken behavior: '$host' 1251 # used to hold the argument of --host etc. 1252 # FIXME: To remove some day. 1253 build=$build_alias 1254 host=$host_alias 1255 target=$target_alias 1256 1257 # FIXME: To remove some day. 1258 if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264 fi 1265 1266 ac_tool_prefix= 1267 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269 test "$silent" = yes && exec 6>/dev/null 1270 1271 1272 ac_pwd=`pwd` && test -n "$ac_pwd" && 1273 ac_ls_di=`ls -di .` && 1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280 # Find the source files, if location was not specified. 1281 if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289 printf "%s\n" X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311 else 1312 ac_srcdir_defaulted=no 1313 fi 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317 fi 1318 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1319 ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322 # When building in place, set srcdir=. 1323 if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325 fi 1326 # Remove unnecessary trailing slashes from srcdir. 1327 # Double slashes in file names in object file debugging info 1328 # mess up M-x gdb in Emacs. 1329 case $srcdir in 1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331 esac 1332 for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337 done 1338 1339 # 1340 # Report the --help message. 1341 # 1342 if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346 'configure' configures xkbutils 1.0.6 to adapt to many kinds of systems. 1347 1348 Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351 VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353 Defaults for the options are specified in brackets. 1354 1355 Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print 'checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for '--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1365 1366 Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372 By default, 'make install' will install all the files in 1373 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1374 an installation prefix other than '$ac_default_prefix' using '--prefix', 1375 for instance '--prefix=\$HOME'. 1376 1377 For better control, use the options below. 1378 1379 Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbutils] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400 _ACEOF 1401 1402 cat <<\_ACEOF 1403 1404 Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409 System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412 _ACEOF 1413 fi 1414 1415 if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of xkbutils 1.0.6:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421 Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --disable-selective-werror 1432 Turn off selective compiler errors. (default: 1433 enabled) 1434 --enable-strict-compilation 1435 Enable all warnings from compiler and make them 1436 errors (default: disabled) 1437 1438 Some influential environment variables: 1439 CC C compiler command 1440 CFLAGS C compiler flags 1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1442 nonstandard directory <lib dir> 1443 LIBS libraries to pass to the linker, e.g. -l<library> 1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1445 you have headers in a nonstandard directory <include dir> 1446 PKG_CONFIG path to pkg-config utility 1447 PKG_CONFIG_PATH 1448 directories to add to pkg-config's search path 1449 PKG_CONFIG_LIBDIR 1450 path overriding pkg-config's built-in search path 1451 XKBVLEDS_CFLAGS 1452 C compiler flags for XKBVLEDS, overriding pkg-config 1453 XKBVLEDS_LIBS 1454 linker flags for XKBVLEDS, overriding pkg-config 1455 XKBBELL_CFLAGS 1456 C compiler flags for XKBBELL, overriding pkg-config 1457 XKBBELL_LIBS 1458 linker flags for XKBBELL, overriding pkg-config 1459 XKBWATCH_CFLAGS 1460 C compiler flags for XKBWATCH, overriding pkg-config 1461 XKBWATCH_LIBS 1462 linker flags for XKBWATCH, overriding pkg-config 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/xkbutils/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 xkbutils configure 1.0.6 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 1722 # ac_fn_c_check_func LINENO FUNC VAR 1723 # ---------------------------------- 1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1725 ac_fn_c_check_func () 1726 { 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729 printf %s "checking for $2... " >&6; } 1730 if eval test \${$3+y} 1731 then : 1732 printf %s "(cached) " >&6 1733 else case e in #( 1734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735 /* end confdefs.h. */ 1736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1738 #define $2 innocuous_$2 1739 1740 /* System header to define __stub macros and hopefully few prototypes, 1741 which can conflict with char $2 (void); below. */ 1742 1743 #include <limits.h> 1744 #undef $2 1745 1746 /* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749 #ifdef __cplusplus 1750 extern "C" 1751 #endif 1752 char $2 (void); 1753 /* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756 #if defined __stub_$2 || defined __stub___$2 1757 choke me 1758 #endif 1759 1760 int 1761 main (void) 1762 { 1763 return $2 (); 1764 ; 1765 return 0; 1766 } 1767 _ACEOF 1768 if ac_fn_c_try_link "$LINENO" 1769 then : 1770 eval "$3=yes" 1771 else case e in #( 1772 e) eval "$3=no" ;; 1773 esac 1774 fi 1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1776 conftest$ac_exeext conftest.$ac_ext ;; 1777 esac 1778 fi 1779 eval ac_res=\$$3 1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781 printf "%s\n" "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784 } # ac_fn_c_check_func 1785 ac_configure_args_raw= 1786 for ac_arg 1787 do 1788 case $ac_arg in 1789 *\'*) 1790 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1791 esac 1792 as_fn_append ac_configure_args_raw " '$ac_arg'" 1793 done 1794 1795 case $ac_configure_args_raw in 1796 *$as_nl*) 1797 ac_safe_unquote= ;; 1798 *) 1799 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1800 ac_unsafe_a="$ac_unsafe_z#~" 1801 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1802 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1803 esac 1804 1805 cat >config.log <<_ACEOF 1806 This file contains any messages produced by compilers while 1807 running configure, to aid debugging if configure makes a mistake. 1808 1809 It was created by xkbutils $as_me 1.0.6, which was 1810 generated by GNU Autoconf 2.72. Invocation command line was 1811 1812 $ $0$ac_configure_args_raw 1813 1814 _ACEOF 1815 exec 5>>config.log 1816 { 1817 cat <<_ASUNAME 1818 ## --------- ## 1819 ## Platform. ## 1820 ## --------- ## 1821 1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1823 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1824 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1825 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1826 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1827 1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1830 1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1838 1839 _ASUNAME 1840 1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842 for as_dir in $PATH 1843 do 1844 IFS=$as_save_IFS 1845 case $as_dir in #((( 1846 '') as_dir=./ ;; 1847 */) ;; 1848 *) as_dir=$as_dir/ ;; 1849 esac 1850 printf "%s\n" "PATH: $as_dir" 1851 done 1852 IFS=$as_save_IFS 1853 1854 } >&5 1855 1856 cat >&5 <<_ACEOF 1857 1858 1859 ## ----------- ## 1860 ## Core tests. ## 1861 ## ----------- ## 1862 1863 _ACEOF 1864 1865 1866 # Keep a trace of the command line. 1867 # Strip out --no-create and --no-recursion so they do not pile up. 1868 # Strip out --silent because we don't want to record it for future runs. 1869 # Also quote any args containing shell meta-characters. 1870 # Make two passes to allow for proper duplicate-argument suppression. 1871 ac_configure_args= 1872 ac_configure_args0= 1873 ac_configure_args1= 1874 ac_must_keep_next=false 1875 for ac_pass in 1 2 1876 do 1877 for ac_arg 1878 do 1879 case $ac_arg in 1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1882 | -silent | --silent | --silen | --sile | --sil) 1883 continue ;; 1884 *\'*) 1885 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1886 esac 1887 case $ac_pass in 1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1889 2) 1890 as_fn_append ac_configure_args1 " '$ac_arg'" 1891 if test $ac_must_keep_next = true; then 1892 ac_must_keep_next=false # Got value, back to normal. 1893 else 1894 case $ac_arg in 1895 *=* | --config-cache | -C | -disable-* | --disable-* \ 1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1898 | -with-* | --with-* | -without-* | --without-* | --x) 1899 case "$ac_configure_args0 " in 1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1901 esac 1902 ;; 1903 -* ) ac_must_keep_next=true ;; 1904 esac 1905 fi 1906 as_fn_append ac_configure_args " '$ac_arg'" 1907 ;; 1908 esac 1909 done 1910 done 1911 { ac_configure_args0=; unset ac_configure_args0;} 1912 { ac_configure_args1=; unset ac_configure_args1;} 1913 1914 # When interrupted or exit'd, cleanup temporary files, and complete 1915 # config.log. We remove comments because anyway the quotes in there 1916 # would cause problems or look ugly. 1917 # WARNING: Use '\'' to represent an apostrophe within the trap. 1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1919 trap 'exit_status=$? 1920 # Sanitize IFS. 1921 IFS=" "" $as_nl" 1922 # Save into config.log some information that might help in debugging. 1923 { 1924 echo 1925 1926 printf "%s\n" "## ---------------- ## 1927 ## Cache variables. ## 1928 ## ---------------- ##" 1929 echo 1930 # The following way of writing the cache mishandles newlines in values, 1931 ( 1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1933 eval ac_val=\$$ac_var 1934 case $ac_val in #( 1935 *${as_nl}*) 1936 case $ac_var in #( 1937 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1938 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1939 esac 1940 case $ac_var in #( 1941 _ | IFS | as_nl) ;; #( 1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1943 *) { eval $ac_var=; unset $ac_var;} ;; 1944 esac ;; 1945 esac 1946 done 1947 (set) 2>&1 | 1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1949 *${as_nl}ac_space=\ *) 1950 sed -n \ 1951 "s/'\''/'\''\\\\'\'''\''/g; 1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1953 ;; #( 1954 *) 1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1956 ;; 1957 esac | 1958 sort 1959 ) 1960 echo 1961 1962 printf "%s\n" "## ----------------- ## 1963 ## Output variables. ## 1964 ## ----------------- ##" 1965 echo 1966 for ac_var in $ac_subst_vars 1967 do 1968 eval ac_val=\$$ac_var 1969 case $ac_val in 1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1971 esac 1972 printf "%s\n" "$ac_var='\''$ac_val'\''" 1973 done | sort 1974 echo 1975 1976 if test -n "$ac_subst_files"; then 1977 printf "%s\n" "## ------------------- ## 1978 ## File substitutions. ## 1979 ## ------------------- ##" 1980 echo 1981 for ac_var in $ac_subst_files 1982 do 1983 eval ac_val=\$$ac_var 1984 case $ac_val in 1985 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1986 esac 1987 printf "%s\n" "$ac_var='\''$ac_val'\''" 1988 done | sort 1989 echo 1990 fi 1991 1992 if test -s confdefs.h; then 1993 printf "%s\n" "## ----------- ## 1994 ## confdefs.h. ## 1995 ## ----------- ##" 1996 echo 1997 cat confdefs.h 1998 echo 1999 fi 2000 test "$ac_signal" != 0 && 2001 printf "%s\n" "$as_me: caught signal $ac_signal" 2002 printf "%s\n" "$as_me: exit $exit_status" 2003 } >&5 2004 rm -f core *.core core.conftest.* && 2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2006 exit $exit_status 2007 ' 0 2008 for ac_signal in 1 2 13 15; do 2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2010 done 2011 ac_signal=0 2012 2013 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2014 rm -f -r conftest* confdefs.h 2015 2016 printf "%s\n" "/* confdefs.h */" > confdefs.h 2017 2018 # Predefined preprocessor variables. 2019 2020 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2021 2022 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2023 2024 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2025 2026 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2027 2028 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2029 2030 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2031 2032 2033 # Let the site file select an alternate cache file if it wants to. 2034 # Prefer an explicitly selected file to automatically selected ones. 2035 if test -n "$CONFIG_SITE"; then 2036 ac_site_files="$CONFIG_SITE" 2037 elif test "x$prefix" != xNONE; then 2038 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2039 else 2040 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2041 fi 2042 2043 for ac_site_file in $ac_site_files 2044 do 2045 case $ac_site_file in #( 2046 */*) : 2047 ;; #( 2048 *) : 2049 ac_site_file=./$ac_site_file ;; 2050 esac 2051 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2053 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2054 sed 's/^/| /' "$ac_site_file" >&5 2055 . "$ac_site_file" \ 2056 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2057 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2058 as_fn_error $? "failed to load site script $ac_site_file 2059 See 'config.log' for more details" "$LINENO" 5; } 2060 fi 2061 done 2062 2063 if test -r "$cache_file"; then 2064 # Some versions of bash will fail to source /dev/null (special files 2065 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2066 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2068 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2069 case $cache_file in 2070 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2071 *) . "./$cache_file";; 2072 esac 2073 fi 2074 else 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2076 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2077 >$cache_file 2078 fi 2079 2080 # Test code for whether the C compiler supports C89 (global declarations) 2081 ac_c_conftest_c89_globals=' 2082 /* Does the compiler advertise C89 conformance? 2083 Do not test the value of __STDC__, because some compilers set it to 0 2084 while being otherwise adequately conformant. */ 2085 #if !defined __STDC__ 2086 # error "Compiler does not advertise C89 conformance" 2087 #endif 2088 2089 #include <stddef.h> 2090 #include <stdarg.h> 2091 struct stat; 2092 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2093 struct buf { int x; }; 2094 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2095 static char *e (char **p, int i) 2096 { 2097 return p[i]; 2098 } 2099 static char *f (char * (*g) (char **, int), char **p, ...) 2100 { 2101 char *s; 2102 va_list v; 2103 va_start (v,p); 2104 s = g (p, va_arg (v,int)); 2105 va_end (v); 2106 return s; 2107 } 2108 2109 /* C89 style stringification. */ 2110 #define noexpand_stringify(a) #a 2111 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2112 2113 /* C89 style token pasting. Exercises some of the corner cases that 2114 e.g. old MSVC gets wrong, but not very hard. */ 2115 #define noexpand_concat(a,b) a##b 2116 #define expand_concat(a,b) noexpand_concat(a,b) 2117 extern int vA; 2118 extern int vbee; 2119 #define aye A 2120 #define bee B 2121 int *pvA = &expand_concat(v,aye); 2122 int *pvbee = &noexpand_concat(v,bee); 2123 2124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2125 function prototypes and stuff, but not \xHH hex character constants. 2126 These do not provoke an error unfortunately, instead are silently treated 2127 as an "x". The following induces an error, until -std is added to get 2128 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2129 array size at least. It is necessary to write \x00 == 0 to get something 2130 that is true only with -std. */ 2131 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2132 2133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2134 inside strings and character constants. */ 2135 #define FOO(x) '\''x'\'' 2136 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2137 2138 int test (int i, double x); 2139 struct s1 {int (*f) (int a);}; 2140 struct s2 {int (*f) (double a);}; 2141 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2142 int, int);' 2143 2144 # Test code for whether the C compiler supports C89 (body of main). 2145 ac_c_conftest_c89_main=' 2146 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2147 ' 2148 2149 # Test code for whether the C compiler supports C99 (global declarations) 2150 ac_c_conftest_c99_globals=' 2151 /* Does the compiler advertise C99 conformance? */ 2152 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2153 # error "Compiler does not advertise C99 conformance" 2154 #endif 2155 2156 // See if C++-style comments work. 2157 2158 #include <stdbool.h> 2159 extern int puts (const char *); 2160 extern int printf (const char *, ...); 2161 extern int dprintf (int, const char *, ...); 2162 extern void *malloc (size_t); 2163 extern void free (void *); 2164 2165 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2166 // dprintf is used instead of fprintf to avoid needing to declare 2167 // FILE and stderr. 2168 #define debug(...) dprintf (2, __VA_ARGS__) 2169 #define showlist(...) puts (#__VA_ARGS__) 2170 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2171 static void 2172 test_varargs_macros (void) 2173 { 2174 int x = 1234; 2175 int y = 5678; 2176 debug ("Flag"); 2177 debug ("X = %d\n", x); 2178 showlist (The first, second, and third items.); 2179 report (x>y, "x is %d but y is %d", x, y); 2180 } 2181 2182 // Check long long types. 2183 #define BIG64 18446744073709551615ull 2184 #define BIG32 4294967295ul 2185 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2186 #if !BIG_OK 2187 #error "your preprocessor is broken" 2188 #endif 2189 #if BIG_OK 2190 #else 2191 #error "your preprocessor is broken" 2192 #endif 2193 static long long int bignum = -9223372036854775807LL; 2194 static unsigned long long int ubignum = BIG64; 2195 2196 struct incomplete_array 2197 { 2198 int datasize; 2199 double data[]; 2200 }; 2201 2202 struct named_init { 2203 int number; 2204 const wchar_t *name; 2205 double average; 2206 }; 2207 2208 typedef const char *ccp; 2209 2210 static inline int 2211 test_restrict (ccp restrict text) 2212 { 2213 // Iterate through items via the restricted pointer. 2214 // Also check for declarations in for loops. 2215 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2216 continue; 2217 return 0; 2218 } 2219 2220 // Check varargs and va_copy. 2221 static bool 2222 test_varargs (const char *format, ...) 2223 { 2224 va_list args; 2225 va_start (args, format); 2226 va_list args_copy; 2227 va_copy (args_copy, args); 2228 2229 const char *str = ""; 2230 int number = 0; 2231 float fnumber = 0; 2232 2233 while (*format) 2234 { 2235 switch (*format++) 2236 { 2237 case '\''s'\'': // string 2238 str = va_arg (args_copy, const char *); 2239 break; 2240 case '\''d'\'': // int 2241 number = va_arg (args_copy, int); 2242 break; 2243 case '\''f'\'': // float 2244 fnumber = va_arg (args_copy, double); 2245 break; 2246 default: 2247 break; 2248 } 2249 } 2250 va_end (args_copy); 2251 va_end (args); 2252 2253 return *str && number && fnumber; 2254 } 2255 ' 2256 2257 # Test code for whether the C compiler supports C99 (body of main). 2258 ac_c_conftest_c99_main=' 2259 // Check bool. 2260 _Bool success = false; 2261 success |= (argc != 0); 2262 2263 // Check restrict. 2264 if (test_restrict ("String literal") == 0) 2265 success = true; 2266 char *restrict newvar = "Another string"; 2267 2268 // Check varargs. 2269 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2270 test_varargs_macros (); 2271 2272 // Check flexible array members. 2273 struct incomplete_array *ia = 2274 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2275 ia->datasize = 10; 2276 for (int i = 0; i < ia->datasize; ++i) 2277 ia->data[i] = i * 1.234; 2278 // Work around memory leak warnings. 2279 free (ia); 2280 2281 // Check named initializers. 2282 struct named_init ni = { 2283 .number = 34, 2284 .name = L"Test wide string", 2285 .average = 543.34343, 2286 }; 2287 2288 ni.number = 58; 2289 2290 int dynamic_array[ni.number]; 2291 dynamic_array[0] = argv[0][0]; 2292 dynamic_array[ni.number - 1] = 543; 2293 2294 // work around unused variable warnings 2295 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2296 || dynamic_array[ni.number - 1] != 543); 2297 ' 2298 2299 # Test code for whether the C compiler supports C11 (global declarations) 2300 ac_c_conftest_c11_globals=' 2301 /* Does the compiler advertise C11 conformance? */ 2302 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2303 # error "Compiler does not advertise C11 conformance" 2304 #endif 2305 2306 // Check _Alignas. 2307 char _Alignas (double) aligned_as_double; 2308 char _Alignas (0) no_special_alignment; 2309 extern char aligned_as_int; 2310 char _Alignas (0) _Alignas (int) aligned_as_int; 2311 2312 // Check _Alignof. 2313 enum 2314 { 2315 int_alignment = _Alignof (int), 2316 int_array_alignment = _Alignof (int[100]), 2317 char_alignment = _Alignof (char) 2318 }; 2319 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2320 2321 // Check _Noreturn. 2322 int _Noreturn does_not_return (void) { for (;;) continue; } 2323 2324 // Check _Static_assert. 2325 struct test_static_assert 2326 { 2327 int x; 2328 _Static_assert (sizeof (int) <= sizeof (long int), 2329 "_Static_assert does not work in struct"); 2330 long int y; 2331 }; 2332 2333 // Check UTF-8 literals. 2334 #define u8 syntax error! 2335 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2336 2337 // Check duplicate typedefs. 2338 typedef long *long_ptr; 2339 typedef long int *long_ptr; 2340 typedef long_ptr long_ptr; 2341 2342 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2343 struct anonymous 2344 { 2345 union { 2346 struct { int i; int j; }; 2347 struct { int k; long int l; } w; 2348 }; 2349 int m; 2350 } v1; 2351 ' 2352 2353 # Test code for whether the C compiler supports C11 (body of main). 2354 ac_c_conftest_c11_main=' 2355 _Static_assert ((offsetof (struct anonymous, i) 2356 == offsetof (struct anonymous, w.k)), 2357 "Anonymous union alignment botch"); 2358 v1.i = 2; 2359 v1.w.k = 5; 2360 ok |= v1.i != 5; 2361 ' 2362 2363 # Test code for whether the C compiler supports C11 (complete). 2364 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2365 ${ac_c_conftest_c99_globals} 2366 ${ac_c_conftest_c11_globals} 2367 2368 int 2369 main (int argc, char **argv) 2370 { 2371 int ok = 0; 2372 ${ac_c_conftest_c89_main} 2373 ${ac_c_conftest_c99_main} 2374 ${ac_c_conftest_c11_main} 2375 return ok; 2376 } 2377 " 2378 2379 # Test code for whether the C compiler supports C99 (complete). 2380 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2381 ${ac_c_conftest_c99_globals} 2382 2383 int 2384 main (int argc, char **argv) 2385 { 2386 int ok = 0; 2387 ${ac_c_conftest_c89_main} 2388 ${ac_c_conftest_c99_main} 2389 return ok; 2390 } 2391 " 2392 2393 # Test code for whether the C compiler supports C89 (complete). 2394 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2395 2396 int 2397 main (int argc, char **argv) 2398 { 2399 int ok = 0; 2400 ${ac_c_conftest_c89_main} 2401 return ok; 2402 } 2403 " 2404 2405 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2406 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2407 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2408 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2409 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2410 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2411 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2412 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2413 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2414 2415 # Auxiliary files required by this configure script. 2416 ac_aux_files="config.guess config.sub compile missing install-sh" 2417 2418 # Locations in which to look for auxiliary files. 2419 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2420 2421 # Search for a directory containing all of the required auxiliary files, 2422 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2423 # If we don't find one directory that contains all the files we need, 2424 # we report the set of missing files from the *first* directory in 2425 # $ac_aux_dir_candidates and give up. 2426 ac_missing_aux_files="" 2427 ac_first_candidate=: 2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430 as_found=false 2431 for as_dir in $ac_aux_dir_candidates 2432 do 2433 IFS=$as_save_IFS 2434 case $as_dir in #((( 2435 '') as_dir=./ ;; 2436 */) ;; 2437 *) as_dir=$as_dir/ ;; 2438 esac 2439 as_found=: 2440 2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2442 ac_aux_dir_found=yes 2443 ac_install_sh= 2444 for ac_aux in $ac_aux_files 2445 do 2446 # As a special case, if "install-sh" is required, that requirement 2447 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2448 # and $ac_install_sh is set appropriately for whichever one is found. 2449 if test x"$ac_aux" = x"install-sh" 2450 then 2451 if test -f "${as_dir}install-sh"; then 2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2453 ac_install_sh="${as_dir}install-sh -c" 2454 elif test -f "${as_dir}install.sh"; then 2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2456 ac_install_sh="${as_dir}install.sh -c" 2457 elif test -f "${as_dir}shtool"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2459 ac_install_sh="${as_dir}shtool install -c" 2460 else 2461 ac_aux_dir_found=no 2462 if $ac_first_candidate; then 2463 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2464 else 2465 break 2466 fi 2467 fi 2468 else 2469 if test -f "${as_dir}${ac_aux}"; then 2470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2471 else 2472 ac_aux_dir_found=no 2473 if $ac_first_candidate; then 2474 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2475 else 2476 break 2477 fi 2478 fi 2479 fi 2480 done 2481 if test "$ac_aux_dir_found" = yes; then 2482 ac_aux_dir="$as_dir" 2483 break 2484 fi 2485 ac_first_candidate=false 2486 2487 as_found=false 2488 done 2489 IFS=$as_save_IFS 2490 if $as_found 2491 then : 2492 2493 else case e in #( 2494 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2495 esac 2496 fi 2497 2498 2499 # These three variables are undocumented and unsupported, 2500 # and are intended to be withdrawn in a future Autoconf release. 2501 # They can cause serious problems if a builder's source tree is in a directory 2502 # whose full name contains unusual characters. 2503 if test -f "${ac_aux_dir}config.guess"; then 2504 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2505 fi 2506 if test -f "${ac_aux_dir}config.sub"; then 2507 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2508 fi 2509 if test -f "$ac_aux_dir/configure"; then 2510 ac_configure="$SHELL ${ac_aux_dir}configure" 2511 fi 2512 2513 # Check that the precious variables saved in the cache have kept the same 2514 # value. 2515 ac_cache_corrupted=false 2516 for ac_var in $ac_precious_vars; do 2517 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2518 eval ac_new_set=\$ac_env_${ac_var}_set 2519 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2520 eval ac_new_val=\$ac_env_${ac_var}_value 2521 case $ac_old_set,$ac_new_set in 2522 set,) 2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2524 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2525 ac_cache_corrupted=: ;; 2526 ,set) 2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2528 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2529 ac_cache_corrupted=: ;; 2530 ,);; 2531 *) 2532 if test "x$ac_old_val" != "x$ac_new_val"; then 2533 # differences in whitespace do not lead to failure. 2534 ac_old_val_w=`echo x $ac_old_val` 2535 ac_new_val_w=`echo x $ac_new_val` 2536 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2538 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2539 ac_cache_corrupted=: 2540 else 2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2542 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2543 eval $ac_var=\$ac_old_val 2544 fi 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2546 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2548 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2549 fi;; 2550 esac 2551 # Pass precious variables to config.status. 2552 if test "$ac_new_set" = set; then 2553 case $ac_new_val in 2554 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2555 *) ac_arg=$ac_var=$ac_new_val ;; 2556 esac 2557 case " $ac_configure_args " in 2558 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2559 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2560 esac 2561 fi 2562 done 2563 if $ac_cache_corrupted; then 2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2565 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2567 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2568 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2569 and start over" "$LINENO" 5 2570 fi 2571 ## -------------------- ## 2572 ## Main body of script. ## 2573 ## -------------------- ## 2574 2575 ac_ext=c 2576 ac_cpp='$CPP $CPPFLAGS' 2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2580 2581 2582 2583 ac_config_headers="$ac_config_headers config.h" 2584 2585 2586 # Initialize Automake 2587 am__api_version='1.16' 2588 2589 2590 2591 # Find a good install program. We prefer a C program (faster), 2592 # so one script is as good as another. But avoid the broken or 2593 # incompatible versions: 2594 # SysV /etc/install, /usr/sbin/install 2595 # SunOS /usr/etc/install 2596 # IRIX /sbin/install 2597 # AIX /bin/install 2598 # AmigaOS /C/install, which installs bootblocks on floppy discs 2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2602 # OS/2's system install, which has a completely different semantic 2603 # ./install, which can be erroneously created by make from ./install.sh. 2604 # Reject install programs that cannot install multiple files. 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2606 printf %s "checking for a BSD-compatible install... " >&6; } 2607 if test -z "$INSTALL"; then 2608 if test ${ac_cv_path_install+y} 2609 then : 2610 printf %s "(cached) " >&6 2611 else case e in #( 2612 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613 for as_dir in $PATH 2614 do 2615 IFS=$as_save_IFS 2616 case $as_dir in #((( 2617 '') as_dir=./ ;; 2618 */) ;; 2619 *) as_dir=$as_dir/ ;; 2620 esac 2621 # Account for fact that we put trailing slashes in our PATH walk. 2622 case $as_dir in #(( 2623 ./ | /[cC]/* | \ 2624 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2625 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2626 /usr/ucb/* ) ;; 2627 *) 2628 # OSF1 and SCO ODT 3.0 have their own names for install. 2629 # Don't use installbsd from OSF since it installs stuff as root 2630 # by default. 2631 for ac_prog in ginstall scoinst install; do 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2634 if test $ac_prog = install && 2635 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2636 # AIX install. It has an incompatible calling convention. 2637 : 2638 elif test $ac_prog = install && 2639 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2640 # program-specific install script used by HP pwplus--don't use. 2641 : 2642 else 2643 rm -rf conftest.one conftest.two conftest.dir 2644 echo one > conftest.one 2645 echo two > conftest.two 2646 mkdir conftest.dir 2647 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2648 test -s conftest.one && test -s conftest.two && 2649 test -s conftest.dir/conftest.one && 2650 test -s conftest.dir/conftest.two 2651 then 2652 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2653 break 3 2654 fi 2655 fi 2656 fi 2657 done 2658 done 2659 ;; 2660 esac 2661 2662 done 2663 IFS=$as_save_IFS 2664 2665 rm -rf conftest.one conftest.two conftest.dir 2666 ;; 2667 esac 2668 fi 2669 if test ${ac_cv_path_install+y}; then 2670 INSTALL=$ac_cv_path_install 2671 else 2672 # As a last resort, use the slow shell script. Don't cache a 2673 # value for INSTALL within a source directory, because that will 2674 # break other packages using the cache if that directory is 2675 # removed, or if the value is a relative name. 2676 INSTALL=$ac_install_sh 2677 fi 2678 fi 2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2680 printf "%s\n" "$INSTALL" >&6; } 2681 2682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2683 # It thinks the first close brace ends the variable substitution. 2684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2685 2686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2687 2688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2689 2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2691 printf %s "checking whether build environment is sane... " >&6; } 2692 # Reject unsafe characters in $srcdir or the absolute working directory 2693 # name. Accept space and tab only in the latter. 2694 am_lf=' 2695 ' 2696 case `pwd` in 2697 *[\\\"\#\$\&\'\`$am_lf]*) 2698 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2699 esac 2700 case $srcdir in 2701 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2702 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2703 esac 2704 2705 # Do 'set' in a subshell so we don't clobber the current shell's 2706 # arguments. Must try -L first in case configure is actually a 2707 # symlink; some systems play weird games with the mod time of symlinks 2708 # (eg FreeBSD returns the mod time of the symlink's containing 2709 # directory). 2710 if ( 2711 am_has_slept=no 2712 for am_try in 1 2; do 2713 echo "timestamp, slept: $am_has_slept" > conftest.file 2714 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2715 if test "$*" = "X"; then 2716 # -L didn't work. 2717 set X `ls -t "$srcdir/configure" conftest.file` 2718 fi 2719 if test "$*" != "X $srcdir/configure conftest.file" \ 2720 && test "$*" != "X conftest.file $srcdir/configure"; then 2721 2722 # If neither matched, then we have a broken ls. This can happen 2723 # if, for instance, CONFIG_SHELL is bash and it inherits a 2724 # broken ls alias from the environment. This has actually 2725 # happened. Such a system could not be considered "sane". 2726 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2727 alias in your environment" "$LINENO" 5 2728 fi 2729 if test "$2" = conftest.file || test $am_try -eq 2; then 2730 break 2731 fi 2732 # Just in case. 2733 sleep 1 2734 am_has_slept=yes 2735 done 2736 test "$2" = conftest.file 2737 ) 2738 then 2739 # Ok. 2740 : 2741 else 2742 as_fn_error $? "newly created file is older than distributed files! 2743 Check your system clock" "$LINENO" 5 2744 fi 2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2746 printf "%s\n" "yes" >&6; } 2747 # If we didn't sleep, we still need to ensure time stamps of config.status and 2748 # generated files are strictly newer. 2749 am_sleep_pid= 2750 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2751 ( sleep 1 ) & 2752 am_sleep_pid=$! 2753 fi 2754 2755 rm -f conftest.file 2756 2757 test "$program_prefix" != NONE && 2758 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2759 # Use a double $ so make ignores it. 2760 test "$program_suffix" != NONE && 2761 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2762 # Double any \ or $. 2763 # By default was 's,x,x', remove it if useless. 2764 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2765 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2766 2767 2768 # Expand $ac_aux_dir to an absolute path. 2769 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2770 2771 2772 if test x"${MISSING+set}" != xset; then 2773 MISSING="\${SHELL} '$am_aux_dir/missing'" 2774 fi 2775 # Use eval to expand $SHELL 2776 if eval "$MISSING --is-lightweight"; then 2777 am_missing_run="$MISSING " 2778 else 2779 am_missing_run= 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2781 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2782 fi 2783 2784 if test x"${install_sh+set}" != xset; then 2785 case $am_aux_dir in 2786 *\ * | *\ *) 2787 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2788 *) 2789 install_sh="\${SHELL} $am_aux_dir/install-sh" 2790 esac 2791 fi 2792 2793 # Installed binaries are usually stripped using 'strip' when the user 2794 # run "make install-strip". However 'strip' might not be the right 2795 # tool to use in cross-compilation environments, therefore Automake 2796 # will honor the 'STRIP' environment variable to overrule this program. 2797 if test "$cross_compiling" != no; then 2798 if test -n "$ac_tool_prefix"; then 2799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2800 set dummy ${ac_tool_prefix}strip; ac_word=$2 2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802 printf %s "checking for $ac_word... " >&6; } 2803 if test ${ac_cv_prog_STRIP+y} 2804 then : 2805 printf %s "(cached) " >&6 2806 else case e in #( 2807 e) if test -n "$STRIP"; then 2808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2809 else 2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2811 for as_dir in $PATH 2812 do 2813 IFS=$as_save_IFS 2814 case $as_dir in #((( 2815 '') as_dir=./ ;; 2816 */) ;; 2817 *) as_dir=$as_dir/ ;; 2818 esac 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825 done 2826 done 2827 IFS=$as_save_IFS 2828 2829 fi ;; 2830 esac 2831 fi 2832 STRIP=$ac_cv_prog_STRIP 2833 if test -n "$STRIP"; then 2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2835 printf "%s\n" "$STRIP" >&6; } 2836 else 2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838 printf "%s\n" "no" >&6; } 2839 fi 2840 2841 2842 fi 2843 if test -z "$ac_cv_prog_STRIP"; then 2844 ac_ct_STRIP=$STRIP 2845 # Extract the first word of "strip", so it can be a program name with args. 2846 set dummy strip; ac_word=$2 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848 printf %s "checking for $ac_word... " >&6; } 2849 if test ${ac_cv_prog_ac_ct_STRIP+y} 2850 then : 2851 printf %s "(cached) " >&6 2852 else case e in #( 2853 e) if test -n "$ac_ct_STRIP"; then 2854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2855 else 2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857 for as_dir in $PATH 2858 do 2859 IFS=$as_save_IFS 2860 case $as_dir in #((( 2861 '') as_dir=./ ;; 2862 */) ;; 2863 *) as_dir=$as_dir/ ;; 2864 esac 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_ac_ct_STRIP="strip" 2868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871 done 2872 done 2873 IFS=$as_save_IFS 2874 2875 fi ;; 2876 esac 2877 fi 2878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2879 if test -n "$ac_ct_STRIP"; then 2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2881 printf "%s\n" "$ac_ct_STRIP" >&6; } 2882 else 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884 printf "%s\n" "no" >&6; } 2885 fi 2886 2887 if test "x$ac_ct_STRIP" = x; then 2888 STRIP=":" 2889 else 2890 case $cross_compiling:$ac_tool_warned in 2891 yes:) 2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2894 ac_tool_warned=yes ;; 2895 esac 2896 STRIP=$ac_ct_STRIP 2897 fi 2898 else 2899 STRIP="$ac_cv_prog_STRIP" 2900 fi 2901 2902 fi 2903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2904 2905 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2907 printf %s "checking for a race-free mkdir -p... " >&6; } 2908 if test -z "$MKDIR_P"; then 2909 if test ${ac_cv_path_mkdir+y} 2910 then : 2911 printf %s "(cached) " >&6 2912 else case e in #( 2913 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2915 do 2916 IFS=$as_save_IFS 2917 case $as_dir in #((( 2918 '') as_dir=./ ;; 2919 */) ;; 2920 *) as_dir=$as_dir/ ;; 2921 esac 2922 for ac_prog in mkdir gmkdir; do 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2925 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2926 'mkdir ('*'coreutils) '* | \ 2927 *'BusyBox '* | \ 2928 'mkdir (fileutils) '4.1*) 2929 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2930 break 3;; 2931 esac 2932 done 2933 done 2934 done 2935 IFS=$as_save_IFS 2936 ;; 2937 esac 2938 fi 2939 2940 test -d ./--version && rmdir ./--version 2941 if test ${ac_cv_path_mkdir+y}; then 2942 MKDIR_P="$ac_cv_path_mkdir -p" 2943 else 2944 # As a last resort, use plain mkdir -p, 2945 # in the hope it doesn't have the bugs of ancient mkdir. 2946 MKDIR_P='mkdir -p' 2947 fi 2948 fi 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2950 printf "%s\n" "$MKDIR_P" >&6; } 2951 2952 for ac_prog in gawk mawk nawk awk 2953 do 2954 # Extract the first word of "$ac_prog", so it can be a program name with args. 2955 set dummy $ac_prog; ac_word=$2 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957 printf %s "checking for $ac_word... " >&6; } 2958 if test ${ac_cv_prog_AWK+y} 2959 then : 2960 printf %s "(cached) " >&6 2961 else case e in #( 2962 e) if test -n "$AWK"; then 2963 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2964 else 2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2966 for as_dir in $PATH 2967 do 2968 IFS=$as_save_IFS 2969 case $as_dir in #((( 2970 '') as_dir=./ ;; 2971 */) ;; 2972 *) as_dir=$as_dir/ ;; 2973 esac 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2976 ac_cv_prog_AWK="$ac_prog" 2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980 done 2981 done 2982 IFS=$as_save_IFS 2983 2984 fi ;; 2985 esac 2986 fi 2987 AWK=$ac_cv_prog_AWK 2988 if test -n "$AWK"; then 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2990 printf "%s\n" "$AWK" >&6; } 2991 else 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2993 printf "%s\n" "no" >&6; } 2994 fi 2995 2996 2997 test -n "$AWK" && break 2998 done 2999 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3001 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3002 set x ${MAKE-make} 3003 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3004 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3005 then : 3006 printf %s "(cached) " >&6 3007 else case e in #( 3008 e) cat >conftest.make <<\_ACEOF 3009 SHELL = /bin/sh 3010 all: 3011 @echo '@@@%%%=$(MAKE)=@@@%%%' 3012 _ACEOF 3013 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3014 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3015 *@@@%%%=?*=@@@%%%*) 3016 eval ac_cv_prog_make_${ac_make}_set=yes;; 3017 *) 3018 eval ac_cv_prog_make_${ac_make}_set=no;; 3019 esac 3020 rm -f conftest.make ;; 3021 esac 3022 fi 3023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3025 printf "%s\n" "yes" >&6; } 3026 SET_MAKE= 3027 else 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029 printf "%s\n" "no" >&6; } 3030 SET_MAKE="MAKE=${MAKE-make}" 3031 fi 3032 3033 rm -rf .tst 2>/dev/null 3034 mkdir .tst 2>/dev/null 3035 if test -d .tst; then 3036 am__leading_dot=. 3037 else 3038 am__leading_dot=_ 3039 fi 3040 rmdir .tst 2>/dev/null 3041 3042 # Check whether --enable-silent-rules was given. 3043 if test ${enable_silent_rules+y} 3044 then : 3045 enableval=$enable_silent_rules; 3046 fi 3047 3048 case $enable_silent_rules in # ((( 3049 yes) AM_DEFAULT_VERBOSITY=0;; 3050 no) AM_DEFAULT_VERBOSITY=1;; 3051 *) AM_DEFAULT_VERBOSITY=1;; 3052 esac 3053 am_make=${MAKE-make} 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3055 printf %s "checking whether $am_make supports nested variables... " >&6; } 3056 if test ${am_cv_make_support_nested_variables+y} 3057 then : 3058 printf %s "(cached) " >&6 3059 else case e in #( 3060 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3061 BAR0=false 3062 BAR1=true 3063 V=1 3064 am__doit: 3065 @$(TRUE) 3066 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3067 am_cv_make_support_nested_variables=yes 3068 else 3069 am_cv_make_support_nested_variables=no 3070 fi ;; 3071 esac 3072 fi 3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3074 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3075 if test $am_cv_make_support_nested_variables = yes; then 3076 AM_V='$(V)' 3077 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3078 else 3079 AM_V=$AM_DEFAULT_VERBOSITY 3080 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3081 fi 3082 AM_BACKSLASH='\' 3083 3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3086 # is not polluted with repeated "-I." 3087 am__isrc=' -I$(srcdir)' 3088 # test to see if srcdir already configured 3089 if test -f $srcdir/config.status; then 3090 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3091 fi 3092 fi 3093 3094 # test whether we have cygpath 3095 if test -z "$CYGPATH_W"; then 3096 if (cygpath --version) >/dev/null 2>/dev/null; then 3097 CYGPATH_W='cygpath -w' 3098 else 3099 CYGPATH_W=echo 3100 fi 3101 fi 3102 3103 3104 # Define the identity of the package. 3105 PACKAGE='xkbutils' 3106 VERSION='1.0.6' 3107 3108 3109 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3110 3111 3112 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3113 3114 # Some tools Automake needs. 3115 3116 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3117 3118 3119 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3120 3121 3122 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3123 3124 3125 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3126 3127 3128 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3129 3130 # For better backward compatibility. To be removed once Automake 1.9.x 3131 # dies out for good. For more background, see: 3132 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3133 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3134 mkdir_p='$(MKDIR_P)' 3135 3136 # We need awk for the "check" target (and possibly the TAP driver). The 3137 # system "awk" is bad on some platforms. 3138 # Always define AMTAR for backward compatibility. Yes, it's still used 3139 # in the wild :-( We should find a proper way to deprecate it ... 3140 AMTAR='$${TAR-tar}' 3141 3142 3143 # We'll loop over all known methods to create a tar archive until one works. 3144 _am_tools='gnutar pax cpio none' 3145 3146 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3147 3148 3149 3150 3151 3152 # Variables for tags utilities; see am/tags.am 3153 if test -z "$CTAGS"; then 3154 CTAGS=ctags 3155 fi 3156 3157 if test -z "$ETAGS"; then 3158 ETAGS=etags 3159 fi 3160 3161 if test -z "$CSCOPE"; then 3162 CSCOPE=cscope 3163 fi 3164 3165 3166 3167 # POSIX will say in a future version that running "rm -f" with no argument 3168 # is OK; and we want to be able to make that assumption in our Makefile 3169 # recipes. So use an aggressive probe to check that the usage we want is 3170 # actually supported "in the wild" to an acceptable degree. 3171 # See automake bug#10828. 3172 # To make any issue more visible, cause the running configure to be aborted 3173 # by default if the 'rm' program in use doesn't match our expectations; the 3174 # user can still override this though. 3175 if rm -f && rm -fr && rm -rf; then : OK; else 3176 cat >&2 <<'END' 3177 Oops! 3178 3179 Your 'rm' program seems unable to run without file operands specified 3180 on the command line, even when the '-f' option is present. This is contrary 3181 to the behaviour of most rm programs out there, and not conforming with 3182 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3183 3184 Please tell bug-automake@gnu.org about your system, including the value 3185 of your $PATH and any error possibly output before this message. This 3186 can help us improve future automake versions. 3187 3188 END 3189 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3190 echo 'Configuration will proceed anyway, since you have set the' >&2 3191 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3192 echo >&2 3193 else 3194 cat >&2 <<'END' 3195 Aborting the configuration process, to ensure you take notice of the issue. 3196 3197 You can download and install GNU coreutils to get an 'rm' implementation 3198 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3199 3200 If you want to complete the configuration process using your problematic 3201 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3202 to "yes", and re-run configure. 3203 3204 END 3205 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3206 fi 3207 fi 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 DEPDIR="${am__leading_dot}deps" 3219 3220 ac_config_commands="$ac_config_commands depfiles" 3221 3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3223 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3224 cat > confinc.mk << 'END' 3225 am__doit: 3226 @echo this is the am__doit target >confinc.out 3227 .PHONY: am__doit 3228 END 3229 am__include="#" 3230 am__quote= 3231 # BSD make does it like this. 3232 echo '.include "confinc.mk" # ignored' > confmf.BSD 3233 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3234 echo 'include confinc.mk # ignored' > confmf.GNU 3235 _am_result=no 3236 for s in GNU BSD; do 3237 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3238 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3239 ac_status=$? 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); } 3242 case $?:`cat confinc.out 2>/dev/null` in #( 3243 '0:this is the am__doit target') : 3244 case $s in #( 3245 BSD) : 3246 am__include='.include' am__quote='"' ;; #( 3247 *) : 3248 am__include='include' am__quote='' ;; 3249 esac ;; #( 3250 *) : 3251 ;; 3252 esac 3253 if test "$am__include" != "#"; then 3254 _am_result="yes ($s style)" 3255 break 3256 fi 3257 done 3258 rm -f confinc.* confmf.* 3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3260 printf "%s\n" "${_am_result}" >&6; } 3261 3262 # Check whether --enable-dependency-tracking was given. 3263 if test ${enable_dependency_tracking+y} 3264 then : 3265 enableval=$enable_dependency_tracking; 3266 fi 3267 3268 if test "x$enable_dependency_tracking" != xno; then 3269 am_depcomp="$ac_aux_dir/depcomp" 3270 AMDEPBACKSLASH='\' 3271 am__nodep='_no' 3272 fi 3273 if test "x$enable_dependency_tracking" != xno; then 3274 AMDEP_TRUE= 3275 AMDEP_FALSE='#' 3276 else 3277 AMDEP_TRUE='#' 3278 AMDEP_FALSE= 3279 fi 3280 3281 3282 ac_ext=c 3283 ac_cpp='$CPP $CPPFLAGS' 3284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3286 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3287 if test -n "$ac_tool_prefix"; then 3288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3289 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3291 printf %s "checking for $ac_word... " >&6; } 3292 if test ${ac_cv_prog_CC+y} 3293 then : 3294 printf %s "(cached) " >&6 3295 else case e in #( 3296 e) if test -n "$CC"; then 3297 ac_cv_prog_CC="$CC" # Let the user override the test. 3298 else 3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3300 for as_dir in $PATH 3301 do 3302 IFS=$as_save_IFS 3303 case $as_dir in #((( 3304 '') as_dir=./ ;; 3305 */) ;; 3306 *) as_dir=$as_dir/ ;; 3307 esac 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3310 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314 done 3315 done 3316 IFS=$as_save_IFS 3317 3318 fi ;; 3319 esac 3320 fi 3321 CC=$ac_cv_prog_CC 3322 if test -n "$CC"; then 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3324 printf "%s\n" "$CC" >&6; } 3325 else 3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327 printf "%s\n" "no" >&6; } 3328 fi 3329 3330 3331 fi 3332 if test -z "$ac_cv_prog_CC"; then 3333 ac_ct_CC=$CC 3334 # Extract the first word of "gcc", so it can be a program name with args. 3335 set dummy gcc; ac_word=$2 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337 printf %s "checking for $ac_word... " >&6; } 3338 if test ${ac_cv_prog_ac_ct_CC+y} 3339 then : 3340 printf %s "(cached) " >&6 3341 else case e in #( 3342 e) if test -n "$ac_ct_CC"; then 3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3344 else 3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3346 for as_dir in $PATH 3347 do 3348 IFS=$as_save_IFS 3349 case $as_dir in #((( 3350 '') as_dir=./ ;; 3351 */) ;; 3352 *) as_dir=$as_dir/ ;; 3353 esac 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3356 ac_cv_prog_ac_ct_CC="gcc" 3357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360 done 3361 done 3362 IFS=$as_save_IFS 3363 3364 fi ;; 3365 esac 3366 fi 3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3368 if test -n "$ac_ct_CC"; then 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3370 printf "%s\n" "$ac_ct_CC" >&6; } 3371 else 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373 printf "%s\n" "no" >&6; } 3374 fi 3375 3376 if test "x$ac_ct_CC" = x; then 3377 CC="" 3378 else 3379 case $cross_compiling:$ac_tool_warned in 3380 yes:) 3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3382 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3383 ac_tool_warned=yes ;; 3384 esac 3385 CC=$ac_ct_CC 3386 fi 3387 else 3388 CC="$ac_cv_prog_CC" 3389 fi 3390 3391 if test -z "$CC"; then 3392 if test -n "$ac_tool_prefix"; then 3393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3394 set dummy ${ac_tool_prefix}cc; ac_word=$2 3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396 printf %s "checking for $ac_word... " >&6; } 3397 if test ${ac_cv_prog_CC+y} 3398 then : 3399 printf %s "(cached) " >&6 3400 else case e in #( 3401 e) if test -n "$CC"; then 3402 ac_cv_prog_CC="$CC" # Let the user override the test. 3403 else 3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405 for as_dir in $PATH 3406 do 3407 IFS=$as_save_IFS 3408 case $as_dir in #((( 3409 '') as_dir=./ ;; 3410 */) ;; 3411 *) as_dir=$as_dir/ ;; 3412 esac 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3415 ac_cv_prog_CC="${ac_tool_prefix}cc" 3416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3417 break 2 3418 fi 3419 done 3420 done 3421 IFS=$as_save_IFS 3422 3423 fi ;; 3424 esac 3425 fi 3426 CC=$ac_cv_prog_CC 3427 if test -n "$CC"; then 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3429 printf "%s\n" "$CC" >&6; } 3430 else 3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432 printf "%s\n" "no" >&6; } 3433 fi 3434 3435 3436 fi 3437 fi 3438 if test -z "$CC"; then 3439 # Extract the first word of "cc", so it can be a program name with args. 3440 set dummy cc; ac_word=$2 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442 printf %s "checking for $ac_word... " >&6; } 3443 if test ${ac_cv_prog_CC+y} 3444 then : 3445 printf %s "(cached) " >&6 3446 else case e in #( 3447 e) if test -n "$CC"; then 3448 ac_cv_prog_CC="$CC" # Let the user override the test. 3449 else 3450 ac_prog_rejected=no 3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3452 for as_dir in $PATH 3453 do 3454 IFS=$as_save_IFS 3455 case $as_dir in #((( 3456 '') as_dir=./ ;; 3457 */) ;; 3458 *) as_dir=$as_dir/ ;; 3459 esac 3460 for ac_exec_ext in '' $ac_executable_extensions; do 3461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3462 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3463 ac_prog_rejected=yes 3464 continue 3465 fi 3466 ac_cv_prog_CC="cc" 3467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470 done 3471 done 3472 IFS=$as_save_IFS 3473 3474 if test $ac_prog_rejected = yes; then 3475 # We found a bogon in the path, so make sure we never use it. 3476 set dummy $ac_cv_prog_CC 3477 shift 3478 if test $# != 0; then 3479 # We chose a different compiler from the bogus one. 3480 # However, it has the same basename, so the bogon will be chosen 3481 # first if we set CC to just the basename; use the full file name. 3482 shift 3483 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3484 fi 3485 fi 3486 fi ;; 3487 esac 3488 fi 3489 CC=$ac_cv_prog_CC 3490 if test -n "$CC"; then 3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3492 printf "%s\n" "$CC" >&6; } 3493 else 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3495 printf "%s\n" "no" >&6; } 3496 fi 3497 3498 3499 fi 3500 if test -z "$CC"; then 3501 if test -n "$ac_tool_prefix"; then 3502 for ac_prog in cl.exe 3503 do 3504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3507 printf %s "checking for $ac_word... " >&6; } 3508 if test ${ac_cv_prog_CC+y} 3509 then : 3510 printf %s "(cached) " >&6 3511 else case e in #( 3512 e) if test -n "$CC"; then 3513 ac_cv_prog_CC="$CC" # Let the user override the test. 3514 else 3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516 for as_dir in $PATH 3517 do 3518 IFS=$as_save_IFS 3519 case $as_dir in #((( 3520 '') as_dir=./ ;; 3521 */) ;; 3522 *) as_dir=$as_dir/ ;; 3523 esac 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530 done 3531 done 3532 IFS=$as_save_IFS 3533 3534 fi ;; 3535 esac 3536 fi 3537 CC=$ac_cv_prog_CC 3538 if test -n "$CC"; then 3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540 printf "%s\n" "$CC" >&6; } 3541 else 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543 printf "%s\n" "no" >&6; } 3544 fi 3545 3546 3547 test -n "$CC" && break 3548 done 3549 fi 3550 if test -z "$CC"; then 3551 ac_ct_CC=$CC 3552 for ac_prog in cl.exe 3553 do 3554 # Extract the first word of "$ac_prog", so it can be a program name with args. 3555 set dummy $ac_prog; ac_word=$2 3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557 printf %s "checking for $ac_word... " >&6; } 3558 if test ${ac_cv_prog_ac_ct_CC+y} 3559 then : 3560 printf %s "(cached) " >&6 3561 else case e in #( 3562 e) if test -n "$ac_ct_CC"; then 3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3564 else 3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566 for as_dir in $PATH 3567 do 3568 IFS=$as_save_IFS 3569 case $as_dir in #((( 3570 '') as_dir=./ ;; 3571 */) ;; 3572 *) as_dir=$as_dir/ ;; 3573 esac 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3576 ac_cv_prog_ac_ct_CC="$ac_prog" 3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580 done 3581 done 3582 IFS=$as_save_IFS 3583 3584 fi ;; 3585 esac 3586 fi 3587 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3588 if test -n "$ac_ct_CC"; then 3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3590 printf "%s\n" "$ac_ct_CC" >&6; } 3591 else 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3593 printf "%s\n" "no" >&6; } 3594 fi 3595 3596 3597 test -n "$ac_ct_CC" && break 3598 done 3599 3600 if test "x$ac_ct_CC" = x; then 3601 CC="" 3602 else 3603 case $cross_compiling:$ac_tool_warned in 3604 yes:) 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3606 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3607 ac_tool_warned=yes ;; 3608 esac 3609 CC=$ac_ct_CC 3610 fi 3611 fi 3612 3613 fi 3614 if test -z "$CC"; then 3615 if test -n "$ac_tool_prefix"; then 3616 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3617 set dummy ${ac_tool_prefix}clang; ac_word=$2 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3619 printf %s "checking for $ac_word... " >&6; } 3620 if test ${ac_cv_prog_CC+y} 3621 then : 3622 printf %s "(cached) " >&6 3623 else case e in #( 3624 e) if test -n "$CC"; then 3625 ac_cv_prog_CC="$CC" # Let the user override the test. 3626 else 3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3628 for as_dir in $PATH 3629 do 3630 IFS=$as_save_IFS 3631 case $as_dir in #((( 3632 '') as_dir=./ ;; 3633 */) ;; 3634 *) as_dir=$as_dir/ ;; 3635 esac 3636 for ac_exec_ext in '' $ac_executable_extensions; do 3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3638 ac_cv_prog_CC="${ac_tool_prefix}clang" 3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3640 break 2 3641 fi 3642 done 3643 done 3644 IFS=$as_save_IFS 3645 3646 fi ;; 3647 esac 3648 fi 3649 CC=$ac_cv_prog_CC 3650 if test -n "$CC"; then 3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3652 printf "%s\n" "$CC" >&6; } 3653 else 3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3655 printf "%s\n" "no" >&6; } 3656 fi 3657 3658 3659 fi 3660 if test -z "$ac_cv_prog_CC"; then 3661 ac_ct_CC=$CC 3662 # Extract the first word of "clang", so it can be a program name with args. 3663 set dummy clang; ac_word=$2 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3665 printf %s "checking for $ac_word... " >&6; } 3666 if test ${ac_cv_prog_ac_ct_CC+y} 3667 then : 3668 printf %s "(cached) " >&6 3669 else case e in #( 3670 e) if test -n "$ac_ct_CC"; then 3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3672 else 3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3674 for as_dir in $PATH 3675 do 3676 IFS=$as_save_IFS 3677 case $as_dir in #((( 3678 '') as_dir=./ ;; 3679 */) ;; 3680 *) as_dir=$as_dir/ ;; 3681 esac 3682 for ac_exec_ext in '' $ac_executable_extensions; do 3683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3684 ac_cv_prog_ac_ct_CC="clang" 3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3686 break 2 3687 fi 3688 done 3689 done 3690 IFS=$as_save_IFS 3691 3692 fi ;; 3693 esac 3694 fi 3695 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3696 if test -n "$ac_ct_CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3698 printf "%s\n" "$ac_ct_CC" >&6; } 3699 else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701 printf "%s\n" "no" >&6; } 3702 fi 3703 3704 if test "x$ac_ct_CC" = x; then 3705 CC="" 3706 else 3707 case $cross_compiling:$ac_tool_warned in 3708 yes:) 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3711 ac_tool_warned=yes ;; 3712 esac 3713 CC=$ac_ct_CC 3714 fi 3715 else 3716 CC="$ac_cv_prog_CC" 3717 fi 3718 3719 fi 3720 3721 3722 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3723 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3724 as_fn_error $? "no acceptable C compiler found in \$PATH 3725 See 'config.log' for more details" "$LINENO" 5; } 3726 3727 # Provide some information about the compiler. 3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3729 set X $ac_compile 3730 ac_compiler=$2 3731 for ac_option in --version -v -V -qversion -version; do 3732 { { ac_try="$ac_compiler $ac_option >&5" 3733 case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736 esac 3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3738 printf "%s\n" "$ac_try_echo"; } >&5 3739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3740 ac_status=$? 3741 if test -s conftest.err; then 3742 sed '10a\ 3743 ... rest of stderr output deleted ... 3744 10q' conftest.err >conftest.er1 3745 cat conftest.er1 >&5 3746 fi 3747 rm -f conftest.er1 conftest.err 3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 test $ac_status = 0; } 3750 done 3751 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3753 /* end confdefs.h. */ 3754 3755 int 3756 main (void) 3757 { 3758 3759 ; 3760 return 0; 3761 } 3762 _ACEOF 3763 ac_clean_files_save=$ac_clean_files 3764 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3765 # Try to create an executable without -o first, disregard a.out. 3766 # It will help us diagnose broken compilers, and finding out an intuition 3767 # of exeext. 3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3769 printf %s "checking whether the C compiler works... " >&6; } 3770 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3771 3772 # The possible output files: 3773 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3774 3775 ac_rmfiles= 3776 for ac_file in $ac_files 3777 do 3778 case $ac_file in 3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3780 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3781 esac 3782 done 3783 rm -f $ac_rmfiles 3784 3785 if { { ac_try="$ac_link_default" 3786 case "(($ac_try" in 3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3788 *) ac_try_echo=$ac_try;; 3789 esac 3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3791 printf "%s\n" "$ac_try_echo"; } >&5 3792 (eval "$ac_link_default") 2>&5 3793 ac_status=$? 3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3795 test $ac_status = 0; } 3796 then : 3797 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3798 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3799 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3800 # so that the user can short-circuit this test for compilers unknown to 3801 # Autoconf. 3802 for ac_file in $ac_files '' 3803 do 3804 test -f "$ac_file" || continue 3805 case $ac_file in 3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3807 ;; 3808 [ab].out ) 3809 # We found the default executable, but exeext='' is most 3810 # certainly right. 3811 break;; 3812 *.* ) 3813 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3814 then :; else 3815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3816 fi 3817 # We set ac_cv_exeext here because the later test for it is not 3818 # safe: cross compilers may not add the suffix if given an '-o' 3819 # argument, so we may need to know it at that point already. 3820 # Even if this section looks crufty: it has the advantage of 3821 # actually working. 3822 break;; 3823 * ) 3824 break;; 3825 esac 3826 done 3827 test "$ac_cv_exeext" = no && ac_cv_exeext= 3828 3829 else case e in #( 3830 e) ac_file='' ;; 3831 esac 3832 fi 3833 if test -z "$ac_file" 3834 then : 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3836 printf "%s\n" "no" >&6; } 3837 printf "%s\n" "$as_me: failed program was:" >&5 3838 sed 's/^/| /' conftest.$ac_ext >&5 3839 3840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3841 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3842 as_fn_error 77 "C compiler cannot create executables 3843 See 'config.log' for more details" "$LINENO" 5; } 3844 else case e in #( 3845 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3846 printf "%s\n" "yes" >&6; } ;; 3847 esac 3848 fi 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3850 printf %s "checking for C compiler default output file name... " >&6; } 3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3852 printf "%s\n" "$ac_file" >&6; } 3853 ac_exeext=$ac_cv_exeext 3854 3855 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3856 ac_clean_files=$ac_clean_files_save 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3858 printf %s "checking for suffix of executables... " >&6; } 3859 if { { ac_try="$ac_link" 3860 case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863 esac 3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865 printf "%s\n" "$ac_try_echo"; } >&5 3866 (eval "$ac_link") 2>&5 3867 ac_status=$? 3868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; } 3870 then : 3871 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3872 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3873 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3874 # 'rm'. 3875 for ac_file in conftest.exe conftest conftest.*; do 3876 test -f "$ac_file" || continue 3877 case $ac_file in 3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3880 break;; 3881 * ) break;; 3882 esac 3883 done 3884 else case e in #( 3885 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3886 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3887 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3888 See 'config.log' for more details" "$LINENO" 5; } ;; 3889 esac 3890 fi 3891 rm -f conftest conftest$ac_cv_exeext 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3893 printf "%s\n" "$ac_cv_exeext" >&6; } 3894 3895 rm -f conftest.$ac_ext 3896 EXEEXT=$ac_cv_exeext 3897 ac_exeext=$EXEEXT 3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899 /* end confdefs.h. */ 3900 #include <stdio.h> 3901 int 3902 main (void) 3903 { 3904 FILE *f = fopen ("conftest.out", "w"); 3905 if (!f) 3906 return 1; 3907 return ferror (f) || fclose (f) != 0; 3908 3909 ; 3910 return 0; 3911 } 3912 _ACEOF 3913 ac_clean_files="$ac_clean_files conftest.out" 3914 # Check that the compiler produces executables we can run. If not, either 3915 # the compiler is broken, or we cross compile. 3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3917 printf %s "checking whether we are cross compiling... " >&6; } 3918 if test "$cross_compiling" != yes; then 3919 { { ac_try="$ac_link" 3920 case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923 esac 3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3925 printf "%s\n" "$ac_try_echo"; } >&5 3926 (eval "$ac_link") 2>&5 3927 ac_status=$? 3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3929 test $ac_status = 0; } 3930 if { ac_try='./conftest$ac_cv_exeext' 3931 { { case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934 esac 3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936 printf "%s\n" "$ac_try_echo"; } >&5 3937 (eval "$ac_try") 2>&5 3938 ac_status=$? 3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940 test $ac_status = 0; }; }; then 3941 cross_compiling=no 3942 else 3943 if test "$cross_compiling" = maybe; then 3944 cross_compiling=yes 3945 else 3946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3947 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3948 as_fn_error 77 "cannot run C compiled programs. 3949 If you meant to cross compile, use '--host'. 3950 See 'config.log' for more details" "$LINENO" 5; } 3951 fi 3952 fi 3953 fi 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3955 printf "%s\n" "$cross_compiling" >&6; } 3956 3957 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3958 conftest.o conftest.obj conftest.out 3959 ac_clean_files=$ac_clean_files_save 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3961 printf %s "checking for suffix of object files... " >&6; } 3962 if test ${ac_cv_objext+y} 3963 then : 3964 printf %s "(cached) " >&6 3965 else case e in #( 3966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967 /* end confdefs.h. */ 3968 3969 int 3970 main (void) 3971 { 3972 3973 ; 3974 return 0; 3975 } 3976 _ACEOF 3977 rm -f conftest.o conftest.obj 3978 if { { ac_try="$ac_compile" 3979 case "(($ac_try" in 3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3981 *) ac_try_echo=$ac_try;; 3982 esac 3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3984 printf "%s\n" "$ac_try_echo"; } >&5 3985 (eval "$ac_compile") 2>&5 3986 ac_status=$? 3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3988 test $ac_status = 0; } 3989 then : 3990 for ac_file in conftest.o conftest.obj conftest.*; do 3991 test -f "$ac_file" || continue; 3992 case $ac_file in 3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3995 break;; 3996 esac 3997 done 3998 else case e in #( 3999 e) printf "%s\n" "$as_me: failed program was:" >&5 4000 sed 's/^/| /' conftest.$ac_ext >&5 4001 4002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4003 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4004 as_fn_error $? "cannot compute suffix of object files: cannot compile 4005 See 'config.log' for more details" "$LINENO" 5; } ;; 4006 esac 4007 fi 4008 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4009 esac 4010 fi 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4012 printf "%s\n" "$ac_cv_objext" >&6; } 4013 OBJEXT=$ac_cv_objext 4014 ac_objext=$OBJEXT 4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4016 printf %s "checking whether the compiler supports GNU C... " >&6; } 4017 if test ${ac_cv_c_compiler_gnu+y} 4018 then : 4019 printf %s "(cached) " >&6 4020 else case e in #( 4021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022 /* end confdefs.h. */ 4023 4024 int 4025 main (void) 4026 { 4027 #ifndef __GNUC__ 4028 choke me 4029 #endif 4030 4031 ; 4032 return 0; 4033 } 4034 _ACEOF 4035 if ac_fn_c_try_compile "$LINENO" 4036 then : 4037 ac_compiler_gnu=yes 4038 else case e in #( 4039 e) ac_compiler_gnu=no ;; 4040 esac 4041 fi 4042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4043 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4044 ;; 4045 esac 4046 fi 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4048 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4050 4051 if test $ac_compiler_gnu = yes; then 4052 GCC=yes 4053 else 4054 GCC= 4055 fi 4056 ac_test_CFLAGS=${CFLAGS+y} 4057 ac_save_CFLAGS=$CFLAGS 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4059 printf %s "checking whether $CC accepts -g... " >&6; } 4060 if test ${ac_cv_prog_cc_g+y} 4061 then : 4062 printf %s "(cached) " >&6 4063 else case e in #( 4064 e) ac_save_c_werror_flag=$ac_c_werror_flag 4065 ac_c_werror_flag=yes 4066 ac_cv_prog_cc_g=no 4067 CFLAGS="-g" 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069 /* end confdefs.h. */ 4070 4071 int 4072 main (void) 4073 { 4074 4075 ; 4076 return 0; 4077 } 4078 _ACEOF 4079 if ac_fn_c_try_compile "$LINENO" 4080 then : 4081 ac_cv_prog_cc_g=yes 4082 else case e in #( 4083 e) CFLAGS="" 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085 /* end confdefs.h. */ 4086 4087 int 4088 main (void) 4089 { 4090 4091 ; 4092 return 0; 4093 } 4094 _ACEOF 4095 if ac_fn_c_try_compile "$LINENO" 4096 then : 4097 4098 else case e in #( 4099 e) ac_c_werror_flag=$ac_save_c_werror_flag 4100 CFLAGS="-g" 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102 /* end confdefs.h. */ 4103 4104 int 4105 main (void) 4106 { 4107 4108 ; 4109 return 0; 4110 } 4111 _ACEOF 4112 if ac_fn_c_try_compile "$LINENO" 4113 then : 4114 ac_cv_prog_cc_g=yes 4115 fi 4116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4117 esac 4118 fi 4119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4120 esac 4121 fi 4122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4123 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4124 esac 4125 fi 4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4127 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4128 if test $ac_test_CFLAGS; then 4129 CFLAGS=$ac_save_CFLAGS 4130 elif test $ac_cv_prog_cc_g = yes; then 4131 if test "$GCC" = yes; then 4132 CFLAGS="-g -O2" 4133 else 4134 CFLAGS="-g" 4135 fi 4136 else 4137 if test "$GCC" = yes; then 4138 CFLAGS="-O2" 4139 else 4140 CFLAGS= 4141 fi 4142 fi 4143 ac_prog_cc_stdc=no 4144 if test x$ac_prog_cc_stdc = xno 4145 then : 4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4147 printf %s "checking for $CC option to enable C11 features... " >&6; } 4148 if test ${ac_cv_prog_cc_c11+y} 4149 then : 4150 printf %s "(cached) " >&6 4151 else case e in #( 4152 e) ac_cv_prog_cc_c11=no 4153 ac_save_CC=$CC 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155 /* end confdefs.h. */ 4156 $ac_c_conftest_c11_program 4157 _ACEOF 4158 for ac_arg in '' -std=gnu11 4159 do 4160 CC="$ac_save_CC $ac_arg" 4161 if ac_fn_c_try_compile "$LINENO" 4162 then : 4163 ac_cv_prog_cc_c11=$ac_arg 4164 fi 4165 rm -f core conftest.err conftest.$ac_objext conftest.beam 4166 test "x$ac_cv_prog_cc_c11" != "xno" && break 4167 done 4168 rm -f conftest.$ac_ext 4169 CC=$ac_save_CC ;; 4170 esac 4171 fi 4172 4173 if test "x$ac_cv_prog_cc_c11" = xno 4174 then : 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4176 printf "%s\n" "unsupported" >&6; } 4177 else case e in #( 4178 e) if test "x$ac_cv_prog_cc_c11" = x 4179 then : 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4181 printf "%s\n" "none needed" >&6; } 4182 else case e in #( 4183 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4184 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4185 CC="$CC $ac_cv_prog_cc_c11" ;; 4186 esac 4187 fi 4188 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4189 ac_prog_cc_stdc=c11 ;; 4190 esac 4191 fi 4192 fi 4193 if test x$ac_prog_cc_stdc = xno 4194 then : 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4196 printf %s "checking for $CC option to enable C99 features... " >&6; } 4197 if test ${ac_cv_prog_cc_c99+y} 4198 then : 4199 printf %s "(cached) " >&6 4200 else case e in #( 4201 e) ac_cv_prog_cc_c99=no 4202 ac_save_CC=$CC 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204 /* end confdefs.h. */ 4205 $ac_c_conftest_c99_program 4206 _ACEOF 4207 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4208 do 4209 CC="$ac_save_CC $ac_arg" 4210 if ac_fn_c_try_compile "$LINENO" 4211 then : 4212 ac_cv_prog_cc_c99=$ac_arg 4213 fi 4214 rm -f core conftest.err conftest.$ac_objext conftest.beam 4215 test "x$ac_cv_prog_cc_c99" != "xno" && break 4216 done 4217 rm -f conftest.$ac_ext 4218 CC=$ac_save_CC ;; 4219 esac 4220 fi 4221 4222 if test "x$ac_cv_prog_cc_c99" = xno 4223 then : 4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4225 printf "%s\n" "unsupported" >&6; } 4226 else case e in #( 4227 e) if test "x$ac_cv_prog_cc_c99" = x 4228 then : 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4230 printf "%s\n" "none needed" >&6; } 4231 else case e in #( 4232 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4233 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4234 CC="$CC $ac_cv_prog_cc_c99" ;; 4235 esac 4236 fi 4237 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4238 ac_prog_cc_stdc=c99 ;; 4239 esac 4240 fi 4241 fi 4242 if test x$ac_prog_cc_stdc = xno 4243 then : 4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4245 printf %s "checking for $CC option to enable C89 features... " >&6; } 4246 if test ${ac_cv_prog_cc_c89+y} 4247 then : 4248 printf %s "(cached) " >&6 4249 else case e in #( 4250 e) ac_cv_prog_cc_c89=no 4251 ac_save_CC=$CC 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253 /* end confdefs.h. */ 4254 $ac_c_conftest_c89_program 4255 _ACEOF 4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4257 do 4258 CC="$ac_save_CC $ac_arg" 4259 if ac_fn_c_try_compile "$LINENO" 4260 then : 4261 ac_cv_prog_cc_c89=$ac_arg 4262 fi 4263 rm -f core conftest.err conftest.$ac_objext conftest.beam 4264 test "x$ac_cv_prog_cc_c89" != "xno" && break 4265 done 4266 rm -f conftest.$ac_ext 4267 CC=$ac_save_CC ;; 4268 esac 4269 fi 4270 4271 if test "x$ac_cv_prog_cc_c89" = xno 4272 then : 4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4274 printf "%s\n" "unsupported" >&6; } 4275 else case e in #( 4276 e) if test "x$ac_cv_prog_cc_c89" = x 4277 then : 4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4279 printf "%s\n" "none needed" >&6; } 4280 else case e in #( 4281 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4282 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4283 CC="$CC $ac_cv_prog_cc_c89" ;; 4284 esac 4285 fi 4286 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4287 ac_prog_cc_stdc=c89 ;; 4288 esac 4289 fi 4290 fi 4291 4292 ac_ext=c 4293 ac_cpp='$CPP $CPPFLAGS' 4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4297 4298 4299 ac_ext=c 4300 ac_cpp='$CPP $CPPFLAGS' 4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4305 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4306 if test ${am_cv_prog_cc_c_o+y} 4307 then : 4308 printf %s "(cached) " >&6 4309 else case e in #( 4310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311 /* end confdefs.h. */ 4312 4313 int 4314 main (void) 4315 { 4316 4317 ; 4318 return 0; 4319 } 4320 _ACEOF 4321 # Make sure it works both with $CC and with simple cc. 4322 # Following AC_PROG_CC_C_O, we do the test twice because some 4323 # compilers refuse to overwrite an existing .o file with -o, 4324 # though they will create one. 4325 am_cv_prog_cc_c_o=yes 4326 for am_i in 1 2; do 4327 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4328 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); } \ 4332 && test -f conftest2.$ac_objext; then 4333 : OK 4334 else 4335 am_cv_prog_cc_c_o=no 4336 break 4337 fi 4338 done 4339 rm -f core conftest* 4340 unset am_i ;; 4341 esac 4342 fi 4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4344 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4345 if test "$am_cv_prog_cc_c_o" != yes; then 4346 # Losing compiler, so override with the script. 4347 # FIXME: It is wrong to rewrite CC. 4348 # But if we don't then we get into trouble of one sort or another. 4349 # A longer-term fix would be to have automake use am__CC in this case, 4350 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4351 CC="$am_aux_dir/compile $CC" 4352 fi 4353 ac_ext=c 4354 ac_cpp='$CPP $CPPFLAGS' 4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4358 4359 4360 depcc="$CC" am_compiler_list= 4361 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4363 printf %s "checking dependency style of $depcc... " >&6; } 4364 if test ${am_cv_CC_dependencies_compiler_type+y} 4365 then : 4366 printf %s "(cached) " >&6 4367 else case e in #( 4368 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4369 # We make a subdir and do the tests there. Otherwise we can end up 4370 # making bogus files that we don't know about and never remove. For 4371 # instance it was reported that on HP-UX the gcc test will end up 4372 # making a dummy file named 'D' -- because '-MD' means "put the output 4373 # in D". 4374 rm -rf conftest.dir 4375 mkdir conftest.dir 4376 # Copy depcomp to subdir because otherwise we won't find it if we're 4377 # using a relative directory. 4378 cp "$am_depcomp" conftest.dir 4379 cd conftest.dir 4380 # We will build objects and dependencies in a subdirectory because 4381 # it helps to detect inapplicable dependency modes. For instance 4382 # both Tru64's cc and ICC support -MD to output dependencies as a 4383 # side effect of compilation, but ICC will put the dependencies in 4384 # the current directory while Tru64 will put them in the object 4385 # directory. 4386 mkdir sub 4387 4388 am_cv_CC_dependencies_compiler_type=none 4389 if test "$am_compiler_list" = ""; then 4390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4391 fi 4392 am__universal=false 4393 case " $depcc " in #( 4394 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4395 esac 4396 4397 for depmode in $am_compiler_list; do 4398 # Setup a source with many dependencies, because some compilers 4399 # like to wrap large dependency lists on column 80 (with \), and 4400 # we should not choose a depcomp mode which is confused by this. 4401 # 4402 # We need to recreate these files for each test, as the compiler may 4403 # overwrite some of them when testing with obscure command lines. 4404 # This happens at least with the AIX C compiler. 4405 : > sub/conftest.c 4406 for i in 1 2 3 4 5 6; do 4407 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4409 # Solaris 10 /bin/sh. 4410 echo '/* dummy */' > sub/conftst$i.h 4411 done 4412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4413 4414 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4415 # mode. It turns out that the SunPro C++ compiler does not properly 4416 # handle '-M -o', and we need to detect this. Also, some Intel 4417 # versions had trouble with output in subdirs. 4418 am__obj=sub/conftest.${OBJEXT-o} 4419 am__minus_obj="-o $am__obj" 4420 case $depmode in 4421 gcc) 4422 # This depmode causes a compiler race in universal mode. 4423 test "$am__universal" = false || continue 4424 ;; 4425 nosideeffect) 4426 # After this tag, mechanisms are not by side-effect, so they'll 4427 # only be used when explicitly requested. 4428 if test "x$enable_dependency_tracking" = xyes; then 4429 continue 4430 else 4431 break 4432 fi 4433 ;; 4434 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4435 # This compiler won't grok '-c -o', but also, the minuso test has 4436 # not run yet. These depmodes are late enough in the game, and 4437 # so weak that their functioning should not be impacted. 4438 am__obj=conftest.${OBJEXT-o} 4439 am__minus_obj= 4440 ;; 4441 none) break ;; 4442 esac 4443 if depmode=$depmode \ 4444 source=sub/conftest.c object=$am__obj \ 4445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4447 >/dev/null 2>conftest.err && 4448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4452 # icc doesn't choke on unknown options, it will just issue warnings 4453 # or remarks (even with -Werror). So we grep stderr for any message 4454 # that says an option was ignored or not supported. 4455 # When given -MP, icc 7.0 and 7.1 complain thusly: 4456 # icc: Command line warning: ignoring option '-M'; no argument required 4457 # The diagnosis changed in icc 8.0: 4458 # icc: Command line remark: option '-MP' not supported 4459 if (grep 'ignoring option' conftest.err || 4460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4461 am_cv_CC_dependencies_compiler_type=$depmode 4462 break 4463 fi 4464 fi 4465 done 4466 4467 cd .. 4468 rm -rf conftest.dir 4469 else 4470 am_cv_CC_dependencies_compiler_type=none 4471 fi 4472 ;; 4473 esac 4474 fi 4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4476 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4478 4479 if 4480 test "x$enable_dependency_tracking" != xno \ 4481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4482 am__fastdepCC_TRUE= 4483 am__fastdepCC_FALSE='#' 4484 else 4485 am__fastdepCC_TRUE='#' 4486 am__fastdepCC_FALSE= 4487 fi 4488 4489 4490 4491 4492 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4506 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4507 if test ${ac_cv_c_undeclared_builtin_options+y} 4508 then : 4509 printf %s "(cached) " >&6 4510 else case e in #( 4511 e) ac_save_CFLAGS=$CFLAGS 4512 ac_cv_c_undeclared_builtin_options='cannot detect' 4513 for ac_arg in '' -fno-builtin; do 4514 CFLAGS="$ac_save_CFLAGS $ac_arg" 4515 # This test program should *not* compile successfully. 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517 /* end confdefs.h. */ 4518 4519 int 4520 main (void) 4521 { 4522 (void) strchr; 4523 ; 4524 return 0; 4525 } 4526 _ACEOF 4527 if ac_fn_c_try_compile "$LINENO" 4528 then : 4529 4530 else case e in #( 4531 e) # This test program should compile successfully. 4532 # No library function is consistently available on 4533 # freestanding implementations, so test against a dummy 4534 # declaration. Include always-available headers on the 4535 # off chance that they somehow elicit warnings. 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537 /* end confdefs.h. */ 4538 #include <float.h> 4539 #include <limits.h> 4540 #include <stdarg.h> 4541 #include <stddef.h> 4542 extern void ac_decl (int, char *); 4543 4544 int 4545 main (void) 4546 { 4547 (void) ac_decl (0, (char *) 0); 4548 (void) ac_decl; 4549 4550 ; 4551 return 0; 4552 } 4553 _ACEOF 4554 if ac_fn_c_try_compile "$LINENO" 4555 then : 4556 if test x"$ac_arg" = x 4557 then : 4558 ac_cv_c_undeclared_builtin_options='none needed' 4559 else case e in #( 4560 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4561 esac 4562 fi 4563 break 4564 fi 4565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4566 esac 4567 fi 4568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4569 done 4570 CFLAGS=$ac_save_CFLAGS 4571 ;; 4572 esac 4573 fi 4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4575 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4576 case $ac_cv_c_undeclared_builtin_options in #( 4577 'cannot detect') : 4578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4580 as_fn_error $? "cannot make $CC report undeclared builtins 4581 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4582 'none needed') : 4583 ac_c_undeclared_builtin_options='' ;; #( 4584 *) : 4585 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4586 esac 4587 4588 ac_header= ac_cache= 4589 for ac_item in $ac_header_c_list 4590 do 4591 if test $ac_cache; then 4592 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4593 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4594 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4595 fi 4596 ac_header= ac_cache= 4597 elif test $ac_header; then 4598 ac_cache=$ac_item 4599 else 4600 ac_header=$ac_item 4601 fi 4602 done 4603 4604 4605 4606 4607 4608 4609 4610 4611 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4612 then : 4613 4614 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4615 4616 fi 4617 4618 4619 4620 4621 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4622 if test "x$ac_cv_have_decl___clang__" = xyes 4623 then : 4624 CLANGCC="yes" 4625 else case e in #( 4626 e) CLANGCC="no" ;; 4627 esac 4628 fi 4629 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4630 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4631 then : 4632 INTELCC="yes" 4633 else case e in #( 4634 e) INTELCC="no" ;; 4635 esac 4636 fi 4637 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4638 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4639 then : 4640 SUNCC="yes" 4641 else case e in #( 4642 e) SUNCC="no" ;; 4643 esac 4644 fi 4645 4646 4647 4648 4649 4650 4651 4652 4653 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4654 if test -n "$ac_tool_prefix"; then 4655 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4656 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4658 printf %s "checking for $ac_word... " >&6; } 4659 if test ${ac_cv_path_PKG_CONFIG+y} 4660 then : 4661 printf %s "(cached) " >&6 4662 else case e in #( 4663 e) case $PKG_CONFIG in 4664 [\\/]* | ?:[\\/]*) 4665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4666 ;; 4667 *) 4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4669 for as_dir in $PATH 4670 do 4671 IFS=$as_save_IFS 4672 case $as_dir in #((( 4673 '') as_dir=./ ;; 4674 */) ;; 4675 *) as_dir=$as_dir/ ;; 4676 esac 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4679 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4681 break 2 4682 fi 4683 done 4684 done 4685 IFS=$as_save_IFS 4686 4687 ;; 4688 esac ;; 4689 esac 4690 fi 4691 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4692 if test -n "$PKG_CONFIG"; then 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4694 printf "%s\n" "$PKG_CONFIG" >&6; } 4695 else 4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697 printf "%s\n" "no" >&6; } 4698 fi 4699 4700 4701 fi 4702 if test -z "$ac_cv_path_PKG_CONFIG"; then 4703 ac_pt_PKG_CONFIG=$PKG_CONFIG 4704 # Extract the first word of "pkg-config", so it can be a program name with args. 4705 set dummy pkg-config; ac_word=$2 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4707 printf %s "checking for $ac_word... " >&6; } 4708 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4709 then : 4710 printf %s "(cached) " >&6 4711 else case e in #( 4712 e) case $ac_pt_PKG_CONFIG in 4713 [\\/]* | ?:[\\/]*) 4714 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4715 ;; 4716 *) 4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718 for as_dir in $PATH 4719 do 4720 IFS=$as_save_IFS 4721 case $as_dir in #((( 4722 '') as_dir=./ ;; 4723 */) ;; 4724 *) as_dir=$as_dir/ ;; 4725 esac 4726 for ac_exec_ext in '' $ac_executable_extensions; do 4727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4728 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4730 break 2 4731 fi 4732 done 4733 done 4734 IFS=$as_save_IFS 4735 4736 ;; 4737 esac ;; 4738 esac 4739 fi 4740 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4741 if test -n "$ac_pt_PKG_CONFIG"; then 4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4743 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4744 else 4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746 printf "%s\n" "no" >&6; } 4747 fi 4748 4749 if test "x$ac_pt_PKG_CONFIG" = x; then 4750 PKG_CONFIG="" 4751 else 4752 case $cross_compiling:$ac_tool_warned in 4753 yes:) 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4756 ac_tool_warned=yes ;; 4757 esac 4758 PKG_CONFIG=$ac_pt_PKG_CONFIG 4759 fi 4760 else 4761 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4762 fi 4763 4764 fi 4765 if test -n "$PKG_CONFIG"; then 4766 _pkg_min_version=0.9.0 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4768 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4769 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4771 printf "%s\n" "yes" >&6; } 4772 else 4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774 printf "%s\n" "no" >&6; } 4775 PKG_CONFIG="" 4776 fi 4777 fi 4778 4779 4780 # Make sure we can run config.sub. 4781 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4782 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4783 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4785 printf %s "checking build system type... " >&6; } 4786 if test ${ac_cv_build+y} 4787 then : 4788 printf %s "(cached) " >&6 4789 else case e in #( 4790 e) ac_build_alias=$build_alias 4791 test "x$ac_build_alias" = x && 4792 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4793 test "x$ac_build_alias" = x && 4794 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4795 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4796 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4797 ;; 4798 esac 4799 fi 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4801 printf "%s\n" "$ac_cv_build" >&6; } 4802 case $ac_cv_build in 4803 *-*-*) ;; 4804 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4805 esac 4806 build=$ac_cv_build 4807 ac_save_IFS=$IFS; IFS='-' 4808 set x $ac_cv_build 4809 shift 4810 build_cpu=$1 4811 build_vendor=$2 4812 shift; shift 4813 # Remember, the first character of IFS is used to create $*, 4814 # except with old shells: 4815 build_os=$* 4816 IFS=$ac_save_IFS 4817 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4818 4819 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4821 printf %s "checking host system type... " >&6; } 4822 if test ${ac_cv_host+y} 4823 then : 4824 printf %s "(cached) " >&6 4825 else case e in #( 4826 e) if test "x$host_alias" = x; then 4827 ac_cv_host=$ac_cv_build 4828 else 4829 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4830 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4831 fi 4832 ;; 4833 esac 4834 fi 4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4836 printf "%s\n" "$ac_cv_host" >&6; } 4837 case $ac_cv_host in 4838 *-*-*) ;; 4839 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4840 esac 4841 host=$ac_cv_host 4842 ac_save_IFS=$IFS; IFS='-' 4843 set x $ac_cv_host 4844 shift 4845 host_cpu=$1 4846 host_vendor=$2 4847 shift; shift 4848 # Remember, the first character of IFS is used to create $*, 4849 # except with old shells: 4850 host_os=$* 4851 IFS=$ac_save_IFS 4852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4853 4854 4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4856 printf %s "checking for a sed that does not truncate output... " >&6; } 4857 if test ${ac_cv_path_SED+y} 4858 then : 4859 printf %s "(cached) " >&6 4860 else case e in #( 4861 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4862 for ac_i in 1 2 3 4 5 6 7; do 4863 ac_script="$ac_script$as_nl$ac_script" 4864 done 4865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4866 { ac_script=; unset ac_script;} 4867 if test -z "$SED"; then 4868 ac_path_SED_found=false 4869 # Loop through the user's path and test for each of PROGNAME-LIST 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871 for as_dir in $PATH 4872 do 4873 IFS=$as_save_IFS 4874 case $as_dir in #((( 4875 '') as_dir=./ ;; 4876 */) ;; 4877 *) as_dir=$as_dir/ ;; 4878 esac 4879 for ac_prog in sed gsed 4880 do 4881 for ac_exec_ext in '' $ac_executable_extensions; do 4882 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4883 as_fn_executable_p "$ac_path_SED" || continue 4884 # Check for GNU ac_path_SED and select it if it is found. 4885 # Check for GNU $ac_path_SED 4886 case `"$ac_path_SED" --version 2>&1` in #( 4887 *GNU*) 4888 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4889 #( 4890 *) 4891 ac_count=0 4892 printf %s 0123456789 >"conftest.in" 4893 while : 4894 do 4895 cat "conftest.in" "conftest.in" >"conftest.tmp" 4896 mv "conftest.tmp" "conftest.in" 4897 cp "conftest.in" "conftest.nl" 4898 printf "%s\n" '' >> "conftest.nl" 4899 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4901 as_fn_arith $ac_count + 1 && ac_count=$as_val 4902 if test $ac_count -gt ${ac_path_SED_max-0}; then 4903 # Best one so far, save it but keep looking for a better one 4904 ac_cv_path_SED="$ac_path_SED" 4905 ac_path_SED_max=$ac_count 4906 fi 4907 # 10*(2^10) chars as input seems more than enough 4908 test $ac_count -gt 10 && break 4909 done 4910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4911 esac 4912 4913 $ac_path_SED_found && break 3 4914 done 4915 done 4916 done 4917 IFS=$as_save_IFS 4918 if test -z "$ac_cv_path_SED"; then 4919 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4920 fi 4921 else 4922 ac_cv_path_SED=$SED 4923 fi 4924 ;; 4925 esac 4926 fi 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4928 printf "%s\n" "$ac_cv_path_SED" >&6; } 4929 SED="$ac_cv_path_SED" 4930 rm -f conftest.sed 4931 4932 4933 4934 4935 4936 4937 # Check whether --enable-selective-werror was given. 4938 if test ${enable_selective_werror+y} 4939 then : 4940 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4941 else case e in #( 4942 e) SELECTIVE_WERROR=yes ;; 4943 esac 4944 fi 4945 4946 4947 4948 4949 4950 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4951 if test "x$SUNCC" = "xyes"; then 4952 BASE_CFLAGS="-v" 4953 else 4954 BASE_CFLAGS="" 4955 fi 4956 4957 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 xorg_testset_save_CFLAGS="$CFLAGS" 4972 4973 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4976 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4977 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4978 then : 4979 printf %s "(cached) " >&6 4980 else case e in #( 4981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4982 /* end confdefs.h. */ 4983 int i; 4984 _ACEOF 4985 if ac_fn_c_try_compile "$LINENO" 4986 then : 4987 xorg_cv_cc_flag_unknown_warning_option=yes 4988 else case e in #( 4989 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4990 esac 4991 fi 4992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4993 esac 4994 fi 4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4996 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4997 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4998 CFLAGS="$xorg_testset_save_CFLAGS" 4999 fi 5000 5001 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5004 fi 5005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5007 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5008 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5009 then : 5010 printf %s "(cached) " >&6 5011 else case e in #( 5012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013 /* end confdefs.h. */ 5014 int i; 5015 _ACEOF 5016 if ac_fn_c_try_compile "$LINENO" 5017 then : 5018 xorg_cv_cc_flag_unused_command_line_argument=yes 5019 else case e in #( 5020 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5021 esac 5022 fi 5023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5024 esac 5025 fi 5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5027 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5029 CFLAGS="$xorg_testset_save_CFLAGS" 5030 fi 5031 5032 found="no" 5033 5034 if test $found = "no" ; then 5035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037 fi 5038 5039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5041 fi 5042 5043 CFLAGS="$CFLAGS -Wall" 5044 5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5046 printf %s "checking if $CC supports -Wall... " >&6; } 5047 cacheid=xorg_cv_cc_flag__Wall 5048 if eval test \${$cacheid+y} 5049 then : 5050 printf %s "(cached) " >&6 5051 else case e in #( 5052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053 /* end confdefs.h. */ 5054 int i; 5055 int 5056 main (void) 5057 { 5058 5059 ; 5060 return 0; 5061 } 5062 _ACEOF 5063 if ac_fn_c_try_link "$LINENO" 5064 then : 5065 eval $cacheid=yes 5066 else case e in #( 5067 e) eval $cacheid=no ;; 5068 esac 5069 fi 5070 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5071 conftest$ac_exeext conftest.$ac_ext ;; 5072 esac 5073 fi 5074 5075 5076 CFLAGS="$xorg_testset_save_CFLAGS" 5077 5078 eval supported=\$$cacheid 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5080 printf "%s\n" "$supported" >&6; } 5081 if test "$supported" = "yes" ; then 5082 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5083 found="yes" 5084 fi 5085 fi 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 xorg_testset_save_CFLAGS="$CFLAGS" 5102 5103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5107 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5108 then : 5109 printf %s "(cached) " >&6 5110 else case e in #( 5111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112 /* end confdefs.h. */ 5113 int i; 5114 _ACEOF 5115 if ac_fn_c_try_compile "$LINENO" 5116 then : 5117 xorg_cv_cc_flag_unknown_warning_option=yes 5118 else case e in #( 5119 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5120 esac 5121 fi 5122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5123 esac 5124 fi 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129 fi 5130 5131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5134 fi 5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5139 then : 5140 printf %s "(cached) " >&6 5141 else case e in #( 5142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143 /* end confdefs.h. */ 5144 int i; 5145 _ACEOF 5146 if ac_fn_c_try_compile "$LINENO" 5147 then : 5148 xorg_cv_cc_flag_unused_command_line_argument=yes 5149 else case e in #( 5150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5151 esac 5152 fi 5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5154 esac 5155 fi 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160 fi 5161 5162 found="no" 5163 5164 if test $found = "no" ; then 5165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5167 fi 5168 5169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5171 fi 5172 5173 CFLAGS="$CFLAGS -Wpointer-arith" 5174 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5176 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5177 cacheid=xorg_cv_cc_flag__Wpointer_arith 5178 if eval test \${$cacheid+y} 5179 then : 5180 printf %s "(cached) " >&6 5181 else case e in #( 5182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183 /* end confdefs.h. */ 5184 int i; 5185 int 5186 main (void) 5187 { 5188 5189 ; 5190 return 0; 5191 } 5192 _ACEOF 5193 if ac_fn_c_try_link "$LINENO" 5194 then : 5195 eval $cacheid=yes 5196 else case e in #( 5197 e) eval $cacheid=no ;; 5198 esac 5199 fi 5200 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5201 conftest$ac_exeext conftest.$ac_ext ;; 5202 esac 5203 fi 5204 5205 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 5208 eval supported=\$$cacheid 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5210 printf "%s\n" "$supported" >&6; } 5211 if test "$supported" = "yes" ; then 5212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5213 found="yes" 5214 fi 5215 fi 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 xorg_testset_save_CFLAGS="$CFLAGS" 5232 5233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5237 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5238 then : 5239 printf %s "(cached) " >&6 5240 else case e in #( 5241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242 /* end confdefs.h. */ 5243 int i; 5244 _ACEOF 5245 if ac_fn_c_try_compile "$LINENO" 5246 then : 5247 xorg_cv_cc_flag_unknown_warning_option=yes 5248 else case e in #( 5249 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5250 esac 5251 fi 5252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5253 esac 5254 fi 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259 fi 5260 5261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5264 fi 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5269 then : 5270 printf %s "(cached) " >&6 5271 else case e in #( 5272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273 /* end confdefs.h. */ 5274 int i; 5275 _ACEOF 5276 if ac_fn_c_try_compile "$LINENO" 5277 then : 5278 xorg_cv_cc_flag_unused_command_line_argument=yes 5279 else case e in #( 5280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5281 esac 5282 fi 5283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5284 esac 5285 fi 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5290 fi 5291 5292 found="no" 5293 5294 if test $found = "no" ; then 5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 fi 5298 5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5301 fi 5302 5303 CFLAGS="$CFLAGS -Wmissing-declarations" 5304 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5306 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5307 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5308 if eval test \${$cacheid+y} 5309 then : 5310 printf %s "(cached) " >&6 5311 else case e in #( 5312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313 /* end confdefs.h. */ 5314 int i; 5315 int 5316 main (void) 5317 { 5318 5319 ; 5320 return 0; 5321 } 5322 _ACEOF 5323 if ac_fn_c_try_link "$LINENO" 5324 then : 5325 eval $cacheid=yes 5326 else case e in #( 5327 e) eval $cacheid=no ;; 5328 esac 5329 fi 5330 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5331 conftest$ac_exeext conftest.$ac_ext ;; 5332 esac 5333 fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340 printf "%s\n" "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5343 found="yes" 5344 fi 5345 fi 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 xorg_testset_save_CFLAGS="$CFLAGS" 5362 5363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5367 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5368 then : 5369 printf %s "(cached) " >&6 5370 else case e in #( 5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372 /* end confdefs.h. */ 5373 int i; 5374 _ACEOF 5375 if ac_fn_c_try_compile "$LINENO" 5376 then : 5377 xorg_cv_cc_flag_unknown_warning_option=yes 5378 else case e in #( 5379 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5380 esac 5381 fi 5382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5383 esac 5384 fi 5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5386 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5388 CFLAGS="$xorg_testset_save_CFLAGS" 5389 fi 5390 5391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5394 fi 5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5397 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5398 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5399 then : 5400 printf %s "(cached) " >&6 5401 else case e in #( 5402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403 /* end confdefs.h. */ 5404 int i; 5405 _ACEOF 5406 if ac_fn_c_try_compile "$LINENO" 5407 then : 5408 xorg_cv_cc_flag_unused_command_line_argument=yes 5409 else case e in #( 5410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5411 esac 5412 fi 5413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5414 esac 5415 fi 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5419 CFLAGS="$xorg_testset_save_CFLAGS" 5420 fi 5421 5422 found="no" 5423 5424 if test $found = "no" ; then 5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 fi 5428 5429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 fi 5432 5433 CFLAGS="$CFLAGS -Wformat=2" 5434 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5436 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5437 cacheid=xorg_cv_cc_flag__Wformat_2 5438 if eval test \${$cacheid+y} 5439 then : 5440 printf %s "(cached) " >&6 5441 else case e in #( 5442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443 /* end confdefs.h. */ 5444 int i; 5445 int 5446 main (void) 5447 { 5448 5449 ; 5450 return 0; 5451 } 5452 _ACEOF 5453 if ac_fn_c_try_link "$LINENO" 5454 then : 5455 eval $cacheid=yes 5456 else case e in #( 5457 e) eval $cacheid=no ;; 5458 esac 5459 fi 5460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5461 conftest$ac_exeext conftest.$ac_ext ;; 5462 esac 5463 fi 5464 5465 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467 5468 eval supported=\$$cacheid 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5470 printf "%s\n" "$supported" >&6; } 5471 if test "$supported" = "yes" ; then 5472 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5473 found="yes" 5474 fi 5475 fi 5476 5477 if test $found = "no" ; then 5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5480 fi 5481 5482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5484 fi 5485 5486 CFLAGS="$CFLAGS -Wformat" 5487 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5489 printf %s "checking if $CC supports -Wformat... " >&6; } 5490 cacheid=xorg_cv_cc_flag__Wformat 5491 if eval test \${$cacheid+y} 5492 then : 5493 printf %s "(cached) " >&6 5494 else case e in #( 5495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496 /* end confdefs.h. */ 5497 int i; 5498 int 5499 main (void) 5500 { 5501 5502 ; 5503 return 0; 5504 } 5505 _ACEOF 5506 if ac_fn_c_try_link "$LINENO" 5507 then : 5508 eval $cacheid=yes 5509 else case e in #( 5510 e) eval $cacheid=no ;; 5511 esac 5512 fi 5513 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5514 conftest$ac_exeext conftest.$ac_ext ;; 5515 esac 5516 fi 5517 5518 5519 CFLAGS="$xorg_testset_save_CFLAGS" 5520 5521 eval supported=\$$cacheid 5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5523 printf "%s\n" "$supported" >&6; } 5524 if test "$supported" = "yes" ; then 5525 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5526 found="yes" 5527 fi 5528 fi 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 xorg_testset_save_CFLAGS="$CFLAGS" 5547 5548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5551 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5552 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5553 then : 5554 printf %s "(cached) " >&6 5555 else case e in #( 5556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557 /* end confdefs.h. */ 5558 int i; 5559 _ACEOF 5560 if ac_fn_c_try_compile "$LINENO" 5561 then : 5562 xorg_cv_cc_flag_unknown_warning_option=yes 5563 else case e in #( 5564 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5565 esac 5566 fi 5567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5568 esac 5569 fi 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5573 CFLAGS="$xorg_testset_save_CFLAGS" 5574 fi 5575 5576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5579 fi 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5584 then : 5585 printf %s "(cached) " >&6 5586 else case e in #( 5587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588 /* end confdefs.h. */ 5589 int i; 5590 _ACEOF 5591 if ac_fn_c_try_compile "$LINENO" 5592 then : 5593 xorg_cv_cc_flag_unused_command_line_argument=yes 5594 else case e in #( 5595 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5596 esac 5597 fi 5598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5599 esac 5600 fi 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5602 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5604 CFLAGS="$xorg_testset_save_CFLAGS" 5605 fi 5606 5607 found="no" 5608 5609 if test $found = "no" ; then 5610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 fi 5613 5614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5616 fi 5617 5618 CFLAGS="$CFLAGS -Wstrict-prototypes" 5619 5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5621 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5622 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5623 if eval test \${$cacheid+y} 5624 then : 5625 printf %s "(cached) " >&6 5626 else case e in #( 5627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628 /* end confdefs.h. */ 5629 int i; 5630 int 5631 main (void) 5632 { 5633 5634 ; 5635 return 0; 5636 } 5637 _ACEOF 5638 if ac_fn_c_try_link "$LINENO" 5639 then : 5640 eval $cacheid=yes 5641 else case e in #( 5642 e) eval $cacheid=no ;; 5643 esac 5644 fi 5645 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5646 conftest$ac_exeext conftest.$ac_ext ;; 5647 esac 5648 fi 5649 5650 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652 5653 eval supported=\$$cacheid 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5655 printf "%s\n" "$supported" >&6; } 5656 if test "$supported" = "yes" ; then 5657 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5658 found="yes" 5659 fi 5660 fi 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 xorg_testset_save_CFLAGS="$CFLAGS" 5677 5678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5682 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5683 then : 5684 printf %s "(cached) " >&6 5685 else case e in #( 5686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687 /* end confdefs.h. */ 5688 int i; 5689 _ACEOF 5690 if ac_fn_c_try_compile "$LINENO" 5691 then : 5692 xorg_cv_cc_flag_unknown_warning_option=yes 5693 else case e in #( 5694 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5695 esac 5696 fi 5697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5698 esac 5699 fi 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5703 CFLAGS="$xorg_testset_save_CFLAGS" 5704 fi 5705 5706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5714 then : 5715 printf %s "(cached) " >&6 5716 else case e in #( 5717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718 /* end confdefs.h. */ 5719 int i; 5720 _ACEOF 5721 if ac_fn_c_try_compile "$LINENO" 5722 then : 5723 xorg_cv_cc_flag_unused_command_line_argument=yes 5724 else case e in #( 5725 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5726 esac 5727 fi 5728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5729 esac 5730 fi 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735 fi 5736 5737 found="no" 5738 5739 if test $found = "no" ; then 5740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5742 fi 5743 5744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5746 fi 5747 5748 CFLAGS="$CFLAGS -Wmissing-prototypes" 5749 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5751 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5752 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5753 if eval test \${$cacheid+y} 5754 then : 5755 printf %s "(cached) " >&6 5756 else case e in #( 5757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758 /* end confdefs.h. */ 5759 int i; 5760 int 5761 main (void) 5762 { 5763 5764 ; 5765 return 0; 5766 } 5767 _ACEOF 5768 if ac_fn_c_try_link "$LINENO" 5769 then : 5770 eval $cacheid=yes 5771 else case e in #( 5772 e) eval $cacheid=no ;; 5773 esac 5774 fi 5775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5776 conftest$ac_exeext conftest.$ac_ext ;; 5777 esac 5778 fi 5779 5780 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782 5783 eval supported=\$$cacheid 5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5785 printf "%s\n" "$supported" >&6; } 5786 if test "$supported" = "yes" ; then 5787 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5788 found="yes" 5789 fi 5790 fi 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 xorg_testset_save_CFLAGS="$CFLAGS" 5807 5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5812 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5813 then : 5814 printf %s "(cached) " >&6 5815 else case e in #( 5816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817 /* end confdefs.h. */ 5818 int i; 5819 _ACEOF 5820 if ac_fn_c_try_compile "$LINENO" 5821 then : 5822 xorg_cv_cc_flag_unknown_warning_option=yes 5823 else case e in #( 5824 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5825 esac 5826 fi 5827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5828 esac 5829 fi 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5831 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5833 CFLAGS="$xorg_testset_save_CFLAGS" 5834 fi 5835 5836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5839 fi 5840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5842 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5843 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5844 then : 5845 printf %s "(cached) " >&6 5846 else case e in #( 5847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848 /* end confdefs.h. */ 5849 int i; 5850 _ACEOF 5851 if ac_fn_c_try_compile "$LINENO" 5852 then : 5853 xorg_cv_cc_flag_unused_command_line_argument=yes 5854 else case e in #( 5855 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5856 esac 5857 fi 5858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5859 esac 5860 fi 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5862 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5864 CFLAGS="$xorg_testset_save_CFLAGS" 5865 fi 5866 5867 found="no" 5868 5869 if test $found = "no" ; then 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 fi 5873 5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5876 fi 5877 5878 CFLAGS="$CFLAGS -Wnested-externs" 5879 5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5881 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5882 cacheid=xorg_cv_cc_flag__Wnested_externs 5883 if eval test \${$cacheid+y} 5884 then : 5885 printf %s "(cached) " >&6 5886 else case e in #( 5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888 /* end confdefs.h. */ 5889 int i; 5890 int 5891 main (void) 5892 { 5893 5894 ; 5895 return 0; 5896 } 5897 _ACEOF 5898 if ac_fn_c_try_link "$LINENO" 5899 then : 5900 eval $cacheid=yes 5901 else case e in #( 5902 e) eval $cacheid=no ;; 5903 esac 5904 fi 5905 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5906 conftest$ac_exeext conftest.$ac_ext ;; 5907 esac 5908 fi 5909 5910 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912 5913 eval supported=\$$cacheid 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5915 printf "%s\n" "$supported" >&6; } 5916 if test "$supported" = "yes" ; then 5917 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5918 found="yes" 5919 fi 5920 fi 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 xorg_testset_save_CFLAGS="$CFLAGS" 5937 5938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5942 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5943 then : 5944 printf %s "(cached) " >&6 5945 else case e in #( 5946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947 /* end confdefs.h. */ 5948 int i; 5949 _ACEOF 5950 if ac_fn_c_try_compile "$LINENO" 5951 then : 5952 xorg_cv_cc_flag_unknown_warning_option=yes 5953 else case e in #( 5954 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5955 esac 5956 fi 5957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5958 esac 5959 fi 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964 fi 5965 5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5974 then : 5975 printf %s "(cached) " >&6 5976 else case e in #( 5977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978 /* end confdefs.h. */ 5979 int i; 5980 _ACEOF 5981 if ac_fn_c_try_compile "$LINENO" 5982 then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984 else case e in #( 5985 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5986 esac 5987 fi 5988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5989 esac 5990 fi 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5994 CFLAGS="$xorg_testset_save_CFLAGS" 5995 fi 5996 5997 found="no" 5998 5999 if test $found = "no" ; then 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 fi 6003 6004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6006 fi 6007 6008 CFLAGS="$CFLAGS -Wbad-function-cast" 6009 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6011 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6012 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6013 if eval test \${$cacheid+y} 6014 then : 6015 printf %s "(cached) " >&6 6016 else case e in #( 6017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018 /* end confdefs.h. */ 6019 int i; 6020 int 6021 main (void) 6022 { 6023 6024 ; 6025 return 0; 6026 } 6027 _ACEOF 6028 if ac_fn_c_try_link "$LINENO" 6029 then : 6030 eval $cacheid=yes 6031 else case e in #( 6032 e) eval $cacheid=no ;; 6033 esac 6034 fi 6035 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6036 conftest$ac_exeext conftest.$ac_ext ;; 6037 esac 6038 fi 6039 6040 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042 6043 eval supported=\$$cacheid 6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6045 printf "%s\n" "$supported" >&6; } 6046 if test "$supported" = "yes" ; then 6047 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6048 found="yes" 6049 fi 6050 fi 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 xorg_testset_save_CFLAGS="$CFLAGS" 6067 6068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6071 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6072 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6073 then : 6074 printf %s "(cached) " >&6 6075 else case e in #( 6076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077 /* end confdefs.h. */ 6078 int i; 6079 _ACEOF 6080 if ac_fn_c_try_compile "$LINENO" 6081 then : 6082 xorg_cv_cc_flag_unknown_warning_option=yes 6083 else case e in #( 6084 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6085 esac 6086 fi 6087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6088 esac 6089 fi 6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6093 CFLAGS="$xorg_testset_save_CFLAGS" 6094 fi 6095 6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6099 fi 6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6104 then : 6105 printf %s "(cached) " >&6 6106 else case e in #( 6107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108 /* end confdefs.h. */ 6109 int i; 6110 _ACEOF 6111 if ac_fn_c_try_compile "$LINENO" 6112 then : 6113 xorg_cv_cc_flag_unused_command_line_argument=yes 6114 else case e in #( 6115 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6116 esac 6117 fi 6118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6119 esac 6120 fi 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6122 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6124 CFLAGS="$xorg_testset_save_CFLAGS" 6125 fi 6126 6127 found="no" 6128 6129 if test $found = "no" ; then 6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 fi 6133 6134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6136 fi 6137 6138 CFLAGS="$CFLAGS -Wold-style-definition" 6139 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6141 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6142 cacheid=xorg_cv_cc_flag__Wold_style_definition 6143 if eval test \${$cacheid+y} 6144 then : 6145 printf %s "(cached) " >&6 6146 else case e in #( 6147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148 /* end confdefs.h. */ 6149 int i; 6150 int 6151 main (void) 6152 { 6153 6154 ; 6155 return 0; 6156 } 6157 _ACEOF 6158 if ac_fn_c_try_link "$LINENO" 6159 then : 6160 eval $cacheid=yes 6161 else case e in #( 6162 e) eval $cacheid=no ;; 6163 esac 6164 fi 6165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6166 conftest$ac_exeext conftest.$ac_ext ;; 6167 esac 6168 fi 6169 6170 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172 6173 eval supported=\$$cacheid 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6175 printf "%s\n" "$supported" >&6; } 6176 if test "$supported" = "yes" ; then 6177 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6178 found="yes" 6179 fi 6180 fi 6181 6182 if test $found = "no" ; then 6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185 fi 6186 6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6189 fi 6190 6191 CFLAGS="$CFLAGS -fd" 6192 6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6194 printf %s "checking if $CC supports -fd... " >&6; } 6195 cacheid=xorg_cv_cc_flag__fd 6196 if eval test \${$cacheid+y} 6197 then : 6198 printf %s "(cached) " >&6 6199 else case e in #( 6200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201 /* end confdefs.h. */ 6202 int i; 6203 int 6204 main (void) 6205 { 6206 6207 ; 6208 return 0; 6209 } 6210 _ACEOF 6211 if ac_fn_c_try_link "$LINENO" 6212 then : 6213 eval $cacheid=yes 6214 else case e in #( 6215 e) eval $cacheid=no ;; 6216 esac 6217 fi 6218 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6219 conftest$ac_exeext conftest.$ac_ext ;; 6220 esac 6221 fi 6222 6223 6224 CFLAGS="$xorg_testset_save_CFLAGS" 6225 6226 eval supported=\$$cacheid 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6228 printf "%s\n" "$supported" >&6; } 6229 if test "$supported" = "yes" ; then 6230 BASE_CFLAGS="$BASE_CFLAGS -fd" 6231 found="yes" 6232 fi 6233 fi 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 xorg_testset_save_CFLAGS="$CFLAGS" 6250 6251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6255 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6256 then : 6257 printf %s "(cached) " >&6 6258 else case e in #( 6259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260 /* end confdefs.h. */ 6261 int i; 6262 _ACEOF 6263 if ac_fn_c_try_compile "$LINENO" 6264 then : 6265 xorg_cv_cc_flag_unknown_warning_option=yes 6266 else case e in #( 6267 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6268 esac 6269 fi 6270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6271 esac 6272 fi 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6276 CFLAGS="$xorg_testset_save_CFLAGS" 6277 fi 6278 6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6282 fi 6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6287 then : 6288 printf %s "(cached) " >&6 6289 else case e in #( 6290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291 /* end confdefs.h. */ 6292 int i; 6293 _ACEOF 6294 if ac_fn_c_try_compile "$LINENO" 6295 then : 6296 xorg_cv_cc_flag_unused_command_line_argument=yes 6297 else case e in #( 6298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6299 esac 6300 fi 6301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6302 esac 6303 fi 6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6307 CFLAGS="$xorg_testset_save_CFLAGS" 6308 fi 6309 6310 found="no" 6311 6312 if test $found = "no" ; then 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 fi 6316 6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 fi 6320 6321 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6322 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6324 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6325 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6326 if eval test \${$cacheid+y} 6327 then : 6328 printf %s "(cached) " >&6 6329 else case e in #( 6330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331 /* end confdefs.h. */ 6332 int i; 6333 int 6334 main (void) 6335 { 6336 6337 ; 6338 return 0; 6339 } 6340 _ACEOF 6341 if ac_fn_c_try_link "$LINENO" 6342 then : 6343 eval $cacheid=yes 6344 else case e in #( 6345 e) eval $cacheid=no ;; 6346 esac 6347 fi 6348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6349 conftest$ac_exeext conftest.$ac_ext ;; 6350 esac 6351 fi 6352 6353 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355 6356 eval supported=\$$cacheid 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6358 printf "%s\n" "$supported" >&6; } 6359 if test "$supported" = "yes" ; then 6360 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6361 found="yes" 6362 fi 6363 fi 6364 6365 6366 6367 6368 6369 # This chunk adds additional warnings that could catch undesired effects. 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 xorg_testset_save_CFLAGS="$CFLAGS" 6384 6385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6388 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6389 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6390 then : 6391 printf %s "(cached) " >&6 6392 else case e in #( 6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394 /* end confdefs.h. */ 6395 int i; 6396 _ACEOF 6397 if ac_fn_c_try_compile "$LINENO" 6398 then : 6399 xorg_cv_cc_flag_unknown_warning_option=yes 6400 else case e in #( 6401 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6402 esac 6403 fi 6404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6405 esac 6406 fi 6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 fi 6412 6413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6416 fi 6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6421 then : 6422 printf %s "(cached) " >&6 6423 else case e in #( 6424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6425 /* end confdefs.h. */ 6426 int i; 6427 _ACEOF 6428 if ac_fn_c_try_compile "$LINENO" 6429 then : 6430 xorg_cv_cc_flag_unused_command_line_argument=yes 6431 else case e in #( 6432 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6433 esac 6434 fi 6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6436 esac 6437 fi 6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442 fi 6443 6444 found="no" 6445 6446 if test $found = "no" ; then 6447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6449 fi 6450 6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6453 fi 6454 6455 CFLAGS="$CFLAGS -Wunused" 6456 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6458 printf %s "checking if $CC supports -Wunused... " >&6; } 6459 cacheid=xorg_cv_cc_flag__Wunused 6460 if eval test \${$cacheid+y} 6461 then : 6462 printf %s "(cached) " >&6 6463 else case e in #( 6464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465 /* end confdefs.h. */ 6466 int i; 6467 int 6468 main (void) 6469 { 6470 6471 ; 6472 return 0; 6473 } 6474 _ACEOF 6475 if ac_fn_c_try_link "$LINENO" 6476 then : 6477 eval $cacheid=yes 6478 else case e in #( 6479 e) eval $cacheid=no ;; 6480 esac 6481 fi 6482 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6483 conftest$ac_exeext conftest.$ac_ext ;; 6484 esac 6485 fi 6486 6487 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 6490 eval supported=\$$cacheid 6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6492 printf "%s\n" "$supported" >&6; } 6493 if test "$supported" = "yes" ; then 6494 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6495 found="yes" 6496 fi 6497 fi 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 xorg_testset_save_CFLAGS="$CFLAGS" 6514 6515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6519 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6520 then : 6521 printf %s "(cached) " >&6 6522 else case e in #( 6523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524 /* end confdefs.h. */ 6525 int i; 6526 _ACEOF 6527 if ac_fn_c_try_compile "$LINENO" 6528 then : 6529 xorg_cv_cc_flag_unknown_warning_option=yes 6530 else case e in #( 6531 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6532 esac 6533 fi 6534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6535 esac 6536 fi 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6538 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6540 CFLAGS="$xorg_testset_save_CFLAGS" 6541 fi 6542 6543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6546 fi 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6549 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6550 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6551 then : 6552 printf %s "(cached) " >&6 6553 else case e in #( 6554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555 /* end confdefs.h. */ 6556 int i; 6557 _ACEOF 6558 if ac_fn_c_try_compile "$LINENO" 6559 then : 6560 xorg_cv_cc_flag_unused_command_line_argument=yes 6561 else case e in #( 6562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6563 esac 6564 fi 6565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6566 esac 6567 fi 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6569 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572 fi 6573 6574 found="no" 6575 6576 if test $found = "no" ; then 6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 fi 6580 6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6583 fi 6584 6585 CFLAGS="$CFLAGS -Wuninitialized" 6586 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6588 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6589 cacheid=xorg_cv_cc_flag__Wuninitialized 6590 if eval test \${$cacheid+y} 6591 then : 6592 printf %s "(cached) " >&6 6593 else case e in #( 6594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595 /* end confdefs.h. */ 6596 int i; 6597 int 6598 main (void) 6599 { 6600 6601 ; 6602 return 0; 6603 } 6604 _ACEOF 6605 if ac_fn_c_try_link "$LINENO" 6606 then : 6607 eval $cacheid=yes 6608 else case e in #( 6609 e) eval $cacheid=no ;; 6610 esac 6611 fi 6612 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6613 conftest$ac_exeext conftest.$ac_ext ;; 6614 esac 6615 fi 6616 6617 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619 6620 eval supported=\$$cacheid 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6622 printf "%s\n" "$supported" >&6; } 6623 if test "$supported" = "yes" ; then 6624 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6625 found="yes" 6626 fi 6627 fi 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 xorg_testset_save_CFLAGS="$CFLAGS" 6644 6645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6649 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6650 then : 6651 printf %s "(cached) " >&6 6652 else case e in #( 6653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654 /* end confdefs.h. */ 6655 int i; 6656 _ACEOF 6657 if ac_fn_c_try_compile "$LINENO" 6658 then : 6659 xorg_cv_cc_flag_unknown_warning_option=yes 6660 else case e in #( 6661 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6662 esac 6663 fi 6664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6665 esac 6666 fi 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671 fi 6672 6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 fi 6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6681 then : 6682 printf %s "(cached) " >&6 6683 else case e in #( 6684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685 /* end confdefs.h. */ 6686 int i; 6687 _ACEOF 6688 if ac_fn_c_try_compile "$LINENO" 6689 then : 6690 xorg_cv_cc_flag_unused_command_line_argument=yes 6691 else case e in #( 6692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6693 esac 6694 fi 6695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6696 esac 6697 fi 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6701 CFLAGS="$xorg_testset_save_CFLAGS" 6702 fi 6703 6704 found="no" 6705 6706 if test $found = "no" ; then 6707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6709 fi 6710 6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6713 fi 6714 6715 CFLAGS="$CFLAGS -Wshadow" 6716 6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6718 printf %s "checking if $CC supports -Wshadow... " >&6; } 6719 cacheid=xorg_cv_cc_flag__Wshadow 6720 if eval test \${$cacheid+y} 6721 then : 6722 printf %s "(cached) " >&6 6723 else case e in #( 6724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725 /* end confdefs.h. */ 6726 int i; 6727 int 6728 main (void) 6729 { 6730 6731 ; 6732 return 0; 6733 } 6734 _ACEOF 6735 if ac_fn_c_try_link "$LINENO" 6736 then : 6737 eval $cacheid=yes 6738 else case e in #( 6739 e) eval $cacheid=no ;; 6740 esac 6741 fi 6742 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6743 conftest$ac_exeext conftest.$ac_ext ;; 6744 esac 6745 fi 6746 6747 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 6750 eval supported=\$$cacheid 6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6752 printf "%s\n" "$supported" >&6; } 6753 if test "$supported" = "yes" ; then 6754 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6755 found="yes" 6756 fi 6757 fi 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 xorg_testset_save_CFLAGS="$CFLAGS" 6774 6775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6779 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6780 then : 6781 printf %s "(cached) " >&6 6782 else case e in #( 6783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784 /* end confdefs.h. */ 6785 int i; 6786 _ACEOF 6787 if ac_fn_c_try_compile "$LINENO" 6788 then : 6789 xorg_cv_cc_flag_unknown_warning_option=yes 6790 else case e in #( 6791 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6792 esac 6793 fi 6794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6795 esac 6796 fi 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6798 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801 fi 6802 6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 fi 6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6809 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6810 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6811 then : 6812 printf %s "(cached) " >&6 6813 else case e in #( 6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815 /* end confdefs.h. */ 6816 int i; 6817 _ACEOF 6818 if ac_fn_c_try_compile "$LINENO" 6819 then : 6820 xorg_cv_cc_flag_unused_command_line_argument=yes 6821 else case e in #( 6822 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6823 esac 6824 fi 6825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6826 esac 6827 fi 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6831 CFLAGS="$xorg_testset_save_CFLAGS" 6832 fi 6833 6834 found="no" 6835 6836 if test $found = "no" ; then 6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 fi 6840 6841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6843 fi 6844 6845 CFLAGS="$CFLAGS -Wmissing-noreturn" 6846 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6848 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6849 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6850 if eval test \${$cacheid+y} 6851 then : 6852 printf %s "(cached) " >&6 6853 else case e in #( 6854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855 /* end confdefs.h. */ 6856 int i; 6857 int 6858 main (void) 6859 { 6860 6861 ; 6862 return 0; 6863 } 6864 _ACEOF 6865 if ac_fn_c_try_link "$LINENO" 6866 then : 6867 eval $cacheid=yes 6868 else case e in #( 6869 e) eval $cacheid=no ;; 6870 esac 6871 fi 6872 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6873 conftest$ac_exeext conftest.$ac_ext ;; 6874 esac 6875 fi 6876 6877 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879 6880 eval supported=\$$cacheid 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6882 printf "%s\n" "$supported" >&6; } 6883 if test "$supported" = "yes" ; then 6884 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6885 found="yes" 6886 fi 6887 fi 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 xorg_testset_save_CFLAGS="$CFLAGS" 6904 6905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6909 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6910 then : 6911 printf %s "(cached) " >&6 6912 else case e in #( 6913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914 /* end confdefs.h. */ 6915 int i; 6916 _ACEOF 6917 if ac_fn_c_try_compile "$LINENO" 6918 then : 6919 xorg_cv_cc_flag_unknown_warning_option=yes 6920 else case e in #( 6921 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6922 esac 6923 fi 6924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6925 esac 6926 fi 6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931 fi 6932 6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6941 then : 6942 printf %s "(cached) " >&6 6943 else case e in #( 6944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945 /* end confdefs.h. */ 6946 int i; 6947 _ACEOF 6948 if ac_fn_c_try_compile "$LINENO" 6949 then : 6950 xorg_cv_cc_flag_unused_command_line_argument=yes 6951 else case e in #( 6952 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6953 esac 6954 fi 6955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6956 esac 6957 fi 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962 fi 6963 6964 found="no" 6965 6966 if test $found = "no" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 fi 6974 6975 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6976 6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6978 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6979 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6980 if eval test \${$cacheid+y} 6981 then : 6982 printf %s "(cached) " >&6 6983 else case e in #( 6984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985 /* end confdefs.h. */ 6986 int i; 6987 int 6988 main (void) 6989 { 6990 6991 ; 6992 return 0; 6993 } 6994 _ACEOF 6995 if ac_fn_c_try_link "$LINENO" 6996 then : 6997 eval $cacheid=yes 6998 else case e in #( 6999 e) eval $cacheid=no ;; 7000 esac 7001 fi 7002 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7003 conftest$ac_exeext conftest.$ac_ext ;; 7004 esac 7005 fi 7006 7007 7008 CFLAGS="$xorg_testset_save_CFLAGS" 7009 7010 eval supported=\$$cacheid 7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7012 printf "%s\n" "$supported" >&6; } 7013 if test "$supported" = "yes" ; then 7014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7015 found="yes" 7016 fi 7017 fi 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 xorg_testset_save_CFLAGS="$CFLAGS" 7034 7035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7039 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7040 then : 7041 printf %s "(cached) " >&6 7042 else case e in #( 7043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044 /* end confdefs.h. */ 7045 int i; 7046 _ACEOF 7047 if ac_fn_c_try_compile "$LINENO" 7048 then : 7049 xorg_cv_cc_flag_unknown_warning_option=yes 7050 else case e in #( 7051 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7052 esac 7053 fi 7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7055 esac 7056 fi 7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7060 CFLAGS="$xorg_testset_save_CFLAGS" 7061 fi 7062 7063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 fi 7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7071 then : 7072 printf %s "(cached) " >&6 7073 else case e in #( 7074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075 /* end confdefs.h. */ 7076 int i; 7077 _ACEOF 7078 if ac_fn_c_try_compile "$LINENO" 7079 then : 7080 xorg_cv_cc_flag_unused_command_line_argument=yes 7081 else case e in #( 7082 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7083 esac 7084 fi 7085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7086 esac 7087 fi 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092 fi 7093 7094 found="no" 7095 7096 if test $found = "no" ; then 7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 fi 7100 7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7103 fi 7104 7105 CFLAGS="$CFLAGS -Wredundant-decls" 7106 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7108 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7109 cacheid=xorg_cv_cc_flag__Wredundant_decls 7110 if eval test \${$cacheid+y} 7111 then : 7112 printf %s "(cached) " >&6 7113 else case e in #( 7114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115 /* end confdefs.h. */ 7116 int i; 7117 int 7118 main (void) 7119 { 7120 7121 ; 7122 return 0; 7123 } 7124 _ACEOF 7125 if ac_fn_c_try_link "$LINENO" 7126 then : 7127 eval $cacheid=yes 7128 else case e in #( 7129 e) eval $cacheid=no ;; 7130 esac 7131 fi 7132 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7133 conftest$ac_exeext conftest.$ac_ext ;; 7134 esac 7135 fi 7136 7137 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139 7140 eval supported=\$$cacheid 7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7142 printf "%s\n" "$supported" >&6; } 7143 if test "$supported" = "yes" ; then 7144 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7145 found="yes" 7146 fi 7147 fi 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 xorg_testset_save_CFLAGS="$CFLAGS" 7164 7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7169 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7170 then : 7171 printf %s "(cached) " >&6 7172 else case e in #( 7173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174 /* end confdefs.h. */ 7175 int i; 7176 _ACEOF 7177 if ac_fn_c_try_compile "$LINENO" 7178 then : 7179 xorg_cv_cc_flag_unknown_warning_option=yes 7180 else case e in #( 7181 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7182 esac 7183 fi 7184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7185 esac 7186 fi 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191 fi 7192 7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7201 then : 7202 printf %s "(cached) " >&6 7203 else case e in #( 7204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205 /* end confdefs.h. */ 7206 int i; 7207 _ACEOF 7208 if ac_fn_c_try_compile "$LINENO" 7209 then : 7210 xorg_cv_cc_flag_unused_command_line_argument=yes 7211 else case e in #( 7212 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7213 esac 7214 fi 7215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7216 esac 7217 fi 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7219 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222 fi 7223 7224 found="no" 7225 7226 if test $found = "no" ; then 7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 fi 7230 7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 fi 7234 7235 CFLAGS="$CFLAGS -Wlogical-op" 7236 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7238 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7239 cacheid=xorg_cv_cc_flag__Wlogical_op 7240 if eval test \${$cacheid+y} 7241 then : 7242 printf %s "(cached) " >&6 7243 else case e in #( 7244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245 /* end confdefs.h. */ 7246 int i; 7247 int 7248 main (void) 7249 { 7250 7251 ; 7252 return 0; 7253 } 7254 _ACEOF 7255 if ac_fn_c_try_link "$LINENO" 7256 then : 7257 eval $cacheid=yes 7258 else case e in #( 7259 e) eval $cacheid=no ;; 7260 esac 7261 fi 7262 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7263 conftest$ac_exeext conftest.$ac_ext ;; 7264 esac 7265 fi 7266 7267 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7269 7270 eval supported=\$$cacheid 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7272 printf "%s\n" "$supported" >&6; } 7273 if test "$supported" = "yes" ; then 7274 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7275 found="yes" 7276 fi 7277 fi 7278 7279 7280 7281 # These are currently disabled because they are noisy. They will be enabled 7282 # in the future once the codebase is sufficiently modernized to silence 7283 # them. For now, I don't want them to drown out the other warnings. 7284 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7285 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7286 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7287 7288 # Turn some warnings into errors, so we don't accidentally get successful builds 7289 # when there are problems that should be fixed. 7290 7291 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7312 then : 7313 printf %s "(cached) " >&6 7314 else case e in #( 7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316 /* end confdefs.h. */ 7317 int i; 7318 _ACEOF 7319 if ac_fn_c_try_compile "$LINENO" 7320 then : 7321 xorg_cv_cc_flag_unknown_warning_option=yes 7322 else case e in #( 7323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7324 esac 7325 fi 7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7327 esac 7328 fi 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333 fi 7334 7335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7338 fi 7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7343 then : 7344 printf %s "(cached) " >&6 7345 else case e in #( 7346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347 /* end confdefs.h. */ 7348 int i; 7349 _ACEOF 7350 if ac_fn_c_try_compile "$LINENO" 7351 then : 7352 xorg_cv_cc_flag_unused_command_line_argument=yes 7353 else case e in #( 7354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7355 esac 7356 fi 7357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7358 esac 7359 fi 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364 fi 7365 7366 found="no" 7367 7368 if test $found = "no" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7375 fi 7376 7377 CFLAGS="$CFLAGS -Werror=implicit" 7378 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7380 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7381 cacheid=xorg_cv_cc_flag__Werror_implicit 7382 if eval test \${$cacheid+y} 7383 then : 7384 printf %s "(cached) " >&6 7385 else case e in #( 7386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387 /* end confdefs.h. */ 7388 int i; 7389 int 7390 main (void) 7391 { 7392 7393 ; 7394 return 0; 7395 } 7396 _ACEOF 7397 if ac_fn_c_try_link "$LINENO" 7398 then : 7399 eval $cacheid=yes 7400 else case e in #( 7401 e) eval $cacheid=no ;; 7402 esac 7403 fi 7404 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7405 conftest$ac_exeext conftest.$ac_ext ;; 7406 esac 7407 fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414 printf "%s\n" "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7417 found="yes" 7418 fi 7419 fi 7420 7421 if test $found = "no" ; then 7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 fi 7425 7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7428 fi 7429 7430 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7431 7432 { 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 7433 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7434 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7435 if eval test \${$cacheid+y} 7436 then : 7437 printf %s "(cached) " >&6 7438 else case e in #( 7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440 /* end confdefs.h. */ 7441 int i; 7442 int 7443 main (void) 7444 { 7445 7446 ; 7447 return 0; 7448 } 7449 _ACEOF 7450 if ac_fn_c_try_link "$LINENO" 7451 then : 7452 eval $cacheid=yes 7453 else case e in #( 7454 e) eval $cacheid=no ;; 7455 esac 7456 fi 7457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7458 conftest$ac_exeext conftest.$ac_ext ;; 7459 esac 7460 fi 7461 7462 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464 7465 eval supported=\$$cacheid 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7467 printf "%s\n" "$supported" >&6; } 7468 if test "$supported" = "yes" ; then 7469 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7470 found="yes" 7471 fi 7472 fi 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 xorg_testset_save_CFLAGS="$CFLAGS" 7489 7490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7494 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7495 then : 7496 printf %s "(cached) " >&6 7497 else case e in #( 7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499 /* end confdefs.h. */ 7500 int i; 7501 _ACEOF 7502 if ac_fn_c_try_compile "$LINENO" 7503 then : 7504 xorg_cv_cc_flag_unknown_warning_option=yes 7505 else case e in #( 7506 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7507 esac 7508 fi 7509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7510 esac 7511 fi 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 fi 7517 7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7526 then : 7527 printf %s "(cached) " >&6 7528 else case e in #( 7529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530 /* end confdefs.h. */ 7531 int i; 7532 _ACEOF 7533 if ac_fn_c_try_compile "$LINENO" 7534 then : 7535 xorg_cv_cc_flag_unused_command_line_argument=yes 7536 else case e in #( 7537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7538 esac 7539 fi 7540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7541 esac 7542 fi 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7546 CFLAGS="$xorg_testset_save_CFLAGS" 7547 fi 7548 7549 found="no" 7550 7551 if test $found = "no" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 7556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7558 fi 7559 7560 CFLAGS="$CFLAGS -Werror=nonnull" 7561 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7563 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7564 cacheid=xorg_cv_cc_flag__Werror_nonnull 7565 if eval test \${$cacheid+y} 7566 then : 7567 printf %s "(cached) " >&6 7568 else case e in #( 7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570 /* end confdefs.h. */ 7571 int i; 7572 int 7573 main (void) 7574 { 7575 7576 ; 7577 return 0; 7578 } 7579 _ACEOF 7580 if ac_fn_c_try_link "$LINENO" 7581 then : 7582 eval $cacheid=yes 7583 else case e in #( 7584 e) eval $cacheid=no ;; 7585 esac 7586 fi 7587 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7588 conftest$ac_exeext conftest.$ac_ext ;; 7589 esac 7590 fi 7591 7592 7593 CFLAGS="$xorg_testset_save_CFLAGS" 7594 7595 eval supported=\$$cacheid 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7597 printf "%s\n" "$supported" >&6; } 7598 if test "$supported" = "yes" ; then 7599 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7600 found="yes" 7601 fi 7602 fi 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 xorg_testset_save_CFLAGS="$CFLAGS" 7619 7620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7624 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7625 then : 7626 printf %s "(cached) " >&6 7627 else case e in #( 7628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629 /* end confdefs.h. */ 7630 int i; 7631 _ACEOF 7632 if ac_fn_c_try_compile "$LINENO" 7633 then : 7634 xorg_cv_cc_flag_unknown_warning_option=yes 7635 else case e in #( 7636 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7637 esac 7638 fi 7639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7640 esac 7641 fi 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7645 CFLAGS="$xorg_testset_save_CFLAGS" 7646 fi 7647 7648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 fi 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7656 then : 7657 printf %s "(cached) " >&6 7658 else case e in #( 7659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660 /* end confdefs.h. */ 7661 int i; 7662 _ACEOF 7663 if ac_fn_c_try_compile "$LINENO" 7664 then : 7665 xorg_cv_cc_flag_unused_command_line_argument=yes 7666 else case e in #( 7667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7668 esac 7669 fi 7670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7671 esac 7672 fi 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677 fi 7678 7679 found="no" 7680 7681 if test $found = "no" ; then 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 fi 7685 7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 fi 7689 7690 CFLAGS="$CFLAGS -Werror=init-self" 7691 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7693 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7694 cacheid=xorg_cv_cc_flag__Werror_init_self 7695 if eval test \${$cacheid+y} 7696 then : 7697 printf %s "(cached) " >&6 7698 else case e in #( 7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700 /* end confdefs.h. */ 7701 int i; 7702 int 7703 main (void) 7704 { 7705 7706 ; 7707 return 0; 7708 } 7709 _ACEOF 7710 if ac_fn_c_try_link "$LINENO" 7711 then : 7712 eval $cacheid=yes 7713 else case e in #( 7714 e) eval $cacheid=no ;; 7715 esac 7716 fi 7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7718 conftest$ac_exeext conftest.$ac_ext ;; 7719 esac 7720 fi 7721 7722 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724 7725 eval supported=\$$cacheid 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7727 printf "%s\n" "$supported" >&6; } 7728 if test "$supported" = "yes" ; then 7729 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7730 found="yes" 7731 fi 7732 fi 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 xorg_testset_save_CFLAGS="$CFLAGS" 7749 7750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7755 then : 7756 printf %s "(cached) " >&6 7757 else case e in #( 7758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759 /* end confdefs.h. */ 7760 int i; 7761 _ACEOF 7762 if ac_fn_c_try_compile "$LINENO" 7763 then : 7764 xorg_cv_cc_flag_unknown_warning_option=yes 7765 else case e in #( 7766 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7767 esac 7768 fi 7769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7770 esac 7771 fi 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776 fi 7777 7778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 fi 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7786 then : 7787 printf %s "(cached) " >&6 7788 else case e in #( 7789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790 /* end confdefs.h. */ 7791 int i; 7792 _ACEOF 7793 if ac_fn_c_try_compile "$LINENO" 7794 then : 7795 xorg_cv_cc_flag_unused_command_line_argument=yes 7796 else case e in #( 7797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7798 esac 7799 fi 7800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7801 esac 7802 fi 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7806 CFLAGS="$xorg_testset_save_CFLAGS" 7807 fi 7808 7809 found="no" 7810 7811 if test $found = "no" ; then 7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 fi 7815 7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 fi 7819 7820 CFLAGS="$CFLAGS -Werror=main" 7821 7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7823 printf %s "checking if $CC supports -Werror=main... " >&6; } 7824 cacheid=xorg_cv_cc_flag__Werror_main 7825 if eval test \${$cacheid+y} 7826 then : 7827 printf %s "(cached) " >&6 7828 else case e in #( 7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830 /* end confdefs.h. */ 7831 int i; 7832 int 7833 main (void) 7834 { 7835 7836 ; 7837 return 0; 7838 } 7839 _ACEOF 7840 if ac_fn_c_try_link "$LINENO" 7841 then : 7842 eval $cacheid=yes 7843 else case e in #( 7844 e) eval $cacheid=no ;; 7845 esac 7846 fi 7847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7848 conftest$ac_exeext conftest.$ac_ext ;; 7849 esac 7850 fi 7851 7852 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854 7855 eval supported=\$$cacheid 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7857 printf "%s\n" "$supported" >&6; } 7858 if test "$supported" = "yes" ; then 7859 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7860 found="yes" 7861 fi 7862 fi 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 xorg_testset_save_CFLAGS="$CFLAGS" 7879 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7884 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7885 then : 7886 printf %s "(cached) " >&6 7887 else case e in #( 7888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889 /* end confdefs.h. */ 7890 int i; 7891 _ACEOF 7892 if ac_fn_c_try_compile "$LINENO" 7893 then : 7894 xorg_cv_cc_flag_unknown_warning_option=yes 7895 else case e in #( 7896 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7897 esac 7898 fi 7899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7900 esac 7901 fi 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906 fi 7907 7908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7911 fi 7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7916 then : 7917 printf %s "(cached) " >&6 7918 else case e in #( 7919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920 /* end confdefs.h. */ 7921 int i; 7922 _ACEOF 7923 if ac_fn_c_try_compile "$LINENO" 7924 then : 7925 xorg_cv_cc_flag_unused_command_line_argument=yes 7926 else case e in #( 7927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7928 esac 7929 fi 7930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7931 esac 7932 fi 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937 fi 7938 7939 found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=missing-braces" 7951 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7953 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7954 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7955 if eval test \${$cacheid+y} 7956 then : 7957 printf %s "(cached) " >&6 7958 else case e in #( 7959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960 /* end confdefs.h. */ 7961 int i; 7962 int 7963 main (void) 7964 { 7965 7966 ; 7967 return 0; 7968 } 7969 _ACEOF 7970 if ac_fn_c_try_link "$LINENO" 7971 then : 7972 eval $cacheid=yes 7973 else case e in #( 7974 e) eval $cacheid=no ;; 7975 esac 7976 fi 7977 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7978 conftest$ac_exeext conftest.$ac_ext ;; 7979 esac 7980 fi 7981 7982 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984 7985 eval supported=\$$cacheid 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7987 printf "%s\n" "$supported" >&6; } 7988 if test "$supported" = "yes" ; then 7989 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7990 found="yes" 7991 fi 7992 fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 xorg_testset_save_CFLAGS="$CFLAGS" 8009 8010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8015 then : 8016 printf %s "(cached) " >&6 8017 else case e in #( 8018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019 /* end confdefs.h. */ 8020 int i; 8021 _ACEOF 8022 if ac_fn_c_try_compile "$LINENO" 8023 then : 8024 xorg_cv_cc_flag_unknown_warning_option=yes 8025 else case e in #( 8026 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8027 esac 8028 fi 8029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8030 esac 8031 fi 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036 fi 8037 8038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 fi 8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8046 then : 8047 printf %s "(cached) " >&6 8048 else case e in #( 8049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050 /* end confdefs.h. */ 8051 int i; 8052 _ACEOF 8053 if ac_fn_c_try_compile "$LINENO" 8054 then : 8055 xorg_cv_cc_flag_unused_command_line_argument=yes 8056 else case e in #( 8057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8058 esac 8059 fi 8060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8061 esac 8062 fi 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067 fi 8068 8069 found="no" 8070 8071 if test $found = "no" ; then 8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8074 fi 8075 8076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8078 fi 8079 8080 CFLAGS="$CFLAGS -Werror=sequence-point" 8081 8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8083 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8084 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8085 if eval test \${$cacheid+y} 8086 then : 8087 printf %s "(cached) " >&6 8088 else case e in #( 8089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090 /* end confdefs.h. */ 8091 int i; 8092 int 8093 main (void) 8094 { 8095 8096 ; 8097 return 0; 8098 } 8099 _ACEOF 8100 if ac_fn_c_try_link "$LINENO" 8101 then : 8102 eval $cacheid=yes 8103 else case e in #( 8104 e) eval $cacheid=no ;; 8105 esac 8106 fi 8107 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8108 conftest$ac_exeext conftest.$ac_ext ;; 8109 esac 8110 fi 8111 8112 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 8115 eval supported=\$$cacheid 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8117 printf "%s\n" "$supported" >&6; } 8118 if test "$supported" = "yes" ; then 8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8120 found="yes" 8121 fi 8122 fi 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 xorg_testset_save_CFLAGS="$CFLAGS" 8139 8140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8144 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8145 then : 8146 printf %s "(cached) " >&6 8147 else case e in #( 8148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149 /* end confdefs.h. */ 8150 int i; 8151 _ACEOF 8152 if ac_fn_c_try_compile "$LINENO" 8153 then : 8154 xorg_cv_cc_flag_unknown_warning_option=yes 8155 else case e in #( 8156 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8157 esac 8158 fi 8159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8160 esac 8161 fi 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8165 CFLAGS="$xorg_testset_save_CFLAGS" 8166 fi 8167 8168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8171 fi 8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8176 then : 8177 printf %s "(cached) " >&6 8178 else case e in #( 8179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180 /* end confdefs.h. */ 8181 int i; 8182 _ACEOF 8183 if ac_fn_c_try_compile "$LINENO" 8184 then : 8185 xorg_cv_cc_flag_unused_command_line_argument=yes 8186 else case e in #( 8187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8188 esac 8189 fi 8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8191 esac 8192 fi 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197 fi 8198 8199 found="no" 8200 8201 if test $found = "no" ; then 8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 fi 8205 8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8208 fi 8209 8210 CFLAGS="$CFLAGS -Werror=return-type" 8211 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8213 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8214 cacheid=xorg_cv_cc_flag__Werror_return_type 8215 if eval test \${$cacheid+y} 8216 then : 8217 printf %s "(cached) " >&6 8218 else case e in #( 8219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220 /* end confdefs.h. */ 8221 int i; 8222 int 8223 main (void) 8224 { 8225 8226 ; 8227 return 0; 8228 } 8229 _ACEOF 8230 if ac_fn_c_try_link "$LINENO" 8231 then : 8232 eval $cacheid=yes 8233 else case e in #( 8234 e) eval $cacheid=no ;; 8235 esac 8236 fi 8237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8238 conftest$ac_exeext conftest.$ac_ext ;; 8239 esac 8240 fi 8241 8242 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244 8245 eval supported=\$$cacheid 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8247 printf "%s\n" "$supported" >&6; } 8248 if test "$supported" = "yes" ; then 8249 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8250 found="yes" 8251 fi 8252 fi 8253 8254 if test $found = "no" ; then 8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 fi 8258 8259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 fi 8262 8263 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8264 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8266 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8267 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8268 if eval test \${$cacheid+y} 8269 then : 8270 printf %s "(cached) " >&6 8271 else case e in #( 8272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273 /* end confdefs.h. */ 8274 int i; 8275 int 8276 main (void) 8277 { 8278 8279 ; 8280 return 0; 8281 } 8282 _ACEOF 8283 if ac_fn_c_try_link "$LINENO" 8284 then : 8285 eval $cacheid=yes 8286 else case e in #( 8287 e) eval $cacheid=no ;; 8288 esac 8289 fi 8290 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8291 conftest$ac_exeext conftest.$ac_ext ;; 8292 esac 8293 fi 8294 8295 8296 CFLAGS="$xorg_testset_save_CFLAGS" 8297 8298 eval supported=\$$cacheid 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8300 printf "%s\n" "$supported" >&6; } 8301 if test "$supported" = "yes" ; then 8302 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8303 found="yes" 8304 fi 8305 fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 xorg_testset_save_CFLAGS="$CFLAGS" 8322 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8326 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8327 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8328 then : 8329 printf %s "(cached) " >&6 8330 else case e in #( 8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332 /* end confdefs.h. */ 8333 int i; 8334 _ACEOF 8335 if ac_fn_c_try_compile "$LINENO" 8336 then : 8337 xorg_cv_cc_flag_unknown_warning_option=yes 8338 else case e in #( 8339 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8340 esac 8341 fi 8342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8343 esac 8344 fi 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8346 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349 fi 8350 8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8354 fi 8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8359 then : 8360 printf %s "(cached) " >&6 8361 else case e in #( 8362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363 /* end confdefs.h. */ 8364 int i; 8365 _ACEOF 8366 if ac_fn_c_try_compile "$LINENO" 8367 then : 8368 xorg_cv_cc_flag_unused_command_line_argument=yes 8369 else case e in #( 8370 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8371 esac 8372 fi 8373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8374 esac 8375 fi 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8377 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8379 CFLAGS="$xorg_testset_save_CFLAGS" 8380 fi 8381 8382 found="no" 8383 8384 if test $found = "no" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 fi 8392 8393 CFLAGS="$CFLAGS -Werror=trigraphs" 8394 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8396 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8397 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8398 if eval test \${$cacheid+y} 8399 then : 8400 printf %s "(cached) " >&6 8401 else case e in #( 8402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403 /* end confdefs.h. */ 8404 int i; 8405 int 8406 main (void) 8407 { 8408 8409 ; 8410 return 0; 8411 } 8412 _ACEOF 8413 if ac_fn_c_try_link "$LINENO" 8414 then : 8415 eval $cacheid=yes 8416 else case e in #( 8417 e) eval $cacheid=no ;; 8418 esac 8419 fi 8420 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8421 conftest$ac_exeext conftest.$ac_ext ;; 8422 esac 8423 fi 8424 8425 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427 8428 eval supported=\$$cacheid 8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8430 printf "%s\n" "$supported" >&6; } 8431 if test "$supported" = "yes" ; then 8432 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8433 found="yes" 8434 fi 8435 fi 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 xorg_testset_save_CFLAGS="$CFLAGS" 8452 8453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8457 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8458 then : 8459 printf %s "(cached) " >&6 8460 else case e in #( 8461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462 /* end confdefs.h. */ 8463 int i; 8464 _ACEOF 8465 if ac_fn_c_try_compile "$LINENO" 8466 then : 8467 xorg_cv_cc_flag_unknown_warning_option=yes 8468 else case e in #( 8469 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8470 esac 8471 fi 8472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8473 esac 8474 fi 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8476 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8478 CFLAGS="$xorg_testset_save_CFLAGS" 8479 fi 8480 8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 fi 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8489 then : 8490 printf %s "(cached) " >&6 8491 else case e in #( 8492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493 /* end confdefs.h. */ 8494 int i; 8495 _ACEOF 8496 if ac_fn_c_try_compile "$LINENO" 8497 then : 8498 xorg_cv_cc_flag_unused_command_line_argument=yes 8499 else case e in #( 8500 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8501 esac 8502 fi 8503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8504 esac 8505 fi 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510 fi 8511 8512 found="no" 8513 8514 if test $found = "no" ; then 8515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8517 fi 8518 8519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8521 fi 8522 8523 CFLAGS="$CFLAGS -Werror=array-bounds" 8524 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8526 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8527 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8528 if eval test \${$cacheid+y} 8529 then : 8530 printf %s "(cached) " >&6 8531 else case e in #( 8532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533 /* end confdefs.h. */ 8534 int i; 8535 int 8536 main (void) 8537 { 8538 8539 ; 8540 return 0; 8541 } 8542 _ACEOF 8543 if ac_fn_c_try_link "$LINENO" 8544 then : 8545 eval $cacheid=yes 8546 else case e in #( 8547 e) eval $cacheid=no ;; 8548 esac 8549 fi 8550 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8551 conftest$ac_exeext conftest.$ac_ext ;; 8552 esac 8553 fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560 printf "%s\n" "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8588 then : 8589 printf %s "(cached) " >&6 8590 else case e in #( 8591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592 /* end confdefs.h. */ 8593 int i; 8594 _ACEOF 8595 if ac_fn_c_try_compile "$LINENO" 8596 then : 8597 xorg_cv_cc_flag_unknown_warning_option=yes 8598 else case e in #( 8599 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8600 esac 8601 fi 8602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8603 esac 8604 fi 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609 fi 8610 8611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 fi 8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8619 then : 8620 printf %s "(cached) " >&6 8621 else case e in #( 8622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623 /* end confdefs.h. */ 8624 int i; 8625 _ACEOF 8626 if ac_fn_c_try_compile "$LINENO" 8627 then : 8628 xorg_cv_cc_flag_unused_command_line_argument=yes 8629 else case e in #( 8630 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8631 esac 8632 fi 8633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8634 esac 8635 fi 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640 fi 8641 8642 found="no" 8643 8644 if test $found = "no" ; then 8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8647 fi 8648 8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8651 fi 8652 8653 CFLAGS="$CFLAGS -Werror=write-strings" 8654 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8656 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8657 cacheid=xorg_cv_cc_flag__Werror_write_strings 8658 if eval test \${$cacheid+y} 8659 then : 8660 printf %s "(cached) " >&6 8661 else case e in #( 8662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8663 /* end confdefs.h. */ 8664 int i; 8665 int 8666 main (void) 8667 { 8668 8669 ; 8670 return 0; 8671 } 8672 _ACEOF 8673 if ac_fn_c_try_link "$LINENO" 8674 then : 8675 eval $cacheid=yes 8676 else case e in #( 8677 e) eval $cacheid=no ;; 8678 esac 8679 fi 8680 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8681 conftest$ac_exeext conftest.$ac_ext ;; 8682 esac 8683 fi 8684 8685 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 8688 eval supported=\$$cacheid 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8690 printf "%s\n" "$supported" >&6; } 8691 if test "$supported" = "yes" ; then 8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8693 found="yes" 8694 fi 8695 fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 xorg_testset_save_CFLAGS="$CFLAGS" 8712 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8717 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8718 then : 8719 printf %s "(cached) " >&6 8720 else case e in #( 8721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722 /* end confdefs.h. */ 8723 int i; 8724 _ACEOF 8725 if ac_fn_c_try_compile "$LINENO" 8726 then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728 else case e in #( 8729 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8730 esac 8731 fi 8732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8733 esac 8734 fi 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8736 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739 fi 8740 8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8747 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8748 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8749 then : 8750 printf %s "(cached) " >&6 8751 else case e in #( 8752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753 /* end confdefs.h. */ 8754 int i; 8755 _ACEOF 8756 if ac_fn_c_try_compile "$LINENO" 8757 then : 8758 xorg_cv_cc_flag_unused_command_line_argument=yes 8759 else case e in #( 8760 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8761 esac 8762 fi 8763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8764 esac 8765 fi 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8767 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770 fi 8771 8772 found="no" 8773 8774 if test $found = "no" ; then 8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 fi 8778 8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8781 fi 8782 8783 CFLAGS="$CFLAGS -Werror=address" 8784 8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8786 printf %s "checking if $CC supports -Werror=address... " >&6; } 8787 cacheid=xorg_cv_cc_flag__Werror_address 8788 if eval test \${$cacheid+y} 8789 then : 8790 printf %s "(cached) " >&6 8791 else case e in #( 8792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793 /* end confdefs.h. */ 8794 int i; 8795 int 8796 main (void) 8797 { 8798 8799 ; 8800 return 0; 8801 } 8802 _ACEOF 8803 if ac_fn_c_try_link "$LINENO" 8804 then : 8805 eval $cacheid=yes 8806 else case e in #( 8807 e) eval $cacheid=no ;; 8808 esac 8809 fi 8810 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8811 conftest$ac_exeext conftest.$ac_ext ;; 8812 esac 8813 fi 8814 8815 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817 8818 eval supported=\$$cacheid 8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8820 printf "%s\n" "$supported" >&6; } 8821 if test "$supported" = "yes" ; then 8822 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8823 found="yes" 8824 fi 8825 fi 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 xorg_testset_save_CFLAGS="$CFLAGS" 8842 8843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8847 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8848 then : 8849 printf %s "(cached) " >&6 8850 else case e in #( 8851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852 /* end confdefs.h. */ 8853 int i; 8854 _ACEOF 8855 if ac_fn_c_try_compile "$LINENO" 8856 then : 8857 xorg_cv_cc_flag_unknown_warning_option=yes 8858 else case e in #( 8859 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8860 esac 8861 fi 8862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8863 esac 8864 fi 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869 fi 8870 8871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 fi 8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8879 then : 8880 printf %s "(cached) " >&6 8881 else case e in #( 8882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883 /* end confdefs.h. */ 8884 int i; 8885 _ACEOF 8886 if ac_fn_c_try_compile "$LINENO" 8887 then : 8888 xorg_cv_cc_flag_unused_command_line_argument=yes 8889 else case e in #( 8890 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8891 esac 8892 fi 8893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8894 esac 8895 fi 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8897 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900 fi 8901 8902 found="no" 8903 8904 if test $found = "no" ; then 8905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8907 fi 8908 8909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8911 fi 8912 8913 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8914 8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8916 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8917 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8918 if eval test \${$cacheid+y} 8919 then : 8920 printf %s "(cached) " >&6 8921 else case e in #( 8922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923 /* end confdefs.h. */ 8924 int i; 8925 int 8926 main (void) 8927 { 8928 8929 ; 8930 return 0; 8931 } 8932 _ACEOF 8933 if ac_fn_c_try_link "$LINENO" 8934 then : 8935 eval $cacheid=yes 8936 else case e in #( 8937 e) eval $cacheid=no ;; 8938 esac 8939 fi 8940 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8941 conftest$ac_exeext conftest.$ac_ext ;; 8942 esac 8943 fi 8944 8945 8946 CFLAGS="$xorg_testset_save_CFLAGS" 8947 8948 eval supported=\$$cacheid 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8950 printf "%s\n" "$supported" >&6; } 8951 if test "$supported" = "yes" ; then 8952 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8953 found="yes" 8954 fi 8955 fi 8956 8957 if test $found = "no" ; then 8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8960 fi 8961 8962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 fi 8965 8966 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8967 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8969 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8970 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8971 if eval test \${$cacheid+y} 8972 then : 8973 printf %s "(cached) " >&6 8974 else case e in #( 8975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976 /* end confdefs.h. */ 8977 int i; 8978 int 8979 main (void) 8980 { 8981 8982 ; 8983 return 0; 8984 } 8985 _ACEOF 8986 if ac_fn_c_try_link "$LINENO" 8987 then : 8988 eval $cacheid=yes 8989 else case e in #( 8990 e) eval $cacheid=no ;; 8991 esac 8992 fi 8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8994 conftest$ac_exeext conftest.$ac_ext ;; 8995 esac 8996 fi 8997 8998 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000 9001 eval supported=\$$cacheid 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9003 printf "%s\n" "$supported" >&6; } 9004 if test "$supported" = "yes" ; then 9005 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9006 found="yes" 9007 fi 9008 fi 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 xorg_testset_save_CFLAGS="$CFLAGS" 9025 9026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9030 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9031 then : 9032 printf %s "(cached) " >&6 9033 else case e in #( 9034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9035 /* end confdefs.h. */ 9036 int i; 9037 _ACEOF 9038 if ac_fn_c_try_compile "$LINENO" 9039 then : 9040 xorg_cv_cc_flag_unknown_warning_option=yes 9041 else case e in #( 9042 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9043 esac 9044 fi 9045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9046 esac 9047 fi 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052 fi 9053 9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 fi 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9062 then : 9063 printf %s "(cached) " >&6 9064 else case e in #( 9065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9066 /* end confdefs.h. */ 9067 int i; 9068 _ACEOF 9069 if ac_fn_c_try_compile "$LINENO" 9070 then : 9071 xorg_cv_cc_flag_unused_command_line_argument=yes 9072 else case e in #( 9073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9074 esac 9075 fi 9076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9077 esac 9078 fi 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083 fi 9084 9085 found="no" 9086 9087 if test $found = "no" ; then 9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 fi 9091 9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9094 fi 9095 9096 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9097 9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9099 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9100 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9101 if eval test \${$cacheid+y} 9102 then : 9103 printf %s "(cached) " >&6 9104 else case e in #( 9105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106 /* end confdefs.h. */ 9107 int i; 9108 int 9109 main (void) 9110 { 9111 9112 ; 9113 return 0; 9114 } 9115 _ACEOF 9116 if ac_fn_c_try_link "$LINENO" 9117 then : 9118 eval $cacheid=yes 9119 else case e in #( 9120 e) eval $cacheid=no ;; 9121 esac 9122 fi 9123 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9124 conftest$ac_exeext conftest.$ac_ext ;; 9125 esac 9126 fi 9127 9128 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130 9131 eval supported=\$$cacheid 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9133 printf "%s\n" "$supported" >&6; } 9134 if test "$supported" = "yes" ; then 9135 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9136 found="yes" 9137 fi 9138 fi 9139 9140 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9141 else 9142 { 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 9143 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;} 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9164 then : 9165 printf %s "(cached) " >&6 9166 else case e in #( 9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168 /* end confdefs.h. */ 9169 int i; 9170 _ACEOF 9171 if ac_fn_c_try_compile "$LINENO" 9172 then : 9173 xorg_cv_cc_flag_unknown_warning_option=yes 9174 else case e in #( 9175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9176 esac 9177 fi 9178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9179 esac 9180 fi 9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185 fi 9186 9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 fi 9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9195 then : 9196 printf %s "(cached) " >&6 9197 else case e in #( 9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199 /* end confdefs.h. */ 9200 int i; 9201 _ACEOF 9202 if ac_fn_c_try_compile "$LINENO" 9203 then : 9204 xorg_cv_cc_flag_unused_command_line_argument=yes 9205 else case e in #( 9206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9207 esac 9208 fi 9209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9210 esac 9211 fi 9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9215 CFLAGS="$xorg_testset_save_CFLAGS" 9216 fi 9217 9218 found="no" 9219 9220 if test $found = "no" ; then 9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 9225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9227 fi 9228 9229 CFLAGS="$CFLAGS -Wimplicit" 9230 9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9232 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9233 cacheid=xorg_cv_cc_flag__Wimplicit 9234 if eval test \${$cacheid+y} 9235 then : 9236 printf %s "(cached) " >&6 9237 else case e in #( 9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239 /* end confdefs.h. */ 9240 int i; 9241 int 9242 main (void) 9243 { 9244 9245 ; 9246 return 0; 9247 } 9248 _ACEOF 9249 if ac_fn_c_try_link "$LINENO" 9250 then : 9251 eval $cacheid=yes 9252 else case e in #( 9253 e) eval $cacheid=no ;; 9254 esac 9255 fi 9256 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9257 conftest$ac_exeext conftest.$ac_ext ;; 9258 esac 9259 fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266 printf "%s\n" "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9294 then : 9295 printf %s "(cached) " >&6 9296 else case e in #( 9297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298 /* end confdefs.h. */ 9299 int i; 9300 _ACEOF 9301 if ac_fn_c_try_compile "$LINENO" 9302 then : 9303 xorg_cv_cc_flag_unknown_warning_option=yes 9304 else case e in #( 9305 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9306 esac 9307 fi 9308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9309 esac 9310 fi 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315 fi 9316 9317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9320 fi 9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9325 then : 9326 printf %s "(cached) " >&6 9327 else case e in #( 9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329 /* end confdefs.h. */ 9330 int i; 9331 _ACEOF 9332 if ac_fn_c_try_compile "$LINENO" 9333 then : 9334 xorg_cv_cc_flag_unused_command_line_argument=yes 9335 else case e in #( 9336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9337 esac 9338 fi 9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9340 esac 9341 fi 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346 fi 9347 9348 found="no" 9349 9350 if test $found = "no" ; then 9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 fi 9354 9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9357 fi 9358 9359 CFLAGS="$CFLAGS -Wnonnull" 9360 9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9362 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9363 cacheid=xorg_cv_cc_flag__Wnonnull 9364 if eval test \${$cacheid+y} 9365 then : 9366 printf %s "(cached) " >&6 9367 else case e in #( 9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369 /* end confdefs.h. */ 9370 int i; 9371 int 9372 main (void) 9373 { 9374 9375 ; 9376 return 0; 9377 } 9378 _ACEOF 9379 if ac_fn_c_try_link "$LINENO" 9380 then : 9381 eval $cacheid=yes 9382 else case e in #( 9383 e) eval $cacheid=no ;; 9384 esac 9385 fi 9386 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9387 conftest$ac_exeext conftest.$ac_ext ;; 9388 esac 9389 fi 9390 9391 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393 9394 eval supported=\$$cacheid 9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9396 printf "%s\n" "$supported" >&6; } 9397 if test "$supported" = "yes" ; then 9398 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9399 found="yes" 9400 fi 9401 fi 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 xorg_testset_save_CFLAGS="$CFLAGS" 9418 9419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9422 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9423 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9424 then : 9425 printf %s "(cached) " >&6 9426 else case e in #( 9427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428 /* end confdefs.h. */ 9429 int i; 9430 _ACEOF 9431 if ac_fn_c_try_compile "$LINENO" 9432 then : 9433 xorg_cv_cc_flag_unknown_warning_option=yes 9434 else case e in #( 9435 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9436 esac 9437 fi 9438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9439 esac 9440 fi 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445 fi 9446 9447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9455 then : 9456 printf %s "(cached) " >&6 9457 else case e in #( 9458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459 /* end confdefs.h. */ 9460 int i; 9461 _ACEOF 9462 if ac_fn_c_try_compile "$LINENO" 9463 then : 9464 xorg_cv_cc_flag_unused_command_line_argument=yes 9465 else case e in #( 9466 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9467 esac 9468 fi 9469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9470 esac 9471 fi 9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476 fi 9477 9478 found="no" 9479 9480 if test $found = "no" ; then 9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9483 fi 9484 9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9487 fi 9488 9489 CFLAGS="$CFLAGS -Winit-self" 9490 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9492 printf %s "checking if $CC supports -Winit-self... " >&6; } 9493 cacheid=xorg_cv_cc_flag__Winit_self 9494 if eval test \${$cacheid+y} 9495 then : 9496 printf %s "(cached) " >&6 9497 else case e in #( 9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499 /* end confdefs.h. */ 9500 int i; 9501 int 9502 main (void) 9503 { 9504 9505 ; 9506 return 0; 9507 } 9508 _ACEOF 9509 if ac_fn_c_try_link "$LINENO" 9510 then : 9511 eval $cacheid=yes 9512 else case e in #( 9513 e) eval $cacheid=no ;; 9514 esac 9515 fi 9516 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9517 conftest$ac_exeext conftest.$ac_ext ;; 9518 esac 9519 fi 9520 9521 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523 9524 eval supported=\$$cacheid 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9526 printf "%s\n" "$supported" >&6; } 9527 if test "$supported" = "yes" ; then 9528 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9529 found="yes" 9530 fi 9531 fi 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 xorg_testset_save_CFLAGS="$CFLAGS" 9548 9549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9553 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9554 then : 9555 printf %s "(cached) " >&6 9556 else case e in #( 9557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558 /* end confdefs.h. */ 9559 int i; 9560 _ACEOF 9561 if ac_fn_c_try_compile "$LINENO" 9562 then : 9563 xorg_cv_cc_flag_unknown_warning_option=yes 9564 else case e in #( 9565 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9566 esac 9567 fi 9568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9569 esac 9570 fi 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9572 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575 fi 9576 9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9580 fi 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9583 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9584 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9585 then : 9586 printf %s "(cached) " >&6 9587 else case e in #( 9588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589 /* end confdefs.h. */ 9590 int i; 9591 _ACEOF 9592 if ac_fn_c_try_compile "$LINENO" 9593 then : 9594 xorg_cv_cc_flag_unused_command_line_argument=yes 9595 else case e in #( 9596 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9597 esac 9598 fi 9599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9600 esac 9601 fi 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9603 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9605 CFLAGS="$xorg_testset_save_CFLAGS" 9606 fi 9607 9608 found="no" 9609 9610 if test $found = "no" ; then 9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9613 fi 9614 9615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9617 fi 9618 9619 CFLAGS="$CFLAGS -Wmain" 9620 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9622 printf %s "checking if $CC supports -Wmain... " >&6; } 9623 cacheid=xorg_cv_cc_flag__Wmain 9624 if eval test \${$cacheid+y} 9625 then : 9626 printf %s "(cached) " >&6 9627 else case e in #( 9628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629 /* end confdefs.h. */ 9630 int i; 9631 int 9632 main (void) 9633 { 9634 9635 ; 9636 return 0; 9637 } 9638 _ACEOF 9639 if ac_fn_c_try_link "$LINENO" 9640 then : 9641 eval $cacheid=yes 9642 else case e in #( 9643 e) eval $cacheid=no ;; 9644 esac 9645 fi 9646 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9647 conftest$ac_exeext conftest.$ac_ext ;; 9648 esac 9649 fi 9650 9651 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653 9654 eval supported=\$$cacheid 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9656 printf "%s\n" "$supported" >&6; } 9657 if test "$supported" = "yes" ; then 9658 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9659 found="yes" 9660 fi 9661 fi 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 xorg_testset_save_CFLAGS="$CFLAGS" 9678 9679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9683 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9684 then : 9685 printf %s "(cached) " >&6 9686 else case e in #( 9687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688 /* end confdefs.h. */ 9689 int i; 9690 _ACEOF 9691 if ac_fn_c_try_compile "$LINENO" 9692 then : 9693 xorg_cv_cc_flag_unknown_warning_option=yes 9694 else case e in #( 9695 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9696 esac 9697 fi 9698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9699 esac 9700 fi 9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9702 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705 fi 9706 9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 fi 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9713 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9714 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9715 then : 9716 printf %s "(cached) " >&6 9717 else case e in #( 9718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719 /* end confdefs.h. */ 9720 int i; 9721 _ACEOF 9722 if ac_fn_c_try_compile "$LINENO" 9723 then : 9724 xorg_cv_cc_flag_unused_command_line_argument=yes 9725 else case e in #( 9726 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9727 esac 9728 fi 9729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9730 esac 9731 fi 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9733 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736 fi 9737 9738 found="no" 9739 9740 if test $found = "no" ; then 9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9743 fi 9744 9745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 fi 9748 9749 CFLAGS="$CFLAGS -Wmissing-braces" 9750 9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9752 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9753 cacheid=xorg_cv_cc_flag__Wmissing_braces 9754 if eval test \${$cacheid+y} 9755 then : 9756 printf %s "(cached) " >&6 9757 else case e in #( 9758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759 /* end confdefs.h. */ 9760 int i; 9761 int 9762 main (void) 9763 { 9764 9765 ; 9766 return 0; 9767 } 9768 _ACEOF 9769 if ac_fn_c_try_link "$LINENO" 9770 then : 9771 eval $cacheid=yes 9772 else case e in #( 9773 e) eval $cacheid=no ;; 9774 esac 9775 fi 9776 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9777 conftest$ac_exeext conftest.$ac_ext ;; 9778 esac 9779 fi 9780 9781 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783 9784 eval supported=\$$cacheid 9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9786 printf "%s\n" "$supported" >&6; } 9787 if test "$supported" = "yes" ; then 9788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9789 found="yes" 9790 fi 9791 fi 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 xorg_testset_save_CFLAGS="$CFLAGS" 9808 9809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9813 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9814 then : 9815 printf %s "(cached) " >&6 9816 else case e in #( 9817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818 /* end confdefs.h. */ 9819 int i; 9820 _ACEOF 9821 if ac_fn_c_try_compile "$LINENO" 9822 then : 9823 xorg_cv_cc_flag_unknown_warning_option=yes 9824 else case e in #( 9825 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9826 esac 9827 fi 9828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9829 esac 9830 fi 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9834 CFLAGS="$xorg_testset_save_CFLAGS" 9835 fi 9836 9837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9840 fi 9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9845 then : 9846 printf %s "(cached) " >&6 9847 else case e in #( 9848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849 /* end confdefs.h. */ 9850 int i; 9851 _ACEOF 9852 if ac_fn_c_try_compile "$LINENO" 9853 then : 9854 xorg_cv_cc_flag_unused_command_line_argument=yes 9855 else case e in #( 9856 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9857 esac 9858 fi 9859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9860 esac 9861 fi 9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9865 CFLAGS="$xorg_testset_save_CFLAGS" 9866 fi 9867 9868 found="no" 9869 9870 if test $found = "no" ; then 9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873 fi 9874 9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9877 fi 9878 9879 CFLAGS="$CFLAGS -Wsequence-point" 9880 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9882 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9883 cacheid=xorg_cv_cc_flag__Wsequence_point 9884 if eval test \${$cacheid+y} 9885 then : 9886 printf %s "(cached) " >&6 9887 else case e in #( 9888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889 /* end confdefs.h. */ 9890 int i; 9891 int 9892 main (void) 9893 { 9894 9895 ; 9896 return 0; 9897 } 9898 _ACEOF 9899 if ac_fn_c_try_link "$LINENO" 9900 then : 9901 eval $cacheid=yes 9902 else case e in #( 9903 e) eval $cacheid=no ;; 9904 esac 9905 fi 9906 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9907 conftest$ac_exeext conftest.$ac_ext ;; 9908 esac 9909 fi 9910 9911 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913 9914 eval supported=\$$cacheid 9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9916 printf "%s\n" "$supported" >&6; } 9917 if test "$supported" = "yes" ; then 9918 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9919 found="yes" 9920 fi 9921 fi 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 xorg_testset_save_CFLAGS="$CFLAGS" 9938 9939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9943 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9944 then : 9945 printf %s "(cached) " >&6 9946 else case e in #( 9947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948 /* end confdefs.h. */ 9949 int i; 9950 _ACEOF 9951 if ac_fn_c_try_compile "$LINENO" 9952 then : 9953 xorg_cv_cc_flag_unknown_warning_option=yes 9954 else case e in #( 9955 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9956 esac 9957 fi 9958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9959 esac 9960 fi 9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965 fi 9966 9967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9970 fi 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9975 then : 9976 printf %s "(cached) " >&6 9977 else case e in #( 9978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979 /* end confdefs.h. */ 9980 int i; 9981 _ACEOF 9982 if ac_fn_c_try_compile "$LINENO" 9983 then : 9984 xorg_cv_cc_flag_unused_command_line_argument=yes 9985 else case e in #( 9986 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9987 esac 9988 fi 9989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9990 esac 9991 fi 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9993 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996 fi 9997 9998 found="no" 9999 10000 if test $found = "no" ; then 10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10003 fi 10004 10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10007 fi 10008 10009 CFLAGS="$CFLAGS -Wreturn-type" 10010 10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10012 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10013 cacheid=xorg_cv_cc_flag__Wreturn_type 10014 if eval test \${$cacheid+y} 10015 then : 10016 printf %s "(cached) " >&6 10017 else case e in #( 10018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019 /* end confdefs.h. */ 10020 int i; 10021 int 10022 main (void) 10023 { 10024 10025 ; 10026 return 0; 10027 } 10028 _ACEOF 10029 if ac_fn_c_try_link "$LINENO" 10030 then : 10031 eval $cacheid=yes 10032 else case e in #( 10033 e) eval $cacheid=no ;; 10034 esac 10035 fi 10036 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10037 conftest$ac_exeext conftest.$ac_ext ;; 10038 esac 10039 fi 10040 10041 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043 10044 eval supported=\$$cacheid 10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10046 printf "%s\n" "$supported" >&6; } 10047 if test "$supported" = "yes" ; then 10048 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10049 found="yes" 10050 fi 10051 fi 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 xorg_testset_save_CFLAGS="$CFLAGS" 10068 10069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10073 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10074 then : 10075 printf %s "(cached) " >&6 10076 else case e in #( 10077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078 /* end confdefs.h. */ 10079 int i; 10080 _ACEOF 10081 if ac_fn_c_try_compile "$LINENO" 10082 then : 10083 xorg_cv_cc_flag_unknown_warning_option=yes 10084 else case e in #( 10085 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10086 esac 10087 fi 10088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10089 esac 10090 fi 10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095 fi 10096 10097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 fi 10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10105 then : 10106 printf %s "(cached) " >&6 10107 else case e in #( 10108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109 /* end confdefs.h. */ 10110 int i; 10111 _ACEOF 10112 if ac_fn_c_try_compile "$LINENO" 10113 then : 10114 xorg_cv_cc_flag_unused_command_line_argument=yes 10115 else case e in #( 10116 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10117 esac 10118 fi 10119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10120 esac 10121 fi 10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10125 CFLAGS="$xorg_testset_save_CFLAGS" 10126 fi 10127 10128 found="no" 10129 10130 if test $found = "no" ; then 10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 fi 10134 10135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10137 fi 10138 10139 CFLAGS="$CFLAGS -Wtrigraphs" 10140 10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10142 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10143 cacheid=xorg_cv_cc_flag__Wtrigraphs 10144 if eval test \${$cacheid+y} 10145 then : 10146 printf %s "(cached) " >&6 10147 else case e in #( 10148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10149 /* end confdefs.h. */ 10150 int i; 10151 int 10152 main (void) 10153 { 10154 10155 ; 10156 return 0; 10157 } 10158 _ACEOF 10159 if ac_fn_c_try_link "$LINENO" 10160 then : 10161 eval $cacheid=yes 10162 else case e in #( 10163 e) eval $cacheid=no ;; 10164 esac 10165 fi 10166 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10167 conftest$ac_exeext conftest.$ac_ext ;; 10168 esac 10169 fi 10170 10171 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173 10174 eval supported=\$$cacheid 10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10176 printf "%s\n" "$supported" >&6; } 10177 if test "$supported" = "yes" ; then 10178 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10179 found="yes" 10180 fi 10181 fi 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 xorg_testset_save_CFLAGS="$CFLAGS" 10198 10199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10202 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10203 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10204 then : 10205 printf %s "(cached) " >&6 10206 else case e in #( 10207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208 /* end confdefs.h. */ 10209 int i; 10210 _ACEOF 10211 if ac_fn_c_try_compile "$LINENO" 10212 then : 10213 xorg_cv_cc_flag_unknown_warning_option=yes 10214 else case e in #( 10215 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10216 esac 10217 fi 10218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10219 esac 10220 fi 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225 fi 10226 10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10235 then : 10236 printf %s "(cached) " >&6 10237 else case e in #( 10238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239 /* end confdefs.h. */ 10240 int i; 10241 _ACEOF 10242 if ac_fn_c_try_compile "$LINENO" 10243 then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245 else case e in #( 10246 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10247 esac 10248 fi 10249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10250 esac 10251 fi 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10253 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10255 CFLAGS="$xorg_testset_save_CFLAGS" 10256 fi 10257 10258 found="no" 10259 10260 if test $found = "no" ; then 10261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10263 fi 10264 10265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10267 fi 10268 10269 CFLAGS="$CFLAGS -Warray-bounds" 10270 10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10272 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10273 cacheid=xorg_cv_cc_flag__Warray_bounds 10274 if eval test \${$cacheid+y} 10275 then : 10276 printf %s "(cached) " >&6 10277 else case e in #( 10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279 /* end confdefs.h. */ 10280 int i; 10281 int 10282 main (void) 10283 { 10284 10285 ; 10286 return 0; 10287 } 10288 _ACEOF 10289 if ac_fn_c_try_link "$LINENO" 10290 then : 10291 eval $cacheid=yes 10292 else case e in #( 10293 e) eval $cacheid=no ;; 10294 esac 10295 fi 10296 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10297 conftest$ac_exeext conftest.$ac_ext ;; 10298 esac 10299 fi 10300 10301 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303 10304 eval supported=\$$cacheid 10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10306 printf "%s\n" "$supported" >&6; } 10307 if test "$supported" = "yes" ; then 10308 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10309 found="yes" 10310 fi 10311 fi 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 xorg_testset_save_CFLAGS="$CFLAGS" 10328 10329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10333 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10334 then : 10335 printf %s "(cached) " >&6 10336 else case e in #( 10337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338 /* end confdefs.h. */ 10339 int i; 10340 _ACEOF 10341 if ac_fn_c_try_compile "$LINENO" 10342 then : 10343 xorg_cv_cc_flag_unknown_warning_option=yes 10344 else case e in #( 10345 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10346 esac 10347 fi 10348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10349 esac 10350 fi 10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10352 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10354 CFLAGS="$xorg_testset_save_CFLAGS" 10355 fi 10356 10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 fi 10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10365 then : 10366 printf %s "(cached) " >&6 10367 else case e in #( 10368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10369 /* end confdefs.h. */ 10370 int i; 10371 _ACEOF 10372 if ac_fn_c_try_compile "$LINENO" 10373 then : 10374 xorg_cv_cc_flag_unused_command_line_argument=yes 10375 else case e in #( 10376 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10377 esac 10378 fi 10379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10380 esac 10381 fi 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386 fi 10387 10388 found="no" 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -Wwrite-strings" 10400 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10402 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10403 cacheid=xorg_cv_cc_flag__Wwrite_strings 10404 if eval test \${$cacheid+y} 10405 then : 10406 printf %s "(cached) " >&6 10407 else case e in #( 10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409 /* end confdefs.h. */ 10410 int i; 10411 int 10412 main (void) 10413 { 10414 10415 ; 10416 return 0; 10417 } 10418 _ACEOF 10419 if ac_fn_c_try_link "$LINENO" 10420 then : 10421 eval $cacheid=yes 10422 else case e in #( 10423 e) eval $cacheid=no ;; 10424 esac 10425 fi 10426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10427 conftest$ac_exeext conftest.$ac_ext ;; 10428 esac 10429 fi 10430 10431 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433 10434 eval supported=\$$cacheid 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10436 printf "%s\n" "$supported" >&6; } 10437 if test "$supported" = "yes" ; then 10438 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10439 found="yes" 10440 fi 10441 fi 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 xorg_testset_save_CFLAGS="$CFLAGS" 10458 10459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10463 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10464 then : 10465 printf %s "(cached) " >&6 10466 else case e in #( 10467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468 /* end confdefs.h. */ 10469 int i; 10470 _ACEOF 10471 if ac_fn_c_try_compile "$LINENO" 10472 then : 10473 xorg_cv_cc_flag_unknown_warning_option=yes 10474 else case e in #( 10475 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10476 esac 10477 fi 10478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10479 esac 10480 fi 10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485 fi 10486 10487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10490 fi 10491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10495 then : 10496 printf %s "(cached) " >&6 10497 else case e in #( 10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499 /* end confdefs.h. */ 10500 int i; 10501 _ACEOF 10502 if ac_fn_c_try_compile "$LINENO" 10503 then : 10504 xorg_cv_cc_flag_unused_command_line_argument=yes 10505 else case e in #( 10506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10507 esac 10508 fi 10509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10510 esac 10511 fi 10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516 fi 10517 10518 found="no" 10519 10520 if test $found = "no" ; then 10521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10523 fi 10524 10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 fi 10528 10529 CFLAGS="$CFLAGS -Waddress" 10530 10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10532 printf %s "checking if $CC supports -Waddress... " >&6; } 10533 cacheid=xorg_cv_cc_flag__Waddress 10534 if eval test \${$cacheid+y} 10535 then : 10536 printf %s "(cached) " >&6 10537 else case e in #( 10538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10539 /* end confdefs.h. */ 10540 int i; 10541 int 10542 main (void) 10543 { 10544 10545 ; 10546 return 0; 10547 } 10548 _ACEOF 10549 if ac_fn_c_try_link "$LINENO" 10550 then : 10551 eval $cacheid=yes 10552 else case e in #( 10553 e) eval $cacheid=no ;; 10554 esac 10555 fi 10556 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10557 conftest$ac_exeext conftest.$ac_ext ;; 10558 esac 10559 fi 10560 10561 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563 10564 eval supported=\$$cacheid 10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10566 printf "%s\n" "$supported" >&6; } 10567 if test "$supported" = "yes" ; then 10568 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10569 found="yes" 10570 fi 10571 fi 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 xorg_testset_save_CFLAGS="$CFLAGS" 10588 10589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10593 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10594 then : 10595 printf %s "(cached) " >&6 10596 else case e in #( 10597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598 /* end confdefs.h. */ 10599 int i; 10600 _ACEOF 10601 if ac_fn_c_try_compile "$LINENO" 10602 then : 10603 xorg_cv_cc_flag_unknown_warning_option=yes 10604 else case e in #( 10605 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10606 esac 10607 fi 10608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10609 esac 10610 fi 10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10612 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10614 CFLAGS="$xorg_testset_save_CFLAGS" 10615 fi 10616 10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10620 fi 10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10623 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10624 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10625 then : 10626 printf %s "(cached) " >&6 10627 else case e in #( 10628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629 /* end confdefs.h. */ 10630 int i; 10631 _ACEOF 10632 if ac_fn_c_try_compile "$LINENO" 10633 then : 10634 xorg_cv_cc_flag_unused_command_line_argument=yes 10635 else case e in #( 10636 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10637 esac 10638 fi 10639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10640 esac 10641 fi 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10643 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10645 CFLAGS="$xorg_testset_save_CFLAGS" 10646 fi 10647 10648 found="no" 10649 10650 if test $found = "no" ; then 10651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10653 fi 10654 10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10657 fi 10658 10659 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10660 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10662 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10663 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10664 if eval test \${$cacheid+y} 10665 then : 10666 printf %s "(cached) " >&6 10667 else case e in #( 10668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10669 /* end confdefs.h. */ 10670 int i; 10671 int 10672 main (void) 10673 { 10674 10675 ; 10676 return 0; 10677 } 10678 _ACEOF 10679 if ac_fn_c_try_link "$LINENO" 10680 then : 10681 eval $cacheid=yes 10682 else case e in #( 10683 e) eval $cacheid=no ;; 10684 esac 10685 fi 10686 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10687 conftest$ac_exeext conftest.$ac_ext ;; 10688 esac 10689 fi 10690 10691 10692 CFLAGS="$xorg_testset_save_CFLAGS" 10693 10694 eval supported=\$$cacheid 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10696 printf "%s\n" "$supported" >&6; } 10697 if test "$supported" = "yes" ; then 10698 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10699 found="yes" 10700 fi 10701 fi 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 xorg_testset_save_CFLAGS="$CFLAGS" 10718 10719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10723 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10724 then : 10725 printf %s "(cached) " >&6 10726 else case e in #( 10727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10728 /* end confdefs.h. */ 10729 int i; 10730 _ACEOF 10731 if ac_fn_c_try_compile "$LINENO" 10732 then : 10733 xorg_cv_cc_flag_unknown_warning_option=yes 10734 else case e in #( 10735 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10736 esac 10737 fi 10738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10739 esac 10740 fi 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10742 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10744 CFLAGS="$xorg_testset_save_CFLAGS" 10745 fi 10746 10747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10750 fi 10751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10753 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10754 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10755 then : 10756 printf %s "(cached) " >&6 10757 else case e in #( 10758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10759 /* end confdefs.h. */ 10760 int i; 10761 _ACEOF 10762 if ac_fn_c_try_compile "$LINENO" 10763 then : 10764 xorg_cv_cc_flag_unused_command_line_argument=yes 10765 else case e in #( 10766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10767 esac 10768 fi 10769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10770 esac 10771 fi 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10775 CFLAGS="$xorg_testset_save_CFLAGS" 10776 fi 10777 10778 found="no" 10779 10780 if test $found = "no" ; then 10781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10783 fi 10784 10785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10787 fi 10788 10789 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10790 10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10792 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10793 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10794 if eval test \${$cacheid+y} 10795 then : 10796 printf %s "(cached) " >&6 10797 else case e in #( 10798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799 /* end confdefs.h. */ 10800 int i; 10801 int 10802 main (void) 10803 { 10804 10805 ; 10806 return 0; 10807 } 10808 _ACEOF 10809 if ac_fn_c_try_link "$LINENO" 10810 then : 10811 eval $cacheid=yes 10812 else case e in #( 10813 e) eval $cacheid=no ;; 10814 esac 10815 fi 10816 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10817 conftest$ac_exeext conftest.$ac_ext ;; 10818 esac 10819 fi 10820 10821 10822 CFLAGS="$xorg_testset_save_CFLAGS" 10823 10824 eval supported=\$$cacheid 10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10826 printf "%s\n" "$supported" >&6; } 10827 if test "$supported" = "yes" ; then 10828 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10829 found="yes" 10830 fi 10831 fi 10832 10833 10834 fi 10835 10836 10837 10838 10839 10840 10841 10842 CWARNFLAGS="$BASE_CFLAGS" 10843 if test "x$GCC" = xyes ; then 10844 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10845 fi 10846 10847 10848 10849 10850 10851 10852 10853 10854 # Check whether --enable-strict-compilation was given. 10855 if test ${enable_strict_compilation+y} 10856 then : 10857 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10858 else case e in #( 10859 e) STRICT_COMPILE=no ;; 10860 esac 10861 fi 10862 10863 10864 10865 10866 10867 10868 STRICT_CFLAGS="" 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 xorg_testset_save_CFLAGS="$CFLAGS" 10883 10884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10888 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10889 then : 10890 printf %s "(cached) " >&6 10891 else case e in #( 10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10893 /* end confdefs.h. */ 10894 int i; 10895 _ACEOF 10896 if ac_fn_c_try_compile "$LINENO" 10897 then : 10898 xorg_cv_cc_flag_unknown_warning_option=yes 10899 else case e in #( 10900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10901 esac 10902 fi 10903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10904 esac 10905 fi 10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10909 CFLAGS="$xorg_testset_save_CFLAGS" 10910 fi 10911 10912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10915 fi 10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10920 then : 10921 printf %s "(cached) " >&6 10922 else case e in #( 10923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924 /* end confdefs.h. */ 10925 int i; 10926 _ACEOF 10927 if ac_fn_c_try_compile "$LINENO" 10928 then : 10929 xorg_cv_cc_flag_unused_command_line_argument=yes 10930 else case e in #( 10931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10932 esac 10933 fi 10934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10935 esac 10936 fi 10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10940 CFLAGS="$xorg_testset_save_CFLAGS" 10941 fi 10942 10943 found="no" 10944 10945 if test $found = "no" ; then 10946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10948 fi 10949 10950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10952 fi 10953 10954 CFLAGS="$CFLAGS -pedantic" 10955 10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10957 printf %s "checking if $CC supports -pedantic... " >&6; } 10958 cacheid=xorg_cv_cc_flag__pedantic 10959 if eval test \${$cacheid+y} 10960 then : 10961 printf %s "(cached) " >&6 10962 else case e in #( 10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964 /* end confdefs.h. */ 10965 int i; 10966 int 10967 main (void) 10968 { 10969 10970 ; 10971 return 0; 10972 } 10973 _ACEOF 10974 if ac_fn_c_try_link "$LINENO" 10975 then : 10976 eval $cacheid=yes 10977 else case e in #( 10978 e) eval $cacheid=no ;; 10979 esac 10980 fi 10981 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10982 conftest$ac_exeext conftest.$ac_ext ;; 10983 esac 10984 fi 10985 10986 10987 CFLAGS="$xorg_testset_save_CFLAGS" 10988 10989 eval supported=\$$cacheid 10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10991 printf "%s\n" "$supported" >&6; } 10992 if test "$supported" = "yes" ; then 10993 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10994 found="yes" 10995 fi 10996 fi 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 xorg_testset_save_CFLAGS="$CFLAGS" 11013 11014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11018 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11019 then : 11020 printf %s "(cached) " >&6 11021 else case e in #( 11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023 /* end confdefs.h. */ 11024 int i; 11025 _ACEOF 11026 if ac_fn_c_try_compile "$LINENO" 11027 then : 11028 xorg_cv_cc_flag_unknown_warning_option=yes 11029 else case e in #( 11030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11031 esac 11032 fi 11033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11034 esac 11035 fi 11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040 fi 11041 11042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11045 fi 11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11050 then : 11051 printf %s "(cached) " >&6 11052 else case e in #( 11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054 /* end confdefs.h. */ 11055 int i; 11056 _ACEOF 11057 if ac_fn_c_try_compile "$LINENO" 11058 then : 11059 xorg_cv_cc_flag_unused_command_line_argument=yes 11060 else case e in #( 11061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11062 esac 11063 fi 11064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11065 esac 11066 fi 11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11070 CFLAGS="$xorg_testset_save_CFLAGS" 11071 fi 11072 11073 found="no" 11074 11075 if test $found = "no" ; then 11076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11078 fi 11079 11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11082 fi 11083 11084 CFLAGS="$CFLAGS -Werror" 11085 11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11087 printf %s "checking if $CC supports -Werror... " >&6; } 11088 cacheid=xorg_cv_cc_flag__Werror 11089 if eval test \${$cacheid+y} 11090 then : 11091 printf %s "(cached) " >&6 11092 else case e in #( 11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094 /* end confdefs.h. */ 11095 int i; 11096 int 11097 main (void) 11098 { 11099 11100 ; 11101 return 0; 11102 } 11103 _ACEOF 11104 if ac_fn_c_try_link "$LINENO" 11105 then : 11106 eval $cacheid=yes 11107 else case e in #( 11108 e) eval $cacheid=no ;; 11109 esac 11110 fi 11111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11112 conftest$ac_exeext conftest.$ac_ext ;; 11113 esac 11114 fi 11115 11116 11117 CFLAGS="$xorg_testset_save_CFLAGS" 11118 11119 eval supported=\$$cacheid 11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11121 printf "%s\n" "$supported" >&6; } 11122 if test "$supported" = "yes" ; then 11123 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11124 found="yes" 11125 fi 11126 fi 11127 11128 if test $found = "no" ; then 11129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11131 fi 11132 11133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11135 fi 11136 11137 CFLAGS="$CFLAGS -errwarn" 11138 11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11140 printf %s "checking if $CC supports -errwarn... " >&6; } 11141 cacheid=xorg_cv_cc_flag__errwarn 11142 if eval test \${$cacheid+y} 11143 then : 11144 printf %s "(cached) " >&6 11145 else case e in #( 11146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147 /* end confdefs.h. */ 11148 int i; 11149 int 11150 main (void) 11151 { 11152 11153 ; 11154 return 0; 11155 } 11156 _ACEOF 11157 if ac_fn_c_try_link "$LINENO" 11158 then : 11159 eval $cacheid=yes 11160 else case e in #( 11161 e) eval $cacheid=no ;; 11162 esac 11163 fi 11164 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11165 conftest$ac_exeext conftest.$ac_ext ;; 11166 esac 11167 fi 11168 11169 11170 CFLAGS="$xorg_testset_save_CFLAGS" 11171 11172 eval supported=\$$cacheid 11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11174 printf "%s\n" "$supported" >&6; } 11175 if test "$supported" = "yes" ; then 11176 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11177 found="yes" 11178 fi 11179 fi 11180 11181 11182 11183 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11184 # activate it with -Werror, so we add it here explicitly. 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 xorg_testset_save_CFLAGS="$CFLAGS" 11199 11200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11204 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11205 then : 11206 printf %s "(cached) " >&6 11207 else case e in #( 11208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11209 /* end confdefs.h. */ 11210 int i; 11211 _ACEOF 11212 if ac_fn_c_try_compile "$LINENO" 11213 then : 11214 xorg_cv_cc_flag_unknown_warning_option=yes 11215 else case e in #( 11216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11217 esac 11218 fi 11219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11220 esac 11221 fi 11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11225 CFLAGS="$xorg_testset_save_CFLAGS" 11226 fi 11227 11228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11231 fi 11232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11236 then : 11237 printf %s "(cached) " >&6 11238 else case e in #( 11239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11240 /* end confdefs.h. */ 11241 int i; 11242 _ACEOF 11243 if ac_fn_c_try_compile "$LINENO" 11244 then : 11245 xorg_cv_cc_flag_unused_command_line_argument=yes 11246 else case e in #( 11247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11248 esac 11249 fi 11250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11251 esac 11252 fi 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11256 CFLAGS="$xorg_testset_save_CFLAGS" 11257 fi 11258 11259 found="no" 11260 11261 if test $found = "no" ; then 11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11264 fi 11265 11266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11268 fi 11269 11270 CFLAGS="$CFLAGS -Werror=attributes" 11271 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11273 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11274 cacheid=xorg_cv_cc_flag__Werror_attributes 11275 if eval test \${$cacheid+y} 11276 then : 11277 printf %s "(cached) " >&6 11278 else case e in #( 11279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280 /* end confdefs.h. */ 11281 int i; 11282 int 11283 main (void) 11284 { 11285 11286 ; 11287 return 0; 11288 } 11289 _ACEOF 11290 if ac_fn_c_try_link "$LINENO" 11291 then : 11292 eval $cacheid=yes 11293 else case e in #( 11294 e) eval $cacheid=no ;; 11295 esac 11296 fi 11297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11298 conftest$ac_exeext conftest.$ac_ext ;; 11299 esac 11300 fi 11301 11302 11303 CFLAGS="$xorg_testset_save_CFLAGS" 11304 11305 eval supported=\$$cacheid 11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11307 printf "%s\n" "$supported" >&6; } 11308 if test "$supported" = "yes" ; then 11309 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11310 found="yes" 11311 fi 11312 fi 11313 11314 11315 11316 if test "x$STRICT_COMPILE" = "xyes"; then 11317 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11318 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11319 fi 11320 11321 11322 11323 11324 11325 11326 11327 11328 cat >>confdefs.h <<_ACEOF 11329 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11330 _ACEOF 11331 11332 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11333 if test "x$PVM" = "x"; then 11334 PVM="0" 11335 fi 11336 11337 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11338 11339 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11340 if test "x$PVP" = "x"; then 11341 PVP="0" 11342 fi 11343 11344 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11345 11346 11347 11348 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11349 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11350 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11351 touch \$(top_srcdir)/ChangeLog; \ 11352 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11353 11354 11355 11356 11357 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11358 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11359 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11360 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11361 touch \$(top_srcdir)/INSTALL; \ 11362 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11363 11364 11365 11366 11367 11368 11369 case $host_os in 11370 solaris*) 11371 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11372 # check for a man page file found in later versions that use 11373 # traditional section numbers instead 11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11375 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11376 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11377 then : 11378 printf %s "(cached) " >&6 11379 else case e in #( 11380 e) test "$cross_compiling" = yes && 11381 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11382 if test -r "/usr/share/man/man7/attributes.7"; then 11383 ac_cv_file__usr_share_man_man7_attributes_7=yes 11384 else 11385 ac_cv_file__usr_share_man_man7_attributes_7=no 11386 fi ;; 11387 esac 11388 fi 11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11390 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11391 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11392 then : 11393 SYSV_MAN_SECTIONS=false 11394 else case e in #( 11395 e) SYSV_MAN_SECTIONS=true ;; 11396 esac 11397 fi 11398 11399 ;; 11400 *) SYSV_MAN_SECTIONS=false ;; 11401 esac 11402 11403 if test x$APP_MAN_SUFFIX = x ; then 11404 APP_MAN_SUFFIX=1 11405 fi 11406 if test x$APP_MAN_DIR = x ; then 11407 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11408 fi 11409 11410 if test x$LIB_MAN_SUFFIX = x ; then 11411 LIB_MAN_SUFFIX=3 11412 fi 11413 if test x$LIB_MAN_DIR = x ; then 11414 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11415 fi 11416 11417 if test x$FILE_MAN_SUFFIX = x ; then 11418 case $SYSV_MAN_SECTIONS in 11419 true) FILE_MAN_SUFFIX=4 ;; 11420 *) FILE_MAN_SUFFIX=5 ;; 11421 esac 11422 fi 11423 if test x$FILE_MAN_DIR = x ; then 11424 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11425 fi 11426 11427 if test x$MISC_MAN_SUFFIX = x ; then 11428 case $SYSV_MAN_SECTIONS in 11429 true) MISC_MAN_SUFFIX=5 ;; 11430 *) MISC_MAN_SUFFIX=7 ;; 11431 esac 11432 fi 11433 if test x$MISC_MAN_DIR = x ; then 11434 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11435 fi 11436 11437 if test x$DRIVER_MAN_SUFFIX = x ; then 11438 case $SYSV_MAN_SECTIONS in 11439 true) DRIVER_MAN_SUFFIX=7 ;; 11440 *) DRIVER_MAN_SUFFIX=4 ;; 11441 esac 11442 fi 11443 if test x$DRIVER_MAN_DIR = x ; then 11444 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11445 fi 11446 11447 if test x$ADMIN_MAN_SUFFIX = x ; then 11448 case $SYSV_MAN_SECTIONS in 11449 true) ADMIN_MAN_SUFFIX=1m ;; 11450 *) ADMIN_MAN_SUFFIX=8 ;; 11451 esac 11452 fi 11453 if test x$ADMIN_MAN_DIR = x ; then 11454 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11455 fi 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 XORG_MAN_PAGE="X Version 11" 11472 11473 MAN_SUBSTS="\ 11474 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11475 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11476 -e 's|__xservername__|Xorg|g' \ 11477 -e 's|__xconfigfile__|xorg.conf|g' \ 11478 -e 's|__projectroot__|\$(prefix)|g' \ 11479 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11480 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11481 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11482 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11483 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11484 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11485 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11486 11487 11488 11489 # Check whether --enable-silent-rules was given. 11490 if test ${enable_silent_rules+y} 11491 then : 11492 enableval=$enable_silent_rules; 11493 fi 11494 11495 case $enable_silent_rules in # ((( 11496 yes) AM_DEFAULT_VERBOSITY=0;; 11497 no) AM_DEFAULT_VERBOSITY=1;; 11498 *) AM_DEFAULT_VERBOSITY=0;; 11499 esac 11500 am_make=${MAKE-make} 11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11502 printf %s "checking whether $am_make supports nested variables... " >&6; } 11503 if test ${am_cv_make_support_nested_variables+y} 11504 then : 11505 printf %s "(cached) " >&6 11506 else case e in #( 11507 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11508 BAR0=false 11509 BAR1=true 11510 V=1 11511 am__doit: 11512 @$(TRUE) 11513 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11514 am_cv_make_support_nested_variables=yes 11515 else 11516 am_cv_make_support_nested_variables=no 11517 fi ;; 11518 esac 11519 fi 11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11521 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11522 if test $am_cv_make_support_nested_variables = yes; then 11523 AM_V='$(V)' 11524 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11525 else 11526 AM_V=$AM_DEFAULT_VERBOSITY 11527 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11528 fi 11529 AM_BACKSLASH='\' 11530 11531 11532 11533 11534 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11535 if test "x$ac_cv_func_strcasecmp" = xyes 11536 then : 11537 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 11538 11539 fi 11540 11541 11542 # xkbvleds checks 11543 11544 pkg_failed=no 11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBVLEDS" >&5 11546 printf %s "checking for XKBVLEDS... " >&6; } 11547 11548 if test -n "$XKBVLEDS_CFLAGS"; then 11549 pkg_cv_XKBVLEDS_CFLAGS="$XKBVLEDS_CFLAGS" 11550 elif test -n "$PKG_CONFIG"; then 11551 if test -n "$PKG_CONFIG" && \ 11552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5 11553 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5 11554 ac_status=$? 11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11556 test $ac_status = 0; }; then 11557 pkg_cv_XKBVLEDS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null` 11558 test "x$?" != "x0" && pkg_failed=yes 11559 else 11560 pkg_failed=yes 11561 fi 11562 else 11563 pkg_failed=untried 11564 fi 11565 if test -n "$XKBVLEDS_LIBS"; then 11566 pkg_cv_XKBVLEDS_LIBS="$XKBVLEDS_LIBS" 11567 elif test -n "$PKG_CONFIG"; then 11568 if test -n "$PKG_CONFIG" && \ 11569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5 11570 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5 11571 ac_status=$? 11572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11573 test $ac_status = 0; }; then 11574 pkg_cv_XKBVLEDS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null` 11575 test "x$?" != "x0" && pkg_failed=yes 11576 else 11577 pkg_failed=yes 11578 fi 11579 else 11580 pkg_failed=untried 11581 fi 11582 11583 11584 11585 if test $pkg_failed = yes; then 11586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11587 printf "%s\n" "no" >&6; } 11588 11589 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11590 _pkg_short_errors_supported=yes 11591 else 11592 _pkg_short_errors_supported=no 11593 fi 11594 if test $_pkg_short_errors_supported = yes; then 11595 XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1` 11596 else 11597 XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1` 11598 fi 11599 # Put the nasty error message in config.log where it belongs 11600 echo "$XKBVLEDS_PKG_ERRORS" >&5 11601 11602 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met: 11603 11604 $XKBVLEDS_PKG_ERRORS 11605 11606 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11607 installed software in a non-standard prefix. 11608 11609 Alternatively, you may set the environment variables XKBVLEDS_CFLAGS 11610 and XKBVLEDS_LIBS to avoid the need to call pkg-config. 11611 See the pkg-config man page for more details." "$LINENO" 5 11612 elif test $pkg_failed = untried; then 11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11614 printf "%s\n" "no" >&6; } 11615 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11616 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11617 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11618 is in your PATH or set the PKG_CONFIG environment variable to the full 11619 path to pkg-config. 11620 11621 Alternatively, you may set the environment variables XKBVLEDS_CFLAGS 11622 and XKBVLEDS_LIBS to avoid the need to call pkg-config. 11623 See the pkg-config man page for more details. 11624 11625 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11626 See 'config.log' for more details" "$LINENO" 5; } 11627 else 11628 XKBVLEDS_CFLAGS=$pkg_cv_XKBVLEDS_CFLAGS 11629 XKBVLEDS_LIBS=$pkg_cv_XKBVLEDS_LIBS 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11631 printf "%s\n" "yes" >&6; } 11632 11633 fi 11634 11635 # xkbbell checks 11636 11637 pkg_failed=no 11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBBELL" >&5 11639 printf %s "checking for XKBBELL... " >&6; } 11640 11641 if test -n "$XKBBELL_CFLAGS"; then 11642 pkg_cv_XKBBELL_CFLAGS="$XKBBELL_CFLAGS" 11643 elif test -n "$PKG_CONFIG"; then 11644 if test -n "$PKG_CONFIG" && \ 11645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5 11646 ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5 11647 ac_status=$? 11648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11649 test $ac_status = 0; }; then 11650 pkg_cv_XKBBELL_CFLAGS=`$PKG_CONFIG --cflags "xproto inputproto x11" 2>/dev/null` 11651 test "x$?" != "x0" && pkg_failed=yes 11652 else 11653 pkg_failed=yes 11654 fi 11655 else 11656 pkg_failed=untried 11657 fi 11658 if test -n "$XKBBELL_LIBS"; then 11659 pkg_cv_XKBBELL_LIBS="$XKBBELL_LIBS" 11660 elif test -n "$PKG_CONFIG"; then 11661 if test -n "$PKG_CONFIG" && \ 11662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5 11663 ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5 11664 ac_status=$? 11665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11666 test $ac_status = 0; }; then 11667 pkg_cv_XKBBELL_LIBS=`$PKG_CONFIG --libs "xproto inputproto x11" 2>/dev/null` 11668 test "x$?" != "x0" && pkg_failed=yes 11669 else 11670 pkg_failed=yes 11671 fi 11672 else 11673 pkg_failed=untried 11674 fi 11675 11676 11677 11678 if test $pkg_failed = yes; then 11679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680 printf "%s\n" "no" >&6; } 11681 11682 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11683 _pkg_short_errors_supported=yes 11684 else 11685 _pkg_short_errors_supported=no 11686 fi 11687 if test $_pkg_short_errors_supported = yes; then 11688 XKBBELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto inputproto x11" 2>&1` 11689 else 11690 XKBBELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto inputproto x11" 2>&1` 11691 fi 11692 # Put the nasty error message in config.log where it belongs 11693 echo "$XKBBELL_PKG_ERRORS" >&5 11694 11695 as_fn_error $? "Package requirements (xproto inputproto x11) were not met: 11696 11697 $XKBBELL_PKG_ERRORS 11698 11699 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11700 installed software in a non-standard prefix. 11701 11702 Alternatively, you may set the environment variables XKBBELL_CFLAGS 11703 and XKBBELL_LIBS to avoid the need to call pkg-config. 11704 See the pkg-config man page for more details." "$LINENO" 5 11705 elif test $pkg_failed = untried; then 11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11707 printf "%s\n" "no" >&6; } 11708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11709 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11710 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11711 is in your PATH or set the PKG_CONFIG environment variable to the full 11712 path to pkg-config. 11713 11714 Alternatively, you may set the environment variables XKBBELL_CFLAGS 11715 and XKBBELL_LIBS to avoid the need to call pkg-config. 11716 See the pkg-config man page for more details. 11717 11718 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11719 See 'config.log' for more details" "$LINENO" 5; } 11720 else 11721 XKBBELL_CFLAGS=$pkg_cv_XKBBELL_CFLAGS 11722 XKBBELL_LIBS=$pkg_cv_XKBBELL_LIBS 11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11724 printf "%s\n" "yes" >&6; } 11725 11726 fi 11727 11728 # xkbwatch checks 11729 11730 pkg_failed=no 11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBWATCH" >&5 11732 printf %s "checking for XKBWATCH... " >&6; } 11733 11734 if test -n "$XKBWATCH_CFLAGS"; then 11735 pkg_cv_XKBWATCH_CFLAGS="$XKBWATCH_CFLAGS" 11736 elif test -n "$PKG_CONFIG"; then 11737 if test -n "$PKG_CONFIG" && \ 11738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5 11739 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5 11740 ac_status=$? 11741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11742 test $ac_status = 0; }; then 11743 pkg_cv_XKBWATCH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null` 11744 test "x$?" != "x0" && pkg_failed=yes 11745 else 11746 pkg_failed=yes 11747 fi 11748 else 11749 pkg_failed=untried 11750 fi 11751 if test -n "$XKBWATCH_LIBS"; then 11752 pkg_cv_XKBWATCH_LIBS="$XKBWATCH_LIBS" 11753 elif test -n "$PKG_CONFIG"; then 11754 if test -n "$PKG_CONFIG" && \ 11755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5 11756 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5 11757 ac_status=$? 11758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11759 test $ac_status = 0; }; then 11760 pkg_cv_XKBWATCH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null` 11761 test "x$?" != "x0" && pkg_failed=yes 11762 else 11763 pkg_failed=yes 11764 fi 11765 else 11766 pkg_failed=untried 11767 fi 11768 11769 11770 11771 if test $pkg_failed = yes; then 11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773 printf "%s\n" "no" >&6; } 11774 11775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11776 _pkg_short_errors_supported=yes 11777 else 11778 _pkg_short_errors_supported=no 11779 fi 11780 if test $_pkg_short_errors_supported = yes; then 11781 XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1` 11782 else 11783 XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1` 11784 fi 11785 # Put the nasty error message in config.log where it belongs 11786 echo "$XKBWATCH_PKG_ERRORS" >&5 11787 11788 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met: 11789 11790 $XKBWATCH_PKG_ERRORS 11791 11792 Consider adjusting the PKG_CONFIG_PATH environment variable if you 11793 installed software in a non-standard prefix. 11794 11795 Alternatively, you may set the environment variables XKBWATCH_CFLAGS 11796 and XKBWATCH_LIBS to avoid the need to call pkg-config. 11797 See the pkg-config man page for more details." "$LINENO" 5 11798 elif test $pkg_failed = untried; then 11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11800 printf "%s\n" "no" >&6; } 11801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11802 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11803 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11804 is in your PATH or set the PKG_CONFIG environment variable to the full 11805 path to pkg-config. 11806 11807 Alternatively, you may set the environment variables XKBWATCH_CFLAGS 11808 and XKBWATCH_LIBS to avoid the need to call pkg-config. 11809 See the pkg-config man page for more details. 11810 11811 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11812 See 'config.log' for more details" "$LINENO" 5; } 11813 else 11814 XKBWATCH_CFLAGS=$pkg_cv_XKBWATCH_CFLAGS 11815 XKBWATCH_LIBS=$pkg_cv_XKBWATCH_LIBS 11816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11817 printf "%s\n" "yes" >&6; } 11818 11819 fi 11820 11821 ac_config_files="$ac_config_files Makefile man/Makefile" 11822 11823 cat >confcache <<\_ACEOF 11824 # This file is a shell script that caches the results of configure 11825 # tests run on this system so they can be shared between configure 11826 # scripts and configure runs, see configure's option --config-cache. 11827 # It is not useful on other systems. If it contains results you don't 11828 # want to keep, you may remove or edit it. 11829 # 11830 # config.status only pays attention to the cache file if you give it 11831 # the --recheck option to rerun configure. 11832 # 11833 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 11834 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 11835 # following values. 11836 11837 _ACEOF 11838 11839 # The following way of writing the cache mishandles newlines in values, 11840 # but we know of no workaround that is simple, portable, and efficient. 11841 # So, we kill variables containing newlines. 11842 # Ultrix sh set writes to stderr and can't be redirected directly, 11843 # and sets the high bit in the cache file unless we assign to the vars. 11844 ( 11845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11846 eval ac_val=\$$ac_var 11847 case $ac_val in #( 11848 *${as_nl}*) 11849 case $ac_var in #( 11850 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11851 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11852 esac 11853 case $ac_var in #( 11854 _ | IFS | as_nl) ;; #( 11855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11856 *) { eval $ac_var=; unset $ac_var;} ;; 11857 esac ;; 11858 esac 11859 done 11860 11861 (set) 2>&1 | 11862 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11863 *${as_nl}ac_space=\ *) 11864 # 'set' does not quote correctly, so add quotes: double-quote 11865 # substitution turns \\\\ into \\, and sed turns \\ into \. 11866 sed -n \ 11867 "s/'/'\\\\''/g; 11868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11869 ;; #( 11870 *) 11871 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11873 ;; 11874 esac | 11875 sort 11876 ) | 11877 sed ' 11878 /^ac_cv_env_/b end 11879 t clear 11880 :clear 11881 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11882 t end 11883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11884 :end' >>confcache 11885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11886 if test -w "$cache_file"; then 11887 if test "x$cache_file" != "x/dev/null"; then 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11889 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11890 if test ! -f "$cache_file" || test -h "$cache_file"; then 11891 cat confcache >"$cache_file" 11892 else 11893 case $cache_file in #( 11894 */* | ?:*) 11895 mv -f confcache "$cache_file"$$ && 11896 mv -f "$cache_file"$$ "$cache_file" ;; #( 11897 *) 11898 mv -f confcache "$cache_file" ;; 11899 esac 11900 fi 11901 fi 11902 else 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11904 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11905 fi 11906 fi 11907 rm -f confcache 11908 11909 test "x$prefix" = xNONE && prefix=$ac_default_prefix 11910 # Let make expand exec_prefix. 11911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11912 11913 DEFS=-DHAVE_CONFIG_H 11914 11915 ac_libobjs= 11916 ac_ltlibobjs= 11917 U= 11918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11919 # 1. Remove the extension, and $U if already installed. 11920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11921 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11923 # will be set to the directory where LIBOBJS objects are built. 11924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11926 done 11927 LIBOBJS=$ac_libobjs 11928 11929 LTLIBOBJS=$ac_ltlibobjs 11930 11931 11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11933 printf %s "checking that generated files are newer than configure... " >&6; } 11934 if test -n "$am_sleep_pid"; then 11935 # Hide warnings about reused PIDs. 11936 wait $am_sleep_pid 2>/dev/null 11937 fi 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11939 printf "%s\n" "done" >&6; } 11940 if test -n "$EXEEXT"; then 11941 am__EXEEXT_TRUE= 11942 am__EXEEXT_FALSE='#' 11943 else 11944 am__EXEEXT_TRUE='#' 11945 am__EXEEXT_FALSE= 11946 fi 11947 11948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11949 as_fn_error $? "conditional \"AMDEP\" was never defined. 11950 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11951 fi 11952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11954 Usually this means the macro was only invoked conditionally." "$LINENO" 5 11955 fi 11956 11957 : "${CONFIG_STATUS=./config.status}" 11958 ac_write_fail=0 11959 ac_clean_files_save=$ac_clean_files 11960 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11962 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11963 as_write_fail=0 11964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11965 #! $SHELL 11966 # Generated by $as_me. 11967 # Run this file to recreate the current configuration. 11968 # Compiler output produced by configure, useful for debugging 11969 # configure, is in config.log if it exists. 11970 11971 debug=false 11972 ac_cs_recheck=false 11973 ac_cs_silent=false 11974 11975 SHELL=\${CONFIG_SHELL-$SHELL} 11976 export SHELL 11977 _ASEOF 11978 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11979 ## -------------------- ## 11980 ## M4sh Initialization. ## 11981 ## -------------------- ## 11982 11983 # Be more Bourne compatible 11984 DUALCASE=1; export DUALCASE # for MKS sh 11985 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11986 then : 11987 emulate sh 11988 NULLCMD=: 11989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11990 # is contrary to our usage. Disable this feature. 11991 alias -g '${1+"$@"}'='"$@"' 11992 setopt NO_GLOB_SUBST 11993 else case e in #( 11994 e) case `(set -o) 2>/dev/null` in #( 11995 *posix*) : 11996 set -o posix ;; #( 11997 *) : 11998 ;; 11999 esac ;; 12000 esac 12001 fi 12002 12003 12004 12005 # Reset variables that may have inherited troublesome values from 12006 # the environment. 12007 12008 # IFS needs to be set, to space, tab, and newline, in precisely that order. 12009 # (If _AS_PATH_WALK were called with IFS unset, it would have the 12010 # side effect of setting IFS to empty, thus disabling word splitting.) 12011 # Quoting is to prevent editors from complaining about space-tab. 12012 as_nl=' 12013 ' 12014 export as_nl 12015 IFS=" "" $as_nl" 12016 12017 PS1='$ ' 12018 PS2='> ' 12019 PS4='+ ' 12020 12021 # Ensure predictable behavior from utilities with locale-dependent output. 12022 LC_ALL=C 12023 export LC_ALL 12024 LANGUAGE=C 12025 export LANGUAGE 12026 12027 # We cannot yet rely on "unset" to work, but we need these variables 12028 # to be unset--not just set to an empty or harmless value--now, to 12029 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12030 # also avoids known problems related to "unset" and subshell syntax 12031 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12032 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12033 do eval test \${$as_var+y} \ 12034 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12035 done 12036 12037 # Ensure that fds 0, 1, and 2 are open. 12038 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12039 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12040 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12041 12042 # The user is always right. 12043 if ${PATH_SEPARATOR+false} :; then 12044 PATH_SEPARATOR=: 12045 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12046 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12047 PATH_SEPARATOR=';' 12048 } 12049 fi 12050 12051 12052 # Find who we are. Look in the path if we contain no directory separator. 12053 as_myself= 12054 case $0 in #(( 12055 *[\\/]* ) as_myself=$0 ;; 12056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12057 for as_dir in $PATH 12058 do 12059 IFS=$as_save_IFS 12060 case $as_dir in #((( 12061 '') as_dir=./ ;; 12062 */) ;; 12063 *) as_dir=$as_dir/ ;; 12064 esac 12065 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12066 done 12067 IFS=$as_save_IFS 12068 12069 ;; 12070 esac 12071 # We did not find ourselves, most probably we were run as 'sh COMMAND' 12072 # in which case we are not to be found in the path. 12073 if test "x$as_myself" = x; then 12074 as_myself=$0 12075 fi 12076 if test ! -f "$as_myself"; then 12077 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12078 exit 1 12079 fi 12080 12081 12082 12083 # as_fn_error STATUS ERROR [LINENO LOG_FD] 12084 # ---------------------------------------- 12085 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12086 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12087 # script with STATUS, using 1 if that was 0. 12088 as_fn_error () 12089 { 12090 as_status=$1; test $as_status -eq 0 && as_status=1 12091 if test "$4"; then 12092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12094 fi 12095 printf "%s\n" "$as_me: error: $2" >&2 12096 as_fn_exit $as_status 12097 } # as_fn_error 12098 12099 12100 # as_fn_set_status STATUS 12101 # ----------------------- 12102 # Set $? to STATUS, without forking. 12103 as_fn_set_status () 12104 { 12105 return $1 12106 } # as_fn_set_status 12107 12108 # as_fn_exit STATUS 12109 # ----------------- 12110 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12111 as_fn_exit () 12112 { 12113 set +e 12114 as_fn_set_status $1 12115 exit $1 12116 } # as_fn_exit 12117 12118 # as_fn_unset VAR 12119 # --------------- 12120 # Portably unset VAR. 12121 as_fn_unset () 12122 { 12123 { eval $1=; unset $1;} 12124 } 12125 as_unset=as_fn_unset 12126 12127 # as_fn_append VAR VALUE 12128 # ---------------------- 12129 # Append the text in VALUE to the end of the definition contained in VAR. Take 12130 # advantage of any shell optimizations that allow amortized linear growth over 12131 # repeated appends, instead of the typical quadratic growth present in naive 12132 # implementations. 12133 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12134 then : 12135 eval 'as_fn_append () 12136 { 12137 eval $1+=\$2 12138 }' 12139 else case e in #( 12140 e) as_fn_append () 12141 { 12142 eval $1=\$$1\$2 12143 } ;; 12144 esac 12145 fi # as_fn_append 12146 12147 # as_fn_arith ARG... 12148 # ------------------ 12149 # Perform arithmetic evaluation on the ARGs, and store the result in the 12150 # global $as_val. Take advantage of shells that can avoid forks. The arguments 12151 # must be portable across $(()) and expr. 12152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12153 then : 12154 eval 'as_fn_arith () 12155 { 12156 as_val=$(( $* )) 12157 }' 12158 else case e in #( 12159 e) as_fn_arith () 12160 { 12161 as_val=`expr "$@" || test $? -eq 1` 12162 } ;; 12163 esac 12164 fi # as_fn_arith 12165 12166 12167 if expr a : '\(a\)' >/dev/null 2>&1 && 12168 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12169 as_expr=expr 12170 else 12171 as_expr=false 12172 fi 12173 12174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12175 as_basename=basename 12176 else 12177 as_basename=false 12178 fi 12179 12180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12181 as_dirname=dirname 12182 else 12183 as_dirname=false 12184 fi 12185 12186 as_me=`$as_basename -- "$0" || 12187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12188 X"$0" : 'X\(//\)$' \| \ 12189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12190 printf "%s\n" X/"$0" | 12191 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12192 s//\1/ 12193 q 12194 } 12195 /^X\/\(\/\/\)$/{ 12196 s//\1/ 12197 q 12198 } 12199 /^X\/\(\/\).*/{ 12200 s//\1/ 12201 q 12202 } 12203 s/.*/./; q'` 12204 12205 # Avoid depending upon Character Ranges. 12206 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12209 as_cr_digits='0123456789' 12210 as_cr_alnum=$as_cr_Letters$as_cr_digits 12211 12212 12213 # Determine whether it's possible to make 'echo' print without a newline. 12214 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12215 # for compatibility with existing Makefiles. 12216 ECHO_C= ECHO_N= ECHO_T= 12217 case `echo -n x` in #((((( 12218 -n*) 12219 case `echo 'xy\c'` in 12220 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12221 xy) ECHO_C='\c';; 12222 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12223 ECHO_T=' ';; 12224 esac;; 12225 *) 12226 ECHO_N='-n';; 12227 esac 12228 12229 # For backward compatibility with old third-party macros, we provide 12230 # the shell variables $as_echo and $as_echo_n. New code should use 12231 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12232 as_echo='printf %s\n' 12233 as_echo_n='printf %s' 12234 12235 rm -f conf$$ conf$$.exe conf$$.file 12236 if test -d conf$$.dir; then 12237 rm -f conf$$.dir/conf$$.file 12238 else 12239 rm -f conf$$.dir 12240 mkdir conf$$.dir 2>/dev/null 12241 fi 12242 if (echo >conf$$.file) 2>/dev/null; then 12243 if ln -s conf$$.file conf$$ 2>/dev/null; then 12244 as_ln_s='ln -s' 12245 # ... but there are two gotchas: 12246 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12247 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12248 # In both cases, we have to default to 'cp -pR'. 12249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12250 as_ln_s='cp -pR' 12251 elif ln conf$$.file conf$$ 2>/dev/null; then 12252 as_ln_s=ln 12253 else 12254 as_ln_s='cp -pR' 12255 fi 12256 else 12257 as_ln_s='cp -pR' 12258 fi 12259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12260 rmdir conf$$.dir 2>/dev/null 12261 12262 12263 # as_fn_mkdir_p 12264 # ------------- 12265 # Create "$as_dir" as a directory, including parents if necessary. 12266 as_fn_mkdir_p () 12267 { 12268 12269 case $as_dir in #( 12270 -*) as_dir=./$as_dir;; 12271 esac 12272 test -d "$as_dir" || eval $as_mkdir_p || { 12273 as_dirs= 12274 while :; do 12275 case $as_dir in #( 12276 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12277 *) as_qdir=$as_dir;; 12278 esac 12279 as_dirs="'$as_qdir' $as_dirs" 12280 as_dir=`$as_dirname -- "$as_dir" || 12281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12282 X"$as_dir" : 'X\(//\)[^/]' \| \ 12283 X"$as_dir" : 'X\(//\)$' \| \ 12284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12285 printf "%s\n" X"$as_dir" | 12286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12287 s//\1/ 12288 q 12289 } 12290 /^X\(\/\/\)[^/].*/{ 12291 s//\1/ 12292 q 12293 } 12294 /^X\(\/\/\)$/{ 12295 s//\1/ 12296 q 12297 } 12298 /^X\(\/\).*/{ 12299 s//\1/ 12300 q 12301 } 12302 s/.*/./; q'` 12303 test -d "$as_dir" && break 12304 done 12305 test -z "$as_dirs" || eval "mkdir $as_dirs" 12306 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12307 12308 12309 } # as_fn_mkdir_p 12310 if mkdir -p . 2>/dev/null; then 12311 as_mkdir_p='mkdir -p "$as_dir"' 12312 else 12313 test -d ./-p && rmdir ./-p 12314 as_mkdir_p=false 12315 fi 12316 12317 12318 # as_fn_executable_p FILE 12319 # ----------------------- 12320 # Test if FILE is an executable regular file. 12321 as_fn_executable_p () 12322 { 12323 test -f "$1" && test -x "$1" 12324 } # as_fn_executable_p 12325 as_test_x='test -x' 12326 as_executable_p=as_fn_executable_p 12327 12328 # Sed expression to map a string onto a valid CPP name. 12329 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12330 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12331 12332 # Sed expression to map a string onto a valid variable name. 12333 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12334 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12335 12336 12337 exec 6>&1 12338 ## ----------------------------------- ## 12339 ## Main body of $CONFIG_STATUS script. ## 12340 ## ----------------------------------- ## 12341 _ASEOF 12342 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12343 12344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12345 # Save the log message, to keep $0 and so on meaningful, and to 12346 # report actual input values of CONFIG_FILES etc. instead of their 12347 # values after options handling. 12348 ac_log=" 12349 This file was extended by xkbutils $as_me 1.0.6, which was 12350 generated by GNU Autoconf 2.72. Invocation command line was 12351 12352 CONFIG_FILES = $CONFIG_FILES 12353 CONFIG_HEADERS = $CONFIG_HEADERS 12354 CONFIG_LINKS = $CONFIG_LINKS 12355 CONFIG_COMMANDS = $CONFIG_COMMANDS 12356 $ $0 $@ 12357 12358 on `(hostname || uname -n) 2>/dev/null | sed 1q` 12359 " 12360 12361 _ACEOF 12362 12363 case $ac_config_files in *" 12364 "*) set x $ac_config_files; shift; ac_config_files=$*;; 12365 esac 12366 12367 case $ac_config_headers in *" 12368 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12369 esac 12370 12371 12372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12373 # Files that config.status was made for. 12374 config_files="$ac_config_files" 12375 config_headers="$ac_config_headers" 12376 config_commands="$ac_config_commands" 12377 12378 _ACEOF 12379 12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12381 ac_cs_usage="\ 12382 '$as_me' instantiates files and other configuration actions 12383 from templates according to the current configuration. Unless the files 12384 and actions are specified as TAGs, all are instantiated by default. 12385 12386 Usage: $0 [OPTION]... [TAG]... 12387 12388 -h, --help print this help, then exit 12389 -V, --version print version number and configuration settings, then exit 12390 --config print configuration, then exit 12391 -q, --quiet, --silent 12392 do not print progress messages 12393 -d, --debug don't remove temporary files 12394 --recheck update $as_me by reconfiguring in the same conditions 12395 --file=FILE[:TEMPLATE] 12396 instantiate the configuration file FILE 12397 --header=FILE[:TEMPLATE] 12398 instantiate the configuration header FILE 12399 12400 Configuration files: 12401 $config_files 12402 12403 Configuration headers: 12404 $config_headers 12405 12406 Configuration commands: 12407 $config_commands 12408 12409 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>." 12410 12411 _ACEOF 12412 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12413 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12415 ac_cs_config='$ac_cs_config_escaped' 12416 ac_cs_version="\\ 12417 xkbutils config.status 1.0.6 12418 configured by $0, generated by GNU Autoconf 2.72, 12419 with options \\"\$ac_cs_config\\" 12420 12421 Copyright (C) 2023 Free Software Foundation, Inc. 12422 This config.status script is free software; the Free Software Foundation 12423 gives unlimited permission to copy, distribute and modify it." 12424 12425 ac_pwd='$ac_pwd' 12426 srcdir='$srcdir' 12427 INSTALL='$INSTALL' 12428 MKDIR_P='$MKDIR_P' 12429 AWK='$AWK' 12430 test -n "\$AWK" || AWK=awk 12431 _ACEOF 12432 12433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12434 # The default lists apply if the user does not specify any file. 12435 ac_need_defaults=: 12436 while test $# != 0 12437 do 12438 case $1 in 12439 --*=?*) 12440 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12441 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12442 ac_shift=: 12443 ;; 12444 --*=) 12445 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12446 ac_optarg= 12447 ac_shift=: 12448 ;; 12449 *) 12450 ac_option=$1 12451 ac_optarg=$2 12452 ac_shift=shift 12453 ;; 12454 esac 12455 12456 case $ac_option in 12457 # Handling of the options. 12458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12459 ac_cs_recheck=: ;; 12460 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12461 printf "%s\n" "$ac_cs_version"; exit ;; 12462 --config | --confi | --conf | --con | --co | --c ) 12463 printf "%s\n" "$ac_cs_config"; exit ;; 12464 --debug | --debu | --deb | --de | --d | -d ) 12465 debug=: ;; 12466 --file | --fil | --fi | --f ) 12467 $ac_shift 12468 case $ac_optarg in 12469 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12470 '') as_fn_error $? "missing file argument" ;; 12471 esac 12472 as_fn_append CONFIG_FILES " '$ac_optarg'" 12473 ac_need_defaults=false;; 12474 --header | --heade | --head | --hea ) 12475 $ac_shift 12476 case $ac_optarg in 12477 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12478 esac 12479 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12480 ac_need_defaults=false;; 12481 --he | --h) 12482 # Conflict between --help and --header 12483 as_fn_error $? "ambiguous option: '$1' 12484 Try '$0 --help' for more information.";; 12485 --help | --hel | -h ) 12486 printf "%s\n" "$ac_cs_usage"; exit ;; 12487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12488 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12489 ac_cs_silent=: ;; 12490 12491 # This is an error. 12492 -*) as_fn_error $? "unrecognized option: '$1' 12493 Try '$0 --help' for more information." ;; 12494 12495 *) as_fn_append ac_config_targets " $1" 12496 ac_need_defaults=false ;; 12497 12498 esac 12499 shift 12500 done 12501 12502 ac_configure_extra_args= 12503 12504 if $ac_cs_silent; then 12505 exec 6>/dev/null 12506 ac_configure_extra_args="$ac_configure_extra_args --silent" 12507 fi 12508 12509 _ACEOF 12510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12511 if \$ac_cs_recheck; then 12512 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12513 shift 12514 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12515 CONFIG_SHELL='$SHELL' 12516 export CONFIG_SHELL 12517 exec "\$@" 12518 fi 12519 12520 _ACEOF 12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12522 exec 5>>config.log 12523 { 12524 echo 12525 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12526 ## Running $as_me. ## 12527 _ASBOX 12528 printf "%s\n" "$ac_log" 12529 } >&5 12530 12531 _ACEOF 12532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12533 # 12534 # INIT-COMMANDS 12535 # 12536 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12537 12538 _ACEOF 12539 12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12541 12542 # Handling of arguments. 12543 for ac_config_target in $ac_config_targets 12544 do 12545 case $ac_config_target in 12546 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12547 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12549 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12550 12551 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12552 esac 12553 done 12554 12555 12556 # If the user did not use the arguments to specify the items to instantiate, 12557 # then the envvar interface is used. Set only those that are not. 12558 # We use the long form for the default assignment because of an extremely 12559 # bizarre bug on SunOS 4.1.3. 12560 if $ac_need_defaults; then 12561 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12562 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12563 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12564 fi 12565 12566 # Have a temporary directory for convenience. Make it in the build tree 12567 # simply because there is no reason against having it here, and in addition, 12568 # creating and moving files from /tmp can sometimes cause problems. 12569 # Hook for its removal unless debugging. 12570 # Note that there is a small window in which the directory will not be cleaned: 12571 # after its creation but before its name has been assigned to '$tmp'. 12572 $debug || 12573 { 12574 tmp= ac_tmp= 12575 trap 'exit_status=$? 12576 : "${ac_tmp:=$tmp}" 12577 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12578 ' 0 12579 trap 'as_fn_exit 1' 1 2 13 15 12580 } 12581 # Create a (secure) tmp directory for tmp files. 12582 12583 { 12584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12585 test -d "$tmp" 12586 } || 12587 { 12588 tmp=./conf$$-$RANDOM 12589 (umask 077 && mkdir "$tmp") 12590 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12591 ac_tmp=$tmp 12592 12593 # Set up the scripts for CONFIG_FILES section. 12594 # No need to generate them if there are no CONFIG_FILES. 12595 # This happens for instance with './config.status config.h'. 12596 if test -n "$CONFIG_FILES"; then 12597 12598 12599 ac_cr=`echo X | tr X '\015'` 12600 # On cygwin, bash can eat \r inside `` if the user requested igncr. 12601 # But we know of no other shell where ac_cr would be empty at this 12602 # point, so we can use a bashism as a fallback. 12603 if test "x$ac_cr" = x; then 12604 eval ac_cr=\$\'\\r\' 12605 fi 12606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12608 ac_cs_awk_cr='\\r' 12609 else 12610 ac_cs_awk_cr=$ac_cr 12611 fi 12612 12613 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12614 _ACEOF 12615 12616 12617 { 12618 echo "cat >conf$$subs.awk <<_ACEOF" && 12619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12620 echo "_ACEOF" 12621 } >conf$$subs.sh || 12622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12624 ac_delim='%!_!# ' 12625 for ac_last_try in false false false false false :; do 12626 . ./conf$$subs.sh || 12627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12628 12629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12630 if test $ac_delim_n = $ac_delim_num; then 12631 break 12632 elif $ac_last_try; then 12633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12634 else 12635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12636 fi 12637 done 12638 rm -f conf$$subs.sh 12639 12640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12641 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12642 _ACEOF 12643 sed -n ' 12644 h 12645 s/^/S["/; s/!.*/"]=/ 12646 p 12647 g 12648 s/^[^!]*!// 12649 :repl 12650 t repl 12651 s/'"$ac_delim"'$// 12652 t delim 12653 :nl 12654 h 12655 s/\(.\{148\}\)..*/\1/ 12656 t more1 12657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12658 p 12659 n 12660 b repl 12661 :more1 12662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12663 p 12664 g 12665 s/.\{148\}// 12666 t nl 12667 :delim 12668 h 12669 s/\(.\{148\}\)..*/\1/ 12670 t more2 12671 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12672 p 12673 b 12674 :more2 12675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12676 p 12677 g 12678 s/.\{148\}// 12679 t delim 12680 ' <conf$$subs.awk | sed ' 12681 /^[^""]/{ 12682 N 12683 s/\n// 12684 } 12685 ' >>$CONFIG_STATUS || ac_write_fail=1 12686 rm -f conf$$subs.awk 12687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12688 _ACAWK 12689 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12690 for (key in S) S_is_set[key] = 1 12691 FS = "" 12692 12693 } 12694 { 12695 line = $ 0 12696 nfields = split(line, field, "@") 12697 substed = 0 12698 len = length(field[1]) 12699 for (i = 2; i < nfields; i++) { 12700 key = field[i] 12701 keylen = length(key) 12702 if (S_is_set[key]) { 12703 value = S[key] 12704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12705 len += length(value) + length(field[++i]) 12706 substed = 1 12707 } else 12708 len += 1 + keylen 12709 } 12710 12711 print line 12712 } 12713 12714 _ACAWK 12715 _ACEOF 12716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12719 else 12720 cat 12721 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12722 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12723 _ACEOF 12724 12725 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12726 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12727 # trailing colons and then remove the whole line if VPATH becomes empty 12728 # (actually we leave an empty line to preserve line numbers). 12729 if test "x$srcdir" = x.; then 12730 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12731 h 12732 s/// 12733 s/^/:/ 12734 s/[ ]*$/:/ 12735 s/:\$(srcdir):/:/g 12736 s/:\${srcdir}:/:/g 12737 s/:@srcdir@:/:/g 12738 s/^:*// 12739 s/:*$// 12740 x 12741 s/\(=[ ]*\).*/\1/ 12742 G 12743 s/\n// 12744 s/^[^=]*=[ ]*$// 12745 }' 12746 fi 12747 12748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12749 fi # test -n "$CONFIG_FILES" 12750 12751 # Set up the scripts for CONFIG_HEADERS section. 12752 # No need to generate them if there are no CONFIG_HEADERS. 12753 # This happens for instance with './config.status Makefile'. 12754 if test -n "$CONFIG_HEADERS"; then 12755 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12756 BEGIN { 12757 _ACEOF 12758 12759 # Transform confdefs.h into an awk script 'defines.awk', embedded as 12760 # here-document in config.status, that substitutes the proper values into 12761 # config.h.in to produce config.h. 12762 12763 # Create a delimiter string that does not exist in confdefs.h, to ease 12764 # handling of long lines. 12765 ac_delim='%!_!# ' 12766 for ac_last_try in false false :; do 12767 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12768 if test -z "$ac_tt"; then 12769 break 12770 elif $ac_last_try; then 12771 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12772 else 12773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12774 fi 12775 done 12776 12777 # For the awk script, D is an array of macro values keyed by name, 12778 # likewise P contains macro parameters if any. Preserve backslash 12779 # newline sequences. 12780 12781 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12782 sed -n ' 12783 s/.\{148\}/&'"$ac_delim"'/g 12784 t rset 12785 :rset 12786 s/^[ ]*#[ ]*define[ ][ ]*/ / 12787 t def 12788 d 12789 :def 12790 s/\\$// 12791 t bsnl 12792 s/["\\]/\\&/g 12793 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12794 D["\1"]=" \3"/p 12795 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12796 d 12797 :bsnl 12798 s/["\\]/\\&/g 12799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12800 D["\1"]=" \3\\\\\\n"\\/p 12801 t cont 12802 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12803 t cont 12804 d 12805 :cont 12806 n 12807 s/.\{148\}/&'"$ac_delim"'/g 12808 t clear 12809 :clear 12810 s/\\$// 12811 t bsnlc 12812 s/["\\]/\\&/g; s/^/"/; s/$/"/p 12813 d 12814 :bsnlc 12815 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12816 b cont 12817 ' <confdefs.h | sed ' 12818 s/'"$ac_delim"'/"\\\ 12819 "/g' >>$CONFIG_STATUS || ac_write_fail=1 12820 12821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12822 for (key in D) D_is_set[key] = 1 12823 FS = "" 12824 } 12825 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12826 line = \$ 0 12827 split(line, arg, " ") 12828 if (arg[1] == "#") { 12829 defundef = arg[2] 12830 mac1 = arg[3] 12831 } else { 12832 defundef = substr(arg[1], 2) 12833 mac1 = arg[2] 12834 } 12835 split(mac1, mac2, "(") #) 12836 macro = mac2[1] 12837 prefix = substr(line, 1, index(line, defundef) - 1) 12838 if (D_is_set[macro]) { 12839 # Preserve the white space surrounding the "#". 12840 print prefix "define", macro P[macro] D[macro] 12841 next 12842 } else { 12843 # Replace #undef with comments. This is necessary, for example, 12844 # in the case of _POSIX_SOURCE, which is predefined and required 12845 # on some systems where configure will not decide to define it. 12846 if (defundef == "undef") { 12847 print "/*", prefix defundef, macro, "*/" 12848 next 12849 } 12850 } 12851 } 12852 { print } 12853 _ACAWK 12854 _ACEOF 12855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12856 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12857 fi # test -n "$CONFIG_HEADERS" 12858 12859 12860 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12861 shift 12862 for ac_tag 12863 do 12864 case $ac_tag in 12865 :[FHLC]) ac_mode=$ac_tag; continue;; 12866 esac 12867 case $ac_mode$ac_tag in 12868 :[FHL]*:*);; 12869 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12870 :[FH]-) ac_tag=-:-;; 12871 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12872 esac 12873 ac_save_IFS=$IFS 12874 IFS=: 12875 set x $ac_tag 12876 IFS=$ac_save_IFS 12877 shift 12878 ac_file=$1 12879 shift 12880 12881 case $ac_mode in 12882 :L) ac_source=$1;; 12883 :[FH]) 12884 ac_file_inputs= 12885 for ac_f 12886 do 12887 case $ac_f in 12888 -) ac_f="$ac_tmp/stdin";; 12889 *) # Look for the file first in the build tree, then in the source tree 12890 # (if the path is not absolute). The absolute path cannot be DOS-style, 12891 # because $ac_f cannot contain ':'. 12892 test -f "$ac_f" || 12893 case $ac_f in 12894 [\\/$]*) false;; 12895 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12896 esac || 12897 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12898 esac 12899 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12900 as_fn_append ac_file_inputs " '$ac_f'" 12901 done 12902 12903 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12904 # use $as_me), people would be surprised to read: 12905 # /* config.h. Generated by config.status. */ 12906 configure_input='Generated from '` 12907 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12908 `' by configure.' 12909 if test x"$ac_file" != x-; then 12910 configure_input="$ac_file. $configure_input" 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12912 printf "%s\n" "$as_me: creating $ac_file" >&6;} 12913 fi 12914 # Neutralize special characters interpreted by sed in replacement strings. 12915 case $configure_input in #( 12916 *\&* | *\|* | *\\* ) 12917 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12918 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12919 *) ac_sed_conf_input=$configure_input;; 12920 esac 12921 12922 case $ac_tag in 12923 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12925 esac 12926 ;; 12927 esac 12928 12929 ac_dir=`$as_dirname -- "$ac_file" || 12930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12931 X"$ac_file" : 'X\(//\)[^/]' \| \ 12932 X"$ac_file" : 'X\(//\)$' \| \ 12933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12934 printf "%s\n" X"$ac_file" | 12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12936 s//\1/ 12937 q 12938 } 12939 /^X\(\/\/\)[^/].*/{ 12940 s//\1/ 12941 q 12942 } 12943 /^X\(\/\/\)$/{ 12944 s//\1/ 12945 q 12946 } 12947 /^X\(\/\).*/{ 12948 s//\1/ 12949 q 12950 } 12951 s/.*/./; q'` 12952 as_dir="$ac_dir"; as_fn_mkdir_p 12953 ac_builddir=. 12954 12955 case "$ac_dir" in 12956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12957 *) 12958 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12959 # A ".." for each directory in $ac_dir_suffix. 12960 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12961 case $ac_top_builddir_sub in 12962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12964 esac ;; 12965 esac 12966 ac_abs_top_builddir=$ac_pwd 12967 ac_abs_builddir=$ac_pwd$ac_dir_suffix 12968 # for backward compatibility: 12969 ac_top_builddir=$ac_top_build_prefix 12970 12971 case $srcdir in 12972 .) # We are building in place. 12973 ac_srcdir=. 12974 ac_top_srcdir=$ac_top_builddir_sub 12975 ac_abs_top_srcdir=$ac_pwd ;; 12976 [\\/]* | ?:[\\/]* ) # Absolute name. 12977 ac_srcdir=$srcdir$ac_dir_suffix; 12978 ac_top_srcdir=$srcdir 12979 ac_abs_top_srcdir=$srcdir ;; 12980 *) # Relative name. 12981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12982 ac_top_srcdir=$ac_top_build_prefix$srcdir 12983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12984 esac 12985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12986 12987 12988 case $ac_mode in 12989 :F) 12990 # 12991 # CONFIG_FILE 12992 # 12993 12994 case $INSTALL in 12995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12997 esac 12998 ac_MKDIR_P=$MKDIR_P 12999 case $MKDIR_P in 13000 [\\/$]* | ?:[\\/]* ) ;; 13001 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13002 esac 13003 _ACEOF 13004 13005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13006 # If the template does not know about datarootdir, expand it. 13007 # FIXME: This hack should be removed a few years after 2.60. 13008 ac_datarootdir_hack=; ac_datarootdir_seen= 13009 ac_sed_dataroot=' 13010 /datarootdir/ { 13011 p 13012 q 13013 } 13014 /@datadir@/p 13015 /@docdir@/p 13016 /@infodir@/p 13017 /@localedir@/p 13018 /@mandir@/p' 13019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13020 *datarootdir*) ac_datarootdir_seen=yes;; 13021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13023 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13024 _ACEOF 13025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13026 ac_datarootdir_hack=' 13027 s&@datadir@&$datadir&g 13028 s&@docdir@&$docdir&g 13029 s&@infodir@&$infodir&g 13030 s&@localedir@&$localedir&g 13031 s&@mandir@&$mandir&g 13032 s&\\\${datarootdir}&$datarootdir&g' ;; 13033 esac 13034 _ACEOF 13035 13036 # Neutralize VPATH when '$srcdir' = '.'. 13037 # Shell code in configure.ac might set extrasub. 13038 # FIXME: do we really want to maintain this feature? 13039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13040 ac_sed_extra="$ac_vpsub 13041 $extrasub 13042 _ACEOF 13043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13044 :t 13045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13046 s|@configure_input@|$ac_sed_conf_input|;t t 13047 s&@top_builddir@&$ac_top_builddir_sub&;t t 13048 s&@top_build_prefix@&$ac_top_build_prefix&;t t 13049 s&@srcdir@&$ac_srcdir&;t t 13050 s&@abs_srcdir@&$ac_abs_srcdir&;t t 13051 s&@top_srcdir@&$ac_top_srcdir&;t t 13052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13053 s&@builddir@&$ac_builddir&;t t 13054 s&@abs_builddir@&$ac_abs_builddir&;t t 13055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13056 s&@INSTALL@&$ac_INSTALL&;t t 13057 s&@MKDIR_P@&$ac_MKDIR_P&;t t 13058 $ac_datarootdir_hack 13059 " 13060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13061 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13062 13063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13064 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13066 "$ac_tmp/out"`; test -z "$ac_out"; } && 13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13068 which seems to be undefined. Please make sure it is defined" >&5 13069 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13070 which seems to be undefined. Please make sure it is defined" >&2;} 13071 13072 rm -f "$ac_tmp/stdin" 13073 case $ac_file in 13074 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13075 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13076 esac \ 13077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13078 ;; 13079 :H) 13080 # 13081 # CONFIG_HEADER 13082 # 13083 if test x"$ac_file" != x-; then 13084 { 13085 printf "%s\n" "/* $configure_input */" >&1 \ 13086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13087 } >"$ac_tmp/config.h" \ 13088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13089 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13091 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13092 else 13093 rm -f "$ac_file" 13094 mv "$ac_tmp/config.h" "$ac_file" \ 13095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13096 fi 13097 else 13098 printf "%s\n" "/* $configure_input */" >&1 \ 13099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13100 || as_fn_error $? "could not create -" "$LINENO" 5 13101 fi 13102 # Compute "$ac_file"'s index in $config_headers. 13103 _am_arg="$ac_file" 13104 _am_stamp_count=1 13105 for _am_header in $config_headers :; do 13106 case $_am_header in 13107 $_am_arg | $_am_arg:* ) 13108 break ;; 13109 * ) 13110 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13111 esac 13112 done 13113 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13114 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13115 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13116 X"$_am_arg" : 'X\(//\)$' \| \ 13117 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13118 printf "%s\n" X"$_am_arg" | 13119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13120 s//\1/ 13121 q 13122 } 13123 /^X\(\/\/\)[^/].*/{ 13124 s//\1/ 13125 q 13126 } 13127 /^X\(\/\/\)$/{ 13128 s//\1/ 13129 q 13130 } 13131 /^X\(\/\).*/{ 13132 s//\1/ 13133 q 13134 } 13135 s/.*/./; q'`/stamp-h$_am_stamp_count 13136 ;; 13137 13138 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13139 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13140 ;; 13141 esac 13142 13143 13144 case $ac_file$ac_mode in 13145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13146 # Older Autoconf quotes --file arguments for eval, but not when files 13147 # are listed without --file. Let's play safe and only enable the eval 13148 # if we detect the quoting. 13149 # TODO: see whether this extra hack can be removed once we start 13150 # requiring Autoconf 2.70 or later. 13151 case $CONFIG_FILES in #( 13152 *\'*) : 13153 eval set x "$CONFIG_FILES" ;; #( 13154 *) : 13155 set x $CONFIG_FILES ;; #( 13156 *) : 13157 ;; 13158 esac 13159 shift 13160 # Used to flag and report bootstrapping failures. 13161 am_rc=0 13162 for am_mf 13163 do 13164 # Strip MF so we end up with the name of the file. 13165 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13166 # Check whether this is an Automake generated Makefile which includes 13167 # dependency-tracking related rules and includes. 13168 # Grep'ing the whole file directly is not great: AIX grep has a line 13169 # limit of 2048, but all sed's we know have understand at least 4000. 13170 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13171 || continue 13172 am_dirpart=`$as_dirname -- "$am_mf" || 13173 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13174 X"$am_mf" : 'X\(//\)[^/]' \| \ 13175 X"$am_mf" : 'X\(//\)$' \| \ 13176 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13177 printf "%s\n" X"$am_mf" | 13178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13179 s//\1/ 13180 q 13181 } 13182 /^X\(\/\/\)[^/].*/{ 13183 s//\1/ 13184 q 13185 } 13186 /^X\(\/\/\)$/{ 13187 s//\1/ 13188 q 13189 } 13190 /^X\(\/\).*/{ 13191 s//\1/ 13192 q 13193 } 13194 s/.*/./; q'` 13195 am_filepart=`$as_basename -- "$am_mf" || 13196 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13197 X"$am_mf" : 'X\(//\)$' \| \ 13198 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13199 printf "%s\n" X/"$am_mf" | 13200 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13201 s//\1/ 13202 q 13203 } 13204 /^X\/\(\/\/\)$/{ 13205 s//\1/ 13206 q 13207 } 13208 /^X\/\(\/\).*/{ 13209 s//\1/ 13210 q 13211 } 13212 s/.*/./; q'` 13213 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13214 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13215 | $MAKE -f - am--depfiles" >&5 13216 (cd "$am_dirpart" \ 13217 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13218 | $MAKE -f - am--depfiles) >&5 2>&5 13219 ac_status=$? 13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13221 (exit $ac_status); } || am_rc=$? 13222 done 13223 if test $am_rc -ne 0; then 13224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13225 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13226 as_fn_error $? "Something went wrong bootstrapping makefile fragments 13227 for automatic dependency tracking. If GNU make was not used, consider 13228 re-running the configure script with MAKE=\"gmake\" (or whatever is 13229 necessary). You can also try re-running configure with the 13230 '--disable-dependency-tracking' option to at least be able to build 13231 the package (albeit without support for automatic dependency tracking). 13232 See 'config.log' for more details" "$LINENO" 5; } 13233 fi 13234 { am_dirpart=; unset am_dirpart;} 13235 { am_filepart=; unset am_filepart;} 13236 { am_mf=; unset am_mf;} 13237 { am_rc=; unset am_rc;} 13238 rm -f conftest-deps.mk 13239 } 13240 ;; 13241 13242 esac 13243 done # for ac_tag 13244 13245 13246 as_fn_exit 0 13247 _ACEOF 13248 ac_clean_files=$ac_clean_files_save 13249 13250 test $ac_write_fail = 0 || 13251 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13252 13253 13254 # configure is writing to config.log, and then calls config.status. 13255 # config.status does its own redirection, appending to config.log. 13256 # Unfortunately, on DOS this fails, as config.log is still kept open 13257 # by configure, so config.status won't be able to write to it; its 13258 # output is simply discarded. So we exec the FD to /dev/null, 13259 # effectively closing config.log, so it can be properly (re)opened and 13260 # appended to by config.status. When coming back to configure, we 13261 # need to make the FD available again. 13262 if test "$no_create" != yes; then 13263 ac_cs_success=: 13264 ac_config_status_args= 13265 test "$silent" = yes && 13266 ac_config_status_args="$ac_config_status_args --quiet" 13267 exec 5>/dev/null 13268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13269 exec 5>>config.log 13270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13271 # would make configure fail if this is the last instruction. 13272 $ac_cs_success || as_fn_exit 1 13273 fi 13274 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13276 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13277 fi 13278 13279 13280