configure revision 9d6fedf0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xorgproto 2019.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560as_awk_strverscmp=' 561 # Use only awk features that work with 7th edition Unix awk (1978). 562 # My, what an old awk you have, Mr. Solaris! 563 END { 564 while (length(v1) && length(v2)) { 565 # Set d1 to be the next thing to compare from v1, and likewise for d2. 566 # Normally this is a single character, but if v1 and v2 contain digits, 567 # compare them as integers and fractions as strverscmp does. 568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 569 # Split v1 and v2 into their leading digit string components d1 and d2, 570 # and advance v1 and v2 past the leading digit strings. 571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 575 if (d1 ~ /^0/) { 576 if (d2 ~ /^0/) { 577 # Compare two fractions. 578 while (d1 ~ /^0/ && d2 ~ /^0/) { 579 d1 = substr(d1, 2); len1-- 580 d2 = substr(d2, 2); len2-- 581 } 582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 583 # The two components differ in length, and the common prefix 584 # contains only leading zeros. Consider the longer to be less. 585 d1 = -len1 586 d2 = -len2 587 } else { 588 # Otherwise, compare as strings. 589 d1 = "x" d1 590 d2 = "x" d2 591 } 592 } else { 593 # A fraction is less than an integer. 594 exit 1 595 } 596 } else { 597 if (d2 ~ /^0/) { 598 # An integer is greater than a fraction. 599 exit 2 600 } else { 601 # Compare two integers. 602 d1 += 0 603 d2 += 0 604 } 605 } 606 } else { 607 # The normal case, without worrying about digits. 608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 610 } 611 if (d1 < d2) exit 1 612 if (d1 > d2) exit 2 613 } 614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 615 # which mishandles some comparisons of empty strings to integers. 616 if (length(v2)) exit 1 617 if (length(v1)) exit 2 618 } 619' 620 621test -n "$DJDIR" || exec 7<&0 </dev/null 622exec 6>&1 623 624# Name of the host. 625# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 626# so uname gets run too. 627ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 628 629# 630# Initializations. 631# 632ac_default_prefix=/usr/local 633ac_clean_files= 634ac_config_libobj_dir=. 635LIBOBJS= 636cross_compiling=no 637subdirs= 638MFLAGS= 639MAKEFLAGS= 640 641# Identity of this package. 642PACKAGE_NAME='xorgproto' 643PACKAGE_TARNAME='xorgproto' 644PACKAGE_VERSION='2019.2' 645PACKAGE_STRING='xorgproto 2019.2' 646PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues' 647PACKAGE_URL='' 648 649# Factoring default headers for most tests. 650ac_includes_default="\ 651#include <stdio.h> 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef STDC_HEADERS 659# include <stdlib.h> 660# include <stddef.h> 661#else 662# ifdef HAVE_STDLIB_H 663# include <stdlib.h> 664# endif 665#endif 666#ifdef HAVE_STRING_H 667# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 668# include <memory.h> 669# endif 670# include <string.h> 671#endif 672#ifdef HAVE_STRINGS_H 673# include <strings.h> 674#endif 675#ifdef HAVE_INTTYPES_H 676# include <inttypes.h> 677#endif 678#ifdef HAVE_STDINT_H 679# include <stdint.h> 680#endif 681#ifdef HAVE_UNISTD_H 682# include <unistd.h> 683#endif" 684 685ac_subst_vars='am__EXEEXT_FALSE 686am__EXEEXT_TRUE 687LTLIBOBJS 688LIBOBJS 689USE_FDS_BITS 690LEGACY_FALSE 691LEGACY_TRUE 692HAVE_STYLESHEETS_FALSE 693HAVE_STYLESHEETS_TRUE 694XSL_STYLESHEET 695STYLESHEET_SRCDIR 696XORG_SGML_PATH 697HAVE_XSLTPROC_FALSE 698HAVE_XSLTPROC_TRUE 699XSLTPROC 700HAVE_FOP_FALSE 701HAVE_FOP_TRUE 702FOP 703HAVE_XMLTO_FALSE 704HAVE_XMLTO_TRUE 705HAVE_XMLTO_TEXT_FALSE 706HAVE_XMLTO_TEXT_TRUE 707XMLTO 708ENABLE_SPECS_FALSE 709ENABLE_SPECS_TRUE 710MAN_SUBSTS 711XORG_MAN_PAGE 712ADMIN_MAN_DIR 713DRIVER_MAN_DIR 714MISC_MAN_DIR 715FILE_MAN_DIR 716LIB_MAN_DIR 717APP_MAN_DIR 718ADMIN_MAN_SUFFIX 719DRIVER_MAN_SUFFIX 720MISC_MAN_SUFFIX 721FILE_MAN_SUFFIX 722LIB_MAN_SUFFIX 723APP_MAN_SUFFIX 724SED 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733INSTALL_CMD 734PKG_CONFIG_LIBDIR 735PKG_CONFIG_PATH 736PKG_CONFIG 737CHANGELOG_CMD 738STRICT_CFLAGS 739CWARNFLAGS 740BASE_CFLAGS 741EGREP 742GREP 743CPP 744am__fastdepCC_FALSE 745am__fastdepCC_TRUE 746CCDEPMODE 747am__nodep 748AMDEPBACKSLASH 749AMDEP_FALSE 750AMDEP_TRUE 751am__include 752DEPDIR 753OBJEXT 754EXEEXT 755ac_ct_CC 756CPPFLAGS 757LDFLAGS 758CFLAGS 759CC 760AM_BACKSLASH 761AM_DEFAULT_VERBOSITY 762AM_DEFAULT_V 763AM_V 764am__untar 765am__tar 766AMTAR 767am__leading_dot 768SET_MAKE 769AWK 770mkdir_p 771MKDIR_P 772INSTALL_STRIP_PROGRAM 773STRIP 774install_sh 775MAKEINFO 776AUTOHEADER 777AUTOMAKE 778AUTOCONF 779ACLOCAL 780VERSION 781PACKAGE 782CYGPATH_W 783am__isrc 784INSTALL_DATA 785INSTALL_SCRIPT 786INSTALL_PROGRAM 787target_alias 788host_alias 789build_alias 790LIBS 791ECHO_T 792ECHO_N 793ECHO_C 794DEFS 795mandir 796localedir 797libdir 798psdir 799pdfdir 800dvidir 801htmldir 802infodir 803docdir 804oldincludedir 805includedir 806localstatedir 807sharedstatedir 808sysconfdir 809datadir 810datarootdir 811libexecdir 812sbindir 813bindir 814program_transform_name 815prefix 816exec_prefix 817PACKAGE_URL 818PACKAGE_BUGREPORT 819PACKAGE_STRING 820PACKAGE_VERSION 821PACKAGE_TARNAME 822PACKAGE_NAME 823PATH_SEPARATOR 824SHELL 825am__quote' 826ac_subst_files='' 827ac_user_opts=' 828enable_option_checking 829enable_silent_rules 830enable_dependency_tracking 831enable_selective_werror 832enable_strict_compilation 833enable_specs 834with_xmlto 835with_fop 836with_xsltproc 837enable_legacy 838' 839 ac_precious_vars='build_alias 840host_alias 841target_alias 842CC 843CFLAGS 844LDFLAGS 845LIBS 846CPPFLAGS 847CPP 848PKG_CONFIG 849PKG_CONFIG_PATH 850PKG_CONFIG_LIBDIR 851XMLTO 852FOP 853XSLTPROC' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 # Accept the important Cygnus configure options, so we can diagnose typos. 922 923 case $ac_dashdash$ac_option in 924 --) 925 ac_dashdash=yes ;; 926 927 -bindir | --bindir | --bindi | --bind | --bin | --bi) 928 ac_prev=bindir ;; 929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 930 bindir=$ac_optarg ;; 931 932 -build | --build | --buil | --bui | --bu) 933 ac_prev=build_alias ;; 934 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 935 build_alias=$ac_optarg ;; 936 937 -cache-file | --cache-file | --cache-fil | --cache-fi \ 938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 939 ac_prev=cache_file ;; 940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 942 cache_file=$ac_optarg ;; 943 944 --config-cache | -C) 945 cache_file=config.cache ;; 946 947 -datadir | --datadir | --datadi | --datad) 948 ac_prev=datadir ;; 949 -datadir=* | --datadir=* | --datadi=* | --datad=*) 950 datadir=$ac_optarg ;; 951 952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 953 | --dataroo | --dataro | --datar) 954 ac_prev=datarootdir ;; 955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 957 datarootdir=$ac_optarg ;; 958 959 -disable-* | --disable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=no ;; 974 975 -docdir | --docdir | --docdi | --doc | --do) 976 ac_prev=docdir ;; 977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 978 docdir=$ac_optarg ;; 979 980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 981 ac_prev=dvidir ;; 982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 983 dvidir=$ac_optarg ;; 984 985 -enable-* | --enable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=\$ac_optarg ;; 1000 1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1003 | --exec | --exe | --ex) 1004 ac_prev=exec_prefix ;; 1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1007 | --exec=* | --exe=* | --ex=*) 1008 exec_prefix=$ac_optarg ;; 1009 1010 -gas | --gas | --ga | --g) 1011 # Obsolete; use --with-gas. 1012 with_gas=yes ;; 1013 1014 -help | --help | --hel | --he | -h) 1015 ac_init_help=long ;; 1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1017 ac_init_help=recursive ;; 1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1019 ac_init_help=short ;; 1020 1021 -host | --host | --hos | --ho) 1022 ac_prev=host_alias ;; 1023 -host=* | --host=* | --hos=* | --ho=*) 1024 host_alias=$ac_optarg ;; 1025 1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1027 ac_prev=htmldir ;; 1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1029 | --ht=*) 1030 htmldir=$ac_optarg ;; 1031 1032 -includedir | --includedir | --includedi | --included | --include \ 1033 | --includ | --inclu | --incl | --inc) 1034 ac_prev=includedir ;; 1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1036 | --includ=* | --inclu=* | --incl=* | --inc=*) 1037 includedir=$ac_optarg ;; 1038 1039 -infodir | --infodir | --infodi | --infod | --info | --inf) 1040 ac_prev=infodir ;; 1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1042 infodir=$ac_optarg ;; 1043 1044 -libdir | --libdir | --libdi | --libd) 1045 ac_prev=libdir ;; 1046 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1047 libdir=$ac_optarg ;; 1048 1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1050 | --libexe | --libex | --libe) 1051 ac_prev=libexecdir ;; 1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1053 | --libexe=* | --libex=* | --libe=*) 1054 libexecdir=$ac_optarg ;; 1055 1056 -localedir | --localedir | --localedi | --localed | --locale) 1057 ac_prev=localedir ;; 1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1059 localedir=$ac_optarg ;; 1060 1061 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1062 | --localstate | --localstat | --localsta | --localst | --locals) 1063 ac_prev=localstatedir ;; 1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1066 localstatedir=$ac_optarg ;; 1067 1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1069 ac_prev=mandir ;; 1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1071 mandir=$ac_optarg ;; 1072 1073 -nfp | --nfp | --nf) 1074 # Obsolete; use --without-fp. 1075 with_fp=no ;; 1076 1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1078 | --no-cr | --no-c | -n) 1079 no_create=yes ;; 1080 1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1083 no_recursion=yes ;; 1084 1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1087 | --oldin | --oldi | --old | --ol | --o) 1088 ac_prev=oldincludedir ;; 1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1092 oldincludedir=$ac_optarg ;; 1093 1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1095 ac_prev=prefix ;; 1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1097 prefix=$ac_optarg ;; 1098 1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1100 | --program-pre | --program-pr | --program-p) 1101 ac_prev=program_prefix ;; 1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1104 program_prefix=$ac_optarg ;; 1105 1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1107 | --program-suf | --program-su | --program-s) 1108 ac_prev=program_suffix ;; 1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1111 program_suffix=$ac_optarg ;; 1112 1113 -program-transform-name | --program-transform-name \ 1114 | --program-transform-nam | --program-transform-na \ 1115 | --program-transform-n | --program-transform- \ 1116 | --program-transform | --program-transfor \ 1117 | --program-transfo | --program-transf \ 1118 | --program-trans | --program-tran \ 1119 | --progr-tra | --program-tr | --program-t) 1120 ac_prev=program_transform_name ;; 1121 -program-transform-name=* | --program-transform-name=* \ 1122 | --program-transform-nam=* | --program-transform-na=* \ 1123 | --program-transform-n=* | --program-transform-=* \ 1124 | --program-transform=* | --program-transfor=* \ 1125 | --program-transfo=* | --program-transf=* \ 1126 | --program-trans=* | --program-tran=* \ 1127 | --progr-tra=* | --program-tr=* | --program-t=*) 1128 program_transform_name=$ac_optarg ;; 1129 1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1131 ac_prev=pdfdir ;; 1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1133 pdfdir=$ac_optarg ;; 1134 1135 -psdir | --psdir | --psdi | --psd | --ps) 1136 ac_prev=psdir ;; 1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1138 psdir=$ac_optarg ;; 1139 1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1141 | -silent | --silent | --silen | --sile | --sil) 1142 silent=yes ;; 1143 1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1145 ac_prev=sbindir ;; 1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1147 | --sbi=* | --sb=*) 1148 sbindir=$ac_optarg ;; 1149 1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1152 | --sharedst | --shareds | --shared | --share | --shar \ 1153 | --sha | --sh) 1154 ac_prev=sharedstatedir ;; 1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1158 | --sha=* | --sh=*) 1159 sharedstatedir=$ac_optarg ;; 1160 1161 -site | --site | --sit) 1162 ac_prev=site ;; 1163 -site=* | --site=* | --sit=*) 1164 site=$ac_optarg ;; 1165 1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1167 ac_prev=srcdir ;; 1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1169 srcdir=$ac_optarg ;; 1170 1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1172 | --syscon | --sysco | --sysc | --sys | --sy) 1173 ac_prev=sysconfdir ;; 1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1176 sysconfdir=$ac_optarg ;; 1177 1178 -target | --target | --targe | --targ | --tar | --ta | --t) 1179 ac_prev=target_alias ;; 1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1181 target_alias=$ac_optarg ;; 1182 1183 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1184 verbose=yes ;; 1185 1186 -version | --version | --versio | --versi | --vers | -V) 1187 ac_init_version=: ;; 1188 1189 -with-* | --with-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: $ac_useropt" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198"with_$ac_useropt" 1199"*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=\$ac_optarg ;; 1204 1205 -without-* | --without-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: $ac_useropt" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=no ;; 1220 1221 --x) 1222 # Obsolete; use --with-x. 1223 with_x=yes ;; 1224 1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1226 | --x-incl | --x-inc | --x-in | --x-i) 1227 ac_prev=x_includes ;; 1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1230 x_includes=$ac_optarg ;; 1231 1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1234 ac_prev=x_libraries ;; 1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1237 x_libraries=$ac_optarg ;; 1238 1239 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1240Try \`$0 --help' for more information" 1241 ;; 1242 1243 *=*) 1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1245 # Reject names that are not valid shell variable names. 1246 case $ac_envvar in #( 1247 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1249 esac 1250 eval $ac_envvar=\$ac_optarg 1251 export $ac_envvar ;; 1252 1253 *) 1254 # FIXME: should be removed in autoconf 3.0. 1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1259 ;; 1260 1261 esac 1262done 1263 1264if test -n "$ac_prev"; then 1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1266 as_fn_error $? "missing argument to $ac_option" 1267fi 1268 1269if test -n "$ac_unrecognized_opts"; then 1270 case $enable_option_checking in 1271 no) ;; 1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1274 esac 1275fi 1276 1277# Check all directory arguments for consistency. 1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir 1282do 1283 eval ac_val=\$$ac_var 1284 # Remove trailing slashes. 1285 case $ac_val in 1286 */ ) 1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1288 eval $ac_var=\$ac_val;; 1289 esac 1290 # Be sure to have absolute directory names. 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 elif test "x$build_alias" != "x$host_alias"; then 1310 cross_compiling=yes 1311 fi 1312fi 1313 1314ac_tool_prefix= 1315test -n "$host_alias" && ac_tool_prefix=$host_alias- 1316 1317test "$silent" = yes && exec 6>/dev/null 1318 1319 1320ac_pwd=`pwd` && test -n "$ac_pwd" && 1321ac_ls_di=`ls -di .` && 1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1323 as_fn_error $? "working directory cannot be determined" 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 as_fn_error $? "pwd does not report name of working directory" 1326 1327 1328# Find the source files, if location was not specified. 1329if test -z "$srcdir"; then 1330 ac_srcdir_defaulted=yes 1331 # Try the directory containing this script, then the parent directory. 1332 ac_confdir=`$as_dirname -- "$as_myself" || 1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1334 X"$as_myself" : 'X\(//\)[^/]' \| \ 1335 X"$as_myself" : 'X\(//\)$' \| \ 1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1337$as_echo X"$as_myself" | 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)[^/].*/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\).*/{ 1351 s//\1/ 1352 q 1353 } 1354 s/.*/./; q'` 1355 srcdir=$ac_confdir 1356 if test ! -r "$srcdir/$ac_unique_file"; then 1357 srcdir=.. 1358 fi 1359else 1360 ac_srcdir_defaulted=no 1361fi 1362if test ! -r "$srcdir/$ac_unique_file"; then 1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1365fi 1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1367ac_abs_confdir=`( 1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1369 pwd)` 1370# When building in place, set srcdir=. 1371if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373fi 1374# Remove unnecessary trailing slashes from srcdir. 1375# Double slashes in file names in object file debugging info 1376# mess up M-x gdb in Emacs. 1377case $srcdir in 1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379esac 1380for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385done 1386 1387# 1388# Report the --help message. 1389# 1390if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394\`configure' configures xorgproto 2019.2 to adapt to many kinds of systems. 1395 1396Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401Defaults for the options are specified in brackets. 1402 1403Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking ...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420By default, \`make install' will install all the files in 1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423for instance \`--prefix=\$HOME'. 1424 1425For better control, use the options below. 1426 1427Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root [DATAROOTDIR/doc/xorgproto] 1443 --htmldir=DIR html documentation [DOCDIR] 1444 --dvidir=DIR dvi documentation [DOCDIR] 1445 --pdfdir=DIR pdf documentation [DOCDIR] 1446 --psdir=DIR ps documentation [DOCDIR] 1447_ACEOF 1448 1449 cat <<\_ACEOF 1450 1451Program names: 1452 --program-prefix=PREFIX prepend PREFIX to installed program names 1453 --program-suffix=SUFFIX append SUFFIX to installed program names 1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1455 1456System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459_ACEOF 1460fi 1461 1462if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of xorgproto 2019.2:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468Optional Features: 1469 --disable-option-checking ignore unrecognized --enable/--with options 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-silent-rules less verbose build output (undo: "make V=1") 1473 --disable-silent-rules verbose build output (undo: "make V=0") 1474 --enable-dependency-tracking 1475 do not reject slow dependency extractors 1476 --disable-dependency-tracking 1477 speeds up one-time build 1478 --disable-selective-werror 1479 Turn off selective compiler errors. (default: 1480 enabled) 1481 --enable-strict-compilation 1482 Enable all warnings from compiler and make them 1483 errors (default: disabled) 1484 --enable-specs Enable building the specs (default: yes) 1485 --enable-legacy Install legacy protocol headers (default: false) 1486 1487Optional Packages: 1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1490 --with-xmlto Use xmlto to regenerate documentation (default: 1491 auto) 1492 --with-fop Use fop to regenerate documentation (default: auto) 1493 --with-xsltproc Use xsltproc for the transformation of XML documents 1494 (default: auto) 1495 1496Some influential environment variables: 1497 CC C compiler command 1498 CFLAGS C compiler flags 1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1500 nonstandard directory <lib dir> 1501 LIBS libraries to pass to the linker, e.g. -l<library> 1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1503 you have headers in a nonstandard directory <include dir> 1504 CPP C preprocessor 1505 PKG_CONFIG path to pkg-config utility 1506 PKG_CONFIG_PATH 1507 directories to add to pkg-config's search path 1508 PKG_CONFIG_LIBDIR 1509 path overriding pkg-config's built-in search path 1510 XMLTO Path to xmlto command 1511 FOP Path to fop command 1512 XSLTPROC Path to xsltproc command 1513 1514Use these variables to override the choices made by `configure' or to help 1515it to find libraries and programs with nonstandard names/locations. 1516 1517Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>. 1518_ACEOF 1519ac_status=$? 1520fi 1521 1522if test "$ac_init_help" = "recursive"; then 1523 # If there are subdirs, report their specific --help. 1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1525 test -d "$ac_dir" || 1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1527 continue 1528 ac_builddir=. 1529 1530case "$ac_dir" in 1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532*) 1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1534 # A ".." for each directory in $ac_dir_suffix. 1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1536 case $ac_top_builddir_sub in 1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1539 esac ;; 1540esac 1541ac_abs_top_builddir=$ac_pwd 1542ac_abs_builddir=$ac_pwd$ac_dir_suffix 1543# for backward compatibility: 1544ac_top_builddir=$ac_top_build_prefix 1545 1546case $srcdir in 1547 .) # We are building in place. 1548 ac_srcdir=. 1549 ac_top_srcdir=$ac_top_builddir_sub 1550 ac_abs_top_srcdir=$ac_pwd ;; 1551 [\\/]* | ?:[\\/]* ) # Absolute name. 1552 ac_srcdir=$srcdir$ac_dir_suffix; 1553 ac_top_srcdir=$srcdir 1554 ac_abs_top_srcdir=$srcdir ;; 1555 *) # Relative name. 1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1557 ac_top_srcdir=$ac_top_build_prefix$srcdir 1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1559esac 1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1561 1562 cd "$ac_dir" || { ac_status=$?; continue; } 1563 # Check for guested configure. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575fi 1576 1577test -n "$ac_init_help" && exit $ac_status 1578if $ac_init_version; then 1579 cat <<\_ACEOF 1580xorgproto configure 2019.2 1581generated by GNU Autoconf 2.69 1582 1583Copyright (C) 2012 Free Software Foundation, Inc. 1584This configure script is free software; the Free Software Foundation 1585gives unlimited permission to copy, distribute and modify it. 1586_ACEOF 1587 exit 1588fi 1589 1590## ------------------------ ## 1591## Autoconf initialization. ## 1592## ------------------------ ## 1593 1594# ac_fn_c_try_compile LINENO 1595# -------------------------- 1596# Try to compile conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_c_try_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext 1601 if { { ac_try="$ac_compile" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext; then : 1620 ac_retval=0 1621else 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=1 1626fi 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 as_fn_set_status $ac_retval 1629 1630} # ac_fn_c_try_compile 1631 1632# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1633# --------------------------------------------- 1634# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1635# accordingly. 1636ac_fn_c_check_decl () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 as_decl_name=`echo $2|sed 's/ *(.*//'` 1640 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1642$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1643if eval \${$3+:} false; then : 1644 $as_echo_n "(cached) " >&6 1645else 1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648$4 1649int 1650main () 1651{ 1652#ifndef $as_decl_name 1653#ifdef __cplusplus 1654 (void) $as_decl_use; 1655#else 1656 (void) $as_decl_name; 1657#endif 1658#endif 1659 1660 ; 1661 return 0; 1662} 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO"; then : 1665 eval "$3=yes" 1666else 1667 eval "$3=no" 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670fi 1671eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673$as_echo "$ac_res" >&6; } 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_decl 1677 1678# ac_fn_c_try_cpp LINENO 1679# ---------------------- 1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1681ac_fn_c_try_cpp () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_cpp conftest.$ac_ext" 1685case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1692 ac_status=$? 1693 if test -s conftest.err; then 1694 grep -v '^ *+' conftest.err >conftest.er1 1695 cat conftest.er1 >&5 1696 mv -f conftest.er1 conftest.err 1697 fi 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; } > conftest.i && { 1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1701 test ! -s conftest.err 1702 }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_cpp 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_link LINENO 1789# ----------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_link () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest$ac_exeext 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest$ac_exeext && { 1814 test "$cross_compiling" = yes || 1815 test -x conftest$ac_exeext 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1826 # interfere with the next link command; also delete a directory that is 1827 # left behind by Apple's compiler. We do this before executing the actions. 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_link 1833 1834# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1835# ------------------------------------------------------- 1836# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1837# the include files in INCLUDES and setting the cache variable VAR 1838# accordingly. 1839ac_fn_c_check_header_mongrel () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if eval \${$3+:} false; then : 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844$as_echo_n "checking for $2... " >&6; } 1845if eval \${$3+:} false; then : 1846 $as_echo_n "(cached) " >&6 1847fi 1848eval ac_res=\$$3 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850$as_echo "$ac_res" >&6; } 1851else 1852 # Is the header compilable? 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1854$as_echo_n "checking $2 usability... " >&6; } 1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857$4 1858#include <$2> 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO"; then : 1861 ac_header_compiler=yes 1862else 1863 ac_header_compiler=no 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1867$as_echo "$ac_header_compiler" >&6; } 1868 1869# Is the header present? 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1871$as_echo_n "checking $2 presence... " >&6; } 1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874#include <$2> 1875_ACEOF 1876if ac_fn_c_try_cpp "$LINENO"; then : 1877 ac_header_preproc=yes 1878else 1879 ac_header_preproc=no 1880fi 1881rm -f conftest.err conftest.i conftest.$ac_ext 1882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1883$as_echo "$ac_header_preproc" >&6; } 1884 1885# So? What about this header? 1886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1887 yes:no: ) 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1889$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1891$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1892 ;; 1893 no:yes:* ) 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1895$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1897$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1899$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1901$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1904( $as_echo "## ------------------------------------------------------------------------- ## 1905## Report this to https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues ## 1906## ------------------------------------------------------------------------- ##" 1907 ) | sed "s/^/$as_me: WARNING: /" >&2 1908 ;; 1909esac 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 eval "$3=\$ac_header_compiler" 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920fi 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_header_mongrel 1924 1925# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1926# ---------------------------------------------------- 1927# Tries to find if the field MEMBER exists in type AGGR, after including 1928# INCLUDES, setting cache variable VAR accordingly. 1929ac_fn_c_check_member () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1933$as_echo_n "checking for $2.$3... " >&6; } 1934if eval \${$4+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936else 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$5 1940int 1941main () 1942{ 1943static $2 ac_aggr; 1944if (ac_aggr.$3) 1945return 0; 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 eval "$4=yes" 1952else 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$5 1956int 1957main () 1958{ 1959static $2 ac_aggr; 1960if (sizeof ac_aggr.$3) 1961return 0; 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 eval "$4=yes" 1968else 1969 eval "$4=no" 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974fi 1975eval ac_res=\$$4 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 1980} # ac_fn_c_check_member 1981cat >config.log <<_ACEOF 1982This file contains any messages produced by compilers while 1983running configure, to aid debugging if configure makes a mistake. 1984 1985It was created by xorgproto $as_me 2019.2, which was 1986generated by GNU Autoconf 2.69. Invocation command line was 1987 1988 $ $0 $@ 1989 1990_ACEOF 1991exec 5>>config.log 1992{ 1993cat <<_ASUNAME 1994## --------- ## 1995## Platform. ## 1996## --------- ## 1997 1998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1999uname -m = `(uname -m) 2>/dev/null || echo unknown` 2000uname -r = `(uname -r) 2>/dev/null || echo unknown` 2001uname -s = `(uname -s) 2>/dev/null || echo unknown` 2002uname -v = `(uname -v) 2>/dev/null || echo unknown` 2003 2004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2005/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2006 2007/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2008/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2010/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2011/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2012/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2013/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2014 2015_ASUNAME 2016 2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2018for as_dir in $PATH 2019do 2020 IFS=$as_save_IFS 2021 test -z "$as_dir" && as_dir=. 2022 $as_echo "PATH: $as_dir" 2023 done 2024IFS=$as_save_IFS 2025 2026} >&5 2027 2028cat >&5 <<_ACEOF 2029 2030 2031## ----------- ## 2032## Core tests. ## 2033## ----------- ## 2034 2035_ACEOF 2036 2037 2038# Keep a trace of the command line. 2039# Strip out --no-create and --no-recursion so they do not pile up. 2040# Strip out --silent because we don't want to record it for future runs. 2041# Also quote any args containing shell meta-characters. 2042# Make two passes to allow for proper duplicate-argument suppression. 2043ac_configure_args= 2044ac_configure_args0= 2045ac_configure_args1= 2046ac_must_keep_next=false 2047for ac_pass in 1 2 2048do 2049 for ac_arg 2050 do 2051 case $ac_arg in 2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2054 | -silent | --silent | --silen | --sile | --sil) 2055 continue ;; 2056 *\'*) 2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2058 esac 2059 case $ac_pass in 2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2061 2) 2062 as_fn_append ac_configure_args1 " '$ac_arg'" 2063 if test $ac_must_keep_next = true; then 2064 ac_must_keep_next=false # Got value, back to normal. 2065 else 2066 case $ac_arg in 2067 *=* | --config-cache | -C | -disable-* | --disable-* \ 2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2070 | -with-* | --with-* | -without-* | --without-* | --x) 2071 case "$ac_configure_args0 " in 2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2073 esac 2074 ;; 2075 -* ) ac_must_keep_next=true ;; 2076 esac 2077 fi 2078 as_fn_append ac_configure_args " '$ac_arg'" 2079 ;; 2080 esac 2081 done 2082done 2083{ ac_configure_args0=; unset ac_configure_args0;} 2084{ ac_configure_args1=; unset ac_configure_args1;} 2085 2086# When interrupted or exit'd, cleanup temporary files, and complete 2087# config.log. We remove comments because anyway the quotes in there 2088# would cause problems or look ugly. 2089# WARNING: Use '\'' to represent an apostrophe within the trap. 2090# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2091trap 'exit_status=$? 2092 # Save into config.log some information that might help in debugging. 2093 { 2094 echo 2095 2096 $as_echo "## ---------------- ## 2097## Cache variables. ## 2098## ---------------- ##" 2099 echo 2100 # The following way of writing the cache mishandles newlines in values, 2101( 2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in #( 2105 *${as_nl}*) 2106 case $ac_var in #( 2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2108$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2109 esac 2110 case $ac_var in #( 2111 _ | IFS | as_nl) ;; #( 2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2113 *) { eval $ac_var=; unset $ac_var;} ;; 2114 esac ;; 2115 esac 2116 done 2117 (set) 2>&1 | 2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2119 *${as_nl}ac_space=\ *) 2120 sed -n \ 2121 "s/'\''/'\''\\\\'\'''\''/g; 2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2123 ;; #( 2124 *) 2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2126 ;; 2127 esac | 2128 sort 2129) 2130 echo 2131 2132 $as_echo "## ----------------- ## 2133## Output variables. ## 2134## ----------------- ##" 2135 echo 2136 for ac_var in $ac_subst_vars 2137 do 2138 eval ac_val=\$$ac_var 2139 case $ac_val in 2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2141 esac 2142 $as_echo "$ac_var='\''$ac_val'\''" 2143 done | sort 2144 echo 2145 2146 if test -n "$ac_subst_files"; then 2147 $as_echo "## ------------------- ## 2148## File substitutions. ## 2149## ------------------- ##" 2150 echo 2151 for ac_var in $ac_subst_files 2152 do 2153 eval ac_val=\$$ac_var 2154 case $ac_val in 2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2156 esac 2157 $as_echo "$ac_var='\''$ac_val'\''" 2158 done | sort 2159 echo 2160 fi 2161 2162 if test -s confdefs.h; then 2163 $as_echo "## ----------- ## 2164## confdefs.h. ## 2165## ----------- ##" 2166 echo 2167 cat confdefs.h 2168 echo 2169 fi 2170 test "$ac_signal" != 0 && 2171 $as_echo "$as_me: caught signal $ac_signal" 2172 $as_echo "$as_me: exit $exit_status" 2173 } >&5 2174 rm -f core *.core core.conftest.* && 2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2176 exit $exit_status 2177' 0 2178for ac_signal in 1 2 13 15; do 2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2180done 2181ac_signal=0 2182 2183# confdefs.h avoids OS command line length limits that DEFS can exceed. 2184rm -f -r conftest* confdefs.h 2185 2186$as_echo "/* confdefs.h */" > confdefs.h 2187 2188# Predefined preprocessor variables. 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_NAME "$PACKAGE_NAME" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_VERSION "$PACKAGE_VERSION" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_STRING "$PACKAGE_STRING" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2208_ACEOF 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_URL "$PACKAGE_URL" 2212_ACEOF 2213 2214 2215# Let the site file select an alternate cache file if it wants to. 2216# Prefer an explicitly selected file to automatically selected ones. 2217ac_site_file1=NONE 2218ac_site_file2=NONE 2219if test -n "$CONFIG_SITE"; then 2220 # We do not want a PATH search for config.site. 2221 case $CONFIG_SITE in #(( 2222 -*) ac_site_file1=./$CONFIG_SITE;; 2223 */*) ac_site_file1=$CONFIG_SITE;; 2224 *) ac_site_file1=./$CONFIG_SITE;; 2225 esac 2226elif test "x$prefix" != xNONE; then 2227 ac_site_file1=$prefix/share/config.site 2228 ac_site_file2=$prefix/etc/config.site 2229else 2230 ac_site_file1=$ac_default_prefix/share/config.site 2231 ac_site_file2=$ac_default_prefix/etc/config.site 2232fi 2233for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2234do 2235 test "x$ac_site_file" = xNONE && continue 2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2238$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2239 sed 's/^/| /' "$ac_site_file" >&5 2240 . "$ac_site_file" \ 2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2243as_fn_error $? "failed to load site script $ac_site_file 2244See \`config.log' for more details" "$LINENO" 5; } 2245 fi 2246done 2247 2248if test -r "$cache_file"; then 2249 # Some versions of bash will fail to source /dev/null (special files 2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2253$as_echo "$as_me: loading cache $cache_file" >&6;} 2254 case $cache_file in 2255 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2256 *) . "./$cache_file";; 2257 esac 2258 fi 2259else 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2261$as_echo "$as_me: creating cache $cache_file" >&6;} 2262 >$cache_file 2263fi 2264 2265# Check that the precious variables saved in the cache have kept the same 2266# value. 2267ac_cache_corrupted=false 2268for ac_var in $ac_precious_vars; do 2269 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2270 eval ac_new_set=\$ac_env_${ac_var}_set 2271 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2272 eval ac_new_val=\$ac_env_${ac_var}_value 2273 case $ac_old_set,$ac_new_set in 2274 set,) 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2276$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2277 ac_cache_corrupted=: ;; 2278 ,set) 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2280$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2281 ac_cache_corrupted=: ;; 2282 ,);; 2283 *) 2284 if test "x$ac_old_val" != "x$ac_new_val"; then 2285 # differences in whitespace do not lead to failure. 2286 ac_old_val_w=`echo x $ac_old_val` 2287 ac_new_val_w=`echo x $ac_new_val` 2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2290$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2291 ac_cache_corrupted=: 2292 else 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2294$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2295 eval $ac_var=\$ac_old_val 2296 fi 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2298$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2300$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2301 fi;; 2302 esac 2303 # Pass precious variables to config.status. 2304 if test "$ac_new_set" = set; then 2305 case $ac_new_val in 2306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2307 *) ac_arg=$ac_var=$ac_new_val ;; 2308 esac 2309 case " $ac_configure_args " in 2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2311 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2312 esac 2313 fi 2314done 2315if $ac_cache_corrupted; then 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2319$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2320 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2321fi 2322## -------------------- ## 2323## Main body of script. ## 2324## -------------------- ## 2325 2326ac_ext=c 2327ac_cpp='$CPP $CPPFLAGS' 2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2330ac_compiler_gnu=$ac_cv_c_compiler_gnu 2331 2332 2333am__api_version='1.16' 2334 2335ac_aux_dir= 2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350done 2351if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353fi 2354 2355# These three variables are undocumented and unsupported, 2356# and are intended to be withdrawn in a future Autoconf release. 2357# They can cause serious problems if a builder's source tree is in a directory 2358# whose full name contains unusual characters. 2359ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364# Find a good install program. We prefer a C program (faster), 2365# so one script is as good as another. But avoid the broken or 2366# incompatible versions: 2367# SysV /etc/install, /usr/sbin/install 2368# SunOS /usr/etc/install 2369# IRIX /sbin/install 2370# AIX /bin/install 2371# AmigaOS /C/install, which installs bootblocks on floppy discs 2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2375# OS/2's system install, which has a completely different semantic 2376# ./install, which can be erroneously created by make from ./install.sh. 2377# Reject install programs that cannot install multiple files. 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2379$as_echo_n "checking for a BSD-compatible install... " >&6; } 2380if test -z "$INSTALL"; then 2381if ${ac_cv_path_install+:} false; then : 2382 $as_echo_n "(cached) " >&6 2383else 2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 # Account for people who put trailing slashes in PATH elements. 2390case $as_dir/ in #(( 2391 ./ | .// | /[cC]/* | \ 2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2394 /usr/ucb/* ) ;; 2395 *) 2396 # OSF1 and SCO ODT 3.0 have their own names for install. 2397 # Don't use installbsd from OSF since it installs stuff as root 2398 # by default. 2399 for ac_prog in ginstall scoinst install; do 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2402 if test $ac_prog = install && 2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2404 # AIX install. It has an incompatible calling convention. 2405 : 2406 elif test $ac_prog = install && 2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2408 # program-specific install script used by HP pwplus--don't use. 2409 : 2410 else 2411 rm -rf conftest.one conftest.two conftest.dir 2412 echo one > conftest.one 2413 echo two > conftest.two 2414 mkdir conftest.dir 2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2416 test -s conftest.one && test -s conftest.two && 2417 test -s conftest.dir/conftest.one && 2418 test -s conftest.dir/conftest.two 2419 then 2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2421 break 3 2422 fi 2423 fi 2424 fi 2425 done 2426 done 2427 ;; 2428esac 2429 2430 done 2431IFS=$as_save_IFS 2432 2433rm -rf conftest.one conftest.two conftest.dir 2434 2435fi 2436 if test "${ac_cv_path_install+set}" = set; then 2437 INSTALL=$ac_cv_path_install 2438 else 2439 # As a last resort, use the slow shell script. Don't cache a 2440 # value for INSTALL within a source directory, because that will 2441 # break other packages using the cache if that directory is 2442 # removed, or if the value is a relative name. 2443 INSTALL=$ac_install_sh 2444 fi 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2447$as_echo "$INSTALL" >&6; } 2448 2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2450# It thinks the first close brace ends the variable substitution. 2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2452 2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2454 2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2456 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2458$as_echo_n "checking whether build environment is sane... " >&6; } 2459# Reject unsafe characters in $srcdir or the absolute working directory 2460# name. Accept space and tab only in the latter. 2461am_lf=' 2462' 2463case `pwd` in 2464 *[\\\"\#\$\&\'\`$am_lf]*) 2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2466esac 2467case $srcdir in 2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2469 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2470esac 2471 2472# Do 'set' in a subshell so we don't clobber the current shell's 2473# arguments. Must try -L first in case configure is actually a 2474# symlink; some systems play weird games with the mod time of symlinks 2475# (eg FreeBSD returns the mod time of the symlink's containing 2476# directory). 2477if ( 2478 am_has_slept=no 2479 for am_try in 1 2; do 2480 echo "timestamp, slept: $am_has_slept" > conftest.file 2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2482 if test "$*" = "X"; then 2483 # -L didn't work. 2484 set X `ls -t "$srcdir/configure" conftest.file` 2485 fi 2486 if test "$*" != "X $srcdir/configure conftest.file" \ 2487 && test "$*" != "X conftest.file $srcdir/configure"; then 2488 2489 # If neither matched, then we have a broken ls. This can happen 2490 # if, for instance, CONFIG_SHELL is bash and it inherits a 2491 # broken ls alias from the environment. This has actually 2492 # happened. Such a system could not be considered "sane". 2493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2494 alias in your environment" "$LINENO" 5 2495 fi 2496 if test "$2" = conftest.file || test $am_try -eq 2; then 2497 break 2498 fi 2499 # Just in case. 2500 sleep 1 2501 am_has_slept=yes 2502 done 2503 test "$2" = conftest.file 2504 ) 2505then 2506 # Ok. 2507 : 2508else 2509 as_fn_error $? "newly created file is older than distributed files! 2510Check your system clock" "$LINENO" 5 2511fi 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2513$as_echo "yes" >&6; } 2514# If we didn't sleep, we still need to ensure time stamps of config.status and 2515# generated files are strictly newer. 2516am_sleep_pid= 2517if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2518 ( sleep 1 ) & 2519 am_sleep_pid=$! 2520fi 2521 2522rm -f conftest.file 2523 2524test "$program_prefix" != NONE && 2525 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2526# Use a double $ so make ignores it. 2527test "$program_suffix" != NONE && 2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2529# Double any \ or $. 2530# By default was `s,x,x', remove it if useless. 2531ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2532program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2533 2534# Expand $ac_aux_dir to an absolute path. 2535am_aux_dir=`cd "$ac_aux_dir" && pwd` 2536 2537if test x"${MISSING+set}" != xset; then 2538 case $am_aux_dir in 2539 *\ * | *\ *) 2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2541 *) 2542 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2543 esac 2544fi 2545# Use eval to expand $SHELL 2546if eval "$MISSING --is-lightweight"; then 2547 am_missing_run="$MISSING " 2548else 2549 am_missing_run= 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2551$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2552fi 2553 2554if test x"${install_sh+set}" != xset; then 2555 case $am_aux_dir in 2556 *\ * | *\ *) 2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2558 *) 2559 install_sh="\${SHELL} $am_aux_dir/install-sh" 2560 esac 2561fi 2562 2563# Installed binaries are usually stripped using 'strip' when the user 2564# run "make install-strip". However 'strip' might not be the right 2565# tool to use in cross-compilation environments, therefore Automake 2566# will honor the 'STRIP' environment variable to overrule this program. 2567if test "$cross_compiling" != no; then 2568 if test -n "$ac_tool_prefix"; then 2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2570set dummy ${ac_tool_prefix}strip; ac_word=$2 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2572$as_echo_n "checking for $ac_word... " >&6; } 2573if ${ac_cv_prog_STRIP+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test -n "$STRIP"; then 2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2578else 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2588 break 2 2589 fi 2590done 2591 done 2592IFS=$as_save_IFS 2593 2594fi 2595fi 2596STRIP=$ac_cv_prog_STRIP 2597if test -n "$STRIP"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2599$as_echo "$STRIP" >&6; } 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603fi 2604 2605 2606fi 2607if test -z "$ac_cv_prog_STRIP"; then 2608 ac_ct_STRIP=$STRIP 2609 # Extract the first word of "strip", so it can be a program name with args. 2610set dummy strip; ac_word=$2 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2612$as_echo_n "checking for $ac_word... " >&6; } 2613if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 if test -n "$ac_ct_STRIP"; then 2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2626 ac_cv_prog_ac_ct_STRIP="strip" 2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631 done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2637if test -n "$ac_ct_STRIP"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2639$as_echo "$ac_ct_STRIP" >&6; } 2640else 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643fi 2644 2645 if test "x$ac_ct_STRIP" = x; then 2646 STRIP=":" 2647 else 2648 case $cross_compiling:$ac_tool_warned in 2649yes:) 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2652ac_tool_warned=yes ;; 2653esac 2654 STRIP=$ac_ct_STRIP 2655 fi 2656else 2657 STRIP="$ac_cv_prog_STRIP" 2658fi 2659 2660fi 2661INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2662 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2664$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2665if test -z "$MKDIR_P"; then 2666 if ${ac_cv_path_mkdir+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_prog in mkdir gmkdir; do 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2678 'mkdir (GNU coreutils) '* | \ 2679 'mkdir (coreutils) '* | \ 2680 'mkdir (fileutils) '4.1*) 2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2682 break 3;; 2683 esac 2684 done 2685 done 2686 done 2687IFS=$as_save_IFS 2688 2689fi 2690 2691 test -d ./--version && rmdir ./--version 2692 if test "${ac_cv_path_mkdir+set}" = set; then 2693 MKDIR_P="$ac_cv_path_mkdir -p" 2694 else 2695 # As a last resort, use the slow shell script. Don't cache a 2696 # value for MKDIR_P within a source directory, because that will 2697 # break other packages using the cache if that directory is 2698 # removed, or if the value is a relative name. 2699 MKDIR_P="$ac_install_sh -d" 2700 fi 2701fi 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2703$as_echo "$MKDIR_P" >&6; } 2704 2705for ac_prog in gawk mawk nawk awk 2706do 2707 # Extract the first word of "$ac_prog", so it can be a program name with args. 2708set dummy $ac_prog; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_AWK+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$AWK"; then 2715 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2724 ac_cv_prog_AWK="$ac_prog" 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734AWK=$ac_cv_prog_AWK 2735if test -n "$AWK"; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2737$as_echo "$AWK" >&6; } 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740$as_echo "no" >&6; } 2741fi 2742 2743 2744 test -n "$AWK" && break 2745done 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2748$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2749set x ${MAKE-make} 2750ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2751if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 cat >conftest.make <<\_ACEOF 2755SHELL = /bin/sh 2756all: 2757 @echo '@@@%%%=$(MAKE)=@@@%%%' 2758_ACEOF 2759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2760case `${MAKE-make} -f conftest.make 2>/dev/null` in 2761 *@@@%%%=?*=@@@%%%*) 2762 eval ac_cv_prog_make_${ac_make}_set=yes;; 2763 *) 2764 eval ac_cv_prog_make_${ac_make}_set=no;; 2765esac 2766rm -f conftest.make 2767fi 2768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2770$as_echo "yes" >&6; } 2771 SET_MAKE= 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775 SET_MAKE="MAKE=${MAKE-make}" 2776fi 2777 2778rm -rf .tst 2>/dev/null 2779mkdir .tst 2>/dev/null 2780if test -d .tst; then 2781 am__leading_dot=. 2782else 2783 am__leading_dot=_ 2784fi 2785rmdir .tst 2>/dev/null 2786 2787# Check whether --enable-silent-rules was given. 2788if test "${enable_silent_rules+set}" = set; then : 2789 enableval=$enable_silent_rules; 2790fi 2791 2792case $enable_silent_rules in # ((( 2793 yes) AM_DEFAULT_VERBOSITY=0;; 2794 no) AM_DEFAULT_VERBOSITY=1;; 2795 *) AM_DEFAULT_VERBOSITY=1;; 2796esac 2797am_make=${MAKE-make} 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2799$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2800if ${am_cv_make_support_nested_variables+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if $as_echo 'TRUE=$(BAR$(V)) 2804BAR0=false 2805BAR1=true 2806V=1 2807am__doit: 2808 @$(TRUE) 2809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2810 am_cv_make_support_nested_variables=yes 2811else 2812 am_cv_make_support_nested_variables=no 2813fi 2814fi 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2816$as_echo "$am_cv_make_support_nested_variables" >&6; } 2817if test $am_cv_make_support_nested_variables = yes; then 2818 AM_V='$(V)' 2819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2820else 2821 AM_V=$AM_DEFAULT_VERBOSITY 2822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2823fi 2824AM_BACKSLASH='\' 2825 2826if test "`cd $srcdir && pwd`" != "`pwd`"; then 2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2828 # is not polluted with repeated "-I." 2829 am__isrc=' -I$(srcdir)' 2830 # test to see if srcdir already configured 2831 if test -f $srcdir/config.status; then 2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2833 fi 2834fi 2835 2836# test whether we have cygpath 2837if test -z "$CYGPATH_W"; then 2838 if (cygpath --version) >/dev/null 2>/dev/null; then 2839 CYGPATH_W='cygpath -w' 2840 else 2841 CYGPATH_W=echo 2842 fi 2843fi 2844 2845 2846# Define the identity of the package. 2847 PACKAGE='xorgproto' 2848 VERSION='2019.2' 2849 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE "$PACKAGE" 2853_ACEOF 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define VERSION "$VERSION" 2858_ACEOF 2859 2860# Some tools Automake needs. 2861 2862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2863 2864 2865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2866 2867 2868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2869 2870 2871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2872 2873 2874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2875 2876# For better backward compatibility. To be removed once Automake 1.9.x 2877# dies out for good. For more background, see: 2878# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2879# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2880mkdir_p='$(MKDIR_P)' 2881 2882# We need awk for the "check" target (and possibly the TAP driver). The 2883# system "awk" is bad on some platforms. 2884# Always define AMTAR for backward compatibility. Yes, it's still used 2885# in the wild :-( We should find a proper way to deprecate it ... 2886AMTAR='$${TAR-tar}' 2887 2888 2889# We'll loop over all known methods to create a tar archive until one works. 2890_am_tools='gnutar pax cpio none' 2891 2892am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2893 2894 2895 2896 2897 2898 2899# POSIX will say in a future version that running "rm -f" with no argument 2900# is OK; and we want to be able to make that assumption in our Makefile 2901# recipes. So use an aggressive probe to check that the usage we want is 2902# actually supported "in the wild" to an acceptable degree. 2903# See automake bug#10828. 2904# To make any issue more visible, cause the running configure to be aborted 2905# by default if the 'rm' program in use doesn't match our expectations; the 2906# user can still override this though. 2907if rm -f && rm -fr && rm -rf; then : OK; else 2908 cat >&2 <<'END' 2909Oops! 2910 2911Your 'rm' program seems unable to run without file operands specified 2912on the command line, even when the '-f' option is present. This is contrary 2913to the behaviour of most rm programs out there, and not conforming with 2914the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2915 2916Please tell bug-automake@gnu.org about your system, including the value 2917of your $PATH and any error possibly output before this message. This 2918can help us improve future automake versions. 2919 2920END 2921 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2922 echo 'Configuration will proceed anyway, since you have set the' >&2 2923 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2924 echo >&2 2925 else 2926 cat >&2 <<'END' 2927Aborting the configuration process, to ensure you take notice of the issue. 2928 2929You can download and install GNU coreutils to get an 'rm' implementation 2930that behaves properly: <https://www.gnu.org/software/coreutils/>. 2931 2932If you want to complete the configuration process using your problematic 2933'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2934to "yes", and re-run configure. 2935 2936END 2937 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2938 fi 2939fi 2940 2941 2942# Require xorg-macros: XORG_DEFAULT_OPTIONS 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954DEPDIR="${am__leading_dot}deps" 2955 2956ac_config_commands="$ac_config_commands depfiles" 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2959$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2960cat > confinc.mk << 'END' 2961am__doit: 2962 @echo this is the am__doit target >confinc.out 2963.PHONY: am__doit 2964END 2965am__include="#" 2966am__quote= 2967# BSD make does it like this. 2968echo '.include "confinc.mk" # ignored' > confmf.BSD 2969# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2970echo 'include confinc.mk # ignored' > confmf.GNU 2971_am_result=no 2972for s in GNU BSD; do 2973 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2974 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); } 2978 case $?:`cat confinc.out 2>/dev/null` in #( 2979 '0:this is the am__doit target') : 2980 case $s in #( 2981 BSD) : 2982 am__include='.include' am__quote='"' ;; #( 2983 *) : 2984 am__include='include' am__quote='' ;; 2985esac ;; #( 2986 *) : 2987 ;; 2988esac 2989 if test "$am__include" != "#"; then 2990 _am_result="yes ($s style)" 2991 break 2992 fi 2993done 2994rm -f confinc.* confmf.* 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2996$as_echo "${_am_result}" >&6; } 2997 2998# Check whether --enable-dependency-tracking was given. 2999if test "${enable_dependency_tracking+set}" = set; then : 3000 enableval=$enable_dependency_tracking; 3001fi 3002 3003if test "x$enable_dependency_tracking" != xno; then 3004 am_depcomp="$ac_aux_dir/depcomp" 3005 AMDEPBACKSLASH='\' 3006 am__nodep='_no' 3007fi 3008 if test "x$enable_dependency_tracking" != xno; then 3009 AMDEP_TRUE= 3010 AMDEP_FALSE='#' 3011else 3012 AMDEP_TRUE='#' 3013 AMDEP_FALSE= 3014fi 3015 3016 3017ac_ext=c 3018ac_cpp='$CPP $CPPFLAGS' 3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3021ac_compiler_gnu=$ac_cv_c_compiler_gnu 3022if test -n "$ac_tool_prefix"; then 3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3024set dummy ${ac_tool_prefix}gcc; ac_word=$2 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026$as_echo_n "checking for $ac_word... " >&6; } 3027if ${ac_cv_prog_CC+:} false; then : 3028 $as_echo_n "(cached) " >&6 3029else 3030 if test -n "$CC"; then 3031 ac_cv_prog_CC="$CC" # Let the user override the test. 3032else 3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034for as_dir in $PATH 3035do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3040 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3042 break 2 3043 fi 3044done 3045 done 3046IFS=$as_save_IFS 3047 3048fi 3049fi 3050CC=$ac_cv_prog_CC 3051if test -n "$CC"; then 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3053$as_echo "$CC" >&6; } 3054else 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056$as_echo "no" >&6; } 3057fi 3058 3059 3060fi 3061if test -z "$ac_cv_prog_CC"; then 3062 ac_ct_CC=$CC 3063 # Extract the first word of "gcc", so it can be a program name with args. 3064set dummy gcc; ac_word=$2 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066$as_echo_n "checking for $ac_word... " >&6; } 3067if ${ac_cv_prog_ac_ct_CC+:} false; then : 3068 $as_echo_n "(cached) " >&6 3069else 3070 if test -n "$ac_ct_CC"; then 3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3072else 3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3074for as_dir in $PATH 3075do 3076 IFS=$as_save_IFS 3077 test -z "$as_dir" && as_dir=. 3078 for ac_exec_ext in '' $ac_executable_extensions; do 3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3080 ac_cv_prog_ac_ct_CC="gcc" 3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 break 2 3083 fi 3084done 3085 done 3086IFS=$as_save_IFS 3087 3088fi 3089fi 3090ac_ct_CC=$ac_cv_prog_ac_ct_CC 3091if test -n "$ac_ct_CC"; then 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3093$as_echo "$ac_ct_CC" >&6; } 3094else 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3096$as_echo "no" >&6; } 3097fi 3098 3099 if test "x$ac_ct_CC" = x; then 3100 CC="" 3101 else 3102 case $cross_compiling:$ac_tool_warned in 3103yes:) 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3106ac_tool_warned=yes ;; 3107esac 3108 CC=$ac_ct_CC 3109 fi 3110else 3111 CC="$ac_cv_prog_CC" 3112fi 3113 3114if test -z "$CC"; then 3115 if test -n "$ac_tool_prefix"; then 3116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3117set dummy ${ac_tool_prefix}cc; ac_word=$2 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if ${ac_cv_prog_CC+:} false; then : 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CC="${ac_tool_prefix}cc" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153 fi 3154fi 3155if test -z "$CC"; then 3156 # Extract the first word of "cc", so it can be a program name with args. 3157set dummy cc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$CC"; then 3164 ac_cv_prog_CC="$CC" # Let the user override the test. 3165else 3166 ac_prog_rejected=no 3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168for as_dir in $PATH 3169do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3175 ac_prog_rejected=yes 3176 continue 3177 fi 3178 ac_cv_prog_CC="cc" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186if test $ac_prog_rejected = yes; then 3187 # We found a bogon in the path, so make sure we never use it. 3188 set dummy $ac_cv_prog_CC 3189 shift 3190 if test $# != 0; then 3191 # We chose a different compiler from the bogus one. 3192 # However, it has the same basename, so the bogon will be chosen 3193 # first if we set CC to just the basename; use the full file name. 3194 shift 3195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3196 fi 3197fi 3198fi 3199fi 3200CC=$ac_cv_prog_CC 3201if test -n "$CC"; then 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3203$as_echo "$CC" >&6; } 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206$as_echo "no" >&6; } 3207fi 3208 3209 3210fi 3211if test -z "$CC"; then 3212 if test -n "$ac_tool_prefix"; then 3213 for ac_prog in cl.exe 3214 do 3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3216set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3218$as_echo_n "checking for $ac_word... " >&6; } 3219if ${ac_cv_prog_CC+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 if test -n "$CC"; then 3223 ac_cv_prog_CC="$CC" # Let the user override the test. 3224else 3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3226for as_dir in $PATH 3227do 3228 IFS=$as_save_IFS 3229 test -z "$as_dir" && as_dir=. 3230 for ac_exec_ext in '' $ac_executable_extensions; do 3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3234 break 2 3235 fi 3236done 3237 done 3238IFS=$as_save_IFS 3239 3240fi 3241fi 3242CC=$ac_cv_prog_CC 3243if test -n "$CC"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3245$as_echo "$CC" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252 test -n "$CC" && break 3253 done 3254fi 3255if test -z "$CC"; then 3256 ac_ct_CC=$CC 3257 for ac_prog in cl.exe 3258do 3259 # Extract the first word of "$ac_prog", so it can be a program name with args. 3260set dummy $ac_prog; ac_word=$2 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3262$as_echo_n "checking for $ac_word... " >&6; } 3263if ${ac_cv_prog_ac_ct_CC+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 if test -n "$ac_ct_CC"; then 3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3268else 3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3270for as_dir in $PATH 3271do 3272 IFS=$as_save_IFS 3273 test -z "$as_dir" && as_dir=. 3274 for ac_exec_ext in '' $ac_executable_extensions; do 3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3276 ac_cv_prog_ac_ct_CC="$ac_prog" 3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3278 break 2 3279 fi 3280done 3281 done 3282IFS=$as_save_IFS 3283 3284fi 3285fi 3286ac_ct_CC=$ac_cv_prog_ac_ct_CC 3287if test -n "$ac_ct_CC"; then 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3289$as_echo "$ac_ct_CC" >&6; } 3290else 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292$as_echo "no" >&6; } 3293fi 3294 3295 3296 test -n "$ac_ct_CC" && break 3297done 3298 3299 if test "x$ac_ct_CC" = x; then 3300 CC="" 3301 else 3302 case $cross_compiling:$ac_tool_warned in 3303yes:) 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3306ac_tool_warned=yes ;; 3307esac 3308 CC=$ac_ct_CC 3309 fi 3310fi 3311 3312fi 3313 3314 3315test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317as_fn_error $? "no acceptable C compiler found in \$PATH 3318See \`config.log' for more details" "$LINENO" 5; } 3319 3320# Provide some information about the compiler. 3321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3322set X $ac_compile 3323ac_compiler=$2 3324for ac_option in --version -v -V -qversion; do 3325 { { ac_try="$ac_compiler $ac_option >&5" 3326case "(($ac_try" in 3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328 *) ac_try_echo=$ac_try;; 3329esac 3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3331$as_echo "$ac_try_echo"; } >&5 3332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3333 ac_status=$? 3334 if test -s conftest.err; then 3335 sed '10a\ 3336... rest of stderr output deleted ... 3337 10q' conftest.err >conftest.er1 3338 cat conftest.er1 >&5 3339 fi 3340 rm -f conftest.er1 conftest.err 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; } 3343done 3344 3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347 3348int 3349main () 3350{ 3351 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356ac_clean_files_save=$ac_clean_files 3357ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3358# Try to create an executable without -o first, disregard a.out. 3359# It will help us diagnose broken compilers, and finding out an intuition 3360# of exeext. 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3362$as_echo_n "checking whether the C compiler works... " >&6; } 3363ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3364 3365# The possible output files: 3366ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3367 3368ac_rmfiles= 3369for ac_file in $ac_files 3370do 3371 case $ac_file in 3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3374 esac 3375done 3376rm -f $ac_rmfiles 3377 3378if { { ac_try="$ac_link_default" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3384$as_echo "$ac_try_echo"; } >&5 3385 (eval "$ac_link_default") 2>&5 3386 ac_status=$? 3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3388 test $ac_status = 0; }; then : 3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3390# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3391# in a Makefile. We should not override ac_cv_exeext if it was cached, 3392# so that the user can short-circuit this test for compilers unknown to 3393# Autoconf. 3394for ac_file in $ac_files '' 3395do 3396 test -f "$ac_file" || continue 3397 case $ac_file in 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3399 ;; 3400 [ab].out ) 3401 # We found the default executable, but exeext='' is most 3402 # certainly right. 3403 break;; 3404 *.* ) 3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3406 then :; else 3407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3408 fi 3409 # We set ac_cv_exeext here because the later test for it is not 3410 # safe: cross compilers may not add the suffix if given an `-o' 3411 # argument, so we may need to know it at that point already. 3412 # Even if this section looks crufty: it has the advantage of 3413 # actually working. 3414 break;; 3415 * ) 3416 break;; 3417 esac 3418done 3419test "$ac_cv_exeext" = no && ac_cv_exeext= 3420 3421else 3422 ac_file='' 3423fi 3424if test -z "$ac_file"; then : 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426$as_echo "no" >&6; } 3427$as_echo "$as_me: failed program was:" >&5 3428sed 's/^/| /' conftest.$ac_ext >&5 3429 3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432as_fn_error 77 "C compiler cannot create executables 3433See \`config.log' for more details" "$LINENO" 5; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3436$as_echo "yes" >&6; } 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3439$as_echo_n "checking for C compiler default output file name... " >&6; } 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3441$as_echo "$ac_file" >&6; } 3442ac_exeext=$ac_cv_exeext 3443 3444rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3445ac_clean_files=$ac_clean_files_save 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3447$as_echo_n "checking for suffix of executables... " >&6; } 3448if { { ac_try="$ac_link" 3449case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452esac 3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3454$as_echo "$ac_try_echo"; } >&5 3455 (eval "$ac_link") 2>&5 3456 ac_status=$? 3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3458 test $ac_status = 0; }; then : 3459 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3460# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3461# work properly (i.e., refer to `conftest.exe'), while it won't with 3462# `rm'. 3463for ac_file in conftest.exe conftest conftest.*; do 3464 test -f "$ac_file" || continue 3465 case $ac_file in 3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3467 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3468 break;; 3469 * ) break;; 3470 esac 3471done 3472else 3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3475as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3476See \`config.log' for more details" "$LINENO" 5; } 3477fi 3478rm -f conftest conftest$ac_cv_exeext 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3480$as_echo "$ac_cv_exeext" >&6; } 3481 3482rm -f conftest.$ac_ext 3483EXEEXT=$ac_cv_exeext 3484ac_exeext=$EXEEXT 3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487#include <stdio.h> 3488int 3489main () 3490{ 3491FILE *f = fopen ("conftest.out", "w"); 3492 return ferror (f) || fclose (f) != 0; 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498ac_clean_files="$ac_clean_files conftest.out" 3499# Check that the compiler produces executables we can run. If not, either 3500# the compiler is broken, or we cross compile. 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3502$as_echo_n "checking whether we are cross compiling... " >&6; } 3503if test "$cross_compiling" != yes; then 3504 { { ac_try="$ac_link" 3505case "(($ac_try" in 3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3507 *) ac_try_echo=$ac_try;; 3508esac 3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3510$as_echo "$ac_try_echo"; } >&5 3511 (eval "$ac_link") 2>&5 3512 ac_status=$? 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; } 3515 if { ac_try='./conftest$ac_cv_exeext' 3516 { { case "(($ac_try" in 3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3518 *) ac_try_echo=$ac_try;; 3519esac 3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3521$as_echo "$ac_try_echo"; } >&5 3522 (eval "$ac_try") 2>&5 3523 ac_status=$? 3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3525 test $ac_status = 0; }; }; then 3526 cross_compiling=no 3527 else 3528 if test "$cross_compiling" = maybe; then 3529 cross_compiling=yes 3530 else 3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3533as_fn_error $? "cannot run C compiled programs. 3534If you meant to cross compile, use \`--host'. 3535See \`config.log' for more details" "$LINENO" 5; } 3536 fi 3537 fi 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3540$as_echo "$cross_compiling" >&6; } 3541 3542rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3543ac_clean_files=$ac_clean_files_save 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3545$as_echo_n "checking for suffix of object files... " >&6; } 3546if ${ac_cv_objext+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551 3552int 3553main () 3554{ 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560rm -f conftest.o conftest.obj 3561if { { ac_try="$ac_compile" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567$as_echo "$ac_try_echo"; } >&5 3568 (eval "$ac_compile") 2>&5 3569 ac_status=$? 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; }; then : 3572 for ac_file in conftest.o conftest.obj conftest.*; do 3573 test -f "$ac_file" || continue; 3574 case $ac_file in 3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3577 break;; 3578 esac 3579done 3580else 3581 $as_echo "$as_me: failed program was:" >&5 3582sed 's/^/| /' conftest.$ac_ext >&5 3583 3584{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3586as_fn_error $? "cannot compute suffix of object files: cannot compile 3587See \`config.log' for more details" "$LINENO" 5; } 3588fi 3589rm -f conftest.$ac_cv_objext conftest.$ac_ext 3590fi 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3592$as_echo "$ac_cv_objext" >&6; } 3593OBJEXT=$ac_cv_objext 3594ac_objext=$OBJEXT 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3597if ${ac_cv_c_compiler_gnu+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602 3603int 3604main () 3605{ 3606#ifndef __GNUC__ 3607 choke me 3608#endif 3609 3610 ; 3611 return 0; 3612} 3613_ACEOF 3614if ac_fn_c_try_compile "$LINENO"; then : 3615 ac_compiler_gnu=yes 3616else 3617 ac_compiler_gnu=no 3618fi 3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620ac_cv_c_compiler_gnu=$ac_compiler_gnu 3621 3622fi 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3624$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3625if test $ac_compiler_gnu = yes; then 3626 GCC=yes 3627else 3628 GCC= 3629fi 3630ac_test_CFLAGS=${CFLAGS+set} 3631ac_save_CFLAGS=$CFLAGS 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3633$as_echo_n "checking whether $CC accepts -g... " >&6; } 3634if ${ac_cv_prog_cc_g+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 ac_save_c_werror_flag=$ac_c_werror_flag 3638 ac_c_werror_flag=yes 3639 ac_cv_prog_cc_g=no 3640 CFLAGS="-g" 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_prog_cc_g=yes 3654else 3655 CFLAGS="" 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657/* end confdefs.h. */ 3658 3659int 3660main () 3661{ 3662 3663 ; 3664 return 0; 3665} 3666_ACEOF 3667if ac_fn_c_try_compile "$LINENO"; then : 3668 3669else 3670 ac_c_werror_flag=$ac_save_c_werror_flag 3671 CFLAGS="-g" 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683if ac_fn_c_try_compile "$LINENO"; then : 3684 ac_cv_prog_cc_g=yes 3685fi 3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3687fi 3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3689fi 3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3691 ac_c_werror_flag=$ac_save_c_werror_flag 3692fi 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3694$as_echo "$ac_cv_prog_cc_g" >&6; } 3695if test "$ac_test_CFLAGS" = set; then 3696 CFLAGS=$ac_save_CFLAGS 3697elif test $ac_cv_prog_cc_g = yes; then 3698 if test "$GCC" = yes; then 3699 CFLAGS="-g -O2" 3700 else 3701 CFLAGS="-g" 3702 fi 3703else 3704 if test "$GCC" = yes; then 3705 CFLAGS="-O2" 3706 else 3707 CFLAGS= 3708 fi 3709fi 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3712if ${ac_cv_prog_cc_c89+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 ac_cv_prog_cc_c89=no 3716ac_save_CC=$CC 3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719#include <stdarg.h> 3720#include <stdio.h> 3721struct stat; 3722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3723struct buf { int x; }; 3724FILE * (*rcsopen) (struct buf *, struct stat *, int); 3725static char *e (p, i) 3726 char **p; 3727 int i; 3728{ 3729 return p[i]; 3730} 3731static char *f (char * (*g) (char **, int), char **p, ...) 3732{ 3733 char *s; 3734 va_list v; 3735 va_start (v,p); 3736 s = g (p, va_arg (v,int)); 3737 va_end (v); 3738 return s; 3739} 3740 3741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3742 function prototypes and stuff, but not '\xHH' hex character constants. 3743 These don't provoke an error unfortunately, instead are silently treated 3744 as 'x'. The following induces an error, until -std is added to get 3745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3746 array size at least. It's necessary to write '\x00'==0 to get something 3747 that's true only with -std. */ 3748int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3749 3750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3751 inside strings and character constants. */ 3752#define FOO(x) 'x' 3753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3754 3755int test (int i, double x); 3756struct s1 {int (*f) (int a);}; 3757struct s2 {int (*f) (double a);}; 3758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3759int argc; 3760char **argv; 3761int 3762main () 3763{ 3764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3771do 3772 CC="$ac_save_CC $ac_arg" 3773 if ac_fn_c_try_compile "$LINENO"; then : 3774 ac_cv_prog_cc_c89=$ac_arg 3775fi 3776rm -f core conftest.err conftest.$ac_objext 3777 test "x$ac_cv_prog_cc_c89" != "xno" && break 3778done 3779rm -f conftest.$ac_ext 3780CC=$ac_save_CC 3781 3782fi 3783# AC_CACHE_VAL 3784case "x$ac_cv_prog_cc_c89" in 3785 x) 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3787$as_echo "none needed" >&6; } ;; 3788 xno) 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3790$as_echo "unsupported" >&6; } ;; 3791 *) 3792 CC="$CC $ac_cv_prog_cc_c89" 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3795esac 3796if test "x$ac_cv_prog_cc_c89" != xno; then : 3797 3798fi 3799 3800ac_ext=c 3801ac_cpp='$CPP $CPPFLAGS' 3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3804ac_compiler_gnu=$ac_cv_c_compiler_gnu 3805 3806ac_ext=c 3807ac_cpp='$CPP $CPPFLAGS' 3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3810ac_compiler_gnu=$ac_cv_c_compiler_gnu 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3812$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3813if ${am_cv_prog_cc_c_o+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818 3819int 3820main () 3821{ 3822 3823 ; 3824 return 0; 3825} 3826_ACEOF 3827 # Make sure it works both with $CC and with simple cc. 3828 # Following AC_PROG_CC_C_O, we do the test twice because some 3829 # compilers refuse to overwrite an existing .o file with -o, 3830 # though they will create one. 3831 am_cv_prog_cc_c_o=yes 3832 for am_i in 1 2; do 3833 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3834 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); } \ 3838 && test -f conftest2.$ac_objext; then 3839 : OK 3840 else 3841 am_cv_prog_cc_c_o=no 3842 break 3843 fi 3844 done 3845 rm -f core conftest* 3846 unset am_i 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3849$as_echo "$am_cv_prog_cc_c_o" >&6; } 3850if test "$am_cv_prog_cc_c_o" != yes; then 3851 # Losing compiler, so override with the script. 3852 # FIXME: It is wrong to rewrite CC. 3853 # But if we don't then we get into trouble of one sort or another. 3854 # A longer-term fix would be to have automake use am__CC in this case, 3855 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3856 CC="$am_aux_dir/compile $CC" 3857fi 3858ac_ext=c 3859ac_cpp='$CPP $CPPFLAGS' 3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3862ac_compiler_gnu=$ac_cv_c_compiler_gnu 3863 3864 3865depcc="$CC" am_compiler_list= 3866 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3868$as_echo_n "checking dependency style of $depcc... " >&6; } 3869if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3873 # We make a subdir and do the tests there. Otherwise we can end up 3874 # making bogus files that we don't know about and never remove. For 3875 # instance it was reported that on HP-UX the gcc test will end up 3876 # making a dummy file named 'D' -- because '-MD' means "put the output 3877 # in D". 3878 rm -rf conftest.dir 3879 mkdir conftest.dir 3880 # Copy depcomp to subdir because otherwise we won't find it if we're 3881 # using a relative directory. 3882 cp "$am_depcomp" conftest.dir 3883 cd conftest.dir 3884 # We will build objects and dependencies in a subdirectory because 3885 # it helps to detect inapplicable dependency modes. For instance 3886 # both Tru64's cc and ICC support -MD to output dependencies as a 3887 # side effect of compilation, but ICC will put the dependencies in 3888 # the current directory while Tru64 will put them in the object 3889 # directory. 3890 mkdir sub 3891 3892 am_cv_CC_dependencies_compiler_type=none 3893 if test "$am_compiler_list" = ""; then 3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3895 fi 3896 am__universal=false 3897 case " $depcc " in #( 3898 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3899 esac 3900 3901 for depmode in $am_compiler_list; do 3902 # Setup a source with many dependencies, because some compilers 3903 # like to wrap large dependency lists on column 80 (with \), and 3904 # we should not choose a depcomp mode which is confused by this. 3905 # 3906 # We need to recreate these files for each test, as the compiler may 3907 # overwrite some of them when testing with obscure command lines. 3908 # This happens at least with the AIX C compiler. 3909 : > sub/conftest.c 3910 for i in 1 2 3 4 5 6; do 3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3912 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3913 # Solaris 10 /bin/sh. 3914 echo '/* dummy */' > sub/conftst$i.h 3915 done 3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3917 3918 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3919 # mode. It turns out that the SunPro C++ compiler does not properly 3920 # handle '-M -o', and we need to detect this. Also, some Intel 3921 # versions had trouble with output in subdirs. 3922 am__obj=sub/conftest.${OBJEXT-o} 3923 am__minus_obj="-o $am__obj" 3924 case $depmode in 3925 gcc) 3926 # This depmode causes a compiler race in universal mode. 3927 test "$am__universal" = false || continue 3928 ;; 3929 nosideeffect) 3930 # After this tag, mechanisms are not by side-effect, so they'll 3931 # only be used when explicitly requested. 3932 if test "x$enable_dependency_tracking" = xyes; then 3933 continue 3934 else 3935 break 3936 fi 3937 ;; 3938 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3939 # This compiler won't grok '-c -o', but also, the minuso test has 3940 # not run yet. These depmodes are late enough in the game, and 3941 # so weak that their functioning should not be impacted. 3942 am__obj=conftest.${OBJEXT-o} 3943 am__minus_obj= 3944 ;; 3945 none) break ;; 3946 esac 3947 if depmode=$depmode \ 3948 source=sub/conftest.c object=$am__obj \ 3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3951 >/dev/null 2>conftest.err && 3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3956 # icc doesn't choke on unknown options, it will just issue warnings 3957 # or remarks (even with -Werror). So we grep stderr for any message 3958 # that says an option was ignored or not supported. 3959 # When given -MP, icc 7.0 and 7.1 complain thusly: 3960 # icc: Command line warning: ignoring option '-M'; no argument required 3961 # The diagnosis changed in icc 8.0: 3962 # icc: Command line remark: option '-MP' not supported 3963 if (grep 'ignoring option' conftest.err || 3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3965 am_cv_CC_dependencies_compiler_type=$depmode 3966 break 3967 fi 3968 fi 3969 done 3970 3971 cd .. 3972 rm -rf conftest.dir 3973else 3974 am_cv_CC_dependencies_compiler_type=none 3975fi 3976 3977fi 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3979$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3981 3982 if 3983 test "x$enable_dependency_tracking" != xno \ 3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3985 am__fastdepCC_TRUE= 3986 am__fastdepCC_FALSE='#' 3987else 3988 am__fastdepCC_TRUE='#' 3989 am__fastdepCC_FALSE= 3990fi 3991 3992 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3994$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3995if ${ac_cv_prog_cc_c99+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 ac_cv_prog_cc_c99=no 3999ac_save_CC=$CC 4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#include <stdarg.h> 4003#include <stdbool.h> 4004#include <stdlib.h> 4005#include <wchar.h> 4006#include <stdio.h> 4007 4008// Check varargs macros. These examples are taken from C99 6.10.3.5. 4009#define debug(...) fprintf (stderr, __VA_ARGS__) 4010#define showlist(...) puts (#__VA_ARGS__) 4011#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4012static void 4013test_varargs_macros (void) 4014{ 4015 int x = 1234; 4016 int y = 5678; 4017 debug ("Flag"); 4018 debug ("X = %d\n", x); 4019 showlist (The first, second, and third items.); 4020 report (x>y, "x is %d but y is %d", x, y); 4021} 4022 4023// Check long long types. 4024#define BIG64 18446744073709551615ull 4025#define BIG32 4294967295ul 4026#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4027#if !BIG_OK 4028 your preprocessor is broken; 4029#endif 4030#if BIG_OK 4031#else 4032 your preprocessor is broken; 4033#endif 4034static long long int bignum = -9223372036854775807LL; 4035static unsigned long long int ubignum = BIG64; 4036 4037struct incomplete_array 4038{ 4039 int datasize; 4040 double data[]; 4041}; 4042 4043struct named_init { 4044 int number; 4045 const wchar_t *name; 4046 double average; 4047}; 4048 4049typedef const char *ccp; 4050 4051static inline int 4052test_restrict (ccp restrict text) 4053{ 4054 // See if C++-style comments work. 4055 // Iterate through items via the restricted pointer. 4056 // Also check for declarations in for loops. 4057 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4058 continue; 4059 return 0; 4060} 4061 4062// Check varargs and va_copy. 4063static void 4064test_varargs (const char *format, ...) 4065{ 4066 va_list args; 4067 va_start (args, format); 4068 va_list args_copy; 4069 va_copy (args_copy, args); 4070 4071 const char *str; 4072 int number; 4073 float fnumber; 4074 4075 while (*format) 4076 { 4077 switch (*format++) 4078 { 4079 case 's': // string 4080 str = va_arg (args_copy, const char *); 4081 break; 4082 case 'd': // int 4083 number = va_arg (args_copy, int); 4084 break; 4085 case 'f': // float 4086 fnumber = va_arg (args_copy, double); 4087 break; 4088 default: 4089 break; 4090 } 4091 } 4092 va_end (args_copy); 4093 va_end (args); 4094} 4095 4096int 4097main () 4098{ 4099 4100 // Check bool. 4101 _Bool success = false; 4102 4103 // Check restrict. 4104 if (test_restrict ("String literal") == 0) 4105 success = true; 4106 char *restrict newvar = "Another string"; 4107 4108 // Check varargs. 4109 test_varargs ("s, d' f .", "string", 65, 34.234); 4110 test_varargs_macros (); 4111 4112 // Check flexible array members. 4113 struct incomplete_array *ia = 4114 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4115 ia->datasize = 10; 4116 for (int i = 0; i < ia->datasize; ++i) 4117 ia->data[i] = i * 1.234; 4118 4119 // Check named initializers. 4120 struct named_init ni = { 4121 .number = 34, 4122 .name = L"Test wide string", 4123 .average = 543.34343, 4124 }; 4125 4126 ni.number = 58; 4127 4128 int dynamic_array[ni.number]; 4129 dynamic_array[ni.number - 1] = 543; 4130 4131 // work around unused variable warnings 4132 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4133 || dynamic_array[ni.number - 1] != 543); 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4140do 4141 CC="$ac_save_CC $ac_arg" 4142 if ac_fn_c_try_compile "$LINENO"; then : 4143 ac_cv_prog_cc_c99=$ac_arg 4144fi 4145rm -f core conftest.err conftest.$ac_objext 4146 test "x$ac_cv_prog_cc_c99" != "xno" && break 4147done 4148rm -f conftest.$ac_ext 4149CC=$ac_save_CC 4150 4151fi 4152# AC_CACHE_VAL 4153case "x$ac_cv_prog_cc_c99" in 4154 x) 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4156$as_echo "none needed" >&6; } ;; 4157 xno) 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4159$as_echo "unsupported" >&6; } ;; 4160 *) 4161 CC="$CC $ac_cv_prog_cc_c99" 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4163$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4164esac 4165if test "x$ac_cv_prog_cc_c99" != xno; then : 4166 4167fi 4168 4169 4170 4171ac_ext=c 4172ac_cpp='$CPP $CPPFLAGS' 4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4175ac_compiler_gnu=$ac_cv_c_compiler_gnu 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4177$as_echo_n "checking how to run the C preprocessor... " >&6; } 4178# On Suns, sometimes $CPP names a directory. 4179if test -n "$CPP" && test -d "$CPP"; then 4180 CPP= 4181fi 4182if test -z "$CPP"; then 4183 if ${ac_cv_prog_CPP+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 # Double quotes because CPP needs to be expanded 4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4188 do 4189 ac_preproc_ok=false 4190for ac_c_preproc_warn_flag in '' yes 4191do 4192 # Use a header file that comes with gcc, so configuring glibc 4193 # with a fresh cross-compiler works. 4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4195 # <limits.h> exists even on freestanding compilers. 4196 # On the NeXT, cc -E runs the code through the compiler's parser, 4197 # not just through cpp. "Syntax error" is here to catch this case. 4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4199/* end confdefs.h. */ 4200#ifdef __STDC__ 4201# include <limits.h> 4202#else 4203# include <assert.h> 4204#endif 4205 Syntax error 4206_ACEOF 4207if ac_fn_c_try_cpp "$LINENO"; then : 4208 4209else 4210 # Broken: fails on valid input. 4211continue 4212fi 4213rm -f conftest.err conftest.i conftest.$ac_ext 4214 4215 # OK, works on sane cases. Now check whether nonexistent headers 4216 # can be detected and how. 4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218/* end confdefs.h. */ 4219#include <ac_nonexistent.h> 4220_ACEOF 4221if ac_fn_c_try_cpp "$LINENO"; then : 4222 # Broken: success on invalid input. 4223continue 4224else 4225 # Passes both tests. 4226ac_preproc_ok=: 4227break 4228fi 4229rm -f conftest.err conftest.i conftest.$ac_ext 4230 4231done 4232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4233rm -f conftest.i conftest.err conftest.$ac_ext 4234if $ac_preproc_ok; then : 4235 break 4236fi 4237 4238 done 4239 ac_cv_prog_CPP=$CPP 4240 4241fi 4242 CPP=$ac_cv_prog_CPP 4243else 4244 ac_cv_prog_CPP=$CPP 4245fi 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4247$as_echo "$CPP" >&6; } 4248ac_preproc_ok=false 4249for ac_c_preproc_warn_flag in '' yes 4250do 4251 # Use a header file that comes with gcc, so configuring glibc 4252 # with a fresh cross-compiler works. 4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4254 # <limits.h> exists even on freestanding compilers. 4255 # On the NeXT, cc -E runs the code through the compiler's parser, 4256 # not just through cpp. "Syntax error" is here to catch this case. 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258/* end confdefs.h. */ 4259#ifdef __STDC__ 4260# include <limits.h> 4261#else 4262# include <assert.h> 4263#endif 4264 Syntax error 4265_ACEOF 4266if ac_fn_c_try_cpp "$LINENO"; then : 4267 4268else 4269 # Broken: fails on valid input. 4270continue 4271fi 4272rm -f conftest.err conftest.i conftest.$ac_ext 4273 4274 # OK, works on sane cases. Now check whether nonexistent headers 4275 # can be detected and how. 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278#include <ac_nonexistent.h> 4279_ACEOF 4280if ac_fn_c_try_cpp "$LINENO"; then : 4281 # Broken: success on invalid input. 4282continue 4283else 4284 # Passes both tests. 4285ac_preproc_ok=: 4286break 4287fi 4288rm -f conftest.err conftest.i conftest.$ac_ext 4289 4290done 4291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4292rm -f conftest.i conftest.err conftest.$ac_ext 4293if $ac_preproc_ok; then : 4294 4295else 4296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4298as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4299See \`config.log' for more details" "$LINENO" 5; } 4300fi 4301 4302ac_ext=c 4303ac_cpp='$CPP $CPPFLAGS' 4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4306ac_compiler_gnu=$ac_cv_c_compiler_gnu 4307 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4310$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4311if ${ac_cv_path_GREP+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if test -z "$GREP"; then 4315 ac_path_GREP_found=false 4316 # Loop through the user's path and test for each of PROGNAME-LIST 4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4319do 4320 IFS=$as_save_IFS 4321 test -z "$as_dir" && as_dir=. 4322 for ac_prog in grep ggrep; do 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4325 as_fn_executable_p "$ac_path_GREP" || continue 4326# Check for GNU ac_path_GREP and select it if it is found. 4327 # Check for GNU $ac_path_GREP 4328case `"$ac_path_GREP" --version 2>&1` in 4329*GNU*) 4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4331*) 4332 ac_count=0 4333 $as_echo_n 0123456789 >"conftest.in" 4334 while : 4335 do 4336 cat "conftest.in" "conftest.in" >"conftest.tmp" 4337 mv "conftest.tmp" "conftest.in" 4338 cp "conftest.in" "conftest.nl" 4339 $as_echo 'GREP' >> "conftest.nl" 4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4342 as_fn_arith $ac_count + 1 && ac_count=$as_val 4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4344 # Best one so far, save it but keep looking for a better one 4345 ac_cv_path_GREP="$ac_path_GREP" 4346 ac_path_GREP_max=$ac_count 4347 fi 4348 # 10*(2^10) chars as input seems more than enough 4349 test $ac_count -gt 10 && break 4350 done 4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4352esac 4353 4354 $ac_path_GREP_found && break 3 4355 done 4356 done 4357 done 4358IFS=$as_save_IFS 4359 if test -z "$ac_cv_path_GREP"; then 4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4361 fi 4362else 4363 ac_cv_path_GREP=$GREP 4364fi 4365 4366fi 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4368$as_echo "$ac_cv_path_GREP" >&6; } 4369 GREP="$ac_cv_path_GREP" 4370 4371 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4373$as_echo_n "checking for egrep... " >&6; } 4374if ${ac_cv_path_EGREP+:} false; then : 4375 $as_echo_n "(cached) " >&6 4376else 4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4378 then ac_cv_path_EGREP="$GREP -E" 4379 else 4380 if test -z "$EGREP"; then 4381 ac_path_EGREP_found=false 4382 # Loop through the user's path and test for each of PROGNAME-LIST 4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4385do 4386 IFS=$as_save_IFS 4387 test -z "$as_dir" && as_dir=. 4388 for ac_prog in egrep; do 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4391 as_fn_executable_p "$ac_path_EGREP" || continue 4392# Check for GNU ac_path_EGREP and select it if it is found. 4393 # Check for GNU $ac_path_EGREP 4394case `"$ac_path_EGREP" --version 2>&1` in 4395*GNU*) 4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4397*) 4398 ac_count=0 4399 $as_echo_n 0123456789 >"conftest.in" 4400 while : 4401 do 4402 cat "conftest.in" "conftest.in" >"conftest.tmp" 4403 mv "conftest.tmp" "conftest.in" 4404 cp "conftest.in" "conftest.nl" 4405 $as_echo 'EGREP' >> "conftest.nl" 4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4408 as_fn_arith $ac_count + 1 && ac_count=$as_val 4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4410 # Best one so far, save it but keep looking for a better one 4411 ac_cv_path_EGREP="$ac_path_EGREP" 4412 ac_path_EGREP_max=$ac_count 4413 fi 4414 # 10*(2^10) chars as input seems more than enough 4415 test $ac_count -gt 10 && break 4416 done 4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4418esac 4419 4420 $ac_path_EGREP_found && break 3 4421 done 4422 done 4423 done 4424IFS=$as_save_IFS 4425 if test -z "$ac_cv_path_EGREP"; then 4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4427 fi 4428else 4429 ac_cv_path_EGREP=$EGREP 4430fi 4431 4432 fi 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4435$as_echo "$ac_cv_path_EGREP" >&6; } 4436 EGREP="$ac_cv_path_EGREP" 4437 4438 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4440$as_echo_n "checking for ANSI C header files... " >&6; } 4441if ${ac_cv_header_stdc+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446#include <stdlib.h> 4447#include <stdarg.h> 4448#include <string.h> 4449#include <float.h> 4450 4451int 4452main () 4453{ 4454 4455 ; 4456 return 0; 4457} 4458_ACEOF 4459if ac_fn_c_try_compile "$LINENO"; then : 4460 ac_cv_header_stdc=yes 4461else 4462 ac_cv_header_stdc=no 4463fi 4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4465 4466if test $ac_cv_header_stdc = yes; then 4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470#include <string.h> 4471 4472_ACEOF 4473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4474 $EGREP "memchr" >/dev/null 2>&1; then : 4475 4476else 4477 ac_cv_header_stdc=no 4478fi 4479rm -f conftest* 4480 4481fi 4482 4483if test $ac_cv_header_stdc = yes; then 4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486/* end confdefs.h. */ 4487#include <stdlib.h> 4488 4489_ACEOF 4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4491 $EGREP "free" >/dev/null 2>&1; then : 4492 4493else 4494 ac_cv_header_stdc=no 4495fi 4496rm -f conftest* 4497 4498fi 4499 4500if test $ac_cv_header_stdc = yes; then 4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4502 if test "$cross_compiling" = yes; then : 4503 : 4504else 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507#include <ctype.h> 4508#include <stdlib.h> 4509#if ((' ' & 0x0FF) == 0x020) 4510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4512#else 4513# define ISLOWER(c) \ 4514 (('a' <= (c) && (c) <= 'i') \ 4515 || ('j' <= (c) && (c) <= 'r') \ 4516 || ('s' <= (c) && (c) <= 'z')) 4517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4518#endif 4519 4520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4521int 4522main () 4523{ 4524 int i; 4525 for (i = 0; i < 256; i++) 4526 if (XOR (islower (i), ISLOWER (i)) 4527 || toupper (i) != TOUPPER (i)) 4528 return 2; 4529 return 0; 4530} 4531_ACEOF 4532if ac_fn_c_try_run "$LINENO"; then : 4533 4534else 4535 ac_cv_header_stdc=no 4536fi 4537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4538 conftest.$ac_objext conftest.beam conftest.$ac_ext 4539fi 4540 4541fi 4542fi 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4544$as_echo "$ac_cv_header_stdc" >&6; } 4545if test $ac_cv_header_stdc = yes; then 4546 4547$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4548 4549fi 4550 4551# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4552for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4553 inttypes.h stdint.h unistd.h 4554do : 4555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4556ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4557" 4558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4559 cat >>confdefs.h <<_ACEOF 4560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4561_ACEOF 4562 4563fi 4564 4565done 4566 4567 4568 4569 4570 4571 4572ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4573if test "x$ac_cv_have_decl___clang__" = xyes; then : 4574 CLANGCC="yes" 4575else 4576 CLANGCC="no" 4577fi 4578 4579ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4580if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4581 INTELCC="yes" 4582else 4583 INTELCC="no" 4584fi 4585 4586ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4587if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4588 SUNCC="yes" 4589else 4590 SUNCC="no" 4591fi 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4602 if test -n "$ac_tool_prefix"; then 4603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4604set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4606$as_echo_n "checking for $ac_word... " >&6; } 4607if ${ac_cv_path_PKG_CONFIG+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 case $PKG_CONFIG in 4611 [\\/]* | ?:[\\/]*) 4612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4613 ;; 4614 *) 4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616for as_dir in $PATH 4617do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626done 4627 done 4628IFS=$as_save_IFS 4629 4630 ;; 4631esac 4632fi 4633PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4634if test -n "$PKG_CONFIG"; then 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4636$as_echo "$PKG_CONFIG" >&6; } 4637else 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639$as_echo "no" >&6; } 4640fi 4641 4642 4643fi 4644if test -z "$ac_cv_path_PKG_CONFIG"; then 4645 ac_pt_PKG_CONFIG=$PKG_CONFIG 4646 # Extract the first word of "pkg-config", so it can be a program name with args. 4647set dummy pkg-config; ac_word=$2 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4649$as_echo_n "checking for $ac_word... " >&6; } 4650if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 case $ac_pt_PKG_CONFIG in 4654 [\\/]* | ?:[\\/]*) 4655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4656 ;; 4657 *) 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH 4660do 4661 IFS=$as_save_IFS 4662 test -z "$as_dir" && as_dir=. 4663 for ac_exec_ext in '' $ac_executable_extensions; do 4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4667 break 2 4668 fi 4669done 4670 done 4671IFS=$as_save_IFS 4672 4673 ;; 4674esac 4675fi 4676ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4677if test -n "$ac_pt_PKG_CONFIG"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4679$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 if test "x$ac_pt_PKG_CONFIG" = x; then 4686 PKG_CONFIG="" 4687 else 4688 case $cross_compiling:$ac_tool_warned in 4689yes:) 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4692ac_tool_warned=yes ;; 4693esac 4694 PKG_CONFIG=$ac_pt_PKG_CONFIG 4695 fi 4696else 4697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4698fi 4699 4700fi 4701if test -n "$PKG_CONFIG"; then 4702 _pkg_min_version=0.9.0 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4704$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4707$as_echo "yes" >&6; } 4708 else 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4710$as_echo "no" >&6; } 4711 PKG_CONFIG="" 4712 fi 4713fi 4714# Make sure we can run config.sub. 4715$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4719$as_echo_n "checking build system type... " >&6; } 4720if ${ac_cv_build+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 ac_build_alias=$build_alias 4724test "x$ac_build_alias" = x && 4725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4726test "x$ac_build_alias" = x && 4727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4728ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4730 4731fi 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4733$as_echo "$ac_cv_build" >&6; } 4734case $ac_cv_build in 4735*-*-*) ;; 4736*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4737esac 4738build=$ac_cv_build 4739ac_save_IFS=$IFS; IFS='-' 4740set x $ac_cv_build 4741shift 4742build_cpu=$1 4743build_vendor=$2 4744shift; shift 4745# Remember, the first character of IFS is used to create $*, 4746# except with old shells: 4747build_os=$* 4748IFS=$ac_save_IFS 4749case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4750 4751 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4753$as_echo_n "checking host system type... " >&6; } 4754if ${ac_cv_host+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 if test "x$host_alias" = x; then 4758 ac_cv_host=$ac_cv_build 4759else 4760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4762fi 4763 4764fi 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4766$as_echo "$ac_cv_host" >&6; } 4767case $ac_cv_host in 4768*-*-*) ;; 4769*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4770esac 4771host=$ac_cv_host 4772ac_save_IFS=$IFS; IFS='-' 4773set x $ac_cv_host 4774shift 4775host_cpu=$1 4776host_vendor=$2 4777shift; shift 4778# Remember, the first character of IFS is used to create $*, 4779# except with old shells: 4780host_os=$* 4781IFS=$ac_save_IFS 4782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4783 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4786$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4787if ${ac_cv_path_SED+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4791 for ac_i in 1 2 3 4 5 6 7; do 4792 ac_script="$ac_script$as_nl$ac_script" 4793 done 4794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4795 { ac_script=; unset ac_script;} 4796 if test -z "$SED"; then 4797 ac_path_SED_found=false 4798 # Loop through the user's path and test for each of PROGNAME-LIST 4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 test -z "$as_dir" && as_dir=. 4804 for ac_prog in sed gsed; do 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4807 as_fn_executable_p "$ac_path_SED" || continue 4808# Check for GNU ac_path_SED and select it if it is found. 4809 # Check for GNU $ac_path_SED 4810case `"$ac_path_SED" --version 2>&1` in 4811*GNU*) 4812 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4813*) 4814 ac_count=0 4815 $as_echo_n 0123456789 >"conftest.in" 4816 while : 4817 do 4818 cat "conftest.in" "conftest.in" >"conftest.tmp" 4819 mv "conftest.tmp" "conftest.in" 4820 cp "conftest.in" "conftest.nl" 4821 $as_echo '' >> "conftest.nl" 4822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4824 as_fn_arith $ac_count + 1 && ac_count=$as_val 4825 if test $ac_count -gt ${ac_path_SED_max-0}; then 4826 # Best one so far, save it but keep looking for a better one 4827 ac_cv_path_SED="$ac_path_SED" 4828 ac_path_SED_max=$ac_count 4829 fi 4830 # 10*(2^10) chars as input seems more than enough 4831 test $ac_count -gt 10 && break 4832 done 4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4834esac 4835 4836 $ac_path_SED_found && break 3 4837 done 4838 done 4839 done 4840IFS=$as_save_IFS 4841 if test -z "$ac_cv_path_SED"; then 4842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4843 fi 4844else 4845 ac_cv_path_SED=$SED 4846fi 4847 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4850$as_echo "$ac_cv_path_SED" >&6; } 4851 SED="$ac_cv_path_SED" 4852 rm -f conftest.sed 4853 4854 4855 4856 4857 4858 4859# Check whether --enable-selective-werror was given. 4860if test "${enable_selective_werror+set}" = set; then : 4861 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4862else 4863 SELECTIVE_WERROR=yes 4864fi 4865 4866 4867 4868 4869 4870# -v is too short to test reliably with XORG_TESTSET_CFLAG 4871if test "x$SUNCC" = "xyes"; then 4872 BASE_CFLAGS="-v" 4873else 4874 BASE_CFLAGS="" 4875fi 4876 4877# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891xorg_testset_save_CFLAGS="$CFLAGS" 4892 4893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903_ACEOF 4904if ac_fn_c_try_compile "$LINENO"; then : 4905 xorg_cv_cc_flag_unknown_warning_option=yes 4906else 4907 xorg_cv_cc_flag_unknown_warning_option=no 4908fi 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4914 CFLAGS="$xorg_testset_save_CFLAGS" 4915fi 4916 4917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4920 fi 4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929int i; 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unused_command_line_argument=yes 4933else 4934 xorg_cv_cc_flag_unused_command_line_argument=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942fi 4943 4944found="no" 4945 4946 if test $found = "no" ; then 4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4949 fi 4950 4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 fi 4954 4955 CFLAGS="$CFLAGS -Wall" 4956 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4958$as_echo_n "checking if $CC supports -Wall... " >&6; } 4959 cacheid=xorg_cv_cc_flag__Wall 4960 if eval \${$cacheid+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965int i; 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_link "$LINENO"; then : 4975 eval $cacheid=yes 4976else 4977 eval $cacheid=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext \ 4980 conftest$ac_exeext conftest.$ac_ext 4981fi 4982 4983 4984 CFLAGS="$xorg_testset_save_CFLAGS" 4985 4986 eval supported=\$$cacheid 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4988$as_echo "$supported" >&6; } 4989 if test "$supported" = "yes" ; then 4990 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4991 found="yes" 4992 fi 4993 fi 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009xorg_testset_save_CFLAGS="$CFLAGS" 5010 5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024else 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028fi 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033fi 5034 5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047int i; 5048_ACEOF 5049if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051else 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wpointer-arith" 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5076$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wpointer_arith 5078 if eval \${$cacheid+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083int i; 5084int 5085main () 5086{ 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 eval $cacheid=yes 5094else 5095 eval $cacheid=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100 5101 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103 5104 eval supported=\$$cacheid 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5106$as_echo "$supported" >&6; } 5107 if test "$supported" = "yes" ; then 5108 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5109 found="yes" 5110 fi 5111 fi 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127xorg_testset_save_CFLAGS="$CFLAGS" 5128 5129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139_ACEOF 5140if ac_fn_c_try_compile "$LINENO"; then : 5141 xorg_cv_cc_flag_unknown_warning_option=yes 5142else 5143 xorg_cv_cc_flag_unknown_warning_option=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151fi 5152 5153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 fi 5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169else 5170 xorg_cv_cc_flag_unused_command_line_argument=no 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178fi 5179 5180found="no" 5181 5182 if test $found = "no" ; then 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 5187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 fi 5190 5191 CFLAGS="$CFLAGS -Wmissing-declarations" 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5194$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5195 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5196 if eval \${$cacheid+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_link "$LINENO"; then : 5211 eval $cacheid=yes 5212else 5213 eval $cacheid=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext \ 5216 conftest$ac_exeext conftest.$ac_ext 5217fi 5218 5219 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221 5222 eval supported=\$$cacheid 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5224$as_echo "$supported" >&6; } 5225 if test "$supported" = "yes" ; then 5226 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5227 found="yes" 5228 fi 5229 fi 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245xorg_testset_save_CFLAGS="$CFLAGS" 5246 5247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257_ACEOF 5258if ac_fn_c_try_compile "$LINENO"; then : 5259 xorg_cv_cc_flag_unknown_warning_option=yes 5260else 5261 xorg_cv_cc_flag_unknown_warning_option=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5264fi 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269fi 5270 5271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5274 fi 5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 xorg_cv_cc_flag_unused_command_line_argument=yes 5287else 5288 xorg_cv_cc_flag_unused_command_line_argument=no 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296fi 5297 5298found="no" 5299 5300 if test $found = "no" ; then 5301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5303 fi 5304 5305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5307 fi 5308 5309 CFLAGS="$CFLAGS -Wformat=2" 5310 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5312$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5313 cacheid=xorg_cv_cc_flag__Wformat_2 5314 if eval \${$cacheid+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320int 5321main () 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_c_try_link "$LINENO"; then : 5329 eval $cacheid=yes 5330else 5331 eval $cacheid=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext \ 5334 conftest$ac_exeext conftest.$ac_ext 5335fi 5336 5337 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339 5340 eval supported=\$$cacheid 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5342$as_echo "$supported" >&6; } 5343 if test "$supported" = "yes" ; then 5344 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5345 found="yes" 5346 fi 5347 fi 5348 5349 if test $found = "no" ; then 5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 fi 5353 5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5356 fi 5357 5358 CFLAGS="$CFLAGS -Wformat" 5359 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5361$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5362 cacheid=xorg_cv_cc_flag__Wformat 5363 if eval \${$cacheid+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368int i; 5369int 5370main () 5371{ 5372 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377if ac_fn_c_try_link "$LINENO"; then : 5378 eval $cacheid=yes 5379else 5380 eval $cacheid=no 5381fi 5382rm -f core conftest.err conftest.$ac_objext \ 5383 conftest$ac_exeext conftest.$ac_ext 5384fi 5385 5386 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 eval supported=\$$cacheid 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5391$as_echo "$supported" >&6; } 5392 if test "$supported" = "yes" ; then 5393 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5394 found="yes" 5395 fi 5396 fi 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414xorg_testset_save_CFLAGS="$CFLAGS" 5415 5416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425int i; 5426_ACEOF 5427if ac_fn_c_try_compile "$LINENO"; then : 5428 xorg_cv_cc_flag_unknown_warning_option=yes 5429else 5430 xorg_cv_cc_flag_unknown_warning_option=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438fi 5439 5440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unused_command_line_argument=yes 5456else 5457 xorg_cv_cc_flag_unused_command_line_argument=no 5458fi 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465fi 5466 5467found="no" 5468 5469 if test $found = "no" ; then 5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 fi 5477 5478 CFLAGS="$CFLAGS -Wstrict-prototypes" 5479 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5481$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5482 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5483 if eval \${$cacheid+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488int i; 5489int 5490main () 5491{ 5492 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_link "$LINENO"; then : 5498 eval $cacheid=yes 5499else 5500 eval $cacheid=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext \ 5503 conftest$ac_exeext conftest.$ac_ext 5504fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511$as_echo "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543int i; 5544_ACEOF 5545if ac_fn_c_try_compile "$LINENO"; then : 5546 xorg_cv_cc_flag_unknown_warning_option=yes 5547else 5548 xorg_cv_cc_flag_unknown_warning_option=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556fi 5557 5558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570int i; 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unused_command_line_argument=yes 5574else 5575 xorg_cv_cc_flag_unused_command_line_argument=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583fi 5584 5585found="no" 5586 5587 if test $found = "no" ; then 5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 fi 5595 5596 CFLAGS="$CFLAGS -Wmissing-prototypes" 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5599$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5600 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5601 if eval \${$cacheid+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606int i; 5607int 5608main () 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_link "$LINENO"; then : 5616 eval $cacheid=yes 5617else 5618 eval $cacheid=no 5619fi 5620rm -f core conftest.err conftest.$ac_objext \ 5621 conftest$ac_exeext conftest.$ac_ext 5622fi 5623 5624 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626 5627 eval supported=\$$cacheid 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5629$as_echo "$supported" >&6; } 5630 if test "$supported" = "yes" ; then 5631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5632 found="yes" 5633 fi 5634 fi 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650xorg_testset_save_CFLAGS="$CFLAGS" 5651 5652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662_ACEOF 5663if ac_fn_c_try_compile "$LINENO"; then : 5664 xorg_cv_cc_flag_unknown_warning_option=yes 5665else 5666 xorg_cv_cc_flag_unknown_warning_option=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669fi 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674fi 5675 5676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unused_command_line_argument=yes 5692else 5693 xorg_cv_cc_flag_unused_command_line_argument=no 5694fi 5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701fi 5702 5703found="no" 5704 5705 if test $found = "no" ; then 5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 fi 5709 5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 fi 5713 5714 CFLAGS="$CFLAGS -Wnested-externs" 5715 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5717$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5718 cacheid=xorg_cv_cc_flag__Wnested_externs 5719 if eval \${$cacheid+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725int 5726main () 5727{ 5728 5729 ; 5730 return 0; 5731} 5732_ACEOF 5733if ac_fn_c_try_link "$LINENO"; then : 5734 eval $cacheid=yes 5735else 5736 eval $cacheid=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext \ 5739 conftest$ac_exeext conftest.$ac_ext 5740fi 5741 5742 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744 5745 eval supported=\$$cacheid 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5747$as_echo "$supported" >&6; } 5748 if test "$supported" = "yes" ; then 5749 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5750 found="yes" 5751 fi 5752 fi 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768xorg_testset_save_CFLAGS="$CFLAGS" 5769 5770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780_ACEOF 5781if ac_fn_c_try_compile "$LINENO"; then : 5782 xorg_cv_cc_flag_unknown_warning_option=yes 5783else 5784 xorg_cv_cc_flag_unknown_warning_option=no 5785fi 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787fi 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5791 CFLAGS="$xorg_testset_save_CFLAGS" 5792fi 5793 5794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806int i; 5807_ACEOF 5808if ac_fn_c_try_compile "$LINENO"; then : 5809 xorg_cv_cc_flag_unused_command_line_argument=yes 5810else 5811 xorg_cv_cc_flag_unused_command_line_argument=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5814fi 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819fi 5820 5821found="no" 5822 5823 if test $found = "no" ; then 5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 fi 5827 5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5830 fi 5831 5832 CFLAGS="$CFLAGS -Wbad-function-cast" 5833 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5835$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5836 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5837 if eval \${$cacheid+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843int 5844main () 5845{ 5846 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851if ac_fn_c_try_link "$LINENO"; then : 5852 eval $cacheid=yes 5853else 5854 eval $cacheid=no 5855fi 5856rm -f core conftest.err conftest.$ac_objext \ 5857 conftest$ac_exeext conftest.$ac_ext 5858fi 5859 5860 5861 CFLAGS="$xorg_testset_save_CFLAGS" 5862 5863 eval supported=\$$cacheid 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5865$as_echo "$supported" >&6; } 5866 if test "$supported" = "yes" ; then 5867 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5868 found="yes" 5869 fi 5870 fi 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886xorg_testset_save_CFLAGS="$CFLAGS" 5887 5888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO"; then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901else 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910fi 5911 5912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925_ACEOF 5926if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unused_command_line_argument=yes 5928else 5929 xorg_cv_cc_flag_unused_command_line_argument=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937fi 5938 5939found="no" 5940 5941 if test $found = "no" ; then 5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 fi 5945 5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5948 fi 5949 5950 CFLAGS="$CFLAGS -Wold-style-definition" 5951 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5953$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5954 cacheid=xorg_cv_cc_flag__Wold_style_definition 5955 if eval \${$cacheid+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960int i; 5961int 5962main () 5963{ 5964 5965 ; 5966 return 0; 5967} 5968_ACEOF 5969if ac_fn_c_try_link "$LINENO"; then : 5970 eval $cacheid=yes 5971else 5972 eval $cacheid=no 5973fi 5974rm -f core conftest.err conftest.$ac_objext \ 5975 conftest$ac_exeext conftest.$ac_ext 5976fi 5977 5978 5979 CFLAGS="$xorg_testset_save_CFLAGS" 5980 5981 eval supported=\$$cacheid 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5983$as_echo "$supported" >&6; } 5984 if test "$supported" = "yes" ; then 5985 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5986 found="yes" 5987 fi 5988 fi 5989 5990 if test $found = "no" ; then 5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 fi 5994 5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5997 fi 5998 5999 CFLAGS="$CFLAGS -fd" 6000 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6002$as_echo_n "checking if $CC supports -fd... " >&6; } 6003 cacheid=xorg_cv_cc_flag__fd 6004 if eval \${$cacheid+:} false; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6008/* end confdefs.h. */ 6009int i; 6010int 6011main () 6012{ 6013 6014 ; 6015 return 0; 6016} 6017_ACEOF 6018if ac_fn_c_try_link "$LINENO"; then : 6019 eval $cacheid=yes 6020else 6021 eval $cacheid=no 6022fi 6023rm -f core conftest.err conftest.$ac_objext \ 6024 conftest$ac_exeext conftest.$ac_ext 6025fi 6026 6027 6028 CFLAGS="$xorg_testset_save_CFLAGS" 6029 6030 eval supported=\$$cacheid 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6032$as_echo "$supported" >&6; } 6033 if test "$supported" = "yes" ; then 6034 BASE_CFLAGS="$BASE_CFLAGS -fd" 6035 found="yes" 6036 fi 6037 fi 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053xorg_testset_save_CFLAGS="$CFLAGS" 6054 6055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6063/* end confdefs.h. */ 6064int i; 6065_ACEOF 6066if ac_fn_c_try_compile "$LINENO"; then : 6067 xorg_cv_cc_flag_unknown_warning_option=yes 6068else 6069 xorg_cv_cc_flag_unknown_warning_option=no 6070fi 6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6072fi 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6076 CFLAGS="$xorg_testset_save_CFLAGS" 6077fi 6078 6079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 fi 6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO"; then : 6094 xorg_cv_cc_flag_unused_command_line_argument=yes 6095else 6096 xorg_cv_cc_flag_unused_command_line_argument=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6099fi 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104fi 6105 6106found="no" 6107 6108 if test $found = "no" ; then 6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 fi 6112 6113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6115 fi 6116 6117 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6118 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6120$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6121 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6122 if eval \${$cacheid+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127int i; 6128int 6129main () 6130{ 6131 6132 ; 6133 return 0; 6134} 6135_ACEOF 6136if ac_fn_c_try_link "$LINENO"; then : 6137 eval $cacheid=yes 6138else 6139 eval $cacheid=no 6140fi 6141rm -f core conftest.err conftest.$ac_objext \ 6142 conftest$ac_exeext conftest.$ac_ext 6143fi 6144 6145 6146 CFLAGS="$xorg_testset_save_CFLAGS" 6147 6148 eval supported=\$$cacheid 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6150$as_echo "$supported" >&6; } 6151 if test "$supported" = "yes" ; then 6152 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6153 found="yes" 6154 fi 6155 fi 6156 6157 6158 6159 6160 6161# This chunk adds additional warnings that could catch undesired effects. 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175xorg_testset_save_CFLAGS="$CFLAGS" 6176 6177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187_ACEOF 6188if ac_fn_c_try_compile "$LINENO"; then : 6189 xorg_cv_cc_flag_unknown_warning_option=yes 6190else 6191 xorg_cv_cc_flag_unknown_warning_option=no 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194fi 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199fi 6200 6201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO"; then : 6216 xorg_cv_cc_flag_unused_command_line_argument=yes 6217else 6218 xorg_cv_cc_flag_unused_command_line_argument=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226fi 6227 6228found="no" 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -Wunused" 6240 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6242$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6243 cacheid=xorg_cv_cc_flag__Wunused 6244 if eval \${$cacheid+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248/* end confdefs.h. */ 6249int i; 6250int 6251main () 6252{ 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258if ac_fn_c_try_link "$LINENO"; then : 6259 eval $cacheid=yes 6260else 6261 eval $cacheid=no 6262fi 6263rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265fi 6266 6267 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269 6270 eval supported=\$$cacheid 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6272$as_echo "$supported" >&6; } 6273 if test "$supported" = "yes" ; then 6274 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6275 found="yes" 6276 fi 6277 fi 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293xorg_testset_save_CFLAGS="$CFLAGS" 6294 6295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304int i; 6305_ACEOF 6306if ac_fn_c_try_compile "$LINENO"; then : 6307 xorg_cv_cc_flag_unknown_warning_option=yes 6308else 6309 xorg_cv_cc_flag_unknown_warning_option=no 6310fi 6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317fi 6318 6319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6322 fi 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331int i; 6332_ACEOF 6333if ac_fn_c_try_compile "$LINENO"; then : 6334 xorg_cv_cc_flag_unused_command_line_argument=yes 6335else 6336 xorg_cv_cc_flag_unused_command_line_argument=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339fi 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344fi 6345 6346found="no" 6347 6348 if test $found = "no" ; then 6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6351 fi 6352 6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 fi 6356 6357 CFLAGS="$CFLAGS -Wuninitialized" 6358 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6360$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6361 cacheid=xorg_cv_cc_flag__Wuninitialized 6362 if eval \${$cacheid+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_link "$LINENO"; then : 6377 eval $cacheid=yes 6378else 6379 eval $cacheid=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext \ 6382 conftest$ac_exeext conftest.$ac_ext 6383fi 6384 6385 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387 6388 eval supported=\$$cacheid 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6390$as_echo "$supported" >&6; } 6391 if test "$supported" = "yes" ; then 6392 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6393 found="yes" 6394 fi 6395 fi 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411xorg_testset_save_CFLAGS="$CFLAGS" 6412 6413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423_ACEOF 6424if ac_fn_c_try_compile "$LINENO"; then : 6425 xorg_cv_cc_flag_unknown_warning_option=yes 6426else 6427 xorg_cv_cc_flag_unknown_warning_option=no 6428fi 6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6430fi 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6434 CFLAGS="$xorg_testset_save_CFLAGS" 6435fi 6436 6437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 fi 6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449int i; 6450_ACEOF 6451if ac_fn_c_try_compile "$LINENO"; then : 6452 xorg_cv_cc_flag_unused_command_line_argument=yes 6453else 6454 xorg_cv_cc_flag_unused_command_line_argument=no 6455fi 6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457fi 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462fi 6463 6464found="no" 6465 6466 if test $found = "no" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 fi 6474 6475 CFLAGS="$CFLAGS -Wshadow" 6476 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6478$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6479 cacheid=xorg_cv_cc_flag__Wshadow 6480 if eval \${$cacheid+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485int i; 6486int 6487main () 6488{ 6489 6490 ; 6491 return 0; 6492} 6493_ACEOF 6494if ac_fn_c_try_link "$LINENO"; then : 6495 eval $cacheid=yes 6496else 6497 eval $cacheid=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext \ 6500 conftest$ac_exeext conftest.$ac_ext 6501fi 6502 6503 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505 6506 eval supported=\$$cacheid 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6508$as_echo "$supported" >&6; } 6509 if test "$supported" = "yes" ; then 6510 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6511 found="yes" 6512 fi 6513 fi 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529xorg_testset_save_CFLAGS="$CFLAGS" 6530 6531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540int i; 6541_ACEOF 6542if ac_fn_c_try_compile "$LINENO"; then : 6543 xorg_cv_cc_flag_unknown_warning_option=yes 6544else 6545 xorg_cv_cc_flag_unknown_warning_option=no 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6548fi 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6552 CFLAGS="$xorg_testset_save_CFLAGS" 6553fi 6554 6555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6558 fi 6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566/* end confdefs.h. */ 6567int i; 6568_ACEOF 6569if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unused_command_line_argument=yes 6571else 6572 xorg_cv_cc_flag_unused_command_line_argument=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580fi 6581 6582found="no" 6583 6584 if test $found = "no" ; then 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 fi 6588 6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6591 fi 6592 6593 CFLAGS="$CFLAGS -Wmissing-noreturn" 6594 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6596$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6597 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6598 if eval \${$cacheid+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600else 6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602/* end confdefs.h. */ 6603int i; 6604int 6605main () 6606{ 6607 6608 ; 6609 return 0; 6610} 6611_ACEOF 6612if ac_fn_c_try_link "$LINENO"; then : 6613 eval $cacheid=yes 6614else 6615 eval $cacheid=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext \ 6618 conftest$ac_exeext conftest.$ac_ext 6619fi 6620 6621 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623 6624 eval supported=\$$cacheid 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6626$as_echo "$supported" >&6; } 6627 if test "$supported" = "yes" ; then 6628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6629 found="yes" 6630 fi 6631 fi 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647xorg_testset_save_CFLAGS="$CFLAGS" 6648 6649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659_ACEOF 6660if ac_fn_c_try_compile "$LINENO"; then : 6661 xorg_cv_cc_flag_unknown_warning_option=yes 6662else 6663 xorg_cv_cc_flag_unknown_warning_option=no 6664fi 6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6666fi 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6668$as_echo "$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" 6671fi 6672 6673if 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO"; then : 6688 xorg_cv_cc_flag_unused_command_line_argument=yes 6689else 6690 xorg_cv_cc_flag_unused_command_line_argument=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700found="no" 6701 6702 if test $found = "no" ; then 6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6705 fi 6706 6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6709 fi 6710 6711 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6714$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6715 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6716 if eval \${$cacheid+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721int i; 6722int 6723main () 6724{ 6725 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730if ac_fn_c_try_link "$LINENO"; then : 6731 eval $cacheid=yes 6732else 6733 eval $cacheid=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext \ 6736 conftest$ac_exeext conftest.$ac_ext 6737fi 6738 6739 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741 6742 eval supported=\$$cacheid 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6744$as_echo "$supported" >&6; } 6745 if test "$supported" = "yes" ; then 6746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6747 found="yes" 6748 fi 6749 fi 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765xorg_testset_save_CFLAGS="$CFLAGS" 6766 6767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776int i; 6777_ACEOF 6778if ac_fn_c_try_compile "$LINENO"; then : 6779 xorg_cv_cc_flag_unknown_warning_option=yes 6780else 6781 xorg_cv_cc_flag_unknown_warning_option=no 6782fi 6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6784fi 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6788 CFLAGS="$xorg_testset_save_CFLAGS" 6789fi 6790 6791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6794 fi 6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803int i; 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO"; then : 6806 xorg_cv_cc_flag_unused_command_line_argument=yes 6807else 6808 xorg_cv_cc_flag_unused_command_line_argument=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811fi 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816fi 6817 6818found="no" 6819 6820 if test $found = "no" ; then 6821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 fi 6824 6825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 fi 6828 6829 CFLAGS="$CFLAGS -Wredundant-decls" 6830 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6832$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6833 cacheid=xorg_cv_cc_flag__Wredundant_decls 6834 if eval \${$cacheid+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6838/* end confdefs.h. */ 6839int i; 6840int 6841main () 6842{ 6843 6844 ; 6845 return 0; 6846} 6847_ACEOF 6848if ac_fn_c_try_link "$LINENO"; then : 6849 eval $cacheid=yes 6850else 6851 eval $cacheid=no 6852fi 6853rm -f core conftest.err conftest.$ac_objext \ 6854 conftest$ac_exeext conftest.$ac_ext 6855fi 6856 6857 6858 CFLAGS="$xorg_testset_save_CFLAGS" 6859 6860 eval supported=\$$cacheid 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6862$as_echo "$supported" >&6; } 6863 if test "$supported" = "yes" ; then 6864 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6865 found="yes" 6866 fi 6867 fi 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883xorg_testset_save_CFLAGS="$CFLAGS" 6884 6885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO"; then : 6897 xorg_cv_cc_flag_unknown_warning_option=yes 6898else 6899 xorg_cv_cc_flag_unknown_warning_option=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 fi 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unused_command_line_argument=yes 6925else 6926 xorg_cv_cc_flag_unused_command_line_argument=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936found="no" 6937 6938 if test $found = "no" ; then 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6945 fi 6946 6947 CFLAGS="$CFLAGS -Wlogical-op" 6948 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6950$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6951 cacheid=xorg_cv_cc_flag__Wlogical_op 6952 if eval \${$cacheid+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO"; then : 6967 eval $cacheid=yes 6968else 6969 eval $cacheid=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext \ 6972 conftest$ac_exeext conftest.$ac_ext 6973fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980$as_echo "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6983 found="yes" 6984 fi 6985 fi 6986 6987 6988 6989# These are currently disabled because they are noisy. They will be enabled 6990# in the future once the codebase is sufficiently modernized to silence 6991# them. For now, I don't want them to drown out the other warnings. 6992# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6993# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6994# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6995 6996# Turn some warnings into errors, so we don't accidently get successful builds 6997# when there are problems that should be fixed. 6998 6999if test "x$SELECTIVE_WERROR" = "xyes" ; then 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013xorg_testset_save_CFLAGS="$CFLAGS" 7014 7015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO"; then : 7027 xorg_cv_cc_flag_unknown_warning_option=yes 7028else 7029 xorg_cv_cc_flag_unknown_warning_option=no 7030fi 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037fi 7038 7039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 fi 7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unused_command_line_argument=yes 7055else 7056 xorg_cv_cc_flag_unused_command_line_argument=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066found="no" 7067 7068 if test $found = "no" ; then 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 fi 7072 7073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7075 fi 7076 7077 CFLAGS="$CFLAGS -Werror=implicit" 7078 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7080$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7081 cacheid=xorg_cv_cc_flag__Werror_implicit 7082 if eval \${$cacheid+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088int 7089main () 7090{ 7091 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096if ac_fn_c_try_link "$LINENO"; then : 7097 eval $cacheid=yes 7098else 7099 eval $cacheid=no 7100fi 7101rm -f core conftest.err conftest.$ac_objext \ 7102 conftest$ac_exeext conftest.$ac_ext 7103fi 7104 7105 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107 7108 eval supported=\$$cacheid 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7110$as_echo "$supported" >&6; } 7111 if test "$supported" = "yes" ; then 7112 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7113 found="yes" 7114 fi 7115 fi 7116 7117 if test $found = "no" ; then 7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7120 fi 7121 7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7124 fi 7125 7126 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7127 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7129$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7130 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7131 if eval \${$cacheid+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136int i; 7137int 7138main () 7139{ 7140 7141 ; 7142 return 0; 7143} 7144_ACEOF 7145if ac_fn_c_try_link "$LINENO"; then : 7146 eval $cacheid=yes 7147else 7148 eval $cacheid=no 7149fi 7150rm -f core conftest.err conftest.$ac_objext \ 7151 conftest$ac_exeext conftest.$ac_ext 7152fi 7153 7154 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156 7157 eval supported=\$$cacheid 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7159$as_echo "$supported" >&6; } 7160 if test "$supported" = "yes" ; then 7161 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7162 found="yes" 7163 fi 7164 fi 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180xorg_testset_save_CFLAGS="$CFLAGS" 7181 7182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191int i; 7192_ACEOF 7193if ac_fn_c_try_compile "$LINENO"; then : 7194 xorg_cv_cc_flag_unknown_warning_option=yes 7195else 7196 xorg_cv_cc_flag_unknown_warning_option=no 7197fi 7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7199fi 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7203 CFLAGS="$xorg_testset_save_CFLAGS" 7204fi 7205 7206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 fi 7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218int i; 7219_ACEOF 7220if ac_fn_c_try_compile "$LINENO"; then : 7221 xorg_cv_cc_flag_unused_command_line_argument=yes 7222else 7223 xorg_cv_cc_flag_unused_command_line_argument=no 7224fi 7225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7226fi 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231fi 7232 7233found="no" 7234 7235 if test $found = "no" ; then 7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7238 fi 7239 7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7242 fi 7243 7244 CFLAGS="$CFLAGS -Werror=nonnull" 7245 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7247$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7248 cacheid=xorg_cv_cc_flag__Werror_nonnull 7249 if eval \${$cacheid+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255int 7256main () 7257{ 7258 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO"; then : 7264 eval $cacheid=yes 7265else 7266 eval $cacheid=no 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270fi 7271 7272 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274 7275 eval supported=\$$cacheid 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277$as_echo "$supported" >&6; } 7278 if test "$supported" = "yes" ; then 7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7280 found="yes" 7281 fi 7282 fi 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298xorg_testset_save_CFLAGS="$CFLAGS" 7299 7300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310_ACEOF 7311if ac_fn_c_try_compile "$LINENO"; then : 7312 xorg_cv_cc_flag_unknown_warning_option=yes 7313else 7314 xorg_cv_cc_flag_unknown_warning_option=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7321 CFLAGS="$xorg_testset_save_CFLAGS" 7322fi 7323 7324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO"; then : 7339 xorg_cv_cc_flag_unused_command_line_argument=yes 7340else 7341 xorg_cv_cc_flag_unused_command_line_argument=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349fi 7350 7351found="no" 7352 7353 if test $found = "no" ; then 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 fi 7357 7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 fi 7361 7362 CFLAGS="$CFLAGS -Werror=init-self" 7363 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7365$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7366 cacheid=xorg_cv_cc_flag__Werror_init_self 7367 if eval \${$cacheid+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7371/* end confdefs.h. */ 7372int i; 7373int 7374main () 7375{ 7376 7377 ; 7378 return 0; 7379} 7380_ACEOF 7381if ac_fn_c_try_link "$LINENO"; then : 7382 eval $cacheid=yes 7383else 7384 eval $cacheid=no 7385fi 7386rm -f core conftest.err conftest.$ac_objext \ 7387 conftest$ac_exeext conftest.$ac_ext 7388fi 7389 7390 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392 7393 eval supported=\$$cacheid 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7395$as_echo "$supported" >&6; } 7396 if test "$supported" = "yes" ; then 7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7398 found="yes" 7399 fi 7400 fi 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416xorg_testset_save_CFLAGS="$CFLAGS" 7417 7418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO"; then : 7430 xorg_cv_cc_flag_unknown_warning_option=yes 7431else 7432 xorg_cv_cc_flag_unknown_warning_option=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440fi 7441 7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 fi 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455_ACEOF 7456if ac_fn_c_try_compile "$LINENO"; then : 7457 xorg_cv_cc_flag_unused_command_line_argument=yes 7458else 7459 xorg_cv_cc_flag_unused_command_line_argument=no 7460fi 7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462fi 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467fi 7468 7469found="no" 7470 7471 if test $found = "no" ; then 7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474 fi 7475 7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7478 fi 7479 7480 CFLAGS="$CFLAGS -Werror=main" 7481 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7483$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7484 cacheid=xorg_cv_cc_flag__Werror_main 7485 if eval \${$cacheid+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490int i; 7491int 7492main () 7493{ 7494 7495 ; 7496 return 0; 7497} 7498_ACEOF 7499if ac_fn_c_try_link "$LINENO"; then : 7500 eval $cacheid=yes 7501else 7502 eval $cacheid=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506fi 7507 7508 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510 7511 eval supported=\$$cacheid 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7513$as_echo "$supported" >&6; } 7514 if test "$supported" = "yes" ; then 7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7516 found="yes" 7517 fi 7518 fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534xorg_testset_save_CFLAGS="$CFLAGS" 7535 7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546_ACEOF 7547if ac_fn_c_try_compile "$LINENO"; then : 7548 xorg_cv_cc_flag_unknown_warning_option=yes 7549else 7550 xorg_cv_cc_flag_unknown_warning_option=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558fi 7559 7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573_ACEOF 7574if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unused_command_line_argument=yes 7576else 7577 xorg_cv_cc_flag_unused_command_line_argument=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585fi 7586 7587found="no" 7588 7589 if test $found = "no" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 fi 7597 7598 CFLAGS="$CFLAGS -Werror=missing-braces" 7599 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7601$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7602 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7603 if eval \${$cacheid+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608int i; 7609int 7610main () 7611{ 7612 7613 ; 7614 return 0; 7615} 7616_ACEOF 7617if ac_fn_c_try_link "$LINENO"; then : 7618 eval $cacheid=yes 7619else 7620 eval $cacheid=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext \ 7623 conftest$ac_exeext conftest.$ac_ext 7624fi 7625 7626 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628 7629 eval supported=\$$cacheid 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7631$as_echo "$supported" >&6; } 7632 if test "$supported" = "yes" ; then 7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7634 found="yes" 7635 fi 7636 fi 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652xorg_testset_save_CFLAGS="$CFLAGS" 7653 7654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664_ACEOF 7665if ac_fn_c_try_compile "$LINENO"; then : 7666 xorg_cv_cc_flag_unknown_warning_option=yes 7667else 7668 xorg_cv_cc_flag_unknown_warning_option=no 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676fi 7677 7678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 fi 7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO"; then : 7693 xorg_cv_cc_flag_unused_command_line_argument=yes 7694else 7695 xorg_cv_cc_flag_unused_command_line_argument=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698fi 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703fi 7704 7705found="no" 7706 7707 if test $found = "no" ; then 7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 fi 7711 7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 fi 7715 7716 CFLAGS="$CFLAGS -Werror=sequence-point" 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7719$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7720 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7721 if eval \${$cacheid+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727int 7728main () 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO"; then : 7736 eval $cacheid=yes 7737else 7738 eval $cacheid=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742fi 7743 7744 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746 7747 eval supported=\$$cacheid 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7749$as_echo "$supported" >&6; } 7750 if test "$supported" = "yes" ; then 7751 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7752 found="yes" 7753 fi 7754 fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782_ACEOF 7783if ac_fn_c_try_compile "$LINENO"; then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785else 7786 xorg_cv_cc_flag_unknown_warning_option=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unused_command_line_argument=yes 7812else 7813 xorg_cv_cc_flag_unused_command_line_argument=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823found="no" 7824 7825 if test $found = "no" ; then 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 fi 7829 7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7832 fi 7833 7834 CFLAGS="$CFLAGS -Werror=return-type" 7835 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7837$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7838 cacheid=xorg_cv_cc_flag__Werror_return_type 7839 if eval \${$cacheid+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845int 7846main () 7847{ 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853if ac_fn_c_try_link "$LINENO"; then : 7854 eval $cacheid=yes 7855else 7856 eval $cacheid=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext \ 7859 conftest$ac_exeext conftest.$ac_ext 7860fi 7861 7862 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864 7865 eval supported=\$$cacheid 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7867$as_echo "$supported" >&6; } 7868 if test "$supported" = "yes" ; then 7869 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7870 found="yes" 7871 fi 7872 fi 7873 7874 if test $found = "no" ; then 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 fi 7882 7883 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7884 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7886$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7887 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7888 if eval \${$cacheid+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893int i; 7894int 7895main () 7896{ 7897 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902if ac_fn_c_try_link "$LINENO"; then : 7903 eval $cacheid=yes 7904else 7905 eval $cacheid=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909fi 7910 7911 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913 7914 eval supported=\$$cacheid 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7916$as_echo "$supported" >&6; } 7917 if test "$supported" = "yes" ; then 7918 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7919 found="yes" 7920 fi 7921 fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937xorg_testset_save_CFLAGS="$CFLAGS" 7938 7939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949_ACEOF 7950if ac_fn_c_try_compile "$LINENO"; then : 7951 xorg_cv_cc_flag_unknown_warning_option=yes 7952else 7953 xorg_cv_cc_flag_unknown_warning_option=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975int i; 7976_ACEOF 7977if ac_fn_c_try_compile "$LINENO"; then : 7978 xorg_cv_cc_flag_unused_command_line_argument=yes 7979else 7980 xorg_cv_cc_flag_unused_command_line_argument=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=trigraphs" 8002 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8004$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8006 if eval \${$cacheid+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011int i; 8012int 8013main () 8014{ 8015 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020if ac_fn_c_try_link "$LINENO"; then : 8021 eval $cacheid=yes 8022else 8023 eval $cacheid=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext \ 8026 conftest$ac_exeext conftest.$ac_ext 8027fi 8028 8029 8030 CFLAGS="$xorg_testset_save_CFLAGS" 8031 8032 eval supported=\$$cacheid 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8034$as_echo "$supported" >&6; } 8035 if test "$supported" = "yes" ; then 8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8037 found="yes" 8038 fi 8039 fi 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055xorg_testset_save_CFLAGS="$CFLAGS" 8056 8057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067_ACEOF 8068if ac_fn_c_try_compile "$LINENO"; then : 8069 xorg_cv_cc_flag_unknown_warning_option=yes 8070else 8071 xorg_cv_cc_flag_unknown_warning_option=no 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8078 CFLAGS="$xorg_testset_save_CFLAGS" 8079fi 8080 8081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093int i; 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO"; then : 8096 xorg_cv_cc_flag_unused_command_line_argument=yes 8097else 8098 xorg_cv_cc_flag_unused_command_line_argument=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106fi 8107 8108found="no" 8109 8110 if test $found = "no" ; then 8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8113 fi 8114 8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8117 fi 8118 8119 CFLAGS="$CFLAGS -Werror=array-bounds" 8120 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8122$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8123 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8124 if eval \${$cacheid+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128/* end confdefs.h. */ 8129int i; 8130int 8131main () 8132{ 8133 8134 ; 8135 return 0; 8136} 8137_ACEOF 8138if ac_fn_c_try_link "$LINENO"; then : 8139 eval $cacheid=yes 8140else 8141 eval $cacheid=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext \ 8144 conftest$ac_exeext conftest.$ac_ext 8145fi 8146 8147 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149 8150 eval supported=\$$cacheid 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8152$as_echo "$supported" >&6; } 8153 if test "$supported" = "yes" ; then 8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8155 found="yes" 8156 fi 8157 fi 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173xorg_testset_save_CFLAGS="$CFLAGS" 8174 8175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185_ACEOF 8186if ac_fn_c_try_compile "$LINENO"; then : 8187 xorg_cv_cc_flag_unknown_warning_option=yes 8188else 8189 xorg_cv_cc_flag_unknown_warning_option=no 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197fi 8198 8199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211int i; 8212_ACEOF 8213if ac_fn_c_try_compile "$LINENO"; then : 8214 xorg_cv_cc_flag_unused_command_line_argument=yes 8215else 8216 xorg_cv_cc_flag_unused_command_line_argument=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219fi 8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224fi 8225 8226found="no" 8227 8228 if test $found = "no" ; then 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 fi 8236 8237 CFLAGS="$CFLAGS -Werror=write-strings" 8238 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8240$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8241 cacheid=xorg_cv_cc_flag__Werror_write_strings 8242 if eval \${$cacheid+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247int i; 8248int 8249main () 8250{ 8251 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256if ac_fn_c_try_link "$LINENO"; then : 8257 eval $cacheid=yes 8258else 8259 eval $cacheid=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext \ 8262 conftest$ac_exeext conftest.$ac_ext 8263fi 8264 8265 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267 8268 eval supported=\$$cacheid 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8270$as_echo "$supported" >&6; } 8271 if test "$supported" = "yes" ; then 8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8273 found="yes" 8274 fi 8275 fi 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291xorg_testset_save_CFLAGS="$CFLAGS" 8292 8293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303_ACEOF 8304if ac_fn_c_try_compile "$LINENO"; then : 8305 xorg_cv_cc_flag_unknown_warning_option=yes 8306else 8307 xorg_cv_cc_flag_unknown_warning_option=no 8308fi 8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8310fi 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8314 CFLAGS="$xorg_testset_save_CFLAGS" 8315fi 8316 8317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320 fi 8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO"; then : 8332 xorg_cv_cc_flag_unused_command_line_argument=yes 8333else 8334 xorg_cv_cc_flag_unused_command_line_argument=no 8335fi 8336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342fi 8343 8344found="no" 8345 8346 if test $found = "no" ; then 8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 fi 8350 8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 fi 8354 8355 CFLAGS="$CFLAGS -Werror=address" 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8358$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8359 cacheid=xorg_cv_cc_flag__Werror_address 8360 if eval \${$cacheid+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365int i; 8366int 8367main () 8368{ 8369 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374if ac_fn_c_try_link "$LINENO"; then : 8375 eval $cacheid=yes 8376else 8377 eval $cacheid=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388$as_echo "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421_ACEOF 8422if ac_fn_c_try_compile "$LINENO"; then : 8423 xorg_cv_cc_flag_unknown_warning_option=yes 8424else 8425 xorg_cv_cc_flag_unknown_warning_option=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8432 CFLAGS="$xorg_testset_save_CFLAGS" 8433fi 8434 8435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448_ACEOF 8449if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unused_command_line_argument=yes 8451else 8452 xorg_cv_cc_flag_unused_command_line_argument=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462found="no" 8463 8464 if test $found = "no" ; then 8465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 fi 8468 8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8471 fi 8472 8473 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8474 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8476$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8477 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8478 if eval \${$cacheid+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484int 8485main () 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492if ac_fn_c_try_link "$LINENO"; then : 8493 eval $cacheid=yes 8494else 8495 eval $cacheid=no 8496fi 8497rm -f core conftest.err conftest.$ac_objext \ 8498 conftest$ac_exeext conftest.$ac_ext 8499fi 8500 8501 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503 8504 eval supported=\$$cacheid 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8506$as_echo "$supported" >&6; } 8507 if test "$supported" = "yes" ; then 8508 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8509 found="yes" 8510 fi 8511 fi 8512 8513 if test $found = "no" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8520 fi 8521 8522 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8523 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8525$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8526 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8527 if eval \${$cacheid+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531/* end confdefs.h. */ 8532int i; 8533int 8534main () 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO"; then : 8542 eval $cacheid=yes 8543else 8544 eval $cacheid=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext \ 8547 conftest$ac_exeext conftest.$ac_ext 8548fi 8549 8550 8551 CFLAGS="$xorg_testset_save_CFLAGS" 8552 8553 eval supported=\$$cacheid 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8555$as_echo "$supported" >&6; } 8556 if test "$supported" = "yes" ; then 8557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8558 found="yes" 8559 fi 8560 fi 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576xorg_testset_save_CFLAGS="$CFLAGS" 8577 8578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588_ACEOF 8589if ac_fn_c_try_compile "$LINENO"; then : 8590 xorg_cv_cc_flag_unknown_warning_option=yes 8591else 8592 xorg_cv_cc_flag_unknown_warning_option=no 8593fi 8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8599 CFLAGS="$xorg_testset_save_CFLAGS" 8600fi 8601 8602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 fi 8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unused_command_line_argument=yes 8618else 8619 xorg_cv_cc_flag_unused_command_line_argument=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629found="no" 8630 8631 if test $found = "no" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 fi 8639 8640 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8643$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8644 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8645 if eval \${$cacheid+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650int i; 8651int 8652main () 8653{ 8654 8655 ; 8656 return 0; 8657} 8658_ACEOF 8659if ac_fn_c_try_link "$LINENO"; then : 8660 eval $cacheid=yes 8661else 8662 eval $cacheid=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext conftest.$ac_ext 8666fi 8667 8668 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 8671 eval supported=\$$cacheid 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8673$as_echo "$supported" >&6; } 8674 if test "$supported" = "yes" ; then 8675 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8676 found="yes" 8677 fi 8678 fi 8679 8680 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8681else 8682{ $as_echo "$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 8683$as_echo "$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;} 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697xorg_testset_save_CFLAGS="$CFLAGS" 8698 8699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708int i; 8709_ACEOF 8710if ac_fn_c_try_compile "$LINENO"; then : 8711 xorg_cv_cc_flag_unknown_warning_option=yes 8712else 8713 xorg_cv_cc_flag_unknown_warning_option=no 8714fi 8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721fi 8722 8723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735int i; 8736_ACEOF 8737if ac_fn_c_try_compile "$LINENO"; then : 8738 xorg_cv_cc_flag_unused_command_line_argument=yes 8739else 8740 xorg_cv_cc_flag_unused_command_line_argument=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8743fi 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748fi 8749 8750found="no" 8751 8752 if test $found = "no" ; then 8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8755 fi 8756 8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 fi 8760 8761 CFLAGS="$CFLAGS -Wimplicit" 8762 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8764$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8765 cacheid=xorg_cv_cc_flag__Wimplicit 8766 if eval \${$cacheid+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771int i; 8772int 8773main () 8774{ 8775 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780if ac_fn_c_try_link "$LINENO"; then : 8781 eval $cacheid=yes 8782else 8783 eval $cacheid=no 8784fi 8785rm -f core conftest.err conftest.$ac_objext \ 8786 conftest$ac_exeext conftest.$ac_ext 8787fi 8788 8789 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791 8792 eval supported=\$$cacheid 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8794$as_echo "$supported" >&6; } 8795 if test "$supported" = "yes" ; then 8796 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8797 found="yes" 8798 fi 8799 fi 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815xorg_testset_save_CFLAGS="$CFLAGS" 8816 8817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827_ACEOF 8828if ac_fn_c_try_compile "$LINENO"; then : 8829 xorg_cv_cc_flag_unknown_warning_option=yes 8830else 8831 xorg_cv_cc_flag_unknown_warning_option=no 8832fi 8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8838 CFLAGS="$xorg_testset_save_CFLAGS" 8839fi 8840 8841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 fi 8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854_ACEOF 8855if ac_fn_c_try_compile "$LINENO"; then : 8856 xorg_cv_cc_flag_unused_command_line_argument=yes 8857else 8858 xorg_cv_cc_flag_unused_command_line_argument=no 8859fi 8860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866fi 8867 8868found="no" 8869 8870 if test $found = "no" ; then 8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8873 fi 8874 8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 fi 8878 8879 CFLAGS="$CFLAGS -Wnonnull" 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8882$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8883 cacheid=xorg_cv_cc_flag__Wnonnull 8884 if eval \${$cacheid+:} false; then : 8885 $as_echo_n "(cached) " >&6 8886else 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888/* end confdefs.h. */ 8889int i; 8890int 8891main () 8892{ 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898if ac_fn_c_try_link "$LINENO"; then : 8899 eval $cacheid=yes 8900else 8901 eval $cacheid=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext \ 8904 conftest$ac_exeext conftest.$ac_ext 8905fi 8906 8907 8908 CFLAGS="$xorg_testset_save_CFLAGS" 8909 8910 eval supported=\$$cacheid 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8912$as_echo "$supported" >&6; } 8913 if test "$supported" = "yes" ; then 8914 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8915 found="yes" 8916 fi 8917 fi 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933xorg_testset_save_CFLAGS="$CFLAGS" 8934 8935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO"; then : 8947 xorg_cv_cc_flag_unknown_warning_option=yes 8948else 8949 xorg_cv_cc_flag_unknown_warning_option=no 8950fi 8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8952fi 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8956 CFLAGS="$xorg_testset_save_CFLAGS" 8957fi 8958 8959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8962 fi 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972_ACEOF 8973if ac_fn_c_try_compile "$LINENO"; then : 8974 xorg_cv_cc_flag_unused_command_line_argument=yes 8975else 8976 xorg_cv_cc_flag_unused_command_line_argument=no 8977fi 8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984fi 8985 8986found="no" 8987 8988 if test $found = "no" ; then 8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8991 fi 8992 8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8995 fi 8996 8997 CFLAGS="$CFLAGS -Winit-self" 8998 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9000$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9001 cacheid=xorg_cv_cc_flag__Winit_self 9002 if eval \${$cacheid+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004else 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007int i; 9008int 9009main () 9010{ 9011 9012 ; 9013 return 0; 9014} 9015_ACEOF 9016if ac_fn_c_try_link "$LINENO"; then : 9017 eval $cacheid=yes 9018else 9019 eval $cacheid=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext \ 9022 conftest$ac_exeext conftest.$ac_ext 9023fi 9024 9025 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027 9028 eval supported=\$$cacheid 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9030$as_echo "$supported" >&6; } 9031 if test "$supported" = "yes" ; then 9032 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9033 found="yes" 9034 fi 9035 fi 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051xorg_testset_save_CFLAGS="$CFLAGS" 9052 9053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059else 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062int i; 9063_ACEOF 9064if ac_fn_c_try_compile "$LINENO"; then : 9065 xorg_cv_cc_flag_unknown_warning_option=yes 9066else 9067 xorg_cv_cc_flag_unknown_warning_option=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9070fi 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075fi 9076 9077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086else 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090_ACEOF 9091if ac_fn_c_try_compile "$LINENO"; then : 9092 xorg_cv_cc_flag_unused_command_line_argument=yes 9093else 9094 xorg_cv_cc_flag_unused_command_line_argument=no 9095fi 9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9097fi 9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102fi 9103 9104found="no" 9105 9106 if test $found = "no" ; then 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 fi 9114 9115 CFLAGS="$CFLAGS -Wmain" 9116 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9118$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9119 cacheid=xorg_cv_cc_flag__Wmain 9120 if eval \${$cacheid+:} false; then : 9121 $as_echo_n "(cached) " >&6 9122else 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124/* end confdefs.h. */ 9125int i; 9126int 9127main () 9128{ 9129 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134if ac_fn_c_try_link "$LINENO"; then : 9135 eval $cacheid=yes 9136else 9137 eval $cacheid=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext \ 9140 conftest$ac_exeext conftest.$ac_ext 9141fi 9142 9143 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145 9146 eval supported=\$$cacheid 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9148$as_echo "$supported" >&6; } 9149 if test "$supported" = "yes" ; then 9150 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9151 found="yes" 9152 fi 9153 fi 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169xorg_testset_save_CFLAGS="$CFLAGS" 9170 9171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180int i; 9181_ACEOF 9182if ac_fn_c_try_compile "$LINENO"; then : 9183 xorg_cv_cc_flag_unknown_warning_option=yes 9184else 9185 xorg_cv_cc_flag_unknown_warning_option=no 9186fi 9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9188fi 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9192 CFLAGS="$xorg_testset_save_CFLAGS" 9193fi 9194 9195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9198 fi 9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206/* end confdefs.h. */ 9207int i; 9208_ACEOF 9209if ac_fn_c_try_compile "$LINENO"; then : 9210 xorg_cv_cc_flag_unused_command_line_argument=yes 9211else 9212 xorg_cv_cc_flag_unused_command_line_argument=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220fi 9221 9222found="no" 9223 9224 if test $found = "no" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 fi 9232 9233 CFLAGS="$CFLAGS -Wmissing-braces" 9234 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9236$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9237 cacheid=xorg_cv_cc_flag__Wmissing_braces 9238 if eval \${$cacheid+:} false; then : 9239 $as_echo_n "(cached) " >&6 9240else 9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9242/* end confdefs.h. */ 9243int i; 9244int 9245main () 9246{ 9247 9248 ; 9249 return 0; 9250} 9251_ACEOF 9252if ac_fn_c_try_link "$LINENO"; then : 9253 eval $cacheid=yes 9254else 9255 eval $cacheid=no 9256fi 9257rm -f core conftest.err conftest.$ac_objext \ 9258 conftest$ac_exeext conftest.$ac_ext 9259fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266$as_echo "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299_ACEOF 9300if ac_fn_c_try_compile "$LINENO"; then : 9301 xorg_cv_cc_flag_unknown_warning_option=yes 9302else 9303 xorg_cv_cc_flag_unknown_warning_option=no 9304fi 9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9306fi 9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9310 CFLAGS="$xorg_testset_save_CFLAGS" 9311fi 9312 9313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 fi 9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324/* end confdefs.h. */ 9325int i; 9326_ACEOF 9327if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unused_command_line_argument=yes 9329else 9330 xorg_cv_cc_flag_unused_command_line_argument=no 9331fi 9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333fi 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338fi 9339 9340found="no" 9341 9342 if test $found = "no" ; then 9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9345 fi 9346 9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 fi 9350 9351 CFLAGS="$CFLAGS -Wsequence-point" 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9354$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9355 cacheid=xorg_cv_cc_flag__Wsequence_point 9356 if eval \${$cacheid+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362int 9363main () 9364{ 9365 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_link "$LINENO"; then : 9371 eval $cacheid=yes 9372else 9373 eval $cacheid=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext \ 9376 conftest$ac_exeext conftest.$ac_ext 9377fi 9378 9379 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381 9382 eval supported=\$$cacheid 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9384$as_echo "$supported" >&6; } 9385 if test "$supported" = "yes" ; then 9386 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9387 found="yes" 9388 fi 9389 fi 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405xorg_testset_save_CFLAGS="$CFLAGS" 9406 9407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO"; then : 9419 xorg_cv_cc_flag_unknown_warning_option=yes 9420else 9421 xorg_cv_cc_flag_unknown_warning_option=no 9422fi 9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9424fi 9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9428 CFLAGS="$xorg_testset_save_CFLAGS" 9429fi 9430 9431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 fi 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unused_command_line_argument=yes 9447else 9448 xorg_cv_cc_flag_unused_command_line_argument=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Wreturn-type" 9470 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9472$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Wreturn_type 9474 if eval \${$cacheid+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480int 9481main () 9482{ 9483 9484 ; 9485 return 0; 9486} 9487_ACEOF 9488if ac_fn_c_try_link "$LINENO"; then : 9489 eval $cacheid=yes 9490else 9491 eval $cacheid=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext \ 9494 conftest$ac_exeext conftest.$ac_ext 9495fi 9496 9497 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499 9500 eval supported=\$$cacheid 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9502$as_echo "$supported" >&6; } 9503 if test "$supported" = "yes" ; then 9504 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9505 found="yes" 9506 fi 9507 fi 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523xorg_testset_save_CFLAGS="$CFLAGS" 9524 9525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535_ACEOF 9536if ac_fn_c_try_compile "$LINENO"; then : 9537 xorg_cv_cc_flag_unknown_warning_option=yes 9538else 9539 xorg_cv_cc_flag_unknown_warning_option=no 9540fi 9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547fi 9548 9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561int i; 9562_ACEOF 9563if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unused_command_line_argument=yes 9565else 9566 xorg_cv_cc_flag_unused_command_line_argument=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576found="no" 9577 9578 if test $found = "no" ; then 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 fi 9582 9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 fi 9586 9587 CFLAGS="$CFLAGS -Wtrigraphs" 9588 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9590$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9591 cacheid=xorg_cv_cc_flag__Wtrigraphs 9592 if eval \${$cacheid+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597int i; 9598int 9599main () 9600{ 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606if ac_fn_c_try_link "$LINENO"; then : 9607 eval $cacheid=yes 9608else 9609 eval $cacheid=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613fi 9614 9615 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617 9618 eval supported=\$$cacheid 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9620$as_echo "$supported" >&6; } 9621 if test "$supported" = "yes" ; then 9622 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9623 found="yes" 9624 fi 9625 fi 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641xorg_testset_save_CFLAGS="$CFLAGS" 9642 9643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653_ACEOF 9654if ac_fn_c_try_compile "$LINENO"; then : 9655 xorg_cv_cc_flag_unknown_warning_option=yes 9656else 9657 xorg_cv_cc_flag_unknown_warning_option=no 9658fi 9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660fi 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9664 CFLAGS="$xorg_testset_save_CFLAGS" 9665fi 9666 9667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9670 fi 9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679int i; 9680_ACEOF 9681if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unused_command_line_argument=yes 9683else 9684 xorg_cv_cc_flag_unused_command_line_argument=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692fi 9693 9694found="no" 9695 9696 if test $found = "no" ; then 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 fi 9700 9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9703 fi 9704 9705 CFLAGS="$CFLAGS -Warray-bounds" 9706 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9708$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9709 cacheid=xorg_cv_cc_flag__Warray_bounds 9710 if eval \${$cacheid+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715int i; 9716int 9717main () 9718{ 9719 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724if ac_fn_c_try_link "$LINENO"; then : 9725 eval $cacheid=yes 9726else 9727 eval $cacheid=no 9728fi 9729rm -f core conftest.err conftest.$ac_objext \ 9730 conftest$ac_exeext conftest.$ac_ext 9731fi 9732 9733 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735 9736 eval supported=\$$cacheid 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9738$as_echo "$supported" >&6; } 9739 if test "$supported" = "yes" ; then 9740 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9741 found="yes" 9742 fi 9743 fi 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759xorg_testset_save_CFLAGS="$CFLAGS" 9760 9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771_ACEOF 9772if ac_fn_c_try_compile "$LINENO"; then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774else 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778fi 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int i; 9798_ACEOF 9799if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unused_command_line_argument=yes 9801else 9802 xorg_cv_cc_flag_unused_command_line_argument=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810fi 9811 9812found="no" 9813 9814 if test $found = "no" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 fi 9822 9823 CFLAGS="$CFLAGS -Wwrite-strings" 9824 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9826$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9827 cacheid=xorg_cv_cc_flag__Wwrite_strings 9828 if eval \${$cacheid+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833int i; 9834int 9835main () 9836{ 9837 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842if ac_fn_c_try_link "$LINENO"; then : 9843 eval $cacheid=yes 9844else 9845 eval $cacheid=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext \ 9848 conftest$ac_exeext conftest.$ac_ext 9849fi 9850 9851 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 9854 eval supported=\$$cacheid 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9856$as_echo "$supported" >&6; } 9857 if test "$supported" = "yes" ; then 9858 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9859 found="yes" 9860 fi 9861 fi 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877xorg_testset_save_CFLAGS="$CFLAGS" 9878 9879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888int i; 9889_ACEOF 9890if ac_fn_c_try_compile "$LINENO"; then : 9891 xorg_cv_cc_flag_unknown_warning_option=yes 9892else 9893 xorg_cv_cc_flag_unknown_warning_option=no 9894fi 9895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9896fi 9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901fi 9902 9903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9906 fi 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915int i; 9916_ACEOF 9917if ac_fn_c_try_compile "$LINENO"; then : 9918 xorg_cv_cc_flag_unused_command_line_argument=yes 9919else 9920 xorg_cv_cc_flag_unused_command_line_argument=no 9921fi 9922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9923fi 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928fi 9929 9930found="no" 9931 9932 if test $found = "no" ; then 9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9935 fi 9936 9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939 fi 9940 9941 CFLAGS="$CFLAGS -Waddress" 9942 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9944$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9945 cacheid=xorg_cv_cc_flag__Waddress 9946 if eval \${$cacheid+:} false; then : 9947 $as_echo_n "(cached) " >&6 9948else 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951int i; 9952int 9953main () 9954{ 9955 9956 ; 9957 return 0; 9958} 9959_ACEOF 9960if ac_fn_c_try_link "$LINENO"; then : 9961 eval $cacheid=yes 9962else 9963 eval $cacheid=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext \ 9966 conftest$ac_exeext conftest.$ac_ext 9967fi 9968 9969 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971 9972 eval supported=\$$cacheid 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9974$as_echo "$supported" >&6; } 9975 if test "$supported" = "yes" ; then 9976 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9977 found="yes" 9978 fi 9979 fi 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995xorg_testset_save_CFLAGS="$CFLAGS" 9996 9997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006int i; 10007_ACEOF 10008if ac_fn_c_try_compile "$LINENO"; then : 10009 xorg_cv_cc_flag_unknown_warning_option=yes 10010else 10011 xorg_cv_cc_flag_unknown_warning_option=no 10012fi 10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10014fi 10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10018 CFLAGS="$xorg_testset_save_CFLAGS" 10019fi 10020 10021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024 fi 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034_ACEOF 10035if ac_fn_c_try_compile "$LINENO"; then : 10036 xorg_cv_cc_flag_unused_command_line_argument=yes 10037else 10038 xorg_cv_cc_flag_unused_command_line_argument=no 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10041fi 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046fi 10047 10048found="no" 10049 10050 if test $found = "no" ; then 10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 fi 10054 10055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10057 fi 10058 10059 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10060 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10062$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10063 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10064 if eval \${$cacheid+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10068/* end confdefs.h. */ 10069int i; 10070int 10071main () 10072{ 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078if ac_fn_c_try_link "$LINENO"; then : 10079 eval $cacheid=yes 10080else 10081 eval $cacheid=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext \ 10084 conftest$ac_exeext conftest.$ac_ext 10085fi 10086 10087 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089 10090 eval supported=\$$cacheid 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10092$as_echo "$supported" >&6; } 10093 if test "$supported" = "yes" ; then 10094 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10095 found="yes" 10096 fi 10097 fi 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113xorg_testset_save_CFLAGS="$CFLAGS" 10114 10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125_ACEOF 10126if ac_fn_c_try_compile "$LINENO"; then : 10127 xorg_cv_cc_flag_unknown_warning_option=yes 10128else 10129 xorg_cv_cc_flag_unknown_warning_option=no 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132fi 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150/* end confdefs.h. */ 10151int i; 10152_ACEOF 10153if ac_fn_c_try_compile "$LINENO"; then : 10154 xorg_cv_cc_flag_unused_command_line_argument=yes 10155else 10156 xorg_cv_cc_flag_unused_command_line_argument=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164fi 10165 10166found="no" 10167 10168 if test $found = "no" ; then 10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10171 fi 10172 10173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10175 fi 10176 10177 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10178 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10180$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10181 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10182 if eval \${$cacheid+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188int 10189main () 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196if ac_fn_c_try_link "$LINENO"; then : 10197 eval $cacheid=yes 10198else 10199 eval $cacheid=no 10200fi 10201rm -f core conftest.err conftest.$ac_objext \ 10202 conftest$ac_exeext conftest.$ac_ext 10203fi 10204 10205 10206 CFLAGS="$xorg_testset_save_CFLAGS" 10207 10208 eval supported=\$$cacheid 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10210$as_echo "$supported" >&6; } 10211 if test "$supported" = "yes" ; then 10212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10213 found="yes" 10214 fi 10215 fi 10216 10217 10218fi 10219 10220 10221 10222 10223 10224 10225 10226 CWARNFLAGS="$BASE_CFLAGS" 10227 if test "x$GCC" = xyes ; then 10228 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10229 fi 10230 10231 10232 10233 10234 10235 10236 10237 10238# Check whether --enable-strict-compilation was given. 10239if test "${enable_strict_compilation+set}" = set; then : 10240 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10241else 10242 STRICT_COMPILE=no 10243fi 10244 10245 10246 10247 10248 10249 10250STRICT_CFLAGS="" 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264xorg_testset_save_CFLAGS="$CFLAGS" 10265 10266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276_ACEOF 10277if ac_fn_c_try_compile "$LINENO"; then : 10278 xorg_cv_cc_flag_unknown_warning_option=yes 10279else 10280 xorg_cv_cc_flag_unknown_warning_option=no 10281fi 10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10283fi 10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10287 CFLAGS="$xorg_testset_save_CFLAGS" 10288fi 10289 10290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10293 fi 10294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299else 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int i; 10303_ACEOF 10304if ac_fn_c_try_compile "$LINENO"; then : 10305 xorg_cv_cc_flag_unused_command_line_argument=yes 10306else 10307 xorg_cv_cc_flag_unused_command_line_argument=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10310fi 10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315fi 10316 10317found="no" 10318 10319 if test $found = "no" ; then 10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 fi 10323 10324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10326 fi 10327 10328 CFLAGS="$CFLAGS -pedantic" 10329 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10331$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10332 cacheid=xorg_cv_cc_flag__pedantic 10333 if eval \${$cacheid+:} false; then : 10334 $as_echo_n "(cached) " >&6 10335else 10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337/* end confdefs.h. */ 10338int i; 10339int 10340main () 10341{ 10342 10343 ; 10344 return 0; 10345} 10346_ACEOF 10347if ac_fn_c_try_link "$LINENO"; then : 10348 eval $cacheid=yes 10349else 10350 eval $cacheid=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext \ 10353 conftest$ac_exeext conftest.$ac_ext 10354fi 10355 10356 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358 10359 eval supported=\$$cacheid 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10361$as_echo "$supported" >&6; } 10362 if test "$supported" = "yes" ; then 10363 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10364 found="yes" 10365 fi 10366 fi 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382xorg_testset_save_CFLAGS="$CFLAGS" 10383 10384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393int i; 10394_ACEOF 10395if ac_fn_c_try_compile "$LINENO"; then : 10396 xorg_cv_cc_flag_unknown_warning_option=yes 10397else 10398 xorg_cv_cc_flag_unknown_warning_option=no 10399fi 10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10401fi 10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406fi 10407 10408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420int i; 10421_ACEOF 10422if ac_fn_c_try_compile "$LINENO"; then : 10423 xorg_cv_cc_flag_unused_command_line_argument=yes 10424else 10425 xorg_cv_cc_flag_unused_command_line_argument=no 10426fi 10427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10428fi 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433fi 10434 10435found="no" 10436 10437 if test $found = "no" ; then 10438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10440 fi 10441 10442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10444 fi 10445 10446 CFLAGS="$CFLAGS -Werror" 10447 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10449$as_echo_n "checking if $CC supports -Werror... " >&6; } 10450 cacheid=xorg_cv_cc_flag__Werror 10451 if eval \${$cacheid+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455/* end confdefs.h. */ 10456int i; 10457int 10458main () 10459{ 10460 10461 ; 10462 return 0; 10463} 10464_ACEOF 10465if ac_fn_c_try_link "$LINENO"; then : 10466 eval $cacheid=yes 10467else 10468 eval $cacheid=no 10469fi 10470rm -f core conftest.err conftest.$ac_objext \ 10471 conftest$ac_exeext conftest.$ac_ext 10472fi 10473 10474 10475 CFLAGS="$xorg_testset_save_CFLAGS" 10476 10477 eval supported=\$$cacheid 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10479$as_echo "$supported" >&6; } 10480 if test "$supported" = "yes" ; then 10481 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10482 found="yes" 10483 fi 10484 fi 10485 10486 if test $found = "no" ; then 10487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10489 fi 10490 10491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10493 fi 10494 10495 CFLAGS="$CFLAGS -errwarn" 10496 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10498$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10499 cacheid=xorg_cv_cc_flag__errwarn 10500 if eval \${$cacheid+:} false; then : 10501 $as_echo_n "(cached) " >&6 10502else 10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504/* end confdefs.h. */ 10505int i; 10506int 10507main () 10508{ 10509 10510 ; 10511 return 0; 10512} 10513_ACEOF 10514if ac_fn_c_try_link "$LINENO"; then : 10515 eval $cacheid=yes 10516else 10517 eval $cacheid=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext \ 10520 conftest$ac_exeext conftest.$ac_ext 10521fi 10522 10523 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525 10526 eval supported=\$$cacheid 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10528$as_echo "$supported" >&6; } 10529 if test "$supported" = "yes" ; then 10530 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10531 found="yes" 10532 fi 10533 fi 10534 10535 10536 10537# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10538# activate it with -Werror, so we add it here explicitly. 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552xorg_testset_save_CFLAGS="$CFLAGS" 10553 10554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10559 $as_echo_n "(cached) " >&6 10560else 10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10562/* end confdefs.h. */ 10563int i; 10564_ACEOF 10565if ac_fn_c_try_compile "$LINENO"; then : 10566 xorg_cv_cc_flag_unknown_warning_option=yes 10567else 10568 xorg_cv_cc_flag_unknown_warning_option=no 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10571fi 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576fi 10577 10578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10581 fi 10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10586 $as_echo_n "(cached) " >&6 10587else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589/* end confdefs.h. */ 10590int i; 10591_ACEOF 10592if ac_fn_c_try_compile "$LINENO"; then : 10593 xorg_cv_cc_flag_unused_command_line_argument=yes 10594else 10595 xorg_cv_cc_flag_unused_command_line_argument=no 10596fi 10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10602 CFLAGS="$xorg_testset_save_CFLAGS" 10603fi 10604 10605found="no" 10606 10607 if test $found = "no" ; then 10608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610 fi 10611 10612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10614 fi 10615 10616 CFLAGS="$CFLAGS -Werror=attributes" 10617 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10619$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10620 cacheid=xorg_cv_cc_flag__Werror_attributes 10621 if eval \${$cacheid+:} false; then : 10622 $as_echo_n "(cached) " >&6 10623else 10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10625/* end confdefs.h. */ 10626int i; 10627int 10628main () 10629{ 10630 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO"; then : 10636 eval $cacheid=yes 10637else 10638 eval $cacheid=no 10639fi 10640rm -f core conftest.err conftest.$ac_objext \ 10641 conftest$ac_exeext conftest.$ac_ext 10642fi 10643 10644 10645 CFLAGS="$xorg_testset_save_CFLAGS" 10646 10647 eval supported=\$$cacheid 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10649$as_echo "$supported" >&6; } 10650 if test "$supported" = "yes" ; then 10651 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10652 found="yes" 10653 fi 10654 fi 10655 10656 10657 10658if test "x$STRICT_COMPILE" = "xyes"; then 10659 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10660 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10661fi 10662 10663 10664 10665 10666 10667 10668cat >>confdefs.h <<_ACEOF 10669#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10670_ACEOF 10671 10672 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10673 if test "x$PVM" = "x"; then 10674 PVM="0" 10675 fi 10676 10677cat >>confdefs.h <<_ACEOF 10678#define PACKAGE_VERSION_MINOR $PVM 10679_ACEOF 10680 10681 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10682 if test "x$PVP" = "x"; then 10683 PVP="0" 10684 fi 10685 10686cat >>confdefs.h <<_ACEOF 10687#define PACKAGE_VERSION_PATCHLEVEL $PVP 10688_ACEOF 10689 10690 10691 10692CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10693mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10694|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10695touch \$(top_srcdir)/ChangeLog; \ 10696echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10697 10698 10699 10700 10701macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10702INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10703mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10704|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10705touch \$(top_srcdir)/INSTALL; \ 10706echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10707 10708 10709 10710 10711 10712 10713case $host_os in 10714 solaris*) 10715 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10716 # check for a man page file found in later versions that use 10717 # traditional section numbers instead 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10719$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10720if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10721 $as_echo_n "(cached) " >&6 10722else 10723 test "$cross_compiling" = yes && 10724 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10725if test -r "/usr/share/man/man7/attributes.7"; then 10726 ac_cv_file__usr_share_man_man7_attributes_7=yes 10727else 10728 ac_cv_file__usr_share_man_man7_attributes_7=no 10729fi 10730fi 10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10732$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10733if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10734 SYSV_MAN_SECTIONS=false 10735else 10736 SYSV_MAN_SECTIONS=true 10737fi 10738 10739 ;; 10740 *) SYSV_MAN_SECTIONS=false ;; 10741esac 10742 10743if test x$APP_MAN_SUFFIX = x ; then 10744 APP_MAN_SUFFIX=1 10745fi 10746if test x$APP_MAN_DIR = x ; then 10747 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10748fi 10749 10750if test x$LIB_MAN_SUFFIX = x ; then 10751 LIB_MAN_SUFFIX=3 10752fi 10753if test x$LIB_MAN_DIR = x ; then 10754 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10755fi 10756 10757if test x$FILE_MAN_SUFFIX = x ; then 10758 case $SYSV_MAN_SECTIONS in 10759 true) FILE_MAN_SUFFIX=4 ;; 10760 *) FILE_MAN_SUFFIX=5 ;; 10761 esac 10762fi 10763if test x$FILE_MAN_DIR = x ; then 10764 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10765fi 10766 10767if test x$MISC_MAN_SUFFIX = x ; then 10768 case $SYSV_MAN_SECTIONS in 10769 true) MISC_MAN_SUFFIX=5 ;; 10770 *) MISC_MAN_SUFFIX=7 ;; 10771 esac 10772fi 10773if test x$MISC_MAN_DIR = x ; then 10774 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10775fi 10776 10777if test x$DRIVER_MAN_SUFFIX = x ; then 10778 case $SYSV_MAN_SECTIONS in 10779 true) DRIVER_MAN_SUFFIX=7 ;; 10780 *) DRIVER_MAN_SUFFIX=4 ;; 10781 esac 10782fi 10783if test x$DRIVER_MAN_DIR = x ; then 10784 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10785fi 10786 10787if test x$ADMIN_MAN_SUFFIX = x ; then 10788 case $SYSV_MAN_SECTIONS in 10789 true) ADMIN_MAN_SUFFIX=1m ;; 10790 *) ADMIN_MAN_SUFFIX=8 ;; 10791 esac 10792fi 10793if test x$ADMIN_MAN_DIR = x ; then 10794 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10795fi 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811XORG_MAN_PAGE="X Version 11" 10812 10813MAN_SUBSTS="\ 10814 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10815 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10816 -e 's|__xservername__|Xorg|g' \ 10817 -e 's|__xconfigfile__|xorg.conf|g' \ 10818 -e 's|__projectroot__|\$(prefix)|g' \ 10819 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10820 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10821 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10822 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10823 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10824 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10825 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10826 10827 10828 10829# Check whether --enable-silent-rules was given. 10830if test "${enable_silent_rules+set}" = set; then : 10831 enableval=$enable_silent_rules; 10832fi 10833 10834case $enable_silent_rules in # ((( 10835 yes) AM_DEFAULT_VERBOSITY=0;; 10836 no) AM_DEFAULT_VERBOSITY=1;; 10837 *) AM_DEFAULT_VERBOSITY=0;; 10838esac 10839am_make=${MAKE-make} 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10841$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10842if ${am_cv_make_support_nested_variables+:} false; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 if $as_echo 'TRUE=$(BAR$(V)) 10846BAR0=false 10847BAR1=true 10848V=1 10849am__doit: 10850 @$(TRUE) 10851.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10852 am_cv_make_support_nested_variables=yes 10853else 10854 am_cv_make_support_nested_variables=no 10855fi 10856fi 10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10858$as_echo "$am_cv_make_support_nested_variables" >&6; } 10859if test $am_cv_make_support_nested_variables = yes; then 10860 AM_V='$(V)' 10861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10862else 10863 AM_V=$AM_DEFAULT_VERBOSITY 10864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10865fi 10866AM_BACKSLASH='\' 10867 10868 10869 10870 10871# Check whether --enable-specs was given. 10872if test "${enable_specs+set}" = set; then : 10873 enableval=$enable_specs; build_specs=$enableval 10874else 10875 build_specs=yes 10876fi 10877 10878 10879 if test x$build_specs = xyes; then 10880 ENABLE_SPECS_TRUE= 10881 ENABLE_SPECS_FALSE='#' 10882else 10883 ENABLE_SPECS_TRUE='#' 10884 ENABLE_SPECS_FALSE= 10885fi 10886 10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 10888$as_echo_n "checking whether to build functional specifications... " >&6; } 10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 10890$as_echo "$build_specs" >&6; } 10891 10892 10893 10894 10895 10896# Check whether --with-xmlto was given. 10897if test "${with_xmlto+set}" = set; then : 10898 withval=$with_xmlto; use_xmlto=$withval 10899else 10900 use_xmlto=auto 10901fi 10902 10903 10904 10905if test "x$use_xmlto" = x"auto"; then 10906 # Extract the first word of "xmlto", so it can be a program name with args. 10907set dummy xmlto; ac_word=$2 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10909$as_echo_n "checking for $ac_word... " >&6; } 10910if ${ac_cv_path_XMLTO+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912else 10913 case $XMLTO in 10914 [\\/]* | ?:[\\/]*) 10915 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 10916 ;; 10917 *) 10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10919for as_dir in $PATH 10920do 10921 IFS=$as_save_IFS 10922 test -z "$as_dir" && as_dir=. 10923 for ac_exec_ext in '' $ac_executable_extensions; do 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10925 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10927 break 2 10928 fi 10929done 10930 done 10931IFS=$as_save_IFS 10932 10933 ;; 10934esac 10935fi 10936XMLTO=$ac_cv_path_XMLTO 10937if test -n "$XMLTO"; then 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 10939$as_echo "$XMLTO" >&6; } 10940else 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10942$as_echo "no" >&6; } 10943fi 10944 10945 10946 if test "x$XMLTO" = "x"; then 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 10948$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 10949 have_xmlto=no 10950 else 10951 have_xmlto=yes 10952 fi 10953elif test "x$use_xmlto" = x"yes" ; then 10954 # Extract the first word of "xmlto", so it can be a program name with args. 10955set dummy xmlto; ac_word=$2 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10957$as_echo_n "checking for $ac_word... " >&6; } 10958if ${ac_cv_path_XMLTO+:} false; then : 10959 $as_echo_n "(cached) " >&6 10960else 10961 case $XMLTO in 10962 [\\/]* | ?:[\\/]*) 10963 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 10964 ;; 10965 *) 10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10967for as_dir in $PATH 10968do 10969 IFS=$as_save_IFS 10970 test -z "$as_dir" && as_dir=. 10971 for ac_exec_ext in '' $ac_executable_extensions; do 10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10973 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10975 break 2 10976 fi 10977done 10978 done 10979IFS=$as_save_IFS 10980 10981 ;; 10982esac 10983fi 10984XMLTO=$ac_cv_path_XMLTO 10985if test -n "$XMLTO"; then 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 10987$as_echo "$XMLTO" >&6; } 10988else 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10990$as_echo "no" >&6; } 10991fi 10992 10993 10994 if test "x$XMLTO" = "x"; then 10995 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 10996 fi 10997 have_xmlto=yes 10998elif test "x$use_xmlto" = x"no" ; then 10999 if test "x$XMLTO" != "x"; then 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11001$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11002 fi 11003 have_xmlto=no 11004else 11005 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11006fi 11007 11008# Test for a minimum version of xmlto, if provided. 11009if test "$have_xmlto" = yes; then 11010 # scrape the xmlto version 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11012$as_echo_n "checking the xmlto version... " >&6; } 11013 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11015$as_echo "$xmlto_version" >&6; } 11016 as_arg_v1=$xmlto_version 11017as_arg_v2=0.0.22 11018awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11019case $? in #( 11020 1) : 11021 if test "x$use_xmlto" = xauto; then 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 11023$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 11024 have_xmlto=no 11025 else 11026 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 11027 fi ;; #( 11028 0) : 11029 ;; #( 11030 2) : 11031 ;; #( 11032 *) : 11033 ;; 11034esac 11035fi 11036 11037# Test for the ability of xmlto to generate a text target 11038# 11039# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 11040# following test for empty XML docbook files. 11041# For compatibility reasons use the following empty XML docbook file and if 11042# it fails try it again with a non-empty XML file. 11043have_xmlto_text=no 11044cat > conftest.xml << "EOF" 11045EOF 11046if test "$have_xmlto" = yes; then : 11047 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 11048 have_xmlto_text=yes 11049else 11050 # Try it again with a non-empty XML file. 11051 cat > conftest.xml << "EOF" 11052<x></x> 11053EOF 11054 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 11055 have_xmlto_text=yes 11056else 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11058$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 11059fi 11060fi 11061fi 11062rm -f conftest.xml 11063 if test $have_xmlto_text = yes; then 11064 HAVE_XMLTO_TEXT_TRUE= 11065 HAVE_XMLTO_TEXT_FALSE='#' 11066else 11067 HAVE_XMLTO_TEXT_TRUE='#' 11068 HAVE_XMLTO_TEXT_FALSE= 11069fi 11070 11071 if test "$have_xmlto" = yes; then 11072 HAVE_XMLTO_TRUE= 11073 HAVE_XMLTO_FALSE='#' 11074else 11075 HAVE_XMLTO_TRUE='#' 11076 HAVE_XMLTO_FALSE= 11077fi 11078 11079 11080 11081 11082 11083 11084# Check whether --with-fop was given. 11085if test "${with_fop+set}" = set; then : 11086 withval=$with_fop; use_fop=$withval 11087else 11088 use_fop=auto 11089fi 11090 11091 11092 11093if test "x$use_fop" = x"auto"; then 11094 # Extract the first word of "fop", so it can be a program name with args. 11095set dummy fop; ac_word=$2 11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11097$as_echo_n "checking for $ac_word... " >&6; } 11098if ${ac_cv_path_FOP+:} false; then : 11099 $as_echo_n "(cached) " >&6 11100else 11101 case $FOP in 11102 [\\/]* | ?:[\\/]*) 11103 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11104 ;; 11105 *) 11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11107for as_dir in $PATH 11108do 11109 IFS=$as_save_IFS 11110 test -z "$as_dir" && as_dir=. 11111 for ac_exec_ext in '' $ac_executable_extensions; do 11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11113 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11115 break 2 11116 fi 11117done 11118 done 11119IFS=$as_save_IFS 11120 11121 ;; 11122esac 11123fi 11124FOP=$ac_cv_path_FOP 11125if test -n "$FOP"; then 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11127$as_echo "$FOP" >&6; } 11128else 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11130$as_echo "no" >&6; } 11131fi 11132 11133 11134 if test "x$FOP" = "x"; then 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 11136$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 11137 have_fop=no 11138 else 11139 have_fop=yes 11140 fi 11141elif test "x$use_fop" = x"yes" ; then 11142 # Extract the first word of "fop", so it can be a program name with args. 11143set dummy fop; ac_word=$2 11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11145$as_echo_n "checking for $ac_word... " >&6; } 11146if ${ac_cv_path_FOP+:} false; then : 11147 $as_echo_n "(cached) " >&6 11148else 11149 case $FOP in 11150 [\\/]* | ?:[\\/]*) 11151 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 11152 ;; 11153 *) 11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11155for as_dir in $PATH 11156do 11157 IFS=$as_save_IFS 11158 test -z "$as_dir" && as_dir=. 11159 for ac_exec_ext in '' $ac_executable_extensions; do 11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11161 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 11162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11163 break 2 11164 fi 11165done 11166 done 11167IFS=$as_save_IFS 11168 11169 ;; 11170esac 11171fi 11172FOP=$ac_cv_path_FOP 11173if test -n "$FOP"; then 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 11175$as_echo "$FOP" >&6; } 11176else 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11178$as_echo "no" >&6; } 11179fi 11180 11181 11182 if test "x$FOP" = "x"; then 11183 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 11184 fi 11185 have_fop=yes 11186elif test "x$use_fop" = x"no" ; then 11187 if test "x$FOP" != "x"; then 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 11189$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 11190 fi 11191 have_fop=no 11192else 11193 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 11194fi 11195 11196# Test for a minimum version of fop, if provided. 11197 11198 if test "$have_fop" = yes; then 11199 HAVE_FOP_TRUE= 11200 HAVE_FOP_FALSE='#' 11201else 11202 HAVE_FOP_TRUE='#' 11203 HAVE_FOP_FALSE= 11204fi 11205 11206 11207 11208 11209# Preserves the interface, should it be implemented later 11210 11211 11212 11213# Check whether --with-xsltproc was given. 11214if test "${with_xsltproc+set}" = set; then : 11215 withval=$with_xsltproc; use_xsltproc=$withval 11216else 11217 use_xsltproc=auto 11218fi 11219 11220 11221 11222if test "x$use_xsltproc" = x"auto"; then 11223 # Extract the first word of "xsltproc", so it can be a program name with args. 11224set dummy xsltproc; ac_word=$2 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11226$as_echo_n "checking for $ac_word... " >&6; } 11227if ${ac_cv_path_XSLTPROC+:} false; then : 11228 $as_echo_n "(cached) " >&6 11229else 11230 case $XSLTPROC in 11231 [\\/]* | ?:[\\/]*) 11232 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11233 ;; 11234 *) 11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11236for as_dir in $PATH 11237do 11238 IFS=$as_save_IFS 11239 test -z "$as_dir" && as_dir=. 11240 for ac_exec_ext in '' $ac_executable_extensions; do 11241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11242 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11244 break 2 11245 fi 11246done 11247 done 11248IFS=$as_save_IFS 11249 11250 ;; 11251esac 11252fi 11253XSLTPROC=$ac_cv_path_XSLTPROC 11254if test -n "$XSLTPROC"; then 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11256$as_echo "$XSLTPROC" >&6; } 11257else 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11259$as_echo "no" >&6; } 11260fi 11261 11262 11263 if test "x$XSLTPROC" = "x"; then 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 11265$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 11266 have_xsltproc=no 11267 else 11268 have_xsltproc=yes 11269 fi 11270elif test "x$use_xsltproc" = x"yes" ; then 11271 # Extract the first word of "xsltproc", so it can be a program name with args. 11272set dummy xsltproc; ac_word=$2 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11274$as_echo_n "checking for $ac_word... " >&6; } 11275if ${ac_cv_path_XSLTPROC+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 case $XSLTPROC in 11279 [\\/]* | ?:[\\/]*) 11280 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11281 ;; 11282 *) 11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11284for as_dir in $PATH 11285do 11286 IFS=$as_save_IFS 11287 test -z "$as_dir" && as_dir=. 11288 for ac_exec_ext in '' $ac_executable_extensions; do 11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11290 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11292 break 2 11293 fi 11294done 11295 done 11296IFS=$as_save_IFS 11297 11298 ;; 11299esac 11300fi 11301XSLTPROC=$ac_cv_path_XSLTPROC 11302if test -n "$XSLTPROC"; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11304$as_echo "$XSLTPROC" >&6; } 11305else 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11307$as_echo "no" >&6; } 11308fi 11309 11310 11311 if test "x$XSLTPROC" = "x"; then 11312 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 11313 fi 11314 have_xsltproc=yes 11315elif test "x$use_xsltproc" = x"no" ; then 11316 if test "x$XSLTPROC" != "x"; then 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 11318$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 11319 fi 11320 have_xsltproc=no 11321else 11322 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 11323fi 11324 11325 if test "$have_xsltproc" = yes; then 11326 HAVE_XSLTPROC_TRUE= 11327 HAVE_XSLTPROC_FALSE='#' 11328else 11329 HAVE_XSLTPROC_TRUE='#' 11330 HAVE_XSLTPROC_FALSE= 11331fi 11332 11333 11334 11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 11336$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 11337XORG_SGML_PATH= 11338if test -n "$PKG_CONFIG" && \ 11339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 11340 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 11341 ac_status=$? 11342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11343 test $ac_status = 0; }; then 11344 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 11345else 11346 : 11347 11348fi 11349 11350# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 11351# the path and the name of the doc stylesheet 11352if test "x$XORG_SGML_PATH" != "x" ; then 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 11354$as_echo "$XORG_SGML_PATH" >&6; } 11355 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 11356 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 11357else 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11359$as_echo "no" >&6; } 11360fi 11361 11362 11363 11364 11365 if test "x$XSL_STYLESHEET" != "x"; then 11366 HAVE_STYLESHEETS_TRUE= 11367 HAVE_STYLESHEETS_FALSE='#' 11368else 11369 HAVE_STYLESHEETS_TRUE='#' 11370 HAVE_STYLESHEETS_FALSE= 11371fi 11372 11373 11374 11375 11376 11377# Check whether --enable-legacy was given. 11378if test "${enable_legacy+set}" = set; then : 11379 enableval=$enable_legacy; LEGACY=$enableval 11380else 11381 LEGACY=no 11382fi 11383 11384 if test "x$LEGACY" = "xyes"; then 11385 LEGACY_TRUE= 11386 LEGACY_FALSE='#' 11387else 11388 LEGACY_TRUE='#' 11389 LEGACY_FALSE= 11390fi 11391 11392 11393for ac_header in sys/select.h sys/param.h sys/types.h sys/time.h 11394do : 11395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11396ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11398 cat >>confdefs.h <<_ACEOF 11399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11400_ACEOF 11401 11402fi 11403 11404done 11405 11406 11407# Handle Xpoll.h.in 11408# Avoid determining fds_bits on WIN32 hosts (not including cygwin) 11409case $host_os in 11410 mingw*) fds_bits_found=true;; 11411 *) fds_bits_found=false;; 11412esac 11413 11414if test "x$fds_bits_found" = xfalse ; then 11415 ac_fn_c_check_member "$LINENO" "fd_set" "fds_bits" "ac_cv_member_fd_set_fds_bits" " 11416 #ifdef HAVE_SYS_PARAM_H 11417 #include <sys/param.h> 11418 #endif 11419 #ifdef HAVE_SYS_TYPES_H 11420 #include <sys/types.h> 11421 #endif 11422 #ifdef HAVE_SYS_TIME_H 11423 #include <sys/time.h> 11424 #endif 11425 #ifdef HAVE_SYS_SELECT_H 11426 #include <sys/select.h> 11427 #endif 11428 11429" 11430if test "x$ac_cv_member_fd_set_fds_bits" = xyes; then : 11431 11432 fds_bits_found=plain 11433 USE_FDS_BITS="fds_bits" 11434 11435fi 11436 11437fi 11438 11439if test "x$fds_bits_found" = xfalse ; then 11440 ac_fn_c_check_member "$LINENO" "fd_set" "__fds_bits" "ac_cv_member_fd_set___fds_bits" " 11441 #ifdef HAVE_SYS_PARAM_H 11442 #include <sys/param.h> 11443 #endif 11444 #ifdef HAVE_SYS_TYPES_H 11445 #include <sys/types.h> 11446 #endif 11447 #ifdef HAVE_SYS_TIME_H 11448 #include <sys/time.h> 11449 #endif 11450 #ifdef HAVE_SYS_SELECT_H 11451 #include <sys/select.h> 11452 #endif 11453 11454" 11455if test "x$ac_cv_member_fd_set___fds_bits" = xyes; then : 11456 11457 fds_bits_found=underscores 11458 USE_FDS_BITS="__fds_bits" 11459 11460fi 11461 11462fi 11463 11464if test "x$fds_bits_found" = xfalse ; then 11465 as_fn_error $? "Could not determine how to access the fds_bits or equivalent 11466 structure in fd_set on your platform." "$LINENO" 5 11467fi 11468 11469 11470 11471ac_config_files="$ac_config_files applewmproto.pc bigreqsproto.pc compositeproto.pc damageproto.pc dmxproto.pc dri2proto.pc dri3proto.pc evieproto.pc fixesproto.pc fontcacheproto.pc fontsproto.pc glproto.pc include/X11/Xpoll.h inputproto.pc kbproto.pc lg3dproto.pc Makefile presentproto.pc printproto.pc randrproto.pc recordproto.pc renderproto.pc resourceproto.pc scrnsaverproto.pc specs/Makefile specs/bigreqsproto/Makefile specs/fontsproto/Makefile specs/kbproto/Makefile specs/recordproto/Makefile specs/scrnsaverproto/Makefile specs/xcmiscproto/Makefile specs/xextproto/Makefile specs/xproto/Makefile trapproto.pc videoproto.pc windowswmproto.pc xcalibrateproto.pc xcmiscproto.pc xextproto.pc xf86bigfontproto.pc xf86dgaproto.pc xf86driproto.pc xf86miscproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc xproto.pc xproxymngproto.pc" 11472 11473 11474cat >confcache <<\_ACEOF 11475# This file is a shell script that caches the results of configure 11476# tests run on this system so they can be shared between configure 11477# scripts and configure runs, see configure's option --config-cache. 11478# It is not useful on other systems. If it contains results you don't 11479# want to keep, you may remove or edit it. 11480# 11481# config.status only pays attention to the cache file if you give it 11482# the --recheck option to rerun configure. 11483# 11484# `ac_cv_env_foo' variables (set or unset) will be overridden when 11485# loading this file, other *unset* `ac_cv_foo' will be assigned the 11486# following values. 11487 11488_ACEOF 11489 11490# The following way of writing the cache mishandles newlines in values, 11491# but we know of no workaround that is simple, portable, and efficient. 11492# So, we kill variables containing newlines. 11493# Ultrix sh set writes to stderr and can't be redirected directly, 11494# and sets the high bit in the cache file unless we assign to the vars. 11495( 11496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11497 eval ac_val=\$$ac_var 11498 case $ac_val in #( 11499 *${as_nl}*) 11500 case $ac_var in #( 11501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11502$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11503 esac 11504 case $ac_var in #( 11505 _ | IFS | as_nl) ;; #( 11506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11507 *) { eval $ac_var=; unset $ac_var;} ;; 11508 esac ;; 11509 esac 11510 done 11511 11512 (set) 2>&1 | 11513 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11514 *${as_nl}ac_space=\ *) 11515 # `set' does not quote correctly, so add quotes: double-quote 11516 # substitution turns \\\\ into \\, and sed turns \\ into \. 11517 sed -n \ 11518 "s/'/'\\\\''/g; 11519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11520 ;; #( 11521 *) 11522 # `set' quotes correctly as required by POSIX, so do not add quotes. 11523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11524 ;; 11525 esac | 11526 sort 11527) | 11528 sed ' 11529 /^ac_cv_env_/b end 11530 t clear 11531 :clear 11532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11533 t end 11534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11535 :end' >>confcache 11536if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11537 if test -w "$cache_file"; then 11538 if test "x$cache_file" != "x/dev/null"; then 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11540$as_echo "$as_me: updating cache $cache_file" >&6;} 11541 if test ! -f "$cache_file" || test -h "$cache_file"; then 11542 cat confcache >"$cache_file" 11543 else 11544 case $cache_file in #( 11545 */* | ?:*) 11546 mv -f confcache "$cache_file"$$ && 11547 mv -f "$cache_file"$$ "$cache_file" ;; #( 11548 *) 11549 mv -f confcache "$cache_file" ;; 11550 esac 11551 fi 11552 fi 11553 else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11555$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11556 fi 11557fi 11558rm -f confcache 11559 11560test "x$prefix" = xNONE && prefix=$ac_default_prefix 11561# Let make expand exec_prefix. 11562test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11563 11564# Transform confdefs.h into DEFS. 11565# Protect against shell expansion while executing Makefile rules. 11566# Protect against Makefile macro expansion. 11567# 11568# If the first sed substitution is executed (which looks for macros that 11569# take arguments), then branch to the quote section. Otherwise, 11570# look for a macro that doesn't take arguments. 11571ac_script=' 11572:mline 11573/\\$/{ 11574 N 11575 s,\\\n,, 11576 b mline 11577} 11578t clear 11579:clear 11580s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11581t quote 11582s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11583t quote 11584b any 11585:quote 11586s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11587s/\[/\\&/g 11588s/\]/\\&/g 11589s/\$/$$/g 11590H 11591:any 11592${ 11593 g 11594 s/^\n// 11595 s/\n/ /g 11596 p 11597} 11598' 11599DEFS=`sed -n "$ac_script" confdefs.h` 11600 11601 11602ac_libobjs= 11603ac_ltlibobjs= 11604U= 11605for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11606 # 1. Remove the extension, and $U if already installed. 11607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11610 # will be set to the directory where LIBOBJS objects are built. 11611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11613done 11614LIBOBJS=$ac_libobjs 11615 11616LTLIBOBJS=$ac_ltlibobjs 11617 11618 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11620$as_echo_n "checking that generated files are newer than configure... " >&6; } 11621 if test -n "$am_sleep_pid"; then 11622 # Hide warnings about reused PIDs. 11623 wait $am_sleep_pid 2>/dev/null 11624 fi 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11626$as_echo "done" >&6; } 11627 if test -n "$EXEEXT"; then 11628 am__EXEEXT_TRUE= 11629 am__EXEEXT_FALSE='#' 11630else 11631 am__EXEEXT_TRUE='#' 11632 am__EXEEXT_FALSE= 11633fi 11634 11635if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11636 as_fn_error $? "conditional \"AMDEP\" was never defined. 11637Usually this means the macro was only invoked conditionally." "$LINENO" 5 11638fi 11639if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11640 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11641Usually this means the macro was only invoked conditionally." "$LINENO" 5 11642fi 11643if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 11644 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 11645Usually this means the macro was only invoked conditionally." "$LINENO" 5 11646fi 11647if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 11648 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 11649Usually this means the macro was only invoked conditionally." "$LINENO" 5 11650fi 11651if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 11652 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 11653Usually this means the macro was only invoked conditionally." "$LINENO" 5 11654fi 11655if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 11656 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 11657Usually this means the macro was only invoked conditionally." "$LINENO" 5 11658fi 11659if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 11660 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 11661Usually this means the macro was only invoked conditionally." "$LINENO" 5 11662fi 11663if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 11664 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 11665Usually this means the macro was only invoked conditionally." "$LINENO" 5 11666fi 11667if test -z "${LEGACY_TRUE}" && test -z "${LEGACY_FALSE}"; then 11668 as_fn_error $? "conditional \"LEGACY\" was never defined. 11669Usually this means the macro was only invoked conditionally." "$LINENO" 5 11670fi 11671 11672: "${CONFIG_STATUS=./config.status}" 11673ac_write_fail=0 11674ac_clean_files_save=$ac_clean_files 11675ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11677$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11678as_write_fail=0 11679cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11680#! $SHELL 11681# Generated by $as_me. 11682# Run this file to recreate the current configuration. 11683# Compiler output produced by configure, useful for debugging 11684# configure, is in config.log if it exists. 11685 11686debug=false 11687ac_cs_recheck=false 11688ac_cs_silent=false 11689 11690SHELL=\${CONFIG_SHELL-$SHELL} 11691export SHELL 11692_ASEOF 11693cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11694## -------------------- ## 11695## M4sh Initialization. ## 11696## -------------------- ## 11697 11698# Be more Bourne compatible 11699DUALCASE=1; export DUALCASE # for MKS sh 11700if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11701 emulate sh 11702 NULLCMD=: 11703 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11704 # is contrary to our usage. Disable this feature. 11705 alias -g '${1+"$@"}'='"$@"' 11706 setopt NO_GLOB_SUBST 11707else 11708 case `(set -o) 2>/dev/null` in #( 11709 *posix*) : 11710 set -o posix ;; #( 11711 *) : 11712 ;; 11713esac 11714fi 11715 11716 11717as_nl=' 11718' 11719export as_nl 11720# Printing a long string crashes Solaris 7 /usr/bin/printf. 11721as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11722as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11723as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11724# Prefer a ksh shell builtin over an external printf program on Solaris, 11725# but without wasting forks for bash or zsh. 11726if test -z "$BASH_VERSION$ZSH_VERSION" \ 11727 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11728 as_echo='print -r --' 11729 as_echo_n='print -rn --' 11730elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11731 as_echo='printf %s\n' 11732 as_echo_n='printf %s' 11733else 11734 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11735 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11736 as_echo_n='/usr/ucb/echo -n' 11737 else 11738 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11739 as_echo_n_body='eval 11740 arg=$1; 11741 case $arg in #( 11742 *"$as_nl"*) 11743 expr "X$arg" : "X\\(.*\\)$as_nl"; 11744 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11745 esac; 11746 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11747 ' 11748 export as_echo_n_body 11749 as_echo_n='sh -c $as_echo_n_body as_echo' 11750 fi 11751 export as_echo_body 11752 as_echo='sh -c $as_echo_body as_echo' 11753fi 11754 11755# The user is always right. 11756if test "${PATH_SEPARATOR+set}" != set; then 11757 PATH_SEPARATOR=: 11758 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11759 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11760 PATH_SEPARATOR=';' 11761 } 11762fi 11763 11764 11765# IFS 11766# We need space, tab and new line, in precisely that order. Quoting is 11767# there to prevent editors from complaining about space-tab. 11768# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11769# splitting by setting IFS to empty value.) 11770IFS=" "" $as_nl" 11771 11772# Find who we are. Look in the path if we contain no directory separator. 11773as_myself= 11774case $0 in #(( 11775 *[\\/]* ) as_myself=$0 ;; 11776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11777for as_dir in $PATH 11778do 11779 IFS=$as_save_IFS 11780 test -z "$as_dir" && as_dir=. 11781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11782 done 11783IFS=$as_save_IFS 11784 11785 ;; 11786esac 11787# We did not find ourselves, most probably we were run as `sh COMMAND' 11788# in which case we are not to be found in the path. 11789if test "x$as_myself" = x; then 11790 as_myself=$0 11791fi 11792if test ! -f "$as_myself"; then 11793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11794 exit 1 11795fi 11796 11797# Unset variables that we do not need and which cause bugs (e.g. in 11798# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11799# suppresses any "Segmentation fault" message there. '((' could 11800# trigger a bug in pdksh 5.2.14. 11801for as_var in BASH_ENV ENV MAIL MAILPATH 11802do eval test x\${$as_var+set} = xset \ 11803 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11804done 11805PS1='$ ' 11806PS2='> ' 11807PS4='+ ' 11808 11809# NLS nuisances. 11810LC_ALL=C 11811export LC_ALL 11812LANGUAGE=C 11813export LANGUAGE 11814 11815# CDPATH. 11816(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11817 11818 11819# as_fn_error STATUS ERROR [LINENO LOG_FD] 11820# ---------------------------------------- 11821# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11822# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11823# script with STATUS, using 1 if that was 0. 11824as_fn_error () 11825{ 11826 as_status=$1; test $as_status -eq 0 && as_status=1 11827 if test "$4"; then 11828 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11829 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11830 fi 11831 $as_echo "$as_me: error: $2" >&2 11832 as_fn_exit $as_status 11833} # as_fn_error 11834 11835 11836# as_fn_set_status STATUS 11837# ----------------------- 11838# Set $? to STATUS, without forking. 11839as_fn_set_status () 11840{ 11841 return $1 11842} # as_fn_set_status 11843 11844# as_fn_exit STATUS 11845# ----------------- 11846# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11847as_fn_exit () 11848{ 11849 set +e 11850 as_fn_set_status $1 11851 exit $1 11852} # as_fn_exit 11853 11854# as_fn_unset VAR 11855# --------------- 11856# Portably unset VAR. 11857as_fn_unset () 11858{ 11859 { eval $1=; unset $1;} 11860} 11861as_unset=as_fn_unset 11862# as_fn_append VAR VALUE 11863# ---------------------- 11864# Append the text in VALUE to the end of the definition contained in VAR. Take 11865# advantage of any shell optimizations that allow amortized linear growth over 11866# repeated appends, instead of the typical quadratic growth present in naive 11867# implementations. 11868if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11869 eval 'as_fn_append () 11870 { 11871 eval $1+=\$2 11872 }' 11873else 11874 as_fn_append () 11875 { 11876 eval $1=\$$1\$2 11877 } 11878fi # as_fn_append 11879 11880# as_fn_arith ARG... 11881# ------------------ 11882# Perform arithmetic evaluation on the ARGs, and store the result in the 11883# global $as_val. Take advantage of shells that can avoid forks. The arguments 11884# must be portable across $(()) and expr. 11885if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11886 eval 'as_fn_arith () 11887 { 11888 as_val=$(( $* )) 11889 }' 11890else 11891 as_fn_arith () 11892 { 11893 as_val=`expr "$@" || test $? -eq 1` 11894 } 11895fi # as_fn_arith 11896 11897 11898if expr a : '\(a\)' >/dev/null 2>&1 && 11899 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11900 as_expr=expr 11901else 11902 as_expr=false 11903fi 11904 11905if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11906 as_basename=basename 11907else 11908 as_basename=false 11909fi 11910 11911if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11912 as_dirname=dirname 11913else 11914 as_dirname=false 11915fi 11916 11917as_me=`$as_basename -- "$0" || 11918$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11919 X"$0" : 'X\(//\)$' \| \ 11920 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11921$as_echo X/"$0" | 11922 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11923 s//\1/ 11924 q 11925 } 11926 /^X\/\(\/\/\)$/{ 11927 s//\1/ 11928 q 11929 } 11930 /^X\/\(\/\).*/{ 11931 s//\1/ 11932 q 11933 } 11934 s/.*/./; q'` 11935 11936# Avoid depending upon Character Ranges. 11937as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11939as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11940as_cr_digits='0123456789' 11941as_cr_alnum=$as_cr_Letters$as_cr_digits 11942 11943ECHO_C= ECHO_N= ECHO_T= 11944case `echo -n x` in #((((( 11945-n*) 11946 case `echo 'xy\c'` in 11947 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11948 xy) ECHO_C='\c';; 11949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11950 ECHO_T=' ';; 11951 esac;; 11952*) 11953 ECHO_N='-n';; 11954esac 11955 11956rm -f conf$$ conf$$.exe conf$$.file 11957if test -d conf$$.dir; then 11958 rm -f conf$$.dir/conf$$.file 11959else 11960 rm -f conf$$.dir 11961 mkdir conf$$.dir 2>/dev/null 11962fi 11963if (echo >conf$$.file) 2>/dev/null; then 11964 if ln -s conf$$.file conf$$ 2>/dev/null; then 11965 as_ln_s='ln -s' 11966 # ... but there are two gotchas: 11967 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11968 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11969 # In both cases, we have to default to `cp -pR'. 11970 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11971 as_ln_s='cp -pR' 11972 elif ln conf$$.file conf$$ 2>/dev/null; then 11973 as_ln_s=ln 11974 else 11975 as_ln_s='cp -pR' 11976 fi 11977else 11978 as_ln_s='cp -pR' 11979fi 11980rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11981rmdir conf$$.dir 2>/dev/null 11982 11983 11984# as_fn_mkdir_p 11985# ------------- 11986# Create "$as_dir" as a directory, including parents if necessary. 11987as_fn_mkdir_p () 11988{ 11989 11990 case $as_dir in #( 11991 -*) as_dir=./$as_dir;; 11992 esac 11993 test -d "$as_dir" || eval $as_mkdir_p || { 11994 as_dirs= 11995 while :; do 11996 case $as_dir in #( 11997 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11998 *) as_qdir=$as_dir;; 11999 esac 12000 as_dirs="'$as_qdir' $as_dirs" 12001 as_dir=`$as_dirname -- "$as_dir" || 12002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12003 X"$as_dir" : 'X\(//\)[^/]' \| \ 12004 X"$as_dir" : 'X\(//\)$' \| \ 12005 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12006$as_echo X"$as_dir" | 12007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12008 s//\1/ 12009 q 12010 } 12011 /^X\(\/\/\)[^/].*/{ 12012 s//\1/ 12013 q 12014 } 12015 /^X\(\/\/\)$/{ 12016 s//\1/ 12017 q 12018 } 12019 /^X\(\/\).*/{ 12020 s//\1/ 12021 q 12022 } 12023 s/.*/./; q'` 12024 test -d "$as_dir" && break 12025 done 12026 test -z "$as_dirs" || eval "mkdir $as_dirs" 12027 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12028 12029 12030} # as_fn_mkdir_p 12031if mkdir -p . 2>/dev/null; then 12032 as_mkdir_p='mkdir -p "$as_dir"' 12033else 12034 test -d ./-p && rmdir ./-p 12035 as_mkdir_p=false 12036fi 12037 12038 12039# as_fn_executable_p FILE 12040# ----------------------- 12041# Test if FILE is an executable regular file. 12042as_fn_executable_p () 12043{ 12044 test -f "$1" && test -x "$1" 12045} # as_fn_executable_p 12046as_test_x='test -x' 12047as_executable_p=as_fn_executable_p 12048 12049# Sed expression to map a string onto a valid CPP name. 12050as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12051 12052# Sed expression to map a string onto a valid variable name. 12053as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12054 12055 12056exec 6>&1 12057## ----------------------------------- ## 12058## Main body of $CONFIG_STATUS script. ## 12059## ----------------------------------- ## 12060_ASEOF 12061test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12062 12063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12064# Save the log message, to keep $0 and so on meaningful, and to 12065# report actual input values of CONFIG_FILES etc. instead of their 12066# values after options handling. 12067ac_log=" 12068This file was extended by xorgproto $as_me 2019.2, which was 12069generated by GNU Autoconf 2.69. Invocation command line was 12070 12071 CONFIG_FILES = $CONFIG_FILES 12072 CONFIG_HEADERS = $CONFIG_HEADERS 12073 CONFIG_LINKS = $CONFIG_LINKS 12074 CONFIG_COMMANDS = $CONFIG_COMMANDS 12075 $ $0 $@ 12076 12077on `(hostname || uname -n) 2>/dev/null | sed 1q` 12078" 12079 12080_ACEOF 12081 12082case $ac_config_files in *" 12083"*) set x $ac_config_files; shift; ac_config_files=$*;; 12084esac 12085 12086 12087 12088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12089# Files that config.status was made for. 12090config_files="$ac_config_files" 12091config_commands="$ac_config_commands" 12092 12093_ACEOF 12094 12095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12096ac_cs_usage="\ 12097\`$as_me' instantiates files and other configuration actions 12098from templates according to the current configuration. Unless the files 12099and actions are specified as TAGs, all are instantiated by default. 12100 12101Usage: $0 [OPTION]... [TAG]... 12102 12103 -h, --help print this help, then exit 12104 -V, --version print version number and configuration settings, then exit 12105 --config print configuration, then exit 12106 -q, --quiet, --silent 12107 do not print progress messages 12108 -d, --debug don't remove temporary files 12109 --recheck update $as_me by reconfiguring in the same conditions 12110 --file=FILE[:TEMPLATE] 12111 instantiate the configuration file FILE 12112 12113Configuration files: 12114$config_files 12115 12116Configuration commands: 12117$config_commands 12118 12119Report bugs to <https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues>." 12120 12121_ACEOF 12122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12123ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12124ac_cs_version="\\ 12125xorgproto config.status 2019.2 12126configured by $0, generated by GNU Autoconf 2.69, 12127 with options \\"\$ac_cs_config\\" 12128 12129Copyright (C) 2012 Free Software Foundation, Inc. 12130This config.status script is free software; the Free Software Foundation 12131gives unlimited permission to copy, distribute and modify it." 12132 12133ac_pwd='$ac_pwd' 12134srcdir='$srcdir' 12135INSTALL='$INSTALL' 12136MKDIR_P='$MKDIR_P' 12137AWK='$AWK' 12138test -n "\$AWK" || AWK=awk 12139_ACEOF 12140 12141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12142# The default lists apply if the user does not specify any file. 12143ac_need_defaults=: 12144while test $# != 0 12145do 12146 case $1 in 12147 --*=?*) 12148 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12150 ac_shift=: 12151 ;; 12152 --*=) 12153 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12154 ac_optarg= 12155 ac_shift=: 12156 ;; 12157 *) 12158 ac_option=$1 12159 ac_optarg=$2 12160 ac_shift=shift 12161 ;; 12162 esac 12163 12164 case $ac_option in 12165 # Handling of the options. 12166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12167 ac_cs_recheck=: ;; 12168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12169 $as_echo "$ac_cs_version"; exit ;; 12170 --config | --confi | --conf | --con | --co | --c ) 12171 $as_echo "$ac_cs_config"; exit ;; 12172 --debug | --debu | --deb | --de | --d | -d ) 12173 debug=: ;; 12174 --file | --fil | --fi | --f ) 12175 $ac_shift 12176 case $ac_optarg in 12177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12178 '') as_fn_error $? "missing file argument" ;; 12179 esac 12180 as_fn_append CONFIG_FILES " '$ac_optarg'" 12181 ac_need_defaults=false;; 12182 --he | --h | --help | --hel | -h ) 12183 $as_echo "$ac_cs_usage"; exit ;; 12184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12185 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12186 ac_cs_silent=: ;; 12187 12188 # This is an error. 12189 -*) as_fn_error $? "unrecognized option: \`$1' 12190Try \`$0 --help' for more information." ;; 12191 12192 *) as_fn_append ac_config_targets " $1" 12193 ac_need_defaults=false ;; 12194 12195 esac 12196 shift 12197done 12198 12199ac_configure_extra_args= 12200 12201if $ac_cs_silent; then 12202 exec 6>/dev/null 12203 ac_configure_extra_args="$ac_configure_extra_args --silent" 12204fi 12205 12206_ACEOF 12207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12208if \$ac_cs_recheck; then 12209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12210 shift 12211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12212 CONFIG_SHELL='$SHELL' 12213 export CONFIG_SHELL 12214 exec "\$@" 12215fi 12216 12217_ACEOF 12218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12219exec 5>>config.log 12220{ 12221 echo 12222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12223## Running $as_me. ## 12224_ASBOX 12225 $as_echo "$ac_log" 12226} >&5 12227 12228_ACEOF 12229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12230# 12231# INIT-COMMANDS 12232# 12233AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12234 12235_ACEOF 12236 12237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12238 12239# Handling of arguments. 12240for ac_config_target in $ac_config_targets 12241do 12242 case $ac_config_target in 12243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12244 "applewmproto.pc") CONFIG_FILES="$CONFIG_FILES applewmproto.pc" ;; 12245 "bigreqsproto.pc") CONFIG_FILES="$CONFIG_FILES bigreqsproto.pc" ;; 12246 "compositeproto.pc") CONFIG_FILES="$CONFIG_FILES compositeproto.pc" ;; 12247 "damageproto.pc") CONFIG_FILES="$CONFIG_FILES damageproto.pc" ;; 12248 "dmxproto.pc") CONFIG_FILES="$CONFIG_FILES dmxproto.pc" ;; 12249 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;; 12250 "dri3proto.pc") CONFIG_FILES="$CONFIG_FILES dri3proto.pc" ;; 12251 "evieproto.pc") CONFIG_FILES="$CONFIG_FILES evieproto.pc" ;; 12252 "fixesproto.pc") CONFIG_FILES="$CONFIG_FILES fixesproto.pc" ;; 12253 "fontcacheproto.pc") CONFIG_FILES="$CONFIG_FILES fontcacheproto.pc" ;; 12254 "fontsproto.pc") CONFIG_FILES="$CONFIG_FILES fontsproto.pc" ;; 12255 "glproto.pc") CONFIG_FILES="$CONFIG_FILES glproto.pc" ;; 12256 "include/X11/Xpoll.h") CONFIG_FILES="$CONFIG_FILES include/X11/Xpoll.h" ;; 12257 "inputproto.pc") CONFIG_FILES="$CONFIG_FILES inputproto.pc" ;; 12258 "kbproto.pc") CONFIG_FILES="$CONFIG_FILES kbproto.pc" ;; 12259 "lg3dproto.pc") CONFIG_FILES="$CONFIG_FILES lg3dproto.pc" ;; 12260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12261 "presentproto.pc") CONFIG_FILES="$CONFIG_FILES presentproto.pc" ;; 12262 "printproto.pc") CONFIG_FILES="$CONFIG_FILES printproto.pc" ;; 12263 "randrproto.pc") CONFIG_FILES="$CONFIG_FILES randrproto.pc" ;; 12264 "recordproto.pc") CONFIG_FILES="$CONFIG_FILES recordproto.pc" ;; 12265 "renderproto.pc") CONFIG_FILES="$CONFIG_FILES renderproto.pc" ;; 12266 "resourceproto.pc") CONFIG_FILES="$CONFIG_FILES resourceproto.pc" ;; 12267 "scrnsaverproto.pc") CONFIG_FILES="$CONFIG_FILES scrnsaverproto.pc" ;; 12268 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 12269 "specs/bigreqsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/bigreqsproto/Makefile" ;; 12270 "specs/fontsproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/fontsproto/Makefile" ;; 12271 "specs/kbproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/kbproto/Makefile" ;; 12272 "specs/recordproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/recordproto/Makefile" ;; 12273 "specs/scrnsaverproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/scrnsaverproto/Makefile" ;; 12274 "specs/xcmiscproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xcmiscproto/Makefile" ;; 12275 "specs/xextproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xextproto/Makefile" ;; 12276 "specs/xproto/Makefile") CONFIG_FILES="$CONFIG_FILES specs/xproto/Makefile" ;; 12277 "trapproto.pc") CONFIG_FILES="$CONFIG_FILES trapproto.pc" ;; 12278 "videoproto.pc") CONFIG_FILES="$CONFIG_FILES videoproto.pc" ;; 12279 "windowswmproto.pc") CONFIG_FILES="$CONFIG_FILES windowswmproto.pc" ;; 12280 "xcalibrateproto.pc") CONFIG_FILES="$CONFIG_FILES xcalibrateproto.pc" ;; 12281 "xcmiscproto.pc") CONFIG_FILES="$CONFIG_FILES xcmiscproto.pc" ;; 12282 "xextproto.pc") CONFIG_FILES="$CONFIG_FILES xextproto.pc" ;; 12283 "xf86bigfontproto.pc") CONFIG_FILES="$CONFIG_FILES xf86bigfontproto.pc" ;; 12284 "xf86dgaproto.pc") CONFIG_FILES="$CONFIG_FILES xf86dgaproto.pc" ;; 12285 "xf86driproto.pc") CONFIG_FILES="$CONFIG_FILES xf86driproto.pc" ;; 12286 "xf86miscproto.pc") CONFIG_FILES="$CONFIG_FILES xf86miscproto.pc" ;; 12287 "xf86rushproto.pc") CONFIG_FILES="$CONFIG_FILES xf86rushproto.pc" ;; 12288 "xf86vidmodeproto.pc") CONFIG_FILES="$CONFIG_FILES xf86vidmodeproto.pc" ;; 12289 "xineramaproto.pc") CONFIG_FILES="$CONFIG_FILES xineramaproto.pc" ;; 12290 "xproto.pc") CONFIG_FILES="$CONFIG_FILES xproto.pc" ;; 12291 "xproxymngproto.pc") CONFIG_FILES="$CONFIG_FILES xproxymngproto.pc" ;; 12292 12293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12294 esac 12295done 12296 12297 12298# If the user did not use the arguments to specify the items to instantiate, 12299# then the envvar interface is used. Set only those that are not. 12300# We use the long form for the default assignment because of an extremely 12301# bizarre bug on SunOS 4.1.3. 12302if $ac_need_defaults; then 12303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12305fi 12306 12307# Have a temporary directory for convenience. Make it in the build tree 12308# simply because there is no reason against having it here, and in addition, 12309# creating and moving files from /tmp can sometimes cause problems. 12310# Hook for its removal unless debugging. 12311# Note that there is a small window in which the directory will not be cleaned: 12312# after its creation but before its name has been assigned to `$tmp'. 12313$debug || 12314{ 12315 tmp= ac_tmp= 12316 trap 'exit_status=$? 12317 : "${ac_tmp:=$tmp}" 12318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12319' 0 12320 trap 'as_fn_exit 1' 1 2 13 15 12321} 12322# Create a (secure) tmp directory for tmp files. 12323 12324{ 12325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12326 test -d "$tmp" 12327} || 12328{ 12329 tmp=./conf$$-$RANDOM 12330 (umask 077 && mkdir "$tmp") 12331} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12332ac_tmp=$tmp 12333 12334# Set up the scripts for CONFIG_FILES section. 12335# No need to generate them if there are no CONFIG_FILES. 12336# This happens for instance with `./config.status config.h'. 12337if test -n "$CONFIG_FILES"; then 12338 12339 12340ac_cr=`echo X | tr X '\015'` 12341# On cygwin, bash can eat \r inside `` if the user requested igncr. 12342# But we know of no other shell where ac_cr would be empty at this 12343# point, so we can use a bashism as a fallback. 12344if test "x$ac_cr" = x; then 12345 eval ac_cr=\$\'\\r\' 12346fi 12347ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12348if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12349 ac_cs_awk_cr='\\r' 12350else 12351 ac_cs_awk_cr=$ac_cr 12352fi 12353 12354echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12355_ACEOF 12356 12357 12358{ 12359 echo "cat >conf$$subs.awk <<_ACEOF" && 12360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12361 echo "_ACEOF" 12362} >conf$$subs.sh || 12363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12364ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12365ac_delim='%!_!# ' 12366for ac_last_try in false false false false false :; do 12367 . ./conf$$subs.sh || 12368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12369 12370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12371 if test $ac_delim_n = $ac_delim_num; then 12372 break 12373 elif $ac_last_try; then 12374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12375 else 12376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12377 fi 12378done 12379rm -f conf$$subs.sh 12380 12381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12382cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12383_ACEOF 12384sed -n ' 12385h 12386s/^/S["/; s/!.*/"]=/ 12387p 12388g 12389s/^[^!]*!// 12390:repl 12391t repl 12392s/'"$ac_delim"'$// 12393t delim 12394:nl 12395h 12396s/\(.\{148\}\)..*/\1/ 12397t more1 12398s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12399p 12400n 12401b repl 12402:more1 12403s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12404p 12405g 12406s/.\{148\}// 12407t nl 12408:delim 12409h 12410s/\(.\{148\}\)..*/\1/ 12411t more2 12412s/["\\]/\\&/g; s/^/"/; s/$/"/ 12413p 12414b 12415:more2 12416s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12417p 12418g 12419s/.\{148\}// 12420t delim 12421' <conf$$subs.awk | sed ' 12422/^[^""]/{ 12423 N 12424 s/\n// 12425} 12426' >>$CONFIG_STATUS || ac_write_fail=1 12427rm -f conf$$subs.awk 12428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12429_ACAWK 12430cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12431 for (key in S) S_is_set[key] = 1 12432 FS = "" 12433 12434} 12435{ 12436 line = $ 0 12437 nfields = split(line, field, "@") 12438 substed = 0 12439 len = length(field[1]) 12440 for (i = 2; i < nfields; i++) { 12441 key = field[i] 12442 keylen = length(key) 12443 if (S_is_set[key]) { 12444 value = S[key] 12445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12446 len += length(value) + length(field[++i]) 12447 substed = 1 12448 } else 12449 len += 1 + keylen 12450 } 12451 12452 print line 12453} 12454 12455_ACAWK 12456_ACEOF 12457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12458if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12460else 12461 cat 12462fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12464_ACEOF 12465 12466# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12467# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12468# trailing colons and then remove the whole line if VPATH becomes empty 12469# (actually we leave an empty line to preserve line numbers). 12470if test "x$srcdir" = x.; then 12471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12472h 12473s/// 12474s/^/:/ 12475s/[ ]*$/:/ 12476s/:\$(srcdir):/:/g 12477s/:\${srcdir}:/:/g 12478s/:@srcdir@:/:/g 12479s/^:*// 12480s/:*$// 12481x 12482s/\(=[ ]*\).*/\1/ 12483G 12484s/\n// 12485s/^[^=]*=[ ]*$// 12486}' 12487fi 12488 12489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12490fi # test -n "$CONFIG_FILES" 12491 12492 12493eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12494shift 12495for ac_tag 12496do 12497 case $ac_tag in 12498 :[FHLC]) ac_mode=$ac_tag; continue;; 12499 esac 12500 case $ac_mode$ac_tag in 12501 :[FHL]*:*);; 12502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12503 :[FH]-) ac_tag=-:-;; 12504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12505 esac 12506 ac_save_IFS=$IFS 12507 IFS=: 12508 set x $ac_tag 12509 IFS=$ac_save_IFS 12510 shift 12511 ac_file=$1 12512 shift 12513 12514 case $ac_mode in 12515 :L) ac_source=$1;; 12516 :[FH]) 12517 ac_file_inputs= 12518 for ac_f 12519 do 12520 case $ac_f in 12521 -) ac_f="$ac_tmp/stdin";; 12522 *) # Look for the file first in the build tree, then in the source tree 12523 # (if the path is not absolute). The absolute path cannot be DOS-style, 12524 # because $ac_f cannot contain `:'. 12525 test -f "$ac_f" || 12526 case $ac_f in 12527 [\\/$]*) false;; 12528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12529 esac || 12530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12531 esac 12532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12533 as_fn_append ac_file_inputs " '$ac_f'" 12534 done 12535 12536 # Let's still pretend it is `configure' which instantiates (i.e., don't 12537 # use $as_me), people would be surprised to read: 12538 # /* config.h. Generated by config.status. */ 12539 configure_input='Generated from '` 12540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12541 `' by configure.' 12542 if test x"$ac_file" != x-; then 12543 configure_input="$ac_file. $configure_input" 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12545$as_echo "$as_me: creating $ac_file" >&6;} 12546 fi 12547 # Neutralize special characters interpreted by sed in replacement strings. 12548 case $configure_input in #( 12549 *\&* | *\|* | *\\* ) 12550 ac_sed_conf_input=`$as_echo "$configure_input" | 12551 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12552 *) ac_sed_conf_input=$configure_input;; 12553 esac 12554 12555 case $ac_tag in 12556 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12558 esac 12559 ;; 12560 esac 12561 12562 ac_dir=`$as_dirname -- "$ac_file" || 12563$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12564 X"$ac_file" : 'X\(//\)[^/]' \| \ 12565 X"$ac_file" : 'X\(//\)$' \| \ 12566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12567$as_echo X"$ac_file" | 12568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12569 s//\1/ 12570 q 12571 } 12572 /^X\(\/\/\)[^/].*/{ 12573 s//\1/ 12574 q 12575 } 12576 /^X\(\/\/\)$/{ 12577 s//\1/ 12578 q 12579 } 12580 /^X\(\/\).*/{ 12581 s//\1/ 12582 q 12583 } 12584 s/.*/./; q'` 12585 as_dir="$ac_dir"; as_fn_mkdir_p 12586 ac_builddir=. 12587 12588case "$ac_dir" in 12589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12590*) 12591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12592 # A ".." for each directory in $ac_dir_suffix. 12593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12594 case $ac_top_builddir_sub in 12595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12597 esac ;; 12598esac 12599ac_abs_top_builddir=$ac_pwd 12600ac_abs_builddir=$ac_pwd$ac_dir_suffix 12601# for backward compatibility: 12602ac_top_builddir=$ac_top_build_prefix 12603 12604case $srcdir in 12605 .) # We are building in place. 12606 ac_srcdir=. 12607 ac_top_srcdir=$ac_top_builddir_sub 12608 ac_abs_top_srcdir=$ac_pwd ;; 12609 [\\/]* | ?:[\\/]* ) # Absolute name. 12610 ac_srcdir=$srcdir$ac_dir_suffix; 12611 ac_top_srcdir=$srcdir 12612 ac_abs_top_srcdir=$srcdir ;; 12613 *) # Relative name. 12614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12615 ac_top_srcdir=$ac_top_build_prefix$srcdir 12616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12617esac 12618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12619 12620 12621 case $ac_mode in 12622 :F) 12623 # 12624 # CONFIG_FILE 12625 # 12626 12627 case $INSTALL in 12628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12630 esac 12631 ac_MKDIR_P=$MKDIR_P 12632 case $MKDIR_P in 12633 [\\/$]* | ?:[\\/]* ) ;; 12634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12635 esac 12636_ACEOF 12637 12638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12639# If the template does not know about datarootdir, expand it. 12640# FIXME: This hack should be removed a few years after 2.60. 12641ac_datarootdir_hack=; ac_datarootdir_seen= 12642ac_sed_dataroot=' 12643/datarootdir/ { 12644 p 12645 q 12646} 12647/@datadir@/p 12648/@docdir@/p 12649/@infodir@/p 12650/@localedir@/p 12651/@mandir@/p' 12652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12653*datarootdir*) ac_datarootdir_seen=yes;; 12654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12656$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12657_ACEOF 12658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12659 ac_datarootdir_hack=' 12660 s&@datadir@&$datadir&g 12661 s&@docdir@&$docdir&g 12662 s&@infodir@&$infodir&g 12663 s&@localedir@&$localedir&g 12664 s&@mandir@&$mandir&g 12665 s&\\\${datarootdir}&$datarootdir&g' ;; 12666esac 12667_ACEOF 12668 12669# Neutralize VPATH when `$srcdir' = `.'. 12670# Shell code in configure.ac might set extrasub. 12671# FIXME: do we really want to maintain this feature? 12672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12673ac_sed_extra="$ac_vpsub 12674$extrasub 12675_ACEOF 12676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12677:t 12678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12679s|@configure_input@|$ac_sed_conf_input|;t t 12680s&@top_builddir@&$ac_top_builddir_sub&;t t 12681s&@top_build_prefix@&$ac_top_build_prefix&;t t 12682s&@srcdir@&$ac_srcdir&;t t 12683s&@abs_srcdir@&$ac_abs_srcdir&;t t 12684s&@top_srcdir@&$ac_top_srcdir&;t t 12685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12686s&@builddir@&$ac_builddir&;t t 12687s&@abs_builddir@&$ac_abs_builddir&;t t 12688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12689s&@INSTALL@&$ac_INSTALL&;t t 12690s&@MKDIR_P@&$ac_MKDIR_P&;t t 12691$ac_datarootdir_hack 12692" 12693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12695 12696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12699 "$ac_tmp/out"`; test -z "$ac_out"; } && 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12701which seems to be undefined. Please make sure it is defined" >&5 12702$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12703which seems to be undefined. Please make sure it is defined" >&2;} 12704 12705 rm -f "$ac_tmp/stdin" 12706 case $ac_file in 12707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12709 esac \ 12710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12711 ;; 12712 12713 12714 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12715$as_echo "$as_me: executing $ac_file commands" >&6;} 12716 ;; 12717 esac 12718 12719 12720 case $ac_file$ac_mode in 12721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12722 # Older Autoconf quotes --file arguments for eval, but not when files 12723 # are listed without --file. Let's play safe and only enable the eval 12724 # if we detect the quoting. 12725 # TODO: see whether this extra hack can be removed once we start 12726 # requiring Autoconf 2.70 or later. 12727 case $CONFIG_FILES in #( 12728 *\'*) : 12729 eval set x "$CONFIG_FILES" ;; #( 12730 *) : 12731 set x $CONFIG_FILES ;; #( 12732 *) : 12733 ;; 12734esac 12735 shift 12736 # Used to flag and report bootstrapping failures. 12737 am_rc=0 12738 for am_mf 12739 do 12740 # Strip MF so we end up with the name of the file. 12741 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12742 # Check whether this is an Automake generated Makefile which includes 12743 # dependency-tracking related rules and includes. 12744 # Grep'ing the whole file directly is not great: AIX grep has a line 12745 # limit of 2048, but all sed's we know have understand at least 4000. 12746 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12747 || continue 12748 am_dirpart=`$as_dirname -- "$am_mf" || 12749$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12750 X"$am_mf" : 'X\(//\)[^/]' \| \ 12751 X"$am_mf" : 'X\(//\)$' \| \ 12752 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12753$as_echo X"$am_mf" | 12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12755 s//\1/ 12756 q 12757 } 12758 /^X\(\/\/\)[^/].*/{ 12759 s//\1/ 12760 q 12761 } 12762 /^X\(\/\/\)$/{ 12763 s//\1/ 12764 q 12765 } 12766 /^X\(\/\).*/{ 12767 s//\1/ 12768 q 12769 } 12770 s/.*/./; q'` 12771 am_filepart=`$as_basename -- "$am_mf" || 12772$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12773 X"$am_mf" : 'X\(//\)$' \| \ 12774 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12775$as_echo X/"$am_mf" | 12776 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12777 s//\1/ 12778 q 12779 } 12780 /^X\/\(\/\/\)$/{ 12781 s//\1/ 12782 q 12783 } 12784 /^X\/\(\/\).*/{ 12785 s//\1/ 12786 q 12787 } 12788 s/.*/./; q'` 12789 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12790 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12791 | $MAKE -f - am--depfiles" >&5 12792 (cd "$am_dirpart" \ 12793 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12794 | $MAKE -f - am--depfiles) >&5 2>&5 12795 ac_status=$? 12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12797 (exit $ac_status); } || am_rc=$? 12798 done 12799 if test $am_rc -ne 0; then 12800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12802as_fn_error $? "Something went wrong bootstrapping makefile fragments 12803 for automatic dependency tracking. Try re-running configure with the 12804 '--disable-dependency-tracking' option to at least be able to build 12805 the package (albeit without support for automatic dependency tracking). 12806See \`config.log' for more details" "$LINENO" 5; } 12807 fi 12808 { am_dirpart=; unset am_dirpart;} 12809 { am_filepart=; unset am_filepart;} 12810 { am_mf=; unset am_mf;} 12811 { am_rc=; unset am_rc;} 12812 rm -f conftest-deps.mk 12813} 12814 ;; 12815 12816 esac 12817done # for ac_tag 12818 12819 12820as_fn_exit 0 12821_ACEOF 12822ac_clean_files=$ac_clean_files_save 12823 12824test $ac_write_fail = 0 || 12825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12826 12827 12828# configure is writing to config.log, and then calls config.status. 12829# config.status does its own redirection, appending to config.log. 12830# Unfortunately, on DOS this fails, as config.log is still kept open 12831# by configure, so config.status won't be able to write to it; its 12832# output is simply discarded. So we exec the FD to /dev/null, 12833# effectively closing config.log, so it can be properly (re)opened and 12834# appended to by config.status. When coming back to configure, we 12835# need to make the FD available again. 12836if test "$no_create" != yes; then 12837 ac_cs_success=: 12838 ac_config_status_args= 12839 test "$silent" = yes && 12840 ac_config_status_args="$ac_config_status_args --quiet" 12841 exec 5>/dev/null 12842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12843 exec 5>>config.log 12844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12845 # would make configure fail if this is the last instruction. 12846 $ac_cs_success || as_fn_exit 1 12847fi 12848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12850$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12851fi 12852 12853 12854