configure revision 533545b5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for x11perf 1.6.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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://bugs.freedesktop.org/enter_bug.cgi?product=xorg 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 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='x11perf' 583PACKAGE_TARNAME='x11perf' 584PACKAGE_VERSION='1.6.0' 585PACKAGE_STRING='x11perf 1.6.0' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XEXT_LIBS 631XEXT_CFLAGS 632XFT_LIBS 633XFT_CFLAGS 634XRENDER_LIBS 635XRENDER_CFLAGS 636X11PERF_LIBS 637X11PERF_CFLAGS 638MKTEMP 639x11perfcompdir 640MAN_SUBSTS 641XORG_MAN_PAGE 642ADMIN_MAN_DIR 643DRIVER_MAN_DIR 644MISC_MAN_DIR 645FILE_MAN_DIR 646LIB_MAN_DIR 647APP_MAN_DIR 648ADMIN_MAN_SUFFIX 649DRIVER_MAN_SUFFIX 650MISC_MAN_SUFFIX 651FILE_MAN_SUFFIX 652LIB_MAN_SUFFIX 653APP_MAN_SUFFIX 654SED 655host_os 656host_vendor 657host_cpu 658host 659build_os 660build_vendor 661build_cpu 662build 663INSTALL_CMD 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669EGREP 670GREP 671CPP 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689AM_BACKSLASH 690AM_DEFAULT_VERBOSITY 691AM_DEFAULT_V 692AM_V 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_selective_werror 760enable_strict_compilation 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765CC 766CFLAGS 767LDFLAGS 768LIBS 769CPPFLAGS 770CPP 771PKG_CONFIG 772X11PERF_CFLAGS 773X11PERF_LIBS 774XRENDER_CFLAGS 775XRENDER_LIBS 776XFT_CFLAGS 777XFT_LIBS 778XEXT_CFLAGS 779XEXT_LIBS' 780 781 782# Initialize some variables set by options. 783ac_init_help= 784ac_init_version=false 785ac_unrecognized_opts= 786ac_unrecognized_sep= 787# The variables have the same names as the options, with 788# dashes changed to underlines. 789cache_file=/dev/null 790exec_prefix=NONE 791no_create= 792no_recursion= 793prefix=NONE 794program_prefix=NONE 795program_suffix=NONE 796program_transform_name=s,x,x, 797silent= 798site= 799srcdir= 800verbose= 801x_includes=NONE 802x_libraries=NONE 803 804# Installation directory options. 805# These are left unexpanded so users can "make install exec_prefix=/foo" 806# and all the variables that are supposed to be based on exec_prefix 807# by default will actually change. 808# Use braces instead of parens because sh, perl, etc. also accept them. 809# (The list follows the same order as the GNU Coding Standards.) 810bindir='${exec_prefix}/bin' 811sbindir='${exec_prefix}/sbin' 812libexecdir='${exec_prefix}/libexec' 813datarootdir='${prefix}/share' 814datadir='${datarootdir}' 815sysconfdir='${prefix}/etc' 816sharedstatedir='${prefix}/com' 817localstatedir='${prefix}/var' 818includedir='${prefix}/include' 819oldincludedir='/usr/include' 820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 821infodir='${datarootdir}/info' 822htmldir='${docdir}' 823dvidir='${docdir}' 824pdfdir='${docdir}' 825psdir='${docdir}' 826libdir='${exec_prefix}/lib' 827localedir='${datarootdir}/locale' 828mandir='${datarootdir}/man' 829 830ac_prev= 831ac_dashdash= 832for ac_option 833do 834 # If the previous option needs an argument, assign it. 835 if test -n "$ac_prev"; then 836 eval $ac_prev=\$ac_option 837 ac_prev= 838 continue 839 fi 840 841 case $ac_option in 842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 843 *=) ac_optarg= ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1071 ac_prev=sbindir ;; 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1073 | --sbi=* | --sb=*) 1074 sbindir=$ac_optarg ;; 1075 1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1078 | --sharedst | --shareds | --shared | --share | --shar \ 1079 | --sha | --sh) 1080 ac_prev=sharedstatedir ;; 1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1084 | --sha=* | --sh=*) 1085 sharedstatedir=$ac_optarg ;; 1086 1087 -site | --site | --sit) 1088 ac_prev=site ;; 1089 -site=* | --site=* | --sit=*) 1090 site=$ac_optarg ;; 1091 1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1093 ac_prev=srcdir ;; 1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1095 srcdir=$ac_optarg ;; 1096 1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1098 | --syscon | --sysco | --sysc | --sys | --sy) 1099 ac_prev=sysconfdir ;; 1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1102 sysconfdir=$ac_optarg ;; 1103 1104 -target | --target | --targe | --targ | --tar | --ta | --t) 1105 ac_prev=target_alias ;; 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1107 target_alias=$ac_optarg ;; 1108 1109 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1110 verbose=yes ;; 1111 1112 -version | --version | --versio | --versi | --vers | -V) 1113 ac_init_version=: ;; 1114 1115 -with-* | --with-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error $? "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=\$ac_optarg ;; 1130 1131 -without-* | --without-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=no ;; 1146 1147 --x) 1148 # Obsolete; use --with-x. 1149 with_x=yes ;; 1150 1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1152 | --x-incl | --x-inc | --x-in | --x-i) 1153 ac_prev=x_includes ;; 1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1156 x_includes=$ac_optarg ;; 1157 1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1160 ac_prev=x_libraries ;; 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1163 x_libraries=$ac_optarg ;; 1164 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1166Try \`$0 --help' for more information" 1167 ;; 1168 1169 *=*) 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171 # Reject names that are not valid shell variable names. 1172 case $ac_envvar in #( 1173 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1175 esac 1176 eval $ac_envvar=\$ac_optarg 1177 export $ac_envvar ;; 1178 1179 *) 1180 # FIXME: should be removed in autoconf 3.0. 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1185 ;; 1186 1187 esac 1188done 1189 1190if test -n "$ac_prev"; then 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1192 as_fn_error $? "missing argument to $ac_option" 1193fi 1194 1195if test -n "$ac_unrecognized_opts"; then 1196 case $enable_option_checking in 1197 no) ;; 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1200 esac 1201fi 1202 1203# Check all directory arguments for consistency. 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1205 datadir sysconfdir sharedstatedir localstatedir includedir \ 1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1207 libdir localedir mandir 1208do 1209 eval ac_val=\$$ac_var 1210 # Remove trailing slashes. 1211 case $ac_val in 1212 */ ) 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1214 eval $ac_var=\$ac_val;; 1215 esac 1216 # Be sure to have absolute directory names. 1217 case $ac_val in 1218 [\\/$]* | ?:[\\/]* ) continue;; 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1220 esac 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1222done 1223 1224# There might be people who depend on the old broken behavior: `$host' 1225# used to hold the argument of --host etc. 1226# FIXME: To remove some day. 1227build=$build_alias 1228host=$host_alias 1229target=$target_alias 1230 1231# FIXME: To remove some day. 1232if test "x$host_alias" != x; then 1233 if test "x$build_alias" = x; then 1234 cross_compiling=maybe 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238fi 1239 1240ac_tool_prefix= 1241test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243test "$silent" = yes && exec 6>/dev/null 1244 1245 1246ac_pwd=`pwd` && test -n "$ac_pwd" && 1247ac_ls_di=`ls -di .` && 1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 as_fn_error $? "working directory cannot be determined" 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1251 as_fn_error $? "pwd does not report name of working directory" 1252 1253 1254# Find the source files, if location was not specified. 1255if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$as_myself" || 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1263$as_echo X"$as_myself" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285else 1286 ac_srcdir_defaulted=no 1287fi 1288if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1291fi 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1295 pwd)` 1296# When building in place, set srcdir=. 1297if test "$ac_abs_confdir" = "$ac_pwd"; then 1298 srcdir=. 1299fi 1300# Remove unnecessary trailing slashes from srcdir. 1301# Double slashes in file names in object file debugging info 1302# mess up M-x gdb in Emacs. 1303case $srcdir in 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305esac 1306for ac_var in $ac_precious_vars; do 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_env_${ac_var}_value=\$${ac_var} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311done 1312 1313# 1314# Report the --help message. 1315# 1316if test "$ac_init_help" = "long"; then 1317 # Omit some internal or obsolete options to make the list less imposing. 1318 # This message is too long to be a string in the A/UX 3.1 sh. 1319 cat <<_ACEOF 1320\`configure' configures x11perf 1.6.0 to adapt to many kinds of systems. 1321 1322Usage: $0 [OPTION]... [VAR=VALUE]... 1323 1324To assign environment variables (e.g., CC, CFLAGS...), specify them as 1325VAR=VALUE. See below for descriptions of some of the useful variables. 1326 1327Defaults for the options are specified in brackets. 1328 1329Configuration: 1330 -h, --help display this help and exit 1331 --help=short display options specific to this package 1332 --help=recursive display the short help of all the included packages 1333 -V, --version display version information and exit 1334 -q, --quiet, --silent do not print \`checking ...' messages 1335 --cache-file=FILE cache test results in FILE [disabled] 1336 -C, --config-cache alias for \`--cache-file=config.cache' 1337 -n, --no-create do not create output files 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339 1340Installation directories: 1341 --prefix=PREFIX install architecture-independent files in PREFIX 1342 [$ac_default_prefix] 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344 [PREFIX] 1345 1346By default, \`make install' will install all the files in 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349for instance \`--prefix=\$HOME'. 1350 1351For better control, use the options below. 1352 1353Fine tuning of the installation directories: 1354 --bindir=DIR user executables [EPREFIX/bin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin] 1356 --libexecdir=DIR program executables [EPREFIX/libexec] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --includedir=DIR C header files [PREFIX/include] 1362 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --infodir=DIR info documentation [DATAROOTDIR/info] 1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367 --mandir=DIR man documentation [DATAROOTDIR/man] 1368 --docdir=DIR documentation root [DATAROOTDIR/doc/x11perf] 1369 --htmldir=DIR html documentation [DOCDIR] 1370 --dvidir=DIR dvi documentation [DOCDIR] 1371 --pdfdir=DIR pdf documentation [DOCDIR] 1372 --psdir=DIR ps documentation [DOCDIR] 1373_ACEOF 1374 1375 cat <<\_ACEOF 1376 1377Program names: 1378 --program-prefix=PREFIX prepend PREFIX to installed program names 1379 --program-suffix=SUFFIX append SUFFIX to installed program names 1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381 1382System types: 1383 --build=BUILD configure for building on BUILD [guessed] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of x11perf 1.6.0:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-option-checking ignore unrecognized --enable/--with options 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398 --enable-silent-rules less verbose build output (undo: "make V=1") 1399 --disable-silent-rules verbose build output (undo: "make V=0") 1400 --enable-dependency-tracking 1401 do not reject slow dependency extractors 1402 --disable-dependency-tracking 1403 speeds up one-time build 1404 --disable-selective-werror 1405 Turn off selective compiler errors. (default: 1406 enabled) 1407 --enable-strict-compilation 1408 Enable all warnings from compiler and make them 1409 errors (default: disabled) 1410 1411Some influential environment variables: 1412 CC C compiler command 1413 CFLAGS C compiler flags 1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1415 nonstandard directory <lib dir> 1416 LIBS libraries to pass to the linker, e.g. -l<library> 1417 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1418 you have headers in a nonstandard directory <include dir> 1419 CPP C preprocessor 1420 PKG_CONFIG path to pkg-config utility 1421 X11PERF_CFLAGS 1422 C compiler flags for X11PERF, overriding pkg-config 1423 X11PERF_LIBS 1424 linker flags for X11PERF, overriding pkg-config 1425 XRENDER_CFLAGS 1426 C compiler flags for XRENDER, overriding pkg-config 1427 XRENDER_LIBS 1428 linker flags for XRENDER, overriding pkg-config 1429 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1430 XFT_LIBS linker flags for XFT, overriding pkg-config 1431 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1432 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1433 1434Use these variables to override the choices made by `configure' or to help 1435it to find libraries and programs with nonstandard names/locations. 1436 1437Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1438_ACEOF 1439ac_status=$? 1440fi 1441 1442if test "$ac_init_help" = "recursive"; then 1443 # If there are subdirs, report their specific --help. 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1448 ac_builddir=. 1449 1450case "$ac_dir" in 1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452*) 1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1454 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1456 case $ac_top_builddir_sub in 1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 esac ;; 1460esac 1461ac_abs_top_builddir=$ac_pwd 1462ac_abs_builddir=$ac_pwd$ac_dir_suffix 1463# for backward compatibility: 1464ac_top_builddir=$ac_top_build_prefix 1465 1466case $srcdir in 1467 .) # We are building in place. 1468 ac_srcdir=. 1469 ac_top_srcdir=$ac_top_builddir_sub 1470 ac_abs_top_srcdir=$ac_pwd ;; 1471 [\\/]* | ?:[\\/]* ) # Absolute name. 1472 ac_srcdir=$srcdir$ac_dir_suffix; 1473 ac_top_srcdir=$srcdir 1474 ac_abs_top_srcdir=$srcdir ;; 1475 *) # Relative name. 1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1477 ac_top_srcdir=$ac_top_build_prefix$srcdir 1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1479esac 1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1481 1482 cd "$ac_dir" || { ac_status=$?; continue; } 1483 # Check for guested configure. 1484 if test -f "$ac_srcdir/configure.gnu"; then 1485 echo && 1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 elif test -f "$ac_srcdir/configure"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure" --help=recursive 1490 else 1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 fi || ac_status=$? 1493 cd "$ac_pwd" || { ac_status=$?; break; } 1494 done 1495fi 1496 1497test -n "$ac_init_help" && exit $ac_status 1498if $ac_init_version; then 1499 cat <<\_ACEOF 1500x11perf configure 1.6.0 1501generated by GNU Autoconf 2.69 1502 1503Copyright (C) 2012 Free Software Foundation, Inc. 1504This configure script is free software; the Free Software Foundation 1505gives unlimited permission to copy, distribute and modify it. 1506_ACEOF 1507 exit 1508fi 1509 1510## ------------------------ ## 1511## Autoconf initialization. ## 1512## ------------------------ ## 1513 1514# ac_fn_c_try_compile LINENO 1515# -------------------------- 1516# Try to compile conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_compile () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 rm -f conftest.$ac_objext 1521 if { { ac_try="$ac_compile" 1522case "(($ac_try" in 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1524 *) ac_try_echo=$ac_try;; 1525esac 1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1527$as_echo "$ac_try_echo"; } >&5 1528 (eval "$ac_compile") 2>conftest.err 1529 ac_status=$? 1530 if test -s conftest.err; then 1531 grep -v '^ *+' conftest.err >conftest.er1 1532 cat conftest.er1 >&5 1533 mv -f conftest.er1 conftest.err 1534 fi 1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1536 test $ac_status = 0; } && { 1537 test -z "$ac_c_werror_flag" || 1538 test ! -s conftest.err 1539 } && test -s conftest.$ac_objext; then : 1540 ac_retval=0 1541else 1542 $as_echo "$as_me: failed program was:" >&5 1543sed 's/^/| /' conftest.$ac_ext >&5 1544 1545 ac_retval=1 1546fi 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 as_fn_set_status $ac_retval 1549 1550} # ac_fn_c_try_compile 1551 1552# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1553# --------------------------------------------- 1554# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1555# accordingly. 1556ac_fn_c_check_decl () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 as_decl_name=`echo $2|sed 's/ *(.*//'` 1560 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1562$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1563if eval \${$3+:} false; then : 1564 $as_echo_n "(cached) " >&6 1565else 1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1567/* end confdefs.h. */ 1568$4 1569int 1570main () 1571{ 1572#ifndef $as_decl_name 1573#ifdef __cplusplus 1574 (void) $as_decl_use; 1575#else 1576 (void) $as_decl_name; 1577#endif 1578#endif 1579 1580 ; 1581 return 0; 1582} 1583_ACEOF 1584if ac_fn_c_try_compile "$LINENO"; then : 1585 eval "$3=yes" 1586else 1587 eval "$3=no" 1588fi 1589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1590fi 1591eval ac_res=\$$3 1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1593$as_echo "$ac_res" >&6; } 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 1596} # ac_fn_c_check_decl 1597 1598# ac_fn_c_try_cpp LINENO 1599# ---------------------- 1600# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1601ac_fn_c_try_cpp () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 if { { ac_try="$ac_cpp conftest.$ac_ext" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610$as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } > conftest.i && { 1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 }; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_cpp 1634 1635# ac_fn_c_try_run LINENO 1636# ---------------------- 1637# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1638# that executables *can* be run. 1639ac_fn_c_try_run () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 if { { ac_try="$ac_link" 1643case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646esac 1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648$as_echo "$ac_try_echo"; } >&5 1649 (eval "$ac_link") 2>&5 1650 ac_status=$? 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1653 { { case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_try") 2>&5 1660 ac_status=$? 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; }; }; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: program exited with status $ac_status" >&5 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=$ac_status 1670fi 1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_run 1676 1677# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1678# ------------------------------------------------------- 1679# Tests whether HEADER exists and can be compiled using the include files in 1680# INCLUDES, setting the cache variable VAR accordingly. 1681ac_fn_c_check_header_compile () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if eval \${$3+:} false; then : 1687 $as_echo_n "(cached) " >&6 1688else 1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690/* end confdefs.h. */ 1691$4 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_compile "$LINENO"; then : 1695 eval "$3=yes" 1696else 1697 eval "$3=no" 1698fi 1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1700fi 1701eval ac_res=\$$3 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1703$as_echo "$ac_res" >&6; } 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 1706} # ac_fn_c_check_header_compile 1707 1708# ac_fn_c_try_link LINENO 1709# ----------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_link () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest$ac_exeext 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest$ac_exeext && { 1734 test "$cross_compiling" = yes || 1735 test -x conftest$ac_exeext 1736 }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1746 # interfere with the next link command; also delete a directory that is 1747 # left behind by Apple's compiler. We do this before executing the actions. 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_link 1753 1754# ac_fn_c_check_func LINENO FUNC VAR 1755# ---------------------------------- 1756# Tests whether FUNC exists, setting the cache variable VAR accordingly 1757ac_fn_c_check_func () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1761$as_echo_n "checking for $2... " >&6; } 1762if eval \${$3+:} false; then : 1763 $as_echo_n "(cached) " >&6 1764else 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1769#define $2 innocuous_$2 1770 1771/* System header to define __stub macros and hopefully few prototypes, 1772 which can conflict with char $2 (); below. 1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1774 <limits.h> exists even on freestanding compilers. */ 1775 1776#ifdef __STDC__ 1777# include <limits.h> 1778#else 1779# include <assert.h> 1780#endif 1781 1782#undef $2 1783 1784/* Override any GCC internal prototype to avoid an error. 1785 Use char because int might match the return type of a GCC 1786 builtin and then its argument prototype would still apply. */ 1787#ifdef __cplusplus 1788extern "C" 1789#endif 1790char $2 (); 1791/* The GNU C library defines this for functions which it implements 1792 to always fail with ENOSYS. Some functions are actually named 1793 something starting with __ and the normal name is an alias. */ 1794#if defined __stub_$2 || defined __stub___$2 1795choke me 1796#endif 1797 1798int 1799main () 1800{ 1801return $2 (); 1802 ; 1803 return 0; 1804} 1805_ACEOF 1806if ac_fn_c_try_link "$LINENO"; then : 1807 eval "$3=yes" 1808else 1809 eval "$3=no" 1810fi 1811rm -f core conftest.err conftest.$ac_objext \ 1812 conftest$ac_exeext conftest.$ac_ext 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_func 1820cat >config.log <<_ACEOF 1821This file contains any messages produced by compilers while 1822running configure, to aid debugging if configure makes a mistake. 1823 1824It was created by x11perf $as_me 1.6.0, which was 1825generated by GNU Autoconf 2.69. Invocation command line was 1826 1827 $ $0 $@ 1828 1829_ACEOF 1830exec 5>>config.log 1831{ 1832cat <<_ASUNAME 1833## --------- ## 1834## Platform. ## 1835## --------- ## 1836 1837hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1838uname -m = `(uname -m) 2>/dev/null || echo unknown` 1839uname -r = `(uname -r) 2>/dev/null || echo unknown` 1840uname -s = `(uname -s) 2>/dev/null || echo unknown` 1841uname -v = `(uname -v) 2>/dev/null || echo unknown` 1842 1843/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1844/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1845 1846/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1847/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1848/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1849/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1850/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1851/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1852/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1853 1854_ASUNAME 1855 1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1857for as_dir in $PATH 1858do 1859 IFS=$as_save_IFS 1860 test -z "$as_dir" && as_dir=. 1861 $as_echo "PATH: $as_dir" 1862 done 1863IFS=$as_save_IFS 1864 1865} >&5 1866 1867cat >&5 <<_ACEOF 1868 1869 1870## ----------- ## 1871## Core tests. ## 1872## ----------- ## 1873 1874_ACEOF 1875 1876 1877# Keep a trace of the command line. 1878# Strip out --no-create and --no-recursion so they do not pile up. 1879# Strip out --silent because we don't want to record it for future runs. 1880# Also quote any args containing shell meta-characters. 1881# Make two passes to allow for proper duplicate-argument suppression. 1882ac_configure_args= 1883ac_configure_args0= 1884ac_configure_args1= 1885ac_must_keep_next=false 1886for ac_pass in 1 2 1887do 1888 for ac_arg 1889 do 1890 case $ac_arg in 1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893 | -silent | --silent | --silen | --sile | --sil) 1894 continue ;; 1895 *\'*) 1896 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 esac 1898 case $ac_pass in 1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900 2) 1901 as_fn_append ac_configure_args1 " '$ac_arg'" 1902 if test $ac_must_keep_next = true; then 1903 ac_must_keep_next=false # Got value, back to normal. 1904 else 1905 case $ac_arg in 1906 *=* | --config-cache | -C | -disable-* | --disable-* \ 1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909 | -with-* | --with-* | -without-* | --without-* | --x) 1910 case "$ac_configure_args0 " in 1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912 esac 1913 ;; 1914 -* ) ac_must_keep_next=true ;; 1915 esac 1916 fi 1917 as_fn_append ac_configure_args " '$ac_arg'" 1918 ;; 1919 esac 1920 done 1921done 1922{ ac_configure_args0=; unset ac_configure_args0;} 1923{ ac_configure_args1=; unset ac_configure_args1;} 1924 1925# When interrupted or exit'd, cleanup temporary files, and complete 1926# config.log. We remove comments because anyway the quotes in there 1927# would cause problems or look ugly. 1928# WARNING: Use '\'' to represent an apostrophe within the trap. 1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930trap 'exit_status=$? 1931 # Save into config.log some information that might help in debugging. 1932 { 1933 echo 1934 1935 $as_echo "## ---------------- ## 1936## Cache variables. ## 1937## ---------------- ##" 1938 echo 1939 # The following way of writing the cache mishandles newlines in values, 1940( 1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1942 eval ac_val=\$$ac_var 1943 case $ac_val in #( 1944 *${as_nl}*) 1945 case $ac_var in #( 1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1948 esac 1949 case $ac_var in #( 1950 _ | IFS | as_nl) ;; #( 1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1952 *) { eval $ac_var=; unset $ac_var;} ;; 1953 esac ;; 1954 esac 1955 done 1956 (set) 2>&1 | 1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1958 *${as_nl}ac_space=\ *) 1959 sed -n \ 1960 "s/'\''/'\''\\\\'\'''\''/g; 1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1962 ;; #( 1963 *) 1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1965 ;; 1966 esac | 1967 sort 1968) 1969 echo 1970 1971 $as_echo "## ----------------- ## 1972## Output variables. ## 1973## ----------------- ##" 1974 echo 1975 for ac_var in $ac_subst_vars 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 1985 if test -n "$ac_subst_files"; then 1986 $as_echo "## ------------------- ## 1987## File substitutions. ## 1988## ------------------- ##" 1989 echo 1990 for ac_var in $ac_subst_files 1991 do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in 1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995 esac 1996 $as_echo "$ac_var='\''$ac_val'\''" 1997 done | sort 1998 echo 1999 fi 2000 2001 if test -s confdefs.h; then 2002 $as_echo "## ----------- ## 2003## confdefs.h. ## 2004## ----------- ##" 2005 echo 2006 cat confdefs.h 2007 echo 2008 fi 2009 test "$ac_signal" != 0 && 2010 $as_echo "$as_me: caught signal $ac_signal" 2011 $as_echo "$as_me: exit $exit_status" 2012 } >&5 2013 rm -f core *.core core.conftest.* && 2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015 exit $exit_status 2016' 0 2017for ac_signal in 1 2 13 15; do 2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2019done 2020ac_signal=0 2021 2022# confdefs.h avoids OS command line length limits that DEFS can exceed. 2023rm -f -r conftest* confdefs.h 2024 2025$as_echo "/* confdefs.h */" > confdefs.h 2026 2027# Predefined preprocessor variables. 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_NAME "$PACKAGE_NAME" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2035_ACEOF 2036 2037cat >>confdefs.h <<_ACEOF 2038#define PACKAGE_VERSION "$PACKAGE_VERSION" 2039_ACEOF 2040 2041cat >>confdefs.h <<_ACEOF 2042#define PACKAGE_STRING "$PACKAGE_STRING" 2043_ACEOF 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_URL "$PACKAGE_URL" 2051_ACEOF 2052 2053 2054# Let the site file select an alternate cache file if it wants to. 2055# Prefer an explicitly selected file to automatically selected ones. 2056ac_site_file1=NONE 2057ac_site_file2=NONE 2058if test -n "$CONFIG_SITE"; then 2059 # We do not want a PATH search for config.site. 2060 case $CONFIG_SITE in #(( 2061 -*) ac_site_file1=./$CONFIG_SITE;; 2062 */*) ac_site_file1=$CONFIG_SITE;; 2063 *) ac_site_file1=./$CONFIG_SITE;; 2064 esac 2065elif test "x$prefix" != xNONE; then 2066 ac_site_file1=$prefix/share/config.site 2067 ac_site_file2=$prefix/etc/config.site 2068else 2069 ac_site_file1=$ac_default_prefix/share/config.site 2070 ac_site_file2=$ac_default_prefix/etc/config.site 2071fi 2072for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2073do 2074 test "x$ac_site_file" = xNONE && continue 2075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2077$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2078 sed 's/^/| /' "$ac_site_file" >&5 2079 . "$ac_site_file" \ 2080 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2082as_fn_error $? "failed to load site script $ac_site_file 2083See \`config.log' for more details" "$LINENO" 5; } 2084 fi 2085done 2086 2087if test -r "$cache_file"; then 2088 # Some versions of bash will fail to source /dev/null (special files 2089 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2090 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2092$as_echo "$as_me: loading cache $cache_file" >&6;} 2093 case $cache_file in 2094 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2095 *) . "./$cache_file";; 2096 esac 2097 fi 2098else 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2100$as_echo "$as_me: creating cache $cache_file" >&6;} 2101 >$cache_file 2102fi 2103 2104# Check that the precious variables saved in the cache have kept the same 2105# value. 2106ac_cache_corrupted=false 2107for ac_var in $ac_precious_vars; do 2108 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2109 eval ac_new_set=\$ac_env_${ac_var}_set 2110 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2111 eval ac_new_val=\$ac_env_${ac_var}_value 2112 case $ac_old_set,$ac_new_set in 2113 set,) 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2115$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2116 ac_cache_corrupted=: ;; 2117 ,set) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2119$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2120 ac_cache_corrupted=: ;; 2121 ,);; 2122 *) 2123 if test "x$ac_old_val" != "x$ac_new_val"; then 2124 # differences in whitespace do not lead to failure. 2125 ac_old_val_w=`echo x $ac_old_val` 2126 ac_new_val_w=`echo x $ac_new_val` 2127 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2129$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2130 ac_cache_corrupted=: 2131 else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2133$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2134 eval $ac_var=\$ac_old_val 2135 fi 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2137$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2139$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2140 fi;; 2141 esac 2142 # Pass precious variables to config.status. 2143 if test "$ac_new_set" = set; then 2144 case $ac_new_val in 2145 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2146 *) ac_arg=$ac_var=$ac_new_val ;; 2147 esac 2148 case " $ac_configure_args " in 2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2150 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2151 esac 2152 fi 2153done 2154if $ac_cache_corrupted; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2158$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2159 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2160fi 2161## -------------------- ## 2162## Main body of script. ## 2163## -------------------- ## 2164 2165ac_ext=c 2166ac_cpp='$CPP $CPPFLAGS' 2167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2169ac_compiler_gnu=$ac_cv_c_compiler_gnu 2170 2171 2172 2173ac_config_headers="$ac_config_headers config.h" 2174 2175 2176# Initialize Automake 2177am__api_version='1.15' 2178 2179ac_aux_dir= 2180for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2181 if test -f "$ac_dir/install-sh"; then 2182 ac_aux_dir=$ac_dir 2183 ac_install_sh="$ac_aux_dir/install-sh -c" 2184 break 2185 elif test -f "$ac_dir/install.sh"; then 2186 ac_aux_dir=$ac_dir 2187 ac_install_sh="$ac_aux_dir/install.sh -c" 2188 break 2189 elif test -f "$ac_dir/shtool"; then 2190 ac_aux_dir=$ac_dir 2191 ac_install_sh="$ac_aux_dir/shtool install -c" 2192 break 2193 fi 2194done 2195if test -z "$ac_aux_dir"; then 2196 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2197fi 2198 2199# These three variables are undocumented and unsupported, 2200# and are intended to be withdrawn in a future Autoconf release. 2201# They can cause serious problems if a builder's source tree is in a directory 2202# whose full name contains unusual characters. 2203ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2204ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2205ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2206 2207 2208# Find a good install program. We prefer a C program (faster), 2209# so one script is as good as another. But avoid the broken or 2210# incompatible versions: 2211# SysV /etc/install, /usr/sbin/install 2212# SunOS /usr/etc/install 2213# IRIX /sbin/install 2214# AIX /bin/install 2215# AmigaOS /C/install, which installs bootblocks on floppy discs 2216# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2217# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2218# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2219# OS/2's system install, which has a completely different semantic 2220# ./install, which can be erroneously created by make from ./install.sh. 2221# Reject install programs that cannot install multiple files. 2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2223$as_echo_n "checking for a BSD-compatible install... " >&6; } 2224if test -z "$INSTALL"; then 2225if ${ac_cv_path_install+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227else 2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 # Account for people who put trailing slashes in PATH elements. 2234case $as_dir/ in #(( 2235 ./ | .// | /[cC]/* | \ 2236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2238 /usr/ucb/* ) ;; 2239 *) 2240 # OSF1 and SCO ODT 3.0 have their own names for install. 2241 # Don't use installbsd from OSF since it installs stuff as root 2242 # by default. 2243 for ac_prog in ginstall scoinst install; do 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2246 if test $ac_prog = install && 2247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2248 # AIX install. It has an incompatible calling convention. 2249 : 2250 elif test $ac_prog = install && 2251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2252 # program-specific install script used by HP pwplus--don't use. 2253 : 2254 else 2255 rm -rf conftest.one conftest.two conftest.dir 2256 echo one > conftest.one 2257 echo two > conftest.two 2258 mkdir conftest.dir 2259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2260 test -s conftest.one && test -s conftest.two && 2261 test -s conftest.dir/conftest.one && 2262 test -s conftest.dir/conftest.two 2263 then 2264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2265 break 3 2266 fi 2267 fi 2268 fi 2269 done 2270 done 2271 ;; 2272esac 2273 2274 done 2275IFS=$as_save_IFS 2276 2277rm -rf conftest.one conftest.two conftest.dir 2278 2279fi 2280 if test "${ac_cv_path_install+set}" = set; then 2281 INSTALL=$ac_cv_path_install 2282 else 2283 # As a last resort, use the slow shell script. Don't cache a 2284 # value for INSTALL within a source directory, because that will 2285 # break other packages using the cache if that directory is 2286 # removed, or if the value is a relative name. 2287 INSTALL=$ac_install_sh 2288 fi 2289fi 2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2291$as_echo "$INSTALL" >&6; } 2292 2293# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2294# It thinks the first close brace ends the variable substitution. 2295test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2296 2297test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2298 2299test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2300 2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2302$as_echo_n "checking whether build environment is sane... " >&6; } 2303# Reject unsafe characters in $srcdir or the absolute working directory 2304# name. Accept space and tab only in the latter. 2305am_lf=' 2306' 2307case `pwd` in 2308 *[\\\"\#\$\&\'\`$am_lf]*) 2309 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2310esac 2311case $srcdir in 2312 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2314esac 2315 2316# Do 'set' in a subshell so we don't clobber the current shell's 2317# arguments. Must try -L first in case configure is actually a 2318# symlink; some systems play weird games with the mod time of symlinks 2319# (eg FreeBSD returns the mod time of the symlink's containing 2320# directory). 2321if ( 2322 am_has_slept=no 2323 for am_try in 1 2; do 2324 echo "timestamp, slept: $am_has_slept" > conftest.file 2325 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2326 if test "$*" = "X"; then 2327 # -L didn't work. 2328 set X `ls -t "$srcdir/configure" conftest.file` 2329 fi 2330 if test "$*" != "X $srcdir/configure conftest.file" \ 2331 && test "$*" != "X conftest.file $srcdir/configure"; then 2332 2333 # If neither matched, then we have a broken ls. This can happen 2334 # if, for instance, CONFIG_SHELL is bash and it inherits a 2335 # broken ls alias from the environment. This has actually 2336 # happened. Such a system could not be considered "sane". 2337 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2338 alias in your environment" "$LINENO" 5 2339 fi 2340 if test "$2" = conftest.file || test $am_try -eq 2; then 2341 break 2342 fi 2343 # Just in case. 2344 sleep 1 2345 am_has_slept=yes 2346 done 2347 test "$2" = conftest.file 2348 ) 2349then 2350 # Ok. 2351 : 2352else 2353 as_fn_error $? "newly created file is older than distributed files! 2354Check your system clock" "$LINENO" 5 2355fi 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2357$as_echo "yes" >&6; } 2358# If we didn't sleep, we still need to ensure time stamps of config.status and 2359# generated files are strictly newer. 2360am_sleep_pid= 2361if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2362 ( sleep 1 ) & 2363 am_sleep_pid=$! 2364fi 2365 2366rm -f conftest.file 2367 2368test "$program_prefix" != NONE && 2369 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2370# Use a double $ so make ignores it. 2371test "$program_suffix" != NONE && 2372 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2373# Double any \ or $. 2374# By default was `s,x,x', remove it if useless. 2375ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2376program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2377 2378# Expand $ac_aux_dir to an absolute path. 2379am_aux_dir=`cd "$ac_aux_dir" && pwd` 2380 2381if test x"${MISSING+set}" != xset; then 2382 case $am_aux_dir in 2383 *\ * | *\ *) 2384 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2385 *) 2386 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2387 esac 2388fi 2389# Use eval to expand $SHELL 2390if eval "$MISSING --is-lightweight"; then 2391 am_missing_run="$MISSING " 2392else 2393 am_missing_run= 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2395$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2396fi 2397 2398if test x"${install_sh+set}" != xset; then 2399 case $am_aux_dir in 2400 *\ * | *\ *) 2401 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2402 *) 2403 install_sh="\${SHELL} $am_aux_dir/install-sh" 2404 esac 2405fi 2406 2407# Installed binaries are usually stripped using 'strip' when the user 2408# run "make install-strip". However 'strip' might not be the right 2409# tool to use in cross-compilation environments, therefore Automake 2410# will honor the 'STRIP' environment variable to overrule this program. 2411if test "$cross_compiling" != no; then 2412 if test -n "$ac_tool_prefix"; then 2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2414set dummy ${ac_tool_prefix}strip; ac_word=$2 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2416$as_echo_n "checking for $ac_word... " >&6; } 2417if ${ac_cv_prog_STRIP+:} false; then : 2418 $as_echo_n "(cached) " >&6 2419else 2420 if test -n "$STRIP"; then 2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2422else 2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2432 break 2 2433 fi 2434done 2435 done 2436IFS=$as_save_IFS 2437 2438fi 2439fi 2440STRIP=$ac_cv_prog_STRIP 2441if test -n "$STRIP"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2443$as_echo "$STRIP" >&6; } 2444else 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2446$as_echo "no" >&6; } 2447fi 2448 2449 2450fi 2451if test -z "$ac_cv_prog_STRIP"; then 2452 ac_ct_STRIP=$STRIP 2453 # Extract the first word of "strip", so it can be a program name with args. 2454set dummy strip; ac_word=$2 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$ac_ct_STRIP"; then 2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2470 ac_cv_prog_ac_ct_STRIP="strip" 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475 done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2481if test -n "$ac_ct_STRIP"; then 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2483$as_echo "$ac_ct_STRIP" >&6; } 2484else 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 if test "x$ac_ct_STRIP" = x; then 2490 STRIP=":" 2491 else 2492 case $cross_compiling:$ac_tool_warned in 2493yes:) 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 STRIP=$ac_ct_STRIP 2499 fi 2500else 2501 STRIP="$ac_cv_prog_STRIP" 2502fi 2503 2504fi 2505INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2506 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2508$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2509if test -z "$MKDIR_P"; then 2510 if ${ac_cv_path_mkdir+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_prog in mkdir gmkdir; do 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2521 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2522 'mkdir (GNU coreutils) '* | \ 2523 'mkdir (coreutils) '* | \ 2524 'mkdir (fileutils) '4.1*) 2525 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2526 break 3;; 2527 esac 2528 done 2529 done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534 2535 test -d ./--version && rmdir ./--version 2536 if test "${ac_cv_path_mkdir+set}" = set; then 2537 MKDIR_P="$ac_cv_path_mkdir -p" 2538 else 2539 # As a last resort, use the slow shell script. Don't cache a 2540 # value for MKDIR_P within a source directory, because that will 2541 # break other packages using the cache if that directory is 2542 # removed, or if the value is a relative name. 2543 MKDIR_P="$ac_install_sh -d" 2544 fi 2545fi 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2547$as_echo "$MKDIR_P" >&6; } 2548 2549for ac_prog in gawk mawk nawk awk 2550do 2551 # Extract the first word of "$ac_prog", so it can be a program name with args. 2552set dummy $ac_prog; ac_word=$2 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554$as_echo_n "checking for $ac_word... " >&6; } 2555if ${ac_cv_prog_AWK+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test -n "$AWK"; then 2559 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2560else 2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2568 ac_cv_prog_AWK="$ac_prog" 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573 done 2574IFS=$as_save_IFS 2575 2576fi 2577fi 2578AWK=$ac_cv_prog_AWK 2579if test -n "$AWK"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2581$as_echo "$AWK" >&6; } 2582else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2584$as_echo "no" >&6; } 2585fi 2586 2587 2588 test -n "$AWK" && break 2589done 2590 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2592$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2593set x ${MAKE-make} 2594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2595if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 cat >conftest.make <<\_ACEOF 2599SHELL = /bin/sh 2600all: 2601 @echo '@@@%%%=$(MAKE)=@@@%%%' 2602_ACEOF 2603# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2604case `${MAKE-make} -f conftest.make 2>/dev/null` in 2605 *@@@%%%=?*=@@@%%%*) 2606 eval ac_cv_prog_make_${ac_make}_set=yes;; 2607 *) 2608 eval ac_cv_prog_make_${ac_make}_set=no;; 2609esac 2610rm -f conftest.make 2611fi 2612if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2614$as_echo "yes" >&6; } 2615 SET_MAKE= 2616else 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2618$as_echo "no" >&6; } 2619 SET_MAKE="MAKE=${MAKE-make}" 2620fi 2621 2622rm -rf .tst 2>/dev/null 2623mkdir .tst 2>/dev/null 2624if test -d .tst; then 2625 am__leading_dot=. 2626else 2627 am__leading_dot=_ 2628fi 2629rmdir .tst 2>/dev/null 2630 2631# Check whether --enable-silent-rules was given. 2632if test "${enable_silent_rules+set}" = set; then : 2633 enableval=$enable_silent_rules; 2634fi 2635 2636case $enable_silent_rules in # ((( 2637 yes) AM_DEFAULT_VERBOSITY=0;; 2638 no) AM_DEFAULT_VERBOSITY=1;; 2639 *) AM_DEFAULT_VERBOSITY=1;; 2640esac 2641am_make=${MAKE-make} 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2643$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2644if ${am_cv_make_support_nested_variables+:} false; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 if $as_echo 'TRUE=$(BAR$(V)) 2648BAR0=false 2649BAR1=true 2650V=1 2651am__doit: 2652 @$(TRUE) 2653.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2654 am_cv_make_support_nested_variables=yes 2655else 2656 am_cv_make_support_nested_variables=no 2657fi 2658fi 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2660$as_echo "$am_cv_make_support_nested_variables" >&6; } 2661if test $am_cv_make_support_nested_variables = yes; then 2662 AM_V='$(V)' 2663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2664else 2665 AM_V=$AM_DEFAULT_VERBOSITY 2666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2667fi 2668AM_BACKSLASH='\' 2669 2670if test "`cd $srcdir && pwd`" != "`pwd`"; then 2671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2672 # is not polluted with repeated "-I." 2673 am__isrc=' -I$(srcdir)' 2674 # test to see if srcdir already configured 2675 if test -f $srcdir/config.status; then 2676 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2677 fi 2678fi 2679 2680# test whether we have cygpath 2681if test -z "$CYGPATH_W"; then 2682 if (cygpath --version) >/dev/null 2>/dev/null; then 2683 CYGPATH_W='cygpath -w' 2684 else 2685 CYGPATH_W=echo 2686 fi 2687fi 2688 2689 2690# Define the identity of the package. 2691 PACKAGE='x11perf' 2692 VERSION='1.6.0' 2693 2694 2695cat >>confdefs.h <<_ACEOF 2696#define PACKAGE "$PACKAGE" 2697_ACEOF 2698 2699 2700cat >>confdefs.h <<_ACEOF 2701#define VERSION "$VERSION" 2702_ACEOF 2703 2704# Some tools Automake needs. 2705 2706ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2707 2708 2709AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2710 2711 2712AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2713 2714 2715AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2716 2717 2718MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2719 2720# For better backward compatibility. To be removed once Automake 1.9.x 2721# dies out for good. For more background, see: 2722# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2723# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2724mkdir_p='$(MKDIR_P)' 2725 2726# We need awk for the "check" target (and possibly the TAP driver). The 2727# system "awk" is bad on some platforms. 2728# Always define AMTAR for backward compatibility. Yes, it's still used 2729# in the wild :-( We should find a proper way to deprecate it ... 2730AMTAR='$${TAR-tar}' 2731 2732 2733# We'll loop over all known methods to create a tar archive until one works. 2734_am_tools='gnutar pax cpio none' 2735 2736am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2737 2738 2739 2740 2741 2742 2743# POSIX will say in a future version that running "rm -f" with no argument 2744# is OK; and we want to be able to make that assumption in our Makefile 2745# recipes. So use an aggressive probe to check that the usage we want is 2746# actually supported "in the wild" to an acceptable degree. 2747# See automake bug#10828. 2748# To make any issue more visible, cause the running configure to be aborted 2749# by default if the 'rm' program in use doesn't match our expectations; the 2750# user can still override this though. 2751if rm -f && rm -fr && rm -rf; then : OK; else 2752 cat >&2 <<'END' 2753Oops! 2754 2755Your 'rm' program seems unable to run without file operands specified 2756on the command line, even when the '-f' option is present. This is contrary 2757to the behaviour of most rm programs out there, and not conforming with 2758the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2759 2760Please tell bug-automake@gnu.org about your system, including the value 2761of your $PATH and any error possibly output before this message. This 2762can help us improve future automake versions. 2763 2764END 2765 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2766 echo 'Configuration will proceed anyway, since you have set the' >&2 2767 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2768 echo >&2 2769 else 2770 cat >&2 <<'END' 2771Aborting the configuration process, to ensure you take notice of the issue. 2772 2773You can download and install GNU coreutils to get an 'rm' implementation 2774that behaves properly: <http://www.gnu.org/software/coreutils/>. 2775 2776If you want to complete the configuration process using your problematic 2777'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2778to "yes", and re-run configure. 2779 2780END 2781 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2782 fi 2783fi 2784 2785 2786# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798DEPDIR="${am__leading_dot}deps" 2799 2800ac_config_commands="$ac_config_commands depfiles" 2801 2802 2803am_make=${MAKE-make} 2804cat > confinc << 'END' 2805am__doit: 2806 @echo this is the am__doit target 2807.PHONY: am__doit 2808END 2809# If we don't find an include directive, just comment out the code. 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2811$as_echo_n "checking for style of include used by $am_make... " >&6; } 2812am__include="#" 2813am__quote= 2814_am_result=none 2815# First try GNU make style include. 2816echo "include confinc" > confmf 2817# Ignore all kinds of additional output from 'make'. 2818case `$am_make -s -f confmf 2> /dev/null` in #( 2819*the\ am__doit\ target*) 2820 am__include=include 2821 am__quote= 2822 _am_result=GNU 2823 ;; 2824esac 2825# Now try BSD make style include. 2826if test "$am__include" = "#"; then 2827 echo '.include "confinc"' > confmf 2828 case `$am_make -s -f confmf 2> /dev/null` in #( 2829 *the\ am__doit\ target*) 2830 am__include=.include 2831 am__quote="\"" 2832 _am_result=BSD 2833 ;; 2834 esac 2835fi 2836 2837 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2839$as_echo "$_am_result" >&6; } 2840rm -f confinc confmf 2841 2842# Check whether --enable-dependency-tracking was given. 2843if test "${enable_dependency_tracking+set}" = set; then : 2844 enableval=$enable_dependency_tracking; 2845fi 2846 2847if test "x$enable_dependency_tracking" != xno; then 2848 am_depcomp="$ac_aux_dir/depcomp" 2849 AMDEPBACKSLASH='\' 2850 am__nodep='_no' 2851fi 2852 if test "x$enable_dependency_tracking" != xno; then 2853 AMDEP_TRUE= 2854 AMDEP_FALSE='#' 2855else 2856 AMDEP_TRUE='#' 2857 AMDEP_FALSE= 2858fi 2859 2860 2861ac_ext=c 2862ac_cpp='$CPP $CPPFLAGS' 2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2865ac_compiler_gnu=$ac_cv_c_compiler_gnu 2866if test -n "$ac_tool_prefix"; then 2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2868set dummy ${ac_tool_prefix}gcc; ac_word=$2 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870$as_echo_n "checking for $ac_word... " >&6; } 2871if ${ac_cv_prog_CC+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876else 2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2897$as_echo "$CC" >&6; } 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900$as_echo "no" >&6; } 2901fi 2902 2903 2904fi 2905if test -z "$ac_cv_prog_CC"; then 2906 ac_ct_CC=$CC 2907 # Extract the first word of "gcc", so it can be a program name with args. 2908set dummy gcc; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if ${ac_cv_prog_ac_ct_CC+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$ac_ct_CC"; then 2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_ac_ct_CC="gcc" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934ac_ct_CC=$ac_cv_prog_ac_ct_CC 2935if test -n "$ac_ct_CC"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2937$as_echo "$ac_ct_CC" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 if test "x$ac_ct_CC" = x; then 2944 CC="" 2945 else 2946 case $cross_compiling:$ac_tool_warned in 2947yes:) 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2950ac_tool_warned=yes ;; 2951esac 2952 CC=$ac_ct_CC 2953 fi 2954else 2955 CC="$ac_cv_prog_CC" 2956fi 2957 2958if test -z "$CC"; then 2959 if test -n "$ac_tool_prefix"; then 2960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2961set dummy ${ac_tool_prefix}cc; ac_word=$2 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2963$as_echo_n "checking for $ac_word... " >&6; } 2964if ${ac_cv_prog_CC+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 if test -n "$CC"; then 2968 ac_cv_prog_CC="$CC" # Let the user override the test. 2969else 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2977 ac_cv_prog_CC="${ac_tool_prefix}cc" 2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982 done 2983IFS=$as_save_IFS 2984 2985fi 2986fi 2987CC=$ac_cv_prog_CC 2988if test -n "$CC"; then 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2990$as_echo "$CC" >&6; } 2991else 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2993$as_echo "no" >&6; } 2994fi 2995 2996 2997 fi 2998fi 2999if test -z "$CC"; then 3000 # Extract the first word of "cc", so it can be a program name with args. 3001set dummy cc; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_CC+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$CC"; then 3008 ac_cv_prog_CC="$CC" # Let the user override the test. 3009else 3010 ac_prog_rejected=no 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3019 ac_prog_rejected=yes 3020 continue 3021 fi 3022 ac_cv_prog_CC="cc" 3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3024 break 2 3025 fi 3026done 3027 done 3028IFS=$as_save_IFS 3029 3030if test $ac_prog_rejected = yes; then 3031 # We found a bogon in the path, so make sure we never use it. 3032 set dummy $ac_cv_prog_CC 3033 shift 3034 if test $# != 0; then 3035 # We chose a different compiler from the bogus one. 3036 # However, it has the same basename, so the bogon will be chosen 3037 # first if we set CC to just the basename; use the full file name. 3038 shift 3039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3040 fi 3041fi 3042fi 3043fi 3044CC=$ac_cv_prog_CC 3045if test -n "$CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3047$as_echo "$CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054fi 3055if test -z "$CC"; then 3056 if test -n "$ac_tool_prefix"; then 3057 for ac_prog in cl.exe 3058 do 3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096 test -n "$CC" && break 3097 done 3098fi 3099if test -z "$CC"; then 3100 ac_ct_CC=$CC 3101 for ac_prog in cl.exe 3102do 3103 # Extract the first word of "$ac_prog", so it can be a program name with args. 3104set dummy $ac_prog; ac_word=$2 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106$as_echo_n "checking for $ac_word... " >&6; } 3107if ${ac_cv_prog_ac_ct_CC+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 if test -n "$ac_ct_CC"; then 3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3112else 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 test -z "$as_dir" && as_dir=. 3118 for ac_exec_ext in '' $ac_executable_extensions; do 3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3120 ac_cv_prog_ac_ct_CC="$ac_prog" 3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3122 break 2 3123 fi 3124done 3125 done 3126IFS=$as_save_IFS 3127 3128fi 3129fi 3130ac_ct_CC=$ac_cv_prog_ac_ct_CC 3131if test -n "$ac_ct_CC"; then 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3133$as_echo "$ac_ct_CC" >&6; } 3134else 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137fi 3138 3139 3140 test -n "$ac_ct_CC" && break 3141done 3142 3143 if test "x$ac_ct_CC" = x; then 3144 CC="" 3145 else 3146 case $cross_compiling:$ac_tool_warned in 3147yes:) 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3150ac_tool_warned=yes ;; 3151esac 3152 CC=$ac_ct_CC 3153 fi 3154fi 3155 3156fi 3157 3158 3159test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161as_fn_error $? "no acceptable C compiler found in \$PATH 3162See \`config.log' for more details" "$LINENO" 5; } 3163 3164# Provide some information about the compiler. 3165$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3166set X $ac_compile 3167ac_compiler=$2 3168for ac_option in --version -v -V -qversion; do 3169 { { ac_try="$ac_compiler $ac_option >&5" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3175$as_echo "$ac_try_echo"; } >&5 3176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3177 ac_status=$? 3178 if test -s conftest.err; then 3179 sed '10a\ 3180... rest of stderr output deleted ... 3181 10q' conftest.err >conftest.er1 3182 cat conftest.er1 >&5 3183 fi 3184 rm -f conftest.er1 conftest.err 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; } 3187done 3188 3189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200ac_clean_files_save=$ac_clean_files 3201ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3202# Try to create an executable without -o first, disregard a.out. 3203# It will help us diagnose broken compilers, and finding out an intuition 3204# of exeext. 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3206$as_echo_n "checking whether the C compiler works... " >&6; } 3207ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3208 3209# The possible output files: 3210ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3211 3212ac_rmfiles= 3213for ac_file in $ac_files 3214do 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3217 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3218 esac 3219done 3220rm -f $ac_rmfiles 3221 3222if { { ac_try="$ac_link_default" 3223case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226esac 3227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3228$as_echo "$ac_try_echo"; } >&5 3229 (eval "$ac_link_default") 2>&5 3230 ac_status=$? 3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3232 test $ac_status = 0; }; then : 3233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3235# in a Makefile. We should not override ac_cv_exeext if it was cached, 3236# so that the user can short-circuit this test for compilers unknown to 3237# Autoconf. 3238for ac_file in $ac_files '' 3239do 3240 test -f "$ac_file" || continue 3241 case $ac_file in 3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3243 ;; 3244 [ab].out ) 3245 # We found the default executable, but exeext='' is most 3246 # certainly right. 3247 break;; 3248 *.* ) 3249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3250 then :; else 3251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3252 fi 3253 # We set ac_cv_exeext here because the later test for it is not 3254 # safe: cross compilers may not add the suffix if given an `-o' 3255 # argument, so we may need to know it at that point already. 3256 # Even if this section looks crufty: it has the advantage of 3257 # actually working. 3258 break;; 3259 * ) 3260 break;; 3261 esac 3262done 3263test "$ac_cv_exeext" = no && ac_cv_exeext= 3264 3265else 3266 ac_file='' 3267fi 3268if test -z "$ac_file"; then : 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271$as_echo "$as_me: failed program was:" >&5 3272sed 's/^/| /' conftest.$ac_ext >&5 3273 3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error 77 "C compiler cannot create executables 3277See \`config.log' for more details" "$LINENO" 5; } 3278else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3280$as_echo "yes" >&6; } 3281fi 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3283$as_echo_n "checking for C compiler default output file name... " >&6; } 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3285$as_echo "$ac_file" >&6; } 3286ac_exeext=$ac_cv_exeext 3287 3288rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3289ac_clean_files=$ac_clean_files_save 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3291$as_echo_n "checking for suffix of executables... " >&6; } 3292if { { ac_try="$ac_link" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3298$as_echo "$ac_try_echo"; } >&5 3299 (eval "$ac_link") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; }; then : 3303 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3304# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3305# work properly (i.e., refer to `conftest.exe'), while it won't with 3306# `rm'. 3307for ac_file in conftest.exe conftest conftest.*; do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 break;; 3313 * ) break;; 3314 esac 3315done 3316else 3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3319as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3320See \`config.log' for more details" "$LINENO" 5; } 3321fi 3322rm -f conftest conftest$ac_cv_exeext 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3324$as_echo "$ac_cv_exeext" >&6; } 3325 3326rm -f conftest.$ac_ext 3327EXEEXT=$ac_cv_exeext 3328ac_exeext=$EXEEXT 3329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331#include <stdio.h> 3332int 3333main () 3334{ 3335FILE *f = fopen ("conftest.out", "w"); 3336 return ferror (f) || fclose (f) != 0; 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342ac_clean_files="$ac_clean_files conftest.out" 3343# Check that the compiler produces executables we can run. If not, either 3344# the compiler is broken, or we cross compile. 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3346$as_echo_n "checking whether we are cross compiling... " >&6; } 3347if test "$cross_compiling" != yes; then 3348 { { ac_try="$ac_link" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_link") 2>&5 3356 ac_status=$? 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; } 3359 if { ac_try='./conftest$ac_cv_exeext' 3360 { { case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365$as_echo "$ac_try_echo"; } >&5 3366 (eval "$ac_try") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; }; }; then 3370 cross_compiling=no 3371 else 3372 if test "$cross_compiling" = maybe; then 3373 cross_compiling=yes 3374 else 3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377as_fn_error $? "cannot run C compiled programs. 3378If you meant to cross compile, use \`--host'. 3379See \`config.log' for more details" "$LINENO" 5; } 3380 fi 3381 fi 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3384$as_echo "$cross_compiling" >&6; } 3385 3386rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3387ac_clean_files=$ac_clean_files_save 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3389$as_echo_n "checking for suffix of object files... " >&6; } 3390if ${ac_cv_objext+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394/* end confdefs.h. */ 3395 3396int 3397main () 3398{ 3399 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404rm -f conftest.o conftest.obj 3405if { { ac_try="$ac_compile" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_compile") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; }; then : 3416 for ac_file in conftest.o conftest.obj conftest.*; do 3417 test -f "$ac_file" || continue; 3418 case $ac_file in 3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3421 break;; 3422 esac 3423done 3424else 3425 $as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3430as_fn_error $? "cannot compute suffix of object files: cannot compile 3431See \`config.log' for more details" "$LINENO" 5; } 3432fi 3433rm -f conftest.$ac_cv_objext conftest.$ac_ext 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3436$as_echo "$ac_cv_objext" >&6; } 3437OBJEXT=$ac_cv_objext 3438ac_objext=$OBJEXT 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3440$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3441if ${ac_cv_c_compiler_gnu+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450#ifndef __GNUC__ 3451 choke me 3452#endif 3453 3454 ; 3455 return 0; 3456} 3457_ACEOF 3458if ac_fn_c_try_compile "$LINENO"; then : 3459 ac_compiler_gnu=yes 3460else 3461 ac_compiler_gnu=no 3462fi 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464ac_cv_c_compiler_gnu=$ac_compiler_gnu 3465 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3468$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3469if test $ac_compiler_gnu = yes; then 3470 GCC=yes 3471else 3472 GCC= 3473fi 3474ac_test_CFLAGS=${CFLAGS+set} 3475ac_save_CFLAGS=$CFLAGS 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3477$as_echo_n "checking whether $CC accepts -g... " >&6; } 3478if ${ac_cv_prog_cc_g+:} false; then : 3479 $as_echo_n "(cached) " >&6 3480else 3481 ac_save_c_werror_flag=$ac_c_werror_flag 3482 ac_c_werror_flag=yes 3483 ac_cv_prog_cc_g=no 3484 CFLAGS="-g" 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487 3488int 3489main () 3490{ 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496if ac_fn_c_try_compile "$LINENO"; then : 3497 ac_cv_prog_cc_g=yes 3498else 3499 CFLAGS="" 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511if ac_fn_c_try_compile "$LINENO"; then : 3512 3513else 3514 ac_c_werror_flag=$ac_save_c_werror_flag 3515 CFLAGS="-g" 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 ac_cv_prog_cc_g=yes 3529fi 3530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3531fi 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3533fi 3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3535 ac_c_werror_flag=$ac_save_c_werror_flag 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3538$as_echo "$ac_cv_prog_cc_g" >&6; } 3539if test "$ac_test_CFLAGS" = set; then 3540 CFLAGS=$ac_save_CFLAGS 3541elif test $ac_cv_prog_cc_g = yes; then 3542 if test "$GCC" = yes; then 3543 CFLAGS="-g -O2" 3544 else 3545 CFLAGS="-g" 3546 fi 3547else 3548 if test "$GCC" = yes; then 3549 CFLAGS="-O2" 3550 else 3551 CFLAGS= 3552 fi 3553fi 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3555$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3556if ${ac_cv_prog_cc_c89+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_cv_prog_cc_c89=no 3560ac_save_CC=$CC 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563#include <stdarg.h> 3564#include <stdio.h> 3565struct stat; 3566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3567struct buf { int x; }; 3568FILE * (*rcsopen) (struct buf *, struct stat *, int); 3569static char *e (p, i) 3570 char **p; 3571 int i; 3572{ 3573 return p[i]; 3574} 3575static char *f (char * (*g) (char **, int), char **p, ...) 3576{ 3577 char *s; 3578 va_list v; 3579 va_start (v,p); 3580 s = g (p, va_arg (v,int)); 3581 va_end (v); 3582 return s; 3583} 3584 3585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3586 function prototypes and stuff, but not '\xHH' hex character constants. 3587 These don't provoke an error unfortunately, instead are silently treated 3588 as 'x'. The following induces an error, until -std is added to get 3589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3590 array size at least. It's necessary to write '\x00'==0 to get something 3591 that's true only with -std. */ 3592int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3593 3594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3595 inside strings and character constants. */ 3596#define FOO(x) 'x' 3597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3598 3599int test (int i, double x); 3600struct s1 {int (*f) (int a);}; 3601struct s2 {int (*f) (double a);}; 3602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3603int argc; 3604char **argv; 3605int 3606main () 3607{ 3608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3615do 3616 CC="$ac_save_CC $ac_arg" 3617 if ac_fn_c_try_compile "$LINENO"; then : 3618 ac_cv_prog_cc_c89=$ac_arg 3619fi 3620rm -f core conftest.err conftest.$ac_objext 3621 test "x$ac_cv_prog_cc_c89" != "xno" && break 3622done 3623rm -f conftest.$ac_ext 3624CC=$ac_save_CC 3625 3626fi 3627# AC_CACHE_VAL 3628case "x$ac_cv_prog_cc_c89" in 3629 x) 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3631$as_echo "none needed" >&6; } ;; 3632 xno) 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3634$as_echo "unsupported" >&6; } ;; 3635 *) 3636 CC="$CC $ac_cv_prog_cc_c89" 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3638$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3639esac 3640if test "x$ac_cv_prog_cc_c89" != xno; then : 3641 3642fi 3643 3644ac_ext=c 3645ac_cpp='$CPP $CPPFLAGS' 3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3648ac_compiler_gnu=$ac_cv_c_compiler_gnu 3649 3650ac_ext=c 3651ac_cpp='$CPP $CPPFLAGS' 3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3654ac_compiler_gnu=$ac_cv_c_compiler_gnu 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3656$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3657if ${am_cv_prog_cc_c_o+:} false; then : 3658 $as_echo_n "(cached) " >&6 3659else 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main () 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671 # Make sure it works both with $CC and with simple cc. 3672 # Following AC_PROG_CC_C_O, we do the test twice because some 3673 # compilers refuse to overwrite an existing .o file with -o, 3674 # though they will create one. 3675 am_cv_prog_cc_c_o=yes 3676 for am_i in 1 2; do 3677 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3678 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); } \ 3682 && test -f conftest2.$ac_objext; then 3683 : OK 3684 else 3685 am_cv_prog_cc_c_o=no 3686 break 3687 fi 3688 done 3689 rm -f core conftest* 3690 unset am_i 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3693$as_echo "$am_cv_prog_cc_c_o" >&6; } 3694if test "$am_cv_prog_cc_c_o" != yes; then 3695 # Losing compiler, so override with the script. 3696 # FIXME: It is wrong to rewrite CC. 3697 # But if we don't then we get into trouble of one sort or another. 3698 # A longer-term fix would be to have automake use am__CC in this case, 3699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3700 CC="$am_aux_dir/compile $CC" 3701fi 3702ac_ext=c 3703ac_cpp='$CPP $CPPFLAGS' 3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3706ac_compiler_gnu=$ac_cv_c_compiler_gnu 3707 3708 3709depcc="$CC" am_compiler_list= 3710 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3712$as_echo_n "checking dependency style of $depcc... " >&6; } 3713if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3717 # We make a subdir and do the tests there. Otherwise we can end up 3718 # making bogus files that we don't know about and never remove. For 3719 # instance it was reported that on HP-UX the gcc test will end up 3720 # making a dummy file named 'D' -- because '-MD' means "put the output 3721 # in D". 3722 rm -rf conftest.dir 3723 mkdir conftest.dir 3724 # Copy depcomp to subdir because otherwise we won't find it if we're 3725 # using a relative directory. 3726 cp "$am_depcomp" conftest.dir 3727 cd conftest.dir 3728 # We will build objects and dependencies in a subdirectory because 3729 # it helps to detect inapplicable dependency modes. For instance 3730 # both Tru64's cc and ICC support -MD to output dependencies as a 3731 # side effect of compilation, but ICC will put the dependencies in 3732 # the current directory while Tru64 will put them in the object 3733 # directory. 3734 mkdir sub 3735 3736 am_cv_CC_dependencies_compiler_type=none 3737 if test "$am_compiler_list" = ""; then 3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3739 fi 3740 am__universal=false 3741 case " $depcc " in #( 3742 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3743 esac 3744 3745 for depmode in $am_compiler_list; do 3746 # Setup a source with many dependencies, because some compilers 3747 # like to wrap large dependency lists on column 80 (with \), and 3748 # we should not choose a depcomp mode which is confused by this. 3749 # 3750 # We need to recreate these files for each test, as the compiler may 3751 # overwrite some of them when testing with obscure command lines. 3752 # This happens at least with the AIX C compiler. 3753 : > sub/conftest.c 3754 for i in 1 2 3 4 5 6; do 3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3757 # Solaris 10 /bin/sh. 3758 echo '/* dummy */' > sub/conftst$i.h 3759 done 3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3761 3762 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3763 # mode. It turns out that the SunPro C++ compiler does not properly 3764 # handle '-M -o', and we need to detect this. Also, some Intel 3765 # versions had trouble with output in subdirs. 3766 am__obj=sub/conftest.${OBJEXT-o} 3767 am__minus_obj="-o $am__obj" 3768 case $depmode in 3769 gcc) 3770 # This depmode causes a compiler race in universal mode. 3771 test "$am__universal" = false || continue 3772 ;; 3773 nosideeffect) 3774 # After this tag, mechanisms are not by side-effect, so they'll 3775 # only be used when explicitly requested. 3776 if test "x$enable_dependency_tracking" = xyes; then 3777 continue 3778 else 3779 break 3780 fi 3781 ;; 3782 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3783 # This compiler won't grok '-c -o', but also, the minuso test has 3784 # not run yet. These depmodes are late enough in the game, and 3785 # so weak that their functioning should not be impacted. 3786 am__obj=conftest.${OBJEXT-o} 3787 am__minus_obj= 3788 ;; 3789 none) break ;; 3790 esac 3791 if depmode=$depmode \ 3792 source=sub/conftest.c object=$am__obj \ 3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3795 >/dev/null 2>conftest.err && 3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800 # icc doesn't choke on unknown options, it will just issue warnings 3801 # or remarks (even with -Werror). So we grep stderr for any message 3802 # that says an option was ignored or not supported. 3803 # When given -MP, icc 7.0 and 7.1 complain thusly: 3804 # icc: Command line warning: ignoring option '-M'; no argument required 3805 # The diagnosis changed in icc 8.0: 3806 # icc: Command line remark: option '-MP' not supported 3807 if (grep 'ignoring option' conftest.err || 3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809 am_cv_CC_dependencies_compiler_type=$depmode 3810 break 3811 fi 3812 fi 3813 done 3814 3815 cd .. 3816 rm -rf conftest.dir 3817else 3818 am_cv_CC_dependencies_compiler_type=none 3819fi 3820 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825 3826 if 3827 test "x$enable_dependency_tracking" != xno \ 3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829 am__fastdepCC_TRUE= 3830 am__fastdepCC_FALSE='#' 3831else 3832 am__fastdepCC_TRUE='#' 3833 am__fastdepCC_FALSE= 3834fi 3835 3836 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3838$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3839if ${ac_cv_prog_cc_c99+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 ac_cv_prog_cc_c99=no 3843ac_save_CC=$CC 3844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#include <stdarg.h> 3847#include <stdbool.h> 3848#include <stdlib.h> 3849#include <wchar.h> 3850#include <stdio.h> 3851 3852// Check varargs macros. These examples are taken from C99 6.10.3.5. 3853#define debug(...) fprintf (stderr, __VA_ARGS__) 3854#define showlist(...) puts (#__VA_ARGS__) 3855#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3856static void 3857test_varargs_macros (void) 3858{ 3859 int x = 1234; 3860 int y = 5678; 3861 debug ("Flag"); 3862 debug ("X = %d\n", x); 3863 showlist (The first, second, and third items.); 3864 report (x>y, "x is %d but y is %d", x, y); 3865} 3866 3867// Check long long types. 3868#define BIG64 18446744073709551615ull 3869#define BIG32 4294967295ul 3870#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3871#if !BIG_OK 3872 your preprocessor is broken; 3873#endif 3874#if BIG_OK 3875#else 3876 your preprocessor is broken; 3877#endif 3878static long long int bignum = -9223372036854775807LL; 3879static unsigned long long int ubignum = BIG64; 3880 3881struct incomplete_array 3882{ 3883 int datasize; 3884 double data[]; 3885}; 3886 3887struct named_init { 3888 int number; 3889 const wchar_t *name; 3890 double average; 3891}; 3892 3893typedef const char *ccp; 3894 3895static inline int 3896test_restrict (ccp restrict text) 3897{ 3898 // See if C++-style comments work. 3899 // Iterate through items via the restricted pointer. 3900 // Also check for declarations in for loops. 3901 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3902 continue; 3903 return 0; 3904} 3905 3906// Check varargs and va_copy. 3907static void 3908test_varargs (const char *format, ...) 3909{ 3910 va_list args; 3911 va_start (args, format); 3912 va_list args_copy; 3913 va_copy (args_copy, args); 3914 3915 const char *str; 3916 int number; 3917 float fnumber; 3918 3919 while (*format) 3920 { 3921 switch (*format++) 3922 { 3923 case 's': // string 3924 str = va_arg (args_copy, const char *); 3925 break; 3926 case 'd': // int 3927 number = va_arg (args_copy, int); 3928 break; 3929 case 'f': // float 3930 fnumber = va_arg (args_copy, double); 3931 break; 3932 default: 3933 break; 3934 } 3935 } 3936 va_end (args_copy); 3937 va_end (args); 3938} 3939 3940int 3941main () 3942{ 3943 3944 // Check bool. 3945 _Bool success = false; 3946 3947 // Check restrict. 3948 if (test_restrict ("String literal") == 0) 3949 success = true; 3950 char *restrict newvar = "Another string"; 3951 3952 // Check varargs. 3953 test_varargs ("s, d' f .", "string", 65, 34.234); 3954 test_varargs_macros (); 3955 3956 // Check flexible array members. 3957 struct incomplete_array *ia = 3958 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3959 ia->datasize = 10; 3960 for (int i = 0; i < ia->datasize; ++i) 3961 ia->data[i] = i * 1.234; 3962 3963 // Check named initializers. 3964 struct named_init ni = { 3965 .number = 34, 3966 .name = L"Test wide string", 3967 .average = 543.34343, 3968 }; 3969 3970 ni.number = 58; 3971 3972 int dynamic_array[ni.number]; 3973 dynamic_array[ni.number - 1] = 543; 3974 3975 // work around unused variable warnings 3976 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3977 || dynamic_array[ni.number - 1] != 543); 3978 3979 ; 3980 return 0; 3981} 3982_ACEOF 3983for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3984do 3985 CC="$ac_save_CC $ac_arg" 3986 if ac_fn_c_try_compile "$LINENO"; then : 3987 ac_cv_prog_cc_c99=$ac_arg 3988fi 3989rm -f core conftest.err conftest.$ac_objext 3990 test "x$ac_cv_prog_cc_c99" != "xno" && break 3991done 3992rm -f conftest.$ac_ext 3993CC=$ac_save_CC 3994 3995fi 3996# AC_CACHE_VAL 3997case "x$ac_cv_prog_cc_c99" in 3998 x) 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4000$as_echo "none needed" >&6; } ;; 4001 xno) 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4003$as_echo "unsupported" >&6; } ;; 4004 *) 4005 CC="$CC $ac_cv_prog_cc_c99" 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4007$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4008esac 4009if test "x$ac_cv_prog_cc_c99" != xno; then : 4010 4011fi 4012 4013 4014 4015ac_ext=c 4016ac_cpp='$CPP $CPPFLAGS' 4017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4019ac_compiler_gnu=$ac_cv_c_compiler_gnu 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4021$as_echo_n "checking how to run the C preprocessor... " >&6; } 4022# On Suns, sometimes $CPP names a directory. 4023if test -n "$CPP" && test -d "$CPP"; then 4024 CPP= 4025fi 4026if test -z "$CPP"; then 4027 if ${ac_cv_prog_CPP+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 # Double quotes because CPP needs to be expanded 4031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4032 do 4033 ac_preproc_ok=false 4034for ac_c_preproc_warn_flag in '' yes 4035do 4036 # Use a header file that comes with gcc, so configuring glibc 4037 # with a fresh cross-compiler works. 4038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4039 # <limits.h> exists even on freestanding compilers. 4040 # On the NeXT, cc -E runs the code through the compiler's parser, 4041 # not just through cpp. "Syntax error" is here to catch this case. 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#ifdef __STDC__ 4045# include <limits.h> 4046#else 4047# include <assert.h> 4048#endif 4049 Syntax error 4050_ACEOF 4051if ac_fn_c_try_cpp "$LINENO"; then : 4052 4053else 4054 # Broken: fails on valid input. 4055continue 4056fi 4057rm -f conftest.err conftest.i conftest.$ac_ext 4058 4059 # OK, works on sane cases. Now check whether nonexistent headers 4060 # can be detected and how. 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063#include <ac_nonexistent.h> 4064_ACEOF 4065if ac_fn_c_try_cpp "$LINENO"; then : 4066 # Broken: success on invalid input. 4067continue 4068else 4069 # Passes both tests. 4070ac_preproc_ok=: 4071break 4072fi 4073rm -f conftest.err conftest.i conftest.$ac_ext 4074 4075done 4076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4077rm -f conftest.i conftest.err conftest.$ac_ext 4078if $ac_preproc_ok; then : 4079 break 4080fi 4081 4082 done 4083 ac_cv_prog_CPP=$CPP 4084 4085fi 4086 CPP=$ac_cv_prog_CPP 4087else 4088 ac_cv_prog_CPP=$CPP 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4091$as_echo "$CPP" >&6; } 4092ac_preproc_ok=false 4093for ac_c_preproc_warn_flag in '' yes 4094do 4095 # Use a header file that comes with gcc, so configuring glibc 4096 # with a fresh cross-compiler works. 4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4098 # <limits.h> exists even on freestanding compilers. 4099 # On the NeXT, cc -E runs the code through the compiler's parser, 4100 # not just through cpp. "Syntax error" is here to catch this case. 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103#ifdef __STDC__ 4104# include <limits.h> 4105#else 4106# include <assert.h> 4107#endif 4108 Syntax error 4109_ACEOF 4110if ac_fn_c_try_cpp "$LINENO"; then : 4111 4112else 4113 # Broken: fails on valid input. 4114continue 4115fi 4116rm -f conftest.err conftest.i conftest.$ac_ext 4117 4118 # OK, works on sane cases. Now check whether nonexistent headers 4119 # can be detected and how. 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <ac_nonexistent.h> 4123_ACEOF 4124if ac_fn_c_try_cpp "$LINENO"; then : 4125 # Broken: success on invalid input. 4126continue 4127else 4128 # Passes both tests. 4129ac_preproc_ok=: 4130break 4131fi 4132rm -f conftest.err conftest.i conftest.$ac_ext 4133 4134done 4135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4136rm -f conftest.i conftest.err conftest.$ac_ext 4137if $ac_preproc_ok; then : 4138 4139else 4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4142as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4143See \`config.log' for more details" "$LINENO" 5; } 4144fi 4145 4146ac_ext=c 4147ac_cpp='$CPP $CPPFLAGS' 4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4150ac_compiler_gnu=$ac_cv_c_compiler_gnu 4151 4152 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4154$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4155if ${ac_cv_path_GREP+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 if test -z "$GREP"; then 4159 ac_path_GREP_found=false 4160 # Loop through the user's path and test for each of PROGNAME-LIST 4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4163do 4164 IFS=$as_save_IFS 4165 test -z "$as_dir" && as_dir=. 4166 for ac_prog in grep ggrep; do 4167 for ac_exec_ext in '' $ac_executable_extensions; do 4168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4169 as_fn_executable_p "$ac_path_GREP" || continue 4170# Check for GNU ac_path_GREP and select it if it is found. 4171 # Check for GNU $ac_path_GREP 4172case `"$ac_path_GREP" --version 2>&1` in 4173*GNU*) 4174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4175*) 4176 ac_count=0 4177 $as_echo_n 0123456789 >"conftest.in" 4178 while : 4179 do 4180 cat "conftest.in" "conftest.in" >"conftest.tmp" 4181 mv "conftest.tmp" "conftest.in" 4182 cp "conftest.in" "conftest.nl" 4183 $as_echo 'GREP' >> "conftest.nl" 4184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4186 as_fn_arith $ac_count + 1 && ac_count=$as_val 4187 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4188 # Best one so far, save it but keep looking for a better one 4189 ac_cv_path_GREP="$ac_path_GREP" 4190 ac_path_GREP_max=$ac_count 4191 fi 4192 # 10*(2^10) chars as input seems more than enough 4193 test $ac_count -gt 10 && break 4194 done 4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4196esac 4197 4198 $ac_path_GREP_found && break 3 4199 done 4200 done 4201 done 4202IFS=$as_save_IFS 4203 if test -z "$ac_cv_path_GREP"; then 4204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4205 fi 4206else 4207 ac_cv_path_GREP=$GREP 4208fi 4209 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4212$as_echo "$ac_cv_path_GREP" >&6; } 4213 GREP="$ac_cv_path_GREP" 4214 4215 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4217$as_echo_n "checking for egrep... " >&6; } 4218if ${ac_cv_path_EGREP+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4222 then ac_cv_path_EGREP="$GREP -E" 4223 else 4224 if test -z "$EGREP"; then 4225 ac_path_EGREP_found=false 4226 # Loop through the user's path and test for each of PROGNAME-LIST 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_prog in egrep; do 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4235 as_fn_executable_p "$ac_path_EGREP" || continue 4236# Check for GNU ac_path_EGREP and select it if it is found. 4237 # Check for GNU $ac_path_EGREP 4238case `"$ac_path_EGREP" --version 2>&1` in 4239*GNU*) 4240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4241*) 4242 ac_count=0 4243 $as_echo_n 0123456789 >"conftest.in" 4244 while : 4245 do 4246 cat "conftest.in" "conftest.in" >"conftest.tmp" 4247 mv "conftest.tmp" "conftest.in" 4248 cp "conftest.in" "conftest.nl" 4249 $as_echo 'EGREP' >> "conftest.nl" 4250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4252 as_fn_arith $ac_count + 1 && ac_count=$as_val 4253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4254 # Best one so far, save it but keep looking for a better one 4255 ac_cv_path_EGREP="$ac_path_EGREP" 4256 ac_path_EGREP_max=$ac_count 4257 fi 4258 # 10*(2^10) chars as input seems more than enough 4259 test $ac_count -gt 10 && break 4260 done 4261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4262esac 4263 4264 $ac_path_EGREP_found && break 3 4265 done 4266 done 4267 done 4268IFS=$as_save_IFS 4269 if test -z "$ac_cv_path_EGREP"; then 4270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4271 fi 4272else 4273 ac_cv_path_EGREP=$EGREP 4274fi 4275 4276 fi 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4279$as_echo "$ac_cv_path_EGREP" >&6; } 4280 EGREP="$ac_cv_path_EGREP" 4281 4282 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4284$as_echo_n "checking for ANSI C header files... " >&6; } 4285if ${ac_cv_header_stdc+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287else 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <stdlib.h> 4291#include <stdarg.h> 4292#include <string.h> 4293#include <float.h> 4294 4295int 4296main () 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_compile "$LINENO"; then : 4304 ac_cv_header_stdc=yes 4305else 4306 ac_cv_header_stdc=no 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4309 4310if test $ac_cv_header_stdc = yes; then 4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313/* end confdefs.h. */ 4314#include <string.h> 4315 4316_ACEOF 4317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4318 $EGREP "memchr" >/dev/null 2>&1; then : 4319 4320else 4321 ac_cv_header_stdc=no 4322fi 4323rm -f conftest* 4324 4325fi 4326 4327if test $ac_cv_header_stdc = yes; then 4328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331#include <stdlib.h> 4332 4333_ACEOF 4334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4335 $EGREP "free" >/dev/null 2>&1; then : 4336 4337else 4338 ac_cv_header_stdc=no 4339fi 4340rm -f conftest* 4341 4342fi 4343 4344if test $ac_cv_header_stdc = yes; then 4345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4346 if test "$cross_compiling" = yes; then : 4347 : 4348else 4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4350/* end confdefs.h. */ 4351#include <ctype.h> 4352#include <stdlib.h> 4353#if ((' ' & 0x0FF) == 0x020) 4354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4356#else 4357# define ISLOWER(c) \ 4358 (('a' <= (c) && (c) <= 'i') \ 4359 || ('j' <= (c) && (c) <= 'r') \ 4360 || ('s' <= (c) && (c) <= 'z')) 4361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4362#endif 4363 4364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4365int 4366main () 4367{ 4368 int i; 4369 for (i = 0; i < 256; i++) 4370 if (XOR (islower (i), ISLOWER (i)) 4371 || toupper (i) != TOUPPER (i)) 4372 return 2; 4373 return 0; 4374} 4375_ACEOF 4376if ac_fn_c_try_run "$LINENO"; then : 4377 4378else 4379 ac_cv_header_stdc=no 4380fi 4381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4382 conftest.$ac_objext conftest.beam conftest.$ac_ext 4383fi 4384 4385fi 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4388$as_echo "$ac_cv_header_stdc" >&6; } 4389if test $ac_cv_header_stdc = yes; then 4390 4391$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4392 4393fi 4394 4395# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4397 inttypes.h stdint.h unistd.h 4398do : 4399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4401" 4402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4403 cat >>confdefs.h <<_ACEOF 4404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4405_ACEOF 4406 4407fi 4408 4409done 4410 4411 4412 4413 4414 4415 4416ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4417if test "x$ac_cv_have_decl___clang__" = xyes; then : 4418 CLANGCC="yes" 4419else 4420 CLANGCC="no" 4421fi 4422 4423ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4424if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4425 INTELCC="yes" 4426else 4427 INTELCC="no" 4428fi 4429 4430ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4431if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4432 SUNCC="yes" 4433else 4434 SUNCC="no" 4435fi 4436 4437 4438 4439 4440if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4441 if test -n "$ac_tool_prefix"; then 4442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4443set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4445$as_echo_n "checking for $ac_word... " >&6; } 4446if ${ac_cv_path_PKG_CONFIG+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 case $PKG_CONFIG in 4450 [\\/]* | ?:[\\/]*) 4451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4452 ;; 4453 *) 4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4455for as_dir in $PATH 4456do 4457 IFS=$as_save_IFS 4458 test -z "$as_dir" && as_dir=. 4459 for ac_exec_ext in '' $ac_executable_extensions; do 4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4463 break 2 4464 fi 4465done 4466 done 4467IFS=$as_save_IFS 4468 4469 ;; 4470esac 4471fi 4472PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4473if test -n "$PKG_CONFIG"; then 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4475$as_echo "$PKG_CONFIG" >&6; } 4476else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4478$as_echo "no" >&6; } 4479fi 4480 4481 4482fi 4483if test -z "$ac_cv_path_PKG_CONFIG"; then 4484 ac_pt_PKG_CONFIG=$PKG_CONFIG 4485 # Extract the first word of "pkg-config", so it can be a program name with args. 4486set dummy pkg-config; ac_word=$2 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4488$as_echo_n "checking for $ac_word... " >&6; } 4489if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 case $ac_pt_PKG_CONFIG in 4493 [\\/]* | ?:[\\/]*) 4494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4495 ;; 4496 *) 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508done 4509 done 4510IFS=$as_save_IFS 4511 4512 ;; 4513esac 4514fi 4515ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4516if test -n "$ac_pt_PKG_CONFIG"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4518$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521$as_echo "no" >&6; } 4522fi 4523 4524 if test "x$ac_pt_PKG_CONFIG" = x; then 4525 PKG_CONFIG="" 4526 else 4527 case $cross_compiling:$ac_tool_warned in 4528yes:) 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4531ac_tool_warned=yes ;; 4532esac 4533 PKG_CONFIG=$ac_pt_PKG_CONFIG 4534 fi 4535else 4536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4537fi 4538 4539fi 4540if test -n "$PKG_CONFIG"; then 4541 _pkg_min_version=0.9.0 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4543$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4546$as_echo "yes" >&6; } 4547 else 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549$as_echo "no" >&6; } 4550 PKG_CONFIG="" 4551 fi 4552 4553fi 4554# Make sure we can run config.sub. 4555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4557 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4559$as_echo_n "checking build system type... " >&6; } 4560if ${ac_cv_build+:} false; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 ac_build_alias=$build_alias 4564test "x$ac_build_alias" = x && 4565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4566test "x$ac_build_alias" = x && 4567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4570 4571fi 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4573$as_echo "$ac_cv_build" >&6; } 4574case $ac_cv_build in 4575*-*-*) ;; 4576*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4577esac 4578build=$ac_cv_build 4579ac_save_IFS=$IFS; IFS='-' 4580set x $ac_cv_build 4581shift 4582build_cpu=$1 4583build_vendor=$2 4584shift; shift 4585# Remember, the first character of IFS is used to create $*, 4586# except with old shells: 4587build_os=$* 4588IFS=$ac_save_IFS 4589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4590 4591 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4593$as_echo_n "checking host system type... " >&6; } 4594if ${ac_cv_host+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if test "x$host_alias" = x; then 4598 ac_cv_host=$ac_cv_build 4599else 4600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4602fi 4603 4604fi 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4606$as_echo "$ac_cv_host" >&6; } 4607case $ac_cv_host in 4608*-*-*) ;; 4609*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4610esac 4611host=$ac_cv_host 4612ac_save_IFS=$IFS; IFS='-' 4613set x $ac_cv_host 4614shift 4615host_cpu=$1 4616host_vendor=$2 4617shift; shift 4618# Remember, the first character of IFS is used to create $*, 4619# except with old shells: 4620host_os=$* 4621IFS=$ac_save_IFS 4622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4623 4624 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4626$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4627if ${ac_cv_path_SED+:} false; then : 4628 $as_echo_n "(cached) " >&6 4629else 4630 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4631 for ac_i in 1 2 3 4 5 6 7; do 4632 ac_script="$ac_script$as_nl$ac_script" 4633 done 4634 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4635 { ac_script=; unset ac_script;} 4636 if test -z "$SED"; then 4637 ac_path_SED_found=false 4638 # Loop through the user's path and test for each of PROGNAME-LIST 4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4640for as_dir in $PATH 4641do 4642 IFS=$as_save_IFS 4643 test -z "$as_dir" && as_dir=. 4644 for ac_prog in sed gsed; do 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4647 as_fn_executable_p "$ac_path_SED" || continue 4648# Check for GNU ac_path_SED and select it if it is found. 4649 # Check for GNU $ac_path_SED 4650case `"$ac_path_SED" --version 2>&1` in 4651*GNU*) 4652 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4653*) 4654 ac_count=0 4655 $as_echo_n 0123456789 >"conftest.in" 4656 while : 4657 do 4658 cat "conftest.in" "conftest.in" >"conftest.tmp" 4659 mv "conftest.tmp" "conftest.in" 4660 cp "conftest.in" "conftest.nl" 4661 $as_echo '' >> "conftest.nl" 4662 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4664 as_fn_arith $ac_count + 1 && ac_count=$as_val 4665 if test $ac_count -gt ${ac_path_SED_max-0}; then 4666 # Best one so far, save it but keep looking for a better one 4667 ac_cv_path_SED="$ac_path_SED" 4668 ac_path_SED_max=$ac_count 4669 fi 4670 # 10*(2^10) chars as input seems more than enough 4671 test $ac_count -gt 10 && break 4672 done 4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4674esac 4675 4676 $ac_path_SED_found && break 3 4677 done 4678 done 4679 done 4680IFS=$as_save_IFS 4681 if test -z "$ac_cv_path_SED"; then 4682 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4683 fi 4684else 4685 ac_cv_path_SED=$SED 4686fi 4687 4688fi 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4690$as_echo "$ac_cv_path_SED" >&6; } 4691 SED="$ac_cv_path_SED" 4692 rm -f conftest.sed 4693 4694 4695 4696 4697 4698 4699# Check whether --enable-selective-werror was given. 4700if test "${enable_selective_werror+set}" = set; then : 4701 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4702else 4703 SELECTIVE_WERROR=yes 4704fi 4705 4706 4707 4708 4709 4710# -v is too short to test reliably with XORG_TESTSET_CFLAG 4711if test "x$SUNCC" = "xyes"; then 4712 BASE_CFLAGS="-v" 4713else 4714 BASE_CFLAGS="" 4715fi 4716 4717# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731xorg_testset_save_CFLAGS="$CFLAGS" 4732 4733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742int i; 4743_ACEOF 4744if ac_fn_c_try_compile "$LINENO"; then : 4745 xorg_cv_cc_flag_unknown_warning_option=yes 4746else 4747 xorg_cv_cc_flag_unknown_warning_option=no 4748fi 4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4750fi 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4754 CFLAGS="$xorg_testset_save_CFLAGS" 4755fi 4756 4757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4760 fi 4761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4765 $as_echo_n "(cached) " >&6 4766else 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769int i; 4770_ACEOF 4771if ac_fn_c_try_compile "$LINENO"; then : 4772 xorg_cv_cc_flag_unused_command_line_argument=yes 4773else 4774 xorg_cv_cc_flag_unused_command_line_argument=no 4775fi 4776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4777fi 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4781 CFLAGS="$xorg_testset_save_CFLAGS" 4782fi 4783 4784found="no" 4785 4786 if test $found = "no" ; then 4787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789 fi 4790 4791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4793 fi 4794 4795 CFLAGS="$CFLAGS -Wall" 4796 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4798$as_echo_n "checking if $CC supports -Wall... " >&6; } 4799 cacheid=xorg_cv_cc_flag__Wall 4800 if eval \${$cacheid+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805int i; 4806int 4807main () 4808{ 4809 4810 ; 4811 return 0; 4812} 4813_ACEOF 4814if ac_fn_c_try_link "$LINENO"; then : 4815 eval $cacheid=yes 4816else 4817 eval $cacheid=no 4818fi 4819rm -f core conftest.err conftest.$ac_objext \ 4820 conftest$ac_exeext conftest.$ac_ext 4821fi 4822 4823 4824 CFLAGS="$xorg_testset_save_CFLAGS" 4825 4826 eval supported=\$$cacheid 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4828$as_echo "$supported" >&6; } 4829 if test "$supported" = "yes" ; then 4830 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4831 found="yes" 4832 fi 4833 fi 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849xorg_testset_save_CFLAGS="$CFLAGS" 4850 4851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860int i; 4861_ACEOF 4862if ac_fn_c_try_compile "$LINENO"; then : 4863 xorg_cv_cc_flag_unknown_warning_option=yes 4864else 4865 xorg_cv_cc_flag_unknown_warning_option=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4868fi 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4872 CFLAGS="$xorg_testset_save_CFLAGS" 4873fi 4874 4875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4878 fi 4879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887int i; 4888_ACEOF 4889if ac_fn_c_try_compile "$LINENO"; then : 4890 xorg_cv_cc_flag_unused_command_line_argument=yes 4891else 4892 xorg_cv_cc_flag_unused_command_line_argument=no 4893fi 4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4895fi 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4899 CFLAGS="$xorg_testset_save_CFLAGS" 4900fi 4901 4902found="no" 4903 4904 if test $found = "no" ; then 4905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907 fi 4908 4909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4911 fi 4912 4913 CFLAGS="$CFLAGS -Wpointer-arith" 4914 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4916$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4917 cacheid=xorg_cv_cc_flag__Wpointer_arith 4918 if eval \${$cacheid+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922/* end confdefs.h. */ 4923int i; 4924int 4925main () 4926{ 4927 4928 ; 4929 return 0; 4930} 4931_ACEOF 4932if ac_fn_c_try_link "$LINENO"; then : 4933 eval $cacheid=yes 4934else 4935 eval $cacheid=no 4936fi 4937rm -f core conftest.err conftest.$ac_objext \ 4938 conftest$ac_exeext conftest.$ac_ext 4939fi 4940 4941 4942 CFLAGS="$xorg_testset_save_CFLAGS" 4943 4944 eval supported=\$$cacheid 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4946$as_echo "$supported" >&6; } 4947 if test "$supported" = "yes" ; then 4948 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4949 found="yes" 4950 fi 4951 fi 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967xorg_testset_save_CFLAGS="$CFLAGS" 4968 4969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978int i; 4979_ACEOF 4980if ac_fn_c_try_compile "$LINENO"; then : 4981 xorg_cv_cc_flag_unknown_warning_option=yes 4982else 4983 xorg_cv_cc_flag_unknown_warning_option=no 4984fi 4985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4986fi 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4990 CFLAGS="$xorg_testset_save_CFLAGS" 4991fi 4992 4993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4996 fi 4997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005int i; 5006_ACEOF 5007if ac_fn_c_try_compile "$LINENO"; then : 5008 xorg_cv_cc_flag_unused_command_line_argument=yes 5009else 5010 xorg_cv_cc_flag_unused_command_line_argument=no 5011fi 5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5013fi 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018fi 5019 5020found="no" 5021 5022 if test $found = "no" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 fi 5030 5031 CFLAGS="$CFLAGS -Wmissing-declarations" 5032 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5034$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5035 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5036 if eval \${$cacheid+:} false; then : 5037 $as_echo_n "(cached) " >&6 5038else 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041int i; 5042int 5043main () 5044{ 5045 5046 ; 5047 return 0; 5048} 5049_ACEOF 5050if ac_fn_c_try_link "$LINENO"; then : 5051 eval $cacheid=yes 5052else 5053 eval $cacheid=no 5054fi 5055rm -f core conftest.err conftest.$ac_objext \ 5056 conftest$ac_exeext conftest.$ac_ext 5057fi 5058 5059 5060 CFLAGS="$xorg_testset_save_CFLAGS" 5061 5062 eval supported=\$$cacheid 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5064$as_echo "$supported" >&6; } 5065 if test "$supported" = "yes" ; then 5066 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5067 found="yes" 5068 fi 5069 fi 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085xorg_testset_save_CFLAGS="$CFLAGS" 5086 5087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096int i; 5097_ACEOF 5098if ac_fn_c_try_compile "$LINENO"; then : 5099 xorg_cv_cc_flag_unknown_warning_option=yes 5100else 5101 xorg_cv_cc_flag_unknown_warning_option=no 5102fi 5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5104fi 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109fi 5110 5111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5114 fi 5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123int i; 5124_ACEOF 5125if ac_fn_c_try_compile "$LINENO"; then : 5126 xorg_cv_cc_flag_unused_command_line_argument=yes 5127else 5128 xorg_cv_cc_flag_unused_command_line_argument=no 5129fi 5130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5131fi 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136fi 5137 5138found="no" 5139 5140 if test $found = "no" ; then 5141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5143 fi 5144 5145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5147 fi 5148 5149 CFLAGS="$CFLAGS -Wformat=2" 5150 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5152$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5153 cacheid=xorg_cv_cc_flag__Wformat_2 5154 if eval \${$cacheid+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158/* end confdefs.h. */ 5159int i; 5160int 5161main () 5162{ 5163 5164 ; 5165 return 0; 5166} 5167_ACEOF 5168if ac_fn_c_try_link "$LINENO"; then : 5169 eval $cacheid=yes 5170else 5171 eval $cacheid=no 5172fi 5173rm -f core conftest.err conftest.$ac_objext \ 5174 conftest$ac_exeext conftest.$ac_ext 5175fi 5176 5177 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179 5180 eval supported=\$$cacheid 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5182$as_echo "$supported" >&6; } 5183 if test "$supported" = "yes" ; then 5184 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5185 found="yes" 5186 fi 5187 fi 5188 5189 if test $found = "no" ; then 5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5192 fi 5193 5194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 fi 5197 5198 CFLAGS="$CFLAGS -Wformat" 5199 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5201$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5202 cacheid=xorg_cv_cc_flag__Wformat 5203 if eval \${$cacheid+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205else 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209int 5210main () 5211{ 5212 5213 ; 5214 return 0; 5215} 5216_ACEOF 5217if ac_fn_c_try_link "$LINENO"; then : 5218 eval $cacheid=yes 5219else 5220 eval $cacheid=no 5221fi 5222rm -f core conftest.err conftest.$ac_objext \ 5223 conftest$ac_exeext conftest.$ac_ext 5224fi 5225 5226 5227 CFLAGS="$xorg_testset_save_CFLAGS" 5228 5229 eval supported=\$$cacheid 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5231$as_echo "$supported" >&6; } 5232 if test "$supported" = "yes" ; then 5233 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5234 found="yes" 5235 fi 5236 fi 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254xorg_testset_save_CFLAGS="$CFLAGS" 5255 5256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265int i; 5266_ACEOF 5267if ac_fn_c_try_compile "$LINENO"; then : 5268 xorg_cv_cc_flag_unknown_warning_option=yes 5269else 5270 xorg_cv_cc_flag_unknown_warning_option=no 5271fi 5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5273fi 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278fi 5279 5280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283 fi 5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291/* end confdefs.h. */ 5292int i; 5293_ACEOF 5294if ac_fn_c_try_compile "$LINENO"; then : 5295 xorg_cv_cc_flag_unused_command_line_argument=yes 5296else 5297 xorg_cv_cc_flag_unused_command_line_argument=no 5298fi 5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5300fi 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5304 CFLAGS="$xorg_testset_save_CFLAGS" 5305fi 5306 5307found="no" 5308 5309 if test $found = "no" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5316 fi 5317 5318 CFLAGS="$CFLAGS -Wstrict-prototypes" 5319 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5321$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5322 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5323 if eval \${$cacheid+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327/* end confdefs.h. */ 5328int i; 5329int 5330main () 5331{ 5332 5333 ; 5334 return 0; 5335} 5336_ACEOF 5337if ac_fn_c_try_link "$LINENO"; then : 5338 eval $cacheid=yes 5339else 5340 eval $cacheid=no 5341fi 5342rm -f core conftest.err conftest.$ac_objext \ 5343 conftest$ac_exeext conftest.$ac_ext 5344fi 5345 5346 5347 CFLAGS="$xorg_testset_save_CFLAGS" 5348 5349 eval supported=\$$cacheid 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5351$as_echo "$supported" >&6; } 5352 if test "$supported" = "yes" ; then 5353 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5354 found="yes" 5355 fi 5356 fi 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372xorg_testset_save_CFLAGS="$CFLAGS" 5373 5374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5382/* end confdefs.h. */ 5383int i; 5384_ACEOF 5385if ac_fn_c_try_compile "$LINENO"; then : 5386 xorg_cv_cc_flag_unknown_warning_option=yes 5387else 5388 xorg_cv_cc_flag_unknown_warning_option=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396fi 5397 5398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5401 fi 5402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5409/* end confdefs.h. */ 5410int i; 5411_ACEOF 5412if ac_fn_c_try_compile "$LINENO"; then : 5413 xorg_cv_cc_flag_unused_command_line_argument=yes 5414else 5415 xorg_cv_cc_flag_unused_command_line_argument=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5418fi 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423fi 5424 5425found="no" 5426 5427 if test $found = "no" ; then 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 fi 5431 5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5434 fi 5435 5436 CFLAGS="$CFLAGS -Wmissing-prototypes" 5437 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5439$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5440 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5441 if eval \${$cacheid+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446int i; 5447int 5448main () 5449{ 5450 5451 ; 5452 return 0; 5453} 5454_ACEOF 5455if ac_fn_c_try_link "$LINENO"; then : 5456 eval $cacheid=yes 5457else 5458 eval $cacheid=no 5459fi 5460rm -f core conftest.err conftest.$ac_objext \ 5461 conftest$ac_exeext conftest.$ac_ext 5462fi 5463 5464 5465 CFLAGS="$xorg_testset_save_CFLAGS" 5466 5467 eval supported=\$$cacheid 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5469$as_echo "$supported" >&6; } 5470 if test "$supported" = "yes" ; then 5471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5472 found="yes" 5473 fi 5474 fi 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490xorg_testset_save_CFLAGS="$CFLAGS" 5491 5492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501int i; 5502_ACEOF 5503if ac_fn_c_try_compile "$LINENO"; then : 5504 xorg_cv_cc_flag_unknown_warning_option=yes 5505else 5506 xorg_cv_cc_flag_unknown_warning_option=no 5507fi 5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5509fi 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5513 CFLAGS="$xorg_testset_save_CFLAGS" 5514fi 5515 5516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5519 fi 5520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5527/* end confdefs.h. */ 5528int i; 5529_ACEOF 5530if ac_fn_c_try_compile "$LINENO"; then : 5531 xorg_cv_cc_flag_unused_command_line_argument=yes 5532else 5533 xorg_cv_cc_flag_unused_command_line_argument=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541fi 5542 5543found="no" 5544 5545 if test $found = "no" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 5550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5552 fi 5553 5554 CFLAGS="$CFLAGS -Wnested-externs" 5555 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5557$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5558 cacheid=xorg_cv_cc_flag__Wnested_externs 5559 if eval \${$cacheid+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564int i; 5565int 5566main () 5567{ 5568 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573if ac_fn_c_try_link "$LINENO"; then : 5574 eval $cacheid=yes 5575else 5576 eval $cacheid=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext \ 5579 conftest$ac_exeext conftest.$ac_ext 5580fi 5581 5582 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 5585 eval supported=\$$cacheid 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5587$as_echo "$supported" >&6; } 5588 if test "$supported" = "yes" ; then 5589 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5590 found="yes" 5591 fi 5592 fi 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608xorg_testset_save_CFLAGS="$CFLAGS" 5609 5610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5615 $as_echo_n "(cached) " >&6 5616else 5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5618/* end confdefs.h. */ 5619int i; 5620_ACEOF 5621if ac_fn_c_try_compile "$LINENO"; then : 5622 xorg_cv_cc_flag_unknown_warning_option=yes 5623else 5624 xorg_cv_cc_flag_unknown_warning_option=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5627fi 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632fi 5633 5634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5637 fi 5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645/* end confdefs.h. */ 5646int i; 5647_ACEOF 5648if ac_fn_c_try_compile "$LINENO"; then : 5649 xorg_cv_cc_flag_unused_command_line_argument=yes 5650else 5651 xorg_cv_cc_flag_unused_command_line_argument=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5654fi 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5659fi 5660 5661found="no" 5662 5663 if test $found = "no" ; then 5664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666 fi 5667 5668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5670 fi 5671 5672 CFLAGS="$CFLAGS -Wbad-function-cast" 5673 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5675$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5676 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5677 if eval \${$cacheid+:} false; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682int i; 5683int 5684main () 5685{ 5686 5687 ; 5688 return 0; 5689} 5690_ACEOF 5691if ac_fn_c_try_link "$LINENO"; then : 5692 eval $cacheid=yes 5693else 5694 eval $cacheid=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext \ 5697 conftest$ac_exeext conftest.$ac_ext 5698fi 5699 5700 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702 5703 eval supported=\$$cacheid 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5705$as_echo "$supported" >&6; } 5706 if test "$supported" = "yes" ; then 5707 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5708 found="yes" 5709 fi 5710 fi 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726xorg_testset_save_CFLAGS="$CFLAGS" 5727 5728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5736/* end confdefs.h. */ 5737int i; 5738_ACEOF 5739if ac_fn_c_try_compile "$LINENO"; then : 5740 xorg_cv_cc_flag_unknown_warning_option=yes 5741else 5742 xorg_cv_cc_flag_unknown_warning_option=no 5743fi 5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5745fi 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5749 CFLAGS="$xorg_testset_save_CFLAGS" 5750fi 5751 5752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5755 fi 5756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763/* end confdefs.h. */ 5764int i; 5765_ACEOF 5766if ac_fn_c_try_compile "$LINENO"; then : 5767 xorg_cv_cc_flag_unused_command_line_argument=yes 5768else 5769 xorg_cv_cc_flag_unused_command_line_argument=no 5770fi 5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5772fi 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5776 CFLAGS="$xorg_testset_save_CFLAGS" 5777fi 5778 5779found="no" 5780 5781 if test $found = "no" ; then 5782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784 fi 5785 5786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5788 fi 5789 5790 CFLAGS="$CFLAGS -Wold-style-definition" 5791 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5793$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5794 cacheid=xorg_cv_cc_flag__Wold_style_definition 5795 if eval \${$cacheid+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800int i; 5801int 5802main () 5803{ 5804 5805 ; 5806 return 0; 5807} 5808_ACEOF 5809if ac_fn_c_try_link "$LINENO"; then : 5810 eval $cacheid=yes 5811else 5812 eval $cacheid=no 5813fi 5814rm -f core conftest.err conftest.$ac_objext \ 5815 conftest$ac_exeext conftest.$ac_ext 5816fi 5817 5818 5819 CFLAGS="$xorg_testset_save_CFLAGS" 5820 5821 eval supported=\$$cacheid 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5823$as_echo "$supported" >&6; } 5824 if test "$supported" = "yes" ; then 5825 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5826 found="yes" 5827 fi 5828 fi 5829 5830 if test $found = "no" ; then 5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 fi 5834 5835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5837 fi 5838 5839 CFLAGS="$CFLAGS -fd" 5840 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5842$as_echo_n "checking if $CC supports -fd... " >&6; } 5843 cacheid=xorg_cv_cc_flag__fd 5844 if eval \${$cacheid+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846else 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849int i; 5850int 5851main () 5852{ 5853 5854 ; 5855 return 0; 5856} 5857_ACEOF 5858if ac_fn_c_try_link "$LINENO"; then : 5859 eval $cacheid=yes 5860else 5861 eval $cacheid=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext \ 5864 conftest$ac_exeext conftest.$ac_ext 5865fi 5866 5867 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869 5870 eval supported=\$$cacheid 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5872$as_echo "$supported" >&6; } 5873 if test "$supported" = "yes" ; then 5874 BASE_CFLAGS="$BASE_CFLAGS -fd" 5875 found="yes" 5876 fi 5877 fi 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893xorg_testset_save_CFLAGS="$CFLAGS" 5894 5895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904int i; 5905_ACEOF 5906if ac_fn_c_try_compile "$LINENO"; then : 5907 xorg_cv_cc_flag_unknown_warning_option=yes 5908else 5909 xorg_cv_cc_flag_unknown_warning_option=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5912fi 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917fi 5918 5919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5922 fi 5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930/* end confdefs.h. */ 5931int i; 5932_ACEOF 5933if ac_fn_c_try_compile "$LINENO"; then : 5934 xorg_cv_cc_flag_unused_command_line_argument=yes 5935else 5936 xorg_cv_cc_flag_unused_command_line_argument=no 5937fi 5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5939fi 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944fi 5945 5946found="no" 5947 5948 if test $found = "no" ; then 5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5951 fi 5952 5953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5955 fi 5956 5957 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5958 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5960$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5961 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5962 if eval \${$cacheid+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968int 5969main () 5970{ 5971 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976if ac_fn_c_try_link "$LINENO"; then : 5977 eval $cacheid=yes 5978else 5979 eval $cacheid=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext \ 5982 conftest$ac_exeext conftest.$ac_ext 5983fi 5984 5985 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987 5988 eval supported=\$$cacheid 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5990$as_echo "$supported" >&6; } 5991 if test "$supported" = "yes" ; then 5992 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5993 found="yes" 5994 fi 5995 fi 5996 5997 5998 5999 6000 6001# This chunk adds additional warnings that could catch undesired effects. 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015xorg_testset_save_CFLAGS="$CFLAGS" 6016 6017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6025/* end confdefs.h. */ 6026int i; 6027_ACEOF 6028if ac_fn_c_try_compile "$LINENO"; then : 6029 xorg_cv_cc_flag_unknown_warning_option=yes 6030else 6031 xorg_cv_cc_flag_unknown_warning_option=no 6032fi 6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6034fi 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039fi 6040 6041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6044 fi 6045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054_ACEOF 6055if ac_fn_c_try_compile "$LINENO"; then : 6056 xorg_cv_cc_flag_unused_command_line_argument=yes 6057else 6058 xorg_cv_cc_flag_unused_command_line_argument=no 6059fi 6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6061fi 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6065 CFLAGS="$xorg_testset_save_CFLAGS" 6066fi 6067 6068found="no" 6069 6070 if test $found = "no" ; then 6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 fi 6074 6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6077 fi 6078 6079 CFLAGS="$CFLAGS -Wunused" 6080 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6082$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6083 cacheid=xorg_cv_cc_flag__Wunused 6084 if eval \${$cacheid+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090int 6091main () 6092{ 6093 6094 ; 6095 return 0; 6096} 6097_ACEOF 6098if ac_fn_c_try_link "$LINENO"; then : 6099 eval $cacheid=yes 6100else 6101 eval $cacheid=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext \ 6104 conftest$ac_exeext conftest.$ac_ext 6105fi 6106 6107 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109 6110 eval supported=\$$cacheid 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6112$as_echo "$supported" >&6; } 6113 if test "$supported" = "yes" ; then 6114 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6115 found="yes" 6116 fi 6117 fi 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133xorg_testset_save_CFLAGS="$CFLAGS" 6134 6135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143/* end confdefs.h. */ 6144int i; 6145_ACEOF 6146if ac_fn_c_try_compile "$LINENO"; then : 6147 xorg_cv_cc_flag_unknown_warning_option=yes 6148else 6149 xorg_cv_cc_flag_unknown_warning_option=no 6150fi 6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6152fi 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6156 CFLAGS="$xorg_testset_save_CFLAGS" 6157fi 6158 6159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6162 fi 6163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172_ACEOF 6173if ac_fn_c_try_compile "$LINENO"; then : 6174 xorg_cv_cc_flag_unused_command_line_argument=yes 6175else 6176 xorg_cv_cc_flag_unused_command_line_argument=no 6177fi 6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6183 CFLAGS="$xorg_testset_save_CFLAGS" 6184fi 6185 6186found="no" 6187 6188 if test $found = "no" ; then 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 fi 6192 6193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6195 fi 6196 6197 CFLAGS="$CFLAGS -Wuninitialized" 6198 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6200$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6201 cacheid=xorg_cv_cc_flag__Wuninitialized 6202 if eval \${$cacheid+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208int 6209main () 6210{ 6211 6212 ; 6213 return 0; 6214} 6215_ACEOF 6216if ac_fn_c_try_link "$LINENO"; then : 6217 eval $cacheid=yes 6218else 6219 eval $cacheid=no 6220fi 6221rm -f core conftest.err conftest.$ac_objext \ 6222 conftest$ac_exeext conftest.$ac_ext 6223fi 6224 6225 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227 6228 eval supported=\$$cacheid 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6230$as_echo "$supported" >&6; } 6231 if test "$supported" = "yes" ; then 6232 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6233 found="yes" 6234 fi 6235 fi 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251xorg_testset_save_CFLAGS="$CFLAGS" 6252 6253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262int i; 6263_ACEOF 6264if ac_fn_c_try_compile "$LINENO"; then : 6265 xorg_cv_cc_flag_unknown_warning_option=yes 6266else 6267 xorg_cv_cc_flag_unknown_warning_option=no 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6270fi 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275fi 6276 6277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6280 fi 6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6288/* end confdefs.h. */ 6289int i; 6290_ACEOF 6291if ac_fn_c_try_compile "$LINENO"; then : 6292 xorg_cv_cc_flag_unused_command_line_argument=yes 6293else 6294 xorg_cv_cc_flag_unused_command_line_argument=no 6295fi 6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6297fi 6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6301 CFLAGS="$xorg_testset_save_CFLAGS" 6302fi 6303 6304found="no" 6305 6306 if test $found = "no" ; then 6307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6309 fi 6310 6311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6313 fi 6314 6315 CFLAGS="$CFLAGS -Wshadow" 6316 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6318$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6319 cacheid=xorg_cv_cc_flag__Wshadow 6320 if eval \${$cacheid+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322else 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325int i; 6326int 6327main () 6328{ 6329 6330 ; 6331 return 0; 6332} 6333_ACEOF 6334if ac_fn_c_try_link "$LINENO"; then : 6335 eval $cacheid=yes 6336else 6337 eval $cacheid=no 6338fi 6339rm -f core conftest.err conftest.$ac_objext \ 6340 conftest$ac_exeext conftest.$ac_ext 6341fi 6342 6343 6344 CFLAGS="$xorg_testset_save_CFLAGS" 6345 6346 eval supported=\$$cacheid 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6348$as_echo "$supported" >&6; } 6349 if test "$supported" = "yes" ; then 6350 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6351 found="yes" 6352 fi 6353 fi 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369xorg_testset_save_CFLAGS="$CFLAGS" 6370 6371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380int i; 6381_ACEOF 6382if ac_fn_c_try_compile "$LINENO"; then : 6383 xorg_cv_cc_flag_unknown_warning_option=yes 6384else 6385 xorg_cv_cc_flag_unknown_warning_option=no 6386fi 6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6392 CFLAGS="$xorg_testset_save_CFLAGS" 6393fi 6394 6395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6398 fi 6399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407int i; 6408_ACEOF 6409if ac_fn_c_try_compile "$LINENO"; then : 6410 xorg_cv_cc_flag_unused_command_line_argument=yes 6411else 6412 xorg_cv_cc_flag_unused_command_line_argument=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6415fi 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420fi 6421 6422found="no" 6423 6424 if test $found = "no" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6431 fi 6432 6433 CFLAGS="$CFLAGS -Wmissing-noreturn" 6434 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6436$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6437 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6438 if eval \${$cacheid+:} false; then : 6439 $as_echo_n "(cached) " >&6 6440else 6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442/* end confdefs.h. */ 6443int i; 6444int 6445main () 6446{ 6447 6448 ; 6449 return 0; 6450} 6451_ACEOF 6452if ac_fn_c_try_link "$LINENO"; then : 6453 eval $cacheid=yes 6454else 6455 eval $cacheid=no 6456fi 6457rm -f core conftest.err conftest.$ac_objext \ 6458 conftest$ac_exeext conftest.$ac_ext 6459fi 6460 6461 6462 CFLAGS="$xorg_testset_save_CFLAGS" 6463 6464 eval supported=\$$cacheid 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6466$as_echo "$supported" >&6; } 6467 if test "$supported" = "yes" ; then 6468 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6469 found="yes" 6470 fi 6471 fi 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487xorg_testset_save_CFLAGS="$CFLAGS" 6488 6489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497/* end confdefs.h. */ 6498int i; 6499_ACEOF 6500if ac_fn_c_try_compile "$LINENO"; then : 6501 xorg_cv_cc_flag_unknown_warning_option=yes 6502else 6503 xorg_cv_cc_flag_unknown_warning_option=no 6504fi 6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6506fi 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511fi 6512 6513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524/* end confdefs.h. */ 6525int i; 6526_ACEOF 6527if ac_fn_c_try_compile "$LINENO"; then : 6528 xorg_cv_cc_flag_unused_command_line_argument=yes 6529else 6530 xorg_cv_cc_flag_unused_command_line_argument=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6533fi 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6537 CFLAGS="$xorg_testset_save_CFLAGS" 6538fi 6539 6540found="no" 6541 6542 if test $found = "no" ; then 6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 fi 6546 6547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6549 fi 6550 6551 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6552 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6554$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6555 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6556 if eval \${$cacheid+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561int i; 6562int 6563main () 6564{ 6565 6566 ; 6567 return 0; 6568} 6569_ACEOF 6570if ac_fn_c_try_link "$LINENO"; then : 6571 eval $cacheid=yes 6572else 6573 eval $cacheid=no 6574fi 6575rm -f core conftest.err conftest.$ac_objext \ 6576 conftest$ac_exeext conftest.$ac_ext 6577fi 6578 6579 6580 CFLAGS="$xorg_testset_save_CFLAGS" 6581 6582 eval supported=\$$cacheid 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6584$as_echo "$supported" >&6; } 6585 if test "$supported" = "yes" ; then 6586 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6587 found="yes" 6588 fi 6589 fi 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605xorg_testset_save_CFLAGS="$CFLAGS" 6606 6607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6612 $as_echo_n "(cached) " >&6 6613else 6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616int i; 6617_ACEOF 6618if ac_fn_c_try_compile "$LINENO"; then : 6619 xorg_cv_cc_flag_unknown_warning_option=yes 6620else 6621 xorg_cv_cc_flag_unknown_warning_option=no 6622fi 6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6628 CFLAGS="$xorg_testset_save_CFLAGS" 6629fi 6630 6631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6634 fi 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643int i; 6644_ACEOF 6645if ac_fn_c_try_compile "$LINENO"; then : 6646 xorg_cv_cc_flag_unused_command_line_argument=yes 6647else 6648 xorg_cv_cc_flag_unused_command_line_argument=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6651fi 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656fi 6657 6658found="no" 6659 6660 if test $found = "no" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 6665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6667 fi 6668 6669 CFLAGS="$CFLAGS -Wredundant-decls" 6670 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6672$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6673 cacheid=xorg_cv_cc_flag__Wredundant_decls 6674 if eval \${$cacheid+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678/* end confdefs.h. */ 6679int i; 6680int 6681main () 6682{ 6683 6684 ; 6685 return 0; 6686} 6687_ACEOF 6688if ac_fn_c_try_link "$LINENO"; then : 6689 eval $cacheid=yes 6690else 6691 eval $cacheid=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext \ 6694 conftest$ac_exeext conftest.$ac_ext 6695fi 6696 6697 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699 6700 eval supported=\$$cacheid 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6702$as_echo "$supported" >&6; } 6703 if test "$supported" = "yes" ; then 6704 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6705 found="yes" 6706 fi 6707 fi 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723xorg_testset_save_CFLAGS="$CFLAGS" 6724 6725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734int i; 6735_ACEOF 6736if ac_fn_c_try_compile "$LINENO"; then : 6737 xorg_cv_cc_flag_unknown_warning_option=yes 6738else 6739 xorg_cv_cc_flag_unknown_warning_option=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6742fi 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747fi 6748 6749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6752 fi 6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761int i; 6762_ACEOF 6763if ac_fn_c_try_compile "$LINENO"; then : 6764 xorg_cv_cc_flag_unused_command_line_argument=yes 6765else 6766 xorg_cv_cc_flag_unused_command_line_argument=no 6767fi 6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6773 CFLAGS="$xorg_testset_save_CFLAGS" 6774fi 6775 6776found="no" 6777 6778 if test $found = "no" ; then 6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6781 fi 6782 6783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6785 fi 6786 6787 CFLAGS="$CFLAGS -Wlogical-op" 6788 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6790$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6791 cacheid=xorg_cv_cc_flag__Wlogical_op 6792 if eval \${$cacheid+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798int 6799main () 6800{ 6801 6802 ; 6803 return 0; 6804} 6805_ACEOF 6806if ac_fn_c_try_link "$LINENO"; then : 6807 eval $cacheid=yes 6808else 6809 eval $cacheid=no 6810fi 6811rm -f core conftest.err conftest.$ac_objext \ 6812 conftest$ac_exeext conftest.$ac_ext 6813fi 6814 6815 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817 6818 eval supported=\$$cacheid 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6820$as_echo "$supported" >&6; } 6821 if test "$supported" = "yes" ; then 6822 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6823 found="yes" 6824 fi 6825 fi 6826 6827 6828 6829# These are currently disabled because they are noisy. They will be enabled 6830# in the future once the codebase is sufficiently modernized to silence 6831# them. For now, I don't want them to drown out the other warnings. 6832# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6833# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6834# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6835 6836# Turn some warnings into errors, so we don't accidently get successful builds 6837# when there are problems that should be fixed. 6838 6839if test "x$SELECTIVE_WERROR" = "xyes" ; then 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853xorg_testset_save_CFLAGS="$CFLAGS" 6854 6855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864int i; 6865_ACEOF 6866if ac_fn_c_try_compile "$LINENO"; then : 6867 xorg_cv_cc_flag_unknown_warning_option=yes 6868else 6869 xorg_cv_cc_flag_unknown_warning_option=no 6870fi 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6872fi 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6876 CFLAGS="$xorg_testset_save_CFLAGS" 6877fi 6878 6879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 fi 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891int i; 6892_ACEOF 6893if ac_fn_c_try_compile "$LINENO"; then : 6894 xorg_cv_cc_flag_unused_command_line_argument=yes 6895else 6896 xorg_cv_cc_flag_unused_command_line_argument=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6899fi 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904fi 6905 6906found="no" 6907 6908 if test $found = "no" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6915 fi 6916 6917 CFLAGS="$CFLAGS -Werror=implicit" 6918 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6920$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6921 cacheid=xorg_cv_cc_flag__Werror_implicit 6922 if eval \${$cacheid+:} false; then : 6923 $as_echo_n "(cached) " >&6 6924else 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926/* end confdefs.h. */ 6927int i; 6928int 6929main () 6930{ 6931 6932 ; 6933 return 0; 6934} 6935_ACEOF 6936if ac_fn_c_try_link "$LINENO"; then : 6937 eval $cacheid=yes 6938else 6939 eval $cacheid=no 6940fi 6941rm -f core conftest.err conftest.$ac_objext \ 6942 conftest$ac_exeext conftest.$ac_ext 6943fi 6944 6945 6946 CFLAGS="$xorg_testset_save_CFLAGS" 6947 6948 eval supported=\$$cacheid 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6950$as_echo "$supported" >&6; } 6951 if test "$supported" = "yes" ; then 6952 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6953 found="yes" 6954 fi 6955 fi 6956 6957 if test $found = "no" ; then 6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 6962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 fi 6965 6966 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6967 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6969$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6970 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6971 if eval \${$cacheid+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976int i; 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO"; then : 6986 eval $cacheid=yes 6987else 6988 eval $cacheid=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext \ 6991 conftest$ac_exeext conftest.$ac_ext 6992fi 6993 6994 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996 6997 eval supported=\$$cacheid 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6999$as_echo "$supported" >&6; } 7000 if test "$supported" = "yes" ; then 7001 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7002 found="yes" 7003 fi 7004 fi 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020xorg_testset_save_CFLAGS="$CFLAGS" 7021 7022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7030/* end confdefs.h. */ 7031int i; 7032_ACEOF 7033if ac_fn_c_try_compile "$LINENO"; then : 7034 xorg_cv_cc_flag_unknown_warning_option=yes 7035else 7036 xorg_cv_cc_flag_unknown_warning_option=no 7037fi 7038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7043 CFLAGS="$xorg_testset_save_CFLAGS" 7044fi 7045 7046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7049 fi 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059_ACEOF 7060if ac_fn_c_try_compile "$LINENO"; then : 7061 xorg_cv_cc_flag_unused_command_line_argument=yes 7062else 7063 xorg_cv_cc_flag_unused_command_line_argument=no 7064fi 7065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7066fi 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7070 CFLAGS="$xorg_testset_save_CFLAGS" 7071fi 7072 7073found="no" 7074 7075 if test $found = "no" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 7080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7082 fi 7083 7084 CFLAGS="$CFLAGS -Werror=nonnull" 7085 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7087$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7088 cacheid=xorg_cv_cc_flag__Werror_nonnull 7089 if eval \${$cacheid+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091else 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094int i; 7095int 7096main () 7097{ 7098 7099 ; 7100 return 0; 7101} 7102_ACEOF 7103if ac_fn_c_try_link "$LINENO"; then : 7104 eval $cacheid=yes 7105else 7106 eval $cacheid=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext \ 7109 conftest$ac_exeext conftest.$ac_ext 7110fi 7111 7112 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114 7115 eval supported=\$$cacheid 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7117$as_echo "$supported" >&6; } 7118 if test "$supported" = "yes" ; then 7119 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7120 found="yes" 7121 fi 7122 fi 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138xorg_testset_save_CFLAGS="$CFLAGS" 7139 7140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7148/* end confdefs.h. */ 7149int i; 7150_ACEOF 7151if ac_fn_c_try_compile "$LINENO"; then : 7152 xorg_cv_cc_flag_unknown_warning_option=yes 7153else 7154 xorg_cv_cc_flag_unknown_warning_option=no 7155fi 7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7157fi 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7161 CFLAGS="$xorg_testset_save_CFLAGS" 7162fi 7163 7164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7167 fi 7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7175/* end confdefs.h. */ 7176int i; 7177_ACEOF 7178if ac_fn_c_try_compile "$LINENO"; then : 7179 xorg_cv_cc_flag_unused_command_line_argument=yes 7180else 7181 xorg_cv_cc_flag_unused_command_line_argument=no 7182fi 7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7188 CFLAGS="$xorg_testset_save_CFLAGS" 7189fi 7190 7191found="no" 7192 7193 if test $found = "no" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 7198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7200 fi 7201 7202 CFLAGS="$CFLAGS -Werror=init-self" 7203 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7205$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7206 cacheid=xorg_cv_cc_flag__Werror_init_self 7207 if eval \${$cacheid+:} false; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212int i; 7213int 7214main () 7215{ 7216 7217 ; 7218 return 0; 7219} 7220_ACEOF 7221if ac_fn_c_try_link "$LINENO"; then : 7222 eval $cacheid=yes 7223else 7224 eval $cacheid=no 7225fi 7226rm -f core conftest.err conftest.$ac_objext \ 7227 conftest$ac_exeext conftest.$ac_ext 7228fi 7229 7230 7231 CFLAGS="$xorg_testset_save_CFLAGS" 7232 7233 eval supported=\$$cacheid 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7235$as_echo "$supported" >&6; } 7236 if test "$supported" = "yes" ; then 7237 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7238 found="yes" 7239 fi 7240 fi 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256xorg_testset_save_CFLAGS="$CFLAGS" 7257 7258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267int i; 7268_ACEOF 7269if ac_fn_c_try_compile "$LINENO"; then : 7270 xorg_cv_cc_flag_unknown_warning_option=yes 7271else 7272 xorg_cv_cc_flag_unknown_warning_option=no 7273fi 7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7275fi 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7279 CFLAGS="$xorg_testset_save_CFLAGS" 7280fi 7281 7282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7285 fi 7286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294int i; 7295_ACEOF 7296if ac_fn_c_try_compile "$LINENO"; then : 7297 xorg_cv_cc_flag_unused_command_line_argument=yes 7298else 7299 xorg_cv_cc_flag_unused_command_line_argument=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7302fi 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7306 CFLAGS="$xorg_testset_save_CFLAGS" 7307fi 7308 7309found="no" 7310 7311 if test $found = "no" ; then 7312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 fi 7315 7316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7318 fi 7319 7320 CFLAGS="$CFLAGS -Werror=main" 7321 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7323$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7324 cacheid=xorg_cv_cc_flag__Werror_main 7325 if eval \${$cacheid+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331int 7332main () 7333{ 7334 7335 ; 7336 return 0; 7337} 7338_ACEOF 7339if ac_fn_c_try_link "$LINENO"; then : 7340 eval $cacheid=yes 7341else 7342 eval $cacheid=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext \ 7345 conftest$ac_exeext conftest.$ac_ext 7346fi 7347 7348 7349 CFLAGS="$xorg_testset_save_CFLAGS" 7350 7351 eval supported=\$$cacheid 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7353$as_echo "$supported" >&6; } 7354 if test "$supported" = "yes" ; then 7355 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7356 found="yes" 7357 fi 7358 fi 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374xorg_testset_save_CFLAGS="$CFLAGS" 7375 7376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384/* end confdefs.h. */ 7385int i; 7386_ACEOF 7387if ac_fn_c_try_compile "$LINENO"; then : 7388 xorg_cv_cc_flag_unknown_warning_option=yes 7389else 7390 xorg_cv_cc_flag_unknown_warning_option=no 7391fi 7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7397 CFLAGS="$xorg_testset_save_CFLAGS" 7398fi 7399 7400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7403 fi 7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409else 7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411/* end confdefs.h. */ 7412int i; 7413_ACEOF 7414if ac_fn_c_try_compile "$LINENO"; then : 7415 xorg_cv_cc_flag_unused_command_line_argument=yes 7416else 7417 xorg_cv_cc_flag_unused_command_line_argument=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7420fi 7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7424 CFLAGS="$xorg_testset_save_CFLAGS" 7425fi 7426 7427found="no" 7428 7429 if test $found = "no" ; then 7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 fi 7433 7434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7436 fi 7437 7438 CFLAGS="$CFLAGS -Werror=missing-braces" 7439 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7441$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7442 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7443 if eval \${$cacheid+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448int i; 7449int 7450main () 7451{ 7452 7453 ; 7454 return 0; 7455} 7456_ACEOF 7457if ac_fn_c_try_link "$LINENO"; then : 7458 eval $cacheid=yes 7459else 7460 eval $cacheid=no 7461fi 7462rm -f core conftest.err conftest.$ac_objext \ 7463 conftest$ac_exeext conftest.$ac_ext 7464fi 7465 7466 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468 7469 eval supported=\$$cacheid 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7471$as_echo "$supported" >&6; } 7472 if test "$supported" = "yes" ; then 7473 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7474 found="yes" 7475 fi 7476 fi 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492xorg_testset_save_CFLAGS="$CFLAGS" 7493 7494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502/* end confdefs.h. */ 7503int i; 7504_ACEOF 7505if ac_fn_c_try_compile "$LINENO"; then : 7506 xorg_cv_cc_flag_unknown_warning_option=yes 7507else 7508 xorg_cv_cc_flag_unknown_warning_option=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7511fi 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530int i; 7531_ACEOF 7532if ac_fn_c_try_compile "$LINENO"; then : 7533 xorg_cv_cc_flag_unused_command_line_argument=yes 7534else 7535 xorg_cv_cc_flag_unused_command_line_argument=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7538fi 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7543fi 7544 7545found="no" 7546 7547 if test $found = "no" ; then 7548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 fi 7551 7552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7554 fi 7555 7556 CFLAGS="$CFLAGS -Werror=sequence-point" 7557 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7559$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7560 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7561 if eval \${$cacheid+:} false; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7565/* end confdefs.h. */ 7566int i; 7567int 7568main () 7569{ 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575if ac_fn_c_try_link "$LINENO"; then : 7576 eval $cacheid=yes 7577else 7578 eval $cacheid=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext \ 7581 conftest$ac_exeext conftest.$ac_ext 7582fi 7583 7584 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586 7587 eval supported=\$$cacheid 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7589$as_echo "$supported" >&6; } 7590 if test "$supported" = "yes" ; then 7591 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7592 found="yes" 7593 fi 7594 fi 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610xorg_testset_save_CFLAGS="$CFLAGS" 7611 7612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7620/* end confdefs.h. */ 7621int i; 7622_ACEOF 7623if ac_fn_c_try_compile "$LINENO"; then : 7624 xorg_cv_cc_flag_unknown_warning_option=yes 7625else 7626 xorg_cv_cc_flag_unknown_warning_option=no 7627fi 7628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7629fi 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7633 CFLAGS="$xorg_testset_save_CFLAGS" 7634fi 7635 7636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7639 fi 7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648int i; 7649_ACEOF 7650if ac_fn_c_try_compile "$LINENO"; then : 7651 xorg_cv_cc_flag_unused_command_line_argument=yes 7652else 7653 xorg_cv_cc_flag_unused_command_line_argument=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661fi 7662 7663found="no" 7664 7665 if test $found = "no" ; then 7666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7668 fi 7669 7670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672 fi 7673 7674 CFLAGS="$CFLAGS -Werror=return-type" 7675 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7677$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7678 cacheid=xorg_cv_cc_flag__Werror_return_type 7679 if eval \${$cacheid+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681else 7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7683/* end confdefs.h. */ 7684int i; 7685int 7686main () 7687{ 7688 7689 ; 7690 return 0; 7691} 7692_ACEOF 7693if ac_fn_c_try_link "$LINENO"; then : 7694 eval $cacheid=yes 7695else 7696 eval $cacheid=no 7697fi 7698rm -f core conftest.err conftest.$ac_objext \ 7699 conftest$ac_exeext conftest.$ac_ext 7700fi 7701 7702 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704 7705 eval supported=\$$cacheid 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7707$as_echo "$supported" >&6; } 7708 if test "$supported" = "yes" ; then 7709 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7710 found="yes" 7711 fi 7712 fi 7713 7714 if test $found = "no" ; then 7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 7719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 fi 7722 7723 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7724 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7726$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7727 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7728 if eval \${$cacheid+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734int 7735main () 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO"; then : 7743 eval $cacheid=yes 7744else 7745 eval $cacheid=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749fi 7750 7751 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753 7754 eval supported=\$$cacheid 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7756$as_echo "$supported" >&6; } 7757 if test "$supported" = "yes" ; then 7758 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7759 found="yes" 7760 fi 7761 fi 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777xorg_testset_save_CFLAGS="$CFLAGS" 7778 7779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788int i; 7789_ACEOF 7790if ac_fn_c_try_compile "$LINENO"; then : 7791 xorg_cv_cc_flag_unknown_warning_option=yes 7792else 7793 xorg_cv_cc_flag_unknown_warning_option=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7796fi 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801fi 7802 7803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7806 fi 7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7814/* end confdefs.h. */ 7815int i; 7816_ACEOF 7817if ac_fn_c_try_compile "$LINENO"; then : 7818 xorg_cv_cc_flag_unused_command_line_argument=yes 7819else 7820 xorg_cv_cc_flag_unused_command_line_argument=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7823fi 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7827 CFLAGS="$xorg_testset_save_CFLAGS" 7828fi 7829 7830found="no" 7831 7832 if test $found = "no" ; then 7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7835 fi 7836 7837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7839 fi 7840 7841 CFLAGS="$CFLAGS -Werror=trigraphs" 7842 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7844$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7845 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7846 if eval \${$cacheid+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851int i; 7852int 7853main () 7854{ 7855 7856 ; 7857 return 0; 7858} 7859_ACEOF 7860if ac_fn_c_try_link "$LINENO"; then : 7861 eval $cacheid=yes 7862else 7863 eval $cacheid=no 7864fi 7865rm -f core conftest.err conftest.$ac_objext \ 7866 conftest$ac_exeext conftest.$ac_ext 7867fi 7868 7869 7870 CFLAGS="$xorg_testset_save_CFLAGS" 7871 7872 eval supported=\$$cacheid 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7874$as_echo "$supported" >&6; } 7875 if test "$supported" = "yes" ; then 7876 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7877 found="yes" 7878 fi 7879 fi 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895xorg_testset_save_CFLAGS="$CFLAGS" 7896 7897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907_ACEOF 7908if ac_fn_c_try_compile "$LINENO"; then : 7909 xorg_cv_cc_flag_unknown_warning_option=yes 7910else 7911 xorg_cv_cc_flag_unknown_warning_option=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7914fi 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7918 CFLAGS="$xorg_testset_save_CFLAGS" 7919fi 7920 7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933int i; 7934_ACEOF 7935if ac_fn_c_try_compile "$LINENO"; then : 7936 xorg_cv_cc_flag_unused_command_line_argument=yes 7937else 7938 xorg_cv_cc_flag_unused_command_line_argument=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7941fi 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7945 CFLAGS="$xorg_testset_save_CFLAGS" 7946fi 7947 7948found="no" 7949 7950 if test $found = "no" ; then 7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 fi 7954 7955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7957 fi 7958 7959 CFLAGS="$CFLAGS -Werror=array-bounds" 7960 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7962$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7963 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7964 if eval \${$cacheid+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970int 7971main () 7972{ 7973 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978if ac_fn_c_try_link "$LINENO"; then : 7979 eval $cacheid=yes 7980else 7981 eval $cacheid=no 7982fi 7983rm -f core conftest.err conftest.$ac_objext \ 7984 conftest$ac_exeext conftest.$ac_ext 7985fi 7986 7987 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989 7990 eval supported=\$$cacheid 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7992$as_echo "$supported" >&6; } 7993 if test "$supported" = "yes" ; then 7994 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7995 found="yes" 7996 fi 7997 fi 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013xorg_testset_save_CFLAGS="$CFLAGS" 8014 8015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021else 8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024int i; 8025_ACEOF 8026if ac_fn_c_try_compile "$LINENO"; then : 8027 xorg_cv_cc_flag_unknown_warning_option=yes 8028else 8029 xorg_cv_cc_flag_unknown_warning_option=no 8030fi 8031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8032fi 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8036 CFLAGS="$xorg_testset_save_CFLAGS" 8037fi 8038 8039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8042 fi 8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8050/* end confdefs.h. */ 8051int i; 8052_ACEOF 8053if ac_fn_c_try_compile "$LINENO"; then : 8054 xorg_cv_cc_flag_unused_command_line_argument=yes 8055else 8056 xorg_cv_cc_flag_unused_command_line_argument=no 8057fi 8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8059fi 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8063 CFLAGS="$xorg_testset_save_CFLAGS" 8064fi 8065 8066found="no" 8067 8068 if test $found = "no" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 fi 8076 8077 CFLAGS="$CFLAGS -Werror=write-strings" 8078 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8080$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8081 cacheid=xorg_cv_cc_flag__Werror_write_strings 8082 if eval \${$cacheid+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088int 8089main () 8090{ 8091 8092 ; 8093 return 0; 8094} 8095_ACEOF 8096if ac_fn_c_try_link "$LINENO"; then : 8097 eval $cacheid=yes 8098else 8099 eval $cacheid=no 8100fi 8101rm -f core conftest.err conftest.$ac_objext \ 8102 conftest$ac_exeext conftest.$ac_ext 8103fi 8104 8105 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107 8108 eval supported=\$$cacheid 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8110$as_echo "$supported" >&6; } 8111 if test "$supported" = "yes" ; then 8112 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8113 found="yes" 8114 fi 8115 fi 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131xorg_testset_save_CFLAGS="$CFLAGS" 8132 8133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142int i; 8143_ACEOF 8144if ac_fn_c_try_compile "$LINENO"; then : 8145 xorg_cv_cc_flag_unknown_warning_option=yes 8146else 8147 xorg_cv_cc_flag_unknown_warning_option=no 8148fi 8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8150fi 8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8154 CFLAGS="$xorg_testset_save_CFLAGS" 8155fi 8156 8157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8160 fi 8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170_ACEOF 8171if ac_fn_c_try_compile "$LINENO"; then : 8172 xorg_cv_cc_flag_unused_command_line_argument=yes 8173else 8174 xorg_cv_cc_flag_unused_command_line_argument=no 8175fi 8176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8177fi 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8181 CFLAGS="$xorg_testset_save_CFLAGS" 8182fi 8183 8184found="no" 8185 8186 if test $found = "no" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 8191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8193 fi 8194 8195 CFLAGS="$CFLAGS -Werror=address" 8196 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8198$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8199 cacheid=xorg_cv_cc_flag__Werror_address 8200 if eval \${$cacheid+:} false; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205int i; 8206int 8207main () 8208{ 8209 8210 ; 8211 return 0; 8212} 8213_ACEOF 8214if ac_fn_c_try_link "$LINENO"; then : 8215 eval $cacheid=yes 8216else 8217 eval $cacheid=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext \ 8220 conftest$ac_exeext conftest.$ac_ext 8221fi 8222 8223 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225 8226 eval supported=\$$cacheid 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8228$as_echo "$supported" >&6; } 8229 if test "$supported" = "yes" ; then 8230 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8231 found="yes" 8232 fi 8233 fi 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249xorg_testset_save_CFLAGS="$CFLAGS" 8250 8251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260int i; 8261_ACEOF 8262if ac_fn_c_try_compile "$LINENO"; then : 8263 xorg_cv_cc_flag_unknown_warning_option=yes 8264else 8265 xorg_cv_cc_flag_unknown_warning_option=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8268fi 8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273fi 8274 8275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8278 fi 8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288_ACEOF 8289if ac_fn_c_try_compile "$LINENO"; then : 8290 xorg_cv_cc_flag_unused_command_line_argument=yes 8291else 8292 xorg_cv_cc_flag_unused_command_line_argument=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8295fi 8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8299 CFLAGS="$xorg_testset_save_CFLAGS" 8300fi 8301 8302found="no" 8303 8304 if test $found = "no" ; then 8305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8307 fi 8308 8309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8311 fi 8312 8313 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8314 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8316$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8317 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8318 if eval \${$cacheid+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8322/* end confdefs.h. */ 8323int i; 8324int 8325main () 8326{ 8327 8328 ; 8329 return 0; 8330} 8331_ACEOF 8332if ac_fn_c_try_link "$LINENO"; then : 8333 eval $cacheid=yes 8334else 8335 eval $cacheid=no 8336fi 8337rm -f core conftest.err conftest.$ac_objext \ 8338 conftest$ac_exeext conftest.$ac_ext 8339fi 8340 8341 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343 8344 eval supported=\$$cacheid 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8346$as_echo "$supported" >&6; } 8347 if test "$supported" = "yes" ; then 8348 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8349 found="yes" 8350 fi 8351 fi 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8363 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8365$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8366 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8367 if eval \${$cacheid+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373int 8374main () 8375{ 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO"; then : 8382 eval $cacheid=yes 8383else 8384 eval $cacheid=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext \ 8387 conftest$ac_exeext conftest.$ac_ext 8388fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395$as_echo "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8398 found="yes" 8399 fi 8400 fi 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416xorg_testset_save_CFLAGS="$CFLAGS" 8417 8418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8426/* end confdefs.h. */ 8427int i; 8428_ACEOF 8429if ac_fn_c_try_compile "$LINENO"; then : 8430 xorg_cv_cc_flag_unknown_warning_option=yes 8431else 8432 xorg_cv_cc_flag_unknown_warning_option=no 8433fi 8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8439 CFLAGS="$xorg_testset_save_CFLAGS" 8440fi 8441 8442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455_ACEOF 8456if ac_fn_c_try_compile "$LINENO"; then : 8457 xorg_cv_cc_flag_unused_command_line_argument=yes 8458else 8459 xorg_cv_cc_flag_unused_command_line_argument=no 8460fi 8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8466 CFLAGS="$xorg_testset_save_CFLAGS" 8467fi 8468 8469found="no" 8470 8471 if test $found = "no" ; then 8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 fi 8475 8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478 fi 8479 8480 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8481 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8483$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8484 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8485 if eval \${$cacheid+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491int 8492main () 8493{ 8494 8495 ; 8496 return 0; 8497} 8498_ACEOF 8499if ac_fn_c_try_link "$LINENO"; then : 8500 eval $cacheid=yes 8501else 8502 eval $cacheid=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext \ 8505 conftest$ac_exeext conftest.$ac_ext 8506fi 8507 8508 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510 8511 eval supported=\$$cacheid 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8513$as_echo "$supported" >&6; } 8514 if test "$supported" = "yes" ; then 8515 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8516 found="yes" 8517 fi 8518 fi 8519 8520 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8521else 8522{ $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 8523$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;} 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537xorg_testset_save_CFLAGS="$CFLAGS" 8538 8539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8544 $as_echo_n "(cached) " >&6 8545else 8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547/* end confdefs.h. */ 8548int i; 8549_ACEOF 8550if ac_fn_c_try_compile "$LINENO"; then : 8551 xorg_cv_cc_flag_unknown_warning_option=yes 8552else 8553 xorg_cv_cc_flag_unknown_warning_option=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8556fi 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561fi 8562 8563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8566 fi 8567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8574/* end confdefs.h. */ 8575int i; 8576_ACEOF 8577if ac_fn_c_try_compile "$LINENO"; then : 8578 xorg_cv_cc_flag_unused_command_line_argument=yes 8579else 8580 xorg_cv_cc_flag_unused_command_line_argument=no 8581fi 8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8583fi 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588fi 8589 8590found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Wimplicit" 8602 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8604$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Wimplicit 8606 if eval \${$cacheid+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608else 8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611int i; 8612int 8613main () 8614{ 8615 8616 ; 8617 return 0; 8618} 8619_ACEOF 8620if ac_fn_c_try_link "$LINENO"; then : 8621 eval $cacheid=yes 8622else 8623 eval $cacheid=no 8624fi 8625rm -f core conftest.err conftest.$ac_objext \ 8626 conftest$ac_exeext conftest.$ac_ext 8627fi 8628 8629 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631 8632 eval supported=\$$cacheid 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8634$as_echo "$supported" >&6; } 8635 if test "$supported" = "yes" ; then 8636 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8637 found="yes" 8638 fi 8639 fi 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655xorg_testset_save_CFLAGS="$CFLAGS" 8656 8657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8662 $as_echo_n "(cached) " >&6 8663else 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666int i; 8667_ACEOF 8668if ac_fn_c_try_compile "$LINENO"; then : 8669 xorg_cv_cc_flag_unknown_warning_option=yes 8670else 8671 xorg_cv_cc_flag_unknown_warning_option=no 8672fi 8673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8674fi 8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8678 CFLAGS="$xorg_testset_save_CFLAGS" 8679fi 8680 8681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8684 fi 8685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693int i; 8694_ACEOF 8695if ac_fn_c_try_compile "$LINENO"; then : 8696 xorg_cv_cc_flag_unused_command_line_argument=yes 8697else 8698 xorg_cv_cc_flag_unused_command_line_argument=no 8699fi 8700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8701fi 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706fi 8707 8708found="no" 8709 8710 if test $found = "no" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 8715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8717 fi 8718 8719 CFLAGS="$CFLAGS -Wnonnull" 8720 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8722$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8723 cacheid=xorg_cv_cc_flag__Wnonnull 8724 if eval \${$cacheid+:} false; then : 8725 $as_echo_n "(cached) " >&6 8726else 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728/* end confdefs.h. */ 8729int i; 8730int 8731main () 8732{ 8733 8734 ; 8735 return 0; 8736} 8737_ACEOF 8738if ac_fn_c_try_link "$LINENO"; then : 8739 eval $cacheid=yes 8740else 8741 eval $cacheid=no 8742fi 8743rm -f core conftest.err conftest.$ac_objext \ 8744 conftest$ac_exeext conftest.$ac_ext 8745fi 8746 8747 8748 CFLAGS="$xorg_testset_save_CFLAGS" 8749 8750 eval supported=\$$cacheid 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8752$as_echo "$supported" >&6; } 8753 if test "$supported" = "yes" ; then 8754 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8755 found="yes" 8756 fi 8757 fi 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773xorg_testset_save_CFLAGS="$CFLAGS" 8774 8775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8780 $as_echo_n "(cached) " >&6 8781else 8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783/* end confdefs.h. */ 8784int i; 8785_ACEOF 8786if ac_fn_c_try_compile "$LINENO"; then : 8787 xorg_cv_cc_flag_unknown_warning_option=yes 8788else 8789 xorg_cv_cc_flag_unknown_warning_option=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8792fi 8793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797fi 8798 8799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8802 fi 8803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808else 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811int i; 8812_ACEOF 8813if ac_fn_c_try_compile "$LINENO"; then : 8814 xorg_cv_cc_flag_unused_command_line_argument=yes 8815else 8816 xorg_cv_cc_flag_unused_command_line_argument=no 8817fi 8818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8823 CFLAGS="$xorg_testset_save_CFLAGS" 8824fi 8825 8826found="no" 8827 8828 if test $found = "no" ; then 8829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8831 fi 8832 8833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8835 fi 8836 8837 CFLAGS="$CFLAGS -Winit-self" 8838 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8840$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8841 cacheid=xorg_cv_cc_flag__Winit_self 8842 if eval \${$cacheid+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844else 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848int 8849main () 8850{ 8851 8852 ; 8853 return 0; 8854} 8855_ACEOF 8856if ac_fn_c_try_link "$LINENO"; then : 8857 eval $cacheid=yes 8858else 8859 eval $cacheid=no 8860fi 8861rm -f core conftest.err conftest.$ac_objext \ 8862 conftest$ac_exeext conftest.$ac_ext 8863fi 8864 8865 8866 CFLAGS="$xorg_testset_save_CFLAGS" 8867 8868 eval supported=\$$cacheid 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8870$as_echo "$supported" >&6; } 8871 if test "$supported" = "yes" ; then 8872 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8873 found="yes" 8874 fi 8875 fi 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891xorg_testset_save_CFLAGS="$CFLAGS" 8892 8893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899else 8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901/* end confdefs.h. */ 8902int i; 8903_ACEOF 8904if ac_fn_c_try_compile "$LINENO"; then : 8905 xorg_cv_cc_flag_unknown_warning_option=yes 8906else 8907 xorg_cv_cc_flag_unknown_warning_option=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8910fi 8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915fi 8916 8917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8920 fi 8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8925 $as_echo_n "(cached) " >&6 8926else 8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928/* end confdefs.h. */ 8929int i; 8930_ACEOF 8931if ac_fn_c_try_compile "$LINENO"; then : 8932 xorg_cv_cc_flag_unused_command_line_argument=yes 8933else 8934 xorg_cv_cc_flag_unused_command_line_argument=no 8935fi 8936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8937fi 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8941 CFLAGS="$xorg_testset_save_CFLAGS" 8942fi 8943 8944found="no" 8945 8946 if test $found = "no" ; then 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 fi 8950 8951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8953 fi 8954 8955 CFLAGS="$CFLAGS -Wmain" 8956 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8958$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8959 cacheid=xorg_cv_cc_flag__Wmain 8960 if eval \${$cacheid+:} false; then : 8961 $as_echo_n "(cached) " >&6 8962else 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965int i; 8966int 8967main () 8968{ 8969 8970 ; 8971 return 0; 8972} 8973_ACEOF 8974if ac_fn_c_try_link "$LINENO"; then : 8975 eval $cacheid=yes 8976else 8977 eval $cacheid=no 8978fi 8979rm -f core conftest.err conftest.$ac_objext \ 8980 conftest$ac_exeext conftest.$ac_ext 8981fi 8982 8983 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985 8986 eval supported=\$$cacheid 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8988$as_echo "$supported" >&6; } 8989 if test "$supported" = "yes" ; then 8990 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8991 found="yes" 8992 fi 8993 fi 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009xorg_testset_save_CFLAGS="$CFLAGS" 9010 9011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9016 $as_echo_n "(cached) " >&6 9017else 9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019/* end confdefs.h. */ 9020int i; 9021_ACEOF 9022if ac_fn_c_try_compile "$LINENO"; then : 9023 xorg_cv_cc_flag_unknown_warning_option=yes 9024else 9025 xorg_cv_cc_flag_unknown_warning_option=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9028fi 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033fi 9034 9035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047int i; 9048_ACEOF 9049if ac_fn_c_try_compile "$LINENO"; then : 9050 xorg_cv_cc_flag_unused_command_line_argument=yes 9051else 9052 xorg_cv_cc_flag_unused_command_line_argument=no 9053fi 9054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9055fi 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9059 CFLAGS="$xorg_testset_save_CFLAGS" 9060fi 9061 9062found="no" 9063 9064 if test $found = "no" ; then 9065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9067 fi 9068 9069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9071 fi 9072 9073 CFLAGS="$CFLAGS -Wmissing-braces" 9074 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9076$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9077 cacheid=xorg_cv_cc_flag__Wmissing_braces 9078 if eval \${$cacheid+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082/* end confdefs.h. */ 9083int i; 9084int 9085main () 9086{ 9087 9088 ; 9089 return 0; 9090} 9091_ACEOF 9092if ac_fn_c_try_link "$LINENO"; then : 9093 eval $cacheid=yes 9094else 9095 eval $cacheid=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext \ 9098 conftest$ac_exeext conftest.$ac_ext 9099fi 9100 9101 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103 9104 eval supported=\$$cacheid 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9106$as_echo "$supported" >&6; } 9107 if test "$supported" = "yes" ; then 9108 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9109 found="yes" 9110 fi 9111 fi 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127xorg_testset_save_CFLAGS="$CFLAGS" 9128 9129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9134 $as_echo_n "(cached) " >&6 9135else 9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9137/* end confdefs.h. */ 9138int i; 9139_ACEOF 9140if ac_fn_c_try_compile "$LINENO"; then : 9141 xorg_cv_cc_flag_unknown_warning_option=yes 9142else 9143 xorg_cv_cc_flag_unknown_warning_option=no 9144fi 9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9146fi 9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9150 CFLAGS="$xorg_testset_save_CFLAGS" 9151fi 9152 9153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9156 fi 9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165int i; 9166_ACEOF 9167if ac_fn_c_try_compile "$LINENO"; then : 9168 xorg_cv_cc_flag_unused_command_line_argument=yes 9169else 9170 xorg_cv_cc_flag_unused_command_line_argument=no 9171fi 9172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9173fi 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9177 CFLAGS="$xorg_testset_save_CFLAGS" 9178fi 9179 9180found="no" 9181 9182 if test $found = "no" ; then 9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 fi 9186 9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9189 fi 9190 9191 CFLAGS="$CFLAGS -Wsequence-point" 9192 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9194$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9195 cacheid=xorg_cv_cc_flag__Wsequence_point 9196 if eval \${$cacheid+:} false; then : 9197 $as_echo_n "(cached) " >&6 9198else 9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9200/* end confdefs.h. */ 9201int i; 9202int 9203main () 9204{ 9205 9206 ; 9207 return 0; 9208} 9209_ACEOF 9210if ac_fn_c_try_link "$LINENO"; then : 9211 eval $cacheid=yes 9212else 9213 eval $cacheid=no 9214fi 9215rm -f core conftest.err conftest.$ac_objext \ 9216 conftest$ac_exeext conftest.$ac_ext 9217fi 9218 9219 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221 9222 eval supported=\$$cacheid 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9224$as_echo "$supported" >&6; } 9225 if test "$supported" = "yes" ; then 9226 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9227 found="yes" 9228 fi 9229 fi 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245xorg_testset_save_CFLAGS="$CFLAGS" 9246 9247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9252 $as_echo_n "(cached) " >&6 9253else 9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9255/* end confdefs.h. */ 9256int i; 9257_ACEOF 9258if ac_fn_c_try_compile "$LINENO"; then : 9259 xorg_cv_cc_flag_unknown_warning_option=yes 9260else 9261 xorg_cv_cc_flag_unknown_warning_option=no 9262fi 9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9268 CFLAGS="$xorg_testset_save_CFLAGS" 9269fi 9270 9271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9274 fi 9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282/* end confdefs.h. */ 9283int i; 9284_ACEOF 9285if ac_fn_c_try_compile "$LINENO"; then : 9286 xorg_cv_cc_flag_unused_command_line_argument=yes 9287else 9288 xorg_cv_cc_flag_unused_command_line_argument=no 9289fi 9290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9291fi 9292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9295 CFLAGS="$xorg_testset_save_CFLAGS" 9296fi 9297 9298found="no" 9299 9300 if test $found = "no" ; then 9301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9303 fi 9304 9305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9307 fi 9308 9309 CFLAGS="$CFLAGS -Wreturn-type" 9310 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9312$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9313 cacheid=xorg_cv_cc_flag__Wreturn_type 9314 if eval \${$cacheid+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320int 9321main () 9322{ 9323 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_link "$LINENO"; then : 9329 eval $cacheid=yes 9330else 9331 eval $cacheid=no 9332fi 9333rm -f core conftest.err conftest.$ac_objext \ 9334 conftest$ac_exeext conftest.$ac_ext 9335fi 9336 9337 9338 CFLAGS="$xorg_testset_save_CFLAGS" 9339 9340 eval supported=\$$cacheid 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9342$as_echo "$supported" >&6; } 9343 if test "$supported" = "yes" ; then 9344 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9345 found="yes" 9346 fi 9347 fi 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363xorg_testset_save_CFLAGS="$CFLAGS" 9364 9365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9370 $as_echo_n "(cached) " >&6 9371else 9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9373/* end confdefs.h. */ 9374int i; 9375_ACEOF 9376if ac_fn_c_try_compile "$LINENO"; then : 9377 xorg_cv_cc_flag_unknown_warning_option=yes 9378else 9379 xorg_cv_cc_flag_unknown_warning_option=no 9380fi 9381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9382fi 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9386 CFLAGS="$xorg_testset_save_CFLAGS" 9387fi 9388 9389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9392 fi 9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401int i; 9402_ACEOF 9403if ac_fn_c_try_compile "$LINENO"; then : 9404 xorg_cv_cc_flag_unused_command_line_argument=yes 9405else 9406 xorg_cv_cc_flag_unused_command_line_argument=no 9407fi 9408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9409fi 9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9413 CFLAGS="$xorg_testset_save_CFLAGS" 9414fi 9415 9416found="no" 9417 9418 if test $found = "no" ; then 9419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 fi 9422 9423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9425 fi 9426 9427 CFLAGS="$CFLAGS -Wtrigraphs" 9428 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9430$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9431 cacheid=xorg_cv_cc_flag__Wtrigraphs 9432 if eval \${$cacheid+:} false; then : 9433 $as_echo_n "(cached) " >&6 9434else 9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9436/* end confdefs.h. */ 9437int i; 9438int 9439main () 9440{ 9441 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446if ac_fn_c_try_link "$LINENO"; then : 9447 eval $cacheid=yes 9448else 9449 eval $cacheid=no 9450fi 9451rm -f core conftest.err conftest.$ac_objext \ 9452 conftest$ac_exeext conftest.$ac_ext 9453fi 9454 9455 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457 9458 eval supported=\$$cacheid 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9460$as_echo "$supported" >&6; } 9461 if test "$supported" = "yes" ; then 9462 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9463 found="yes" 9464 fi 9465 fi 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481xorg_testset_save_CFLAGS="$CFLAGS" 9482 9483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9488 $as_echo_n "(cached) " >&6 9489else 9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491/* end confdefs.h. */ 9492int i; 9493_ACEOF 9494if ac_fn_c_try_compile "$LINENO"; then : 9495 xorg_cv_cc_flag_unknown_warning_option=yes 9496else 9497 xorg_cv_cc_flag_unknown_warning_option=no 9498fi 9499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9500fi 9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9504 CFLAGS="$xorg_testset_save_CFLAGS" 9505fi 9506 9507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9510 fi 9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520_ACEOF 9521if ac_fn_c_try_compile "$LINENO"; then : 9522 xorg_cv_cc_flag_unused_command_line_argument=yes 9523else 9524 xorg_cv_cc_flag_unused_command_line_argument=no 9525fi 9526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9527fi 9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9531 CFLAGS="$xorg_testset_save_CFLAGS" 9532fi 9533 9534found="no" 9535 9536 if test $found = "no" ; then 9537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9539 fi 9540 9541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9543 fi 9544 9545 CFLAGS="$CFLAGS -Warray-bounds" 9546 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9548$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9549 cacheid=xorg_cv_cc_flag__Warray_bounds 9550 if eval \${$cacheid+:} false; then : 9551 $as_echo_n "(cached) " >&6 9552else 9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9554/* end confdefs.h. */ 9555int i; 9556int 9557main () 9558{ 9559 9560 ; 9561 return 0; 9562} 9563_ACEOF 9564if ac_fn_c_try_link "$LINENO"; then : 9565 eval $cacheid=yes 9566else 9567 eval $cacheid=no 9568fi 9569rm -f core conftest.err conftest.$ac_objext \ 9570 conftest$ac_exeext conftest.$ac_ext 9571fi 9572 9573 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575 9576 eval supported=\$$cacheid 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9578$as_echo "$supported" >&6; } 9579 if test "$supported" = "yes" ; then 9580 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9581 found="yes" 9582 fi 9583 fi 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599xorg_testset_save_CFLAGS="$CFLAGS" 9600 9601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9606 $as_echo_n "(cached) " >&6 9607else 9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610int i; 9611_ACEOF 9612if ac_fn_c_try_compile "$LINENO"; then : 9613 xorg_cv_cc_flag_unknown_warning_option=yes 9614else 9615 xorg_cv_cc_flag_unknown_warning_option=no 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623fi 9624 9625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 fi 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637int i; 9638_ACEOF 9639if ac_fn_c_try_compile "$LINENO"; then : 9640 xorg_cv_cc_flag_unused_command_line_argument=yes 9641else 9642 xorg_cv_cc_flag_unused_command_line_argument=no 9643fi 9644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9645fi 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9649 CFLAGS="$xorg_testset_save_CFLAGS" 9650fi 9651 9652found="no" 9653 9654 if test $found = "no" ; then 9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 fi 9658 9659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9661 fi 9662 9663 CFLAGS="$CFLAGS -Wwrite-strings" 9664 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9666$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9667 cacheid=xorg_cv_cc_flag__Wwrite_strings 9668 if eval \${$cacheid+:} false; then : 9669 $as_echo_n "(cached) " >&6 9670else 9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672/* end confdefs.h. */ 9673int i; 9674int 9675main () 9676{ 9677 9678 ; 9679 return 0; 9680} 9681_ACEOF 9682if ac_fn_c_try_link "$LINENO"; then : 9683 eval $cacheid=yes 9684else 9685 eval $cacheid=no 9686fi 9687rm -f core conftest.err conftest.$ac_objext \ 9688 conftest$ac_exeext conftest.$ac_ext 9689fi 9690 9691 9692 CFLAGS="$xorg_testset_save_CFLAGS" 9693 9694 eval supported=\$$cacheid 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9696$as_echo "$supported" >&6; } 9697 if test "$supported" = "yes" ; then 9698 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9699 found="yes" 9700 fi 9701 fi 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717xorg_testset_save_CFLAGS="$CFLAGS" 9718 9719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9724 $as_echo_n "(cached) " >&6 9725else 9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9727/* end confdefs.h. */ 9728int i; 9729_ACEOF 9730if ac_fn_c_try_compile "$LINENO"; then : 9731 xorg_cv_cc_flag_unknown_warning_option=yes 9732else 9733 xorg_cv_cc_flag_unknown_warning_option=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9736fi 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741fi 9742 9743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9746 fi 9747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752else 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755int i; 9756_ACEOF 9757if ac_fn_c_try_compile "$LINENO"; then : 9758 xorg_cv_cc_flag_unused_command_line_argument=yes 9759else 9760 xorg_cv_cc_flag_unused_command_line_argument=no 9761fi 9762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9763fi 9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9767 CFLAGS="$xorg_testset_save_CFLAGS" 9768fi 9769 9770found="no" 9771 9772 if test $found = "no" ; then 9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 fi 9776 9777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9779 fi 9780 9781 CFLAGS="$CFLAGS -Waddress" 9782 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9784$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9785 cacheid=xorg_cv_cc_flag__Waddress 9786 if eval \${$cacheid+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788else 9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9790/* end confdefs.h. */ 9791int i; 9792int 9793main () 9794{ 9795 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800if ac_fn_c_try_link "$LINENO"; then : 9801 eval $cacheid=yes 9802else 9803 eval $cacheid=no 9804fi 9805rm -f core conftest.err conftest.$ac_objext \ 9806 conftest$ac_exeext conftest.$ac_ext 9807fi 9808 9809 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811 9812 eval supported=\$$cacheid 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9814$as_echo "$supported" >&6; } 9815 if test "$supported" = "yes" ; then 9816 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9817 found="yes" 9818 fi 9819 fi 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835xorg_testset_save_CFLAGS="$CFLAGS" 9836 9837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843else 9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846int i; 9847_ACEOF 9848if ac_fn_c_try_compile "$LINENO"; then : 9849 xorg_cv_cc_flag_unknown_warning_option=yes 9850else 9851 xorg_cv_cc_flag_unknown_warning_option=no 9852fi 9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9854fi 9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859fi 9860 9861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9864 fi 9865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870else 9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9872/* end confdefs.h. */ 9873int i; 9874_ACEOF 9875if ac_fn_c_try_compile "$LINENO"; then : 9876 xorg_cv_cc_flag_unused_command_line_argument=yes 9877else 9878 xorg_cv_cc_flag_unused_command_line_argument=no 9879fi 9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9881fi 9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886fi 9887 9888found="no" 9889 9890 if test $found = "no" ; then 9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 fi 9894 9895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9897 fi 9898 9899 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9900 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9902$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9903 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9904 if eval \${$cacheid+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906else 9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910int 9911main () 9912{ 9913 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO"; then : 9919 eval $cacheid=yes 9920else 9921 eval $cacheid=no 9922fi 9923rm -f core conftest.err conftest.$ac_objext \ 9924 conftest$ac_exeext conftest.$ac_ext 9925fi 9926 9927 9928 CFLAGS="$xorg_testset_save_CFLAGS" 9929 9930 eval supported=\$$cacheid 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9932$as_echo "$supported" >&6; } 9933 if test "$supported" = "yes" ; then 9934 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9935 found="yes" 9936 fi 9937 fi 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953xorg_testset_save_CFLAGS="$CFLAGS" 9954 9955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964int i; 9965_ACEOF 9966if ac_fn_c_try_compile "$LINENO"; then : 9967 xorg_cv_cc_flag_unknown_warning_option=yes 9968else 9969 xorg_cv_cc_flag_unknown_warning_option=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977fi 9978 9979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 fi 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9987 $as_echo_n "(cached) " >&6 9988else 9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991int i; 9992_ACEOF 9993if ac_fn_c_try_compile "$LINENO"; then : 9994 xorg_cv_cc_flag_unused_command_line_argument=yes 9995else 9996 xorg_cv_cc_flag_unused_command_line_argument=no 9997fi 9998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9999fi 10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10003 CFLAGS="$xorg_testset_save_CFLAGS" 10004fi 10005 10006found="no" 10007 10008 if test $found = "no" ; then 10009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10011 fi 10012 10013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10015 fi 10016 10017 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10018 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10020$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10021 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10022 if eval \${$cacheid+:} false; then : 10023 $as_echo_n "(cached) " >&6 10024else 10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10026/* end confdefs.h. */ 10027int i; 10028int 10029main () 10030{ 10031 10032 ; 10033 return 0; 10034} 10035_ACEOF 10036if ac_fn_c_try_link "$LINENO"; then : 10037 eval $cacheid=yes 10038else 10039 eval $cacheid=no 10040fi 10041rm -f core conftest.err conftest.$ac_objext \ 10042 conftest$ac_exeext conftest.$ac_ext 10043fi 10044 10045 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047 10048 eval supported=\$$cacheid 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10050$as_echo "$supported" >&6; } 10051 if test "$supported" = "yes" ; then 10052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10053 found="yes" 10054 fi 10055 fi 10056 10057 10058fi 10059 10060 10061 10062 10063 10064 10065 10066 CWARNFLAGS="$BASE_CFLAGS" 10067 if test "x$GCC" = xyes ; then 10068 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10069 fi 10070 10071 10072 10073 10074 10075 10076 10077 10078# Check whether --enable-strict-compilation was given. 10079if test "${enable_strict_compilation+set}" = set; then : 10080 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10081else 10082 STRICT_COMPILE=no 10083fi 10084 10085 10086 10087 10088 10089 10090STRICT_CFLAGS="" 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104xorg_testset_save_CFLAGS="$CFLAGS" 10105 10106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115int i; 10116_ACEOF 10117if ac_fn_c_try_compile "$LINENO"; then : 10118 xorg_cv_cc_flag_unknown_warning_option=yes 10119else 10120 xorg_cv_cc_flag_unknown_warning_option=no 10121fi 10122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10123fi 10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10127 CFLAGS="$xorg_testset_save_CFLAGS" 10128fi 10129 10130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 fi 10134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10138 $as_echo_n "(cached) " >&6 10139else 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142int i; 10143_ACEOF 10144if ac_fn_c_try_compile "$LINENO"; then : 10145 xorg_cv_cc_flag_unused_command_line_argument=yes 10146else 10147 xorg_cv_cc_flag_unused_command_line_argument=no 10148fi 10149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10150fi 10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155fi 10156 10157found="no" 10158 10159 if test $found = "no" ; then 10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 fi 10163 10164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10166 fi 10167 10168 CFLAGS="$CFLAGS -pedantic" 10169 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10171$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10172 cacheid=xorg_cv_cc_flag__pedantic 10173 if eval \${$cacheid+:} false; then : 10174 $as_echo_n "(cached) " >&6 10175else 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177/* end confdefs.h. */ 10178int i; 10179int 10180main () 10181{ 10182 10183 ; 10184 return 0; 10185} 10186_ACEOF 10187if ac_fn_c_try_link "$LINENO"; then : 10188 eval $cacheid=yes 10189else 10190 eval $cacheid=no 10191fi 10192rm -f core conftest.err conftest.$ac_objext \ 10193 conftest$ac_exeext conftest.$ac_ext 10194fi 10195 10196 10197 CFLAGS="$xorg_testset_save_CFLAGS" 10198 10199 eval supported=\$$cacheid 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10201$as_echo "$supported" >&6; } 10202 if test "$supported" = "yes" ; then 10203 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10204 found="yes" 10205 fi 10206 fi 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222xorg_testset_save_CFLAGS="$CFLAGS" 10223 10224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10229 $as_echo_n "(cached) " >&6 10230else 10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10232/* end confdefs.h. */ 10233int i; 10234_ACEOF 10235if ac_fn_c_try_compile "$LINENO"; then : 10236 xorg_cv_cc_flag_unknown_warning_option=yes 10237else 10238 xorg_cv_cc_flag_unknown_warning_option=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10241fi 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10245 CFLAGS="$xorg_testset_save_CFLAGS" 10246fi 10247 10248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10251 fi 10252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261_ACEOF 10262if ac_fn_c_try_compile "$LINENO"; then : 10263 xorg_cv_cc_flag_unused_command_line_argument=yes 10264else 10265 xorg_cv_cc_flag_unused_command_line_argument=no 10266fi 10267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10268fi 10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10272 CFLAGS="$xorg_testset_save_CFLAGS" 10273fi 10274 10275found="no" 10276 10277 if test $found = "no" ; then 10278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10280 fi 10281 10282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10284 fi 10285 10286 CFLAGS="$CFLAGS -Werror" 10287 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10289$as_echo_n "checking if $CC supports -Werror... " >&6; } 10290 cacheid=xorg_cv_cc_flag__Werror 10291 if eval \${$cacheid+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293else 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295/* end confdefs.h. */ 10296int i; 10297int 10298main () 10299{ 10300 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305if ac_fn_c_try_link "$LINENO"; then : 10306 eval $cacheid=yes 10307else 10308 eval $cacheid=no 10309fi 10310rm -f core conftest.err conftest.$ac_objext \ 10311 conftest$ac_exeext conftest.$ac_ext 10312fi 10313 10314 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316 10317 eval supported=\$$cacheid 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10319$as_echo "$supported" >&6; } 10320 if test "$supported" = "yes" ; then 10321 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10322 found="yes" 10323 fi 10324 fi 10325 10326 if test $found = "no" ; then 10327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10329 fi 10330 10331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333 fi 10334 10335 CFLAGS="$CFLAGS -errwarn" 10336 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10338$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10339 cacheid=xorg_cv_cc_flag__errwarn 10340 if eval \${$cacheid+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO"; then : 10355 eval $cacheid=yes 10356else 10357 eval $cacheid=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext \ 10360 conftest$ac_exeext conftest.$ac_ext 10361fi 10362 10363 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365 10366 eval supported=\$$cacheid 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10368$as_echo "$supported" >&6; } 10369 if test "$supported" = "yes" ; then 10370 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10371 found="yes" 10372 fi 10373 fi 10374 10375 10376 10377# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10378# activate it with -Werror, so we add it here explicitly. 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392xorg_testset_save_CFLAGS="$CFLAGS" 10393 10394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10402/* end confdefs.h. */ 10403int i; 10404_ACEOF 10405if ac_fn_c_try_compile "$LINENO"; then : 10406 xorg_cv_cc_flag_unknown_warning_option=yes 10407else 10408 xorg_cv_cc_flag_unknown_warning_option=no 10409fi 10410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10411fi 10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10415 CFLAGS="$xorg_testset_save_CFLAGS" 10416fi 10417 10418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10421 fi 10422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10429/* end confdefs.h. */ 10430int i; 10431_ACEOF 10432if ac_fn_c_try_compile "$LINENO"; then : 10433 xorg_cv_cc_flag_unused_command_line_argument=yes 10434else 10435 xorg_cv_cc_flag_unused_command_line_argument=no 10436fi 10437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10438fi 10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10442 CFLAGS="$xorg_testset_save_CFLAGS" 10443fi 10444 10445found="no" 10446 10447 if test $found = "no" ; then 10448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10450 fi 10451 10452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10454 fi 10455 10456 CFLAGS="$CFLAGS -Werror=attributes" 10457 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10459$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10460 cacheid=xorg_cv_cc_flag__Werror_attributes 10461 if eval \${$cacheid+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465/* end confdefs.h. */ 10466int i; 10467int 10468main () 10469{ 10470 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475if ac_fn_c_try_link "$LINENO"; then : 10476 eval $cacheid=yes 10477else 10478 eval $cacheid=no 10479fi 10480rm -f core conftest.err conftest.$ac_objext \ 10481 conftest$ac_exeext conftest.$ac_ext 10482fi 10483 10484 10485 CFLAGS="$xorg_testset_save_CFLAGS" 10486 10487 eval supported=\$$cacheid 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10489$as_echo "$supported" >&6; } 10490 if test "$supported" = "yes" ; then 10491 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10492 found="yes" 10493 fi 10494 fi 10495 10496 10497 10498if test "x$STRICT_COMPILE" = "xyes"; then 10499 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10500 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10501fi 10502 10503 10504 10505 10506 10507 10508cat >>confdefs.h <<_ACEOF 10509#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10510_ACEOF 10511 10512 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10513 if test "x$PVM" = "x"; then 10514 PVM="0" 10515 fi 10516 10517cat >>confdefs.h <<_ACEOF 10518#define PACKAGE_VERSION_MINOR $PVM 10519_ACEOF 10520 10521 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10522 if test "x$PVP" = "x"; then 10523 PVP="0" 10524 fi 10525 10526cat >>confdefs.h <<_ACEOF 10527#define PACKAGE_VERSION_PATCHLEVEL $PVP 10528_ACEOF 10529 10530 10531 10532CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10533mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10534|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10535echo 'git directory not found: installing possibly empty changelog.' >&2)" 10536 10537 10538 10539 10540macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10541INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10542mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10543|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10544echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10545 10546 10547 10548 10549 10550 10551if test x$APP_MAN_SUFFIX = x ; then 10552 APP_MAN_SUFFIX=1 10553fi 10554if test x$APP_MAN_DIR = x ; then 10555 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10556fi 10557 10558if test x$LIB_MAN_SUFFIX = x ; then 10559 LIB_MAN_SUFFIX=3 10560fi 10561if test x$LIB_MAN_DIR = x ; then 10562 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10563fi 10564 10565if test x$FILE_MAN_SUFFIX = x ; then 10566 case $host_os in 10567 solaris*) FILE_MAN_SUFFIX=4 ;; 10568 *) FILE_MAN_SUFFIX=5 ;; 10569 esac 10570fi 10571if test x$FILE_MAN_DIR = x ; then 10572 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10573fi 10574 10575if test x$MISC_MAN_SUFFIX = x ; then 10576 case $host_os in 10577 solaris*) MISC_MAN_SUFFIX=5 ;; 10578 *) MISC_MAN_SUFFIX=7 ;; 10579 esac 10580fi 10581if test x$MISC_MAN_DIR = x ; then 10582 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10583fi 10584 10585if test x$DRIVER_MAN_SUFFIX = x ; then 10586 case $host_os in 10587 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10588 *) DRIVER_MAN_SUFFIX=4 ;; 10589 esac 10590fi 10591if test x$DRIVER_MAN_DIR = x ; then 10592 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10593fi 10594 10595if test x$ADMIN_MAN_SUFFIX = x ; then 10596 case $host_os in 10597 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10598 *) ADMIN_MAN_SUFFIX=8 ;; 10599 esac 10600fi 10601if test x$ADMIN_MAN_DIR = x ; then 10602 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10603fi 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619XORG_MAN_PAGE="X Version 11" 10620 10621MAN_SUBSTS="\ 10622 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10623 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10624 -e 's|__xservername__|Xorg|g' \ 10625 -e 's|__xconfigfile__|xorg.conf|g' \ 10626 -e 's|__projectroot__|\$(prefix)|g' \ 10627 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10628 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10629 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10630 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10631 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10632 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10633 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10634 10635 10636 10637# Check whether --enable-silent-rules was given. 10638if test "${enable_silent_rules+set}" = set; then : 10639 enableval=$enable_silent_rules; 10640fi 10641 10642case $enable_silent_rules in # ((( 10643 yes) AM_DEFAULT_VERBOSITY=0;; 10644 no) AM_DEFAULT_VERBOSITY=1;; 10645 *) AM_DEFAULT_VERBOSITY=0;; 10646esac 10647am_make=${MAKE-make} 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10649$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10650if ${am_cv_make_support_nested_variables+:} false; then : 10651 $as_echo_n "(cached) " >&6 10652else 10653 if $as_echo 'TRUE=$(BAR$(V)) 10654BAR0=false 10655BAR1=true 10656V=1 10657am__doit: 10658 @$(TRUE) 10659.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10660 am_cv_make_support_nested_variables=yes 10661else 10662 am_cv_make_support_nested_variables=no 10663fi 10664fi 10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10666$as_echo "$am_cv_make_support_nested_variables" >&6; } 10667if test $am_cv_make_support_nested_variables = yes; then 10668 AM_V='$(V)' 10669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10670else 10671 AM_V=$AM_DEFAULT_VERBOSITY 10672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10673fi 10674AM_BACKSLASH='\' 10675 10676 10677 10678# Define the installation directory for the x11 performance compare scripts 10679x11perfcompdir=$libdir/X11/x11perfcomp 10680 10681 10682# Checks for programs run by the scripts we install 10683# Extract the first word of "mktemp", so it can be a program name with args. 10684set dummy mktemp; ac_word=$2 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10686$as_echo_n "checking for $ac_word... " >&6; } 10687if ${ac_cv_path_MKTEMP+:} false; then : 10688 $as_echo_n "(cached) " >&6 10689else 10690 case $MKTEMP in 10691 [\\/]* | ?:[\\/]*) 10692 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 10693 ;; 10694 *) 10695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10696for as_dir in $PATH 10697do 10698 IFS=$as_save_IFS 10699 test -z "$as_dir" && as_dir=. 10700 for ac_exec_ext in '' $ac_executable_extensions; do 10701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10702 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 10703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10704 break 2 10705 fi 10706done 10707 done 10708IFS=$as_save_IFS 10709 10710 ;; 10711esac 10712fi 10713MKTEMP=$ac_cv_path_MKTEMP 10714if test -n "$MKTEMP"; then 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 10716$as_echo "$MKTEMP" >&6; } 10717else 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10719$as_echo "no" >&6; } 10720fi 10721 10722 10723 10724# Checks for pkg-config packages 10725 10726pkg_failed=no 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5 10728$as_echo_n "checking for X11PERF... " >&6; } 10729 10730if test -n "$X11PERF_CFLAGS"; then 10731 pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS" 10732 elif test -n "$PKG_CONFIG"; then 10733 if test -n "$PKG_CONFIG" && \ 10734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5 10735 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5 10736 ac_status=$? 10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10738 test $ac_status = 0; }; then 10739 pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.17" 2>/dev/null` 10740else 10741 pkg_failed=yes 10742fi 10743 else 10744 pkg_failed=untried 10745fi 10746if test -n "$X11PERF_LIBS"; then 10747 pkg_cv_X11PERF_LIBS="$X11PERF_LIBS" 10748 elif test -n "$PKG_CONFIG"; then 10749 if test -n "$PKG_CONFIG" && \ 10750 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.17\""; } >&5 10751 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.17") 2>&5 10752 ac_status=$? 10753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10754 test $ac_status = 0; }; then 10755 pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.17" 2>/dev/null` 10756else 10757 pkg_failed=yes 10758fi 10759 else 10760 pkg_failed=untried 10761fi 10762 10763 10764 10765if test $pkg_failed = yes; then 10766 10767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10768 _pkg_short_errors_supported=yes 10769else 10770 _pkg_short_errors_supported=no 10771fi 10772 if test $_pkg_short_errors_supported = yes; then 10773 X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu xproto >= 7.0.17" 2>&1` 10774 else 10775 X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu xproto >= 7.0.17" 2>&1` 10776 fi 10777 # Put the nasty error message in config.log where it belongs 10778 echo "$X11PERF_PKG_ERRORS" >&5 10779 10780 as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.17) were not met: 10781 10782$X11PERF_PKG_ERRORS 10783 10784Consider adjusting the PKG_CONFIG_PATH environment variable if you 10785installed software in a non-standard prefix. 10786 10787Alternatively, you may set the environment variables X11PERF_CFLAGS 10788and X11PERF_LIBS to avoid the need to call pkg-config. 10789See the pkg-config man page for more details. 10790" "$LINENO" 5 10791elif test $pkg_failed = untried; then 10792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10794as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10795is in your PATH or set the PKG_CONFIG environment variable to the full 10796path to pkg-config. 10797 10798Alternatively, you may set the environment variables X11PERF_CFLAGS 10799and X11PERF_LIBS to avoid the need to call pkg-config. 10800See the pkg-config man page for more details. 10801 10802To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10803See \`config.log' for more details" "$LINENO" 5; } 10804else 10805 X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS 10806 X11PERF_LIBS=$pkg_cv_X11PERF_LIBS 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10808$as_echo "yes" >&6; } 10809 : 10810fi 10811 10812# Check for Xrender library 10813 10814pkg_failed=no 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5 10816$as_echo_n "checking for XRENDER... " >&6; } 10817 10818if test -n "$XRENDER_CFLAGS"; then 10819 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 10820 elif test -n "$PKG_CONFIG"; then 10821 if test -n "$PKG_CONFIG" && \ 10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 10823 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 10824 ac_status=$? 10825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10826 test $ac_status = 0; }; then 10827 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null` 10828else 10829 pkg_failed=yes 10830fi 10831 else 10832 pkg_failed=untried 10833fi 10834if test -n "$XRENDER_LIBS"; then 10835 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 10836 elif test -n "$PKG_CONFIG"; then 10837 if test -n "$PKG_CONFIG" && \ 10838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 10839 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 10840 ac_status=$? 10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10842 test $ac_status = 0; }; then 10843 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null` 10844else 10845 pkg_failed=yes 10846fi 10847 else 10848 pkg_failed=untried 10849fi 10850 10851 10852 10853if test $pkg_failed = yes; then 10854 10855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10856 _pkg_short_errors_supported=yes 10857else 10858 _pkg_short_errors_supported=no 10859fi 10860 if test $_pkg_short_errors_supported = yes; then 10861 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1` 10862 else 10863 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1` 10864 fi 10865 # Put the nasty error message in config.log where it belongs 10866 echo "$XRENDER_PKG_ERRORS" >&5 10867 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10869$as_echo "no" >&6; } 10870 xrender_found=no 10871elif test $pkg_failed = untried; then 10872 xrender_found=no 10873else 10874 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 10875 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10877$as_echo "yes" >&6; } 10878 xrender_found=yes 10879fi 10880case "$xrender_found" in 10881yes) 10882 10883$as_echo "#define XRENDER 1" >>confdefs.h 10884 10885 ;; 10886esac 10887 10888# Check for Xft library 10889 10890pkg_failed=no 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 10892$as_echo_n "checking for XFT... " >&6; } 10893 10894if test -n "$XFT_CFLAGS"; then 10895 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 10896 elif test -n "$PKG_CONFIG"; then 10897 if test -n "$PKG_CONFIG" && \ 10898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 10899 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 10900 ac_status=$? 10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10902 test $ac_status = 0; }; then 10903 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null` 10904else 10905 pkg_failed=yes 10906fi 10907 else 10908 pkg_failed=untried 10909fi 10910if test -n "$XFT_LIBS"; then 10911 pkg_cv_XFT_LIBS="$XFT_LIBS" 10912 elif test -n "$PKG_CONFIG"; then 10913 if test -n "$PKG_CONFIG" && \ 10914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 10915 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 10916 ac_status=$? 10917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10918 test $ac_status = 0; }; then 10919 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null` 10920else 10921 pkg_failed=yes 10922fi 10923 else 10924 pkg_failed=untried 10925fi 10926 10927 10928 10929if test $pkg_failed = yes; then 10930 10931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10932 _pkg_short_errors_supported=yes 10933else 10934 _pkg_short_errors_supported=no 10935fi 10936 if test $_pkg_short_errors_supported = yes; then 10937 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1` 10938 else 10939 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1` 10940 fi 10941 # Put the nasty error message in config.log where it belongs 10942 echo "$XFT_PKG_ERRORS" >&5 10943 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10945$as_echo "no" >&6; } 10946 xft_found=no 10947elif test $pkg_failed = untried; then 10948 xft_found=no 10949else 10950 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 10951 XFT_LIBS=$pkg_cv_XFT_LIBS 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10953$as_echo "yes" >&6; } 10954 xft_found=yes 10955fi 10956case "$xft_found" in 10957yes) 10958 10959$as_echo "#define XFT 1" >>confdefs.h 10960 10961 ;; 10962esac 10963 10964# Check for MIT-SHM extension 10965 10966pkg_failed=no 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 10968$as_echo_n "checking for XEXT... " >&6; } 10969 10970if test -n "$XEXT_CFLAGS"; then 10971 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 10972 elif test -n "$PKG_CONFIG"; then 10973 if test -n "$PKG_CONFIG" && \ 10974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10975 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10976 ac_status=$? 10977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10978 test $ac_status = 0; }; then 10979 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 10980else 10981 pkg_failed=yes 10982fi 10983 else 10984 pkg_failed=untried 10985fi 10986if test -n "$XEXT_LIBS"; then 10987 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 10988 elif test -n "$PKG_CONFIG"; then 10989 if test -n "$PKG_CONFIG" && \ 10990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10991 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10992 ac_status=$? 10993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10994 test $ac_status = 0; }; then 10995 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 10996else 10997 pkg_failed=yes 10998fi 10999 else 11000 pkg_failed=untried 11001fi 11002 11003 11004 11005if test $pkg_failed = yes; then 11006 11007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11008 _pkg_short_errors_supported=yes 11009else 11010 _pkg_short_errors_supported=no 11011fi 11012 if test $_pkg_short_errors_supported = yes; then 11013 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1` 11014 else 11015 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1` 11016 fi 11017 # Put the nasty error message in config.log where it belongs 11018 echo "$XEXT_PKG_ERRORS" >&5 11019 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11021$as_echo "no" >&6; } 11022 xext_found=no 11023elif test $pkg_failed = untried; then 11024 xext_found=no 11025else 11026 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 11027 XEXT_LIBS=$pkg_cv_XEXT_LIBS 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11029$as_echo "yes" >&6; } 11030 xext_found=yes 11031fi 11032case "$xext_found" in 11033yes) 11034 save_LIBS="$LIBS" 11035 LIBS="$XEXT_LIBS $LIBS" 11036 for ac_func in XShmQueryExtension 11037do : 11038 ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension" 11039if test "x$ac_cv_func_XShmQueryExtension" = xyes; then : 11040 cat >>confdefs.h <<_ACEOF 11041#define HAVE_XSHMQUERYEXTENSION 1 11042_ACEOF 11043 11044$as_echo "#define MITSHM 1" >>confdefs.h 11045 11046fi 11047done 11048 11049 LIBS="$save_LIBS" 11050 ;; 11051esac 11052 11053ac_config_files="$ac_config_files Makefile man/Makefile" 11054 11055cat >confcache <<\_ACEOF 11056# This file is a shell script that caches the results of configure 11057# tests run on this system so they can be shared between configure 11058# scripts and configure runs, see configure's option --config-cache. 11059# It is not useful on other systems. If it contains results you don't 11060# want to keep, you may remove or edit it. 11061# 11062# config.status only pays attention to the cache file if you give it 11063# the --recheck option to rerun configure. 11064# 11065# `ac_cv_env_foo' variables (set or unset) will be overridden when 11066# loading this file, other *unset* `ac_cv_foo' will be assigned the 11067# following values. 11068 11069_ACEOF 11070 11071# The following way of writing the cache mishandles newlines in values, 11072# but we know of no workaround that is simple, portable, and efficient. 11073# So, we kill variables containing newlines. 11074# Ultrix sh set writes to stderr and can't be redirected directly, 11075# and sets the high bit in the cache file unless we assign to the vars. 11076( 11077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11078 eval ac_val=\$$ac_var 11079 case $ac_val in #( 11080 *${as_nl}*) 11081 case $ac_var in #( 11082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11084 esac 11085 case $ac_var in #( 11086 _ | IFS | as_nl) ;; #( 11087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11088 *) { eval $ac_var=; unset $ac_var;} ;; 11089 esac ;; 11090 esac 11091 done 11092 11093 (set) 2>&1 | 11094 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11095 *${as_nl}ac_space=\ *) 11096 # `set' does not quote correctly, so add quotes: double-quote 11097 # substitution turns \\\\ into \\, and sed turns \\ into \. 11098 sed -n \ 11099 "s/'/'\\\\''/g; 11100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11101 ;; #( 11102 *) 11103 # `set' quotes correctly as required by POSIX, so do not add quotes. 11104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11105 ;; 11106 esac | 11107 sort 11108) | 11109 sed ' 11110 /^ac_cv_env_/b end 11111 t clear 11112 :clear 11113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11114 t end 11115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11116 :end' >>confcache 11117if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11118 if test -w "$cache_file"; then 11119 if test "x$cache_file" != "x/dev/null"; then 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11121$as_echo "$as_me: updating cache $cache_file" >&6;} 11122 if test ! -f "$cache_file" || test -h "$cache_file"; then 11123 cat confcache >"$cache_file" 11124 else 11125 case $cache_file in #( 11126 */* | ?:*) 11127 mv -f confcache "$cache_file"$$ && 11128 mv -f "$cache_file"$$ "$cache_file" ;; #( 11129 *) 11130 mv -f confcache "$cache_file" ;; 11131 esac 11132 fi 11133 fi 11134 else 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11136$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11137 fi 11138fi 11139rm -f confcache 11140 11141test "x$prefix" = xNONE && prefix=$ac_default_prefix 11142# Let make expand exec_prefix. 11143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11144 11145DEFS=-DHAVE_CONFIG_H 11146 11147ac_libobjs= 11148ac_ltlibobjs= 11149U= 11150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11151 # 1. Remove the extension, and $U if already installed. 11152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11153 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11155 # will be set to the directory where LIBOBJS objects are built. 11156 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11157 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11158done 11159LIBOBJS=$ac_libobjs 11160 11161LTLIBOBJS=$ac_ltlibobjs 11162 11163 11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11165$as_echo_n "checking that generated files are newer than configure... " >&6; } 11166 if test -n "$am_sleep_pid"; then 11167 # Hide warnings about reused PIDs. 11168 wait $am_sleep_pid 2>/dev/null 11169 fi 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11171$as_echo "done" >&6; } 11172 if test -n "$EXEEXT"; then 11173 am__EXEEXT_TRUE= 11174 am__EXEEXT_FALSE='#' 11175else 11176 am__EXEEXT_TRUE='#' 11177 am__EXEEXT_FALSE= 11178fi 11179 11180if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11181 as_fn_error $? "conditional \"AMDEP\" was never defined. 11182Usually this means the macro was only invoked conditionally." "$LINENO" 5 11183fi 11184if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11185 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11186Usually this means the macro was only invoked conditionally." "$LINENO" 5 11187fi 11188 11189: "${CONFIG_STATUS=./config.status}" 11190ac_write_fail=0 11191ac_clean_files_save=$ac_clean_files 11192ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11194$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11195as_write_fail=0 11196cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11197#! $SHELL 11198# Generated by $as_me. 11199# Run this file to recreate the current configuration. 11200# Compiler output produced by configure, useful for debugging 11201# configure, is in config.log if it exists. 11202 11203debug=false 11204ac_cs_recheck=false 11205ac_cs_silent=false 11206 11207SHELL=\${CONFIG_SHELL-$SHELL} 11208export SHELL 11209_ASEOF 11210cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11211## -------------------- ## 11212## M4sh Initialization. ## 11213## -------------------- ## 11214 11215# Be more Bourne compatible 11216DUALCASE=1; export DUALCASE # for MKS sh 11217if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11218 emulate sh 11219 NULLCMD=: 11220 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11221 # is contrary to our usage. Disable this feature. 11222 alias -g '${1+"$@"}'='"$@"' 11223 setopt NO_GLOB_SUBST 11224else 11225 case `(set -o) 2>/dev/null` in #( 11226 *posix*) : 11227 set -o posix ;; #( 11228 *) : 11229 ;; 11230esac 11231fi 11232 11233 11234as_nl=' 11235' 11236export as_nl 11237# Printing a long string crashes Solaris 7 /usr/bin/printf. 11238as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11239as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11240as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11241# Prefer a ksh shell builtin over an external printf program on Solaris, 11242# but without wasting forks for bash or zsh. 11243if test -z "$BASH_VERSION$ZSH_VERSION" \ 11244 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11245 as_echo='print -r --' 11246 as_echo_n='print -rn --' 11247elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11248 as_echo='printf %s\n' 11249 as_echo_n='printf %s' 11250else 11251 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11252 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11253 as_echo_n='/usr/ucb/echo -n' 11254 else 11255 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11256 as_echo_n_body='eval 11257 arg=$1; 11258 case $arg in #( 11259 *"$as_nl"*) 11260 expr "X$arg" : "X\\(.*\\)$as_nl"; 11261 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11262 esac; 11263 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11264 ' 11265 export as_echo_n_body 11266 as_echo_n='sh -c $as_echo_n_body as_echo' 11267 fi 11268 export as_echo_body 11269 as_echo='sh -c $as_echo_body as_echo' 11270fi 11271 11272# The user is always right. 11273if test "${PATH_SEPARATOR+set}" != set; then 11274 PATH_SEPARATOR=: 11275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11276 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11277 PATH_SEPARATOR=';' 11278 } 11279fi 11280 11281 11282# IFS 11283# We need space, tab and new line, in precisely that order. Quoting is 11284# there to prevent editors from complaining about space-tab. 11285# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11286# splitting by setting IFS to empty value.) 11287IFS=" "" $as_nl" 11288 11289# Find who we are. Look in the path if we contain no directory separator. 11290as_myself= 11291case $0 in #(( 11292 *[\\/]* ) as_myself=$0 ;; 11293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11294for as_dir in $PATH 11295do 11296 IFS=$as_save_IFS 11297 test -z "$as_dir" && as_dir=. 11298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11299 done 11300IFS=$as_save_IFS 11301 11302 ;; 11303esac 11304# We did not find ourselves, most probably we were run as `sh COMMAND' 11305# in which case we are not to be found in the path. 11306if test "x$as_myself" = x; then 11307 as_myself=$0 11308fi 11309if test ! -f "$as_myself"; then 11310 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11311 exit 1 11312fi 11313 11314# Unset variables that we do not need and which cause bugs (e.g. in 11315# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11316# suppresses any "Segmentation fault" message there. '((' could 11317# trigger a bug in pdksh 5.2.14. 11318for as_var in BASH_ENV ENV MAIL MAILPATH 11319do eval test x\${$as_var+set} = xset \ 11320 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11321done 11322PS1='$ ' 11323PS2='> ' 11324PS4='+ ' 11325 11326# NLS nuisances. 11327LC_ALL=C 11328export LC_ALL 11329LANGUAGE=C 11330export LANGUAGE 11331 11332# CDPATH. 11333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11334 11335 11336# as_fn_error STATUS ERROR [LINENO LOG_FD] 11337# ---------------------------------------- 11338# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11339# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11340# script with STATUS, using 1 if that was 0. 11341as_fn_error () 11342{ 11343 as_status=$1; test $as_status -eq 0 && as_status=1 11344 if test "$4"; then 11345 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11346 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11347 fi 11348 $as_echo "$as_me: error: $2" >&2 11349 as_fn_exit $as_status 11350} # as_fn_error 11351 11352 11353# as_fn_set_status STATUS 11354# ----------------------- 11355# Set $? to STATUS, without forking. 11356as_fn_set_status () 11357{ 11358 return $1 11359} # as_fn_set_status 11360 11361# as_fn_exit STATUS 11362# ----------------- 11363# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11364as_fn_exit () 11365{ 11366 set +e 11367 as_fn_set_status $1 11368 exit $1 11369} # as_fn_exit 11370 11371# as_fn_unset VAR 11372# --------------- 11373# Portably unset VAR. 11374as_fn_unset () 11375{ 11376 { eval $1=; unset $1;} 11377} 11378as_unset=as_fn_unset 11379# as_fn_append VAR VALUE 11380# ---------------------- 11381# Append the text in VALUE to the end of the definition contained in VAR. Take 11382# advantage of any shell optimizations that allow amortized linear growth over 11383# repeated appends, instead of the typical quadratic growth present in naive 11384# implementations. 11385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11386 eval 'as_fn_append () 11387 { 11388 eval $1+=\$2 11389 }' 11390else 11391 as_fn_append () 11392 { 11393 eval $1=\$$1\$2 11394 } 11395fi # as_fn_append 11396 11397# as_fn_arith ARG... 11398# ------------------ 11399# Perform arithmetic evaluation on the ARGs, and store the result in the 11400# global $as_val. Take advantage of shells that can avoid forks. The arguments 11401# must be portable across $(()) and expr. 11402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11403 eval 'as_fn_arith () 11404 { 11405 as_val=$(( $* )) 11406 }' 11407else 11408 as_fn_arith () 11409 { 11410 as_val=`expr "$@" || test $? -eq 1` 11411 } 11412fi # as_fn_arith 11413 11414 11415if expr a : '\(a\)' >/dev/null 2>&1 && 11416 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11417 as_expr=expr 11418else 11419 as_expr=false 11420fi 11421 11422if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11423 as_basename=basename 11424else 11425 as_basename=false 11426fi 11427 11428if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11429 as_dirname=dirname 11430else 11431 as_dirname=false 11432fi 11433 11434as_me=`$as_basename -- "$0" || 11435$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11436 X"$0" : 'X\(//\)$' \| \ 11437 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11438$as_echo X/"$0" | 11439 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11440 s//\1/ 11441 q 11442 } 11443 /^X\/\(\/\/\)$/{ 11444 s//\1/ 11445 q 11446 } 11447 /^X\/\(\/\).*/{ 11448 s//\1/ 11449 q 11450 } 11451 s/.*/./; q'` 11452 11453# Avoid depending upon Character Ranges. 11454as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11455as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11456as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11457as_cr_digits='0123456789' 11458as_cr_alnum=$as_cr_Letters$as_cr_digits 11459 11460ECHO_C= ECHO_N= ECHO_T= 11461case `echo -n x` in #((((( 11462-n*) 11463 case `echo 'xy\c'` in 11464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11465 xy) ECHO_C='\c';; 11466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11467 ECHO_T=' ';; 11468 esac;; 11469*) 11470 ECHO_N='-n';; 11471esac 11472 11473rm -f conf$$ conf$$.exe conf$$.file 11474if test -d conf$$.dir; then 11475 rm -f conf$$.dir/conf$$.file 11476else 11477 rm -f conf$$.dir 11478 mkdir conf$$.dir 2>/dev/null 11479fi 11480if (echo >conf$$.file) 2>/dev/null; then 11481 if ln -s conf$$.file conf$$ 2>/dev/null; then 11482 as_ln_s='ln -s' 11483 # ... but there are two gotchas: 11484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11486 # In both cases, we have to default to `cp -pR'. 11487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11488 as_ln_s='cp -pR' 11489 elif ln conf$$.file conf$$ 2>/dev/null; then 11490 as_ln_s=ln 11491 else 11492 as_ln_s='cp -pR' 11493 fi 11494else 11495 as_ln_s='cp -pR' 11496fi 11497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11498rmdir conf$$.dir 2>/dev/null 11499 11500 11501# as_fn_mkdir_p 11502# ------------- 11503# Create "$as_dir" as a directory, including parents if necessary. 11504as_fn_mkdir_p () 11505{ 11506 11507 case $as_dir in #( 11508 -*) as_dir=./$as_dir;; 11509 esac 11510 test -d "$as_dir" || eval $as_mkdir_p || { 11511 as_dirs= 11512 while :; do 11513 case $as_dir in #( 11514 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11515 *) as_qdir=$as_dir;; 11516 esac 11517 as_dirs="'$as_qdir' $as_dirs" 11518 as_dir=`$as_dirname -- "$as_dir" || 11519$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11520 X"$as_dir" : 'X\(//\)[^/]' \| \ 11521 X"$as_dir" : 'X\(//\)$' \| \ 11522 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11523$as_echo X"$as_dir" | 11524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11525 s//\1/ 11526 q 11527 } 11528 /^X\(\/\/\)[^/].*/{ 11529 s//\1/ 11530 q 11531 } 11532 /^X\(\/\/\)$/{ 11533 s//\1/ 11534 q 11535 } 11536 /^X\(\/\).*/{ 11537 s//\1/ 11538 q 11539 } 11540 s/.*/./; q'` 11541 test -d "$as_dir" && break 11542 done 11543 test -z "$as_dirs" || eval "mkdir $as_dirs" 11544 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11545 11546 11547} # as_fn_mkdir_p 11548if mkdir -p . 2>/dev/null; then 11549 as_mkdir_p='mkdir -p "$as_dir"' 11550else 11551 test -d ./-p && rmdir ./-p 11552 as_mkdir_p=false 11553fi 11554 11555 11556# as_fn_executable_p FILE 11557# ----------------------- 11558# Test if FILE is an executable regular file. 11559as_fn_executable_p () 11560{ 11561 test -f "$1" && test -x "$1" 11562} # as_fn_executable_p 11563as_test_x='test -x' 11564as_executable_p=as_fn_executable_p 11565 11566# Sed expression to map a string onto a valid CPP name. 11567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11568 11569# Sed expression to map a string onto a valid variable name. 11570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11571 11572 11573exec 6>&1 11574## ----------------------------------- ## 11575## Main body of $CONFIG_STATUS script. ## 11576## ----------------------------------- ## 11577_ASEOF 11578test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11579 11580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11581# Save the log message, to keep $0 and so on meaningful, and to 11582# report actual input values of CONFIG_FILES etc. instead of their 11583# values after options handling. 11584ac_log=" 11585This file was extended by x11perf $as_me 1.6.0, which was 11586generated by GNU Autoconf 2.69. Invocation command line was 11587 11588 CONFIG_FILES = $CONFIG_FILES 11589 CONFIG_HEADERS = $CONFIG_HEADERS 11590 CONFIG_LINKS = $CONFIG_LINKS 11591 CONFIG_COMMANDS = $CONFIG_COMMANDS 11592 $ $0 $@ 11593 11594on `(hostname || uname -n) 2>/dev/null | sed 1q` 11595" 11596 11597_ACEOF 11598 11599case $ac_config_files in *" 11600"*) set x $ac_config_files; shift; ac_config_files=$*;; 11601esac 11602 11603case $ac_config_headers in *" 11604"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11605esac 11606 11607 11608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11609# Files that config.status was made for. 11610config_files="$ac_config_files" 11611config_headers="$ac_config_headers" 11612config_commands="$ac_config_commands" 11613 11614_ACEOF 11615 11616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11617ac_cs_usage="\ 11618\`$as_me' instantiates files and other configuration actions 11619from templates according to the current configuration. Unless the files 11620and actions are specified as TAGs, all are instantiated by default. 11621 11622Usage: $0 [OPTION]... [TAG]... 11623 11624 -h, --help print this help, then exit 11625 -V, --version print version number and configuration settings, then exit 11626 --config print configuration, then exit 11627 -q, --quiet, --silent 11628 do not print progress messages 11629 -d, --debug don't remove temporary files 11630 --recheck update $as_me by reconfiguring in the same conditions 11631 --file=FILE[:TEMPLATE] 11632 instantiate the configuration file FILE 11633 --header=FILE[:TEMPLATE] 11634 instantiate the configuration header FILE 11635 11636Configuration files: 11637$config_files 11638 11639Configuration headers: 11640$config_headers 11641 11642Configuration commands: 11643$config_commands 11644 11645Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11646 11647_ACEOF 11648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11649ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11650ac_cs_version="\\ 11651x11perf config.status 1.6.0 11652configured by $0, generated by GNU Autoconf 2.69, 11653 with options \\"\$ac_cs_config\\" 11654 11655Copyright (C) 2012 Free Software Foundation, Inc. 11656This config.status script is free software; the Free Software Foundation 11657gives unlimited permission to copy, distribute and modify it." 11658 11659ac_pwd='$ac_pwd' 11660srcdir='$srcdir' 11661INSTALL='$INSTALL' 11662MKDIR_P='$MKDIR_P' 11663AWK='$AWK' 11664test -n "\$AWK" || AWK=awk 11665_ACEOF 11666 11667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11668# The default lists apply if the user does not specify any file. 11669ac_need_defaults=: 11670while test $# != 0 11671do 11672 case $1 in 11673 --*=?*) 11674 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11676 ac_shift=: 11677 ;; 11678 --*=) 11679 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11680 ac_optarg= 11681 ac_shift=: 11682 ;; 11683 *) 11684 ac_option=$1 11685 ac_optarg=$2 11686 ac_shift=shift 11687 ;; 11688 esac 11689 11690 case $ac_option in 11691 # Handling of the options. 11692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11693 ac_cs_recheck=: ;; 11694 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11695 $as_echo "$ac_cs_version"; exit ;; 11696 --config | --confi | --conf | --con | --co | --c ) 11697 $as_echo "$ac_cs_config"; exit ;; 11698 --debug | --debu | --deb | --de | --d | -d ) 11699 debug=: ;; 11700 --file | --fil | --fi | --f ) 11701 $ac_shift 11702 case $ac_optarg in 11703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11704 '') as_fn_error $? "missing file argument" ;; 11705 esac 11706 as_fn_append CONFIG_FILES " '$ac_optarg'" 11707 ac_need_defaults=false;; 11708 --header | --heade | --head | --hea ) 11709 $ac_shift 11710 case $ac_optarg in 11711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11712 esac 11713 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11714 ac_need_defaults=false;; 11715 --he | --h) 11716 # Conflict between --help and --header 11717 as_fn_error $? "ambiguous option: \`$1' 11718Try \`$0 --help' for more information.";; 11719 --help | --hel | -h ) 11720 $as_echo "$ac_cs_usage"; exit ;; 11721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11722 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11723 ac_cs_silent=: ;; 11724 11725 # This is an error. 11726 -*) as_fn_error $? "unrecognized option: \`$1' 11727Try \`$0 --help' for more information." ;; 11728 11729 *) as_fn_append ac_config_targets " $1" 11730 ac_need_defaults=false ;; 11731 11732 esac 11733 shift 11734done 11735 11736ac_configure_extra_args= 11737 11738if $ac_cs_silent; then 11739 exec 6>/dev/null 11740 ac_configure_extra_args="$ac_configure_extra_args --silent" 11741fi 11742 11743_ACEOF 11744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11745if \$ac_cs_recheck; then 11746 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11747 shift 11748 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11749 CONFIG_SHELL='$SHELL' 11750 export CONFIG_SHELL 11751 exec "\$@" 11752fi 11753 11754_ACEOF 11755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11756exec 5>>config.log 11757{ 11758 echo 11759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11760## Running $as_me. ## 11761_ASBOX 11762 $as_echo "$ac_log" 11763} >&5 11764 11765_ACEOF 11766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11767# 11768# INIT-COMMANDS 11769# 11770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11771 11772_ACEOF 11773 11774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11775 11776# Handling of arguments. 11777for ac_config_target in $ac_config_targets 11778do 11779 case $ac_config_target in 11780 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11781 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11782 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11783 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11784 11785 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11786 esac 11787done 11788 11789 11790# If the user did not use the arguments to specify the items to instantiate, 11791# then the envvar interface is used. Set only those that are not. 11792# We use the long form for the default assignment because of an extremely 11793# bizarre bug on SunOS 4.1.3. 11794if $ac_need_defaults; then 11795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11798fi 11799 11800# Have a temporary directory for convenience. Make it in the build tree 11801# simply because there is no reason against having it here, and in addition, 11802# creating and moving files from /tmp can sometimes cause problems. 11803# Hook for its removal unless debugging. 11804# Note that there is a small window in which the directory will not be cleaned: 11805# after its creation but before its name has been assigned to `$tmp'. 11806$debug || 11807{ 11808 tmp= ac_tmp= 11809 trap 'exit_status=$? 11810 : "${ac_tmp:=$tmp}" 11811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11812' 0 11813 trap 'as_fn_exit 1' 1 2 13 15 11814} 11815# Create a (secure) tmp directory for tmp files. 11816 11817{ 11818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11819 test -d "$tmp" 11820} || 11821{ 11822 tmp=./conf$$-$RANDOM 11823 (umask 077 && mkdir "$tmp") 11824} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11825ac_tmp=$tmp 11826 11827# Set up the scripts for CONFIG_FILES section. 11828# No need to generate them if there are no CONFIG_FILES. 11829# This happens for instance with `./config.status config.h'. 11830if test -n "$CONFIG_FILES"; then 11831 11832 11833ac_cr=`echo X | tr X '\015'` 11834# On cygwin, bash can eat \r inside `` if the user requested igncr. 11835# But we know of no other shell where ac_cr would be empty at this 11836# point, so we can use a bashism as a fallback. 11837if test "x$ac_cr" = x; then 11838 eval ac_cr=\$\'\\r\' 11839fi 11840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11842 ac_cs_awk_cr='\\r' 11843else 11844 ac_cs_awk_cr=$ac_cr 11845fi 11846 11847echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11848_ACEOF 11849 11850 11851{ 11852 echo "cat >conf$$subs.awk <<_ACEOF" && 11853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11854 echo "_ACEOF" 11855} >conf$$subs.sh || 11856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11857ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11858ac_delim='%!_!# ' 11859for ac_last_try in false false false false false :; do 11860 . ./conf$$subs.sh || 11861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11862 11863 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11864 if test $ac_delim_n = $ac_delim_num; then 11865 break 11866 elif $ac_last_try; then 11867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11868 else 11869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11870 fi 11871done 11872rm -f conf$$subs.sh 11873 11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11875cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11876_ACEOF 11877sed -n ' 11878h 11879s/^/S["/; s/!.*/"]=/ 11880p 11881g 11882s/^[^!]*!// 11883:repl 11884t repl 11885s/'"$ac_delim"'$// 11886t delim 11887:nl 11888h 11889s/\(.\{148\}\)..*/\1/ 11890t more1 11891s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11892p 11893n 11894b repl 11895:more1 11896s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11897p 11898g 11899s/.\{148\}// 11900t nl 11901:delim 11902h 11903s/\(.\{148\}\)..*/\1/ 11904t more2 11905s/["\\]/\\&/g; s/^/"/; s/$/"/ 11906p 11907b 11908:more2 11909s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11910p 11911g 11912s/.\{148\}// 11913t delim 11914' <conf$$subs.awk | sed ' 11915/^[^""]/{ 11916 N 11917 s/\n// 11918} 11919' >>$CONFIG_STATUS || ac_write_fail=1 11920rm -f conf$$subs.awk 11921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11922_ACAWK 11923cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11924 for (key in S) S_is_set[key] = 1 11925 FS = "" 11926 11927} 11928{ 11929 line = $ 0 11930 nfields = split(line, field, "@") 11931 substed = 0 11932 len = length(field[1]) 11933 for (i = 2; i < nfields; i++) { 11934 key = field[i] 11935 keylen = length(key) 11936 if (S_is_set[key]) { 11937 value = S[key] 11938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11939 len += length(value) + length(field[++i]) 11940 substed = 1 11941 } else 11942 len += 1 + keylen 11943 } 11944 11945 print line 11946} 11947 11948_ACAWK 11949_ACEOF 11950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11951if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11952 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11953else 11954 cat 11955fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11956 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11957_ACEOF 11958 11959# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11960# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11961# trailing colons and then remove the whole line if VPATH becomes empty 11962# (actually we leave an empty line to preserve line numbers). 11963if test "x$srcdir" = x.; then 11964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11965h 11966s/// 11967s/^/:/ 11968s/[ ]*$/:/ 11969s/:\$(srcdir):/:/g 11970s/:\${srcdir}:/:/g 11971s/:@srcdir@:/:/g 11972s/^:*// 11973s/:*$// 11974x 11975s/\(=[ ]*\).*/\1/ 11976G 11977s/\n// 11978s/^[^=]*=[ ]*$// 11979}' 11980fi 11981 11982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11983fi # test -n "$CONFIG_FILES" 11984 11985# Set up the scripts for CONFIG_HEADERS section. 11986# No need to generate them if there are no CONFIG_HEADERS. 11987# This happens for instance with `./config.status Makefile'. 11988if test -n "$CONFIG_HEADERS"; then 11989cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11990BEGIN { 11991_ACEOF 11992 11993# Transform confdefs.h into an awk script `defines.awk', embedded as 11994# here-document in config.status, that substitutes the proper values into 11995# config.h.in to produce config.h. 11996 11997# Create a delimiter string that does not exist in confdefs.h, to ease 11998# handling of long lines. 11999ac_delim='%!_!# ' 12000for ac_last_try in false false :; do 12001 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12002 if test -z "$ac_tt"; then 12003 break 12004 elif $ac_last_try; then 12005 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12006 else 12007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12008 fi 12009done 12010 12011# For the awk script, D is an array of macro values keyed by name, 12012# likewise P contains macro parameters if any. Preserve backslash 12013# newline sequences. 12014 12015ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12016sed -n ' 12017s/.\{148\}/&'"$ac_delim"'/g 12018t rset 12019:rset 12020s/^[ ]*#[ ]*define[ ][ ]*/ / 12021t def 12022d 12023:def 12024s/\\$// 12025t bsnl 12026s/["\\]/\\&/g 12027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12028D["\1"]=" \3"/p 12029s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12030d 12031:bsnl 12032s/["\\]/\\&/g 12033s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12034D["\1"]=" \3\\\\\\n"\\/p 12035t cont 12036s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12037t cont 12038d 12039:cont 12040n 12041s/.\{148\}/&'"$ac_delim"'/g 12042t clear 12043:clear 12044s/\\$// 12045t bsnlc 12046s/["\\]/\\&/g; s/^/"/; s/$/"/p 12047d 12048:bsnlc 12049s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12050b cont 12051' <confdefs.h | sed ' 12052s/'"$ac_delim"'/"\\\ 12053"/g' >>$CONFIG_STATUS || ac_write_fail=1 12054 12055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12056 for (key in D) D_is_set[key] = 1 12057 FS = "" 12058} 12059/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12060 line = \$ 0 12061 split(line, arg, " ") 12062 if (arg[1] == "#") { 12063 defundef = arg[2] 12064 mac1 = arg[3] 12065 } else { 12066 defundef = substr(arg[1], 2) 12067 mac1 = arg[2] 12068 } 12069 split(mac1, mac2, "(") #) 12070 macro = mac2[1] 12071 prefix = substr(line, 1, index(line, defundef) - 1) 12072 if (D_is_set[macro]) { 12073 # Preserve the white space surrounding the "#". 12074 print prefix "define", macro P[macro] D[macro] 12075 next 12076 } else { 12077 # Replace #undef with comments. This is necessary, for example, 12078 # in the case of _POSIX_SOURCE, which is predefined and required 12079 # on some systems where configure will not decide to define it. 12080 if (defundef == "undef") { 12081 print "/*", prefix defundef, macro, "*/" 12082 next 12083 } 12084 } 12085} 12086{ print } 12087_ACAWK 12088_ACEOF 12089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12090 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12091fi # test -n "$CONFIG_HEADERS" 12092 12093 12094eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12095shift 12096for ac_tag 12097do 12098 case $ac_tag in 12099 :[FHLC]) ac_mode=$ac_tag; continue;; 12100 esac 12101 case $ac_mode$ac_tag in 12102 :[FHL]*:*);; 12103 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12104 :[FH]-) ac_tag=-:-;; 12105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12106 esac 12107 ac_save_IFS=$IFS 12108 IFS=: 12109 set x $ac_tag 12110 IFS=$ac_save_IFS 12111 shift 12112 ac_file=$1 12113 shift 12114 12115 case $ac_mode in 12116 :L) ac_source=$1;; 12117 :[FH]) 12118 ac_file_inputs= 12119 for ac_f 12120 do 12121 case $ac_f in 12122 -) ac_f="$ac_tmp/stdin";; 12123 *) # Look for the file first in the build tree, then in the source tree 12124 # (if the path is not absolute). The absolute path cannot be DOS-style, 12125 # because $ac_f cannot contain `:'. 12126 test -f "$ac_f" || 12127 case $ac_f in 12128 [\\/$]*) false;; 12129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12130 esac || 12131 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12132 esac 12133 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12134 as_fn_append ac_file_inputs " '$ac_f'" 12135 done 12136 12137 # Let's still pretend it is `configure' which instantiates (i.e., don't 12138 # use $as_me), people would be surprised to read: 12139 # /* config.h. Generated by config.status. */ 12140 configure_input='Generated from '` 12141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12142 `' by configure.' 12143 if test x"$ac_file" != x-; then 12144 configure_input="$ac_file. $configure_input" 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12146$as_echo "$as_me: creating $ac_file" >&6;} 12147 fi 12148 # Neutralize special characters interpreted by sed in replacement strings. 12149 case $configure_input in #( 12150 *\&* | *\|* | *\\* ) 12151 ac_sed_conf_input=`$as_echo "$configure_input" | 12152 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12153 *) ac_sed_conf_input=$configure_input;; 12154 esac 12155 12156 case $ac_tag in 12157 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12159 esac 12160 ;; 12161 esac 12162 12163 ac_dir=`$as_dirname -- "$ac_file" || 12164$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12165 X"$ac_file" : 'X\(//\)[^/]' \| \ 12166 X"$ac_file" : 'X\(//\)$' \| \ 12167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12168$as_echo X"$ac_file" | 12169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12170 s//\1/ 12171 q 12172 } 12173 /^X\(\/\/\)[^/].*/{ 12174 s//\1/ 12175 q 12176 } 12177 /^X\(\/\/\)$/{ 12178 s//\1/ 12179 q 12180 } 12181 /^X\(\/\).*/{ 12182 s//\1/ 12183 q 12184 } 12185 s/.*/./; q'` 12186 as_dir="$ac_dir"; as_fn_mkdir_p 12187 ac_builddir=. 12188 12189case "$ac_dir" in 12190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12191*) 12192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12193 # A ".." for each directory in $ac_dir_suffix. 12194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12195 case $ac_top_builddir_sub in 12196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12198 esac ;; 12199esac 12200ac_abs_top_builddir=$ac_pwd 12201ac_abs_builddir=$ac_pwd$ac_dir_suffix 12202# for backward compatibility: 12203ac_top_builddir=$ac_top_build_prefix 12204 12205case $srcdir in 12206 .) # We are building in place. 12207 ac_srcdir=. 12208 ac_top_srcdir=$ac_top_builddir_sub 12209 ac_abs_top_srcdir=$ac_pwd ;; 12210 [\\/]* | ?:[\\/]* ) # Absolute name. 12211 ac_srcdir=$srcdir$ac_dir_suffix; 12212 ac_top_srcdir=$srcdir 12213 ac_abs_top_srcdir=$srcdir ;; 12214 *) # Relative name. 12215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12216 ac_top_srcdir=$ac_top_build_prefix$srcdir 12217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12218esac 12219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12220 12221 12222 case $ac_mode in 12223 :F) 12224 # 12225 # CONFIG_FILE 12226 # 12227 12228 case $INSTALL in 12229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12231 esac 12232 ac_MKDIR_P=$MKDIR_P 12233 case $MKDIR_P in 12234 [\\/$]* | ?:[\\/]* ) ;; 12235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12236 esac 12237_ACEOF 12238 12239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12240# If the template does not know about datarootdir, expand it. 12241# FIXME: This hack should be removed a few years after 2.60. 12242ac_datarootdir_hack=; ac_datarootdir_seen= 12243ac_sed_dataroot=' 12244/datarootdir/ { 12245 p 12246 q 12247} 12248/@datadir@/p 12249/@docdir@/p 12250/@infodir@/p 12251/@localedir@/p 12252/@mandir@/p' 12253case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12254*datarootdir*) ac_datarootdir_seen=yes;; 12255*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12257$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12258_ACEOF 12259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12260 ac_datarootdir_hack=' 12261 s&@datadir@&$datadir&g 12262 s&@docdir@&$docdir&g 12263 s&@infodir@&$infodir&g 12264 s&@localedir@&$localedir&g 12265 s&@mandir@&$mandir&g 12266 s&\\\${datarootdir}&$datarootdir&g' ;; 12267esac 12268_ACEOF 12269 12270# Neutralize VPATH when `$srcdir' = `.'. 12271# Shell code in configure.ac might set extrasub. 12272# FIXME: do we really want to maintain this feature? 12273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12274ac_sed_extra="$ac_vpsub 12275$extrasub 12276_ACEOF 12277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12278:t 12279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12280s|@configure_input@|$ac_sed_conf_input|;t t 12281s&@top_builddir@&$ac_top_builddir_sub&;t t 12282s&@top_build_prefix@&$ac_top_build_prefix&;t t 12283s&@srcdir@&$ac_srcdir&;t t 12284s&@abs_srcdir@&$ac_abs_srcdir&;t t 12285s&@top_srcdir@&$ac_top_srcdir&;t t 12286s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12287s&@builddir@&$ac_builddir&;t t 12288s&@abs_builddir@&$ac_abs_builddir&;t t 12289s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12290s&@INSTALL@&$ac_INSTALL&;t t 12291s&@MKDIR_P@&$ac_MKDIR_P&;t t 12292$ac_datarootdir_hack 12293" 12294eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12295 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12296 12297test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12298 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12300 "$ac_tmp/out"`; test -z "$ac_out"; } && 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12302which seems to be undefined. Please make sure it is defined" >&5 12303$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12304which seems to be undefined. Please make sure it is defined" >&2;} 12305 12306 rm -f "$ac_tmp/stdin" 12307 case $ac_file in 12308 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12309 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12310 esac \ 12311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12312 ;; 12313 :H) 12314 # 12315 # CONFIG_HEADER 12316 # 12317 if test x"$ac_file" != x-; then 12318 { 12319 $as_echo "/* $configure_input */" \ 12320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12321 } >"$ac_tmp/config.h" \ 12322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12323 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12325$as_echo "$as_me: $ac_file is unchanged" >&6;} 12326 else 12327 rm -f "$ac_file" 12328 mv "$ac_tmp/config.h" "$ac_file" \ 12329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12330 fi 12331 else 12332 $as_echo "/* $configure_input */" \ 12333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12334 || as_fn_error $? "could not create -" "$LINENO" 5 12335 fi 12336# Compute "$ac_file"'s index in $config_headers. 12337_am_arg="$ac_file" 12338_am_stamp_count=1 12339for _am_header in $config_headers :; do 12340 case $_am_header in 12341 $_am_arg | $_am_arg:* ) 12342 break ;; 12343 * ) 12344 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12345 esac 12346done 12347echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12348$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12349 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12350 X"$_am_arg" : 'X\(//\)$' \| \ 12351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12352$as_echo X"$_am_arg" | 12353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12354 s//\1/ 12355 q 12356 } 12357 /^X\(\/\/\)[^/].*/{ 12358 s//\1/ 12359 q 12360 } 12361 /^X\(\/\/\)$/{ 12362 s//\1/ 12363 q 12364 } 12365 /^X\(\/\).*/{ 12366 s//\1/ 12367 q 12368 } 12369 s/.*/./; q'`/stamp-h$_am_stamp_count 12370 ;; 12371 12372 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12373$as_echo "$as_me: executing $ac_file commands" >&6;} 12374 ;; 12375 esac 12376 12377 12378 case $ac_file$ac_mode in 12379 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12380 # Older Autoconf quotes --file arguments for eval, but not when files 12381 # are listed without --file. Let's play safe and only enable the eval 12382 # if we detect the quoting. 12383 case $CONFIG_FILES in 12384 *\'*) eval set x "$CONFIG_FILES" ;; 12385 *) set x $CONFIG_FILES ;; 12386 esac 12387 shift 12388 for mf 12389 do 12390 # Strip MF so we end up with the name of the file. 12391 mf=`echo "$mf" | sed -e 's/:.*$//'` 12392 # Check whether this is an Automake generated Makefile or not. 12393 # We used to match only the files named 'Makefile.in', but 12394 # some people rename them; so instead we look at the file content. 12395 # Grep'ing the first line is not enough: some people post-process 12396 # each Makefile.in and add a new line on top of each file to say so. 12397 # Grep'ing the whole file is not good either: AIX grep has a line 12398 # limit of 2048, but all sed's we know have understand at least 4000. 12399 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12400 dirpart=`$as_dirname -- "$mf" || 12401$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12402 X"$mf" : 'X\(//\)[^/]' \| \ 12403 X"$mf" : 'X\(//\)$' \| \ 12404 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12405$as_echo X"$mf" | 12406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12407 s//\1/ 12408 q 12409 } 12410 /^X\(\/\/\)[^/].*/{ 12411 s//\1/ 12412 q 12413 } 12414 /^X\(\/\/\)$/{ 12415 s//\1/ 12416 q 12417 } 12418 /^X\(\/\).*/{ 12419 s//\1/ 12420 q 12421 } 12422 s/.*/./; q'` 12423 else 12424 continue 12425 fi 12426 # Extract the definition of DEPDIR, am__include, and am__quote 12427 # from the Makefile without running 'make'. 12428 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12429 test -z "$DEPDIR" && continue 12430 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12431 test -z "$am__include" && continue 12432 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12433 # Find all dependency output files, they are included files with 12434 # $(DEPDIR) in their names. We invoke sed twice because it is the 12435 # simplest approach to changing $(DEPDIR) to its actual value in the 12436 # expansion. 12437 for file in `sed -n " 12438 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12439 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12440 # Make sure the directory exists. 12441 test -f "$dirpart/$file" && continue 12442 fdir=`$as_dirname -- "$file" || 12443$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12444 X"$file" : 'X\(//\)[^/]' \| \ 12445 X"$file" : 'X\(//\)$' \| \ 12446 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12447$as_echo X"$file" | 12448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12449 s//\1/ 12450 q 12451 } 12452 /^X\(\/\/\)[^/].*/{ 12453 s//\1/ 12454 q 12455 } 12456 /^X\(\/\/\)$/{ 12457 s//\1/ 12458 q 12459 } 12460 /^X\(\/\).*/{ 12461 s//\1/ 12462 q 12463 } 12464 s/.*/./; q'` 12465 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12466 # echo "creating $dirpart/$file" 12467 echo '# dummy' > "$dirpart/$file" 12468 done 12469 done 12470} 12471 ;; 12472 12473 esac 12474done # for ac_tag 12475 12476 12477as_fn_exit 0 12478_ACEOF 12479ac_clean_files=$ac_clean_files_save 12480 12481test $ac_write_fail = 0 || 12482 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12483 12484 12485# configure is writing to config.log, and then calls config.status. 12486# config.status does its own redirection, appending to config.log. 12487# Unfortunately, on DOS this fails, as config.log is still kept open 12488# by configure, so config.status won't be able to write to it; its 12489# output is simply discarded. So we exec the FD to /dev/null, 12490# effectively closing config.log, so it can be properly (re)opened and 12491# appended to by config.status. When coming back to configure, we 12492# need to make the FD available again. 12493if test "$no_create" != yes; then 12494 ac_cs_success=: 12495 ac_config_status_args= 12496 test "$silent" = yes && 12497 ac_config_status_args="$ac_config_status_args --quiet" 12498 exec 5>/dev/null 12499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12500 exec 5>>config.log 12501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12502 # would make configure fail if this is the last instruction. 12503 $ac_cs_success || as_fn_exit 1 12504fi 12505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12508fi 12509 12510